diff --git a/server/services/pve.go b/server/services/pve.go index 563a553..c296c31 100644 --- a/server/services/pve.go +++ b/server/services/pve.go @@ -7,6 +7,7 @@ import ( "io" "net/http" "net/http/cookiejar" + "net/url" "strings" "time" @@ -57,9 +58,11 @@ func (c *PVEClient) baseURL() string { // Login 获取 PVE 认证ticket func (c *PVEClient) Login() error { loginURL := c.baseURL() + "/api2/json/access/ticket" - data := fmt.Sprintf("username=%s&password=%s", c.Username, c.Password) + formData := url.Values{} + formData.Set("username", c.Username) + formData.Set("password", c.Password) - req, err := http.NewRequest("POST", loginURL, strings.NewReader(data)) + req, err := http.NewRequest("POST", loginURL, strings.NewReader(formData.Encode())) if err != nil { return err } @@ -127,18 +130,22 @@ func (c *PVEClient) GetVMStatus(vmid string) (*models.PVEVMStatus, error) { return nil, fmt.Errorf("get vm status failed, status: %d", resp.StatusCode) } + body, err := io.ReadAll(resp.Body) + if err != nil { + return nil, fmt.Errorf("read body failed: %v", err) + } + var result struct { Data struct { - Status string `json:"status"` - Uptime int64 `json:"uptime"` - CPU float64 `json:"cpu"` - MemoryUsed int64 `json:"mem"` - MemoryTotal int64 `json:"maxmem"` + Status string `json:"status"` + Uptime int64 `json:"uptime"` + CPU float64 `json:"cpu"` + MemoryUsed int64 `json:"mem"` + MemoryTotal int64 `json:"maxmem"` } `json:"data"` } - if err := json.NewDecoder(resp.Body).Decode(&result); err != nil { - body, _ := io.ReadAll(resp.Body) + if err := json.Unmarshal(body, &result); err != nil { return nil, fmt.Errorf("decode failed: %v, body: %s", err, string(body)) } diff --git a/server/static/assets/Login-DsgAjqqn.js b/server/static/assets/Login-DsgAjqqn.js new file mode 100644 index 0000000..d4a027a --- /dev/null +++ b/server/static/assets/Login-DsgAjqqn.js @@ -0,0 +1 @@ +import{o as b,c as x,a as o,b as s,w as l,r as g,d as u,u as k,e as v,f as N,g as w,l as z,h as y,E as d,i as C,s as V,j as M}from"./index-D__NZX4I.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const B={class:"login-page"},E={class:"login-card"},K={class:"input-wrap"},U={class:"input-wrap"},$={class:"login-guest"},j={__name:"Login",setup(I){const c=k(),a=g({username:"",password:""}),n=g(!1);async function r(){if(!a.value.username||!a.value.password){d.warning("请输入用户名和密码");return}n.value=!0;try{const t=await C(a.value);V(t.data),d.success("登录成功"),c.push("/")}catch{}n.value=!1}async function h(){n.value=!0;try{const t=await M();V(t.data),d.success("已进入访客模式"),c.push("/")}catch{}n.value=!1}return(t,e)=>{const p=u("el-icon"),_=u("el-input"),m=u("el-form-item"),f=u("el-button"),L=u("el-form");return b(),x("div",B,[o("div",E,[e[4]||(e[4]=o("div",{class:"login-header"},[o("div",{class:"logo"},"LM"),o("h1",null,"LAN Manager"),o("p",null,"轻量级局域网资产管理平台")],-1)),s(L,{model:a.value,class:"login-form"},{default:l(()=>[s(m,null,{default:l(()=>[o("div",K,[s(p,{class:"input-icon"},{default:l(()=>[s(v(N))]),_:1}),s(_,{modelValue:a.value.username,"onUpdate:modelValue":e[0]||(e[0]=i=>a.value.username=i),placeholder:"用户名",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(m,null,{default:l(()=>[o("div",U,[s(p,{class:"input-icon"},{default:l(()=>[s(v(z))]),_:1}),s(_,{modelValue:a.value.password,"onUpdate:modelValue":e[1]||(e[1]=i=>a.value.password=i),type:"password","show-password":"",placeholder:"密码",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(f,{type:"primary",size:"large",class:"login-btn",loading:n.value,onClick:r},{default:l(()=>[...e[2]||(e[2]=[y("登录",-1)])]),_:1},8,["loading"]),o("div",$,[s(f,{text:"",size:"small",onClick:h},{default:l(()=>[...e[3]||(e[3]=[y("访客模式进入",-1)])]),_:1})])]),_:1},8,["model"])]),e[5]||(e[5]=o("div",{class:"login-footer"}," © LAN Manager ",-1))])}}},q=A(j,[["__scopeId","data-v-92ccba4b"]]);export{q as default}; diff --git a/server/static/assets/Logs-B37lkquY.js b/server/static/assets/Logs-B37lkquY.js new file mode 100644 index 0000000..e895c8a --- /dev/null +++ b/server/static/assets/Logs-B37lkquY.js @@ -0,0 +1 @@ +import{k as V,aq as $,o as w,c as k,a as o,b as t,w as d,t as f,ar as N,m as B,r as i,d as r,as as C,h as b}from"./index-D__NZX4I.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";const M={class:"page"},T={class:"page-header"},U={class:"header-actions"},I={class:"card"},q={class:"table-header"},E={class:"pagination-bar"},F={__name:"Logs",setup(H){const h=i([]),p=i(0),c=i(1),u=i(20),_=i(""),g=i(!1);V(()=>v());async function v(){g.value=!0;const l=await $({page:c.value,page_size:u.value,search:_.value});h.value=l.data.list,p.value=l.data.total,g.value=!1}function y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const s=m=>String(m).padStart(2,"0");return`${e.getFullYear()}-${s(e.getMonth()+1)}-${s(e.getDate())} ${s(e.getHours())}:${s(e.getMinutes())}:${s(e.getSeconds())}`}return(l,e)=>{const s=r("el-input"),m=r("el-button"),n=r("el-table-column"),z=r("el-tag"),x=r("el-table"),D=r("el-pagination"),S=C("loading");return w(),k("div",M,[o("div",T,[e[4]||(e[4]=o("div",null,[o("div",{class:"page-title"},"操作日志"),o("div",{class:"page-subtitle"},"查看最近的系统操作记录")],-1)),o("div",U,[t(s,{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=a=>_.value=a),placeholder:"搜索操作内容",clearable:"",style:{width:"240px"}},null,8,["modelValue"]),t(m,{type:"primary",onClick:v},{default:d(()=>[...e[3]||(e[3]=[b("查询",-1)])]),_:1})])]),o("div",I,[o("div",q,"共 "+f(p.value)+" 条记录",1),N((w(),B(x,{data:h.value,stripe:"",style:{width:"100%"},class:"modern-table"},{default:d(()=>[t(n,{prop:"id",label:"ID",width:"70"}),t(n,{prop:"action",label:"操作",width:"140"}),t(n,{prop:"target_type",label:"对象",width:"100"},{default:d(({row:a})=>[t(z,{size:"small",effect:"plain",round:""},{default:d(()=>[b(f(a.target_type),1)]),_:2},1024)]),_:1}),t(n,{prop:"target_name",label:"对象名称","min-width":"160"}),t(n,{prop:"details",label:"详情","min-width":"240","show-overflow-tooltip":""}),t(n,{prop:"created_at",label:"时间",width:"170"},{default:d(({row:a})=>[b(f(y(a.created_at)),1)]),_:1})]),_:1},8,["data"])),[[S,g.value]]),o("div",E,[t(D,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=a=>c.value=a),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=a=>u.value=a),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",total:p.value,onChange:v},null,8,["current-page","page-size","total"])])])])}}},j=L(F,[["__scopeId","data-v-b1b09e4f"]]);export{j as default}; diff --git a/server/static/assets/MachineDetail-BeE91e36.css b/server/static/assets/MachineDetail-BeE91e36.css new file mode 100644 index 0000000..1cd10ef --- /dev/null +++ b/server/static/assets/MachineDetail-BeE91e36.css @@ -0,0 +1 @@ +.detail-header[data-v-6f4bd63e]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.header-left[data-v-6f4bd63e]{display:flex;align-items:center;gap:12px}.host-title[data-v-6f4bd63e]{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}.status-badge[data-v-6f4bd63e]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600}.status-badge.online[data-v-6f4bd63e]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-6f4bd63e]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-6f4bd63e]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-6f4bd63e]{background:#f8717126;color:#f87171}.vm-status-tag[data-v-6f4bd63e]{font-size:12px;height:24px;margin-right:4px}.vm-status-grid[data-v-6f4bd63e]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.vm-stat-item[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:var(--surface-hover);border-radius:8px}.vm-stat-label[data-v-6f4bd63e]{font-size:11px;color:var(--text-muted)}.vm-stat-value[data-v-6f4bd63e]{font-size:14px;font-weight:600;color:var(--text)}.vm-stat-value.running[data-v-6f4bd63e]{color:#15803d}.vm-stat-value.stopped[data-v-6f4bd63e]{color:#b91c1c}html.dark .vm-stat-value.running[data-v-6f4bd63e]{color:#34d399}html.dark .vm-stat-value.stopped[data-v-6f4bd63e]{color:#f87171}.host-subtitle[data-v-6f4bd63e]{margin-top:4px;font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.host-subtitle span+span[data-v-6f4bd63e]:before{content:"·";margin-right:8px;color:var(--text-muted)}.detail-grid[data-v-6f4bd63e]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-grid>.card[data-v-6f4bd63e]{margin-bottom:0}@media (max-width: 900px){.detail-grid[data-v-6f4bd63e]{grid-template-columns:1fr}}.info-list[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:10px}.info-item[data-v-6f4bd63e]{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:var(--surface-hover);border-radius:8px;font-size:13px;transition:background .2s ease}.info-label[data-v-6f4bd63e]{color:var(--text-secondary)}.info-value[data-v-6f4bd63e]{font-weight:500;color:var(--text)}.text-muted[data-v-6f4bd63e]{color:var(--text-muted)}.status-pills[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:10px}.status-pill[data-v-6f4bd63e]{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface-hover);border-radius:10px;transition:background .2s ease}.sp-icon[data-v-6f4bd63e]{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;flex-shrink:0}.sp-icon.cpu[data-v-6f4bd63e]{background:linear-gradient(135deg,#3b82f6,#60a5fa)}.sp-icon.mem[data-v-6f4bd63e]{background:linear-gradient(135deg,#22c55e,#4ade80)}.sp-icon.disk[data-v-6f4bd63e]{background:linear-gradient(135deg,#f59e0b,#fbbf24)}.sp-info[data-v-6f4bd63e]{flex:1;min-width:0}.sp-title[data-v-6f4bd63e]{font-size:12px;color:var(--text-secondary);margin-bottom:6px}.sp-bar[data-v-6f4bd63e]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.sp-fill[data-v-6f4bd63e]{height:100%;border-radius:3px;background:#3b82f6;transition:width .3s ease}.sp-num[data-v-6f4bd63e]{font-size:14px;font-weight:700;color:var(--text);min-width:36px;text-align:right}.status-pill.disk-multi[data-v-6f4bd63e]{flex-wrap:wrap}.multi-disk-info[data-v-6f4bd63e]{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;max-height:220px;overflow-y:auto}.detail-disk-item[data-v-6f4bd63e]{display:flex;align-items:center;gap:10px;font-size:12px}.dd-mount[data-v-6f4bd63e]{min-width:50px;color:var(--text-secondary);font-weight:500}.dd-bar-wrap[data-v-6f4bd63e]{flex:1;min-width:80px}.dd-bar[data-v-6f4bd63e]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.dd-fill[data-v-6f4bd63e]{height:100%;border-radius:3px}.dd-val[data-v-6f4bd63e]{white-space:nowrap;color:var(--text-secondary)}.dd-pct[data-v-6f4bd63e]{min-width:32px;text-align:right;font-weight:700;color:var(--text)}.uptime-line[data-v-6f4bd63e]{margin-top:14px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary);padding:8px 10px;background:var(--surface-hover);border-radius:8px;transition:background .2s ease}.sync-actions[data-v-6f4bd63e]{margin-bottom:10px}.ssh-actions[data-v-6f4bd63e]{margin-bottom:12px}.ssh-result[data-v-6f4bd63e]{background:var(--surface-hover);border-radius:10px;padding:12px;transition:background .2s ease}.result-grid[data-v-6f4bd63e]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-item[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:2px}.result-item.full[data-v-6f4bd63e]{grid-column:1 / -1}.rl[data-v-6f4bd63e]{font-size:11px;color:var(--text-muted)}.rv[data-v-6f4bd63e]{font-size:13px;color:var(--text);font-weight:500}.service-list[data-v-6f4bd63e],.rel-list[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:10px}.service-row[data-v-6f4bd63e]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.service-main[data-v-6f4bd63e]{display:flex;align-items:center;gap:10px}.service-name[data-v-6f4bd63e]{font-weight:600;font-size:14px}.service-port[data-v-6f4bd63e]{font-size:12px;color:var(--text-muted);background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border)}.service-target[data-v-6f4bd63e]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--primary)}.target-note[data-v-6f4bd63e]{color:var(--text-muted)}.service-note[data-v-6f4bd63e]{font-size:12px;color:var(--text-secondary);flex:1 1 100%}.service-actions[data-v-6f4bd63e]{display:flex;gap:6px}.rel-row[data-v-6f4bd63e]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.rel-arrow[data-v-6f4bd63e]{display:flex;align-items:center;gap:8px;font-size:14px}.rel-host[data-v-6f4bd63e]{font-weight:600}.rel-meta[data-v-6f4bd63e]{display:flex;align-items:center;gap:8px;font-size:12px}.rel-port[data-v-6f4bd63e]{background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border);color:var(--text-secondary)}.rel-note[data-v-6f4bd63e]{color:var(--text-muted)}.rel-actions[data-v-6f4bd63e]{display:flex;gap:6px}.offline-stats[data-v-6f4bd63e]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}.stat-box[data-v-6f4bd63e]{background:var(--surface-hover);border-radius:10px;padding:12px;text-align:center}.stat-num[data-v-6f4bd63e]{font-size:20px;font-weight:700;color:var(--text)}.stat-reason[data-v-6f4bd63e]{font-size:13px;font-weight:600;color:var(--danger);word-break:break-all}.stat-label[data-v-6f4bd63e]{font-size:12px;color:var(--text-muted);margin-top:4px}.offline-logs[data-v-6f4bd63e]{background:var(--surface-hover);border-radius:10px;padding:12px}.log-title[data-v-6f4bd63e]{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:10px}.log-row[data-v-6f4bd63e]{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:12px}.log-row[data-v-6f4bd63e]:last-child{border-bottom:none}.log-time[data-v-6f4bd63e]{color:var(--text-muted);min-width:140px}.log-reason[data-v-6f4bd63e]{flex:1;color:var(--text-secondary)}.log-dur[data-v-6f4bd63e]{color:var(--text);font-weight:500}.log-dur.pending[data-v-6f4bd63e]{color:var(--warning)} diff --git a/server/static/assets/MachineDetail-CV5DfGMb.js b/server/static/assets/MachineDetail-CV5DfGMb.js new file mode 100644 index 0000000..9fc77fe --- /dev/null +++ b/server/static/assets/MachineDetail-CV5DfGMb.js @@ -0,0 +1 @@ +import{k as Ne,I as qe,J as Fe,K as Le,W as Ke,X as Oe,o as i,c as d,a as l,b as s,w as n,h as c,t as u,p as ce,e as _,n as m,m as C,Y as Ae,Z as Ge,_ as se,$ as ae,S as X,N as U,O as T,a0 as We,M as fe,a1 as je,r as h,d as S,G as Ye,u as Je,L as Qe,Q as Xe,a2 as Ze,a3 as et,a4 as tt,a5 as lt,a6 as st,a7 as ye,a8 as he,a9 as A,aa as at,E as P,ab as Ve,ac as ge,q as ot,ad as nt,T as it,ae as ut,af as dt,ag as rt,ah as vt,ai as mt,aj as _t,ak as pt}from"./index-D__NZX4I.js";import{_ as ct}from"./_plugin-vue_export-helper-DlAUqK2U.js";const ft={key:0,class:"page"},yt={class:"detail-header"},ht={class:"header-left"},Vt={class:"host-title"},gt={class:"host-subtitle"},kt={key:0},bt={key:1},wt={key:0,class:"header-actions"},Mt={class:"detail-grid"},xt={class:"card"},St={class:"info-list"},$t={class:"info-item"},Ct={class:"info-value"},Ut={key:0,class:"info-item"},Pt={class:"info-value"},Dt={class:"info-item"},Tt={class:"info-value"},Et={key:1,class:"info-item"},Ht={class:"info-value"},It={key:2,class:"info-item"},Rt={class:"info-value text-muted"},zt={key:0,class:"card"},Bt={class:"vm-status-grid"},Nt={class:"vm-stat-item"},qt={key:0,class:"vm-stat-item"},Ft={class:"vm-stat-value"},Lt={key:1,class:"vm-stat-item"},Kt={class:"vm-stat-value"},Ot={key:2,class:"vm-stat-item"},At={class:"vm-stat-value"},Gt={key:1,class:"card"},Wt={class:"status-pills"},jt={key:0,class:"status-pill"},Yt={class:"sp-info"},Jt={class:"sp-title"},Qt={class:"sp-bar"},Xt={class:"sp-num"},Zt={key:1,class:"status-pill"},el={class:"sp-info"},tl={class:"sp-title"},ll={class:"sp-bar"},sl={class:"sp-num"},al={key:2,class:"status-pill disk-multi"},ol={class:"sp-info"},nl={class:"sp-title"},il={class:"sp-bar"},ul={class:"sp-num"},dl={class:"sp-info multi-disk-info"},rl={class:"dd-mount"},vl={class:"dd-bar-wrap"},ml={class:"dd-bar"},_l={class:"dd-val"},pl={class:"dd-pct"},cl={key:0,class:"uptime-line"},fl={key:2,class:"card"},yl={key:0,class:"sync-actions"},hl={class:"ssh-actions"},Vl={key:1,class:"ssh-result"},gl={class:"result-grid"},kl={class:"result-item"},bl={class:"rv"},wl={class:"result-item"},Ml={class:"rv"},xl={class:"result-item"},Sl={class:"rv"},$l={class:"result-item"},Cl={class:"rv"},Ul={class:"result-item"},Pl={class:"rv"},Dl={class:"result-item"},Tl={class:"rv"},El={class:"result-item full"},Hl={class:"rv"},Il={class:"card"},Rl={class:"card-title"},zl={key:0,class:"service-list"},Bl={class:"service-main"},Nl={class:"service-name"},ql={class:"service-port"},Fl={key:0,class:"service-target"},Ll={key:0,class:"target-note"},Kl={key:1,class:"service-note"},Ol={key:2,class:"service-actions"},Al={key:3,class:"card"},Gl={class:"offline-stats"},Wl={class:"stat-box"},jl={class:"stat-num"},Yl={class:"stat-box"},Jl={class:"stat-num"},Ql={key:0,class:"stat-box"},Xl={class:"stat-reason"},Zl={key:0,class:"offline-logs"},es={class:"log-time"},ts={class:"log-reason"},ls={key:0,class:"log-dur"},ss={key:1,class:"log-dur pending"},as={key:4,class:"card"},os={class:"card-title"},ns={key:0,class:"rel-list"},is={class:"rel-arrow"},us={class:"rel-host"},ds={class:"rel-host"},rs={class:"rel-meta"},vs={key:0,class:"rel-port"},ms={key:1,class:"rel-note"},_s={class:"rel-actions"},ps={__name:"MachineDetail",setup(cs){const ke=je(),be=Je(),k=Ye().is_admin,V=ke.params.id,o=h(null),Z=h([]),ee=h([]),z=h(!1),f=h({}),B=h([]),te=h([]),oe=h([]),q=h(!1),p=h({}),F=h(!1),E=h({username:"",password:""}),M=h(null),N=h(!1),L=h(!1),b=h({}),K=h(!1),w=h({}),we=ot(()=>{const a={};return B.value.forEach(e=>a[e.id]=e.hostname),a});let le=null;Ne(async()=>{if(await H(),await G(),k){await W();const e=await Qe();B.value=e.data;try{const r=await Xe();oe.value=r.data}catch{}await j()}await qe();const a=Fe||1e4;a>0&&(le=setInterval(async()=>{await H(),await G(),k&&(await W(),await j())},a))}),Le(()=>{le&&clearInterval(le)});async function H(){const a=await Ke(V);if(o.value=a.data.machine,k){const e=await Ze(V);te.value=e.data}o.value&&(o.value.cpu_info||o.value.memory_info||o.value.disk_info||o.value.uptime)?M.value={hostname:o.value.hostname,os_version:o.value.os_version,cpu:o.value.cpu_info,memory:o.value.memory_info,disk:o.value.disk_info,uptime:o.value.uptime,listen_ports:o.value.listen_ports?o.value.listen_ports.split(",").map(e=>e.trim()).filter(Boolean):[]}:M.value=null}async function G(){const a=await Oe(V);Z.value=a.data}async function W(){const a=await et(),e={};B.value.forEach(r=>e[r.id]=r.hostname),ee.value=a.data.filter(r=>r.source_machine_id==V||r.target_machine_id==V).map(r=>({...r,source_hostname:e[r.source_machine_id]||r.source_machine_id,target_hostname:e[r.target_machine_id]||r.target_machine_id}))}function Me(a){p.value={...a,ssh_port:a.ssh_port||22,ssh_username:a.ssh_username||"",ssh_password:"",pve_host_id:a.pve_host_id||null,pve_vmid:a.pve_vmid||""},q.value=!0}async function xe(){if(o.value.ssh_username){N.value=!0;try{const a=await Ve(V,{username:o.value.ssh_username,password:""});M.value=a.data;const e={...M.value};delete e.hostname,await ge(V,e),P.success("获取并同步成功"),await H(),N.value=!1;return}catch{N.value=!1}}E.value={username:o.value.ssh_username||"",password:""},F.value=!0}async function Se(){await it(p.value.id,p.value),P.success("保存成功"),q.value=!1,H()}async function j(){if(!(!o.value||!o.value.pve_host_id||!o.value.pve_vmid))try{const a=await tt(V);f.value=a.data}catch{f.value={_error:!0}}}async function $e(){try{await A.confirm("确定要启动虚拟机吗?","确认启动",{type:"info"}),z.value=!0,await mt(V),P.success("虚拟机已启动"),await j(),H()}catch{}z.value=!1}async function Ce(){try{await A.confirm("确定要关闭虚拟机吗?","确认关闭",{type:"warning"}),z.value=!0,await _t(V),P.success("虚拟机已关闭"),await j(),H()}catch{}z.value=!1}async function Ue(){try{await A.confirm("确定删除该机器?","提示",{type:"warning"}),await at(V),P.success("删除成功"),be.back()}catch{}}async function Pe(){N.value=!0;try{const a=await Ve(V,E.value);M.value=a.data,F.value=!1;const e={...M.value};delete e.hostname,await ge(V,e),P.success("获取并同步成功"),await H()}catch{}N.value=!1}function ne(a){b.value=a?{...a,target_machine_id:a.target_machine_id||null,target_notes:a.target_notes||""}:{name:"",port:80,protocol:"TCP",notes:"",target_machine_id:null,target_notes:""},L.value=!0}async function De(){const a={...b.value};a.id?await ut(a.id,a):await dt(V,a),P.success("保存成功"),L.value=!1,G()}async function Te(a){try{await A.confirm("确定删除该服务?","提示",{type:"warning"}),await pt(a.id),P.success("删除成功"),G()}catch{}}function ie(a){w.value=a?{...a}:{source_machine_id:Number(V),target_machine_id:null,relation_type:"dependency",source_port:null,target_port:null,notes:""},K.value=!0}async function Ee(){const a={...w.value};a.id?await rt(a.id,a):await vt(a),P.success("保存成功"),K.value=!1,W()}async function He(a){try{await A.confirm("确定删除该关系?","提示",{type:"warning"}),await nt(a.id),P.success("删除成功"),W()}catch{}}function Ie(a){return{port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[a]||a}function D(a){if(!a)return 0;const e=a.match(/\((\d+)%\)/)||a.match(/(\d+(?:\.\d+)?)%/);if(e){const r=parseFloat(e[1]);return isNaN(r)?0:Math.min(100,Math.max(0,Math.round(r)))}return 0}function Re(a){return a>=90?"#f87171":a>=70?"#fbbf24":"#34d399"}function ue(a){return a>=90?"#f87171":a>=80?"#fbbf24":"#60a5fa"}function de(a){if(!a)return[];const e=[],r=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let v;for(;(v=r.exec(a))!==null;)e.push({mount:v[1],detail:v[2],percent:parseInt(v[3],10)});if(e.length>0)return e;const $=D(a),I=extractDetail(a);return I?[{mount:"",detail:I,percent:$}]:[]}function re(a){if(!a)return"-";const e=new Date(a);if(isNaN(e.getTime()))return a;const r=v=>String(v).padStart(2,"0");return`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}function ve(a){if(!a&&a!==0)return"-";const e=Number(a);if(e<60)return`${e}秒`;if(e<3600)return`${Math.floor(e/60)}分${e%60}秒`;const r=Math.floor(e/3600),v=Math.floor(e%3600/60);if(r<24)return`${r}时${v}分`;const $=Math.floor(r/24),I=r%24;return`${$}天${I}时${v}分`}function me(a){if(!a&&a!==0)return"-";const e=Number(a);return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}function ze(a){if(!a&&a!==0)return"-";const e=Number(a),r=Math.floor(e/86400),v=Math.floor(e%86400/3600),$=Math.floor(e%3600/60);return r>0?`${r}天${v}时${$}分`:v>0?`${v}时${$}分`:`${$}分`}return(a,e)=>{var _e,pe;const r=S("el-icon"),v=S("el-button"),$=S("el-tag"),I=S("el-empty"),x=S("el-input"),y=S("el-form-item"),Y=S("el-form"),J=S("el-dialog"),Q=S("el-input-number"),g=S("el-option"),R=S("el-select"),Be=S("el-divider");return o.value?(i(),d("div",ft,[l("div",yt,[l("div",ht,[s(v,{text:"",circle:"",onClick:e[0]||(e[0]=t=>a.$router.back())},{default:n(()=>[s(r,null,{default:n(()=>[s(_(lt))]),_:1})]),_:1}),l("div",null,[l("div",Vt,[c(u(o.value.hostname)+" ",1),l("span",{class:ce(["status-badge",o.value.is_online?"online":"offline"])},u(o.value.is_online?"在线":"离线"),3)]),l("div",gt,[_(k)?(i(),d("span",kt,u(o.value.ip),1)):m("",!0),l("span",null,u(o.value.os_type),1),o.value.os_version?(i(),d("span",bt,u(o.value.os_version),1)):m("",!0)])])]),_(k)?(i(),d("div",wt,[o.value.pve_host_id&&o.value.pve_vmid?(i(),C($,{key:0,size:"small",type:f.value._error?"info":f.value.status==="running"?"success":f.value.status==="stopped"?"danger":"info",effect:"light",class:"vm-status-tag"},{default:n(()=>[c(u(f.value._error?"VM检测失败":f.value.status==="running"?"VM运行中":f.value.status==="stopped"?"VM已停止":"VM检测中"),1)]),_:1},8,["type"])):m("",!0),o.value.pve_host_id&&o.value.pve_vmid?(i(),C(v,{key:1,type:"success",icon:_(Ae),loading:z.value,onClick:$e,disabled:f.value.status==="running"||f.value._error},{default:n(()=>[...e[37]||(e[37]=[c("启动",-1)])]),_:1},8,["icon","loading","disabled"])):m("",!0),o.value.pve_host_id&&o.value.pve_vmid?(i(),C(v,{key:2,type:"warning",icon:_(Ge),loading:z.value,onClick:Ce,disabled:f.value.status==="stopped"||f.value._error},{default:n(()=>[...e[38]||(e[38]=[c("关闭",-1)])]),_:1},8,["icon","loading","disabled"])):m("",!0),s(v,{text:"",icon:_(se),onClick:e[1]||(e[1]=t=>Me(o.value))},{default:n(()=>[...e[39]||(e[39]=[c("编辑",-1)])]),_:1},8,["icon"]),s(v,{text:"",type:"danger",icon:_(ae),onClick:Ue},{default:n(()=>[...e[40]||(e[40]=[c("删除",-1)])]),_:1},8,["icon"])])):m("",!0)]),l("div",Mt,[l("div",xt,[e[46]||(e[46]=l("div",{class:"card-title"},"基本信息",-1)),l("div",St,[l("div",$t,[e[41]||(e[41]=l("span",{class:"info-label"},"IP",-1)),l("span",Ct,u(o.value.ip),1)]),_(k)?(i(),d("div",Ut,[e[42]||(e[42]=l("span",{class:"info-label"},"MAC",-1)),l("span",Pt,u(o.value.mac||"-"),1)])):m("",!0),l("div",Dt,[e[43]||(e[43]=l("span",{class:"info-label"},"系统",-1)),l("span",Tt,u(o.value.os_type)+" "+u(o.value.os_version||""),1)]),_(k)?(i(),d("div",Et,[e[44]||(e[44]=l("span",{class:"info-label"},"SSH 端口",-1)),l("span",Ht,u(o.value.ssh_port||22),1)])):m("",!0),_(k)?(i(),d("div",It,[e[45]||(e[45]=l("span",{class:"info-label"},"备注",-1)),l("span",Rt,u(o.value.notes||"-"),1)])):m("",!0)])]),o.value.pve_host_id&&o.value.pve_vmid&&f.value.status?(i(),d("div",zt,[e[51]||(e[51]=l("div",{class:"card-title"},"PVE 虚拟机状态",-1)),l("div",Bt,[l("div",Nt,[e[47]||(e[47]=l("span",{class:"vm-stat-label"},"运行状态",-1)),l("span",{class:ce(["vm-stat-value",f.value.status])},u(f.value.status==="running"?"运行中":"已停止"),3)]),f.value.cpu!==void 0?(i(),d("div",qt,[e[48]||(e[48]=l("span",{class:"vm-stat-label"},"CPU 使用率",-1)),l("span",Ft,u((_e=f.value.cpu)!=null&&_e.toFixed?f.value.cpu.toFixed(1):f.value.cpu)+"%",1)])):m("",!0),f.value.memory_used!==void 0&&f.value.memory_total?(i(),d("div",Lt,[e[49]||(e[49]=l("span",{class:"vm-stat-label"},"内存使用",-1)),l("span",Kt,u(me(f.value.memory_used))+" / "+u(me(f.value.memory_total)),1)])):m("",!0),f.value.uptime?(i(),d("div",Ot,[e[50]||(e[50]=l("span",{class:"vm-stat-label"},"运行时长",-1)),l("span",At,u(ze(f.value.uptime)),1)])):m("",!0)])])):m("",!0),o.value.cpu_info||o.value.memory_info||o.value.disk_info?(i(),d("div",Gt,[e[56]||(e[56]=l("div",{class:"card-title"},"系统状态",-1)),l("div",Wt,[o.value.cpu_info?(i(),d("div",jt,[e[52]||(e[52]=l("div",{class:"sp-icon cpu"},"CPU",-1)),l("div",Yt,[l("div",Jt,u(o.value.cpu_info),1),l("div",Qt,[l("div",{class:"sp-fill",style:X({width:D(o.value.cpu_info)+"%"})},null,4)])]),l("div",Xt,u(D(o.value.cpu_info))+"%",1)])):m("",!0),o.value.memory_info?(i(),d("div",Zt,[e[53]||(e[53]=l("div",{class:"sp-icon mem"},"MEM",-1)),l("div",el,[l("div",tl,u(o.value.memory_info),1),l("div",ll,[l("div",{class:"sp-fill",style:X({width:D(o.value.memory_info)+"%",background:Re(D(o.value.memory_info))})},null,4)])]),l("div",sl,u(D(o.value.memory_info))+"%",1)])):m("",!0),o.value.disk_info?(i(),d("div",al,[de(o.value.disk_info).length<=1?(i(),d(U,{key:0},[e[54]||(e[54]=l("div",{class:"sp-icon disk"},"DISK",-1)),l("div",ol,[l("div",nl,u(o.value.disk_info),1),l("div",il,[l("div",{class:"sp-fill",style:X({width:D(o.value.disk_info)+"%",background:ue(D(o.value.disk_info))})},null,4)])]),l("div",ul,u(D(o.value.disk_info))+"%",1)],64)):(i(),d(U,{key:1},[e[55]||(e[55]=l("div",{class:"sp-icon disk"},"DISK",-1)),l("div",dl,[(i(!0),d(U,null,T(de(o.value.disk_info),(t,O)=>(i(),d("div",{key:O,class:"detail-disk-item"},[l("span",rl,u(t.mount),1),l("div",vl,[l("div",ml,[l("div",{class:"dd-fill",style:X({width:t.percent+"%",background:ue(t.percent)})},null,4)])]),l("span",_l,u(t.detail),1),l("span",pl,u(t.percent)+"%",1)]))),128))])],64))])):m("",!0)]),o.value.uptime?(i(),d("div",cl,[s(r,null,{default:n(()=>[s(_(st))]),_:1}),l("span",null,"运行时间 "+u(o.value.uptime),1)])):m("",!0)])):m("",!0),_(k)?(i(),d("div",fl,[e[65]||(e[65]=l("div",{class:"card-title"},"SSH 系统信息",-1)),o.value.cpu_info||o.value.memory_info||o.value.disk_info||o.value.uptime?(i(),d("div",yl,[s($,{size:"small",effect:"plain",round:""},{default:n(()=>[c("上次同步 "+u(re(o.value.ssh_synced_at)),1)]),_:1})])):m("",!0),l("div",hl,[s(v,{type:"primary",icon:_(We),onClick:xe},{default:n(()=>[...e[57]||(e[57]=[c("获取系统信息",-1)])]),_:1},8,["icon"])]),M.value?(i(),d("div",Vl,[l("div",gl,[l("div",kl,[e[58]||(e[58]=l("span",{class:"rl"},"主机名",-1)),l("span",bl,u(M.value.hostname),1)]),l("div",wl,[e[59]||(e[59]=l("span",{class:"rl"},"系统版本",-1)),l("span",Ml,u(M.value.os_version),1)]),l("div",xl,[e[60]||(e[60]=l("span",{class:"rl"},"CPU",-1)),l("span",Sl,u(M.value.cpu),1)]),l("div",$l,[e[61]||(e[61]=l("span",{class:"rl"},"内存",-1)),l("span",Cl,u(M.value.memory),1)]),l("div",Ul,[e[62]||(e[62]=l("span",{class:"rl"},"磁盘",-1)),l("span",Pl,u(M.value.disk),1)]),l("div",Dl,[e[63]||(e[63]=l("span",{class:"rl"},"运行时间",-1)),l("span",Tl,u(M.value.uptime),1)]),l("div",El,[e[64]||(e[64]=l("span",{class:"rl"},"监听端口",-1)),l("span",Hl,u((pe=M.value.listen_ports)==null?void 0:pe.join(", ")),1)])])])):m("",!0)])):m("",!0),l("div",Il,[l("div",Rl,[e[67]||(e[67]=c(" 服务列表 ",-1)),_(k)?(i(),C(v,{key:0,size:"small",type:"primary",icon:_(fe),onClick:e[2]||(e[2]=t=>ne())},{default:n(()=>[...e[66]||(e[66]=[c("添加服务",-1)])]),_:1},8,["icon"])):m("",!0)]),Z.value.length?(i(),d("div",zl,[(i(!0),d(U,null,T(Z.value,t=>(i(),d("div",{key:t.id,class:"service-row"},[l("div",Bl,[l("div",Nl,u(t.name),1),l("div",ql,u(t.port)+" / "+u(t.protocol),1)]),_(k)&&t.target_machine_id?(i(),d("div",Fl,[s(r,null,{default:n(()=>[s(_(ye))]),_:1}),l("span",null,u(we.value[t.target_machine_id]||t.target_machine_id),1),t.target_notes?(i(),d("span",Ll,u(t.target_notes),1)):m("",!0)])):m("",!0),_(k)&&t.notes?(i(),d("div",Kl,u(t.notes),1)):m("",!0),_(k)?(i(),d("div",Ol,[s(v,{text:"",size:"small",icon:_(se),onClick:he(O=>ne(t),["stop"])},{default:n(()=>[...e[68]||(e[68]=[c("编辑",-1)])]),_:1},8,["icon","onClick"]),s(v,{text:"",size:"small",type:"danger",icon:_(ae),onClick:he(O=>Te(t),["stop"])},{default:n(()=>[...e[69]||(e[69]=[c("删除",-1)])]),_:1},8,["icon","onClick"])])):m("",!0)]))),128))])):(i(),C(I,{key:1,description:"暂无服务","image-size":80}))]),_(k)?(i(),d("div",Al,[e[74]||(e[74]=l("div",{class:"card-title"},"离线统计",-1)),l("div",Gl,[l("div",Wl,[l("div",jl,u(o.value.offline_count||0),1),e[70]||(e[70]=l("div",{class:"stat-label"},"离线次数",-1))]),l("div",Yl,[l("div",Jl,u(ve(o.value.total_offline_seconds)),1),e[71]||(e[71]=l("div",{class:"stat-label"},"累计离线时长",-1))]),o.value.last_offline_reason?(i(),d("div",Ql,[l("div",Xl,u(o.value.last_offline_reason),1),e[72]||(e[72]=l("div",{class:"stat-label"},"上次离线原因",-1))])):m("",!0)]),te.value.length?(i(),d("div",Zl,[e[73]||(e[73]=l("div",{class:"log-title"},"最近离线记录",-1)),(i(!0),d(U,null,T(te.value.slice(0,5),t=>(i(),d("div",{key:t.id,class:"log-row"},[l("span",es,u(re(t.started_at)),1),l("span",ts,u(t.reason||"未知原因"),1),t.duration_seconds!==null&&t.duration_seconds!==void 0?(i(),d("span",ls,"持续 "+u(ve(t.duration_seconds)),1)):(i(),d("span",ss,"未恢复"))]))),128))])):m("",!0)])):m("",!0),_(k)?(i(),d("div",as,[l("div",os,[e[76]||(e[76]=c(" 关联关系 ",-1)),s(v,{size:"small",type:"primary",icon:_(fe),onClick:e[3]||(e[3]=t=>ie())},{default:n(()=>[...e[75]||(e[75]=[c("添加关系",-1)])]),_:1},8,["icon"])]),ee.value.length?(i(),d("div",ns,[(i(!0),d(U,null,T(ee.value,t=>(i(),d("div",{key:t.id,class:"rel-row"},[l("div",is,[l("span",us,u(t.source_hostname),1),s(r,null,{default:n(()=>[s(_(ye))]),_:1}),l("span",ds,u(t.target_hostname),1)]),l("div",rs,[s($,{size:"small",effect:"plain",round:""},{default:n(()=>[c(u(Ie(t.relation_type)),1)]),_:2},1024),t.source_port?(i(),d("span",vs,u(t.source_port)+" → "+u(t.target_port||"-"),1)):m("",!0),t.notes?(i(),d("span",ms,u(t.notes),1)):m("",!0)]),l("div",_s,[s(v,{text:"",size:"small",icon:_(se),onClick:O=>ie(t)},{default:n(()=>[...e[77]||(e[77]=[c("编辑",-1)])]),_:1},8,["icon","onClick"]),s(v,{text:"",size:"small",type:"danger",icon:_(ae),onClick:O=>He(t)},{default:n(()=>[...e[78]||(e[78]=[c("删除",-1)])]),_:1},8,["icon","onClick"])])]))),128))])):(i(),C(I,{key:1,description:"暂无关系","image-size":80}))])):m("",!0)]),s(J,{modelValue:F.value,"onUpdate:modelValue":e[7]||(e[7]=t=>F.value=t),title:"SSH 获取系统信息",width:"360px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[6]||(e[6]=t=>F.value=!1)},{default:n(()=>[...e[79]||(e[79]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",loading:N.value,onClick:Pe},{default:n(()=>[...e[80]||(e[80]=[c("连接",-1)])]),_:1},8,["loading"])]),default:n(()=>[s(Y,{model:E.value,"label-width":"80px"},{default:n(()=>[s(y,{label:"用户名"},{default:n(()=>[s(x,{modelValue:E.value.username,"onUpdate:modelValue":e[4]||(e[4]=t=>E.value.username=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"密码"},{default:n(()=>[s(x,{modelValue:E.value.password,"onUpdate:modelValue":e[5]||(e[5]=t=>E.value.password=t),type:"password","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),s(J,{modelValue:q.value,"onUpdate:modelValue":e[20]||(e[20]=t=>q.value=t),title:"编辑机器",width:"480px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[19]||(e[19]=t=>q.value=!1)},{default:n(()=>[...e[82]||(e[82]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",onClick:Se},{default:n(()=>[...e[83]||(e[83]=[c("保存",-1)])]),_:1})]),default:n(()=>[s(Y,{model:p.value,"label-width":"90px"},{default:n(()=>[s(y,{label:"主机名",required:""},{default:n(()=>[s(x,{modelValue:p.value.hostname,"onUpdate:modelValue":e[8]||(e[8]=t=>p.value.hostname=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"IP",required:""},{default:n(()=>[s(x,{modelValue:p.value.ip,"onUpdate:modelValue":e[9]||(e[9]=t=>p.value.ip=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"MAC"},{default:n(()=>[s(x,{modelValue:p.value.mac,"onUpdate:modelValue":e[10]||(e[10]=t=>p.value.mac=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"SSH端口"},{default:n(()=>[s(Q,{modelValue:p.value.ssh_port,"onUpdate:modelValue":e[11]||(e[11]=t=>p.value.ssh_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"SSH用户"},{default:n(()=>[s(x,{modelValue:p.value.ssh_username,"onUpdate:modelValue":e[12]||(e[12]=t=>p.value.ssh_username=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"SSH密码"},{default:n(()=>[s(x,{modelValue:p.value.ssh_password,"onUpdate:modelValue":e[13]||(e[13]=t=>p.value.ssh_password=t),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(y,{label:"系统",required:""},{default:n(()=>[s(R,{modelValue:p.value.os_type,"onUpdate:modelValue":e[14]||(e[14]=t=>p.value.os_type=t),style:{width:"100%"}},{default:n(()=>[s(g,{label:"Linux",value:"Linux"}),s(g,{label:"Windows",value:"Windows"}),s(g,{label:"macOS",value:"macOS"}),s(g,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"系统版本"},{default:n(()=>[s(x,{modelValue:p.value.os_version,"onUpdate:modelValue":e[15]||(e[15]=t=>p.value.os_version=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"备注"},{default:n(()=>[s(x,{modelValue:p.value.notes,"onUpdate:modelValue":e[16]||(e[16]=t=>p.value.notes=t),type:"textarea",rows:2},null,8,["modelValue"])]),_:1}),s(Be,{"content-position":"left"},{default:n(()=>[...e[81]||(e[81]=[c("PVE 配置(可选)",-1)])]),_:1}),s(y,{label:"PVE 主机"},{default:n(()=>[s(R,{modelValue:p.value.pve_host_id,"onUpdate:modelValue":e[17]||(e[17]=t=>p.value.pve_host_id=t),placeholder:"选择 PVE 主机",clearable:"",style:{width:"100%"}},{default:n(()=>[(i(!0),d(U,null,T(oe.value,t=>(i(),C(g,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"虚拟机 ID"},{default:n(()=>[s(x,{modelValue:p.value.pve_vmid,"onUpdate:modelValue":e[18]||(e[18]=t=>p.value.pve_vmid=t),placeholder:"如 101"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),s(J,{modelValue:L.value,"onUpdate:modelValue":e[28]||(e[28]=t=>L.value=t),title:"编辑服务",width:"440px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[27]||(e[27]=t=>L.value=!1)},{default:n(()=>[...e[84]||(e[84]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",onClick:De},{default:n(()=>[...e[85]||(e[85]=[c("保存",-1)])]),_:1})]),default:n(()=>[s(Y,{model:b.value,"label-width":"90px"},{default:n(()=>[s(y,{label:"名称",required:""},{default:n(()=>[s(x,{modelValue:b.value.name,"onUpdate:modelValue":e[21]||(e[21]=t=>b.value.name=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"端口",required:""},{default:n(()=>[s(Q,{modelValue:b.value.port,"onUpdate:modelValue":e[22]||(e[22]=t=>b.value.port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"协议"},{default:n(()=>[s(R,{modelValue:b.value.protocol,"onUpdate:modelValue":e[23]||(e[23]=t=>b.value.protocol=t),style:{width:"100%"}},{default:n(()=>[s(g,{label:"TCP",value:"TCP"}),s(g,{label:"UDP",value:"UDP"}),s(g,{label:"HTTP",value:"HTTP"}),s(g,{label:"HTTPS",value:"HTTPS"})]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"指向机器"},{default:n(()=>[s(R,{modelValue:b.value.target_machine_id,"onUpdate:modelValue":e[24]||(e[24]=t=>b.value.target_machine_id=t),clearable:"",style:{width:"100%"},placeholder:"选择目标机器(拓扑连线用)"},{default:n(()=>[(i(!0),d(U,null,T(B.value.filter(t=>t.id!=_(V)),t=>(i(),C(g,{key:t.id,label:t.hostname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"指向备注"},{default:n(()=>[s(x,{modelValue:b.value.target_notes,"onUpdate:modelValue":e[25]||(e[25]=t=>b.value.target_notes=t),placeholder:"如:反向代理到目标"},null,8,["modelValue"])]),_:1}),s(y,{label:"备注"},{default:n(()=>[s(x,{modelValue:b.value.notes,"onUpdate:modelValue":e[26]||(e[26]=t=>b.value.notes=t),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),s(J,{modelValue:K.value,"onUpdate:modelValue":e[36]||(e[36]=t=>K.value=t),title:"编辑关系",width:"440px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[35]||(e[35]=t=>K.value=!1)},{default:n(()=>[...e[86]||(e[86]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",onClick:Ee},{default:n(()=>[...e[87]||(e[87]=[c("保存",-1)])]),_:1})]),default:n(()=>[s(Y,{model:w.value,"label-width":"100px"},{default:n(()=>[s(y,{label:"源机器",required:""},{default:n(()=>[s(R,{modelValue:w.value.source_machine_id,"onUpdate:modelValue":e[29]||(e[29]=t=>w.value.source_machine_id=t),style:{width:"100%"}},{default:n(()=>[(i(!0),d(U,null,T(B.value,t=>(i(),C(g,{key:t.id,label:t.hostname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"目标机器",required:""},{default:n(()=>[s(R,{modelValue:w.value.target_machine_id,"onUpdate:modelValue":e[30]||(e[30]=t=>w.value.target_machine_id=t),style:{width:"100%"}},{default:n(()=>[(i(!0),d(U,null,T(B.value,t=>(i(),C(g,{key:t.id,label:t.hostname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"关系类型",required:""},{default:n(()=>[s(R,{modelValue:w.value.relation_type,"onUpdate:modelValue":e[31]||(e[31]=t=>w.value.relation_type=t),style:{width:"100%"}},{default:n(()=>[s(g,{label:"端口转发",value:"port_forward"}),s(g,{label:"依赖",value:"dependency"}),s(g,{label:"主从",value:"primary_secondary"}),s(g,{label:"自定义",value:"custom"})]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"源端口"},{default:n(()=>[s(Q,{modelValue:w.value.source_port,"onUpdate:modelValue":e[32]||(e[32]=t=>w.value.source_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"目标端口"},{default:n(()=>[s(Q,{modelValue:w.value.target_port,"onUpdate:modelValue":e[33]||(e[33]=t=>w.value.target_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"备注"},{default:n(()=>[s(x,{modelValue:w.value.notes,"onUpdate:modelValue":e[34]||(e[34]=t=>w.value.notes=t),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])):m("",!0)}}},hs=ct(ps,[["__scopeId","data-v-6f4bd63e"]]);export{hs as default}; diff --git a/server/static/assets/MachineList-MzBh9r6c.js b/server/static/assets/MachineList-MzBh9r6c.js new file mode 100644 index 0000000..63502ab --- /dev/null +++ b/server/static/assets/MachineList-MzBh9r6c.js @@ -0,0 +1 @@ +import{k as oe,I as ae,J as ne,K as ie,L as de,o as u,c as r,a as o,b as s,w as i,e as f,m as b,M as ue,n as p,N as $,O as F,r as V,d as m,G as re,P as pe,E as k,u as ce,Q as _e,R as me,h as y,p as U,t as c,S as R,T as ve,U as fe,V as ye}from"./index-D__NZX4I.js";import{_ as he}from"./_plugin-vue_export-helper-DlAUqK2U.js";const be={class:"page"},Ve={class:"toolbar"},we={class:"search-wrap"},ke={class:"cards-grid"},ge=["onClick"],Ce={class:"card-header"},xe={class:"title-row"},Me=["title"],Se={class:"hostname"},Ue={class:"meta-row"},De={key:0,class:"meta-ip"},Le={class:"meta-item"},Oe={key:1,class:"meta-item"},Ee={key:2,class:"meta-uptime"},Ie={key:3,class:"meta-pve"},$e={key:0,class:"stats-row"},Fe={key:0,class:"stat-pill"},Re={class:"pill-body"},Be={class:"pill-bar"},Ne={class:"pill-value"},Pe={key:1,class:"stat-pill"},Ae={class:"pill-body"},He={class:"pill-bar"},Te={class:"pill-value"},We={key:2,class:"stat-pill"},je={class:"pill-body"},ze={class:"pill-bar"},Ge={class:"pill-value"},Ke={key:1,class:"ports-row"},qe={key:0,class:"more-ports"},Je={key:2,class:"sync-time"},Qe={__name:"MachineList",setup(Ye){const T=ce(),h=re().is_admin,D=V([]),B=V([]),L=V(""),O=V(""),g=V(!1),d=V({hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:"",pve_host_id:null,pve_vmid:""}),N=V(null);let E=null;oe(async()=>{if(await C(),await ae(),h)try{const e=await _e();B.value=e.data}catch{}const t=ne||1e4;t>0&&(E=setInterval(C,t))}),ie(()=>{E&&clearInterval(E)});async function C(){const t=await de({search:L.value,os_type:O.value});D.value=t.data}function W(t){T.push(`/machines/${t}`)}function j(t){d.value={hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:"",pve_host_id:null,pve_vmid:""},g.value=!0}async function z(){const t={...d.value};if(!t.hostname||!t.ip||!t.os_type){k.warning("请填写必填项");return}t.id?await ve(t.id,t):await fe(t),k.success("保存成功"),g.value=!1,C()}async function G(){try{const t=await ye(),e=new Blob([t.data]),a=window.URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.download=`lan-manager-backup-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a),k.success("导出成功")}catch{k.error("导出失败")}}function K(){var t;(t=N.value)==null||t.click()}async function q(t){var n;const e=(n=t.target.files)==null?void 0:n[0];if(!e)return;const a=new FormData;a.append("file",e),a.append("mode","overwrite");try{await pe(a),k.success("导入成功,页面即将刷新"),setTimeout(()=>location.reload(),800)}catch{k.error("导入失败")}t.target.value=""}function x(t){if(!t)return 0;const e=t.match(/\((\d+)%\)/)||t.match(/(\d+(?:\.\d+)?)%/);if(e){const a=parseFloat(e[1]);return isNaN(a)?0:Math.min(100,Math.max(0,Math.round(a)))}return 0}function P(t){if(!t)return"";const e=t.match(/\((\d+)\s*cores\)/);if(e)return e[1]+" cores";let a=t.replace(/\s*\(\d+(?:\.\d+)?%\)\s*/g,"").trim();return a.includes(",")&&(a=a.split(",")[0].trim()),a=a.replace(/^\/\s+/,"").trim(),/^\d+\.?\d*\/\d+\.?\d*$/.test(a)&&(a+="G"),a}function J(t){return t>=90?"#f87171":t>=70?"#fbbf24":"#34d399"}function Q(t){return t>=90?"#f87171":t>=80?"#fbbf24":"#60a5fa"}function Y(t){if(!t)return[];const e=[],a=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let n;for(;(n=a.exec(t))!==null;)e.push({mount:n[1],detail:n[2],percent:parseInt(n[3],10)});if(e.length>0)return e;const _=x(t),w=P(t);return w?[{mount:"",detail:w,percent:_}]:[]}function S(t){return Y(t).find(n=>n.mount==="/")||null}function X(t){return{Linux:"os-linux",Windows:"os-windows",macOS:"os-macos"}[t]||"os-other"}function Z(t){if(!t)return"-";const e=new Date(t);if(isNaN(e.getTime()))return t;const a=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${a(e.getMonth()+1)}-${a(e.getDate())} ${a(e.getHours())}:${a(e.getMinutes())}:${a(e.getSeconds())}`}return(t,e)=>{const a=m("el-icon"),n=m("el-input"),_=m("el-option"),w=m("el-select"),M=m("el-button"),A=m("el-tag"),ee=m("el-empty"),v=m("el-form-item"),H=m("el-divider"),le=m("el-input-number"),te=m("el-form"),se=m("el-dialog");return u(),r("div",be,[o("div",Ve,[o("div",we,[s(a,{class:"search-icon"},{default:i(()=>[s(f(me))]),_:1}),s(n,{modelValue:L.value,"onUpdate:modelValue":e[0]||(e[0]=l=>L.value=l),placeholder:"搜索主机名",clearable:"",onChange:C},null,8,["modelValue"])]),s(w,{modelValue:O.value,"onUpdate:modelValue":e[1]||(e[1]=l=>O.value=l),placeholder:"系统类型",clearable:"",onChange:C,class:"os-select"},{default:i(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"]),f(h)?(u(),b(M,{key:0,type:"primary",icon:f(ue),onClick:e[2]||(e[2]=l=>j())},{default:i(()=>[...e[16]||(e[16]=[y("添加机器",-1)])]),_:1},8,["icon"])):p("",!0),f(h)?(u(),b(M,{key:1,type:"success",onClick:G},{default:i(()=>[...e[17]||(e[17]=[y("导出数据",-1)])]),_:1})):p("",!0),f(h)?(u(),b(M,{key:2,type:"warning",onClick:K},{default:i(()=>[...e[18]||(e[18]=[y("导入数据",-1)])]),_:1})):p("",!0),o("input",{ref_key:"importFileRef",ref:N,type:"file",accept:".json",style:{display:"none"},onChange:q},null,544)]),o("div",ke,[(u(!0),r($,null,F(D.value,l=>(u(),r("div",{key:l.id,class:U(["server-card",[{"guest-card":!f(h),"offline-card":!l.is_online}]]),onClick:I=>f(h)&&W(l.id)},[o("div",Ce,[o("div",xe,[o("span",{class:U(["os-dot",X(l.os_type)]),title:l.os_type},null,10,Me),o("span",Se,c(l.hostname),1),o("span",{class:U(["status-badge",l.is_online?"online":"offline"])},c(l.is_online?"在线":"离线"),3),l.service_count?(u(),b(A,{key:0,size:"small",effect:"plain",class:"svc-tag",round:""},{default:i(()=>[y("服务 "+c(l.service_count),1)]),_:2},1024)):p("",!0)]),o("div",Ue,[f(h)?(u(),r("span",De,c(l.ip),1)):p("",!0),o("span",Le,c(l.os_type),1),l.os_version?(u(),r("span",Oe,c(l.os_version),1)):p("",!0),l.uptime?(u(),r("span",Ee,c(l.uptime),1)):p("",!0),f(h)&&l.pve_host_id&&l.pve_vmid?(u(),r("span",Ie,[o("span",{class:U(["vm-status",l.pve_vm_status])},c(l.pve_vm_status==="running"?"🟢 VM运行中":"🔴 VM已停止"),3)])):p("",!0)])]),l.cpu_info||l.memory_info||l.disk_info?(u(),r("div",$e,[l.cpu_info?(u(),r("div",Fe,[e[20]||(e[20]=o("div",{class:"pill-icon cpu"},"C",-1)),o("div",Re,[e[19]||(e[19]=o("div",{class:"pill-label"},"CPU",-1)),o("div",Be,[o("div",{class:"pill-fill",style:R({width:x(l.cpu_info)+"%"})},null,4)])]),o("div",Ne,c(x(l.cpu_info))+"%",1)])):p("",!0),l.memory_info?(u(),r("div",Pe,[e[22]||(e[22]=o("div",{class:"pill-icon mem"},"M",-1)),o("div",Ae,[e[21]||(e[21]=o("div",{class:"pill-label"},"RAM",-1)),o("div",He,[o("div",{class:"pill-fill",style:R({width:x(l.memory_info)+"%",background:J(x(l.memory_info))})},null,4)])]),o("div",Te,c(P(l.memory_info)),1)])):p("",!0),S(l.disk_info)?(u(),r("div",We,[e[24]||(e[24]=o("div",{class:"pill-icon disk"},"D",-1)),o("div",je,[e[23]||(e[23]=o("div",{class:"pill-label"},"DISK",-1)),o("div",ze,[o("div",{class:"pill-fill",style:R({width:S(l.disk_info).percent+"%",background:Q(S(l.disk_info).percent)})},null,4)])]),o("div",Ge,c(S(l.disk_info).detail),1)])):p("",!0)])):p("",!0),l.listen_ports?(u(),r("div",Ke,[(u(!0),r($,null,F(l.listen_ports.split(",").slice(0,6),I=>(u(),b(A,{key:I,size:"small",effect:"plain",round:"",class:"port-tag"},{default:i(()=>[y(c(I.trim()),1)]),_:2},1024))),128)),l.listen_ports.split(",").length>6?(u(),r("span",qe,"+"+c(l.listen_ports.split(",").length-6),1)):p("",!0)])):p("",!0),l.ssh_synced_at?(u(),r("div",Je," 同步于 "+c(Z(l.ssh_synced_at)),1)):p("",!0)],10,ge))),128))]),D.value.length?p("",!0):(u(),b(ee,{key:0,description:"暂无机器"})),s(se,{modelValue:g.value,"onUpdate:modelValue":e[15]||(e[15]=l=>g.value=l),title:d.value.id?"编辑机器":"添加机器",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:i(()=>[s(M,{onClick:e[14]||(e[14]=l=>g.value=!1)},{default:i(()=>[...e[27]||(e[27]=[y("取消",-1)])]),_:1}),s(M,{type:"primary",onClick:z},{default:i(()=>[...e[28]||(e[28]=[y("保存",-1)])]),_:1})]),default:i(()=>[s(te,{model:d.value,"label-width":"90px"},{default:i(()=>[s(v,{label:"主机名",required:""},{default:i(()=>[s(n,{modelValue:d.value.hostname,"onUpdate:modelValue":e[3]||(e[3]=l=>d.value.hostname=l),placeholder:"如 web-server-01"},null,8,["modelValue"])]),_:1}),s(v,{label:"IP",required:""},{default:i(()=>[s(n,{modelValue:d.value.ip,"onUpdate:modelValue":e[4]||(e[4]=l=>d.value.ip=l),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),s(v,{label:"MAC"},{default:i(()=>[s(n,{modelValue:d.value.mac,"onUpdate:modelValue":e[5]||(e[5]=l=>d.value.mac=l),placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),s(v,{label:"系统",required:""},{default:i(()=>[s(w,{modelValue:d.value.os_type,"onUpdate:modelValue":e[6]||(e[6]=l=>d.value.os_type=l),style:{width:"100%"}},{default:i(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"系统版本"},{default:i(()=>[s(n,{modelValue:d.value.os_version,"onUpdate:modelValue":e[7]||(e[7]=l=>d.value.os_version=l),placeholder:"Ubuntu 22.04"},null,8,["modelValue"])]),_:1}),s(H,{"content-position":"left"},{default:i(()=>[...e[25]||(e[25]=[y("SSH 配置",-1)])]),_:1}),s(v,{label:"SSH 端口"},{default:i(()=>[s(le,{modelValue:d.value.ssh_port,"onUpdate:modelValue":e[8]||(e[8]=l=>d.value.ssh_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 用户"},{default:i(()=>[s(n,{modelValue:d.value.ssh_username,"onUpdate:modelValue":e[9]||(e[9]=l=>d.value.ssh_username=l),placeholder:"root"},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 密码"},{default:i(()=>[s(n,{modelValue:d.value.ssh_password,"onUpdate:modelValue":e[10]||(e[10]=l=>d.value.ssh_password=l),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(v,{label:"备注"},{default:i(()=>[s(n,{modelValue:d.value.notes,"onUpdate:modelValue":e[11]||(e[11]=l=>d.value.notes=l),type:"textarea",rows:3,placeholder:"记录用途、负责人等信息"},null,8,["modelValue"])]),_:1}),s(H,{"content-position":"left"},{default:i(()=>[...e[26]||(e[26]=[y("PVE 配置(可选)",-1)])]),_:1}),s(v,{label:"PVE 主机"},{default:i(()=>[s(w,{modelValue:d.value.pve_host_id,"onUpdate:modelValue":e[12]||(e[12]=l=>d.value.pve_host_id=l),placeholder:"选择 PVE 主机",clearable:"",style:{width:"100%"}},{default:i(()=>[(u(!0),r($,null,F(B.value,l=>(u(),b(_,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"虚拟机 ID"},{default:i(()=>[s(n,{modelValue:d.value.pve_vmid,"onUpdate:modelValue":e[13]||(e[13]=l=>d.value.pve_vmid=l),placeholder:"如 101"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},el=he(Qe,[["__scopeId","data-v-cae8dc77"]]);export{el as default}; diff --git a/server/static/assets/MainLayout-BpAm6i02.js b/server/static/assets/MainLayout-BpAm6i02.js new file mode 100644 index 0000000..2056f5c --- /dev/null +++ b/server/static/assets/MainLayout-BpAm6i02.js @@ -0,0 +1 @@ +import{k as h,o as i,c as m,a as s,b as e,w as t,m as d,n as r,t as v,p as C,r as x,q as w,d as _,u as E,e as l,v as L,x as M,y as A,z as B,A as D,B as N,C as V,f as z,D as I,F as S,E as q,G as F,H as G}from"./index-D__NZX4I.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"layout"},R={key:0,class:"sidebar"},T={class:"nav"},$={class:"sidebar-footer"},j={class:"user-info"},J={class:"user-name"},K={class:"main-inner"},O={__name:"MainLayout",setup(Q){const f=E(),u=w(()=>F().is_admin),o=x(!1);h(()=>{o.value=document.documentElement.classList.contains("dark")});function p(){o.value=!o.value,document.documentElement.classList.toggle("dark",o.value),localStorage.setItem("theme",o.value?"dark":"light")}async function g(){try{await S()}catch{}G(),q.success("已退出"),f.push("/login")}return(k,a)=>{const n=_("el-icon"),c=_("router-link"),y=_("el-button"),b=_("router-view");return i(),m("div",P,[u.value?(i(),m("aside",R,[a[5]||(a[5]=s("div",{class:"brand"},[s("div",{class:"brand-logo"},"LM"),s("div",{class:"brand-text"},"LAN Manager")],-1)),s("nav",T,[e(c,{to:"/machines",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(L))]),_:1}),a[0]||(a[0]=s("span",null,"机器列表",-1))]),_:1}),u.value?(i(),d(c,{key:0,to:"/topology",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(M))]),_:1}),a[1]||(a[1]=s("span",null,"拓扑图",-1))]),_:1})):r("",!0),u.value?(i(),d(c,{key:1,to:"/logs",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(A))]),_:1}),a[2]||(a[2]=s("span",null,"操作日志",-1))]),_:1})):r("",!0),u.value?(i(),d(c,{key:2,to:"/pve-hosts",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(B))]),_:1}),a[3]||(a[3]=s("span",null,"PVE 主机",-1))]),_:1})):r("",!0)]),s("div",{class:"theme-toggle",onClick:p},[e(n,{class:"theme-icon"},{default:t(()=>[(i(),d(D(o.value?l(N):l(V))))]),_:1}),s("span",null,v(o.value?"浅色模式":"深色模式"),1)]),s("div",$,[s("div",j,[e(n,{class:"user-icon"},{default:t(()=>[e(l(z))]),_:1}),s("span",J,v(u.value?"管理员":"访客"),1)]),e(y,{text:"",class:"logout-btn",onClick:g},{default:t(()=>[e(n,null,{default:t(()=>[e(l(I))]),_:1}),a[4]||(a[4]=s("span",null,"退出",-1))]),_:1})])])):r("",!0),s("main",{class:C(["main",{"no-sidebar":!u.value}])},[s("div",K,[e(b)])],2)])}}},X=H(O,[["__scopeId","data-v-dac2493b"]]);export{X as default}; diff --git a/server/static/assets/PVEHosts-Bh9QYZd6.css b/server/static/assets/PVEHosts-Bh9QYZd6.css new file mode 100644 index 0000000..93de3b5 --- /dev/null +++ b/server/static/assets/PVEHosts-Bh9QYZd6.css @@ -0,0 +1 @@ +.toolbar[data-v-fede7675]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-title[data-v-fede7675]{margin:0;font-size:20px;font-weight:600}.hosts-grid[data-v-fede7675]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.host-card[data-v-fede7675]{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.host-header[data-v-fede7675]{display:flex;align-items:center;gap:10px;margin-bottom:12px}.host-icon[data-v-fede7675]{font-size:20px;color:var(--el-color-primary)}.host-name[data-v-fede7675]{font-size:16px;font-weight:600;flex:1}.status-tag[data-v-fede7675]{font-size:11px;height:20px;padding:0 8px}.host-info[data-v-fede7675]{margin-bottom:12px}.info-row[data-v-fede7675]{display:flex;font-size:13px;margin-bottom:4px}.info-row .label[data-v-fede7675]{color:var(--text-secondary);width:50px}.info-row .value[data-v-fede7675]{color:var(--text)}.host-actions[data-v-fede7675]{display:flex;gap:8px}.vm-loading[data-v-fede7675]{display:flex;align-items:center;justify-content:center;gap:10px;padding:40px 0;color:var(--text-secondary)}.loading-icon[data-v-fede7675]{font-size:20px;animation:spin-fede7675 1s linear infinite}@keyframes spin-fede7675{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vm-list[data-v-fede7675]{display:flex;flex-direction:column;gap:8px}.vm-item[data-v-fede7675]{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--surface-hover);border-radius:8px}.vm-main[data-v-fede7675]{display:flex;align-items:center;gap:10px}.vm-id[data-v-fede7675]{font-size:12px;font-weight:700;color:var(--el-color-primary);background:var(--surface);padding:2px 8px;border-radius:4px;border:1px solid var(--border)}.vm-name[data-v-fede7675]{font-size:14px;font-weight:500;color:var(--text)} diff --git a/server/static/assets/PVEHosts-DdWF4BUY.js b/server/static/assets/PVEHosts-DdWF4BUY.js new file mode 100644 index 0000000..13d8334 --- /dev/null +++ b/server/static/assets/PVEHosts-DdWF4BUY.js @@ -0,0 +1 @@ +import{k as G,Q as J,at as K,o as u,c as m,a as o,b as a,w as t,e as b,M as R,m as x,n as B,N as L,O as N,r as i,d,h as v,v as W,t as r,au as X,av as Y,aw as Z,a9 as ee,ax as le,E,ay as ae,az as se}from"./index-D__NZX4I.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";const oe={class:"page"},ne={class:"toolbar"},ue={key:1,class:"hosts-grid"},de={class:"host-header"},ie={class:"host-name"},re={class:"host-info"},me={class:"info-row"},ve={class:"value"},pe={class:"info-row"},ce={class:"value"},fe={class:"info-row"},_e={class:"value"},Ve={class:"host-actions"},ye={key:2,class:"vm-loading"},we={key:3,class:"vm-list"},ge={class:"vm-main"},ke={class:"vm-id"},be={class:"vm-name"},Ee={__name:"PVEHosts",setup(Ce){const _=i([]),V=i(!1),s=i({name:"",hostname:"",port:8006,node_name:"pve",username:"",password:"",verify_ssl:!1}),C=i(!1),w=i(!1),g=i([]),k=i(""),H=i(null),c=i({});G(()=>{P()});async function P(){const n=await J();_.value=n.data,await Promise.all(_.value.map(e=>D(e.id)))}async function D(n){try{const e=await K(n);c.value[n]=e.data.status}catch{c.value[n]="offline"}}function U(n){s.value=n?{...n,password:""}:{name:"",hostname:"",port:8006,node_name:"pve",username:"",password:"",verify_ssl:!1},V.value=!0}async function F(){if(!s.value.name||!s.value.hostname||!s.value.username){E.warning("请填写必填项");return}if(!s.value.id&&!s.value.password){E.warning("请填写密码");return}try{s.value.id?await ae(s.value.id,s.value):await se(s.value),E.success("保存成功"),V.value=!1,P()}catch{}}async function I(n){try{await ee.confirm(`确定要删除主机 "${n.name}" 吗?`,"确认删除",{type:"warning"}),await le(n.id),E.success("删除成功"),P()}catch{}}async function O(n){H.value=n,C.value=!0,w.value=!0,g.value=[],k.value="";try{const e=await Z(n.id);g.value=e.data||[]}catch{k.value="获取虚拟机列表失败,请检查节点连接状态"}w.value=!1}return(n,e)=>{var S;const f=d("el-button"),h=d("el-empty"),M=d("el-icon"),$=d("el-tag"),y=d("el-input"),p=d("el-form-item"),Q=d("el-input-number"),T=d("el-switch"),j=d("el-form"),z=d("el-dialog"),A=d("el-alert");return u(),m("div",oe,[o("div",ne,[e[12]||(e[12]=o("h2",{class:"page-title"},"PVE 主机管理",-1)),a(f,{type:"primary",icon:b(R),onClick:e[0]||(e[0]=l=>U())},{default:t(()=>[...e[11]||(e[11]=[v("添加主机",-1)])]),_:1},8,["icon"])]),_.value.length?B("",!0):(u(),x(h,{key:0,description:"暂无 PVE 主机"})),_.value.length?(u(),m("div",ue,[(u(!0),m(L,null,N(_.value,l=>(u(),m("div",{key:l.id,class:"host-card"},[o("div",de,[a(M,{class:"host-icon"},{default:t(()=>[a(b(W))]),_:1}),o("span",ie,r(l.name),1),a($,{size:"small",type:c.value[l.id]==="online"?"success":c.value[l.id]==="offline"?"danger":"info",effect:"light",class:"status-tag"},{default:t(()=>[v(r(c.value[l.id]==="online"?"在线":c.value[l.id]==="offline"?"离线":"检测中"),1)]),_:2},1032,["type"])]),o("div",re,[o("div",me,[e[13]||(e[13]=o("span",{class:"label"},"地址:",-1)),o("span",ve,r(l.hostname)+":"+r(l.port),1)]),o("div",pe,[e[14]||(e[14]=o("span",{class:"label"},"节点:",-1)),o("span",ce,r(l.node_name||"pve"),1)]),o("div",fe,[e[15]||(e[15]=o("span",{class:"label"},"用户:",-1)),o("span",_e,r(l.username),1)])]),o("div",Ve,[a(f,{size:"small",icon:b(X),onClick:q=>O(l)},{default:t(()=>[...e[16]||(e[16]=[v("查看虚拟机",-1)])]),_:1},8,["icon","onClick"]),a(f,{size:"small",onClick:q=>U(l)},{default:t(()=>[...e[17]||(e[17]=[v("编辑",-1)])]),_:1},8,["onClick"]),a(f,{size:"small",type:"danger",onClick:q=>I(l)},{default:t(()=>[...e[18]||(e[18]=[v("删除",-1)])]),_:1},8,["onClick"])])]))),128))])):B("",!0),a(z,{modelValue:V.value,"onUpdate:modelValue":e[9]||(e[9]=l=>V.value=l),title:s.value.id?"编辑主机":"添加主机",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:t(()=>[a(f,{onClick:e[8]||(e[8]=l=>V.value=!1)},{default:t(()=>[...e[19]||(e[19]=[v("取消",-1)])]),_:1}),a(f,{type:"primary",onClick:F},{default:t(()=>[...e[20]||(e[20]=[v("保存",-1)])]),_:1})]),default:t(()=>[a(j,{model:s.value,"label-width":"90px"},{default:t(()=>[a(p,{label:"名称",required:""},{default:t(()=>[a(y,{modelValue:s.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>s.value.name=l),placeholder:"如 PVE-01"},null,8,["modelValue"])]),_:1}),a(p,{label:"地址",required:""},{default:t(()=>[a(y,{modelValue:s.value.hostname,"onUpdate:modelValue":e[2]||(e[2]=l=>s.value.hostname=l),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),a(p,{label:"节点名"},{default:t(()=>[a(y,{modelValue:s.value.node_name,"onUpdate:modelValue":e[3]||(e[3]=l=>s.value.node_name=l),placeholder:"pve(默认)"},null,8,["modelValue"])]),_:1}),a(p,{label:"端口"},{default:t(()=>[a(Q,{modelValue:s.value.port,"onUpdate:modelValue":e[4]||(e[4]=l=>s.value.port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),a(p,{label:"用户名",required:""},{default:t(()=>[a(y,{modelValue:s.value.username,"onUpdate:modelValue":e[5]||(e[5]=l=>s.value.username=l),placeholder:"root@pam 或 root@vmbr0"},null,8,["modelValue"])]),_:1}),a(p,{label:"密码",required:!s.value.id},{default:t(()=>[a(y,{modelValue:s.value.password,"onUpdate:modelValue":e[6]||(e[6]=l=>s.value.password=l),type:"password","show-password":"",placeholder:s.value.id?"留空保持不变":"必填"},null,8,["modelValue","placeholder"])]),_:1},8,["required"]),a(p,{label:"SSL 验证"},{default:t(()=>[a(T,{modelValue:s.value.verify_ssl,"onUpdate:modelValue":e[7]||(e[7]=l=>s.value.verify_ssl=l)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a(z,{modelValue:C.value,"onUpdate:modelValue":e[10]||(e[10]=l=>C.value=l),title:`${((S=H.value)==null?void 0:S.name)||""} — 虚拟机列表`,width:"600px",class:"modern-dialog","destroy-on-close":""},{default:t(()=>[k.value?(u(),x(A,{key:0,title:k.value,type:"error",closable:!1,"show-icon":""},null,8,["title"])):!w.value&&!g.value.length?(u(),x(h,{key:1,description:"该节点上暂无虚拟机"})):w.value?(u(),m("div",ye,[a(M,{class:"loading-icon"},{default:t(()=>[a(b(Y))]),_:1}),e[21]||(e[21]=o("span",null,"正在获取虚拟机列表...",-1))])):(u(),m("div",we,[(u(!0),m(L,null,N(g.value,l=>(u(),m("div",{key:l.vmid,class:"vm-item"},[o("div",ge,[o("span",ke,"VM "+r(l.vmid),1),o("span",be,r(l.name),1)]),a($,{size:"small",type:l.status==="running"?"success":"info",effect:"light"},{default:t(()=>[v(r(l.status==="running"?"运行中":"已停止"),1)]),_:2},1032,["type"])]))),128))]))]),_:1},8,["modelValue","title"])])}}},He=te(Ee,[["__scopeId","data-v-fede7675"]]);export{He as default}; diff --git a/server/static/assets/Topology-D7ycfmKq.js b/server/static/assets/Topology-D7ycfmKq.js new file mode 100644 index 0000000..b5d3a8a --- /dev/null +++ b/server/static/assets/Topology-D7ycfmKq.js @@ -0,0 +1,467 @@ +import{al as Ka,am as bi,an as me,k as EP,L as _P,ao as SP,a3 as MP,K as AP,o as iw,c as CP,a as rc,e as ow,m as TP,w as IP,M as kP,n as NP,ap as OP,G as LP,d as DP,h as PP}from"./index-D__NZX4I.js";import{_ as RP}from"./_plugin-vue_export-helper-DlAUqK2U.js";function FP(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const ty=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Ea},get Circle(){return b9},get Ellipse(){return w9},get Image(){return x9},get Line(){return E9},get Marker(){return S9},get Path(){return Ky},get Polygon(){return N9},get Polyline(){return O9},get Rect(){return P9},get Text(){return R9}},Symbol.toStringTag,{value:"Module"})),ry=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return aa},get Circle(){return z9},get Dom(){return j9},get Ellipse(){return U9},get Image(){return $9},get Line(){return X9},get Marker(){return W9},get Path(){return V9},get Polygon(){return Y9},get Polyline(){return q9},get Rect(){return Z9},get Text(){return e7}},Symbol.toStringTag,{value:"Module"}));var b0=function(t,e){return b0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},b0(t,e)};function jt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");b0(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var P=function(){return P=Object.assign||function(e){for(var r,n=1,a=arguments.length;n=0;s--)(o=t[s])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i}function vS(t,e){return function(r,n){e(r,n,t)}}function pS(t,e,r,n,a,i){function o(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var s=n.kind,u=s==="getter"?"get":s==="setter"?"set":"value",f=!e&&t?n.static?t:t.prototype:null,l=e||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),c,h=!1,d=r.length-1;d>=0;d--){var v={};for(var p in n)v[p]=p==="access"?{}:n[p];for(var p in n.access)v.access[p]=n.access[p];v.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(y||null))};var g=(0,r[d])(s==="accessor"?{get:l.get,set:l.set}:l[u],v);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=o(g.get))&&(l.get=c),(c=o(g.set))&&(l.set=c),(c=o(g.init))&&a.unshift(c)}else(c=o(g))&&(s==="field"?a.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l),h=!0}function gS(t,e,r){for(var n=arguments.length>2,a=0;a0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ny(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function xS(){for(var t=[],e=0;e1||u(d,p)})},v&&(a[d]=v(a[d])))}function u(d,v){try{f(n[d](v))}catch(p){h(i[0][3],p)}}function f(d){d.value instanceof Hs?Promise.resolve(d.value.v).then(l,c):h(i[0][2],d)}function l(d){u("next",d)}function c(d){u("throw",d)}function h(d,v){d(v),i.shift(),i.length&&u(i[0][0],i[0][1])}}function _S(t){var e,r;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,i){e[a]=t[a]?function(o){return(r=!r)?{value:Hs(t[a](o)),done:!1}:i?i(o):o}:i}}function SS(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof _h=="function"?_h(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(s,u){o=t[i](o),a(s,u,o.done,o.value)})}}function a(i,o,s,u){Promise.resolve(u).then(function(f){i({value:f,done:s})},o)}}function MS(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var BP=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},w0=function(t){return w0=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},w0(t)};function AS(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=w0(t),n=0;n-1:!1},DS=function(t,e){if(!On(t))return t;for(var r=[],n=0;n-1;)HP.call(t,i,1);return t},QP=Array.prototype.splice,GS=function(e,r){if(!On(e))return[];for(var n=e?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,QP.call(e,o,1))}return e},zS=function(t,e,r){if(!bt(t)&&!ln(t))return t;var n=r;return _e(t,function(a,i){n=e(n,a,i)}),n},JP=function(t,e){var r=[];if(!On(t))return r;for(var n=-1,a=[],i=t.length;++ni[s])return 1;if(a[s]r?r:t},pR=function(t,e){var r=e.toString(),n=r.indexOf(".");if(n===-1)return Math.round(t);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))},Ot=function(t){return xa(t,"Number")},gR=function(t){return Ot(t)&&t%1!==0},yR=function(t){return Ot(t)&&t%2===0},mR=Number.isInteger?Number.isInteger:function(t){return Ot(t)&&t%1===0},bR=function(t){return Ot(t)&&t<0},wR=1e-5;function US(t,e,r){return r===void 0&&(r=wR),Math.abs(t-e)0};const _R=function(t,e){if(bt(t)){for(var r,n=-1/0,a=0;an&&(r=i,n=o)}return r}},SR=function(t,e){if(bt(t)){for(var r,n=1/0,a=0;ae?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},ZS=function(t){return On(t)?Array.prototype.slice.call(t):[]};var nc={};const Ji=function(t){return t=t||"g",nc[t]?nc[t]+=1:nc[t]=1,t+nc[t]},sf=function(){},a3=function(t){return t};function i3(t){return Zt(t)?0:On(t)?t.length:Object.keys(t).length}var ac;const uf=YS(function(t,e){e===void 0&&(e={});var r=e.fontSize,n=e.fontFamily,a=e.fontWeight,i=e.fontStyle,o=e.fontVariant;return ac||(ac=document.createElement("canvas").getContext("2d")),ac.font=[i,o,a,r+"px",n].join(" "),ac.measureText(Ye(t)?t:"").width},function(t,e){return e===void 0&&(e={}),ay([t],iy(e)).join("")}),o3=function(t,e,r,n){n===void 0&&(n="...");var a=16,i=uf(n,r),o=Ye(t)?t:vu(t),s=e,u=[],f,l;if(uf(t,r)<=e)return t;for(;f=o.substr(0,a),l=uf(f,r),!(l+i>s&&l>s);)if(u.push(f),s-=l,o=o.substr(a),!o)return u.join("");for(;f=o.substr(0,1),l=uf(f,r),!(l+i>s);)if(u.push(f),s-=l,o=o.substr(1),!o)return u.join("");return""+u.join("")+n};var s3=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,r){var n=this.map[e];return n===void 0?r:n},t.prototype.set=function(e,r){this.map[e]=r},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}();const u3=Object.freeze(Object.defineProperty({__proto__:null,Cache:s3,assign:Et,augment:XR,clamp:vR,clearAnimationFrame:VS,clone:rr,contains:Sh,debounce:oy,deepMix:_r,difference:UP,each:_e,endsWith:oR,every:sR,extend:VR,filter:DS,find:XP,findIndex:WP,firstValue:VP,fixedBase:pR,flatten:YP,flattenDeep:FS,forIn:_e,get:HS,getEllipsisText:o3,getRange:qP,getType:$S,getWrapBehavior:cR,group:lR,groupBy:Ah,groupToMap:jS,has:uw,hasKey:uw,hasValue:IR,head:nR,identity:a3,includes:Sh,indexOf:YR,isArguments:PR,isArray:bt,isArrayLike:On,isBoolean:Qf,isDate:RR,isDecimal:gR,isElement:$R,isEmpty:HR,isEqual:jo,isEqualWith:ZR,isError:FR,isEven:yR,isFinite:BR,isFunction:Tr,isInteger:mR,isMatch:RS,isNegative:bR,isNil:Zt,isNull:GR,isNumber:Ot,isNumberEqual:US,isObject:gn,isObjectLike:Mh,isOdd:xR,isPlainObject:ln,isPositive:ER,isPrototype:XS,isRegExp:jR,isString:Ye,isType:xa,isUndefined:UR,keys:PS,last:aR,lowerCase:kR,lowerFirst:NR,map:KR,mapValues:JR,max:qa,maxBy:_R,measureTextWidth:uf,memoize:YS,min:Ha,minBy:SR,mix:Et,mod:gd,noop:sf,number2color:hR,omit:n3,parseRadius:dR,pick:r3,pull:KP,pullAt:GS,reduce:zS,remove:JP,requestAnimationFrame:WS,set:e3,size:i3,some:uR,sortBy:eR,startsWith:iR,substitute:OR,throttle:Ch,toArray:ZS,toDegree:AR,toInteger:CR,toRadian:yd,toString:vu,union:tR,uniq:kf,uniqueId:Ji,upperCase:LR,upperFirst:Zs,values:iy,valuesOfKey:rR,wrapBehavior:Bs},Symbol.toStringTag,{value:"Module"})),f3={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(e){return Object.assign(this,e),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(e){var r=this,n=this.events;this.graph=e,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!0),_e(n,function(a,i){e.on(i,a)}),document.addEventListener("visibilitychange",function(){r.keydown=!1})},unbind:function(e){var r=this.events,n=e.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!1),_e(r,function(a,i){e.off(i,a)}),e.get("canvas").set("draggable",n)},get:function(e){return this[e]},set:function(e,r){return this[e]=r,this}};var sy=function(){function t(){}return t.registerBehavior=function(e,r){if(!r)throw new Error("please specify handler for this behavior: ".concat(e));var n=rr(f3);Object.assign(n,r);var a=function(o){var s=this;Object.assign(this,this.getDefaultCfg(),o);var u=this.getEvents();this.events=null;var f={};u&&(_e(u,function(l,c){f[c]=Bs(s,l)}),this.events=f)};a.prototype=n,t.types[e]=a},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}(),l3="*",KS=function(){function t(){this._events={}}return t.prototype.on=function(e,r,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:r,once:!!n}),this},t.prototype.once=function(e,r){return this.on(e,r,!0)},t.prototype.emit=function(e){for(var r=this,n=[],a=1;a=0?Math.round(t):t%.5===0?Math.floor(t):Math.round(t)}function c3(t){qt=t}var h3=Math.PI/180,d3=180/Math.PI;function v3(t){return t*h3}function p3(t){return t*d3}function g3(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt;return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}const y3=Object.freeze(Object.defineProperty({__proto__:null,ANGLE_ORDER:QS,get ARRAY_TYPE(){return qt},EPSILON:pt,RANDOM:ya,equals:g3,round:Ba,setMatrixArrayType:c3,toDegree:p3,toRadian:v3},Symbol.toStringTag,{value:"Module"}));function m3(){var t=new qt(4);return qt!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function b3(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function w3(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function x3(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function E3(t,e,r,n){var a=new qt(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function _3(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function S3(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function M3(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r*i-a*n;return o?(o=1/o,t[0]=i*o,t[1]=-n*o,t[2]=-a*o,t[3]=r*o,t):null}function A3(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t}function C3(t){return t[0]*t[3]-t[2]*t[1]}function JS(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*s+i*u,t[1]=a*s+o*u,t[2]=n*f+i*l,t[3]=a*f+o*l,t}function T3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=a*u+o*s,t[2]=n*-s+i*u,t[3]=a*-s+o*u,t}function I3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1];return t[0]=n*s,t[1]=a*s,t[2]=i*u,t[3]=o*u,t}function k3(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t}function N3(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function O3(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function L3(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3])}function D3(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]}function P3(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function eM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function R3(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function F3(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(r-o)<=pt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}function B3(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function G3(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}var z3=JS,j3=eM;const U3=Object.freeze(Object.defineProperty({__proto__:null,LDU:D3,add:P3,adjoint:A3,clone:b3,copy:w3,create:m3,determinant:C3,equals:F3,exactEquals:R3,frob:L3,fromRotation:k3,fromScaling:N3,fromValues:E3,identity:x3,invert:M3,mul:z3,multiply:JS,multiplyScalar:B3,multiplyScalarAndAdd:G3,rotate:T3,scale:I3,set:_3,str:O3,sub:j3,subtract:eM,transpose:S3},Symbol.toStringTag,{value:"Module"}));function $3(){var t=new qt(6);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function X3(t){var e=new qt(6);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 W3(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function V3(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Y3(t,e,r,n,a,i){var o=new qt(6);return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=a,o[5]=i,o}function q3(t,e,r,n,a,i,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t}function H3(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=r*i-n*a;return u?(u=1/u,t[0]=i*u,t[1]=-n*u,t[2]=-a*u,t[3]=r*u,t[4]=(a*s-i*o)*u,t[5]=(n*o-r*s)*u,t):null}function Z3(t){return t[0]*t[3]-t[1]*t[2]}function tM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1],c=r[2],h=r[3],d=r[4],v=r[5];return t[0]=n*f+i*l,t[1]=a*f+o*l,t[2]=n*c+i*h,t[3]=a*c+o*h,t[4]=n*d+i*v+s,t[5]=a*d+o*v+u,t}function K3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=Math.sin(r),l=Math.cos(r);return t[0]=n*l+i*f,t[1]=a*l+o*f,t[2]=n*-f+i*l,t[3]=a*-f+o*l,t[4]=s,t[5]=u,t}function Q3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1];return t[0]=n*f,t[1]=a*f,t[2]=i*l,t[3]=o*l,t[4]=s,t[5]=u,t}function J3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=n*f+i*l+s,t[5]=a*f+o*l+u,t}function e5(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t}function t5(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function r5(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function n5(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function a5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+1)}function i5(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t}function rM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t}function o5(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t}function s5(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t}function u5(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function f5(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=e[0],f=e[1],l=e[2],c=e[3],h=e[4],d=e[5];return Math.abs(r-u)<=pt*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-f)<=pt*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-l)<=pt*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-c)<=pt*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-h)<=pt*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-d)<=pt*Math.max(1,Math.abs(s),Math.abs(d))}var l5=tM,c5=rM;const h5=Object.freeze(Object.defineProperty({__proto__:null,add:i5,clone:X3,copy:W3,create:$3,determinant:Z3,equals:f5,exactEquals:u5,frob:a5,fromRotation:e5,fromScaling:t5,fromTranslation:r5,fromValues:Y3,identity:V3,invert:H3,mul:l5,multiply:tM,multiplyScalar:o5,multiplyScalarAndAdd:s5,rotate:K3,scale:Q3,set:q3,str:n5,sub:c5,subtract:rM,translate:J3},Symbol.toStringTag,{value:"Module"}));function nM(){var t=new qt(9);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function d5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function v5(t){var e=new qt(9);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[6]=t[6],e[7]=t[7],e[8]=t[8],e}function p5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function g5(t,e,r,n,a,i,o,s,u){var f=new qt(9);return f[0]=t,f[1]=e,f[2]=r,f[3]=n,f[4]=a,f[5]=i,f[6]=o,f[7]=s,f[8]=u,f}function y5(t,e,r,n,a,i,o,s,u,f){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t[8]=f,t}function m5(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function b5(t,e){if(t===e){var r=e[1],n=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function aM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=l*o-s*f,h=-l*i+s*u,d=f*i-o*u,v=r*c+n*h+a*d;return v?(v=1/v,t[0]=c*v,t[1]=(-l*n+a*f)*v,t[2]=(s*n-a*o)*v,t[3]=h*v,t[4]=(l*r-a*u)*v,t[5]=(-s*r+a*i)*v,t[6]=d*v,t[7]=(-f*r+n*u)*v,t[8]=(o*r-n*i)*v,t):null}function w5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8];return t[0]=o*l-s*f,t[1]=a*f-n*l,t[2]=n*s-a*o,t[3]=s*u-i*l,t[4]=r*l-a*u,t[5]=a*i-r*s,t[6]=i*f-o*u,t[7]=n*u-r*f,t[8]=r*o-n*i,t}function x5(t){var e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],o=t[5],s=t[6],u=t[7],f=t[8];return e*(f*i-o*u)+r*(-f*a+o*s)+n*(u*a-i*s)}function Qa(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=r[0],d=r[1],v=r[2],p=r[3],g=r[4],y=r[5],m=r[6],b=r[7],w=r[8];return t[0]=h*n+d*o+v*f,t[1]=h*a+d*s+v*l,t[2]=h*i+d*u+v*c,t[3]=p*n+g*o+y*f,t[4]=p*a+g*s+y*l,t[5]=p*i+g*u+y*c,t[6]=m*n+b*o+w*f,t[7]=m*a+b*s+w*l,t[8]=m*i+b*u+w*c,t}function E5(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=u,t[6]=h*n+d*o+f,t[7]=h*a+d*s+l,t[8]=h*i+d*u+c,t}function _5(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*o,t[1]=d*a+h*s,t[2]=d*i+h*u,t[3]=d*o-h*n,t[4]=d*s-h*a,t[5]=d*u-h*i,t[6]=f,t[7]=l,t[8]=c,t}function S5(t,e,r){var n=r[0],a=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function uy(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function fy(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function ly(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function A5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r+r,s=n+n,u=a+a,f=r*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return t[0]=1-c-v,t[3]=l-y,t[6]=h+g,t[1]=l+y,t[4]=1-f-v,t[7]=d-p,t[2]=h-g,t[5]=d+p,t[8]=1-f-c,t}function C5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,t[0]=(s*k-u*I+f*C)*O,t[1]=(u*M-o*k-f*A)*O,t[2]=(o*I-s*M+f*S)*O,t[3]=(a*I-n*k-i*C)*O,t[4]=(r*k-a*M+i*A)*O,t[5]=(n*M-r*I-i*S)*O,t[6]=(p*_-g*E+y*x)*O,t[7]=(g*w-v*_-y*b)*O,t[8]=(v*E-p*w+y*m)*O,t):null}function T5(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function I5(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function k5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}function N5(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t}function iM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function O5(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t}function L5(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t}function D5(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function P5(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=t[8],c=e[0],h=e[1],d=e[2],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(r-c)<=pt*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(n-h)<=pt*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-d)<=pt*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(i-v)<=pt*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-p)<=pt*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-g)<=pt*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=pt*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(f-m)<=pt*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(l-b)<=pt*Math.max(1,Math.abs(l),Math.abs(b))}var R5=Qa,F5=iM;const oM=Object.freeze(Object.defineProperty({__proto__:null,add:N5,adjoint:w5,clone:v5,copy:p5,create:nM,determinant:x5,equals:P5,exactEquals:D5,frob:k5,fromMat2d:M5,fromMat4:d5,fromQuat:A5,fromRotation:fy,fromScaling:ly,fromTranslation:uy,fromValues:g5,identity:m5,invert:aM,mul:R5,multiply:Qa,multiplyScalar:O5,multiplyScalarAndAdd:L5,normalFromMat4:C5,projection:T5,rotate:_5,scale:S5,set:y5,str:I5,sub:F5,subtract:iM,translate:E5,transpose:b5},Symbol.toStringTag,{value:"Module"}));function B5(){var t=new qt(16);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function G5(t){var e=new qt(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function z5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function j5(t,e,r,n,a,i,o,s,u,f,l,c,h,d,v,p){var g=new qt(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=n,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=u,g[9]=f,g[10]=l,g[11]=c,g[12]=h,g[13]=d,g[14]=v,g[15]=p,g}function U5(t,e,r,n,a,i,o,s,u,f,l,c,h,d,v,p,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t[8]=f,t[9]=l,t[10]=c,t[11]=h,t[12]=d,t[13]=v,t[14]=p,t[15]=g,t}function sM(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function $5(t,e){if(t===e){var r=e[1],n=e[2],a=e[3],i=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=i,t[11]=e[14],t[12]=a,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function X5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,t[0]=(s*k-u*I+f*C)*O,t[1]=(a*I-n*k-i*C)*O,t[2]=(p*_-g*E+y*x)*O,t[3]=(h*E-c*_-d*x)*O,t[4]=(u*M-o*k-f*A)*O,t[5]=(r*k-a*M+i*A)*O,t[6]=(g*w-v*_-y*b)*O,t[7]=(l*_-h*w+d*b)*O,t[8]=(o*I-s*M+f*S)*O,t[9]=(n*M-r*I-i*S)*O,t[10]=(v*E-p*w+y*m)*O,t[11]=(c*w-l*E-d*m)*O,t[12]=(s*A-o*C-u*S)*O,t[13]=(r*C-n*A+a*S)*O,t[14]=(p*b-v*x-g*m)*O,t[15]=(l*x-c*b+h*m)*O,t):null}function W5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g;return t[0]=s*k-u*I+f*C,t[1]=a*I-n*k-i*C,t[2]=p*_-g*E+y*x,t[3]=h*E-c*_-d*x,t[4]=u*M-o*k-f*A,t[5]=r*k-a*M+i*A,t[6]=g*w-v*_-y*b,t[7]=l*_-h*w+d*b,t[8]=o*I-s*M+f*S,t[9]=n*M-r*I-i*S,t[10]=v*E-p*w+y*m,t[11]=c*w-l*E-d*m,t[12]=s*A-o*C-u*S,t[13]=r*C-n*A+a*S,t[14]=p*b-v*x-g*m,t[15]=l*x-c*b+h*m,t}function V5(t){var e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],o=t[5],s=t[6],u=t[7],f=t[8],l=t[9],c=t[10],h=t[11],d=t[12],v=t[13],p=t[14],g=t[15],y=e*o-r*i,m=e*s-n*i,b=r*s-n*o,w=f*v-l*d,x=f*p-c*d,E=l*p-c*v,_=e*E-r*x+n*w,S=i*E-o*x+s*w,A=f*b-l*m+c*y,M=d*b-v*m+p*y;return u*_-a*S+g*A-h*M}function uM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=e[9],d=e[10],v=e[11],p=e[12],g=e[13],y=e[14],m=e[15],b=r[0],w=r[1],x=r[2],E=r[3];return t[0]=b*n+w*s+x*c+E*p,t[1]=b*a+w*u+x*h+E*g,t[2]=b*i+w*f+x*d+E*y,t[3]=b*o+w*l+x*v+E*m,b=r[4],w=r[5],x=r[6],E=r[7],t[4]=b*n+w*s+x*c+E*p,t[5]=b*a+w*u+x*h+E*g,t[6]=b*i+w*f+x*d+E*y,t[7]=b*o+w*l+x*v+E*m,b=r[8],w=r[9],x=r[10],E=r[11],t[8]=b*n+w*s+x*c+E*p,t[9]=b*a+w*u+x*h+E*g,t[10]=b*i+w*f+x*d+E*y,t[11]=b*o+w*l+x*v+E*m,b=r[12],w=r[13],x=r[14],E=r[15],t[12]=b*n+w*s+x*c+E*p,t[13]=b*a+w*u+x*h+E*g,t[14]=b*i+w*f+x*d+E*y,t[15]=b*o+w*l+x*v+E*m,t}function Y5(t,e,r){var n=r[0],a=r[1],i=r[2],o,s,u,f,l,c,h,d,v,p,g,y;return e===t?(t[12]=e[0]*n+e[4]*a+e[8]*i+e[12],t[13]=e[1]*n+e[5]*a+e[9]*i+e[13],t[14]=e[2]*n+e[6]*a+e[10]*i+e[14],t[15]=e[3]*n+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],u=e[2],f=e[3],l=e[4],c=e[5],h=e[6],d=e[7],v=e[8],p=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=u,t[3]=f,t[4]=l,t[5]=c,t[6]=h,t[7]=d,t[8]=v,t[9]=p,t[10]=g,t[11]=y,t[12]=o*n+l*a+v*i+e[12],t[13]=s*n+c*a+p*i+e[13],t[14]=u*n+h*a+g*i+e[14],t[15]=f*n+d*a+y*i+e[15]),t}function q5(t,e,r){var n=r[0],a=r[1],i=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function H5(t,e,r,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),u,f,l,c,h,d,v,p,g,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;return s0?(r[0]=(s*o+l*n+u*i-f*a)*2/c,r[1]=(u*o+l*a+f*n-s*i)*2/c,r[2]=(f*o+l*i+s*a-u*n)*2/c):(r[0]=(s*o+l*n+u*i-f*a)*2,r[1]=(u*o+l*a+f*n-s*i)*2,r[2]=(f*o+l*i+s*a-u*n)*2),fM(t,e,r),t}function lM(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function cM(t,e){var r=e[0],n=e[1],a=e[2],i=e[4],o=e[5],s=e[6],u=e[8],f=e[9],l=e[10];return t[0]=Math.sqrt(r*r+n*n+a*a),t[1]=Math.sqrt(i*i+o*o+s*s),t[2]=Math.sqrt(u*u+f*f+l*l),t}function hM(t,e){var r=new qt(3);cM(r,e);var n=1/r[0],a=1/r[1],i=1/r[2],o=e[0]*n,s=e[1]*a,u=e[2]*i,f=e[4]*n,l=e[5]*a,c=e[6]*i,h=e[8]*n,d=e[9]*a,v=e[10]*i,p=o+l+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,t[3]=.25*g,t[0]=(c-d)/g,t[1]=(h-u)/g,t[2]=(s-f)/g):o>l&&o>v?(g=Math.sqrt(1+o-l-v)*2,t[3]=(c-d)/g,t[0]=.25*g,t[1]=(s+f)/g,t[2]=(h+u)/g):l>v?(g=Math.sqrt(1+l-o-v)*2,t[3]=(h-u)/g,t[0]=(s+f)/g,t[1]=.25*g,t[2]=(c+d)/g):(g=Math.sqrt(1+v-o-l)*2,t[3]=(s-f)/g,t[0]=(h+u)/g,t[1]=(c+d)/g,t[2]=.25*g),t}function oF(t,e,r,n){e[0]=n[12],e[1]=n[13],e[2]=n[14];var a=n[0],i=n[1],o=n[2],s=n[4],u=n[5],f=n[6],l=n[8],c=n[9],h=n[10];r[0]=Math.sqrt(a*a+i*i+o*o),r[1]=Math.sqrt(s*s+u*u+f*f),r[2]=Math.sqrt(l*l+c*c+h*h);var d=1/r[0],v=1/r[1],p=1/r[2],g=a*d,y=i*v,m=o*p,b=s*d,w=u*v,x=f*p,E=l*d,_=c*v,S=h*p,A=g+w+S,M=0;return A>0?(M=Math.sqrt(A+1)*2,t[3]=.25*M,t[0]=(x-_)/M,t[1]=(E-m)/M,t[2]=(y-b)/M):g>w&&g>S?(M=Math.sqrt(1+g-w-S)*2,t[3]=(x-_)/M,t[0]=.25*M,t[1]=(y+b)/M,t[2]=(E+m)/M):w>S?(M=Math.sqrt(1+w-g-S)*2,t[3]=(E-m)/M,t[0]=(y+b)/M,t[1]=.25*M,t[2]=(x+_)/M):(M=Math.sqrt(1+S-g-w)*2,t[3]=(y-b)/M,t[0]=(E+m)/M,t[1]=(x+_)/M,t[2]=.25*M),t}function sF(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=a+a,f=i+i,l=o+o,c=a*u,h=a*f,d=a*l,v=i*f,p=i*l,g=o*l,y=s*u,m=s*f,b=s*l,w=n[0],x=n[1],E=n[2];return t[0]=(1-(v+g))*w,t[1]=(h+b)*w,t[2]=(d-m)*w,t[3]=0,t[4]=(h-b)*x,t[5]=(1-(c+g))*x,t[6]=(p+y)*x,t[7]=0,t[8]=(d+m)*E,t[9]=(p-y)*E,t[10]=(1-(c+v))*E,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function uF(t,e,r,n,a){var i=e[0],o=e[1],s=e[2],u=e[3],f=i+i,l=o+o,c=s+s,h=i*f,d=i*l,v=i*c,p=o*l,g=o*c,y=s*c,m=u*f,b=u*l,w=u*c,x=n[0],E=n[1],_=n[2],S=a[0],A=a[1],M=a[2],C=(1-(p+y))*x,I=(d+w)*x,k=(v-b)*x,O=(d-w)*E,B=(1-(h+y))*E,L=(g+m)*E,z=(v+b)*_,X=(g-m)*_,R=(1-(h+p))*_;return t[0]=C,t[1]=I,t[2]=k,t[3]=0,t[4]=O,t[5]=B,t[6]=L,t[7]=0,t[8]=z,t[9]=X,t[10]=R,t[11]=0,t[12]=r[0]+S-(C*S+O*A+z*M),t[13]=r[1]+A-(I*S+B*A+X*M),t[14]=r[2]+M-(k*S+L*A+R*M),t[15]=1,t}function fF(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r+r,s=n+n,u=a+a,f=r*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return t[0]=1-c-v,t[1]=l+y,t[2]=h-g,t[3]=0,t[4]=l-y,t[5]=1-f-v,t[6]=d+p,t[7]=0,t[8]=h+g,t[9]=d-p,t[10]=1-f-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function lF(t,e,r,n,a,i,o){var s=1/(r-e),u=1/(a-n),f=1/(i-o);return t[0]=i*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i*2*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(a+n)*u,t[10]=(o+i)*f,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*f,t[15]=0,t}function dM(t,e,r,n,a){var i=1/Math.tan(e/2);if(t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0){var o=1/(n-a);t[10]=(a+n)*o,t[14]=2*a*n*o}else t[10]=-1,t[14]=-2*n;return t}var cF=dM;function hF(t,e,r,n,a){var i=1/Math.tan(e/2);if(t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0){var o=1/(n-a);t[10]=a*o,t[14]=a*n*o}else t[10]=-1,t[14]=-n;return t}function dF(t,e,r,n){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),f=2/(a+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=f,t[6]=0,t[7]=0,t[8]=-((o-s)*u*.5),t[9]=(a-i)*f*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}function vM(t,e,r,n,a,i,o){var s=1/(e-r),u=1/(n-a),f=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*f,t[11]=0,t[12]=(e+r)*s,t[13]=(a+n)*u,t[14]=(o+i)*f,t[15]=1,t}var vF=vM;function pF(t,e,r,n,a,i,o){var s=1/(e-r),u=1/(n-a),f=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=f,t[11]=0,t[12]=(e+r)*s,t[13]=(a+n)*u,t[14]=i*f,t[15]=1,t}function gF(t,e,r,n){var a,i,o,s,u,f,l,c,h,d,v=e[0],p=e[1],g=e[2],y=n[0],m=n[1],b=n[2],w=r[0],x=r[1],E=r[2];return Math.abs(v-w)0&&(d=1/Math.sqrt(d),l*=d,c*=d,h*=d);var v=u*h-f*c,p=f*l-s*h,g=s*c-u*l;return d=v*v+p*p+g*g,d>0&&(d=1/Math.sqrt(d),v*=d,p*=d,g*=d),t[0]=v,t[1]=p,t[2]=g,t[3]=0,t[4]=c*g-h*p,t[5]=h*v-l*g,t[6]=l*p-c*v,t[7]=0,t[8]=l,t[9]=c,t[10]=h,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t}function mF(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function bF(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8]+t[9]*t[9]+t[10]*t[10]+t[11]*t[11]+t[12]*t[12]+t[13]*t[13]+t[14]*t[14]+t[15]*t[15])}function wF(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t}function pM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function xF(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t}function EF(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t}function _F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function SF(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=t[8],c=t[9],h=t[10],d=t[11],v=t[12],p=t[13],g=t[14],y=t[15],m=e[0],b=e[1],w=e[2],x=e[3],E=e[4],_=e[5],S=e[6],A=e[7],M=e[8],C=e[9],I=e[10],k=e[11],O=e[12],B=e[13],L=e[14],z=e[15];return Math.abs(r-m)<=pt*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(n-b)<=pt*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-w)<=pt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-x)<=pt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-E)<=pt*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-_)<=pt*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(u-S)<=pt*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-A)<=pt*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(l-M)<=pt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-C)<=pt*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-I)<=pt*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(d-k)<=pt*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(v-O)<=pt*Math.max(1,Math.abs(v),Math.abs(O))&&Math.abs(p-B)<=pt*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(g-L)<=pt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-z)<=pt*Math.max(1,Math.abs(y),Math.abs(z))}var MF=uM,AF=pM;const CF=Object.freeze(Object.defineProperty({__proto__:null,add:wF,adjoint:W5,clone:G5,copy:z5,create:B5,decompose:oF,determinant:V5,equals:SF,exactEquals:_F,frob:bF,fromQuat:fF,fromQuat2:iF,fromRotation:tF,fromRotationTranslation:fM,fromRotationTranslationScale:sF,fromRotationTranslationScaleOrigin:uF,fromScaling:eF,fromTranslation:J5,fromValues:j5,fromXRotation:rF,fromYRotation:nF,fromZRotation:aF,frustum:lF,getRotation:hM,getScaling:cM,getTranslation:lM,identity:sM,invert:X5,lookAt:gF,mul:MF,multiply:uM,multiplyScalar:xF,multiplyScalarAndAdd:EF,ortho:vF,orthoNO:vM,orthoZO:pF,perspective:cF,perspectiveFromFieldOfView:dF,perspectiveNO:dM,perspectiveZO:hF,rotate:H5,rotateX:Z5,rotateY:K5,rotateZ:Q5,scale:q5,set:U5,str:mF,sub:AF,subtract:pM,targetTo:yF,translate:Y5,transpose:$5},Symbol.toStringTag,{value:"Module"}));function cy(){var t=new qt(3);return qt!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function TF(t){var e=new qt(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function gM(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function x0(t,e,r){var n=new qt(3);return n[0]=t,n[1]=e,n[2]=r,n}function IF(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function kF(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function NF(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function yM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function mM(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function bM(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function OF(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function LF(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function DF(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function PF(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function RF(t,e){return t[0]=Ba(e[0]),t[1]=Ba(e[1]),t[2]=Ba(e[2]),t}function FF(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function BF(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function wM(t,e){var r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(r*r+n*n+a*a)}function xM(t,e){var r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function EM(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function GF(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function zF(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _M(t,e){var r=e[0],n=e[1],a=e[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function md(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eh(t,e,r){var n=e[0],a=e[1],i=e[2],o=r[0],s=r[1],u=r[2];return t[0]=a*u-i*s,t[1]=i*o-n*u,t[2]=n*s-a*o,t}function jF(t,e,r,n){var a=e[0],i=e[1],o=e[2];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t}function UF(t,e,r,n){var a=Math.acos(Math.min(Math.max(md(e,r),-1),1)),i=Math.sin(a),o=Math.sin((1-n)*a)/i,s=Math.sin(n*a)/i;return t[0]=o*e[0]+s*r[0],t[1]=o*e[1]+s*r[1],t[2]=o*e[2]+s*r[2],t}function $F(t,e,r,n,a,i){var o=i*i,s=o*(2*i-3)+1,u=o*(i-2)+i,f=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*s+r[0]*u+n[0]*f+a[0]*l,t[1]=e[1]*s+r[1]*u+n[1]*f+a[1]*l,t[2]=e[2]*s+r[2]*u+n[2]*f+a[2]*l,t}function XF(t,e,r,n,a,i){var o=1-i,s=o*o,u=i*i,f=s*o,l=3*i*s,c=3*u*o,h=u*i;return t[0]=e[0]*f+r[0]*l+n[0]*c+a[0]*h,t[1]=e[1]*f+r[1]*l+n[1]*c+a[1]*h,t[2]=e[2]*f+r[2]*l+n[2]*c+a[2]*h,t}function WF(t,e){e=e===void 0?1:e;var r=ya()*2*Math.PI,n=ya()*2-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=n*e,t}function VF(t,e,r){var n=e[0],a=e[1],i=e[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,t[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,t[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,t}function bd(t,e,r){var n=e[0],a=e[1],i=e[2];return t[0]=n*r[0]+a*r[3]+i*r[6],t[1]=n*r[1]+a*r[4]+i*r[7],t[2]=n*r[2]+a*r[5]+i*r[8],t}function YF(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,t[0]=s+o*l+a*h-i*c,t[1]=u+o*c+i*l-n*h,t[2]=f+o*h+n*c-a*l,t}function qF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function HF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function ZF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function KF(t,e){var r=t[0],n=t[1],a=t[2],i=e[0],o=e[1],s=e[2],u=Math.sqrt((r*r+n*n+a*a)*(i*i+o*o+s*s)),f=u&&md(t,e)/u;return Math.acos(Math.min(Math.max(f,-1),1))}function QF(t){return t[0]=0,t[1]=0,t[2]=0,t}function JF(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function eB(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function tB(t,e){var r=t[0],n=t[1],a=t[2],i=e[0],o=e[1],s=e[2];return Math.abs(r-i)<=pt*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-o)<=pt*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=pt*Math.max(1,Math.abs(a),Math.abs(s))}var rB=yM,nB=mM,aB=bM,iB=wM,oB=xM,SM=gM,sB=EM,uB=function(){var t=cy();return function(e,r,n,a,i,o){var s,u;for(r||(r=3),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;s0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=n*o,t[2]=a*o,t[3]=i*o,t}function vy(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function mB(t,e,r,n){var a=r[0]*n[1]-r[1]*n[0],i=r[0]*n[2]-r[2]*n[0],o=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],u=r[1]*n[3]-r[3]*n[1],f=r[2]*n[3]-r[3]*n[2],l=e[0],c=e[1],h=e[2],d=e[3];return t[0]=c*f-h*u+d*s,t[1]=-(l*f)+h*o-d*i,t[2]=l*u-c*o+d*a,t[3]=-(l*s)+c*i-h*a,t}function BM(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}function bB(t,e){e=e===void 0?1:e;var r,n,a,i,o,s,u;u=ya(),r=u*2-1,n=(4*ya()-2)*Math.sqrt(u*-u+u),o=r*r+n*n,u=ya(),a=u*2-1,i=(4*ya()-2)*Math.sqrt(u*-u+u),s=a*a+i*i;var f=Math.sqrt((1-o)/s);return t[0]=e*r,t[1]=e*n,t[2]=e*a*f,t[3]=e*i*f,t}function wB(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3];return t[0]=r[0]*n+r[4]*a+r[8]*i+r[12]*o,t[1]=r[1]*n+r[5]*a+r[9]*i+r[13]*o,t[2]=r[2]*n+r[6]*a+r[10]*i+r[14]*o,t[3]=r[3]*n+r[7]*a+r[11]*i+r[15]*o,t}function xB(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,t[0]=s+o*l+a*h-i*c,t[1]=u+o*c+i*l-n*h,t[2]=f+o*h+n*c-a*l,t[3]=e[3],t}function EB(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function _B(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function GM(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function SB(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(r-o)<=pt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}var MB=NM,AB=OM,CB=LM,TB=PM,IB=RM,kB=hy,NB=dy,OB=function(){var t=MM();return function(e,r,n,a,i,o){var s,u;for(r||(r=4),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;spt?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function RB(t,e){var r=gy(t,e);return Math.acos(2*r*r-1)}function jM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*l+o*s+a*f-i*u,t[1]=a*l+o*u+i*s-n*f,t[2]=i*l+o*f+n*u-a*s,t[3]=o*l-n*s-a*u-i*f,t}function UM(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*s,t[1]=a*u+i*s,t[2]=i*u-a*s,t[3]=o*u-n*s,t}function $M(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*s,t[1]=a*u+o*s,t[2]=i*u+n*s,t[3]=o*u-a*s,t}function XM(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+a*s,t[1]=a*u-n*s,t[2]=i*u+o*s,t[3]=o*u-i*s,t}function FB(t,e){var r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t}function WM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(r*r+n*n+a*a),s=Math.exp(i),u=o>0?s*Math.sin(o)/o:0;return t[0]=r*u,t[1]=n*u,t[2]=a*u,t[3]=s*Math.cos(o),t}function VM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(r*r+n*n+a*a),s=o>0?Math.atan2(o,i)/o:0;return t[0]=r*s,t[1]=n*s,t[2]=a*s,t[3]=.5*Math.log(r*r+n*n+a*a+i*i),t}function BB(t,e,r){return VM(t,e),qM(t,t,r),WM(t,t),t}function th(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=r[0],f=r[1],l=r[2],c=r[3],h,d,v,p,g;return d=a*u+i*f+o*l+s*c,d<0&&(d=-d,u=-u,f=-f,l=-l,c=-c),1-d>pt?(h=Math.acos(d),v=Math.sin(h),p=Math.sin((1-n)*h)/v,g=Math.sin(n*h)/v):(p=1-n,g=n),t[0]=p*a+g*u,t[1]=p*i+g*f,t[2]=p*o+g*l,t[3]=p*s+g*c,t}function GB(t){var e=ya(),r=ya(),n=ya(),a=Math.sqrt(1-e),i=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=i*Math.sin(2*Math.PI*n),t[3]=i*Math.cos(2*Math.PI*n),t}function zB(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r*r+n*n+a*a+i*i,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*s,t[2]=-a*s,t[3]=i*s,t}function jB(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function YM(t,e){var r=e[0]+e[4]+e[8],n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),t[a]=.5*n,n=.5/n,t[3]=(e[i*3+o]-e[o*3+i])*n,t[i]=(e[i*3+a]+e[a*3+i])*n,t[o]=(e[o*3+a]+e[a*3+o])*n}return t}function UB(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:QS,i=Math.PI/360;e*=i,n*=i,r*=i;var o=Math.sin(e),s=Math.cos(e),u=Math.sin(r),f=Math.cos(r),l=Math.sin(n),c=Math.cos(n);switch(a){case"xyz":t[0]=o*f*c+s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c-o*u*l;break;case"xzy":t[0]=o*f*c-s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c+o*u*l;break;case"yxz":t[0]=o*f*c+s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c+o*u*l;break;case"yzx":t[0]=o*f*c+s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c-o*u*l;break;case"zxy":t[0]=o*f*c-s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c-o*u*l;break;case"zyx":t[0]=o*f*c-s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c+o*u*l;break;default:throw new Error("Unknown angle order "+a)}return t}function $B(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var XB=AM,WB=CM,py=TM,VB=IM,YB=kM,qB=jM,qM=DM,gy=vy,HB=BM,yy=hy,ZB=yy,my=dy,KB=my,by=FM,QB=GM;function JB(t,e){return Math.abs(vy(t,e))>=1-pt}var e4=function(){var t=cy(),e=x0(1,0,0),r=x0(0,1,0);return function(n,a,i){var o=md(a,i);return o<-.999999?(eh(t,e,a),SM(t)<1e-6&&eh(t,r,a),_M(t,t),zM(n,t,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(eh(t,a,i),n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=1+o,by(n,n))}}(),t4=function(){var t=Th(),e=Th();return function(r,n,a,i,o,s){return th(t,n,o,s),th(e,a,i,s),th(r,t,e,2*s*(1-s)),r}}(),r4=function(){var t=nM();return function(e,r,n,a){return t[0]=n[0],t[3]=n[1],t[6]=n[2],t[1]=a[0],t[4]=a[1],t[7]=a[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],by(e,YM(e,t))}}();const n4=Object.freeze(Object.defineProperty({__proto__:null,add:YB,calculateW:FB,clone:XB,conjugate:jB,copy:py,create:Th,dot:gy,equals:JB,exactEquals:QB,exp:WM,fromEuler:UB,fromMat3:YM,fromValues:WB,getAngle:RB,getAxisAngle:PB,identity:DB,invert:zB,len:ZB,length:yy,lerp:HB,ln:VM,mul:qB,multiply:jM,normalize:by,pow:BB,random:GB,rotateX:UM,rotateY:$M,rotateZ:XM,rotationTo:e4,scale:qM,set:VB,setAxes:r4,setAxisAngle:zM,slerp:th,sqlerp:t4,sqrLen:KB,squaredLength:my,str:$B},Symbol.toStringTag,{value:"Module"}));function a4(){var t=new qt(8);return qt!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function i4(t){var e=new qt(8);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[6]=t[6],e[7]=t[7],e}function o4(t,e,r,n,a,i,o,s){var u=new qt(8);return u[0]=t,u[1]=e,u[2]=r,u[3]=n,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u}function s4(t,e,r,n,a,i,o){var s=new qt(8);s[0]=t,s[1]=e,s[2]=r,s[3]=n;var u=a*.5,f=i*.5,l=o*.5;return s[4]=u*n+f*r-l*e,s[5]=f*n+l*t-u*r,s[6]=l*n+u*e-f*t,s[7]=-u*t-f*e-l*r,s}function HM(t,e,r){var n=r[0]*.5,a=r[1]*.5,i=r[2]*.5,o=e[0],s=e[1],u=e[2],f=e[3];return t[0]=o,t[1]=s,t[2]=u,t[3]=f,t[4]=n*f+a*u-i*s,t[5]=a*f+i*o-n*u,t[6]=i*f+n*s-a*o,t[7]=-n*o-a*s-i*u,t}function u4(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0]*.5,t[5]=e[1]*.5,t[6]=e[2]*.5,t[7]=0,t}function f4(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function l4(t,e){var r=Th();hM(r,e);var n=new qt(3);return lM(n,e),HM(t,r,n),t}function ZM(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function c4(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function h4(t,e,r,n,a,i,o,s,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t}var d4=py;function v4(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var p4=py;function g4(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function y4(t,e){var r=e[4],n=e[5],a=e[6],i=e[7],o=-e[0],s=-e[1],u=-e[2],f=e[3];return t[0]=(r*f+i*o+n*u-a*s)*2,t[1]=(n*f+i*s+a*o-r*u)*2,t[2]=(a*f+i*u+r*s-n*o)*2,t}function m4(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0]*.5,u=r[1]*.5,f=r[2]*.5,l=e[4],c=e[5],h=e[6],d=e[7];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=o*s+a*f-i*u+l,t[5]=o*u+i*s-n*f+c,t[6]=o*f+n*u-a*s+h,t[7]=-n*s-a*u-i*f+d,t}function b4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return UM(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function w4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return $M(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function x4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return XM(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function E4(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=e[3];return t[0]=s*o+l*n+u*i-f*a,t[1]=u*o+l*a+f*n-s*i,t[2]=f*o+l*i+s*a-u*n,t[3]=l*o-s*n-u*a-f*i,s=e[4],u=e[5],f=e[6],l=e[7],t[4]=s*o+l*n+u*i-f*a,t[5]=u*o+l*a+f*n-s*i,t[6]=f*o+l*i+s*a-u*n,t[7]=l*o-s*n-u*a-f*i,t}function _4(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*l+o*s+a*f-i*u,t[1]=a*l+o*u+i*s-n*f,t[2]=i*l+o*f+n*u-a*s,t[3]=o*l-n*s-a*u-i*f,s=r[4],u=r[5],f=r[6],l=r[7],t[4]=n*l+o*s+a*f-i*u,t[5]=a*l+o*u+i*s-n*f,t[6]=i*l+o*f+n*u-a*s,t[7]=o*l-n*s-a*u-i*f,t}function S4(t,e,r,n){if(Math.abs(n)0){r=Math.sqrt(r);var n=e[0]/r,a=e[1]/r,i=e[2]/r,o=e[3]/r,s=e[4],u=e[5],f=e[6],l=e[7],c=n*s+a*u+i*f+o*l;t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=(s-n*c)/r,t[5]=(u-a*c)/r,t[6]=(f-i*c)/r,t[7]=(l-o*c)/r}return t}function D4(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function P4(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]}function R4(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=e[0],c=e[1],h=e[2],d=e[3],v=e[4],p=e[5],g=e[6],y=e[7];return Math.abs(r-l)<=pt*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(n-c)<=pt*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(a-h)<=pt*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-d)<=pt*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-v)<=pt*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-p)<=pt*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-g)<=pt*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-y)<=pt*Math.max(1,Math.abs(f),Math.abs(y))}const F4=Object.freeze(Object.defineProperty({__proto__:null,add:M4,clone:i4,conjugate:k4,copy:ZM,create:a4,dot:QM,equals:R4,exactEquals:P4,fromMat4:l4,fromRotation:f4,fromRotationTranslation:HM,fromRotationTranslationValues:s4,fromTranslation:u4,fromValues:o4,getDual:v4,getReal:d4,getTranslation:y4,identity:c4,invert:I4,len:N4,length:JM,lerp:T4,mul:A4,multiply:KM,normalize:L4,rotateAroundAxis:S4,rotateByQuatAppend:E4,rotateByQuatPrepend:_4,rotateX:b4,rotateY:w4,rotateZ:x4,scale:C4,set:h4,setDual:g4,setReal:p4,sqrLen:O4,squaredLength:wd,str:D4,translate:m4},Symbol.toStringTag,{value:"Module"}));function eA(){var t=new qt(2);return qt!=Float32Array&&(t[0]=0,t[1]=0),t}function B4(t){var e=new qt(2);return e[0]=t[0],e[1]=t[1],e}function G4(t,e){var r=new qt(2);return r[0]=t,r[1]=e,r}function z4(t,e){return t[0]=e[0],t[1]=e[1],t}function j4(t,e,r){return t[0]=e,t[1]=r,t}function fn(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function tA(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function rA(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function nA(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function U4(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function $4(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function Pi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ri(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function X4(t,e){return t[0]=Ba(e[0]),t[1]=Ba(e[1]),t}function wn(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function W4(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Ih(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function aA(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function iA(t){var e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function oA(t){var e=t[0],r=t[1];return e*e+r*r}function V4(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Y4(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function Wi(t,e){var r=e[0],n=e[1],a=r*r+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t}function wy(t,e){return t[0]*e[0]+t[1]*e[1]}function q4(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t}function H4(t,e,r,n){var a=e[0],i=e[1];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t}function Z4(t,e){e=e===void 0?1:e;var r=ya()*2*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t}function K4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a,t[1]=r[1]*n+r[3]*a,t}function Q4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function J4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[3]*a+r[6],t[1]=r[1]*n+r[4]*a+r[7],t}function eG(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[4]*a+r[12],t[1]=r[1]*n+r[5]*a+r[13],t}function tG(t,e,r,n){var a=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),s=Math.cos(n);return t[0]=a*s-i*o+r[0],t[1]=a*o+i*s+r[1],t}function sA(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.abs(Math.atan2(n*a-r*i,r*a+n*i))}function rG(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.atan2(r*i-n*a,r*a+n*i)}function nG(t){return t[0]=0,t[1]=0,t}function aG(t){return"vec2("+t[0]+", "+t[1]+")"}function xy(t,e){return t[0]===e[0]&&t[1]===e[1]}function iG(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.abs(r-a)<=pt*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-i)<=pt*Math.max(1,Math.abs(n),Math.abs(i))}var oG=iA,rh=tA,sG=rA,uG=nA,fG=Ih,lG=aA,cG=oA,hG=function(){var t=eA();return function(e,r,n,a,i,o){var s,u;for(r||(r=2),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;s0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o},cA=function(e){for(var r=e.nodes,n=r===void 0?[]:r,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=Un(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=Un(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),r&&n?(M=!1,C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!0)):r&&!n&&C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(r&&n===!1&&r.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=cA({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(r&&n&&r.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s},pA=function(e,r,n,a){return a===void 0&&(a=!0),r?Ay(e,n,a):My(e,n,a)},MG=function(e,r,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?Un(v,s,"target"):Un(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c},Of=function(e,r){for(var n=Uo(e,r),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},bA=function(e,r,n,a){r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=fA();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=Uo(e,r),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=rr(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=fp(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=fp(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},wA=function(e,r,n,a,i,o,s,u){return r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e-4),i===void 0&&(i=void 0),o===void 0&&(o=[]),s===void 0&&(s=["id"]),u===void 0&&(u=1),Iy(e,r,n,a,!0,i,o,s,u)},xA=function(e,r){var n;r===void 0&&(r=1);for(var a=rr(e),i=a.nodes,o=i===void 0?[]:i,s=a.edges,u=s===void 0?[]:s,f=function(){var h=yi({nodes:o,edges:u}),d=Object.keys(h);d.sort(function(g,y){var m,b;return((m=h[g])===null||m===void 0?void 0:m.degree)-((b=h[y])===null||b===void 0?void 0:b.degree)});var v=d[0];if(!o.length||((n=h[v])===null||n===void 0?void 0:n.degree)>=r)return"break";var p=o.findIndex(function(g){return g.id===v});o.splice(p,1),u=u.filter(function(g){return!(g.source===v||g.target===v)})};;){var l=f();if(l==="break")break}return{nodes:o,edges:u}},hw=function(e,r,n){var a=[];switch(e){case pa.EuclideanDistance:a=r[n];break;default:a=[];break}return a},EA=function(e,r,n,a,i,o){r===void 0&&(r=3),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=["id"]),o===void 0&&(o=pa.EuclideanDistance);var s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(o===pa.EuclideanDistance&&!u.every(function(he){return he.hasOwnProperty(n)}))return c;var h=[],d=[];if(o===pa.EuclideanDistance&&(h=Cy(u,n),d=Ty(h,a,i)),!d.length)return c;for(var v=kf(d.map(function(he){return he.join("")})),p=Math.min(r,u.length,v.length),g=0;gx&&!y.find(function(it){return jo(it,hw(o,d,u[le].originIndex))})&&(x=Ve,E=le)}},S=0;S=0;O--)b[Number(u[g].clusterId)][O].id===u[g].id&&b[Number(u[g].clusterId)].splice(O,1);u[g].clusterId=String(M),b[M].push(u[g])}}for(var B=!1,g=0;g=1e3)break}var R=[],V={};return l.forEach(function(he){var ce,le,ie=he.source,Ie=he.target,qe=(ce=u.find(function(st){return st.id===ie}))===null||ce===void 0?void 0:ce.clusterId,Ve=(le=u.find(function(st){return st.id===Ie}))===null||le===void 0?void 0:le.clusterId,it="".concat(qe,"---").concat(Ve);if(V[it])V[it].count++;else{var dt={source:qe,target:Ve,count:1};V[it]=dt,R.push(dt)}}),{clusters:b,clusterEdges:R}},ky=function(e,r){var n=new ta(r),a=n.norm2(),i=new ta(e),o=i.norm2(),s=n.dot(i),u=a*o,f=u?s/u:0;return f},_A=function(e,r,n,a,i){e===void 0&&(e=[]),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=[]);var o=rr(e.filter(function(h){return h.id!==r.id})),s=e.findIndex(function(h){return h.id===r.id}),u=Cy(e,n),f=Ty(u,a,i),l=f[s],c=[];return o.forEach(function(h,d){if(h.id!==r.id){var v=f[d],p=ky(v,l);c.push(p),h.cosineSimilarity=p}}),o.sort(function(h,d){return d.cosineSimilarity-h.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},CG=function(){function t(e){this.count=e.length,this.parent={};for(var r=0,n=e;r0&&(this.list[0]=r,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var r=this.list.length-1;return this.moveUp(r),!0}return!1},t.prototype.moveUp=function(e){for(var r=this.getParent(e);e&&e>0&&this.compareFn(this.list[r],this.list[e])>0;){var n=this.list[r];this.list[r]=this.list[e],this.list[e]=n,e=r,r=this.getParent(e)}},t.prototype.moveDown=function(e){var r,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(r=[this.list[n],this.list[e]],this.list[e]=r[0],this.list[n]=r[1],this.moveDown(n))},t}(),kG=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return r?g.weight-y.weight:0},c=new IG(l);for(nh(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),nh(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),nh(v,s).forEach(function(p){c.insert(p)})))}return n},dw=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});r&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new CG(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},SA=function(e,r,n){var a={prim:kG,kruskal:dw};return n?a[n](e,r):dw(e,r)},MA=function(e,r,n){typeof r!="number"&&(r=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>r;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(r.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new ko(p,m,Ga,_.edgeLabel,Ga));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new ic(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new ic(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=r.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(r.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:r.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=r.maxNodeNum)){var y=r.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=r.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(r.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:r.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*r)););if(g<2*r&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*r)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[r]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},kA=function(e,r,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=Of(e,n),c=Of(r,n),h=ww(e.nodes,l,n),d=ww(r.nodes,c,n),v=mw(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=mw(r.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;bw(e.edges,s,p);var w=bw(r.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,Xn(Xn([],x,!1),[2],!1))),a||(a=i);var E=yw(e,l,o,a),_=yw(r,c,o,a),S=Math.min(100,f*(f-1)/2),A=FG(a,f,S,E,l),M=ah(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=RG(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=ih(Se,tt,o,s);X[te][N]=Fe})});var R=BG(X,z,L),V=R.structure,he=R.structureCountMap,ce=r.nodes[0],le=[],ie=(u=r.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;r.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=ah(Se,_,r,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=ih(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=ah(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=ih(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=IA(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:GG(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=Nf(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,xu=ge[Ur.id].inDegree,Eu=ge[Ur.id].outDegree,rn=Ur[o],ti=xw(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,_u=ti.minPatternNodeLabelInDegree,Su=ti.minPatternNodeLabelOutDegree,Mu=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},Gs=function(){function t(e){e===void 0&&(e=10),this.linkedList=new uA,this.maxStep=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),NA=Sy;const zG={getAdjMatrix:Uo,breadthFirstSearch:lA,connectedComponent:Ey,getDegree:yi,getInDegree:hA,getOutDegree:dA,detectCycle:Sy,detectDirectedCycle:NA,detectAllCycles:pA,detectAllDirectedCycle:Ay,detectAllUndirectedCycle:My,depthFirstSearch:_y,dijkstra:Nf,findAllPath:mA,findShortestPath:yA,floydWarshall:Of,labelPropagation:bA,louvain:Iy,iLouvain:wA,kCore:xA,kMeans:EA,cosineSimilarity:ky,nodesCosineSimilarity:_A,minimumSpanningTree:SA,pageRank:MA,getNeighbors:Un,Stack:Gs,GADDI:kA},jG=Object.freeze(Object.defineProperty({__proto__:null,GADDI:kA,Stack:Gs,breadthFirstSearch:lA,connectedComponent:Ey,cosineSimilarity:ky,default:zG,depthFirstSearch:_y,detectAllCycles:pA,detectAllDirectedCycle:Ay,detectAllUndirectedCycle:My,detectCycle:Sy,detectDirectedCycle:NA,dijkstra:Nf,findAllPath:mA,findShortestPath:yA,floydWarshall:Of,getAdjMatrix:Uo,getDegree:yi,getInDegree:hA,getNeighbors:Un,getOutDegree:dA,iLouvain:wA,kCore:xA,kMeans:EA,labelPropagation:bA,louvain:Iy,minimumSpanningTree:SA,nodesCosineSimilarity:_A,pageRank:MA},Symbol.toStringTag,{value:"Module"}));var Nh=eo,UG=function(e){return function(r,n){return r[e]-n[e]}},Ew=function(e,r,n){return e>=r&&e<=n},xd=function(e,r,n,a){var i=1e-4,o={x:n.x-e.x,y:n.y-e.y},s={x:r.x-e.x,y:r.y-e.y},u={x:a.x-n.x,y:a.y-n.y},f=s.x*u.y-s.y*u.x,l=f*f,c=1/f,h=s.x*s.x+s.y*s.y,d=u.x*u.x+u.y*u.y;if(l>i*h*d){var v=(o.x*u.y-o.y*u.x)*c,p=(o.x*s.y-o.y*s.x)*c;return!Ew(v,0,1)||!Ew(p,0,1)?null:{x:e.x+v*s.x,y:e.y+v*s.y}}return null},OA=function(e,r){var n=e.x,a=e.y,i=e.width,o=e.height,s=n+i/2,u=a+o/2,f=[],l={x:s,y:u};f.push({x:n,y:a}),f.push({x:n+i,y:a}),f.push({x:n+i,y:a+o}),f.push({x:n,y:a+o}),f.push({x:n,y:a});for(var c=null,h=1;hr[a][o]+r[o][i]&&(r[a][i]=r[a][o]+r[o][i]);return r},WG=function(e,r){var n=e.nodes,a=e.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(s,u){o[s.id]=u;var f=[];i.push(f)}),a&&a.forEach(function(s){var u=s.source,f=s.target,l=o[u],c=o[f];i[l][c]=1,r||(i[c][l]=1)}),i},RA=function(e,r){e.translate(r.x,r.y)},_0=function(e,r,n,a){a===void 0&&(a={duration:500});var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=e.getCanvasBBox(),s=r.x-o.minX,u=r.y-o.minY;if(n){var f=s*i[0],l=u*i[4],c=0,h=0,d=0,v=0;e.animate(function(g){return d=f*g,v=l*g,i=Nh(i,[["t",d-c,v-h]]),c=d,h=v,{matrix:i}},a)}else{var p=Nh(i,[["t",s,u]]);e.setMatrix(p)}},VG=function(e,r){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=r;bt(r)||(a=[r,r]),bt(r)&&r.length===1&&(a=[r[0],r[0]]),n=Nh(n,[["s",a[0],a[1]]]),e.setMatrix(n)},YG=function(e,r){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=Nh(n,[["r",r]]),e.setMatrix(n)},qG=function(e,r,n){for(var a=[],i=0;i0!=s(l[1]-n)>0&&s(r-(n-f[1])*(f[0]-l[0])/(f[1]-l[1])-f[0])<0&&(a=!a)}return a},FA=function(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY1){var m=h[0],b=h[v-1];d.push({from:{x:b[0],y:b[1]},to:{x:m[0],y:m[1]}})}return d};if(e.length<2||r.length<2)return!1;var i=n(e),o=n(r);if(!FA(i,o))return!1;var s=!1;if(_e(r,function(c){if(Lf(e,c[0],c[1]))return s=!0,!1}),s||(_e(e,function(c){if(Lf(r,c[0],c[1]))return s=!0,!1}),s))return!0;var u=a(e),f=a(r),l=!1;return _e(f,function(c){if(ZG(u,c))return l=!0,!1}),l},$o=function(){function t(e,r,n,a){this.x1=e,this.y1=r,this.x2=n,this.y2=a}return t.prototype.getBBox=function(){var e=Math.min(this.x1,this.x2),r=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),a=Math.max(this.y1,this.y2),i={x:e,y:r,minX:e,minY:r,maxX:n,maxY:a,width:n-e,height:a-r};return i},t}(),Ny=function(e,r){var n={top:[e.minX,e.minY,e.maxX,e.minY],left:[e.minX,e.minY,e.minX,e.maxY],bottom:[e.minX,e.maxY,e.maxX,e.maxY],right:[e.maxX,e.minY,e.maxX,e.maxY]};return n[r]},KG=function(e,r){var n=(r.x2-r.x1)*(e.y1-r.y1)-(r.y2-r.y1)*(e.x1-r.x1),a=(e.x2-e.x1)*(e.y1-r.y1)-(e.y2-e.y1)*(e.x1-r.x1),i=(r.y2-r.y1)*(e.x2-e.x1)-(r.x2-r.x1)*(e.y2-e.y1);if(i){var o=n/i,s=a/i;if(o>=0&&o<=1&&s>=0&&s<=1)return o}return Number.POSITIVE_INFINITY},GA=function(e,r){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=0,o=[],s=0;s<4;s++){var u=Ny(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3];o[s]=xd({x:r.x1,y:r.y1},{x:r.x2,y:r.y2},{x:f,y:l},{x:c,y:h}),o[s]&&(i+=1)}return[o,i]},Oy=function(e,r){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=Number.POSITIVE_INFINITY,o=0,s=0;s<4;s++){var u=Ny(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3],d=KG(r,new $o(f,l,c,h));d=Math.abs(d-.5),d>=0&&d<=1&&(o+=1,i=d0){for(var a=0,i=e;ar.x+r.width,i=e.y>r.y+r.height,o=e.y":.604998779296875,"/":.5,"?":.53699951171875};var Pa=Math.PI,A0=Math.sin,C0=Math.cos,sn=A0(Pa/8),un=C0(Pa/8),Dh=function(e,r){var n=e.getBBox(),a={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(r){var o=r.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),a=Us(a,o),i=Us(i,o)}var s=a.x,u=a.y,f=i.x,l=i.y;return{x:s,y:u,minX:s,minY:u,maxX:f,maxY:l,width:f-s,height:l-u}},$A=function(e){var r=e.sourceNode||e.targetNode,n=r.get("group"),a=n.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=r.getKeyShape(),o=i.getBBox(),s=e.loopCfg||{},u=s.dist||Math.max(o.width,o.height)*2,f=s.position||ft.defaultLoopPosition,l=[(o.minX+o.maxX)/2+a[6],(o.minY+o.maxY)/2+a[7]],c=[e.startPoint.x,e.startPoint.y],h=[e.endPoint.x,e.endPoint.y],d=o.height/2,v=o.width/2,p=d,g=d,y=p*sn,m=p*un,b=g*sn,w=g*un,x=i.get("type"),E=Math.min(d/2,v/2),_=Math.min(d,v),S=s!=null&&s.pointPadding?Math.min(_,s==null?void 0:s.pointPadding):E;if(c[0]===h[0]&&c[1]===h[1]){switch(f){case"top":x==="circle"?(c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]):(c=[l[0]-S,l[1]-d],h=[l[0]+S,l[1]-d]);break;case"top-right":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]-m],h=[l[0]+w,l[1]-b]):(c=[l[0]+v-S,l[1]-d],h=[l[0]+v,l[1]-d+S]);break;case"right":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]-y],h=[l[0]+w,l[1]+b]):(c=[l[0]+v,l[1]-S],h=[l[0]+v,l[1]+S]);break;case"bottom-right":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]+y],h=[l[0]+b,l[1]+w]):(c=[l[0]+v,l[1]+d-S],h=[l[0]+v-S,l[1]+d]);break;case"bottom":p=d,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]+m],h=[l[0]-b,l[1]+w]):(c=[l[0]-S,l[1]+d],h=[l[0]+S,l[1]+d]);break;case"bottom-left":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]+m],h=[l[0]-w,l[1]+b]):(c=[l[0]-v,l[1]+d-S],h=[l[0]-v+S,l[1]+d]);break;case"left":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]+y],h=[l[0]-w,l[1]-b]):(c=[l[0]-v,l[1]-S],h=[l[0]-v,l[1]+S]);break;case"top-left":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]-y],h=[l[0]-b,l[1]-w]):(c=[l[0]-v+S,l[1]-d],h=[l[0]-v,l[1]-d+S]);break;default:p=v,g=v,y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]}if(s.clockwise===!1){var A=[c[0],c[1]];c=[h[0],h[1]],h=[A[0],A[1]]}}var M=[c[0]-l[0],c[1]-l[1]],C=(p+u)/p,I=(g+u)/g;s.clockwise===!1&&(C=(g+u)/g,I=(p+u)/p);var k=wn([0,0],M,C),O=[l[0]+k[0],l[1]+k[1]],B=[h[0]-l[0],h[1]-l[1]],L=wn([0,0],B,I),z=[l[0]+L[0],l[1]+L[1]];return e.startPoint={x:c[0],y:c[1]},e.endPoint={x:h[0],y:h[1]},e.controlPoints=[{x:O[0],y:O[1]},{x:z[0],y:z[1]}],e},XA=function(e,r,n,a,i){var o=1e-4,s=[],u=e==null?void 0:e.getPoint(r);if(!u)return{x:0,y:0,angle:0};if(r1-o)s=e.getEndTangent();else{var f=e==null?void 0:e.getPoint(r+o);s.push([u.x,u.y]),s.push([f.x,f.y])}var l=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(l<0&&(l+=Pa*2),n&&(u.x+=C0(l)*n,u.y+=A0(l)*n),a){var c=l-Pa/2;l>1/2*Pa&&l<3*1/2*Pa&&(c-=Pa),u.x+=C0(c)*a,u.y+=A0(c)*a}var h={x:u.x,y:u.y,angle:l};return i?(l>.5*Pa&&l<1.5*Pa&&(l-=Pa),P({rotate:l},h)):h},oz=function t(e,r,n,a){if(a(e,r,n)===!1)return!1;if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!t(e.children[i],e,i,a))return!1}return!0},sz=function t(e,r,n,a){if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!t(e.children[i],e,i,a))return}return a(e,r,n)!==!1},bn=function(e,r){typeof r=="function"&&oz(e,null,-1,r)},Ra=function(e,r){typeof r=="function"&&sz(e,null,-1,r)},WA=function(e,r){return r*(iz[e]||1)},VA=function(e,r){var n=0,a=new RegExp("[一-龥]+");return e.split("").forEach(function(i){a.test(i)?n+=r:n+=WA(i,r)}),[n,r]},YA=function(e,r){return typeof r!="number"||r<=0||r>=e.length?e:e.substring(0,r)+"..."},T0=function(e,r){var n=[],a={},i={};e.forEach(function(u){i[u.id]=u}),e.forEach(function(u,f){var l=rr(u);l.itemType="combo",l.children=void 0,l.parentId===l.id?(console.warn("The parentId for combo ".concat(l.id," can not be the same as the combo's id")),delete l.parentId):l.parentId&&!i[l.parentId]&&(console.warn("The parent combo for combo ".concat(l.id," does not exist!")),delete l.parentId);var c=a[l.id];if(c){if(l.children=c.children,a[l.id]=l,c=l,!c.parentId){n.push(c);return}var h=a[c.parentId];if(h)h.children?h.children.push(l):h.children=[l];else{var d={id:c.parentId,children:[c]};a[c.parentId]=d,a[l.id]=l}return}if(Ye(u.parentId)){var v=a[u.parentId];if(v)v.children?v.children.push(l):v.children=[l],a[l.id]=l;else{var p={id:u.parentId,children:[l]};a[p.id]=p,a[l.id]=l}}else n.push(l),a[l.id]=l});var o={};(r||[]).forEach(function(u){o[u.id]=u;var f=a[u.comboId];if(f){var l={id:u.id,comboId:u.comboId};f.children?f.children.push(l):f.children=[l],l.itemType="node",a[u.id]=l}});var s=0;return n.forEach(function(u){u.depth=s+10,bn(u,function(f){var l,c=a[f.id].itemType;c==="node"?l=a[f.comboId]:l=a[f.parentId],l&&c==="node"?f.depth=s+1:f.depth=s+10,s-1&&i.splice(l,1),u||(o={id:r,itemType:"node",comboId:n},s[r]={children:void 0}),r){var c=!1;if(n){var h=0;(e||[]).forEach(function(v){c||bn(v,function(p){return n===p.id?(c=!0,p.children?p.children.push(o):p.children=[o],h=p.depth,o.itemType==="node"?o.depth=h+2:o.depth=h+1,!1):!0})})}else(!n||!c)&&o.itemType!=="node"&&e.push(o);var d=o.depth;bn(o,function(v){return v.itemType==="node"?d+=2:d+=1,v.depth=d,!0})}return e},oh=function(e,r,n){var a={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!e||e.length===0){var i=n==null?void 0:n.getModel(),o=i||{},s=o.x,u=o.y,f=o.fixSize,l=o.collapsed,c=o.fixCollapseSize,h=l?c:f,d=bt(h)?h:[h,h],v=d[0],p=d[1],g=[v/2,p/2];return{minX:s-g[0],minY:u-g[1],maxX:s+g[0],maxY:u+g[1],x:s,y:u,width:v,height:p}}return e.forEach(function(y){var m=r.findById(y.id);if(!(!m||!m.isVisible())){m.set("bboxCanvasCache",void 0);var b=m.getCanvasBBox();b.x&&a.minX>b.minX&&(a.minX=b.minX),b.y&&a.minY>b.minY&&(a.minY=b.minY),b.x&&a.maxX2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=e[s]&&(r.push([a].concat(o.splice(0,e[s]))),!!e[s]););return t}),r},k0=function(t,e){for(var r=[],n=0,a=t.length;a-2*!e>n;n+=2){var i=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?a-4===n?i[3]={x:+t[0],y:+t[1]}:a-2===n&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+t[n],y:+t[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r},uc=function(t,e,r,n,a){var i=[];if(a===null&&n===null&&(n=r),t=+t,e=+e,r=+r,n=+n,a!==null){var o=Math.PI/180,s=t+r*Math.cos(-n*o),u=t+r*Math.cos(-a*o),f=e+r*Math.sin(-n*o),l=e+r*Math.sin(-a*o);i=[["M",s,f],["A",r,r,0,+(a-n>180),0,u,l]]}else i=[["M",t,e],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return i},N0=function(t){if(t=zs(t),!t||!t.length)return[["M",0,0]];var e=[],r=0,n=0,a=0,i=0,o=0,s,u;t[0][0]==="M"&&(r=+t[0][1],n=+t[0][2],a=r,i=n,o++,e[0]=["M",r,n]);for(var f=t.length===3&&t[0][0]==="M"&&t[1][0].toUpperCase()==="R"&&t[2][0].toUpperCase()==="Z",l=void 0,c=void 0,h=o,d=t.length;h1&&(x=Math.sqrt(x),r=x*r,n=x*n);var E=r*r,_=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((E*_-E*w*w-_*b*b)/(E*w*w+_*b*b)));g=S*r*w/n+(t+s)/2,y=S*-n*b/r+(e+u)/2,v=Math.asin(((e-y)/n).toFixed(9)),p=Math.asin(((u-y)/n).toFixed(9)),v=tp&&(v=v-Math.PI*2),!o&&p>v&&(p=p-Math.PI*2)}var A=p-v;if(Math.abs(A)>l){var M=p,C=s,I=u;p=v+l*(o&&p>v?1:-1),s=g+r*Math.cos(p),u=y+n*Math.sin(p),h=qA(s,u,r,n,a,0,o,C,I,[p,M,g,y])}A=p-v;var k=Math.cos(v),O=Math.sin(v),B=Math.cos(p),L=Math.sin(p),z=Math.tan(A/4),X=4/3*r*z,R=4/3*n*z,V=[t,e],he=[t+X*O,e-R*k],ce=[s+X*L,u-R*B],le=[s,u];if(he[0]=2*V[0]-he[0],he[1]=2*V[1]-he[1],f)return[he,ce,le].concat(h);h=[he,ce,le].concat(h).join().split(",");for(var ie=[],Ie=0,qe=h.length;Ie7){b[w].shift();for(var x=b[w];x.length;)o[w]="A",n&&(s[w]="A"),b.splice(w++,0,["C"].concat(x.splice(0,6)));b.splice(w,1),l=Math.max(r.length,n&&n.length||0)}},d=function(b,w,x,E,_){b&&w&&b[_][0]==="M"&&w[_][0]!=="M"&&(w.splice(_,0,["M",E.x,E.y]),x.bx=0,x.by=0,x.x=b[_][1],x.y=b[_][2],l=Math.max(r.length,n&&n.length||0))};l=Math.max(r.length,n&&n.length||0);for(var v=0;v1?1:u<0?0:u;for(var f=u/2,l=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v0&&d<1&&u.push(d);continue}var p=c*c-4*h*l,g=Math.sqrt(p);if(!(p<0)){var y=(-c+g)/(2*l);y>0&&y<1&&u.push(y);var m=(-c-g)/(2*l);m>0&&m<1&&u.push(m)}}for(var b=u.length,w=b,x;b--;)d=u[b],x=1-d,f[0][b]=x*x*x*t+3*x*x*d*r+3*x*d*d*a+d*d*d*o,f[1][b]=x*x*x*e+3*x*x*d*n+3*x*d*d*i+d*d*d*s;return f[0][w]=t,f[1][w]=e,f[0][w+1]=o,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},gz=function(t,e,r,n,a,i,o,s){if(!(Math.max(t,r)Math.max(a,o)||Math.max(e,n)Math.max(i,s))){var u=(t*n-e*r)*(a-o)-(t-r)*(a*s-i*o),f=(t*n-e*r)*(i-s)-(e-n)*(a*s-i*o),l=(t-r)*(i-s)-(e-n)*(a-o);if(l){var c=u/l,h=f/l,d=+c.toFixed(2),v=+h.toFixed(2);if(!(d<+Math.min(t,r).toFixed(2)||d>+Math.max(t,r).toFixed(2)||d<+Math.min(a,o).toFixed(2)||d>+Math.max(a,o).toFixed(2)||v<+Math.min(e,n).toFixed(2)||v>+Math.max(e,n).toFixed(2)||v<+Math.min(i,s).toFixed(2)||v>+Math.max(i,s).toFixed(2)))return{x:c,y:h}}}},Oi=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},ZA=function(t,e,r,n,a){if(a)return[["M",+t+ +a,e],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]];return i.parsePathArray=HA,i},L0=function(t,e,r,n){return t===null&&(t=e=r=n=0),e===null&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:ZA(t,e,r,n),vb:[t,e,r,n].join(" ")}},yz=function(t,e){return t=L0(t),e=L0(e),Oi(e,t.x,t.y)||Oi(e,t.x2,t.y)||Oi(e,t.x,t.y2)||Oi(e,t.x2,t.y2)||Oi(t,e.x,e.y)||Oi(t,e.x2,e.y)||Oi(t,e.x,e.y2)||Oi(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},Nw=function(t,e,r,n,a,i,o,s){bt(t)||(t=[t,e,r,n,a,i,o,s]);var u=pz.apply(null,t);return L0(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Ow=function(t,e,r,n,a,i,o,s,u){var f=1-u,l=Math.pow(f,3),c=Math.pow(f,2),h=u*u,d=h*u,v=l*t+c*3*u*r+f*3*u*u*a+d*o,p=l*e+c*3*u*n+f*3*u*u*i+d*s,g=t+2*u*(r-t)+h*(a-2*r+t),y=e+2*u*(n-e)+h*(i-2*n+e),m=r+2*u*(a-r)+h*(o-2*a+r),b=n+2*u*(i-n)+h*(s-2*i+n),w=f*t+u*r,x=f*e+u*n,E=f*a+u*o,_=f*i+u*s,S=90-Math.atan2(g-m,y-b)*180/Math.PI;return{x:v,y:p,m:{x:g,y},n:{x:m,y:b},start:{x:w,y:x},end:{x:E,y:_},alpha:S}},mz=function(t,e,r){var n=Nw(t),a=Nw(e);if(!yz(n,a))return[];for(var i=kw.apply(0,t),o=kw.apply(0,e),s=~~(i/8),u=~~(o/8),f=[],l=[],c={},h=[],d=0;d=0&&_<=1&&S>=0&&S<=1&&h.push({x:E.x,y:E.y,t1:_,t2:S})}}return h},bz=function(t,e,r){t=O0(t),e=O0(e);for(var n,a,i,o,s,u,f,l,c,h,d=r?0:[],v=0,p=t.length;v=3&&(c.length===3&&h.push("Q"),h=h.concat(c[1])),c.length===2&&h.push("L"),h=h.concat(c[c.length-1]),h});return l}var _z=function(t,e,r){if(r===1)return[[].concat(t)];var n=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")n=n.concat(Ez(t,e,r));else{var a=[].concat(t);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n},Sz=function(t,e){if(t.length===1)return t;var r=t.length-1,n=e.length-1,a=r/n,i=[];if(t.length===1&&t[0][0]==="M"){for(var o=0;o=0;u--)o=i[u].index,i[u].type==="add"?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}n=t.length;var c=a-n;if(n0)r=cp(r,t[n-1],1);else{t[n]=e[n];break}t[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":t[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=cp(r,t[n-1],2);else{t[n]=e[n];break}t[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=cp(r,t[n-1],1);else{t[n]=e[n];break}t[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:t[n]=e[n]}return t};const Tz=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:k0,fillPath:Sz,fillPathByDiff:KA,formatPath:D0,intersection:wz,parsePathArray:HA,parsePathString:zs,pathToAbsolute:N0,pathToCurve:O0,rectPath:ZA},Symbol.toStringTag,{value:"Module"}));var JA=function(){function t(e,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=r,this.timeStamp=r.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function eC(t,e){var r=t.indexOf(e);r!==-1&&t.splice(r,1)}var Lw=typeof window<"u"&&typeof window.document<"u";function tC(t,e){if(t.isCanvas())return!0;for(var r=e.getParent(),n=!1;r;){if(r===t){n=!0;break}r=r.getParent()}return n}function P0(t){return t.cfg.visible&&t.cfg.capture}var Iz=function(t){jt(e,t);function e(r){var n=t.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=Et(a,r),n}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(r){return this.cfg[r]},e.prototype.set=function(r,n){this.cfg[r]=n},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(KS),Dw=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Dz:typeof navigator<"u"?Gz(navigator.userAgent):jz()}function Bz(t){return t!==""&&Fz.reduce(function(e,r){var n=r[0],a=r[1];if(e)return e;var i=a.exec(t);return!!i&&[n,i]},!1)}function Gz(t){var e=Bz(t);if(!e)return null;var r=e[0],n=e[1];if(r==="searchbot")return new Lz;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.lengtho.delay&&_e(e.toAttrs,function(s,u){i.call(o.toAttrs,u)&&(delete o.toAttrs[u],delete o.fromAttrs[u])})}),t}var aC=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;n.attrs={};var a=n.getDefaultAttrs();return Et(a,r.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(r){},e.prototype.initAttrs=function(r){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var r,n=[],a=0;a0?i=Zz(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var a=this.get("animations");_e(a,function(i){r&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),a=r.getTime();return _e(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},e.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return _e(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},e.prototype.emitDelegation=function(r,n){var a=this,i=n.propagationPath;this.getEvents();var o;r==="mouseenter"?o=n.fromShape:r==="mouseleave"&&(o=n.toShape);for(var s=function(c){var h=i[c],d=h.get("name");if(d){if((h.isGroup()||h.isCanvas&&h.isCanvas())&&o&&tC(h,o))return"break";bt(d)?_e(d,function(v){a.emitDelegateEvent(h,v,n)}):u.emitDelegateEvent(h,d,n)}},u=this,f=0;f0)});o.length>0?_e(o,function(u){var f=u.getBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},e.prototype.getCanvasBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});o.length>0?_e(o,function(u){var f=u.getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.children=[],r},e.prototype.onAttrChange=function(r,n,a){if(t.prototype.onAttrChange.call(this,r,n,a),r==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,r);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},e.prototype._applyChildrenMarix=function(r){var n=this.getChildren();_e(n,function(a){a.applyMatrix(r)})},e.prototype.addShape=function(){for(var r=[],n=0;n=0;s--){var u=r[s];if(P0(u)&&(u.isGroup()?o=u.getShape(n,a,i):u.isHit(n,a)&&(o=u)),o)break}return o},e.prototype.add=function(r){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=r.getParent();o&&Kz(o,r),r.set("parent",this),n&&iC(r,n),i&&oC(r,i),a.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},e.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var r=this.getChildren();_e(r,function(n,a){return n[R0]=a,n}),r.sort(Qz(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},e.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},e.prototype.getCount=function(){var r=this.getChildren();return r.length},e.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},e.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},e.prototype.findAll=function(r){var n=[],a=this.getChildren();return _e(a,function(i){r(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(r)))}),n},e.prototype.find=function(r){var n=null,a=this.getChildren();return _e(a,function(i){if(r(i)?n=i:i.isGroup()&&(n=i.find(r)),n)return!1}),n},e.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},e.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},e.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},e}(aC),Ks=0,ff=0,Xu=0,uC=1e3,Ph,lf,Rh=0,Xo=0,Ed=0,Pf=typeof performance=="object"&&performance.now?performance:Date,fC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function lC(){return Xo||(fC(Jz),Xo=Pf.now()+Ed)}function Jz(){Xo=0}function F0(){this._call=this._time=this._next=null}F0.prototype=cC.prototype={constructor:F0,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?lC():+r)+(e==null?0:+e),!this._next&&lf!==this&&(lf?lf._next=this:Ph=this,lf=this),this._call=t,this._time=r,B0()},stop:function(){this._call&&(this._call=null,this._time=1/0,B0())}};function cC(t,e,r){var n=new F0;return n.restart(t,e,r),n}function e6(){lC(),++Ks;for(var t=Ph,e;t;)(e=Xo-t._time)>=0&&t._call.call(null,e),t=t._next;--Ks}function Gw(){Xo=(Rh=Pf.now())+Ed,Ks=ff=0;try{e6()}finally{Ks=0,r6(),Xo=0}}function t6(){var t=Pf.now(),e=t-Rh;e>uC&&(Ed-=e,Rh=t)}function r6(){for(var t,e=Ph,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ph=r);lf=t,B0(n)}function B0(t){if(!Ks){ff&&(ff=clearTimeout(ff));var e=t-Xo;e>24?(t<1/0&&(ff=setTimeout(Gw,t-Pf.now()-Ed)),Xu&&(Xu=clearInterval(Xu))):(Xu||(Rh=Pf.now(),Xu=setInterval(t6,uC)),Ks=1,fC(Gw))}}function Dy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function hC(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Jf(){}var Rf=.7,Fh=1/Rf,$s="\\s*([+-]?\\d+)\\s*",Ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",n6=/^#([0-9a-f]{3,8})$/,a6=new RegExp(`^rgb\\(${$s},${$s},${$s}\\)$`),i6=new RegExp(`^rgb\\(${Va},${Va},${Va}\\)$`),o6=new RegExp(`^rgba\\(${$s},${$s},${$s},${Ff}\\)$`),s6=new RegExp(`^rgba\\(${Va},${Va},${Va},${Ff}\\)$`),u6=new RegExp(`^hsl\\(${Ff},${Va},${Va}\\)$`),f6=new RegExp(`^hsla\\(${Ff},${Va},${Va},${Ff}\\)$`),zw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dy(Jf,Bf,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:jw,formatHex:jw,formatHex8:l6,formatHsl:c6,formatRgb:Uw,toString:Uw});function jw(){return this.rgb().formatHex()}function l6(){return this.rgb().formatHex8()}function c6(){return dC(this).formatHsl()}function Uw(){return this.rgb().formatRgb()}function Bf(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=n6.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?$w(e):r===3?new Nn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?lc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?lc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=a6.exec(t))?new Nn(e[1],e[2],e[3],1):(e=i6.exec(t))?new Nn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=o6.exec(t))?lc(e[1],e[2],e[3],e[4]):(e=s6.exec(t))?lc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=u6.exec(t))?Vw(e[1],e[2]/100,e[3]/100,1):(e=f6.exec(t))?Vw(e[1],e[2]/100,e[3]/100,e[4]):zw.hasOwnProperty(t)?$w(zw[t]):t==="transparent"?new Nn(NaN,NaN,NaN,0):null}function $w(t){return new Nn(t>>16&255,t>>8&255,t&255,1)}function lc(t,e,r,n){return n<=0&&(t=e=r=NaN),new Nn(t,e,r,n)}function h6(t){return t instanceof Jf||(t=Bf(t)),t?(t=t.rgb(),new Nn(t.r,t.g,t.b,t.opacity)):new Nn}function G0(t,e,r,n){return arguments.length===1?h6(t):new Nn(t,e,r,n??1)}function Nn(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Dy(Nn,G0,hC(Jf,{brighter(t){return t=t==null?Fh:Math.pow(Fh,t),new Nn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Rf:Math.pow(Rf,t),new Nn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Nn(Bo(this.r),Bo(this.g),Bo(this.b),Bh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xw,formatHex:Xw,formatHex8:d6,formatRgb:Ww,toString:Ww}));function Xw(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}`}function d6(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}${Po((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ww(){const t=Bh(this.opacity);return`${t===1?"rgb(":"rgba("}${Bo(this.r)}, ${Bo(this.g)}, ${Bo(this.b)}${t===1?")":`, ${t})`}`}function Bh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Po(t){return t=Bo(t),(t<16?"0":"")+t.toString(16)}function Vw(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ga(t,e,r,n)}function dC(t){if(t instanceof ga)return new ga(t.h,t.s,t.l,t.opacity);if(t instanceof Jf||(t=Bf(t)),!t)return new ga;if(t instanceof ga)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=NaN,s=i-a,u=(i+a)/2;return s?(e===i?o=(r-n)/s+(r0&&u<1?0:o,new ga(o,s,u,t.opacity)}function v6(t,e,r,n){return arguments.length===1?dC(t):new ga(t,e,r,n??1)}function ga(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Dy(ga,v6,hC(Jf,{brighter(t){return t=t==null?Fh:Math.pow(Fh,t),new ga(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Rf:Math.pow(Rf,t),new ga(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new Nn(dp(t>=240?t-240:t+120,a,n),dp(t,a,n),dp(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new ga(Yw(this.h),cc(this.s),cc(this.l),Bh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Bh(this.opacity);return`${t===1?"hsl(":"hsla("}${Yw(this.h)}, ${cc(this.s)*100}%, ${cc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Yw(t){return t=(t||0)%360,t<0?t+360:t}function cc(t){return Math.max(0,Math.min(1,t||0))}function dp(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Py=t=>()=>t;function p6(t,e){return function(r){return t+r*e}}function g6(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function y6(t){return(t=+t)==1?vC:function(e,r){return r-e?g6(e,r,t):Py(isNaN(e)?r:e)}}function vC(t,e){var r=e-t;return r?p6(t,r):Py(isNaN(t)?e:t)}const qw=function t(e){var r=y6(e);function n(a,i){var o=r((a=G0(a)).r,(i=G0(i)).r),s=r(a.g,i.g),u=r(a.b,i.b),f=vC(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=f(l),a+""}}return n.gamma=t,n}(1);function pC(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(i){for(a=0;ar&&(i=e.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:z0(n,a)})),r=vp.lastIndex;return rf.length?(u=zs(i[s]),f=zs(a[s]),f=KA(f,u),f=D0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u):e.pathFormatted||(u=zs(i[s]),f=zs(a[s]),f=D0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u,e.pathFormatted=!0),n[s]=[];for(var l=0;l0){for(var s=e.animators.length-1;s>=0;s--){if(n=e.animators[s],n.destroyed){e.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var u=a.length-1;u>=0;u--)i=a[u],r=nj(n,i,o),r&&(a.splice(u,1),r=!1,i.callback&&i.callback())}a.length===0&&e.removeAnimator(s)}var f=e.canvas.get("autoDraw");f||e.canvas.draw()}})},t.prototype.addAnimator=function(e){this.animators.push(e)},t.prototype.removeAnimator=function(e){this.animators.splice(e,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(r){r.stopAnimate(e)}),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),ij=40,ax=0,ix=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ox(t,e,r){r.name=e,r.target=t,r.currentTarget=t,r.delegateTarget=t,t.emit(e,r)}function oj(t,e,r){if(r.bubbles){var n=void 0,a=!1;if(e==="mouseenter"?(n=r.fromShape,a=!0):e==="mouseleave"&&(a=!0,n=r.toShape),t.isCanvas()&&a)return;if(n&&tC(t,n)){r.bubbles=!1;return}r.name=e,r.currentTarget=t,r.delegateTarget=t,t.emit(e,r)}}var sj=function(){function t(e){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;r._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&(r.dragging||r.currentShape)){var o=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,o,r.draggingShape)}},this._onDocumentMouseUp=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&r.dragging){var o=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,o,null),r._emitEvent("dragend",n,o,r.draggingShape),r._afterDrag(r.draggingShape,o,n)}},this.canvas=e.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var e=this,r=this.canvas.get("el");_e(ix,function(n){r.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var e=this,r=this.canvas.get("el");_e(ix,function(n){r.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(e,r,n,a,i,o){var s=new JA(e,r);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},t.prototype._getShape=function(e,r){return this.canvas.getShape(e.x,e.y,r)},t.prototype._getPointInfo=function(e){var r=this.canvas,n=r.getClientByEvent(e),a=r.getPointByEvent(e);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(e,r){var n=this._getPointInfo(r),a=this._getShape(n,r),i=this["_on"+e],o=!1;if(i)i.call(this,n,a,r);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,r,n,null,null,a),a&&this._emitEvent(e,r,n,a,null,a),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,r,n,s,s,null),this._emitEvent(e,r,n,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(e,r,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var u=this.canvas,f=u.get("el");f.style.cursor=a.attr("cursor")||u.get("cursor")}},t.prototype._onmousedown=function(e,r,n){n.button===ax&&(this.mousedownShape=r,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,r,null,null)},t.prototype._emitMouseoverEvents=function(e,r,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",e,r,n,n,a),this._emitEvent("mouseleave",e,r,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",e,r,a,n,a),this._emitEvent("mouseenter",e,r,a,n,a)))},t.prototype._emitDragoverEvents=function(e,r,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",e,r,n,n,a),this._emitEvent("dragenter",e,r,a,n,a)),i||this._emitEvent("dragover",e,r,a)):n&&this._emitEvent("dragleave",e,r,n,n,a),i&&this._emitEvent("dragover",e,r,a)},t.prototype._afterDrag=function(e,r,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(r,n);a!==e&&this._emitMouseoverEvents(n,r,e,a),this.currentShape=a},t.prototype._onmouseup=function(e,r,n){if(n.button===ax){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,e,r),this._emitEvent("dragend",n,e,a),this._afterDrag(a,e,n)):(this._emitEvent("mouseup",n,e,r),r===this.mousedownShape&&this._emitEvent("click",n,e,r),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(e,r,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,e,a,r,!0)},t.prototype._onmousemove=function(e,r,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,e,i,r,!1),this._emitEvent("drag",n,e,o);else{var s=this.mousedownPoint;if(s){var u=this.mousedownShape,f=n.timeStamp,l=f-this.mousedownTimeStamp,c=s.clientX-e.clientX,h=s.clientY-e.clientY,d=c*c+h*h;l>120||d>ij?u&&u.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,e,o),this.mousedownShape=null,this.mousedownPoint=null):!u&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r)):(this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r))}else this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r)}},t.prototype._emitEvent=function(e,r,n,a,i,o){var s=this._getEventObj(e,r,n,a,i,o);if(a){s.shape=a,ox(a,e,s);for(var u=a.getParent();u;)u.emitDelegation(e,s),s.propagationStopped||oj(u,e,s),s.propagationPath.push(u),u=u.getParent()}else{var f=this.canvas;ox(f,e,s)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),sx="px",ux=rC(),uj=ux&&ux.name==="firefox",wC=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},e.prototype.initContainer=function(){var r=this.get("container");Ye(r)&&(r=document.getElementById(r),this.set("container",r))},e.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var r=new sj({canvas:this});r.init(),this.set("eventController",r)},e.prototype.initTimeline=function(){var r=new aj(this);this.set("timeline",r)},e.prototype.setDOMSize=function(r,n){var a=this.get("el");Lw&&(a.style.width=r+sx,a.style.height=n+sx)},e.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");Lw&&n&&(n.style.cursor=r)},e.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(uj&&!Zt(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!Zt(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var a=this.getClientByEvent(r),i=a.x,o=a.y;return this.getPointByClient(i,o)},e.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},e.prototype.getPointByClient=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r-i.left,y:n-i.top}},e.prototype.getClientByPoint=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r+i.left,y:n+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},e.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(sC),xC=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var r=t.prototype.clone.call(this),n=this.getChildren(),a=0;a=r&&a.minY<=n&&a.maxY>=n},e.prototype.afterAttrsChange=function(r){t.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},e.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},e.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},e.prototype.applyMatrix=function(r){t.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),a=r.minX,i=r.minY,o=r.maxX,s=r.maxY;if(n){var u=Do(n,[r.minX,r.minY]),f=Do(n,[r.maxX,r.minY]),l=Do(n,[r.minX,r.maxY]),c=Do(n,[r.maxX,r.maxY]);a=Math.min(u[0],f[0],l[0],c[0]),o=Math.max(u[0],f[0],l[0],c[0]),i=Math.min(u[1],f[1],l[1],c[1]),s=Math.max(u[1],f[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,v=d===void 0?0:d,p=h.shadowOffsetX,g=p===void 0?0:p,y=h.shadowOffsetY,m=y===void 0?0:y,b=a-v+g,w=o+v+g,x=i-v+m,E=s+v+m;a=Math.min(a,b),o=Math.max(o,w),i=Math.min(i,x),s=Math.max(s,E)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(r,n){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(r,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[r,n,1];o=this.invertFromMatrix(o);var s=o[0],u=o[1],f=this._isInBBox(s,u);return this.isOnlyHitBox()?f:!!(f&&!this.isClipped(s,u)&&(this.isInShape(s,u)||a&&a.isHit(s,u)||i&&i.isHit(s,u)))},e}(aC),_C=new Map;function Ja(t,e){_C.set(t,e)}function SC(t){return _C.get(t)}function MC(t){var e=t.attr(),r=e.x,n=e.y,a=e.width,i=e.height;return{x:r,y:n,width:a,height:i}}function AC(t){var e=t.attr(),r=e.x,n=e.y,a=e.r;return{x:r-a,y:n-a,width:a*2,height:a*2}}function xn(t,e,r,n){var a=t-r,i=e-n;return Math.sqrt(a*a+i*i)}function uh(t,e){return Math.abs(t-e)<.001}function pu(t,e){var r=Ha(t),n=Ha(e),a=qa(t),i=qa(e);return{x:r,y:n,width:a-r,height:i-n}}function _d(t){return(t+Math.PI*2)%(Math.PI*2)}const cn={box:function(t,e,r,n){return pu([t,r],[e,n])},length:function(t,e,r,n){return xn(t,e,r,n)},pointAt:function(t,e,r,n,a){return{x:(1-a)*t+a*r,y:(1-a)*e+a*n}},pointDistance:function(t,e,r,n,a,i){var o=(r-t)*(a-t)+(n-e)*(i-e);if(o<0)return xn(t,e,a,i);var s=(r-t)*(r-t)+(n-e)*(n-e);return o>s?xn(r,n,a,i):this.pointToLine(t,e,r,n,a,i)},pointToLine:function(t,e,r,n,a,i){var o=[r-t,n-e];if(xy(o,[0,0]))return Math.sqrt((a-t)*(a-t)+(i-e)*(i-e));var s=[-o[1],o[0]];Wi(s,s);var u=[a-t,i-e];return Math.abs(wy(u,s))},tangentAngle:function(t,e,r,n){return Math.atan2(n-e,r-t)}};var fj=1e-4;function CC(t,e,r,n,a,i){var o,s=1/0,u=[r,n],f=20;i&&i>200&&(f=i/10);for(var l=1/f,c=l/10,h=0;h<=f;h++){var d=h*l,v=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))],p=xn(u[0],u[1],v[0],v[1]);p=0&&p=0?[a]:[]}function lx(t,e,r,n){return 2*(1-n)*(e-t)+2*n*(r-e)}function TC(t,e,r,n,a,i,o){var s=Bi(t,r,a,o),u=Bi(e,n,i,o),f=cn.pointAt(t,e,r,n,o),l=cn.pointAt(r,n,a,i,o);return[[t,e,f.x,f.y,s,u],[s,u,l.x,l.y,a,i]]}function $0(t,e,r,n,a,i,o){if(o===0)return(xn(t,e,r,n)+xn(r,n,a,i)+xn(t,e,a,i))/2;var s=TC(t,e,r,n,a,i,.5),u=s[0],f=s[1];return u.push(o-1),f.push(o-1),$0.apply(null,u)+$0.apply(null,f)}const IC={box:function(t,e,r,n,a,i){var o=fx(t,r,a)[0],s=fx(e,n,i)[0],u=[t,a],f=[e,i];return o!==void 0&&u.push(Bi(t,r,a,o)),s!==void 0&&f.push(Bi(e,n,i,s)),pu(u,f)},length:function(t,e,r,n,a,i){return $0(t,e,r,n,a,i,3)},nearestPoint:function(t,e,r,n,a,i,o,s){return CC([t,r,a],[e,n,i],o,s,Bi)},pointDistance:function(t,e,r,n,a,i,o,s){var u=this.nearestPoint(t,e,r,n,a,i,o,s);return xn(u.x,u.y,o,s)},interpolationAt:Bi,pointAt:function(t,e,r,n,a,i,o){return{x:Bi(t,r,a,o),y:Bi(e,n,i,o)}},divide:function(t,e,r,n,a,i,o){return TC(t,e,r,n,a,i,o)},tangentAngle:function(t,e,r,n,a,i,o){var s=lx(t,r,a,o),u=lx(e,n,i,o),f=Math.atan2(u,s);return _d(f)}};function Gi(t,e,r,n,a){var i=1-a;return i*i*i*t+3*e*a*i*i+3*r*a*a*i+n*a*a*a}function cx(t,e,r,n,a){var i=1-a;return 3*(i*i*(e-t)+2*i*a*(r-e)+a*a*(n-r))}function pp(t,e,r,n){var a=-3*t+9*e-9*r+3*n,i=6*t-12*e+6*r,o=3*e-3*t,s=[],u,f,l;if(uh(a,0))uh(i,0)||(u=-o/i,u>=0&&u<=1&&s.push(u));else{var c=i*i-4*a*o;uh(c,0)?s.push(-i/(2*a)):c>0&&(l=Math.sqrt(c),u=(-i+l)/(2*a),f=(-i-l)/(2*a),u>=0&&u<=1&&s.push(u),f>=0&&f<=1&&s.push(f))}return s}function kC(t,e,r,n,a,i,o,s,u){var f=Gi(t,r,a,o,u),l=Gi(e,n,i,s,u),c=cn.pointAt(t,e,r,n,u),h=cn.pointAt(r,n,a,i,u),d=cn.pointAt(a,i,o,s,u),v=cn.pointAt(c.x,c.y,h.x,h.y,u),p=cn.pointAt(h.x,h.y,d.x,d.y,u);return[[t,e,c.x,c.y,v.x,v.y,f,l],[f,l,p.x,p.y,d.x,d.y,o,s]]}function X0(t,e,r,n,a,i,o,s,u){if(u===0)return lj([t,r,a,o],[e,n,i,s]);var f=kC(t,e,r,n,a,i,o,s,.5),l=f[0],c=f[1];return l.push(u-1),c.push(u-1),X0.apply(null,l)+X0.apply(null,c)}const xf={extrema:pp,box:function(t,e,r,n,a,i,o,s){for(var u=[t,o],f=[e,s],l=pp(t,r,a,o),c=pp(e,n,i,s),h=0;h0?r:r*-1}const cj={box:function(t,e,r,n){return{x:t-r,y:e-n,width:r*2,height:n*2}},length:function(t,e,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(t,e,r,n,a,i){var o=r,s=n;if(o===0||s===0)return{x:t,y:e};for(var u=a-t,f=i-e,l=Math.abs(u),c=Math.abs(f),h=o*o,d=s*s,v=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(v),g=s*Math.sin(v);var m=(h-d)*Math.pow(Math.cos(v),3)/o,b=(d-h)*Math.pow(Math.sin(v),3)/s,w=p-m,x=g-b,E=l-m,_=c-b,S=Math.hypot(x,w),A=Math.hypot(_,E),M=S*Math.asin((w*_-x*E)/(S*A)),C=M/Math.sqrt(h+d-p*p-g*g);v+=C,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+hx(p,u),y:e+hx(g,f)}},pointDistance:function(t,e,r,n,a,i){var o=this.nearestPoint(t,e,r,n,a,i);return xn(o.x,o.y,a,i)},pointAt:function(t,e,r,n,a){var i=2*Math.PI*a;return{x:t+r*Math.cos(i),y:e+n*Math.sin(i)}},tangentAngle:function(t,e,r,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-r*Math.sin(i));return _d(o)}};function hj(t,e,r,n,a,i,o,s){return-1*r*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function dj(t,e,r,n,a,i,o,s){return-1*r*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function vj(t,e,r){return Math.atan(-e/t*Math.tan(r))}function pj(t,e,r){return Math.atan(e/(t*Math.tan(r)))}function dx(t,e,r,n,a,i){return r*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+t}function vx(t,e,r,n,a,i){return r*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+e}function gj(t,e,r,n){var a=Math.atan2(n*t,r*e);return(a+Math.PI*2)%(Math.PI*2)}function px(t,e,r){return{x:t*Math.cos(r),y:e*Math.sin(r)}}function gx(t,e,r){var n=Math.cos(r),a=Math.sin(r);return[t*n-e*a,t*a+e*n]}const yj={box:function(t,e,r,n,a,i,o){for(var s=vj(r,n,a),u=1/0,f=-1/0,l=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var h=s+c;if&&(f=d)}for(var v=pj(r,n,a),p=1/0,g=-1/0,y=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var m=v+c;ig&&(g=b)}return{x:u,y:p,width:f-u,height:g-p}},length:function(t,e,r,n,a,i,o){},nearestPoint:function(t,e,r,n,a,i,o,s,u){var f=gx(s-t,u-e,-a),l=f[0],c=f[1],h=cj.nearestPoint(0,0,r,n,l,c),d=gj(r,n,h.x,h.y);do&&(h=px(r,n,o));var v=gx(h.x,h.y,a);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,r,n,a,i,o,s,u){var f=this.nearestPoint(t,e,r,n,s,u);return xn(f.x,f.y,s,u)},pointAt:function(t,e,r,n,a,i,o,s){var u=(o-i)*s+i;return{x:dx(t,e,r,n,a,u),y:vx(t,e,r,n,a,u)}},tangentAngle:function(t,e,r,n,a,i,o,s){var u=(o-i)*s+i,f=hj(t,e,r,n,a,i,o,u),l=dj(t,e,r,n,a,i,o,u);return _d(Math.atan2(l,f))}};function NC(t){for(var e=0,r=[],n=0;n1||e<0||t.length<2)return null;var r=NC(t),n=r.segments,a=r.totalLength;if(a===0)return{x:t[0][0],y:t[0][1]};for(var i=0,o=null,s=0;s=i&&e<=i+c){var h=(e-i)/c;o=cn.pointAt(f[0],f[1],l[0],l[1],h);break}i+=c}return o}function wj(t,e){if(e>1||e<0||t.length<2)return 0;for(var r=NC(t),n=r.segments,a=r.totalLength,i=0,o=0,s=0;s=i&&e<=i+c){o=Math.atan2(l[1]-f[1],l[0]-f[0]);break}i+=c}return o}function xj(t,e,r){for(var n=1/0,a=0;a1){var a=Sj(e,r);return e*n+a*(n-1)}return e}function Sj(t,e){return e?e-t:t*.14}function Mj(t,e){var r=LC(),n=0;if(Zt(t)||t==="")return n;if(r.save(),r.font=e,Ye(t)&&t.includes(` +`)){var a=t.split(` +`);_e(a,function(i){var o=r.measureText(i).width;n1){var a=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=a}_e(r,function(i,o){isNaN(i)||(r[o]=+i)}),e[n]=r}),e}function kj(t,e,r,n){var a=[],i=!!n,o,s,u,f,l,c,h;if(i){u=n[0],f=n[1];for(var d=0,v=t.length;d2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=e[s]&&(r.push([a].concat(o.splice(0,e[s]))),!!e[s]););return""}),r}var Dj=/[a-z]/;function mx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function RC(t){var e=W0(t);if(!e||!e.length)return[["M",0,0]];for(var r=!1,n=0;n=0){r=!0;break}}if(!r)return e;var i=[],o=0,s=0,u=0,f=0,l=0,c=e[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],u=o,f=s,l++,i[0]=["M",o,s]);for(var n=l,h=e.length;n1&&(r*=Math.sqrt(d),n*=Math.sqrt(d));var v=r*r*(h*h)+n*n*(c*c),p=v?Math.sqrt((r*r*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*r*h/n:0,y=r?p*-n*c/r:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/r,(h-y)/n],x=[(-1*c-g)/r,(-1*h-y)/n],E=bx([1,0],w),_=bx(w,x);return V0(w,x)<=-1&&(_=Math.PI),V0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:Y0(t,[f,l])?0:r,ry:Y0(t,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}function wx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function FC(t){t=Ij(t);for(var e=[],r=null,n=null,a=null,i=0,o=t.length,s=0;sMath.PI/2?Math.PI-f:f,l=l>Math.PI/2?Math.PI-l:l;var c={xExtra:Math.cos(u/2-f)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(l-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0};return c}function Fj(t){var e=t.attr(),r=e.path,n=e.stroke,a=n?e.lineWidth:0,i=t.get("segments")||FC(r),o=Rj(i,a),s=o.x,u=o.y,f=o.width,l=o.height,c={minX:s,minY:u,maxX:s+f,maxY:u+l};return c=zy(t,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function Bj(t){var e=t.attr(),r=e.x1,n=e.y1,a=e.x2,i=e.y2,o=Math.min(r,a),s=Math.max(r,a),u=Math.min(n,i),f=Math.max(n,i),l={minX:o,maxX:s,minY:u,maxY:f};return l=zy(t,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}function Gj(t){var e=t.attr(),r=e.x,n=e.y,a=e.rx,i=e.ry;return{x:r-a,y:n-i,width:a*2,height:i*2}}Ja("rect",MC);Ja("image",MC);Ja("circle",AC);Ja("marker",AC);Ja("polyline",Ej);Ja("polygon",_j);Ja("text",Aj);Ja("path",Fj);Ja("line",Bj);Ja("ellipse",Gj);var zj=function(t){jt(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.item=n.item,a.canvasX=n.canvasX,a.canvasY=n.canvasY,a.wheelDelta=n.wheelDelta,a.detail=n.detail,a}return e}(JA),q0=function(e){return"".concat(e,"-").concat(Math.random()).concat(Date.now())},jy=function(e){if(bt(e))switch(e.length){case 4:return e;case 3:return e.push(e[1]),e;case 2:return e.concat(e);case 1:return[e[0],e[0],e[0],e[0]];default:return[0,0,0,0]}if(Ot(e))return[e,e,e,e];if(Ye(e)){var r=parseInt(e,10);return[r,r,r,r]}return[0,0,0,0]},jj=function(e){var r=new zj(e.type,e);return r.clientX=e.clientX,r.clientY=e.clientY,r.x=e.x,r.y=e.y,r.target=e.target,r.currentTarget=e.currentTarget,r.bubbles=!0,r.item=e.item,r},Uj=function(e){if(!e)return!1;for(var r=9,n=[1,0,0,0,1,0,0,0,1],a=0;an&&(n=c),h>i&&(i=h)}var d=Math.floor(r),v=Math.floor(a),p=Math.ceil(n)-Math.floor(r),g=Math.ceil(i)-Math.floor(a);return{x:d,y:v,width:p,height:g,minX:r,minY:a,maxX:n,maxY:i}},$j=function(e,r,n,a,i){r===void 0&&(r=15),n===void 0&&(n="quadratic"),a===void 0&&(a=void 0),i===void 0&&(i=void 0);for(var o=e.length,s=r*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],f={},l=[],c={},h=0;h=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}to.angleTo=qj;function Hj(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}to.vertical=Hj;var Zj=function(){function t(e){this.destroyed=!1,this.graph=e,this.destroyed=!1}return t.prototype.getViewCenter=function(){var e=this.getFormatPadding(),r=this.graph,n=this.graph.get("width"),a=r.get("height");return{x:(n-e[1]-e[3])/2+e[3],y:(a-e[0]-e[2])/2+e[0]}},t.prototype.fitCenter=function(e,r){var n=this.graph,a=n.get("group"),i,o=n.getNodes();if(o.length>n.get("optimizeThreshold")){var s=1/0,u=1/0,f=-1/0,l=-1/0;o.forEach(function(w){var x=w.getModel(),E=x.x,_=x.y;s>E&&(s=E),u>_&&(u=_),fg&&(y=g,console.warn("fitview failed, ratio out of range, ratio: %f",s,"graph maxzoom has been used instead"));var m=xx(d,[["t",-i.x,-i.y],["s",y,y],["t",i.x,i.y]]),b=Df({animateCfg:n,callback:function(){e.setMatrix(m),f.emit("viewportchange",{action:"translate",matrix:d}),f.emit("viewportchange",{action:"zoom",matrix:m})}});e.stopAnimate(),e.setMatrix(r),e.animate(function(w){return{matrix:M0(r,m,w)}},b)}},t.prototype.fitView=function(e,r){var n=this.graph,a=this.getFormatPadding(),i=n.get("width"),o=n.get("height"),s=n.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var f,l=n.getNodes();if(l.length>n.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,v=-1/0;l.forEach(function(E){var _=E.getModel(),S=_.x,A=_.y;c>S&&(c=S),h>A&&(h=A),dm&&(b=m),e)this.animatedFitView(s,u,r,f,p,g,b,!0);else{var w=p.x-g.x,x=p.y-g.y;if(Fa(w)||Fa(x))return;n.translate(w,x),n.zoom(b,p)||console.warn("zoom failed, ratio out of range, ratio: %f",b)}}},t.prototype.fitViewByRules=function(e,r,n){var a=e.onlyOutOfViewPort,i=a===void 0?!1:a,o=e.direction,s=o===void 0?"both":o,u=e.ratioRule,f=u===void 0?"min":u,l=this.graph,c=this.getFormatPadding(),h=l.get("width"),d=l.get("height"),v=l.get("group"),p=v.getMatrix()||[1,0,0,0,1,0,0,0,1];v.resetMatrix();var g,y=l.getNodes();if(y.length>l.get("optimizeThreshold")){var m=1/0,b=1/0,w=-1/0,x=-1/0;y.forEach(function(O){var B=O.getModel(),L=B.x,z=B.y;m>L&&(m=L),b>z&&(b=z),wc.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,!(c.width===0||c.height===0)){var g=this.getViewCenter(),y={x:c.x+c.width/2,y:c.y+c.height/2},m=(s-o[1]-o[3])/c.width,b=(u-o[0]-o[2])/c.height,w=m;m>b&&(w=b),n?this.animatedFitView(f,l,a,c,g,y,w,r):(i.translate(g.x-y.x,g.y-y.y),r&&!i.zoom(w,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",w))}}},t.prototype.changeSize=function(e,r){var n=this.graph;if(!Ot(e)||!Ot(r))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:e,height:r});var a=n.get("canvas");a.changeSize(e,r);var i=n.get("plugins");i.forEach(function(o){o.get("gridContainer")&&o.positionInit()})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}();function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Ex(t){if(typeof t!="string")return t;var e=function(_){if(typeof _!="string")return _;try{return JSON.parse(_.trim())}catch{return _.trim()}},r=e(t);if(typeof r!="string")return r;for(var n=function(_){return _[_.length-1]},a=t.trim(),i=[],o=[],s=function(){for(var _=[],S=0;S=0&&(i.height=o),s>=0&&(i.width=s),a.marginTop&&(i.y+=a.marginTop),a.marginLeft&&(i.x+=a.marginLeft),i}function XC(t,e){var r;e===void 0&&(e={x:0,y:0});var n=P({x:0,y:0,width:0,height:0},e);if(!((r=t.children)===null||r===void 0)&&r.length){var a=t.attrs,i=a===void 0?{}:a,o=i.marginTop,s=P({},e);o&&(s.y+=o);for(var u=0;un.width&&(n.width=l.width+l.x),l.height+l.y>n.height&&(n.height=l.height+l.y)}}}return t.bbox=Jj(t,e,n),t.attrs=P(P({},t.attrs),t.bbox),t}function WC(t,e){var r,n,a,i,o=(t||{}).type,s=((e==null?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:o,key:s};if(t&&!e)return{action:"add",val:t,type:o};if(!t&&!e)return{action:"same",type:o};var u=[];if(((r=t.children)===null||r===void 0?void 0:r.length)>0||((n=e.children)===null||n===void 0?void 0:n.length)>0)for(var f=Math.max((a=t.children)===null||a===void 0?void 0:a.length,(i=e.children)===null||i===void 0?void 0:i.length),l=e.children||[],c=t.children||[],h=0;h"u"?a=q0(i):typeof a!="string"&&(a=String(a)),this.get("model").id=a,this.set("id",a);var o=e.group;o&&(o.set("item",this),o.set("id",a)),this.init(),this.draw();var s=n.shape||n.type||(i==="edge"?"line":"circle"),u=this.get("shapeFactory");if(u&&u[s]){var f=u[s].options;if(f&&f.stateStyles){var l=this.get("styles")||n.stateStyles;l=_r({},f.stateStyles,l),this.set("styles",l)}}}return t.prototype.calculateBBox=function(){var e=this.get("keyShape"),r=this.get("group"),n=Dh(e,r);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var e=this.get("keyShape"),r=this.get("group"),n=Dh(e,r);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var e=this,r=e.get("shapeFactory"),n=e.get("group"),a=e.get("model");n.clear();var i=a.visible;if(i!==void 0&&!i&&e.changeVisibility(i),!!r){e.updatePosition(a);var o=e.getShapeCfg(a),s=o.type,u=r.draw(s,o,n);u&&(e.set("keyShape",u),u.set("isKeyShape",!0),u.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",s),this.restoreStates(r,s)}},t.prototype.setOriginStyle=function(){var e=this.get("group"),r=e.get("children"),n=this.getKeyShape(),a=this,i=n.get("name");if(this.get("originStyle")){var d=this.get("originStyle");i&&!d[i]&&(d[i]={});for(var v=this.getCurrentStatesStyle(),p=function(y){var m=r[y],b=m.get("name"),w=m.attr();if(b&&b!==i){var x=v[b];d[b]||(d[b]={}),x?Object.keys(w).forEach(function(S){var A=w[S];A!==x[S]&&(d[b][S]=A)}):d[b]=m.get("type")!=="image"?rr(w):a.getShapeStyleByName(b)}else{var E=m.attr(),_={};Object.keys(v).forEach(function(S){var A=v[S];(S===i||!ln(A))&&(_[S]=A)}),Object.keys(E).forEach(function(S){var A=E[S];_[S]!==A&&(i?d[i][S]=A:d[S]=A)})}},s=0;s-1)return;n.push(i)}else u>-1&&n.splice(u,1)}else if(Ye(r)){var f=n.filter(function(h){return h.includes(o)});f.length>0&&this.clearStates(f),s=s.filter(function(h){return!h.includes(o)}),s.push(i),this.set("states",s)}if(a){var l=this.get("model"),c=l.type;a.setState(c,e,r,this)}},t.prototype.clearStates=function(e){var r=this,n=r.getStates(),a=r.get("shapeFactory"),i=r.get("model"),o=i.type;e||(e=n),Ye(e)&&(e=[e]);var s=n.filter(function(u){return e.indexOf(u)===-1});r.set("states",s),e.forEach(function(u){a.setState(o,u,!1,r)})},t.prototype.setOptimize=function(e){this.optimize=e},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(e){var r=this.getStates();return r.indexOf(e)>=0},t.prototype.refresh=function(e){var r=this.get("model");this.updatePosition(r),this.updateShape(e),this.afterUpdate(),this.clearCache()},t.prototype.getUpdateType=function(e){},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model");if(r==="move")this.updatePosition(e);else{var a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o={x:n.x,y:n.y};e.x=isNaN(+e.x)?n.x:+e.x,e.y=isNaN(+e.y)?n.y:+e.y;var s=this.get("styles");if(e.stateStyles){var u=e.stateStyles;Et(s,u),delete e.stateStyles}Object.assign(n,e),(o.x!==e.x||o.y!==e.y)&&this.updatePosition(e),this.updateShape(r)}this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(e){var r=this.get("shapeFactory"),n=this.get("model"),a=n.type;if(r.shouldUpdate(a)&&a===this.get("currentShape")){var i=this.getShapeCfg(n,e);r.baseUpdate(a,i,this,e),e!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(r,a)},t.prototype.updatePosition=function(e){var r=this.get("model"),n=isNaN(+e.x)?+r.x:+e.x,a=isNaN(+e.y)?+r.y:+e.y,i=this.get("group");if(isNaN(n)||isNaN(a))return!1;r.x=n,r.y=a;var o=i.getMatrix();return o&&o[6]===n&&o[7]===a?!1:(i.resetMatrix(),RA(i,{x:n,y:a}),this.clearCache(),!0)},t.prototype.getBBox=function(){var e=this.get(bp);return e||(e=this.calculateBBox(),this.set(bp,e)),e},t.prototype.getCanvasBBox=function(){var e=this.get(wp);return e||(e=this.calculateCanvasBBox(),this.set(wp,e)),e},t.prototype.toFront=function(){var e=this.get("group");e.toFront()},t.prototype.toBack=function(){var e=this.get("group");e.toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(e){var r=this.get("group");e?r.show():r.hide(),this.set("visible",e)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(e){var r=this.get("group");r&&r.set("capture",e)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),r.remove(),this._cfg=null,this.destroyed=!0}},t}(),pc={source:"start",target:"end"},ka="Node",bs="Point",t8="Anchor",r8=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(r,n){var a=pc[r]+bs,i=r+ka,o=this.get(i);o&&!o.destroyed&&o.removeEdge(this),ln(n)?(this.set(a,n),this.set(i,null)):n&&(n.addEdge(this),this.set(i,n),this.set(a,null))},e.prototype.getLinkPoint=function(r,n,a){var i=pc[r]+bs,o=r+ka,s=this.get(i);if(!s){var u=this.get(o),f=r+t8,l=this.getPrePoint(r,a),c=n[f];Zt(c)||(s=u.getLinkPointByAnchor(c)),s=s||u.getLinkPoint(l),Zt(s.index)||this.set("".concat(r,"AnchorIndex"),s.index)}return s},e.prototype.getPrePoint=function(r,n){if(n&&n.length){var a=r==="source"?0:n.length-1;return n[a]}var i=r==="source"?"target":"source";return this.getEndPoint(i)},e.prototype.getEndPoint=function(r){var n=r+ka,a=pc[r]+bs,i=this.get(n);return i&&!i.destroyed?i.get("model"):this.get(a)},e.prototype.getControlPointsByCenter=function(r){var n=this.getEndPoint("source"),a=this.getEndPoint("target"),i=this.get("shapeFactory"),o=r.type;return i.getControlPoints(o,{startPoint:n,endPoint:a})},e.prototype.getEndCenter=function(r){var n=r+ka,a=pc[r]+bs,i=this.get(n);if(i){var o=i.getBBox();return{x:o.centerX,y:o.centerY}}return this.get(a)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(r,n){var a=this,i=a.get("linkCenter"),o=n!=null&&n.includes("move")?r:t.prototype.getShapeCfg.call(this,r);if(i)o.startPoint=a.getEndCenter("source"),o.endPoint=a.getEndCenter("target");else{var s=o.controlPoints||a.getControlPointsByCenter(o);o.startPoint=a.getLinkPoint("source",r,s),o.endPoint=a.getLinkPoint("target",r,s)}return o.sourceNode=a.get("sourceNode"),o.targetNode=a.get("targetNode"),o},e.prototype.getModel=function(){var r=this.get("model"),n=this.get("source".concat(ka)),a=this.get("target".concat(ka));return n?delete r["source".concat(ka)]:r.source=this.get("start".concat(bs)),a?delete r["target".concat(ka)]:r.target=this.get("end".concat(bs)),!Ye(r.source)&&!ln(r.source)&&(r.source=r.source.getID()),!Ye(r.target)&&!ln(r.target)&&(r.target=r.target.getID()),r},e.prototype.setSource=function(r){this.setEnd("source",r),this.set("source",r)},e.prototype.setTarget=function(r){this.setEnd("target",r),this.set("target",r)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(r,n){n===void 0&&(n=void 0);var a=this.get("model"),i=a.visible,o=r.visible;i!==o&&o!==void 0&&this.changeVisibility(o);var s=this.get("source"),u=this.get("target");if(!(!s||s.destroyed||!u||u.destroyed)){var f=this.get("styles");if(r.stateStyles){var l=r.stateStyles;Et(f,l),delete r.stateStyles}Object.assign(a,r),this.updateShape(n),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var r=this.get("source".concat(ka)),n=this.get("target".concat(ka));r&&!r.destroyed&&r.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(VC),xp="anchorPointsCache",n8="bboxCache",YC=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getNearestPoint=function(r,n){for(var a=0,i=r[0],o=Oh(r[0],n),s=0;s-1&&n.splice(a,1)},e.prototype.clearCache=function(){this.set(n8,null),this.set(xp,null)},e.prototype.getUpdateType=function(r){var n,a,i,o,s;if(r){var u=!Zt(r.x),f=!Zt(r.y),l=Object.keys(r);if(l.length===1&&(u||f)||l.length===2&&u&&f)return"move";if(Ot(r.x)||Ot(r.y)||r.type||r.anchorPoints||r.size||r!=null&&r.style&&(!((n=r==null?void 0:r.style)===null||n===void 0)&&n.r||!((a=r==null?void 0:r.style)===null||a===void 0)&&a.width||!((i=r==null?void 0:r.style)===null||i===void 0)&&i.height||!((o=r==null?void 0:r.style)===null||o===void 0)&&o.rx||!((s=r==null?void 0:r.style)===null||s===void 0)&&s.ry))return"bbox|label";var c=l.includes("label")||l.includes("labelCfg");return c?"style|label":"style"}},e.prototype.setState=function(r,n){var a=this;if(this.optimize){t.prototype.setState.call(this,r,n);return}this.runWithBBoxAffected(function(){return t.prototype.setState.call(a,r,n)})},e.prototype.clearStates=function(r){var n=this;if(this.optimize){t.prototype.clearStates.call(this,r);return}this.runWithBBoxAffected(function(){return t.prototype.clearStates.call(n,r)})},e.prototype.runWithBBoxAffected=function(r){var n=["r","width","height","rx","ry","lineWidth"],a=this.getKeyShape().attr(),i={};Object.keys(this.getKeyShape().attr()).forEach(function(f){n.includes(f)&&(i[f]=a[f])}),r();for(var o=this.getKeyShape().attr(),s=0;s-1?(n.splice(a,1),!0):!1}},e.prototype.removeNode=function(r){if(r){var n=this.getNodes(),a=n.indexOf(r);return a>-1?(n.splice(a,1),!0):!1}},e.prototype.getUpdateType=function(r){},e.prototype.getBBox=function(){this.set(Ax,null);var r=this.calculateCanvasBBox();return r},e.prototype.clearCache=function(){this.set(Mx,null),this.set(Ax,null),this.set(Cx,null)},e.prototype.destroy=function(){if(!this.destroyed){var r=this.get("animate"),n=this.get("group");r&&n.stopAnimate(),n.shapeMap={},this.clearCache(),this.set(gc,null),this.set("bbox",null),n.remove(),this._cfg=null,this.destroyed=!0}},e}(YC),yc="node",mc="edge",Tx="vedge",Wu="combo",i8="default",Ix="Mapper",ii="stateStyles",o8=function(){function t(e){var r=this;this.edgeToBeUpdateMap={},this.throttleRefresh=Ch(function(n){var a=r.graph;if(!(!a||a.get("destroyed"))){var i=r.edgeToBeUpdateMap;if(i){var o=Object.values(i);o.length&&(o.forEach(function(s){var u=s.edge;if(!(!u||u.destroyed)){var f=u.getSource(),l=u.getTarget();!f||f.destroyed||!l||l.destroyed||u.refresh(s.updateType)}}),r.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=e,this.destroyed=!1}return t.prototype.addItem=function(e,r){var n=this.graph,a=e===Tx?mc:e,i=n.get("".concat(a,"Group"))||n.get("group"),o=Zs(a),s=null,u=n.get(a+Zs(ii))||{},f=n.get(i8+o);r[ii]&&(u=r[ii]),f&&_e(f,function(E,_){gn(E)&&!bt(E)?r[_]=_r({},E,r[_]):bt(E)?r[_]=r[_]||rr(f[_]):r[_]=r[_]||f[_]});var l=n.get(a+Ix);if(l){var c=l(r);c[ii]&&(u=c[ii],delete c[ii]),_e(c,function(E,_){gn(E)&&!bt(E)?r[_]=_r({},r[_],E):r[_]=c[_]||r[_]})}if(n.emit("beforeadditem",{type:e,model:r}),e===mc||e===Tx){var h=void 0,d=void 0;if(h=r.source,d=r.target,h&&Ye(h)&&(h=n.findById(h)),d&&Ye(d)&&(d=n.findById(d)),!h||!d){console.warn("The source or target node of edge ".concat(r.id," does not exist!"));return}h.getType&&h.getType()==="combo"&&(r.isComboEdge=!0),d.getType&&d.getType()==="combo"&&(r.isComboEdge=!0),s=new r8({model:r,source:h,target:d,styles:u,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(e===yc)s=new YC({model:r,styles:u,group:i.addGroup()});else if(e===Wu){var v=r.children,p=oh(v,n),g=void 0,y=void 0;if(isNaN(p.x)?isNaN(r.x)&&(g=Math.random()*100):g=p.x,isNaN(p.y)?isNaN(r.y)&&(y=Math.random()*100):y=p.y,isNaN(r.x)||isNaN(r.y))r.x=g,r.y=y;else{var m=r.x-g,b=r.y-y;this.updateComboSucceeds(r.id,m,b,v)}var w=i.addGroup();w.setZIndex(r.depth),s=new a8({model:r,styles:u,animate:n.get("animate"),bbox:r.collapsed?oh([],n):p,group:w}),!r.collapsed&&s.getKeyShape().get("type")==="circle"&&(p.width=Math.hypot(p.height,p.width),p.height=p.width,s.set("bbox",p),s.refresh());var x=s.getModel();(v||[]).forEach(function(E){var _=n.findById(E.id);s.addChild(_),E.depth=x.depth+2})}if(s)return s.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(e,"s")).push(s),n.get("itemMap")[s.get("id")]=s,n.emit("afteradditem",{item:s,model:r}),s},t.prototype.updateItem=function(e,r){var n=this,a,i,o=this.graph;if(Ye(e)&&(e=o.findById(e)),!(!e||e.destroyed)){var s="";e.getType&&(s=e.getType());var u=o.get(s+Ix),f=e.getModel(),l=f.x,c=f.y,h=e.getUpdateType(r);if(u){var d=_r({},f,r),v=u(d),p=_r({},f,v,r);v[ii]&&(e.set("styles",p[ii]),delete p[ii]),_e(p,function(M,C){r[C]=M})}else _e(r,function(M,C){f[C]&&gn(M)&&!bt(M)&&(r[C]=P(P({},f[C]),r[C]))});if(o.emit("beforeupdateitem",{item:e,cfg:r}),s===mc){if(r.source){var g=r.source;Ye(g)&&(g=o.findById(g)),e.setSource(g)}if(r.target){var y=r.target;Ye(y)&&(y=o.findById(y)),e.setTarget(y)}e.update(r)}else if(s===yc){e.update(r,h);var m=e.getEdges();h==="move"?_e(m,function(M){n.edgeToBeUpdateMap[M.getID()]={edge:M,updateType:h},n.throttleRefresh()}):h!=null&&h.includes("bbox")&&_e(m,function(M){M.refresh(h)})}else if(s===Wu){if(e.update(r,h),!isNaN(r.x)||!isNaN(r.y)){var b=r.x-l||0,w=r.y-c||0;this.updateComboSucceeds(f.id,b,w)}var x=e.getEdges(),E=(h==null?void 0:h.includes("bbox"))||h==="move";if(E&&s===Wu){var _=e.get("shapeFactory"),S=f.type||"circle",A=f.animate===void 0||r.animate===void 0?(i=(a=_[S])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:f.animate||r.animate;A?setTimeout(function(){if(!(!e||e.destroyed)){var M=e.getKeyShape();!M||M.destroyed||_e(x,function(C){C&&!C.destroyed&&C.refresh()})}},201):_e(x,function(M){M.refresh()})}}e.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:e,cfg:r})}},t.prototype.updateCombo=function(e,r,n){var a=this,i,o,s=this.graph;if(Ye(e)&&(e=s.findById(e)),!(!e||e.destroyed)){var u=e.getModel(),f=oh(r,s,e),l=f.x,c=f.y;e.set("bbox",f);var h=l,d=c;n?(h=isNaN(u.x)?l:u.x,d=isNaN(u.y)?c:u.y):(h=isNaN(l)?u.x:l,d=isNaN(c)?u.y:c),e.update({x:h,y:d});var v=e.get("shapeFactory"),p=u.type||"circle",g=u.animate===void 0?(o=(i=v[p])===null||i===void 0?void 0:i.options)===null||o===void 0?void 0:o.animate:u.animate;g?setTimeout(function(){if(!(!e||e.destroyed)){var y=e.getKeyShape();!y||y.destroyed||(e.getShapeCfg(u),a.updateComboEdges(e))}},201):this.updateComboEdges(e)}},t.prototype.updateComboEdges=function(e){for(var r,n,a=e.getEdges()||[],i=0;i-1&&o.splice(s,1),i===mc){var u=n.get("v".concat(i,"s")),f=u.indexOf(e);f>-1&&u.splice(f,1)}var l=e.get("id"),c=n.get("itemMap");delete c[l];var h=n.get("comboTrees"),d=e.get("id");if(i===yc){var v=e.getModel().comboId;if(h&&v){var p=h,g=!1;h.forEach(function(E){g||bn(E,function(_){if(_.id===d&&p){var S=p.indexOf(_);return p.splice(S,1),g=!0,!1}return p=_.children,!0})})}for(var y=e.getEdges(),m=y.length-1;m>=0;m--)n.removeItem(y[m],!1);v&&n.updateCombo(v)}else if(i===Wu){var b=e.getModel().parentId,w,x=!1;(h||[]).forEach(function(_){x||bn(_,function(S){return S.id===d?(w=S,x=!0,!1):!0})}),w.removed=!0,w&&w.children&&w.children.forEach(function(_){r.removeItem(_.id)});for(var y=e.getEdges(),m=y.length;m>=0;m--)n.removeItem(y[m],!1);b&&n.updateCombo(b)}e.destroy(),n.emit("afterremoveitem",{item:a,type:i})}},t.prototype.setItemState=function(e,r,n){var a=this.graph,i=r;Ye(n)&&(i="".concat(r,":").concat(n)),!(e.hasState(i)===n&&n||Ye(n)&&e.hasState(i))&&(a.emit("beforeitemstatechange",{item:e,state:i,enabled:n}),e.setState(r,n),a.autoPaint(),a.emit("afteritemstatechange",{item:e,state:i,enabled:n}))},t.prototype.priorityState=function(e,r){var n=this.graph,a=e;Ye(e)&&(a=n.findById(e)),this.setItemState(a,r,!1),this.setItemState(a,r,!0)},t.prototype.clearItemStates=function(e,r){var n=this.graph;Ye(e)&&(e=n.findById(e)),n.emit("beforeitemstatesclear",{item:e,states:r}),e.clearStates(r),n.emit("afteritemstatesclear",{item:e,states:r})},t.prototype.refreshItem=function(e){var r=this.graph;Ye(e)&&(e=r.findById(e)),r.emit("beforeitemrefresh",{item:e}),e.refresh(),r.emit("afteritemrefresh",{item:e})},t.prototype.addCombos=function(e,r){var n=this,a=this.graph;(e||[]).forEach(function(o){Ra(o,function(s){var u;return r.forEach(function(f){f.id===s.id&&(f.children=s.children,f.depth=s.depth,u=f)}),u&&n.addItem("combo",u),!0})});var i=a.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(e,r){var n=this,a=this.graph;if(Ye(e)&&(e=a.findById(e)),!e){console.warn("The item to be shown or hidden does not exist!");return}if(a.emit("beforeitemvisibilitychange",{item:e,visible:r}),e.changeVisibility(r),e.getType&&e.getType()===yc){var i=e.getEdges();_e(i,function(l){r&&!(l.get("source").isVisible()&&l.get("target").isVisible())||n.changeItemVisibility(l,r)})}else if(e.getType&&e.getType()===Wu){var o=a.get("comboTrees"),s=e.get("id"),u=[],f=!1;(o||[]).forEach(function(c){f||!c.children||c.children.length===0||bn(c,function(h){return h.id===s?(u=h.children,f=!0,!1):!0})}),u&&(!r||r&&!e.getModel().collapsed)&&u.forEach(function(c){var h=a.findById(c.id);n.changeItemVisibility(h,r)});var i=e.getEdges();_e(i,function(c){r&&!(c.get("source").isVisible()&&c.get("target").isVisible())||n.changeItemVisibility(c,r)})}return a.emit("afteritemvisibilitychange",{item:e,visible:r}),e},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),s8=function(){function t(e){this.graph=e,this.destroyed=!1}return t.prototype.updateState=function(e,r,n){var a=this.graph.get("states"),i=r;Ye(n)&&(i="".concat(r,":").concat(n)),a[i]||(a[i]=[]),n?a[i].push(e):a[i]=a[i].filter(function(o){return o!==e}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:a})},t.prototype.updateStates=function(e,r,n){var a=this.graph.get("states"),i=Ye(r)?[r]:r;i.forEach(function(o){var s=o;a[s]||(a[s]=[]),Ye(n)&&(s="".concat(o,":").concat(n)),n?a[s].push(e):a[s]=a[s].filter(function(u){return u!==e})}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:r})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),u8=function(e,r){return!e||!r?e:e.replace(/\\?\{([^{}]+)\}/g,function(n,a){if(n.charAt(0)==="\\")return n.slice(1);var i=r[a];return i===0&&(i="0"),i||""})},qC=function(e){var r=[];if(e.length<2)throw new Error("point length must largn than 2, now it's ".concat(e.length));for(var n=0,a=e;n0?o-1:r-1,u=Wi([0,0],fn([0,0],i[s].v,wn([0,0],i[o].v,-1)));i[o].p=fn([0,0],i[o].p,wn([0,0],u,e))}return i.map(function(f){var l=f.p;return{x:l[0],y:l[1]}})}var l8=function(e,r){for(var n=[],a=0;a<5;a++){var i=Math.cos((18+72*a)/180*Math.PI)*e,o=Math.sin((18+72*a)/180*Math.PI)*e,s=Math.cos((54+72*a)/180*Math.PI)*r,u=Math.sin((54+72*a)/180*Math.PI)*r;a===0?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",s,-u])}return n.push(["Z"]),n};const c8=Object.freeze(Object.defineProperty({__proto__:null,getClosedSpline:K0,getControlPoint:zh,getSpline:qC,getStarPath:l8,paddedHull:HC,pathToPoints:Z0,pointsToPolygon:f8,roundedHull:Q0},Symbol.toStringTag,{value:"Module"}));var Lx=function(e,r,n){return(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y)},Dx=function(e){var r=e.map(function(c){return{x:c.getModel().x,y:c.getModel().y}});r.sort(function(c,h){return c.x===h.x?c.y-h.y:c.x-h.x});for(var n={},a=r.length-1;a>=0;a--){var i=r[a],o=i.x,s=i.y;n["".concat(o,"-").concat(s)]&&r.splice(a,1),n["".concat(o,"-").concat(s)]=!0}if(r.length===1)return r;for(var u=[],a=0;a=2&&Lx(u[u.length-2],u[u.length-1],r[a])<=0;)u.pop();u.push(r[a])}for(var f=[],a=r.length-1;a>=0;a--){for(;f.length>=2&&Lx(f[f.length-2],f[f.length-1],r[a])<=0;)f.pop();f.push(r[a])}f.pop(),u.pop();var l=u.concat(f);return l},h8={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function d8(t,e,r){var n=!1,a=function(u,f){return e.cells[u+f*e.width]},i=function(u,f){var l=0;return a(u-1,f-1)>=r&&(l+=1),a(u,f-1)>r&&(l+=2),a(u-1,f)>r&&(l+=4),a(u,f)>r&&(l+=8),l},o=function(u,f){for(var l=u,c=f,h,d,v=0;v-1){if(!(t[0].x!==l||t[0].y!==c))return!0}else t.push({x:l,y:c});var p=i(l,c);switch(p){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:l++;break;case 12:case 14:case 4:l--;break;case 6:h===0&&(d===-1?l-=1:l+=1);break;case 1:case 13:case 5:c--;break;case 9:h===1&&(d===0?c-=1:c+=1);break;case 10:case 8:case 11:c++;break;default:return console.warn("Marching squares invalid state: ".concat(p)),!0}}};this.march=function(){for(var s=0;sr&&i(s,u)!==15&&(n=o(s,u));return n}}var v8=function(e,r,n){var a=Math.ceil(e/n),i=Math.ceil(r/n),o=new Float32Array(Math.max(0,a*i)).fill(0);return{cells:o,width:a,height:i}},p8=function(e,r,n){var a=null,i=Number.POSITIVE_INFINITY;return r.forEach(function(o){var s={x:e.getModel().x,y:e.getModel().y},u={x:o.getModel().x,y:o.getModel().y},f=Lh(s,u),l=new $o(s.x,s.y,u.x,u.y),c=n.reduce(function(h,d){return Oy(d,l)>0?h+1:h},0);f*Math.pow(c+1,2)=0&&o=1;)x/=1.5,E=Px(v,x,g,w),_=f(E,o)||f(E,i),S=l(E,r);E&&!_&&(!w||!S)&&(o.push(new $o(d.x1,d.y1,E.x,E.y)),o.push(new $o(E.x,E.y,d.x2,d.y2)),s=!0)};m(!0),s||m(!1)}}s||i.push(d),u+=1};!s&&o.length;)c()}for(;o.length;)i.push(o.pop());return i};function y8(t,e,r,n,a){var i=p8(t,r,e);if(i===null)return[];var o=function(c){for(var h=[];c.length>0;){var d=c.pop();if(c.length===0){h.push(d);break}var v=c.pop(),p=new $o(d.x1,d.y1,v.x2,v.y2),g=ZC(e,p);g?(h.push(d),c.push(v)):c.push(p)}return h},s=new $o(t.getModel().x,t.getModel().y,i.getModel().x,i.getModel().y),u=g8(s,e,n,a),f=o(u);return f}var m8=function(e,r,n){var a=Object.assign(h8,n),i=zA(e.map(function(m){return{x:m.getModel().x,y:m.getModel().y}}));e=e.sort(function(m,b){return Lh({x:m.getModel().x,y:m.getModel().y},i)-Lh({x:b.getModel().x,y:b.getModel().y},i)});var o=[],s=[];e.forEach(function(m){var b=y8(m,r,o,a.maxRoutingIterations,a.morphBuffer);b.forEach(function(w){s.push(w)}),o.push(m)});for(var u=b8(e,s,a.nodeR0),f=v8(u.width,u.height,a.pixelGroupSize),l=[],c=[],h=0;h1)for(v=Math.floor(d.length/a.skip);v<3&&a.skip>1;)a.skip-=1,v=Math.floor(d.length/a.skip);for(var p=0,g=0;g0)a.nonMemberInfluenceFactor*=.8;else break}return c};function b8(t,e,r){var n={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},a=[];t.forEach(function(u){a.push(u.getBBox())}),e.forEach(function(u){a.push(u.getBBox())});for(var i=0,o=a;in.maxX?s.maxX:n.maxX)+r,n.maxY=(s.maxY>n.maxY?s.maxY:n.maxY)+r}return n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.x=n.minX,n.y=n.minY,n}function w8(t,e,r,n,a,i){function o(d,v){var p=Math.floor((d-v)/i.pixelGroupSize);return p<0?0:p}function s(d,v){return d*i.pixelGroupSize+v}var u=(i.nodeR0-i.nodeR1)*(i.nodeR0-i.nodeR1),f=(i.edgeR0-i.edgeR1)*(i.edgeR0-i.edgeR1),l=function(v,p){var g=Math.min(o(v.minX,p+n.minX),a.width),y=Math.min(o(v.minY,p+n.minY),a.height),m=Math.min(o(v.maxX,-p+n.minX),a.width),b=Math.min(o(v.maxY,-p+n.minY),a.height);return[g,y,m,b]},c=function(v,p){for(var g=v.getBBox(),y=l(g,i.nodeR1),m=y[0],b=y[1],w=y[2],x=y[3],E=b;Eu.y?n?f.topLeft:f.bottomRight:n?f.topRight:f.bottomLeft:o.ys.x?n?f.topLeft:f.bottomRight:n?f.bottomLeft:f.topRight:i.x0?this.cfg.padding+e:10+e,this.cfg.bubbleCfg={nodeR0:this.padding-e,nodeR1:this.padding-e,morphBuffer:this.padding-e}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(e,r){var n,a,i;switch(this.type){case"round-convex":n=Dx(e),i=Q0(n.map(function(o){return[o.x,o.y]}),this.padding),a=W0(i);break;case"smooth-convex":n=Dx(e),n.length===2?(i=Q0(n.map(function(o){return[o.x,o.y]}),this.padding),a=W0(i)):n.length>2&&(i=HC(n.map(function(o){return[o.x,o.y]}),this.padding),a=K0(i));break;case"bubble":n=m8(e,r,this.cfg.bubbleCfg),a=n.length>=2&&K0(n);break}return a},t.prototype.render=function(){this.group.addShape("path",{attrs:P({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},t.prototype.addMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.members.push(e);var r=this.nonMembers.indexOf(e);return r>-1&&this.nonMembers.splice(r,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.nonMembers.push(e);var r=this.members.indexOf(e);return r>-1&&this.members.splice(r,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var r=this.members.indexOf(e);return r>-1?(this.members.splice(r,1),this.updateData(this.members,this.nonMembers),!0):!1}},t.prototype.removeNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var r=this.nonMembers.indexOf(e);return r>-1?(this.nonMembers.splice(r,1),this.updateData(this.members,this.nonMembers),!0):!1}},t.prototype.updateData=function(e,r){var n=this;this.group.findById(this.id).remove(),e&&(this.members=e.map(function(a){return Ye(a)?n.graph.findById(a):a})),r&&(this.nonMembers=r.map(function(a){return Ye(a)?n.graph.findById(a):a})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(e){var r=this.group.findById(this.id);r.attr(P({},e))},t.prototype.updateCfg=function(e){var r=this;this.cfg=_r(this.cfg,e),this.id=this.cfg.id,this.group=this.cfg.group,e.members&&(this.members=this.cfg.members.map(function(n){return Ye(n)?r.graph.findById(n):n})),e.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(n){return Ye(n)?r.graph.findById(n):n})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(e){var r=this,n;Ye(e)?n=this.graph.findById(e):n=e;var a,i=n.getKeyShape();if(n.get("type")==="path")a=Z0(i.attr("path"));else{var o=i.getCanvasBBox();a=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return a=a.map(function(s){var u=r.graph.getPointByCanvas(s[0],s[1]);return[u.x,u.y]}),BA(a,Z0(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),Vu=eo,E8="node",_8=function(t){jt(e,t);function e(r){var n=t.call(this)||this;return n.sortCombos=oy(function(){var a=n.get("comboSorted");if(!(!n||n.destroyed||a)){n.set("comboSorted",!0);var i=[],o={},s=n.get("comboTrees");(s||[]).forEach(function(f){bn(f,function(l){return i[l.depth]?i[l.depth].push(l.id):i[l.depth]=[l.id],o[l.id]=l.depth,!0})});var u=n.getEdges().concat(n.get("vedges"));(u||[]).forEach(function(f){var l=f.getModel(),c=o[l.source]||0,h=o[l.target]||0,d=Math.max(c,h);i[d]?i[d].push(l.id):i[d]=[l.id]}),i.forEach(function(f){if(!(!f||!f.length))for(var l=f.length-1;l>=0;l--){var c=n.findById(f[l]);c&&c.toFront()}})}},500,!1),n.cfg=_r(n.getDefaultCfg(),r),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new Gs(n.cfg.maxStep),n.redoStack=new Gs(n.cfg.maxStep)),n}return e.prototype.init=function(){this.initCanvas();var r=new Zj(this),n=new cz(this),a=new o8(this),i=new s8(this);this.set({viewController:r,modeController:n,itemController:a,stateController:i}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var r=this.get("canvas");if(r){var n=r.get("el"),a=(n||{}).id,i=a===void 0?"g6":a,o=r.addGroup({id:"".concat(i,"-root"),className:ft.rootContainerClassName});if(this.get("groupByTypes")){var s=o.addGroup({id:"".concat(i,"-edge"),className:ft.edgeContainerClassName}),u=o.addGroup({id:"".concat(i,"-node"),className:ft.nodeContainerClassName}),f=o.addGroup({id:"".concat(i,"-combo"),className:ft.comboContainerClassName});f.toBack(),this.set({nodeGroup:u,edgeGroup:s,comboGroup:f})}var l=o.addGroup({id:"".concat(i,"-delegate"),className:ft.delegateContainerClassName});this.set({delegateGroup:l}),this.set("group",o)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(r,n){return ln(r)?this.cfg=P(P({},this.cfg),r):this.cfg[r]=n,r==="enabledStack"&&n&&!this.undoStack&&!this.redoStack&&(this.undoStack=new Gs(this.cfg.maxStep),this.redoStack=new Gs(this.cfg.maxStep)),this},e.prototype.get=function(r){var n;return(n=this.cfg)===null||n===void 0?void 0:n[r]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(r){return this.set("minZoom",r)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(r){return this.set("maxZoom",r)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(r,n){Ye(r)&&(r=this.findById(r));var a=this.get("itemController");n||(n=r.get("states")),a.clearItemStates(r,n);var i=this.get("stateController");i.updateStates(r,n,!1)},e.prototype.node=function(r){typeof r=="function"&&this.set("nodeMapper",r)},e.prototype.edge=function(r){typeof r=="function"&&this.set("edgeMapper",r)},e.prototype.combo=function(r){typeof r=="function"&&this.set("comboMapper",r)},e.prototype.findById=function(r){return this.get("itemMap")[r]},e.prototype.find=function(r,n){var a,i=this.get("".concat(r,"s"));return _e(i,function(o,s){if(n(o,s))return a=o,a}),a},e.prototype.findAll=function(r,n){var a=[];return _e(this.get("".concat(r,"s")),function(i,o){n(i,o)&&a.push(i)}),a},e.prototype.findAllByState=function(r,n,a){return a?this.findAll(r,function(i){return i.hasState(n)&&a(i)}):this.findAll(r,function(i){return i.hasState(n)})},e.prototype.translate=function(r,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),a){var f=Df({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"translate",matrix:s.getMatrix()})}});_0(s,{x:s.getCanvasBBox().x+r,y:s.getCanvasBBox().y+n},a,f||{duration:500,easing:"easeCubic"})}else u=Vu(u,[["t",r,n]]),s.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},e.prototype.moveTo=function(r,n,a,i){var o=this.get("group");_0(o,{x:r,y:n},a,i||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:o.getMatrix()})},e.prototype.fitView=function(r,n,a,i){r&&this.set("fitViewPadding",r);var o=this.get("viewController");n?o.fitViewByRules(n,a,i):o.fitView(a,i),this.autoPaint()},e.prototype.fitCenter=function(r,n){var a=this.get("viewController");a.fitCenter(r,n),this.autoPaint()},e.prototype.addBehaviors=function(r,n){var a=this.get("modeController");return a.manipulateBehaviors(r,n,!0),this},e.prototype.removeBehaviors=function(r,n){var a=this.get("modeController");return a.manipulateBehaviors(r,n,!1),this},e.prototype.updateBehavior=function(r,n,a){var i=this.get("modeController");return i.updateBehavior(r,n,a),this},e.prototype.zoom=function(r,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix())||[1,0,0,0,1,0,0,0,1],f=this.get("minZoom"),l=this.get("maxZoom"),c=this.getZoom()||1,h=c*r,d=r,v=!1;if(f&&hl&&(d=l/c,v=!0),n?u=Vu(u,[["t",-n.x,-n.y],["s",d,d],["t",n.x,n.y]]):u=Vu(u,[["s",d,d]]),a){var p=rr(s.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],y=g*d,m=Df({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"zoom",matrix:s.getMatrix()})}});s.animate(function(b){if(b===1)p=u;else{var w=Ly(g,y,b)/p[0];n?p=Vu(p,[["t",-n.x,-n.y],["s",w,w],["t",n.x,n.y]]):p=Vu(p,[["s",w,w]])}return{matrix:p}},m)}else s.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!v},e.prototype.zoomTo=function(r,n,a,i){var o=r/this.getZoom();return this.zoom(o,n,a,i)},e.prototype.focusItem=function(r,n,a){var i=this.get("viewController"),o=!1;n?o=!0:n===void 0&&(o=this.get("animate"));var s={};a?s=a:a===void 0&&(s=this.get("animateCfg")),i.focus(r,o,s),this.autoPaint()},e.prototype.focusItems=function(r,n,a,i){var o=this.get("viewController");o.focusItems(r,n,a,i)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(r,n){var a=this.get("viewController");return a.getPointByClient(r,n)},e.prototype.getClientByPoint=function(r,n){var a=this.get("viewController");return a.getClientByPoint(r,n)},e.prototype.getPointByCanvas=function(r,n){var a=this.get("viewController");return a.getPointByCanvas(r,n)},e.prototype.getCanvasByPoint=function(r,n){var a=this.get("viewController");return a.getCanvasByPoint(r,n)},e.prototype.getGraphCenterPoint=function(){var r=this.get("group").getCanvasBBox();return{x:(r.minX+r.maxX)/2,y:(r.minY+r.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(r,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(r,!0);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!1}],f.nodes=[{id:o,visible:!0}];break;case"edge":u.nodes=[{id:o,visible:!1}],f.edges=[{id:o,visible:!0}];break;case"combo":u.nodes=[{id:o,visible:!1}],f.combos=[{id:o,visible:!0}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.hideItem=function(r,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(r,!1);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!0}],f.nodes=[{id:o,visible:!1}];break;case"edge":u.nodes=[{id:o,visible:!0}],f.edges=[{id:o,visible:!1}];break;case"combo":u.nodes=[{id:o,visible:!0}],f.combos=[{id:o,visible:!1}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.refreshItem=function(r){var n=this.get("itemController");n.refreshItem(r)},e.prototype.setAutoPaint=function(r){var n=this;n.set("autoPaint",r);var a=n.get("canvas");a.set("autoDraw",r)},e.prototype.remove=function(r,n){n===void 0&&(n=!0),this.removeItem(r,n)},e.prototype.removeItem=function(r,n){n===void 0&&(n=!0);var a=r;if(Ye(r)&&(a=this.findById(r)),!a&&Ye(r))console.warn("The item ".concat(r," to be removed does not exist!"));else if(a){var i="";if(a.getType&&(i=a.getType()),n&&this.get("enabledStack")){var o=P(P({},a.getModel()),{itemType:i}),s={};switch(i){case"node":{s.nodes=[o],s.edges=[];for(var u=a.getEdges(),f=u.length-1;f>=0;f--)s.edges.push(P(P({},u[f].getModel()),{itemType:"edge"}));break}case"edge":s.edges=[o];break;case"combo":s.combos=[o];break}this.pushStack("delete",{before:s,after:{}})}if(i==="node"){var l=a.getModel();l.comboId&&this.updateComboTree(a,void 0,!1)}var c=this.get("itemController");if(c.removeItem(a),i==="combo"){var h=I0(this.get("comboTrees"));this.set("comboTrees",h)}}},e.prototype.innerAddItem=function(r,n,a){if(!lz(r,n))return!1;if(n.id&&this.findById(n.id)){console.warn("This item exists already. Be sure the id %c".concat(n.id,"%c is unique."),"font-size: 20px; color: red;","");return}var i,o=this.get("comboTrees")||[];if(r==="combo"){var s=this.get("itemMap"),u=!1;if(o.forEach(function(v){u||Ra(v,function(p){if(n.parentId===p.id){u=!0;var g=P({id:n.id,depth:p.depth+2},n);p.children?p.children.push(g):p.children=[g],n.depth=g.depth,i=a.addItem(r,n)}var y=s[p.id];return u&&y&&y.getType&&y.getType()==="combo"&&a.updateCombo(y,p.children),!0})}),!u){var f=P({id:n.id,depth:0},n);n.depth=f.depth,o.push(f),i=a.addItem(r,n)}this.set("comboTrees",o),n.collapsed&&(this.collapseCombo(i,!1),this.updateCombo(i))}else if(r==="node"&&Ye(n.comboId)&&o){var l=this.findById(n.comboId);l&&l.getType&&l.getType()!=="combo"&&console.warn("'".concat(n.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),i=a.addItem(r,n);var c=this.get("itemMap"),h=!1,d=!1;o.forEach(function(v){d||h||Ra(v,function(p){if(p.id===n.id)return d=!0,!1;if(n.comboId===p.id&&!d){h=!0;var g=rr(n);g.itemType="node",p.children?p.children.push(g):p.children=[g],g.depth=p.depth+1}return h&&c[p.id].getType&&c[p.id].getType()==="combo"&&a.updateCombo(c[p.id],p.children),!0})})}else i=a.addItem(r,n);if(r==="node"&&n.comboId||r==="combo"&&n.parentId){var l=this.findById(n.comboId||n.parentId);l&&l.getType&&l.getType()==="combo"&&l.addChild(i)}return i},e.prototype.addItem=function(r,n,a,i){a===void 0&&(a=!0),i===void 0&&(i=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!i);var s=this.get("itemController"),u=this.innerAddItem(r,n,s);if(u===!1||u===!0)return u;var f=this.get("combos");if(f&&f.length>0&&this.sortCombos(),this.autoPaint(),a&&this.get("enabledStack")){var l=P(P({},u.getModel()),{itemType:r}),c={};switch(r){case"node":c.nodes=[l];break;case"edge":c.edges=[l];break;case"combo":c.combos=[l];break}this.pushStack("add",{before:{},after:c})}return u},e.prototype.addItems=function(r,n,a){r===void 0&&(r=[]),n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);for(var o=this.get("itemController"),s=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),n&&this.get("enabledStack")){for(var c={nodes:[],edges:[],combos:[]},u=0;u=0;g--)v[g].destroyed&&v.splice(g,1);h&&(o.addCombos(h),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,s.edges),_e(l,function(w,x){w.getType&&(w.getType()==="node"||w.getType()==="combo")||c.edges.indexOf(w)<0&&(delete l[x],o.remove(w,!1))}),(this.get("comboTrees")||[]).forEach(function(w){Ra(w,function(x){var E=a.findById(x.id);return E.getType()==="combo"&&x.collapsed&&a.collapseCombo(x.id,!1),!0})}),this.set({nodes:c.nodes,edges:c.edges});var y=(this.get("layout")||{}).relayoutAtChangeData,m=y===void 0?!0:y,b=this.get("layoutController");return m&&b&&(b.changeData(function(){setTimeout(function(){var w;(w=o.getCombos())===null||w===void 0||w.forEach(function(x){x.set("animate",!0)})},0)}),o.get("animate")&&!b.getLayoutType()?(o.positionsAnimate(),(i=o.getCombos())===null||i===void 0||i.forEach(function(w){return w.set("animate",!0)})):o.autoPaint()),setTimeout(function(){u.set("localRefresh",f)},16),this.set("data",s),this.emit("afterchangedata"),this},e.prototype.addCombos=function(r){var n=this,a=n.get("comboTrees"),i=this.get("itemController");i.addCombos(a,r)},e.prototype.createCombo=function(r,n,a){var i=this;a===void 0&&(a=!0);var o=this.get("itemController");this.set("comboSorted",!1);var s="",u;if(r){if(Ye(r))s=r,u={id:r};else{if(s=r.id,!s){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=r}var f=a&&this.get("enabledStack"),l={nodes:[],combos:[]};f&&n.forEach(function(y){var m=i.findById(y),b=m.getType();if(!(b!=="node"&&b!=="combo")){var w=m.getModel();l["".concat(b,"s")].push({id:y,parentId:b==="node"?w.comboId:w.parentId})}});var c=this.get("comboTrees"),h=new Set(n),d=new Map;c&&(c.forEach(function(y){Ra(y,function(m,b,w){if(h.has(m.id)){if(b){var x=i.findById(b.id),E=i.findById(m.id);b.children.splice(w,1),x.removeChild(E),o.updateCombo(x,b.children)}m.itemType==="combo"&&d.set(m.id,m)}return!0})}),c=c.filter(function(y){return!h.has(y.id)}),this.set("comboTrees",c));var v={nodes:[],combos:[]},p=n.map(function(y){var m=i.findById(y),b=m.getModel(),w="";m.getType&&(w=m.getType());var x=d.get(y)||{id:m.getID(),itemType:w};return w==="combo"?(x.parentId=s,b.parentId=s):w==="node"&&(x.comboId=s,b.comboId=s),f&&v["".concat(w,"s")].push({id:b.id,parentId:s}),x});u.children=p,this.addItem("combo",u,!1),this.set("comboSorted",!1),c&&(c.forEach(function(y){bn(y,function(m){return m.id===s?(m.itemType="combo",m.children=p,!1):!0})}),this.sortCombos()),f&&(v.combos.push(u),this.pushStack("createCombo",{before:l,after:v}));var g=this.findById(s);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout(function(){g.set("animate",!0)},0)}},e.prototype.uncombo=function(r,n){var a=this,i,o;n===void 0&&(n=!0);var s=this,u=r;if(Ye(r)&&(u=this.findById(r)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var f=u.getModel(),l=u.getModel().parentId,c=s.get("comboTrees");c||(c=[]);var h=this.get("itemMap"),d=u.get("id"),v,p=[],g=this.get("combos"),y=this.findById(l),m=n&&this.get("enabledStack"),b={};if(m&&(b=rr(f),b.children=[]),c.forEach(function(_){v||Ra(_,function(S){var A;if(S.id===d){v=S;var M=u.getEdges().map(function(k){return k.getID()});M.forEach(function(k){a.removeItem(k,!1)});var C=g.indexOf(u);g.splice(C,1),delete h[d];var I=rr(u.getModel());u.destroy(),a.emit("afterremoveitem",{item:I,type:"combo"})}if(l&&v&&S.id===l){y.removeCombo(u),p=S.children;var C=p.indexOf(v);return C!==-1&&p.splice(C,1),(A=v.children)===null||A===void 0||A.forEach(function(O){var B=a.findById(O.id),L=B.getModel();B.getType&&B.getType()==="combo"?(O.parentId=l,delete O.comboId,L.parentId=l,delete L.comboId):B.getType&&B.getType()==="node"&&(O.comboId=l,L.comboId=l),y.addChild(B),p.push(O)}),a.updateCombo(y),!1}return!0})}),!l&&v){var w=c.indexOf(v);c.splice(w,1),(i=v.children)===null||i===void 0||i.forEach(function(_){_.parentId=void 0;var S=a.findById(_.id).getModel();delete S.parentId,delete S.comboId,_.itemType!=="node"&&c.push(_)})}if(m){var x={nodes:[],combos:[]},E={nodes:[],combos:[]};(o=v.children)===null||o===void 0||o.forEach(function(_){var S=a.findById(_.id),A=S.getType();A!=="node"&&A!=="combo"||(x["".concat(A,"s")].push({id:_.id,parentId:d}),E["".concat(A,"s")].push({id:_.id,parentId:l}))}),x.combos.push(b),this.pushStack("uncombo",{before:x,after:E})}},e.prototype.updateCombos=function(r){var n=this;r===void 0&&(r=!1);var a=this,i=this.get("comboTrees"),o=a.get("itemController"),s=a.get("itemMap");(i||[]).forEach(function(u){Ra(u,function(f){var l;if(!f)return!0;var c=s[f.id];if(((l=c==null?void 0:c.getType)===null||l===void 0?void 0:l.call(c))==="combo"){var h=Xn([],c.getStates(),!0);_e(h,function(d){return n.setItemState(c,d,!1)}),o.updateCombo(c,f.children,r),_e(h,function(d){return n.setItemState(c,d,!0)})}return!0})}),a.sortCombos()},e.prototype.updateCombo=function(r){var n=this,a=this,i=r,o;if(Ye(r)&&(i=this.findById(r)),!i||i.getType&&i.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}o=i.get("id");var s=this.get("comboTrees"),u=a.get("itemController"),f=a.get("itemMap");(s||[]).forEach(function(l){Ra(l,function(c){if(!c)return!0;var h=f[c.id];if(o===c.id&&h&&h.getType&&h.getType()==="combo"){var d=Xn([],h.getStates(),!0);_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!1)}),u.updateCombo(h,c.children),_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!0)}),o&&(o=c.parentId)}return!0})})},e.prototype.updateComboTree=function(r,n,a){a===void 0&&(a=!0);var i=this;this.set("comboSorted",!1);var o;Ye(r)?o=i.findById(r):o=r;var s=o.getModel(),u=s.comboId||s.parentId,f="";if(o.getType&&(f=o.getType()),n&&f==="combo"){var l=this.get("comboTrees"),c=!0,h;if((l||[]).forEach(function(m){h||bn(m,function(b){if(!h)return b.id===o.getID()&&(h=b),!0})}),bn(h,function(m){return m.id===n?(c=!1,!1):!0}),!c){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(a&&this.get("enabledStack")){var d={},v={};f==="combo"?(d.combos=[{id:s.id,parentId:s.parentId}],v.combos=[{id:s.id,parentId:n}]):f==="node"&&(d.nodes=[{id:s.id,parentId:s.comboId}],v.nodes=[{id:s.id,parentId:n}]),this.pushStack("updateComboTree",{before:d,after:v})}if(s.parentId||s.comboId){var p=this.findById(s.parentId||s.comboId);p&&p.removeChild(o)}if(f==="combo"?s.parentId=n:f==="node"&&(s.comboId=n),n){var g=this.findById(n);g&&g.addChild(o)}if(u){var g=this.findById(u);g&&g.removeChild(o)}var y=I0(this.get("comboTrees"),s.id,n);this.set("comboTrees",y),this.updateCombos()},e.prototype.save=function(){var r=[],n=[],a=[];return _e(this.get("nodes"),function(i){r.push(i.getModel())}),_e(this.get("edges"),function(i){n.push(i.getModel())}),_e(this.get("combos"),function(i){a.push(i.getModel())}),{nodes:r,edges:n,combos:a}},e.prototype.changeSize=function(r,n){var a=this.get("viewController");return a.changeSize(r,n),this},e.prototype.refresh=function(){var r=this;if(r.emit("beforegraphrefresh"),r.get("animate"))r.positionsAnimate();else{var n=r.get("nodes"),a=r.get("edges"),i=r.get("edges");_e(n,function(o){o.refresh()}),_e(a,function(o){o.refresh()}),_e(i,function(o){o.refresh()})}r.emit("aftergraphrefresh"),r.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(r){if(Ye(r)&&(r=this.findById(r)),!r||r.getType&&r.getType()!=="combo"){console.warn("The combo does not exist!");return}return r.getChildren()},e.prototype.positionsAnimate=function(r){var n=this;n.emit("beforeanimate");var a=n.get("animateCfg"),i=a.onFrame,o=r?n.getNodes().concat(n.getCombos()):n.getNodes(),s=o.map(function(f){var l=f.getModel();return{id:l.id,x:l.x,y:l.y}});n.stopAnimate();var u=n.get("canvas");n.animating=!0,setTimeout(function(){u.animate(function(f){_e(s,function(l){var c=n.findById(l.id);if(!(!c||c.destroyed)){var h=c.get("originAttrs"),d=c.get("model"),v=c.getContainer().getMatrix();if(h==null&&(v&&(h={x:v[6],y:v[7]}),c.set("originAttrs",h||0)),i){var p=i(c,f,l,h||{x:0,y:0});c.set("model",Object.assign(d,p))}else h?(d.x=h.x+(l.x-h.x)*f,d.y=h.y+(l.y-h.y)*f):(d.x=l.x,d.y=l.y)}}),n.refreshPositions(r)},{duration:a.duration,easing:a.easing,callback:function(){_e(o,function(l){l.set("originAttrs",null)}),a.callback&&a.callback(),n.emit("afteranimate"),n.animating=!1}})},0)},e.prototype.refreshPositions=function(r){var n=this;n.emit("beforegraphrefreshposition");var a=n.get("nodes"),i=n.get("edges"),o=n.get("vedges"),s=n.get("combos"),u,f={},l=function(h){_e(h,function(d){u=d.getModel();var v=d.get("originAttrs");if(!(v&&u.x===v.x&&u.y===v.y)){var p=d.updatePosition({x:u.x,y:u.y});f[u.id]=p,u.comboId&&(f[u.comboId]=f[u.comboId]||p),u.parentId&&(f[u.parentId]=f[u.parentId]||p)}})};l(s),l(a),s&&s.length!==0&&(r&&l(s),n.updateCombos()),_e(i,function(c){var h=c.getSource().getModel(),d=c.getTarget();if(!ln(d)){var v=d.getModel();(f[h.id]||f[v.id]||c.getModel().isComboEdge)&&c.refresh()}}),_e(o,function(c){c.refresh()}),n.emit("aftergraphrefreshposition"),n.autoPaint()},e.prototype.stopAnimate=function(){var r=this.get("canvas"),n=r.cfg.timeline;n&&n.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var r=this.get("group").getMatrix();return r?r[0]:1},e.prototype.getCurrentMode=function(){var r=this.get("modeController");return r.getMode()},e.prototype.setMode=function(r){var n=this.get("modeController");return n.setMode(r),this},e.prototype.clear=function(r){var n;return r===void 0&&(r=!1),(n=this.get("canvas"))===null||n===void 0||n.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),r||this.emit("afterrender"),this},e.prototype.updateLayout=function(r,n,a,i){var o=this;r===void 0&&(r={}),i===void 0&&(i=!0);var s=this.get("layoutController");if(Ye(r)&&(r={type:r}),n){var u=a;u||(n==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var f=["force","gForce","fruchterman","force2"];f.includes(r.type)||!r.type&&f.includes(s==null?void 0:s.layoutType)?r.center=[u.x,u.y]:this.once("afterlayout",function(h){var d=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*d[0]+d[6],u.y=u.y*d[0]+d[7];var v=o.getGroup().getCanvasBBox(),p=v.minX,g=v.maxX,y=v.minY,m=v.maxY,b={x:(p+g)/2,y:(y+m)/2};n==="begin"&&(b.x=p,b.y=y),o.translate(u.x-b.x,u.y-b.y)})}var l=P({},this.get("layout")),c={};Object.assign(c,l,r),r.pipes&&!r.type?delete c.type:!r.pipes&&c.type&&delete c.pipes,this.set("layout",c),s&&(s.isLayoutTypeSame(c)&&c.gpuEnabled===l.gpuEnabled?s.updateLayoutCfg(c):s.changeLayout(c),i&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:c}))},e.prototype.destroyLayout=function(){var r=this.get("layoutController");r==null||r.destroyLayout()},e.prototype.layout=function(){var r,n=this.get("layoutController"),a=this.get("layout");if(!(!a||!n)){if(a.workerEnabled){n.layout();return}!((r=n.layoutMethods)===null||r===void 0)&&r.length?n.relayout(!0):n.layout()}},e.prototype.collapseCombo=function(r,n){var a=this;if(n===void 0&&(n=!0),!this.destroyed){if(Ye(r)&&(r=this.findById(r)),!r){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:r});var i=r.getModel(),o=this.get("itemController");o.collapseCombo(r,n),i.collapsed=!0;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){var d=h.getModel(),v=d.isVEdge,p=d.size,g=p===void 0?1:p;if(!(h.isVisible()&&!v)){var y=h.getSource(),m=h.getTarget(),b=null,w;if(y.getModel().id===i.id||u.includes(y)&&!u.includes(m)?(b=m,w=!1):(m.getModel().id===i.id||!u.includes(y)&&u.includes(m))&&(b=y,w=!0),b){if(v){a.removeItem(h,!1);return}for(var x=b.getModel();!b.isVisible();){var E=x.parentId,_=x.comboId,S=E||_;if(b=a.findById(S),!b||!S)return;x=b.getModel()}var A=x.id,M=w?{source:A,target:i.id,size:g,isVEdge:!0}:{source:i.id,target:A,size:g,isVEdge:!0},C="".concat(M.source,"-").concat(M.target);if(c[C]){c[C].size+=g;return}c[C]=M}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:r})}},e.prototype.expandCombo=function(r,n){var a=this;if(n===void 0&&(n=!0),Ye(r)&&(r=this.findById(r)),!r||r.getType&&r.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:r});var i=r.getModel(),o=this.get("itemController");o.expandCombo(r,n),i.collapsed=!1;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){if(!(h.isVisible()&&!h.getModel().isVEdge)){var d=h.getSource(),v=h.getTarget(),p=d.get("id"),g=v.get("id"),y=null,m;if(p===i.id||u.includes(d)&&!u.includes(v)?(y=v,m=!1):g===i.id||!u.includes(d)&&u.includes(v)?(y=d,m=!0):u.includes(d)&&u.includes(v)&&d.isVisible()&&v.isVisible()&&h.show(),y){var b=h.getModel(),w=b.isVEdge,x=b.size,E=x===void 0?1:x;if(w){a.removeItem(h,!1);return}for(var _=y.getModel();!y.isVisible();){var S=_.parentId,A=_.comboId,M=S||A;if(y=a.findById(M),!y||!M)return;_=y.getModel()}for(var C=_.id,I=m?v:d,k=I.getModel();!I.isVisible();){var O=k.parentId,B=k.comboId,L=O||B;if(I=a.findById(L),!I||!L)return;if(k.comboId===i.id||k.parentId===i.id)break;k=I.getModel()}var z=k.id;if(C){var X=m?{source:C,target:z,isVEdge:!0,size:E}:{source:z,target:C,isVEdge:!0,size:E},R="".concat(X.source,"-").concat(X.target);if(c[R]){c[R].size+=E;return}c[R]=X}}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:r})},e.prototype.collapseExpandCombo=function(r,n){if(n===void 0&&(n=!0),Ye(r)&&(r=this.findById(r)),!(!r||r.getType&&r.getType()!=="combo")){for(var a=r.getModel(),i=this.findById(a.parentId);i;){var o=i.getModel();if(o.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),i=void 0;return}i=this.findById(o.parentId)}var s=a.collapsed;s?this.expandCombo(r,n):this.collapseCombo(r,n),this.updateCombo(r)}},e.prototype.getNeighbors=function(r,n){var a=r;return Ye(r)&&(a=this.findById(r)),a.getNeighbors(n)},e.prototype.getNodeDegree=function(r,n,a){n===void 0&&(n=void 0),a===void 0&&(a=!1);var i=r;Ye(r)&&(i=this.findById(r));var o=this.get("degrees");(!o||a)&&(o=yi(this.save()),this.set("degrees",o));var s=o[i.getID()],u=0;if(!s)return 0;switch(n){case"in":u=s.inDegree;break;case"out":u=s.outDegree;break;case"all":u=s;break;default:u=s.degree;break}return u},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(r,n,a){if(r===void 0&&(r="update"),a===void 0&&(a="undo"),!this.get("enabledStack")){console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !");return}var i=n?rr(n):{before:{},after:rr(this.save())};a==="redo"?this.redoStack.push({action:r,data:i}):this.undoStack.push({action:r,data:i}),this.emit("stackchange",{action:r,stackType:a,undoStack:this.undoStack,redoStack:this.redoStack})},e.prototype.getAdjMatrix=function(r,n){r===void 0&&(r=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix");return(!a||!r)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),a},e.prototype.getShortestPathMatrix=function(r,n){r===void 0&&(r=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix"),i=this.get("shortestPathMatrix");return(!a||!r)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),(!i||!r)&&(i=Of(this.save(),n),this.set("shortestPathMatrix",i)),i},e.prototype.on=function(r,n,a){return t.prototype.on.call(this,r,n,a)},e.prototype.destroy=function(){var r,n,a,i,o;this.emit("beforedestroy"),this.clear(),this.clearStack(),(r=this.get("itemController"))===null||r===void 0||r.destroy(),(n=this.get("modeController"))===null||n===void 0||n.destroy(),(a=this.get("viewController"))===null||a===void 0||a.destroy(),(i=this.get("stateController"))===null||i===void 0||i.destroy(),(o=this.get("canvas"))===null||o===void 0||o.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(r){if(!r.members||r.members.length<1){console.warn("Create hull failed! The members is empty.");return}var n=this.get("hullGroup"),a=this.get("hullMap");if(a||(a={},this.set("hullMap",a)),(!n||n.get("destroyed"))&&(n=this.get("group").addGroup({id:"hullGroup"}),n.toBack(),this.set("hullGroup",n)),a[r.id])return console.warn("Existed hull id."),a[r.id];var i=n.addGroup({id:"".concat(r.id,"-container")}),o=new x8(this,P(P({},r),{group:i})),s=o.id;return a[s]=o,o},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(r){return this.get("hullMap")[r]},e.prototype.removeHull=function(r){var n,a;Ye(r)?a=this.getHullById(r):a=r,(n=this.get("hullMap"))===null||n===void 0||delete n[a.id],a.destroy()},e.prototype.removeHulls=function(){var r=this.getHulls();!r||!Object.keys(r).length||(Object.keys(r).forEach(function(n){var a=r[n];a.destroy()}),this.set("hullMap",{}))},e}(KS);function J0(t){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J0(t)}var ws=eo,Rx="-shape",Ep="-label",bc=["startArrow","endArrow"],Fx={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},S8={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},wc={edge:S8,node:Fx,combo:Fx},eg="-label-bg",Uy={options:{labelCfg:{style:{fontFamily:ft.windowFontFamily}},descriptionCfg:{style:{fontFamily:ft.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(e){return{}},getOptions:function(e,r){return r==="move"||r!=null&&r.includes("bbox")?e:_r({},this.options,this.getCustomConfig(e)||{},e)},draw:function(e,r){r.shapeMap={},this.mergeStyle=this.getOptions(e);var n=this.drawShape(e,r);if(n.set("className",this.itemType+Rx),r.shapeMap[this.itemType+Rx]=n,e.label){var a=this.drawLabel(e,r);a.set("className",this.itemType+Ep),r.shapeMap[this.itemType+Ep]=a}return n},afterDraw:function(e,r,n){},drawShape:function(e,r){return null},drawLabel:function(e,r){var n=(this.mergeStyle||this.getOptions(e)||{}).labelCfg,a=n||{},i=this.getLabelStyle(e,a,r),o=i.rotate;delete i.rotate;var s=r.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(r.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""){var u=s.getBBox(),f=[1,0,0,0,1,0,0,0,1];if(i.rotateCenter)switch(i.rotateCenter){case"center":f=ws(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break;case"lefttop":f=ws(f,[["t",-i.x,-i.y],["r",o],["t",i.x,i.y]]);break;case"leftcenter":f=ws(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);break;default:f=ws(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break}else f=ws(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);s.setMatrix(f)}if(i.background){var l=this.drawLabelBg(e,r,s),c=this.itemType+eg;l.set("classname",c),r.shapeMap[c]=l,s.toFront()}return s},drawLabelBg:function(e,r,n){var a=this.options.labelCfg,i=Et({},a,e.labelCfg),o=this.getLabelBgStyleByPosition(n,i),s=r.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return r.shapeMap["text-bg-shape"]=s,s},getLabelStyleByPosition:function(e,r,n){return{text:e.label}},getLabelBgStyleByPosition:function(e,r){return{}},getLabelStyle:function(e,r,n){var a=this.getLabelStyleByPosition(e,r,n),i="".concat(this.itemType,"Label"),o=ft[i]?ft[i].style:null;return P(P(P({},o),a),r.style)},getShapeStyle:function(e){return e.style},update:function(e,r,n){this.updateShapeStyle(e,r,n),this.updateLabel(e,r,n)},updateShapeStyle:function(e,r,n){var a,i=r.getContainer(),o=r.getKeyShape(),s=Et({},o.attr(),e.style),u=function(c){var h,d=s[c];if(ln(d)){var v=((a=i.shapeMap)===null||a===void 0?void 0:a[c])||i.find(function(p){return p.get("name")===c});v==null||v.attr(d)}else o.attr((h={},h[c]=d,h))};for(var f in s)u(f)},updateLabel:function(e,r,n){var a,i,o=r.getContainer(),s=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,u=s===void 0?{}:s,f=this.itemType+Ep,l=o.shapeMap[f]||o.find(function(w){return w.get("className")===f}),c=this.itemType+eg,h=o.shapeMap[c]||o.find(function(w){return w.get("className")===c});if(l&&e.label===void 0&&(o.removeChild(l),delete o.shapeMap[f],h&&(o.removeChild(h),delete o.shapeMap[c])),e.label||e.label==="")if(l){(!n||n==="bbox|label"||this.itemType==="edge"&&n!=="style")&&(u=_r(u,e.labelCfg));var v=this.getLabelStyleByPosition(e,u,o),p=(a=e.labelCfg)===null||a===void 0?void 0:a.style,g=P(P({},v),p),y=g.rotate;if(delete g.rotate,!isNaN(y)&&y!==""){var m=[1,0,0,0,1,0,0,0,1];m=ws(m,[["t",-g.x,-g.y],["r",y],["t",g.x,g.y]]),g.matrix=m,l.attr(g)}else((i=l.getMatrix())===null||i===void 0?void 0:i[4])!==1&&l.resetMatrix(),l.attr(g);if(!h)g.background&&(h=this.drawLabelBg(e,o,l),h.set("classname",c),o.shapeMap[c]=h,l.toFront());else if(g.background){var b=this.getLabelBgStyleByPosition(l,u);h.attr(b)}else o.removeChild(h)}else{var d=this.drawLabel(e,o);d.set("className",f),o.shapeMap[f]=d}},afterUpdate:function(e,r){},setState:function(e,r,n){var a,i,o,s=n.get("keyShape");if(!(!s||s.destroyed)){var u=n.getType(),f=Qf(r)?e:"".concat(e,":").concat(r),l=this.getStateStyle(f,n),c=n.getStateStyle(f);if(!(!c&&!l)){var h=Et({},c||l),d=n.getContainer(),v={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(v.r=1,v.width=1,v.height=1),r){var p=function(L){var z,X=h[L];if(ln(X)&&!bc.includes(L)){var R=((o=d.shapeMap)===null||o===void 0?void 0:o[L])||d.find(function(V){return V.get("name")===L});R==null||R.attr(X)}else s.attr((z={},z[L]=X,z))};for(var g in h)p(g)}else{var y=sh(n.getCurrentStatesStyle()),m=n.getModel(),b=Et({},m.style,sh(n.getOriginStyle())),w=s.get("name"),x=s.attr(),E={};Object.keys(x).forEach(function(B){if(B!=="img"){var L=x[B];L&&J0(L)==="object"?E[B]=rr(L):E[B]=L}});var _={},S=function(L){var z=h[L];if(ln(z)&&!bc.includes(L)){var X=d.shapeMap[L]||d.find(function(he){return he.get("name")===L});if(X){var R=sh(X.attr());_e(z,function(he,ce){if(L===w&&E[ce]&&!v[ce]){delete E[ce];var le=b[L][ce]||wc[u][ce];s.attr(ce,le)}else if(R[ce]||R[ce]===0){delete R[ce];var ie=b[L][ce]||wc[u][ce];X.attr(ce,ie)}}),_[L]=R}}else if(E[L]&&!v[L]){delete E[L];var V=b[L]||(b[w]?b[w][L]:void 0)||wc[u][L];s.attr(L,V)}};for(var A in h)S(A);w?_[w]=E:Et(_,E);for(var g in y)if(!v[g]){var M=y[g];(!ln(M)||bc.includes(g))&&(w?(Et(b[w],(i={},i[g]=M,i)),delete b[g]):Et(b,(a={},a[g]=M,a)),delete y[g])}var C={};_r(C,b,_,y);var I=!1,k=function(L){var z,X,R=C[L];if(ln(R)&&!bc.includes(L)){var V=d.shapeMap[L]||d.find(function(ce){return ce.get("name")===L});V&&((V.get("type")==="text"||V.get("labelRelated"))&&(delete R.x,delete R.y,delete R.matrix),L===w&&(u==="combo"&&(delete R.r,delete R.width,delete R.height),I=!0),V.attr(R))}else if(!I){var he=R||wc[u][L];u==="combo"?w||s.attr((z={},z[L]=he,z)):s.attr((X={},X[L]=he,X))}};for(var O in C)k(O)}}}},getStateStyle:function(e,r){var n=r.getModel(),a=r.getType(),i=this.getOptions(n),o=i.stateStyles,s=i.style,u=s===void 0?{}:s,f=n.stateStyles?n.stateStyles[e]:o&&o[e];return a==="combo"?rr(f):Et({},u,f)},getControlPoints:function(e){return e.controlPoints},getAnchorPoints:function(e){var r,n,a=(e==null?void 0:e.anchorPoints)||((r=this.getCustomConfig(e))===null||r===void 0?void 0:r.anchorPoints)||((n=this.options)===null||n===void 0?void 0:n.anchorPoints);return a}},M8={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ft.nodeLabel.offset,getSize:function(e){var r,n=((r=this.mergeStyle)===null||r===void 0?void 0:r.size)||e.size||this.getOptions({}).size||ft.defaultNode.size;return bt(n)&&n.length===1&&(n=[n[0],n[0]]),bt(n)||(n=[n,n]),n},getLabelStyleByPosition:function(e,r){var n=r.maxLength,a=e.label;n&&(a=YA(a,n));var i=r.position||this.labelPosition;if(i==="center")return{x:0,y:0,text:a,textBaseline:"middle",textAlign:"center"};var o=r.offset;Zt(o)&&(o=this.offset);var s=this.getSize(e),u;switch(i){case"top":u={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=a,u},getLabelBgStyleByPosition:function(e,r){var n;if(!e)return{};var a=(n=r.style)===null||n===void 0?void 0:n.background;if(!a)return{};var i=e.getBBox(),o=jy(a.padding),s=i.width+o[1]+o[3],u=i.height+o[0]+o[2];return P(P({x:i.minX-o[3],y:i.minY-o[0]},a),{width:s,height:u})},drawShape:function(e,r){var n=this.shapeType,a=this.getShapeStyle(e),i=r.addShape(n,{attrs:a,draggable:!0,name:"node-shape"});return r.shapeMap["node-shape"]=i,i},updateLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=r.shapeMap["link-point-left"]||r.find(function(C){return C.get("className")==="link-point-left"}),i=r.shapeMap["link-point-right"]||r.find(function(C){return C.get("className")==="link-point-right"}),o=r.shapeMap["link-point-top"]||r.find(function(C){return C.get("className")==="link-point-top"}),s=r.shapeMap["link-point-bottom"]||r.find(function(C){return C.get("className")==="link-point-bottom"}),u;a&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),s&&!u&&(u=s.attr()),u||(u=n);var f=Et({},u,e.linkPoints),l=f.fill,c=f.stroke,h=f.lineWidth,d=f.size/2;d||(d=f.r);var v=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=v.left,g=v.right,y=v.top,m=v.bottom,b=this.getSize(e),w=b[0],x=b[1],E={r:d,fill:l,stroke:c,lineWidth:h};if(a)!p&&p!==void 0?(a.remove(),delete r.shapeMap["link-point-left"]):a.attr(P(P({},E),{x:-w/2,y:0}));else if(p){var _="link-point-left";r.shapeMap[_]=r.addShape("circle",{attrs:P(P({},E),{x:-w/2,y:0}),className:_,name:_,isAnchorPoint:!0})}if(i)!g&&g!==void 0&&(i.remove(),delete r.shapeMap["link-point-right"]),i.attr(P(P({},E),{x:w/2,y:0}));else if(g){var S="link-point-right";r.shapeMap[S]=r.addShape("circle",{attrs:P(P({},E),{x:w/2,y:0}),className:S,name:S,isAnchorPoint:!0})}if(o)!y&&y!==void 0&&(o.remove(),delete r.shapeMap["link-point-top"]),o.attr(P(P({},E),{x:0,y:-x/2}));else if(y){var A="link-point-top";r.shapeMap[A]=r.addShape("circle",{attrs:P(P({},E),{x:0,y:-x/2}),className:A,name:A,isAnchorPoint:!0})}if(s)!m&&m!==void 0?(s.remove(),delete r.shapeMap["link-point-bottom"]):s.attr(P(P({},E),{x:0,y:x/2}));else if(m){var M="link-point-bottom";r.shapeMap[M]=r.addShape("circle",{attrs:P(P({},E),{x:0,y:x/2}),className:M,name:M,isAnchorPoint:!0})}},updateShape:function(e,r,n,a,i){var o=r.get("keyShape");o.attr(P({},n)),this.updateLabel(e,r,i),a&&this.updateIcon(e,r)},updateIcon:function(e,r){var n=this,a=r.getContainer(),i=(this.mergeStyle||this.getOptions(e)).icon,o=e.icon?e.icon:{show:void 0,text:void 0},s=o.show,u=o.text,f=a.shapeMap["".concat(this.type,"-icon")]||a.find(function(y){return y.get("name")==="".concat(n.type,"-icon")});if(f)if(s||s===void 0){var l=Et({},f.attr(),i),c=l.width,h=c===void 0?20:c,d=l.height,v=d===void 0?20:d;(l.fontFamily==="iconfont"||l.hasOwnProperty("text"))&&(h=0,v=0),f.attr(P(P({},l),{x:-h/2,y:-v/2}))}else f.remove(),delete a.shapeMap["".concat(this.type,"-icon")];else if(s){var p="".concat(this.type,"-icon");if(u)a.shapeMap[p]=a.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{var h=i.width,v=i.height;a.shapeMap[p]=a.addShape("image",{attrs:P(P({},i),{x:-h/2,y:-v/2}),className:p,name:p})}var g=a.shapeMap["node-label"]||a.find(function(y){return y.get("name")==="node-label"});g&&g.toFront()}}},A8=P(P({},Uy),M8);mr.registerNode("single-node",A8);var xc="edge-shape";function C8(t){var e=t;return t==="start"?e="end":t==="end"&&(e="start"),e}var T8={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ft.defaultEdge.size,style:{x:0,y:0,stroke:ft.defaultEdge.style.stroke,lineAppendWidth:ft.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ft.edgeLabel.style.fill,fontSize:ft.edgeLabel.style.fontSize,fontFamily:ft.windowFontFamily}},stateStyles:P({},ft.edgeStateStyles)},getPath:function(e){var r=[];return _e(e,function(n,a){a===0?r.push(["M",n.x,n.y]):r.push(["L",n.x,n.y])}),r},getShapeStyle:function(e){var r=this.options.style,n={stroke:e.color},a=Et({},r,n,e.style),i=e.size||ft.defaultEdge.size;e=this.getPathPoints(e);var o=e.startPoint,s=e.endPoint,u=this.getControlPoints(e),f=[o];u&&(f=f.concat(u)),f.push(s);var l=this.getPath(f),c=Et({},ft.defaultEdge.style,{stroke:ft.defaultEdge.color,lineWidth:i,path:l},a);return c},updateShapeStyle:function(e,r,n){var a,i=r.getContainer(),o=((a=r.getKeyShape)===null||a===void 0?void 0:a.call(r))||i.shapeMap["edge-shape"],s=e.size;e=this.getPathPoints(e);var u=e.startPoint,f=e.endPoint,l=this.getControlPoints(e),c=[u];l&&(c=c.concat(l)),c.push(f);var h=o.attr(),d=e.style||{};d.stroke===void 0&&(d.stroke=e.color);var v=e.sourceNode,p=e.targetNode,g={radius:d.radius};l||(g={source:v,target:p,offset:d.offset,radius:d.radius});var y=this.getPath(c,g),m={};n==="move"?m={path:y}:(h.endArrow&&d.endArrow===!1&&(e.style.endArrow={path:""}),h.startArrow&&d.startArrow===!1&&(e.style.startArrow={path:""}),m=P({},e.style),m.lineWidth===void 0&&(m.lineWidth=(Ot(s)?s:s==null?void 0:s[0])||h.lineWidth),m.path===void 0&&(m.path=y),m.stroke===void 0&&(m.stroke=h.stroke||e.color)),o&&o.attr(m)},getLabelStyleByPosition:function(e,r,n){var a=r.position||this.labelPosition,i={},o=n==null?void 0:n.shapeMap[xc],s;a==="start"?s=0:a==="end"?s=1:s=.5;var u=r.refX||this.refX,f=r.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return i.x=e.startPoint.x+u,i.y=e.startPoint.y+f,i.text=e.label,i;var l;Zt(r.autoRotate)?l=this.labelAutoRotate:l=r.autoRotate;var c=XA(o,s,u,f,l);return i.x=c.x,i.y=c.y,i.rotate=c.rotate,i.textAlign=this._getTextAlign(a,c.angle),i.text=e.label,i},getLabelBgStyleByPosition:function(e,r){if(!e)return{};var n=e.getBBox(),a=r.style&&r.style.background;if(!a)return{};var i=a.padding,o=n.width+i[1]+i[3],s=n.height+i[0]+i[2],u=P(P({},a),{width:o,height:s,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]}),f;return Zt(r.autoRotate)?f=this.labelAutoRotate:f=r.autoRotate,f&&(u.matrix=e.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(e,r){var n="center";return r?(r=r%(Math.PI*2),e!=="center"&&(r>=0&&r<=Math.PI/2||r>=3/2*Math.PI&&r<2*Math.PI?n=e:n=C8(e)),n):e},getControlPoints:function(e){return e.controlPoints},getPathPoints:function(e){return e},drawShape:function(e,r){var n=this.getShapeStyle(e),a=r.addShape("path",{className:xc,name:xc,attrs:n});return r.shapeMap[xc]=a,a},drawLabel:function(e,r){var n=this.options.labelCfg,a=_r({},n,e.labelCfg),i=this.getLabelStyle(e,a,r),o=i.rotate;delete i.rotate;var s=r.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(r.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""&&s.rotateAtStart(o),i.background){var u=this.drawLabelBg(e,r,s,i,o),f=this.itemType+eg;u.set("classname",f),r.shapeMap[f]=u,s.toFront()}return s},drawLabelBg:function(e,r,n,a,i){var o=this.options.labelCfg,s=_r({},o,e.labelCfg),u=this.getLabelBgStyleByPosition(n,s),f=r.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return r.shapeMap["text-bg-shape"]=f,f}},I8=P(P({},Uy),T8);mr.registerEdge("single-edge",I8);mr.registerEdge("line",{getControlPoints:function(){}},"single-edge");mr.registerEdge("spline",{getPath:function(e){var r=qC(e);return r}},"single-edge");mr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(e){var r=e.startPoint,n=e.endPoint,a={x:(r.x+n.x)/2,y:(r.y+n.y)/2},i,o;if(e.controlPoints!==void 0){if(o=e.controlPoints[0],i=E0(r,o,n),r.x<=n.x&&r.y>n.y?this.clockwise=i.x>o.x?0:1:r.x<=n.x&&r.yo.x?1:0:r.x>n.x&&r.y<=n.y?this.clockwise=i.y0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o};Zi.detectConnectedComponents=eT;var tT=function(e){for(var r=e.nodes,n=r===void 0?[]:r,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=(0,JC.getNeighbors)(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=(0,aT.getNeighbors)(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),r&&n?(M=!1,C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!0)):r&&!n&&C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(r&&n===!1&&r.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=(0,nT.detectStrongConnectComponents)({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(r&&n&&r.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s};za.detectAllDirectedCycle=sT;var mU=function(e,r,n,a){return a===void 0&&(a=!0),r?sT(e,n,a):oT(e,n,a)};za.detectAllCycles=mU;var bU=yU;za.default=bU;var gu={};const uT=Ka(jP),el=Ka(u3);Object.defineProperty(gu,"__esModule",{value:!0});gu.default=void 0;var Bx=uT,wU=el,Gx=Wr,xU=function(e,r,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?(0,Ec.getNeighbors)(v,s,"target"):(0,Ec.getNeighbors)(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c};eu.findAllPath=CU;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var TU=IU(Ko);function IU(t){return t&&t.__esModule?t:{default:t}}var kU=function(e,r){for(var n=(0,TU.default)(e,r),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},NU=kU;tl.default=NU;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var OU=DU(Ko),LU=Wr;function DU(t){return t&&t.__esModule?t:{default:t}}var PU=function(e,r,n,a){r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=(0,LU.uniqueId)();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=(0,OU.default)(e,r),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=(0,VU.clone)(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=_p(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=_p(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},KU=ZU;kd.default=KU;var Nd={},Od={};Object.defineProperty(Od,"__esModule",{value:!0});Od.default=void 0;var QU=function(){function t(e){this.count=e.length,this.parent={};for(var r=0,n=e;r0&&(this.list[0]=r,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var r=this.list.length-1;return this.moveUp(r),!0}return!1},t.prototype.moveUp=function(e){for(var r=this.getParent(e);e&&e>0&&this.compareFn(this.list[r],this.list[e])>0;){var n=this.list[r];this.list[r]=this.list[e],this.list[e]=n,e=r,r=this.getParent(e)}},t.prototype.moveDown=function(e){var r,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(r=[this.list[n],this.list[e]],this.list[e]=r[0],this.list[n]=r[1],this.moveDown(n))},t}(),r$=t$;Ld.default=r$;Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var n$=pT(Od),a$=pT(Ld),Sp=Wr;function pT(t){return t&&t.__esModule?t:{default:t}}var i$=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return r?g.weight-y.weight:0},c=new a$.default(l);for((0,Sp.getEdgesByNodeId)(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),(0,Sp.getEdgesByNodeId)(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),(0,Sp.getEdgesByNodeId)(v,s).forEach(function(p){c.insert(p)})))}return n},Wx=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});r&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new n$.default(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},o$=function(e,r,n){var a={prim:i$,kruskal:Wx};return n?a[n](e,r):Wx(e,r)},s$=o$;Nd.default=s$;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=void 0;var u$=l$(pi),f$=Wr;function l$(t){return t&&t.__esModule?t:{default:t}}var c$=function(e,r,n){typeof r!="number"&&(r=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>r;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(r.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new No(p,m,In.VACANT_NODE_LABEL,_.edgeLabel,In.VACANT_NODE_LABEL));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new _c(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new _c(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=r.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(r.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:r.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=r.maxNodeNum)){var y=r.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=r.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(r.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:r.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*r)););if(g<2*r&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*r)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[r]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},C$=function(e,r,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=(0,Hx.default)(e,n),c=(0,Hx.default)(r,n),h=eE(e.nodes,l,n),d=eE(r.nodes,c,n),v=Qx(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=Qx(r.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;Jx(e.edges,s,p);var w=Jx(r.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,(0,qx.__spreadArray)((0,qx.__spreadArray)([],x,!1),[2],!1))),a||(a=i);var E=Kx(e,l,o,a),_=Kx(r,c,o,a),S=Math.min(100,f*(f-1)/2),A=S$(a,f,S,E,l),M=fh(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=(0,E$.default)(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=lh(Se,tt,o,s);X[te][N]=Fe})});var R=M$(X,z,L),V=R.structure,he=R.structureCountMap,ce=r.nodes[0],le=[],ie=(u=r.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;r.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=fh(Se,_,r,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=lh(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=fh(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=lh(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=wT(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:A$(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=(0,Zx.default)(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,xu=ge[Ur.id].inDegree,Eu=ge[Ur.id].outDegree,rn=Ur[o],ti=tE(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,_u=ti.minPatternNodeLabelInDegree,Su=ti.minPatternNodeLabelOutDegree,Mu=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},T$=C$;Pd.default=T$;(function(t){function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(w)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GADDI",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"breadthFirstSearch",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"depthFirstSearch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"detectCycle",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"dijkstra",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath}}),Object.defineProperty(t,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath}}),Object.defineProperty(t,"floydWarshall",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getAdjMatrix",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"getDegree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"getInDegree",{enumerable:!0,get:function(){return i.getInDegree}}),Object.defineProperty(t,"getNeighbors",{enumerable:!0,get:function(){return g.getNeighbors}}),Object.defineProperty(t,"getOutDegree",{enumerable:!0,get:function(){return i.getOutDegree}}),Object.defineProperty(t,"labelPropagation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"louvain",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"minimumSpanningTree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"pageRank",{enumerable:!0,get:function(){return v.default}});var r=b(Ko),n=b(Ad),a=b(Zi),i=m(pi),o=b(za),s=b(Td),u=b(gu),f=eu,l=b(tl),c=b(Id),h=b(kd),d=b(Nd),v=b(Dd),p=b(Pd),g=Wr;function y(w){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(y=function(S){return S?E:x})(w)}function m(w,x){if(w&&w.__esModule)return w;if(w===null||e(w)!=="object"&&typeof w!="function")return{default:w};var E=y(x);if(E&&E.has(w))return E.get(w);var _={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(A!=="default"&&Object.prototype.hasOwnProperty.call(w,A)){var M=S?Object.getOwnPropertyDescriptor(w,A):null;M&&(M.get||M.set)?Object.defineProperty(_,A,M):_[A]=w[A]}return _.default=w,E&&E.set(w,_),_}function b(w){return w&&w.__esModule?w:{default:w}}})(QC);function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}Object.defineProperty(Md,"__esModule",{value:!0});Md.default=void 0;var Mp=I$(QC),rE=Hi;function xT(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(xT=function(a){return a?r:e})(t)}function I$(t,e){if(t&&t.__esModule)return t;if(t===null||ig(t)!=="object"&&typeof t!="function")return{default:t};var r=xT(e);if(r&&r.has(t))return r.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var o=a?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}var Ap=typeof self<"u"?self:{};Ap.onmessage=function(t){var e=t.data,r=e._algorithmType,n=e.data;if(r){if(typeof Mp[r]=="function"){var a=Mp[r].apply(Mp,n);Ap.postMessage({_algorithmType:rE.MESSAGE.SUCCESS,data:a});return}Ap.postMessage({_algorithmType:rE.MESSAGE.FAILURE})}};var k$=null;Md.default=k$;Object.defineProperty(Sd,"__esModule",{value:!0});Sd.default=void 0;var N$=Hi,O$=L$(Md);function L$(t){return t&&t.__esModule?t:{default:t}}var D$=function(e){return function(){for(var r=[],n=0;n=t&&a<=t+r&&i>=e&&i<=e+n}function Uf(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},u={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a1&&(r*=Math.sqrt(d),n*=Math.sqrt(d));var v=r*r*(h*h)+n*n*(c*c),p=v?Math.sqrt((r*r*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*r*h/n:0,y=r?p*-n*c/r:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/r,(h-y)/n],x=[(-1*c-g)/r,(-1*h-y)/n],E=aE([1,0],w),_=aE(w,x);return og(w,x)<=-1&&(_=Math.PI),og(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:nE(t,[f,l])?0:r,ry:nE(t,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}var jh=Math.sin,Uh=Math.cos,Yy=Math.atan2,Mc=Math.PI;function MT(t,e,r,n,a,i,o){var s=e.stroke,u=e.lineWidth,f=r-a,l=n-i,c=Yy(l,f),h=new Ky({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Uh(Mc/6)+","+10*jh(Mc/6)+" L0,0 L"+10*Uh(Mc/6)+",-"+10*jh(Mc/6),stroke:s,lineWidth:u}});h.translate(a,i),h.rotateAtPoint(a,i,c),t.set(o?"startArrowShape":"endArrowShape",h)}function AT(t,e,r,n,a,i,o){var s=e.startArrow,u=e.endArrow,f=e.stroke,l=e.lineWidth,c=o?s:u,h=c.d,d=c.fill,v=c.stroke,p=c.lineWidth,g=Kr(c,["d","fill","stroke","lineWidth"]),y=r-a,m=n-i,b=Yy(m,y);h&&(a=a-Uh(b)*h,i=i-jh(b)*h);var w=new Ky({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:P(P({},g),{stroke:v||f,lineWidth:p||l,fill:d})});w.translate(a,i),w.rotateAtPoint(a,i,b),t.set(o?"startArrowShape":"endArrowShape",w)}function Go(t,e,r,n,a){var i=Yy(n-e,r-t);return{dx:Uh(i)*a,dy:jh(i)*a}}function qy(t,e,r,n,a,i){typeof e.startArrow=="object"?AT(t,e,r,n,a,i,!0):e.startArrow?MT(t,e,r,n,a,i,!0):t.set("startArrowShape",null)}function Hy(t,e,r,n,a,i){typeof e.endArrow=="object"?AT(t,e,r,n,a,i,!1):e.endArrow?MT(t,e,r,n,a,i,!1):t.set("startArrowShape",null)}var oE={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ru(t,e){var r=e.attr();for(var n in r){var a=r[n],i=oE[n]?oE[n]:n;i==="matrix"&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&t.setLineDash?bt(a)&&t.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=h9(t,e,a):i==="globalAlpha"&&(a=a*t.globalAlpha),t[i]=a)}}function sg(t,e,r){for(var n=0;nx?w:x,C=w>x?1:w/x,I=w>x?x/w:1;e.translate(m,b),e.rotate(S),e.scale(C,I),e.arc(0,0,M,E,_,1-A),e.scale(1/C,1/I),e.rotate(-S),e.translate(-m,-b)}break}case"Z":e.closePath();break}if(h==="Z")s=u;else{var k=c.length;s=[c[k-2],c[k-1]]}}}}function IT(t,e){var r=t.get("canvas");r&&(e==="remove"&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(r.refreshElement(t,e,r),r.get("autoDraw")&&r.draw())))}function g9(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var r=t.get("cacheCanvasBBox"),n=r&&!!(r.width&&r.height),a=t.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?e=i9(r,a):n?e=r:i&&(e=a)}return e}function y9(t){if(!t.length)return null;var e=[],r=[],n=[],a=[];return _e(t,function(i){var o=g9(i);o&&(e.push(o.minX),r.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:Ha(e),minY:Ha(r),maxX:qa(n),maxY:qa(a)}}function m9(t,e){return!t||!e||!Uf(t,e)?null:{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}}var kT=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(r){IT(this,r)},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(r,n){n&&(r.save(),ru(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},e.prototype.cacheCanvasBBox=function(){var r=this.cfg.children,n=[],a=[];_e(r,function(h){var d=h.cfg.cacheCanvasBBox;d&&h.cfg.isInView&&(n.push(d.minX,d.maxX),a.push(d.minY,d.maxY))});var i=null;if(n.length){var o=Ha(n),s=qa(n),u=Ha(a),f=qa(a);i={minX:o,minY:u,x:o,y:u,maxX:s,maxY:f,width:s-o,height:f-u};var l=this.cfg.canvas;if(l){var c=l.getViewRange();this.set("isInView",Uf(i,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(r,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(r.save(),ru(r,this),this._applyClip(r,this.getClip()),sg(r,a,n),r.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(xC),Ea=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return kT},e.prototype.onCanvasChange=function(r){IT(this,r)},e.prototype.calculateBBox=function(){var r=this.get("type"),n=this.getHitLineWidth(),a=SC(r),i=a(this),o=n/2,s=i.x-o,u=i.y-o,f=i.x+i.width+o,l=i.y+i.height+o;return{x:s,minX:s,y:u,minY:u,width:i.width+n,height:i.height+n,maxX:f,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(r,n){n&&(r.save(),ru(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},e.prototype.draw=function(r,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!Uf(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}r.save(),ru(r,this),this._applyClip(r,a),this.drawPath(r),r.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var r=this.cfg.canvas;return r?r.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var r=this.getCanvasViewBox();if(r){var n=this.getCanvasBBox(),a=Uf(n,r);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(r){this.createPath(r),this.strokeAndFill(r),this.afterDrawPath(r)},e.prototype.fill=function(r){r.fill()},e.prototype.stroke=function(r){r.stroke()},e.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!Zt(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(r.globalAlpha=o),this.stroke(r)),this.afterDrawPath(r)},e.prototype.createPath=function(r){},e.prototype.afterDrawPath=function(r){},e.prototype.isInShape=function(r,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(r,n,a,i,o)},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var r=this.attrs;return r.lineWidth+r.lineAppendWidth},e}(EC),b9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.r,c=o/2,h=ET(u,f,r,n);return i&&a?h<=l+c:i?h<=l:a?h>=l-c&&h<=l+c:!1},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.r;r.beginPath(),r.arc(a,i,o,0,Math.PI*2,!1),r.closePath()},e}(Ea);function Ac(t,e,r,n){return t/(r*r)+e/(n*n)}var w9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=o/2,f=s.x,l=s.y,c=s.rx,h=s.ry,d=(r-f)*(r-f),v=(n-l)*(n-l);return i&&a?Ac(d,v,c+u,h+u)<=1:i?Ac(d,v,c,h)<=1:a?Ac(d,v,c-u,h-u)>=1&&Ac(d,v,c+u,h+u)<=1:!1},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(r.beginPath(),r.ellipse)r.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var u=o>s?o:s,f=o>s?1:o/s,l=o>s?s/o:1;r.save(),r.translate(a,i),r.scale(f,l),r.arc(0,0,u,0,Math.PI*2),r.restore(),r.closePath()}},e}(Ea);function sE(t){return t instanceof HTMLElement&&Ye(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS"}var x9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(r){this._setImage(r.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var r=this.get("canvas");r?r.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(r){var n=this,a=this.attrs;if(Ye(r)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=r,this.set("loading",!0)}else r instanceof Image?(a.width||(a.width=r.width),a.height||(a.height=r.height)):sE(r)&&(a.width||(a.width=Number(r.getAttribute("width"))),a.height||(a.height,Number(r.getAttribute("height"))))},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),r==="img"&&this._setImage(n)},e.prototype.createPath=function(r){if(this.get("loading")){this.set("toDraw",!0),this.set("context",r);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.sx,f=n.sy,l=n.swidth,c=n.sheight,h=n.img;(h instanceof Image||sE(h))&&(!Zt(u)&&!Zt(f)&&!Zt(l)&&!Zt(c)?r.drawImage(h,u,f,l,c,a,i,o,s):r.drawImage(h,a,i,o,s))},e}(Ea);function ji(t,e,r,n,a,i,o){var s=Math.min(t,r),u=Math.max(t,r),f=Math.min(e,n),l=Math.max(e,n),c=a/2;return i>=s-c&&i<=u+c&&o>=f-c&&o<=l+c?cn.pointToLine(t,e,r,n,i,o)<=a/2:!1}var E9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(r){this.setArrow()},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),this.setArrow()},e.prototype.setArrow=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2,s=r.startArrow,u=r.endArrow;s&&qy(this,r,i,o,n,a),u&&Hy(this,r,n,a,i,o)},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),u=s.x1,f=s.y1,l=s.x2,c=s.y2;return ji(u,f,l,c,o,r,n)},e.prototype.createPath=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.startArrow,f=n.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};u&&u.d&&(l=Go(a,i,o,s,n.startArrow.d)),f&&f.d&&(c=Go(a,i,o,s,n.endArrow.d)),r.beginPath(),r.moveTo(a+l.dx,i+l.dy),r.lineTo(o-c.dx,s-c.dy)},e.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},e.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,r)},e}(Ea),_9={circle:function(t,e,r){return[["M",t-r,e],["A",r,r,0,1,0,t+r,e],["A",r,r,0,1,0,t-r,e]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["Z"]]},"triangle-down":function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}},S9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initAttrs=function(r){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),["symbol","x","y","r","radius"].indexOf(r)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(r){return Zt(r.r)?r.radius:r.r},e.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.symbol||"circle",o=this._getR(r),s,u;if(Tr(i))s=i,u=s(n,a,o),u=RC(u);else{if(s=e.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;u=s(n,a,o)}return u},e.prototype.createPath=function(r){var n=this._getPath(),a=this.get("paramsCache");TT(this,r,{path:n},a)},e.Symbols=_9,e}(Ea);function NT(t,e,r){var n=LC();return t.createPath(n),n.isPointInPath(e,r)}var M9=1e-6;function Cp(t){return Math.abs(t)0!=Cp(s[1]-r)>0&&Cp(e-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function cf(t,e,r,n,a,i,o,s){var u=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2);if(ua)return!1;var f={x:t+r*Math.cos(u),y:e+r*Math.sin(u)};return ET(f.x,f.y,o,s)<=i/2}var C9=eo;function T9(t){for(var e=!1,r=t.length,n=0;nb?m:b,A=m>b?1:m/b,M=m>b?b/m:1,C=C9(null,[["t",-g,-y],["r",-E],["s",1/A,1/M]]);bd(_,_,C),i=cf(0,0,S,w,x,e,_[0],_[1]);break}if(i)break}}return i}function k9(t){for(var e=t.length,r=[],n=[],a=[],i=0;i0&&n.push(a),{polygons:r,polylines:n}}const Cc=P({hasArc:T9,extractPolygons:k9,isPointInStroke:I9},Tz);function uE(t,e,r){for(var n=!1,a=0;a=l[0]&&r<=l[1]&&(a=(r-l[0])/(l[1]-l[0]),i=c)});var s=o[i];if(Zt(s)||Zt(i))return null;var u=s.length,f=o[i+1];return xf.pointAt(s[u-2],s[u-1],f[1],f[2],f[3],f[4],f[5],f[6],a)},e.prototype._calculateCurve=function(){var r=this.attr().path;this.set("curve",Cc.pathToCurve(r))},e.prototype._setTcache=function(){var r=0,n=0,a=[],i,o,s,u,f=this.get("curve");if(f){if(_e(f,function(l,c){s=f[c+1],u=l.length,s&&(r+=xf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",r),r===0){this.set("tCache",[]);return}_e(f,function(l,c){s=f[c+1],u=l.length,s&&(i=[],i[0]=n/r,o=xf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/r,a.push(i))}),this.set("tCache",a)}},e.prototype.getStartTangent=function(){var r=this.getSegments(),n;if(r.length>1){var a=r[0].currentPoint,i=r[1].currentPoint,o=r[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},e.prototype.getEndTangent=function(){var r=this.getSegments(),n=r.length,a;if(n>1){var i=r[n-2].currentPoint,o=r[n-1].currentPoint,s=r[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},e}(Ea);function LT(t,e,r,n,a){var i=t.length;if(i<2)return!1;for(var o=0;o=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(r,function(u,f){r[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],r[f+1][0],r[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},e.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},e}(Ea);function L9(t,e,r,n,a,i,o){var s=a/2;return Ro(t-s,e-s,r,a,i,o)||Ro(t+r-s,e-s,a,n,i,o)||Ro(t+s,e+n-s,r,a,i,o)||Ro(t-s,e+s,a,n,i,o)}function D9(t,e,r,n,a,i,o,s){return ji(t+a,e,t+r-a,e,i,o,s)||ji(t+r,e+a,t+r,e+n-a,i,o,s)||ji(t+r-a,e+n,t+a,e+n,i,o,s)||ji(t,e+n-a,t,e+a,i,o,s)||cf(t+r-a,e+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||cf(t+r-a,e+n-a,a,0,.5*Math.PI,i,o,s)||cf(t+a,e+n-a,a,.5*Math.PI,Math.PI,i,o,s)||cf(t+a,e+a,a,Math.PI,1.5*Math.PI,i,o,s)}var P9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.width,c=s.height,h=s.radius;if(h){var v=!1;return a&&(v=D9(u,f,l,c,h,o,r,n)),!v&&i&&(v=NT(this,r,n)),v}else{var d=o/2;if(i&&a)return Ro(u-d,f-d,l+d,c+d,r,n);if(i)return Ro(u,f,l,c,r,n);if(a)return L9(u,f,l,c,o,r,n)}},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(r.beginPath(),u===0)r.rect(a,i,o,s);else{var f=d9(u),l=f[0],c=f[1],h=f[2],d=f[3];r.moveTo(a+l,i),r.lineTo(a+o-c,i),c!==0&&r.arc(a+o-c,i+c,c,-Math.PI/2,0),r.lineTo(a+o,i+s-h),h!==0&&r.arc(a+o-h,i+s-h,h,0,Math.PI/2),r.lineTo(a+d,i+s),d!==0&&r.arc(a+d,i+s-d,d,Math.PI/2,Math.PI),r.lineTo(a,i+l),l!==0&&r.arc(a+l,i+l,l,Math.PI,Math.PI*1.5),r.closePath()}},e}(Ea),R9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(r){this._assembleFont(),r.text&&this._setText(r.text)},e.prototype._assembleFont=function(){var r=this.attrs;r.font=PC(r)},e.prototype._setText=function(r){var n=null;Ye(r)&&r.indexOf(` +`)!==-1&&(n=r.split(` +`)),this.set("textArr",n)},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),r.startsWith("font")&&this._assembleFont(),r==="text"&&this._setText(n)},e.prototype._getSpaceingY=function(){var r=this.attrs,n=r.lineHeight,a=r.fontSize*1;return n?n-a:a*.14},e.prototype._drawTextArr=function(r,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,u=i.y,f=i.fontSize*1,l=this._getSpaceingY(),c=DC(i.text,i.fontSize,i.lineHeight),h;_e(n,function(d,v){h=u+v*(l+f)-c+f,o==="middle"&&(h+=c-f-(c-f)/2),o==="top"&&(h+=c-f),Zt(d)||(a?r.fillText(d,s,h):r.strokeText(d,s,h))})},e.prototype._drawText=function(r,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(r,s,n);else{var u=a.text;Zt(u)||(n?r.fillText(u,i,o):r.strokeText(u,i,o))}},e.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(r.globalAlpha=i),this.stroke(r)),this.isFill()&&(!Zt(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.afterDrawPath(r)},e.prototype.fill=function(r){this._drawText(r,!0)},e.prototype.stroke=function(r){this._drawText(r,!1)},e}(Ea);function F9(t,e){if(e){var r=nC(e);return Do(r,t)}return t}function DT(t,e,r){var n=t.getTotalMatrix();if(n){var a=F9([e,r,1],n),i=a[0],o=a[1];return[i,o]}return[e,r]}function fE(t,e,r){if(t.isCanvas&&t.isCanvas())return!0;if(!P0(t)||t.cfg.isInView===!1)return!1;if(t.cfg.clipShape){var n=DT(t,e,r),a=n[0],i=n[1];if(t.isClipped(a,i))return!1}var o=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&r>=o.minY&&r<=o.maxY}function PT(t,e,r){if(!fE(t,e,r))return null;for(var n=null,a=t.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=PT(s,e,r);else if(fE(s,e,r)){var u=s,f=DT(s,e,r),l=f[0],c=f[1];u.isInShape(l,c)&&(n=s)}if(n)break}return n}var qu=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.renderer="canvas",r.autoDraw=!0,r.localRefresh=!0,r.refreshElements=[],r.clipView=!0,r.quickHit=!1,r},e.prototype.onCanvasChange=function(r){(r==="attr"||r==="sort"||r==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return kT},e.prototype.getPixelRatio=function(){var r=this.get("pixelRatio")||a9();return r>=1?Math.ceil(r):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var r=document.createElement("canvas"),n=r.getContext("2d");return this.set("context",n),r},e.prototype.setDOMSize=function(r,n){t.prototype.setDOMSize.call(this,r,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*r,i.height=o*n,o>1&&a.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var r=this.get("context"),n=this.get("el");r.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(r,n){var a;return this.get("quickHit")?a=PT(this,r,n):a=t.prototype.getShape.call(this,r,n,null),a},e.prototype._getRefreshRegion=function(){var r=this.get("refreshElements"),n=this.getViewRange(),a;if(r.length&&r[0]===this)a=n;else if(a=y9(r),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=m9(a,n))}return a},e.prototype.refreshElement=function(r){var n=this.get("refreshElements");n.push(r)},e.prototype._clearFrame=function(){var r=this.get("drawFrame");r&&(VS(r),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var r=this.get("drawFrame");this.get("autoDraw")&&r||this._startDraw()},e.prototype._drawAll=function(){var r=this.get("context"),n=this.get("el"),a=this.getChildren();r.clearRect(0,0,n.width,n.height),ru(r,this),sg(r,a),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var r=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(r.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.save(),r.beginPath(),r.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.clip(),ru(r,this),v9(this,a,i),sg(r,a,i),r.restore()):n.length&&CT(n),_e(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var r=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=WS(function(){r.get("localRefresh")?r._drawRegion():r._drawAll(),r.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var r=this.get("el");r.width=0,r.height=0,r.parentNode.removeChild(r)},e}(wC),fg={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ar={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function ra(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function RT(t){var e=fg[t.type],r=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var n=ra(e);if(t.get("id")&&(n.id=t.get("id")),t.set("el",n),t.set("attrs",{}),r){var a=r.get("el");a||(a=r.createDom(),r.set("el",a)),a.appendChild(n)}return n}function FT(t,e){var r=t.get("el"),n=ZS(r.children).sort(e),a=document.createDocumentFragment();n.forEach(function(i){a.appendChild(i)}),r.appendChild(a)}function B9(t,e){var r=t.parentNode,n=Array.from(r.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),a=n[e],i=n.indexOf(t);if(a){if(i>e)r.insertBefore(t,a);else if(i0&&(n?"stroke"in a?this._setColor(r,"stroke",s):"strokeStyle"in a&&this._setColor(r,"stroke",u):this._setColor(r,"stroke",s||u),l&&h.setAttribute(ar.strokeOpacity,l),c&&h.setAttribute(ar.lineWidth,c))},e.prototype._setColor=function(r,n,a){var i=this.get("el");if(!a){i.setAttribute(ar[n],"none");return}if(a=a.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(a)){var o=r.find("gradient",a);o||(o=r.addGradient(a)),i.setAttribute(ar[n],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(a)){var o=r.find("pattern",a);o||(o=r.addPattern(a)),i.setAttribute(ar[n],"url(#"+o+")")}else i.setAttribute(ar[n],a)},e.prototype.shadow=function(r,n){var a=this.attr(),i=n||a,o=i.shadowOffsetX,s=i.shadowOffsetY,u=i.shadowBlur,f=i.shadowColor;(o||s||u||f)&&G9(this,r)},e.prototype.transform=function(r){var n=this.attr(),a=(r||n).matrix;a&&al(this)},e.prototype.isInShape=function(r,n){return this.isPointInPath(r,n)},e.prototype.isPointInPath=function(r,n){var a=this.get("el"),i=this.get("canvas"),o=i.get("el").getBoundingClientRect(),s=r+o.left,u=n+o.top,f=document.elementFromPoint(s,u);return!!(f&&f.isEqualNode(a))},e.prototype.getHitLineWidth=function(){var r=this.attrs,n=r.lineWidth,a=r.lineAppendWidth;return this.isStroke()?n+a:0},e}(EC),z9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="circle",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,r:0})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),j9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dom",r.canFill=!1,r.canStroke=!1,r}return e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");if(_e(n||a,function(f,l){ar[l]&&i.setAttribute(ar[l],f)}),typeof a.html=="function"){var o=a.html.call(this,a);if(o instanceof Element||o instanceof HTMLDocument){for(var s=i.childNodes,u=s.length-1;u>=0;u--)i.removeChild(s[u]);i.appendChild(o)}else i.innerHTML=o}else i.innerHTML=a.html},e}(aa),U9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="ellipse",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),$9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="image",r.canFill=!1,r.canStroke=!1,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){u==="img"?a._setImage(i.img):ar[u]&&o.setAttribute(ar[u],s)})},e.prototype.setAttr=function(r,n){this.attrs[r]=n,r==="img"&&this._setImage(n)},e.prototype._setImage=function(r){var n=this.attr(),a=this.get("el");if(Ye(r))a.setAttribute("href",r);else if(r instanceof window.Image)n.width||(a.setAttribute("width",r.width),this.attr("width",r.width)),n.height||(a.setAttribute("height",r.height),this.attr("height",r.height)),a.setAttribute("href",r.src);else if(r instanceof HTMLElement&&Ye(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS")a.setAttribute("href",r.toDataURL());else if(r instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+r.width),i.setAttribute("height",""+r.height),i.getContext("2d").putImageData(r,0,0),n.width||(a.setAttribute("width",""+r.width),this.attr("width",r.width)),n.height||(a.setAttribute("height",""+r.height),this.attr("height",r.height)),a.setAttribute("href",i.toDataURL())}},e}(aa),X9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="line",r.canFill=!1,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var u=gn(o)?r.addArrow(a,ar[s]):r.getDefaultArrow(a,ar[s]);i.setAttribute(ar[s],"url(#"+u+")")}else i.removeAttribute(ar[s]);else ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,r)},e}(aa),Tc={circle:function(t,e,r){return[["M",t,e],["m",-r,0],["a",r,r,0,1,0,r*2,0],["a",r,r,0,1,0,-r*2,0]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["z"]]},triangleDown:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}};const lE={get:function(t){return Tc[t]},register:function(t,e){Tc[t]=e},remove:function(t){delete Tc[t]},getAll:function(){return Tc}};var W9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="marker",r.canFill=!0,r.canStroke=!0,r}return e.prototype.createPath=function(r){var n=this.get("el");n.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var r=this._getPath();return bt(r)?r.map(function(n){return n.join(" ")}).join(""):r},e.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.r||r.radius,o=r.symbol||"circle",s;return Tr(o)?s=o:s=lE.get(o),s?s(n,a,i):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=lE,e}(aa),V9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="path",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){if(u==="path"&&bt(s))o.setAttribute("d",a._formatPath(s));else if(u==="startArrow"||u==="endArrow")if(s){var f=gn(s)?r.addArrow(i,ar[u]):r.getDefaultArrow(i,ar[u]);o.setAttribute(ar[u],"url(#"+f+")")}else o.removeAttribute(ar[u]);else ar[u]&&o.setAttribute(ar[u],s)})},e.prototype._formatPath=function(r){var n=r.map(function(a){return a.join(" ")}).join("");return~n.indexOf("NaN")?"":n},e.prototype.getTotalLength=function(){var r=this.get("el");return r?r.getTotalLength():null},e.prototype.getPoint=function(r){var n=this.get("el"),a=this.getTotalLength();if(a===0)return null;var i=n?n.getPointAtLength(r*a):null;return i?{x:i.x,y:i.y}:null},e}(aa),Y9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="polygon",r.canFill=!0,r.canStroke=!0,r}return e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),q9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="polyline",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),["points"].indexOf(r)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var r=this.attr().points,n=this.get("totalLength");return Zt(n)?(this.set("totalLength",OC.length(r)),this.get("totalLength")):n},e.prototype.getPoint=function(r){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return _e(a,function(s,u){r>=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(r,function(u,f){r[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],r[f+1][0],r[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},e.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},e}(aa);function H9(t){var e=0,r=0,n=0,a=0;return bt(t)?t.length===1?e=r=n=a=t[0]:t.length===2?(e=n=t[0],r=a=t[1]):t.length===3?(e=t[0],r=a=t[1],n=t[2]):(e=t[0],r=t[1],n=t[2],a=t[3]):e=r=n=a=t,{r1:e,r2:r,r3:n,r4:a}}var Z9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="rect",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];_e(n||i,function(f,l){u.indexOf(l)!==-1&&!s?(o.setAttribute("d",a._assembleRect(i)),s=!0):u.indexOf(l)===-1&&ar[l]&&o.setAttribute(ar[l],f)})},e.prototype._assembleRect=function(r){var n=r.x,a=r.y,i=r.width,o=r.height,s=r.radius;if(!s)return"M "+n+","+a+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=H9(s);bt(s)?s.length===1?u.r1=u.r2=u.r3=u.r4=s[0]:s.length===2?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):s.length===3?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var f=[["M "+(n+u.r1)+","+a],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return f.join(" ")},e}(aa),cE=.3,K9={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Q9={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},J9={left:"left",start:"left",center:"middle",right:"end",end:"end"},e7=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="text",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");this._setFont(),_e(n||i,function(s,u){u==="text"?a._setText(""+s):u==="matrix"&&s?al(a):ar[u]&&o.setAttribute(ar[u],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var r=this.get("el"),n=this.attr(),a=n.textBaseline,i=n.textAlign,o=rC();o&&o.name==="firefox"?r.setAttribute("dominant-baseline",Q9[a]||"alphabetic"):r.setAttribute("alignment-baseline",K9[a]||"baseline"),r.setAttribute("text-anchor",J9[i]||"left")},e.prototype._setText=function(r){var n=this.get("el"),a=this.attr(),i=a.x,o=a.textBaseline,s=o===void 0?"bottom":o;if(!r)n.innerHTML="";else if(~r.indexOf(` +`)){var u=r.split(` +`),f=u.length-1,l="";_e(u,function(c,h){h===0?s==="alphabetic"?l+=''+c+"":s==="top"?l+=''+c+"":s==="middle"?l+=''+c+"":s==="bottom"?l+=''+c+"":s==="hanging"&&(l+=''+c+""):l+=''+c+""}),n.innerHTML=l}else n.innerHTML=r},e}(aa),t7=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r7=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n7=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function jT(t){var e=t.match(n7);if(!e)return"";var r="";return e.sort(function(n,a){return n=n.split(":"),a=a.split(":"),Number(n[0])-Number(a[0])}),_e(e,function(n){n=n.split(":"),r+=''}),r}function a7(t,e){var r=t7.exec(t),n=gd(yd(parseFloat(r[1])),Math.PI*2),a=r[2],i,o;n>=0&&n<.5*Math.PI?(i={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=n&&n`;r.innerHTML=n},t}(),hE=function(){function t(e,r){this.cfg={};var n=ra("marker"),a=Ji("marker_");n.setAttribute("id",a);var i=ra("path");i.setAttribute("stroke",e.stroke||"none"),i.setAttribute("fill",e.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=a;var o=e[r==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(r,i):(this.cfg=o,this._setMarker(e.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(e,r){var n=this.el;r.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(e,r){var n=this.el,a=this.cfg.path,i=this.cfg.d;bt(a)&&(a=a.map(function(o){return o.join(" ")}).join("")),r.setAttribute("d",a),n.appendChild(r),i&&n.setAttribute("refX",""+i/e)},t.prototype.update=function(e){var r=this.child;r.attr?r.attr("fill",e):r.setAttribute("fill",e)},t}(),l7=function(){function t(e){this.type="clip",this.cfg={};var r=ra("clipPath");this.el=r,this.id=Ji("clip_"),r.id=this.id;var n=e.cfg.el;return r.appendChild(n),this.cfg=e,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},t}(),c7=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,h7=function(){function t(e){this.cfg={};var r=ra("pattern");r.setAttribute("patternUnits","userSpaceOnUse");var n=ra("image");r.appendChild(n);var a=Ji("pattern_");r.id=a,this.el=r,this.id=a,this.cfg=e;var i=c7.exec(e),o=i[2];n.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function u(){r.setAttribute("width",""+s.width),r.setAttribute("height",""+s.height)}return s.complete?u():(s.onload=u,s.src=s.src),this}return t.prototype.match=function(e,r){return this.cfg===r},t}(),d7=function(){function t(e){var r=ra("defs"),n=Ji("defs_");r.id=n,e.appendChild(r),this.children=[],this.defaultArrow={},this.el=r,this.canvas=e}return t.prototype.find=function(e,r){for(var n=this.children,a=null,i=0;i]*>/,lg={tr:document.createElement("tbody"),tbody:hf,thead:hf,tfoot:hf,td:Ip,th:Ip,"*":document.createElement("div")}}function cg(t){hf||v7();var e=UT.test(t)&&RegExp.$1;(!e||!(e in lg))&&(e="*");var r=lg[e];t=typeof t=="string"?t.replace(/(^\s*)|(\s*$)/g,""):t,r.innerHTML=""+t;var n=r.childNodes[0];return n&&r.contains(n)&&r.removeChild(n),n}function Hu(t,e){if(t)for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return t}var $T={exports:{}},p7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},XT={exports:{}},g7=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},y7=g7,m7=Array.prototype.concat,b7=Array.prototype.slice,dE=XT.exports=function(e){for(var r=[],n=0,a=e.length;n=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};$n.to.keyword=function(t){return VT[t.slice(0,3)]};function Vi(t,e,r){return Math.min(Math.max(e,t),r)}function kc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var x7=$T.exports,YT={exports:{}},E7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},zo=E7,qT={};for(var Np in zo)zo.hasOwnProperty(Np)&&(qT[zo[Np]]=Np);var mt=YT.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Tn in mt)if(mt.hasOwnProperty(Tn)){if(!("channels"in mt[Tn]))throw new Error("missing channels property: "+Tn);if(!("labels"in mt[Tn]))throw new Error("missing channel labels property: "+Tn);if(mt[Tn].labels.length!==mt[Tn].channels)throw new Error("channel and label counts mismatch: "+Tn);var _7=mt[Tn].channels,S7=mt[Tn].labels;delete mt[Tn].channels,delete mt[Tn].labels,Object.defineProperty(mt[Tn],"channels",{value:_7}),Object.defineProperty(mt[Tn],"labels",{value:S7})}mt.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s,u,f;return i===a?s=0:e===i?s=(r-n)/o:r===i?s=2+(n-e)/o:n===i&&(s=4+(e-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),f=(a+i)/2,i===a?u=0:f<=.5?u=o/(i+a):u=o/(2-i-a),[s,u*100,f*100]};mt.rgb.hsv=function(t){var e,r,n,a,i,o=t[0]/255,s=t[1]/255,u=t[2]/255,f=Math.max(o,s,u),l=f-Math.min(o,s,u),c=function(h){return(f-h)/6/l+1/2};return l===0?a=i=0:(i=l/f,e=c(o),r=c(s),n=c(u),o===f?a=n-r:s===f?a=1/3+e-n:u===f&&(a=2/3+r-e),a<0?a+=1:a>1&&(a-=1)),[a*360,i*100,f*100]};mt.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],a=mt.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[a,i*100,n*100]};mt.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a,i,o,s;return s=Math.min(1-e,1-r,1-n),a=(1-e-s)/(1-s)||0,i=(1-r-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[a*100,i*100,o*100,s*100]};function M7(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}mt.rgb.keyword=function(t){var e=qT[t];if(e)return e;var r=1/0,n;for(var a in zo)if(zo.hasOwnProperty(a)){var i=zo[a],o=M7(t,i);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=e*.4124+r*.3576+n*.1805,i=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[a*100,i*100,o*100]};mt.rgb.lab=function(t){var e=mt.rgb.xyz(t),r=e[0],n=e[1],a=e[2],i,o,s;return r/=95.047,n/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=116*n-16,o=500*(r-n),s=200*(n-a),[i,o,s]};mt.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,a,i,o,s,u;if(r===0)return u=n*255,[u,u,u];n<.5?i=n*(1+r):i=n+r-n*r,a=2*n-i,s=[0,0,0];for(var f=0;f<3;f++)o=e+1/3*-(f-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(i-a)*6*o:2*o<1?u=i:3*o<2?u=a+(i-a)*(2/3-o)*6:u=a,s[f]=u*255;return s};mt.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=r,i=Math.max(n,.01),o,s;return n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i,s=(n+r)/2,o=n===0?2*a/(i+a):2*r/(n+r),[e,o*100,s*100]};mt.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};mt.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=Math.max(n,.01),i,o,s;return s=(2-r)*n,i=(2-r)*a,o=r*a,o/=i<=1?i:2-i,o=o||0,s/=2,[e,o*100,s*100]};mt.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,a=r+n,i,o,s,u;a>1&&(r/=a,n/=a),i=Math.floor(6*e),o=1-n,s=6*e-i,i&1&&(s=1-s),u=r+s*(o-r);var f,l,c;switch(i){default:case 6:case 0:f=o,l=u,c=r;break;case 1:f=u,l=o,c=r;break;case 2:f=r,l=o,c=u;break;case 3:f=r,l=u,c=o;break;case 4:f=u,l=r,c=o;break;case 5:f=o,l=r,c=u;break}return[f*255,l*255,c*255]};mt.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,a=t[3]/100,i,o,s;return i=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,r*(1-a)+a),s=1-Math.min(1,n*(1-a)+a),[i*255,o*255,s*255]};mt.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,a,i,o;return a=e*3.2406+r*-1.5372+n*-.4986,i=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[a*255,i*255,o*255]};mt.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=116*r-16,i=500*(e-r),o=200*(r-n),[a,i,o]};mt.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;i=(e+16)/116,a=r/500+i,o=i-n/200;var s=Math.pow(i,3),u=Math.pow(a,3),f=Math.pow(o,3);return i=s>.008856?s:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=f>.008856?f:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};mt.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return a=Math.atan2(n,r),i=a*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(r*r+n*n),[e,o,i]};mt.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return o=n/360*2*Math.PI,a=r*Math.cos(o),i=r*Math.sin(o),[e,a,i]};mt.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],a=1 in arguments?arguments[1]:mt.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return a===2&&(i+=60),i};mt.hsv.ansi16=function(t){return mt.rgb.ansi16(mt.hsv.rgb(t),t[2])};mt.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return a};mt.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,a=(e>>1&1)*r*255,i=(e>>2&1)*r*255;return[n,a,i]};mt.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,a=Math.floor((r=t%36)/6)/5*255,i=r%6/5*255;return[n,a,i]};mt.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};mt.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(s){return s+s}).join(""));var n=parseInt(r,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};mt.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,r),n),i=Math.min(Math.min(e,r),n),o=a-i,s,u;return o<1?s=i/(1-o):s=0,o<=0?u=0:a===e?u=(r-n)/o%6:a===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,s*100]};mt.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,a=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(a=(r-.5*n)/(1-n)),[t[0],n*100,a*100]};mt.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,a=0;return n<1&&(a=(r-n)/(1-n)),[t[0],n*100,a*100]};mt.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var a=[0,0,0],i=e%1*6,o=i%1,s=1-o,u=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return u=(1-r)*n,[(r*a[0]+u)*255,(r*a[1]+u)*255,(r*a[2]+u)*255]};mt.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};mt.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};mt.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};mt.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,a=n-e,i=0;return a<1&&(i=(n-a)/(1-a)),[t[0],a*100,i*100]};mt.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};mt.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};mt.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};mt.gray.hsl=mt.gray.hsv=function(t){return[0,0,t[0]]};mt.gray.hwb=function(t){return[0,100,t[0]]};mt.gray.cmyk=function(t){return[0,0,0,t[0]]};mt.gray.lab=function(t){return[t[0],0,0]};mt.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};mt.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var HT=YT.exports,$h=HT;function A7(){for(var t={},e=Object.keys($h),r=e.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function D7(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var a=n.length,i=0;i>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var s=o.sort().join("");if(!(s in dg))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=dg[s];var u=zn[this.model].labels,f=[];for(r=0;rr?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return pn.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,i=2*a-1,o=r.alpha()-n.alpha(),s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,u=1-s;return pn.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};Object.keys(zn).forEach(function(t){if(ZT.indexOf(t)===-1){var e=zn[t].channels;pn.prototype[t]=function(){if(this.model===t)return new pn(this);if(arguments.length)return new pn(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new pn(B7(zn[this.model][t].raw(this.color)).concat(r),t)},pn[t]=function(r){return typeof r=="number"&&(r=vg(Qy.call(arguments),e)),new pn(r,t)}}});function R7(t,e){return Number(t.toFixed(e))}function F7(t){return function(e){return R7(e,t)}}function Lr(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Xh[n]||(Xh[n]=[]))[e]=r}),t=t[0],function(n){var a;return arguments.length?(r&&(n=r(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],r&&(a=r(a)),a)}}function qr(t){return function(e){return Math.max(0,Math.min(t,e))}}function B7(t){return Array.isArray(t)?t:[t]}function vg(t,e){for(var r=0;r=0,i=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return wt(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Z7,arguments)},brighten:function(){return this._applyModification(K7,arguments)},darken:function(){return this._applyModification(Q7,arguments)},desaturate:function(){return this._applyModification(Y7,arguments)},saturate:function(){return this._applyModification(q7,arguments)},greyscale:function(){return this._applyModification(H7,arguments)},spin:function(){return this._applyModification(J7,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rX,arguments)},complement:function(){return this._applyCombination(eX,arguments)},monochromatic:function(){return this._applyCombination(nX,arguments)},splitcomplement:function(){return this._applyCombination(tX,arguments)},triad:function(){return this._applyCombination(mE,[3])},tetrad:function(){return this._applyCombination(mE,[4])}};wt.fromRatio=function(t,e){if(Wh(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=vf(t[n]));t=r}return wt(t,e)};function U7(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=uX(t)),Wh(t)=="object"&&(oi(t.r)&&oi(t.g)&&oi(t.b)?(e=$7(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):oi(t.h)&&oi(t.s)&&oi(t.v)?(n=vf(t.s),a=vf(t.v),e=W7(t.h,n,a),o=!0,s="hsv"):oi(t.h)&&oi(t.s)&&oi(t.l)&&(n=vf(t.s),i=vf(t.l),e=X7(t.h,n,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=KT(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function $7(t,e,r){return{r:Er(t,255)*255,g:Er(e,255)*255,b:Er(r,255)*255}}function vE(t,e,r){t=Er(t,255),e=Er(e,255),r=Er(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case t:i=(e-r)/u+(e1&&(c-=1),c<1/6?f+(l-f)*6*c:c<1/2?l:c<2/3?f+(l-f)*(2/3-c)*6:f}if(e===0)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),a=o(u,s,t),i=o(u,s,t-1/3)}return{r:n*255,g:a*255,b:i*255}}function pE(t,e,r){t=Er(t,255),e=Er(e,255),r=Er(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case t:i=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(wt(n));return i}function nX(t,e){e=e||6;for(var r=wt(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(wt({h:n,s:a,v:i})),i=(i+s)%1;return o}wt.mix=function(t,e,r){r=r===0?0:r||50;var n=wt(t).toRgb(),a=wt(e).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return wt(o)};wt.readability=function(t,e){var r=wt(t),n=wt(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};wt.isReadable=function(t,e,r){var n=wt.readability(t,e),a,i;switch(i=!1,a=fX(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};wt.mostReadable=function(t,e,r){var n=null,a=0,i,o,s,u;r=r||{},o=r.includeFallbackColors,s=r.level,u=r.size;for(var f=0;fa&&(a=i,n=wt(e[f]));return wt.isReadable(t,n,{level:s,size:u})||!o?n:(r.includeFallbackColors=!1,wt.mostReadable(t,["#fff","#000"],r))};var pg=wt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aX=wt.hexNames=iX(pg);function iX(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function KT(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Er(t,e){oX(t)&&(t="100%");var r=sX(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Fd(t){return Math.min(1,Math.max(0,t))}function Fn(t){return parseInt(t,16)}function oX(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function sX(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ma(t){return t.length==1?"0"+t:""+t}function vf(t){return t<=1&&(t=t*100+"%"),t}function QT(t){return Math.round(parseFloat(t)*255).toString(16)}function bE(t){return Fn(t)/255}var ha=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oi(t){return!!ha.CSS_UNIT.exec(t)}function uX(t){t=t.replace(z7,"").replace(j7,"").toLowerCase();var e=!1;if(pg[t])t=pg[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ha.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ha.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ha.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ha.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ha.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ha.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ha.hex8.exec(t))?{r:Fn(r[1]),g:Fn(r[2]),b:Fn(r[3]),a:bE(r[4]),format:e?"name":"hex8"}:(r=ha.hex6.exec(t))?{r:Fn(r[1]),g:Fn(r[2]),b:Fn(r[3]),format:e?"name":"hex"}:(r=ha.hex4.exec(t))?{r:Fn(r[1]+""+r[1]),g:Fn(r[2]+""+r[2]),b:Fn(r[3]+""+r[3]),a:bE(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ha.hex3.exec(t))?{r:Fn(r[1]+""+r[1]),g:Fn(r[2]+""+r[2]),b:Fn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function fX(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var Nc=2,wE=.16,lX=.05,cX=.05,hX=.15,JT=5,eI=4,dX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function xE(t,e,r){var n;return Math.round(t.h)>=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-Nc*e:Math.round(t.h)+Nc*e:n=r?Math.round(t.h)+Nc*e:Math.round(t.h)-Nc*e,n<0?n+=360:n>=360&&(n-=360),n}function EE(t,e,r){if(t.h===0&&t.s===0)return t.s;var n;return r?n=t.s-wE*e:e===eI?n=t.s+wE:n=t.s+lX*e,n>1&&(n=1),r&&e===JT&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function _E(t,e,r){var n;return r?n=t.v+cX*e:n=t.v-hX*e,n>1&&(n=1),Number(n.toFixed(2))}function Vh(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=wt(t),a=JT;a>0;a-=1){var i=n.toHsv(),o=wt({h:xE(i,a,!0),s:EE(i,a,!0),v:_E(i,a,!0)}).toHexString();r.push(o)}r.push(n.toHexString());for(var s=1;s<=eI;s+=1){var u=n.toHsv(),f=wt({h:xE(u,s),s:EE(u,s),v:_E(u,s)}).toHexString();r.push(f)}return e.theme==="dark"?dX.map(function(l){var c=l.index,h=l.opacity,d=wt.mix(e.backgroundColor||"#141414",r[c],h*100).toHexString();return d}):r}var Op={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Lp={},Dp={};Object.keys(Op).forEach(function(t){Lp[t]=Vh(Op[t]),Lp[t].primary=Lp[t][5],Dp[t]=Vh(Op[t],{theme:"dark",backgroundColor:"#141414"}),Dp[t].primary=Dp[t][5]});var Zr=function(e,r,n){var a=Sf(e),i=Sf(r);return Sf([(1-n)*a.red()+n*i.red(),(1-n)*a.green()+n*i.green(),(1-n)*a.blue()+n*i.blue()]).rgb()},vX=function(e,r,n){r===void 0&&(r="#fff");var a=Zr(r,e,.05).rgb().toString(),i=Zr(r,e,.1).rgb().toString(),o=Zr(r,e,.2).rgb().toString(),s=Zr(r,e,.4).rgb().toString(),u=Zr(r,n,.02).rgb().toString(),f=Zr(r,n,.05).rgb().toString(),l=Zr(r,n,.1).rgb().toString(),c=Zr(r,n,.2).rgb().toString(),h=Zr(r,n,.3).rgb().toString(),d=Vh(e,{theme:"default",backgroundColor:r}),v=Sf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:e,mainFill:i,activeStroke:e,activeFill:a,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:r,highlightStroke:g,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:h,edgeActiveStroke:e,edgeInactiveStroke:c,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:u,comboActiveStroke:e,comboActiveFill:a,comboInactiveStroke:h,comboInactiveFill:u,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:f}},pX=function(e,r,n){r===void 0&&(r="#fff");var a=Zr(r,e,.2).rgb().toString(),i=Zr(r,e,.3).rgb().toString(),o=Zr(r,e,.6).rgb().toString(),s=Zr(r,e,.8).rgb().toString(),u=Zr(r,n,.2).rgb().toString(),f=Zr(r,n,.25).rgb().toString(),l=Zr(r,n,.3).rgb().toString(),c=Zr(r,n,.4).rgb().toString(),h=Zr(r,n,.5).rgb().toString(),d=Vh(e,{theme:"dark",backgroundColor:r}),v=Sf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:s,mainFill:a,activeStroke:e,activeFill:i,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:a,highlightStroke:e,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:n,edgeActiveStroke:e,edgeInactiveStroke:n,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:f,comboActiveStroke:e,comboActiveFill:u,comboInactiveStroke:c,comboInactiveFill:f,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:f,comboDisableStroke:c,comboDisableFill:u}},Jy=function(e,r,n,a){return r===void 0&&(r="#fff"),n===void 0&&(n="default"),n==="default"?vX(e,r,"rgb(150, 150, 150)"):pX(e,r,"#777")},gX=function(e,r,n,a){r===void 0&&(r="#fff"),n===void 0&&(n="default");var i=[];return e.forEach(function(o){i.push(Jy(o,r,n))}),i};const yX=Object.freeze(Object.defineProperty({__proto__:null,getColorSetsBySubjectColors:gX,getColorsWithSubjectColor:Jy,mixColor:Zr},Symbol.toStringTag,{value:"Module"}));var mX="rgb(95, 149, 255)",bX="rgb(255, 255, 255)",Ht=Jy(mX,bX);const Mf={defaultNode:{style:{stroke:Ht.mainStroke,fill:Ht.mainFill},color:Ht.mainStroke,linkPoints:{fill:Ht.activeFill,stroke:Ht.activeStroke}},nodeStateStyles:{active:{fill:Ht.activeFill,stroke:Ht.activeStroke,shadowColor:Ht.mainStroke},selected:{fill:Ht.selectedFill,stroke:Ht.selectedStroke,shadowColor:Ht.selectedStroke},highlight:{fill:Ht.highlightFill,stroke:Ht.highlightStroke},inactive:{fill:Ht.inactiveFill,stroke:Ht.inactiveStroke},disable:{fill:Ht.disableFill,stroke:Ht.disableStroke}},defaultEdge:{style:{stroke:Ht.edgeMainStroke},color:Ht.edgeMainStroke},edgeStateStyles:{active:{stroke:Ht.edgeActiveStroke},selected:{stroke:Ht.edgeSelectedStroke,shadowColor:Ht.edgeSelectedStroke},highlight:{stroke:Ht.edgeHighlightStroke},inactive:{stroke:Ht.edgeInactiveStroke},disable:{stroke:Ht.edgeDisableStroke}},defaultCombo:{style:{fill:Ht.comboMainFill,stroke:Ht.comboMainStroke},color:Ht.comboMainStroke},comboStateStyles:{active:{stroke:Ht.comboActiveStroke,fill:Ht.comboActiveFill},selected:{stroke:Ht.comboSelectedStroke,fill:Ht.comboSelectedFill,shadowColor:Ht.comboSelectedStroke},highlight:{stroke:Ht.comboHighlightStroke,fill:Ht.comboHighlightFill},inactive:{stroke:Ht.comboInactiveStroke,fill:Ht.comboInactiveFill},disable:{stroke:Ht.comboDisableStroke,fill:Ht.comboDisableFill}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var wX=function(e){var r=e.clone();return tI(e,r),r},tI=function(e,r){var n;e.isGroup()&&r.isGroup()&&((n=e.get("children"))===null||n===void 0||n.forEach(function(s,u){var f=r.get("children")[u];tI(s,f)}));var a=e.get("type"),i=r.get("type");if(!(a!=="image"||i!=="image")){var o=e.get("clipShape");o&&r.setClip({type:o.get("type"),attrs:o.attr()})}},xX=Za.cloneEvent,EX=Za.isViewportChanged,_X=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=r,n.destroyed=!1,n.initEvents(),n}return e.prototype.initEvents=function(){var r=this,n=r.graph,a=r.extendEvents,i=a===void 0?[]:a,o=n.get("canvas"),s=o.get("el"),u=Bs(this,"onCanvasEvents"),f=Bs(this,"onExtendEvents"),l=Bs(this,"onWheelEvent");o.off("*").on("*",u),this.canvasHandler=u,i.push(Ic(s,"wheel",l)),typeof window<"u"&&(i.push(Ic(window,"keydown",f)),i.push(Ic(window,"keyup",f)),i.push(Ic(window,"focus",f))),this.resetHandler&&n.off("afterchangedata",this.resetHandler),this.resetHandler=Bs(this,"resetStatus"),n.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(r){for(;r&&!r.get("item");)r=r.get("parent");return r},e.prototype.onCanvasEvents=function(r){var n=this,a=this.graph,i=a.get("canvas"),o=r.target,s=r.type;switch(s){case"drag":this.onCanvasEvents(Object.assign({},r,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},r,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1});break;case"click":if(!this.mousedown)return;break}r.canvasX=r.x,r.canvasY=r.y;var u={x:r.canvasX,y:r.canvasY},f=a.get("group"),l=f.getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),EX(l)&&(u=a.getPointByClient(r.clientX,r.clientY)),r.x=u.x,r.y=u.y,r.currentTarget=a,o===i){(s==="mousemove"||s==="mouseleave")&&this.handleMouseMove(r,"canvas"),r.target=i,r.item=null,a.emit(s,r),a.emit("canvas:".concat(s),r);return}var c=e.getItemRoot(o);if(!c){a.emit(s,r);return}var h=c.get("item");if(!h.destroyed){var d=h.getType();if(r.target=o,r.item=h,r.canvasX===r.x&&r.canvasY===r.y){var v=a.getCanvasByPoint(r.x,r.y);r.canvasX=v.x,r.canvasY=v.y}r.name&&!r.name.includes(":")?(a.emit("".concat(d,":").concat(s),r),a.emit(s,r)):r.name&&a.emit(r.name,r),s==="dragstart"&&(this.dragging=!0),s==="dragend"&&(this.dragging=!1),s==="mousemove"&&this.handleMouseMove(r,d)}},e.prototype.onExtendEvents=function(r){this.graph.emit(r.type,r)},e.prototype.onWheelEvent=function(r){Zt(r.wheelDelta)&&(r.wheelDelta=-r.detail),this.graph.emit("wheel",r)},e.prototype.handleMouseMove=function(r,n){var a=this,i=a.graph,o=a.preItem,s=i.get("canvas"),u=r.target===s?null:r.item;r=xX(r),o&&o!==u&&!o.destroyed&&(r.item=o,this.emitCustomEvent(o.getType(),"mouseleave",r),this.dragging&&this.emitCustomEvent(o.getType(),"dragleave",r)),u&&o!==u&&(r.item=u,this.emitCustomEvent(n,"mouseenter",r),this.dragging&&this.emitCustomEvent(n,"dragenter",r)),this.preItem=u},e.prototype.emitCustomEvent=function(r,n,a){a.type=n,this.graph.emit("".concat(r,":").concat(n),a)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var r=this,n=r.graph,a=r.canvasHandler,i=r.extendEvents,o=n.get("canvas");o.off("*",a),_e(i,function(s){s.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(F8),Kt={},gi={},Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Base=void 0;var SX=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(e){return this.init(e),this.execute(!0)},t.prototype.init=function(e){this.nodes=e.nodes||[],this.edges=e.edges||[],this.combos=e.combos||[],this.comboEdges=e.comboEdges||[],this.hiddenNodes=e.hiddenNodes||[],this.hiddenEdges=e.hiddenEdges||[],this.hiddenCombos=e.hiddenCombos||[],this.vedges=e.vedges||[]},t.prototype.execute=function(e){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(e){e&&Object.assign(this,e)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();Rr.Base=SX;var Pp={},nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.camelize=nu.isString=void 0;var MX=function(t){return typeof t=="string"};nu.isString=MX;var AX=function(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}},CX=/-(\w)/g;nu.camelize=AX(function(t){return t.replace(CX,function(e,r){return r?r.toUpperCase():""})});var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.isArray=void 0;ol.isArray=Array.isArray;var Bd={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toNumber=t.isNaN=t.isNumber=void 0;var e=function(a){return typeof a=="number"};t.isNumber=e;var r=function(a){return Number.isNaN(Number(a))};t.isNaN=r;var n=function(a){var i=parseFloat(a);return(0,t.isNaN)(i)?a:i};t.toNumber=n})(Bd);var Gd={},em={};(function(t){var e=me&&me.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;ob[x][_]+b[_][E]&&(b[x][E]=b[x][_]+b[_][E]);return b};t.floydWarshall=s;var u=function(m,b){var w=m.nodes,x=m.edges,E=[],_={};if(!w)throw new Error("invalid nodes data!");return w&&w.forEach(function(S,A){_[S.id]=A;var M=[];E.push(M)}),x==null||x.forEach(function(S){var A=(0,t.getEdgeTerminal)(S,"source"),M=(0,t.getEdgeTerminal)(S,"target"),C=_[A],I=_[M];C===void 0||I===void 0||(E[C][I]=1,b||(E[I][C]=1))}),E};t.getAdjMatrix=u;var f=function(m,b){var w=[];return m.forEach(function(x){var E=[];x.forEach(function(_){E.push(_*b)}),w.push(E)}),w};t.scaleMatrix=f;var l=function(m,b){if(m&&m.children){for(var w=m.children.length-1;w>=0;w--)if(!l(m.children[w],b))return}return!!b(m)},c=function(m,b){typeof b=="function"&&l(m,b)};t.traverseTreeUp=c;var h=function(m){var b=1/0,w=1/0,x=-1/0,E=-1/0;return m.forEach(function(_){var S=_.size;(0,e.isArray)(S)?S.length===1&&(S=[S[0],S[0]]):(0,r.isNumber)(S)?S=[S,S]:(S===void 0||isNaN(S))&&(S=[30,30]);var A=[S[0]/2,S[1]/2],M=_.x-A[0],C=_.x+A[0],I=_.y-A[1],k=_.y+A[1];b>M&&(b=M),w>I&&(w=I),xf.size[1]?f.size[0]:f.size[1]:(0,e.isObject)(f.size)?f.size.width>f.size.height?f.size.width:f.size.height:f.size:o}:(0,t.isFunction)(s)?s:(0,r.isNumber)(s)?function(){return s}:(0,e.isArray)(s)?function(){if(u){var f=Math.max.apply(Math,s);return isNaN(f)?o:f}return s}:(0,e.isObject)(s)?function(){if(u){var f=Math.max(s.width,s.height);return isNaN(f)?o:f}return[s.width,s.height]}:function(){return o}};t.getFuncByUnknownType=i}(Rp)),Rp}var ME;function Ir(){return ME||(ME=1,function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(nu,t),r(ol,t),r(Bd,t),r(Gd,t),r(em,t),r(TX(),t)}(Pp)),Pp}var IX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.getLayoutByName=gi.unRegisterLayout=gi.registerLayout=void 0;var kX=Rr,NX=Ir(),Ui=new Map,OX=function(t,e){if(Ui.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,NX.isObject)(e)){var r=function(n){IX(a,n);function a(i){var o=this,s;o=n.call(this)||this;var u=o,f={},l=Object.assign({},u.getDefaultCfg(),((s=e.getDefaultCfg)===null||s===void 0?void 0:s.call(e))||{});return Object.assign(f,l,e,i),Object.keys(f).forEach(function(c){var h=f[c];u[c]=h}),o}return a}(kX.Base);Ui.set(t,r)}else Ui.set(t,e);return Ui.get(t)};gi.registerLayout=OX;var LX=function(t){Ui.has(t)&&Ui.delete(t)};gi.unRegisterLayout=LX;var DX=function(t){return Ui.has(t)?Ui.get(t):null};gi.getLayoutByName=DX;var Fp={},sl={},PX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sl,"__esModule",{value:!0});sl.GridLayout=void 0;var xs=Ir(),RX=Rr,FX=function(t){PX(e,t);function e(r){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var r=this,n=r.nodes,a=r.edges,i=r.begin,o=n.length;if(o===0)return r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a};if(o===1)return n[0].x=i[0],n[0].y=i[1],r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a};var s=r.sortBy,u=r.width,f=r.height,l=r.condense,c=r.preventOverlapPadding,h=r.preventOverlap,d=r.nodeSpacing,v=r.nodeSize,p=[];n.forEach(function(I){p.push(I)});var g={};if(p.forEach(function(I,k){g[I.id]=k}),(s==="degree"||!(0,xs.isString)(s)||p[0][s]===void 0)&&(s="degree",(0,xs.isNaN)(n[0].degree))){var y=(0,xs.getDegree)(p.length,g,a);p.forEach(function(I,k){I.degree=y[k].all})}p.sort(function(I,k){return k[s]-I[s]}),!u&&typeof window<"u"&&(u=window.innerWidth),!f&&typeof window<"u"&&(f=window.innerHeight);var m=r.rows,b=r.cols!=null?r.cols:r.columns;if(r.cells=o,m!=null&&b!=null?(r.rows=m,r.cols=b):m!=null&&b==null?(r.rows=m,r.cols=Math.ceil(r.cells/r.rows)):m==null&&b!=null?(r.cols=b,r.rows=Math.ceil(r.cells/r.cols)):(r.splits=Math.sqrt(r.cells*r.height/r.width),r.rows=Math.round(r.splits),r.cols=Math.round(r.width/r.height*r.splits)),r.rows=Math.max(r.rows,1),r.cols=Math.max(r.cols,1),r.cols*r.rows>r.cells){var w=r.small(),x=r.large();(w-1)*x>=r.cells?r.small(w-1):(x-1)*w>=r.cells&&r.large(x-1)}else for(;r.cols*r.rows=r.cells?r.large(x+1):r.small(w+1)}if(r.cellWidth=u/r.cols,r.cellHeight=f/r.rows,l&&(r.cellWidth=0,r.cellHeight=0),h||d){var E=(0,xs.getFuncByUnknownType)(10,d),_=(0,xs.getFuncByUnknownType)(30,v,!1);p.forEach(function(I){(!I.x||!I.y)&&(I.x=0,I.y=0);var k=_(I)||30,O,B;(0,xs.isArray)(k)?(O=k[0],B=k[1]):(O=k,B=k);var L=E!==void 0?E(I):c,z=O+L,X=B+L;r.cellWidth=Math.max(r.cellWidth,z),r.cellHeight=Math.max(r.cellHeight,X)})}r.cellUsed={},r.row=0,r.col=0,r.id2manPos={};for(var S=0;S=n&&(r.col=0,r.row++)},e.prototype.getPos=function(r){var n=this,a=n.begin,i=n.cellWidth,o=n.cellHeight,s,u,f=n.id2manPos[r.id];if(f)s=f.col*i+i/2+a[0],u=f.row*o+o/2+a[1];else{for(;n.used(n.row,n.col);)n.moveToNextCell();s=n.col*i+i/2+a[0],u=n.row*o+o/2+a[1],n.use(n.row,n.col),n.moveToNextCell()}r.x=s,r.y=u},e.prototype.getType=function(){return"grid"},e}(RX.Base);sl.GridLayout=FX;var ul={},BX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ul,"__esModule",{value:!0});ul.RandomLayout=void 0;var GX=Rr,zX=function(t){BX(e,t);function e(r){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var r=this,n=r.nodes,a=.9,i=r.center;return!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),n&&n.forEach(function(o){o.x=(Math.random()-.5)*a*r.width+i[0],o.y=(Math.random()-.5)*a*r.height+i[1]}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(GX.Base);ul.RandomLayout=zX;var fl={},jX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(fl,"__esModule",{value:!0});fl.GForceLayout=void 0;var UX=Rr,yn=Ir(),Bp=function(t,e){var r;return t?(0,yn.isNumber)(t)?r=function(n){return t}:r=t:r=function(n){return e},r},$X=function(t){jX(e,t);function e(r){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var r,n,a=this,i=a.nodes;if(a.timeInterval!==void 0&&typeof window<"u"&&window.clearInterval(a.timeInterval),!i||i.length===0){(r=a.onLayoutEnd)===null||r===void 0||r.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var o=a.center;if(i.length===1){i[0].x=o[0],i[0].y=o[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var s={},u={};i.forEach(function(v,p){(0,yn.isNumber)(v.x)||(v.x=Math.random()*a.width),(0,yn.isNumber)(v.y)||(v.y=Math.random()*a.height),s[v.id]=v,u[v.id]=p}),a.nodeMap=s,a.nodeIdxMap=u,a.linkDistance=Bp(a.linkDistance,1),a.nodeStrength=Bp(a.nodeStrength,1),a.edgeStrength=Bp(a.edgeStrength,1);var f=a.nodeSize,l;if(a.preventOverlap){var c=a.nodeSpacing,h;(0,yn.isNumber)(c)?h=function(){return c}:(0,yn.isFunction)(c)?h=c:h=function(){return 0},f?(0,yn.isArray)(f)?l=function(v){return Math.max(f[0],f[1])+h(v)}:l=function(v){return f+h(v)}:l=function(v){return v.size?(0,yn.isArray)(v.size)?Math.max(v.size[0],v.size[1])+h(v):(0,yn.isObject)(v.size)?Math.max(v.size.width,v.size.height)+h(v):v.size+h(v):10+h(v)}}a.nodeSize=l;var d=a.edges;a.degrees=(0,yn.getDegree)(i.length,a.nodeIdxMap,d),a.getMass||(a.getMass=function(v){var p=v.mass||a.degrees[a.nodeIdxMap[v.id]].all||1;return p}),a.run()},e.prototype.run=function(){var r,n=this,a=n.maxIteration,i=n.nodes,o=n.workerEnabled,s=n.minMovement,u=n.animate;if(i)if(o||!u){for(var f=0;f"u")return;var c=0;this.timeInterval=window.setInterval(function(){var h,d;if(i){var v=n.runOneStep(c)||[];n.reachMoveThreshold(i,v,s)&&((h=n.onLayoutEnd)===null||h===void 0||h.call(n),window.clearInterval(n.timeInterval)),c++,c>=a&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(r,n,a){var i=0;return r.forEach(function(o,s){var u=o.x-n[s].x,f=o.y-n[s].y;i+=Math.sqrt(u*u+f*f)}),i/=r.length,i=y)){var m=d.x-g.x,b=d.y-g.y;m===0&&b===0&&(m=Math.random()*.01,b=Math.random()*.01);var w=m*m+b*b,x=Math.sqrt(w),E=(x+.1)*s,_=m/x,S=b/x,A=(c(d)+c(g))*.5*o/(E*E),M=i?i(g):1;if(r[2*v]+=_*A,r[2*v+1]+=S*A,r[2*y]-=_*A,r[2*y+1]-=S*A,u&&(h(d)+h(g))/2>x){var C=l*(c(d)+c(g))*.5/w;r[2*v]+=_*C/p,r[2*v+1]+=S*C/p,r[2*y]-=_*C/M,r[2*y+1]-=S*C/M}}})})},e.prototype.calAttractive=function(r,n){var a=this,i=a.nodeMap,o=a.nodeIdxMap,s=a.linkDistance,u=a.edgeStrength,f=a.nodeSize,l=a.getMass;n.forEach(function(c,h){var d=(0,yn.getEdgeTerminal)(c,"source"),v=(0,yn.getEdgeTerminal)(c,"target"),p=i[d],g=i[v],y=g.x-p.x,m=g.y-p.y;y===0&&m===0&&(y=Math.random()*.01,m=Math.random()*.01);var b=Math.sqrt(y*y+m*m),w=y/b,x=m/b,E=s(c,p,g)||1+(f(p)+f(g)||0)/2,_=E-b,S=_*u(c),A=o[d],M=o[v],C=l?l(p):1,I=l?l(g):1;r[2*A]-=w*S/C,r[2*A+1]-=x*S/C,r[2*M]+=w*S/I,r[2*M+1]+=x*S/I})},e.prototype.calGravity=function(r,n){for(var a=this,i=a.center,o=a.gravity,s=a.degrees,u=n.length,f=0;fo.maxSpeed){var d=o.maxSpeed/h;l=d*l,c=d*c}n[2*f]=l,n[2*f+1]=c})},e.prototype.updatePosition=function(r,n,a){a.forEach(function(i,o){if((0,yn.isNumber)(i.fx)&&(0,yn.isNumber)(i.fy)){i.x=i.fx,i.y=i.fy;return}var s=r[2*o]*n,u=r[2*o+1]*n;i.x+=s,i.y+=u})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(UX.Base);fl.GForceLayout=$X;var ll={},zd={};function XX(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return rI(this.cover(e,r),e,r,t)}function rI(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var a,i=t._root,o={data:n},s=t._x0,u=t._y0,f=t._x1,l=t._y1,c,h,d,v,p,g,y,m;if(!i)return t._root=o,t;for(;i.length;)if((p=e>=(c=(s+f)/2))?s=c:f=c,(g=r>=(h=(u+l)/2))?u=h:l=h,a=i,!(i=i[y=g<<1|p]))return a[y]=o,t;if(d=+t._x.call(null,i.data),v=+t._y.call(null,i.data),e===d&&r===v)return o.next=i,a?a[y]=o:t._root=o,t;do a=a?a[y]=new Array(4):t._root=new Array(4),(p=e>=(c=(s+f)/2))?s=c:f=c,(g=r>=(h=(u+l)/2))?u=h:l=h;while((y=g<<1|p)===(m=(v>=h)<<1|d>=c));return a[m]=i,a[y]=o,t}function WX(t){var e,r,n=t.length,a,i,o=new Array(n),s=new Array(n),u=1/0,f=1/0,l=-1/0,c=-1/0;for(r=0;rl&&(l=a),ic&&(c=i));if(u>l||f>c)return this;for(this.cover(u,f).cover(l,c),r=0;rt||t>=a||n>e||e>=i;)switch(f=(el||(s=v.y0)>c||(u=v.x1)=y)<<1|t>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-p],h[h.length-1-p]=v)}else{var m=t-+this._x.call(null,d.data),b=e-+this._y.call(null,d.data),w=m*m+b*b;if(w=(h=(o+u)/2))?o=h:u=h,(p=c>=(d=(s+f)/2))?s=d:f=d,e=r,!(r=r[g=p<<1|v]))return this;if(!r.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(n=e,y=g)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(i=r.next)&&delete r.next,a?(i?a.next=i:delete a.next,this):e?(i?e[g]=i:delete e[g],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(n?n[y]=r:this._root=r),this):(this._root=i,this)}function KX(t){for(var e=0,r=t.length;e1&&(S=(0,Hr.getAvgNodePosition)(M))}else S=void 0;return{x:S==null?void 0:S.x,y:S==null?void 0:S.y}}}}if(a){c||(c=this.getSameTypeLeafMap());var d=Array.from(new Set(o.map(function(b,w){return b[i]}))).filter(function(b){return b!==void 0}),v={};d.forEach(function(b){var w=o.filter(function(x){return x[i]===b}).map(function(x){return s[x.id]});v[b]=(0,Hr.getAvgNodePosition)(w)}),l={single:function(b){return f(b)},leaf:function(b){return f(b)},others:function(b){return f(b)},center:function(b,w,x){var E=v[b[i]];return{x:E==null?void 0:E.x,y:E==null?void 0:E.y}}}}this.centripetalOptions=da(da({},this.centripetalOptions),l);var p=this.centripetalOptions,g=p.leaf,y=p.single,m=p.others;g&&typeof g!="function"&&(this.centripetalOptions.leaf=function(){return g}),y&&typeof y!="function"&&(this.centripetalOptions.single=function(){return y}),m&&typeof m!="function"&&(this.centripetalOptions.others=function(){return m})},e.prototype.updateCfg=function(r){r&&Object.assign(this,r)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var r=this;r.stop();var n=r.nodes,a=r.edges,i=r.defSpringLen;if(r.judgingDistance=0,!n||n.length===0){r.onLayoutEnd([]);return}!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var o=r.center;if(n.length===1){n[0].x=o[0],n[0].y=o[1],r.onLayoutEnd([da({},n[0])]);return}r.degreesMap=(0,Hr.getDegreeMap)(n,a),r.propsGetMass?r.getMass=r.propsGetMass:r.getMass=function(d){var v=1;(0,Hr.isNumber)(d.mass)&&(v=d.mass);var p=r.degreesMap[d.id].all;return!p||p<5?v:p*5*v};var s=r.nodeSize,u;if(r.preventOverlap){var f=r.nodeSpacing,l;(0,Hr.isNumber)(f)?l=function(){return f}:(0,Hr.isFunction)(f)?l=f:l=function(){return 0},s?(0,Hr.isArray)(s)?u=function(d){return Math.max(s[0],s[1])+l(d)}:u=function(d){return s+l(d)}:u=function(d){return d.size?(0,Hr.isArray)(d.size)?Math.max(d.size[0],d.size[1])+l(d):(0,Hr.isObject)(d.size)?Math.max(d.size.width,d.size.height)+l(d):d.size+l(d):10+l(d)}}r.nodeSize=u,r.linkDistance=Gp(r.linkDistance,1),r.nodeStrength=Gp(r.nodeStrength,1),r.edgeStrength=Gp(r.edgeStrength,1);var c={},h={};n.forEach(function(d,v){(0,Hr.isNumber)(d.x)||(d.x=Math.random()*r.width),(0,Hr.isNumber)(d.y)||(d.y=Math.random()*r.height);var p=r.degreesMap[d.id];c[d.id]=da(da({},d),{data:da(da({},d.data),{size:r.nodeSize(d)||30,layout:{inDegree:p.in,outDegree:p.out,degree:p.all,tDegree:p.in,sDegree:p.out,force:{mass:r.getMass(d),nodeStrength:r.nodeStrength(d,a)}}})}),h[d.id]=v}),r.nodeMap=c,r.nodeIdxMap=h,r.edgeInfos=[],a==null||a.forEach(function(d){var v=c[d.source],p=c[d.target];!v||!p?elf.edgeInfos.push({}):r.edgeInfos.push({edgeStrength:r.edgeStrength(d),linkDistance:i?i(da(da({},d),{source:v,target:p}),v,p):r.linkDistance(d,v,p)||1+(s(v)+s(v)||0)/2})}),this.getCentripetalOptions(),r.onLayoutEnd=r.onLayoutEnd||function(){},r.run()},e.prototype.run=function(){var r=this,n=r.maxIteration,a=r.nodes,i=r.edges,o=r.workerEnabled,s=r.minMovement,u=r.animate,f=r.nodeMap,l=r.height;if(r.currentMinY=0,r.currentMaxY=l,!!a){var c=[];if(a.forEach(function(y,m){c[2*m]=0,c[2*m+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var h={};i.forEach(function(y){var m=y.source,b=y.target;h[m]=h[m]||[],h[m].push(y),h[b]=h[b]||[],h[b].push(y)}),this.relatedEdges=h}var d=n,v=!u;if(o||v){for(var p=0;(r.judgingDistance>s||p<1)&&p"u")return;var g=0;this.timeInterval=window.setInterval(function(){a&&(r.runOneStep(g,c),g++,(g>=d||r.judgingDistanceu){var v=u/d;c=v*c,h=v*h}n[2*l]=c,n[2*l+1]=h})},e.prototype.updatePosition=function(r,n){var a=this,i=a.nodes,o=a.distanceThresholdMode,s=a.nodeMap;if(!(i!=null&&i.length)){this.judgingDistance=0;return}var u=0;o==="max"?a.judgingDistance=-1/0:o==="min"&&(a.judgingDistance=1/0);var f=1/0,l=-1/0;i.forEach(function(c,h){var d=s[c.id];if((0,Hr.isNumber)(c.fx)&&(0,Hr.isNumber)(c.fy)){c.x=c.fx,c.y=c.fy,d.x=c.x,d.y=c.y;return}var v=r[2*h]*n,p=r[2*h+1]*n;c.x+=v,c.y+=p,d.x=c.x,d.y=c.y,c.yl&&(l=c.y);var g=Math.sqrt(v*v+p*p);switch(o){case"max":a.judgingDistanceg&&(a.judgingDistance=g);break;default:u=u+g;break}}),this.currentMinY=f,this.currentMaxY=l,(!o||o==="mean")&&(a.judgingDistance=u/i.length)},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var r=this,n=r.nodeClusterBy,a=r.nodes,i=r.edges,o=r.nodeMap,s=r.degreesMap;if(a!=null&&a.length){var u={};return a.forEach(function(f,l){var c=s[f.id].all;c===1&&(u[f.id]=(0,Hr.getCoreNodeAndRelativeLeafNodes)("leaf",f,i,n,s,o))}),u}},e}(pW.Base);ll.Force2Layout=yW;var rm={},Ud={};function mW(t,e){var r,n=1;t==null&&(t=0),e==null&&(e=0);function a(){var i,o=r.length,s,u=0,f=0;for(i=0;ih.index){var C=d-S.x-S.vx,I=v-S.y-S.vy,k=C*C+I*I;kd+M||Ev+M||_f.r&&(f.r=f[l].r)}function u(){if(e){var f,l=e.length,c;for(r=new Array(l),f=0;f[e(x,E,o),x])),w;for(g=0,s=new Array(y);g{}};function nI(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ch.prototype=nI.prototype={constructor:ch,on:function(t,e){var r=this._,n=MW(t+"",r),a,i=-1,o=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(a),n=0,a,i;n=0&&t._call.call(null,e),t=t._next;--au}function kE(){Wo=(qh=Xf.now())+$d,au=pf=0;try{TW()}finally{au=0,kW(),Wo=0}}function IW(){var t=Xf.now(),e=t-qh;e>aI&&($d-=e,qh=t)}function kW(){for(var t,e=Yh,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Yh=r);gf=t,yg(n)}function yg(t){if(!au){pf&&(pf=clearTimeout(pf));var e=t-Wo;e>24?(t<1/0&&(pf=setTimeout(kE,t-Xf.now()-$d)),Zu&&(Zu=clearInterval(Zu))):(Zu||(qh=Xf.now(),Zu=setInterval(IW,aI)),au=1,iI(kE))}}const NW=1664525,OW=1013904223,NE=4294967296;function LW(){let t=1;return()=>(t=(NW*t+OW)%NE)/NE}function DW(t){return t.x}function PW(t){return t.y}var RW=10,FW=Math.PI*(3-Math.sqrt(5));function BW(t){var e,r=1,n=.001,a=1-Math.pow(n,1/300),i=0,o=.6,s=new Map,u=sI(c),f=nI("tick","end"),l=LW();t==null&&(t=[]);function c(){h(),f.call("tick",e),r1?(g==null?s.delete(p):s.set(p,v(g)),e):s.get(p)},find:function(p,g,y){var m=0,b=t.length,w,x,E,_,S;for(y==null?y=1/0:y*=y,m=0;m1?(f.on(p,g),e):f.on(p)}}}function GW(){var t,e,r,n,a=Qr(-30),i,o=1,s=1/0,u=.81;function f(d){var v,p=t.length,g=jd(t,DW,PW).visitAfter(c);for(n=d,v=0;v=s)return;(d.data!==e||d.next)&&(y===0&&(y=$i(r),w+=y*y),m===0&&(m=$i(r),w+=m*m),w-1||(o[u]=i[u])}),o}),n.ticking=!1},e.prototype.execute=function(r){var n=this,a=n.nodes,i=n.edges;if(!n.ticking){var o=n.forceSimulation,s=n.alphaMin,u=n.alphaDecay,f=n.alpha;if(o){if(r){if(n.clustering&&n.clusterForce&&(n.clusterForce.nodes(a),n.clusterForce.links(i)),o.nodes(a),i&&n.edgeForce)n.edgeForce.links(i);else if(i&&!n.edgeForce){var h=_s.forceLink().id(function(g){return g.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}}n.preventOverlap&&n.overlapProcess(o),o.alpha(f).restart(),this.ticking=!0}else try{var l=_s.forceManyBody();if(n.nodeStrength&&l.strength(n.nodeStrength),o=_s.forceSimulation().nodes(a),n.clustering){var c=(0,JW.default)();c.centerX(n.center[0]).centerY(n.center[1]).template("force").strength(n.clusterFociStrength),i&&c.links(i),a&&c.nodes(a),c.forceLinkDistance(n.clusterEdgeDistance).forceLinkStrength(n.clusterEdgeStrength).forceCharge(n.clusterNodeStrength).forceNodeSize(n.clusterNodeSize),n.clusterForce=c,o.force("group",c)}if(o.force("center",_s.forceCenter(n.center[0],n.center[1])).force("charge",l).alpha(f).alphaDecay(u).alphaMin(s),n.preventOverlap&&n.overlapProcess(o),i){var h=_s.forceLink().id(function(p){return p.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}if(n.workerEnabled&&!aV()&&(n.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!n.workerEnabled)o.on("tick",function(){n.tick()}).on("end",function(){n.ticking=!1,n.onLayoutEnd&&n.onLayoutEnd()}),n.ticking=!0;else{o.stop();for(var d=nV(o),v=1;v<=d;v++)o.tick(),postMessage({nodes:a,currentTick:v,totalTicks:d,type:tV.LAYOUT_MESSAGE.TICK},void 0);n.ticking=!1}n.forceSimulation=o,n.ticking=!0}catch(p){n.ticking=!1,console.warn(p)}}},e.prototype.overlapProcess=function(r){var n=this,a=n.nodeSize,i=n.nodeSpacing,o,s,u=n.collideStrength;if((0,Ao.isNumber)(i)?s=function(){return i}:(0,Ao.isFunction)(i)?s=i:s=function(){return 0},!a)o=function(h){if(h.size){if((0,Ao.isArray)(h.size)){var d=h.size[0]>h.size[1]?h.size[0]:h.size[1];return d/2+s(h)}if((0,Ao.isObject)(h.size)){var d=h.size.width>h.size.height?h.size.width:h.size.height;return d/2+s(h)}return h.size/2+s(h)}return 10+s(h)};else if((0,Ao.isFunction)(a))o=function(h){var d=a(h);return d+s(h)};else if((0,Ao.isArray)(a)){var f=a[0]>a[1]?a[0]:a[1],l=f/2;o=function(h){return l+s(h)}}else if((0,Ao.isNumber)(a)){var c=a/2;o=function(h){return c+s(h)}}else o=function(){return 10};r.force("collisionForce",_s.forceCollide(o).strength(u))},e.prototype.updateCfg=function(r){var n=this;n.ticking&&(n.forceSimulation.stop(),n.ticking=!1),n.forceSimulation=null,Object.assign(n,r)},e.prototype.destroy=function(){var r=this;r.ticking&&(r.forceSimulation.stop(),r.ticking=!1),r.nodes=null,r.edges=null,r.destroyed=!0},e}(eV.Base);Ud.ForceLayout=rV;function nV(t){var e=t.alphaMin(),r=t.alphaTarget(),n=t.alpha(),a=Math.log((e-r)/(n-r))/Math.log(1-t.alphaDecay()),i=Math.ceil(a);return i}function aV(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}(function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ud,t)})(rm);var cl={},iV=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(cl,"__esModule",{value:!0});cl.CircularLayout=void 0;var oV=Rr,$a=Ir();function sV(t,e,r,n){t.forEach(function(a,i){t[i].children=[],t[i].parent=[]}),n?e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=r[i]);var u=0;o&&(u=r[o]);var f=t[s].children,l=t[u].parent;f.push(t[u].id),l.push(t[s].id)}):e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=r[i]);var u=0;o&&(u=r[o]);var f=t[s].children,l=t[u].children;f.push(t[u].id),l.push(t[s].id)})}function uV(t,e,r){for(var n=r.length,a=0;an?1:0}var lV=function(t){iV(e,t);function e(r){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var r,n=this,a=n.nodes,i=n.edges,o=a.length;if(o===0){n.onLayoutEnd&&n.onLayoutEnd();return}!n.width&&typeof window<"u"&&(n.width=window.innerWidth),!n.height&&typeof window<"u"&&(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(o===1){a[0].x=s[0],a[0].y=s[1],n.onLayoutEnd&&n.onLayoutEnd();return}var u=n.radius,f=n.startRadius,l=n.endRadius,c=n.divisions,h=n.startAngle,d=n.endAngle,v=n.angleRatio,p=n.ordering,g=n.clockwise,y=n.nodeSpacing,m=n.nodeSize,b=(d-h)/o,w={};a.forEach(function(L,z){w[L.id]=z}),n.nodeMap=w;var x=(0,$a.getDegree)(a.length,w,i);if(n.degrees=x,y){var E=(0,$a.getFuncByUnknownType)(10,y),_=(0,$a.getFuncByUnknownType)(10,m),S=-1/0;a.forEach(function(L){var z=_(L);Sn.width?n.width/2:n.height/2:!f&&l?f=l:f&&!l&&(l=f);var M=b*v,C=[];p==="topology"?C=n.topologyOrdering():p==="topology-directed"?C=n.topologyOrdering(!0):p==="degree"?C=n.degreeOrdering():C=a;for(var I=Math.ceil(o/c),k=0;k0?t.set(e,r):t.delete(e))}function uI(t,e,r,n){var a=String(e),i=String(r);if(!t&&a>i){var o=a;a=i,i=o}return a+Xs.EDGE_KEY_DELIM+i+Xs.EDGE_KEY_DELIM+(n===void 0?Xs.DEFAULT_EDGE_NAME:n)}function PE(t,e,r,n){var a=String(e),i=String(r),o={v:e,w:r};if(!t&&a>i){var s=o.v;o.v=o.w,o.w=s}return n!==void 0&&(o.name=n),o}function zp(t,e){return uI(t,e.v,e.w,e.name)}function RE(t){return typeof t=="function"}var dV=function(e){return e.nodes().map(function(r){var n=e.node(r),a=e.parent(r),i={id:r,value:n,parent:a};return i.value===void 0&&delete i.value,i.parent===void 0&&delete i.parent,i})},vV=function(e){return e.edges().map(function(r){var n=e.edge(r),a={v:r.v,w:r.w,value:n,name:r.name};return a.name===void 0&&delete a.name,a.value===void 0&&delete a.value,a})},pV=function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:dV(e),edges:vV(e),value:e.graph()};return r.value===void 0&&delete r.value,r},gV=function(e){var r=new Qo(e.options);return e.value!==void 0&&r.setGraph(e.value),e.nodes.forEach(function(n){r.setNode(n.id,n.value),n.parent&&r.setParent(n.id,n.parent)}),e.edges.forEach(function(n){r.setEdge(n.v,n.w,n.value,n.name)}),r};function FE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function BE(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};mV(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=Xs.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(a){return e.label=a,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(a){return RE(a)?e.defaultNodeLabelFn=a:e.defaultNodeLabelFn=function(){return a},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(a){return e.nodesLabelMap.get(a)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.inEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.sinks=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.outEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.setNodes=function(a,i){return a.map(function(o){return e.setNode(o,i)}),e},this.hasNode=function(a){return e.nodesLabelMap.has(a)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(a){if(e.isCompound()){var i,o=(i=e.parentMap)===null||i===void 0?void 0:i.get(a);if(o!==e.GRAPH_NODE)return o}},this.removeFromParentsChildList=function(a){var i=e.parentMap.get(a);e.childrenMap.get(i).delete(a)},this.setParent=function(a,i){var o,s;e.checkCompound();for(var u=i===void 0?e.GRAPH_NODE:i,f=e.parent(u);f;){if(a===f)throw new Error("Setting "+i+" as parent of "+a+" would create a cycle");f=e.parent(f)}i&&e.setNode(i),e.setNode(a),e.removeFromParentsChildList(a),(o=e.parentMap)===null||o===void 0||o.set(a,u);var l=e.childrenMap.get(u);return l.set(a,!0),(s=e.childrenMap)===null||s===void 0||s.set(u,l),e},this.children=function(a){var i=a===void 0?e.GRAPH_NODE:a;if(e.isCompound()){var o,s=(o=e.childrenMap)===null||o===void 0?void 0:o.get(i);return s?Array.from(s.keys()):void 0}if(i===e.GRAPH_NODE)return e.nodes();if(a&&e.hasNode(a))return[]},this.predecessors=function(a){var i=e.predecessorsMap.get(a);return i?Array.from(i.keys()):void 0},this.successors=function(a){var i=e.successorsMap.get(a);return i?Array.from(i.keys()):void 0},this.neighbors=function(a){var i;if(e.hasNode(a))return Array.from(new Set((i=e.predecessors(a))===null||i===void 0?void 0:i.concat(e.successors(a))))},this.isLeaf=function(a){var i;if(e.isDirected()){var o;return!(!((o=e.successors(a))===null||o===void 0)&&o.length)}return!(!((i=e.neighbors(a))===null||i===void 0)&&i.length)},this.filterNodes=function(a){var i=e.directed,o=e.multigraph,s=e.compound,u=new t({directed:i,multigraph:o,compound:s});if(u.setGraph(e.graph()),e.nodes().forEach(function(l){a(l)&&u.setNode(l,e.node(l))}),e.edges().forEach(function(l){u.hasNode(l.v)&&u.hasNode(l.w)&&u.setEdgeObj(l,e.edge(l))}),s){var f=function(c){for(var h=e.parent(c);h!==void 0&&!u.hasNode(h);)h=e.parent(h);return h};u.nodes().forEach(function(l){u.setParent(l,f(l))})}return u},this.setDefaultEdgeLabel=function(a){return RE(a)?e.defaultEdgeLabelFn=a:e.defaultEdgeLabelFn=function(){return a},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(a,i){return e.setEdge(a.v,a.w,i,a.name)},this.setPath=function(a,i){return a.reduce(function(o,s){return e.setEdge(o,s,i),s}),e},this.edgeFromArgs=function(a,i,o){return e.edge({v:a,w:i,name:o})},this.edge=function(a){return e.edgesLabelsMap.get(zp(e.isDirected(),a))},this.hasEdge=function(a,i,o){return e.edgesLabelsMap.has(zp(e.isDirected(),{v:a,w:i,name:o}))},this.removeEdgeObj=function(a){var i=a.v,o=a.w,s=a.name;return e.removeEdge(i,o,s)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(a,i){var o=e.inEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.v===i})},this.outEdges=function(a,i){var o=e.outEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.w===i})},this.nodeEdges=function(a,i){var o;if(e.hasNode(a))return(o=e.inEdges(a,i))===null||o===void 0?void 0:o.concat(e.outEdges(a,i))},this.toJSON=function(){return pV(e)},this.nodeInDegree=function(a){var i=e.inEdgesMap.get(a);return i?i.size:0},this.nodeOutDegree=function(a){var i=e.outEdgesMap.get(a);return i?i.size:0},this.nodeDegree=function(a){return e.nodeInDegree(a)+e.nodeOutDegree(a)},this.source=function(a){return a.v},this.target=function(a){return a.w};var n=BE(BE({},xV),r);this.compound=n.compound,this.directed=n.directed,this.multigraph=n.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return wV(t,[{key:"setNode",value:function(r,n){var a=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,s=this.parentMap,u=this.childrenMap,f=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;if(a.has(r))return n!==void 0&&a.set(r,n),this;if(a.set(r,n||i(r)),o()){var d;s==null||s.set(r,this.GRAPH_NODE),u==null||u.set(r,new Map),u!=null&&u.has(this.GRAPH_NODE)||u==null||u.set(this.GRAPH_NODE,new Map),u==null||(d=u.get(this.GRAPH_NODE))===null||d===void 0||d.set(r,!0)}return[f,l,c,h].forEach(function(v){return v.set(r,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(r){var n=this;if(this.hasNode(r)){var a=function(g){n.removeEdge(g.v,g.w,g.name)},i=this.inEdgesMap,o=this.outEdgesMap,s=this.predecessorsMap,u=this.successorsMap,f=this.nodesLabelMap;if(this.isCompound()){var l,c,h;this.removeFromParentsChildList(r),(l=this.parentMap)===null||l===void 0||l.delete(r),(c=this.children(r))===null||c===void 0||c.forEach(function(p){return n.setParent(p)}),(h=this.childrenMap)===null||h===void 0||h.delete(r)}var d=i.get(r),v=o.get(r);Array.from(d.values()).forEach(function(p){return a(p)}),Array.from(v.values()).forEach(function(p){return a(p)}),f.delete(r),i.delete(r),o.delete(r),s.delete(r),u.delete(r),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(r,n,a,i){var o,s,u=PE(this.isDirected(),r,n,i),f=zp(this.isDirected(),u),l=u.v,c=u.w;if(this.edgesLabelsMap.has(f))return this.edgesLabelsMap.set(f,a),this;if(i!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(f,a||this.defaultEdgeLabelFn(l,c,i)),Object.freeze(u),this.edgesMap.set(f,u);var h=this.predecessorsMap.get(c),d=this.successorsMap.get(l);return LE(h,l),LE(d,c),(o=this.inEdgesMap.get(c))===null||o===void 0||o.set(f,u),(s=this.outEdgesMap.get(l))===null||s===void 0||s.set(f,u),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(r,n,a){var i=uI(this.isDirected(),r,n,a),o=this.edgesMap.get(i);if(o){var s=PE(this.isDirected(),r,n,a),u=s.v,f=s.w;this.edgesLabelsMap.delete(i),this.edgesMap.delete(i);var l=this.predecessorsMap.get(f),c=this.successorsMap.get(u);DE(l,u),DE(c,f),this.inEdgesMap.get(f).delete(i),this.outEdgesMap.get(u).delete(i),this.edgeCountNum-=1}return this}}]),t}();Qo.fromJSON=gV;function mg(t){"@babel/helpers - typeof";return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mg(t)}function EV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _V(t,e){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},di(t)}var NV=function(t){AV(r,t);var e=CV(r);function r(){var n;EV(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1&&this.eventPool[a].splice(o,1)}}},{key:"emitEvent",value:function(a){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s>1,((s=n[i])===null||s===void 0?void 0:s.priority)e.arr[a].priority)throw new Error("New priority is greater than current priority.Key: ".concat(r," Old: + ").concat(e.arr[a].priority," New: ").concat(n));e.arr[a].priority=n,e.innerDecrease(a)}}),DV=function(e,r){var n=new Qo,a=new Map,i=new fI,o;function s(l){var c=l.v===o?l.w:l.v,h=i.priority(c);if(h!==void 0){var d=r(l);d0;){var f;if(o=i.removeMin(),a.has(o))n.setEdge(o,a.get(o));else{if(u)throw new Error("Input graph is not connected: "+e.graph());u=!0}(f=e.nodeEdges(o))===null||f===void 0||f.forEach(s)}return n},PV=function(e){var r=new Set,n=[],a=e.nodes();return a.forEach(function(i){for(var o=[],s=[i];s.length>0;){var u=s.pop();if(!r.has(u)){var f,l;r.add(u),o.push(u),(f=e.successors(u))===null||f===void 0||f.forEach(function(c){return s.push(c)}),(l=e.predecessors(u))===null||l===void 0||l.forEach(function(c){return s.push(c)})}}o.length&&n.push(o)}),n},RV=function t(e,r,n,a,i,o){a.includes(r)||(a.push(r),n||o.push(r),i(r).forEach(function(s){return t(e,s,n,a,i,o)}),n&&o.push(r))},lm=function(e,r,n){var a=Array.isArray(r)?r:[r],i=function(f){return e.isDirected()?e.successors(f):e.neighbors(f)},o=[],s=[];return a.forEach(function(u){if(e.hasNode(u))RV(e,u,n==="post",s,i,o);else throw new Error("Graph does not have node: "+u)}),o};function FV(t,e){return jV(t)||zV(t,e)||GV(t,e)||BV()}function BV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GV(t,e){if(t){if(typeof t=="string")return GE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GE(t,e)}}function GE(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(s=o.removeMin(),u=i.get(s),!(u&&u.distance===Number.POSITIVE_INFINITY));)a(s).forEach(f);var l={};return Array.from(i.entries()).forEach(function(c){var h=FV(c,2),d=h[0],v=h[1];return l[String(d)]=v,l}),l},XV=function(e,r,n){var a={};return e.nodes().forEach(function(i){return a[String(i)]=lI(e,i,r,n),a}),a},cI=function(e){var r=0,n=[],a=new Map,i=[];function o(s){var u,f={onStack:!0,lowlink:r,index:r};if(a.set(s,f),r+=1,n.push(s),(u=e.successors(s))===null||u===void 0||u.forEach(function(d){var v;if(a.has(d)){if(!((v=a.get(d))===null||v===void 0)&&v.onStack){var g=a.get(d);f.lowlink=Math.min(f.lowlink,g.index)}}else{o(d);var p=a.get(d);f.lowlink=Math.min(f.lowlink,p.lowlink)}}),f.lowlink===f.index){var l=[],c;do{c=n.pop();var h=a.get(c);h.onStack=!1,l.push(c)}while(s!==c);i.push(l)}}return e.nodes().forEach(function(s){a.has(s)||o(s)}),i},WV=function(e){return cI(e).filter(function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})};function wg(t){"@babel/helpers - typeof";return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(t)}function VV(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}function YV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wf(t,e)}function HV(t){var e=hI();return function(){var n=Vf(t),a;if(e){var i=Vf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return ZV(this,a)}}function ZV(t,e){if(e&&(wg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KV(t)}function KV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xg(t){var e=typeof Map=="function"?new Map:void 0;return xg=function(n){if(n===null||!QV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return hh(n,arguments,Vf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Wf(a,n)},xg(t)}function hh(t,e,r){return hI()?hh=Reflect.construct:hh=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),f=new u;return o&&Wf(f,o.prototype),f},hh.apply(null,arguments)}function hI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QV(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Wf(t,e){return Wf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Wf(t,e)}function Vf(t){return Vf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vf(t)}var Eg=function(t){qV(r,t);var e=HV(r);function r(){return YV(this,r),e.apply(this,arguments)}return VV(r)}(xg(Error));function dI(t){var e=new Set,r=new Set,n=[];function a(i){if(r.has(i))throw new Eg;if(!e.has(i)){var o;r.add(i),e.add(i),(o=t.predecessors(i))===null||o===void 0||o.forEach(a),r.delete(i),n.push(i)}}if(t.sinks().forEach(a),e.size!==t.nodeCount())throw new Eg;return n}var JV=function(e){try{dI(e)}catch(r){if(r instanceof Eg)return!1;throw r}return!0},eY=function(e,r){return lm(e,r,"post")},tY=function(e,r){return lm(e,r,"pre")},rY=function(){return 1};function nY(t,e,r){return aY(t,e||rY,r||function(n){return t.outEdges(n)})}function aY(t,e,r){var n={},a=t.nodes();return a.forEach(function(i){var o=String(i);n[o]={},n[o][o]={distance:0},a.forEach(function(s){i!==s&&(n[o][String(s)]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(s){var u=s.v===i?s.w:s.v,f=e(s);n[o][String(u)]={distance:f,predecessor:i}})}),a.forEach(function(i){var o=String(i),s=n[o];a.forEach(function(u){var f=String(u),l=n[f];a.forEach(function(c){var h=String(c),d=l[o],v=s[h],p=l[h],g=d.distance+v.distance;gt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0;--s)if(o=e[s].dequeue(),o){n=n.concat(jp(t,e,r,o,!0));break}}}return n},jp=function(t,e,r,n,a){var i,o,s=[];return(i=t.inEdges(n.v))===null||i===void 0||i.forEach(function(u){var f=t.edge(u),l=t.node(u.v);a&&s.push({v:u.v,w:u.w,in:0,out:0}),l.out===void 0&&(l.out=0),l.out-=f,_g(e,r,l)}),(o=t.outEdges(n.v))===null||o===void 0||o.forEach(function(u){var f=t.edge(u),l=u.w,c=t.node(l);c.in===void 0&&(c.in=0),c.in-=f,_g(e,r,c)}),t.removeNode(n.v),a?s:void 0},NY=function(t,e){var r=new CY,n=0,a=0;t.nodes().forEach(function(f){r.setNode(f,{v:f,in:0,out:0})}),t.edges().forEach(function(f){var l=r.edge(f)||0,c=(e==null?void 0:e(f))||1,h=l+c;r.setEdge(f.v,f.w,h),a=Math.max(a,r.node(f.v).out+=c),n=Math.max(n,r.node(f.w).in+=c)});for(var i=[],o=a+n+3,s=0;sMath.abs(S)*C?(A<0&&(C=-C),I=C*S/A,k=C):(S<0&&(M=-M),I=M,k=M*A/S),{x:E+I,y:_+k}};t.intersectRect=l;var c=function(w){for(var x=[],E=(0,t.maxRank)(w)+1,_=0;_x)&&(x=S)}),x||(x=0),x};t.maxRank=p;var g=function(w,x){var E={lhs:[],rhs:[]};return w==null||w.forEach(function(_){x(_)?E.lhs.push(_):E.rhs.push(_)}),E};t.partition=g;var y=function(w,x){var E=Date.now();try{return x()}finally{console.log("".concat(w," time: ").concat(Date.now()-E,"ms"))}};t.time=y;var m=function(w,x){return x()};t.notime=m;var b=function(w,x){return w.reduce(function(E,_){var S=x(E),A=x(_);return S>A?_:E})};t.minBy=b})(Vn);Object.defineProperty(hm,"__esModule",{value:!0});var zY=Vn,jY=function(t){t.graph().dummyChains=[],t.edges().forEach(function(e){return UY(t,e)})},UY=function(t,e){var r=e.v,n=t.node(r).rank,a=e.w,i=t.node(a).rank,o=e.name,s=t.edge(e),u=s.labelRank;if(i!==n+1){t.removeEdgeObj(e);var f=t.graph(),l,c,h;for(h=0,++n;nA.lim&&(M=A,C=!0);var I=w.edges().filter(function(k){return C===m(b,b.node(k.v),M)&&C!==m(b,b.node(k.w),M)});return(0,n.minBy)(I,function(k){return(0,r.slack)(w,k)})};t.enterEdge=v;var p=function(b,w,x,E){var _=x.v,S=x.w;b.removeEdge(_,S),b.setEdge(E.v,E.w,{}),(0,t.initLowLimValues)(b),(0,t.initCutValues)(b,w),g(b,w)};t.exchangeEdges=p;var g=function(b,w){var x=b.nodes().find(function(_){var S;return!(!((S=w.node(_))===null||S===void 0)&&S.parent)}),E=i(b,x);E=E==null?void 0:E.slice(1),E==null||E.forEach(function(_){var S=b.node(_).parent,A=w.edgeFromArgs(_,S),M=!1;A||(A=w.edgeFromArgs(S,_),M=!0),w.node(_).rank=w.node(S).rank+(M?A.minlen:-A.minlen)})},y=function(b,w,x){return b.hasEdge(w,x)},m=function(b,w,x){return x.low<=w.lim&&w.lim<=x.lim};t.default=s})(CI);var YY=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dm,"__esModule",{value:!0});var TI=ba,qY=Ki,HY=YY(CI),ZY=function(t){switch(t.graph().ranker){case"network-simplex":QY(t);break;case"tight-tree":jE(t);break;case"longest-path":KY(t);break;default:jE(t)}},KY=TI.longestPath,jE=function(t){(0,TI.longestPathWithLayer)(t),(0,qY.feasibleTreeWithLayer)(t)},QY=function(t){(0,HY.default)(t)};dm.default=ZY;var vm={};Object.defineProperty(vm,"__esModule",{value:!0});var JY=function(t){var e,r={},n=0,a=function(i){var o,s=n;(o=t.children(i))===null||o===void 0||o.forEach(a),r[i]={low:s,lim:n++}};return(e=t.children())===null||e===void 0||e.forEach(a),r},eq=function(t,e,r,n){var a=[],i=[],o=Math.min(e[r].low,e[n].low),s=Math.max(e[r].lim,e[n].lim),u,f;u=r;do u=t.parent(u),a.push(u);while(u&&(e[u].low>o||s>e[u].lim));for(f=u,u=n;u&&u!==f;)i.push(u),u=t.parent(u);return{lca:f,path:a.concat(i.reverse())}},tq=function(t){var e,r=JY(t);(e=t.graph().dummyChains)===null||e===void 0||e.forEach(function(n){var a,i,o=n,s=t.node(o),u=s.edgeObj;if(u)for(var f=eq(t,r,u.v,u.w),l=f.path,c=f.lca,h=0,d=l[h],v=!0;o!==u.w;){if(s=t.node(o),v){for(;d!==c&&((a=t.node(d))===null||a===void 0?void 0:a.maxRank)-1:!1},LI=function(t,e){if(!Ln(t))return t;for(var r=[],n=0;n-1;)bq.call(t,i,1);return t},Eq=Array.prototype.splice,zI=function(e,r){if(!Ln(e))return[];for(var n=e?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,Eq.call(e,o,1))}return e},jI=function(t,e,r){if(!Vr(t)&&!ou(t))return t;var n=r;return iu(t,function(a,i){n=e(n,a,i)}),n},_q=function(t,e){var r=[];if(!Ln(t))return r;for(var n=-1,a=[],i=t.length;++ni[s])return 1;if(a[s]r?r:t},zq=function(t,e){var r=e.toString(),n=r.indexOf(".");if(n===-1)return Math.round(t);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))};function xi(t){return typeof t=="number"}function jq(t){return xi(t)&&t%1!==0}function Uq(t){return xi(t)&&t%2===0}function $q(t){return xi(t)&&t%1===0}function Xq(t){return xi(t)&&t<0}var Wq=1e-5;function Vq(t,e,r){return r===void 0&&(r=Wq),t===e||Math.abs(t-e)0};const Hq=function(t,e){if(Vr(t)){for(var r,n=-1/0,a=0;an&&(r=i,n=o)}return r}},Zq=function(t,e){if(Vr(t)){for(var r,n=1/0,a=0;aa&&(n=r,o(1),++e),r[s]=u}function o(s){e=0,r=Object.create(null),s||(n=Object.create(null))}return o(),{clear:o,has:function(s){return r[s]!==void 0||n[s]!==void 0},get:function(s){var u=r[s];if(u!==void 0)return u;if((u=n[s])!==void 0)return i(s,u),u},set:function(s,u){r[s]!==void 0?r[s]=u:i(s,u)}}}var Vp=new Map;function qI(t,e,r){r===void 0&&(r=128);var n=function(){for(var a=[],i=0;ie?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},UH=function(t){return Ln(t)?Array.prototype.slice.call(t):[]};var Lc={};const $H=function(t){return t=t||"g",Lc[t]?Lc[t]+=1:Lc[t]=1,t+Lc[t]},XH=function(){},WH=function(t){return t};function VH(t){return no(t)?0:Ln(t)?t.length:Object.keys(t).length}var YH=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,r){var n=this.map[e];return n===void 0?r:n},t.prototype.set=function(e,r){this.map[e]=r},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),qH=/rgba?\(([\s.,0-9]+)\)/;function HH(){var t=document.getElementById("antv-web-colour-picker");return t||(t=document.createElement("i"),t.id="antv-web-colour-picker",t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t)}function ZH(t){if(t[0]==="#"&&t.length===7)return t;var e=HH();e.style.color=t;var r=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),n=qH.exec(r),a=n[1].split(/\s*,\s*/).map(function(i){return Number(i)});return r=OI(a),r}var ZI=qI(ZH,function(t){return t},256);function Yp(t,e,r,n){return t[n]+(e[n]-t[n])*r}function KH(t,e){var r=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,a=Math.floor(n*r),i=n*r-a,o=t[a],s=a===n?o:t[a+1];return OI([Yp(o,s,i,0),Yp(o,s,i,1),Yp(o,s,i,2)])}function QH(t){var e=typeof t=="string"?t.split("-"):t,r=e.map(function(n){return NI(n.indexOf("#")===-1?ZI(n):n)});return function(n){return KH(r,n)}}var JH=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,eZ=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,tZ=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function rZ(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}function nZ(t){if(rZ(t)){var e,r=void 0;if(t[0]==="l"){var n=JH.exec(t),a=+n[1]+90;r=n[2],e="linear-gradient(".concat(a,"deg, ")}else if(t[0]==="r"){e="radial-gradient(";var n=eZ.exec(t);r=n[4]}var i=r.match(tZ);return i.forEach(function(o,s){var u=o.split(":");e+="".concat(u[1]," ").concat(Number(u[0])*100,"%"),s!==i.length-1&&(e+=", ")}),e+=")",e}return t}function aZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return uy(n,r),Qa(t,n,e)}function iZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return fy(n,r),Qa(t,n,e)}function oZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return ly(n,r),Qa(t,n,e)}function sZ(t,e,r){return Qa(t,r,e)}function uZ(t,e){for(var r=t?[].concat(t):[1,0,0,0,1,0,0,0,1],n=0,a=e.length;n=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function lZ(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function cZ(t,e){if(e==="off")return[].concat(t);var r=typeof e=="number"&&e>=1?Math.pow(10,e):1;return t.map(function(n){var a=n.slice(1).map(Number).map(function(i){return e?Math.round(i*r)/r:Math.round(i)});return[n[0]].concat(a)})}function hZ(t,e){return e===void 0&&(e="off"),cZ(t,e).map(function(r){return r[0]+r.slice(1).join(" ")}).join("")}var QI={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function dZ(t,e,r){if(t[r].length>7){t[r].shift();for(var n=t[r],a=r;n.length;)e[r]="A",t.splice(a+=1,0,["C"].concat(n.splice(0,6)));t.splice(r,1)}}var Af={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function JI(t){return Array.isArray(t)&&t.every(function(e){var r=e[0].toLowerCase();return Af[r]===e.length-1&&"achlmqstvz".includes(r)})}function ek(t){return JI(t)&&t.every(function(e){var r=e[0];return r===r.toUpperCase()})}function tk(t){return ek(t)&&t.every(function(e){var r=e[0];return"ACLMQZ".includes(r)})}function VE(t){for(var e=t.pathValue[t.segmentStart],r=e.toLowerCase(),n=t.data;n.length>=Af[r]&&(r==="m"&&n.length>2?(t.segments.push([e].concat(n.splice(0,2))),r="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(n.splice(0,Af[r]))),!!Af[r]););}function vZ(t){var e=t.index,r=t.pathValue,n=r.charCodeAt(e);if(n===48){t.param=0,t.index+=1;return}if(n===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'.concat(r[e],'", expecting 0 or 1 at index ').concat(e)}function pZ(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ss(t){return t>=48&&t<=57}function gZ(t){var e=t.max,r=t.pathValue,n=t.index,a=n,i=!1,o=!1,s=!1,u=!1,f;if(a>=e){t.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if(f=r.charCodeAt(a),(f===43||f===45)&&(a+=1,f=r.charCodeAt(a)),!Ss(f)&&f!==46){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(r[a],'" is not a number');return}if(f!==46){if(i=f===48,a+=1,f=r.charCodeAt(a),i&&a=5760&&e.includes(t)}function dh(t){for(var e=t.pathValue,r=t.max;t.index0;o-=1){if(bZ(a)&&(o===3||o===4)?vZ(t):gZ(t),t.err.length)return;t.data.push(t.param),dh(t),t.index=t.max||!pZ(r.charCodeAt(t.index)))break}VE(t)}var xZ=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function Yd(t){if(JI(t))return[].concat(t);var e=new xZ(t);for(dh(e);e.index1&&(M=Math.sqrt(M),h*=M,d*=M);var C=h*h,I=d*d,k=(i===o?-1:1)*Math.sqrt(Math.abs((C*I-C*A*A-I*S*S)/(C*A*A+I*S*S)));E=k*h*A/d+(l+v)/2,_=k*-d*S/h+(c+p)/2,w=Math.asin(((c-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),x=Math.asin(((p-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),w=lx&&(w-=Math.PI*2),!o&&x>w&&(x-=Math.PI*2)}var O=x-w;if(Math.abs(O)>g){var B=x,L=v,z=p;x=w+g*(o&&x>w?1:-1),v=E+h*Math.cos(x),p=_+d*Math.sin(x),m=wm(v,p,h,d,a,0,o,L,z,[x,B,E,_])}O=x-w;var X=Math.cos(w),R=Math.sin(w),V=Math.cos(x),he=Math.sin(x),ce=Math.tan(O/4),le=4/3*h*ce,ie=4/3*d*ce,Ie=[l,c],qe=[l+le*R,c-ie*X],Ve=[v+le*he,p-ie*V],it=[v,p];if(qe[0]=2*Ie[0]-qe[0],qe[1]=2*Ie[1]-qe[1],f)return qe.concat(Ve,it,m);m=qe.concat(Ve,it,m);for(var dt=[],st=0,Tt=m.length;st=i)o={x:r,y:n};else{var s=zi([t,e],[r,n],a/i),u=s[0],f=s[1];o={x:u,y:f}}return{length:i,point:o,min:{x:Math.min(t,r),y:Math.min(e,n)},max:{x:Math.max(t,r),y:Math.max(e,n)}}}function qE(t,e){var r=t.x,n=t.y,a=e.x,i=e.y,o=r*a+n*i,s=Math.sqrt((Math.pow(r,2)+Math.pow(n,2))*(Math.pow(a,2)+Math.pow(i,2))),u=r*i-n*a<0?-1:1,f=u*Math.acos(o/s);return f}function IZ(t,e,r,n,a,i,o,s,u,f){var l=Math.abs,c=Math.sin,h=Math.cos,d=Math.sqrt,v=Math.PI,p=l(r),g=l(n),y=(a%360+360)%360,m=y*(v/180);if(t===s&&e===u)return{x:t,y:e};if(p===0||g===0)return Ag(t,e,s,u,f).point;var b=(t-s)/2,w=(e-u)/2,x={x:h(m)*b+c(m)*w,y:-c(m)*b+h(m)*w},E=Math.pow(x.x,2)/Math.pow(p,2)+Math.pow(x.y,2)/Math.pow(g,2);E>1&&(p*=d(E),g*=d(E));var _=Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2),S=Math.pow(p,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2),A=_/S;A=A<0?0:A;var M=(i!==o?1:-1)*d(A),C={x:M*(p*x.y/g),y:M*(-(g*x.x)/p)},I={x:h(m)*C.x-c(m)*C.y+(t+s)/2,y:c(m)*C.x+h(m)*C.y+(e+u)/2},k={x:(x.x-C.x)/p,y:(x.y-C.y)/g},O=qE({x:1,y:0},k),B={x:(-x.x-C.x)/p,y:(-x.y-C.y)/g},L=qE(k,B);!o&&L>0?L-=2*v:o&&L<0&&(L+=2*v),L%=2*v;var z=O+L*f,X=p*h(z),R=g*c(z),V={x:h(m)*X-c(m)*R+I.x,y:c(m)*X+h(m)*R+I.y};return V}function kZ(t,e,r,n,a,i,o,s,u,f,l){var c,h=l.bbox,d=h===void 0?!0:h,v=l.length,p=v===void 0?!0:v,g=l.sampleSize,y=g===void 0?30:g,m=typeof f=="number",b=t,w=e,x=0,E=[b,w,x],_=[b,w],S=0,A={x:0,y:0},M=[{x:b,y:w}];m&&f<=0&&(A={x:b,y:w});for(var C=0;C<=y;C+=1){if(S=C/y,c=IZ(t,e,r,n,a,i,o,s,u,S),b=c.x,w=c.y,d&&M.push({x:b,y:w}),p&&(x+=bu(_,[b,w])),_=[b,w],m&&x>=f&&f>E[2]){var I=(x-f)/(x-E[2]);A={x:_[0]*(1-I)+E[0]*I,y:_[1]*(1-I)+E[1]*I}}E=[b,w,x]}return m&&f>=x&&(A={x:s,y:u}),{length:x,point:A,min:{x:Math.min.apply(null,M.map(function(k){return k.x})),y:Math.min.apply(null,M.map(function(k){return k.y}))},max:{x:Math.max.apply(null,M.map(function(k){return k.x})),y:Math.max.apply(null,M.map(function(k){return k.y}))}}}function NZ(t,e,r,n,a,i,o,s,u){var f=1-u;return{x:Math.pow(f,3)*t+3*Math.pow(f,2)*u*r+3*f*Math.pow(u,2)*a+Math.pow(u,3)*o,y:Math.pow(f,3)*e+3*Math.pow(f,2)*u*n+3*f*Math.pow(u,2)*i+Math.pow(u,3)*s}}function ak(t,e,r,n,a,i,o,s,u,f){var l,c=f.bbox,h=c===void 0?!0:c,d=f.length,v=d===void 0?!0:d,p=f.sampleSize,g=p===void 0?10:p,y=typeof u=="number",m=t,b=e,w=0,x=[m,b,w],E=[m,b],_=0,S={x:0,y:0},A=[{x:m,y:b}];y&&u<=0&&(S={x:m,y:b});for(var M=0;M<=g;M+=1){if(_=M/g,l=NZ(t,e,r,n,a,i,o,s,_),m=l.x,b=l.y,h&&A.push({x:m,y:b}),v&&(w+=bu(E,[m,b])),E=[m,b],y&&w>=u&&u>x[2]){var C=(w-u)/(w-x[2]);S={x:E[0]*(1-C)+x[0]*C,y:E[1]*(1-C)+x[1]*C}}x=[m,b,w]}return y&&u>=w&&(S={x:o,y:s}),{length:w,point:S,min:{x:Math.min.apply(null,A.map(function(I){return I.x})),y:Math.min.apply(null,A.map(function(I){return I.y}))},max:{x:Math.max.apply(null,A.map(function(I){return I.x})),y:Math.max.apply(null,A.map(function(I){return I.y}))}}}function OZ(t,e,r,n,a,i,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*r+Math.pow(o,2)*a,y:Math.pow(s,2)*e+2*s*o*n+Math.pow(o,2)*i}}function LZ(t,e,r,n,a,i,o,s){var u,f=s.bbox,l=f===void 0?!0:f,c=s.length,h=c===void 0?!0:c,d=s.sampleSize,v=d===void 0?10:d,p=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],w=[g,y],x=0,E={x:0,y:0},_=[{x:g,y}];p&&o<=0&&(E={x:g,y});for(var S=0;S<=v;S+=1){if(x=S/v,u=OZ(t,e,r,n,a,i,x),g=u.x,y=u.y,l&&_.push({x:g,y}),h&&(m+=bu(w,[g,y])),w=[g,y],p&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);E={x:w[0]*(1-A)+b[0]*A,y:w[1]*(1-A)+b[1]*A}}b=[g,y,m]}return p&&o>=m&&(E={x:a,y:i}),{length:m,point:E,min:{x:Math.min.apply(null,_.map(function(M){return M.x})),y:Math.min.apply(null,_.map(function(M){return M.y}))},max:{x:Math.max.apply(null,_.map(function(M){return M.x})),y:Math.max.apply(null,_.map(function(M){return M.y}))}}}function Hd(t,e,r){for(var n,a,i,o,s,u,f=qd(t),l=typeof e=="number",c,h=[],d,v=0,p=0,g=0,y=0,m,b=[],w=[],x=0,E={x:0,y:0},_=E,S=E,A=E,M=0,C=0,I=f.length;C=e&&(A=S),w.push(_),b.push(E),M+=x,u=d!=="Z"?m.slice(-2):[g,y],v=u[0],p=u[1];return l&&e>=M&&(A={x:v,y:p}),{length:M,point:A,min:{x:Math.min.apply(null,b.map(function(k){return k.x})),y:Math.min.apply(null,b.map(function(k){return k.y}))},max:{x:Math.max.apply(null,w.map(function(k){return k.x})),y:Math.max.apply(null,w.map(function(k){return k.y}))}}}function DZ(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var r=Hd(t,void 0,P(P({},e),{length:!1})),n=r.min,a=n.x,i=n.y,o=r.max,s=o.x,u=o.y,f=s-a,l=u-i;return{width:f,height:l,x:a,y:i,x2:s,y2:u,cx:a+f/2,cy:i+l/2,cz:Math.max(f,l)+Math.min(f,l)/2}}function Cf(t,e){return Hd(t,void 0,P(P({},e),{bbox:!1,length:!0})).length}function PZ(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var r=Hd(t,void 0,P(P({},e),{bbox:!0,length:!0})),n=r.length,a=r.min,i=a.x,o=a.y,s=r.max,u=s.x,f=s.y,l=u-i,c=f-o;return{length:n,width:l,height:c,x:i,y:o,x2:u,y2:f,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function RZ(t){var e=t.length,r=e-1;return t.map(function(n,a){return t.map(function(i,o){var s=a+o,u;return o===0||t[s]&&t[s][0]==="M"?(u=t[s],["M"].concat(u.slice(-2))):(s>=e&&(s-=r),t[s])})})}function FZ(t,e){var r=t.length-1,n=[],a=0,i=0,o=RZ(t);return o.forEach(function(s,u){t.slice(1).forEach(function(f,l){i+=bu(t[(u+l)%r].slice(-2),e[l%r].slice(-2))}),n[u]=i,i=0}),a=n.indexOf(Math.min.apply(null,n)),o[a]}function BZ(t,e,r,n,a,i,o,s){return 3*((s-e)*(r+a)-(o-t)*(n+i)+n*(t-a)-r*(e-i)+s*(a+t/3)-o*(i+e/3))/20}function ik(t){var e=0,r=0,n=0;return nk(t).map(function(a){var i;switch(a[0]){case"M":return e=a[1],r=a[2],0;default:var o=a.slice(1),s=o[0],u=o[1],f=o[2],l=o[3],c=o[4],h=o[5];return n=BZ(e,r,s,u,f,l,c,h),i=a.slice(-2),e=i[0],r=i[1],n}}).reduce(function(a,i){return a+i},0)}function GZ(t){return ik(t)>=0}function vh(t,e,r){return Hd(t,e,P(P({},r),{bbox:!1,length:!0})).point}function zZ(t,e){var r=Yd(t);if(typeof r=="string")throw TypeError(r);var n=r.slice(),a=Cf(n),i=n.length-1,o=0,s=0,u=r[0],f=u.slice(-2),l=f[0],c=f[1],h={x:l,y:c};if(i<=0||!e||!Number.isFinite(e))return{segment:u,index:0,length:s,point:h,lengthAtSegment:o};if(e>=a)return n=r.slice(0,-1),o=Cf(n),s=a-o,{segment:r[i],index:i,length:s,lengthAtSegment:o};for(var d=[];i>0;)u=n[i],n=n.slice(0,-1),o=Cf(n),s=a-o,a=o,d.push({segment:u,index:i,length:s,lengthAtSegment:o}),i-=1;return d.find(function(v){var p=v.lengthAtSegment;return p<=e})}function jZ(t,e){for(var r=Yd(t),n=qd(r),a=Cf(r),i=function(x){var E=x.x-e.x,_=x.y-e.y;return E*E+_*_},o=8,s,u=0,f,l=0,c=1/0,h=0;h<=a;h+=o)s=vh(n,h),u=i(s),u.5;)p=l-o,d=vh(n,p),y=i(d),g=l+o,v=vh(n,g),m=i(v),p>=0&&y$Z)return console.warn("Maximum recursion depth reached in equalizeSegments"),[t,e];var a=HE(t),i=HE(e),o=a.length,s=i.length,u=a.filter(function(y){return y.l}).length,f=i.filter(function(y){return y.l}).length,l=a.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/u||0,c=i.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/f||0,h=r||Math.max(o,s),d=[l,c],v=[h-o,h-s],p=0,g=[a,i].map(function(y,m){return y.l===h?y.map(function(b){return b.s}):y.map(function(b,w){return p=w&&v[m]&&b.l>=d[m],v[m]-=p?1:0,p?b.ss:[b.s]}).flat()});return g[0].length===g[1].length?g:ok(g[0],g[1],h,n+1)}var WZ=1e-6;function qp(t){return Math.abs(t)0!=qp(s[1]-r)>0&&qp(e-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}var ZE=function(t,e,r){return t>=e&&t<=r};function YZ(t,e,r,n){var a=.001,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:n.x-r.x,y:n.y-r.y},u=o.x*s.y-o.y*s.x,f=u*u,l=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,h=null;if(f>a*l*c){var d=(i.x*s.y-i.y*s.x)/u,v=(i.x*o.y-i.y*o.x)/u;ZE(d,0,1)&&ZE(v,0,1)&&(h={x:t.x+d*o.x,y:t.y+d*o.y})}return h}function KE(t){for(var e=[],r=t.length,n=0;n1){var o=t[0],s=t[r-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function qZ(t,e){var r=!1;return t.forEach(function(n){if(YZ(n.from,n.to,e.from,e.to))return r=!0,!1}),r}function QE(t){var e=t.map(function(n){return n[0]}),r=t.map(function(n){return n[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,r),maxY:Math.max.apply(null,r)}}function HZ(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=l.weight;f+=l.weight*h}}),f},aK=function(t,e){for(var r=0,n=1;n<(e==null?void 0:e.length);n+=1)r+=nK(t,e[n-1],e[n]);return r};xm.default=aK;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});var iK=wi,oK=function(t,e,r){var n=sK(t),a=new iK.Graph({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return t.nodes().forEach(function(i){var o,s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||n),(o=t[r](i))===null||o===void 0||o.forEach(function(f){var l=f.v===i?f.w:f.v,c=a.edgeFromArgs(l,i),h=c!==void 0?c.weight:0;a.setEdge(l,i,{weight:t.edge(f).weight+h})}),s.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a},sK=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e};Em.default=oK;var _m={};Object.defineProperty(_m,"__esModule",{value:!0});var uK=function(t,e,r){var n={},a;r==null||r.forEach(function(i){for(var o=t.parent(i),s,u;o;){if(s=t.parent(o),s?(u=n[s],n[s]=o):(u=a,a=o),u&&u!==o){e.setEdge(u,o);return}o=s}})};_m.default=uK;var Sm={},Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});var fK=function(t,e){return e.map(function(r){var n=t.inEdges(r);if(!(n!=null&&n.length))return{v:r};{var a={sum:0,weight:0};return n==null||n.forEach(function(i){var o=t.edge(i),s=t.node(i.v);a.sum+=o.weight*s.order,a.weight+=o.weight}),{v:r,barycenter:a.sum/a.weight,weight:a.weight}}})};Mm.default=fK;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});var lK=function(t,e){var r,n,a,i={};t==null||t.forEach(function(s,u){i[s.v]={i:u,indegree:0,in:[],out:[],vs:[s.v]};var f=i[s.v];s.barycenter!==void 0&&(f.barycenter=s.barycenter,f.weight=s.weight)}),(r=e.edges())===null||r===void 0||r.forEach(function(s){var u=i[s.v],f=i[s.w];u!==void 0&&f!==void 0&&(f.indegree++,u.out.push(i[s.w]))});var o=(a=(n=Object.values(i)).filter)===null||a===void 0?void 0:a.call(n,function(s){return!s.indegree});return cK(o)},cK=function(t){for(var e,r,n=[],a=function(f){return function(l){l.merged||(l.barycenter===void 0||f.barycenter===void 0||l.barycenter>=f.barycenter)&&hK(f,l)}},i=function(f){return function(l){l.in.push(f),--l.indegree===0&&t.push(l)}},o=function(){var f=t.pop();n.push(f),(e=f.in.reverse())===null||e===void 0||e.forEach(function(l){return a(f)(l)}),(r=f.out)===null||r===void 0||r.forEach(function(l){return i(f)(l)})};t!=null&&t.length;)o();var s=n.filter(function(f){return!f.merged}),u=["vs","i","barycenter","weight"];return s.map(function(f){var l={};return u==null||u.forEach(function(c){f[c]!==void 0&&(l[c]=f[c])}),l})},hK=function(t,e){var r,n=0,a=0;t.weight&&(n+=t.barycenter*t.weight,a+=t.weight),e.weight&&(n+=e.barycenter*e.weight,a+=e.weight),t.vs=(r=e.vs)===null||r===void 0?void 0:r.concat(t.vs),t.barycenter=n/a,t.weight=a,t.i=Math.min(e.i,t.i),e.merged=!0};Am.default=lK;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});var dK=Vn,vK=function(t,e,r,n){var a=(0,dK.partition)(t,function(h){var d=h.hasOwnProperty("fixorder")&&!isNaN(h.fixorder);return n?!d&&h.hasOwnProperty("barycenter"):d||h.hasOwnProperty("barycenter")}),i=a.lhs,o=a.rhs.sort(function(h,d){return-h.i- -d.i}),s=[],u=0,f=0,l=0;i==null||i.sort(pK(!!e,!!r)),l=JE(s,o,l),i==null||i.forEach(function(h){var d;l+=(d=h.vs)===null||d===void 0?void 0:d.length,s.push(h.vs),u+=h.barycenter*h.weight,f+=h.weight,l=JE(s,o,l)});var c={vs:s.flat()};return f&&(c.barycenter=u/f,c.weight=f),c},JE=function(t,e,r){for(var n=r,a;e.length&&(a=e[e.length-1]).i<=n;)e.pop(),t==null||t.push(a.vs),n++;return n},pK=function(t,e){return function(r,n){if(r.fixorder!==void 0&&n.fixorder!==void 0)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(e&&r.order!==void 0&&n.order!==void 0){if(r.ordern.order)return 1}return t?n.i-r.i:r.i-n.i}};Cm.default=vK;var Tm=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sm,"__esModule",{value:!0});var gK=Tm(Mm),yK=Tm(Am),mK=Tm(Cm),uk=function(t,e,r,n,a,i){var o,s,u,f,l=t.children(e),c=t.node(e),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,v={};h&&(l=l==null?void 0:l.filter(function(w){return w!==h&&w!==d}));var p=(0,gK.default)(t,l||[]);p==null||p.forEach(function(w){var x;if(!((x=t.children(w.v))===null||x===void 0)&&x.length){var E=uk(t,w.v,r,n,i);v[w.v]=E,E.hasOwnProperty("barycenter")&&wK(w,E)}});var g=(0,yK.default)(p,r);bK(g,v),(o=g.filter(function(w){return w.vs.length>0}))===null||o===void 0||o.forEach(function(w){var x=t.node(w.vs[0]);x&&(w.fixorder=x.fixorder,w.order=x.order)});var y=(0,mK.default)(g,n,a,i);if(h&&(y.vs=[h,y.vs,d].flat(),!((s=t.predecessors(h))===null||s===void 0)&&s.length)){var m=t.node(((u=t.predecessors(h))===null||u===void 0?void 0:u[0])||""),b=t.node(((f=t.predecessors(d))===null||f===void 0?void 0:f[0])||"");y.hasOwnProperty("barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+b.order)/(y.weight+2),y.weight+=2}return y},bK=function(t,e){t==null||t.forEach(function(r){var n,a=(n=r.vs)===null||n===void 0?void 0:n.map(function(i){return e[i]?e[i].vs:i});r.vs=a.flat()})},wK=function(t,e){t.barycenter!==void 0?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)};Sm.default=uk;var dl=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mm,"__esModule",{value:!0});var e_=dl(bm),t_=dl(xm),xK=dl(Em),EK=dl(_m),_K=dl(Sm),r_=Ir(),SK=wi,Hp=Vn,MK=function(t,e){for(var r=(0,Hp.maxRank)(t),n=[],a=[],i=1;i-1;i--)a.push(i);var o=n_(t,n,"inEdges"),s=n_(t,a,"outEdges"),u=(0,e_.default)(t);Zp(t,u);for(var f=Number.POSITIVE_INFINITY,l,i=0,c=0;c<4;++i,++c){a_(i%2?o:s,i%4>=2,!1,e),u=(0,Hp.buildLayerMatrix)(t);var h=(0,t_.default)(t,u);h=2,!0,e),u=(0,Hp.buildLayerMatrix)(t);var h=(0,t_.default)(t,u);hB)&&(0,t.addConflict)(E,V,X)}))}function S(C){return JSON.stringify(C.slice(1))}function A(C,I){var k=S(C);I.get(k)||(_.apply(void 0,C),I.set(k,!0))}var M=function(C,I){var k=-1,O,B=0,L=new Map;return I==null||I.forEach(function(z,X){var R;if(((R=w.node(z))===null||R===void 0?void 0:R.dummy)==="border"){var V=w.predecessors(z)||[];V.length&&(O=w.node(V[0]).order,A([I,B,X,k,O],L),B=X,k=O)}A([I,B,I.length,O,C.length],L)}),I};return x!=null&&x.length&&x.reduce(M),E};t.findType2Conflicts=s;var u=function(w,x){var E,_;if(!((E=w.node(x))===null||E===void 0)&&E.dummy)return(_=w.predecessors(x))===null||_===void 0?void 0:_.find(function(S){return w.node(S).dummy})};t.findOtherInnerSegmentNode=u;var f=function(w,x,E){var _=x,S=E;if(_>S){var A=_;_=S,S=A}var M=w[_];M||(w[_]=M={}),M[S]=!0};t.addConflict=f;var l=function(w,x,E){var _=x,S=E;if(_>S){var A=x;_=S,S=A}return!!w[_]};t.hasConflict=l;var c=function(w,x,E,_){var S={},A={},M={};return x==null||x.forEach(function(C){C==null||C.forEach(function(I,k){S[I]=I,A[I]=I,M[I]=k})}),x==null||x.forEach(function(C){var I=-1;C==null||C.forEach(function(k){var O=_(k);if(O.length){O=O.sort(function(R,V){return M[R]-M[V]});for(var B=(O.length-1)/2,L=Math.floor(B),z=Math.ceil(B);L<=z;++L){var X=O[L];A[k]===k&&IN.x&&(B=N.x),L>N.y&&(L=N.y)}),b.edges().forEach(function(te){var N,Se=b.edge(te);(N=Se.points)===null||N===void 0||N.forEach(function(Fe){B>Fe.x&&(B=Fe.x),L>Fe.y&&(L=Fe.y)})}),O[0]=h[0]-B,O[1]=h[1]-L}var z=l==="LR"||l==="RL";if(d){var X=this,R=X.focusNode,V=X.ranksep,he=X.getRadialPos,ce=(0,Rn.isString)(R)?R:R==null?void 0:R.id,le=ce?(o=b.node(ce))===null||o===void 0?void 0:o._rank:0,ie=[],Ie=z?"y":"x",qe=z?"height":"width",Ve=1/0,it=-1/0;b.nodes().forEach(function(te){var N=b.node(te);if(s.nodeMap[te]){var Se=A(s.nodeMap[te]);if(le===0)ie[N._rank]||(ie[N._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),ie[N._rank].nodes.push(te),ie[N._rank].totalWidth+=Se*2+N[qe],ie[N._rank].maxSizeit&&(it=$e)}});var dt=V||50,st={},Tt=(it-Ve)/.9,_t=[(Ve+it-Tt)*.5,(Ve+it+Tt)*.5],lr=function(te,N,Se,Fe){Se===void 0&&(Se=-1/0),Fe===void 0&&(Fe=[0,1]);var ge=Se;return te.forEach(function(Ue){var $e=b.node(Ue);st[Ue]=N;var Ze=he($e[Ie],_t,Tt,N,Fe),Je=Ze.x,ht=Ze.y;if(s.nodeMap[Ue]){s.nodeMap[Ue].x=Je+O[0],s.nodeMap[Ue].y=ht+O[1],s.nodeMap[Ue]._order=$e._order;var Lt=S(s.nodeMap[Ue]);ge=ge})}:function(te,N,Se){var Fe=Math.max(N.x,Se.x),ge=Math.min(N.x,Se.x);return te.filter(function(Ue){return Ue.x<=Fe&&Ue.x>=ge})};b.edges().forEach(function(te){var N,Se=b.edge(te),Fe=m.findIndex(function($e){var Ze=(0,Rn.getEdgeTerminal)($e,"source"),Je=(0,Rn.getEdgeTerminal)($e,"target");return Ze===te.v&&Je===te.w});if(!(Fe<=-1)&&s.edgeLabelSpace&&s.controlPoints&&m[Fe].type!=="loop"){(N=Se==null?void 0:Se.points)===null||N===void 0||N.forEach(function($e){$e.x+=O[0],$e.y+=O[1]});var ge=s.nodeMap[te.v],Ue=s.nodeMap[te.w];m[Fe].controlPoints=dQ(Se==null?void 0:Se.points,ge,Ue,sr,z,tn,tt)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:u,edges:m}}},e.prototype.getRadialPos=function(r,n,a,i,o){o===void 0&&(o=[0,1]);var s=(r-n[0])/a;s=s*(o[1]-o[0])+o[0];var u=s*2*Math.PI;return{x:Math.cos(u)*i,y:Math.sin(u)*i}},e.prototype.getType=function(){return"dagre"},e}(cQ.Base);yu.DagreLayout=hQ;var dQ=function(t,e,r,n,a,i,o){var s=(t==null?void 0:t.slice(1,t.length-1))||[];if(e&&r){var u=e.x,f=e.y,l=r.x,c=r.y;if(a&&(u=e.y,f=e.x,l=r.y,c=r.x),c!==f&&u!==l){var h=n.indexOf(f),d=n[h+1];if(d){var v=s[0],p=a?{x:(f+d)/2,y:(v==null?void 0:v.y)||l}:{x:(v==null?void 0:v.x)||l,y:(f+d)/2};(!v||i(v,p))&&s.unshift(p)}var g=n.indexOf(c),y=Math.abs(g-h);if(y===1)s=o(s,e,r),s.length||s.push(a?{x:(f+c)/2,y:u}:{x:u,y:(f+c)/2});else if(y>1){var m=n[g-1];if(m){var b=s[s.length-1],w=a?{x:(c+m)/2,y:(b==null?void 0:b.y)||l}:{x:(b==null?void 0:b.x)||u,y:(c+m)/2};(!b||i(b,w))&&s.push(w)}}}}return s},vl={};const ed={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function Tg(t={},e=ed){var r,n,a,i;const o=JSON.parse(JSON.stringify(e)),s=((r=t==null?void 0:t.graph)===null||r===void 0?void 0:r.meta)||{},u=((n=t==null?void 0:t.subScene)===null||n===void 0?void 0:n.meta)||{},f=((a=t==null?void 0:t.nodeSize)===null||a===void 0?void 0:a.meta)||{},l=((i=t==null?void 0:t.nodeSize)===null||i===void 0?void 0:i.node)||{},c=o.nodeSize.bridge;return{graph:{meta:Object.assign(o.graph.meta,s)},subScene:{meta:Object.assign(o.subScene.meta,u)},nodeSize:{meta:Object.assign(o.nodeSize.meta,f),node:Object.assign(o.nodeSize.node,l),bridge:c}}}function lk(t){return`◬${t}◬`}const su=lk("ROOT"),ck=lk("BRIDGE_GRAPH");var kn,Yo,uu,Ig;(function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"})(kn||(kn={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(Yo||(Yo={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(uu||(uu={})),function(t){t[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES"}(Ig||(Ig={}));var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(t,e){return t(e={exports:{}},e.exports),e.exports}var vQ=function(){this.__data__=[],this.size=0},wu=function(t,e){return t===e||t!=t&&e!=e},Zd=function(t,e){for(var r=t.length;r--;)if(wu(t[r][0],e))return r;return-1},pQ=Array.prototype.splice,gQ=function(t){var e=this.__data__,r=Zd(e,t);return!(r<0)&&(r==e.length-1?e.pop():pQ.call(e,r,1),--this.size,!0)},yQ=function(t){var e=this.__data__,r=Zd(e,t);return r<0?void 0:e[r][1]},mQ=function(t){return Zd(this.__data__,t)>-1},bQ=function(t,e){var r=this.__data__,n=Zd(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Os(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991},br={};br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Arguments]"]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object Boolean]"]=br["[object DataView]"]=br["[object Date]"]=br["[object Error]"]=br["[object Function]"]=br["[object Map]"]=br["[object Number]"]=br["[object Object]"]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object WeakMap]"]=!1;var oJ=function(t){return wa(t)&&Dm(t.length)&&!!br[ao(t)]},nv=function(t){return function(e){return t(e)}},lu=Om(function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,a=n&&n.exports===r&&hk.process,i=function(){try{var o=n&&n.require&&n.require("util").types;return o||a&&a.binding&&a.binding("util")}catch{}}();t.exports=i}),y_=lu&&lu.isTypedArray,yl=y_?nv(y_):oJ,sJ=Object.prototype.hasOwnProperty,pk=function(t,e){var r=Pr(t),n=!r&&fu(t),a=!r&&!n&&qo(t),i=!r&&!n&&!a&&yl(t),o=r||n||a||i,s=o?tJ(t.length,String):[],u=s.length;for(var f in t)!e&&!sJ.call(t,f)||o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||rv(f,u))||s.push(f);return s},uJ=Object.prototype,av=function(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||uJ)},gk=function(t,e){return function(r){return t(e(r))}},fJ=gk(Object.keys,Object),lJ=Object.prototype.hasOwnProperty,Pm=function(t){if(!av(t))return fJ(t);var e=[];for(var r in Object(t))lJ.call(t,r)&&r!="constructor"&&e.push(r);return e},Ei=function(t){return t!=null&&Dm(t.length)&&!pl(t)},io=function(t){return Ei(t)?pk(t):Pm(t)},cJ=function(t,e){return t&&gl(e,io(e),t)},hJ=function(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e},dJ=Object.prototype.hasOwnProperty,vJ=function(t){if(!Dn(t))return hJ(t);var e=av(t),r=[];for(var n in t)(n!="constructor"||!e&&dJ.call(t,n))&&r.push(n);return r},ts=function(t){return Ei(t)?pk(t,!0):vJ(t)},pJ=function(t,e){return t&&gl(e,ts(e),t)},yk=Om(function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,a=n&&n.exports===r?_a.Buffer:void 0,i=a?a.allocUnsafe:void 0;t.exports=function(o,s){if(s)return o.slice();var u=o.length,f=i?i(u):new o.constructor(u);return o.copy(f),f}}),mk=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++rs))return!1;var f=i.get(t),l=i.get(e);if(f&&l)return f==e&&l==t;var c=-1,h=!0,d=2&r?new kk:void 0;for(i.set(t,e),i.set(e,t);++c0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Aee),fv=function(t,e){return Zk(Hk(t,e,rs),t+"")},Kk=function(t,e,r,n){for(var a=t.length,i=r+-1;++i-1},Oee=function(){},Lee=Ys&&1/Um(new Ys([,-0]))[1]==1/0?function(t){return new Ys(t)}:Oee,Dee=function(t,e,r){var n=-1,a=Nee,i=t.length,o=!0,s=[],u=s;if(i>=200){var f=Lee(t);if(f)return Um(f);o=!1,a=Nk,u=new kk}else u=s;e:for(;++ni){var o=a;a=i,i=o}return a+""+i+""+(ot.isUndefined(n)?"\0":n)}function Fee(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var o=a;a=i,i=o}var s={v:a,w:i};return n&&(s.name=n),s}function n0(t,e){return yf(t,e.v,e.w,e.name)}tr.prototype._nodeCount=0,tr.prototype._edgeCount=0,tr.prototype.isDirected=function(){return this._isDirected},tr.prototype.isMultigraph=function(){return this._isMultigraph},tr.prototype.isCompound=function(){return this._isCompound},tr.prototype.setGraph=function(t){return this._label=t,this},tr.prototype.graph=function(){return this._label},tr.prototype.setDefaultNodeLabel=function(t){return ot.isFunction(t)||(t=ot.constant(t)),this._defaultNodeLabelFn=t,this},tr.prototype.nodeCount=function(){return this._nodeCount},tr.prototype.nodes=function(){return ot.keys(this._nodes)},tr.prototype.sources=function(){var t=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(t._in[e])})},tr.prototype.sinks=function(){var t=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(t._out[e])})},tr.prototype.setNodes=function(t,e){var r=arguments,n=this;return ot.each(t,function(a){r.length>1?n.setNode(a,e):n.setNode(a)}),this},tr.prototype.setNode=function(t,e){return ot.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},tr.prototype.node=function(t){return this._nodes[t]},tr.prototype.hasNode=function(t){return ot.has(this._nodes,t)},tr.prototype.removeNode=function(t){var e=this;if(ot.has(this._nodes,t)){var r=function(n){e.removeEdge(e._edgeObjs[n])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],ot.each(this.children(t),function(n){e.setParent(n)}),delete this._children[t]),ot.each(ot.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],ot.each(ot.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},tr.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ot.isUndefined(e))e="\0";else{for(var r=e+="";!ot.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},tr.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},tr.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!=="\0")return e}},tr.prototype.children=function(t){if(ot.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return ot.keys(e)}else{if(t==="\0")return this.nodes();if(this.hasNode(t))return[]}},tr.prototype.predecessors=function(t){var e=this._preds[t];if(e)return ot.keys(e)},tr.prototype.successors=function(t){var e=this._sucs[t];if(e)return ot.keys(e)},tr.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return ot.union(e,this.successors(t))},tr.prototype.isLeaf=function(t){return(this.isDirected()?this.successors(t):this.neighbors(t)).length===0},tr.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;ot.each(this._nodes,function(i,o){t(o)&&e.setNode(o,i)}),ot.each(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,r.edge(i))});var n={};function a(i){var o=r.parent(i);return o===void 0||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:a(o)}return this._isCompound&&ot.each(e.nodes(),function(i){e.setParent(i,a(i))}),e},tr.prototype.setDefaultEdgeLabel=function(t){return ot.isFunction(t)||(t=ot.constant(t)),this._defaultEdgeLabelFn=t,this},tr.prototype.edgeCount=function(){return this._edgeCount},tr.prototype.edges=function(){return ot.values(this._edgeObjs)},tr.prototype.setPath=function(t,e){var r=this,n=arguments;return ot.reduce(t,function(a,i){return n.length>1?r.setEdge(a,i,e):r.setEdge(a,i),i}),this},tr.prototype.setEdge=function(){var t,e,r,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(t=i.v,e=i.w,r=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(t=i,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),t=""+t,e=""+e,ot.isUndefined(r)||(r=""+r);var o=yf(this._isDirected,t,e,r);if(ot.has(this._edgeLabels,o))return a&&(this._edgeLabels[o]=n),this;if(!ot.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=a?n:this._defaultEdgeLabelFn(t,e,r);var s=Fee(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,O_(this._preds[e],t),O_(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this},tr.prototype.edge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r);return this._edgeLabels[n]},tr.prototype.hasEdge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r);return ot.has(this._edgeLabels,n)},tr.prototype.removeEdge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r),a=this._edgeObjs[n];return a&&(t=a.v,e=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],L_(this._preds[e],t),L_(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},tr.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var n=ot.values(r);return e?ot.filter(n,function(a){return a.v===e}):n}},tr.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var n=ot.values(r);return e?ot.filter(n,function(a){return a.w===e}):n}},tr.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))};var D_={Graph:Vm,version:"2.1.8"},Bee={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Gee(t),edges:zee(t)};return ot.isUndefined(t.graph())||(e.value=ot.clone(t.graph())),e},read:function(t){var e=new Vm(t.options).setGraph(t.value);return ot.each(t.nodes,function(r){e.setNode(r.v,r.value),r.parent&&e.setParent(r.v,r.parent)}),ot.each(t.edges,function(r){e.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),e}};function Gee(t){return ot.map(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),a={v:e};return ot.isUndefined(r)||(a.value=r),ot.isUndefined(n)||(a.parent=n),a})}function zee(t){return ot.map(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return ot.isUndefined(e.name)||(n.name=e.name),ot.isUndefined(r)||(n.value=r),n})}var jee=function(t){var e,r={},n=[];function a(i){ot.has(r,i)||(r[i]=!0,e.push(i),ot.each(t.successors(i),a),ot.each(t.predecessors(i),a))}return ot.each(t.nodes(),function(i){e=[],a(i),e.length&&n.push(e)}),n},eN=Qn;function Qn(){this._arr=[],this._keyIndices={}}Qn.prototype.size=function(){return this._arr.length},Qn.prototype.keys=function(){return this._arr.map(function(t){return t.key})},Qn.prototype.has=function(t){return ot.has(this._keyIndices,t)},Qn.prototype.priority=function(t){var e=this._keyIndices[t];if(e!==void 0)return this._arr[e].priority},Qn.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},Qn.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!ot.has(r,t)){var n=this._arr,a=n.length;return r[t]=a,n.push({key:t,priority:e}),this._decrease(a),!0}return!1},Qn.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},Qn.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},Qn.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,a=t;r>1].priority0&&(u=c.removeMin(),(f=l[u]).distance!==Number.POSITIVE_INFINITY);)s(u).forEach(h);return l}(t,String(e),r||Uee,n||function(a){return t.outEdges(a)})},Uee=ot.constant(1),$ee=function(t,e,r){return ot.transform(t.nodes(),function(n,a){n[a]=tN(t,a,e,r)},{})},rN=function(t){var e=0,r=[],n={},a=[];function i(o){var s=n[o]={onStack:!0,lowlink:e,index:e++};if(r.push(o),t.successors(o).forEach(function(l){ot.has(n,l)?n[l].onStack&&(s.lowlink=Math.min(s.lowlink,n[l].index)):(i(l),s.lowlink=Math.min(s.lowlink,n[l].lowlink))}),s.lowlink===s.index){var u,f=[];do u=r.pop(),n[u].onStack=!1,f.push(u);while(o!==u);a.push(f)}}return t.nodes().forEach(function(o){ot.has(n,o)||i(o)}),a},Xee=function(t){return ot.filter(rN(t),function(e){return e.length>1||e.length===1&&t.hasEdge(e[0],e[0])})},Wee=function(t,e,r){return function(n,a,i){var o={},s=n.nodes();return s.forEach(function(u){o[u]={},o[u][u]={distance:0},s.forEach(function(f){u!==f&&(o[u][f]={distance:Number.POSITIVE_INFINITY})}),i(u).forEach(function(f){var l=f.v===u?f.w:f.v,c=a(f);o[u][l]={distance:c,predecessor:u}})}),s.forEach(function(u){var f=o[u];s.forEach(function(l){var c=o[l];s.forEach(function(h){var d=c[u],v=f[h],p=c[h],g=d.distance+v.distance;g0;){if(r=i.removeMin(),ot.has(a,r))n.setEdge(r,a[r]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(r).forEach(o)}return n},tarjan:rN,topsort:a0},version:D_.version};try{id=Yee}catch{}id||(id=window.graphlib);var Sa=id,qee=function(t){return Ak(t,5)},Hf=function(t,e,r){if(!Dn(r))return!1;var n=typeof e;return!!(n=="number"?Ei(r)&&rv(e,r.length):n=="string"&&e in r)&&wu(r[e],t)},iN=Object.prototype,Hee=iN.hasOwnProperty,Zee=fv(function(t,e){t=Object(t);var r=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&Hf(e[0],e[1],a)&&(n=1);++r-1?a[i?e[o]:o]:void 0}},Qee=/^\s+|\s+$/g,Jee=/^[-+]0x[0-9a-f]+$/i,ete=/^0b[01]+$/i,tte=/^0o[0-7]+$/i,rte=parseInt,nte=function(t){if(typeof t=="number")return t;if(Zo(t))return NaN;if(Dn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Dn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Qee,"");var r=ete.test(t);return r||tte.test(t)?rte(t.slice(2),r?2:8):Jee.test(t)?NaN:+t},gh=function(t){return t?(t=nte(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:t===0?t:0},ate=function(t){var e=gh(t),r=e%1;return e==e?r?e-r:e:0},ite=Math.max,ote=Kee(function(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ate(r);return a<0&&(a=ite(n+a,0)),Kk(t,_i(e),a)}),oN=function(t){return t!=null&&t.length?Wm(t):[]},ste=function(t,e){return t==null?t:zm(t,Ck(e),ts)},ute=function(t){var e=t==null?0:t.length;return e?t[e-1]:void 0},fte=function(t,e){var r={};return e=_i(e),jm(t,function(n,a,i){ev(r,a,e(n,a,i))}),r},Ym=function(t,e,r){for(var n=-1,a=t.length;++ne},cte=function(t){return t&&t.length?Ym(t,rs,lte):void 0},Rg=function(t,e,r){(r!==void 0&&!wu(t[e],r)||r===void 0&&!(e in t))&&ev(t,e,r)},hte=Function.prototype,dte=Object.prototype,sN=hte.toString,vte=dte.hasOwnProperty,pte=sN.call(Object),gte=function(t){if(!wa(t)||ao(t)!="[object Object]")return!1;var e=iv(t);if(e===null)return!0;var r=vte.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&sN.call(r)==pte},R_=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},yte=function(t){return gl(t,ts(t))},mte=function(t,e,r,n,a,i,o){var s=R_(t,r),u=R_(e,r),f=o.get(u);if(f)Rg(t,r,f);else{var l=void 0,c=l===void 0;if(c){var h=Pr(u),d=!h&&qo(u),v=!h&&!d&&yl(u);l=u,h||d||v?Pr(s)?l=s:Qk(s)?l=mk(s):d?(c=!1,l=yk(u,!0)):v?(c=!1,l=_k(u,!0)):l=[]:gte(u)||fu(u)?(l=s,fu(s)?l=yte(s):Dn(s)&&!pl(s)||(l=Mk(u))):c=!1}c&&(o.set(u,l),a(l,u,n,i,o),o.delete(u)),Rg(t,r,l)}},bte=function t(e,r,n,a,i){e!==r&&zm(r,function(o,s){if(i||(i=new Vs),Dn(o))mte(e,r,s,n,t,a,i);else{var u=void 0;u===void 0&&(u=o),Rg(e,s,u)}},ts)},wte=function(t){return fv(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Hf(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ne||i&&o&&u&&!s&&!f||n&&o&&u||!r&&u||!a)return 1;if(!n&&!i&&!f&&t=s?u:u*(r[n]=="desc"?-1:1)}return t.index-e.index},Pte=function(t,e,r){e=e.length?qs(e,function(i){return Pr(i)?function(o){return uv(o,i.length===1?i[0]:i)}:i}):[rs];var n=-1;e=qs(e,nv(_i));var a=$k(t,function(i,o,s){return{criteria:qs(e,function(u){return u(i)}),index:++n,value:i}});return Ote(a,function(i,o){return Dte(i,o,r)})},Rte=fv(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Hf(t,e[0],e[1])?e=[]:r>2&&Hf(e[0],e[1],e[2])&&(e=[e[0]]),Pte(t,Wm(e),[])}),Fte=0,Bte=function(t){var e=++Fte;return Rk(t)+e},Gte=function(t,e,r){for(var n=-1,a=t.length,i=e.length,o={};++n0;--c)if(s=i[c].dequeue()){u=u.concat(i0(a,i,o,s,!0));break}}}return u}(r.graph,r.buckets,r.zeroIdx);return Z.flatten(Z.map(n,function(a){return t.outEdges(a.v,a.w)}),!0)},Wte=Z.constant(1);function i0(t,e,r,n,a){var i=a?[]:void 0;return Z.forEach(t.inEdges(n.v),function(o){var s=t.edge(o),u=t.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=s,Fg(e,r,u)}),Z.forEach(t.outEdges(n.v),function(o){var s=t.edge(o),u=o.w,f=t.node(u);f.in-=s,Fg(e,r,f)}),t.removeNode(n.v),i}function Fg(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var B_={run:function(t){var e=t.graph().acyclicer==="greedy"?Xte(t,function(r){return function(n){return r.edge(n).weight}}(t)):function(r){var n=[],a={},i={};function o(s){Z.has(i,s)||(i[s]=!0,a[s]=!0,Z.forEach(r.outEdges(s),function(u){Z.has(a,u.w)?n.push(u):o(u.w)}),delete a[s])}return Z.forEach(r.nodes(),o),n}(t);Z.forEach(e,function(r){var n=t.edge(r);t.removeEdge(r),n.forwardName=r.name,n.reversed=!0,t.setEdge(r.w,r.v,n,Z.uniqueId("rev"))})},undo:function(t){Z.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}},G_=Sa.Graph,Mn={addDummyNode:z_,simplify:function(t){var e=new G_().setGraph(t.graph());return Z.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),Z.forEach(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},a=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e},asNonCompoundGraph:function(t){var e=new G_({multigraph:t.isMultigraph()}).setGraph(t.graph());return Z.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),Z.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=Z.map(t.nodes(),function(r){var n={};return Z.forEach(t.outEdges(r),function(a){n[a.w]=(n[a.w]||0)+t.edge(a).weight}),n});return Z.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=Z.map(t.nodes(),function(r){var n={};return Z.forEach(t.inEdges(r),function(a){n[a.v]=(n[a.v]||0)+t.edge(a).weight}),n});return Z.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,a=t.x,i=t.y,o=e.x-a,s=e.y-i,u=t.width/2,f=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*f?(s<0&&(f=-f),r=f*o/s,n=f):(o<0&&(u=-u),r=u,n=u*s/o),{x:a+r,y:i+n}},buildLayerMatrix:function(t){var e=Z.map(Z.range(j_(t)+1),function(){return[]});return Z.forEach(t.nodes(),function(r){var n=t.node(r),a=n.rank;Z.isUndefined(a)||(e[a][n.order]=r)}),e},normalizeRanks:function(t){var e=Z.min(Z.map(t.nodes(),function(r){return t.node(r).rank}));Z.forEach(t.nodes(),function(r){var n=t.node(r);Z.has(n,"rank")&&(n.rank-=e)})},removeEmptyRanks:function(t){var e=Z.min(Z.map(t.nodes(),function(i){return t.node(i).rank})),r=[];Z.forEach(t.nodes(),function(i){var o=t.node(i).rank-e;r[o]||(r[o]=[]),r[o].push(i)});var n=0,a=t.graph().nodeRankFactor;Z.forEach(r,function(i,o){Z.isUndefined(i)&&o%a!=0?--n:n&&Z.forEach(i,function(s){t.node(s).rank+=n})})},addBorderNode:function(t,e,r,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),z_(t,"border",a,e)},maxRank:j_,partition:function(t,e){var r={lhs:[],rhs:[]};return Z.forEach(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r},time:function(t,e){var r=Z.now();try{return e()}finally{console.log(t+" time: "+(Z.now()-r)+"ms")}},notime:function(t,e){return e()}};function z_(t,e,r,n){var a;do a=Z.uniqueId(n);while(t.hasNode(a));return r.dummy=e,t.setNode(a,r),a}function j_(t){return Z.max(Z.map(t.nodes(),function(e){var r=t.node(e).rank;if(!Z.isUndefined(r))return r}))}var U_={run:function(t){t.graph().dummyChains=[],Z.forEach(t.edges(),function(e){(function(r,n){var a,i,o,s=n.v,u=r.node(s).rank,f=n.w,l=r.node(f).rank,c=n.name,h=r.edge(n),d=h.labelRank;if(l!==u+1){for(r.removeEdge(n),o=0,++u;uo.lim&&(s=o,u=!0);var f=Z.filter(e.edges(),function(l){return u===$_(t,t.node(l.v),s)&&u!==$_(t,t.node(l.w),s)});return Z.minBy(f,function(l){return Zte(e,l)})}function gN(t,e,r,n){var a=r.v,i=r.w;t.removeEdge(a,i),t.setEdge(n.v,n.w,{}),Hm(t),qm(t,e),function(o,s){var u=Z.find(o.nodes(),function(l){return!s.node(l).parent}),f=Qte(o,u);f=f.slice(1),Z.forEach(f,function(l){var c=o.node(l).parent,h=s.edge(l,c),d=!1;h||(h=s.edge(c,l),d=!0),s.node(l).rank=s.node(c).rank+(d?h.minlen:-h.minlen)})}(t,e)}function $_(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}Lo.initLowLimValues=Hm,Lo.initCutValues=qm,Lo.calcCutValue=hN,Lo.leaveEdge=vN,Lo.enterEdge=pN,Lo.exchangeEdges=gN;var yN=fN,rre=function(t){switch(t.graph().ranker){case"network-simplex":X_(t);break;case"tight-tree":(function(e){yN(e),cN(e)})(t);break;case"longest-path":nre(t);break;default:X_(t)}},nre=yN;function X_(t){tre(t)}var are=function(t){var e=function(r){var n={},a=0;function i(o){var s=a;Z.forEach(r.children(o),i),n[o]={low:s,lim:a++}}return Z.forEach(r.children(),i),n}(t);Z.forEach(t.graph().dummyChains,function(r){for(var n=t.node(r),a=n.edgeObj,i=function(c,h,d,v){var p,g,y=[],m=[],b=Math.min(h[d].low,h[v].low),w=Math.max(h[d].lim,h[v].lim);p=d;do p=c.parent(p),y.push(p);while(p&&(h[p].low>b||w>h[p].lim));for(g=p,p=v;(p=c.parent(p))!==g;)m.push(p);return{path:y.concat(m.reverse()),lca:g}}(t,e,a.v,a.w),o=i.path,s=i.lca,u=0,f=o[u],l=!0;r!==a.w;){if(n=t.node(r),l){for(;(f=o[u])!==s&&t.node(f).maxRank0;)l%2&&(c+=s[l+1]),s[l=l-1>>1]+=f.weight;u+=f.weight*c})),u}var fre=function(t,e){return Z.map(e,function(r){var n=t.inEdges(r);if(n.length){var a=Z.reduce(n,function(i,o){var s=t.edge(o),u=t.node(o.v);return{sum:i.sum+s.weight*u.order,weight:i.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}return{v:r}})},lre=function(t,e){var r={};return Z.forEach(t,function(n,a){var i=r[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:a};Z.isUndefined(n.barycenter)||(i.barycenter=n.barycenter,i.weight=n.weight)}),Z.forEach(e.edges(),function(n){var a=r[n.v],i=r[n.w];Z.isUndefined(a)||Z.isUndefined(i)||(i.indegree++,a.out.push(r[n.w]))}),function(n){var a=[];function i(u){return function(f){f.merged||(Z.isUndefined(f.barycenter)||Z.isUndefined(u.barycenter)||f.barycenter>=u.barycenter)&&function(l,c){var h=0,d=0;l.weight&&(h+=l.barycenter*l.weight,d+=l.weight),c.weight&&(h+=c.barycenter*c.weight,d+=c.weight),l.vs=c.vs.concat(l.vs),l.barycenter=h/d,l.weight=d,l.i=Math.min(c.i,l.i),c.merged=!0}(u,f)}}function o(u){return function(f){f.in.push(u),--f.indegree==0&&n.push(f)}}for(;n.length;){var s=n.pop();a.push(s),Z.forEach(s.in.reverse(),i(s)),Z.forEach(s.out,o(s))}return Z.map(Z.filter(a,function(u){return!u.merged}),function(u){return Z.pick(u,["vs","i","barycenter","weight"])})}(Z.filter(r,function(n){return!n.indegree}))},cre=function(t,e){var r=Mn.partition(t,function(c){return Z.has(c,"barycenter")}),n=r.lhs,a=Z.sortBy(r.rhs,function(c){return-c.i}),i=[],o=0,s=0,u=0;n.sort((f=!!e,function(c,h){return c.barycenterh.barycenter?1:f?h.i-c.i:c.i-h.i})),u=Z_(i,a,u),Z.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,s+=c.weight,u=Z_(i,a,u)});var f,l={vs:Z.flatten(i,!0)};return s&&(l.barycenter=o/s,l.weight=s),l};function Z_(t,e,r){for(var n;e.length&&(n=Z.last(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}var hre=function t(e,r,n,a){var i=e.children(r),o=e.node(r),s=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};s&&(i=Z.filter(i,function(p){return p!==s&&p!==u}));var l=fre(e,i);Z.forEach(l,function(p){if(e.children(p.v).length){var g=t(e,p.v,n,a);f[p.v]=g,Z.has(g,"barycenter")&&(y=p,m=g,Z.isUndefined(y.barycenter)?(y.barycenter=m.barycenter,y.weight=m.weight):(y.barycenter=(y.barycenter*y.weight+m.barycenter*m.weight)/(y.weight+m.weight),y.weight+=m.weight))}var y,m});var c=lre(l,n);(function(p,g){Z.forEach(p,function(y){y.vs=Z.flatten(y.vs.map(function(m){return g[m]?g[m].vs:m}),!0)})})(c,f);var h=cre(c,a);if(s&&(h.vs=Z.flatten([s,h.vs,u],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),v=e.node(e.predecessors(u)[0]);Z.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+v.order)/(h.weight+2),h.weight+=2}return h},dre=Sa.Graph,vre=function(t,e,r){var n=function(i){for(var o;i.hasNode(o=Z.uniqueId("_root")););return o}(t),a=new dre({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return Z.forEach(t.nodes(),function(i){var o=t.node(i),s=t.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(a.setNode(i),a.setParent(i,s||n),Z.forEach(t[r](i),function(u){var f=u.v===i?u.w:u.v,l=a.edge(f,i),c=Z.isUndefined(l)?0:l.weight;a.setEdge(f,i,{weight:t.edge(u).weight+c})}),Z.has(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),a},pre=function(t,e,r){var n,a={};Z.forEach(r,function(i){for(var o,s,u=t.parent(i);u;){if((o=t.parent(u))?(s=a[o],a[o]=u):(s=n,n=u),s&&s!==u)return void e.setEdge(s,u);u=o}})},gre=Sa.Graph,yre=function(t){var e=Mn.maxRank(t),r=K_(t,Z.range(1,e+1),"inEdges"),n=K_(t,Z.range(e-1,-1,-1),"outEdges"),a=ore(t);Q_(t,a);for(var i,o=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){mre(s%2?r:n,s%4>=2),a=Mn.buildLayerMatrix(t);var f=sre(t,a);fu)&&bN(r,c,f)})})}return Z.reduce(e,function(a,i){var o,s=-1,u=0;return Z.forEach(i,function(f,l){if(t.node(f).dummy==="border"){var c=t.predecessors(f);c.length&&(o=t.node(c[0]).order,n(i,u,l,s,o),u=l,s=o)}n(i,u,i.length,o,a.length)}),i}),r}function bN(t,e,r){if(e>r){var n=e;e=r,r=n}var a=t[e];a||(t[e]=a={}),a[r]=!0}function _re(t,e,r){if(e>r){var n=e;e=r,r=n}return Z.has(t[e],r)}function Sre(t,e,r,n){var a={},i={},o={};return Z.forEach(e,function(s){Z.forEach(s,function(u,f){a[u]=u,i[u]=u,o[u]=f})}),Z.forEach(e,function(s){var u=-1;Z.forEach(s,function(f){var l=n(f);if(l.length)for(var c=((l=Z.sortBy(l,function(p){return o[p]})).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var v=l[h];i[f]===f&&unew Wre(r)).forEach(r=>{e.nodes[r.name]=r,r.inputs.forEach(n=>{(function(a,i,o){o.name!==i.name&&a.edges.push(Object.assign(Object.assign({},o.attr),{v:o.name,w:i.name}))})(e,r,n)})}),e}class qre{constructor(e,r={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=Yo.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=kn.META,this.path=[],this.name=e,this.metaGraph=Zm(e,uu.META,r)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}leaves(){let e,r=[],n=[this];for(;n.length;){let a=n.shift();a.isGroupNode?(e=a.metaGraph,e.nodes().forEach(i=>n.push(e.node(i)))):r.push(a.name)}return r}}class Hre{constructor(e,r){this.v=e,this.w=r,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,r){this.baseEdgeList.push(e)}}function xN(t,e={}){return new qre(t,e)}function EN(t,e){return new Hre(t,e)}function Zm(t,e,r){const n=r||{},a=new $re.Graph(n);return a.setGraph({name:t,rankdir:n.rankdir,type:e,align:n.align}),a}class Zre{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=xN(su,this.graphOptions),this.index[su]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,r){this.index[e]=r}getBridgeGraph(e){const r=this.index[e];if(!r)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in r))return null;const n=r;if(n.bridgeGraph)return n.bridgeGraph;const a=Zm(ck,uu.BRIDGE,this.graphOptions);if(n.bridgeGraph=a,!r.parentNode||!("metaGraph"in r.parentNode))return a;const i=r.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(o=>{o.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const u=s.w===e;o.edge(s).baseEdgeList.forEach(f=>{const[l,c]=u?[f.w,s.v]:[f.v,s.w],h=this.getChildName(e,l),d={v:u?c:h,w:u?h:c};let v=a.edge(d);v||(v=EN(d.v,d.w),v.inbound=u,a.setEdge(d.v,d.w,v)),v.addBaseEdge(f,this)})})}),a}getChildName(e,r){let n=this.index[r];for(;n;){if(n.parentNode&&n.parentNode.name===e)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+r)}getPredecessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!0)}getSuccessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!1)}getOneWayEdges(e,r){const n=[];if(!e.parentNode||!e.parentNode.isGroupNode)return n;const a=e.parentNode,i=a.metaGraph,o=this.getBridgeGraph(a.name);return J_(i,e,r,n),J_(o,e,r,n),n}}function Kre(t,e){const{rankDirection:r,align:n}=e,a=new Zre({rankdir:r,align:n});return function(i,o){Object.keys(o.nodes).forEach(s=>{const u=o.nodes[s],f=u.path;let l=i.root;l.depth=Math.max(f.length,l.depth);for(let c=0;c{let d=0;for(;c;)h[d++]=c.name,c=c.parentNode;return d-1};o.edges.forEach(c=>{u=[],f=[];let h=l(o.nodes[c.v],u),d=l(o.nodes[c.w],f);for(;u[h]===f[d];)if(h--,d--,h<0||d<0)throw Error("No difference found between ancestor paths.");const v=s[u[h+1]],p=u[h],g=f[d];let y=v.metaGraph.edge(p,g);y||(y=EN(p,g),v.metaGraph.setEdge(p,g,y)),y.addBaseEdge(c,i)})}(a,t),a}function J_(t,e,r,n){(r?t.inEdges(e.name):t.outEdges(e.name)).forEach(a=>{const i=t.edge(a);n.push(i)})}class Qre{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new t2(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const r=this.index[e];if(r.node.type!==kn.META)return;const n=r,a=n.node.metaGraph,i=n.coreGraph;a.nodes().forEach(l=>{const c=this.getOrCreateRenderNodeByName(l);i.setNode(l,c)}),a.edges().forEach(l=>{const c=a.edge(l),h=new e2(c);i.setEdge(l.v,l.w,h)});const o=n.node.parentNode;if(!o)return;const s=this.getRenderNodeByName(o.name),u=(l,...c)=>c.concat([l?"IN":"OUT"]).join("~~"),f=this.hierarchy.getBridgeGraph(e);f.edges().forEach(l=>{const c=f.edge(l),h=!!a.node(l.w),[d,v]=h?[l.w,l.v]:[l.v,l.w],p=x=>{const E=h?{v:x,w:e}:{v:e,w:x};return s.coreGraph.edge(E)};let g=p(v);g||(g=p(u(h,v,o.name)));const y=u(h,e),m=u(h,v,e);let b=i.node(m);if(!b){let x=i.node(y);if(!x){const _={name:y,type:kn.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:Yo.UNSPECIFIED,inbound:h,attr:{}};x=new mh(_),this.index[y]=x,i.setNode(y,x)}const E={name:m,type:kn.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:Yo.UNSPECIFIED,inbound:h,attr:{}};b=new mh(E),this.index[m]=b,i.setNode(m,b),i.setParent(m,y),x.node.cardinality++}const w=new e2(c);w.adjoiningMetaEdge=g,h?i.setEdge(m,d,w):i.setEdge(d,m,w)})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const r=this.getNodeByName(e);return r?(this.index[e]=r.isGroupNode?new t2(r,this.hierarchy.graphOptions):new mh(r),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class mh{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class e2{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class t2 extends mh{constructor(e,r){super(e);const n=e.metaGraph.graph();r.compound=!0,this.coreGraph=Zm(n.name,uu.CORE,r)}}function _N(t,e){t.node.isGroupNode&&function(r,n){const a=Tg(n);r.coreGraph.nodes().map(i=>r.coreGraph.node(i)).forEach(i=>{var o,s,u,f,l,c;const{height:h,width:d}=i;switch(i.node.type){case kn.NODE:Object.assign(i,a.nodeSize.node),i.height=h||a.nodeSize.node.height,i.width=d||a.nodeSize.node.width;break;case kn.BRIDGE:Object.assign(i,a.nodeSize.bridge);break;case kn.META:i.expanded?_N(i,n):(Object.assign(i,a.nodeSize.meta),i.height=a.nodeSize.meta.height,i.width=a.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+i.node.type)}if(!i.expanded){const v=i.attr;(function(p,g=!1){if(p.coreBox.width=p.width,p.coreBox.height=p.height,!g){const y=`${p.displayName}`.length,m=3;p.width=Math.max(p.coreBox.width,y*m)}})(i,n&&(i.node.type===0&&!!(!((s=(o=n==null?void 0:n.nodeSize)===null||o===void 0?void 0:o.meta)===null||s===void 0)&&s.width)||i.node.type===1&&(!!(!((f=(u=n==null?void 0:n.nodeSize)===null||u===void 0?void 0:u.node)===null||f===void 0)&&f.width)||!!v.width)||i.node.type===2&&!!(!((c=(l=n==null?void 0:n.nodeSize)===null||l===void 0?void 0:l.bridge)===null||c===void 0)&&c.width)))}})}(t,e),t.node.type===kn.META&&function(r,n){const a=Tg(n),i=a.subScene.meta;Object.assign(r,i);const{nodeSep:o,rankSep:s,edgeSep:u,align:f}=a.graph.meta,l={nodesep:o,ranksep:s,edgesep:u,align:f};Object.assign(r.coreBox,function(d,v){const{ranksep:p,nodesep:g,edgesep:y,align:m}=v;Object.assign(d.graph(),{ranksep:p,nodesep:g,edgesep:y,align:m});const b=[];if(d.nodes().forEach(S=>{d.node(S).node.type!==kn.BRIDGE&&b.push(S)}),!b.length)return{width:0,height:0};Xre(d);let w=1/0,x=1/0,E=-1/0,_=-1/0;return b.forEach(S=>{const A=d.node(S),M=.5*A.width,C=A.x-M,I=A.x+M;w=CE?I:E;const k=.5*A.height,O=A.y-k,B=A.y+k;x=O_?B:_}),d.edges().forEach(S=>{const A=d.edge(S),M=d.node(A.metaEdge.v),C=d.node(A.metaEdge.w);if(A.points.length===3&&function(O){let B=r2(O[0],O[1]);for(let L=1;L1)return!1;B=z}return!0}(A.points)){if(M!=null){const O=M.expanded?M.x:Bg(M);A.points[0].x=O}if(C!=null){const O=C.expanded?C.x:Bg(C);A.points[2].x=O}A.points=[A.points[0],A.points[1]]}const I=A.points[A.points.length-2];C!=null&&(A.points[A.points.length-1]=n2(I,C));const k=A.points[1];M!=null&&(A.points[0]=n2(k,M)),A.points.forEach(O=>{w=O.xE?O.x:E,x=O.y_?O.y:_})}),d.nodes().forEach(S=>{const A=d.node(S);A.x-=w,A.y-=x}),d.edges().forEach(S=>{d.edge(S).points.forEach(A=>{A.x-=w,A.y-=x})}),{width:E-w,height:_-x}}(r.coreGraph,l));let c=0;r.coreGraph.nodeCount()>0&&c++;const h=c<=1?0:c;r.coreBox.width+=h+h,r.coreBox.height=i.labelHeight+r.coreBox.height,r.width=r.coreBox.width+i.paddingLeft+i.paddingRight,r.height=r.paddingTop+r.coreBox.height+r.paddingBottom}(t,e)}function r2(t,e){const r=e.x-t.x,n=e.y-t.y;return 180*Math.atan(n/r)/Math.PI}function Bg(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function n2(t,e){const r=e.expanded?e.x:Bg(e),n=e.y,a=t.x-r,i=t.y-n;let o,s,u=e.expanded?e.width:e.coreBox.width,f=e.expanded?e.height:e.coreBox.height;return Math.abs(i)*u/2>Math.abs(a)*f/2?(i<0&&(f=-f),o=i===0?0:f/2*a/i,s=f/2):(a<0&&(u=-u),o=u/2,s=a===0?0:u/2*i/a),{x:r+o,y:n+s}}function Jre(t,e,r){var n,a,i,o;const s=t.nodes.filter((c,h,d)=>d.findIndex(v=>v.id===c.id)!==h).map(c=>c.id);if(s.length)throw new Error(`Duplicated ids found: ${s.join(", ")}`);const u=function(c){const h={nodes:[]},d=c.compound,v=Object.keys(d||{}),p=new Map,g=(m,b=[])=>{if(p.has(m))return p.get(m);for(let w=0;wc.edges.filter(b=>b.w===m).map(b=>({name:b.v}));return c.nodes.forEach(m=>{const b=m.id,w=[...g(b),b];let x=y(b);h.nodes.push({name:b,path:w,inputs:x,width:m.width,height:m.height,attr:Object.assign({},m)})}),h}(t),f=function(c,h){const d=(p,g)=>{for(let y of g.values())if(y.includes(p))return!0;return!1},v=(p,g=[])=>{if(Object.keys(p).length===0)return[...new Set(g)];const y=new Map(Object.keys(p).map(b=>[b,p[b]])),m={};for(let[b,w]of y)d(b,y)?m[b]=w:g=g.concat(b,w);return v(m,g)};return v(c).filter(p=>h.includes(p))}(t.compound||{},(e==null?void 0:e.expanded)||[]),l=function(c,h){return function(d){return new Qre(d)}(Kre(Yre(c),h))}(u,{rankDirection:((a=(n=r==null?void 0:r.graph)===null||n===void 0?void 0:n.meta)===null||a===void 0?void 0:a.rankDir)||(e==null?void 0:e.rankDirection)||ed.graph.meta.rankDir,align:((o=(i=r==null?void 0:r.graph)===null||i===void 0?void 0:i.meta)===null||o===void 0?void 0:o.align)||ed.graph.meta.align});return function(c,h){h.forEach(d=>{const v=c.getRenderInfoNodes().find(y=>y.displayName===d);let p=v&&v.node&&v.node.name||"";const g=c.getRenderNodeByName(p);if(!g)throw new Error(`No nodes found: ${p}`);g.expanded=!0,c.buildSubHierarchy(p)})}(l,f),_N(l.root,r),SN(l.root)}function ene(t,e=!1){const r=JSON.parse(JSON.stringify(t)),n={nodes:[r],edges:[...r.edges]};return r.nodes.forEach(function a(i){(i.type===0||i.type===1)&&n.nodes.push(i),i.type===0&&(n.edges=n.edges.concat(i.edges)),Array.isArray(i.nodes)&&i.nodes.forEach(a)}),e&&n.nodes.forEach(a=>{const i=n.nodes.find(o=>o.id===a.parentNodeName);if(i){const o=i.x-i.width/2+i.paddingLeft,s=i.y-i.height/2+i.labelHeight+i.paddingTop;i.id!==su&&(a.x+=o,a.y+=s),a.type===0&&a.edges.forEach(u=>{u.points.forEach(f=>{f.x+=a.x-a.width/2+a.paddingLeft,f.y+=a.y-a.height/2+a.labelHeight+a.paddingTop})})}}),n}function tne(t,e,r,n){var a,i;let o=[];const s=((a=r.find(c=>c.id===t))===null||a===void 0?void 0:a.path)||[],u=((i=r.find(c=>c.id===e))===null||i===void 0?void 0:i.path)||[],f=[su,...s].slice(0,s.length).reverse(),l=[su,...u].slice(0,u.length);return f.forEach(c=>{const h=r.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||t)&&v.w===((n==null?void 0:n.w)||e))))}),l.filter(c=>!f.includes(c)).forEach(c=>{const h=r.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||t)&&v.w===((n==null?void 0:n.w)||e))))}),o}function SN(t){const e=t.coreGraph.nodes().map(n=>t.coreGraph.node(n));return Object.assign(Object.assign({},a2(t)),{expanded:t.expanded,nodes:t.expanded?(r=e,r.map(n=>n.node.type===kn.META?SN(n):a2(n))):[],edges:t.expanded?rne(t):[]});var r}function a2(t){return{id:t.node.name,name:t.node.name,type:t.node.type,cardinality:t.node.cardinality,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,path:t.node.path}}function rne(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:r})=>{const n=function(a,i){const o=i.points.map(s=>Object.assign({},s));if(i.adjoiningMetaEdge){const s=i.adjoiningMetaEdge.points,u=i.metaEdge.inbound,f=u?s[s.length-1]:s[0],l=o[u?0:o.length-1],c=a.x-a.width/2,h=a.y-a.height/2,d=f.x-c,v=f.y-h,p=-a.paddingLeft,g=-(a.paddingTop+a.labelHeight);l.x=d+p,l.y=v+g}return o}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:e.w,v:e.v,points:n,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList,parentNodeName:t.node.name}})}const nne=Object.freeze(Object.defineProperty({__proto__:null,BRIDGE_GRAPH_NAME:ck,get GraphType(){return uu},get HierarchyNodeType(){return Ig},get InclusionType(){return Yo},LAYOUT_CONFIG:ed,get NodeType(){return kn},ROOT_NAME:su,buildGraph:Jre,flatGraph:ene,getEdges:tne,mergeConfig:Tg},Symbol.toStringTag,{value:"Module"})),ane=Ka(nne);var ine=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),va=me&&me.__assign||function(){return va=Object.assign||function(t){for(var e,r=1,n=arguments.length;rf.x&&(s=f.x),u>f.y&&(u=f.y)}),n.forEach(function(f){f.points.forEach(function(l){s>l.x&&(s=l.x),u>l.y&&(u=l.y)})}),o[0]=i[0]-s,o[1]=i[1]-u}return o},e.prototype.updateNodePosition=function(r,n){var a=this,i=a.combos,o=a.nodes,s=a.edges,u=a.anchorPoint,f=a.graphSettings,l=this.getBegin(r,n);r.forEach(function(c){var h,d=c.x,v=c.y,p=c.id,g=c.type,y=c.coreBox;if(g===Hn.HierarchyNodeType.META&&p!==Hn.ROOT_NAME){var m=i.findIndex(function(_){return _.id===p}),b=(h=f==null?void 0:f.subScene)===null||h===void 0?void 0:h.meta;i[m].offsetX=d+l[0],i[m].offsetY=v+l[1],i[m].fixSize=[y.width,y.height],i[m].fixCollapseSize=[y.width,y.height],c.expanded?i[m].padding=[b==null?void 0:b.paddingTop,b==null?void 0:b.paddingRight,b==null?void 0:b.paddingBottom,b==null?void 0:b.paddingLeft]:i[m].padding=[0,0,0,0]}else if(g===Hn.HierarchyNodeType.OP){var m=o.findIndex(function(S){return S.id===p});if(o[m].x=d+l[0],o[m].y=v+l[1],u){var w=[],x=n.filter(function(S){return S.v===p}),E=n.filter(function(S){return S.w===p});x.length>0&&x.forEach(function(S){var A=S.points[0],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.sourceAnchor=w.length-1)})}),E.length>0&&E.forEach(function(S){var A=S.points[S.points.length-1],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.targetAnchor=w.length-1)})}),o[m].anchorPoints=w.length>0?w:o[m].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(r,n){var a=this,i=a.combos,o=a.edges,s=a.controlPoints,u=this.getBegin(r,n);s&&(i.forEach(function(f){f.inEdges=[],f.outEdges=[]}),o.forEach(function(f){var l,c,h,d,v=r.find(function(_){return _.id===f.source}),p=r.find(function(_){return _.id===f.target}),g=[],y=[];if(v&&p)y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,r);else if(!v||!p){var m=a.getNodePath(f.source),b=a.getNodePath(f.target),w=m.reverse().slice(v?0:1).find(function(_){return r.find(function(S){return S.id===_})}),x=b.reverse().slice(p?0:1).find(function(_){return r.find(function(S){return S.id===_})});v=r.find(function(_){return _.id===w}),p=r.find(function(_){return _.id===x}),y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,r,{v:f.source,w:f.target})}if(g=y.reduce(function(_,S){return Ms(Ms([],_,!0),S.points.map(function(A){return va(va({},A),{x:A.x+u[0],y:A.y+u[1]})}),!0)},[]),g=g.slice(1,-1),f.controlPoints=g,(p==null?void 0:p.type)===Hn.NodeType.META){var E=i.findIndex(function(_){return _.id===(p==null?void 0:p.id)});if(!i[E]||!((l=i[E].inEdges)===null||l===void 0)&&l.some(function(_){return _.source===v.id&&_.target===p.id}))return;(c=i[E].inEdges)===null||c===void 0||c.push({source:v.id,target:p.id,controlPoints:g})}if((v==null?void 0:v.type)===Hn.NodeType.META){var E=i.findIndex(function(S){return S.id===(v==null?void 0:v.id)});if(!i[E]||!((h=i[E].outEdges)===null||h===void 0)&&h.some(function(S){return S.source===v.id&&S.target===p.id}))return;(d=i[E].outEdges)===null||d===void 0||d.push({source:v.id,target:p.id,controlPoints:g})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(r){return r.every(function(n){return n.layoutOrder!==void 0})||r.forEach(function(n,a){n.layoutOrder=a}),r.sort(function(n,a){return n.layoutOrder-a.layoutOrder})},e}(one.Base);vl.DagreCompoundLayout=sne;var Km={},lv={},Qm={};const une=Object.prototype.toString;function ud(t){const e=une.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function fne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ud(t))throw new TypeError("input must be an array");if(t.length===0)throw new TypeError("input must not be empty");var r=e.fromIndex,n=r===void 0?0:r,a=e.toIndex,i=a===void 0?t.length:a;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=t[n],s=n+1;so&&(o=t[s]);return o}function lne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ud(t))throw new TypeError("input must be an array");if(t.length===0)throw new TypeError("input must not be empty");var r=e.fromIndex,n=r===void 0?0:r,a=e.toIndex,i=a===void 0?t.length:a;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=t[n],s=n+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(ud(t)){if(t.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var r;if(e.output!==void 0){if(!ud(e.output))throw new TypeError("output option must be an array if specified");r=e.output}else r=new Array(t.length);var n=lne(t),a=fne(t);if(n===a)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=e.min,o=i===void 0?e.autoMinMax?n:0:i,s=e.max,u=s===void 0?e.autoMinMax?a:1:s;if(o>=u)throw new RangeError("min option must be smaller than max option");for(var f=(u-o)/(a-n),l=0;l>n);return this},t.prototype.signPropagatingRightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>n.get(a,i));return this},t.signPropagatingRightShift=function(n,a){return new e(n).signPropagatingRightShift(a)},t.prototype.rightShift=function(n){return typeof n=="number"?this.rightShiftS(n):this.rightShiftM(n)},t.prototype.rightShiftS=function(n){for(let a=0;a>>n);return this},t.prototype.rightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>>n.get(a,i));return this},t.rightShift=function(n,a){return new e(n).rightShift(a)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let n=0;nn)throw new RangeError("Row index out of range")}function ea(t,e,r){let n=r?t.columns:t.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function Rs(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function Fs(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function CN(t,e,r){return{row:TN(t,e),column:IN(t,r)}}function TN(t,e){if(typeof e!="object")throw new TypeError("unexpected type for row indices");if(e.some(n=>n<0||n>=t.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function IN(t,e){if(typeof e!="object")throw new TypeError("unexpected type for column indices");if(e.some(n=>n<0||n>=t.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function Gg(t,e,r,n,a){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(Bc("startRow",e),Bc("endRow",r),Bc("startColumn",n),Bc("endColumn",a),e>r||n>a||e<0||e>=t.rows||r<0||r>=t.rows||n<0||n>=t.columns||a<0||a>=t.columns)throw new RangeError("Submatrix indices are out of range")}function cv(t,e=0){let r=[];for(let n=0;n=i)throw new RangeError("min must be smaller than max");let s=i-a,u=new lt(e,r);for(let f=0;fn?(i=!0,n=r):(a=!1,i=!0);e++}return a}isReducedEchelonForm(){let e=0,r=0,n=-1,a=!0,i=!1;for(;en?(i=!0,n=r):(a=!1,i=!0);for(let o=r+1;oe.get(a,n)&&(a=i);if(e.get(a,n)===0)n++;else{e.swapRows(r,a);let i=e.get(r,n);for(let o=n;o=0;)if(e.maxRow(a)===0)a--;else{let i=0,o=!1;for(;ie&&(e=this.get(r,n));return e}maxIndex(){let e=this.get(0,0),r=[0,0];for(let n=0;ne&&(e=this.get(n,a),r[0]=n,r[1]=a);return r}min(){let e=this.get(0,0);for(let r=0;rr&&(r=this.get(e,n));return r}maxRowIndex(e){Jn(this,e);let r=this.get(e,0),n=[e,0];for(let a=1;ar&&(r=this.get(e,a),n[1]=a);return n}minRow(e){Jn(this,e);let r=this.get(e,0);for(let n=1;nr&&(r=this.get(n,e));return r}maxColumnIndex(e){ea(this,e);let r=this.get(0,e),n=[0,e];for(let a=1;ar&&(r=this.get(a,e),n[0]=a);return n}minColumn(e){ea(this,e);let r=this.get(0,e);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;i=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;in||r<0||r>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let a=new lt(e.length,n-r+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${e[i]}`);a.set(i,o-r,this.get(e[i],o))}return a}subMatrixColumn(e,r,n){if(r===void 0&&(r=0),n===void 0&&(n=this.rows-1),r>n||r<0||r>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let a=new lt(n-r+1,e.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${e[i]}`);a.set(o-r,i,this.get(o,e[i]))}return a}setSubMatrix(e,r,n){e=lt.checkMatrix(e);let a=r+e.rows-1,i=n+e.columns-1;Gg(this,r,a,n,i);for(let o=0;o0)if(this.data=[],Number.isInteger(r)&&r>0)for(let n=0;n"u"&&(r=e,e=this.columns),ea(this,e,!0),r=Fs(this,r);for(let n=0;nMath.abs(v[l])&&(l=s);if(l!==u){for(f=0;f=0;f--){for(u=0;uo?a.set(i,o,e.get(i,o)):i===o?a.set(i,o,1):a.set(i,o,0);return a}get upperTriangularMatrix(){let e=this.LU,r=e.rows,n=e.columns,a=new lt(r,n);for(let i=0;iMath.abs(e)?(r=e/t,Math.abs(t)*Math.sqrt(1+r*r)):e!==0?(r=t/e,Math.abs(e)*Math.sqrt(1+r*r)):0}class zg{constructor(e){e=Wn.checkMatrix(e);let r=e.clone(),n=e.rows,a=e.columns,i=new Float64Array(a),o,s,u,f;for(u=0;u=0;f--){for(u=0;u=0;s--){for(i=0;i=0;M--)if(v[M]!==0){for(let C=M+1;C=0;M--){if(M0;){let M,C;for(M=_-2;M>=-1&&M!==-1;M--){const I=Number.MIN_VALUE+A*Math.abs(v[M]+Math.abs(v[M+1]));if(Math.abs(y[M])<=I||Number.isNaN(y[M])){y[M]=0;break}}if(M===_-2)C=4;else{let I;for(I=_-1;I>=M&&I!==M;I--){let k=(I!==_?Math.abs(y[I]):0)+(I!==M+1?Math.abs(y[I-1]):0);if(Math.abs(v[I])<=A*k){v[I]=0;break}}I===M?C=3:I===_-1?C=1:(C=2,M=I)}switch(M++,C){case 1:{let I=y[_-2];y[_-2]=0;for(let k=_-2;k>=M;k--){let O=hi(v[k],I),B=v[k]/O,L=I/O;if(v[k]=O,k!==M&&(I=-L*y[k-1],y[k-1]=B*y[k-1]),f)for(let z=0;z=v[M+1]);){let I=v[M];if(v[M]=v[M+1],v[M+1]=I,f&&Mr&&i.set(l,c,e.get(l,c)/this.s[c]);let o=this.U,s=o.rows,u=o.columns,f=new lt(n,s);for(let l=0;le&&r++;return r}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return lt.diag(this.s)}}function Une(t,e=!1){return t=Wn.checkMatrix(t),e?new cu(t).inverse():NN(t,lt.eye(t.rows))}function NN(t,e,r=!1){return t=Wn.checkMatrix(t),e=Wn.checkMatrix(e),r?new cu(t).solve(e):t.isSquare()?new fd(t).solve(e):new zg(t).solve(e)}function wh(t){if(t=lt.checkMatrix(t),t.isSquare()){let e,r,n,a;if(t.columns===2)return e=t.get(0,0),r=t.get(0,1),n=t.get(1,0),a=t.get(1,1),e*a-r*n;if(t.columns===3){let i,o,s;return i=new bh(t,[1,2],[1,2]),o=new bh(t,[1,2],[0,2]),s=new bh(t,[1,2],[0,1]),e=t.get(0,0),r=t.get(0,1),n=t.get(0,2),e*wh(i)-r*wh(o)+n*wh(s)}else return new fd(t).determinant}else throw Error("determinant can only be calculated for a square matrix")}function $ne(t,e){let r=[];for(let n=0;na)return new Array(e.rows+1).fill(0);{let i=e.addRow(r,[0]);for(let o=0;oe?i[o]=1/i[o]:i[o]=0;return a.mmul(lt.diag(i).mmul(n.transpose()))}function Yne(t,e=t,r={}){t=new lt(t);let n=!1;if(typeof e=="object"&&!lt.isMatrix(e)&&!Array.isArray(e)?(r=e,e=t,n=!0):e=new lt(e),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:a=!0}=r;a&&(t=t.center("column"),n||(e=e.center("column")));const i=t.transpose().mmul(e);for(let o=0;o0?a.set(i,i+1,r[i]):r[i]<0&&a.set(i,i-1,r[i])}return a}}function Hne(t,e,r,n){let a,i,o,s,u,f,l,c;for(u=0;u0;s--){for(c=0,o=0,f=0;f0&&(i=-i),e[s]=c*i,o=o-a*i,r[s-1]=a-i,u=0;uf)do{for(a=r[f],c=(r[f+1]-a)/(2*e[f]),h=hi(c,1),c<0&&(h=-h),r[f]=e[f]/(c+h),r[f+1]=e[f]*(c+h),d=r[f+1],i=a-r[f],o=f+2;o=f;o--)for(g=p,p=v,b=m,a=v*e[o],i=v*c,h=hi(c,e[o]),e[o+1]=m*h,m=e[o]/h,v=c/h,c=v*r[o]-m*a,r[o+1]=i+m*(v*a+m*r[o]),u=0;uE*x);r[f]=r[f]+w,e[f]=0}for(o=0;o=c;f--)r[f]=e.get(f,c-1)/h,u+=r[f]*r[f];for(s=Math.sqrt(u),r[c]>0&&(s=-s),u=u-r[c]*s,r[c]=r[c]-s,l=c;l=c;f--)o+=r[f]*e.get(f,l);for(o=o/u,f=c;f<=i;f++)e.set(f,l,e.get(f,l)-o*r[f])}for(f=0;f<=i;f++){for(o=0,l=i;l>=c;l--)o+=r[l]*e.get(f,l);for(o=o/u,l=c;l<=i;l++)e.set(f,l,e.get(f,l)-o*r[l])}r[c]=h*r[c],e.set(c,c-1,h*s)}}for(f=0;f=a+1;c--)if(e.get(c,c-1)!==0){for(f=c+1;f<=i;f++)r[f]=e.get(f,c-1);for(l=c;l<=i;l++){for(s=0,f=c;f<=i;f++)s+=r[f]*n.get(f,l);for(s=s/r[c]/e.get(c,c-1),f=c;f<=i;f++)n.set(f,l,n.get(f,l)+s*r[f])}}}function Qne(t,e,r,n,a){let i=t-1,o=0,s=t-1,u=Number.EPSILON,f=0,l=0,c=0,h=0,d=0,v=0,p=0,g=0,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;for(y=0;ys)&&(r[y]=a.get(y,y),e[y]=0),m=Math.max(y-1,0);m=o;){for(w=i;w>o&&(v=Math.abs(a.get(w-1,w-1))+Math.abs(a.get(w,w)),v===0&&(v=l),!(Math.abs(a.get(w,w-1))=0){for(p=c>=0?c+p:c-p,r[i-1]=S+p,r[i]=r[i-1],p!==0&&(r[i]=S-_/p),e[i-1]=0,e[i]=0,S=a.get(i,i-1),v=Math.abs(S)+Math.abs(p),c=S/v,h=p/v,d=Math.sqrt(c*c+h*h),c=c/d,h=h/d,m=i-1;m0)){for(v=Math.sqrt(v),A=w&&(p=a.get(x,x),d=S-p,v=A-p,c=(d*v-_)/a.get(x+1,x)+a.get(x,x+1),h=a.get(x+1,x+1)-p-d-v,d=a.get(x+2,x+1),v=Math.abs(c)+Math.abs(h)+Math.abs(d),c=c/v,h=h/v,d=d/v,!(x===w||Math.abs(a.get(x,x-1))*(Math.abs(h)+Math.abs(d))x+2&&a.set(y,y-3,0);for(b=x;b<=i-1&&(O=b!==i-1,b!==x&&(c=a.get(b,b-1),h=a.get(b+1,b-1),d=O?a.get(b+2,b-1):0,S=Math.abs(c)+Math.abs(h)+Math.abs(d),S!==0&&(c=c/S,h=h/S,d=d/S)),S!==0);b++)if(v=Math.sqrt(c*c+h*h+d*d),c<0&&(v=-v),v!==0){for(b!==x?a.set(b,b-1,-v*S):w!==x&&a.set(b,b-1,-a.get(b,b-1)),c=c+v,S=c/v,A=h/v,p=d/v,h=h/c,d=d/c,m=b;m=0;i--)if(c=r[i],h=e[i],h===0)for(w=i,a.set(i,i,1),y=i-1;y>=0;y--){for(_=a.get(y,y)-c,d=0,m=w;m<=i;m++)d=d+a.get(y,m)*a.get(m,i);if(e[y]<0)p=_,v=d;else if(w=y,e[y]===0?a.set(y,i,_!==0?-d/_:-d/(u*l)):(S=a.get(y,y+1),A=a.get(y+1,y),h=(r[y]-c)*(r[y]-c)+e[y]*e[y],E=(S*v-p*d)/h,a.set(y,i,E),a.set(y+1,i,Math.abs(S)>Math.abs(p)?(-d-_*E)/S:(-v-A*E)/p)),E=Math.abs(a.get(y,i)),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i,a.get(m,i)/E)}else if(h<0)for(w=i-1,Math.abs(a.get(i,i-1))>Math.abs(a.get(i-1,i))?(a.set(i-1,i-1,h/a.get(i,i-1)),a.set(i-1,i,-(a.get(i,i)-c)/a.get(i,i-1))):(B=Gc(0,-a.get(i-1,i),a.get(i-1,i-1)-c,h),a.set(i-1,i-1,B[0]),a.set(i-1,i,B[1])),a.set(i,i-1,0),a.set(i,i,1),y=i-2;y>=0;y--){for(M=0,C=0,m=w;m<=i;m++)M=M+a.get(y,m)*a.get(m,i-1),C=C+a.get(y,m)*a.get(m,i);if(_=a.get(y,y)-c,e[y]<0)p=_,d=M,v=C;else if(w=y,e[y]===0?(B=Gc(-M,-C,_,h),a.set(y,i-1,B[0]),a.set(y,i,B[1])):(S=a.get(y,y+1),A=a.get(y+1,y),I=(r[y]-c)*(r[y]-c)+e[y]*e[y]-h*h,k=(r[y]-c)*2*h,I===0&&k===0&&(I=u*l*(Math.abs(_)+Math.abs(h)+Math.abs(S)+Math.abs(A)+Math.abs(p))),B=Gc(S*d-p*M+h*C,S*v-p*C-h*M,I,k),a.set(y,i-1,B[0]),a.set(y,i,B[1]),Math.abs(S)>Math.abs(p)+Math.abs(h)?(a.set(y+1,i-1,(-M-_*a.get(y,i-1)+h*a.get(y,i))/S),a.set(y+1,i,(-C-_*a.get(y,i)-h*a.get(y,i-1))/S)):(B=Gc(-d-A*a.get(y,i-1),-v-A*a.get(y,i),p,h),a.set(y+1,i-1,B[0]),a.set(y+1,i,B[1]))),E=Math.max(Math.abs(a.get(y,i-1)),Math.abs(a.get(y,i))),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i-1,a.get(m,i-1)/E),a.set(m,i,a.get(m,i)/E)}for(y=0;ys)for(m=y;m=o;m--)for(y=o;y<=s;y++){for(p=0,b=o;b<=Math.min(m,s);b++)p=p+n.get(y,b)*a.get(b,m);n.set(y,m,p)}}}function Gc(t,e,r,n){let a,i;return Math.abs(r)>Math.abs(n)?(a=n/r,i=r+a*n,[(t+a*e)/i,(e-a*t)/i]):(a=r/n,i=n+a*r,[(a*t+e)/i,(a*e-t)/i])}class u2{constructor(e){if(e=Wn.checkMatrix(e),!e.isSymmetric())throw new Error("Matrix is not symmetric");let r=e,n=r.rows,a=new lt(n,n),i=!0,o,s,u;for(s=0;s0,a.set(s,s,Math.sqrt(Math.max(f,0))),u=s+1;u=0;u--)for(s=0;so;d++)c=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),c=c.div(c.norm()),f=e.mmul(c).div(c.transpose().mmul(c).get(0,0)),d>0&&(u=f.clone().sub(h).pow(2).sum()),h=f.clone(),n?(l=n.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),l=l.div(l.norm()),s=n.mmul(l).div(l.transpose().mmul(l).get(0,0))):s=f;if(n){let d=e.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0));d=d.div(d.norm());let v=e.clone().sub(f.clone().mmul(d.transpose())),p=s.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),g=n.clone().sub(f.clone().mulS(p.get(0,0)).mmul(l.transpose()));this.t=f,this.p=d.transpose(),this.w=c.transpose(),this.q=l,this.u=s,this.s=f.transpose().mmul(f),this.xResidual=v,this.yResidual=g,this.betas=p}else this.w=c.transpose(),this.s=f.transpose().mmul(f).sqrt(),a?this.t=f.clone().div(this.s.get(0,0)):this.t=f,this.xResidual=e.sub(f.mmul(c.transpose()))}}const Jne=Object.freeze(Object.defineProperty({__proto__:null,AbstractMatrix:Xt,CHO:u2,CholeskyDecomposition:u2,EVD:s2,EigenvalueDecomposition:s2,LU:fd,LuDecomposition:fd,Matrix:lt,MatrixColumnSelectionView:Dne,MatrixColumnView:Lne,MatrixFlipColumnView:Pne,MatrixFlipRowView:Rne,MatrixRowSelectionView:Bne,MatrixRowView:Fne,MatrixSelectionView:bh,MatrixSubView:Gne,MatrixTransposeView:zne,NIPALS:f2,Nipals:f2,QR:zg,QrDecomposition:zg,SVD:cu,SingularValueDecomposition:cu,WrapperMatrix1D:kN,WrapperMatrix2D:Wn,correlation:qne,covariance:Yne,default:lt,determinant:wh,inverse:Une,linearDependencies:Wne,pseudoInverse:Vne,solve:NN,wrap:jne},Symbol.toStringTag,{value:"Module"})),ON=Ka(Jne);Object.defineProperty(Qm,"__esModule",{value:!0});var Qu=ON,eae=function(){function t(e){this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}return t.prototype.layout=function(){var e=this,r=e.dimension,n=e.distances,a=e.linkDistance;try{var i=Qu.Matrix.mul(Qu.Matrix.pow(n,2),-.5),o=i.mean("row"),s=i.mean("column"),u=i.mean();i.add(u).subRowVector(o).subColumnVector(s);var f=new Qu.SingularValueDecomposition(i),l=Qu.Matrix.sqrt(f.diagonalMatrix).diagonal();return f.leftSingularVectors.toJSON().map(function(p){return Qu.Matrix.mul([p],[l]).toJSON()[0].splice(0,r)})}catch{for(var c=[],h=0;hl?1:-1;c=.01*v,h=.01*v}if(dMath.PI/2&&(y-=Math.PI/2,v*=-1,p*=-1);var m=Math.cos(y)*g;f.x=v*m,f.y=p*m});var u=e.radii;r.forEach(function(f,l){if(l!==o){var c=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(c>0&&l!==o){var h=Math.min(s*(a/tae),c);if(f[0]+=n[l].x/c*h,f[1]+=n[l].y/c*h,i){var d=f[0]-r[o][0],v=f[1]-r[o][1],p=Math.sqrt(d*d+v*v);d=d/p*u[l],v=v/p*u[l],f[0]=r[o][0]+d,f[1]=r[o][1]+v}}}})},t}();Jm.default=rae;var nae=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),LN=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lv,"__esModule",{value:!0});lv.RadialLayout=void 0;var Zn=Ir(),aae=Rr,iae=LN(Qm),oae=LN(Jm);function sae(t){for(var e=t.length,r=t[0].length,n=[],a=0;ai[0]?i[0]:p-i[0],m=g-i[1]>i[1]?i[1]:g-i[1];y===0&&(y=p/2),m===0&&(m=g/2);var b=m>y?y:m,w=Math.max.apply(Math,v),x=[];v.forEach(function(X,R){r.unitRadius||(r.unitRadius=b/w),x[R]=X*r.unitRadius}),r.radii=x;var E=r.eIdealDisMatrix();r.eIdealDistances=E;var _=sae(E);r.weights=_;var S=new iae.default({linkDistance:o,distances:E}),A=S.layout();A.forEach(function(X){(0,Zn.isNaN)(X[0])&&(X[0]=Math.random()*o),(0,Zn.isNaN)(X[1])&&(X[1]=Math.random()*o)}),r.positions=A,A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),A.forEach(function(X){X[0]-=A[l][0],X[1]-=A[l][1]}),r.run();var M=r.preventOverlap,C=r.nodeSize,I,k=r.strictRadial;if(M){var O=r.nodeSpacing,B;(0,Zn.isNumber)(O)?B=function(){return O}:(0,Zn.isFunction)(O)?B=O:B=function(){return 0},C?(0,Zn.isArray)(C)?I=function(X){var R=C[0]>C[1]?C[0]:C[1];return R+B(X)}:I=function(X){return C+B(X)}:I=function(X){if(X.size){if((0,Zn.isArray)(X.size)){var R=X.size[0]>X.size[1]?X.size[0]:X.size[1];return R+B(X)}if((0,Zn.isObject)(X.size)){var R=X.size.width>X.size.height?X.size.width:X.size.height;return R+B(X)}return X.size+B(X)}return 10+B(X)};var L={nodes:n,nodeSizeFunc:I,adjMatrix:c,positions:A,radii:x,height:g,width:p,strictRadial:k,focusID:l,iterations:r.maxPreventOverlapIteration||200,k:A.length/4.5},z=new oae.default(L);A=z.layout()}return A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a}},e.prototype.run=function(){for(var r=this,n=r.maxIteration,a=r.positions||[],i=r.weights||[],o=r.eIdealDistances||[],s=r.radii||[],u=0;u<=n;u++){var f=u/n;r.oneIteration(f,a,s,o,i)}},e.prototype.oneIteration=function(r,n,a,i,o){var s=this,u=1-r,f=s.focusIndex;n.forEach(function(l,c){var h=l2(l,[0,0]),d=h===0?0:1/h;if(c!==f){var v=0,p=0,g=0;n.forEach(function(m,b){if(c!==b){var w=l2(l,m),x=w===0?0:1/w,E=i[b][c];g+=o[c][b],v+=o[c][b]*(m[0]+E*(l[0]-m[0])*x),p+=o[c][b]*(m[1]+E*(l[1]-m[1])*x)}});var y=a[c]===0?0:1/a[c];g*=u,g+=r*y*y,v*=u,v+=r*y*l[0]*d,l[0]=v/g,p*=u,p+=r*y*l[1]*d,l[1]=p/g}})},e.prototype.eIdealDisMatrix=function(){var r=this,n=r.nodes;if(!n)return[];var a=r.distances,i=r.linkDistance,o=r.radii||[],s=r.unitRadius||50,u=[];return a&&a.forEach(function(f,l){var c=[];f.forEach(function(h,d){if(l===d)c.push(0);else if(o[l]===o[d])if(r.sortBy==="data")c.push(h*(Math.abs(l-d)*r.sortStrength)/(o[l]/s));else if(r.sortBy){var v=n[l][r.sortBy]||0,p=n[d][r.sortBy]||0;(0,Zn.isString)(v)&&(v=v.charCodeAt(0)),(0,Zn.isString)(p)&&(p=p.charCodeAt(0)),c.push(h*(Math.abs(v-p)*r.sortStrength)/(o[l]/s))}else c.push(h*i/(o[l]/s));else{var g=(i+s)/2;c.push(h*g)}}),u.push(c)}),u},e.prototype.handleInfinity=function(r,n,a){for(var i=r.length,o=0;oa?r[n][i]:a);return a},e.prototype.getType=function(){return"radial"},e}(aae.Base);lv.RadialLayout=fae;(function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(lv,t)})(Km);var bl={},lae=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(bl,"__esModule",{value:!0});bl.ConcentricLayout=void 0;var Na=Ir(),cae=Rr,hae=function(t){lae(e,t);function e(r){var n=t.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=3/2*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var r,n,a=this,i=a.nodes,o=a.edges,s=i.length;if(s===0){(r=a.onLayoutEnd)===null||r===void 0||r.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var u=a.center;if(s===1){i[0].x=u[0],i[0].y=u[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var f=a.nodeSize,l=a.nodeSpacing,c=[],h,d=0;(0,Na.isArray)(f)?h=Math.max(f[0],f[1]):h=f,(0,Na.isArray)(l)?d=Math.max(l[0],l[1]):(0,Na.isNumber)(l)&&(d=l),i.forEach(function(k){c.push(k);var O=h;(0,Na.isArray)(k.size)?O=Math.max(k.size[0],k.size[1]):(0,Na.isNumber)(k.size)?O=k.size:(0,Na.isObject)(k.size)&&(O=Math.max(k.size.width,k.size.height)),h=Math.max(h,O),(0,Na.isFunction)(l)&&(d=Math.max(l(k),d))}),a.clockwise=a.counterclockwise!==void 0?!a.counterclockwise:a.clockwise;var v={},p={};if(c.forEach(function(k,O){v[k.id]=k,p[k.id]=O}),(a.sortBy==="degree"||!(0,Na.isString)(a.sortBy)||c[0][a.sortBy]===void 0)&&(a.sortBy="degree",!(0,Na.isNumber)(i[0].degree))){var g=(0,Na.getDegree)(i.length,p,o);c.forEach(function(k,O){k.degree=g[O].all})}c.sort(function(k,O){return O[a.sortBy]-k[a.sortBy]}),a.maxValueNode=c[0],a.maxLevelDiff=a.maxLevelDiff||a.maxValueNode[a.sortBy]/4;var y=[[]],m=y[0];c.forEach(function(k){if(m.length>0){var O=Math.abs(m[0][a.sortBy]-k[a.sortBy]);a.maxLevelDiff&&O>=a.maxLevelDiff&&(m=[],y.push(m))}m.push(k)});var b=h+(d||a.minNodeSpacing);if(!a.preventOverlap){var w=y.length>0&&y[0].length>1,x=Math.min(a.width,a.height)/2-b,E=x/(y.length+(w?1:0));b=Math.min(b,E)}var _=0;if(y.forEach(function(k){var O=a.sweep;O===void 0&&(O=2*Math.PI-2*Math.PI/k.length);var B=k.dTheta=O/Math.max(1,k.length-1);if(k.length>1&&a.preventOverlap){var L=Math.cos(B)-Math.cos(0),z=Math.sin(B)-Math.sin(0),X=Math.sqrt(b*b/(L*L+z*z));_=Math.max(X,_)}k.r=_,_+=b}),a.equidistant){for(var S=0,A=0,M=0;M"u")return;var h=0;this.timeInterval=window.setInterval(function(){var d;n.runOneStep(l),h++,h>=o&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))},0)}return{nodes:a,edges:i}}},e.prototype.runOneStep=function(r){var n,a=this,i=a.nodes;if(i){var o=a.edges,s=a.center,u=a.gravity,f=a.speed,l=a.clustering,c=a.height*a.width,h=Math.sqrt(c)/10,d=c/(i.length+1),v=Math.sqrt(d),p=[];if(i.forEach(function(m,b){p[b]={x:0,y:0}}),a.applyCalculate(i,o,p,v,d),l){for(var g in r)r[g].cx=0,r[g].cy=0,r[g].count=0;i.forEach(function(m){var b=r[m.cluster];(0,Dr.isNumber)(m.x)&&(b.cx+=m.x),(0,Dr.isNumber)(m.y)&&(b.cy+=m.y),b.count++});for(var g in r)r[g].cx/=r[g].count,r[g].cy/=r[g].count;var y=a.clusterGravity||u;i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=r[m.cluster],x=Math.sqrt((m.x-w.cx)*(m.x-w.cx)+(m.y-w.cy)*(m.y-w.cy)),E=v*y;p[b].x-=E*(m.x-w.cx)/x,p[b].y-=E*(m.y-w.cy)/x}})}i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=.01*v*u;p[b].x-=w*(m.x-s[0]),p[b].y-=w*(m.y-s[1])}}),i.forEach(function(m,b){if((0,Dr.isNumber)(m.fx)&&(0,Dr.isNumber)(m.fy)){m.x=m.fx,m.y=m.fy;return}if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=Math.sqrt(p[b].x*p[b].x+p[b].y*p[b].y);if(w>0){var x=Math.min(h*(f/mae),w);m.x+=p[b].x/w*x,m.y+=p[b].y/w*x}}}),(n=a.tick)===null||n===void 0||n.call(a)}},e.prototype.applyCalculate=function(r,n,a,i,o){var s=this;s.calRepulsive(r,a,o),n&&s.calAttractive(n,a,i)},e.prototype.calRepulsive=function(r,n,a){r.forEach(function(i,o){n[o]={x:0,y:0},r.forEach(function(s,u){if(o!==u&&!(!(0,Dr.isNumber)(i.x)||!(0,Dr.isNumber)(s.x)||!(0,Dr.isNumber)(i.y)||!(0,Dr.isNumber)(s.y))){var f=i.x-s.x,l=i.y-s.y,c=f*f+l*l;if(c===0){c=1;var h=o>u?1:-1;f=.01*h,l=.01*h}var d=a/c;n[o].x+=f*d,n[o].y+=l*d}})})},e.prototype.calAttractive=function(r,n,a){var i=this;r.forEach(function(o){var s=(0,Dr.getEdgeTerminal)(o,"source"),u=(0,Dr.getEdgeTerminal)(o,"target");if(!(!s||!u)){var f=i.nodeIdxMap[s],l=i.nodeIdxMap[u];if(f!==l){var c=i.nodeMap[s],h=i.nodeMap[u];if(!(!(0,Dr.isNumber)(h.x)||!(0,Dr.isNumber)(c.x)||!(0,Dr.isNumber)(h.y)||!(0,Dr.isNumber)(c.y))){var d=h.x-c.x,v=h.y-c.y,p=Math.sqrt(d*d+v*v),g=p*p/a;n[l].x-=d/p*g,n[l].y-=v/p*g,n[f].x+=d/p*g,n[f].y+=v/p*g}}}})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(yae.Base);xl.FruchtermanLayout=bae;var El={};function c2(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(f){return void r(f)}s.done?e(u):Promise.resolve(u).then(n,a)}function Xi(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){c2(i,n,a,o,s,"next",u)}function s(u){c2(i,n,a,o,s,"throw",u)}o(void 0)})}}function hu(t){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(t)}function wae(t,e){if(hu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DN(t){var e=wae(t,"string");return hu(e)=="symbol"?e:e+""}function Ke(t,e,r){return(e=DN(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ma(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h2(t,e){for(var r=0;r-1&&t%1==0&&t<=jae}var $ae=Uae;function Xae(t){return t!=null&&typeof t=="object"}var t1=Xae,Wae=e1,Vae=$ae,Yae=t1,qae="[object Arguments]",Hae="[object Array]",Zae="[object Boolean]",Kae="[object Date]",Qae="[object Error]",Jae="[object Function]",eie="[object Map]",tie="[object Number]",rie="[object Object]",nie="[object RegExp]",aie="[object Set]",iie="[object String]",oie="[object WeakMap]",sie="[object ArrayBuffer]",uie="[object DataView]",fie="[object Float32Array]",lie="[object Float64Array]",cie="[object Int8Array]",hie="[object Int16Array]",die="[object Int32Array]",vie="[object Uint8Array]",pie="[object Uint8ClampedArray]",gie="[object Uint16Array]",yie="[object Uint32Array]",wr={};wr[fie]=wr[lie]=wr[cie]=wr[hie]=wr[die]=wr[vie]=wr[pie]=wr[gie]=wr[yie]=!0;wr[qae]=wr[Hae]=wr[sie]=wr[Zae]=wr[uie]=wr[Kae]=wr[Qae]=wr[Jae]=wr[eie]=wr[tie]=wr[rie]=wr[nie]=wr[aie]=wr[iie]=wr[oie]=!1;function mie(t){return Yae(t)&&Vae(t.length)&&!!wr[Wae(t)]}var bie=mie;function wie(t){return function(e){return t(e)}}var xie=wie,ld={exports:{}};ld.exports;(function(t,e){var r=PN,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s})(ld,ld.exports);var Eie=ld.exports,_ie=bie,Sie=xie,g2=Eie,y2=g2&&g2.isTypedArray,Mie=y2?Sie(y2):_ie,Aie=Mie;const cd=bi(Aie);var Cie=e1,Tie=t1,Iie="[object Number]";function kie(t){return typeof t=="number"||Tie(t)&&Cie(t)==Iie}var Nie=kie;const Oie=bi(Nie);var Lie=Array.isArray,Die=Lie;const Pie=bi(Die);var BN={exports:{}},GN={exports:{}};(function(t){function e(r,n){this.v=r,this.k=n}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(GN);var zN=GN.exports,jN={exports:{}},UN={exports:{}};(function(t){function e(r,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}t.exports=e=function(u,f,l,c){function h(d,v){e(u,d,function(p){return this._invoke(d,v,p)})}f?o?o(u,f,{value:l,enumerable:!c,configurable:!c,writable:!c}):u[f]=l:(h("next",0),h("throw",1),h("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,a,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(UN);var $N=UN.exports;(function(t){var e=$N;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(g,y,m,b){var w=y&&y.prototype instanceof l?y:l,x=Object.create(w.prototype);return e(x,"_invoke",function(E,_,S){var A,M,C,I=0,k=S||[],O=!1,B={p:0,n:0,v:n,a:L,f:L.bind(n,4),d:function(X,R){return A=X,M=0,C=n,B.n=R,f}};function L(z,X){for(M=z,C=X,a=0;!O&&I&&!R&&a3?(R=ce===X)&&(C=V[(M=V[4])?5:(M=3,3)],V[4]=V[5]=n):V[0]<=he&&((R=z<2&&heX||X>ce)&&(V[4]=z,V[5]=X,B.n=ce,M=0))}if(R||z>1)return f;throw O=!0,X}return function(z,X,R){if(I>1)throw TypeError("Generator is already running");for(O&&X===1&&L(X,R),M=X,C=R;(a=M<2?n:C)||!O;){A||(M?M<3?(M>1&&(B.n=-1),L(M,C)):B.n=C:B.v=C);try{if(I=2,A){if(M||(z="next"),a=A[z]){if(!(a=a.call(A,C)))throw TypeError("iterator result is not an object");if(!a.done)return a;C=a.value,M<2&&(M=0)}else M===1&&(a=A.return)&&a.call(A),M<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),M=1);A=n}else if((a=(O=B.n<0)?C:E.call(_,B))!==f)break}catch(V){A=n,M=1,C=V}finally{I=1}}return{value:a,done:O}}}(g,m,b),!0),x}var f={};function l(){}function c(){}function h(){}a=Object.getPrototypeOf;var d=[][o]?a(a([][o]())):(e(a={},o,function(){return this}),a),v=h.prototype=l.prototype=Object.create(d);function p(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,h):(g.__proto__=h,e(g,s,"GeneratorFunction")),g.prototype=Object.create(v),g}return c.prototype=h,e(v,"constructor",h),e(h,"constructor",c),c.displayName="GeneratorFunction",e(h,s,"GeneratorFunction"),e(v),e(v,s,"Generator"),e(v,o,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t.exports=r=function(){return{w:u,m:p}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(jN);var XN=jN.exports,WN={exports:{}},VN={exports:{}},YN={exports:{}};(function(t){var e=zN,r=$N;function n(a,i){function o(u,f,l,c){try{var h=a[u](f),d=h.value;return d instanceof e?i.resolve(d.v).then(function(v){o("next",v,l,c)},function(v){o("throw",v,l,c)}):i.resolve(d).then(function(v){h.value=v,l(h)},function(v){return o("throw",v,l,c)})}catch(v){c(v)}}var s;this.next||(r(n.prototype),r(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(u,f,l){function c(){return new i(function(h,d){o(u,l,h,d)})}return s=s?s.then(c,c):c()},!0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(YN);var qN=YN.exports;(function(t){var e=XN,r=qN;function n(a,i,o,s,u){return new r(e().w(a,i,o,s),u||Promise)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(VN);var HN=VN.exports;(function(t){var e=HN;function r(n,a,i,o,s){var u=e(n,a,i,o,s);return u.next().then(function(f){return f.done?f.value:u.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(WN);var Rie=WN.exports,ZN={exports:{}};(function(t){function e(r){var n=Object(r),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(ZN);var Fie=ZN.exports,KN={exports:{}},QN={exports:{}};(function(t){function e(r){"@babel/helpers - typeof";return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(QN);var Bie=QN.exports;(function(t){var e=Bie.default;function r(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(e(n)+" is not iterable")}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(KN);var Gie=KN.exports;(function(t){var e=zN,r=XN,n=Rie,a=HN,i=qN,o=Fie,s=Gie;function u(){var f=r(),l=f.m(u),c=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function h(p){var g=typeof p=="function"&&p.constructor;return!!g&&(g===c||(g.displayName||g.name)==="GeneratorFunction")}var d={throw:1,return:2,break:3,continue:3};function v(p){var g,y;return function(m){g||(g={stop:function(){return y(m.a,2)},catch:function(){return m.v},abrupt:function(w,x){return y(m.a,d[w],x)},delegateYield:function(w,x,E){return g.resultName=x,y(m.d,s(w),E)},finish:function(w){return y(m.f,w)}},y=function(w,x,E){m.p=g.prev,m.n=g.next;try{return w(x,E)}finally{g.next=m.n}}),g.resultName&&(g[g.resultName]=m.v,g.resultName=void 0),g.sent=m.v,g.next=m.n;try{return p.call(this,g)}finally{m.p=g.prev,m.n=g.next}}}return(t.exports=u=function(){return{wrap:function(y,m,b,w){return f.w(v(y),m,b,w&&w.reverse())},isGeneratorFunction:h,mark:f.m,awrap:function(y,m){return new e(y,m)},AsyncIterator:i,async:function(y,m,b,w,x){return(h(m)?a:n)(v(y),m,b,w,x)},keys:o,values:s}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports})(BN);var zie=BN.exports,xh=zie(),jie=xh;try{regeneratorRuntime=xh}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xh:Function("r","regeneratorRuntime = r")(xh)}const mn=bi(jie);var Uie=1;function JN(){return Uie++}var ke;(function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(ke||(ke={}));var $ie=function(){function t(){Ma(this,t),this.config=void 0}return Aa(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(r){this.config=r}}]),t}(),Zf;(function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2",t.Vector3Float="vec3",t.Vector4Float="vec4",t.Vector2Boolean="vec2",t.Vector3Boolean="vec3",t.Vector4Boolean="vec4",t.Vector2Uint="vec2",t.Vector3Uint="vec3",t.Vector4Uint="vec4",t.Vector2Int="vec2",t.Vector3Int="vec3",t.Vector4Int="vec4",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3",t.Matrix4x4Float="mat4x4",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4[]"})(Zf||(Zf={}));var m2;(function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"})(m2||(m2={}));var du;(function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"})(du||(du={}));var Tf;(function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"})(Tf||(Tf={}));var Xie="__DefineValuePlaceholder__";function Wie(){if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function b2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function w2(t){for(var e=1;e0&&s[0]!==void 0?s[0]:1,!this.dirty){f.next=6;break}return this.compiledBundle.context&&(i>1?this.compiledBundle.context.maxIteration=i:this.compiledBundle.context.maxIteration++),f.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(l){var c=l.isReferer;return c}).forEach(function(l){var c=l.data,h=l.name;a.model.confirmInput(c.model,h)}),o=0;o"u";case"symbol":return typeof T=="symbol"}}function h(T,F,W){c(T,F)||o("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T)}function d(T,F){T>=0&&(T|0)===T||o("invalid parameter type, ("+T+")"+u(F)+". must be a nonnegative integer")}function v(T,F,W){F.indexOf(T)<0&&o("invalid value"+u(W)+". must be one of: "+F)}var p=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function g(T){Object.keys(T).forEach(function(F){p.indexOf(F)<0&&o('invalid regl constructor argument "'+F+'". must be one of '+p)})}function y(T,F){for(T=T+"";T.length0&&F.push(new w("unknown",0,W))}}),F}function A(T,F){F.forEach(function(W){var ue=T[W.file];if(ue){var be=ue.index[W.line];if(be){be.errors.push(W),ue.hasErrors=!0;return}}T.unknown.hasErrors=!0,T.unknown.lines[0].errors.push(W)})}function M(T,F,W,ue,be){if(!T.getShaderParameter(F,T.COMPILE_STATUS)){var se=T.getShaderInfoLog(F),de=ue===T.FRAGMENT_SHADER?"fragment":"vertex";z(W,"string",de+" shader source must be a string",be);var Ce=_(W,be),Ne=S(se);A(Ce,Ne),Object.keys(Ce).forEach(function(Pe){var Oe=Ce[Pe];if(!Oe.hasErrors)return;var Be=[""],Xe=[""];function Te(Ge,re){Be.push(Ge),Xe.push(re||"")}Te("file number "+Pe+": "+Oe.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Oe.lines.forEach(function(Ge){if(Ge.errors.length>0){Te(y(Ge.number,4)+"| ","background-color:yellow; font-weight:bold"),Te(Ge.line+a,"color:red; background-color:yellow; font-weight:bold");var re=0;Ge.errors.forEach(function(ve){var De=ve.message,He=/^\s*'(.*)'\s*:\s*(.*)$/.exec(De);if(He){var Ee=He[1];switch(De=He[2],Ee){case"assign":Ee="=";break}re=Math.max(Ge.line.indexOf(Ee,re),0)}else re=0;Te(y("| ",6)),Te(y("^^^",re+3)+a,"font-weight:bold"),Te(y("| ",6)),Te(De+a,"font-weight:bold")}),Te(y("| ",6)+a)}else Te(y(Ge.number,4)+"| "),Te(Ge.line+a,"color:red")}),typeof document<"u"&&!window.chrome?(Xe[0]=Be.join("%c"),console.log.apply(console,Xe)):console.log(Be.join(""))}),s.raise("Error compiling "+de+" shader, "+Ce[0].name)}}function C(T,F,W,ue,be){if(!T.getProgramParameter(F,T.LINK_STATUS)){var se=T.getProgramInfoLog(F),de=_(W,be),Ce=_(ue,be),Ne='Error linking program with vertex shader, "'+Ce[0].name+'", and fragment shader "'+de[0].name+'"';typeof document<"u"?console.log("%c"+Ne+a+"%c"+se,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ne+a+se),s.raise(Ne)}}function I(T){T._commandRef=x()}function k(T,F,W,ue){I(T);function be(Ne){return Ne?ue.id(Ne):0}T._fragId=be(T.static.frag),T._vertId=be(T.static.vert);function se(Ne,Pe){Object.keys(Pe).forEach(function(Oe){Ne[ue.id(Oe)]=!0})}var de=T._uniformSet={};se(de,F.static),se(de,F.dynamic);var Ce=T._attributeSet={};se(Ce,W.static),se(Ce,W.dynamic),T._hasCount="count"in T.static||"count"in T.dynamic||"elements"in T.static||"elements"in T.dynamic}function O(T,F){var W=E();o(T+" in command "+(F||x())+(W==="unknown"?"":" called from "+W))}function B(T,F,W){T||O(F,W||x())}function L(T,F,W,ue){T in F||O("unknown parameter ("+T+")"+u(W)+". possible values: "+Object.keys(F).join(),ue||x())}function z(T,F,W,ue){c(T,F)||O("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T,ue||x())}function X(T){T()}function R(T,F,W){T.texture?v(T.texture._texture.internalformat,F,"unsupported texture format for attachment"):v(T.renderbuffer._renderbuffer.format,W,"unsupported renderbuffer format for attachment")}var V=33071,he=9728,ce=9984,le=9985,ie=9986,Ie=9987,qe=5120,Ve=5121,it=5122,dt=5123,st=5124,Tt=5125,_t=5126,lr=32819,Bt=32820,Wt=33635,vr=34042,cr=36193,$t={};$t[qe]=$t[Ve]=1,$t[it]=$t[dt]=$t[cr]=$t[Wt]=$t[lr]=$t[Bt]=2,$t[st]=$t[Tt]=$t[_t]=$t[vr]=4;function sr(T,F){return T===Bt||T===lr||T===Wt?2:T===vr?4:$t[T]*F}function tn(T){return!(T&T-1)&&!!T}function tt(T,F,W){var ue,be=F.width,se=F.height,de=F.channels;s(be>0&&be<=W.maxTextureSize&&se>0&&se<=W.maxTextureSize,"invalid texture shape"),(T.wrapS!==V||T.wrapT!==V)&&s(tn(be)&&tn(se),"incompatible wrap mode for texture, both width and height must be power of 2"),F.mipmask===1?be!==1&&se!==1&&s(T.minFilter!==ce&&T.minFilter!==ie&&T.minFilter!==le&&T.minFilter!==Ie,"min filter requires mipmap"):(s(tn(be)&&tn(se),"texture must be a square power of 2 to support mipmapping"),s(F.mipmask===(be<<1)-1,"missing or incomplete mipmap data")),F.type===_t&&(W.extensions.indexOf("oes_texture_float_linear")<0&&s(T.minFilter===he&&T.magFilter===he,"filter not supported, must enable oes_texture_float_linear"),s(!T.genMipmaps,"mipmap generation not supported with float textures"));var Ce=F.images;for(ue=0;ue<16;++ue)if(Ce[ue]){var Ne=be>>ue,Pe=se>>ue;s(F.mipmask&1<0&&be<=ue.maxTextureSize&&se>0&&se<=ue.maxTextureSize,"invalid texture shape"),s(be===se,"cube map must be square"),s(F.wrapS===V&&F.wrapT===V,"wrap mode not supported by cube map");for(var Ce=0;Ce>Oe,Te=se>>Oe;s(Ne.mipmask&1<1&&F===W&&(F==='"'||F==="'"))return['"'+Ze(T.substr(1,T.length-2))+'"'];var ue=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(T);if(ue)return Je(T.substr(0,ue.index)).concat(Je(ue[1])).concat(Je(T.substr(ue.index+ue[0].length)));var be=T.split(".");if(be.length===1)return['"'+Ze(T)+'"'];for(var se=[],de=0;deDt(W,F+"["+ue+"]")));if(T instanceof $e)return T;N(!1,"invalid option type in uniform "+F)}var fr={DynamicVariable:$e,define:Lt,isDynamic:ur,unbox:Dt,accessor:ht},or={next:typeof requestAnimationFrame=="function"?function(T){return requestAnimationFrame(T)}:function(T){return setTimeout(T,16)},cancel:typeof cancelAnimationFrame=="function"?function(T){return cancelAnimationFrame(T)}:clearTimeout},gr=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function hr(){var T={"":0},F=[""];return{id:function(W){var ue=T[W];return ue||(ue=T[W]=F.length,F.push(W),ue)},str:function(W){return F[W]}}}function hn(T,F,W){var ue=document.createElement("canvas");n(ue.style,{border:0,margin:0,padding:0,top:0,left:0}),T.appendChild(ue),T===document.body&&(ue.style.position="absolute",n(T.style,{margin:0,padding:0}));function be(){var Ce=window.innerWidth,Ne=window.innerHeight;if(T!==document.body){var Pe=T.getBoundingClientRect();Ce=Pe.right-Pe.left,Ne=Pe.bottom-Pe.top}ue.width=W*Ce,ue.height=W*Ne,n(ue.style,{width:Ce+"px",height:Ne+"px"})}var se;T!==document.body&&typeof ResizeObserver=="function"?(se=new ResizeObserver(function(){setTimeout(be)}),se.observe(T)):window.addEventListener("resize",be,!1);function de(){se?se.disconnect():window.removeEventListener("resize",be),T.removeChild(ue)}return be(),{canvas:ue,onDestroy:de}}function nr(T,F){function W(ue){try{return T.getContext(ue,F)}catch{return null}}return W("webgl")||W("experimental-webgl")||W("webgl-experimental")}function Fr(T){return typeof T.nodeName=="string"&&typeof T.appendChild=="function"&&typeof T.getBoundingClientRect=="function"}function oa(T){return typeof T.drawArrays=="function"||typeof T.drawElements=="function"}function Ur(T){return typeof T=="string"?T.split():(N(Array.isArray(T),"invalid extension array"),T)}function Mi(T){return typeof T=="string"?(N(typeof document<"u","not supported outside of DOM"),document.querySelector(T)):T}function xu(T){var F=T||{},W,ue,be,se,de={},Ce=[],Ne=[],Pe=typeof window>"u"?1:window.devicePixelRatio,Oe=!1,Be=function(Ge){Ge&&N.raise(Ge)},Xe=function(){};if(typeof F=="string"?(N(typeof document<"u","selector queries only supported in DOM enviroments"),W=document.querySelector(F),N(W,"invalid query string for element")):typeof F=="object"?Fr(F)?W=F:oa(F)?(se=F,be=se.canvas):(N.constructor(F),"gl"in F?se=F.gl:"canvas"in F?be=Mi(F.canvas):"container"in F&&(ue=Mi(F.container)),"attributes"in F&&(de=F.attributes,N.type(de,"object","invalid context attributes")),"extensions"in F&&(Ce=Ur(F.extensions)),"optionalExtensions"in F&&(Ne=Ur(F.optionalExtensions)),"onDone"in F&&(N.type(F.onDone,"function","invalid or missing onDone callback"),Be=F.onDone),"profile"in F&&(Oe=!!F.profile),"pixelRatio"in F&&(Pe=+F.pixelRatio,N(Pe>0,"invalid pixel ratio"))):N.raise("invalid arguments to regl"),W&&(W.nodeName.toLowerCase()==="canvas"?be=W:ue=W),!se){if(!be){N(typeof document<"u","must manually specify webgl context outside of DOM environments");var Te=hn(ue||document.body,Be,Pe);if(!Te)return null;be=Te.canvas,Xe=Te.onDestroy}de.premultipliedAlpha===void 0&&(de.premultipliedAlpha=!0),se=nr(be,de)}return se?{gl:se,canvas:be,container:ue,extensions:Ce,optionalExtensions:Ne,pixelRatio:Pe,profile:Oe,onDone:Be,onDestroy:Xe}:(Xe(),Be("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Eu(T,F){var W={};function ue(de){N.type(de,"string","extension name must be string");var Ce=de.toLowerCase(),Ne;try{Ne=W[Ce]=T.getExtension(Ce)}catch{}return!!Ne}for(var be=0;be65535)<<4,T>>>=F,W=(T>255)<<3,T>>>=W,F|=W,W=(T>15)<<2,T>>>=W,F|=W,W=(T>3)<<1,T>>>=W,F|=W,F|T>>1}function dr(){var T=rn(8,function(){return[]});function F(se){var de=ua(se),Ce=T[St(de)>>2];return Ce.length>0?Ce.pop():new ArrayBuffer(de)}function W(se){T[St(se.byteLength)>>2].push(se)}function ue(se,de){var Ce=null;switch(se){case ti:Ce=new Int8Array(F(de),0,de);break;case uo:Ce=new Uint8Array(F(de),0,de);break;case _u:Ce=new Int16Array(F(2*de),0,de);break;case Su:Ce=new Uint16Array(F(2*de),0,de);break;case Mu:Ce=new Int32Array(F(4*de),0,de);break;case sa:Ce=new Uint32Array(F(4*de),0,de);break;case Br:Ce=new Float32Array(F(4*de),0,de);break;default:return null}return Ce.length!==de?Ce.subarray(0,de):Ce}function be(se){W(se.buffer)}return{alloc:F,free:W,allocType:ue,freeType:be}}var gt=dr();gt.zero=dr();var Sr=3408,dn=3410,fo=3411,lo=3412,ri=3413,co=3414,ho=3415,vo=33901,RO=33902,FO=3379,BO=3386,GO=34921,zO=36347,jO=36348,UO=35661,$O=35660,XO=34930,WO=36349,VO=34076,YO=34024,qO=7936,HO=7937,ZO=7938,KO=35724,QO=34047,JO=36063,eL=34852,Cl=3553,p1=34067,tL=34069,rL=33984,Au=6408,dv=5126,g1=5121,vv=36160,nL=36053,aL=36064,iL=16384,oL=function(T,F){var W=1;F.ext_texture_filter_anisotropic&&(W=T.getParameter(QO));var ue=1,be=1;F.webgl_draw_buffers&&(ue=T.getParameter(eL),be=T.getParameter(JO));var se=!!F.oes_texture_float;if(se){var de=T.createTexture();T.bindTexture(Cl,de),T.texImage2D(Cl,0,Au,1,1,0,Au,dv,null);var Ce=T.createFramebuffer();if(T.bindFramebuffer(vv,Ce),T.framebufferTexture2D(vv,aL,Cl,de,0),T.bindTexture(Cl,null),T.checkFramebufferStatus(vv)!==nL)se=!1;else{T.viewport(0,0,1,1),T.clearColor(1,0,0,1),T.clear(iL);var Ne=gt.allocType(dv,4);T.readPixels(0,0,1,1,Au,dv,Ne),T.getError()?se=!1:(T.deleteFramebuffer(Ce),T.deleteTexture(de),se=Ne[0]===1),gt.freeType(Ne)}}var Pe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Oe=!0;if(!Pe){var Be=T.createTexture(),Xe=gt.allocType(g1,36);T.activeTexture(rL),T.bindTexture(p1,Be),T.texImage2D(tL,0,Au,3,3,0,Au,g1,Xe),gt.freeType(Xe),T.bindTexture(p1,null),T.deleteTexture(Be),Oe=!T.getError()}return{colorBits:[T.getParameter(dn),T.getParameter(fo),T.getParameter(lo),T.getParameter(ri)],depthBits:T.getParameter(co),stencilBits:T.getParameter(ho),subpixelBits:T.getParameter(Sr),extensions:Object.keys(F).filter(function(Te){return!!F[Te]}),maxAnisotropic:W,maxDrawbuffers:ue,maxColorAttachments:be,pointSizeDims:T.getParameter(vo),lineWidthDims:T.getParameter(RO),maxViewportDims:T.getParameter(BO),maxCombinedTextureUnits:T.getParameter(UO),maxCubeMapSize:T.getParameter(VO),maxRenderbufferSize:T.getParameter(YO),maxTextureUnits:T.getParameter(XO),maxTextureSize:T.getParameter(FO),maxAttributes:T.getParameter(GO),maxVertexUniforms:T.getParameter(zO),maxVertexTextureUnits:T.getParameter($O),maxVaryingVectors:T.getParameter(jO),maxFragmentUniforms:T.getParameter(WO),glsl:T.getParameter(KO),renderer:T.getParameter(HO),vendor:T.getParameter(qO),version:T.getParameter(ZO),readFloat:se,npotTextureCube:Oe}};function fa(T){return!!T&&typeof T=="object"&&Array.isArray(T.shape)&&Array.isArray(T.stride)&&typeof T.offset=="number"&&T.shape.length===T.stride.length&&(Array.isArray(T.data)||r(T.data))}var Pn=function(T){return Object.keys(T).map(function(F){return T[F]})},Tl={shape:lL,flatten:fL};function sL(T,F,W){for(var ue=0;ue0){var ze;if(Array.isArray(ve[0])){Ae=b1(ve);for(var Me=1,je=1;je0)if(typeof Me[0]=="number"){var We=gt.allocType(Ee.dtype,Me.length);x1(We,Me),Ae(We,ct),gt.freeType(We)}else if(Array.isArray(Me[0])||r(Me[0])){Mt=b1(Me);var Re=gv(Me,Mt,Ee.dtype);Ae(Re,ct),gt.freeType(Re)}else N.raise("invalid buffer data")}else if(fa(Me)){Mt=Me.shape;var xe=Me.stride,xt=0,It=0,nt=0,Rt=0;Mt.length===1?(xt=Mt[0],It=1,nt=xe[0],Rt=0):Mt.length===2?(xt=Mt[0],It=Mt[1],nt=xe[0],Rt=xe[1]):N.raise("invalid shape");var At=Array.isArray(Me.data)?Ee.dtype:kl(Me.data),Pt=gt.allocType(At,xt*It);E1(Pt,Me.data,xt,It,nt,Rt,Me.offset),Ae(Pt,ct),gt.freeType(Pt)}else N.raise("invalid data for buffer subdata");return et}return De||et(re),et._reglType="buffer",et._buffer=Ee,et.subdata=ze,W.profile&&(et.stats=Ee.stats),et.destroy=function(){Xe(Ee)},et}function Ge(){Pn(se).forEach(function(re){re.buffer=T.createBuffer(),T.bindBuffer(re.type,re.buffer),T.bufferData(re.type,re.persistentData||re.byteLength,re.usage)})}return W.profile&&(F.getTotalBufferSize=function(){var re=0;return Object.keys(se).forEach(function(ve){re+=se[ve].stats.size}),re}),{create:Te,createStream:Ne,destroyStream:Pe,clear:function(){Pn(se).forEach(Xe),Ce.forEach(Xe)},getBuffer:function(re){return re&&re._buffer instanceof de?re._buffer:null},restore:Ge,_initBuffer:Be}}var _L=0,SL=0,ML=1,AL=1,CL=4,TL=4,ns={points:_L,point:SL,lines:ML,line:AL,triangles:CL,triangle:TL,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},IL=0,kL=1,Cu=4,NL=5120,as=5121,_1=5122,is=5123,S1=5124,go=5125,bv=34963,OL=35040,LL=35044;function DL(T,F,W,ue){var be={},se=0,de={uint8:as,uint16:is};F.oes_element_index_uint&&(de.uint32=go);function Ce(Ge){this.id=se++,be[this.id]=this,this.buffer=Ge,this.primType=Cu,this.vertCount=0,this.type=0}Ce.prototype.bind=function(){this.buffer.bind()};var Ne=[];function Pe(Ge){var re=Ne.pop();return re||(re=new Ce(W.create(null,bv,!0,!1)._buffer)),Be(re,Ge,OL,-1,-1,0,0),re}function Oe(Ge){Ne.push(Ge)}function Be(Ge,re,ve,De,He,Ee,et){Ge.buffer.bind();var Ae;if(re){var ze=et;!et&&(!r(re)||fa(re)&&!r(re.data))&&(ze=F.oes_element_index_uint?go:is),W._initBuffer(Ge.buffer,re,ve,ze,3)}else T.bufferData(bv,Ee,ve),Ge.buffer.dtype=Ae||as,Ge.buffer.usage=ve,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ee;if(Ae=et,!et){switch(Ge.buffer.dtype){case as:case NL:Ae=as;break;case is:case _1:Ae=is;break;case go:case S1:Ae=go;break;default:N.raise("unsupported type for element array")}Ge.buffer.dtype=Ae}Ge.type=Ae,N(Ae!==go||!!F.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Me=He;Me<0&&(Me=Ge.buffer.byteLength,Ae===is?Me>>=1:Ae===go&&(Me>>=2)),Ge.vertCount=Me;var je=De;if(De<0){je=Cu;var ct=Ge.buffer.dimension;ct===1&&(je=IL),ct===2&&(je=kL),ct===3&&(je=Cu)}Ge.primType=je}function Xe(Ge){ue.elementsCount--,N(Ge.buffer!==null,"must not double destroy elements"),delete be[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function Te(Ge,re){var ve=W.create(null,bv,!0),De=new Ce(ve._buffer);ue.elementsCount++;function He(Ee){if(!Ee)ve(),De.primType=Cu,De.vertCount=0,De.type=as;else if(typeof Ee=="number")ve(Ee),De.primType=Cu,De.vertCount=Ee|0,De.type=as;else{var et=null,Ae=LL,ze=-1,Me=-1,je=0,ct=0;Array.isArray(Ee)||r(Ee)||fa(Ee)?et=Ee:(N.type(Ee,"object","invalid arguments for elements"),"data"in Ee&&(et=Ee.data,N(Array.isArray(et)||r(et)||fa(et),"invalid data for element buffer")),"usage"in Ee&&(N.parameter(Ee.usage,Il,"invalid element buffer usage"),Ae=Il[Ee.usage]),"primitive"in Ee&&(N.parameter(Ee.primitive,ns,"invalid element buffer primitive"),ze=ns[Ee.primitive]),"count"in Ee&&(N(typeof Ee.count=="number"&&Ee.count>=0,"invalid vertex count for elements"),Me=Ee.count|0),"type"in Ee&&(N.parameter(Ee.type,de,"invalid buffer type"),ct=de[Ee.type]),"length"in Ee?je=Ee.length|0:(je=Me,ct===is||ct===_1?je*=2:(ct===go||ct===S1)&&(je*=4))),Be(De,et,Ae,ze,Me,je,ct)}return He}return He(Ge),He._reglType="elements",He._elements=De,He.subdata=function(Ee,et){return ve.subdata(Ee,et),He},He.destroy=function(){Xe(De)},He}return{create:Te,createStream:Pe,destroyStream:Oe,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ce?Ge._elements:null},clear:function(){Pn(be).forEach(Xe)}}}var M1=new Float32Array(1),PL=new Uint32Array(M1.buffer),RL=5123;function A1(T){for(var F=gt.allocType(RL,T.length),W=0;W>>31<<15,se=(ue<<1>>>24)-127,de=ue>>13&1023;if(se<-24)F[W]=be;else if(se<-14){var Ce=-14-se;F[W]=be+(de+1024>>Ce)}else se>15?F[W]=be+31744:F[W]=be+(se+15<<10)+de}return F}function Mr(T){return Array.isArray(T)||r(T)}var C1=function(T){return!(T&T-1)&&!!T},FL=34467,Ca=3553,wv=34067,Nl=34069,yo=6408,xv=6406,Ol=6407,Tu=6409,Ll=6410,T1=32854,Ev=32855,I1=36194,BL=32819,GL=32820,zL=33635,jL=34042,_v=6402,Dl=34041,Sv=35904,Mv=35906,os=36193,Av=33776,Cv=33777,Tv=33778,Iv=33779,k1=35986,N1=35987,O1=34798,L1=35840,D1=35841,P1=35842,R1=35843,F1=36196,ss=5121,kv=5123,Nv=5125,Iu=5126,UL=10242,$L=10243,XL=10497,Ov=33071,WL=33648,VL=10240,YL=10241,Lv=9728,qL=9729,Dv=9984,B1=9985,G1=9986,Pv=9987,HL=33170,Pl=4352,ZL=4353,KL=4354,QL=34046,JL=3317,eD=37440,tD=37441,rD=37443,z1=37444,ku=33984,nD=[Dv,G1,B1,Pv],Rl=[0,Tu,Ll,Ol,yo],Yn={};Yn[Tu]=Yn[xv]=Yn[_v]=1,Yn[Dl]=Yn[Ll]=2,Yn[Ol]=Yn[Sv]=3,Yn[yo]=Yn[Mv]=4;function us(T){return"[object "+T+"]"}var j1=us("HTMLCanvasElement"),U1=us("OffscreenCanvas"),$1=us("CanvasRenderingContext2D"),X1=us("ImageBitmap"),W1=us("HTMLImageElement"),V1=us("HTMLVideoElement"),aD=Object.keys(pv).concat([j1,U1,$1,X1,W1,V1]),fs=[];fs[ss]=1,fs[Iu]=4,fs[os]=2,fs[kv]=2,fs[Nv]=4;var nn=[];nn[T1]=2,nn[Ev]=2,nn[I1]=2,nn[Dl]=4,nn[Av]=.5,nn[Cv]=.5,nn[Tv]=1,nn[Iv]=1,nn[k1]=.5,nn[N1]=1,nn[O1]=1,nn[L1]=.5,nn[D1]=.25,nn[P1]=.5,nn[R1]=.25,nn[F1]=.5;function Y1(T){return Array.isArray(T)&&(T.length===0||typeof T[0]=="number")}function q1(T){if(!Array.isArray(T))return!1;var F=T.length;return!(F===0||!Mr(T[0]))}function mo(T){return Object.prototype.toString.call(T)}function H1(T){return mo(T)===j1}function Z1(T){return mo(T)===U1}function iD(T){return mo(T)===$1}function oD(T){return mo(T)===X1}function sD(T){return mo(T)===W1}function uD(T){return mo(T)===V1}function Rv(T){if(!T)return!1;var F=mo(T);return aD.indexOf(F)>=0?!0:Y1(T)||q1(T)||fa(T)}function K1(T){return pv[Object.prototype.toString.call(T)]|0}function fD(T,F){var W=F.length;switch(T.type){case ss:case kv:case Nv:case Iu:var ue=gt.allocType(T.type,W);ue.set(F),T.data=ue;break;case os:T.data=A1(F);break;default:N.raise("unsupported texture type, must specify a typed array")}}function Q1(T,F){return gt.allocType(T.type===os?Iu:T.type,F)}function J1(T,F){T.type===os?(T.data=A1(F),gt.freeType(F)):T.data=F}function lD(T,F,W,ue,be,se){for(var de=T.width,Ce=T.height,Ne=T.channels,Pe=de*Ce*Ne,Oe=Q1(T,Pe),Be=0,Xe=0;Xe=1;)Ce+=de*Ne*Ne,Ne/=2;return Ce}else return de*W*ue}function cD(T,F,W,ue,be,se,de){var Ce={"don't care":Pl,"dont care":Pl,nice:KL,fast:ZL},Ne={repeat:XL,clamp:Ov,mirror:WL},Pe={nearest:Lv,linear:qL},Oe=n({mipmap:Pv,"nearest mipmap nearest":Dv,"linear mipmap nearest":B1,"nearest mipmap linear":G1,"linear mipmap linear":Pv},Pe),Be={none:0,browser:z1},Xe={uint8:ss,rgba4:BL,rgb565:zL,"rgb5 a1":GL},Te={alpha:xv,luminance:Tu,"luminance alpha":Ll,rgb:Ol,rgba:yo,rgba4:T1,"rgb5 a1":Ev,rgb565:I1},Ge={};F.ext_srgb&&(Te.srgb=Sv,Te.srgba=Mv),F.oes_texture_float&&(Xe.float32=Xe.float=Iu),F.oes_texture_half_float&&(Xe.float16=Xe["half float"]=os),F.webgl_depth_texture&&(n(Te,{depth:_v,"depth stencil":Dl}),n(Xe,{uint16:kv,uint32:Nv,"depth stencil":jL})),F.webgl_compressed_texture_s3tc&&n(Ge,{"rgb s3tc dxt1":Av,"rgba s3tc dxt1":Cv,"rgba s3tc dxt3":Tv,"rgba s3tc dxt5":Iv}),F.webgl_compressed_texture_atc&&n(Ge,{"rgb atc":k1,"rgba atc explicit alpha":N1,"rgba atc interpolated alpha":O1}),F.webgl_compressed_texture_pvrtc&&n(Ge,{"rgb pvrtc 4bppv1":L1,"rgb pvrtc 2bppv1":D1,"rgba pvrtc 4bppv1":P1,"rgba pvrtc 2bppv1":R1}),F.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=F1);var re=Array.prototype.slice.call(T.getParameter(FL));Object.keys(Ge).forEach(function($){var fe=Ge[$];re.indexOf(fe)>=0&&(Te[$]=fe)});var ve=Object.keys(Te);W.textureFormats=ve;var De=[];Object.keys(Te).forEach(function($){var fe=Te[$];De[fe]=$});var He=[];Object.keys(Xe).forEach(function($){var fe=Xe[$];He[fe]=$});var Ee=[];Object.keys(Pe).forEach(function($){var fe=Pe[$];Ee[fe]=$});var et=[];Object.keys(Oe).forEach(function($){var fe=Oe[$];et[fe]=$});var Ae=[];Object.keys(Ne).forEach(function($){var fe=Ne[$];Ae[fe]=$});var ze=ve.reduce(function($,fe){var oe=Te[fe];return oe===Tu||oe===xv||oe===Tu||oe===Ll||oe===_v||oe===Dl||F.ext_srgb&&(oe===Sv||oe===Mv)?$[oe]=oe:oe===Ev||fe.indexOf("rgba")>=0?$[oe]=yo:$[oe]=Ol,$},{});function Me(){this.internalformat=yo,this.format=yo,this.type=ss,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=z1,this.width=0,this.height=0,this.channels=0}function je($,fe){$.internalformat=fe.internalformat,$.format=fe.format,$.type=fe.type,$.compressed=fe.compressed,$.premultiplyAlpha=fe.premultiplyAlpha,$.flipY=fe.flipY,$.unpackAlignment=fe.unpackAlignment,$.colorSpace=fe.colorSpace,$.width=fe.width,$.height=fe.height,$.channels=fe.channels}function ct($,fe){if(!(typeof fe!="object"||!fe)){if("premultiplyAlpha"in fe&&(N.type(fe.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),$.premultiplyAlpha=fe.premultiplyAlpha),"flipY"in fe&&(N.type(fe.flipY,"boolean","invalid texture flip"),$.flipY=fe.flipY),"alignment"in fe&&(N.oneOf(fe.alignment,[1,2,4,8],"invalid texture unpack alignment"),$.unpackAlignment=fe.alignment),"colorSpace"in fe&&(N.parameter(fe.colorSpace,Be,"invalid colorSpace"),$.colorSpace=Be[fe.colorSpace]),"type"in fe){var oe=fe.type;N(F.oes_texture_float||!(oe==="float"||oe==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),N(F.oes_texture_half_float||!(oe==="half float"||oe==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),N(F.webgl_depth_texture||!(oe==="uint16"||oe==="uint32"||oe==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(oe,Xe,"invalid texture type"),$.type=Xe[oe]}var rt=$.width,Ft=$.height,j=$.channels,D=!1;"shape"in fe?(N(Array.isArray(fe.shape)&&fe.shape.length>=2,"shape must be an array"),rt=fe.shape[0],Ft=fe.shape[1],fe.shape.length===3&&(j=fe.shape[2],N(j>0&&j<=4,"invalid number of channels"),D=!0),N(rt>=0&&rt<=W.maxTextureSize,"invalid width"),N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")):("radius"in fe&&(rt=Ft=fe.radius,N(rt>=0&&rt<=W.maxTextureSize,"invalid radius")),"width"in fe&&(rt=fe.width,N(rt>=0&&rt<=W.maxTextureSize,"invalid width")),"height"in fe&&(Ft=fe.height,N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")),"channels"in fe&&(j=fe.channels,N(j>0&&j<=4,"invalid number of channels"),D=!0)),$.width=rt|0,$.height=Ft|0,$.channels=j|0;var q=!1;if("format"in fe){var ee=fe.format;N(F.webgl_depth_texture||!(ee==="depth"||ee==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(ee,Te,"invalid texture format");var ne=$.internalformat=Te[ee];$.format=ze[ne],ee in Xe&&("type"in fe||($.type=Xe[ee])),ee in Ge&&($.compressed=!0),q=!0}!D&&q?$.channels=Yn[$.format]:D&&!q?$.channels!==Rl[$.format]&&($.format=$.internalformat=Rl[$.channels]):q&&D&&N($.channels===Yn[$.format],"number of channels inconsistent with specified format")}}function Mt($){T.pixelStorei(eD,$.flipY),T.pixelStorei(tD,$.premultiplyAlpha),T.pixelStorei(rD,$.colorSpace),T.pixelStorei(JL,$.unpackAlignment)}function We(){Me.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Re($,fe){var oe=null;if(Rv(fe)?oe=fe:fe&&(N.type(fe,"object","invalid pixel data type"),ct($,fe),"x"in fe&&($.xOffset=fe.x|0),"y"in fe&&($.yOffset=fe.y|0),Rv(fe.data)&&(oe=fe.data)),N(!$.compressed||oe instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),fe.copy){N(!oe,"can not specify copy and data field for the same texture");var rt=be.viewportWidth,Ft=be.viewportHeight;$.width=$.width||rt-$.xOffset,$.height=$.height||Ft-$.yOffset,$.needsCopy=!0,N($.xOffset>=0&&$.xOffset=0&&$.yOffset0&&$.width<=rt&&$.height>0&&$.height<=Ft,"copy texture read out of bounds")}else if(!oe)$.width=$.width||1,$.height=$.height||1,$.channels=$.channels||4;else if(r(oe))$.channels=$.channels||4,$.data=oe,!("type"in fe)&&$.type===ss&&($.type=K1(oe));else if(Y1(oe))$.channels=$.channels||4,fD($,oe),$.alignment=1,$.needsFree=!0;else if(fa(oe)){var j=oe.data;!Array.isArray(j)&&$.type===ss&&($.type=K1(j));var D=oe.shape,q=oe.stride,ee,ne,K,H,Q,U;D.length===3?(K=D[2],U=q[2]):(N(D.length===2,"invalid ndarray pixel data, must be 2 or 3D"),K=1,U=1),ee=D[0],ne=D[1],H=q[0],Q=q[1],$.alignment=1,$.width=ee,$.height=ne,$.channels=K,$.format=$.internalformat=Rl[K],$.needsFree=!0,lD($,j,H,Q,U,oe.offset)}else if(H1(oe)||Z1(oe)||iD(oe))H1(oe)||Z1(oe)?$.element=oe:$.element=oe.canvas,$.width=$.element.width,$.height=$.element.height,$.channels=4;else if(oD(oe))$.element=oe,$.width=oe.width,$.height=oe.height,$.channels=4;else if(sD(oe))$.element=oe,$.width=oe.naturalWidth,$.height=oe.naturalHeight,$.channels=4;else if(uD(oe))$.element=oe,$.width=oe.videoWidth,$.height=oe.videoHeight,$.channels=4;else if(q1(oe)){var Y=$.width||oe[0].length,G=$.height||oe.length,J=$.channels;Mr(oe[0][0])?J=J||oe[0][0].length:J=J||1;for(var ae=Tl.shape(oe),ye=1,we=0;we=0,"oes_texture_float extension not enabled"):$.type===os&&N(W.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xe($,fe,oe){var rt=$.element,Ft=$.data,j=$.internalformat,D=$.format,q=$.type,ee=$.width,ne=$.height;Mt($),rt?T.texImage2D(fe,oe,D,D,q,rt):$.compressed?T.compressedTexImage2D(fe,oe,j,ee,ne,0,Ft):$.needsCopy?(ue(),T.copyTexImage2D(fe,oe,D,$.xOffset,$.yOffset,ee,ne,0)):T.texImage2D(fe,oe,D,ee,ne,0,D,q,Ft||null)}function xt($,fe,oe,rt,Ft){var j=$.element,D=$.data,q=$.internalformat,ee=$.format,ne=$.type,K=$.width,H=$.height;Mt($),j?T.texSubImage2D(fe,Ft,oe,rt,ee,ne,j):$.compressed?T.compressedTexSubImage2D(fe,Ft,oe,rt,q,K,H,D):$.needsCopy?(ue(),T.copyTexSubImage2D(fe,Ft,oe,rt,$.xOffset,$.yOffset,K,H)):T.texSubImage2D(fe,Ft,oe,rt,K,H,ee,ne,D)}var It=[];function nt(){return It.pop()||new We}function Rt($){$.needsFree&>.freeType($.data),We.call($),It.push($)}function At(){Me.call(this),this.genMipmaps=!1,this.mipmapHint=Pl,this.mipmask=0,this.images=Array(16)}function Pt($,fe,oe){var rt=$.images[0]=nt();$.mipmask=1,rt.width=$.width=fe,rt.height=$.height=oe,rt.channels=$.channels=4}function Qt($,fe){var oe=null;if(Rv(fe))oe=$.images[0]=nt(),je(oe,$),Re(oe,fe),$.mipmask=1;else if(ct($,fe),Array.isArray(fe.mipmap))for(var rt=fe.mipmap,Ft=0;Ft>=Ft,oe.height>>=Ft,Re(oe,rt[Ft]),$.mipmask|=1<=0&&!("faces"in fe)&&($.genMipmaps=!0)}if("mag"in fe){var rt=fe.mag;N.parameter(rt,Pe),$.magFilter=Pe[rt]}var Ft=$.wrapS,j=$.wrapT;if("wrap"in fe){var D=fe.wrap;typeof D=="string"?(N.parameter(D,Ne),Ft=j=Ne[D]):Array.isArray(D)&&(N.parameter(D[0],Ne),N.parameter(D[1],Ne),Ft=Ne[D[0]],j=Ne[D[1]])}else{if("wrapS"in fe){var q=fe.wrapS;N.parameter(q,Ne),Ft=Ne[q]}if("wrapT"in fe){var ee=fe.wrapT;N.parameter(ee,Ne),j=Ne[ee]}}if($.wrapS=Ft,$.wrapT=j,"anisotropic"in fe){var ne=fe.anisotropic;N(typeof ne=="number"&&ne>=1&&ne<=W.maxAnisotropic,"aniso samples must be between 1 and "),$.anisotropic=fe.anisotropic}if("mipmap"in fe){var K=!1;switch(typeof fe.mipmap){case"string":N.parameter(fe.mipmap,Ce,"invalid mipmap hint"),$.mipmapHint=Ce[fe.mipmap],$.genMipmaps=!0,K=!0;break;case"boolean":K=$.genMipmaps=fe.mipmap;break;case"object":N(Array.isArray(fe.mipmap),"invalid mipmap type"),$.genMipmaps=!1,K=!0;break;default:N.raise("invalid mipmap type")}K&&!("min"in fe)&&($.minFilter=Dv)}}function zr($,fe){T.texParameteri(fe,YL,$.minFilter),T.texParameteri(fe,VL,$.magFilter),T.texParameteri(fe,UL,$.wrapS),T.texParameteri(fe,$L,$.wrapT),F.ext_texture_filter_anisotropic&&T.texParameteri(fe,QL,$.anisotropic),$.genMipmaps&&(T.hint(HL,$.mipmapHint),T.generateMipmap(fe))}var jr=0,Yr={},an=W.maxTextureUnits,Ar=Array(an).map(function(){return null});function kt($){Me.call(this),this.mipmask=0,this.internalformat=yo,this.id=jr++,this.refCount=1,this.target=$,this.texture=T.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new pr,de.profile&&(this.stats={size:0})}function on($){T.activeTexture(ku),T.bindTexture($.target,$.texture)}function ir(){var $=Ar[0];$?T.bindTexture($.target,$.texture):T.bindTexture(Ca,null)}function vt($){var fe=$.texture;N(fe,"must not double destroy texture");var oe=$.unit,rt=$.target;oe>=0&&(T.activeTexture(ku+oe),T.bindTexture(rt,null),Ar[oe]=null),T.deleteTexture(fe),$.texture=null,$.params=null,$.pixels=null,$.refCount=0,delete Yr[$.id],se.textureCount--}n(kt.prototype,{bind:function(){var $=this;$.bindCount+=1;var fe=$.unit;if(fe<0){for(var oe=0;oe0)continue;rt.unit=-1}Ar[oe]=$,fe=oe;break}fe>=an&&N.raise("insufficient number of texture units"),de.profile&&se.maxTextureUnits>Q)-K,U.height=U.height||(oe.height>>Q)-H,N(oe.type===U.type&&oe.format===U.format&&oe.internalformat===U.internalformat,"incompatible format for texture.subimage"),N(K>=0&&H>=0&&K+U.width<=oe.width&&H+U.height<=oe.height,"texture.subimage write out of bounds"),N(oe.mipmask&1<>K;++K){var H=ee>>K,Q=ne>>K;if(!H||!Q)break;T.texImage2D(Ca,K,oe.format,H,Q,0,oe.format,oe.type,null)}return ir(),de.profile&&(oe.stats.size=Fl(oe.internalformat,oe.type,ee,ne,!1,!1)),rt}return rt($,fe),rt.subimage=Ft,rt.resize=j,rt._reglType="texture2d",rt._texture=oe,de.profile&&(rt.stats=oe.stats),rt.destroy=function(){oe.decRef()},rt}function Vt($,fe,oe,rt,Ft,j){var D=new kt(wv);Yr[D.id]=D,se.cubeCount++;var q=new Array(6);function ee(H,Q,U,Y,G,J){var ae,ye=D.texInfo;for(pr.call(ye),ae=0;ae<6;++ae)q[ae]=zt();if(typeof H=="number"||!H){var we=H|0||1;for(ae=0;ae<6;++ae)Pt(q[ae],we,we)}else if(typeof H=="object")if(Q)Qt(q[0],H),Qt(q[1],Q),Qt(q[2],U),Qt(q[3],Y),Qt(q[4],G),Qt(q[5],J);else if(Or(ye,H),ct(D,H),"faces"in H){var pe=H.faces;for(N(Array.isArray(pe)&&pe.length===6,"cube faces must be a length 6 array"),ae=0;ae<6;++ae)N(typeof pe[ae]=="object"&&!!pe[ae],"invalid input for cube map face"),je(q[ae],D),Qt(q[ae],pe[ae])}else for(ae=0;ae<6;++ae)Qt(q[ae],H);else N.raise("invalid arguments to cube map");for(je(D,q[0]),W.npotTextureCube||N(C1(D.width)&&C1(D.height),"your browser does not support non power or two texture dimensions"),ye.genMipmaps?D.mipmask=(q[0].width<<1)-1:D.mipmask=q[0].mipmask,N.textureCube(D,ye,q,W),D.internalformat=q[0].internalformat,ee.width=q[0].width,ee.height=q[0].height,on(D),ae=0;ae<6;++ae)Nr(q[ae],Nl+ae);for(zr(ye,wv),ir(),de.profile&&(D.stats.size=Fl(D.internalformat,D.type,ee.width,ee.height,ye.genMipmaps,!0)),ee.format=De[D.internalformat],ee.type=He[D.type],ee.mag=Ee[ye.magFilter],ee.min=et[ye.minFilter],ee.wrapS=Ae[ye.wrapS],ee.wrapT=Ae[ye.wrapT],ae=0;ae<6;++ae)Gr(q[ae]);return ee}function ne(H,Q,U,Y,G){N(!!Q,"must specify image data"),N(typeof H=="number"&&H===(H|0)&&H>=0&&H<6,"invalid face");var J=U|0,ae=Y|0,ye=G|0,we=nt();return je(we,D),we.width=0,we.height=0,Re(we,Q),we.width=we.width||(D.width>>ye)-J,we.height=we.height||(D.height>>ye)-ae,N(D.type===we.type&&D.format===we.format&&D.internalformat===we.internalformat,"incompatible format for texture.subimage"),N(J>=0&&ae>=0&&J+we.width<=D.width&&ae+we.height<=D.height,"texture.subimage write out of bounds"),N(D.mipmask&1<>Y;++Y)T.texImage2D(Nl+U,Y,D.format,Q>>Y,Q>>Y,0,D.format,D.type,null);return ir(),de.profile&&(D.stats.size=Fl(D.internalformat,D.type,ee.width,ee.height,!1,!0)),ee}}return ee($,fe,oe,rt,Ft,j),ee.subimage=ne,ee.resize=K,ee._reglType="textureCube",ee._texture=D,de.profile&&(ee.stats=D.stats),ee.destroy=function(){D.decRef()},ee}function Cr(){for(var $=0;$>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);else for(var Ft=0;Ft<6;++Ft)T.texImage2D(Nl+Ft,rt,oe.internalformat,oe.width>>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);zr(oe.texInfo,oe.target)})}function Mo(){for(var $=0;$=2,"invalid renderbuffer shape"),et=je[0]|0,Ae=je[1]|0}else"radius"in Me&&(et=Ae=Me.radius|0),"width"in Me&&(et=Me.width|0),"height"in Me&&(Ae=Me.height|0);"format"in Me&&(N.parameter(Me.format,se,"invalid renderbuffer format"),ze=se[Me.format])}else typeof He=="number"?(et=He|0,typeof Ee=="number"?Ae=Ee|0:Ae=et):He?N.raise("invalid arguments to renderbuffer constructor"):et=Ae=1;if(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),!(et===re.width&&Ae===re.height&&ze===re.format))return ve.width=re.width=et,ve.height=re.height=Ae,re.format=ze,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,ze,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=fb(re.format,re.width,re.height)),ve.format=de[re.format],ve}function De(He,Ee){var et=He|0,Ae=Ee|0||et;return et===re.width&&Ae===re.height||(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),ve.width=re.width=et,ve.height=re.height=Ae,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,re.format,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=fb(re.format,re.width,re.height))),ve}return ve(Te,Ge),ve.resize=De,ve._reglType="renderbuffer",ve._renderbuffer=re,be.profile&&(ve.stats=re.stats),ve.destroy=function(){re.decRef()},ve}be.profile&&(ue.getTotalRenderbufferSize=function(){var Te=0;return Object.keys(Ne).forEach(function(Ge){Te+=Ne[Ge].stats.size}),Te});function Xe(){Pn(Ne).forEach(function(Te){Te.renderbuffer=T.createRenderbuffer(),T.bindRenderbuffer(Ci,Te.renderbuffer),T.renderbufferStorage(Ci,Te.format,Te.width,Te.height)}),T.bindRenderbuffer(Ci,null)}return{create:Be,clear:function(){Pn(Ne).forEach(Oe)},restore:Xe}},ni=36160,Fv=36161,bo=3553,Gl=34069,lb=36064,cb=36096,hb=36128,db=33306,vb=36053,dD=36054,vD=36055,pD=36057,gD=36061,yD=36193,mD=5121,bD=5126,pb=6407,gb=6408,wD=6402,xD=[pb,gb],Bv=[];Bv[gb]=4,Bv[pb]=3;var zl=[];zl[mD]=1,zl[bD]=4,zl[yD]=2;var ED=32854,_D=32855,SD=36194,MD=33189,AD=36168,yb=34041,CD=35907,TD=34836,ID=34842,kD=34843,ND=[ED,_D,SD,CD,ID,kD,TD],ls={};ls[vb]="complete",ls[dD]="incomplete attachment",ls[pD]="incomplete dimensions",ls[vD]="incomplete, missing attachment",ls[gD]="unsupported";function OD(T,F,W,ue,be,se){var de={cur:null,next:null,dirty:!1,setFBO:null},Ce=["rgba"],Ne=["rgba4","rgb565","rgb5 a1"];F.ext_srgb&&Ne.push("srgba"),F.ext_color_buffer_half_float&&Ne.push("rgba16f","rgb16f"),F.webgl_color_buffer_float&&Ne.push("rgba32f");var Pe=["uint8"];F.oes_texture_half_float&&Pe.push("half float","float16"),F.oes_texture_float&&Pe.push("float","float32");function Oe(We,Re,xe){this.target=We,this.texture=Re,this.renderbuffer=xe;var xt=0,It=0;Re?(xt=Re.width,It=Re.height):xe&&(xt=xe.width,It=xe.height),this.width=xt,this.height=It}function Be(We){We&&(We.texture&&We.texture._texture.decRef(),We.renderbuffer&&We.renderbuffer._renderbuffer.decRef())}function Xe(We,Re,xe){if(We)if(We.texture){var xt=We.texture._texture,It=Math.max(1,xt.width),nt=Math.max(1,xt.height);N(It===Re&&nt===xe,"inconsistent width/height for supplied texture"),xt.refCount+=1}else{var Rt=We.renderbuffer._renderbuffer;N(Rt.width===Re&&Rt.height===xe,"inconsistent width/height for renderbuffer"),Rt.refCount+=1}}function Te(We,Re){Re&&(Re.texture?T.framebufferTexture2D(ni,We,Re.target,Re.texture._texture.texture,0):T.framebufferRenderbuffer(ni,We,Fv,Re.renderbuffer._renderbuffer.renderbuffer))}function Ge(We){var Re=bo,xe=null,xt=null,It=We;typeof We=="object"&&(It=We.data,"target"in We&&(Re=We.target|0)),N.type(It,"function","invalid attachment data");var nt=It._reglType;return nt==="texture2d"?(xe=It,N(Re===bo)):nt==="textureCube"?(xe=It,N(Re>=Gl&&Re=2,"invalid shape for framebuffer"),Pt=on[0],Qt=on[1]}else"radius"in kt&&(Pt=Qt=kt.radius),"width"in kt&&(Pt=kt.width),"height"in kt&&(Qt=kt.height);("color"in kt||"colors"in kt)&&(zt=kt.color||kt.colors,Array.isArray(zt)&&N(zt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),zt||("colorCount"in kt&&(zr=kt.colorCount|0,N(zr>0,"invalid color buffer count")),"colorTexture"in kt&&(Gr=!!kt.colorTexture,pr="rgba4"),"colorType"in kt&&(Or=kt.colorType,Gr?(N(F.oes_texture_float||!(Or==="float"||Or==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),N(F.oes_texture_half_float||!(Or==="half float"||Or==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Or==="half float"||Or==="float16"?(N(F.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),pr="rgba16f"):(Or==="float"||Or==="float32")&&(N(F.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),pr="rgba32f"),N.oneOf(Or,Pe,"invalid color type")),"colorFormat"in kt&&(pr=kt.colorFormat,Ce.indexOf(pr)>=0?Gr=!0:Ne.indexOf(pr)>=0?Gr=!1:Gr?N.oneOf(kt.colorFormat,Ce,"invalid color format for texture"):N.oneOf(kt.colorFormat,Ne,"invalid color format for renderbuffer"))),("depthTexture"in kt||"depthStencilTexture"in kt)&&(Ar=!!(kt.depthTexture||kt.depthStencilTexture),N(!Ar||F.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in kt&&(typeof kt.depth=="boolean"?Nr=kt.depth:(jr=kt.depth,$r=!1)),"stencil"in kt&&(typeof kt.stencil=="boolean"?$r=kt.stencil:(Yr=kt.stencil,Nr=!1)),"depthStencil"in kt&&(typeof kt.depthStencil=="boolean"?Nr=$r=kt.depthStencil:(an=kt.depthStencil,Nr=!1,$r=!1))}var ir=null,vt=null,Gt=null,Vt=null;if(Array.isArray(zt))ir=zt.map(Ge);else if(zt)ir=[Ge(zt)];else for(ir=new Array(zr),At=0;At=0||ir[At].renderbuffer&&ND.indexOf(ir[At].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+At+" is invalid"),ir[At]&&ir[At].texture){var Ia=Bv[ir[At].texture._texture.format]*zl[ir[At].texture._texture.type];Cr===null?Cr=Ia:N(Cr===Ia,"all color attachments much have the same number of bits per pixel.")}return Xe(vt,Pt,Qt),N(!vt||vt.texture&&vt.texture._texture.format===wD||vt.renderbuffer&&vt.renderbuffer._renderbuffer.format===MD,"invalid depth attachment for framebuffer object"),Xe(Gt,Pt,Qt),N(!Gt||Gt.renderbuffer&&Gt.renderbuffer._renderbuffer.format===AD,"invalid stencil attachment for framebuffer object"),Xe(Vt,Pt,Qt),N(!Vt||Vt.texture&&Vt.texture._texture.format===yb||Vt.renderbuffer&&Vt.renderbuffer._renderbuffer.format===yb,"invalid depth-stencil attachment for framebuffer object"),Ae(xe),xe.width=Pt,xe.height=Qt,xe.colorAttachments=ir,xe.depthAttachment=vt,xe.stencilAttachment=Gt,xe.depthStencilAttachment=Vt,xt.color=ir.map(ve),xt.depth=ve(vt),xt.stencil=ve(Gt),xt.depthStencil=ve(Vt),xt.width=xe.width,xt.height=xe.height,Me(xe),xt}function It(nt,Rt){N(de.next!==xe,"can not resize a framebuffer which is currently in use");var At=Math.max(nt|0,1),Pt=Math.max(Rt|0||At,1);if(At===xe.width&&Pt===xe.height)return xt;for(var Qt=xe.colorAttachments,Nr=0;Nr=2,"invalid shape for framebuffer"),N(Gr[0]===Gr[1],"cube framebuffer must be square"),At=Gr[0]}else"radius"in zt&&(At=zt.radius|0),"width"in zt?(At=zt.width|0,"height"in zt&&N(zt.height===At,"must be square")):"height"in zt&&(At=zt.height|0);("color"in zt||"colors"in zt)&&(Pt=zt.color||zt.colors,Array.isArray(Pt)&&N(Pt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),Pt||("colorCount"in zt&&($r=zt.colorCount|0,N($r>0,"invalid color buffer count")),"colorType"in zt&&(N.oneOf(zt.colorType,Pe,"invalid color type"),Nr=zt.colorType),"colorFormat"in zt&&(Qt=zt.colorFormat,N.oneOf(zt.colorFormat,Ce,"invalid color format for texture"))),"depth"in zt&&(Rt.depth=zt.depth),"stencil"in zt&&(Rt.stencil=zt.stencil),"depthStencil"in zt&&(Rt.depthStencil=zt.depthStencil)}var pr;if(Pt)if(Array.isArray(Pt))for(pr=[],nt=0;nt0&&(Rt.depth=Re[0].depth,Rt.stencil=Re[0].stencil,Rt.depthStencil=Re[0].depthStencil),Re[nt]?Re[nt](Rt):Re[nt]=je(Rt)}return n(xe,{width:At,height:At,color:pr})}function xt(It){var nt,Rt=It|0;if(N(Rt>0&&Rt<=W.maxCubeMapSize,"invalid radius for cube fbo"),Rt===xe.width)return xe;var At=xe.color;for(nt=0;nt0,"must specify at least one attribute");var ct={},Mt=ze.attributes;Mt.length=je.length;for(var We=0;We=xt.byteLength?It.subdata(xt):(It.destroy(),ze.buffers[We]=null)),ze.buffers[We]||(It=ze.buffers[We]=be.create(Re,mb,!1,!0)),xe.buffer=be.getBuffer(It),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1,ct[We]=1}else be.getBuffer(Re)?(xe.buffer=be.getBuffer(Re),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1):be.getBuffer(Re.buffer)?(xe.buffer=be.getBuffer(Re.buffer),xe.size=(+Re.size||xe.buffer.dimension)|0,xe.normalized=!!Re.normalized||!1,"type"in Re?(N.parameter(Re.type,po,"invalid buffer type"),xe.type=po[Re.type]):xe.type=xe.buffer.dtype,xe.offset=(Re.offset||0)|0,xe.stride=(Re.stride||0)|0,xe.divisor=(Re.divisor||0)|0,xe.state=1,N(xe.size>=1&&xe.size<=4,"size must be between 1 and 4"),N(xe.offset>=0,"invalid offset"),N(xe.stride>=0&&xe.stride<=255,"stride must be between 0 and 255"),N(xe.divisor>=0,"divisor must be positive"),N(!xe.divisor||!!F.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Re?(N(We>0,"first attribute must not be a constant"),xe.x=+Re.x||0,xe.y=+Re.y||0,xe.z=+Re.z||0,xe.w=+Re.w||0,xe.state=2):N(!1,"invalid attribute spec for location "+We)}for(var nt=0;nt1)for(var Mt=0;Mtre&&(re=ve.stats.uniformsCount)}),re},W.getMaxAttributesCount=function(){var re=0;return Oe.forEach(function(ve){ve.stats.attributesCount>re&&(re=ve.stats.attributesCount)}),re});function Ge(){be={},se={};for(var re=0;re=0,"missing vertex shader",De),N.command(ve>=0,"missing fragment shader",De);var Ee=Pe[ve];Ee||(Ee=Pe[ve]={});var et=Ee[re];if(et&&(et.refCount++,!He))return et;var Ae=new Xe(ve,re);return W.shaderCount++,Te(Ae,De,He),et||(Ee[re]=Ae),Oe.push(Ae),n(Ae,{destroy:function(){if(Ae.refCount--,Ae.refCount<=0){T.deleteProgram(Ae.program);var ze=Oe.indexOf(Ae);Oe.splice(ze,1),W.shaderCount--}Ee[Ae.vertId].refCount<=0&&(T.deleteShader(se[Ae.vertId]),delete se[Ae.vertId],delete Pe[Ae.fragId][Ae.vertId]),Object.keys(Pe[Ae.fragId]).length||(T.deleteShader(be[Ae.fragId]),delete be[Ae.fragId],delete Pe[Ae.fragId])}})},restore:Ge,shader:Ne,frag:-1,vert:-1}}var GD=6408,Nu=5121,zD=3333,jl=5126;function jD(T,F,W,ue,be,se,de){function Ce(Oe){var Be;F.next===null?(N(be.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Be=Nu):(N(F.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Be=F.next.colorAttachments[0].texture._texture.type,se.oes_texture_float?(N(Be===Nu||Be===jl,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Be===jl&&N(de.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):N(Be===Nu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Xe=0,Te=0,Ge=ue.framebufferWidth,re=ue.framebufferHeight,ve=null;r(Oe)?ve=Oe:Oe&&(N.type(Oe,"object","invalid arguments to regl.read()"),Xe=Oe.x|0,Te=Oe.y|0,N(Xe>=0&&Xe=0&&Te0&&Ge+Xe<=ue.framebufferWidth,"invalid width for read pixels"),N(re>0&&re+Te<=ue.framebufferHeight,"invalid height for read pixels"),W();var De=Ge*re*4;return ve||(Be===Nu?ve=new Uint8Array(De):Be===jl&&(ve=ve||new Float32Array(De))),N.isTypedArray(ve,"data buffer for regl.read() must be a typedarray"),N(ve.byteLength>=De,"data buffer for regl.read() too small"),T.pixelStorei(zD,4),T.readPixels(Xe,Te,Ge,re,GD,Be,ve),ve}function Ne(Oe){var Be;return F.setFBO({framebuffer:Oe.framebuffer},function(){Be=Ce(Oe)}),Be}function Pe(Oe){return!Oe||!("framebuffer"in Oe)?Ce(Oe):Ne(Oe)}return Pe}function cs(T){return Array.prototype.slice.call(T)}function hs(T){return cs(T).join("")}function UD(){var T=0,F=[],W=[];function ue(Be){for(var Xe=0;Xe0&&(Be.push(re,"="),Be.push.apply(Be,cs(arguments)),Be.push(";")),re}return n(Xe,{def:Ge,toString:function(){return hs([Te.length>0?"var "+Te.join(",")+";":"",hs(Be)])}})}function se(){var Be=be(),Xe=be(),Te=Be.toString,Ge=Xe.toString;function re(ve,De){Xe(ve,De,"=",Be.def(ve,De),";")}return n(function(){Be.apply(Be,cs(arguments))},{def:Be.def,entry:Be,exit:Xe,save:re,set:function(ve,De,He){re(ve,De),Be(ve,De,"=",He,";")},toString:function(){return Te()+Ge()}})}function de(){var Be=hs(arguments),Xe=se(),Te=se(),Ge=Xe.toString,re=Te.toString;return n(Xe,{then:function(){return Xe.apply(Xe,cs(arguments)),this},else:function(){return Te.apply(Te,cs(arguments)),this},toString:function(){var ve=re();return ve&&(ve="else{"+ve+"}"),hs(["if(",Be,"){",Ge(),"}",ve])}})}var Ce=be(),Ne={};function Pe(Be,Xe){var Te=[];function Ge(){var Ee="a"+Te.length;return Te.push(Ee),Ee}Xe=Xe||0;for(var re=0;re":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Hb={frag:YD,vert:qD},op={cw:$b,ccw:ip};function tc(T){return Array.isArray(T)||r(T)||fa(T)}function Zb(T){return T.sort(function(F,W){return F===ai?-1:W===ai?1:F=1,ue>=2,F)}else if(W===Ul){var be=T.data;return new En(be.thisDep,be.contextDep,be.propDep,F)}else{if(W===xb)return new En(!1,!1,!1,F);if(W===Eb){for(var se=!1,de=!1,Ce=!1,Ne=0;Ne=1&&(de=!0),Oe>=2&&(Ce=!0)}else Pe.type===Ul&&(se=se||Pe.data.thisDep,de=de||Pe.data.contextDep,Ce=Ce||Pe.data.propDep)}return new En(se,de,Ce,F)}else return new En(W===Xv,W===$v,W===Uv,F)}}var Kb=new En(!1,!1,!1,function(){});function lP(T,F,W,ue,be,se,de,Ce,Ne,Pe,Oe,Be,Xe,Te,Ge){var re=Pe.Record,ve={add:32774,subtract:32778,"reverse subtract":32779};W.ext_blend_minmax&&(ve.min=iP,ve.max=oP);var De=W.angle_instanced_arrays,He=W.webgl_draw_buffers,Ee={dirty:!0,profile:Ge.profile},et={},Ae=[],ze={},Me={};function je(j){return j.replace(".","_")}function ct(j,D,q){var ee=je(j);Ae.push(j),et[ee]=Ee[ee]=!!q,ze[ee]=D}function Mt(j,D,q){var ee=je(j);Ae.push(j),Array.isArray(q)?(Ee[ee]=q.slice(),et[ee]=q.slice()):Ee[ee]=et[ee]=q,Me[ee]=D}ct(_b,QD),ct(Sb,KD),Mt(Mb,"blendColor",[0,0,0,0]),Mt(Wv,"blendEquationSeparate",[Vb,Vb]),Mt(Vv,"blendFuncSeparate",[Wb,Xb,Wb,Xb]),ct(Ab,eP,!0),Mt(Cb,"depthFunc",uP),Mt(Tb,"depthRange",[0,1]),Mt(Ib,"depthMask",!0),Mt(Yv,Yv,[!0,!0,!0,!0]),ct(kb,ZD),Mt(Nb,"cullFace",So),Mt(qv,qv,ip),Mt(Hv,Hv,1),ct(Ob,rP),Mt(Zv,"polygonOffset",[0,0]),ct(Lb,nP),ct(Db,aP),Mt(Kv,"sampleCoverage",[1,!1]),ct(Pb,JD),Mt(Rb,"stencilMask",-1),Mt(Qv,"stencilFunc",[sP,0,-1]),Mt(Jv,"stencilOpSeparate",[Uu,Ti,Ti,Ti]),Mt(Ou,"stencilOpSeparate",[So,Ti,Ti,Ti]),ct(Fb,tP),Mt($l,"scissor",[0,0,T.drawingBufferWidth,T.drawingBufferHeight]),Mt(ai,ai,[0,0,T.drawingBufferWidth,T.drawingBufferHeight]);var We={gl:T,context:Xe,strings:F,next:et,current:Ee,draw:Be,elements:se,buffer:be,shader:Oe,attributes:Pe.state,vao:Pe,uniforms:Ne,framebuffer:Ce,extensions:W,timer:Te,isBufferArgs:tc},Re={primTypes:ns,compareFuncs:ms,blendFuncs:Ta,blendEquations:ve,stencilOps:Ii,glTypes:po,orientationType:op};N.optional(function(){We.isArrayLike=Mr}),He&&(Re.backBuffer=[So],Re.drawBuffer=rn(ue.maxDrawbuffers,function(j){return j===0?[0]:rn(j,function(D){return fP+D})}));var xe=0;function xt(){var j=UD(),D=j.link,q=j.global;j.id=xe++,j.batchId="0";var ee=D(We),ne=j.shared={props:"a0"};Object.keys(We).forEach(function(Y){ne[Y]=q.def(ee,".",Y)}),N.optional(function(){j.CHECK=D(N),j.commandStr=N.guessCommand(),j.command=D(j.commandStr),j.assert=function(Y,G,J){Y("if(!(",G,"))",this.CHECK,".commandRaise(",D(J),",",this.command,");")},Re.invalidBlendCombinations=qb});var K=j.next={},H=j.current={};Object.keys(Me).forEach(function(Y){Array.isArray(Ee[Y])&&(K[Y]=q.def(ne.next,".",Y),H[Y]=q.def(ne.current,".",Y))});var Q=j.constants={};Object.keys(Re).forEach(function(Y){Q[Y]=q.def(JSON.stringify(Re[Y]))}),j.invoke=function(Y,G){switch(G.type){case jv:var J=["this",ne.context,ne.props,j.batchId];return Y.def(D(G.data),".call(",J.slice(0,Math.max(G.data.length+1,4)),")");case Uv:return Y.def(ne.props,G.data);case $v:return Y.def(ne.context,G.data);case Xv:return Y.def("this",G.data);case Ul:return G.data.append(j,Y),G.data.ref;case xb:return G.data.toString();case Eb:return G.data.map(function(ae){return j.invoke(Y,ae)})}},j.attribCache={};var U={};return j.scopeAttrib=function(Y){var G=F.id(Y);if(G in U)return U[G];var J=Pe.scope[G];J||(J=Pe.scope[G]=new re);var ae=U[G]=D(J);return ae},j}function It(j){var D=j.static,q=j.dynamic,ee;if(Lu in D){var ne=!!D[Lu];ee=kr(function(H,Q){return ne}),ee.enable=ne}else if(Lu in q){var K=q[Lu];ee=Cn(K,function(H,Q){return H.invoke(Q,K)})}return ee}function nt(j,D){var q=j.static,ee=j.dynamic;if(wo in q){var ne=q[wo];return ne?(ne=Ce.getFramebuffer(ne),N.command(ne,"invalid framebuffer object"),kr(function(H,Q){var U=H.link(ne),Y=H.shared;Q.set(Y.framebuffer,".next",U);var G=Y.context;return Q.set(G,"."+ps,U+".width"),Q.set(G,"."+gs,U+".height"),U})):kr(function(H,Q){var U=H.shared;Q.set(U.framebuffer,".next","null");var Y=U.context;return Q.set(Y,"."+ps,Y+"."+Gb),Q.set(Y,"."+gs,Y+"."+zb),"null"})}else if(wo in ee){var K=ee[wo];return Cn(K,function(H,Q){var U=H.invoke(Q,K),Y=H.shared,G=Y.framebuffer,J=Q.def(G,".getFramebuffer(",U,")");N.optional(function(){H.assert(Q,"!"+U+"||"+J,"invalid framebuffer object")}),Q.set(G,".next",J);var ae=Y.context;return Q.set(ae,"."+ps,J+"?"+J+".width:"+ae+"."+Gb),Q.set(ae,"."+gs,J+"?"+J+".height:"+ae+"."+zb),J})}else return null}function Rt(j,D,q){var ee=j.static,ne=j.dynamic;function K(U){if(U in ee){var Y=ee[U];N.commandType(Y,"object","invalid "+U,q.commandStr);var G=!0,J=Y.x|0,ae=Y.y|0,ye,we;return"width"in Y?(ye=Y.width|0,N.command(ye>=0,"invalid "+U,q.commandStr)):G=!1,"height"in Y?(we=Y.height|0,N.command(we>=0,"invalid "+U,q.commandStr)):G=!1,new En(!G&&D&&D.thisDep,!G&&D&&D.contextDep,!G&&D&&D.propDep,function(ut,Nt){var at=ut.shared.context,yt=ye;"width"in Y||(yt=Nt.def(at,".",ps,"-",J));var Ct=we;return"height"in Y||(Ct=Nt.def(at,".",gs,"-",ae)),[J,ae,yt,Ct]})}else if(U in ne){var pe=ne[U],Le=Cn(pe,function(ut,Nt){var at=ut.invoke(Nt,pe);N.optional(function(){ut.assert(Nt,at+"&&typeof "+at+'==="object"',"invalid "+U)});var yt=ut.shared.context,Ct=Nt.def(at,".x|0"),Jt=Nt.def(at,".y|0"),xr=Nt.def('"width" in ',at,"?",at,".width|0:","(",yt,".",ps,"-",Ct,")"),_n=Nt.def('"height" in ',at,"?",at,".height|0:","(",yt,".",gs,"-",Jt,")");return N.optional(function(){ut.assert(Nt,xr+">=0&&"+_n+">=0","invalid "+U)}),[Ct,Jt,xr,_n]});return D&&(Le.thisDep=Le.thisDep||D.thisDep,Le.contextDep=Le.contextDep||D.contextDep,Le.propDep=Le.propDep||D.propDep),Le}else return D?new En(D.thisDep,D.contextDep,D.propDep,function(ut,Nt){var at=ut.shared.context;return[0,0,Nt.def(at,".",ps),Nt.def(at,".",gs)]}):null}var H=K(ai);if(H){var Q=H;H=new En(H.thisDep,H.contextDep,H.propDep,function(U,Y){var G=Q.append(U,Y),J=U.shared.context;return Y.set(J,"."+$D,G[2]),Y.set(J,"."+XD,G[3]),G})}return{viewport:H,scissor_box:K($l)}}function At(j,D){var q=j.static,ee=typeof q[Pu]=="string"&&typeof q[Du]=="string";if(ee){if(Object.keys(D.dynamic).length>0)return null;var ne=D.static,K=Object.keys(ne);if(K.length>0&&typeof ne[K[0]]=="number"){for(var H=[],Q=0;Q=0,"invalid "+G,D.commandStr),kr(function(we,pe){return J&&(we.OFFSET=ae),ae})}else if(G in ee){var ye=ee[G];return Cn(ye,function(we,pe){var Le=we.invoke(pe,ye);return J&&(we.OFFSET=Le,N.optional(function(){we.assert(pe,Le+">=0","invalid "+G)})),Le})}else if(J&&K)return kr(function(we,pe){return we.OFFSET="0",0});return null}var U=Q(Xl,!0);function Y(){if(_o in q){var G=q[_o]|0;return N.command(typeof G=="number"&&G>=0,"invalid vertex count",D.commandStr),kr(function(){return G})}else if(_o in ee){var J=ee[_o];return Cn(J,function(we,pe){var Le=we.invoke(pe,J);return N.optional(function(){we.assert(pe,"typeof "+Le+'==="number"&&'+Le+">=0&&"+Le+"===("+Le+"|0)","invalid vertex count")}),Le})}else if(K)if(ki(K)){if(K)return U?new En(U.thisDep,U.contextDep,U.propDep,function(we,pe){var Le=pe.def(we.ELEMENTS,".vertCount-",we.OFFSET);return N.optional(function(){we.assert(pe,Le+">=0","invalid vertex offset/element buffer too small")}),Le}):kr(function(we,pe){return pe.def(we.ELEMENTS,".vertCount")});var ae=kr(function(){return-1});return N.optional(function(){ae.MISSING=!0}),ae}else{var ye=new En(K.thisDep||U.thisDep,K.contextDep||U.contextDep,K.propDep||U.propDep,function(we,pe){var Le=we.ELEMENTS;return we.OFFSET?pe.def(Le,"?",Le,".vertCount-",we.OFFSET,":-1"):pe.def(Le,"?",Le,".vertCount:-1")});return N.optional(function(){ye.DYNAMIC=!0}),ye}return null}return{elements:K,primitive:H(),count:Y(),instances:Q(Wl,!1),offset:U}}function Nr(j,D){var q=j.static,ee=j.dynamic,ne={};return Ae.forEach(function(K){var H=je(K);function Q(U,Y){if(K in q){var G=U(q[K]);ne[H]=kr(function(){return G})}else if(K in ee){var J=ee[K];ne[H]=Cn(J,function(ae,ye){return Y(ae,ye,ae.invoke(ye,J))})}}switch(K){case kb:case Sb:case _b:case Pb:case Ab:case Fb:case Ob:case Lb:case Db:case Ib:return Q(function(U){return N.commandType(U,"boolean",K,D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="boolean"',"invalid flag "+K,U.commandStr)}),G});case Cb:return Q(function(U){return N.commandParameter(U,ms,"invalid "+K,D.commandStr),ms[U]},function(U,Y,G){var J=U.constants.compareFuncs;return N.optional(function(){U.assert(Y,G+" in "+J,"invalid "+K+", must be one of "+Object.keys(ms))}),Y.def(J,"[",G,"]")});case Tb:return Q(function(U){return N.command(Mr(U)&&U.length===2&&typeof U[0]=="number"&&typeof U[1]=="number"&&U[0]<=U[1],"depth range is 2d array",D.commandStr),U},function(U,Y,G){N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===2&&typeof "+G+'[0]==="number"&&typeof '+G+'[1]==="number"&&'+G+"[0]<="+G+"[1]","depth range must be a 2d array")});var J=Y.def("+",G,"[0]"),ae=Y.def("+",G,"[1]");return[J,ae]});case Vv:return Q(function(U){N.commandType(U,"object","blend.func",D.commandStr);var Y="srcRGB"in U?U.srcRGB:U.src,G="srcAlpha"in U?U.srcAlpha:U.src,J="dstRGB"in U?U.dstRGB:U.dst,ae="dstAlpha"in U?U.dstAlpha:U.dst;return N.commandParameter(Y,Ta,H+".srcRGB",D.commandStr),N.commandParameter(G,Ta,H+".srcAlpha",D.commandStr),N.commandParameter(J,Ta,H+".dstRGB",D.commandStr),N.commandParameter(ae,Ta,H+".dstAlpha",D.commandStr),N.command(qb.indexOf(Y+", "+J)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Y+", "+J+")",D.commandStr),[Ta[Y],Ta[J],Ta[G],Ta[ae]]},function(U,Y,G){var J=U.constants.blendFuncs;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid blend func, must be an object")});function ae(at,yt){var Ct=Y.def('"',at,yt,'" in ',G,"?",G,".",at,yt,":",G,".",at);return N.optional(function(){U.assert(Y,Ct+" in "+J,"invalid "+K+"."+at+yt+", must be one of "+Object.keys(Ta))}),Ct}var ye=ae("src","RGB"),we=ae("dst","RGB");N.optional(function(){var at=U.constants.invalidBlendCombinations;U.assert(Y,at+".indexOf("+ye+'+", "+'+we+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var pe=Y.def(J,"[",ye,"]"),Le=Y.def(J,"[",ae("src","Alpha"),"]"),ut=Y.def(J,"[",we,"]"),Nt=Y.def(J,"[",ae("dst","Alpha"),"]");return[pe,ut,Le,Nt]});case Wv:return Q(function(U){if(typeof U=="string")return N.commandParameter(U,ve,"invalid "+K,D.commandStr),[ve[U],ve[U]];if(typeof U=="object")return N.commandParameter(U.rgb,ve,K+".rgb",D.commandStr),N.commandParameter(U.alpha,ve,K+".alpha",D.commandStr),[ve[U.rgb],ve[U.alpha]];N.commandRaise("invalid blend.equation",D.commandStr)},function(U,Y,G){var J=U.constants.blendEquations,ae=Y.def(),ye=Y.def(),we=U.cond("typeof ",G,'==="string"');return N.optional(function(){function pe(Le,ut,Nt){U.assert(Le,Nt+" in "+J,"invalid "+ut+", must be one of "+Object.keys(ve))}pe(we.then,K,G),U.assert(we.else,G+"&&typeof "+G+'==="object"',"invalid "+K),pe(we.else,K+".rgb",G+".rgb"),pe(we.else,K+".alpha",G+".alpha")}),we.then(ae,"=",ye,"=",J,"[",G,"];"),we.else(ae,"=",J,"[",G,".rgb];",ye,"=",J,"[",G,".alpha];"),Y(we),[ae,ye]});case Mb:return Q(function(U){return N.command(Mr(U)&&U.length===4,"blend.color must be a 4d array",D.commandStr),rn(4,function(Y){return+U[Y]})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","blend.color must be a 4d array")}),rn(4,function(J){return Y.def("+",G,"[",J,"]")})});case Rb:return Q(function(U){return N.commandType(U,"number",H,D.commandStr),U|0},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"',"invalid stencil.mask")}),Y.def(G,"|0")});case Qv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.cmp||"keep",G=U.ref||0,J="mask"in U?U.mask:-1;return N.commandParameter(Y,ms,K+".cmp",D.commandStr),N.commandType(G,"number",K+".ref",D.commandStr),N.commandType(J,"number",K+".mask",D.commandStr),[ms[Y],G,J]},function(U,Y,G){var J=U.constants.compareFuncs;N.optional(function(){function pe(){U.assert(Y,Array.prototype.join.call(arguments,""),"invalid stencil.func")}pe(G+"&&typeof ",G,'==="object"'),pe('!("cmp" in ',G,")||(",G,".cmp in ",J,")")});var ae=Y.def('"cmp" in ',G,"?",J,"[",G,".cmp]",":",Ti),ye=Y.def(G,".ref|0"),we=Y.def('"mask" in ',G,"?",G,".mask|0:-1");return[ae,ye,we]});case Jv:case Ou:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.fail||"keep",G=U.zfail||"keep",J=U.zpass||"keep";return N.commandParameter(Y,Ii,K+".fail",D.commandStr),N.commandParameter(G,Ii,K+".zfail",D.commandStr),N.commandParameter(J,Ii,K+".zpass",D.commandStr),[K===Ou?So:Uu,Ii[Y],Ii[G],Ii[J]]},function(U,Y,G){var J=U.constants.stencilOps;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});function ae(ye){return N.optional(function(){U.assert(Y,'!("'+ye+'" in '+G+")||("+G+"."+ye+" in "+J+")","invalid "+K+"."+ye+", must be one of "+Object.keys(Ii))}),Y.def('"',ye,'" in ',G,"?",J,"[",G,".",ye,"]:",Ti)}return[K===Ou?So:Uu,ae("fail"),ae("zfail"),ae("zpass")]});case Zv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.factor|0,G=U.units|0;return N.commandType(Y,"number",H+".factor",D.commandStr),N.commandType(G,"number",H+".units",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});var J=Y.def(G,".factor|0"),ae=Y.def(G,".units|0");return[J,ae]});case Nb:return Q(function(U){var Y=0;return U==="front"?Y=Uu:U==="back"&&(Y=So),N.command(!!Y,H,D.commandStr),Y},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="front"||'+G+'==="back"',"invalid cull.face")}),Y.def(G,'==="front"?',Uu,":",So)});case Hv:return Q(function(U){return N.command(typeof U=="number"&&U>=ue.lineWidthDims[0]&&U<=ue.lineWidthDims[1],"invalid line width, must be a positive number between "+ue.lineWidthDims[0]+" and "+ue.lineWidthDims[1],D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"&&'+G+">="+ue.lineWidthDims[0]+"&&"+G+"<="+ue.lineWidthDims[1],"invalid line width")}),G});case qv:return Q(function(U){return N.commandParameter(U,op,H,D.commandStr),op[U]},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="cw"||'+G+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Y.def(G+'==="cw"?'+$b+":"+ip)});case Yv:return Q(function(U){return N.command(Mr(U)&&U.length===4,"color.mask must be length 4 array",D.commandStr),U.map(function(Y){return!!Y})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","invalid color.mask")}),rn(4,function(J){return"!!"+G+"["+J+"]"})});case Kv:return Q(function(U){N.command(typeof U=="object"&&U,H,D.commandStr);var Y="value"in U?U.value:1,G=!!U.invert;return N.command(typeof Y=="number"&&Y>=0&&Y<=1,"sample.coverage.value must be a number between 0 and 1",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid sample.coverage")});var J=Y.def('"value" in ',G,"?+",G,".value:1"),ae=Y.def("!!",G,".invert");return[J,ae]})}}),ne}function $r(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q;if(typeof H=="number"||typeof H=="boolean")Q=kr(function(){return H});else if(typeof H=="function"){var U=H._reglType;U==="texture2d"||U==="textureCube"?Q=kr(function(Y){return Y.link(H)}):U==="framebuffer"||U==="framebufferCube"?(N.command(H.color.length>0,'missing color attachment for framebuffer sent to uniform "'+K+'"',D.commandStr),Q=kr(function(Y){return Y.link(H.color[0])})):N.commandRaise('invalid data for uniform "'+K+'"',D.commandStr)}else Mr(H)?Q=kr(function(Y){var G=Y.global.def("[",rn(H.length,function(J){return N.command(typeof H[J]=="number"||typeof H[J]=="boolean","invalid uniform "+K,Y.commandStr),H[J]}),"]");return G}):N.commandRaise('invalid or missing data for uniform "'+K+'"',D.commandStr);Q.value=H,ne[K]=Q}),Object.keys(ee).forEach(function(K){var H=ee[K];ne[K]=Cn(H,function(Q,U){return Q.invoke(U,H)})}),ne}function zt(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q=F.id(K),U=new re;if(tc(H))U.state=vs,U.buffer=be.getBuffer(be.create(H,ys,!1,!0)),U.type=0;else{var Y=be.getBuffer(H);if(Y)U.state=vs,U.buffer=Y,U.type=0;else if(N.command(typeof H=="object"&&H,"invalid data for attribute "+K,D.commandStr),"constant"in H){var G=H.constant;U.buffer="null",U.state=zv,typeof G=="number"?U.x=G:(N.command(Mr(G)&&G.length>0&&G.length<=4,"invalid constant for attribute "+K,D.commandStr),ds.forEach(function(ut,Nt){Nt=0,'invalid offset for attribute "'+K+'"',D.commandStr);var ae=H.stride|0;N.command(ae>=0&&ae<256,'invalid stride for attribute "'+K+'", must be integer betweeen [0, 255]',D.commandStr);var ye=H.size|0;N.command(!("size"in H)||ye>0&&ye<=4,'invalid size for attribute "'+K+'", must be 1,2,3,4',D.commandStr);var we=!!H.normalized,pe=0;"type"in H&&(N.commandParameter(H.type,po,"invalid type for attribute "+K,D.commandStr),pe=po[H.type]);var Le=H.divisor|0;"divisor"in H&&(N.command(Le===0||De,'cannot specify divisor for attribute "'+K+'", instancing not supported',D.commandStr),N.command(Le>=0,'invalid divisor for attribute "'+K+'"',D.commandStr)),N.optional(function(){var ut=D.commandStr,Nt=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(H).forEach(function(at){N.command(Nt.indexOf(at)>=0,'unknown parameter "'+at+'" for attribute pointer "'+K+'" (valid parameters are '+Nt+")",ut)})}),U.buffer=Y,U.state=vs,U.size=ye,U.normalized=we,U.type=pe||Y.dtype,U.offset=J,U.stride=ae,U.divisor=Le}}ne[K]=kr(function(ut,Nt){var at=ut.attribCache;if(Q in at)return at[Q];var yt={isStream:!1};return Object.keys(U).forEach(function(Ct){yt[Ct]=U[Ct]}),U.buffer&&(yt.buffer=ut.link(U.buffer),yt.type=yt.type||yt.buffer+".dtype"),at[Q]=yt,yt})}),Object.keys(ee).forEach(function(K){var H=ee[K];function Q(U,Y){var G=U.invoke(Y,H),J=U.shared,ae=U.constants,ye=J.isBufferArgs,we=J.buffer;N.optional(function(){U.assert(Y,G+"&&(typeof "+G+'==="object"||typeof '+G+'==="function")&&('+ye+"("+G+")||"+we+".getBuffer("+G+")||"+we+".getBuffer("+G+".buffer)||"+ye+"("+G+'.buffer)||("constant" in '+G+"&&(typeof "+G+'.constant==="number"||'+J.isArrayLike+"("+G+".constant))))",'invalid dynamic attribute "'+K+'"')});var pe={isStream:Y.def(!1)},Le=new re;Le.state=vs,Object.keys(Le).forEach(function(yt){pe[yt]=Y.def(""+Le[yt])});var ut=pe.buffer,Nt=pe.type;Y("if(",ye,"(",G,")){",pe.isStream,"=true;",ut,"=",we,".createStream(",ys,",",G,");",Nt,"=",ut,".dtype;","}else{",ut,"=",we,".getBuffer(",G,");","if(",ut,"){",Nt,"=",ut,".dtype;",'}else if("constant" in ',G,"){",pe.state,"=",zv,";","if(typeof "+G+'.constant === "number"){',pe[ds[0]],"=",G,".constant;",ds.slice(1).map(function(yt){return pe[yt]}).join("="),"=0;","}else{",ds.map(function(yt,Ct){return pe[yt]+"="+G+".constant.length>"+Ct+"?"+G+".constant["+Ct+"]:0;"}).join(""),"}}else{","if(",ye,"(",G,".buffer)){",ut,"=",we,".createStream(",ys,",",G,".buffer);","}else{",ut,"=",we,".getBuffer(",G,".buffer);","}",Nt,'="type" in ',G,"?",ae.glTypes,"[",G,".type]:",ut,".dtype;",pe.normalized,"=!!",G,".normalized;");function at(yt){Y(pe[yt],"=",G,".",yt,"|0;")}return at("size"),at("offset"),at("stride"),at("divisor"),Y("}}"),Y.exit("if(",pe.isStream,"){",we,".destroyStream(",ut,");","}"),pe}ne[K]=Cn(H,Q)}),ne}function Gr(j,D){var q=j.static,ee=j.dynamic;if(Ru in q){var ne=q[Ru];return ne!==null&&Pe.getVAO(ne)===null&&(ne=Pe.createVAO(ne)),kr(function(H){return H.link(Pe.getVAO(ne))})}else if(Ru in ee){var K=ee[Ru];return Cn(K,function(H,Q){var U=H.invoke(Q,K);return Q.def(H.shared.vao+".getVAO("+U+")")})}return null}function pr(j){var D=j.static,q=j.dynamic,ee={};return Object.keys(D).forEach(function(ne){var K=D[ne];ee[ne]=kr(function(H,Q){return typeof K=="number"||typeof K=="boolean"?""+K:H.link(K)})}),Object.keys(q).forEach(function(ne){var K=q[ne];ee[ne]=Cn(K,function(H,Q){return H.invoke(Q,K)})}),ee}function Or(j,D,q,ee,ne){var K=j.static,H=j.dynamic;N.optional(function(){var at=[wo,Du,Pu,xo,Eo,Xl,_o,Wl,Lu,Ru].concat(Ae);function yt(Ct){Object.keys(Ct).forEach(function(Jt){N.command(at.indexOf(Jt)>=0,'unknown parameter "'+Jt+'"',ne.commandStr)})}yt(K),yt(H)});var Q=At(j,D),U=nt(j),Y=Rt(j,U,ne),G=Qt(j,ne),J=Nr(j,ne),ae=Pt(j,ne,Q);function ye(at){var yt=Y[at];yt&&(J[at]=yt)}ye(ai),ye(je($l));var we=Object.keys(J).length>0,pe={framebuffer:U,draw:G,shader:ae,state:J,dirty:we,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pe.profile=It(j),pe.uniforms=$r(q,ne),pe.drawVAO=pe.scopeVAO=Gr(j),!pe.drawVAO&&ae.program&&!Q&&W.angle_instanced_arrays){var Le=!0,ut=ae.program.attributes.map(function(at){var yt=D.static[at];return Le=Le&&!!yt,yt});if(Le&&ut.length>0){var Nt=Pe.getVAO(Pe.createVAO(ut));pe.drawVAO=new En(null,null,null,function(at,yt){return at.link(Nt)}),pe.useVAO=!0}}return Q?pe.useVAO=!0:pe.attributes=zt(D,ne),pe.context=pr(ee),pe}function zr(j,D,q){var ee=j.shared,ne=ee.context,K=j.scope();Object.keys(q).forEach(function(H){D.save(ne,"."+H);var Q=q[H],U=Q.append(j,D);Array.isArray(U)?K(ne,".",H,"=[",U.join(),"];"):K(ne,".",H,"=",U,";")}),D(K)}function jr(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.framebuffer,Q;He&&(Q=D.def(ne.extensions,".webgl_draw_buffers"));var U=j.constants,Y=U.drawBuffer,G=U.backBuffer,J;q?J=q.append(j,D):J=D.def(H,".next"),ee||D("if(",J,"!==",H,".cur){"),D("if(",J,"){",K,".bindFramebuffer(",Yb,",",J,".framebuffer);"),He&&D(Q,".drawBuffersWEBGL(",Y,"[",J,".colorAttachments.length]);"),D("}else{",K,".bindFramebuffer(",Yb,",null);"),He&&D(Q,".drawBuffersWEBGL(",G,");"),D("}",H,".cur=",J,";"),ee||D("}")}function Yr(j,D,q){var ee=j.shared,ne=ee.gl,K=j.current,H=j.next,Q=ee.current,U=ee.next,Y=j.cond(Q,".dirty");Ae.forEach(function(G){var J=je(G);if(!(J in q.state)){var ae,ye;if(J in H){ae=H[J],ye=K[J];var we=rn(Ee[J].length,function(Le){return Y.def(ae,"[",Le,"]")});Y(j.cond(we.map(function(Le,ut){return Le+"!=="+ye+"["+ut+"]"}).join("||")).then(ne,".",Me[J],"(",we,");",we.map(function(Le,ut){return ye+"["+ut+"]="+Le}).join(";"),";"))}else{ae=Y.def(U,".",J);var pe=j.cond(ae,"!==",Q,".",J);Y(pe),J in ze?pe(j.cond(ae).then(ne,".enable(",ze[J],");").else(ne,".disable(",ze[J],");"),Q,".",J,"=",ae,";"):pe(ne,".",Me[J],"(",ae,");",Q,".",J,"=",ae,";")}}}),Object.keys(q.state).length===0&&Y(Q,".dirty=false;"),D(Y)}function an(j,D,q,ee){var ne=j.shared,K=j.current,H=ne.current,Q=ne.gl;Zb(Object.keys(q)).forEach(function(U){var Y=q[U];if(!(ee&&!ee(Y))){var G=Y.append(j,D);if(ze[U]){var J=ze[U];ki(Y)?G?D(Q,".enable(",J,");"):D(Q,".disable(",J,");"):D(j.cond(G).then(Q,".enable(",J,");").else(Q,".disable(",J,");")),D(H,".",U,"=",G,";")}else if(Mr(G)){var ae=K[U];D(Q,".",Me[U],"(",G,");",G.map(function(ye,we){return ae+"["+we+"]="+ye}).join(";"),";")}else D(Q,".",Me[U],"(",G,");",H,".",U,"=",G,";")}})}function Ar(j,D){De&&(j.instancing=D.def(j.shared.extensions,".angle_instanced_arrays"))}function kt(j,D,q,ee,ne){var K=j.shared,H=j.stats,Q=K.current,U=K.timer,Y=q.profile;function G(){return typeof performance>"u"?"Date.now()":"performance.now()"}var J,ae;function ye(at){J=D.def(),at(J,"=",G(),";"),typeof ne=="string"?at(H,".count+=",ne,";"):at(H,".count++;"),Te&&(ee?(ae=D.def(),at(ae,"=",U,".getNumPendingQueries();")):at(U,".beginQuery(",H,");"))}function we(at){at(H,".cpuTime+=",G(),"-",J,";"),Te&&(ee?at(U,".pushScopeStats(",ae,",",U,".getNumPendingQueries(),",H,");"):at(U,".endQuery();"))}function pe(at){var yt=D.def(Q,".profile");D(Q,".profile=",at,";"),D.exit(Q,".profile=",yt,";")}var Le;if(Y){if(ki(Y)){Y.enable?(ye(D),we(D.exit),pe("true")):pe("false");return}Le=Y.append(j,D),pe(Le)}else Le=D.def(Q,".profile");var ut=j.block();ye(ut),D("if(",Le,"){",ut,"}");var Nt=j.block();we(Nt),D.exit("if(",Le,"){",Nt,"}")}function on(j,D,q,ee,ne){var K=j.shared;function H(U){switch(U){case Vl:case Hl:case Ql:return 2;case Yl:case Zl:case Jl:return 3;case ql:case Kl:case ec:return 4;default:return 1}}function Q(U,Y,G){var J=K.gl,ae=D.def(U,".location"),ye=D.def(K.attributes,"[",ae,"]"),we=G.state,pe=G.buffer,Le=[G.x,G.y,G.z,G.w],ut=["buffer","normalized","offset","stride"];function Nt(){D("if(!",ye,".buffer){",J,".enableVertexAttribArray(",ae,");}");var yt=G.type,Ct;if(G.size?Ct=D.def(G.size,"||",Y):Ct=Y,D("if(",ye,".type!==",yt,"||",ye,".size!==",Ct,"||",ut.map(function(xr){return ye+"."+xr+"!=="+G[xr]}).join("||"),"){",J,".bindBuffer(",ys,",",pe,".buffer);",J,".vertexAttribPointer(",[ae,Ct,yt,G.normalized,G.stride,G.offset],");",ye,".type=",yt,";",ye,".size=",Ct,";",ut.map(function(xr){return ye+"."+xr+"="+G[xr]+";"}).join(""),"}"),De){var Jt=G.divisor;D("if(",ye,".divisor!==",Jt,"){",j.instancing,".vertexAttribDivisorANGLE(",[ae,Jt],");",ye,".divisor=",Jt,";}")}}function at(){D("if(",ye,".buffer){",J,".disableVertexAttribArray(",ae,");",ye,".buffer=null;","}if(",ds.map(function(yt,Ct){return ye+"."+yt+"!=="+Le[Ct]}).join("||"),"){",J,".vertexAttrib4f(",ae,",",Le,");",ds.map(function(yt,Ct){return ye+"."+yt+"="+Le[Ct]+";"}).join(""),"}")}we===vs?Nt():we===zv?at():(D("if(",we,"===",vs,"){"),Nt(),D("}else{"),at(),D("}"))}ee.forEach(function(U){var Y=U.name,G=q.attributes[Y],J;if(G){if(!ne(G))return;J=G.append(j,D)}else{if(!ne(Kb))return;var ae=j.scopeAttrib(Y);N.optional(function(){j.assert(D,ae+".state","missing attribute "+Y)}),J={},Object.keys(new re).forEach(function(ye){J[ye]=D.def(ae,".",ye)})}Q(j.link(U),H(U.info.type),J)})}function ir(j,D,q,ee,ne){for(var K=j.shared,H=K.gl,Q,U=0;U1?D(rn(yt,function(_n){return Array.isArray(pe)?pe[_n]:pe+"["+_n+"]"})):(N(!Array.isArray(pe),"uniform value must not be an array"),D(pe));D(");")}}function vt(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.draw,Q=ee.draw;function U(){var Ct=Q.elements,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr)):Jt=xr.def(H,".",xo),Jt&&xr("if("+Jt+")"+K+".bindBuffer("+VD+","+Jt+".buffer.buffer);"),Jt}function Y(){var Ct=Q.count,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr),N.optional(function(){Ct.MISSING&&j.assert(D,"false","missing vertex count"),Ct.DYNAMIC&&j.assert(xr,Jt+">=0","missing vertex count")})):(Jt=xr.def(H,".",_o),N.optional(function(){j.assert(xr,Jt+">=0","missing vertex count")})),Jt}var G=U();function J(Ct){var Jt=Q[Ct];return Jt?Jt.contextDep&&ee.contextDynamic||Jt.propDep?Jt.append(j,q):Jt.append(j,D):D.def(H,".",Ct)}var ae=J(Eo),ye=J(Xl),we=Y();if(typeof we=="number"){if(we===0)return}else q("if(",we,"){"),q.exit("}");var pe,Le;De&&(pe=J(Wl),Le=j.instancing);var ut=G+".type",Nt=Q.elements&&ki(Q.elements);function at(){function Ct(){q(Le,".drawElementsInstancedANGLE(",[ae,we,ut,ye+"<<(("+ut+"-"+wb+")>>1)",pe],");")}function Jt(){q(Le,".drawArraysInstancedANGLE(",[ae,ye,we,pe],");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}function yt(){function Ct(){q(K+".drawElements("+[ae,we,ut,ye+"<<(("+ut+"-"+wb+")>>1)"]+");")}function Jt(){q(K+".drawArrays("+[ae,ye,we]+");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}De&&(typeof pe!="number"||pe>=0)?typeof pe=="string"?(q("if(",pe,">0){"),at(),q("}else if(",pe,"<0){"),yt(),q("}")):at():yt()}function Gt(j,D,q,ee,ne){var K=xt(),H=K.proc("body",ne);return N.optional(function(){K.commandStr=D.commandStr,K.command=K.link(D.commandStr)}),De&&(K.instancing=H.def(K.shared.extensions,".angle_instanced_arrays")),j(K,H,q,ee),K.compile().body}function Vt(j,D,q,ee){Ar(j,D),q.useVAO?q.drawVAO?D(j.shared.vao,".setVAO(",q.drawVAO.append(j,D),");"):D(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(D(j.shared.vao,".setVAO(null);"),on(j,D,q,ee.attributes,function(){return!0})),ir(j,D,q,ee.uniforms,function(){return!0}),vt(j,D,D,q)}function Cr(j,D){var q=j.proc("draw",1);Ar(j,q),zr(j,q,D.context),jr(j,q,D.framebuffer),Yr(j,q,D),an(j,q,D.state),kt(j,q,D,!1,!0);var ee=D.shader.progVar.append(j,q);if(q(j.shared.gl,".useProgram(",ee,".program);"),D.shader.program)Vt(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var ne=j.global.def("{}"),K=q.def(ee,".id"),H=q.def(ne,"[",K,"]");q(j.cond(H).then(H,".call(this,a0);").else(H,"=",ne,"[",K,"]=",j.link(function(Q){return Gt(Vt,j,D,Q,1)}),"(",ee,");",H,".call(this,a0);"))}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function Ia(j,D,q,ee){j.batchId="a1",Ar(j,D);function ne(){return!0}on(j,D,q,ee.attributes,ne),ir(j,D,q,ee.uniforms,ne),vt(j,D,D,q)}function Mo(j,D,q,ee){Ar(j,D);var ne=q.contextDep,K=D.def(),H="a0",Q="a1",U=D.def();j.shared.props=U,j.batchId=K;var Y=j.scope(),G=j.scope();D(Y.entry,"for(",K,"=0;",K,"<",Q,";++",K,"){",U,"=",H,"[",K,"];",G,"}",Y.exit);function J(ut){return ut.contextDep&&ne||ut.propDep}function ae(ut){return!J(ut)}if(q.needsContext&&zr(j,G,q.context),q.needsFramebuffer&&jr(j,G,q.framebuffer),an(j,G,q.state,J),q.profile&&J(q.profile)&&kt(j,G,q,!1,!0),ee)q.useVAO?q.drawVAO?J(q.drawVAO)?G(j.shared.vao,".setVAO(",q.drawVAO.append(j,G),");"):Y(j.shared.vao,".setVAO(",q.drawVAO.append(j,Y),");"):Y(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(Y(j.shared.vao,".setVAO(null);"),on(j,Y,q,ee.attributes,ae),on(j,G,q,ee.attributes,J)),ir(j,Y,q,ee.uniforms,ae),ir(j,G,q,ee.uniforms,J),vt(j,Y,G,q);else{var ye=j.global.def("{}"),we=q.shader.progVar.append(j,G),pe=G.def(we,".id"),Le=G.def(ye,"[",pe,"]");G(j.shared.gl,".useProgram(",we,".program);","if(!",Le,"){",Le,"=",ye,"[",pe,"]=",j.link(function(ut){return Gt(Ia,j,q,ut,2)}),"(",we,");}",Le,".call(this,a0[",K,"],",K,");")}}function $(j,D){var q=j.proc("batch",2);j.batchId="0",Ar(j,q);var ee=!1,ne=!0;Object.keys(D.context).forEach(function(ye){ee=ee||D.context[ye].propDep}),ee||(zr(j,q,D.context),ne=!1);var K=D.framebuffer,H=!1;K?(K.propDep?ee=H=!0:K.contextDep&&ee&&(H=!0),H||jr(j,q,K)):jr(j,q,null),D.state.viewport&&D.state.viewport.propDep&&(ee=!0);function Q(ye){return ye.contextDep&&ee||ye.propDep}Yr(j,q,D),an(j,q,D.state,function(ye){return!Q(ye)}),(!D.profile||!Q(D.profile))&&kt(j,q,D,!1,"a1"),D.contextDep=ee,D.needsContext=ne,D.needsFramebuffer=H;var U=D.shader.progVar;if(U.contextDep&&ee||U.propDep)Mo(j,q,D,null);else{var Y=U.append(j,q);if(q(j.shared.gl,".useProgram(",Y,".program);"),D.shader.program)Mo(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var G=j.global.def("{}"),J=q.def(Y,".id"),ae=q.def(G,"[",J,"]");q(j.cond(ae).then(ae,".call(this,a0,a1);").else(ae,"=",G,"[",J,"]=",j.link(function(ye){return Gt(Mo,j,D,ye,2)}),"(",Y,");",ae,".call(this,a0,a1);"))}}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function fe(j,D){var q=j.proc("scope",3);j.batchId="a2";var ee=j.shared,ne=ee.current;zr(j,q,D.context),D.framebuffer&&D.framebuffer.append(j,q),Zb(Object.keys(D.state)).forEach(function(H){var Q=D.state[H],U=Q.append(j,q);Mr(U)?U.forEach(function(Y,G){q.set(j.next[H],"["+G+"]",Y)}):q.set(ee.next,"."+H,U)}),kt(j,q,D,!0,!0),[xo,Xl,_o,Wl,Eo].forEach(function(H){var Q=D.draw[H];Q&&q.set(ee.draw,"."+H,""+Q.append(j,q))}),Object.keys(D.uniforms).forEach(function(H){var Q=D.uniforms[H].append(j,q);Array.isArray(Q)&&(Q="["+Q.join()+"]"),q.set(ee.uniforms,"["+F.id(H)+"]",Q)}),Object.keys(D.attributes).forEach(function(H){var Q=D.attributes[H].append(j,q),U=j.scopeAttrib(H);Object.keys(new re).forEach(function(Y){q.set(U,"."+Y,Q[Y])})}),D.scopeVAO&&q.set(ee.vao,".targetVAO",D.scopeVAO.append(j,q));function K(H){var Q=D.shader[H];Q&&q.set(ee.shader,"."+H,Q.append(j,q))}K(Du),K(Pu),Object.keys(D.state).length>0&&(q(ne,".dirty=true;"),q.exit(ne,".dirty=true;")),q("a1(",j.shared.context,",a0,",j.batchId,");")}function oe(j){if(!(typeof j!="object"||Mr(j))){for(var D=Object.keys(j),q=0;q=0;--vt){var Gt=xe[vt];Gt&&Gt(Te,null,0)}W.flush(),Pe&&Pe.update()}function Pt(){!Rt&&xe.length>0&&(Rt=or.next(At))}function Qt(){Rt&&(or.cancel(At),Rt=null)}function Nr(vt){vt.preventDefault(),be=!0,Qt(),xt.forEach(function(Gt){Gt()})}function $r(vt){W.getError(),be=!1,se.restore(),Ae.restore(),De.restore(),ze.restore(),Me.restore(),je.restore(),He.restore(),Pe&&Pe.restore(),ct.procs.refresh(),Pt(),It.forEach(function(Gt){Gt()})}Re&&(Re.addEventListener(Jb,Nr,!1),Re.addEventListener(ew,$r,!1));function zt(){xe.length=0,Qt(),Re&&(Re.removeEventListener(Jb,Nr),Re.removeEventListener(ew,$r)),Ae.clear(),je.clear(),Me.clear(),ze.clear(),et.clear(),De.clear(),He.clear(),Pe&&Pe.clear(),nt.forEach(function(vt){vt()})}function Gr(vt){N(!!vt,"invalid args to regl({...})"),N.type(vt,"object","invalid args to regl({...})");function Gt(ne){var K=n({},ne);delete K.uniforms,delete K.attributes,delete K.context,delete K.vao,"stencil"in K&&K.stencil.op&&(K.stencil.opBack=K.stencil.opFront=K.stencil.op,delete K.stencil.op);function H(Q){if(Q in K){var U=K[Q];delete K[Q],Object.keys(U).forEach(function(Y){K[Q+"."+Y]=U[Y]})}}return H("blend"),H("depth"),H("cull"),H("stencil"),H("polygonOffset"),H("scissor"),H("sample"),"vao"in ne&&(K.vao=ne.vao),K}function Vt(ne,K){var H={},Q={};return Object.keys(ne).forEach(function(U){var Y=ne[U];if(fr.isDynamic(Y)){Q[U]=fr.unbox(Y,U);return}else if(K&&Array.isArray(Y)){for(var G=0;G0)return Ft.call(this,q(ne|0),ne|0)}else if(Array.isArray(ne)){if(ne.length)return Ft.call(this,ne,ne.length)}else return rt.call(this,ne)}return n(ee,{stats:fe,destroy:function(){oe.destroy()}})}var pr=je.setFBO=Gr({framebuffer:fr.define.call(null,tw,"framebuffer")});function Or(vt,Gt){var Vt=0;ct.procs.poll();var Cr=Gt.color;Cr&&(W.clearColor(+Cr[0]||0,+Cr[1]||0,+Cr[2]||0,+Cr[3]||0),Vt|=pP),"depth"in Gt&&(W.clearDepth(+Gt.depth),Vt|=gP),"stencil"in Gt&&(W.clearStencil(Gt.stencil|0),Vt|=yP),N(!!Vt,"called regl.clear with no buffer specified"),W.clear(Vt)}function zr(vt){if(N(typeof vt=="object"&&vt,"regl.clear() takes an object as input"),"framebuffer"in vt)if(vt.framebuffer&&vt.framebuffer_reglType==="framebufferCube")for(var Gt=0;Gt<6;++Gt)pr(n({framebuffer:vt.framebuffer.faces[Gt]},vt),Or);else pr(vt,Or);else Or(null,vt)}function jr(vt){N.type(vt,"function","regl.frame() callback must be a function"),xe.push(vt);function Gt(){var Vt=rw(xe,vt);N(Vt>=0,"cannot cancel a frame twice");function Cr(){var Ia=rw(xe,Cr);xe[Ia]=xe[xe.length-1],xe.length-=1,xe.length<=0&&Qt()}xe[Vt]=Cr}return Pt(),{cancel:Gt}}function Yr(){var vt=We.viewport,Gt=We.scissor_box;vt[0]=vt[1]=Gt[0]=Gt[1]=0,Te.viewportWidth=Te.framebufferWidth=Te.drawingBufferWidth=vt[2]=Gt[2]=W.drawingBufferWidth,Te.viewportHeight=Te.framebufferHeight=Te.drawingBufferHeight=vt[3]=Gt[3]=W.drawingBufferHeight}function an(){Te.tick+=1,Te.time=kt(),Yr(),ct.procs.poll()}function Ar(){ze.refresh(),Yr(),ct.procs.refresh(),Pe&&Pe.update()}function kt(){return(gr()-Oe)/1e3}Ar();function on(vt,Gt){N.type(Gt,"function","listener callback must be a function");var Vt;switch(vt){case"frame":return jr(Gt);case"lost":Vt=xt;break;case"restore":Vt=It;break;case"destroy":Vt=nt;break;default:N.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vt.push(Gt),{cancel:function(){for(var Cr=0;Cr=0},read:Mt,destroy:zt,_gl:W,_refresh:Ar,poll:function(){an(),Pe&&Pe.update()},now:kt,stats:Ce});return F.onDone(null,ir),ir}return xP})})(tO);var Vie=tO.exports;const Yie=bi(Vie);var qie=function(){function t(e,r){Ma(this,t),this.attribute=void 0,this.buffer=void 0;var n=r.buffer,a=r.offset,i=r.stride,o=r.normalized,s=r.size,u=r.divisor;this.buffer=n,this.attribute={buffer:n.get(),offset:a||0,stride:i||0,normalized:o||!1,divisor:u||0},s&&(this.attribute.size=s)}return Aa(t,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(r){this.buffer.subData(r)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),si,tf,ui,Kn,rf,Di,nf,zc,Oa,To,vn,La,Da,jc,Hie=(si={},Ke(si,ke.POINTS,"points"),Ke(si,ke.LINES,"lines"),Ke(si,ke.LINE_LOOP,"line loop"),Ke(si,ke.LINE_STRIP,"line strip"),Ke(si,ke.TRIANGLES,"triangles"),Ke(si,ke.TRIANGLE_FAN,"triangle fan"),Ke(si,ke.TRIANGLE_STRIP,"triangle strip"),si),rO=(tf={},Ke(tf,ke.STATIC_DRAW,"static"),Ke(tf,ke.DYNAMIC_DRAW,"dynamic"),Ke(tf,ke.STREAM_DRAW,"stream"),tf),r1=(ui={},Ke(ui,ke.BYTE,"int8"),Ke(ui,ke.UNSIGNED_INT,"int16"),Ke(ui,ke.INT,"int32"),Ke(ui,ke.UNSIGNED_BYTE,"uint8"),Ke(ui,ke.UNSIGNED_SHORT,"uint16"),Ke(ui,ke.UNSIGNED_INT,"uint32"),Ke(ui,ke.FLOAT,"float"),ui),Zie=(Kn={},Ke(Kn,ke.ALPHA,"alpha"),Ke(Kn,ke.LUMINANCE,"luminance"),Ke(Kn,ke.LUMINANCE_ALPHA,"luminance alpha"),Ke(Kn,ke.RGB,"rgb"),Ke(Kn,ke.RGBA,"rgba"),Ke(Kn,ke.RGBA4,"rgba4"),Ke(Kn,ke.RGB5_A1,"rgb5 a1"),Ke(Kn,ke.RGB565,"rgb565"),Ke(Kn,ke.DEPTH_COMPONENT,"depth"),Ke(Kn,ke.DEPTH_STENCIL,"depth stencil"),Kn),Kie=(rf={},Ke(rf,ke.DONT_CARE,"dont care"),Ke(rf,ke.NICEST,"nice"),Ke(rf,ke.FASTEST,"fast"),rf),x2=(Di={},Ke(Di,ke.NEAREST,"nearest"),Ke(Di,ke.LINEAR,"linear"),Ke(Di,ke.LINEAR_MIPMAP_LINEAR,"mipmap"),Ke(Di,ke.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Ke(Di,ke.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Ke(Di,ke.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),Di),E2=(nf={},Ke(nf,ke.REPEAT,"repeat"),Ke(nf,ke.CLAMP_TO_EDGE,"clamp"),Ke(nf,ke.MIRRORED_REPEAT,"mirror"),nf),Qie=(zc={},Ke(zc,ke.NONE,"none"),Ke(zc,ke.BROWSER_DEFAULT_WEBGL,"browser"),zc),Jie=(Oa={},Ke(Oa,ke.NEVER,"never"),Ke(Oa,ke.ALWAYS,"always"),Ke(Oa,ke.LESS,"less"),Ke(Oa,ke.LEQUAL,"lequal"),Ke(Oa,ke.GREATER,"greater"),Ke(Oa,ke.GEQUAL,"gequal"),Ke(Oa,ke.EQUAL,"equal"),Ke(Oa,ke.NOTEQUAL,"notequal"),Oa),_2=(To={},Ke(To,ke.FUNC_ADD,"add"),Ke(To,ke.MIN_EXT,"min"),Ke(To,ke.MAX_EXT,"max"),Ke(To,ke.FUNC_SUBTRACT,"subtract"),Ke(To,ke.FUNC_REVERSE_SUBTRACT,"reverse subtract"),To),Uc=(vn={},Ke(vn,ke.ZERO,"zero"),Ke(vn,ke.ONE,"one"),Ke(vn,ke.SRC_COLOR,"src color"),Ke(vn,ke.ONE_MINUS_SRC_COLOR,"one minus src color"),Ke(vn,ke.SRC_ALPHA,"src alpha"),Ke(vn,ke.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Ke(vn,ke.DST_COLOR,"dst color"),Ke(vn,ke.ONE_MINUS_DST_COLOR,"one minus dst color"),Ke(vn,ke.DST_ALPHA,"dst alpha"),Ke(vn,ke.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Ke(vn,ke.CONSTANT_COLOR,"constant color"),Ke(vn,ke.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Ke(vn,ke.CONSTANT_ALPHA,"constant alpha"),Ke(vn,ke.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Ke(vn,ke.SRC_ALPHA_SATURATE,"src alpha saturate"),vn),eoe=(La={},Ke(La,ke.NEVER,"never"),Ke(La,ke.ALWAYS,"always"),Ke(La,ke.LESS,"less"),Ke(La,ke.LEQUAL,"lequal"),Ke(La,ke.GREATER,"greater"),Ke(La,ke.GEQUAL,"gequal"),Ke(La,ke.EQUAL,"equal"),Ke(La,ke.NOTEQUAL,"notequal"),La),As=(Da={},Ke(Da,ke.ZERO,"zero"),Ke(Da,ke.KEEP,"keep"),Ke(Da,ke.REPLACE,"replace"),Ke(Da,ke.INVERT,"invert"),Ke(Da,ke.INCR,"increment"),Ke(Da,ke.DECR,"decrement"),Ke(Da,ke.INCR_WRAP,"increment wrap"),Ke(Da,ke.DECR_WRAP,"decrement wrap"),Da),toe=(jc={},Ke(jc,ke.FRONT,"front"),Ke(jc,ke.BACK,"back"),jc),roe=function(){function t(e,r){Ma(this,t),this.buffer=void 0;var n=r.data,a=r.usage,i=r.type;this.buffer=e.buffer({data:n,usage:rO[a||ke.STATIC_DRAW],type:r1[i||ke.UNSIGNED_BYTE]})}return Aa(t,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(r){var n=r.data,a=r.offset;this.buffer.subdata(n,a)}}]),t}();function jg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r16)throw new Error("invalid data type ".concat(c));a[l]=function(){return f.data}}});var i=this.getOuputDataTexture(),o=i.textureWidth,s=i.texelCount;a.u_OutputTextureSize=[o,o],a.u_OutputTexelCount=s,this.context.output.textureSize=[o,o];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; +#else + precision mediump float; +#endif +`.concat(this.context.shader),uniforms:a,vert:uoe,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}return Aa(t,[{key:"run",value:function(){var r=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){r.computeCommand()})}},{key:"readData",value:function(){var e=Xi(mn.mark(function n(){var a=this,i,o,s,u,f,l,c,h;return mn.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){i=a.reGl.read()}),!i){v.next=6;break}if(o=this.getOuputDataTexture(),s=o.originalDataLength,u=o.elementsPerTexel,f=o.typedArrayConstructor,l=f===void 0?Float32Array:f,c=[],u!==4)for(h=0;h0&&arguments[0]!==void 0?arguments[0]:{},n=new t;return n.setConfig(r),n.setEngine(new koe),n}}]),t}();const Ooe=Object.freeze(Object.defineProperty({__proto__:null,Kernel:eO,World:Noe},Symbol.toStringTag,{value:"Module"})),aO=Ka(Ooe);var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.arrayToTextureData=jn.attributesToTextureData=jn.buildTextureDataWithTwoEdgeAttr=jn.buildTextureData=jn.proccessToFunc=void 0;var Loe=Ir(),hd=Gd,Doe=function(t,e){var r;return t?(0,Loe.isNumber)(t)?r=function(){return t}:r=t:r=function(){return e||1},r};jn.proccessToFunc=Doe;var Poe=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i 0.0) { + dx += param * xDist; + dy += param * yDist; + if (xDist == 0 && yDist == 0) { + const sign = i < j ? 1 : -1; + dx += param * sign; + dy += param * sign; + } + } + } + } + return [dx, dy]; + } + calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // + let dx = 0, dy = 0; + const vx = currentNode[0] - this.u_Center[0]; + const vy = currentNode[1] - this.u_Center[1]; + const gf = 0.01 * this.u_K * this.u_Gravity; + dx = gf * vx; + dy = gf * vy; + if (this.u_Clustering == 1) { + const clusterIdx = int(nodeAttributes[0]); + const center = this.u_ClusterCenters[clusterIdx]; + const cvx = currentNode[0] - center[0]; + const cvy = currentNode[1] - center[1]; + const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; + const parma = this.u_K * this.u_ClusterGravity / dist; + dx += parma * cvx; + dy += parma * cvy; + } + return [dx, dy]; + } + calcAttractive(i: int, currentNode: vec4): vec2 { + let dx = 0, dy = 0; + const arr_offset = int(floor(currentNode[2] + 0.5)); + const length = int(floor(currentNode[3] + 0.5)); + const node_buffer: vec4; + for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { + if (p >= length) break; + const arr_idx = arr_offset + p; + // when arr_idx % 4 == 0 update currentNodedx_buffer + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; + } + const float_j = buf_offset == 0 ? node_buffer[0] : + buf_offset == 1 ? node_buffer[1] : + buf_offset == 2 ? node_buffer[2] : + node_buffer[3]; + const nextNode = this.u_Data[int(float_j)]; + const xDist = currentNode[0] - nextNode[0]; + const yDist = currentNode[1] - nextNode[1]; + const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; + let attractiveF = dist / this.u_K; + + if (dist > 0.0) { + dx -= xDist * attractiveF; + dy -= yDist * attractiveF; + if (xDist == 0 && yDist == 0) { + const sign = i < int(float_j) ? 1 : -1; + dx -= sign * attractiveF; + dy -= sign * attractiveF; + } + } + } + return [dx, dy]; + } + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + let dx = 0, dy = 0; + if (i >= VERTEX_COUNT) { + this.u_Data[i] = currentNode; + return; + } + + // [gravity, fx, fy, 0] + const nodeAttributes = this.u_AttributeArray[i]; + + if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { + // the node is fixed + this.u_Data[i] = [ + nodeAttributes[1], + nodeAttributes[2], + currentNode[2], + currentNode[3] + ]; + return; + } + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + dx += repulsive[0]; + dy += repulsive[1]; + // attractive + const attractive = this.calcAttractive(i, currentNode); + dx += attractive[0]; + dy += attractive[1]; + // gravity + const gravity = this.calcGravity(currentNode, nodeAttributes); + dx -= gravity[0]; + dy -= gravity[1]; + // speed + dx *= this.u_Speed; + dy *= this.u_Speed; + + // move + const distLength = sqrt(dx * dx + dy * dy); + if (distLength > 0.0) { + const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); + this.u_Data[i] = [ + currentNode[0] + dx / distLength * limitedDist, + currentNode[1] + dy / distLength * limitedDist, + currentNode[2], + currentNode[3] + ]; + } + } +} +`;Xa.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Xa.clusterCode=` +import { globalInvocationID } from 'g-webgpu'; +const VERTEX_COUNT; +const CLUSTER_COUNT; +@numthreads(1, 1, 1) +class CalcCenter { + @in + u_Data: vec4[]; + @in + u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] + @in @out + u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] + @main + compute() { + const i = globalInvocationID.x; + const center = this.u_ClusterCenters[i]; + let sumx = 0; + let sumy = 0; + let count = 0; + for (let j = 0; j < VERTEX_COUNT; j++) { + const attributes = this.u_NodeAttributes[j]; + const clusterIdx = int(attributes[0]); + const vertex = this.u_Data[j]; + if (clusterIdx == i) { + sumx += vertex.x; + sumy += vertex.y; + count += 1; + } + } + this.u_ClusterCenters[i] = [ + sumx / count, + sumy / count, + count, + i + ]; + } +} +`;Xa.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';var Goe=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$c=me&&me.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(t,e||[])).next())})},Xc=me&&me.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]= length) break; + const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置 + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4, + } + + let float_j: float = node_buffer[0]; + + const nextNode = this.u_Data[int(float_j)]; + const vx = nextNode[0] - currentNode[0]; + const vy = nextNode[1] - currentNode[1]; + const dist = sqrt(vx * vx + vy * vy) + 0.01; + const direx = vx / dist; + const direy = vy / dist; + const edgeLength = node_buffer[1]; + const edgeStrength = node_buffer[2]; + const diff: float = edgeLength - dist;//edgeLength + // const param = diff * this.u_stiffness / mass; // + const param = diff * edgeStrength / mass; // + ax -= direx * param; + ay -= direy * param; + } + return [ax, ay]; + } + + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + const movement = u_AveMovement[0]; + let ax = 0, ay = 0; + + if (i >= VERTEX_COUNT || movement.x < u_minMovement) { + this.u_Data[i] = currentNode; + return; + } + + // 每个节点属性占两个数组中各一格 + // [mass, degree, nodeStrength, fx] + const nodeAttributes1 = this.u_NodeAttributeArray1[i]; + // [centerX, centerY, centerGravity, fy] + const nodeAttributes2 = this.u_NodeAttributeArray2[i]; + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + ax += repulsive[0]; + ay += repulsive[1]; + + // attractive + const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); + ax += attractive[0]; + ay += attractive[1]; + + // gravity + const gravity = this.calcGravity(i, currentNode, nodeAttributes2); + ax -= gravity[0]; + ay -= gravity[1]; + + // speed + const param = this.u_interval * this.u_damping; + let vx = ax * param; + let vy = ay * param; + const vlength = sqrt(vx * vx + vy * vy) + 0.0001; + if (vlength > this.u_maxSpeed) { + const param2 = this.u_maxSpeed / vlength; + vx = param2 * vx; + vy = param2 * vy; + } + + // move + if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { + this.u_Data[i] = [ + nodeAttributes1[3], + nodeAttributes2[3], + currentNode[2], + 0 + ]; + } else { + const distx = vx * this.u_interval; + const disty = vy * this.u_interval; + const distLength = sqrt(distx * distx + disty * disty); + this.u_Data[i] = [ + currentNode[0] + distx, + currentNode[1] + disty, + currentNode[2], + distLength + ]; + } + + // the avarage move distance + // need to share memory + + } +} +`;Wa.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Wa.aveMovementCode=` +const VERTEX_COUNT; +@numthreads(1, 1, 1) +class CalcAveMovement { + @in + u_Data: vec4[]; + @in + u_iter: float; + @in @out + u_AveMovement: vec4[]; + @main + compute() { + let movement = 0; + for (let j: int = 0; j < VERTEX_COUNT; j++) { + const vertex = this.u_Data[j]; + movement += vertex[3]; + } + movement = movement / float(VERTEX_COUNT); + this.u_AveMovement[0] = [movement, 0, 0, 0]; + } +} +`;Wa.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';var $oe=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),h0=me&&me.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(t,e||[])).next())})},d0=me&&me.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]z.size[1]?z.size[0]:z.size[1];return X/2}if((0,Ut.isObject)(z.size)){var X=z.size.width>z.size.height?z.size.width:z.size.height;return X/2}return z.size/2}return 10};else if((0,Ut.isFunction)(g))m=function(z){return g(z)};else if((0,Ut.isArray)(g)){var w=g[0]>g[1]?g[0]:g[1],x=w/2;m=function(z){return x}}else{var E=g/2;m=function(z){return E}}this.nodeSize=m;var _=r.comboSpacing,S;(0,Ut.isNumber)(_)?S=function(){return _}:(0,Ut.isFunction)(_)?S=_:S=function(){return 0},this.comboSpacing=S;var A=r.comboPadding,M;(0,Ut.isNumber)(A)?M=function(){return A}:(0,Ut.isArray)(A)?M=function(){return Math.max.apply(null,A)}:(0,Ut.isFunction)(A)?M=A:M=function(){return 0},this.comboPadding=M;var C=this.linkDistance,I;C||(C=10),(0,Ut.isNumber)(C)?I=function(z){return C}:I=C,this.linkDistance=I;var k=this.edgeStrength,O;k||(k=1),(0,Ut.isNumber)(k)?O=function(z){return k}:O=k,this.edgeStrength=O;var B=this.nodeStrength,L;B||(B=30),(0,Ut.isNumber)(B)?L=function(z){return B}:L=B,this.nodeStrength=L},e.prototype.initPos=function(r){var n=this,a=n.nodes;a.forEach(function(i,o){var s=i.comboId,u=r[s];s&&u?(i.x=u.cx+100/(o+1),i.y=u.cy+100/(o+1)):(i.x=100/(o+1),i.y=100/(o+1))})},e.prototype.getComboMap=function(){var r=this,n=r.nodeMap,a=r.comboTrees,i=r.oriComboMap,o={};return(a||[]).forEach(function(s){var u=[];(0,Ut.traverseTreeUp)(s,function(f){if(f.itemType==="node"||!i[f.id])return!0;if(o[f.id]===void 0){var l={id:f.id,name:f.id,cx:0,cy:0,count:0,depth:r.oriComboMap[f.id].depth||0,children:[]};o[f.id]=l}var c=f.children;c&&c.forEach(function(v){if(!o[v.id]&&!n[v.id])return!0;u.push(v)});var h=o[f.id];if(h.cx=0,h.cy=0,u.length===0){h.empty=!0;var d=i[f.id];h.cx=d.x,h.cy=d.y}return u.forEach(function(v){if(h.count++,v.itemType!=="node"){var p=o[v.id];(0,Ut.isNumber)(p.cx)&&(h.cx+=p.cx),(0,Ut.isNumber)(p.cy)&&(h.cy+=p.cy);return}var g=n[v.id];g&&((0,Ut.isNumber)(g.x)&&(h.cx+=g.x),(0,Ut.isNumber)(g.y)&&(h.cy+=g.y))}),h.cx/=h.count||1,h.cy/=h.count||1,h.children=u,!0})}),o},e.prototype.applyComboCenterForce=function(r){var n=this,a=n.gravity,i=n.comboGravity||a,o=this.alpha,s=n.comboTrees,u=n.indexMap,f=n.nodeMap,l=n.comboMap;(s||[]).forEach(function(c){(0,Ut.traverseTreeUp)(c,function(h){if(h.itemType==="node")return!0;var d=l[h.id];if(!d)return!0;var v=l[h.id],p=(v.depth+1)/10*.5,g=v.cx,y=v.cy;return v.cx=0,v.cy=0,v.children.forEach(function(m){if(m.itemType!=="node"){var b=l[m.id];b&&(0,Ut.isNumber)(b.cx)&&(v.cx+=b.cx),b&&(0,Ut.isNumber)(b.cy)&&(v.cy+=b.cy);return}var w=f[m.id],x=w.x-g||.005,E=w.y-y||.005,_=Math.sqrt(x*x+E*E),S=u[w.id],A=i*o/_*p;r[S].x-=x*A,r[S].y-=E*A,(0,Ut.isNumber)(w.x)&&(v.cx+=w.x),(0,Ut.isNumber)(w.y)&&(v.cy+=w.y)}),v.cx/=v.count||1,v.cy/=v.count||1,!0})})},e.prototype.applyCalculate=function(r){var n=this,a=n.comboMap,i=n.nodes,o={};i.forEach(function(u,f){i.forEach(function(l,c){if(!(fb&&(h.minX=b),h.minY>w&&(h.minY=w),h.maxX1&&l.forEach(function(c,h){if(c.itemType==="node")return!1;var d=n[c.id];d&&l.forEach(function(v,p){if(h<=p||v.itemType==="node")return!1;var g=n[v.id];if(!g)return!1;var y=d.cx-g.cx||.005,m=d.cy-g.cy||.005,b=y*y+m*m,w=d.r||1,x=g.r||1,E=w+x,_=x*x,S=w*w;if(bo)){var M=n["".concat(p.id,"-").concat(x.id)],C=M.vx,I=M.vy,k=Math.log(Math.abs(x.depth-p.depth)/10)+1||1;k=k<1?1:k,x.comboId!==p.comboId&&(k+=1);var O=k?Math.pow(d,k):1,B=s(x)*u/S*O;if(r[g].x+=C*B,r[g].y+=I*B,g=0;O--)k(O);return{nodes:c,edges:h,combos:d,comboEdges:v}},u.prototype.getInnerGraphs=function(f){var l=this,c=l.comboTrees,h=l.nodeSize,d=l.edges,v=l.comboPadding,p=l.spacing,g={},y=this.innerLayout||new i.ConcentricLayout({type:"concentric",sortBy:"id"});return y.center=[0,0],y.preventOverlap=!0,y.nodeSpacing=p,(c||[]).forEach(function(m){(0,a.traverseTreeUp)(m,function(b){var w,x=(v==null?void 0:v(b))||10;if((0,a.isArray)(x)&&(x=Math.max.apply(Math,x)),!((w=b.children)===null||w===void 0)&&w.length){var _=b.children.map(function(R){if(R.itemType==="combo")return g[R.id];var V=f[R.id]||{};return e(e({},V),R)}),S=_.map(function(R){return R.id}),A={nodes:_,edges:d.filter(function(R){return S.includes(R.source)&&S.includes(R.target)})},M=1/0;_.forEach(function(R){var V;R.size||(R.size=((V=g[R.id])===null||V===void 0?void 0:V.size)||(h==null?void 0:h(R))||[30,30]),(0,a.isNumber)(R.size)&&(R.size=[R.size,R.size]),M>R.size[0]&&(M=R.size[0]),M>R.size[1]&&(M=R.size[1])}),y.layout(A);var C=(0,a.getLayoutBBox)(_),I=C.minX,k=C.minY,O=C.maxX,B=C.maxY,L={x:(O+I)/2,y:(B+k)/2};A.nodes.forEach(function(R){R.x-=L.x,R.y-=L.y});var z=Math.max(O-I,M)+x*2,X=Math.max(B-k,M)+x*2;g[b.id]={id:b.id,nodes:_,size:[z,X]}}else if(b.itemType==="combo"){var E=x?[x*2,x*2]:[30,30];g[b.id]={id:b.id,nodes:[],size:E}}return!0})}),g},u.prototype.initVals=function(){var f=this,l=f.nodeSize,c=f.spacing,h,d;if((0,a.isNumber)(c)?d=function(){return c}:(0,a.isFunction)(c)?d=c:d=function(){return 0},this.spacing=d,!l)h=function(b){var w=d(b);if(b.size){if((0,a.isArray)(b.size)){var x=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(x+w)/2}if((0,a.isObject)(b.size)){var x=b.size.width>b.size.height?b.size.width:b.size.height;return(x+w)/2}return(b.size+w)/2}return 10+w/2};else if((0,a.isFunction)(l))h=function(b){var w=l(b),x=d(b);if((0,a.isArray)(b.size)){var E=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(E+x)/2}return((w||10)+x)/2};else if((0,a.isArray)(l)){var v=l[0]>l[1]?l[0]:l[1],p=v/2;h=function(b){return p+d(b)/2}}else{var g=l/2;h=function(b){return g+d(b)/2}}this.nodeSize=h;var y=f.comboPadding,m;(0,a.isNumber)(y)?m=function(){return y}:(0,a.isArray)(y)?m=function(){return Math.max.apply(null,y)}:(0,a.isFunction)(y)?m=y:m=function(){return 0},this.comboPadding=m},u.prototype.getType=function(){return"comboCombined"},u}(n.Base);return af.ComboCombinedLayout=o,af}var Ml={},n1={};Object.defineProperty(n1,"__esModule",{value:!0});var Koe=function(){function t(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}return t.prototype.distanceTo=function(e){var r=this.rx-e.rx,n=this.ry-e.ry;return Math.hypot(r,n)},t.prototype.setPos=function(e,r){this.rx=e,this.ry=r},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(e){var r=e.rx-this.rx,n=e.ry-this.ry,a=Math.hypot(r,n);a=a<1e-4?1e-4:a;var i=this.g*(this.degree+1)*(e.degree+1)/a;this.fx+=i*r/a,this.fy+=i*n/a},t.prototype.in=function(e){return e.contains(this.rx,this.ry)},t.prototype.add=function(e){var r=this.mass+e.mass,n=(this.rx*this.mass+e.rx*e.mass)/r,a=(this.ry*this.mass+e.ry*e.mass)/r,i=this.degree+e.degree,o={rx:n,ry:a,mass:r,degree:i};return new t(o)},t}();n1.default=Koe;var a1={};Object.defineProperty(a1,"__esModule",{value:!0});var Qoe=function(){function t(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(e,r){var n=this.length/2;return e<=this.xmid+n&&e>=this.xmid-n&&r<=this.ymid+n&&r>=this.ymid-n},t.prototype.NW=function(){var e=this.xmid-this.length/4,r=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.NE=function(){var e=this.xmid+this.length/4,r=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.SW=function(){var e=this.xmid-this.length/4,r=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.SE=function(){var e=this.xmid+this.length/4,r=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t}();a1.default=Qoe;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});var Joe=function(){function t(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,e!=null&&(this.quad=e)}return t.prototype.insert=function(e){if(this.body==null){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))},t.prototype._putBody=function(e){this.quad&&(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))},t.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},t.prototype.updateForce=function(e){if(!(this.body==null||e===this.body))if(this._isExternal())e.addForce(this.body);else{var r=this.quad?this.quad.getLength():0,n=this.body.distanceTo(e);r/n250&&(r.barnesHut=!0),r.prune===void 0&&u>100&&(r.prune=!0),this.maxIteration===0&&!r.prune?(o=250,u<=200&&u>100?o=1e3:u>200&&(o=1200),this.maxIteration=o):this.maxIteration===0&&i&&(o=100,u<=200&&u>100?o=500:u>200&&(o=950),this.maxIteration=o),r.kr||(r.kr=50,u>100&&u<=500?r.kr=20:u>500&&(r.kr=1)),r.kg||(r.kg=20,u>100&&u<=500?r.kg=10:u>500&&(r.kg=1)),this.nodes=r.updateNodesByForces(s),a()},e.prototype.updateNodesByForces=function(r){for(var n=this,a=n.edges,i=n.maxIteration,o=n.nodes,s=a.filter(function(_){var S=(0,ci.getEdgeTerminal)(_,"source"),A=(0,ci.getEdgeTerminal)(_,"target");return S!==A}),u=o.length,f=s.length,l=[],c={},h={},d=[],v=0;v0;){for(var x=0;xy||!c)?m=this.getOptRepGraForces(m,w,o):m=this.getRepGraForces(g,y,m,p,s,o);var _=this.updatePos(m,b,v,o);f=_.nodes,v=_.sg,g--,u.tick&&u.tick()}return f},e.prototype.getAttrForces=function(r,n,a,i,o,s,u,f){for(var l=this,c=l.nodes,h=l.preventOverlap,d=l.dissuadeHubs,v=l.mode,p=l.prune,g=0;g0&&(_=E,S=E),f[2*i[y.id]]+=_*x[0],f[2*i[b.id]]-=S*x[0],f[2*i[y.id]+1]+=_*x[1],f[2*i[b.id]+1]-=S*x[1]}}return f},e.prototype.getRepGraForces=function(r,n,a,i,o,s){for(var u=this,f=u.nodes,l=u.preventOverlap,c=u.kr,h=u.kg,d=u.center,v=u.prune,p=f.length,g=0;g0&&(w=c*(s[g]+1)*(s[y]+1)/b),a[2*g]-=w*m[0],a[2*y]+=w*m[0],a[2*g+1]-=w*m[1],a[2*y+1]+=w*m[1]}var x=[f[g].x-d[0],f[g].y-d[1]],E=Math.hypot(x[0],x[1]);x[0]=x[0]/E,x[1]=x[1]/E;var _=h*(s[g]+1);a[2*g]-=_*x[0],a[2*g+1]-=_*x[1]}return a},e.prototype.getOptRepGraForces=function(r,n,a){for(var i=this,o=i.nodes,s=i.kg,u=i.center,f=i.prune,l=o.length,c=9e10,h=-9e10,d=9e10,v=-9e10,p=0;p=h&&(h=o[p].x),o[p].x<=c&&(c=o[p].x),o[p].y>=v&&(v=o[p].y),o[p].y<=d&&(d=o[p].y));for(var g=Math.max(h-c,v-d),y={xmid:(h+c)/2,ymid:(v+d)/2,length:g,massCenter:u,mass:l},m=new nse.default(y),b=new ase.default(m),p=0;p1.5*E?1.5*E:a);for(var y=0;yA?A:_;var M=_*r[2*y],C=_*r[2*y+1];s[y].x+=M,s[y].y+=C}return{nodes:s,sg:a}},e}(tse.Base);Ml.ForceAtlas2Layout=ise;var Al={},s1={},u1={},f1={},js=me&&me.__assign||function(){return js=Object.assign||function(t){for(var e,r=1,n=arguments.length;re;n--)for(var a=0;a=e&&(this.additionColumn[a]+=r);for(var n=0;ne;n--)this.cells[a][n+r]=js(js({},this.cells[a][n]),{dx:a,dy:n+r,x:a*this.CELL_W,y:(n+r)*this.CELL_H}),this.cells[a][n]={dx:a,dy:n,x:a*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var n=0;n=e&&(this.additionRow[n]+=r);for(var a=0;ai){for(var d=Math.ceil((f.size[0]+a)/i)-1,v=d,p=0;p-1;if(g&&!s.cells[c+p+1][h].node)v--;else break}s.insertColumn(c,v)}if(f.size[1]+a>o){for(var d=Math.ceil((f.size[1]+a)/o)-1,v=d,p=0;p-1;if(g&&!s.cells[c][h+p+1].node)v--;else break}s.insertRow(h,v)}}for(var u=0;uv0?(m=a-l,y=s-i,b=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)),w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):0y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):g<-v0?(m=a-l,y=-(f-n),m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):(m=u-o,Math.abs(p)>(i-n)/2?y=n-f:y=p,m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y&&g!==0?(y/Math.sin(g)).toFixed(2):m.toFixed(2)));var x=parseFloat(g.toFixed(2)),E=r;return r&&(E=lsei?e:t,s=a>i?t:e,u=o.x-o.size[0]/2,f=o.y-o.size[1]/2,l=o.x+o.size[0]/2,c=o.y+o.size[1]/2,h=s.x-s.size[0]/2,d=s.y-s.size[1]/2,v=s.x+s.size[0]/2,p=s.y+s.size[1]/2,g=o.x,y=o.y,m=s.x,b=s.y,w=l>=h&&v>=u&&c>=d&&p>=f,x=0,E=0;if(w){E=Math.sqrt(Math.pow(m-g,2)+Math.pow(b-y,2));var _=u>h?u:h,S=f>d?f:d,A=loO||n.y>sO)&&(e+=1e12);for(var a=r+1;a150,d=c<30||c>150,v=l>70&&l<110,p=c>70&&c<110;if(h&&!d||l*c<0){s=!1;break}else if(v&&!p||l*c<0){s=!1;break}else if((f.x-t.x)*(f.x-e.x)<0){s=!1;break}else if((f.y-t.y)*(f.y-e.y)<0){s=!1;break}}return s}function yse(t,e){for(var r=!1,n=1,a=hse*n,i=dse*n,o=[a,-a,0,0],s=[0,0,i,-i],u=0;uD2?(l=d,r=!0):(f.x-=o[c],f.y-=s[c])}}return p0>D2&&(p0*=vse),r?lO(t):0}function P2(t,e){var r=0;(t.x<0||t.y<0||t.x+t.size[0]+20>oO||t.y+t.size[1]+20>sO)&&(r+=1e12);for(var n=0;n0&&(s++,!(s>=o));){var u=yse(t,e);u!==0&&(i=u),a=i-r,r=i,a===0?--n:n=20}return t.forEach(function(f){f.x=f.x-f.size[0]/2,f.y=f.y-f.size[1]/2}),{nodes:t,edges:e}}l1.default=mse;var $g=me&&me.__assign||function(){return $g=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1){var g=$g({},v);delete g.size,o.push(g)}});var s=[];n.forEach(function(v){var p=o.find(function(y){return y.id===v.source}),g=o.find(function(y){return y.id===v.target});p&&g&&s.push(v)});var u=new Sse.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),f=u.layout({nodes:o,edges:s}).nodes;r.forEach(function(v){var p=(f||[]).find(function(g){return g.id===v.id});v.x=(p==null?void 0:p.x)||a/2,v.y=(p==null?void 0:p.y)||i/2});var l=JSON.parse(JSON.stringify(r)),c=JSON.parse(JSON.stringify(n)),h=Is.forceSimulation().nodes(l).force("link",Is.forceLink(c).id(function(v){return v.id}).distance(function(v){var p=s.find(function(g){return g.source===v.source&&g.target===v.target});return p?30:20})).force("charge",Is.forceManyBody()).force("center",Is.forceCenter(a/2,i/2)).force("x",Is.forceX(a/2)).force("y",Is.forceY(i/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),d=new Promise(function(v){h.on("end",function(){r.forEach(function(x){var E=l.find(function(_){return _.id===x.id});E&&(x.x=E.x,x.y=E.y)});var p=Math.min.apply(Math,r.map(function(x){return x.x})),g=Math.max.apply(Math,r.map(function(x){return x.x})),y=Math.min.apply(Math,r.map(function(x){return x.y})),m=Math.max.apply(Math,r.map(function(x){return x.y})),b=a/(g-p),w=i/(m-y);r.forEach(function(x){x.x!==void 0&&b<1&&(x.x=(x.x-p)*b),x.y!==void 0&&w<1&&(x.y=(x.y-y)*w)}),r.forEach(function(x){x.sizeTemp=x.size,x.size=[10,10]}),(0,_se.default)(r,n),r.forEach(function(x){x.size=x.sizeTemp||[],delete x.sizeTemp}),(0,Ese.default)({nodes:r,edges:n},e),v()})});return d}s1.default=Mse;var Ase=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cse=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Al,"__esModule",{value:!0});Al.ERLayout=void 0;var Tse=Rr,Ise=Cse(s1),kse=function(t){Ase(e,t);function e(r){var n=t.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},r&&n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var r=this,n=r.nodes,a=r.edges;return n==null||n.forEach(function(i){i.size||(i.size=[50,50])}),(0,Ise.default)({nodes:n,edges:a},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){r.onLayoutEnd&&r.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(Tse.Base);Al.ERLayout=kse;var Io={},R2;function Nse(){if(R2)return Io;R2=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.Layouts=Io.Layout=void 0;var t=gi,e=sl,r=ul,n=ll,a=fl,i=rm,o=cl,s=yu,u=Km,f=bl,l=wl,c=xl,h=El,d=_l,v=Sl,p=iO(),g=Ml,y=Al,m=vl,b=Ir(),w=function(){function x(E){var _=(0,t.getLayoutByName)(E.type);this.layoutInstance=new _(E)}return x.prototype.layout=function(E){return this.layoutInstance.layout(E)},x.prototype.updateCfg=function(E){this.layoutInstance.updateCfg(E)},x.prototype.init=function(E){this.correctLayers(E.nodes),this.layoutInstance.init(E)},x.prototype.correctLayers=function(E){if(E!=null&&E.length){var _=1/0,S=[];if(E.forEach(function(M){(0,b.isString)(M.layer)&&(M.layer=parseInt(M.layer,10)),!(M.layer===void 0||isNaN(M.layer))&&(S.push(M),M.layer<_&&(_=M.layer))}),_<=0){var A=Math.abs(_)+1;S.forEach(function(M){return M.layer+=A})}}},x.prototype.execute=function(){this.layoutInstance.execute()},x.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},x.prototype.destroy=function(){return this.layoutInstance.destroy()},x}();return Io.Layout=w,Io.Layouts={force:i.ForceLayout,fruchterman:c.FruchtermanLayout,forceAtlas2:g.ForceAtlas2Layout,gForce:a.GForceLayout,force2:n.Force2Layout,dagre:s.DagreLayout,dagreCompound:m.DagreCompoundLayout,circular:o.CircularLayout,radial:u.RadialLayout,concentric:f.ConcentricLayout,grid:e.GridLayout,mds:l.MDSLayout,comboForce:v.ComboForceLayout,comboCombined:p.ComboCombinedLayout,random:r.RandomLayout,"gForce-gpu":d.GForceGPULayout,"fruchterman-gpu":h.FruchtermanGPULayout,er:y.ERLayout},Io}var hO={};Object.defineProperty(hO,"__esModule",{value:!0});var F2;function dO(){return F2||(F2=1,function(t){var e=me&&me.__createBinding||(Object.create?function(E,_,S,A){A===void 0&&(A=S);var M=Object.getOwnPropertyDescriptor(_,S);(!M||("get"in M?!_.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(E,A,M)}:function(E,_,S,A){A===void 0&&(A=S),E[A]=_[S]}),r=me&&me.__exportStar||function(E,_){for(var S in E)S!=="default"&&!Object.prototype.hasOwnProperty.call(_,S)&&e(_,E,S)};Object.defineProperty(t,"__esModule",{value:!0}),t.ERLayout=t.ForceAtlas2Layout=t.ComboCombinedLayout=t.ComboForceLayout=t.GForceGPULayout=t.FruchtermanGPULayout=t.FruchtermanLayout=t.MDSLayout=t.ConcentricLayout=t.RadialLayout=t.DagreCompoundLayout=t.DagreLayout=t.CircularLayout=t.ForceLayout=t.Force2Layout=t.GForceLayout=t.RandomLayout=t.GridLayout=t.Layouts=t.Layout=void 0;var n=sl;Object.defineProperty(t,"GridLayout",{enumerable:!0,get:function(){return n.GridLayout}});var a=ul;Object.defineProperty(t,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var i=fl;Object.defineProperty(t,"GForceLayout",{enumerable:!0,get:function(){return i.GForceLayout}});var o=ll;Object.defineProperty(t,"Force2Layout",{enumerable:!0,get:function(){return o.Force2Layout}});var s=rm;Object.defineProperty(t,"ForceLayout",{enumerable:!0,get:function(){return s.ForceLayout}});var u=cl;Object.defineProperty(t,"CircularLayout",{enumerable:!0,get:function(){return u.CircularLayout}});var f=yu;Object.defineProperty(t,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout}});var l=vl;Object.defineProperty(t,"DagreCompoundLayout",{enumerable:!0,get:function(){return l.DagreCompoundLayout}});var c=Km;Object.defineProperty(t,"RadialLayout",{enumerable:!0,get:function(){return c.RadialLayout}});var h=bl;Object.defineProperty(t,"ConcentricLayout",{enumerable:!0,get:function(){return h.ConcentricLayout}});var d=wl;Object.defineProperty(t,"MDSLayout",{enumerable:!0,get:function(){return d.MDSLayout}});var v=xl;Object.defineProperty(t,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var p=El;Object.defineProperty(t,"FruchtermanGPULayout",{enumerable:!0,get:function(){return p.FruchtermanGPULayout}});var g=_l;Object.defineProperty(t,"GForceGPULayout",{enumerable:!0,get:function(){return g.GForceGPULayout}});var y=Sl;Object.defineProperty(t,"ComboForceLayout",{enumerable:!0,get:function(){return y.ComboForceLayout}});var m=iO();Object.defineProperty(t,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var b=Ml;Object.defineProperty(t,"ForceAtlas2Layout",{enumerable:!0,get:function(){return b.ForceAtlas2Layout}});var w=Al;Object.defineProperty(t,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var x=Nse();Object.defineProperty(t,"Layout",{enumerable:!0,get:function(){return x.Layout}}),Object.defineProperty(t,"Layouts",{enumerable:!0,get:function(){return x.Layouts}}),r(hO,t)}(Fp)),Fp}(function(t){var e=me&&me.__createBinding||(Object.create?function(a,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(a,s,u)}:function(a,i,o,s){s===void 0&&(s=o),a[s]=i[o]}),r=me&&me.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&e(i,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.getLayoutByName=t.unRegisterLayout=t.registerLayout=void 0;var n=gi;Object.defineProperty(t,"registerLayout",{enumerable:!0,get:function(){return n.registerLayout}}),Object.defineProperty(t,"unRegisterLayout",{enumerable:!0,get:function(){return n.unRegisterLayout}}),Object.defineProperty(t,"getLayoutByName",{enumerable:!0,get:function(){return n.getLayoutByName}}),r(dO(),t)})(Kt);function Ose(t,e,r,n){return n===void 0&&(n="height"),r==="center"?(t[n]+e[n])/2:t.height}var oo={assign:Object.assign,getHeight:Ose},vO=oo,c1=18,Lse=c1*2,B2=c1,Dse={getId:function(e){return e.id||e.name},getPreH:function(e){return e.preH||0},getPreV:function(e){return e.preV||0},getHGap:function(e){return e.hgap||B2},getVGap:function(e){return e.vgap||B2},getChildren:function(e){return e.children},getHeight:function(e){return e.height||Lse},getWidth:function(e){var r=e.label||" ";return e.width||r.split("").length*c1}};function dd(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof dd)return t;r.data=t;var n=e.getHGap(t),a=e.getVGap(t);return r.preH=e.getPreH(t),r.preV=e.getPreV(t),r.width=e.getWidth(t),r.height=e.getHeight(t),r.width+=r.preH,r.height+=r.preV,r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(n,a),r}vO.assign(dd.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){var n=this;n.hgap+=e,n.vgap+=r,n.width+=2*e,n.height+=2*r},eachNode:function(e){for(var r=this,n=[r],a;a=n.shift();)e(a),n=a.children.concat(n)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r=this,n=[r],a;a=n.shift();)e(a),n=n.concat(a.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(n){n.x+=e,n.y+=r,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var e=this,r=e.getBoundingBox();e.eachNode(function(n){n.x=n.x-(n.x-r.left)*2-n.width}),e.translate(r.width,0)},bottom2top:function(){var e=this,r=e.getBoundingBox();e.eachNode(function(n){n.y=n.y-(n.y-r.top)*2-n.height}),e.translate(0,r.height)}});function Pse(t,e,r){e===void 0&&(e={}),e=vO.assign({},Dse,e);var n=new dd(t,e),a=[n],i;if(!r&&!t.collapsed){for(;i=a.shift();)if(!i.data.collapsed){var o=e.getChildren(i.data),s=o?o.length:0;if(i.children=new Array(s),o&&s)for(var u=0;uw.low&&(w=w.nxt);var A=E+x.prelim+x.w-(S+_.prelim);A>0&&(S+=A,o(m,b,w.index,A));var M=f(x),C=f(_);M<=C&&(x=u(x),x!==null&&(E+=x.mod)),M>=C&&(_=s(_),_!==null&&(S+=_.mod))}!x&&_?l(m,b,_,S):x&&!_&&c(m,b,x,E)}function o(m,b,w,x){m.c[b].mod+=x,m.c[b].msel+=x,m.c[b].mser+=x,v(m,b,w,x)}function s(m){return m.cs===0?m.tl:m.c[0]}function u(m){return m.cs===0?m.tr:m.c[m.cs-1]}function f(m){return m.y+m.h}function l(m,b,w,x){var E=m.c[0].el;E.tl=w;var _=x-w.mod-m.c[0].msel;E.mod+=_,E.prelim-=_,m.c[0].el=m.c[b].el,m.c[0].msel=m.c[b].msel}function c(m,b,w,x){var E=m.c[b].er;E.tr=w;var _=x-w.mod-m.c[b].mser;E.mod+=_,E.prelim-=_,m.c[b].er=m.c[b-1].er,m.c[b].mser=m.c[b-1].mser}function h(m){m.prelim=(m.c[0].prelim+m.c[0].mod+m.c[m.cs-1].mod+m.c[m.cs-1].prelim+m.c[m.cs-1].w)/2-m.w/2}function d(m,b){b+=m.mod,m.x=m.prelim+b,p(m);for(var w=0;w=w.low;)w=w.nxt;return{low:m,index:b,nxt:w}}bO(t,r);var y=mf.fromNode(t,r);return n(y),d(y,0),mO(y,t,r),Bse(t,r),t},G2=pO,wO=function(t,e){for(var r=G2(t.data,e,!0),n=G2(t.data,e,!0),a=t.children.length,i=Math.round(a/2),o=e.getSide||function(l,c){return c-1},$se=Fi[0],h1=function(t,e,r){var n=e.direction||$se;if(e.isHorizontal=Use(n),Fi.indexOf(n)===-1)throw new TypeError("Invalid direction: "+n);if(n===Fi[0])r(t,e);else if(n===Fi[1])r(t,e),t.right2left();else if(n===Fi[2])r(t,e);else if(n===Fi[3])r(t,e),t.bottom2top();else if(n===Fi[4]||n===Fi[5]){var a=zse(t,e),i=a.left,o=a.right;r(i,e),r(o,e),e.isHorizontal?i.right2left():i.bottom2top(),o.translate(i.x-o.x,i.y-o.y),t.x=i.x,t.y=o.y;var s=t.getBoundingBox();e.isHorizontal?s.top<0&&t.translate(0,-s.top):s.left<0&&t.translate(-s.left,0)}var u=e.fixedRoot;return u===void 0&&(u=!0),u&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),Xse(t,e),t};function Xse(t,e){if(e.radial){var r=e.isHorizontal?["x","y"]:["y","x"],n=r[0],a=r[1],i={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;t.DFTraverse(function(l){s++;var c=l.x,h=l.y;i.x=Math.min(i.x,c),i.y=Math.min(i.y,h),o.x=Math.max(o.x,c),o.y=Math.max(o.y,h)});var u=o[a]-i[a];if(u===0)return;var f=Math.PI*2/s;t.DFTraverse(function(l){var c=(l[a]-i[a])/u*(Math.PI*2-f)+f,h=l[n]-t[n];l.x=Math.cos(c)*h,l.y=Math.sin(c)*h})}}function Wse(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xg(t,e)}function Xg(t,e){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xg(t,e)}var Vse=hv,Yse=Gse,qse=h1,Hse=oo,Zse=function(t){function e(){return t.apply(this,arguments)||this}Wse(e,t);var r=e.prototype;return r.execute=function(){var a=this;return qse(a.rootNode,a.options,Yse)},e}(Vse),Kse={};function Qse(t,e){return e=Hse.assign({},Kse,e),new Zse(t,e).execute()}var Jse=Qse,eue=oo;function tue(t,e){e===void 0&&(e=[]);var r=this;r.x=r.y=0,r.leftChild=r.rightChild=null,r.height=0,r.children=e}var rue={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function xO(t,e,r){r?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach(function(n,a){xO(n,e.children[a],r)})}var nue=function(t,e){e===void 0&&(e={}),e=eue.assign({},rue,e);var r=0;function n(u){if(!u)return null;u.width=0,u.depth&&u.depth>r&&(r=u.depth);var f=u.children,l=f.length,c=new tue(u.height,[]);return f.forEach(function(h,d){var v=n(h);c.children.push(v),d===0&&(c.leftChild=v),d===l-1&&(c.rightChild=v)}),c.originNode=u,c.isLeaf=u.isLeaf(),c}function a(u){if(u.isLeaf||u.children.length===0)u.drawingDepth=r;else{var f=u.children.map(function(c){return a(c)}),l=Math.min.apply(null,f);u.drawingDepth=l-1}return u.drawingDepth}var i;function o(u){u.x=u.drawingDepth*e.rankSep,u.isLeaf?(u.y=0,i&&(u.y=i.y+i.height+e.nodeSep,u.originNode.parent!==i.originNode.parent&&(u.y+=e.subTreeSep)),i=u):(u.children.forEach(function(f){o(f)}),u.y=(u.leftChild.y+u.rightChild.y)/2)}var s=n(t);return a(s),o(s),xO(s,t,e.isHorizontal),t};function aue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wg(t,e)}function Wg(t,e){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Wg(t,e)}var iue=hv,oue=nue,sue=h1,uue=oo,fue=function(t){function e(){return t.apply(this,arguments)||this}aue(e,t);var r=e.prototype;return r.execute=function(){var a=this;return a.rootNode.width=0,sue(a.rootNode,a.options,oue)},e}(iue),lue={};function cue(t,e){return e=uue.assign({},lue,e),new fue(t,e).execute()}var hue=cue,z2=oo;function due(t,e,r,n,a){var i=(typeof r=="function"?r(t):r)*t.depth;if(!n)try{if(t.id===t.parent.children[0].id){t.x+=i,t.y=e?e.y:0;return}}catch{}if(t.x+=i,e){if(t.y=e.y+z2.getHeight(e,t,a),e.parent&&t.parent.id!==e.parent.id){var o=e.parent,s=o.y+z2.getHeight(o,t,a);t.y=s>t.y?s:t.y}}else t.y=0}var vue=function(t,e,r,n){var a=null;t.eachNode(function(i){due(i,a,e,r,n),a=i})};function pue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Vg(t,e)}function Vg(t,e){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vg(t,e)}var gue=hv,Vc=vue,yue=wO,mue=oo,bf=["LR","RL","H"],bue=bf[0],wue=function(t){function e(){return t.apply(this,arguments)||this}pue(e,t);var r=e.prototype;return r.execute=function(){var a=this,i=a.options,o=a.rootNode;i.isHorizontal=!0;var s=i.indent,u=s===void 0?20:s,f=i.dropCap,l=f===void 0?!0:f,c=i.direction,h=c===void 0?bue:c,d=i.align;if(h&&bf.indexOf(h)===-1)throw new TypeError("Invalid direction: "+h);if(h===bf[0])Vc(o,u,l,d);else if(h===bf[1])Vc(o,u,l,d),o.right2left();else if(h===bf[2]){var v=yue(o,i),p=v.left,g=v.right;Vc(p,u,l,d),p.right2left(),Vc(g,u,l,d);var y=p.getBoundingBox();g.translate(y.width,0),o.x=g.x-o.width/2}return o},e}(gue),xue={};function Eue(t,e){return e=mue.assign({},xue,e),new wue(t,e).execute()}var _ue=Eue,Sue=oo;function EO(t,e){var r=0;return t.children.length?t.children.forEach(function(n){r+=EO(n,e)}):r=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,r)+2*t._subTreeSep,t.totalHeight}function _O(t){var e=t.children,r=e.length;if(r){e.forEach(function(u){_O(u)});var n=e[0],a=e[r-1],i=a.y-n.y+a.height,o=0;if(e.forEach(function(u){o+=u.totalHeight}),i>t.height)t.y=n.y+i/2-t.height/2;else if(e.length!==1||t.height>o){var s=t.y+(t.height-i)/2-n.y;e.forEach(function(u){u.translate(0,s)})}else t.y=(n.y+n.height/2+a.y+a.height/2)/2-t.height/2}}var Mue={getSubTreeSep:function(){return 0}},Aue=function(t,e){e===void 0&&(e={}),e=Sue.assign({},Mue,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(r){r.x=r.parent.x+r.parent.width}),t.parent=null,EO(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(r){var n=r.children,a=n.length;if(a){var i=n[0];if(i.startY=r.startY+r._subTreeSep,a===1)i.y=r.y+r.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var o=1;o=0&&(s="x",o="y");var u=0;U2(e,function(c){return u++,c.x>i.x&&(i.x=c.x),c.xi.y&&(i.y=c.y),c.y"u"||typeof document>"u"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch{return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var r=document.createElement("div");return r.id="webgl-error-message",r.style.fontFamily="monospace",r.style.fontSize="13px",r.style.fontWeight="normal",r.style.textAlign="center",r.style.background="#fff",r.style.color="#000",r.style.padding="1.5em",r.style.width="400px",r.style.margin="5em auto 0",this.webgl||(r.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support WebGL.
','Find out how to get it here.'].join(` +`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` +`)),r},addGetWebGLMessage:function(r){r=r||{};var n=r.parent!==void 0?r.parent:document.body,a=r.id!==void 0?r.id:"oldie",i=d1().getWebGLErrorMessage();i.id=a,n.appendChild(i)}}};const Vue=Object.freeze(Object.defineProperty({__proto__:null,gpuDetector:d1},Symbol.toStringTag,{value:"Module"}));var SO=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("firefox")>-1?"firefox":e.indexOf("safari")>-1?"safari":e.indexOf("opr")>-1?"opera":e.indexOf("chrome")>-1?"chrome":e.indexOf("trident")>-1?"ie 11":e.indexOf("ie")>-1?"ie":"unknown"};const Yue=Object.freeze(Object.defineProperty({__proto__:null,getBrowserName:SO},Symbol.toStringTag,{value:"Module"}));var so=P(P(P(P(P({},Za),yX),Wue),Vue),Yue);so.radialLayout;Kt.registerLayout("grid",Kt.GridLayout);Kt.registerLayout("random",Kt.RandomLayout);Kt.registerLayout("force",Kt.ForceLayout);Kt.registerLayout("circular",Kt.CircularLayout);Kt.registerLayout("dagre",Kt.DagreLayout);Kt.registerLayout("dagreCompound",Kt.DagreCompoundLayout);Kt.registerLayout("radial",Kt.RadialLayout);Kt.registerLayout("concentric",Kt.ConcentricLayout);Kt.registerLayout("mds",Kt.MDSLayout);Kt.registerLayout("fruchterman",Kt.FruchtermanLayout);Kt.registerLayout("fruchterman-gpu",Kt.FruchtermanGPULayout);Kt.registerLayout("gForce",Kt.GForceLayout);Kt.registerLayout("force2",Kt.Force2Layout);Kt.registerLayout("gForce-gpu",Kt.GForceGPULayout);Kt.registerLayout("comboForce",Kt.ComboForceLayout);Kt.registerLayout("comboCombined",Kt.ComboCombinedLayout);Kt.registerLayout("forceAtlas2",Kt.ForceAtlas2Layout);var que=function(){function t(e,r){var n=e.toString(),a=new Blob(["importScripts('".concat(r,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(a))}return t}(),Hue=function(e){e===void 0&&(e="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function r(){var a={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",GPURUN:"GPU_LAYOUT_RUN"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function i(s){var u=s.data.type;return u===a.RUN||u===a.GPURUN}function o(s){var u=this,f=s.data.type;switch(f){case a.RUN:{var l=s.data,c=l.nodes,h=l.edges,d=l.layoutCfg,v=d===void 0?{}:d,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}var y;v.onLayoutEnd=function(){u.postMessage({type:a.END,nodes:c}),y==null||y.destroy()},y=new g(v),y.init({nodes:c,edges:h}),y.execute();break}case a.GPURUN:{var m=s.data,b=m.nodes,h=m.edges,w=m.layoutCfg,v=w===void 0?{}:w,x=m.canvas,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}if(p.split("-")[1]!=="gpu"){this.postMessage({type:a.ERROR,message:"layout ".concat(p," does not support GPU")});break}var E=new g(v);E.init({nodes:b,edges:h}),E.executeWithWorker(x,this);break}}}onmessage=function(u){i(u)&&o(u)}}var n=new que(r,e);return n},ks={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function qg(t){"@babel/helpers - typeof";return qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qg(t)}var $2=function(e){return setTimeout(e,16)},X2=function(e){return clearTimeout(e)},Yc={requestAnimationFrame:function(e){var r=typeof window<"u"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||$2;return r(e)},cancelAnimationFrame:function(e){var r=typeof window<"u"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||X2;return r(e)}},Zue=["fruchterman","gForce"],Kue=["force","grid","circular"],Que=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.graph=r,n.layoutCfg=r.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker>"u"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Hue(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var r=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,r.requestId&&(Yc.cancelAnimationFrame(r.requestId),r.requestId=null),r.requestId2&&(Yc.cancelAnimationFrame(r.requestId2),r.requestId2=null))},e.prototype.execLayoutMethod=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,p,h,d,v,p,g;return Gn(this,function(y){switch(y.label){case 0:if(s=this.graph,!s||s.get("destroyed"))return[2];u=r.type,r.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},u&&this.isGPU&&(MO(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Za.isForce(u)?(f=r.onTick,l=r.animate,c=l===void 0&&(u==="force"||u==="force2"),p=function(){f&&f(),(l||c)&&s.refreshPositions()},r.tick=p):(u==="comboForce"||u==="comboCombined")&&(r.comboTrees=s.get("comboTrees")),h=!1;try{d=new Kt.Layouts[u](r),this.layoutMethods[n]&&this.layoutMethods[n].destroy(),this.layoutMethods[n]=d}catch{console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),o()}return h=d.enableTick,h&&(v=r.onTick,p=function(){v&&v(),s.refreshPositions()},d.tick=p),g=this.filterLayoutData(this.data,r),tfe(g,n),d.init(g),s.emit("beforesublayout",{type:u}),[4,d.execute()];case 1:return y.sent(),d.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this.graph,u=n==null?void 0:n.type,n.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},Za.isForce(u)&&(f=n.onTick,l=n.animate,c=l===void 0&&(u==="force"||u==="force2"),h=function(){f==null||f(),(l||c)&&s.refreshPositions()},n.tick=h),d=this.filterLayoutData(this.data,n),r.init(d),r.updateCfg(n),s.emit("beforesublayout",{type:u}),[4,r.execute()];case 1:return v.sent(),r.isCustomLayout&&n.onLayoutEnd&&n.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(r){var n=this,a,i=this.graph;if(!(!i||i.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,s=o.nodes,u=o.hiddenNodes;if(!s)return!1;var f=i.get("width"),l=i.get("height"),c={};Object.assign(c,{width:f,height:l,center:[f/2,l/2]},this.layoutCfg),this.layoutCfg=c;var h=c.type,d=!1;(a=this.layoutMethods)===null||a===void 0||a.forEach(function(x){var E;return d=!!(!((E=x.nodes)===null||E===void 0)&&E.length)||d});var v=this.destoryLayoutMethods();i.emit("beforelayout");var p=Promise.resolve();d&&h&&(v==null?void 0:v.length)===1&&v[0]===h?this.tweakInit():p=this.initPositions(c.center,s);var g=this.initPositions(c.center,u);g.then(),this.isGPU=W2(c,h);var y=c.onLayoutEnd,m=c.layoutEndFormatted,b=c.adjust;if(m||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return y&&y(s),this.refreshLayout(),b&&c.pipes?[4,this.adjustPipesBox(this.data,b)]:[3,2];case 1:x.sent(),this.refreshLayout(),x.label=2;case 2:return i.emit("afterlayout"),[2]}})})}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,r))return!0;var w=!1;return c.type?(w=!0,p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,x.sent()]}})})})):c.pipes&&(w=!0,c.pipes.forEach(function(x,E){p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(_){switch(_.label){case 0:return[4,this.execLayoutMethod(x,E)];case 1:return[2,_.sent()]}})})})})),w?p.then(function(){c.onAllLayoutEnd&&c.onAllLayoutEnd(),r&&r()}).catch(function(x){console.warn("graph layout failed,",x)}):(i.refreshPositions(),r==null||r()),!1}},e.prototype.tweakInit=function(){var r=this,n=r.data,a=r.graph,i=n.nodes,o=n.edges;if(i!=null&&i.length){var s={};i.forEach(function(l){var c=l.x,h=l.y;!isNaN(c)&&!isNaN(h)&&(s[l.id]={x:c,y:h},l.mass=l.mass||2)}),o.forEach(function(l){var c=l.source,h=l.target,d=s[c],v=s[h];!d&&v?s[c]={x:v.x+(Math.random()-.5)*80,y:v.y+(Math.random()-.5)*80}:!v&&d&&(s[h]={x:d.x+(Math.random()-.5)*80,y:d.y+(Math.random()-.5)*80})});var u=a.get("width"),f=a.get("height");i.forEach(function(l){var c=s[l.id]||{x:u/2+(Math.random()-.5)*20,y:f/2+(Math.random()-.5)*20};l.x=c.x,l.y=c.y})}},e.prototype.initWithPreset=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this,u=s.layoutCfg,f=s.data,l=u.preset,!(l!=null&&l.type)||!Kt.Layouts[l==null?void 0:l.type]?(n==null||n(),i(),[2,!1]):(c=W2(l,l.type),h=c?"".concat(l.type,"-gpu"):l.type,d=new Kt.Layouts[h](l),delete u.preset,d.init(f),[4,d.execute()]);case 1:return v.sent(),r==null||r(),i(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(r,n){var a=this,i=this,o=i.layoutCfg,s=i.graph,u=this.getWorker(),f=this.workerData;if(!u)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,s.emit("beforelayout");var l=Promise.resolve(),c=!1;if(o.type)c=!0,l=l.then(function(){return a.runWebworker(u,r,o)});else if(o.pipes){c=!0;for(var h=function(y){l=l.then(function(){return a.runWebworker(u,r,y)})},d=0,v=o.pipes;d'),l=a?a.backgroundColor:void 0,c=a?a.padding:void 0;c?Ot(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var h=o+c[0]+c[2],d=s+c[1]+c[3],v={container:f,height:h,width:d,quickHit:!0},p=u==="svg"?new Tp(v):new qu(v),g=this.get("group"),y=g.clone(),m=rr(y.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var b=(i.maxX+i.minX)/2,w=(i.maxY+i.minY)/2;m=V2(m,[["t",-b,-w],["t",s/2+c[3],o/2+c[0]]]),y.resetMatrix(),y.setMatrix(m),p.add(y);var x=p.get("el"),E="";n||(n="image/png"),setTimeout(function(){if(u==="svg"){var _=x.cloneNode(!0),S=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),A=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",S);A.replaceChild(_,A.documentElement);var M=new XMLSerializer().serializeToString(A);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(M))}else{var C=void 0,I=x.getContext("2d"),k=void 0;if(l){var O=typeof window<"u"?window.devicePixelRatio:1;try{C=I.getImageData(0,0,d*O,h*O),k=I.globalCompositeOperation,I.globalCompositeOperation="destination-over",I.fillStyle=l,I.fillRect(0,0,d,h)}catch{console.error("Download image failed. Out of memory at ImageData creation")}}E=x.toDataURL(n),l&&(I.clearRect(0,0,d,h),I.putImageData(C,0,0),I.globalCompositeOperation=k)}r&&r(E)},16)},e.prototype.downloadFullImage=function(r,n,a){var i=this,o=this.get("group").getCanvasBBox(),s=o.height,u=o.width,f=this.get("renderer"),l=cg('
'),c=document.querySelector(".g6-graph-watermarker"),h=a?a.backgroundColor:void 0,d=a?a.padding:void 0;d?Ot(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=s+d[0]+d[2],p=u+d[1]+d[3];if(c){var g=this.get("graphWaterMarker").cfg||{},y=g.width,m=g.height;v=Math.ceil(v/m)*m,p=Math.ceil(p/y)*y}var b={container:l,height:v,width:p},w=f==="svg"?new Tp(b):new qu(b),x=this.get("group"),E=wX(x),_=rr(E.getMatrix());_||(_=[1,0,0,0,1,0,0,0,1]);var S=(o.maxX+o.minX)/2,A=(o.maxY+o.minY)/2;_=V2(_,[["t",-S,-A],["t",u/2+d[3],s/2+d[0]]]),E.resetMatrix(),E.setMatrix(_),w.add(E);var M=w.get("el");n||(n="image/png"),this.asyncToDataUrl(n,h,function(C){var I=document.createElement("a"),k=(r||"graph")+(f==="svg"?".svg":".".concat(n.split("/")[1]));i.dataURLToImage(C,f,I,k);var O=document.createEvent("MouseEvents");O.initEvent("click",!1,!1),I.dispatchEvent(O)},p,v,M)},e.prototype.downloadImage=function(r,n,a){var i=this,o=this;o.stopAnimate();var s=o.get("canvas"),u=s.getRenderer();n||(n="image/png");var f=(r||"graph")+(u==="svg"?".svg":".".concat(n.split("/")[1])),l=document.createElement("a");o.asyncToDataUrl(n,a,function(c){i.dataURLToImage(c,u,l,f);var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),l.dispatchEvent(h)})},e.prototype.dataURLToImage=function(r,n,a,i){if(!r||r==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window<"u")if(window.Blob&&window.URL&&n!=="svg"){var o=r.split(","),s="";if(o&&o.length>0){var u=o[0].match(/:(.*?);/);u&&u.length>=2&&(s=u[1])}for(var f=atob(o[1]),l=f.length,c=new Uint8Array(l);l--;)c[l]=f.charCodeAt(l);var h=new Blob([c],{type:s});window.navigator.msSaveBlob?window.navigator.msSaveBlob(h,i):a.addEventListener("click",function(){a.download=i,a.href=window.URL.createObjectURL(h)})}else a.addEventListener("click",function(){a.download=i,a.href=r})},e.prototype.addPlugin=function(r){var n=this;r.destroyed||(n.get("plugins").push(r),r.initPlugin(n))},e.prototype.removePlugin=function(r){var n=this.get("plugins"),a=n.indexOf(r);a>=0&&(r.destroyPlugin(),n.splice(a,1))},e.prototype.setImageWaterMarker=function(r,n){r===void 0&&(r=Mf.waterMarkerImage);var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},Mf.imageWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.image;if(!r){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new qu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.x,y=l.y;v.rotate(-p*Math.PI/180);var m=new Image;m.crossOrigin="anonymous",m.src=r,m.onload=function(){if(v.drawImage(m,g,y,l.width,l.height),v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var b=document.querySelector(".g6-graph-watermarker");b||(b=document.createElement("div"),b.className="g6-graph-watermarker"),b.className="g6-graph-watermarker",i.destroyed||(b.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),a.appendChild(b))}}},e.prototype.setTextWaterMarker=function(r,n){var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},Mf.textWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.text;if(!(r!=null&&r.length)){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new qu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.fill,y=l.fontFamily,m=l.fontSize,b=l.baseline,w=l.x,x=l.y,E=l.lineHeight;v.rotate(-p*Math.PI/180),v.font="".concat(m,"px ").concat(y),v.fillStyle=g,v.textBaseline=b;for(var _=Ye(r)?[r]:r,S=_.length-1;S>=0;S--)v.fillText(_[S],w,x+S*E);if(v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var A=document.querySelector(".g6-graph-watermarker");A||(A=document.createElement("div"),A.className="g6-graph-watermarker"),A.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),a.appendChild(A)}},e.prototype.destroy=function(){var r,n,a,i;_e(this.get("plugins"),function(l){l.destroyPlugin()});var o=this.get("tooltips");if(o)for(var s=0;s0)for(var f=s.length-1;f>=0;f--){var l=s[f].getModel();e.indexOfChild(r.children||[],l.id)===-1&&(i.innerRemoveChild(l.id,{x:r.x,y:r.y},a),s.splice(f,1))}}var c,h;o.get("originAttrs")&&(c=o.get("originAttrs").x,h=o.get("originAttrs").y);var d=o.getModel();a&&o.set("originAttrs",{x:d.x,y:d.y}),o.set("model",Object.assign(d,r.data)),(c!==r.x||h!==r.y)&&o.updatePosition({x:r.x,y:r.y})},e.prototype.innerRemoveChild=function(r,n,a){var i=this,o=i.findById(r);if(o)if(_e(o.get("children"),function(u){i.innerRemoveChild(u.getModel().id,n,a)}),a){var s=o.getModel();o.set("to",n),o.set("originAttrs",{x:s.x,y:s.y}),i.get("removeList").push(o)}else i.removeItem(o,!1)},e.prototype.changeData=function(r,n){n===void 0&&(n=!0);var a=this;this.getNodes().map(function(i){return a.clearItemStates(i)}),this.getEdges().map(function(i){return a.clearItemStates(i)}),n&&this.get("enabledStack")&&this.pushStack("changedata",{before:a.get("originData"),after:r||a.get("data")}),r?(a.data(r),a.render(!1)):a.layout(this.get("fitView"))},e.prototype.changeLayout=function(r){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var n=this;n.updateLayout(r)},e.prototype.updateLayout=function(r,n,a,i){i===void 0&&(i=!0);var o=this;if(!r){console.warn("layout cannot be null");return}if(i&&this.get("enabledStack")&&this.pushStack("layout",{before:o.get("layout"),after:r}),o.set("layout",r),o.set("layoutMethod",o.getLayout()),o.layout(),n){var s=a;s||(n==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var u=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*u[0]+u[6],s.y=s.y*u[0]+u[7];var f=this.getGroup().getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY,v={x:(l+c)/2,y:(h+d)/2};n==="begin"&&(v.x=l,v.y=h),this.translate(s.x-v.x,s.y-v.y)}},e.prototype.refreshLayout=function(r){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var n=this;n.layout(r)},e.prototype.layout=function(r){var n=this,a=this,i=a.get("data"),o=a.get("layoutMethod"),s=a.get("layout"),u=i;if(s!=null&&s.excludeInvisibles){i=rr(a.get("data"));var f={};y0(i,function(h){var d=h.children;if(!(d!=null&&d.length))return!0;for(var v=d.length-1;v>=0;v--){var p=n.findById(d[v].id),g=p?!p.isVisible():d[v].visible===!1;g&&(f[h.id]=f[h.id]||[],f[h.id].push({idx:v,child:d.splice(v,1)[0]}))}}),u=o?o(i,a.get("layout")):i,y0(u,function(h){var d=f[h.id];if(d!=null&&d.length)for(var v=d.length-1;v>=0;v--){var p=d[v],g=p.idx,y=p.child;h.children.splice(g,0,y)}})}else u=o?o(i,a.get("layout")):i;var l=a.get("animate");if(a.emit("beforerefreshlayout",{data:i,layoutData:u}),a.emit("beforelayout"),a.innerUpdateChild(u,void 0,l),r){var c=a.get("viewController");c.fitView()}l?a.layoutAnimate(u):(a.refresh(),a.paint()),a.emit("afterrefreshlayout",{data:i,layoutData:u}),a.emit("afterlayout")},e.prototype.addChild=function(r,n,a){a===void 0&&(a=!0);var i=this;i.emit("beforeaddchild",{model:r,parent:n}),Ye(n)||(n=n.get("id"));var o=i.findDataById(n);if(o){o.children||(o.children=[]),o.children.push(r);var s=i.findById(n);s.refresh(),i.changeData(void 0,a)}},e.prototype.updateChildren=function(r,n,a){a===void 0&&(a=!0);var i=this,o=i.findById(n);if(!n||!o){console.warn("Update children failed! There is no node with id '".concat(n,"'"));return}var s=i.findDataById(n);s.children=r,o.refresh(),i.changeData(void 0,a)},e.prototype.updateChild=function(r,n,a){a===void 0&&(a=!0);var i=this;if(!n||!i.findById(n)){i.changeData(r,a);return}var o=i.findDataById(n),s=i.findById(r.id);if(o.children||(o.children=[]),!s)o.children.push(r);else{var u=e.indexOfChild(o.children,r.id);u>-1&&(o.children[u]=r)}var f=i.findById(n);f==null||f.refresh(),i.changeData(void 0,a)},e.prototype.removeChild=function(r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r),o;if(i?o=i==null?void 0:i.get("parent"):o=a.getNodes().find(function(c){var h=c.getModel().children||[];return!!h.find(function(d){return d.id===r})}),o&&!o.destroyed){var s=o.get("id"),u=a.findDataById(s),f=u&&u.children||[],l=e.indexOfChild(f,r);f.splice(l,1),o.refresh()}a.changeData(void 0,n)},e.prototype.findDataById=function(r,n){var a=this;if(n||(n=a.get("data")),r===n.id)return n;var i=null;return _e(n.children||[],function(o){if(o.id===r)return i=o,!1;if(i=a.findDataById(r,o),i)return!1}),i},e.prototype.layoutAnimate=function(r,n){var a=this,i=this.get("animateCfg");a.emit("beforeanimate",{data:r}),a.getEdges().forEach(function(o){var s=o.get("model");s.sourceAnchor||(s.sourceAnchor=o.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(o){y0(r,function(s){var u=a.findById(s.id);if(u){var f=u.get("originAttrs"),l=u.get("model");if(f||(f={x:l.x,y:l.y},u.set("originAttrs",f)),n){var c=n(u,o,f,r);u.set("model",Object.assign(l,c))}else l.x=f.x+(s.x-f.x)*o,l.y=f.y+(s.y-f.y)*o}return!0}),_e(a.get("removeList"),function(s){var u=s.getModel(),f=s.get("originAttrs"),l=s.get("to");u.x=f.x+(l.x-f.x)*o,u.y=f.y+(l.y-f.y)*o}),a.refreshPositions()},{duration:i.duration,easing:i.ease,callback:function(){_e(a.getNodes(),function(s){s.set("originAttrs",null)}),_e(a.get("removeList"),function(s){a.removeItem(s,!1)}),a.set("removeList",[]),i.callback&&i.callback(),a.emit("afteranimate",{data:r})},delay:i.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(r){r===void 0&&(r=!0);var n=this,a=n.get("data");if(!a||!gn(a)||!Object.keys(a).length)throw new Error("data must be defined first");n.clear(),r&&this.get("enabledStack")&&this.clearStack(),n.emit("beforerender"),n.layout(this.get("fitView")),n.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(r){t.prototype.data.call(this,r),this.set("originData",nfe(r))},e})(AO);ro("circle",{options:{size:Qe.defaultNode.size,style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=_r({},a,e.icon),s="".concat(this.type,"-keyShape"),u=r.addShape("circle",{attrs:i,className:s,name:s,draggable:!0});r.shapeMap[s]=u;var f=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");h?r.shapeMap[d]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):r.shapeMap[d]=r.addShape("image",{attrs:P({x:-f/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(e,r),u},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints;if(n){var a=n||{},i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2;if(o){var v="link-point-left";r.shapeMap[v]=r.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:v,name:v,isAnchorPoint:!0})}if(s){var p="link-point-right";r.shapeMap[p]=r.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(i){var g="link-point-top";r.shapeMap[g]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-d,r:f/2||l||5}),className:g,name:g,isAnchorPoint:!0})}if(u){var y="link-point-bottom";r.shapeMap[y]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:d,r:f/2||l||5}),className:y,name:y,isAnchorPoint:!0})}}},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=_r({},r,n),i=this.getSize(e),o=i[0]/2,s=P({x:0,y:0,r:o},a);return s},update:function(e,r,n){var a=r.getContainer(),i=this.getSize(e),o=P({},e.style);e.style.stroke===void 0&&e.color&&(o.stroke=e.color),e.style.r===void 0&&!isNaN(i[0])&&(o.r=i[0]/2),this.updateShape(e,r,o,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("rect",{options:{size:[100,30],style:{radius:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:P({},Qe.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(e,r){var n=this.getShapeStyle(e),a=r.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return r.shapeMap["".concat(this.type,"-keyShape")]=a,this.drawLinkPoints(e,r),a},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s=r.get("keyShape");e.size||(o[0]=s.attr("width")||i.width,o[1]=s.attr("height")||i.height);var u={stroke:e.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},f=Et({},i,s.attr(),u);f=Et(f,e.style),this.updateShape(e,r,f,!1,n),this.updateLinkPoints(e,a)}},"single-node");ro("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});r.shapeMap["ellipse-keyShape"]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2,v=h[1]/2;o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=i[0]/2,s=i[1]/2,u=P({x:0,y:0,rx:o,ry:s},a);return u},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s={stroke:e.color,rx:o[0]/2,ry:o[1]/2},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("diamond",{options:{size:[80,80],style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(e){var r=this.getSize(e),n=r[0],a=r[1],i=[["M",0,-a/2],["L",n/2,0],["L",0,a/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("triangle",{options:{size:40,direction:"up",style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.icon,i=a===void 0?{}:a,o=n.direction,s=this.getShapeStyle(e),u=e.direction||o,f=r.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=f;var l=i.width,c=i.height,h=i.show,d=i.offset,v=i.text;if(h)if(v)r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,g=-c/2;(u==="up"||u==="down")&&(g+=d),(u==="left"||u==="right")&&(p+=d),r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:p,y:g},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(e,r),f},drawLinkPoints:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.linkPoints,i=a===void 0?{}:a,o=n.direction,s=e.direction||o,u=i.top,f=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,v=Kr(i,["top","left","right","bottom","size","r"]),p=this.getSize(e),g=p[0];if(f){var y=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?y=[-b,m]:s==="down"?y=[-b,-m]:s==="left"&&(y=[-b,b-m]),y&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},v),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var w=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?w=[b,m]:s==="down"?w=[b,-m]:s==="right"&&(w=[b,b-m]),w&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},v),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var x=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?x=[b-m,-m]:s==="left"?x=[b,-m]:s==="right"&&(x=[-b,-m]),x&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},v),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var E=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="down"?E=[-b+m,m]:s==="left"?E=[b,m]:s==="right"&&(E=[-b,m]),E&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},v),{x:E[0],y:E[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(e){var r=(this.mergeStyle||this.getOptions(e)).direction,n=e.direction||r,a=this.getSize(e),i=a[0],o=i*Math.sin(1/3*Math.PI),s=i*Math.sin(1/3*Math.PI),u=[["M",-s,o],["L",0,-o],["L",s,o],["Z"]];return n==="down"?u=[["M",-s,-o],["L",s,-o],["L",0,o],["Z"]]:n==="left"?u=[["M",-s,s-o],["L",s,-s],["L",s,s],["Z"]]:n==="right"&&(u=[["M",s,s-o],["L",-s,s],["L",-s,-s],["Z"]]),u},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,r){var n=this.getOptions({}),a=n.linkPoints,i=n.direction,o=e.direction||i,s=r.shapeMap["link-point-left"]||r.find(function(L){return L.get("className")==="link-point-left"}),u=r.shapeMap["link-point-right"]||r.find(function(L){return L.get("className")==="link-point-right"}),f=r.shapeMap["link-point-top"]||r.find(function(L){return L.get("className")==="link-point-top"}),l=r.shapeMap["link-point-bottom"]||r.find(function(L){return L.get("className")==="link-point-bottom"}),c=a,h=s||u||f||l;h&&(c=h.attr());var d=Et({},c,e.linkPoints),v=d.fill,p=d.stroke,g=d.lineWidth,y=d.size/2;y||(y=d.r);var m=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},b=m.left,w=m.right,x=m.top,E=m.bottom,_=this.getSize(e),S=_[0],A={r:y,fill:v,stroke:p,lineWidth:g},M=null,C=S*Math.sin(1/3*Math.PI),I=S*Math.sin(1/3*Math.PI);o==="up"?M=[-I,C]:o==="down"?M=[-I,-C]:o==="left"&&(M=[-I,I-C]),M&&(s?!b&&b!==void 0?(s.remove(),delete r.shapeMap["link-point-left"]):s.attr(P(P({},A),{x:M[0],y:M[1]})):b&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;o==="up"?k=[I,C]:o==="down"?k=[I,-C]:o==="right"&&(k=[I,I-C]),k&&(u?!w&&w!==void 0?(u.remove(),delete r.shapeMap["link-point-right"]):u.attr(P(P({},A),{x:k[0],y:k[1]})):w&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var O=null;o==="up"?O=[I-C,-C]:o==="left"?O=[I,-C]:o==="right"&&(O=[-I,-C]),O&&(f?!x&&x!==void 0?(f.remove(),delete r.shapeMap["link-point-top"]):f.attr(P(P({},A),{x:O[0],y:O[1]})):x&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},A),{x:O[0],y:O[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var B=null;o==="down"?B=[-I+C,C]:o==="left"?B=[I,C]:o==="right"&&(B=[-I,C]),B&&(l?!E&&E!==void 0?(l.remove(),delete r.shapeMap["link-point-bottom"]):l.attr(P(P({},A),{x:B[0],y:B[1]})):E&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},A),{x:B[0],y:B[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node");ro("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Qe.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Qe.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Qe.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).preRect,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=this.getSize(e),s=o[0],u=o[1],f=r.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=f;var l=a.show,c=Kr(a,["show"]);return l&&(r.shapeMap["pre-rect"]=r.addShape("rect",{attrs:P({x:-s/2,y:-u/2,height:u},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(e,r),this.drawStateIcon(e,r),this.drawLinkPoints(e,r),f},drawLogoIcon:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).logoIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?r.shapeMap["rect-logo-icon"]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):r.shapeMap["rect-logo-icon"]=r.addShape("image",{attrs:P(P({},d),{x:f||-o/2+s+c,y:l||-u/2,width:s,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).stateIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?r.shapeMap["rect-state-icon"]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):r.shapeMap["rect-state-icon"]=r.addShape("image",{attrs:P(P({},d),{x:f||o/2-s+c,y:l||-u/2,width:s,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(e,r){var n=this.getOptions(e),a=n.labelCfg,i=a===void 0?{}:a,o=n.logoIcon,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=null,d=s.show,v=s.width,p=-c/2+i.offset;d&&(p=-c/2+v+i.offset);var g=i.style,y=f.style,m=f.paddingTop;return Ye(e.description)?(h=r.addShape("text",{attrs:P(P({},g),{x:p,y:-5,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),r.shapeMap["text-shape"]=h,r.shapeMap["rect-description"]=r.addShape("text",{attrs:P(P({},y),{x:p,y:17+(m||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(h=r.addShape("text",{attrs:P(P({},g),{x:p,y:7,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),r.shapeMap["text-shape"]=h),h},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.style,i=a===void 0?{}:a,o=n.labelCfg,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=l[1],d=r.get("keyShape");d.attr(P(P({},i),{x:-c/2,y:-h/2,width:c,height:h}));var v=r.getContainer(),p=v.shapeMap["rect-logo-icon"]||v.find(function(qe){return qe.get("className")==="rect-logo-icon"}),g=p?p.attr():{},y=Et({},g,e.logoIcon),m=y.width;m===void 0&&(m=this.options.logoIcon.width);var b=e.logoIcon?e.logoIcon.show:void 0,w=s.offset,x=-c/2+m+w;!b&&b!==void 0&&(x=-c/2+w);var E=v.shapeMap["node-label"]||v.find(function(qe){return qe.get("className")==="node-label"}),_=v.shapeMap["rect-description"]||v.find(function(qe){return qe.get("className")==="rect-description"});if(e.label)if(!E)v.shapeMap["node-label"]=v.addShape("text",{attrs:P(P({},s.style),{x,y:e.description?-5:7,text:e.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var S=e.labelCfg?e.labelCfg.style:{},A=Et({},E.attr(),S);e.label&&(A.text=e.label),A.x=x,Ye(e.description)&&(A.y=-5),_&&(_.resetMatrix(),_.attr({x})),E.resetMatrix(),E.attr(A)}if(Ye(e.description)){var M=f.paddingTop;if(!_)v.shapeMap["rect-description"]=v.addShape("text",{attrs:P(P({},f.style),{x,y:17+(M||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var S=e.descriptionCfg?e.descriptionCfg.style:{},C=Et({},_.attr(),S);Ye(e.description)&&(C.text=e.description),C.x=x,_.resetMatrix(),_.attr(P(P({},C),{y:17+(M||0)}))}}var I=v.shapeMap["pre-rect"]||v.find(function(qe){return qe.get("className")==="pre-rect"});if(I&&!I.destroyed){var k=Et({},I.attr(),e.preRect);I.attr(P(P({},k),{x:-c/2,y:-h/2,height:h}))}if(p&&!p.destroyed)if(!b&&b!==void 0)p.remove(),delete v.shapeMap["pre-rect"];else{var O=y.width,B=y.height,L=y.x,z=y.y,X=y.offset,R=Kr(y,["width","height","x","y","offset"]);p.attr(P(P({},R),{x:L||-c/2+O+X,y:z||-B/2,width:O,height:B}))}else b&&this.drawLogoIcon(e,v);var V=v.shapeMap["rect-state-icon"]||v.find(function(qe){return qe.get("className")==="rect-state-icon"}),he=V?V.attr():{},ce=Et({},he,e.stateIcon);if(V){!ce.show&&ce.show!==void 0&&(V.remove(),delete v.shapeMap["rect-state-icon"]);var le=ce.width,B=ce.height,L=ce.x,z=ce.y,ie=ce.offset,Ie=Kr(ce,["width","height","x","y","offset"]);V.attr(P(P({},Ie),{x:L||c/2-le+ie,y:z||-B/2,width:le,height:B}))}else ce.show&&this.drawStateIcon(e,v);this.updateLinkPoints(e,v)},getOptions:function(e,r){return r==="move"?e:_r({},this.options,this.getCustomConfig(e)||{},e)}},"single-node");ro("star",{options:{size:60,style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.leftBottom,f=a.rightBottom,l=a.size,c=a.r,h=Kr(a,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(e),v=d[0];if(s){var p=Math.cos(.1*Math.PI)*v,g=Math.sin((18+72*0)/180*Math.PI)*v;r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){var p=Math.cos(.5*Math.PI)*v,g=Math.sin((18+72*1)/180*Math.PI)*v;r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){var p=Math.cos(.9*Math.PI)*v,g=Math.sin((18+72*2)/180*Math.PI)*v;r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(u){var p=Math.cos(1.3*Math.PI)*v,g=Math.sin((18+72*3)/180*Math.PI)*v;r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){var p=Math.cos(1.7*Math.PI)*v,g=Math.sin((18+72*4)/180*Math.PI)*v;r.shapeMap["link-point-right-bottom"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(e){var r=this.getSize(e),n=r[0],a=n*3/8,i=e.innerR||a;return Za.getStarPath(n,i)},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,r){var n=this.getOptions({}).linkPoints,a=r.shapeMap["link-point-left"]||r.find(function(C){return C.get("className")==="link-point-left"}),i=r.shapeMap["link-point-right"]||r.find(function(C){return C.get("className")==="link-point-right"}),o=r.shapeMap["link-point-top"]||r.find(function(C){return C.get("className")==="link-point-top"}),s=r.shapeMap["link-point-left-bottom"]||r.find(function(C){return C.get("className")==="link-point-left-bottom"}),u=r.shapeMap["link-point-left-bottom"]||r.find(function(C){return C.get("className")==="link-point-right-bottom"}),f=n,l=a||i||o||s||u;l&&(f=l.attr());var c=Et({},f,e.linkPoints),h=c.fill,d=c.stroke,v=c.lineWidth,p=c.size/2;p||(p=c.r);var g=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=g.left,m=g.right,b=g.top,w=g.leftBottom,x=g.rightBottom,E=this.getSize(e),_=E[0],S={r:p,fill:h,stroke:d,lineWidth:v},A=Math.cos((18+72*0)/180*Math.PI)*_,M=Math.sin((18+72*0)/180*Math.PI)*_;i?!m&&m!==void 0?(i.remove(),delete r.shapeMap["link-point-right"]):i.attr(P(P({},S),{x:A,y:-M})):m&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos((18+72*1)/180*Math.PI)*_,M=Math.sin((18+72*1)/180*Math.PI)*_,o?!b&&b!==void 0?(o.remove(),delete r.shapeMap["link-point-top"]):o.attr(P(P({},S),{x:A,y:-M})):b&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos((18+72*2)/180*Math.PI)*_,M=Math.sin((18+72*2)/180*Math.PI)*_,a?!y&&y!==void 0?(a.remove(),delete r.shapeMap["link-point-left"]):a.attr(P(P({},S),{x:A,y:-M})):y&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos((18+72*3)/180*Math.PI)*_,M=Math.sin((18+72*3)/180*Math.PI)*_,s?!w&&w!==void 0?(s.remove(),delete r.shapeMap["link-point-left-bottom"]):s.attr(P(P({},S),{x:A,y:-M})):w&&(r.shapeMap["link-point-left-bottom"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos((18+72*4)/180*Math.PI)*_,M=Math.sin((18+72*4)/180*Math.PI)*_,u?!x&&x!==void 0?(u.remove(),delete r.shapeMap["link-point-right-bottom"]):u.attr(P(P({},S),{x:A,y:-M})):x&&(r.shapeMap["link-point-right-bottom"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Y2=Za.defaultSubjectColors,If="fan-shape-",TO=function(e,r){var n=0,a=[];return Object.keys(e).forEach(function(i){var o=+e[i];isNaN(o)||(a.push({key:i,value:o,color:r[i]}),n+=o)}),{totalValue:n,configs:a}},IO=function(e){var r=e.attr("r"),n=.6*r,a=(r+n)/2,i=r-n;return{lineWidth:i,arcR:a}},Zg=function(e,r){var n=r.arcR,a=r.arcBegin,i=r.beginAngle,o=r.config,s=r.fanIndex,u=r.lineWidth,f=r.totalValue,l=r.drawWhole,c=l===void 0?!1:l,h=r.updateShape,d=h===void 0?void 0:h,v=o.value/f;if(v<.001)return{beginAngle:i,arcBegin:a,shape:void 0,shouldEnd:!1};var p,g,y;if(c||v>.999)p=[n,1e-4],y=1;else{var m=v*Math.PI*2;g=i+m,p=[n*Math.cos(g),-n*Math.sin(g)],y=m>Math.PI?1:0}var b={path:[["M",a[0],a[1]],["A",n,n,0,y,0,p[0],p[1]]],stroke:o.color||(d==null?void 0:d.attr("stroke"))||Y2[s%Y2.length],lineWidth:u};return d?d.attr(b):e.shapeMap["".concat(If).concat(s)]=e.addShape("path",{attrs:b,name:"".concat(If).concat(s),draggable:!0}),{beginAngle:g,arcBegin:p,shape:e.shapeMap["".concat(If).concat(s)],shouldEnd:c||v>.999}},ife=function(e,r,n){var a=e.donutAttrs,i=a===void 0?{}:a,o=e.donutColorMap,s=o===void 0?{}:o,u=Object.keys(i).length;if(i&&u>1){var f=TO(i,s),l=f.configs,c=f.totalValue;if(c){var h=IO(n),d=h.lineWidth,v=h.arcR,p=[v,0],g=0;if(u===1){Zg(r,{arcR:v,arcBegin:p,beginAngle:g,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});return}for(var y=0;y=0;i--){var o=e[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,r.push(o))}return r},kO=function(e){return v1(e)},vd=function(e,r){return e.width||e.height?{centerX:e.centerX,centerY:e.centerY,minX:e.minX-r,minY:e.minY-r,maxX:e.maxX+r,maxY:e.maxY+r,height:e.height+2*r,width:e.width+2*r}:e},ufe=function(e,r){var n=Math.abs(e.x-r.centerX),a=Math.abs(e.y-r.centerY);return n===0&&a===0?0:n/r.width>a/r.height},Kg=function(e,r,n){var a=ufe(r,e);if(a===0){var i=e.centerX,o=e.centerY;return n.yr.x?i=e.maxX:n.xe.centerX?e.maxX:e.minX,y:r.y}:{x:r.x,y:r.y>e.centerY?e.maxY:e.minY}},q2=function(e,r){var n=Math.min(e.minX,r.minX),a=Math.min(e.minY,r.minY),i=Math.max(e.maxX,r.maxX),o=Math.max(e.maxY,r.maxY);return{centerX:(n+i)/2,centerY:(a+o)/2,minX:n,minY:a,maxX:i,maxY:o,height:o-a,width:i-n}},Qg=function(e){return[{x:e.minX,y:e.minY},{x:e.maxX,y:e.minY},{x:e.maxX,y:e.maxY},{x:e.minX,y:e.maxY}]},Hc=function(e,r){var n=e.x,a=e.y;return nr.maxX||ar.maxY},ffe=function(e,r){return re.maxX?[]:[{x:r,y:e.minY},{x:r,y:e.maxY}]},lfe=function(e,r){return re.maxY?[]:[{x:e.minX,y:r},{x:e.maxX,y:r}]},cfe=function(e,r){return ffe(e,r.x).concat(lfe(e,r.y))},Kf=function(e,r){return Math.abs(e.x-r.x)+Math.abs(e.y-r.y)},hfe=function(e,r){var n=-2,a=0;return r.forEach(function(i){i&&(e.x===i.x&&(a+=n),e.y===i.y&&(a+=n))}),a},H2=function(e,r,n,a,i){return Kf(e,r)+Kf(e,n)+hfe(e,[r,n,a,i])},NO=function(e,r,n,a,i){i===void 0&&(i=0),e.unshift(r[a]),n[a]&&n[a]!==a&&i<=100&&NO(e,r,n,n[a],i+1)},Zc=function(e,r,n,a){var i=n.x-e.x,o=n.y-e.y,s=a.x-e.x,u=a.y-e.y,f=n.x-r.x,l=n.y-r.y,c=a.x-r.x,h=a.y-r.y,d=i*u-o*s,v=f*h-l*c,p=i*l-o*f,g=s*h-u*c;return d*v<=0&&p*g<=0},Jg=function(e,r,n){if(n.width||n.height){var a=Qg(n),i=a[0],o=a[1],s=a[2],u=a[3];return Zc(e,r,i,o)||Zc(e,r,i,u)||Zc(e,r,o,s)||Zc(e,r,s,u)}return!1},dfe=function(e,r,n,a){var i=[];return e.forEach(function(o){if(o!==r&&(o.x===r.x||o.y===r.y)){if(Jg(o,r,n)||Jg(o,r,a))return;i.push(o)}}),v1(i)},OO=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(e,r){for(var n=[0,r-1];n[1]-n[0]>1;){var a=Math.floor((n[0]+n[1])/2);if(this.arr[a].value>e.value)n[1]=a;else if(this.arr[a].value=0;r--)this.map[this.arr[r].id]?e=this.arr[r].id:this.arr.splice(r,1);return e},t.prototype._findFirstId=function(){for(;this.arr.length;){var e=this.arr.shift();if(this.map[e.id])return e.id}},t.prototype.minId=function(e){return e?this._clearAndGetMinId():this._findFirstId()},t}(),vfe=function(e,r,n,a,i,o,s){var u,f=[],l=(u={},u[r.id]=r,u),c={},h={},d={};h[r.id]=0,d[r.id]=H2(r,n,r);var v=new OO;v.add({id:r.id,value:d[r.id]});var p={};e.forEach(function(x){p[x.id]=x});for(var g;Object.keys(l).length;){var y=v.minId(!1);if(y)g=l[y];else break;if(g===n){var m=[];return NO(m,p,c,n.id),m}delete l[g.id],v.remove(g.id),f.push(g);var b=dfe(e,g,a,i),w=function(E){E.forEach(function(_){if(f.indexOf(_)===-1){var S=_.id;l[S]||(l[S]=_);var A=d[g.id]+Kf(g,_);if(h[S]&&A>=h[S]){v.add({id:S,value:d[S]});return}c[S]=g.id,h[S]=A,d[S]=h[S]+H2(_,n,r,o,s),v.add({id:S,value:d[S]})}})};w(b)}return[r,n]},pfe=function(e,r,n){return!(e.x===r.x&&r.x===n.x||e.y===r.y&&r.y===n.y)},gfe=function(e,r,n,a){var i=Kf(e,r),o=Kf(n,r);i=0;o--){var s=e[o];if(s.x===n.x?a.push(s):(a=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),a.length>2){var u=e.indexOf(a[1]);u>-1&&e.splice(u,1);continue}if(i.length>2){var u=e.indexOf(i[1]);u>-1&&e.splice(u,1)}}return e},mfe=function(e,r){return Math.abs(e.x-r.x)+Math.abs(e.y-r.y)},bfe=function(e,r,n,a,i){return kO(LO(e,r,n,a,i.offset))},wfe={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:mfe,fallbackRoute:bfe},vi=function(e,r){var n=Math.round(Math.abs(e/r)),a=e<0?-1:1;return n<0?0:a*n},xfe=function(e,r,n){var a={};return e.forEach(function(i){if(i)for(var o=vd(i.getBBox(),n),s=vi(o.minX,r);s<=vi(o.maxX,r);s+=1)for(var u=vi(o.minY,r);u<=vi(o.maxY,r);u+=1)a["".concat(s,"|||").concat(u)]=!0}),a},m0=function(e,r){var n=r.x-e.x,a=r.y-e.y;return n||a?Math.atan2(a,n):0},K2=function(e,r){var n=Math.abs(e-r);return n>Math.PI?2*Math.PI-n:n},Q2=function(e,r,n){for(var a=1/0,i=0,o=r.length;if.minX&&r.xf.minY&&r.y0&&E>0;){var B=b.minId((E+1)%30===0);if(B)_=v[B];else break;if(O["".concat(_.x,"|||").concat(_.y)])return Efe(_,g,l,r,e,c,u);delete v[_.id],b.remove(_.id),p[_.id]=!0;for(var w=0;wo.maxAllowedDirectionChange)&&!f[L])){v[L]||(v[L]=A);var z=s[I];M=o.distFunc(_,A)+(isNaN(z)?u:z),C=y[_.id]+M;var X=y[L];X&&C>=X||(g[L]=_,y[L]=C,m[L]=C+Q2(A,d,o.distFunc),b.add({id:L,value:m[L]}))}}E-=1}return o.fallbackRoute(e,r,n,a,o)};B8("polyline",{options:{color:Qe.defaultEdge.color,size:Qe.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Qe.defaultEdge.style.stroke,lineAppendWidth:Qe.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Qe.edgeLabel.style.fill,fontSize:Qe.edgeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:P({},Qe.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(e,r){var n=this.getShapeStyle(e);n.radius===0&&delete n.radius;var a=r.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return r.shapeMap["edge-shape"]=a,a},getShapeStyle:function(e){var r=this.options.style,n={stroke:e.color},a=Et({},r,n,e.style);e=this.getPathPoints(e),this.radius=a.radius,this.offset=a.offset;var i=e.startPoint,o=e.endPoint,s=this.getControlPoints(e),u=[i];s&&(u=u.concat(s)),u.push(o);var f=e.sourceNode,l=e.targetNode,c=a.radius,h=this.options.routeCfg,d=Et({},h,e.routeCfg);d.offset=a.offset;var v=this.getPath(u,f,l,c,d,!s);(bt(v)&&v.length<=1||Ye(v)&&v.indexOf("L")===-1)&&(v="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(v="M0 0, L0 0");var p=Et({},Qe.defaultEdge.style,a,{lineWidth:e.size,path:v});return p},updateShapeStyle:function(e,r){var n=r.getContainer();if(r.isVisible()){var a={stroke:e.color},i=n.shapeMap["edge-shape"]||n.find(function(w){return w.get("className")==="edge-shape"})||r.getKeyShape(),o=e.size;e=this.getPathPoints(e);var s=e.startPoint,u=e.endPoint,f=this.getControlPoints(e),l=[s];f&&(l=l.concat(f)),l.push(u);var c=i.attr(),h=Et({},a,c,e.style),d=e.sourceNode,v=e.targetNode,p=h.radius,g=this.options.routeCfg,y=Et({},g,e.routeCfg);y.offset=h.offset;var m=this.getPath(l,d,v,p,y,!f);(bt(m)&&m.length<=1||Ye(m)&&m.indexOf("L")===-1)&&(m="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(u.x)||isNaN(u.y))&&(m="M0 0, L0 0"),c.endArrow&&h.endArrow===!1&&(e.style.endArrow={path:""}),c.startArrow&&h.startArrow===!1&&(e.style.startArrow={path:""});var b=Et(a,i.attr(),{lineWidth:o,path:m},e.style);i&&i.attr(b)}},getPath:function(e,r,n,a,i,o){var s=i.offset,u=i.obstacles,f=i.simple;if(!s||e.length>2||o===!1){if(a)return Z2(e,a);var l=[];return _e(e,function(v,p){p===0?l.push(["M",v.x,v.y]):l.push(["L",v.x,v.y])}),l}f!==!1&&!(u!=null&&u.length)&&(f=!0);var c=f?LO(e[e.length-1],e[0],n,r,s):_fe(e[0],e[e.length-1],r,n,i);if(!c||!c.length)return"M0 0, L0 0";if(a){var h=Z2(c,a);return h}c=yfe(c);var d=Za.pointsToPolygon(c);return d}},"single-edge");var eS=so.cloneEvent,tS=so.isNaN,rS=Math.abs,Sfe=10,Mfe=["shift","ctrl","alt","control"];const Afe={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(e){var r=this.origin,n=+e.clientX,a=+e.clientY;if(!(tS(n)||tS(a))){var i=n-r.x,o=a-r.y;this.get("direction")==="x"?o=0:this.get("direction")==="y"&&(i=0),this.origin={x:n,y:a};var s=this.graph.get("width"),u=this.graph.get("height"),f=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l=s*l,c=u*c),(f.minX<=s+l&&f.minX+i>s+l||f.maxX+l>=0&&f.maxX+l+i<0)&&(i=0),(f.minY<=u+c&&f.minY+o>u+c||f.maxY+c>=0&&f.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(e){var r=this,n=e.originalEvent.touches,a=n[0],i=n[1];a&&i||(e.preventDefault(),this.mousedown=!0,r.onDragStart(e))},onMouseDown:function(e){this.mousedown=!0},onDragMove:function(e){this.mousedown&&(this.dragstart?this.onDrag(e):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var r=this,n=e.originalEvent;if(!(n&&e.name!=="touchstart"&&n.button!==0)&&!(e.name!=="touchstart"&&typeof window<"u"&&window.event&&!window.event.buttons&&!window.event.button)&&this.shouldBegin(e,this)&&!r.keydown&&this.allowDrag(e)){if(r.origin={x:e.clientX,y:e.clientY},r.dragging=!1,this.enableOptimize){for(var a=this.graph,i=a.getEdges(),o=0,s=i.length;ou)for(var d=a.getNodes(),v=0,p=d.length;v-1?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(e){var r,n,a=e.target,i=a&&a.isCanvas&&a.isCanvas();if(Qf(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(gn(this.allowDragOnItem)){var o=this.allowDragOnItem,s=o.node,u=o.edge,f=o.combo,l=(n=(r=e.item)===null||r===void 0?void 0:r.getType)===null||n===void 0?void 0:n.call(r);if(!s&&l==="node"||!u&&l==="edge"||!f&&l==="combo")return!1}return!0}},Cfe={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(e){if(!this.origin||!e||e.destroyed)return!1;var r=e.getType();return r==="combo"},onTouchStart:function(e){if(e.item){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},this.dragstart=!0,r.onDragStart(e)}},onTouchMove:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i){r.onDragEnd(e);return}e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.onDrag(e)},onMouseDown:function(e){this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},typeof window<"u"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(e){var r,n;if(((n=(r=e.item)===null||r===void 0?void 0:r.getType)===null||n===void 0?void 0:n.call(r))!=="node"){this.onDragEnd();return}this.mousedown&&(this.dragstart?this.onDrag(P(P({},e),this.mousedown)):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var r=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(P(P({},e),this.mousedown),this)){var n=this.mousedown,a=n.item,i=n.target;if(!(!a||a.destroyed||a.hasLocked())){var o=a.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(a),i){var s=i.get("isAnchorPoint");if(s)return}var u=this.graph;this.targets=[],this.targetCombo=null;var f=u.findAllByState("node",this.selectedState),l=a.get("id"),c=f.filter(function(d){var v=d.get("id");return l===v});if(c.length===0?this.targets.push(a):f.length>1?f.forEach(function(d){var v=d.hasLocked();v||r.targets.push(d)}):this.targets.push(a),this.graph.get("enabledStack")&&this.enableStack){var h=[];this.targets.forEach(function(d){var v=d.getModel(),p=v.x,g=v.y,y=v.id;h.push({x:p,y:g,id:y})}),this.set("beforeDragNodes",h)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(d){var v=d.getEdges();v.forEach(function(p){p.isVisible()&&(r.hidenEdge[p.getID()]=!0,p.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(e){var r=this;if(!(!this.mousedown||!this.origin)&&this.shouldUpdate(e,this))if(this.get("enableDelegate"))this.updateDelegate(e);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(a){r.update(a,e);var i=a.getModel().comboId;i&&(n[i]=r.graph.findById(i))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(e){var r=this,n;if(this.mousedown=!1,this.dragstart=!1,typeof window<"u"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(n=this.cachedCaptureItems)===null||n===void 0||n.forEach(function(o){var s=o.getContainer();s.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(o){var s=o.getEdges();s.forEach(function(u){r.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var a=this.graph;if(a.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(o){i.before.nodes.push(o)}),this.targets.forEach(function(o){var s=o.getModel(),u=s.x,f=s.y,l=s.id;i.after.nodes.push({x:u,y:f,id:l})}),a.pushStack("update",rr(i))}a.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(e){var r=e.item;if(this.currentShouldEnd=this.shouldEnd(e,r,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(r))){var n=this.graph;if(this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1),this.targetCombo=r,this.onlyChangeComboSize)n.updateCombos();else{var a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.comboId!==a.id&&n.updateComboTree(i,a.id)}),n.updateCombo(r)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(e){var r=this.graph;this.currentShouldEnd=this.shouldEnd(e,void 0,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(n){var a=n.getModel();a.comboId&&r.updateComboTree(n)}))},onDropNode:function(e){if(!(!this.targets||this.targets.length===0)){var r=this,n=e.item,a=r.graph,i=n.getModel().comboId,o=i?a.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var s=a.findById(i);r.comboActiveState&&a.setItemState(s,r.comboActiveState,!1),this.targets.map(function(u){var f=u.getModel();i!==f.comboId&&a.updateComboTree(u,i)}),a.updateCombo(s)}else this.targets.map(function(u){var f=u.getModel();f.comboId&&a.updateComboTree(u)});a.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(e){var r=e.item;if(this.validationCombo(r)){var n=this.graph;this.comboActiveState&&n.setItemState(r,this.comboActiveState,!0)}},onDragLeave:function(e){var r=e.item;if(this.validationCombo(r)){var n=this.graph;this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1)}},updatePositions:function(e,r){var n=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):r||this.targets.map(function(a){return n.update(a,e)}):this.targets.map(function(a){return n.update(a,e,r)}))},update:function(e,r,n){var a=this.origin,i=e.get("model"),o=e.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var s=r.x-a.x+this.point[o].x,u=r.y-a.y+this.point[o].y;n&&(s+=a.x-r.x,u+=a.y-r.y);var f={x:s,y:u};this.get("updateEdge")?this.graph.updateItem(e,f,!1):e.updatePosition(f)},debounceUpdate:oy(function(t){var e=t.targets,r=t.graph,n=t.point,a=t.origin,i=t.evt,o=t.updateEdge,s=t.onlyChangeComboSize,u=t.updateParentCombos;e.map(function(f){var l=f.get("model"),c=f.get("id");n[c]||(n[c]={x:l.x||0,y:l.y||0});var h=i.x-a.x+n[c].x,d=i.y-a.y+n[c].y,v={x:h,y:d};o?r.updateItem(f,v,!1):f.updatePosition(v)}),s&&u(r,e)},50,!0),updateDelegate:function(e){var r=this.graph;if(this.delegateRect){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:h,y:d})}else{var n=r.get("group"),a=_r({},Mf.delegateStyle,this.delegateStyle),i=this.calculationGroupPosition(e),o=i.x,s=i.y,u=i.width,f=i.height,l=i.minX,c=i.minY;this.originPoint={x:o,y:s,width:u,height:f,minX:l,minY:c},this.delegateRect=n.addShape("rect",{attrs:P({width:u,height:f,x:o,y:s},a),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(e){var r=this.targets;r.length===0&&r.push(e.item);for(var n=1/0,a=-1/0,i=1/0,o=-1/0,s=0;sa&&(a=h),d>o&&(o=d)}var v=Math.floor(n),p=Math.floor(i),g=Math.ceil(a)-Math.floor(n),y=Math.ceil(o)-Math.floor(i);return{x:v,y:p,width:g,height:y,minX:n,minY:i}},updateParentCombos:function(e,r){var n=e||this.graph,a=r||this.targets,i={};a==null||a.forEach(function(o){var s=o.getModel().comboId;s&&(i[s]=n.findById(s))}),Object.values(i).forEach(function(o){o&&n.updateCombo(o)})}};var Kc=null;const Tfe={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.setAllItemStates(e)},clearOnTouchStart:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.clearActiveState(e)},setAllItemStates:function(e){clearTimeout(this.timer),this.throttleSetAllItemStates(e,this)},clearActiveState:function(e){var r=this,n=this.shouldClearStatusOnSecond;n&&(Kc=null),this.timer=setTimeout(function(){r.throttleClearActiveState(e,r)},50)},throttleSetAllItemStates:Ch(function(t,e){var r=t.item,n=e.graph;if(!(!n||n.destroyed)&&(e.item=r,!!e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var a=e.shouldClearStatusOnSecond,i=r.getModel().id;if(Kc===i&&a){e.throttleClearActiveState(t,e),Kc=null;return}for(var o=e.activeState,s=e.inactiveState,u=n.getNodes(),f=n.getCombos(),l=n.getEdges(),c=n.get("vedges"),h=u.length,d=f.length,v=l.length,p=c.length,g=e.inactiveItems||{},y=e.activeItems||{},m=0;m-1||(this.trigger=iS,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(e){var r=e.item,n=this.brush,a=this.selectOnCombo,i=(r==null?void 0:r.getType())==="combo";i&&!a||!i&&r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:e.canvasX,y:e.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||this.updateBrush(e))},onMouseUp:function(e){this.graph,!(!this.brush&&!this.dragging)&&(this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(e),this.dragging=!1))},clearStates:function(){var e=this,r=e.graph,n=e.selectedState,a=r.findAllByState("node",n),i=r.findAllByState("edge",n),o=r.findAllByState("combo",n);a.forEach(function(s){return r.setItemState(s,n,!1)}),i.forEach(function(s){return r.setItemState(s,n,!1)}),o.forEach(function(s){return r.setItemState(s,n,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(e,r,n,a,i){var o=e.getBBox();return o.centerX>=r&&o.centerX<=n&&o.centerY>=a&&o.centerY<=i},getSelectedNodes:function(e){var r=this,n=this,a=n.graph,i=n.originPoint,o=n.shouldUpdate,s=n.isBBoxCenterInRect,u=this.selectedState,f={x:e.x,y:e.y},l=a.getPointByCanvas(i.x,i.y),c=Qc(f.x,l.x),h=nS(f.x,l.x),d=Qc(f.y,l.y),v=nS(f.y,l.y),p=[],g=[];a.getNodes().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",r)){p.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}});var y=[];this.includeEdges&&p.forEach(function(b){var w=b.getOutEdges();w.forEach(function(x){if(x.isVisible()){var E=x.getModel(),_=E.source,S=E.target;g.includes(_)&&g.includes(S)&&o(x,"select",r)&&(y.push(x),a.setItemState(x,r.selectedState,!0))}})});var m=[];this.includeCombos&&a.getCombos().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",r)){m.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}}),this.selectedEdges=y,this.selectedNodes=p,this.selectedCombos=m,this.onSelect&&this.onSelect(p,y,m),a.emit("nodeselectchange",{selectedItems:{nodes:p,edges:y,combos:m},select:!0})},createBrush:function(){var e=this,r=e.graph.get("canvas").addShape("rect",{attrs:e.brushStyle,capture:!1,name:"brush-shape"});return this.brush=r,this.delegate=r,r},updateBrush:function(e){var r=this.originPoint;this.brush.attr({width:aS(e.canvasX-r.x),height:aS(e.canvasY-r.y),x:Qc(e.canvasX,r.x),y:Qc(e.canvasY,r.y)})},onKeyDown:function(e){var r=e.key;if(r){var n=this.trigger.toLowerCase(),a=r.toLowerCase();a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var oS="shift",Nfe=["shift","ctrl","alt","control"];const Ofe={getDefaultCfg:function(){return{multiple:!0,trigger:oS,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var e=this;return Nfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=oS,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),e.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(e){var r=this,n=e.item;if(!(!n||n.destroyed)){var a=n.getType(),i=r.graph,o=r.keydown,s=r.multiple,u=r.shouldUpdate,f=r.shouldBegin;if(f(e,r)){if(!o||!s){var l=i.findAllByState("node",r.selectedState).concat(i.findAllByState("edge",r.selectedState)).concat(i.findAllByState("combo",r.selectedState));_e(l,function(p){p!==n&&i.setItemState(p,r.selectedState,!1)})}var c=function(){switch(a){case"node":return r.selectNode;case"edge":return r.selectEdge;case"combo":return r.selectCombo;default:return!1}}();if(!c){var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:h,edges:d,combos:v},select:!1});return}if(n.hasState(r.selectedState)){u(e,r)&&i.setItemState(n,r.selectedState,!1);var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!1})}else{u(e,r)&&i.setItemState(n,r.selectedState,!0);var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!0})}}}},onCanvasClick:function(e){var r=this,n=this,a=n.graph,i=n.shouldBegin;if(i(e,this)){var o=a.findAllByState("node",this.selectedState);_e(o,function(f){a.setItemState(f,r.selectedState,!1)});var s=a.findAllByState("edge",this.selectedState);_e(s,function(f){a.setItemState(f,r.selectedState,!1)});var u=a.findAllByState("combo",this.selectedState);_e(u,function(f){a.setItemState(f,r.selectedState,!1)}),a.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(e){var r=this,n=e.key;n&&(n.toLowerCase()===this.trigger.toLowerCase()||n.toLowerCase()==="control"?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){var e=this;e.keydown=!1}};var Lfe=eo,Jc=.05;const Dfe={getDefaultCfg:function(){return this.isFireFox=SO()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var e=this.fixSelectedItems;return e.fixState||(e.fixState="selected"),e.fixAll&&(e.fixLineWidth=!0,e.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(e){var r=e.originalEvent.touches,n=r[0],a=r[1];e.preventDefault(),a&&(this.shouldBegin&&!this.shouldBegin(e,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,a&&(this.endPoint={pageX:a.pageX,pageY:a.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(e){if(this.moveable){e.preventDefault();var r=e.originalEvent.touches,n=r[0],a=r[1];if(a){this.endPoint||(this.endPoint={pageX:a.pageX,pageY:a.pageY});var i=function(p,g){return Math.hypot(g.x-p.x,g.y-p.y)},o=i({x:n.pageX,y:n.pageY},{x:a.pageX,y:a.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),s=this.originScale*o;this.currentScale=s;var u=this.get("minZoom")||this.graph.get("minZoom"),f=this.get("maxZoom")||this.graph.get("maxZoom");if(!(s>f||s0||e.wheelDelta<0?l=1-Jc*u:l=1/(1-Jc*u):e.wheelDelta<0?l=1-Jc*u:l=1/(1-Jc*u),c=f*l;var h=this.get("minZoom")||a.get("minZoom"),d=this.get("maxZoom")||a.get("maxZoom");c>d?c=d:ca/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),v="".concat(c,"px");Hu(this.container,{left:d,top:v,visibility:"visible"})},createTooltip:function(e){var r=e.get("el");r.style.position="relative";var n=cg('
'));return r.parentNode.appendChild(n),Hu(n,{position:"absolute",visibility:"visible"}),this.width=e.get("width"),this.height=e.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},Pfe=P({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(r){return r.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},DO),Rfe=P({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(r){return"source: ".concat(r.source," target: ").concat(r.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},DO);var sS="click",Ffe=["click","dblclick"];const Bfe={getDefaultCfg:function(){return{trigger:sS,onChange:function(){}}},getEvents:function(){var e,r;return Ffe.includes(this.trigger)?r=this.trigger:(r=sS,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["node:".concat(r)]="onNodeClick",e.touchstart="onNodeClick",e},onNodeClick:function(e){var r=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){r.toggle(e),clearTimeout(r.timer),r.timer=0},200)}else this.toggle(e)},toggle:function(e){var r=e.item;if(r){var n=this.graph.findDataById(r.get("id"));if(n){var a=n.children;if(!(!a||a.length===0)){var i=!n.collapsed;this.shouldBegin(e,i,this)&&(n.collapsed=i,r.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:e.item,collapsed:i}),this.shouldUpdate(e,i,this)&&(this.onChange(r,i,this),this.graph.layout()))}}}}};var Gfe=so.calculationItemsBBox,PO=function(e,r){if(r(e)!==!1&&e){var n=e.get("combos");if(n.length===0)return!1;_e(n,function(a){PO(a,r)})}};const zfe={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(e){var r=e.item;if(!r||r.destroyed||!this.shouldUpdate(e,this))return!1;var n=r.getType();return n==="combo"},onMouseDown:function(e){this.origin={x:e.x,y:e.y}},onDragStart:function(e){var r=this,n=this.graph,a=e.item;if(this.currentShouldEnd=!0,!!this.validationCombo(e)&&!a.hasLocked()){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=a.get("id"),s=i.filter(function(f){var l=f.get("id");return o===l});s.length===0?this.targets.push(a):this.targets=i.filter(function(f){return!f.hasLocked()});var u=[];this.targets.forEach(function(f){var l=f.getModel(),c=l.x,h=l.y,d=l.id;u.push({x:c,y:h,id:d})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(f){var l=f.getModel();if(l.parentId){var c=n.findById(l.parentId);c&&n.setItemState(c,r.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],PO(a,function(f){if(f.destroyed)return!1;var l=f.getModel();return r.currentItemChildCombos.push(l.id),!0})}},onDrag:function(e){var r=this;if(this.origin&&this.validationCombo(e))if(this.enableDelegate)this.updateDelegate(e);else{if(this.activeState){var n=this.graph,a=e.item,i=a.getModel(),o=n.getCombos(),s=a.getBBox(),u=s.centerX,f=s.centerY,l=s.width,c=o.filter(function(h){var d=h.getModel();return i.parentId,d.id!==i.id&&!r.currentItemChildCombos.includes(d.id)});c.map(function(h){var d=h.getBBox(),v=d.centerX,p=d.centerY,g=d.width,y=u-v,m=f-p,b=2*Math.sqrt(y*y+m*m);l+g-b>.8*l?n.setItemState(h,r.activeState,!0):n.setItemState(h,r.activeState,!1)})}_e(this.targets,function(h){r.updateCombo(h,e)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(e,r){var n=this;(this.enableDelegate||r)&&_e(this.targets,function(a){n.updateCombo(a,e,r)})},onDrop:function(e){var r=this,n=e.item;if(this.currentShouldEnd=this.shouldEnd(e,n,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!n||!this.targets||n.destroyed)){var a=this.graph,i=n.getModel();this.targets.map(function(o){var s=o.getModel();s.parentId!==i.id?(r.activeState&&a.setItemState(n,r.activeState,!1),r.onlyChangeComboSize?a.updateCombo(o):a.updateComboTree(o,i.id,!1)):a.updateCombo(n)}),this.end(n,e),this.endComparison=!0}},onNodeDrop:function(e){var r=this;if(!(!this.targets||this.targets.length===0)){var n=this.graph,a=e.item,i=a.getModel().comboId,o=i?n.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){var s;if(i){if(this.activeState){var u=n.findById(i);n.setItemState(u,this.activeState,!1)}this.targets.map(function(f){r.onlyChangeComboSize?n.updateCombo(f):i!==f.getID()&&(s=n.findById(i),i!==f.getModel().parentId&&n.updateComboTree(f,i,!1))})}else this.targets.map(function(f){if(r.onlyChangeComboSize)n.updateCombo(f);else{var l=f.getModel();l.comboId&&n.updateComboTree(f,void 0,!1)}});this.endComparison=!0,this.end(s,e)}}},onDragEnter:function(e){if(this.origin&&this.validationCombo(e)){var r=e.item,n=this.graph;this.activeState&&n.setItemState(r,this.activeState,!0)}},onDragLeave:function(e){if(this.origin&&this.validationCombo(e)){var r=e.item,n=this.graph;this.activeState&&n.setItemState(r,this.activeState,!1)}},onDragEnd:function(e){if(!(!this.targets||this.targets.length===0)){var r=e.item;this.currentShouldEnd&&this.updatePositions(e);var n=this.getParentCombo(r.getModel().parentId),a=this.graph;n&&this.activeState&&a.setItemState(n,this.activeState,!1),this.end(void 0,e)}},end:function(e,r){var n=this;if(this.origin){var a=this.graph;if(this.delegateShape){var i=a.get("delegateGroup");i.clear(),this.delegateShape=null}if(e&&this.activeState&&a.setItemState(e,this.activeState,!1),!e){var o=a.get("enabledStack")&&this.enableStack,s={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!n.onlyChangeComboSize)a.updateComboTree(u,void 0,o);else{a.updateCombo(u);var f=u.getModel(),l=f.x,c=f.y,h=f.id;s.after.combos.push({x:l,y:c,id:h}),a.pushStack("update",s)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(e,r,n){var a=this;if(n===void 0&&(n={}),r(e,n)!==!1&&e){var i=e.get("combos");_e(i,function(s){a.traverse(s,r,n)});var o=e.get("nodes");_e(o,function(s){a.traverse(s,r,n)})}},updateCombo:function(e,r,n){this.updateSingleItem(e,r,n);var a={};this.traverse(e,function(i,o){return i.destroyed?!1:(i.getEdges().forEach(function(s){return o[s.getID()]=s}),!0)},a),Object.values(a).forEach(function(i){return i.refresh()})},updateSingleItem:function(e,r,n){var a=this.origin,i=this.graph,o=e.getModel(),s=e.get("id");this.point[s]||(this.point[s]={x:o.x,y:o.y});var u=r.x-a.x+this.point[s].x,f=r.y-a.y+this.point[s].y;n&&(u+=a.x-r.x,f+=a.y-r.y),i.updateItem(e,{x:u,y:f},!1)},getParentCombo:function(e){var r=this.graph;if(e){var n=r.findById(e);if(n)return n}},updateDelegate:function(e){var r=this.graph;if(this.delegateShape){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:h,y:d})}else{var n=r.get("delegateGroup"),a=null;this.targets.length>1?a=Gfe(this.targets):a=this.targets[0].getBBox();var i=a.x,o=a.y,s=a.width,u=a.height,f=a.minX,l=a.minY;this.originPoint={x:i,y:o,width:s,height:u,minX:f,minY:l};var c=P(P({},Mf.delegateStyle),this.delegateStyle);this.delegateShape=n.addShape("rect",{attrs:P({width:a.width,height:a.height,x:a.x,y:a.y},c),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var e=this,r=e.graph,n=e.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().parentId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}};var uS="dblclick",jfe=["click","dblclick"];const Ufe={getDefaultCfg:function(){return{trigger:uS,relayout:!0}},getEvents:function(){var e,r;return jfe.includes(this.trigger)?r=this.trigger:(r=uS,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["combo:".concat(r)]="onComboClick",e},onComboClick:function(e){var r=e.item,n=this,a=n.graph,i=n.relayout;if(!(!r||r.destroyed||r.getType()!=="combo")){var o=r.getModel(),s=o.id;s&&(a.collapseExpandCombo(s),i&&a.get("layout")?a.layout():a.refreshPositions())}}};var $fe=so.isPolygonsIntersect,Xfe=so.pathToPoints,fS="shift",Wfe=["drag","shift","ctrl","alt","control"],Vfe=function(e,r){var n,a=e.getKeyShape();if(e.get("type")==="path")n=Xfe(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return $fe(r,n)};const Yfe={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:fS,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Wfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=fS,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(e){var r=this.lasso,n=e.item;n||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),r||(r=this.createLasso()),this.dragging=!0,this.originPoint={x:e.x,y:e.y},this.points.push(this.originPoint),r.show())},onDragMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||(this.points.push({x:e.x,y:e.y}),this.updateLasso(e)))},onDragEnd:function(e){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var e=this.points,r=[];return e.length&&(e.forEach(function(n,a){a===0?r.push(["M",n.x,n.y]):r.push(["L",n.x,n.y])}),r.push(["L",e[0].x,e[0].y])),r},clearStates:function(e){e===void 0&&(e="canvas:click");var r=this,n=r.graph,a=r.selectedState,i=r.shouldDeselect,o=n.findAllByState("node",a),s=n.findAllByState("edge",a);(!i||i({action:e,nodes:o,edges:s}))&&(o.forEach(function(u){return n.setItemState(u,a,!1)}),s.forEach(function(u){return n.setItemState(u,a,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var e=this,r=this,n=r.graph,a=r.shouldUpdate,i=this.points.map(function(l){return[n.getCanvasByPoint(l.x,l.y).x,n.getCanvasByPoint(l.x,l.y).y]}),o=this.selectedState,s=[],u=[];n.getNodes().forEach(function(l){if(l.isVisible()&&Vfe(l,i)&&a(l,"select",e)){s.push(l);var c=l.getModel();u.push(c.id),n.setItemState(l,o,!0)}});var f=[];this.includeEdges&&s.forEach(function(l){var c=l.getOutEdges();c.forEach(function(h){if(h.isVisible()){var d=h.getModel(),v=d.source,p=d.target;u.includes(v)&&u.includes(p)&&a(h,"select",e)&&(f.push(h),n.setItemState(h,e.selectedState,!0))}})}),this.selectedEdges=f,this.selectedNodes=s,this.onSelect&&this.onSelect(s,f),n.emit("nodeselectchange",{selectedItems:{nodes:s,edges:f},select:!0})},createLasso:function(){var e=this,r=e.graph.get("delegateGroup").addShape("path",{attrs:P({path:[]},e.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=r,this.delegate=r,this.points=[],r},updateLasso:function(e){var r=this;this.lasso.attr({path:r.getLassoPath()})},onKeyDown:function(e){var r=e.key;r&&(r.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var lS="click",qfe=["click","drag"],cS=void 0,Hfe=["shift","ctrl","control","alt","meta",void 0];const Zfe={getDefaultCfg:function(){return{trigger:lS,key:cS,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var e=this;qfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=lS,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&Hfe.indexOf(e.key.toLowerCase())===-1&&(e.trigger=cS,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined"));var r;return e.trigger==="drag"?r={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:e.trigger==="click"&&(r={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(r.keydown="onKeyDown",r.keyup="onKeyUp"),r},onDragEnd:function(e){var r=this;if(!(r.key&&!r.keydown)){var n=e.item;(!n||n.getID()===r.source||n.getType()!=="node")&&r.cancelCreating({item:r.edge,x:e.x,y:e.y})}},onClick:function(e){var r=this;if(!(r.key&&!r.keydown)){var n=e.item,a=r.graph,i=n.getModel(),o=r.getEdgeConfig;if(r.addingEdge&&r.edge){if(!r.shouldEnd(e,r))return;var s=void 0;o&&Tr(o)?s=o({source:r.source,target:i.id},r):s=r.edgeConfig;var u=P({target:i.id},s);if(r.source===i.id&&(u.type="loop"),a.emit("beforecreateedge",{}),a.updateItem(r.edge,u,!1),a.get("enabledStack")){var f=P(P({},r.edge.getModel()),{itemType:"edge"}),l={};l.edges=[f],a.pushStack("add",{before:{},after:l})}a.emit("aftercreateedge",{edge:r.edge}),r.edge.getKeyShape().set("capture",!0),r.edge=null,r.addingEdge=!1}else{if(!r.shouldBegin(e,r))return;var s=void 0;o&&Tr(o)?s=o({source:i.id,target:i.id},r):s=r.edgeConfig,r.edge=a.addItem("edge",P({source:i.id,target:i.id},s),!1),r.source=i.id,r.addingEdge=!0,r.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(e){var r=this;if(!(r.key&&!r.keydown)){r.edge&&r.edge.destroyed&&r.cancelCreating({item:r.edge});var n={x:e.x,y:e.y};if(!r.graph.findById(r.source)){r.addingEdge=!1;return}r.addingEdge&&r.edge&&r.graph.updateItem(r.edge,{target:n},!1)}},cancelCreating:function(e){var r,n,a=this;if(!(a.key&&!a.keydown)){var i=a.graph,o=e.item;if(a.addingEdge&&(a.edge===o||!((n=(r=e.target)===null||r===void 0?void 0:r.isCanvas)===null||n===void 0)&&n.call(r))){a.edge&&!a.edge.destroyed&&i.removeItem(a.edge,!1),a.edge=null,a.addingEdge=!1;return}}},onKeyDown:function(e){var r=this,n=e.key;n&&(n.toLowerCase()===r.key.toLowerCase()?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){var e=this;e.addingEdge&&e.edge&&(e.graph.removeItem(e.edge,!1),e.addingEdge=!1,e.edge=null),this.keydown=!1}};var hS="ctrl",Kfe=["shift","ctrl","alt","control"],Qfe="1";const Jfe={getDefaultCfg:function(){return{trigger:hS,combinedKey:Qfe,functionName:"fitView",functionParams:[]}},getEvents:function(){return Kfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=hS,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(e){var r=e.key;if(r){var n=this.trigger.toLowerCase(),a=r.toLowerCase();this.triggerKeydown||(a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]();return}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(a===o||a==="control"&&o==="ctrl"||a==="ctrl"&&o==="control")&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var ele=["shift","ctrl","alt","control","meta"];const tle={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||ele.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(e){var r=this;if(this.allowDrag(e)){var n=this.graph,a=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];a.includes("control")&&a.push("ctrl");var i=a.some(function(V){return e["".concat(V,"Key")]});if(i){var o=n.get("canvas"),s=o.getPointByClient(e.clientX,e.clientY),u=n.getZoom();e.wheelDelta>0?u=u+u*.05:u=u-u*.05,n.zoomTo(u,{x:s.x,y:s.y})}else{var f=e.deltaX||e.movementX,l=e.deltaY||e.movementY;!l&&navigator.userAgent.indexOf("Firefox")>-1&&(l=-e.wheelDelta*125/3);var c=this.graph.get("width"),h=this.graph.get("height"),d=this.graph.get("canvas").getCanvasBBox(),v=this.scalableRange,p=this.scalableRange;v<1&&v>-1&&(v=c*v,p=h*p);var g=d.minX,y=d.maxX,m=d.minY,b=d.maxY;f>0?y<-v?f=0:y-f<-v&&(f=y+v):f<0&&(g>c+v?f=0:g-f>c+v&&(f=g-(c+v))),l>0?b<-p?l=0:b-l<-p&&(l=b+p):l<0&&(m>h+p?l=0:m-l>h+p&&(l=m-(h+p))),this.get("direction")==="x"?l=0:this.get("direction")==="y"&&(f=0),n.translate(-f,-l)}e.preventDefault();var w=this.get("enableOptimize");if(w){var x=this.get("optimizeZoom"),E=this.get("optimized"),_=n.getNodes(),S=n.getEdges(),A=_.length,M=S.length;if(!E){for(var C=0;C{const v=d.getModel();r.updateItem(d,{style:{fill:i(),stroke:l(v.os),lineWidth:2,radius:8,shadowColor:a()?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:o(),fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:v.online?"#22c55e":"#ef4444",stroke:i(),lineWidth:2}}})}),r.getEdges().forEach(d=>{const v=d.getModel(),g=String(v.id).startsWith("rel-")?"#f97316":"#3b82f6";r.updateItem(d,{labelCfg:{style:{fill:g,fontSize:11,fontWeight:500,background:{fill:i(),padding:[2,4],radius:4}}}})}),r.paint())}EP(async()=>{const[h,d,v]=await Promise.all([_P(),SP(),MP()]),p=h.data,g=d.data,y=v.data,m={};p.forEach(A=>m[A.id]=A);const b=a(),w=i(),x=o(),E=p.map(A=>({id:String(A.id),label:A.hostname,online:A.is_online,os:A.os_type,style:{fill:w,stroke:l(A.os_type),lineWidth:2,radius:8,shadowColor:b?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:x,fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:A.is_online?"#22c55e":"#ef4444",stroke:w,lineWidth:2}}})),_=[];y.forEach(A=>{!m[A.source_machine_id]||!m[A.target_machine_id]||_.push({id:`rel-${A.id}`,source:String(A.source_machine_id),target:String(A.target_machine_id),label:c(A),style:{stroke:"#f97316",lineDash:[4,2],lineWidth:1.5,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#f97316"}},labelCfg:{style:{fill:"#f97316",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})}),g.forEach(A=>{A.target_machine_id&&m[A.target_machine_id]&&_.push({id:`svc-${A.id}`,source:String(A.machine_id),target:String(A.target_machine_id),label:A.name,style:{stroke:"#3b82f6",lineWidth:2,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#3b82f6"}},labelCfg:{style:{fill:"#3b82f6",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})});const S=document.getElementById("topo");S.style.background=s(),r=new AO({container:"topo",width:S.clientWidth,height:S.clientHeight,layout:{type:"force",preventOverlap:!0,linkDistance:140,nodeStrength:-80,edgeStrength:.2},defaultNode:{type:"rect",size:[110,40]},defaultEdge:{type:"line",style:{endArrow:!0}},modes:{default:["drag-node","drag-canvas","zoom-canvas"]},fitView:!0,fitViewPadding:20}),r.data({nodes:E,edges:_}),r.render(),r.on("node:click",A=>{const M=A.item.getModel().id;f(M)}),window.addEventListener("resize",()=>{const A=document.getElementById("topo");A&&r&&(r.changeSize(A.clientWidth,A.clientHeight),r.fitView())}),n=new MutationObserver(()=>{u()}),n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),AP(()=>{n&&n.disconnect(),r&&(r.destroy(),r=null)});function f(h){if(!r)return;const d=r.getEdges();d.forEach(v=>{const p=v.getModel();p.source===h||p.target===h?(r.setItemState(v,"active",!0),v.update({style:{opacity:1}})):(r.setItemState(v,"inactive",!0),v.update({style:{opacity:.15}}))}),setTimeout(()=>{d.forEach(v=>{r.clearItemStates(v),v.update({style:{opacity:1}})})},2e3)}function l(h){switch(h){case"Linux":return"#3b82f6";case"Windows":return"#06b6d4";case"macOS":return"#a855f7";default:return"#9ca3af"}}function c(h){const v={port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[h.relation_type]||h.relation_type;return h.source_port?`${v} (${h.source_port})`:v}return(h,d)=>{const v=DP("el-button");return iw(),CP("div",nle,[rc("div",ale,[d[2]||(d[2]=rc("div",null,[rc("div",{class:"page-title"},"拓扑图"),rc("div",{class:"page-subtitle"},"展示机器之间的服务指向和关联关系")],-1)),ow(e)?(iw(),TP(v,{key:0,type:"primary",icon:ow(kP),onClick:d[0]||(d[0]=p=>h.$router.push("/machines"))},{default:IP(()=>[...d[1]||(d[1]=[PP("添加机器",-1)])]),_:1},8,["icon"])):NP("",!0)]),d[3]||(d[3]=OP('
在线
离线
服务指向
关联关系
',1))])}}},ule=RP(ile,[["__scopeId","data-v-1d46321d"]]);export{ule as default}; diff --git a/server/static/assets/index-D__NZX4I.js b/server/static/assets/index-D__NZX4I.js new file mode 100644 index 0000000..ead135c --- /dev/null +++ b/server/static/assets/index-D__NZX4I.js @@ -0,0 +1,100 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-DsgAjqqn.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Login-QAgKDetV.css","assets/MainLayout-BpAm6i02.js","assets/MainLayout-DQN4KPkJ.css","assets/MachineList-MzBh9r6c.js","assets/MachineList-9XRtZKRa.css","assets/MachineDetail-CV5DfGMb.js","assets/MachineDetail-BeE91e36.css","assets/Topology-D7ycfmKq.js","assets/Topology-DMH8-H8q.css","assets/Logs-B37lkquY.js","assets/Logs-DCJS9ser.css","assets/PVEHosts-DdWF4BUY.js","assets/PVEHosts-Bh9QYZd6.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/** +* @vue/shared v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function mp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pn={},hs=[],Qa=()=>{},Z4=()=>!1,Pd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Id=e=>e.startsWith("onUpdate:"),Vn=Object.assign,gp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},aC=Object.prototype.hasOwnProperty,an=(e,t)=>aC.call(e,t),Tt=Array.isArray,vs=e=>yu(e)==="[object Map]",Ld=e=>yu(e)==="[object Set]",Vv=e=>yu(e)==="[object Date]",It=e=>typeof e=="function",xn=e=>typeof e=="string",La=e=>typeof e=="symbol",tn=e=>e!==null&&typeof e=="object",Q4=e=>(tn(e)||It(e))&&It(e.then)&&It(e.catch),e3=Object.prototype.toString,yu=e=>e3.call(e),oC=e=>yu(e).slice(8,-1),t3=e=>yu(e)==="[object Object]",Vd=e=>xn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mi=mp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lC=/-\w/g,va=Bd(e=>e.replace(lC,t=>t.slice(1).toUpperCase())),rC=/\B([A-Z])/g,Zl=Bd(e=>e.replace(rC,"-$1").toLowerCase()),zd=Bd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oi=Bd(e=>e?`on${zd(e)}`:""),Ao=(e,t)=>!Object.is(e,t),kc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},yp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sC=e=>{const t=xn(e)?Number(e):NaN;return isNaN(t)?e:t};let Bv;const Dd=()=>Bv||(Bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(Tt(e)){const t={};for(let n=0;n{if(n){const a=n.split(uC);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(xn(e))t=e;else if(Tt(e))for(let n=0;nAr(n,t))}const l3=e=>!!(e&&e.__v_isRef===!0),_e=e=>xn(e)?e:e==null?"":Tt(e)||tn(e)&&(e.toString===e3||!It(e.toString))?l3(e)?_e(e.value):JSON.stringify(e,r3,2):String(e),r3=(e,t)=>l3(t)?r3(e,t.value):vs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[Kf(a,l)+" =>"]=o,n),{})}:Ld(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Kf(n))}:La(t)?Kf(t):tn(t)&&!Tt(t)&&!t3(t)?String(t):t,Kf=(e,t="")=>{var n;return La(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ta;class s3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ta,!t&&ta&&(this.index=(ta.scopes||(ta.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(ta=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(Ai){let t=Ai;for(Ai=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$i;){let t=$i;for($i=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function p3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function h3(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),Cp(a),mC(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function D0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(v3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function v3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wi)||(e.globalVersion=Wi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!D0(e))))return;e.flags|=2;const t=e.dep,n=gn,a=eo;gn=e,eo=!0;try{p3(e);const o=e.fn(e._value);(t.version===0||Ao(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{gn=n,eo=a,h3(e),e.flags&=-3}}function Cp(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Cp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function mC(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let eo=!0;const m3=[];function fl(){m3.push(eo),eo=!1}function pl(){const e=m3.pop();eo=e===void 0?!0:e}function zv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gn;gn=void 0;try{t()}finally{gn=n}}}let Wi=0;class gC{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _p{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!gn||!eo||gn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gn)n=this.activeLink=new gC(gn,this),gn.deps?(n.prevDep=gn.depsTail,gn.depsTail.nextDep=n,gn.depsTail=n):gn.deps=gn.depsTail=n,g3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=gn.depsTail,n.nextDep=void 0,gn.depsTail.nextDep=n,gn.depsTail=n,gn.deps===n&&(gn.deps=a)}return n}trigger(t){this.version++,Wi++,this.notify(t)}notify(t){bp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{wp()}}}function g3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)g3(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Gc=new WeakMap,kr=Symbol(""),H0=Symbol(""),ji=Symbol("");function aa(e,t,n){if(eo&&gn){let a=Gc.get(e);a||Gc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new _p),o.map=a,o.key=n),o.track()}}function nl(e,t,n,a,o,l){const r=Gc.get(e);if(!r){Wi++;return}const s=u=>{u&&u.trigger()};if(bp(),t==="clear")r.forEach(s);else{const u=Tt(e),c=u&&Vd(n);if(u&&n==="length"){const d=Number(a);r.forEach((f,h)=>{(h==="length"||h===ji||!La(h)&&h>=d)&&s(f)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),c&&s(r.get(ji)),t){case"add":u?c&&s(r.get("length")):(s(r.get(kr)),vs(e)&&s(r.get(H0)));break;case"delete":u||(s(r.get(kr)),vs(e)&&s(r.get(H0)));break;case"set":vs(e)&&s(r.get(kr));break}}wp()}function yC(e,t){const n=Gc.get(e);return n&&n.get(t)}function Zr(e){const t=jt(e);return t===e?t:(aa(t,"iterate",ji),Pa(e)?t:t.map(oo))}function Hd(e){return aa(e=jt(e),"iterate",ji),e}function Oo(e,t){return hl(e)?Es(Er(e)?oo(t):t):oo(t)}const bC={__proto__:null,[Symbol.iterator](){return jf(this,Symbol.iterator,e=>Oo(this,e))},concat(...e){return Zr(this).concat(...e.map(t=>Tt(t)?Zr(t):t))},entries(){return jf(this,"entries",e=>(e[1]=Oo(this,e[1]),e))},every(e,t){return Jo(this,"every",e,t,void 0,arguments)},filter(e,t){return Jo(this,"filter",e,t,n=>n.map(a=>Oo(this,a)),arguments)},find(e,t){return Jo(this,"find",e,t,n=>Oo(this,n),arguments)},findIndex(e,t){return Jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Jo(this,"findLast",e,t,n=>Oo(this,n),arguments)},findLastIndex(e,t){return Jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return qf(this,"includes",e)},indexOf(...e){return qf(this,"indexOf",e)},join(e){return Zr(this).join(e)},lastIndexOf(...e){return qf(this,"lastIndexOf",e)},map(e,t){return Jo(this,"map",e,t,void 0,arguments)},pop(){return ci(this,"pop")},push(...e){return ci(this,"push",e)},reduce(e,...t){return Dv(this,"reduce",e,t)},reduceRight(e,...t){return Dv(this,"reduceRight",e,t)},shift(){return ci(this,"shift")},some(e,t){return Jo(this,"some",e,t,void 0,arguments)},splice(...e){return ci(this,"splice",e)},toReversed(){return Zr(this).toReversed()},toSorted(e){return Zr(this).toSorted(e)},toSpliced(...e){return Zr(this).toSpliced(...e)},unshift(...e){return ci(this,"unshift",e)},values(){return jf(this,"values",e=>Oo(this,e))}};function jf(e,t,n){const a=Hd(e),o=a[t]();return a!==e&&!Pa(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const wC=Array.prototype;function Jo(e,t,n,a,o,l){const r=Hd(e),s=r!==e&&!Pa(e),u=r[t];if(u!==wC[t]){const f=u.apply(e,l);return s?oo(f):f}let c=n;r!==e&&(s?c=function(f,h){return n.call(this,Oo(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const d=u.call(r,c,a);return s&&o?o(d):d}function Dv(e,t,n,a){const o=Hd(e),l=o!==e&&!Pa(e);let r=n,s=!1;o!==e&&(l?(s=a.length===0,r=function(c,d,f){return s&&(s=!1,c=Oo(e,c)),n.call(this,c,Oo(e,d),f,e)}):n.length>3&&(r=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](r,...a);return s?Oo(e,u):u}function qf(e,t,n){const a=jt(e);aa(a,"iterate",ji);const o=a[t](...n);return(o===-1||o===!1)&&Kd(n[0])?(n[0]=jt(n[0]),a[t](...n)):o}function ci(e,t,n=[]){fl(),bp();const a=jt(e)[t].apply(e,n);return wp(),pl(),a}const CC=mp("__proto__,__v_isRef,__isVue"),y3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(La));function _C(e){La(e)||(e=String(e));const t=jt(this);return aa(t,"has",e),t.hasOwnProperty(e)}class b3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(o?l?RC:S3:l?_3:C3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=Tt(t);if(!o){let u;if(r&&(u=bC[n]))return u;if(n==="hasOwnProperty")return _C}const s=Reflect.get(t,n,Gt(t)?t:a);if((La(n)?y3.has(n):CC(n))||(o||aa(t,"get",n),l))return s;if(Gt(s)){const u=r&&Vd(n)?s:s.value;return o&&tn(u)?Rr(u):u}return tn(s)?o?Rr(s):Nt(s):s}}class w3 extends b3{constructor(t=!1){super(!1,t)}set(t,n,a,o){let l=t[n];const r=Tt(t)&&Vd(n);if(!this._isShallow){const c=hl(l);if(!Pa(a)&&!hl(a)&&(l=jt(l),a=jt(a)),!r&&Gt(l)&&!Gt(a))return c||(l.value=a),!0}const s=r?Number(n)e,tc=e=>Reflect.getPrototypeOf(e);function TC(e,t,n){return function(...a){const o=this.__v_raw,l=jt(o),r=vs(l),s=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=o[e](...a),d=n?F0:t?Es:oo;return!t&&aa(l,"iterate",u?H0:kr),Vn(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:s?[d(f[0]),d(f[1])]:d(f),done:h}}})}}function nc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function MC(e,t){const n={get(o){const l=this.__v_raw,r=jt(l),s=jt(o);e||(Ao(o,s)&&aa(r,"get",o),aa(r,"get",s));const{has:u}=tc(r),c=t?F0:e?Es:oo;if(u.call(r,o))return c(l.get(o));if(u.call(r,s))return c(l.get(s));l!==r&&l.get(o)},get size(){const o=this.__v_raw;return!e&&aa(jt(o),"iterate",kr),o.size},has(o){const l=this.__v_raw,r=jt(l),s=jt(o);return e||(Ao(o,s)&&aa(r,"has",o),aa(r,"has",s)),o===s?l.has(o):l.has(o)||l.has(s)},forEach(o,l){const r=this,s=r.__v_raw,u=jt(s),c=t?F0:e?Es:oo;return!e&&aa(u,"iterate",kr),s.forEach((d,f)=>o.call(l,c(d),c(f),r))}};return Vn(n,e?{add:nc("add"),set:nc("set"),delete:nc("delete"),clear:nc("clear")}:{add(o){const l=jt(this),r=tc(l),s=jt(o),u=!t&&!Pa(o)&&!hl(o)?s:o;return r.has.call(l,u)||Ao(o,u)&&r.has.call(l,o)||Ao(s,u)&&r.has.call(l,s)||(l.add(u),nl(l,"add",u,u)),this},set(o,l){!t&&!Pa(l)&&!hl(l)&&(l=jt(l));const r=jt(this),{has:s,get:u}=tc(r);let c=s.call(r,o);c||(o=jt(o),c=s.call(r,o));const d=u.call(r,o);return r.set(o,l),c?Ao(l,d)&&nl(r,"set",o,l):nl(r,"add",o,l),this},delete(o){const l=jt(this),{has:r,get:s}=tc(l);let u=r.call(l,o);u||(o=jt(o),u=r.call(l,o)),s&&s.call(l,o);const c=l.delete(o);return u&&nl(l,"delete",o,void 0),c},clear(){const o=jt(this),l=o.size!==0,r=o.clear();return l&&nl(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=TC(o,e,t)}),n}function Sp(e,t){const n=MC(e,t);return(a,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(an(n,o)&&o in a?n:a,o,l)}const OC={get:Sp(!1,!1)},$C={get:Sp(!1,!0)},AC={get:Sp(!0,!1)};const C3=new WeakMap,_3=new WeakMap,S3=new WeakMap,RC=new WeakMap;function NC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function PC(e){return e.__v_skip||!Object.isExtensible(e)?0:NC(oC(e))}function Nt(e){return hl(e)?e:xp(e,!1,xC,OC,C3)}function Fd(e){return xp(e,!1,EC,$C,_3)}function Rr(e){return xp(e,!0,kC,AC,S3)}function xp(e,t,n,a,o){if(!tn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=PC(e);if(l===0)return e;const r=o.get(e);if(r)return r;const s=new Proxy(e,l===2?a:n);return o.set(e,s),s}function Er(e){return hl(e)?Er(e.__v_raw):!!(e&&e.__v_isReactive)}function hl(e){return!!(e&&e.__v_isReadonly)}function Pa(e){return!!(e&&e.__v_isShallow)}function Kd(e){return e?!!e.__v_raw:!1}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Io(e){return!an(e,"__v_skip")&&Object.isExtensible(e)&&n3(e,"__v_skip",!0),e}const oo=e=>tn(e)?Nt(e):e,Es=e=>tn(e)?Rr(e):e;function Gt(e){return e?e.__v_isRef===!0:!1}function V(e){return x3(e,!1)}function qt(e){return x3(e,!0)}function x3(e,t){return Gt(e)?e:new IC(e,t)}class IC{constructor(t,n){this.dep=new _p,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:jt(t),this._value=n?t:oo(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Pa(t)||hl(t);t=a?t:jt(t),Ao(t,n)&&(this._rawValue=t,this._value=a?t:oo(t),this.dep.trigger())}}function Ec(e){e.dep&&e.dep.trigger()}function i(e){return Gt(e)?e.value:e}function Hv(e){return It(e)?e():i(e)}const LC={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Gt(o)&&!Gt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function k3(e){return Er(e)?e:new Proxy(e,LC)}function Bn(e){const t=Tt(e)?new Array(e.length):{};for(const n in e)t[n]=E3(e,n);return t}class VC{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=La(n)?n:String(n),this._raw=jt(t);let o=!0,l=t;if(!Tt(t)||La(this._key)||!Vd(this._key))do o=!Kd(l)||Pa(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Gt(this._raw[this._key])){const n=this._object[this._key];if(Gt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return yC(this._raw,this._key)}}class BC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bt(e,t,n){return Gt(e)?e:It(e)?new BC(e):tn(e)&&arguments.length>1?E3(e,t,n):V(e)}function E3(e,t,n){return new VC(e,t,n)}class zC{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _p(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return f3(this,!0),!0}get value(){const t=this.dep.track();return v3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function DC(e,t,n=!1){let a,o;return It(e)?a=e:(a=e.get,o=e.set),new zC(a,o,n)}const ac={},Xc=new WeakMap;let ur;function HC(e,t=!1,n=ur){if(n){let a=Xc.get(n);a||Xc.set(n,a=[]),a.push(e)}}function FC(e,t,n=pn){const{immediate:a,deep:o,once:l,scheduler:r,augmentJob:s,call:u}=n,c=C=>o?C:Pa(C)||o===!1||o===0?al(C,1):al(C);let d,f,h,g,p=!1,v=!1;if(Gt(e)?(f=()=>e.value,p=Pa(e)):Er(e)?(f=()=>c(e),p=!0):Tt(e)?(v=!0,p=e.some(C=>Er(C)||Pa(C)),f=()=>e.map(C=>{if(Gt(C))return C.value;if(Er(C))return c(C);if(It(C))return u?u(C,2):C()})):It(e)?t?f=u?()=>u(e,2):e:f=()=>{if(h){fl();try{h()}finally{pl()}}const C=ur;ur=d;try{return u?u(e,3,[g]):e(g)}finally{ur=C}}:f=Qa,t&&o){const C=f,S=o===!0?1/0:o;f=()=>al(C(),S)}const m=i3(),y=()=>{d.stop(),m&&m.active&&gp(m.effects,d)};if(l&&t){const C=t;t=(...S)=>{C(...S),y()}}let b=v?new Array(e.length).fill(ac):ac;const w=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const S=d.run();if(o||p||(v?S.some((k,T)=>Ao(k,b[T])):Ao(S,b))){h&&h();const k=ur;ur=d;try{const T=[S,b===ac?void 0:v&&b[0]===ac?[]:b,g];b=S,u?u(t,3,T):t(...T)}finally{ur=k}}}else d.run()};return s&&s(w),d=new c3(f),d.scheduler=r?()=>r(w,!1):w,g=C=>HC(C,!1,d),h=d.onStop=()=>{const C=Xc.get(d);if(C){if(u)u(C,4);else for(const S of C)S();Xc.delete(d)}},t?a?w(!0):b=d.run():r?r(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function al(e,t=1/0,n){if(t<=0||!tn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Gt(e))al(e.value,t,n);else if(Tt(e))for(let a=0;a{al(a,t,n)});else if(t3(e)){for(const a in e)al(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&al(e[a],t,n)}return e}/** +* @vue/runtime-core v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function bu(e,t,n,a){try{return a?e(...a):e()}catch(o){Wd(o,t,n)}}function lo(e,t,n,a){if(It(e)){const o=bu(e,t,n,a);return o&&Q4(o)&&o.catch(l=>{Wd(l,t,n)}),o}if(Tt(e)){const o=[];for(let l=0;l>>1,o=pa[a],l=qi(o);l=qi(n)?pa.push(e):pa.splice(WC(t),0,e),e.flags|=1,M3()}}function M3(){Jc||(Jc=T3.then($3))}function jC(e){Tt(e)?ms.push(...e):Vl&&e.id===-1?Vl.splice(ss+1,0,e):e.flags&1||(ms.push(e),e.flags|=1),M3()}function Fv(e,t,n=To+1){for(;nqi(n)-qi(a));if(ms.length=0,Vl){Vl.push(...t);return}for(Vl=t,ss=0;sse.id==null?e.flags&2?-1:1/0:e.id;function $3(e){try{for(To=0;To{a._d&&td(-1);const l=Zc(t);let r;try{r=e(...o)}finally{Zc(l),a._d&&td(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function dt(e,t){if(Gn===null)return e;const n=Gd(Gn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&It(t)?t.call(a&&a.proxy):t}}const qC=Symbol.for("v-scx"),UC=()=>Ne(qC);function ma(e,t){return Ep(e,null,t)}function fe(e,t,n){return Ep(e,t,n)}function Ep(e,t,n=pn){const{immediate:a,deep:o,flush:l,once:r}=n,s=Vn({},n),u=t&&a||!t&&l!=="post";let c;if(Gi){if(l==="sync"){const g=UC();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=Qa,g.resume=Qa,g.pause=Qa,g}}const d=oa;s.call=(g,p,v)=>lo(g,d,p,v);let f=!1;l==="post"?s.scheduler=g=>{da(g,d&&d.suspense)}:l!=="sync"&&(f=!0,s.scheduler=(g,p)=>{p?g():kp(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const h=FC(e,t,s);return Gi&&(c?c.push(h):u&&h()),h}function YC(e,t,n){const a=this.proxy,o=xn(e)?e.includes(".")?R3(a,e):()=>a[e]:e.bind(a,a);let l;It(t)?l=t:(l=t.handler,n=t);const r=Cu(this),s=Ep(o,l.bind(a),n);return r(),s}function R3(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,dr=e=>e&&(e.disabled||e.disabled===""),GC=e=>e&&(e.defer||e.defer===""),Kv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,K0=(e,t)=>{const n=e&&e.to;return xn(n)?t?t(n):null:n},XC={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,l,r,s,u,c){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:p,createText:v,createComment:m}}=c,y=dr(t.props);let{dynamicChildren:b}=t;const w=(k,T,M)=>{k.shapeFlag&16&&d(k.children,T,M,o,l,r,s,u)},C=(k=t)=>{const T=dr(k.props),M=k.target=K0(k.props,p),A=W0(M,k,v,g);M&&(r!=="svg"&&Kv(M)?r="svg":r!=="mathml"&&Wv(M)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),T||(w(k,M,A),_i(k,!1)))},S=k=>{const T=()=>{ar.get(k)===T&&(ar.delete(k),dr(k.props)&&(w(k,n,k.anchor),_i(k,!0)),C(k))};ar.set(k,T),da(T,l)};if(e==null){const k=t.el=v(""),T=t.anchor=v("");if(g(k,n,a),g(T,n,a),GC(t.props)||l&&l.pendingBranch){S(t);return}y&&(w(t,n,T),_i(t,!0)),C()}else{t.el=e.el;const k=t.anchor=e.anchor,T=ar.get(e);if(T){T.flags|=8,ar.delete(e),S(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,A=t.targetAnchor=e.targetAnchor,O=dr(e.props),I=O?n:M,L=O?k:A;if(r==="svg"||Kv(M)?r="svg":(r==="mathml"||Wv(M))&&(r="mathml"),b?(h(e.dynamicChildren,b,I,o,l,r,s),Ip(e,t,!0)):u||f(e,t,I,L,o,l,r,s,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):oc(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=K0(t.props,p);z&&oc(t,z,null,c,0)}else O&&oc(t,M,A,c,1);_i(t,y)}},remove(e,t,n,{um:a,o:{remove:o}},l){const{shapeFlag:r,children:s,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;let g=l||!dr(h);const p=ar.get(e);if(p&&(p.flags|=8,ar.delete(e),g=!1),f&&(o(c),o(d)),l&&o(u),r&16)for(let v=0;v{e.isMounted=!0}),Lt(()=>{e.isUnmounting=!0}),e}const Da=[Function,Array],L3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Da,onEnter:Da,onAfterEnter:Da,onEnterCancelled:Da,onBeforeLeave:Da,onLeave:Da,onAfterLeave:Da,onLeaveCancelled:Da,onBeforeAppear:Da,onAppear:Da,onAfterAppear:Da,onAppearCancelled:Da},V3=e=>{const t=e.subTree;return t.component?V3(t.component):t},QC={name:"BaseTransition",props:L3,setup(e,{slots:t}){const n=ht(),a=I3();return()=>{const o=t.default&&Tp(t.default(),!0);if(!o||!o.length)return;const l=B3(o),r=jt(e),{mode:s}=r;if(a.isLeaving)return Uf(l);const u=jv(l);if(!u)return Uf(l);let c=Ui(u,r,a,n,f=>c=f);u.type!==wn&&Nr(u,c);let d=n.subTree&&jv(n.subTree);if(d&&d.type!==wn&&!fr(d,u)&&V3(n).type!==wn){let f=Ui(d,r,a,n);if(Nr(d,f),s==="out-in"&&u.type!==wn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Uf(l);s==="in-out"&&u.type!==wn?f.delayLeave=(h,g,p)=>{const v=z3(a,d);v[String(d.key)]=d,h[Mo]=()=>{g(),h[Mo]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return l}}};function B3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==wn){t=n;break}}return t}const e_=QC;function z3(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Ui(e,t,n,a,o){const{appear:l,mode:r,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,C=String(e.key),S=z3(n,e),k=(A,O)=>{A&&lo(A,a,9,O)},T=(A,O)=>{const I=O[1];k(A,O),Tt(A)?A.every(L=>L.length<=1)&&I():A.length<=1&&I()},M={mode:r,persisted:s,beforeEnter(A){let O=u;if(!n.isMounted)if(l)O=m||u;else return;A[Mo]&&A[Mo](!0);const I=S[C];I&&fr(e,I)&&I.el[Mo]&&I.el[Mo](),k(O,[A])},enter(A){if(S[C]===e)return;let O=c,I=d,L=f;if(!n.isMounted)if(l)O=y||c,I=b||d,L=w||f;else return;let z=!1;A[di]=U=>{z||(z=!0,U?k(L,[A]):k(I,[A]),M.delayedLeave&&M.delayedLeave(),A[di]=void 0)};const q=A[di].bind(null,!1);O?T(O,[A,q]):q()},leave(A,O){const I=String(e.key);if(A[di]&&A[di](!0),n.isUnmounting)return O();k(h,[A]);let L=!1;A[Mo]=q=>{L||(L=!0,O(),q?k(v,[A]):k(p,[A]),A[Mo]=void 0,S[I]===e&&delete S[I])};const z=A[Mo].bind(null,!1);S[I]=e,g?T(g,[A,z]):z()},clone(A){const O=Ui(A,t,n,a,o);return o&&o(O),O}};return M}function Uf(e){if(jd(e))return e=Ho(e),e.children=null,e}function jv(e){if(!jd(e))return P3(e.type)&&e.children?B3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&It(n.default))return n.default()}}function Nr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nr(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 Tp(e,t=!1,n){let a=[],o=0;for(let l=0;l1)for(let l=0;lRi(v,t&&(Tt(t)?t[m]:t),n,a,o));return}if(gs(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Ri(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?Gd(a.component):a.el,r=o?null:l,{i:s,r:u}=e,c=t&&t.r,d=s.refs===pn?s.refs={}:s.refs,f=s.setupState,h=jt(f),g=f===pn?Z4:v=>qv(d,v)?!1:an(h,v),p=(v,m)=>!(m&&qv(d,m));if(c!=null&&c!==u){if(Uv(t),xn(c))d[c]=null,g(c)&&(f[c]=null);else if(Gt(c)){const v=t;p(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(It(u))bu(u,s,12,[r,d]);else{const v=xn(u),m=Gt(u);if(v||m){const y=()=>{if(e.f){const b=v?g(u)?f[u]:d[u]:p()||!e.k?u.value:d[e.k];if(o)Tt(b)&&gp(b,l);else if(Tt(b))b.includes(l)||b.push(l);else if(v)d[u]=[l],g(u)&&(f[u]=d[u]);else{const w=[l];p(u,e.k)&&(u.value=w),e.k&&(d[e.k]=w)}}else v?(d[u]=r,g(u)&&(f[u]=r)):m&&(p(u,e.k)&&(u.value=r),e.k&&(d[e.k]=r))};if(r){const b=()=>{y(),Qc.delete(e)};b.id=-1,Qc.set(e,b),da(b,n)}else Uv(e),y()}}}function Uv(e){const t=Qc.get(e);t&&(t.flags|=8,Qc.delete(e))}Dd().requestIdleCallback;Dd().cancelIdleCallback;const gs=e=>!!e.type.__asyncLoader,jd=e=>e.type.__isKeepAlive;function wu(e,t){H3(e,"a",t)}function Mp(e,t){H3(e,"da",t)}function H3(e,t,n=oa){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(qd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)jd(o.parent.vnode)&&t_(a,t,n,o),o=o.parent}}function t_(e,t,n,a){const o=qd(t,e,a,!0);Gs(()=>{gp(a[t],o)},n)}function qd(e,t,n=oa,a=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{fl();const s=Cu(n),u=lo(t,n,e,r);return s(),pl(),u});return a?o.unshift(l):o.push(l),l}}const Cl=e=>(t,n=oa)=>{(!Gi||e==="sp")&&qd(e,(...a)=>t(...a),n)},Ud=Cl("bm"),mt=Cl("m"),Op=Cl("bu"),ho=Cl("u"),Lt=Cl("bum"),Gs=Cl("um"),n_=Cl("sp"),a_=Cl("rtg"),o_=Cl("rtc");function l_(e,t=oa){qd("ec",e,t)}const $p="components",r_="directives";function $t(e,t){return Rp($p,e,!0,t)||e}const F3=Symbol.for("v-ndc");function ut(e){return xn(e)?Rp($p,e,!1)||e:e||F3}function Ap(e){return Rp(r_,e)}function Rp(e,t,n=!0,a=!1){const o=Gn||oa;if(o){const l=o.type;if(e===$p){const s=F_(l,!1);if(s&&(s===t||s===va(t)||s===zd(va(t))))return l}const r=Yv(o[e]||l[e],t)||Yv(o.appContext[e],t);return!r&&a?l:r}}function Yv(e,t){return e&&(e[t]||e[va(t)]||e[zd(va(t))])}function Ct(e,t,n,a){let o;const l=n,r=Tt(e);if(r||xn(e)){const s=r&&Er(e);let u=!1,c=!1;s&&(u=!Pa(e),c=hl(e),e=Hd(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(s,u,void 0,l));else{const s=Object.keys(e);o=new Array(s.length);for(let u=0,c=s.length;u{const l=a.fn(...o);return l&&(l.key=a.key),l}:a.fn)}return e}function oe(e,t,n={},a,o){if(Gn.ce||Gn.parent&&gs(Gn.parent)&&Gn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),_(),ie(He,null,[Q("slot",n,a&&a())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),_();const r=l&&K3(l(n)),s=n.key||r&&r.key,u=ie(He,{key:(s&&!La(s)?s:`_${t}`)+(!r&&a?"_fb":"")},r||(a?a():[]),r&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function K3(e){return e.some(t=>Wt(t)?!(t.type===wn||t.type===He&&!K3(t.children)):!0)?e:null}function s_(e,t){const n={};for(const a in e)n[Oi(a)]=e[a];return n}const j0=e=>e?u6(e)?Gd(e):j0(e.parent):null,Ni=Vn(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=>j0(e.parent),$root:e=>j0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>q3(e),$forceUpdate:e=>e.f||(e.f=()=>{kp(e.update)}),$nextTick:e=>e.n||(e.n=Ie.bind(e.proxy)),$watch:e=>YC.bind(e)}),Yf=(e,t)=>e!==pn&&!e.__isScriptSetup&&an(e,t),i_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:l,accessCache:r,type:s,appContext:u}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(Yf(a,t))return r[t]=1,a[t];if(o!==pn&&an(o,t))return r[t]=2,o[t];if(an(l,t))return r[t]=3,l[t];if(n!==pn&&an(n,t))return r[t]=4,n[t];q0&&(r[t]=0)}}const c=Ni[t];let d,f;if(c)return t==="$attrs"&&aa(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==pn&&an(n,t))return r[t]=4,n[t];if(f=u.config.globalProperties,an(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:l}=e;return Yf(o,t)?(o[t]=n,!0):a!==pn&&an(a,t)?(a[t]=n,!0):an(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:l,type:r}},s){let u;return!!(n[s]||e!==pn&&s[0]!=="$"&&an(e,s)||Yf(t,s)||an(l,s)||an(a,s)||an(Ni,s)||an(o.config.globalProperties,s)||(u=r.__cssModules)&&u[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:an(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yn(){return W3().slots}function _l(){return W3().attrs}function W3(e){const t=ht();return t.setupContext||(t.setupContext=d6(t))}function Gv(e){return Tt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let q0=!0;function u_(e){const t=q3(e),n=e.proxy,a=e.ctx;q0=!1,t.beforeCreate&&Xv(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:r,watch:s,provide:u,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:p,activated:v,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:C,render:S,renderTracked:k,renderTriggered:T,errorCaptured:M,serverPrefetch:A,expose:O,inheritAttrs:I,components:L,directives:z,filters:q}=t;if(c&&c_(c,a,null),r)for(const N in r){const P=r[N];It(P)&&(a[N]=P.bind(n))}if(o){const N=o.call(n,n);tn(N)&&(e.data=Nt(N))}if(q0=!0,l)for(const N in l){const P=l[N],B=It(P)?P.bind(n,n):It(P.get)?P.get.bind(n,n):Qa,W=!It(P)&&It(P.set)?P.set.bind(n):Qa,K=x({get:B,set:W});Object.defineProperty(a,N,{enumerable:!0,configurable:!0,get:()=>K.value,set:j=>K.value=j})}if(s)for(const N in s)j3(s[N],a,n,N);if(u){const N=It(u)?u.call(n):u;Reflect.ownKeys(N).forEach(P=>{bt(P,N[P])})}d&&Xv(d,e,"c");function F(N,P){Tt(P)?P.forEach(B=>N(B.bind(n))):P&&N(P.bind(n))}if(F(Ud,f),F(mt,h),F(Op,g),F(ho,p),F(wu,v),F(Mp,m),F(l_,M),F(o_,k),F(a_,T),F(Lt,b),F(Gs,C),F(n_,A),Tt(O))if(O.length){const N=e.exposed||(e.exposed={});O.forEach(P=>{Object.defineProperty(N,P,{get:()=>n[P],set:B=>n[P]=B,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Qa&&(e.render=S),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),z&&(e.directives=z),A&&D3(e)}function c_(e,t,n=Qa){Tt(e)&&(e=U0(e));for(const a in e){const o=e[a];let l;tn(o)?"default"in o?l=Ne(o.from||a,o.default,!0):l=Ne(o.from||a):l=Ne(o),Gt(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[a]=l}}function Xv(e,t,n){lo(Tt(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function j3(e,t,n,a){let o=a.includes(".")?R3(n,a):()=>n[a];if(xn(e)){const l=t[e];It(l)&&fe(o,l)}else if(It(e))fe(o,e.bind(n));else if(tn(e))if(Tt(e))e.forEach(l=>j3(l,t,n,a));else{const l=It(e.handler)?e.handler.bind(n):t[e.handler];It(l)&&fe(o,l,e)}}function q3(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,s=l.get(t);let u;return s?u=s:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>ed(u,c,r,!0)),ed(u,t,r)),tn(t)&&l.set(t,u),u}function ed(e,t,n,a=!1){const{mixins:o,extends:l}=t;l&&ed(e,l,n,!0),o&&o.forEach(r=>ed(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=d_[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const d_={data:Jv,props:Zv,emits:Zv,methods:Si,computed:Si,beforeCreate:ca,created:ca,beforeMount:ca,mounted:ca,beforeUpdate:ca,updated:ca,beforeDestroy:ca,beforeUnmount:ca,destroyed:ca,unmounted:ca,activated:ca,deactivated:ca,errorCaptured:ca,serverPrefetch:ca,components:Si,directives:Si,watch:p_,provide:Jv,inject:f_};function Jv(e,t){return t?e?function(){return Vn(It(e)?e.call(this,this):e,It(t)?t.call(this,this):t)}:t:e}function f_(e,t){return Si(U0(e),U0(t))}function U0(e){if(Tt(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${va(t)}Modifiers`]||e[`${Zl(t)}Modifiers`];function g_(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||pn;let o=n;const l=t.startsWith("update:"),r=l&&m_(a,t.slice(7));r&&(r.trim&&(o=n.map(d=>xn(d)?d.trim():d)),r.number&&(o=n.map(yp)));let s,u=a[s=Oi(t)]||a[s=Oi(va(t))];!u&&l&&(u=a[s=Oi(Zl(t))]),u&&lo(u,e,6,o);const c=a[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,lo(c,e,6,o)}}const y_=new WeakMap;function Y3(e,t,n=!1){const a=n?y_:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const l=e.emits;let r={},s=!1;if(!It(e)){const u=c=>{const d=Y3(c,t,!0);d&&(s=!0,Vn(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!s?(tn(e)&&a.set(e,null),null):(Tt(l)?l.forEach(u=>r[u]=null):Vn(r,l),tn(e)&&a.set(e,r),r)}function Yd(e,t){return!e||!Pd(t)?!1:(t=t.slice(2).replace(/Once$/,""),an(e,t[0].toLowerCase()+t.slice(1))||an(e,Zl(t))||an(e,t))}function Qv(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[l],slots:r,attrs:s,emit:u,render:c,renderCache:d,props:f,data:h,setupState:g,ctx:p,inheritAttrs:v}=e,m=Zc(e);let y,b;try{if(n.shapeFlag&4){const C=o||a,S=C;y=$o(c.call(S,C,d,f,g,h,p)),b=s}else{const C=t;y=$o(C.length>1?C(f,{attrs:s,slots:r,emit:u}):C(f,null)),b=t.props?s:b_(s)}}catch(C){Pi.length=0,Wd(C,e,1),y=Q(wn)}let w=y;if(b&&v!==!1){const C=Object.keys(b),{shapeFlag:S}=w;C.length&&S&7&&(l&&C.some(Id)&&(b=w_(b,l)),w=Ho(w,b,!1,!0))}return n.dirs&&(w=Ho(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Nr(w,n.transition),y=w,Zc(m),y}const b_=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pd(n))&&((t||(t={}))[n]=e[n]);return t},w_=(e,t)=>{const n={};for(const a in e)(!Id(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function C_(e,t,n){const{props:a,children:o,component:l}=e,{props:r,children:s,patchFlag:u}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?e1(a,r,c):!!r;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(X3),Z3=e=>Object.getPrototypeOf(e)===X3;function S_(e,t,n,a=!1){const o={},l=J3();e.propsDefaults=Object.create(null),Q3(e,t,o,l);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=a?o:Fd(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function x_(e,t,n,a){const{props:o,attrs:l,vnode:{patchFlag:r}}=e,s=jt(o),[u]=e.propsOptions;let c=!1;if((a||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[h,g]=e6(f,t,!0);Vn(r,h),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!u)return tn(e)&&a.set(e,hs),hs;if(Tt(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Pp=e=>Tt(e)?e.map($o):[$o(e)],E_=(e,t,n)=>{if(t._n)return t;const a=ae((...o)=>Pp(t(...o)),n);return a._c=!1,a},t6=(e,t,n)=>{const a=e._ctx;for(const o in e){if(Np(o))continue;const l=e[o];if(It(l))t[o]=E_(o,l,a);else if(l!=null){const r=Pp(l);t[o]=()=>r}}},n6=(e,t)=>{const n=Pp(t);e.slots.default=()=>n},a6=(e,t,n)=>{for(const a in t)(n||!Np(a))&&(e[a]=t[a])},T_=(e,t,n)=>{const a=e.slots=J3();if(e.vnode.shapeFlag&32){const o=t._;o?(a6(a,t,n),n&&n3(a,"_",o,!0)):t6(t,a)}else t&&n6(e,t)},M_=(e,t,n)=>{const{vnode:a,slots:o}=e;let l=!0,r=pn;if(a.shapeFlag&32){const s=t._;s?n&&s===1?l=!1:a6(o,t,n):(l=!t.$stable,t6(t,o)),r=t}else t&&(n6(e,t),r={default:1});if(l)for(const s in o)!Np(s)&&r[s]==null&&delete o[s]},da=N_;function O_(e){return $_(e)}function $_(e,t){const n=Dd();n.__VUE__=!0;const{insert:a,remove:o,patchProp:l,createElement:r,createText:s,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=Qa,insertStaticContent:p}=e,v=(H,Z,le,ce=null,ge=null,me=null,$e=void 0,Re=null,Ae=!!Z.dynamicChildren)=>{if(H===Z)return;H&&!fr(H,Z)&&(ce=ne(H),j(H,ge,me,!0),H=null),Z.patchFlag===-2&&(Ae=!1,Z.dynamicChildren=null);const{type:ye,ref:ke,shapeFlag:be}=Z;switch(ye){case Xs:m(H,Z,le,ce);break;case wn:y(H,Z,le,ce);break;case Tc:H==null&&b(Z,le,ce,$e);break;case He:L(H,Z,le,ce,ge,me,$e,Re,Ae);break;default:be&1?S(H,Z,le,ce,ge,me,$e,Re,Ae):be&6?z(H,Z,le,ce,ge,me,$e,Re,Ae):(be&64||be&128)&&ye.process(H,Z,le,ce,ge,me,$e,Re,Ae,Y)}ke!=null&&ge?Ri(ke,H&&H.ref,me,Z||H,!Z):ke==null&&H&&H.ref!=null&&Ri(H.ref,null,me,H,!0)},m=(H,Z,le,ce)=>{if(H==null)a(Z.el=s(Z.children),le,ce);else{const ge=Z.el=H.el;Z.children!==H.children&&c(ge,Z.children)}},y=(H,Z,le,ce)=>{H==null?a(Z.el=u(Z.children||""),le,ce):Z.el=H.el},b=(H,Z,le,ce)=>{[H.el,H.anchor]=p(H.children,Z,le,ce,H.el,H.anchor)},w=({el:H,anchor:Z},le,ce)=>{let ge;for(;H&&H!==Z;)ge=h(H),a(H,le,ce),H=ge;a(Z,le,ce)},C=({el:H,anchor:Z})=>{let le;for(;H&&H!==Z;)le=h(H),o(H),H=le;o(Z)},S=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{if(Z.type==="svg"?$e="svg":Z.type==="math"&&($e="mathml"),H==null)k(Z,le,ce,ge,me,$e,Re,Ae);else{const ye=H.el&&H.el._isVueCE?H.el:null;try{ye&&ye._beginPatch(),A(H,Z,ge,me,$e,Re,Ae)}finally{ye&&ye._endPatch()}}},k=(H,Z,le,ce,ge,me,$e,Re)=>{let Ae,ye;const{props:ke,shapeFlag:be,transition:Pe,dirs:Be}=H;if(Ae=H.el=r(H.type,me,ke&&ke.is,ke),be&8?d(Ae,H.children):be&16&&M(H.children,Ae,null,ce,ge,Gf(H,me),$e,Re),Be&&nr(H,null,ce,"created"),T(Ae,H,H.scopeId,$e,ce),ke){for(const tt in ke)tt!=="value"&&!Mi(tt)&&l(Ae,tt,null,ke[tt],me,ce);"value"in ke&&l(Ae,"value",null,ke.value,me),(ye=ke.onVnodeBeforeMount)&&xo(ye,ce,H)}Be&&nr(H,null,ce,"beforeMount");const Qe=A_(ge,Pe);Qe&&Pe.beforeEnter(Ae),a(Ae,Z,le),((ye=ke&&ke.onVnodeMounted)||Qe||Be)&&da(()=>{try{ye&&xo(ye,ce,H),Qe&&Pe.enter(Ae),Be&&nr(H,null,ce,"mounted")}finally{}},ge)},T=(H,Z,le,ce,ge)=>{if(le&&g(H,le),ce)for(let me=0;me{for(let ye=Ae;ye{const Re=Z.el=H.el;let{patchFlag:Ae,dynamicChildren:ye,dirs:ke}=Z;Ae|=H.patchFlag&16;const be=H.props||pn,Pe=Z.props||pn;let Be;if(le&&or(le,!1),(Be=Pe.onVnodeBeforeUpdate)&&xo(Be,le,Z,H),ke&&nr(Z,H,le,"beforeUpdate"),le&&or(le,!0),(be.innerHTML&&Pe.innerHTML==null||be.textContent&&Pe.textContent==null)&&d(Re,""),ye?O(H.dynamicChildren,ye,Re,le,ce,Gf(Z,ge),me):$e||P(H,Z,Re,null,le,ce,Gf(Z,ge),me,!1),Ae>0){if(Ae&16)I(Re,be,Pe,le,ge);else if(Ae&2&&be.class!==Pe.class&&l(Re,"class",null,Pe.class,ge),Ae&4&&l(Re,"style",be.style,Pe.style,ge),Ae&8){const Qe=Z.dynamicProps;for(let tt=0;tt{Be&&xo(Be,le,Z,H),ke&&nr(Z,H,le,"updated")},ce)},O=(H,Z,le,ce,ge,me,$e)=>{for(let Re=0;Re{if(Z!==le){if(Z!==pn)for(const me in Z)!Mi(me)&&!(me in le)&&l(H,me,Z[me],null,ge,ce);for(const me in le){if(Mi(me))continue;const $e=le[me],Re=Z[me];$e!==Re&&me!=="value"&&l(H,me,Re,$e,ge,ce)}"value"in le&&l(H,"value",Z.value,le.value,ge)}},L=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{const ye=Z.el=H?H.el:s(""),ke=Z.anchor=H?H.anchor:s("");let{patchFlag:be,dynamicChildren:Pe,slotScopeIds:Be}=Z;Be&&(Re=Re?Re.concat(Be):Be),H==null?(a(ye,le,ce),a(ke,le,ce),M(Z.children||[],le,ke,ge,me,$e,Re,Ae)):be>0&&be&64&&Pe&&H.dynamicChildren&&H.dynamicChildren.length===Pe.length?(O(H.dynamicChildren,Pe,le,ge,me,$e,Re),(Z.key!=null||ge&&Z===ge.subTree)&&Ip(H,Z,!0)):P(H,Z,le,ke,ge,me,$e,Re,Ae)},z=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{Z.slotScopeIds=Re,H==null?Z.shapeFlag&512?ge.ctx.activate(Z,le,ce,$e,Ae):q(Z,le,ce,ge,me,$e,Ae):U(H,Z,Ae)},q=(H,Z,le,ce,ge,me,$e)=>{const Re=H.component=B_(H,ce,ge);if(jd(H)&&(Re.ctx.renderer=Y),z_(Re,!1,$e),Re.asyncDep){if(ge&&ge.registerDep(Re,F,$e),!H.el){const Ae=Re.subTree=Q(wn);y(null,Ae,Z,le),H.placeholder=Ae.el}}else F(Re,H,Z,le,ge,me,$e)},U=(H,Z,le)=>{const ce=Z.component=H.component;if(C_(H,Z,le))if(ce.asyncDep&&!ce.asyncResolved){N(ce,Z,le);return}else ce.next=Z,ce.update();else Z.el=H.el,ce.vnode=Z},F=(H,Z,le,ce,ge,me,$e)=>{const Re=()=>{if(H.isMounted){let{next:be,bu:Pe,u:Be,parent:Qe,vnode:tt}=H;{const Ke=o6(H);if(Ke){be&&(be.el=tt.el,N(H,be,$e)),Ke.asyncDep.then(()=>{da(()=>{H.isUnmounted||ye()},ge)});return}}let nt=be,Te;or(H,!1),be?(be.el=tt.el,N(H,be,$e)):be=tt,Pe&&kc(Pe),(Te=be.props&&be.props.onVnodeBeforeUpdate)&&xo(Te,Qe,be,tt),or(H,!0);const Ye=Qv(H),st=H.subTree;H.subTree=Ye,v(st,Ye,f(st.el),ne(st),H,ge,me),be.el=Ye.el,nt===null&&__(H,Ye.el),Be&&da(Be,ge),(Te=be.props&&be.props.onVnodeUpdated)&&da(()=>xo(Te,Qe,be,tt),ge)}else{let be;const{el:Pe,props:Be}=Z,{bm:Qe,m:tt,parent:nt,root:Te,type:Ye}=H,st=gs(Z);or(H,!1),Qe&&kc(Qe),!st&&(be=Be&&Be.onVnodeBeforeMount)&&xo(be,nt,Z),or(H,!0);{Te.ce&&Te.ce._hasShadowRoot()&&Te.ce._injectChildStyle(Ye,H.parent?H.parent.type:void 0);const Ke=H.subTree=Qv(H);v(null,Ke,le,ce,H,ge,me),Z.el=Ke.el}if(tt&&da(tt,ge),!st&&(be=Be&&Be.onVnodeMounted)){const Ke=Z;da(()=>xo(be,nt,Ke),ge)}(Z.shapeFlag&256||nt&&gs(nt.vnode)&&nt.vnode.shapeFlag&256)&&H.a&&da(H.a,ge),H.isMounted=!0,Z=le=ce=null}};H.scope.on();const Ae=H.effect=new c3(Re);H.scope.off();const ye=H.update=Ae.run.bind(Ae),ke=H.job=Ae.runIfDirty.bind(Ae);ke.i=H,ke.id=H.uid,Ae.scheduler=()=>kp(ke),or(H,!0),ye()},N=(H,Z,le)=>{Z.component=H;const ce=H.vnode.props;H.vnode=Z,H.next=null,x_(H,Z.props,ce,le),M_(H,Z.children,le),fl(),Fv(H),pl()},P=(H,Z,le,ce,ge,me,$e,Re,Ae=!1)=>{const ye=H&&H.children,ke=H?H.shapeFlag:0,be=Z.children,{patchFlag:Pe,shapeFlag:Be}=Z;if(Pe>0){if(Pe&128){W(ye,be,le,ce,ge,me,$e,Re,Ae);return}else if(Pe&256){B(ye,be,le,ce,ge,me,$e,Re,Ae);return}}Be&8?(ke&16&&ue(ye,ge,me),be!==ye&&d(le,be)):ke&16?Be&16?W(ye,be,le,ce,ge,me,$e,Re,Ae):ue(ye,ge,me,!0):(ke&8&&d(le,""),Be&16&&M(be,le,ce,ge,me,$e,Re,Ae))},B=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{H=H||hs,Z=Z||hs;const ye=H.length,ke=Z.length,be=Math.min(ye,ke);let Pe;for(Pe=0;Peke?ue(H,ge,me,!0,!1,be):M(Z,le,ce,ge,me,$e,Re,Ae,be)},W=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{let ye=0;const ke=Z.length;let be=H.length-1,Pe=ke-1;for(;ye<=be&&ye<=Pe;){const Be=H[ye],Qe=Z[ye]=Ae?el(Z[ye]):$o(Z[ye]);if(fr(Be,Qe))v(Be,Qe,le,null,ge,me,$e,Re,Ae);else break;ye++}for(;ye<=be&&ye<=Pe;){const Be=H[be],Qe=Z[Pe]=Ae?el(Z[Pe]):$o(Z[Pe]);if(fr(Be,Qe))v(Be,Qe,le,null,ge,me,$e,Re,Ae);else break;be--,Pe--}if(ye>be){if(ye<=Pe){const Be=Pe+1,Qe=BePe)for(;ye<=be;)j(H[ye],ge,me,!0),ye++;else{const Be=ye,Qe=ye,tt=new Map;for(ye=Qe;ye<=Pe;ye++){const he=Z[ye]=Ae?el(Z[ye]):$o(Z[ye]);he.key!=null&&tt.set(he.key,ye)}let nt,Te=0;const Ye=Pe-Qe+1;let st=!1,Ke=0;const et=new Array(Ye);for(ye=0;ye=Ye){j(he,ge,me,!0);continue}let Le;if(he.key!=null)Le=tt.get(he.key);else for(nt=Qe;nt<=Pe;nt++)if(et[nt-Qe]===0&&fr(he,Z[nt])){Le=nt;break}Le===void 0?j(he,ge,me,!0):(et[Le-Qe]=ye+1,Le>=Ke?Ke=Le:st=!0,v(he,Z[Le],le,null,ge,me,$e,Re,Ae),Te++)}const gt=st?R_(et):hs;for(nt=gt.length-1,ye=Ye-1;ye>=0;ye--){const he=Qe+ye,Le=Z[he],pe=Z[he+1],Ee=he+1{const{el:me,type:$e,transition:Re,children:Ae,shapeFlag:ye}=H;if(ye&6){K(H.component.subTree,Z,le,ce);return}if(ye&128){H.suspense.move(Z,le,ce);return}if(ye&64){$e.move(H,Z,le,Y);return}if($e===He){a(me,Z,le);for(let be=0;beRe.enter(me),ge);else{const{leave:be,delayLeave:Pe,afterLeave:Be}=Re,Qe=()=>{H.ctx.isUnmounted?o(me):a(me,Z,le)},tt=()=>{me._isLeaving&&me[Mo](!0),be(me,()=>{Qe(),Be&&Be()})};Pe?Pe(me,Qe,tt):tt()}else a(me,Z,le)},j=(H,Z,le,ce=!1,ge=!1)=>{const{type:me,props:$e,ref:Re,children:Ae,dynamicChildren:ye,shapeFlag:ke,patchFlag:be,dirs:Pe,cacheIndex:Be,memo:Qe}=H;if(be===-2&&(ge=!1),Re!=null&&(fl(),Ri(Re,null,le,H,!0),pl()),Be!=null&&(Z.renderCache[Be]=void 0),ke&256){Z.ctx.deactivate(H);return}const tt=ke&1&&Pe,nt=!gs(H);let Te;if(nt&&(Te=$e&&$e.onVnodeBeforeUnmount)&&xo(Te,Z,H),ke&6)te(H.component,le,ce);else{if(ke&128){H.suspense.unmount(le,ce);return}tt&&nr(H,null,Z,"beforeUnmount"),ke&64?H.type.remove(H,Z,le,Y,ce):ye&&!ye.hasOnce&&(me!==He||be>0&&be&64)?ue(ye,Z,le,!1,!0):(me===He&&be&384||!ge&&ke&16)&&ue(Ae,Z,le),ce&&G(H)}const Ye=Qe!=null&&Be==null;(nt&&(Te=$e&&$e.onVnodeUnmounted)||tt||Ye)&&da(()=>{Te&&xo(Te,Z,H),tt&&nr(H,null,Z,"unmounted"),Ye&&(H.el=null)},le)},G=H=>{const{type:Z,el:le,anchor:ce,transition:ge}=H;if(Z===He){ee(le,ce);return}if(Z===Tc){C(H);return}const me=()=>{o(le),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(H.shapeFlag&1&&ge&&!ge.persisted){const{leave:$e,delayLeave:Re}=ge,Ae=()=>$e(le,me);Re?Re(H.el,me,Ae):Ae()}else me()},ee=(H,Z)=>{let le;for(;H!==Z;)le=h(H),o(H),H=le;o(Z)},te=(H,Z,le)=>{const{bum:ce,scope:ge,job:me,subTree:$e,um:Re,m:Ae,a:ye}=H;n1(Ae),n1(ye),ce&&kc(ce),ge.stop(),me&&(me.flags|=8,j($e,H,Z,le)),Re&&da(Re,Z),da(()=>{H.isUnmounted=!0},Z)},ue=(H,Z,le,ce=!1,ge=!1,me=0)=>{for(let $e=me;$e{if(H.shapeFlag&6)return ne(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Z=h(H.anchor||H.el),le=Z&&Z[N3];return le?h(le):Z};let de=!1;const se=(H,Z,le)=>{let ce;H==null?Z._vnode&&(j(Z._vnode,null,null,!0),ce=Z._vnode.component):v(Z._vnode||null,H,Z,null,null,null,le),Z._vnode=H,de||(de=!0,Fv(ce),O3(),de=!1)},Y={p:v,um:j,m:K,r:G,mt:q,mc:M,pc:P,pbc:O,n:ne,o:e};return{render:se,hydrate:void 0,createApp:v_(se)}}function Gf({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 or({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function A_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ip(e,t,n=!1){const a=e.children,o=t.children;if(Tt(a)&&Tt(o))for(let l=0;l>1,e[n[s]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,r=n[l-1];l-- >0;)n[l]=r,r=t[r];return n}function o6(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:o6(t)}function n1(e){if(e)for(let t=0;te.__isSuspense;function N_(e,t){t&&t.pendingBranch?Tt(e)?t.effects.push(...e):t.effects.push(e):jC(e)}const He=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),wn=Symbol.for("v-cmt"),Tc=Symbol.for("v-stc"),Pi=[];let Aa=null;function _(e=!1){Pi.push(Aa=e?null:[])}function P_(){Pi.pop(),Aa=Pi[Pi.length-1]||null}let Yi=1;function td(e,t=!1){Yi+=e,e<0&&Aa&&t&&(Aa.hasOnce=!0)}function s6(e){return e.dynamicChildren=Yi>0?Aa||hs:null,P_(),Yi>0&&Aa&&Aa.push(e),e}function $(e,t,n,a,o,l){return s6(E(e,t,n,a,o,l,!0))}function ie(e,t,n,a,o){return s6(Q(e,t,n,a,o,!0))}function Wt(e){return e?e.__v_isVNode===!0:!1}function fr(e,t){return e.type===t.type&&e.key===t.key}const i6=({key:e})=>e??null,Mc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xn(e)||Gt(e)||It(e)?{i:Gn,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,a=0,o=null,l=e===He?0:1,r=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&i6(t),ref:t&&Mc(t),scopeId:A3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Gn};return s?(Lp(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=xn(n)?8:16),Yi>0&&!r&&Aa&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&Aa.push(u),u}const Q=I_;function I_(e,t=null,n=null,a=0,o=null,l=!1){if((!e||e===F3)&&(e=wn),Wt(e)){const s=Ho(e,t,!0);return n&&Lp(s,n),Yi>0&&!l&&Aa&&(s.shapeFlag&6?Aa[Aa.indexOf(e)]=s:Aa.push(s)),s.patchFlag=-2,s}if(K_(e)&&(e=e.__vccOpts),t){t=ul(t);let{class:s,style:u}=t;s&&!xn(s)&&(t.class=R(s)),tn(u)&&(Kd(u)&&!Tt(u)&&(u=Vn({},u)),t.style=We(u))}const r=xn(e)?1:r6(e)?128:P3(e)?64:tn(e)?4:It(e)?2:0;return E(e,t,n,a,o,r,l,!0)}function ul(e){return e?Kd(e)||Z3(e)?Vn({},e):e:null}function Ho(e,t,n=!1,a=!1){const{props:o,ref:l,patchFlag:r,children:s,transition:u}=e,c=t?pt(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&i6(c),ref:t&&t.ref?n&&l?Tt(l)?l.concat(Mc(t)):[l,Mc(t)]:Mc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ho(e.ssContent),ssFallback:e.ssFallback&&Ho(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Nr(d,u.clone(d)),d}function _t(e=" ",t=0){return Q(Xs,null,e,t)}function Nde(e,t){const n=Q(Tc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(_(),ie(wn,null,e)):Q(wn,null,e)}function $o(e){return e==null||typeof e=="boolean"?Q(wn):Tt(e)?Q(He,null,e.slice()):Wt(e)?el(e):Q(Xs,null,String(e))}function el(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ho(e)}function Lp(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Tt(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),Lp(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Z3(t)?t._ctx=Gn:o===3&&Gn&&(Gn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else It(t)?(t={default:t,_ctx:Gn},n=32):(t=String(t),a&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function pt(...e){const t={};for(let n=0;noa||Gn;let nd,G0;{const e=Dd(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),l=>{o.length>1?o.forEach(r=>r(l)):o[0](l)}};nd=t("__VUE_INSTANCE_SETTERS__",n=>oa=n),G0=t("__VUE_SSR_SETTERS__",n=>Gi=n)}const Cu=e=>{const t=oa;return nd(e),e.scope.on(),()=>{e.scope.off(),nd(t)}},a1=()=>{oa&&oa.scope.off(),nd(null)};function u6(e){return e.vnode.shapeFlag&4}let Gi=!1;function z_(e,t=!1,n=!1){t&&G0(t);const{props:a,children:o}=e.vnode,l=u6(e);S_(e,a,l,t),T_(e,o,n||t);const r=l?D_(e,t):void 0;return t&&G0(!1),r}function D_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,i_);const{setup:a}=n;if(a){fl();const o=e.setupContext=a.length>1?d6(e):null,l=Cu(e),r=bu(a,e,0,[e.props,o]),s=Q4(r);if(pl(),l(),(s||e.sp)&&!gs(e)&&D3(e),s){if(r.then(a1,a1),t)return r.then(u=>{o1(e,u)}).catch(u=>{Wd(u,e,0)});e.asyncDep=r}else o1(e,r)}else c6(e)}function o1(e,t,n){It(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:tn(t)&&(e.setupState=k3(t)),c6(e)}function c6(e,t,n){const a=e.type;e.render||(e.render=a.render||Qa);{const o=Cu(e);fl();try{u_(e)}finally{pl(),o()}}}const H_={get(e,t){return aa(e,"get",""),e[t]}};function d6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,H_),slots:e.slots,emit:e.emit,expose:t}}function Gd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(k3(Io(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ni)return Ni[n](e)},has(t,n){return n in t||n in Ni}})):e.proxy}function F_(e,t=!0){return It(e)?e.displayName||e.name:e.name||t&&e.__name}function K_(e){return It(e)&&"__vccOpts"in e}const x=(e,t)=>DC(e,t,Gi);function qe(e,t,n){try{td(-1);const a=arguments.length;return a===2?tn(t)&&!Tt(t)?Wt(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Wt(n)&&(n=[n]),Q(e,t,n))}finally{td(1)}}const W_="3.5.32",j_=Qa;/** +* @vue/runtime-dom v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let X0;const l1=typeof window<"u"&&window.trustedTypes;if(l1)try{X0=l1.createPolicy("vue",{createHTML:e=>e})}catch{}const f6=X0?e=>X0.createHTML(e):e=>e,q_="http://www.w3.org/2000/svg",U_="http://www.w3.org/1998/Math/MathML",Qo=typeof document<"u"?document:null,r1=Qo&&Qo.createElement("template"),Y_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Qo.createElementNS(q_,e):t==="mathml"?Qo.createElementNS(U_,e):n?Qo.createElement(e,{is:n}):Qo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Qo.createTextNode(e),createComment:e=>Qo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{r1.innerHTML=f6(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=r1.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Al="transition",fi="animation",Ts=Symbol("_vtc"),p6={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},h6=Vn({},L3,p6),G_=e=>(e.displayName="Transition",e.props=h6,e),qn=G_((e,{slots:t})=>qe(e_,v6(e),t)),lr=(e,t=[])=>{Tt(e)?e.forEach(n=>n(...t)):e&&e(...t)},s1=e=>e?Tt(e)?e.some(t=>t.length>1):e.length>1:!1;function v6(e){const t={};for(const L in e)L in p6||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=X_(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:C,onLeaveCancelled:S,onBeforeAppear:k=y,onAppear:T=b,onAppearCancelled:M=w}=t,A=(L,z,q,U)=>{L._enterCancelled=U,Nl(L,z?d:s),Nl(L,z?c:r),q&&q()},O=(L,z)=>{L._isLeaving=!1,Nl(L,f),Nl(L,g),Nl(L,h),z&&z()},I=L=>(z,q)=>{const U=L?T:b,F=()=>A(z,L,q);lr(U,[z,F]),i1(()=>{Nl(z,L?u:l),Eo(z,L?d:s),s1(U)||u1(z,a,v,F)})};return Vn(t,{onBeforeEnter(L){lr(y,[L]),Eo(L,l),Eo(L,r)},onBeforeAppear(L){lr(k,[L]),Eo(L,u),Eo(L,c)},onEnter:I(!1),onAppear:I(!0),onLeave(L,z){L._isLeaving=!0;const q=()=>O(L,z);Eo(L,f),L._enterCancelled?(Eo(L,h),J0(L)):(J0(L),Eo(L,h)),i1(()=>{L._isLeaving&&(Nl(L,f),Eo(L,g),s1(C)||u1(L,a,m,q))}),lr(C,[L,q])},onEnterCancelled(L){A(L,!1,void 0,!0),lr(w,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),lr(M,[L])},onLeaveCancelled(L){O(L),lr(S,[L])}})}function X_(e){if(e==null)return null;if(tn(e))return[Xf(e.enter),Xf(e.leave)];{const t=Xf(e);return[t,t]}}function Xf(e){return sC(e)}function Eo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ts]||(e[Ts]=new Set)).add(t)}function Nl(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Ts];n&&(n.delete(t),n.size||(e[Ts]=void 0))}function i1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let J_=0;function u1(e,t,n,a){const o=e._endId=++J_,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:r,timeout:s,propCount:u}=m6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,h),l()},h=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=a(`${Al}Delay`),l=a(`${Al}Duration`),r=c1(o,l),s=a(`${fi}Delay`),u=a(`${fi}Duration`),c=c1(s,u);let d=null,f=0,h=0;t===Al?r>0&&(d=Al,f=r,h=l.length):t===fi?c>0&&(d=fi,f=c,h=u.length):(f=Math.max(r,c),d=f>0?r>c?Al:fi:null,h=d?d===Al?l.length:u.length:0);const g=d===Al&&/\b(?:transform|all)(?:,|$)/.test(a(`${Al}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function c1(e,t){for(;e.lengthd1(n)+d1(e[a])))}function d1(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function J0(e){return(e?e.ownerDocument:document).body.offsetHeight}function Z_(e,t,n){const a=e[Ts];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ad=Symbol("_vod"),g6=Symbol("_vsh"),At={name:"show",beforeMount(e,{value:t},{transition:n}){e[ad]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),pi(e,!0),a.enter(e)):a.leave(e,()=>{pi(e,!1)}):pi(e,t))},beforeUnmount(e,{value:t}){pi(e,t)}};function pi(e,t){e.style.display=t?e[ad]:"none",e[g6]=!t}const Q_=Symbol(""),eS=/(?:^|;)\s*display\s*:/;function tS(e,t,n){const a=e.style,o=xn(n);let l=!1;if(n&&!o){if(t)if(xn(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&Oc(a,s,"")}else for(const r in t)n[r]==null&&Oc(a,r,"");for(const r in n)r==="display"&&(l=!0),Oc(a,r,n[r])}else if(o){if(t!==n){const r=a[Q_];r&&(n+=";"+r),a.cssText=n,l=eS.test(n)}}else t&&e.removeAttribute("style");ad in e&&(e[ad]=l?a.display:"",e[g6]&&(a.display="none"))}const f1=/\s*!important$/;function Oc(e,t,n){if(Tt(n))n.forEach(a=>Oc(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=nS(e,t);f1.test(n)?e.setProperty(Zl(a),n.replace(f1,""),"important"):e[a]=n}}const p1=["Webkit","Moz","ms"],Jf={};function nS(e,t){const n=Jf[t];if(n)return n;let a=va(t);if(a!=="filter"&&a in e)return Jf[t]=a;a=zd(a);for(let o=0;oZf||(rS.then(()=>Zf=0),Zf=Date.now());function iS(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;lo(uS(a,n.value),t,5,[a])};return n.value=e,n.attached=sS(),n}function uS(e,t){if(Tt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const b1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cS=(e,t,n,a,o,l)=>{const r=o==="svg";t==="class"?Z_(e,a,r):t==="style"?tS(e,n,a):Pd(t)?Id(t)||oS(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dS(e,t,a,r))?(m1(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&v1(e,t,a,r,l,t!=="value")):e._isVueCE&&(fS(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!xn(a)))?m1(e,va(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),v1(e,t,a,r))};function dS(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&b1(t)&&It(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return b1(t)&&xn(n)?!1:t in e}function fS(e,t){const n=e._def.props;if(!n)return!1;const a=va(t);return Array.isArray(n)?n.some(o=>va(o)===a):Object.keys(n).some(o=>va(o)===a)}const y6=new WeakMap,b6=new WeakMap,od=Symbol("_moveCb"),w1=Symbol("_enterCb"),pS=e=>(delete e.props.mode,e),hS=pS({name:"TransitionGroup",props:Vn({},h6,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ht(),a=I3();let o,l;return ho(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!yS(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(vS),o.forEach(mS);const s=o.filter(gS);J0(n.vnode.el),s.forEach(u=>{const c=u.el,d=c.style;Eo(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[od]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[od]=null,Nl(c,r))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const r=jt(e),s=v6(r);let u=r.tag||He;if(o=[],l)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&a.classList.add(s)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:r}=m6(a);return l.removeChild(a),r}const Ms=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Tt(t)?n=>kc(t,n):t};function bS(e){e.target.composing=!0}function C1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cl=Symbol("_assign");function _1(e,t,n){return t&&(e=e.trim()),n&&(e=yp(e)),e}const _6={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[cl]=Ms(o);const l=a||o.props&&o.props.type==="number";zl(e,t?"change":"input",r=>{r.target.composing||e[cl](_1(e.value,n,l))}),(n||l)&&zl(e,"change",()=>{e.value=_1(e.value,n,l)}),t||(zl(e,"compositionstart",bS),zl(e,"compositionend",C1),zl(e,"change",C1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:l}},r){if(e[cl]=Ms(r),e.composing)return;const s=(l||e.type==="number")&&!/^0\d/.test(e.value)?yp(e.value):e.value,u=t??"";if(s===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},S6={deep:!0,created(e,t,n){e[cl]=Ms(n),zl(e,"change",()=>{const a=e._modelValue,o=k6(e),l=e.checked,r=e[cl];if(Tt(a)){const s=o3(a,o),u=s!==-1;if(l&&!u)r(a.concat(o));else if(!l&&u){const c=[...a];c.splice(s,1),r(c)}}else if(Ld(a)){const s=new Set(a);l?s.add(o):s.delete(o),r(s)}else r(E6(e,l))})},mounted:S1,beforeUpdate(e,t,n){e[cl]=Ms(n),S1(e,t,n)}};function S1(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(Tt(t))o=o3(t,a.props.value)>-1;else if(Ld(t))o=t.has(a.props.value);else{if(t===n)return;o=Ar(t,E6(e,!0))}e.checked!==o&&(e.checked=o)}const x6={created(e,{value:t},n){e.checked=Ar(t,n.props.value),e[cl]=Ms(n),zl(e,"change",()=>{e[cl](k6(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[cl]=Ms(a),t!==n&&(e.checked=Ar(t,a.props.value))}};function k6(e){return"_value"in e?e._value:e.value}function E6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wS=["ctrl","shift","alt","meta"],CS={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)=>wS.some(n=>e[`${n}Key`]&&!t.includes(n))},Xe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...l)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const l=Zl(o.key);if(t.some(r=>r===l||_S[r]===l))return e(o)})},SS=Vn({patchProp:cS},Y_);let x1;function T6(){return x1||(x1=O_(SS))}const Ul=(...e)=>{T6().render(...e)},M6=(...e)=>{const t=T6().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=kS(a);if(!o)return;const l=t._component;!It(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,xS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function xS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function kS(e){return xn(e)?document.querySelector(e):e}const we={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},k1=["left","center","right"],ES=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Qf=["sun","mon","tue","wed","thu","fri","sat"],at="update:modelValue",yt="change",Sn="input",Xd=11,O6=2,E1=Symbol("INSTALLED_KEY"),vo=["","default","small","large"];function $6(e,t){var n;const a=qt();return ma(()=>{a.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Rr(a)}function jr(e){return i3()?(u3(e),!0):!1}function Xn(e){return typeof e=="function"?e():i(e)}function TS(e){if(!Gt(e))return Nt(e);const t=new Proxy({},{get(n,a,o){return i(Reflect.get(e.value,a,o))},set(n,a,o){return Gt(e.value[a])&&!Gt(o)?e.value[a].value=o:e.value[a]=o,!0},deleteProperty(n,a){return Reflect.deleteProperty(e.value,a)},has(n,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Nt(t)}function MS(e){return TS(x(e))}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const OS=e=>typeof e<"u",A6=e=>e!=null,$S=Object.prototype.toString,AS=e=>$S.call(e)==="[object Object]",R6=(e,t,n)=>Math.min(n,Math.max(t,e)),to=()=>{},ld=RS();function RS(){var e,t;return Rt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function N6(e,t){function n(...a){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(l)})}return n}function NS(e,t={}){let n,a,o=to;const l=s=>{clearTimeout(s),o(),o=to};return s=>{const u=Xn(e),c=Xn(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(a&&(l(a),a=null),Promise.resolve(s())):new Promise((d,f)=>{o=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&l(n),a=null,d(s())},c)),n=setTimeout(()=>{a&&l(a),a=null,d(s())},u)})}}function PS(...e){let t=0,n,a=!0,o=to,l,r,s,u,c;!Gt(e[0])&&typeof e[0]=="object"?{delay:r,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,s=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=to)};return h=>{const g=Xn(r),p=Date.now()-t,v=()=>l=h();return d(),g<=0?(t=Date.now(),v()):(p>g&&(u||!a)?(t=Date.now(),v()):s&&(l=new Promise((m,y)=>{o=c?y:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-p))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,l)}}function IS(e){return ht()}function _u(e,t=200,n={}){return N6(NS(t,n),e)}function LS(e,t=200,n={}){const a=V(e.value),o=_u(()=>{a.value=e.value},t,n);return fe(e,()=>o()),a}function P6(e,t=200,n=!1,a=!0,o=!1){return N6(PS(t,n,a,o),e)}function Vp(e,t=!0,n){IS()?mt(e,n):t?e():Ie(e)}function Os(e,t,n={}){const{immediate:a=!0}=n,o=V(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function s(){o.value=!1,r()}function u(...c){r(),o.value=!0,l=setTimeout(()=>{o.value=!1,l=null,e(...c)},Xn(t))}return a&&(o.value=!0,Rt&&u()),jr(s),{isPending:Rr(o),start:u,stop:s}}const mo=Rt?window:void 0,VS=Rt?window.document:void 0;function Mn(e){var t;const n=Xn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vt(...e){let t,n,a,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,o]=e,t=mo):[t,n,a,o]=e,!t)return to;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),u=fe(()=>[Mn(t),Xn(o)],([d,f])=>{if(r(),!d)return;const h=AS(f)?{...f}:f;l.push(...n.flatMap(g=>a.map(p=>s(d,g,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return jr(c),c}let T1=!1;function Bp(e,t,n={}){const{window:a=mo,ignore:o=[],capture:l=!0,detectIframe:r=!1}=n;if(!a)return to;ld&&!T1&&(T1=!0,Array.from(a.document.body.children).forEach(v=>v.addEventListener("click",to)),a.document.documentElement.addEventListener("click",to));let s=!0;const u=v=>Xn(o).some(m=>{if(typeof m=="string")return Array.from(a.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=Mn(m);return y&&(v.target===y||v.composedPath().includes(y))}});function c(v){const m=Xn(v);return m&&m.$.subTree.shapeFlag===16}function d(v,m){const y=Xn(v),b=y.$.subTree&&y.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===m.target||m.composedPath().includes(w.el))}const f=v=>{const m=Mn(e);if(v.target!=null&&!(!(m instanceof Element)&&c(e)&&d(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(s=!u(v)),!s){s=!0;return}t(v)}};let h=!1;const g=[Vt(a,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(v))},{passive:!0,capture:l}),Vt(a,"pointerdown",v=>{const m=Mn(e);s=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Vt(a,"blur",v=>{setTimeout(()=>{var m;const y=Mn(e);((m=a.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(y!=null&&y.contains(a.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>g.forEach(v=>v())}function BS(){const e=V(!1),t=ht();return t&&mt(()=>{e.value=!0},t),e}function Jd(e){const t=BS();return x(()=>(t.value,!!e()))}function Su(e,t,n={}){const{window:a=mo,...o}=n;let l;const r=Jd(()=>a&&"MutationObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const h=Xn(e),g=(Array.isArray(h)?h:[h]).map(Mn).filter(A6);return new Set(g)}),c=fe(()=>u.value,h=>{s(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(g=>l.observe(g,o)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{c(),s()};return jr(f),{isSupported:r,stop:f,takeRecords:d}}function zS(e={}){var t;const{window:n=mo,deep:a=!0,triggerOnRemoval:o=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(a)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},s=V(),u=()=>{s.value=r()};return n&&(Vt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Vt(n,"focus",u,!0)),o&&Su(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function DS(e,t={}){const{window:n=mo}=t,a=Jd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=V(!1),r=c=>{l.value=c.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},u=ma(()=>{a.value&&(s(),o=n.matchMedia(Xn(e)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),l.value=o.matches)});return jr(()=>{u(),s(),o=void 0}),l}function HS(e){return JSON.parse(JSON.stringify(e))}function FS(e,t,n={}){const{window:a=mo,initialValue:o,observe:l=!1}=n,r=V(o),s=x(()=>{var c;return Mn(t)||((c=a==null?void 0:a.document)==null?void 0:c.documentElement)});function u(){var c;const d=Xn(e),f=Xn(s);if(f&&a&&d){const h=(c=a.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||o}}return l&&Su(s,u,{attributeFilter:["style","class"],window:a}),fe([s,()=>Xn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),fe(r,c=>{var d;const f=Xn(e);(d=s.value)!=null&&d.style&&f&&(c==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,c))}),r}function KS(e={}){const{document:t=VS}=e;if(!t)return V("visible");const n=V(t.visibilityState);return Vt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function en(e,t,n={}){const{window:a=mo,...o}=n;let l;const r=Jd(()=>a&&"ResizeObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const f=Xn(e);return Array.isArray(f)?f.map(h=>Mn(h)):[Mn(f)]}),c=fe(u,f=>{if(s(),r.value&&a){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return jr(d),{isSupported:r,stop:d}}function M1(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:l=!0,updateTiming:r="sync"}=t,s=V(0),u=V(0),c=V(0),d=V(0),f=V(0),h=V(0),g=V(0),p=V(0);function v(){const y=Mn(e);if(!y){n&&(s.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,g.value=0,p.value=0);return}const b=y.getBoundingClientRect();s.value=b.height,u.value=b.bottom,c.value=b.left,d.value=b.right,f.value=b.top,h.value=b.width,g.value=b.x,p.value=b.y}function m(){r==="sync"?v():r==="next-frame"&&requestAnimationFrame(()=>v())}return en(e,m),fe(()=>Mn(e),y=>!y&&m()),Su(e,m,{attributeFilter:["style","class"]}),o&&Vt("scroll",m,{capture:!0,passive:!0}),a&&Vt("resize",m,{passive:!0}),Vp(()=>{l&&m()}),{height:s,bottom:u,left:c,right:d,top:f,width:h,x:g,y:p,update:m}}function Z0(e,t={width:0,height:0},n={}){const{window:a=mo,box:o="content-box"}=n,l=x(()=>{var f,h;return(h=(f=Mn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=V(t.width),s=V(t.height),{stop:u}=en(e,([f])=>{const h=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&l.value){const g=Mn(e);if(g){const p=g.getBoundingClientRect();r.value=p.width,s.value=p.height}}else if(h){const g=Array.isArray(h)?h:[h];r.value=g.reduce((p,{inlineSize:v})=>p+v,0),s.value=g.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,s.value=f.contentRect.height},n);Vp(()=>{const f=Mn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=fe(()=>Mn(e),f=>{r.value=f?t.width:0,s.value=f?t.height:0});function d(){u(),c()}return{width:r,height:s,stop:d}}function WS(e,t,n={}){const{root:a,rootMargin:o="0px",threshold:l=0,window:r=mo,immediate:s=!0}=n,u=Jd(()=>r&&"IntersectionObserver"in r),c=x(()=>{const p=Xn(e);return(Array.isArray(p)?p:[p]).map(Mn).filter(A6)});let d=to;const f=V(s),h=u.value?fe(()=>[c.value,Mn(a),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const m=new IntersectionObserver(t,{root:Mn(v),rootMargin:o,threshold:l});p.forEach(y=>y&&m.observe(y)),d=()=>{m.disconnect(),d=to}},{immediate:s,flush:"post"}):to,g=()=>{d(),h(),f.value=!1};return jr(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function I6(e,t,n,a={}){var o,l,r;const{clone:s=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=a,g=ht(),p=n||(g==null?void 0:g.emit)||((o=g==null?void 0:g.$emit)==null?void 0:o.bind(g))||((r=(l=g==null?void 0:g.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(g==null?void 0:g.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=w=>s?typeof s=="function"?s(w):HS(w):w,y=()=>OS(e[t])?m(e[t]):f,b=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=y(),C=V(w);let S=!1;return fe(()=>e[t],k=>{S||(S=!0,C.value=m(k),Ie(()=>S=!1))}),fe(C,k=>{!S&&(k!==e[t]||d)&&b(k)},{deep:d}),C}else return x({get(){return y()},set(w){b(w)}})}function jS(e={}){const{window:t=mo}=e;if(!t)return V(!1);const n=V(t.document.hasFocus());return Vt(t,"blur",()=>{n.value=!1}),Vt(t,"focus",()=>{n.value=!0}),n}function zp(e={}){const{window:t=mo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:r="inner"}=e,s=V(n),u=V(a),c=()=>{t&&(r==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):l?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),Vp(c),Vt("resize",c,{passive:!0}),o){const d=DS("(orientation: portrait)");fe(d,()=>c())}return{width:s,height:u}}const Zd=()=>Rt&&/firefox/i.test(window.navigator.userAgent),L6=()=>Rt&&/android/i.test(window.navigator.userAgent);/** +* @vue/shared v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Yt=()=>{},qS=Object.prototype.hasOwnProperty,An=(e,t)=>qS.call(e,t),Ve=Array.isArray,$s=e=>V6(e)==="[object Date]",ct=e=>typeof e=="function",Ue=e=>typeof e=="string",Mt=e=>e!==null&&typeof e=="object",As=e=>(Mt(e)||ct(e))&&ct(e.then)&&ct(e.catch),US=Object.prototype.toString,V6=e=>US.call(e),Q0=e=>V6(e)==="[object Object]",Dp=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},YS=/-\w/g,Hp=Dp(e=>e.replace(YS,t=>t.slice(1).toUpperCase())),GS=/\B([A-Z])/g,XS=Dp(e=>e.replace(GS,"-$1").toLowerCase()),JS=Dp(e=>e.charAt(0).toUpperCase()+e.slice(1));var B6=typeof global=="object"&&global&&global.Object===Object&&global,ZS=typeof self=="object"&&self&&self.Object===Object&&self,go=B6||ZS||Function("return this")(),qa=go.Symbol,z6=Object.prototype,QS=z6.hasOwnProperty,ex=z6.toString,hi=qa?qa.toStringTag:void 0;function tx(e){var t=QS.call(e,hi),n=e[hi];try{e[hi]=void 0;var a=!0}catch{}var o=ex.call(e);return a&&(t?e[hi]=n:delete e[hi]),o}var nx=Object.prototype,ax=nx.toString;function ox(e){return ax.call(e)}var lx="[object Null]",rx="[object Undefined]",O1=qa?qa.toStringTag:void 0;function qr(e){return e==null?e===void 0?rx:lx:O1&&O1 in Object(e)?tx(e):ox(e)}function Fo(e){return e!=null&&typeof e=="object"}var sx="[object Symbol]";function Qd(e){return typeof e=="symbol"||Fo(e)&&qr(e)==sx}function Fp(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=Ix)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zx(e){return function(){return e}}var rd=function(){try{var e=Yr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Dx=rd?function(e,t){return rd(e,"toString",{configurable:!0,enumerable:!1,value:zx(t),writable:!0})}:Kp,F6=Bx(Dx);function Hx(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var qx=9007199254740991,Ux=/^(?:0|[1-9]\d*)$/;function ef(e,t){var n=typeof e;return t=t??qx,!!t&&(n=="number"||n!="symbol"&&Ux.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Xx}function Zs(e){return e!=null&&qp(e.length)&&!Wp(e)}function Jx(e,t,n){if(!ba(n))return!1;var a=typeof t;return(a=="number"?Zs(n)&&ef(t,n.length):a=="string"&&t in n)?xu(n[t],e):!1}function Zx(e){return j6(function(t,n){var a=-1,o=n.length,l=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(o--,l):void 0,r&&Jx(n[0],n[1],r)&&(l=o<3?void 0:l,o=1),t=Object(t);++a-1}function ik(e,t){var n=this.__data__,a=nf(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Sl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Tu(s,t-1,n,a,o):Jp(o,s):a||(o[o.length]=s)}return o}function sd(e){var t=e==null?0:e.length;return t?Tu(e,1):[]}function J6(e){return F6(W6(e,void 0,sd),e+"")}var Zp=X6(Object.getPrototypeOf,Object),Sk="[object Object]",xk=Function.prototype,kk=Object.prototype,Z6=xk.toString,Ek=kk.hasOwnProperty,Tk=Z6.call(Object);function Qp(e){if(!Fo(e)||qr(e)!=Sk)return!1;var t=Zp(e);if(t===null)return!0;var n=Ek.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Z6.call(n)==Tk}function Mk(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++a=t?e:t)),e}function gr(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Ii(n),n=n===n?n:0),t!==void 0&&(t=Ii(t),t=t===t?t:0),Ok(Ii(e),t,n)}function $k(){this.__data__=new Sl,this.size=0}function Ak(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Rk(e){return this.__data__.get(e)}function Nk(e){return this.__data__.has(e)}var Pk=200;function Ik(e,t){var n=this.__data__;if(n instanceof Sl){var a=n.__data__;if(!Qi||a.lengths))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,g=n&uT?new eu:void 0;for(l.set(e,t),l.set(t,e);++f=t||T<0||f&&M>=l}function y(){var k=a0();if(m(k))return b(k);s=setTimeout(y,v(k))}function b(k){return s=void 0,h&&a?g(k):(a=o=void 0,r)}function w(){s!==void 0&&clearTimeout(s),c=0,a=u=o=s=void 0}function C(){return s===void 0?r:b(a0())}function S(){var k=a0(),T=m(k);if(a=arguments,o=this,u=k,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),g(u)}return s===void 0&&(s=setTimeout(y,t)),r}return S.cancel=w,S.flush=C,S}function o2(e,t,n){(n!==void 0&&!xu(e[t],n)||n===void 0&&!(t in e))&&tf(e,t,n)}function g8(e){return Fo(e)&&Zs(e)}function l2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ZT(e){return Js(e,Eu(e))}function QT(e,t,n,a,o,l,r){var s=l2(e,n),u=l2(t,n),c=r.get(u);if(c){o2(e,n,c);return}var d=l?l(s,u,n+"",e,t,r):void 0,f=d===void 0;if(f){var h=ya(u),g=!h&&Ji(u),p=!h&&!g&&Gp(u);d=u,h||g||p?ya(s)?d=s:g8(s)?d=H6(s):g?(f=!1,d=e8(u,!0)):p?(f=!1,d=l8(u,!0)):d=[]:Qp(u)||Xi(u)?(d=s,Xi(s)?d=ZT(s):(!ba(s)||Wp(s))&&(d=r8(u))):f=!1}f&&(r.set(u,d),o(d,u,a,l,r),r.delete(u)),o2(e,n,d)}function y8(e,t,n,a,o){e!==t&&m8(t,function(l,r){if(o||(o=new no),ba(l))QT(e,t,r,n,y8,a,o);else{var s=a?a(l2(e,r),l,r+"",e,t,o):void 0;s===void 0&&(s=l),o2(e,r,s)}},Eu)}function eM(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function b8(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return K6(e,v8(t),o,!0)}function tM(e,t){var n=-1,a=Zs(e)?Array(e.length):[];return YT(e,function(o,l,r){a[++n]=t(o,l,r)}),a}function nM(e,t){var n=ya(e)?Fp:tM;return n(e,v8(t))}function w8(e,t){return Tu(nM(e,t),1)}var aM=1/0;function oM(e){var t=e==null?0:e.length;return t?Tu(e,aM):[]}function Ns(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),l}),Js(e,o8(e),n),a&&(n=Vi(n,dM|fM|pM,cM));for(var o=t.length;o--;)uM(n,t[o]);return n});function _8(e,t,n,a){if(!ba(e))return e;t=Qs(t,e);for(var o=-1,l=t.length,r=l-1,s=e;s!=null&&++o=wM){var c=bM(e);if(c)return nh(c);r=!1,o=c8,u=new eu}else u=s;e:for(;++ae===void 0,Dt=e=>typeof e=="boolean",De=e=>typeof e=="number",ha=e=>!e&&e!==0||Ve(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,_a=e=>typeof Element>"u"?!1:e instanceof Element,Sa=e=>Cn(e),_M=e=>Ue(e)?!Number.isNaN(Number(e)):!1,Ou=e=>e===window,Pl=new Map;if(Rt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Pl.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function om(e,t){let n=[];return Ve(t.arg)?n=t.arg:_a(t.arg)&&n.push(t.arg),function(a,o){const l=t.instance.popperRef,r=a.target,s=o==null?void 0:o.target,u=!t||!t.instance,c=!r||!s,d=e.contains(r)||e.contains(s),f=e===r,h=n.length&&n.some(p=>p==null?void 0:p.contains(r))||n.length&&n.includes(s),g=l&&(l.contains(r)||l.contains(s));u||c||d||f||h||g||t.value(a,o)}}const Yl={beforeMount(e,t){Pl.has(e)||Pl.set(e,[]),Pl.get(e).push({documentHandler:om(e,t),bindingFn:t.value})},updated(e,t){Pl.has(e)||Pl.set(e,[]);const n=Pl.get(e),a=n.findIndex(l=>l.bindingFn===t.oldValue),o={documentHandler:om(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Pl.delete(e)}},SM=100,xM=600,rc="_RepeatClick",ud={beforeMount(e,t){const n=t.value,{interval:a=SM,delay:o=xM}=ct(n)?{}:n;let l,r;const s=()=>ct(n)?n():n.handler(),u=()=>{r&&(clearTimeout(r),r=void 0),l&&(clearInterval(l),l=void 0)},c=d=>{d.button===0&&(u(),s(),document.addEventListener("mouseup",u,{once:!0}),r=setTimeout(()=>{l=setInterval(()=>{s()},a)},o))};e[rc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[rc])return;const{start:t,clear:n}=e[rc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[rc]=null}},kM='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',S8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,lm=e=>typeof Element>"u"?!1:e instanceof Element,EM=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,rm=e=>Array.from(e.querySelectorAll(kM)).filter(t=>Lr(t)&&EM(t)),Lr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$c=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},x8=e=>!e.getAttribute("aria-owns"),k8=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},$u=(e,t)=>{if(!e||!e.focus)return;let n=!1;lm(e)&&!Lr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),lm(e)&&n&&e.removeAttribute("tabindex")},Ac=e=>{e&&($u(e),!x8(e)&&e.click())},Pn=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=e==null?void 0:e(o);if(n===!1||!l)return t==null?void 0:t(o)},sm=e=>t=>t.pointerType==="mouse"?e(t):void 0,Kt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=E8(e);if(t){if(Object.values(we).includes(t))return t;switch(t){case" ":return we.space;default:return""}}return""},E8=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&L6()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},r2="_trap-focus-children",yr=[],im=e=>{if(yr.length===0)return;const t=Kt(e),n=yr[yr.length-1][r2];if(n.length>0&&t===we.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],l=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),l&&!a&&(e.preventDefault(),n[0].focus())}},TM={beforeMount(e){e[r2]=rm(e),yr.push(e),yr.length<=1&&document.addEventListener("keydown",im)},updated(e){Ie(()=>{e[r2]=rm(e)})},unmounted(){yr.shift(),yr.length===0&&document.removeEventListener("keydown",im)}};var um=!1,pr,s2,i2,Rc,Nc,T8,Pc,u2,c2,d2,M8,f2,p2,O8,$8;function Ca(){if(!um){um=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f2=/\b(iPhone|iP[ao]d)/.exec(e),p2=/\b(iP[ao]d)/.exec(e),d2=/Android/i.exec(e),O8=/FBAN\/\w+;/i.exec(e),$8=/Mobile/i.exec(e),M8=!!/Win64/.exec(e),t){pr=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,pr&&document&&document.documentMode&&(pr=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);T8=a?parseFloat(a[1])+4:pr,s2=t[2]?parseFloat(t[2]):NaN,i2=t[3]?parseFloat(t[3]):NaN,Rc=t[4]?parseFloat(t[4]):NaN,Rc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Nc=t&&t[1]?parseFloat(t[1]):NaN):Nc=NaN}else pr=s2=i2=Nc=Rc=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Pc=o?parseFloat(o[1].replace("_",".")):!0}else Pc=!1;u2=!!n[2],c2=!!n[3]}else Pc=u2=c2=!1}}var h2={ie:function(){return Ca()||pr},ieCompatibilityMode:function(){return Ca()||T8>pr},ie64:function(){return h2.ie()&&M8},firefox:function(){return Ca()||s2},opera:function(){return Ca()||i2},webkit:function(){return Ca()||Rc},safari:function(){return h2.webkit()},chrome:function(){return Ca()||Nc},windows:function(){return Ca()||u2},osx:function(){return Ca()||Pc},linux:function(){return Ca()||c2},iphone:function(){return Ca()||f2},mobile:function(){return Ca()||f2||p2||d2||$8},nativeApp:function(){return Ca()||O8},android:function(){return Ca()||d2},ipad:function(){return Ca()||p2}},MM=h2,OM=!!(typeof window<"u"&&window.document&&window.document.createElement),$M={canUseDOM:OM},A8=$M,R8;A8.canUseDOM&&(R8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function AM(e,t){if(!A8.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&R8&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var RM=AM,cm=10,dm=40,fm=800;function N8(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*cm,o=n*cm,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=dm,o*=dm):(a*=fm,o*=fm)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}N8.getEventType=function(){return MM.firefox()?"DOMMouseScroll":RM("wheel")?"wheel":"mousewheel"};var NM=N8;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const Ic="_Mousewheel",pm=function(e,t){if(e&&e.addEventListener){P8(e);const n=function(a){const o=NM(a);t&&Reflect.apply(t,this,[a,o])};e[Ic]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},P8=e=>{var t;(t=e[Ic])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[Ic].wheelHandler),e[Ic]=null)},PM={beforeMount(e,t){pm(e,t.value)},unmounted(e){P8(e)},updated(e,t){t.value!==t.oldValue&&pm(e,t.value)}},tu=e=>Object.keys(e),I8=e=>Object.entries(e),Wl=(e,t,n)=>({get value(){return _n(e,t,n)},set value(a){mM(e,t,a)}}),L8="__epPropKey",J=e=>e,IM=e=>Mt(e)&&!!e[L8],yo=(e,t)=>{if(!Mt(e)||IM(e))return e;const{values:n,required:a,default:o,type:l,validator:r}=e,s={type:l,required:!!a,validator:n||r?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),An(e,"default")&&d.push(o),c||(c=d.includes(u))),r&&(c||(c=r(u))),!c&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");j_(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[L8]:!0};return An(e,"default")&&(s.default=o),s},Ce=e=>Ns(Object.entries(e).map(([t,n])=>[t,yo(n,t)])),Au=Ce({to:{type:J([String,Object]),required:!0},disabled:Boolean}),LM=Ce({zIndex:{type:J([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Au.to.type,default:"body"}}),VM={scroll:({scrollTop:e,fixed:t})=>De(e)&&Dt(t),[yt]:e=>Dt(e)};var V8=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function on(e,t){throw new V8(`[${e}] ${t}`)}function ft(e,t){{const n=Ue(e)?new V8(`[${e}] ${t}`):e;console.warn(n)}}const BM=["class","style"],zM=/^on[A-Z]/,uf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=x(()=>((n==null?void 0:n.value)||[]).concat(BM)),o=ht();return o?x(()=>{var l;return Ns(Object.entries((l=o.proxy)==null?void 0:l.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&zM.test(r))))}):(ft("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x(()=>({})))};function ah(){const e=qt(),t=V(0),n=x(()=>({minWidth:`${Math.max(t.value,Xd)}px`}));return en(e,()=>{var o;t.value=((o=e.value)==null?void 0:o.getBoundingClientRect().width)??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const Lo=({from:e,replacement:t,scope:n,version:a,ref:o,type:l="API"},r)=>{fe(()=>i(r),s=>{s&&ft(n,`[${l}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. +For more detail, please visit: ${o} +`)},{immediate:!0})},oh=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),l0=e=>JS(e),DM="utils/dom/style",B8=(e="")=>e.split(" ").filter(t=>!!t.trim()),Vo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ka=(e,t)=>{!e||!t.trim()||e.classList.add(...B8(t))},sa=(e,t)=>{!e||!t.trim()||e.classList.remove(...B8(t))},ol=(e,t)=>{var a;if(!Rt||!e||!t||S8(e))return"";let n=Hp(t);n==="float"&&(n="cssFloat");try{const o=e.style[n];if(o)return o;const l=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return l?l[n]:""}catch{return e.style[n]}},z8=(e,t,n)=>{if(!(!e||!t))if(Mt(t))I8(t).forEach(([a,o])=>z8(e,a,o));else{const a=Hp(t);e.style[a]=n}};function cn(e,t="px"){if(!e&&e!==0)return"";if(De(e)||_M(e))return`${e}${t}`;if(Ue(e))return e;ft(DM,"binding value must be a string or number")}const D8=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=V(!1),r=(h,g)=>{if(e.value){const{offsetX:p,offsetY:v}=o,m=e.value.getBoundingClientRect(),y=m.left,b=m.top,w=m.width,C=m.height,S=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-y+p,M=-b+v,A=S-y-w+p,O=k-b-(C{const g=h.clientX,p=h.clientY,{offsetX:v,offsetY:m}=o,y=w=>{l.value||(l.value=!0),r(v+w.clientX-g,m+w.clientY-p)},b=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:g}=o;r(h,g)};return mt(()=>{ma(()=>{n.value?u():c()})}),Lt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var HM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const FM=e=>(t,n)=>KM(t,n,i(e)),KM=(e,t,n)=>_n(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),WM=e=>({lang:x(()=>i(e).name),locale:Gt(e)?e:V(e),t:FM(e)}),H8=Symbol("localeContextKey"),xt=e=>{const t=e||Ne(H8,V());return WM(x(()=>t.value||HM))},Bi="el",jM="is-",rr=(e,t,n,a,o)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),a&&(l+=`__${a}`),o&&(l+=`--${o}`),l},F8=Symbol("namespaceContextKey"),lh=e=>{const t=e||(ht()?Ne(F8,V(Bi)):V(Bi));return x(()=>i(t)||Bi)},ve=(e,t)=>{const n=lh(t);return{namespace:n,b:(v="")=>rr(n.value,e,v,"",""),e:v=>v?rr(n.value,e,"",v,""):"",m:v=>v?rr(n.value,e,"","",v):"",be:(v,m)=>v&&m?rr(n.value,e,v,m,""):"",em:(v,m)=>v&&m?rr(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?rr(n.value,e,v,"",m):"",bem:(v,m,y)=>v&&m&&y?rr(n.value,e,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${jM}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${e}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function qM(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Ua=e=>Rt?window.requestAnimationFrame(e):setTimeout(e,16),ml=e=>Rt?window.cancelAnimationFrame(e):clearTimeout(e),UM=(e,t)=>{if(!Rt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=ol(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},rh=(e,t)=>{if(!Rt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(UM(n,t))return n;S8(n)?n=n.host:n=n.parentNode}return n};let sc;const K8=e=>{var l;if(!Rt)return 0;if(sc!==void 0)return sc;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),sc=n-o,sc};function sh(e,t){if(!Rt)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=o+t.offsetHeight,r=e.scrollTop,s=r+e.clientHeight;os&&(e.scrollTop=l-e.clientHeight)}function YM(e,t,n,a,o){const l=Date.now();let r;const s=()=>{const u=Date.now()-l,c=qM(u>a?a:u,t,n,a);Ou(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{r&&ml(r)}}const hm=(e,t)=>Ou(t)?e.ownerDocument.documentElement:t,vm=e=>Ou(e)?window.scrollY:e.scrollTop,cf=(e,t={})=>{Gt(e)||on("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ve("popup"),a=x(()=>n.bm("parent","hidden"));let o=0,l=!1,r="0",s=!1;const u=()=>{s||(s=!0,setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=r,sa(document.body,a.value))},200))};fe(e,c=>{if(!c){u();return}s=!1,l=!Vo(document.body,a.value),l&&(r=document.body.style.width,Ka(document.body,a.value)),o=K8(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${o}px)`)}),u3(()=>u())},GM=yo({type:J(Boolean),default:null}),XM=yo({type:J(Function)}),JM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:GM,[n]:XM};return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=ht(),{emit:g}=h,p=h.props,v=x(()=>ct(p[n])),m=x(()=>p[e]===null),y=T=>{r.value!==!0&&(r.value=!0,s&&(s.value=T),ct(d)&&d(T))},b=T=>{r.value!==!1&&(r.value=!1,s&&(s.value=T),ct(f)&&f(T))},w=T=>{if(p.disabled===!0||ct(c)&&!c())return;const M=v.value&&Rt;M&&g(t,!0),(m.value||!M)&&y(T)},C=T=>{if(p.disabled===!0||!Rt)return;const M=v.value&&Rt;M&&g(t,!1),(m.value||!M)&&b(T)},S=T=>{Dt(T)&&(p.disabled&&T?v.value&&g(t,!1):r.value!==T&&(T?y():b()))},k=()=>{r.value?C():w()};return fe(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&fe(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&C()}),mt(()=>{S(p[e])}),{hide:C,show:w,toggle:k,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},W8=e=>{const t=ht();return x(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})};var xa="top",Ya="bottom",Ga="right",ka="left",ih="auto",Ru=[xa,Ya,Ga,ka],Ps="start",nu="end",ZM="clippingParents",j8="viewport",vi="popper",QM="reference",mm=Ru.reduce(function(e,t){return e.concat([t+"-"+Ps,t+"-"+nu])},[]),Uo=[].concat(Ru,[ih]).reduce(function(e,t){return e.concat([t,t+"-"+Ps,t+"-"+nu])},[]),eO="beforeRead",tO="read",nO="afterRead",aO="beforeMain",oO="main",lO="afterMain",rO="beforeWrite",sO="write",iO="afterWrite",uO=[eO,tO,nO,aO,oO,lO,rO,sO,iO];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function Va(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vr(e){var t=Va(e).Element;return e instanceof t||e instanceof Element}function ja(e){var t=Va(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uh(e){if(typeof ShadowRoot>"u")return!1;var t=Va(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cO(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!ja(l)||!Wo(l)||(Object.assign(l.style,a),Object.keys(o).forEach(function(r){var s=o[r];s===!1?l.removeAttribute(r):l.setAttribute(r,s===!0?"":s)}))})}function dO(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],l=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=r.reduce(function(u,c){return u[c]="",u},{});!ja(o)||!Wo(o)||(Object.assign(o.style,s),Object.keys(l).forEach(function(u){o.removeAttribute(u)}))})}}var q8={name:"applyStyles",enabled:!0,phase:"write",fn:cO,effect:dO,requires:["computeStyles"]};function Bo(e){return e.split("-")[0]}var Tr=Math.max,cd=Math.min,Is=Math.round;function v2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U8(){return!/^((?!chrome|android).)*safari/i.test(v2())}function Ls(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,l=1;t&&ja(e)&&(o=e.offsetWidth>0&&Is(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Is(a.height)/e.offsetHeight||1);var r=Vr(e)?Va(e):window,s=r.visualViewport,u=!U8()&&n,c=(a.left+(u&&s?s.offsetLeft:0))/o,d=(a.top+(u&&s?s.offsetTop:0))/l,f=a.width/o,h=a.height/l;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function ch(e){var t=Ls(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function Y8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uh(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function gl(e){return Va(e).getComputedStyle(e)}function fO(e){return["table","td","th"].indexOf(Wo(e))>=0}function Ql(e){return((Vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function df(e){return Wo(e)==="html"?e:e.assignedSlot||e.parentNode||(uh(e)?e.host:null)||Ql(e)}function gm(e){return!ja(e)||gl(e).position==="fixed"?null:e.offsetParent}function pO(e){var t=/firefox/i.test(v2()),n=/Trident/i.test(v2());if(n&&ja(e)){var a=gl(e);if(a.position==="fixed")return null}var o=df(e);for(uh(o)&&(o=o.host);ja(o)&&["html","body"].indexOf(Wo(o))<0;){var l=gl(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Nu(e){for(var t=Va(e),n=gm(e);n&&fO(n)&&gl(n).position==="static";)n=gm(n);return n&&(Wo(n)==="html"||Wo(n)==="body"&&gl(n).position==="static")?t:n||pO(e)||t}function dh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zi(e,t,n){return Tr(e,cd(t,n))}function hO(e,t,n){var a=zi(e,t,n);return a>n?n:a}function G8(){return{top:0,right:0,bottom:0,left:0}}function X8(e){return Object.assign({},G8(),e)}function J8(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var vO=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,X8(typeof e!="number"?e:J8(e,Ru))};function mO(e){var t,n=e.state,a=e.name,o=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,s=Bo(n.placement),u=dh(s),c=[ka,Ga].indexOf(s)>=0,d=c?"height":"width";if(!(!l||!r)){var f=vO(o.padding,n),h=ch(l),g=u==="y"?xa:ka,p=u==="y"?Ya:Ga,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],m=r[u]-n.rects.reference[u],y=Nu(l),b=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-m/2,C=f[g],S=b-h[d]-f[p],k=b/2-h[d]/2+w,T=zi(C,k,S),M=u;n.modifiersData[a]=(t={},t[M]=T,t.centerOffset=T-k,t)}}function gO(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Y8(t.elements.popper,o)&&(t.elements.arrow=o))}var yO={name:"arrow",enabled:!0,phase:"main",fn:mO,effect:gO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var bO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wO(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:Is(n*o)/o||0,y:Is(a*o)/o||0}}function ym(e){var t,n=e.popper,a=e.popperRect,o=e.placement,l=e.variation,r=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,g=h===void 0?0:h,p=r.y,v=p===void 0?0:p,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var y=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),w=ka,C=xa,S=window;if(c){var k=Nu(n),T="clientHeight",M="clientWidth";if(k===Va(n)&&(k=Ql(n),gl(k).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),k=k,o===xa||(o===ka||o===Ga)&&l===nu){C=Ya;var A=f&&k===S&&S.visualViewport?S.visualViewport.height:k[T];v-=A-a.height,v*=u?1:-1}if(o===ka||(o===xa||o===Ya)&&l===nu){w=Ga;var O=f&&k===S&&S.visualViewport?S.visualViewport.width:k[M];g-=O-a.width,g*=u?1:-1}}var I=Object.assign({position:s},c&&bO),L=d===!0?wO({x:g,y:v},Va(n)):{x:g,y:v};if(g=L.x,v=L.y,u){var z;return Object.assign({},I,(z={},z[C]=b?"0":"",z[w]=y?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",z))}return Object.assign({},I,(t={},t[C]=b?v+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function CO(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,l=n.adaptive,r=l===void 0?!0:l,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:Bo(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ym(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ym(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Z8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CO,data:{}},ic={passive:!0};function _O(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,l=o===void 0?!0:o,r=a.resize,s=r===void 0?!0:r,u=Va(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,ic)}),s&&u.addEventListener("resize",n.update,ic),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ic)}),s&&u.removeEventListener("resize",n.update,ic)}}var Q8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_O,data:{}},SO={left:"right",right:"left",bottom:"top",top:"bottom"};function Lc(e){return e.replace(/left|right|bottom|top/g,function(t){return SO[t]})}var xO={start:"end",end:"start"};function bm(e){return e.replace(/start|end/g,function(t){return xO[t]})}function fh(e){var t=Va(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ph(e){return Ls(Ql(e)).left+fh(e).scrollLeft}function kO(e,t){var n=Va(e),a=Ql(e),o=n.visualViewport,l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;var c=U8();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:l,height:r,x:s+ph(e),y:u}}function EO(e){var t,n=Ql(e),a=fh(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=Tr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Tr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-a.scrollLeft+ph(e),u=-a.scrollTop;return gl(o||n).direction==="rtl"&&(s+=Tr(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:r,x:s,y:u}}function hh(e){var t=gl(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function ey(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:ja(e)&&hh(e)?e:ey(df(e))}function Di(e,t){var n;t===void 0&&(t=[]);var a=ey(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),l=Va(a),r=o?[l].concat(l.visualViewport||[],hh(a)?a:[]):a,s=t.concat(r);return o?s:s.concat(Di(df(r)))}function m2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function TO(e,t){var n=Ls(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function wm(e,t,n){return t===j8?m2(kO(e,n)):Vr(t)?TO(t,n):m2(EO(Ql(e)))}function MO(e){var t=Di(df(e)),n=["absolute","fixed"].indexOf(gl(e).position)>=0,a=n&&ja(e)?Nu(e):e;return Vr(a)?t.filter(function(o){return Vr(o)&&Y8(o,a)&&Wo(o)!=="body"}):[]}function OO(e,t,n,a){var o=t==="clippingParents"?MO(e):[].concat(t),l=[].concat(o,[n]),r=l[0],s=l.reduce(function(u,c){var d=wm(e,c,a);return u.top=Tr(d.top,u.top),u.right=cd(d.right,u.right),u.bottom=cd(d.bottom,u.bottom),u.left=Tr(d.left,u.left),u},wm(e,r,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ty(e){var t=e.reference,n=e.element,a=e.placement,o=a?Bo(a):null,l=a?Vs(a):null,r=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(o){case xa:u={x:r,y:t.y-n.height};break;case Ya:u={x:r,y:t.y+t.height};break;case Ga:u={x:t.x+t.width,y:s};break;case ka:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?dh(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ps:u[c]=u[c]-(t[d]/2-n[d]/2);break;case nu:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function au(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,l=n.strategy,r=l===void 0?e.strategy:l,s=n.boundary,u=s===void 0?ZM:s,c=n.rootBoundary,d=c===void 0?j8:c,f=n.elementContext,h=f===void 0?vi:f,g=n.altBoundary,p=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,y=X8(typeof m!="number"?m:J8(m,Ru)),b=h===vi?QM:vi,w=e.rects.popper,C=e.elements[p?b:h],S=OO(Vr(C)?C:C.contextElement||Ql(e.elements.popper),u,d,r),k=Ls(e.elements.reference),T=ty({reference:k,element:w,placement:o}),M=m2(Object.assign({},w,T)),A=h===vi?M:k,O={top:S.top-A.top+y.top,bottom:A.bottom-S.bottom+y.bottom,left:S.left-A.left+y.left,right:A.right-S.right+y.right},I=e.modifiersData.offset;if(h===vi&&I){var L=I[o];Object.keys(O).forEach(function(z){var q=[Ga,Ya].indexOf(z)>=0?1:-1,U=[xa,Ya].indexOf(z)>=0?"y":"x";O[z]+=L[U]*q})}return O}function $O(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,l=n.rootBoundary,r=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Uo:u,d=Vs(a),f=d?s?mm:mm.filter(function(p){return Vs(p)===d}):Ru,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var g=h.reduce(function(p,v){return p[v]=au(e,{placement:v,boundary:o,rootBoundary:l,padding:r})[Bo(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}function AO(e){if(Bo(e)===ih)return[];var t=Lc(e);return[bm(e),t,bm(t)]}function RO(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,y=Bo(m),b=y===m,w=u||(b||!p?[Lc(m)]:AO(m)),C=[m].concat(w).reduce(function(ee,te){return ee.concat(Bo(te)===ih?$O(t,{placement:te,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):te)},[]),S=t.rects.reference,k=t.rects.popper,T=new Map,M=!0,A=C[0],O=0;O=0,U=q?"width":"height",F=au(t,{placement:I,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),N=q?z?Ga:ka:z?Ya:xa;S[U]>k[U]&&(N=Lc(N));var P=Lc(N),B=[];if(l&&B.push(F[L]<=0),s&&B.push(F[N]<=0,F[P]<=0),B.every(function(ee){return ee})){A=I,M=!1;break}T.set(I,B)}if(M)for(var W=p?3:1,K=function(ee){var te=C.find(function(ue){var ne=T.get(ue);if(ne)return ne.slice(0,ee).every(function(de){return de})});if(te)return A=te,"break"},j=W;j>0;j--){var G=K(j);if(G==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var NO={name:"flip",enabled:!0,phase:"main",fn:RO,requiresIfExists:["offset"],data:{_skip:!1}};function Cm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _m(e){return[xa,Ga,Ya,ka].some(function(t){return e[t]>=0})}function PO(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,r=au(t,{elementContext:"reference"}),s=au(t,{altBoundary:!0}),u=Cm(r,a),c=Cm(s,o,l),d=_m(u),f=_m(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var IO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PO};function LO(e,t,n){var a=Bo(e),o=[ka,xa].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],s=l[1];return r=r||0,s=(s||0)*o,[ka,Ga].indexOf(a)>=0?{x:s,y:r}:{x:r,y:s}}function VO(e){var t=e.state,n=e.options,a=e.name,o=n.offset,l=o===void 0?[0,0]:o,r=Uo.reduce(function(d,f){return d[f]=LO(f,t.rects,l),d},{}),s=r[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=r}var BO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VO};function zO(e){var t=e.state,n=e.name;t.modifiersData[n]=ty({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var ny={name:"popperOffsets",enabled:!0,phase:"read",fn:zO,data:{}};function DO(e){return e==="x"?"y":"x"}function HO(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,m=au(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),y=Bo(t.placement),b=Vs(t.placement),w=!b,C=dh(y),S=DO(C),k=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(l){var z,q=C==="y"?xa:ka,U=C==="y"?Ya:Ga,F=C==="y"?"height":"width",N=k[C],P=N+m[q],B=N-m[U],W=g?-M[F]/2:0,K=b===Ps?T[F]:M[F],j=b===Ps?-M[F]:-T[F],G=t.elements.arrow,ee=g&&G?ch(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G8(),ue=te[q],ne=te[U],de=zi(0,T[F],ee[F]),se=w?T[F]/2-W-de-ue-O.mainAxis:K-de-ue-O.mainAxis,Y=w?-T[F]/2+W+de+ne+O.mainAxis:j+de+ne+O.mainAxis,X=t.elements.arrow&&Nu(t.elements.arrow),H=X?C==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(z=I==null?void 0:I[C])!=null?z:0,le=N+se-Z-H,ce=N+Y-Z,ge=zi(g?cd(P,le):P,N,g?Tr(B,ce):B);k[C]=ge,L[C]=ge-N}if(s){var me,$e=C==="x"?xa:ka,Re=C==="x"?Ya:Ga,Ae=k[S],ye=S==="y"?"height":"width",ke=Ae+m[$e],be=Ae-m[Re],Pe=[xa,ka].indexOf(y)!==-1,Be=(me=I==null?void 0:I[S])!=null?me:0,Qe=Pe?ke:Ae-T[ye]-M[ye]-Be+O.altAxis,tt=Pe?Ae+T[ye]+M[ye]-Be-O.altAxis:be,nt=g&&Pe?hO(Qe,Ae,tt):zi(g?Qe:ke,Ae,g?tt:be);k[S]=nt,L[S]=nt-Ae}t.modifiersData[a]=L}}var FO={name:"preventOverflow",enabled:!0,phase:"main",fn:HO,requiresIfExists:["offset"]};function KO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WO(e){return e===Va(e)||!ja(e)?fh(e):KO(e)}function jO(e){var t=e.getBoundingClientRect(),n=Is(t.width)/e.offsetWidth||1,a=Is(t.height)/e.offsetHeight||1;return n!==1||a!==1}function qO(e,t,n){n===void 0&&(n=!1);var a=ja(t),o=ja(t)&&jO(t),l=Ql(t),r=Ls(e,o,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Wo(t)!=="body"||hh(l))&&(s=WO(t)),ja(t)?(u=Ls(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ph(l))),{x:r.left+s.scrollLeft-u.x,y:r.top+s.scrollTop-u.y,width:r.width,height:r.height}}function UO(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&o(u)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),a}function YO(e){var t=UO(e);return uO.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function GO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function XO(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var Sm={placement:"bottom",modifiers:[],strategy:"absolute"};function xm(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=t$(u);Object.assign(r.value,c)},requires:["computeStyles"]},o=x(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),l=qt(),r=V({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return fe(o,u=>{const c=i(l);c&&c.setOptions(u)},{deep:!0}),fe([e,t],([u,c])=>{s(),!(!u||!c)&&(l.value=QO(u,c,i(o)))}),Lt(()=>{s()}),{state:x(()=>{var u;return{...((u=i(l))==null?void 0:u.state)||{}}}),styles:x(()=>i(r).styles),attributes:x(()=>i(r).attributes),update:()=>{var u;return(u=i(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=i(l))==null?void 0:u.forceUpdate()},instanceRef:x(()=>i(l))}};function t$(e){const t=Object.keys(e.elements);return{styles:Ns(t.map(n=>[n,e.styles[n]||{}])),attributes:Ns(t.map(n=>[n,e.attributes[n]]))}}const mh=e=>{if(!e)return{onClick:Yt,onMousedown:Yt,onMouseup:Yt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},n$=(e,t=0)=>{if(t===0)return e;const n=V(Mt(t)&&!!t.initVal);let a=null;const o=r=>{if(kt(r)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},r)},l=r=>{r==="leading"?De(t)?o(t):o(t.leading):Mt(t)?o(t.trailing):n.value=!1};return mt(()=>l("leading")),fe(()=>e.value,r=>{l(r?"leading":"trailing")}),n};function km(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return jr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const g2={prefix:Math.floor(Math.random()*1e4),current:0},a$=Symbol("elIdInjection"),gh=()=>ht()?Ne(a$,g2):g2,Un=e=>{const t=gh();!Rt&&t===g2&&ft("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed +usage: app.provide(ID_INJECTION_KEY, { + prefix: number, + current: number, +})`);const n=lh();return $6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let is=[];const Em=e=>{Kt(e)===we.esc&&is.forEach(t=>t(e))},o$=e=>{mt(()=>{is.length===0&&document.addEventListener("keydown",Em),Rt&&is.push(e)}),Lt(()=>{is=is.filter(t=>t!==e),is.length===0&&Rt&&document.removeEventListener("keydown",Em)})},ay=()=>{const e=lh(),t=gh(),n=x(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:x(()=>`#${n.value}`)}},l$=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},r$=()=>{const{id:e,selector:t}=ay();return Ud(()=>{Rt&&(document.body.querySelector(t.value)||l$(e.value))}),{id:e,selector:t}},s$=Ce({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),i$=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=km(),{registerTimeout:r,cancelTimeout:s}=km();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const h=i(n);De(h)&&h>0&&r(()=>{o(d)},h)},f)},onClose:(d,f=i(t))=>{s(),l(()=>{o(d)},f)}}},oy=Symbol("elForwardRef"),u$=e=>{bt(oy,{setForwardRef:n=>{e.value=n}})},c$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Tm={current:0},Mm=V(0),ly=2e3,Om=Symbol("elZIndexContextKey"),ry=Symbol("zIndexContextKey"),Pu=e=>{const t=ht()?Ne(Om,Tm):Tm,n=e||(ht()?Ne(ry,void 0):void 0),a=x(()=>{const r=i(n);return De(r)?r:ly}),o=x(()=>a.value+Mm.value),l=()=>(t.current++,Mm.value=t.current,o.value);return!Rt&&!Ne(Om)&&ft("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed +usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:l}},Bs=Math.min,Mr=Math.max,dd=Math.round,uc=Math.floor,zo=e=>({x:e,y:e}),d$={left:"right",right:"left",bottom:"top",top:"bottom"};function y2(e,t,n){return Mr(e,Bs(t,n))}function Iu(e,t){return typeof e=="function"?e(t):e}function Br(e){return e.split("-")[0]}function Lu(e){return e.split("-")[1]}function sy(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}function Hl(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function bh(e){return sy(Hl(e))}function f$(e,t,n){n===void 0&&(n=!1);const a=Lu(e),o=bh(e),l=yh(o);let r=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=fd(r)),[r,fd(r)]}function p$(e){const t=fd(e);return[b2(e),t,b2(t)]}function b2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const $m=["left","right"],Am=["right","left"],h$=["top","bottom"],v$=["bottom","top"];function m$(e,t,n){switch(e){case"top":case"bottom":return n?t?Am:$m:t?$m:Am;case"left":case"right":return t?h$:v$;default:return[]}}function g$(e,t,n,a){const o=Lu(e);let l=m$(Br(e),n==="start",a);return o&&(l=l.map(r=>r+"-"+o),t&&(l=l.concat(l.map(b2)))),l}function fd(e){const t=Br(e);return d$[t]+e.slice(t.length)}function y$(e){return{top:0,right:0,bottom:0,left:0,...e}}function iy(e){return typeof e!="number"?y$(e):{top:e,right:e,bottom:e,left:e}}function pd(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function Rm(e,t,n){let{reference:a,floating:o}=e;const l=Hl(t),r=bh(t),s=yh(r),u=Br(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,h=a[s]/2-o[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Lu(t)){case"start":g[r]-=h*(n&&c?-1:1);break;case"end":g[r]+=h*(n&&c?-1:1);break}return g}async function uy(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=Iu(t,e),p=iy(g),m=s[h?f==="floating"?"reference":"floating":f],y=pd(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(m)))==null||n?m:m.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),C=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=pd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:u}):b);return{top:(y.top-S.top+p.top)/C.y,bottom:(S.bottom-y.bottom+p.bottom)/C.y,left:(y.left-S.left+p.left)/C.x,right:(S.right-y.right+p.right)/C.x}}const b$=50,w$=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:uy},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Rm(c,a,u),h=a,g=0;const p={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=Iu(e,t)||{};if(c==null)return{};const f=iy(d),h={x:n,y:a},g=bh(o),p=yh(g),v=await r.getDimensions(c),m=g==="y",y=m?"top":"left",b=m?"bottom":"right",w=m?"clientHeight":"clientWidth",C=l.reference[p]+l.reference[g]-h[g]-l.floating[p],S=h[g]-l.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=s.floating[w]||l.floating[p]);const M=C/2-S/2,A=T/2-v[p]/2-1,O=Bs(f[y],A),I=Bs(f[b],A),L=O,z=T-v[p]-I,q=T/2-v[p]/2+M,U=y2(L,q,z),F=!u.arrow&&Lu(o)!=null&&q!==U&&l.reference[p]/2-(qq<=0)){var I,L;const q=(((I=l.flip)==null?void 0:I.index)||0)+1,U=T[q];if(U&&(!(f==="alignment"?b!==Hl(U):!1)||O.every(P=>Hl(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:q,overflows:O},reset:{placement:U}};let F=(L=O.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var z;const N=(z=O.filter(P=>{if(k){const B=Hl(P.placement);return B===b||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:z[0];N&&(F=N);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}},S$=new Set(["left","top"]);async function x$(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),r=Br(n),s=Lu(n),u=Hl(n)==="y",c=S$.has(r)?-1:1,d=l&&u?-1:1,f=Iu(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),u?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const k$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:s}=t,u=await x$(t,e);return r===((n=s.offset)==null?void 0:n.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:l+u.y,data:{...u,placement:r}}}}},E$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=Iu(e,t),d={x:n,y:a},f=await l.detectOverflow(t,c),h=Hl(Br(o)),g=sy(h);let p=d[g],v=d[h];if(r){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=p+f[y],C=p-f[b];p=y2(w,p,C)}if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=v+f[y],C=v-f[b];v=y2(w,v,C)}const m=u.fn({...t,[g]:p,[h]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:r,[h]:s}}}}}};function ff(){return typeof window<"u"}function ei(e){return cy(e)?(e.nodeName||"").toLowerCase():"#document"}function Ia(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yo(e){var t;return(t=(cy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cy(e){return ff()?e instanceof Node||e instanceof Ia(e).Node:!1}function ro(e){return ff()?e instanceof Element||e instanceof Ia(e).Element:!1}function kl(e){return ff()?e instanceof HTMLElement||e instanceof Ia(e).HTMLElement:!1}function Nm(e){return!ff()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ia(e).ShadowRoot}function Vu(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=so(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function T$(e){return/^(table|td|th)$/.test(ei(e))}function pf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const M$=/transform|translate|scale|rotate|perspective|filter/,O$=/paint|layout|strict|content/,sr=e=>!!e&&e!=="none";let r0;function wh(e){const t=ro(e)?so(e):e;return sr(t.transform)||sr(t.translate)||sr(t.scale)||sr(t.rotate)||sr(t.perspective)||!Ch()&&(sr(t.backdropFilter)||sr(t.filter))||M$.test(t.willChange||"")||O$.test(t.contain||"")}function $$(e){let t=Gl(e);for(;kl(t)&&!zs(t);){if(wh(t))return t;if(pf(t))return null;t=Gl(t)}return null}function Ch(){return r0==null&&(r0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r0}function zs(e){return/^(html|body|#document)$/.test(ei(e))}function so(e){return Ia(e).getComputedStyle(e)}function hf(e){return ro(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gl(e){if(ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nm(e)&&e.host||Yo(e);return Nm(t)?t.host:t}function dy(e){const t=Gl(e);return zs(t)?e.ownerDocument?e.ownerDocument.body:e.body:kl(t)&&Vu(t)?t:dy(t)}function ou(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=dy(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),r=Ia(o);if(l){const s=w2(r);return t.concat(r,r.visualViewport||[],Vu(o)?o:[],s&&n?ou(s):[])}else return t.concat(o,ou(o,[],n))}function w2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fy(e){const t=so(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=kl(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,s=dd(n)!==l||dd(a)!==r;return s&&(n=l,a=r),{width:n,height:a,$:s}}function _h(e){return ro(e)?e:e.contextElement}function ws(e){const t=_h(e);if(!kl(t))return zo(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=fy(t);let r=(l?dd(n.width):n.width)/a,s=(l?dd(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}const A$=zo(0);function py(e){const t=Ia(e);return!Ch()||!t.visualViewport?A$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function R$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ia(e)?!1:t}function zr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=_h(e);let r=zo(1);t&&(a?ro(a)&&(r=ws(a)):r=ws(e));const s=R$(l,n,a)?py(l):zo(0);let u=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,f=o.height/r.y;if(l){const h=Ia(l),g=a&&ro(a)?Ia(a):a;let p=h,v=w2(p);for(;v&&a&&g!==p;){const m=ws(v),y=v.getBoundingClientRect(),b=so(v),w=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*m.x,C=y.top+(v.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=w,c+=C,p=Ia(v),v=w2(p)}}return pd({width:d,height:f,x:u,y:c})}function vf(e,t){const n=hf(e).scrollLeft;return t?t.left+n:zr(Yo(e)).left+n}function hy(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-vf(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function N$(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",r=Yo(a),s=t?pf(t.floating):!1;if(a===r||s&&l)return n;let u={scrollLeft:0,scrollTop:0},c=zo(1);const d=zo(0),f=kl(a);if((f||!f&&!l)&&((ei(a)!=="body"||Vu(r))&&(u=hf(a)),f)){const g=zr(a);c=ws(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const h=r&&!f&&!l?hy(r,u):zo(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function P$(e){return Array.from(e.getClientRects())}function I$(e){const t=Yo(e),n=hf(e),a=e.ownerDocument.body,o=Mr(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Mr(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+vf(e);const s=-n.scrollTop;return so(a).direction==="rtl"&&(r+=Mr(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:s}}const Pm=25;function L$(e,t){const n=Ia(e),a=Yo(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;const d=Ch();(!d||d&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const c=vf(a);if(c<=0){const d=a.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(a.clientWidth-f.clientWidth-g);p<=Pm&&(l-=p)}else c<=Pm&&(l+=c);return{width:l,height:r,x:s,y:u}}function V$(e,t){const n=zr(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=kl(e)?ws(e):zo(1),r=e.clientWidth*l.x,s=e.clientHeight*l.y,u=o*l.x,c=a*l.y;return{width:r,height:s,x:u,y:c}}function Im(e,t,n){let a;if(t==="viewport")a=L$(e,n);else if(t==="document")a=I$(Yo(e));else if(ro(t))a=V$(t,n);else{const o=py(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pd(a)}function vy(e,t){const n=Gl(e);return n===t||!ro(n)||zs(n)?!1:so(n).position==="fixed"||vy(n,t)}function B$(e,t){const n=t.get(e);if(n)return n;let a=ou(e,[],!1).filter(s=>ro(s)&&ei(s)!=="body"),o=null;const l=so(e).position==="fixed";let r=l?Gl(e):e;for(;ro(r)&&!zs(r);){const s=so(r),u=wh(r);!u&&s.position==="fixed"&&(o=null),(l?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Vu(r)&&!u&&vy(e,r))?a=a.filter(d=>d!==r):o=s,r=Gl(r)}return t.set(e,a),a}function z$(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const r=[...n==="clippingAncestors"?pf(t)?[]:B$(t,this._c):[].concat(n),a],s=Im(t,r[0],o);let u=s.top,c=s.right,d=s.bottom,f=s.left;for(let h=1;h{r(!1,1e-7)},1e3)}T===1&&!gy(c,e.getBoundingClientRect())&&r(),C=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function q$(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=_h(e),d=o||l?[...c?ou(c):[],...t?ou(t):[]]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),l&&y.addEventListener("resize",n)});const f=c&&s?j$(c,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let p,v=u?zr(e):null;u&&m();function m(){const y=zr(e);v&&!gy(v,y)&&n(),v=y,p=requestAnimationFrame(m)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),l&&b.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(p)}}const U$=uy,Y$=k$,G$=E$,X$=_$,J$=C$,Z$=(e,t,n)=>{const a=new Map,o={platform:W$,...n},l={...o.platform,_c:a};return w$(e,t,{...o,platform:l})};function Q$(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:l,value:r}=e.value;o==null||l==null||(t={selectionStart:o,selectionEnd:l,value:r,beforeTxt:r.slice(0,Math.max(0,o)),afterTxt:r.slice(Math.max(0,l))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:s}=t;if(l==null||r==null||s==null)return;let u=o.length;if(o.endsWith(r))u=o.length-r.length;else if(o.startsWith(l))u=l.length;else{const c=l[s-1],d=o.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const eA="utils/vue/vnode";let Ja=function(e){return e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e}({});function C2(e){return Wt(e)&&e.type===He}function yy(e){return Wt(e)&&e.type===wn}function tA(e){return Wt(e)&&!C2(e)&&!yy(e)}const nA=e=>{if(!Wt(e))return ft(eA,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Wt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{An(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[Hp(o)]=t[o]}),a},Ra=e=>{const t=Ve(e)?e:[e],n=[];return t.forEach(a=>{var o;Ve(a)?n.push(...Ra(a)):Wt(a)&&((o=a.component)!=null&&o.subTree)?n.push(a,...Ra(a.component.subTree)):Wt(a)&&Ve(a.children)?n.push(...Ra(a.children)):Wt(a)&&a.shapeFlag===2?n.push(...Ra(a.type())):n.push(a)}),n},aA=(e,t,n)=>Ra(e.subTree).filter(a=>{var o;return Wt(a)&&((o=a.type)==null?void 0:o.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),mf=(e,t)=>{const n=qt({}),a=qt([]),o=new WeakMap,l=c=>{n.value[c.uid]=c,Ec(n),mt(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const h=f.insertBefore.bind(f);f.insertBefore=(g,p)=>(o.get(f).some(v=>g===v||p===v)&&Ec(n),h(g,p))}o.get(f).push(d)})},r=c=>{delete n.value[c.uid],Ec(n);const d=c.getVnode().el,f=d.parentNode,h=o.get(f),g=h.indexOf(d);h.splice(g,1)},s=()=>{a.value=aA(e,t,n.value)},u=c=>c.render();return{children:a,addChild:l,removeChild:r,ChildrenSorter:D({setup(c,{slots:d}){return()=>(s(),d.default?qe(u,{render:d.default}):null)}})}},On=yo({type:String,values:vo,required:!1}),by=Symbol("size"),wy=()=>{const e=Ne(by,{});return x(()=>i(e.size)||"")};function El(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:l}={}){const{emit:r}=ht(),s=qt(),u=V(!1),c=h=>{const g=ct(n)?n(h):!1;i(t)||u.value||g||(u.value=!0,r("focus",h),a==null||a())},d=h=>{var p;const g=ct(o)?o(h):!1;i(t)||h.relatedTarget&&((p=s.value)!=null&&p.contains(h.relatedTarget))||g||(u.value=!1,r("blur",h),l==null||l())},f=h=>{var g,p;i(t)||Lr(h.target)||(g=s.value)!=null&&g.contains(document.activeElement)&&s.value!==document.activeElement||(p=e.value)==null||p.focus()};return fe([s,()=>i(t)],([h,g])=>{h&&(g?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Vt(s,"focus",c,!0),Vt(s,"blur",d,!0),Vt(s,"click",f,!0),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:d}}function Bu({afterComposition:e,emit:t}){const n=V(!1),a=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{t==null||t("compositionupdate",s),n.value=!0},l=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,Ie(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?l(s):o(s)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:l}}const Cy=Symbol("emptyValuesContextKey"),oA="use-empty-values",lA=["",void 0,null],rA=void 0,Gr=Ce({emptyValues:Array,valueOnClear:{type:J([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=ct(e)?e():e,Ve(e)?e.every(t=>!t):!e)}}),zu=(e,t)=>{const n=ht()?Ne(Cy,V({})):V({}),a=x(()=>e.emptyValues||n.value.emptyValues||lA),o=x(()=>ct(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:ct(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:rA),l=r=>{let s=!0;return Ve(r)?s=a.value.some(u=>sn(r,u)):s=a.value.includes(r),s};return l(o.value)||ft(oA,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:l}},sA=Ce({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ia=e=>vl(sA,e),_y=e=>{const t=e.props,n=Ve(t)?Ns(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,l]of Object.entries(a)){const r=n[o];if(An(n,o)){if(Qp(r)){n[o]={...r,default:l};continue}n[o]={type:r,default:l}}}e.props=n}}},rt=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return _y(e),e},Sy=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),iA=(e,t)=>(e.install=n=>{n.directive(t,e)},e),ln=e=>(e.install=Yt,_y(e),e);var uA=D({__name:"teleport",props:Au,setup(e){return(t,n)=>t.disabled?oe(t.$slots,"default",{key:0}):(_(),ie(ZC,{key:1,to:t.to},[oe(t.$slots,"default")],8,["to"]))}}),cA=uA;const ti=rt(cA),Vm="ElAffix";var dA=D({name:Vm,__name:"affix",props:LM,emits:VM,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("affix"),r=qt(),s=qt(),u=qt(),{height:c}=zp(),{height:d,width:f,top:h,bottom:g,left:p,update:v}=M1(s,{windowScroll:!1}),m=M1(r),y=V(!1),b=V(0),w=V(0),C=x(()=>!a.teleported||!y.value),S=x(()=>({display:"flow-root",height:y.value?`${d.value}px`:"",width:y.value?`${f.value}px`:""})),k=x(()=>{if(!y.value)return{};const O=cn(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?O:"",bottom:a.position==="bottom"?O:"",left:a.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:a.zIndex}}),T=()=>{if(!u.value)return;b.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:I,offset:L}=a,z=L+d.value;if(O==="top")if(I){const q=m.bottom.value-z;y.value=L>h.value&&m.bottom.value>0,w.value=q<0?q:0}else y.value=L>h.value;else if(I){const q=c.value-m.top.value-z;y.value=c.value-Lm.top.value,w.value=q<0?-q:0}else y.value=c.value-L{if(!y.value){v();return}y.value=!1,await Ie(),v(),y.value=!0},A=async()=>{v(),await Ie(),o("scroll",{scrollTop:b.value,fixed:y.value})};return fe(y,O=>o(yt,O)),mt(()=>{a.target?(r.value=document.querySelector(a.target)??void 0,r.value||on(Vm,`Target does not exist: ${a.target}`)):r.value=document.documentElement,u.value=rh(s.value,!0),v()}),wu(()=>{Ie(M)}),Mp(()=>{y.value=!1}),Vt(u,"scroll",A),ma(T),t({update:T,updateRoot:M}),(O,I)=>(_(),$("div",{ref_key:"root",ref:s,class:R(i(l).b()),style:We(S.value)},[Q(i(ti),{disabled:C.value,to:e.appendTo},{default:ae(()=>[E("div",{class:R({[i(l).m("fixed")]:y.value}),style:We(k.value)},[oe(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}}),fA=dA;const pA=rt(fA);/*! Element Plus Icons Vue v2.3.2 */var hA=D({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),vA=hA,mA=D({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),gA=mA,yA=D({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),bA=yA,wA=D({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),CA=wA,_A=D({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),SA=_A,xA=D({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),bo=xA,kA=D({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),EA=kA,TA=D({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),jo=TA,MA=D({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),OA=MA,$A=D({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Jn=$A,AA=D({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),RA=AA,NA=D({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Du=NA,PA=D({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),IA=PA,LA=D({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),xy=LA,VA=D({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),E("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),BA=VA,zA=D({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),DA=zA,HA=D({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),FA=HA,KA=D({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),E("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),WA=KA,jA=D({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),E("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),qA=jA,UA=D({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),YA=UA,GA=D({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),E("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),XA=GA,JA=D({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),ZA=JA,QA=D({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),eR=QA,tR=D({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),E("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),nR=tR,aR=D({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),oR=aR,lR=D({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),rR=lR,sR=D({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),iR=sR,uR=D({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),cR=uR,dR=D({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),ky=dR,fR=D({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),pR=fR,hR=D({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),vR=hR,mR=D({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),gR=mR,yR=D({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),bR=yR,wR=D({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Sh=wR,CR=D({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Ey=CR,_R=D({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),SR=_R,xR=D({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),kR=xR,ER=D({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),TR=ER,MR=D({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),OR=MR,$R=D({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),AR=$R,RR=D({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),NR=RR,PR=D({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),IR=PR,LR=D({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),ni=LR,VR=D({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),BR=VR,zR=D({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),DR=zR,HR=D({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),FR=HR,KR=D({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),E("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),E("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),WR=KR,jR=D({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ty=jR,qR=D({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),gf=qR,UR=D({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),yf=UR,YR=D({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),wo=YR,GR=D({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),XR=GR,JR=D({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ZR=JR,QR=D({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),xh=QR,eN=D({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),tN=eN,nN=D({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ba=nN,aN=D({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),oN=aN,lN=D({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),rN=lN,sN=D({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),iN=sN,uN=D({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),cN=uN,dN=D({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),fN=dN,pN=D({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),hN=pN,vN=D({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),E("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),mN=vN,gN=D({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),yN=gN,bN=D({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),wN=bN,CN=D({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),E("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),_N=CN,SN=D({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),E("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),xN=SN,kN=D({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),E("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),EN=kN,TN=D({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),MN=TN,ON=D({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),$N=ON,AN=D({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),RN=AN,NN=D({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),yl=NN,PN=D({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),bl=PN,IN=D({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),LN=IN,VN=D({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),BN=VN,zN=D({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),E("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),DN=zN,HN=D({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),FN=HN,KN=D({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),WN=KN,jN=D({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),qN=jN,UN=D({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),My=UN,YN=D({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),GN=YN,XN=D({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),JN=XN,ZN=D({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),QN=ZN,eP=D({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),tP=eP,nP=D({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),aP=nP,oP=D({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),lP=oP,rP=D({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),sP=rP,iP=D({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),uP=iP,cP=D({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),dP=cP,fP=D({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Oy=fP,pP=D({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),hP=pP,vP=D({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),mP=vP,gP=D({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),yP=gP,bP=D({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),E("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),wP=bP,CP=D({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),_P=CP,SP=D({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),xP=SP,kP=D({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),EP=kP,TP=D({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),MP=TP,OP=D({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),$P=OP,AP=D({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),E("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),RP=AP,NP=D({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),PP=NP,IP=D({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),LP=IP,VP=D({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),BP=VP,zP=D({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),DP=zP,HP=D({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),FP=HP,KP=D({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),WP=KP,jP=D({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),qP=jP,UP=D({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),YP=UP,GP=D({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),XP=GP,JP=D({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),ZP=JP,QP=D({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),eI=QP,tI=D({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),nI=tI,aI=D({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),oI=aI,lI=D({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),rI=lI,sI=D({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),E("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),iI=sI,uI=D({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),cI=uI,dI=D({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),fI=dI,pI=D({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),$y=pI,hI=D({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),vI=hI,mI=D({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),gI=mI,yI=D({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),bI=yI,wI=D({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),CI=wI,_I=D({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),E("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),SI=_I,xI=D({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),kI=xI,EI=D({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),TI=EI,MI=D({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),OI=MI,$I=D({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),AI=$I,RI=D({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),NI=RI,PI=D({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),II=PI,LI=D({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),VI=LI,BI=D({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),zI=BI,DI=D({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),HI=DI,FI=D({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),E("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),Ay=FI,KI=D({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),WI=KI,jI=D({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),qI=jI,UI=D({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),YI=UI,GI=D({name:"House",__name:"house",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),XI=GI,JI=D({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),ZI=JI,QI=D({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),eL=QI,tL=D({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),nL=tL,aL=D({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),oL=aL,lL=D({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),rL=lL,sL=D({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ds=sL,iL=D({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),uL=iL,cL=D({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),dL=cL,fL=D({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),pL=fL,hL=D({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),E("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),vL=hL,mL=D({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),gL=mL,yL=D({name:"List",__name:"list",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),bL=yL,wL=D({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),io=wL,CL=D({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),_L=CL,SL=D({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),xL=SL,kL=D({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),EL=kL,TL=D({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),ML=TL,OL=D({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),$L=OL,AL=D({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),RL=AL,NL=D({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),PL=NL,IL=D({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),E("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),E("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),LL=IL,VL=D({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),BL=VL,zL=D({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),DL=zL,HL=D({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),FL=HL,KL=D({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),E("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),E("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),WL=KL,jL=D({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),qL=jL,UL=D({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),YL=UL,GL=D({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),XL=GL,JL=D({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),ZL=JL,QL=D({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),eV=QL,tV=D({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),nV=tV,aV=D({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Ry=aV,oV=D({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),E("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),E("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),lV=oV,rV=D({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),sV=rV,iV=D({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),E("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),uV=iV,cV=D({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),dV=cV,fV=D({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),_2=fV,pV=D({name:"More",__name:"more",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Ny=pV,hV=D({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),vV=hV,mV=D({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),E("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),gV=mV,yV=D({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),bV=yV,wV=D({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),CV=wV,_V=D({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),SV=_V,xV=D({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),kV=xV,EV=D({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),TV=EV,MV=D({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),E("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),OV=MV,$V=D({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),AV=$V,RV=D({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),E("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),NV=RV,PV=D({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),IV=PV,LV=D({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),VV=LV,BV=D({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),zV=BV,DV=D({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),HV=DV,FV=D({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),KV=FV,WV=D({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),E("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),jV=WV,qV=D({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),UV=qV,YV=D({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),GV=YV,XV=D({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),JV=XV,ZV=D({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Py=ZV,QV=D({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),E("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),eB=QV,tB=D({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),nB=tB,aB=D({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),E("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),oB=aB,lB=D({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),E("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),rB=lB,sB=D({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),iB=sB,uB=D({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),kh=uB,cB=D({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),dB=cB,fB=D({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),pB=fB,hB=D({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),vB=hB,mB=D({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),gB=mB,yB=D({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),bB=yB,wB=D({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),CB=wB,_B=D({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),SB=_B,xB=D({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),kB=xB,EB=D({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),E("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),E("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),TB=EB,MB=D({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),Iy=MB,OB=D({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),$B=OB,AB=D({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),E("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),RB=AB,NB=D({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),E("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),PB=NB,IB=D({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Ly=IB,LB=D({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),Vy=LB,VB=D({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),BB=VB,zB=D({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),DB=zB,HB=D({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),FB=HB,KB=D({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),WB=KB,jB=D({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),qB=jB,UB=D({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),By=UB,YB=D({name:"School",__name:"school",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),E("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),GB=YB,XB=D({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),JB=XB,ZB=D({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),zy=ZB,QB=D({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),ez=QB,tz=D({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),nz=tz,az=D({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),oz=az,lz=D({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),rz=lz,sz=D({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),E("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),iz=sz,uz=D({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),cz=uz,dz=D({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),fz=dz,pz=D({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),hz=pz,vz=D({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),mz=vz,gz=D({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),E("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),yz=gz,bz=D({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),E("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),wz=bz,Cz=D({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),_z=Cz,Sz=D({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),xz=Sz,kz=D({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),Ez=kz,Tz=D({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),Mz=Tz,Oz=D({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),$z=Oz,Az=D({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Dy=Az,Rz=D({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Hy=Rz,Nz=D({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),Pz=Nz,Iz=D({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),Lz=Iz,Vz=D({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),xi=Vz,Bz=D({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Fy=Bz,zz=D({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),Dz=zz,Hz=D({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Eh=Hz,Fz=D({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),Kz=Fz,Wz=D({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),jz=Wz,qz=D({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),Uz=qz,Yz=D({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Gz=Yz,Xz=D({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Jz=Xz,Zz=D({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Qz=Zz,eD=D({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),E("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),tD=eD,nD=D({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),E("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),aD=nD,oD=D({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),lD=oD,rD=D({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),sD=rD,iD=D({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),uD=iD,cD=D({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),dD=cD,fD=D({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),pD=fD,hD=D({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),E("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),vD=hD,mD=D({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),gD=mD,yD=D({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),bD=yD,wD=D({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),E("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),CD=wD,_D=D({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),SD=_D,xD=D({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),kD=xD,ED=D({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),TD=ED,MD=D({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),OD=MD,$D=D({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),AD=$D,RD=D({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),ND=RD,PD=D({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),ID=PD,LD=D({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),VD=LD,BD=D({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),zD=BD,DD=D({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),HD=DD,FD=D({name:"User",__name:"user",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),KD=FD,WD=D({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),jD=WD,qD=D({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),UD=qD,YD=D({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),GD=YD,XD=D({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),JD=XD,ZD=D({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),QD=ZD,eH=D({name:"View",__name:"view",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ky=eH,tH=D({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),nH=tH,aH=D({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),oH=aH,lH=D({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),rH=lH,sH=D({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Hu=sH,iH=D({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),uH=iH,cH=D({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),dH=cH,fH=D({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),pH=fH,hH=D({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),vH=hH,mH=D({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Th=mH,gH=D({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Wy=gH;const yH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:vA,Aim:gA,AlarmClock:bA,Apple:CA,ArrowDown:bo,ArrowDownBold:SA,ArrowLeft:jo,ArrowLeftBold:EA,ArrowRight:Jn,ArrowRightBold:OA,ArrowUp:Du,ArrowUpBold:RA,Avatar:IA,Back:xy,Baseball:BA,Basketball:DA,Bell:WA,BellFilled:FA,Bicycle:qA,Bottom:ZA,BottomLeft:YA,BottomRight:XA,Bowl:eR,Box:nR,Briefcase:oR,Brush:iR,BrushFilled:rR,Burger:cR,Calendar:ky,Camera:vR,CameraFilled:pR,CaretBottom:gR,CaretLeft:bR,CaretRight:Sh,CaretTop:Ey,Cellphone:SR,ChatDotRound:kR,ChatDotSquare:TR,ChatLineRound:OR,ChatLineSquare:AR,ChatRound:NR,ChatSquare:IR,Check:ni,Checked:BR,Cherry:DR,Chicken:FR,ChromeFilled:WR,CircleCheck:gf,CircleCheckFilled:Ty,CircleClose:wo,CircleCloseFilled:yf,CirclePlus:ZR,CirclePlusFilled:XR,Clock:xh,Close:Ba,CloseBold:tN,Cloudy:oN,Coffee:iN,CoffeeCup:rN,Coin:cN,ColdDrink:fN,Collection:mN,CollectionTag:hN,Comment:yN,Compass:wN,Connection:_N,Coordinate:xN,CopyDocument:EN,Cpu:MN,CreditCard:$N,Crop:RN,DArrowLeft:yl,DArrowRight:bl,DCaret:LN,DataAnalysis:BN,DataBoard:DN,DataLine:FN,Delete:My,DeleteFilled:WN,DeleteLocation:qN,Dessert:GN,Discount:JN,Dish:tP,DishDot:QN,Document:Oy,DocumentAdd:aP,DocumentChecked:lP,DocumentCopy:sP,DocumentDelete:uP,DocumentRemove:dP,Download:hP,Drizzling:mP,Edit:wP,EditPen:yP,Eleme:xP,ElemeFilled:_P,ElementPlus:EP,Expand:MP,Failed:$P,Female:RP,Files:PP,Film:LP,Filter:BP,Finished:DP,FirstAidKit:FP,Flag:WP,Fold:qP,Folder:oI,FolderAdd:YP,FolderChecked:XP,FolderDelete:ZP,FolderOpened:eI,FolderRemove:nI,Food:rI,Football:iI,ForkSpoon:cI,Fries:fI,FullScreen:$y,Goblet:CI,GobletFull:vI,GobletSquare:bI,GobletSquareFull:gI,GoldMedal:SI,Goods:TI,GoodsFilled:kI,Grape:OI,Grid:AI,Guide:NI,Handbag:II,Headset:VI,Help:HI,HelpFilled:zI,Hide:Ay,Histogram:WI,HomeFilled:qI,HotWater:YI,House:XI,IceCream:nL,IceCreamRound:ZI,IceCreamSquare:eL,IceDrink:oL,IceTea:rL,InfoFilled:Ds,Iphone:uL,Key:dL,KnifeFork:pL,Lightning:vL,Link:gL,List:bL,Loading:io,Location:EL,LocationFilled:_L,LocationInformation:xL,Lock:ML,Lollipop:$L,MagicStick:RL,Magnet:PL,Male:LL,Management:BL,MapLocation:DL,Medal:FL,Memo:WL,Menu:qL,Message:XL,MessageBox:YL,Mic:ZL,Microphone:eV,MilkTea:nV,Minus:Ry,Money:lV,Monitor:sV,Moon:dV,MoonNight:uV,More:Ny,MoreFilled:_2,MostlyCloudy:vV,Mouse:gV,Mug:bV,Mute:SV,MuteNotification:CV,NoSmoking:kV,Notebook:TV,Notification:OV,Odometer:AV,OfficeBuilding:NV,Open:IV,Operation:VV,Opportunity:zV,Orange:HV,Paperclip:KV,PartlyCloudy:jV,Pear:UV,Phone:JV,PhoneFilled:GV,Picture:nB,PictureFilled:Py,PictureRounded:eB,PieChart:oB,Place:rB,Platform:iB,Plus:kh,Pointer:dB,Position:pB,Postcard:vB,Pouring:gB,Present:bB,PriceTag:CB,Printer:SB,Promotion:kB,QuartzWatch:TB,QuestionFilled:Iy,Rank:$B,Reading:PB,ReadingLamp:RB,Refresh:BB,RefreshLeft:Ly,RefreshRight:Vy,Refrigerator:DB,Remove:WB,RemoveFilled:FB,Right:qB,ScaleToOriginal:By,School:GB,Scissor:JB,Search:zy,Select:ez,Sell:nz,SemiSelect:oz,Service:rz,SetUp:iz,Setting:cz,Share:fz,Ship:hz,Shop:mz,ShoppingBag:yz,ShoppingCart:_z,ShoppingCartFull:wz,ShoppingTrolley:xz,Smoking:Ez,Soccer:Mz,SoldOut:$z,Sort:Pz,SortDown:Dy,SortUp:Hy,Stamp:Lz,Star:Fy,StarFilled:xi,Stopwatch:Dz,SuccessFilled:Eh,Sugar:Kz,Suitcase:Uz,SuitcaseLine:jz,Sunny:Gz,Sunrise:Jz,Sunset:Qz,Switch:lD,SwitchButton:tD,SwitchFilled:aD,TakeawayBox:sD,Ticket:uD,Tickets:dD,Timer:pD,ToiletPaper:vD,Tools:gD,Top:SD,TopLeft:bD,TopRight:CD,TrendCharts:kD,Trophy:OD,TrophyBase:TD,TurnOff:AD,Umbrella:ND,Unlock:ID,Upload:zD,UploadFilled:VD,User:KD,UserFilled:HD,Van:jD,VideoCamera:GD,VideoCameraFilled:UD,VideoPause:JD,VideoPlay:QD,View:Ky,Wallet:oH,WalletFilled:nH,WarnTriangleFilled:rH,Warning:uH,WarningFilled:Hu,Watch:dH,Watermelon:pH,WindPower:vH,ZoomIn:Th,ZoomOut:Wy},Symbol.toStringTag,{value:"Module"})),Ft=J([String,Object,Function]),jy={Close:Ba},Mh={Close:Ba,SuccessFilled:Eh,InfoFilled:Ds,WarningFilled:Hu,CircleCloseFilled:yf},Xl={primary:Ds,success:Eh,warning:Hu,error:yf,info:Ds},bf={validating:io,success:gf,error:wo},bH=["light","dark"],wH=Ce({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:tu(Xl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:bH,default:"light"}}),CH={close:e=>e instanceof MouseEvent},_H=Ce({size:{type:J([Number,String])},color:{type:String}});var SH=D({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:_H,setup(e){const t=e,n=ve("icon"),a=x(()=>{const{size:o,color:l}=t,r=cn(o);return!r&&!l?{}:{fontSize:r,"--color":l}});return(o,l)=>(_(),$("i",pt({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),xH=SH;const ze=rt(xH);var kH=D({name:"ElAlert",__name:"alert",props:wH,emits:CH,setup(e,{emit:t}){const{Close:n}=Mh,a=e,o=t,l=yn(),r=ve("alert"),s=V(!0),u=x(()=>Xl[a.type]),c=x(()=>{var h;if(a.description)return!0;const f=(h=l.default)==null?void 0:h.call(l);return f?Ra(f).some(g=>!yy(g)):!1}),d=f=>{s.value=!1,o("close",f)};return(f,h)=>(_(),ie(qn,{name:i(r).b("fade"),persisted:""},{default:ae(()=>[dt(E("div",{class:R([i(r).b(),i(r).m(e.type),i(r).is("center",e.center),i(r).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(_(),ie(i(ze),{key:0,class:R([i(r).e("icon"),i(r).is("big",c.value)])},{default:ae(()=>[oe(f.$slots,"icon",{},()=>[(_(),ie(ut(u.value)))])]),_:3},8,["class"])):re("v-if",!0),E("div",{class:R(i(r).e("content"))},[e.title||f.$slots.title?(_(),$("span",{key:0,class:R([i(r).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[_t(_e(e.title),1)])],2)):re("v-if",!0),c.value?(_(),$("p",{key:1,class:R(i(r).e("description"))},[oe(f.$slots,"default",{},()=>[_t(_e(e.description),1)])],2)):re("v-if",!0),e.closable?(_(),$(He,{key:2},[e.closeText?(_(),$("div",{key:0,class:R([i(r).e("close-btn"),i(r).is("customed")]),onClick:d},_e(e.closeText),3)):(_(),ie(i(ze),{key:1,class:R(i(r).e("close-btn")),onClick:d},{default:ae(()=>[Q(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[At,s.value]])]),_:3},8,["name"]))}}),EH=kH;const TH=rt(EH),qy=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Uy=Ce({role:{type:String,values:qy,default:"tooltip"}}),Oh=Symbol("popper"),Yy=Symbol("popperContent");var MH=D({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ve("popper"),{arrowRef:a,arrowStyle:o}=Ne(Yy,void 0);return Lt(()=>{a.value=void 0}),t({arrowRef:a}),(l,r)=>(_(),$("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:We(i(o)),"data-popper-arrow":""},null,6))}}),OH=MH;const Gy=Ce({virtualRef:{type:J(Object)},virtualTriggering:Boolean,onMouseenter:{type:J(Function)},onMouseleave:{type:J(Function)},onClick:{type:J(Function)},onKeydown:{type:J(Function)},onFocus:{type:J(Function)},onBlur:{type:J(Function)},onContextmenu:{type:J(Function)},id:String,open:Boolean}),i0="ElOnlyChild",Xy=D({name:i0,setup(e,{slots:t,attrs:n}){var o;const a=c$(((o=Ne(oy))==null?void 0:o.setForwardRef)??Yt);return()=>{var u;const l=(u=t.default)==null?void 0:u.call(t,n);if(!l)return null;const[r,s]=Jy(l);return r?(s>1&&ft(i0,"requires exact only one valid child."),dt(Ho(r,n),[[a]])):(ft(i0,"no valid child node found"),null)}}});function Jy(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==wn).length;for(const a of t){if(Mt(a))switch(a.type){case wn:continue;case Xs:case"svg":return[Bm(a),n];case He:return Jy(a.children);default:return[a,n]}return[Bm(a),n]}return[null,0]}function Bm(e){const t=ve("only-child");return Q("span",{class:t.e("content")},[e])}var $H=D({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Gy,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=Ne(Oh,void 0);u$(o);const l=x(()=>s.value?n.id:void 0),r=x(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=x(()=>{if(a&&a.value!=="tooltip")return a.value}),u=x(()=>s.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return mt(()=>{fe(()=>n.virtualRef,f=>{f&&(o.value=Mn(f))},{immediate:!0}),fe(o,(f,h)=>{c==null||c(),c=void 0,_a(h)&&d.forEach(g=>{const p=n[g];p&&h.removeEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),_a(f)&&(d.forEach(g=>{const p=n[g];p&&f.addEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),Lr(f)&&(c=fe([l,r,s,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{Cn(g[v])?f.removeAttribute(p):f.setAttribute(p,g[v])})},{immediate:!0}))),_a(h)&&Lr(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Lt(()=>{if(c==null||c(),c=void 0,o.value&&_a(o.value)){const f=o.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(h))}),o.value=void 0}}),t({triggerRef:o}),(f,h)=>e.virtualTriggering?re("v-if",!0):(_(),ie(i(Xy),pt({key:0},f.$attrs,{"aria-controls":l.value,"aria-describedby":r.value,"aria-expanded":u.value,"aria-haspopup":s.value}),{default:ae(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),AH=$H;const Zy=Ce({arrowOffset:{type:Number,default:5}}),RH=["fixed","absolute"],NH=Ce({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:J(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Uo,default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},strategy:{type:String,values:RH,default:"absolute"}}),Qy=Ce({...NH,...Zy,id:String,style:{type:J([String,Array,Object])},className:{type:J([String,Array,Object])},effect:{type:J(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:J([String,Array,Object])},popperStyle:{type:J([String,Array,Object])},referenceEl:{type:J(Object)},triggerTargetEl:{type:J(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ia(["ariaLabel"]),loop:Boolean}),PH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},IH=Ce({size:{type:String,values:vo},disabled:Boolean}),LH=Ce({...IH,model:Object,rules:{type:J(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:J([Object,Boolean]),default:!0}}),VH={validate:(e,t,n)=>(Ve(e)||Ue(e))&&Dt(t)&&Ue(n)},Xr=Symbol("formContextKey"),qo=Symbol("formItemContextKey"),En=(e,t={})=>{const n=V(void 0),a=t.prop?n:W8("size"),o=t.global?n:wy(),l=t.form?{size:void 0}:Ne(Xr,void 0),r=t.formItem?{size:void 0}:Ne(qo,void 0);return x(()=>a.value||i(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||o.value||"")},dn=e=>{const t=W8("disabled"),n=Ne(Xr,void 0);return x(()=>t.value??i(e)??(n==null?void 0:n.disabled)??!1)},Kn=()=>({form:Ne(Xr,void 0),formItem:Ne(qo,void 0)}),za=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=V(!1)),a||(a=V(!1));const o=ht(),l=()=>{let c=o==null?void 0:o.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=V();let s;const u=x(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return mt(()=>{s=fe([Bt(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Un().value);f!==r.value&&(t!=null&&t.removeInputId&&!l()&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Gs(()=>{s&&s(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},BH=["","error","validating","success"],zH=Ce({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:J([String,Array])},required:{type:Boolean,default:void 0},rules:{type:J([Object,Array])},error:String,validateStatus:{type:String,values:BH},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:vo}}),zm=e=>[...new Set(e)],mi=e=>Ve(e)?e[0]:e,la=e=>!e&&e!==0?[]:Ve(e)?e:[e],DH="ElForm";function HH(){const e=V([]),t=x(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value==="0"&&ft(DH,`unexpected width ${l}`),r}function a(l,r){if(l&&r){const s=n(r);e.value.splice(s,1,l)}else l&&e.value.push(l)}function o(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const cc=(e,t)=>{const n=In(t).map(a=>Ve(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Qr="ElForm";var FH=D({name:Qr,__name:"form",props:LH,emits:VH,setup(e,{expose:t,emit:n}){const a=e,o=n,l=V(),r=Nt([]),s=new Map,u=En(),c=ve("form"),d=x(()=>{const{labelPosition:T,inline:M}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${T}`)]:T,[c.m("inline")]:M}]}),f=T=>cc(r,[T])[0],h=T=>{r.includes(T)||r.push(T),T.propString&&(s.has(T.propString)?T.setInitialValue(s.get(T.propString)):s.set(T.propString,Ro(T.fieldValue)))},g=(T,M)=>{if(M){s.delete(M);return}const A=r.indexOf(T);A>-1&&(r.splice(A,1),T.propString&&s.set(T.propString,Ro(T.getInitialValue())))},p=T=>{if(!a.model){ft(Qr,"model is required for setInitialValues to work.");return}if(!T){ft(Qr,"initModel is required for setInitialValues to work.");return}for(const M of s.keys())s.set(M,Ro(Wl(T,M).value));r.forEach(M=>{M.prop&&M.setInitialValue(Wl(T,M.prop).value)})},v=(T=[])=>{if(!a.model){ft(Qr,"model is required for resetFields to work.");return}cc(r,T).forEach(O=>O.resetField());const M=new Set(r.map(O=>O.propString).filter(Boolean)),A=T.length>0?In(T).map(O=>Ve(O)?O.join("."):O):[...s.keys()];for(const O of A)!M.has(O)&&s.has(O)&&(Wl(a.model,O).value=Ro(s.get(O)))},m=(T=[])=>{cc(r,T).forEach(M=>M.clearValidate())},y=x(()=>{const T=!!a.model;return T||ft(Qr,"model is required for validate to work."),T}),b=T=>{if(r.length===0)return[];const M=cc(r,T);return M.length?M:(ft(Qr,"please pass correct props!"),[])},w=async T=>S(void 0,T),C=async(T=[])=>{if(!y.value)return!1;const M=b(T);if(M.length===0)return!0;let A={};for(const O of M)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(I){A={...A,...I}}return Object.keys(A).length===0?!0:Promise.reject(A)},S=async(T=[],M)=>{var I;let A=!1;const O=!ct(M);try{return A=await C(T),A===!0&&await(M==null?void 0:M(A)),A}catch(L){if(L instanceof Error)throw L;const z=L;return a.scrollToError&&l.value&&((I=l.value.querySelector(`.${c.b()}-item.is-error`))==null||I.scrollIntoView(a.scrollIntoViewOptions)),!A&&await(M==null?void 0:M(!1,z)),O&&Promise.reject(z)}},k=T=>{var A;const M=f(T);M&&((A=M.$el)==null||A.scrollIntoView(a.scrollIntoViewOptions))};return fe(()=>a.rules,()=>{a.validateOnRuleChange&&w().catch(T=>ft(T))},{deep:!0,flush:"post"}),bt(Xr,Nt({...Bn(a),emit:o,resetFields:v,clearValidate:m,validateField:S,getField:f,addField:h,removeField:g,setInitialValues:p,...HH()})),t({validate:w,validateField:S,resetFields:v,clearValidate:m,scrollToField:k,getField:f,fields:r,setInitialValues:p}),(T,M)=>(_(),$("form",{ref_key:"formRef",ref:l,class:R(d.value)},[oe(T.$slots,"default")],2))}}),KH=FH;const Dm="ElLabelWrap";var WH=D({name:Dm,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ne(Xr,void 0),a=Ne(qo);a||on(Dm,"usage: ");const o=ve("form"),l=V(),r=V(0),s=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Ie(()=>{t.default&&e.isAutoWidth&&(d==="update"?r.value=s():d==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>u("update");return mt(()=>{c()}),Lt(()=>{u("remove")}),ho(()=>c()),fe(r,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),en(x(()=>{var d;return((d=l.value)==null?void 0:d.firstElementChild)??null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:d}=e;if(d){const g=n==null?void 0:n.autoLabelWidth,p=a==null?void 0:a.hasLabel,v={};if(p&&g&&g!=="auto"){const m=Math.max(0,Number.parseInt(g,10)-r.value),y=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return Q("div",{ref:l,class:[o.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return Q(He,{ref:l},[(h=t.default)==null?void 0:h.call(t)])}}});function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vc(e,t,n){return qH()?Vc=Reflect.construct.bind():Vc=function(o,l,r){var s=[null];s.push.apply(s,l);var u=Function.bind.apply(o,s),c=new u;return r&&lu(c,r.prototype),c},Vc.apply(null,arguments)}function UH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function x2(e){var t=typeof Map=="function"?new Map:void 0;return x2=function(a){if(a===null||!UH(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Vc(a,arguments,S2(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),lu(o,a)},x2(e)}var YH=/%[sdj%]/g,GH=function(){};function k2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Na(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=l)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return r}return e}function XH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||XH(t)&&typeof e=="string"&&!e)}function JH(e,t,n){var a=[],o=0,l=e.length;function r(s){a.push.apply(a,s||[]),o++,o===l&&n(a)}e.forEach(function(s){t(s,r)})}function Hm(e,t,n){var a=0,o=e.length;function l(r){if(r&&r.length){n(r);return}var s=a;a=a+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ki={integer:function(t){return ki.number(t)&&parseInt(t,10)===t},float:function(t){return ki.number(t)&&!ki.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ki.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aF())},hex:function(t){return typeof t=="string"&&!!t.match(jm.hex)}},oF=function(t,n,a,o,l){if(t.required&&n===void 0){eb(t,n,a,o,l);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?ki[s](n)||o.push(Na(l.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Na(l.messages.types[s],t.fullField,t.type))},lF=function(t,n,a,o,l){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&o.push(Na(l.messages[f].len,t.fullField,t.len)):s&&!u&&dt.max?o.push(Na(l.messages[f].max,t.fullField,t.max)):s&&u&&(dt.max)&&o.push(Na(l.messages[f].range,t.fullField,t.min,t.max))},es="enum",rF=function(t,n,a,o,l){t[es]=Array.isArray(t[es])?t[es]:[],t[es].indexOf(n)===-1&&o.push(Na(l.messages[es],t.fullField,t[es].join(", ")))},sF=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Na(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||o.push(Na(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ut={required:eb,whitespace:nF,type:oF,range:lF,enum:rF,pattern:sF},iF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l,"string"),Hn(n,"string")||(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l),Ut.pattern(t,n,o,r,l),t.whitespace===!0&&Ut.whitespace(t,n,o,r,l))}a(r)},uF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},cF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},dF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},fF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),Hn(n)||Ut.type(t,n,o,r,l)}a(r)},pF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},hF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},vF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Ut.required(t,n,o,r,l,"array"),n!=null&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},mF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},gF="enum",yF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut[gF](t,n,o,r,l)}a(r)},bF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l),Hn(n,"string")||Ut.pattern(t,n,o,r,l)}a(r)},wF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"date")&&!t.required)return a();if(Ut.required(t,n,o,r,l),!Hn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Ut.type(t,u,o,r,l),u&&Ut.range(t,u.getTime(),o,r,l)}}a(r)},CF=function(t,n,a,o,l){var r=[],s=Array.isArray(n)?"array":typeof n;Ut.required(t,n,o,r,l,s),a(r)},u0=function(t,n,a,o,l){var r=t.type,s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Hn(n,r)&&!t.required)return a();Ut.required(t,n,o,s,l,r),Hn(n,r)||Ut.type(t,n,o,s,l)}a(s)},_F=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l)}a(r)},Hi={string:iF,method:uF,number:cF,boolean:dF,regexp:fF,integer:pF,float:hF,array:vF,object:mF,enum:yF,pattern:bF,date:wF,url:u0,hex:u0,email:u0,required:CF,any:_F};function E2(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var T2=E2(),Fu=function(){function e(n){this.rules=null,this._messages=T2,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(l){var r=a[l];o.rules[l]=Array.isArray(r)?r:[r]})},t.messages=function(a){return a&&(this._messages=Wm(E2(),a)),this._messages},t.validate=function(a,o,l){var r=this;o===void 0&&(o={}),l===void 0&&(l=function(){});var s=a,u=o,c=l;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(v){var m=[],y={};function b(C){if(Array.isArray(C)){var S;m=(S=m).concat.apply(S,C)}else m.push(C)}for(var w=0;wn.labelPosition||(o==null?void 0:o.labelPosition)),y=x(()=>m.value==="top"?{}:{width:cn(n.labelWidth??(o==null?void 0:o.labelWidth))}),b=x(()=>{if(m.value==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&O)return{};const Y=cn(n.labelWidth??(o==null?void 0:o.labelWidth));return!n.label&&!a.label?{marginLeft:Y}:{}}),w=x(()=>[s.b(),s.m(r.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",U.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${m.value}`)]:m.value}]),C=x(()=>Dt(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),S=x(()=>[s.e("error"),{[s.em("error","inline")]:C.value}]),k=x(()=>n.prop?Ve(n.prop)?n.prop.join("."):n.prop:""),T=x(()=>!!(n.label||a.label)),M=x(()=>n.for??(c.value.length===1?c.value[0]:void 0)),A=x(()=>!M.value&&T.value),O=!!l,I=x(()=>{const Y=o==null?void 0:o.model;if(!(!Y||!n.prop))return Wl(Y,n.prop).value}),L=x(()=>{const{required:Y}=n,X=[];n.rules&&X.push(...In(n.rules));const H=o==null?void 0:o.rules;if(H&&n.prop){const Z=Wl(H,n.prop).value;Z&&X.push(...In(Z))}if(Y!==void 0){const Z=X.map((le,ce)=>[le,ce]).filter(([le])=>"required"in le);if(Z.length>0)for(const[le,ce]of Z)le.required!==Y&&(X[ce]={...le,required:Y});else X.push({required:Y})}return X}),z=x(()=>L.value.length>0),q=Y=>L.value.filter(X=>!X.trigger||!Y?!0:Ve(X.trigger)?X.trigger.includes(Y):X.trigger===Y).map(({trigger:X,...H})=>H),U=x(()=>L.value.some(Y=>Y.required)),F=x(()=>f.value==="error"&&n.showMessage&&((o==null?void 0:o.showMessage)??!0)),N=x(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),P=Y=>{d.value=Y},B=Y=>{var Z;const{errors:X,fields:H}=Y;(!X||!H)&&console.error(Y),P("error"),h.value=X?((Z=X==null?void 0:X[0])==null?void 0:Z.message)??`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},W=()=>{P("success"),o==null||o.emit("validate",n.prop,!0,"")},K=async Y=>{const X=k.value;return new Fu({[X]:Y}).validate({[X]:I.value},{firstFields:!0}).then(()=>(W(),!0)).catch(H=>(B(H),Promise.reject(H)))},j=async(Y,X)=>{if(v||!n.prop)return!1;const H=ct(X);if(!z.value)return X==null||X(!1),!1;const Z=q(Y);return Z.length===0?(X==null||X(!0),!0):(P("validating"),K(Z).then(()=>(X==null||X(!0),!0)).catch(le=>{const{fields:ce}=le;return X==null||X(!1,ce),H?!1:Promise.reject(ce)}))},G=()=>{P(""),h.value="",v=!1},ee=async()=>{const Y=o==null?void 0:o.model;if(!Y||!n.prop)return;const X=Wl(Y,n.prop);v=!0,X.value=Ro(p),await Ie(),G(),v=!1},te=Y=>{c.value.includes(Y)||c.value.push(Y)},ue=Y=>{c.value=c.value.filter(X=>X!==Y)},ne=Y=>{p=Ro(Y)},de=()=>p;fe(()=>n.error,Y=>{h.value=Y||"",P(Y?"error":"")},{immediate:!0}),fe(()=>n.validateStatus,Y=>P(Y||""));const se=Nt({...Bn(n),$el:g,size:r,validateMessage:h,validateState:d,labelId:u,inputIds:c,isGroup:A,hasLabel:T,fieldValue:I,addInputId:te,removeInputId:ue,resetField:ee,clearValidate:G,validate:j,propString:k,setInitialValue:ne,getInitialValue:de});return bt(qo,se),fe(k,(Y,X)=>{!o||!X||(o.removeField(se,X),Y&&(ne(I.value),o.addField(se)))}),mt(()=>{n.prop&&(ne(I.value),o==null||o.addField(se))}),Lt(()=>{o==null||o.removeField(se)}),t({size:r,validateMessage:h,validateState:d,validate:j,clearValidate:G,resetField:ee,setInitialValue:ne}),(Y,X)=>{var H;return _(),$("div",{ref_key:"formItemRef",ref:g,class:R(w.value),role:A.value?"group":void 0,"aria-labelledby":A.value?i(u):void 0},[Q(i(WH),{"is-auto-width":y.value.width==="auto","update-all":((H=i(o))==null?void 0:H.labelWidth)==="auto"},{default:ae(()=>[e.label||Y.$slots.label?(_(),ie(ut(M.value?"label":"div"),{key:0,id:i(u),for:M.value,class:R(i(s).e("label")),style:We(y.value)},{default:ae(()=>[oe(Y.$slots,"label",{label:N.value},()=>[_t(_e(N.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:R(i(s).e("content")),style:We(b.value)},[oe(Y.$slots,"default"),Q(w6,{name:`${i(s).namespace.value}-zoom-in-top`},{default:ae(()=>[F.value?oe(Y.$slots,"error",{key:0,error:h.value},()=>[E("div",{class:R(S.value)},_e(h.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,SF)}}}),tb=xF;const kF=rt(KH,{FormItem:tb}),EF=ln(tb),c0="focus-trap.focus-after-trapped",d0="focus-trap.focus-after-released",TF="focus-trap.focusout-prevented",qm={cancelable:!0,bubbles:!1},MF={cancelable:!0,bubbles:!1},Um="focusAfterTrapped",Ym="focusAfterReleased",nb=Symbol("elFocusTrap"),$h=V(),wf=V(0),Ah=V(0);let fc=0;const ab=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Gm=(e,t)=>{for(const n of e)if(!OF(n,t))return n},OF=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},$F=e=>{const t=ab(e);return[Gm(t,e),Gm(t.reverse(),e)]},AF=e=>e instanceof HTMLInputElement&&"select"in e,Il=(e,t)=>{if(e){const n=document.activeElement;$u(e,{preventScroll:!0}),Ah.value=window.performance.now(),e!==n&&AF(e)&&t&&e.select()}};function Xm(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const RF=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=Xm(e,a),e.unshift(a)},remove:a=>{var o,l;e=Xm(e,a),(l=(o=e[0])==null?void 0:o.resume)==null||l.call(o)}}},NF=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(Il(a,t),document.activeElement!==n)return},Jm=RF(),PF=()=>wf.value>Ah.value,pc=()=>{$h.value="pointer",wf.value=window.performance.now()},Zm=()=>{$h.value="keyboard",wf.value=window.performance.now()},IF=()=>(mt(()=>{fc===0&&(document.addEventListener("mousedown",pc),document.addEventListener("touchstart",pc),document.addEventListener("keydown",Zm)),fc++}),Lt(()=>{fc--,fc<=0&&(document.removeEventListener("mousedown",pc),document.removeEventListener("touchstart",pc),document.removeEventListener("keydown",Zm))}),{focusReason:$h,lastUserFocusTimestamp:wf,lastAutomatedFocusTimestamp:Ah}),hc=e=>new CustomEvent(TF,{...MF,detail:e});var LF=D({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Um,Ym,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let a,o;const{focusReason:l}=IF();o$(p=>{e.trapped&&!r.paused&&t("release-requested",p)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:v,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:w}=p,{loop:C}=e,S=Kt(p)===we.tab&&!v&&!m&&!y,k=document.activeElement;if(S&&k){const T=b,[M,A]=$F(T);if(M&&A){if(!w&&k===A){const O=hc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),C&&Il(M,!0))}else if(w&&[M,T].includes(k)){const O=hc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),C&&Il(A,!0))}}else if(k===T){const O=hc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||p.preventDefault()}}};bt(nb,{focusTrapRef:n,onKeydown:s}),fe(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),fe([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",d),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=p=>{t(Um,p)},c=p=>t(Ym,p),d=p=>{const v=i(n);if(!v)return;const m=p.target,y=p.relatedTarget,b=m&&v.contains(m);e.trapped||y&&v.contains(y)||(a=y),b&&t("focusin",p),!r.paused&&e.trapped&&(b?o=m:Il(o,!0))},f=p=>{const v=i(n);if(!(r.paused||!v))if(e.trapped){const m=p.relatedTarget;!Cn(m)&&!v.contains(m)&&setTimeout(()=>{if(!r.paused&&e.trapped){const y=hc({focusReason:l.value});t("focusout-prevented",y),y.defaultPrevented||Il(o,!0)}},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Ie();const p=i(n);if(p){Jm.push(r);const v=p.contains(document.activeElement)?a:document.activeElement;if(a=v,!p.contains(v)){const m=new Event(c0,qm);p.addEventListener(c0,u),p.dispatchEvent(m),m.defaultPrevented||Ie(()=>{let y=e.focusStartEl;Ue(y)||(Il(y),document.activeElement!==y&&(y="first")),y==="first"&&NF(ab(p),!0),(document.activeElement===v||y==="container")&&Il(p)})}}}function g(){const p=i(n);if(p){p.removeEventListener(c0,u);const v=new CustomEvent(d0,{...qm,detail:{focusReason:l.value}});p.addEventListener(d0,c),p.dispatchEvent(v),!v.defaultPrevented&&(l.value=="keyboard"||!PF()||p.contains(document.activeElement))&&Il(a??document.body),p.removeEventListener(d0,c),Jm.remove(r),a=null,o=null}}return mt(()=>{e.trapped&&h(),fe(()=>e.trapped,p=>{p?h():g()})}),Lt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:s}}}),$n=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function VF(e,t,n,a,o,l){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var BF=$n(LF,[["render",VF]]),ai=BF;const zF=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,l={placement:n,strategy:a,...o,modifiers:[...HF(e),...t]};return FF(l,o==null?void 0:o.modifiers),l},DF=e=>{if(Rt)return Mn(e)};function HF(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function FF(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const KF=0,WF=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=Ne(Oh,void 0),l=V(),r=x(()=>e.arrowOffset),s=x(()=>({name:"eventListeners",enabled:!!e.visible})),u=x(()=>{const b=i(l),w=i(r)??KF;return{name:"arrow",enabled:!rM(b),options:{element:b,padding:w}}}),c=x(()=>({onFirstUpdate:()=>{p()},...zF(e,[i(u),i(s)])})),d=x(()=>DF(e.referenceEl)||i(a)),{attributes:f,state:h,styles:g,update:p,forceUpdate:v,instanceRef:m}=e$(d,n,c);fe(m,b=>t.value=b,{flush:"sync"}),mt(()=>{fe(()=>{var b,w;return(w=(b=i(d))==null?void 0:b.getBoundingClientRect)==null?void 0:w.call(b)},()=>{p()})});let y;return fe(()=>e.visible,b=>{y==null||y(),y=void 0,b&&(y=en(n,p).stop)}),Lt(()=>{t.value=void 0,y==null||y(),y=void 0}),{attributes:f,arrowRef:l,contentRef:n,instanceRef:m,state:h,styles:g,role:o,forceUpdate:v,update:p}},jF=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=Pu(),l=ve("popper"),r=x(()=>i(t).popper),s=V(De(e.zIndex)?e.zIndex:o()),u=x(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),c=x(()=>[{zIndex:i(s)},i(n).popper,e.popperStyle||{}]),d=x(()=>a.value==="dialog"?"false":void 0),f=x(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:r,contentClass:u,contentStyle:c,contentZIndex:s,updateZIndex:()=>{s.value=De(e.zIndex)?e.zIndex:o()}}},qF=(e,t)=>{const n=V(!1),a=V(),o=()=>{t("focus")},l=c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},s=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Lt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:l,onFocusAfterTrapped:o,onFocusInTrap:r,onFocusoutPrevented:s,onReleaseRequested:u}};var UF=D({name:"ElPopperContent",__name:"content",props:Qy,emits:PH,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:l,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=qF(o,a),{attributes:h,arrowRef:g,contentRef:p,styles:v,instanceRef:m,role:y,update:b}=WF(o),{ariaModal:w,arrowStyle:C,contentAttrs:S,contentClass:k,contentStyle:T,updateZIndex:M}=jF(o,{styles:v,attributes:h,role:y}),A=Ne(qo,void 0);bt(Yy,{arrowStyle:C,arrowRef:g}),A&&bt(qo,{...A,addInputId:Yt,removeInputId:Yt});let O;const I=(z=!0)=>{b(),z&&M()},L=()=>{I(!1),o.visible&&o.focusOnShow?r.value=!0:o.visible===!1&&(r.value=!1)};return mt(()=>{fe(()=>o.triggerTargetEl,(z,q)=>{O==null||O(),O=void 0;const U=i(z||p.value),F=i(q||p.value);_a(U)&&(O=fe([y,()=>o.ariaLabel,w,()=>o.id],N=>{["role","aria-label","aria-modal","id"].forEach((P,B)=>{Cn(N[B])?U.removeAttribute(P):U.setAttribute(P,N[B])})},{immediate:!0})),F!==U&&_a(F)&&["role","aria-label","aria-modal","id"].forEach(N=>{F.removeAttribute(N)})},{immediate:!0}),fe(()=>o.visible,L,{immediate:!0})}),Lt(()=>{O==null||O(),O=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:I,contentStyle:T}),(z,q)=>(_(),$("div",pt({ref_key:"contentRef",ref:p},i(S),{style:i(T),class:i(k),tabindex:"-1",onMouseenter:q[0]||(q[0]=U=>z.$emit("mouseenter",U)),onMouseleave:q[1]||(q[1]=U=>z.$emit("mouseleave",U))}),[Q(i(ai),{loop:e.loop,trapped:i(r),"trap-on-focus-in":!0,"focus-trap-el":i(p),"focus-start-el":i(l),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(s),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ae(()=>[oe(z.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),YF=UF,GF=D({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Uy,setup(e,{expose:t}){const n=e,a={triggerRef:V(),popperInstanceRef:V(),contentRef:V(),referenceRef:V(),role:x(()=>n.role)};return t(a),bt(Oh,a),(o,l)=>oe(o.$slots,"default")}}),XF=GF;const ob=rt(XF),Ht=Ce({...s$,...Qy,appendTo:{type:Au.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:J(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ia(["ariaLabel"])}),Do=Ce({...Gy,disabled:Boolean,trigger:{type:J([String,Array]),default:"hover"},triggerKeys:{type:J(Array),default:()=>[we.enter,we.numpadEnter,we.space]},focusOnTarget:Boolean}),{useModelToggleProps:JF,useModelToggleEmits:ZF,useModelToggle:QF}=JM("visible"),eK=Ce({...Uy,...JF,...Ht,...Do,...Zy,showArrow:{type:Boolean,default:!0}}),tK=[...ZF,"before-show","before-hide","show","hide","open","close"],Rh=Symbol("elTooltip"),M2=(e,t)=>Ve(e)?e.includes(t):e===t,ts=(e,t,n)=>a=>{M2(i(e),t)&&n(a)};var nK=D({name:"ElTooltipTrigger",__name:"trigger",props:Do,setup(e,{expose:t}){const n=e,a=ve("tooltip"),{controlled:o,id:l,open:r,onOpen:s,onClose:u,onToggle:c}=Ne(Rh,void 0),d=V(null),f=()=>{if(i(o)||n.disabled)return!0},h=Bt(n,"trigger"),g=Pn(f,ts(h,"hover",C=>{s(C),n.focusOnTarget&&C.target&&Ie(()=>{$u(C.target,{preventScroll:!0})})})),p=Pn(f,ts(h,"hover",u)),v=Pn(f,ts(h,"click",C=>{C.button===0&&c(C)})),m=Pn(f,ts(h,"focus",s)),y=Pn(f,ts(h,"focus",u)),b=Pn(f,ts(h,"contextmenu",C=>{C.preventDefault(),c(C)})),w=Pn(f,C=>{const S=Kt(C);n.triggerKeys.includes(S)&&(C.preventDefault(),c(C))});return t({triggerRef:d}),(C,S)=>(_(),ie(i(AH),{id:i(l),"virtual-ref":e.virtualRef,open:i(r),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(y),onClick:i(v),onContextmenu:i(b),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(p),onKeydown:i(w)},{default:ae(()=>[oe(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),aK=nK,oK=D({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Ht,setup(e,{expose:t}){const n=e,{selector:a}=ay(),o=ve("tooltip"),l=V(),r=$6(()=>{var P;return(P=l.value)==null?void 0:P.popperContentRef});let s;const{controlled:u,id:c,open:d,trigger:f,onClose:h,onOpen:g,onShow:p,onHide:v,onBeforeShow:m,onBeforeHide:y}=Ne(Rh,void 0),b=x(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=x(()=>n.persistent);Lt(()=>{s==null||s()});const C=x(()=>i(w)?!0:i(d)),S=x(()=>n.disabled?!1:i(d)),k=x(()=>n.appendTo||a.value),T=x(()=>n.style??{}),M=V(!0),A=()=>{v(),N()&&$u(document.body,{preventScroll:!0}),M.value=!0},O=()=>{if(i(u))return!0},I=Pn(O,()=>{n.enterable&&M2(i(f),"hover")&&g()}),L=Pn(O,()=>{M2(i(f),"hover")&&h()}),z=()=>{var P,B;(B=(P=l.value)==null?void 0:P.updatePopper)==null||B.call(P),m==null||m()},q=()=>{y==null||y()},U=()=>{p()},F=()=>{n.virtualTriggering||h()},N=P=>{var K;const B=(K=l.value)==null?void 0:K.popperContentRef,W=(P==null?void 0:P.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(W)};return fe(()=>i(d),P=>{P?(M.value=!1,s=Bp(r,()=>{i(u)||la(i(f)).every(B=>B!=="hover"&&B!=="focus")&&h()},{detectIframe:!0})):s==null||s()},{flush:"post"}),t({contentRef:l,isFocusInsideContent:N}),(P,B)=>(_(),ie(i(ti),{disabled:!e.teleported,to:k.value},{default:ae(()=>[C.value||!M.value?(_(),ie(qn,{key:0,name:b.value,appear:!w.value,onAfterLeave:A,onBeforeEnter:z,onAfterEnter:U,onBeforeLeave:q,persisted:""},{default:ae(()=>[dt(Q(i(YF),pt({id:i(c),ref_key:"contentRef",ref:l},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":M.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:S.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(I),onMouseleave:i(L),onBlur:F,onClose:i(h)}),{default:ae(()=>[oe(P.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[At,S.value]])]),_:3},8,["name","appear"])):re("v-if",!0)]),_:3},8,["disabled","to"]))}}),lK=oK;const rK=["innerHTML"],sK={key:1};var iK=D({name:"ElTooltip",__name:"tooltip",props:eK,emits:tK,setup(e,{expose:t,emit:n}){const a=e,o=n;r$();const l=ve("tooltip"),r=Un(),s=V(),u=V(),c=()=>{var S;const C=i(s);C&&((S=C.popperInstanceRef)==null||S.update())},d=V(!1),f=V(),{show:h,hide:g,hasUpdateHandler:p}=QF({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=i$({showAfter:Bt(a,"showAfter"),hideAfter:Bt(a,"hideAfter"),autoClose:Bt(a,"autoClose"),open:h,close:g}),y=x(()=>Dt(a.visible)&&!p.value),b=x(()=>[l.b(),a.popperClass]);bt(Rh,{controlled:y,id:r,open:Rr(d),trigger:Bt(a,"trigger"),onOpen:v,onClose:m,onToggle:C=>{i(d)?m(C):v(C)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),fe(()=>a.disabled,C=>{C&&d.value&&(d.value=!1),!C&&Dt(a.visible)&&(d.value=a.visible)});const w=C=>{var S;return(S=u.value)==null?void 0:S.isFocusInsideContent(C)};return Mp(()=>d.value&&g()),Lt(()=>{f.value=void 0}),t({popperRef:s,contentRef:u,isFocusInsideContent:w,updatePopper:c,onOpen:v,onClose:m,hide:g}),(C,S)=>(_(),ie(i(ob),{ref_key:"popperRef",ref:s,role:e.role},{default:ae(()=>[Q(aK,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ae(()=>[C.$slots.default?oe(C.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Q(lK,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":b.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ae(()=>[oe(C.$slots,"content",{},()=>[e.rawContent?(_(),$("span",{key:0,innerHTML:e.content},null,8,rK)):(_(),$("span",sK,_e(e.content),1))]),e.showArrow?(_(),ie(i(OH),{key:0})):re("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),uK=iK;const Fn=rt(uK),un=e=>e,Nh=Ce({id:{type:String,default:void 0},size:On,disabled:{type:Boolean,default:void 0},modelValue:{type:J([String,Number,Object]),default:""},modelModifiers:{type:J(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:J(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([Boolean,Object]),default:!1},autocomplete:{type:J(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:wo},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ft},prefixIcon:{type:Ft},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:J([Object,Array,String]),default:()=>un({})},countGraphemes:{type:J(Function)},autofocus:Boolean,rows:{type:Number,default:2},...ia(["ariaLabel"]),inputmode:{type:J(String),default:void 0},name:String}),cK={[at]:e=>Ue(e),input:e=>Ue(e),change:(e,t)=>Ue(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Io(wo);let Qn;const dK={height:"0",visibility:"hidden",overflow:Zd()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},fK=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Qm=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function pK(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:fK.map(l=>[l,t.getPropertyValue(l)]),paddingSize:a,borderSize:o,boxSizing:n}}function eg(e,t=1,n){var d;if(!Qn){Qn=document.createElement("textarea");let f=document.body;!Zd()&&e.parentNode&&(f=e.parentNode),f.appendChild(Qn)}const{paddingSize:a,borderSize:o,boxSizing:l,contextStyle:r}=pK(e);r.forEach(([f,h])=>Qn==null?void 0:Qn.style.setProperty(f,h)),Object.entries(dK).forEach(([f,h])=>Qn==null?void 0:Qn.style.setProperty(f,h,"important")),Qn.value=e.value||e.placeholder||"";let s=Qn.scrollHeight;const u={};l==="border-box"?s=s+o:l==="content-box"&&(s=s-a),Qn.value="";const c=Qn.scrollHeight-a;if(De(t)){let f=c*t;l==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(De(n)){let f=c*n;l==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(d=Qn.parentNode)==null||d.removeChild(Qn),Qn=void 0,u}const hK=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],vK=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],tg="ElInput";var mK=D({name:tg,inheritAttrs:!1,__name:"input",props:Nh,emits:cK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=_l(),r=yn(),s=x(()=>[a.type==="textarea"?y.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",te.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||a.prefixIcon,[m.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:K.value&&j.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=x(()=>[m.e("wrapper"),m.is("focus",I.value)]),c=uf(),d=x(()=>{var Te;return(Te=a.maxlength)==null?void 0:Te.toString()}),{form:f,formItem:h}=Kn(),{inputId:g}=za(a,{formItemContext:h}),p=En(),v=dn(),m=ve("input"),y=ve("textarea"),b=qt(),w=qt(),C=V(!1),S=V(!1),k=V(),T=qt(a.inputStyle),M=V(""),A=x(()=>b.value||w.value),{wrapperRef:O,isFocused:I,handleFocus:L,handleBlur:z}=El(A,{disabled:v,afterBlur(){var Te;a.validateEvent&&((Te=h==null?void 0:h.validate)==null||Te.call(h,"blur").catch(Ye=>ft(Ye)))}}),q=x(()=>(f==null?void 0:f.statusIcon)??!1),U=x(()=>(h==null?void 0:h.validateState)||""),F=x(()=>U.value&&bf[U.value]),N=x(()=>S.value?Ky:Ay),P=x(()=>[l.style]),B=x(()=>[a.inputStyle,T.value,{resize:a.resize}]),W=x(()=>Cn(a.modelValue)?"":String(a.modelValue)),K=x(()=>a.clearable&&!v.value&&!a.readonly&&!!W.value&&(I.value||C.value)),j=x(()=>a.showPassword&&!v.value&&!!W.value),G=x(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),ee=x(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(W.value):W.value.length),te=x(()=>!!G.value&&ee.value>Number(d.value)),ue=x(()=>!!r.suffix||!!a.suffixIcon||K.value||a.showPassword||G.value||!!U.value&&q.value),ne=x(()=>!!Object.keys(a.modelModifiers).length),[de,se]=Q$(b);en(w,Te=>{if(H(),!G.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:Ye}=Te[0].contentRect;k.value={right:`calc(100% - ${Ye+22-10}px)`}});const Y=()=>{const{type:Te,autosize:Ye}=a;if(!(!Rt||Te!=="textarea"||!w.value))if(Ye){const st=Mt(Ye)?Ye.minRows:void 0,Ke=Mt(Ye)?Ye.maxRows:void 0,et=eg(w.value,st,Ke);T.value={overflowY:"hidden",...et},Ie(()=>{w.value.offsetHeight,T.value=et})}else T.value={minHeight:eg(w.value).minHeight}},H=(Te=>{let Ye=!1;return()=>{var st;Ye||!a.autosize||((st=w.value)==null?void 0:st.offsetParent)!==null&&(setTimeout(Te),Ye=!0)}})(Y),Z=()=>{const Te=A.value,Ye=a.formatter?a.formatter(W.value):W.value;!Te||Te.value===Ye||a.type==="file"||(Te.value=Ye)},le=Te=>{const{trim:Ye,number:st}=a.modelModifiers;return Ye&&(Te=Te.trim()),st&&(Te=`${Qm(Te)}`),a.formatter&&a.parser&&(Te=a.parser(Te)),Te},ce=async Te=>{if(me.value)return;const{lazy:Ye}=a.modelModifiers;let{value:st}=Te.target,Ke=!1;if(Ye){o(Sn,st);return}if(st=le(st),a.countGraphemes&&d.value!=null){const et=Number(d.value),gt=a.countGraphemes(st),he=a.countGraphemes(M.value);if(gt>et&>>he)if(he>et)st=M.value,Ke=!0;else{const Le=M.value,pe=st;let Ee=0;for(;EeEe&&Pt>Ee&&Le[it-1]===pe[Pt-1];)it--,Pt--;const Xt=pe.slice(0,Ee),Oe=Le.slice(Ee,it),Fe=pe.slice(Ee,Pt),Je=pe.slice(Pt),hn=he-a.countGraphemes(Oe),zt=Math.max(0,et-hn);let Zt="";if(zt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const je=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:Ge}of je.segment(Fe)){const vt=Zt+Ge;if(a.countGraphemes(vt)>zt)break;Zt=vt}}else for(const je of Array.from(Fe)){const Ge=Zt+je;if(a.countGraphemes(Ge)>zt)break;Zt=Ge}st=Xt+Zt+Je,Ke=!0}}if(String(st)===W.value){if(a.formatter||Ke){const et=Te.target,gt=et.value,he=et.selectionStart,Le=et.selectionEnd;if(Z(),Ke&&A.value&&he!=null&&Le!=null){const pe=A.value.value,Ee=gt.slice(Math.max(0,Le));let it=Math.min(he,pe.length);Ee&&pe.endsWith(Ee)&&(it=pe.length-Ee.length),A.value.setSelectionRange(it,it)}}return}M.value=st,de(),o(at,st),o(Sn,st),await Ie(),(a.formatter&&a.parser||!ne.value)&&Z(),se()},ge=async Te=>{let{value:Ye}=Te.target;Ye=le(Ye),a.modelModifiers.lazy&&o(at,Ye),o(yt,Ye,Te),await Ie(),Z()},{isComposing:me,handleCompositionStart:$e,handleCompositionUpdate:Re,handleCompositionEnd:Ae}=Bu({emit:o,afterComposition:ce}),ye=()=>{S.value=!S.value},ke=()=>{var Te;return(Te=A.value)==null?void 0:Te.focus()},be=()=>{var Te;return(Te=A.value)==null?void 0:Te.blur()},Pe=Te=>{C.value=!1,o("mouseleave",Te)},Be=Te=>{C.value=!0,o("mouseenter",Te)},Qe=Te=>{o("keydown",Te)},tt=()=>{var Te;(Te=A.value)==null||Te.select()},nt=Te=>{o(at,""),o(yt,""),o("clear",Te),o(Sn,"")};return fe(()=>a.modelValue,()=>{var Te;Ie(()=>Y()),a.validateEvent&&((Te=h==null?void 0:h.validate)==null||Te.call(h,"change").catch(Ye=>ft(Ye)))}),fe(()=>W.value,Te=>{M.value=Te},{immediate:!0}),fe(W,Te=>{if(!A.value)return;const{trim:Ye,number:st}=a.modelModifiers,Ke=A.value.value,et=(st||a.type==="number")&&!/^0\d/.test(Ke)?`${Qm(Ke)}`:Ke;et!==Te&&(document.activeElement===A.value&&A.value.type!=="range"&&Ye&&et.trim()===Te||Z())}),fe(()=>a.type,async()=>{await Ie(),Z(),Y()}),mt(()=>{!a.formatter&&a.parser&&ft(tg,"If you set the parser, you also need to set the formatter."),Z(),Ie(Y)}),t({input:b,textarea:w,ref:A,textareaStyle:B,autosize:Bt(a,"autosize"),isComposing:me,passwordVisible:S,focus:ke,blur:be,select:tt,clear:nt,resizeTextarea:Y}),(Te,Ye)=>(_(),$("div",{class:R([s.value,{[i(m).bm("group","append")]:Te.$slots.append,[i(m).bm("group","prepend")]:Te.$slots.prepend}]),style:We(P.value),onMouseenter:Be,onMouseleave:Pe},[re(" input "),e.type!=="textarea"?(_(),$(He,{key:0},[re(" prepend slot "),Te.$slots.prepend?(_(),$("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(Te.$slots,"prepend")],2)):re("v-if",!0),E("div",{ref_key:"wrapperRef",ref:O,class:R(u.value)},[re(" prefix slot "),Te.$slots.prefix||e.prefixIcon?(_(),$("span",{key:0,class:R(i(m).e("prefix"))},[E("span",{class:R(i(m).e("prefix-inner"))},[oe(Te.$slots,"prefix"),e.prefixIcon?(_(),ie(i(ze),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(_(),ie(ut(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),E("input",pt({id:i(g),ref_key:"input",ref:b,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?S.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ye[0]||(Ye[0]=(...st)=>i($e)&&i($e)(...st)),onCompositionupdate:Ye[1]||(Ye[1]=(...st)=>i(Re)&&i(Re)(...st)),onCompositionend:Ye[2]||(Ye[2]=(...st)=>i(Ae)&&i(Ae)(...st)),onInput:ce,onChange:ge,onKeydown:Qe}),null,16,hK),re(" suffix slot "),ue.value?(_(),$("span",{key:1,class:R(i(m).e("suffix"))},[E("span",{class:R(i(m).e("suffix-inner"))},[!K.value||!j.value||!G.value?(_(),$(He,{key:0},[oe(Te.$slots,"suffix"),e.suffixIcon?(_(),ie(i(ze),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(_(),ie(ut(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),K.value?(_(),ie(i(ze),{key:1,class:R([i(m).e("icon"),i(m).e("clear")]),onMousedown:Xe(i(Yt),["prevent"]),onClick:nt},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),j.value?(_(),ie(i(ze),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:ye,onMousedown:Xe(i(Yt),["prevent"]),onMouseup:Xe(i(Yt),["prevent"])},{default:ae(()=>[oe(Te.$slots,"password-icon",{visible:S.value},()=>[(_(),ie(ut(N.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),G.value?(_(),$("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[E("span",{class:R(i(m).e("count-inner"))},_e(ee.value)+" / "+_e(d.value),3)],2)):re("v-if",!0),U.value&&F.value&&q.value?(_(),ie(i(ze),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",U.value==="validating")])},{default:ae(()=>[(_(),ie(ut(F.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),Te.$slots.append?(_(),$("div",{key:1,class:R(i(m).be("group","append"))},[oe(Te.$slots,"append")],2)):re("v-if",!0)],64)):(_(),$(He,{key:1},[re(" textarea "),E("textarea",pt({id:i(g),ref_key:"textarea",ref:w,class:[i(y).e("inner"),i(m).is("focus",i(I)),i(y).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:B.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ye[3]||(Ye[3]=(...st)=>i($e)&&i($e)(...st)),onCompositionupdate:Ye[4]||(Ye[4]=(...st)=>i(Re)&&i(Re)(...st)),onCompositionend:Ye[5]||(Ye[5]=(...st)=>i(Ae)&&i(Ae)(...st)),onInput:ce,onFocus:Ye[6]||(Ye[6]=(...st)=>i(L)&&i(L)(...st)),onBlur:Ye[7]||(Ye[7]=(...st)=>i(z)&&i(z)(...st)),onChange:ge,onKeydown:Qe}),null,16,vK),K.value?(_(),ie(i(ze),{key:0,class:R([i(y).e("icon"),i(y).e("clear")]),onMousedown:Xe(i(Yt),["prevent"]),onClick:nt},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),G.value?(_(),$("span",{key:1,style:We(k.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},_e(ee.value)+" / "+_e(d.value),7)):re("v-if",!0)],64))],38))}}),gK=mK;const jn=rt(gK),yK=Ce({...Nh,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:J(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:J([Function,Array]),default:Yt},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Ht.teleported,appendTo:Ht.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),bK={[at]:e=>Ue(e)||De(e),[Sn]:e=>Ue(e)||De(e),[yt]:e=>Ue(e)||De(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},wK=Ce({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:J([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...ia(["ariaLabel","ariaOrientation"])}),lb={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(De)},ns=4,rb={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},CK=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),_K=Ce({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ph=Symbol("scrollbarContextKey");function jl(e,t,n=.03){return e-t>n}const SK=Ce({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),xK="Thumb";var kK=D({__name:"thumb",props:_K,setup(e){const t=e,n=Ne(Ph),a=ve("scrollbar");n||on(xK,"can not inject scrollbar context");const o=V(),l=V(),r=V({}),s=V(!1);let u=!1,c=!1,d=0,f=0,h=Rt?document.onselectstart:null;const g=x(()=>rb[t.vertical?"vertical":"horizontal"]),p=x(()=>CK({size:t.size,move:t.move,bar:g.value})),v=x(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/l.value[g.value.offset]),m=M=>{var O;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(M);const A=M.currentTarget;A&&(r.value[g.value.axis]=A[g.value.offset]-(M[g.value.client]-A.getBoundingClientRect()[g.value.direction]))},y=M=>{if(!l.value||!o.value||!n.wrapElement)return;const A=(Math.abs(M.target.getBoundingClientRect()[g.value.direction]-M[g.value.client])-l.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=A*n.wrapElement[g.value.scrollSize]/100},b=M=>{M.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),h=document.onselectstart,document.onselectstart=()=>!1},w=M=>{if(!o.value||!l.value||u===!1)return;const A=r.value[g.value.axis];if(!A)return;const O=((o.value.getBoundingClientRect()[g.value.direction]-M[g.value.client])*-1-(l.value[g.value.offset]-A))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=O*f/100:n.wrapElement[g.value.scroll]=O*d/100},C=()=>{u=!1,r.value[g.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),T(),c&&(s.value=!1)},S=()=>{c=!1,s.value=!!t.size},k=()=>{c=!0,s.value=u};Lt(()=>{T(),document.removeEventListener("mouseup",C)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Vt(Bt(n,"scrollbarElement"),"mousemove",S),Vt(Bt(n,"scrollbarElement"),"mouseleave",k),(M,A)=>(_(),ie(qn,{name:i(a).b("fade"),persisted:""},{default:ae(()=>[dt(E("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:y,onClick:A[0]||(A[0]=Xe(()=>{},["stop"]))},[E("div",{ref_key:"thumb",ref:l,class:R(i(a).e("thumb")),style:We(p.value),onMousedown:m},null,38)],34),[[At,e.always||s.value]])]),_:1},8,["name"]))}}),ng=kK,EK=D({__name:"bar",props:SK,setup(e,{expose:t}){const n=e,a=Ne(Ph),o=V(0),l=V(0),r=V(""),s=V(""),u=V(1),c=V(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-ns,p=h.offsetWidth-ns;l.value=h.scrollTop*100/g*u.value,o.value=h.scrollLeft*100/p*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const g=h.offsetHeight-ns,p=h.offsetWidth-ns,v=g**2/h.scrollHeight,m=p**2/h.scrollWidth,y=Math.max(v,n.minSize),b=Math.max(m,n.minSize);u.value=v/(g-v)/(y/(g-y)),c.value=m/(p-m)/(b/(p-b)),s.value=y+ns(_(),$(He,null,[Q(ng,{move:o.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),Q(ng,{move:l.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),TK=EK;const MK=["tabindex"],f0="ElScrollbar";var OK=D({name:f0,__name:"scrollbar",props:wK,emits:lb,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("scrollbar");let r,s,u,c=0,d=0,f="";const h={bottom:!1,top:!1,right:!1,left:!1},g=V(),p=V(),v=V(),m=V(),y=x(()=>{const L={},z=cn(a.height),q=cn(a.maxHeight);return z&&(L.height=z),q&&(L.maxHeight=q),[a.wrapStyle,L]}),b=x(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),w=x(()=>[l.e("view"),a.viewClass]),C=L=>h[L]??!1,S={top:"bottom",bottom:"top",left:"right",right:"left"},k=L=>{const z=S[f];if(!z)return;const q=L[f],U=L[z];q&&!h[f]&&(h[f]=!0),!U&&h[z]&&(h[z]=!1)},T=()=>{var L;if(p.value){(L=m.value)==null||L.handleScroll(p.value);const z=c,q=d;c=p.value.scrollTop,d=p.value.scrollLeft;const U={bottom:!jl(p.value.scrollHeight-a.distance,p.value.clientHeight+c),top:c<=a.distance&&z!==0,right:!jl(p.value.scrollWidth-a.distance,p.value.clientWidth+d)&&q!==d,left:d<=a.distance&&q!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),z!==c&&(f=c>z?"bottom":"top"),q!==d&&(f=d>q?"right":"left"),a.distance>0){if(C(f))return;k(U)}U[f]&&o("end-reached",f)}};function M(L,z){Mt(L)?p.value.scrollTo(L):De(L)&&De(z)&&p.value.scrollTo(L,z)}const A=L=>{if(!De(L)){ft(f0,"value must be a number");return}p.value.scrollTop=L},O=L=>{if(!De(L)){ft(f0,"value must be a number");return}p.value.scrollLeft=L},I=()=>{var L,z;(L=m.value)==null||L.update(),h[f]=!1,p.value&&((z=m.value)==null||z.handleScroll(p.value))};return fe(()=>a.noresize,L=>{L?(r==null||r(),s==null||s(),u==null||u()):({stop:r}=en(v,I),{stop:s}=en(p,I),u=Vt("resize",I))},{immediate:!0}),fe(()=>[a.maxHeight,a.height],()=>{a.native||Ie(()=>{I()})}),bt(Ph,Nt({scrollbarElement:g,wrapElement:p})),wu(()=>{p.value&&(p.value.scrollTop=c,p.value.scrollLeft=d)}),mt(()=>{a.native||Ie(()=>{I()})}),ho(()=>I()),t({wrapRef:p,update:I,scrollTo:M,setScrollTop:A,setScrollLeft:O,handleScroll:T}),(L,z)=>(_(),$("div",{ref_key:"scrollbarRef",ref:g,class:R(i(l).b())},[E("div",{ref_key:"wrapRef",ref:p,class:R(b.value),style:We(y.value),tabindex:e.tabindex,onScroll:T},[(_(),ie(ut(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(w.value),style:We(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ae(()=>[oe(L.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,MK),e.native?re("v-if",!0):(_(),ie(TK,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),$K=OK;const uo=rt($K),AK=["aria-expanded","aria-owns"],RK={key:0},NK=["id","aria-selected","onClick"],ag="ElAutocomplete";var PK=D({name:ag,inheritAttrs:!1,__name:"autocomplete",props:yK,emits:bK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const Y=jn.props??[];return vl(a,Ve(Y)?Y:Object.keys(Y))}),r=_l(),s=dn(),u=ve("autocomplete"),c=V(),d=V(),f=V(),h=V();let g=!1,p=!1;const v=V([]),m=V(-1),y=V(""),b=V(!1),w=V(!1),C=V(!1),S=Un(),k=x(()=>r.style),T=x(()=>(v.value.length>0||C.value)&&b.value),M=x(()=>!a.hideLoading&&C.value),A=x(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=()=>{T.value&&(y.value=`${c.value.$el.offsetWidth}px`)},I=()=>{m.value=-1},L=async Y=>{if(w.value)return;const X=H=>{C.value=!1,!w.value&&(Ve(H)?(v.value=H,m.value=a.highlightFirstItem?0:-1):on(ag,"autocomplete suggestions must be an array"))};if(C.value=!0,Ve(a.fetchSuggestions))X(a.fetchSuggestions);else{const H=await a.fetchSuggestions(Y,X);Ve(H)&&X(H)}},z=_u(L,x(()=>a.debounce)),q=Y=>{const X=!!Y;if(o(Sn,Y),o(at,Y),w.value=!1,b.value||(b.value=X),!a.triggerOnFocus&&!Y){w.value=!0,v.value=[];return}z(Y)},U=Y=>{var X;s.value||(((X=Y.target)==null?void 0:X.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(b.value=!0)},F=Y=>{o(yt,Y)},N=Y=>{if(p)p=!1;else{b.value=!0,o("focus",Y);const X=a.modelValue??"";a.triggerOnFocus&&!g&&z(String(X))}},P=Y=>{setTimeout(()=>{var X;if((X=f.value)!=null&&X.isFocusInsideContent()){p=!0;return}b.value&&j(),o("blur",Y)})},B=()=>{b.value=!1,o(at,""),o("clear")},W=async()=>{var Y;(Y=c.value)!=null&&Y.isComposing||(T.value&&m.value>=0&&m.value{T.value&&(Y.preventDefault(),Y.stopPropagation(),j())},j=()=>{b.value=!1},G=()=>{var Y;(Y=c.value)==null||Y.focus()},ee=()=>{var Y;(Y=c.value)==null||Y.blur()},te=async Y=>{o(Sn,Y[a.valueKey]),o(at,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ue=Y=>{var me,$e;if(!T.value||C.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[X,H]=ne(),Z=H[Y],le=X.scrollTop,{offsetTop:ce,scrollHeight:ge}=Z;ce+ge>le+X.clientHeight&&(X.scrollTop=ce+ge-X.clientHeight),ce{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=Bp(h,Y=>{var H;if((H=f.value)!=null&&H.isFocusInsideContent())return;const X=p;p=!1,T.value&&(X?P(new FocusEvent("blur",Y)):j())}),se=Y=>{switch(Kt(Y)){case we.up:Y.preventDefault(),ue(m.value-1);break;case we.down:Y.preventDefault(),ue(m.value+1);break;case we.enter:case we.numpadEnter:Y.preventDefault(),W();break;case we.tab:j();break;case we.esc:K(Y);break;case we.home:Y.preventDefault(),ue(0);break;case we.end:Y.preventDefault(),ue(v.value.length-1);break;case we.pageUp:Y.preventDefault(),ue(Math.max(0,m.value-10));break;case we.pageDown:Y.preventDefault(),ue(Math.min(v.value.length-1,m.value+10));break}};return Lt(()=>{de==null||de()}),mt(()=>{var X;const Y=(X=c.value)==null?void 0:X.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:S.value},{key:"aria-activedescendant",value:`${S.value}-item-${m.value}`}].forEach(({key:H,value:Z})=>Y.setAttribute(H,Z)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:b,loading:C,inputRef:c,popperRef:f,suggestions:v,handleSelect:te,handleKeyEnter:W,focus:G,blur:ee,close:j,highlight:ue,getData:L}),(Y,X)=>(_(),ie(i(Fn),{ref_key:"popperRef",ref:f,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:O,onHide:I},{content:ae(()=>[E("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",M.value)]),style:We({[e.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[Y.$slots.header?(_(),$("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:X[0]||(X[0]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),Q(i(uo),{id:i(S),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ae(()=>[M.value?(_(),$("li",RK,[oe(Y.$slots,"loading",{},()=>[Q(i(ze),{class:R(i(u).is("loading"))},{default:ae(()=>[Q(i(io))]),_:1},8,["class"])])])):(_(!0),$(He,{key:1},Ct(v.value,(H,Z)=>(_(),$("li",{id:`${i(S)}-item-${Z}`,key:Z,class:R({highlighted:m.value===Z}),role:"option","aria-selected":m.value===Z,onClick:le=>te(H)},[oe(Y.$slots,"default",{item:H},()=>[_t(_e(H[e.valueKey]),1)])],10,NK))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(_(),$("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:X[1]||(X[1]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ae(()=>[E("div",{ref_key:"listboxRef",ref:h,class:R([i(u).b(),Y.$attrs.class]),style:We(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":i(S)},[Q(i(jn),pt({ref_key:"inputRef",ref:c},pt(l.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(s),onInput:q,onChange:F,onFocus:N,onBlur:P,onClear:B,onKeydown:se,onMousedown:U}),ga({_:2},[Y.$slots.prepend?{name:"prepend",fn:ae(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ae(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,AK)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}}),IK=PK;const LK=rt(IK),VK=Ce({size:{type:[Number,String],values:vo,validator:e=>De(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ft},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:J(String),default:"cover"}}),BK={error:e=>e instanceof Event},sb=Symbol("avatarGroupContextKey"),zK={size:{type:J([Number,String]),values:vo,validator:e=>De(e)},shape:{type:J(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:J(String),default:"light"},placement:{type:J(String),values:Uo,default:"top"},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,collapseClass:String,collapseStyle:{type:J([String,Array,Object])}},DK=["src","alt","srcset"];var HK=D({name:"ElAvatar",__name:"avatar",props:VK,emits:BK,setup(e,{emit:t}){const n=e,a=t,o=Ne(sb,void 0),l=ve("avatar"),r=V(!1),s=x(()=>n.size??(o==null?void 0:o.size)),u=x(()=>n.shape??(o==null?void 0:o.shape)??"circle"),c=x(()=>{const{icon:g}=n,p=[l.b()];return Ue(s.value)&&p.push(l.m(s.value)),g&&p.push(l.m("icon")),u.value&&p.push(l.m(u.value)),p}),d=x(()=>De(s.value)?l.cssVarBlock({size:cn(s.value)}):void 0),f=x(()=>({objectFit:n.fit}));fe(()=>[n.src,n.srcSet],()=>r.value=!1);function h(g){r.value=!0,a("error",g)}return(g,p)=>(_(),$("span",{class:R(c.value),style:We(d.value)},[(e.src||e.srcSet)&&!r.value?(_(),$("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:We(f.value),onError:h},null,44,DK)):e.icon?(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),ib=HK,ub=D({name:"ElAvatarGroup",props:zK,setup(e,{slots:t}){const n=ve("avatar-group");return bt(sb,Nt({size:Bt(e,"size"),shape:Bt(e,"shape")})),()=>{var l;const a=Ra(((l=t.default)==null?void 0:l.call(t))??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(Q(Fn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>Q(ib,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[_t("+ "),r.length]}),content:()=>Q("div",{class:n.e("collapse-avatars")},[r.map((s,u)=>Wt(s)?Ho(s,{key:s.key??u}):s)])}))}return Q("div",{class:n.b()},[o])}}});const FK=rt(ib,{AvatarGroup:ub}),KK=ln(ub),WK={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},jK={click:e=>e instanceof MouseEvent},qK=(e,t,n)=>{const a=qt(),o=qt(),l=V(!1),r=()=>{a.value&&(l.value=a.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=a.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Vt(o,"scroll",P6(r,300,!0)),mt(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||on(n,`target does not exist: ${e.target}`),o.value=a.value),r()}),{visible:l,handleClick:s}},og="ElBacktop";var UK=D({name:og,__name:"backtop",props:WK,emits:jK,setup(e,{emit:t}){const n=e,a=t,o=ve("backtop"),{handleClick:l,visible:r}=qK(n,a,og),s=x(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(_(),ie(qn,{name:`${i(o).namespace.value}-fade-in`},{default:ae(()=>[i(r)?(_(),$("div",{key:0,style:We(s.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Xe((...d)=>i(l)&&i(l)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[Q(i(ze),{class:R(i(o).e("icon"))},{default:ae(()=>[Q(i(Ey))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),YK=UK;const GK=rt(YK),XK=Ce({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:J([String,Object,Array])},offset:{type:J(Array),default:()=>[0,0]},badgeClass:{type:String}});var JK=D({name:"ElBadge",__name:"badge",props:XK,setup(e,{expose:t}){const n=e,a=ve("badge"),o=x(()=>n.isDot?"":De(n.value)&&De(n.max)?n.max[{backgroundColor:n.color,marginRight:cn(-n.offset[0]),marginTop:cn(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(r,s)=>(_(),$("div",{class:R(i(a).b())},[oe(r.$slots,"default"),Q(qn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ae(()=>[!e.hidden&&(o.value||e.isDot||r.$slots.content)?(_(),$("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!r.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:We(l.value)},[oe(r.$slots,"content",{value:o.value},()=>[_t(_e(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),ZK=JK;const cb=rt(ZK),QK=Ce({separator:{type:String,default:"/"},separatorIcon:{type:Ft}}),db=Symbol("breadcrumbKey"),eW=Ce({to:{type:J([String,Object]),default:""},replace:Boolean}),tW=["aria-label"];var nW=D({name:"ElBreadcrumb",__name:"breadcrumb",props:QK,setup(e){const{t}=xt(),n=e,a=ve("breadcrumb"),o=V();return bt(db,n),mt(()=>{const l=o.value.querySelectorAll(`.${a.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,r)=>(_(),$("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(l.$slots,"default")],10,tW))}}),aW=nW,oW=D({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:eW,setup(e){const t=e,n=ht(),a=Ne(db,void 0),o=ve("breadcrumb"),l=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(s,u)=>{var c,d;return _(),$("span",{class:R(i(o).e("item"))},[E("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:r},[oe(s.$slots,"default")],2),(c=i(a))!=null&&c.separatorIcon?(_(),ie(i(ze),{key:0,class:R(i(o).e("separator"))},{default:ae(()=>[(_(),ie(ut(i(a).separatorIcon)))]),_:1},8,["class"])):(_(),$("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},_e((d=i(a))==null?void 0:d.separator),3))],2)}}}),fb=oW;const lW=rt(aW,{BreadcrumbItem:fb}),rW=ln(fb),O2=["default","primary","success","warning","info","danger","text",""],sW=["button","submit","reset"],$2=Ce({size:On,disabled:{type:Boolean,default:void 0},type:{type:String,values:O2,default:""},icon:{type:Ft},nativeType:{type:String,values:sW,default:"button"},loading:Boolean,loadingIcon:{type:Ft,default:()=>io},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:J([String,Object]),default:"button"}}),iW={click:e=>e instanceof MouseEvent},pb=Symbol(),hd=V();function Tl(e,t=void 0){const n=ht()?Ne(pb,hd):hd;return e?x(()=>{var a;return((a=n.value)==null?void 0:a[e])??t}):n}function Cf(e,t){const n=Tl(),a=ve(e,x(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Bi})),o=xt(x(()=>{var s;return(s=n.value)==null?void 0:s.locale})),l=Pu(x(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||ly})),r=x(()=>{var s;return i(t)||((s=n.value)==null?void 0:s.size)||""});return Ih(x(()=>i(n)||{})),{ns:a,locale:o,zIndex:l,size:r}}const Ih=(e,t,n=!1)=>{const a=!!ht(),o=a?Tl():void 0,l=(t==null?void 0:t.provide)??(a?bt:void 0);if(!l){ft("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const r=x(()=>{const s=i(e);return o!=null&&o.value?uW(o.value,s):s});return l(pb,r),l(H8,x(()=>r.value.locale)),l(F8,x(()=>r.value.namespace)),l(ry,x(()=>r.value.zIndex)),l(by,{size:x(()=>r.value.size||"")}),l(Cy,x(()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear}))),(n||!hd.value)&&(hd.value=r.value),r},uW=(e,t)=>{const n=[...new Set([...tu(e),...tu(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},cW=Ce({a11y:{type:Boolean,default:!0},locale:{type:J(Object)},size:On,button:{type:J(Object)},card:{type:J(Object)},dialog:{type:J(Object)},link:{type:J(Object)},experimentalFeatures:{type:J(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:J(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:J(Object)},...Gr}),na={placement:"top"},dW=D({name:"ElConfigProvider",props:cW,setup(e,{slots:t}){const n=Ih(e);return fe(()=>e.message,a=>{var o;Object.assign(na,((o=n==null?void 0:n.value)==null?void 0:o.message)??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n==null?void 0:n.value})}}),fW=rt(dW),hb=Symbol("buttonGroupContextKey"),pW=(e,t)=>{Lo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x(()=>e.type==="text"));const n=Ne(hb,void 0),a=Tl("button"),{form:o}=Kn(),l=En(x(()=>n==null?void 0:n.size)),r=dn(),s=V(),u=yn(),c=x(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=a.value)==null?void 0:b.type)||""}),d=x(()=>{var b;return e.autoInsertSpace??((b=a.value)==null?void 0:b.autoInsertSpace)??!1}),f=x(()=>{var b;return e.plain??((b=a.value)==null?void 0:b.plain)??!1}),h=x(()=>{var b;return e.round??((b=a.value)==null?void 0:b.round)??!1}),g=x(()=>{var b;return e.text??((b=a.value)==null?void 0:b.text)??!1}),p=x(()=>{var b;return e.dashed??((b=a.value)==null?void 0:b.dashed)??!1}),v=x(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=x(()=>{var w;const b=(w=u.default)==null?void 0:w.call(u);if(d.value&&(b==null?void 0:b.length)===1){const C=b[0];if((C==null?void 0:C.type)===Xs){const S=C.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1});return{_disabled:r,_size:l,_type:c,_ref:s,_props:v,_plain:f,_round:h,_text:g,_dashed:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",b)}}};function Zn(e,t){hW(e)&&(e="100%");const n=vW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function vc(e){return Math.min(1,Math.max(0,e))}function hW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function vW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function vb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function wr(e){return e.length===1?"0"+e:String(e)}function mW(e,t,n){return{r:Zn(e,255)*255,g:Zn(t,255)*255,b:Zn(n,255)*255}}function lg(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0,r=0;const s=(a+o)/2;if(a===o)r=0,l=0;else{const u=a-o;switch(r=s>.5?u/(2-a-o):u/(a+o),a){case e:l=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gW(e,t,n){let a,o,l;if(e=Zn(e,360),t=Zn(t,100),n=Zn(n,100),t===0)o=n,l=n,a=n;else{const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=p0(s,r,e+1/3),o=p0(s,r,e),l=p0(s,r,e-1/3)}return{r:a*255,g:o*255,b:l*255}}function rg(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0;const r=a,s=a-o,u=a===0?0:s/a;if(a===o)l=0;else{switch(a){case e:l=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}const A2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function SW(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,l=null,r=!1,s=!1;return typeof e=="string"&&(e=EW(e)),typeof e=="object"&&(Ma(e.r)&&Ma(e.g)&&Ma(e.b)?(t=mW(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ma(e.h)&&Ma(e.s)&&Ma(e.v)?(a=mc(e.s),o=mc(e.v),t=yW(e.h,a,o),r=!0,s="hsv"):Ma(e.h)&&Ma(e.s)&&Ma(e.l)?(a=mc(e.s),l=mc(e.l),t=gW(e.h,a,l),r=!0,s="hsl"):Ma(e.c)&&Ma(e.m)&&Ma(e.y)&&Ma(e.k)&&(t=wW(e.c,e.m,e.y,e.k),r=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=vb(n),{ok:r,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const xW="[-\\+]?\\d+%?",kW="[-\\+]?\\d*\\.\\d+%?",Fl="(?:"+kW+")|(?:"+xW+")",h0="[\\s|\\(]+("+Fl+")[,|\\s]+("+Fl+")[,|\\s]+("+Fl+")\\s*\\)?",gc="[\\s|\\(]+("+Fl+")[,|\\s]+("+Fl+")[,|\\s]+("+Fl+")[,|\\s]+("+Fl+")\\s*\\)?",Fa={CSS_UNIT:new RegExp(Fl),rgb:new RegExp("rgb"+h0),rgba:new RegExp("rgba"+gc),hsl:new RegExp("hsl"+h0),hsla:new RegExp("hsla"+gc),hsv:new RegExp("hsv"+h0),hsva:new RegExp("hsva"+gc),cmyk:new RegExp("cmyk"+gc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function EW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(A2[e])e=A2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Fa.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Fa.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Fa.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Fa.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Fa.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Fa.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Fa.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Fa.hex8.exec(e),n?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),a:ug(n[4]),format:t?"name":"hex8"}:(n=Fa.hex6.exec(e),n?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),format:t?"name":"hex"}:(n=Fa.hex4.exec(e),n?{r:Oa(n[1]+n[1]),g:Oa(n[2]+n[2]),b:Oa(n[3]+n[3]),a:ug(n[4]+n[4]),format:t?"name":"hex8"}:(n=Fa.hex3.exec(e),n?{r:Oa(n[1]+n[1]),g:Oa(n[2]+n[2]),b:Oa(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Ma(e){return typeof e=="number"?!Number.isNaN(e):Fa.CSS_UNIT.test(e)}class mn{constructor(t="",n={}){if(t instanceof mn)return t;typeof t=="number"&&(t=_W(t)),this.originalInput=t;const a=SW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const l=t.r/255,r=t.g/255,s=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=vb(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=rg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=rg(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=lg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=lg(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return sg(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return bW(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Zn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Zn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...ig(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=ig(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+sg(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(A2))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new mn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=vc(n.l),new mn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new mn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=vc(n.l),new mn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=vc(n.s),new mn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=vc(n.s),new mn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new mn(n)}mix(t,n=50){const a=this.toRgb(),o=new mn(t).toRgb(),l=n/100,r={r:(o.r-a.r)*l+a.r,g:(o.g-a.g)*l+a.g,b:(o.b-a.b)*l+a.b,a:(o.a-a.a)*l+a.a};return new mn(r)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,l=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,l.push(new mn(a));return l}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new mn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:l}=n;const r=[],s=1/t;for(;t--;)r.push(new mn({h:a,s:o,v:l})),l=(l+s)%1;return r}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new mn({h:(n+72)%360,s:t.s,l:t.l}),new mn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new mn(t).toRgb(),o=n.a+a.a*(1-n.a);return new mn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],l=360/t;for(let r=1;r{let a={},o=e.color;if(o){const l=o.match(/var\((.*?)\)/);l&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const r=new mn(o),s=e.dark?r.tint(20).toString():ko(r,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?ko(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?ko(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?ko(r,90):r.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?ko(r,50):r.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?ko(r,80):r.tint(80).toString());else if(e.link||e.text){const u=e.dark?ko(r,30):r.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":s}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=s),t.value){const c=e.dark?ko(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?ko(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?ko(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var MW=D({name:"ElButton",__name:"button",props:$2,emits:iW,setup(e,{expose:t,emit:n}){const a=e,o=n,l=TW(a),r=ve("button"),{_ref:s,_size:u,_type:c,_disabled:d,_props:f,_plain:h,_round:g,_text:p,_dashed:v,shouldAddSpace:m,handleClick:y}=pW(a,o),b=x(()=>[r.b(),r.m(c.value),r.m(u.value),r.is("disabled",d.value),r.is("loading",a.loading),r.is("plain",h.value),r.is("round",g.value),r.is("circle",a.circle),r.is("text",p.value),r.is("dashed",v.value),r.is("link",a.link),r.is("has-bg",a.bg)]);return t({ref:s,size:u,type:c,disabled:d,shouldAddSpace:m}),(w,C)=>(_(),ie(ut(e.tag),pt({ref_key:"_ref",ref:s},i(f),{class:b.value,style:i(l),onClick:i(y)}),{default:ae(()=>[e.loading?(_(),$(He,{key:0},[w.$slots.loading?oe(w.$slots,"loading",{key:0}):(_(),ie(i(ze),{key:1,class:R(i(r).is("loading"))},{default:ae(()=>[(_(),ie(ut(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||w.$slots.icon?(_(),ie(i(ze),{key:1},{default:ae(()=>[e.icon?(_(),ie(ut(e.icon),{key:0})):oe(w.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),w.$slots.default?(_(),$("span",{key:2,class:R({[i(r).em("text","expand")]:i(m)})},[oe(w.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),OW=MW;const $W={size:$2.size,type:$2.type,direction:{type:J(String),values:["horizontal","vertical"],default:"horizontal"}};var AW=D({name:"ElButtonGroup",__name:"button-group",props:$W,setup(e){const t=e;bt(hb,Nt({size:Bt(t,"size"),type:Bt(t,"type")}));const n=ve("button");return(a,o)=>(_(),$("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),mb=AW;const Ln=rt(OW,{ButtonGroup:mb}),gb=ln(mb),RW=e=>Ve(e)&&e.length===2&&e.every(t=>$s(t)),NW=Ce({modelValue:{type:Date},range:{type:J(Array),validator:RW},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:J(Function)}}),PW={[at]:e=>$s(e),[Sn]:e=>$s(e)},cg=["hours","minutes","seconds"],co="EP_PICKER_BASE",Lh="ElPopperOptions",yb=Symbol("commonPickerContextKey"),Dr="HH:mm:ss",ll="YYYY-MM-DD",IW={date:ll,dates:ll,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${ll} ${Dr}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:ll,datetimerange:`${ll} ${Dr}`};var Ml=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pde(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var bb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){var n=1e3,a=6e4,o=36e5,l="millisecond",r="second",s="minute",u="hour",c="day",d="week",f="month",h="quarter",g="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var U=["th","st","nd","rd"],F=q%100;return"["+q+(U[(F-20)%10]||U[F]||U[0])+"]"}},w=function(q,U,F){var N=String(q);return!N||N.length>=U?q:""+Array(U+1-N.length).join(F)+q},C={s:w,z:function(q){var U=-q.utcOffset(),F=Math.abs(U),N=Math.floor(F/60),P=F%60;return(U<=0?"+":"-")+w(N,2,"0")+":"+w(P,2,"0")},m:function q(U,F){if(U.date()1)return q(W[0])}else{var K=U.name;k[K]=U,P=K}return!N&&P&&(S=P),P||!N&&S},O=function(q,U){if(M(q))return q.clone();var F=typeof U=="object"?U:{};return F.date=q,F.args=arguments,new L(F)},I=C;I.l=A,I.i=M,I.w=function(q,U){return O(q,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var L=function(){function q(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var U=q.prototype;return U.parse=function(F){this.$d=function(N){var P=N.date,B=N.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var W=P.match(m);if(W){var K=W[2]-1||0,j=(W[7]||"0").substring(0,3);return B?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,j)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,j)}}return new Date(P)}(F),this.init()},U.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},U.$utils=function(){return I},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(F,N){var P=O(F);return this.startOf(N)<=P&&P<=this.endOf(N)},U.isAfter=function(F,N){return O(F)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),wb=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Cb=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dg=function(e,t){const n=$s(e),a=$s(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},_b=function(e,t){const n=Ve(e),a=Ve(t);return n&&a?e.length!==t.length?!1:e.every((o,l)=>dg(o,t[l])):!n&&!a?dg(e,t):!1},fg=function(e,t,n){const a=ha(t)||t==="x"?lt(e).locale(n):lt(e,t).locale(n);return a.isValid()?a:void 0},pg=function(e,t,n){return ha(t)?e:t==="x"?+e:lt(e).locale(n).format(t)},m0=(e,t)=>{const n=[],a=t==null?void 0:t();for(let o=0;oVe(e)?e.map(t=>t.toDate()):e.toDate(),Vh=Ce({disabledHours:{type:J(Function)},disabledMinutes:{type:J(Function)},disabledSeconds:{type:J(Function)}}),Sb=Ce({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Bh=Ce({automaticDropdown:{type:Boolean,default:!0},id:{type:J([Array,String])},name:{type:J([Array,String])},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:J([String,Object]),default:wo},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:J([String,Object]),default:""},size:On,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:J(Object),default:()=>({})},modelValue:{type:J([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Vh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:J([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:J(String),values:Uo,default:"bottom"},fallbackPlacements:{type:J(Array),default:["bottom","top","right","left"]},...Gr,...ia(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),VW=Ce({id:{type:J(Array)},name:{type:J(Array)},modelValue:{type:J([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),xb=(e,t)=>{const{lang:n}=xt(),a=V(!1),o=V(!1),l=V(null),r=x(()=>{const{modelValue:p}=e;return!p||Ve(p)&&!p.filter(Boolean).length}),s=p=>{if(!_b(e.modelValue,p)){let v;Ve(p)?v=p.map(m=>pg(m,e.valueFormat,n.value)):p&&(v=pg(p,e.valueFormat,n.value)),t(at,p&&v,n.value)}},u=x(()=>{let p;if(r.value?c.value.getDefaultValue&&(p=c.value.getDefaultValue()):Ve(e.modelValue)?p=e.modelValue.map(v=>fg(v,e.valueFormat,n.value)):p=fg(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(p);sn(v,p)||(p=v,r.value||s(Bc(p)))}return Ve(p)&&p.some(v=>!v)&&(p=[]),p}),c=V({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:l,valueIsEmpty:r,emitInput:s,onCalendarChange:p=>{t("calendar-change",p)},onPanelChange:(p,v,m)=>{t("panel-change",p,v,m)},onPick:(p="",v=!1)=>{a.value=v;let m;Ve(p)?m=p.map(y=>y.toDate()):m=p&&p.toDate(),l.value=null,s(m)},onSetPickerOption:p=>{c.value[p[0]]=p[1],c.value.panelReady=!0}}},BW=["id","name","placeholder","value","disabled"],zW=["id","name","placeholder","value","disabled"];var DW=D({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:VW,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Kn(),{inputId:r}=za(Nt({id:x(()=>{var M;return(M=a.id)==null?void 0:M[0]})}),{formItemContext:l}),s=uf(),u=ve("date"),c=ve("range"),d=V(),f=V(),{wrapperRef:h,isFocused:g}=El(d,{disabled:x(()=>a.disabled)}),p=M=>{o("click",M)},v=M=>{o("mouseenter",M)},m=M=>{o("mouseleave",M)},y=M=>{o("touchstart",M)},b=M=>{o("startInput",M)},w=M=>{o("endInput",M)},C=M=>{o("startChange",M)},S=M=>{o("endChange",M)};return t({focus:()=>{var M;(M=d.value)==null||M.focus()},blur:()=>{var M,A;(M=d.value)==null||M.blur(),(A=f.value)==null||A.blur()}}),(M,A)=>(_(),$("div",{ref_key:"wrapperRef",ref:h,class:R([i(u).is("active",i(g)),M.$attrs.class]),style:We(M.$attrs.style),onClick:p,onMouseenter:v,onMouseleave:m,onTouchstartPassive:y},[oe(M.$slots,"prefix"),E("input",pt(i(s),{id:i(r),ref_key:"inputRef",ref:d,name:M.name&&M.name[0],placeholder:M.startPlaceholder,value:M.modelValue&&M.modelValue[0],class:i(c).b("input"),disabled:M.disabled,onInput:b,onChange:C}),null,16,BW),oe(M.$slots,"range-separator"),E("input",pt(i(s),{id:M.id&&M.id[1],ref_key:"endInputRef",ref:f,name:M.name&&M.name[1],placeholder:M.endPlaceholder,value:M.modelValue&&M.modelValue[1],class:i(c).b("input"),disabled:M.disabled,onInput:w,onChange:S}),null,16,zW),oe(M.$slots,"suffix")],38))}}),HW=DW,FW=D({name:"Picker",__name:"picker",props:Bh,emits:[at,yt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=_l(),r=ve("date"),s=ve("input"),u=ve("range"),{formItem:c}=Kn(),d=Ne(Lh,{}),f=zu(a,null),h=V(),g=V(),p=V(null);let v=!1;const m=dn(),y=xb(a,o),{parsedValue:b,pickerActualVisible:w,userInput:C,pickerVisible:S,pickerOptions:k,valueIsEmpty:T,emitInput:M,onPick:A,onSetPickerOption:O,onCalendarChange:I,onPanelChange:L}=y,{isFocused:z,handleFocus:q,handleBlur:U}=El(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(S.value=!0)},beforeBlur(pe){var Ee;return!v&&((Ee=h.value)==null?void 0:Ee.isFocusInsideContent(pe))},afterBlur(){var pe,Ee;Y.value&&!a.saveOnBlur?T.value||(Ee=(pe=k.value).handleCancel)==null||Ee.call(pe):Be(),S.value=!1,v=!1,a.validateEvent&&(c==null||c.validate("blur").catch(it=>ft(it)))}}),F=V(!1),N=x(()=>[r.b("editor"),r.bm("editor",a.type),s.e("wrapper"),r.is("disabled",m.value),r.is("active",S.value),u.b("editor"),ke?u.bm("editor",ke.value):"",l.class]),P=x(()=>[s.e("icon"),u.e("close-icon"),ce.value?"":u.em("close-icon","hidden")]);fe(S,pe=>{pe?Ie(()=>{pe&&(p.value=a.modelValue)}):(C.value=null,Ie(()=>{B(a.modelValue)}))});const B=(pe,Ee)=>{(Ee||!_b(pe,p.value))&&(o(yt,pe),Ee&&(p.value=pe),a.validateEvent&&(c==null||c.validate("change").catch(it=>ft(it))))},W=pe=>{o("keydown",pe)},K=x(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),j=(pe,Ee,it)=>{const Pt=K.value;Pt.length&&(!it||it==="min"?(Pt[0].setSelectionRange(pe,Ee),Pt[0].focus()):it==="max"&&(Pt[1].setSelectionRange(pe,Ee),Pt[1].focus()))},G=()=>{w.value=!0},ee=()=>{o("visible-change",!0)},te=()=>{w.value=!1,S.value=!1,o("visible-change",!1)},ue=()=>{S.value=!0},ne=()=>{S.value=!1},de=x(()=>{const pe=tt(b.value);return Ve(C.value)?[C.value[0]??(pe&&pe[0])??"",C.value[1]??(pe&&pe[1])??""]:C.value!==null?C.value:Y.value&&T.value&&!a.saveOnBlur||!Y.value&&T.value||!S.value&&T.value?"":pe?X.value||H.value||Z.value?pe.join(", "):pe:""}),se=x(()=>a.type.includes("time")),Y=x(()=>a.type.startsWith("time")),X=x(()=>a.type==="dates"),H=x(()=>a.type==="months"),Z=x(()=>a.type==="years"),le=x(()=>a.prefixIcon||(se.value?xh:ky)),ce=x(()=>a.clearable&&!m.value&&!a.readonly&&!T.value&&(F.value||z.value)),ge=pe=>{a.readonly||m.value||(ce.value&&(pe==null||pe.stopPropagation(),k.value.handleClear?k.value.handleClear():M(f.valueOnClear.value),B(f.valueOnClear.value,!0),te()),o("clear"))},me=async pe=>{var Ee;a.readonly||m.value||(((Ee=pe.target)==null?void 0:Ee.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},$e=()=>{a.readonly||m.value||!T.value&&a.clearable&&(F.value=!0)},Re=()=>{F.value=!1},Ae=pe=>{var Ee;a.readonly||m.value||(((Ee=pe.touches[0].target)==null?void 0:Ee.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},ye=x(()=>a.type.includes("range")),ke=En(),be=x(()=>{var pe,Ee;return(Ee=(pe=i(h))==null?void 0:pe.popperRef)==null?void 0:Ee.contentRef}),Pe=Bp(g,pe=>{const Ee=i(be),it=Mn(g);Ee&&(pe.target===Ee||pe.composedPath().includes(Ee))||pe.target===it||it&&pe.composedPath().includes(it)||(S.value=!1)});Lt(()=>{Pe==null||Pe()});const Be=()=>{if(Y.value&&!a.saveOnBlur)return;const pe=Ve(C.value)&&C.value.every(Ee=>Ee==="");if(C.value&&!pe){const Ee=Qe(de.value);Ee&&(nt(Ee)&&M(Bc(Ee)),C.value=null)}(C.value===""||pe)&&(M(f.valueOnClear.value),B(f.valueOnClear.value,!0),C.value=null)},Qe=pe=>pe?k.value.parseUserInput(pe):null,tt=pe=>pe?Ve(pe)?pe.map(Ee=>Ee.format(a.format)):pe.format(a.format):null,nt=pe=>k.value.isValidValue(pe),Te=async pe=>{if(a.readonly||m.value)return;const Ee=Kt(pe);if(W(pe),Ee===we.esc){S.value===!0&&(S.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(Ee===we.down&&(k.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),S.value===!1&&(S.value=!0,await Ie()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Ee===we.tab){v=!0;return}if(Ee===we.enter||Ee===we.numpadEnter){S.value?(C.value===null||C.value===""||nt(Qe(de.value)))&&(Be(),S.value=!1):S.value=!0,pe.preventDefault(),pe.stopPropagation();return}if(C.value){pe.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(pe)},Ye=pe=>{C.value=pe,S.value||(S.value=!0)},st=pe=>{const Ee=pe.target;C.value?C.value=[Ee.value,C.value[1]]:C.value=[Ee.value,null]},Ke=pe=>{const Ee=pe.target;C.value?C.value=[C.value[0],Ee.value]:C.value=[null,Ee.value]},et=()=>{var Pt;const pe=C.value,Ee=Qe(pe&&pe[0]),it=i(b);if(Ee&&Ee.isValid()){C.value=[tt(Ee),((Pt=de.value)==null?void 0:Pt[1])||null];const Xt=[Ee,it&&(it[1]||null)];nt(Xt)&&(M(Bc(Xt)),C.value=null)}},gt=()=>{var Pt;const pe=i(C),Ee=Qe(pe&&pe[1]),it=i(b);if(Ee&&Ee.isValid()){C.value=[((Pt=i(de))==null?void 0:Pt[0])||null,tt(Ee)];const Xt=[it&&it[0],Ee];nt(Xt)&&(M(Bc(Xt)),C.value=null)}},he=()=>{var pe;(pe=g.value)==null||pe.focus()},Le=()=>{var pe;(pe=g.value)==null||pe.blur()};return bt(co,{props:a,emptyValues:f}),bt(yb,y),t({focus:he,blur:Le,handleOpen:ue,handleClose:ne,onPick:A}),(pe,Ee)=>(_(),ie(i(Fn),pt({ref_key:"refPopper",ref:h,visible:i(S),effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${i(r).namespace.value}-zoom-in-top`,"popper-class":[`${i(r).namespace.value}-picker__popper`,pe.popperClass],"popper-style":pe.popperStyle,"popper-options":i(d),"fallback-placements":pe.fallbackPlacements,"gpu-acceleration":!1,placement:pe.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:ee,onHide:te}),{default:ae(()=>[ye.value?(_(),ie(HW,{key:1,id:pe.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:pe.name,disabled:i(m),readonly:!pe.editable||pe.readonly,"start-placeholder":pe.startPlaceholder,"end-placeholder":pe.endPlaceholder,class:R(N.value),style:We(pe.$attrs.style),"aria-label":pe.ariaLabel,tabindex:pe.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:i(q),onBlur:i(U),onStartInput:st,onStartChange:et,onEndInput:Ke,onEndChange:gt,onMousedown:me,onMouseenter:$e,onMouseleave:Re,onTouchstartPassive:Ae,onKeydown:Te},{prefix:ae(()=>[le.value?(_(),ie(i(ze),{key:0,class:R([i(s).e("icon"),i(u).e("icon")])},{default:ae(()=>[(_(),ie(ut(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ae(()=>[oe(pe.$slots,"range-separator",{},()=>[E("span",{class:R(i(u).b("separator"))},_e(pe.rangeSeparator),3)])]),suffix:ae(()=>[pe.clearIcon?(_(),ie(i(ze),{key:0,class:R(P.value),onMousedown:Xe(i(Yt),["prevent"]),onClick:ge},{default:ae(()=>[(_(),ie(ut(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(_(),ie(i(jn),{key:0,id:pe.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:pe.name,size:i(ke),disabled:i(m),placeholder:pe.placeholder,class:R([i(r).b("editor"),i(r).bm("editor",pe.type),i(r).is("focus",i(S)),pe.$attrs.class]),style:We(pe.$attrs.style),readonly:!pe.editable||pe.readonly||X.value||H.value||Z.value||pe.type==="week","aria-label":pe.ariaLabel,tabindex:pe.tabindex,"validate-event":!1,onInput:Ye,onFocus:i(q),onBlur:i(U),onKeydown:Te,onChange:Be,onMousedown:me,onMouseenter:$e,onMouseleave:Re,onTouchstartPassive:Ae,onClick:Ee[0]||(Ee[0]=Xe(()=>{},["stop"]))},{prefix:ae(()=>[le.value?(_(),ie(i(ze),{key:0,class:R(i(s).e("icon")),onMousedown:Xe(me,["prevent"]),onTouchstartPassive:Ae},{default:ae(()=>[(_(),ie(ut(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ae(()=>[ce.value&&pe.clearIcon?(_(),ie(i(ze),{key:0,class:R(`${i(s).e("icon")} clear-icon`),onMousedown:Xe(i(Yt),["prevent"]),onClick:ge},{default:ae(()=>[(_(),ie(ut(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ae(()=>[oe(pe.$slots,"default",{visible:i(S),actualVisible:i(w),parsedValue:i(b),format:pe.format,dateFormat:pe.dateFormat,timeFormat:pe.timeFormat,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,showNow:pe.showNow,showConfirm:pe.showConfirm,showFooter:pe.showFooter,showWeekNumber:pe.showWeekNumber,onPick:Ee[1]||(Ee[1]=(...it)=>i(A)&&i(A)(...it)),onSelectRange:j,onSetPickerOption:Ee[2]||(Ee[2]=(...it)=>i(O)&&i(O)(...it)),onCalendarChange:Ee[3]||(Ee[3]=(...it)=>i(I)&&i(I)(...it)),onClear:ge,onPanelChange:Ee[4]||(Ee[4]=(...it)=>i(L)&&i(L)(...it)),onMousedown:Ee[5]||(Ee[5]=Xe(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),kb=FW;const KW=Ce({...Sb,datetimeRole:String,parsedValue:{type:J(Object)}}),Eb=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(h=>{if(d[h]){let g;const p=d[h];switch(h){case"minute":g=p(f.hour(),s,c);break;case"second":g=p(f.hour(),f.minute(),s,c);break;default:g=p(s,c);break}if(g!=null&&g.length&&!g.includes(f[h]())){const v=u?0:g.length-1;f=f[h](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([r,s])=>{o[r]=s}}},g0=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},Tb=(e,t,n)=>({getHoursList:(r,s)=>m0(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>m0(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>m0(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),Mb=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=Tb(e,t,n);return{getAvailableHours:(c,d)=>g0(a(c,d)),getAvailableMinutes:(c,d,f)=>g0(o(c,d,f)),getAvailableSeconds:(c,d,f,h)=>g0(l(c,d,f,h))}},Ob=(e,t)=>{const n=V(e.parsedValue);return fe(()=>e.visible,a=>{const o=Hv(t.modelValue),l=Hv(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},WW=Ce({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...Vh}),jW=["onClick"],qW=["onMouseenter"];var UW=D({__name:"basic-time-spinner",props:WW,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Ne(co).props,r=t,s=ve("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=Tb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h={hours:!1,minutes:!1,seconds:!1},g=V(),p={hours:V(),minutes:V(),seconds:V()},v=x(()=>n.showSeconds?cg:cg.slice(0,2)),m=x(()=>{const{spinnerDate:K}=n;return{hours:K.hour(),minutes:K.minute(),seconds:K.second()}}),y=x(()=>{const{hours:K,minutes:j}=i(m),{role:G,spinnerDate:ee}=n,te=a?void 0:ee;return{hours:u(G,te),minutes:c(K,G,te),seconds:d(K,j,G,te)}}),b=x(()=>{const{hours:K,minutes:j,seconds:G}=i(m);return{hours:v0(K,23),minutes:v0(j,59),seconds:v0(G,59)}}),w=Ko(K=>{f=!1,k(K)},200),C=K=>{if(!n.amPmMode)return"";const j=n.amPmMode==="A";let G=K<12?" am":" pm";return j&&(G=G.toUpperCase()),G},S=K=>{let j=[0,0];const G=o||Dr,ee=G.indexOf("HH"),te=G.indexOf("mm"),ue=G.indexOf("ss");switch(K){case"hours":ee!==-1&&(j=[ee,ee+2]);break;case"minutes":te!==-1&&(j=[te,te+2]);break;case"seconds":ue!==-1&&(j=[ue,ue+2]);break}const[ne,de]=j;r("select-range",ne,de),g.value=K},k=K=>{A(K,i(m)[K])},T=()=>{k("hours"),k("minutes"),k("seconds")},M=K=>K.querySelector(`.${s.namespace.value}-scrollbar__wrap`),A=(K,j)=>{if(n.arrowControl)return;const G=i(p[K]);G&&G.$el&&(l||(h[K]=!0,Ua(()=>{h[K]=!1})),M(G.$el).scrollTop=Math.max(0,j*O(K)))},O=K=>{var G;const j=(G=i(p[K]))==null?void 0:G.$el.querySelector("li");return j&&Number.parseFloat(ol(j,"height"))||0},I=()=>{z(1)},L=()=>{z(-1)},z=K=>{g.value||S("hours");const j=g.value,G=i(m)[j],ee=q(j,G,K,g.value==="hours"?24:60);U(j,ee),A(j,ee),Ie(()=>S(j))},q=(K,j,G,ee)=>{let te=(j+G+ee)%ee;const ue=i(y)[K];for(;ue[te]&&te!==j;)te=(te+G+ee)%ee;return te},U=(K,j)=>{if(i(y)[K][j])return;const{hours:G,minutes:ee,seconds:te}=i(m);let ue;switch(K){case"hours":ue=n.spinnerDate.hour(j).minute(ee).second(te);break;case"minutes":ue=n.spinnerDate.hour(G).minute(j).second(te);break;case"seconds":ue=n.spinnerDate.hour(G).minute(ee).second(j);break}r(yt,ue)},F=(K,{value:j,disabled:G})=>{G||(U(K,j),S(K),A(K,j))},N=K=>{if(!l&&h[K])return;const j=i(p[K]);j&&(f=!0,w(K),U(K,Math.min(Math.round((M(j.$el).scrollTop-(P(K)*.5-10)/O(K)+3)/O(K)),K==="hours"?23:59)))},P=K=>i(p[K]).$el.offsetHeight,B=()=>{const K=j=>{const G=i(p[j]);G&&G.$el&&(M(G.$el).onscroll=()=>{N(j)})};K("hours"),K("minutes"),K("seconds")};mt(()=>{Ie(()=>{!n.arrowControl&&B(),T(),n.role==="start"&&S("hours")})});const W=(K,j)=>{p[j].value=K??void 0};return r("set-option",[`${n.role}_scrollDown`,z]),r("set-option",[`${n.role}_emitSelectRange`,S]),fe(()=>n.spinnerDate,()=>{f||T()}),(K,j)=>(_(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":K.showSeconds}])},[K.arrowControl?re("v-if",!0):(_(!0),$(He,{key:0},Ct(v.value,G=>(_(),ie(i(uo),{key:G,ref_for:!0,ref:ee=>W(ee,G),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>S(G),onMousemove:ee=>k(G)},{default:ae(()=>[(_(!0),$(He,null,Ct(y.value[G],(ee,te)=>(_(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",te===m.value[G]),i(s).is("disabled",ee)]),onClick:ue=>F(G,{value:te,disabled:ee})},[G==="hours"?(_(),$(He,{key:0},[_t(_e(("0"+(K.amPmMode?te%12||12:te)).slice(-2))+_e(C(te)),1)],64)):(_(),$(He,{key:1},[_t(_e(("0"+te).slice(-2)),1)],64))],10,jW))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),K.arrowControl?(_(!0),$(He,{key:1},Ct(v.value,G=>(_(),$("div",{key:G,class:R([i(s).be("spinner","wrapper"),i(s).is("arrow")]),onMouseenter:ee=>S(G)},[dt((_(),ie(i(ze),{class:R(["arrow-up",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(Du))]),_:1},8,["class"])),[[i(ud),L]]),dt((_(),ie(i(ze),{class:R(["arrow-down",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(bo))]),_:1},8,["class"])),[[i(ud),I]]),E("ul",{class:R(i(s).be("spinner","list"))},[(_(!0),$(He,null,Ct(b.value[G],(ee,te)=>(_(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",ee===m.value[G]),i(s).is("disabled",y.value[G][ee])])},[i(De)(ee)?(_(),$(He,{key:0},[G==="hours"?(_(),$(He,{key:0},[_t(_e(("0"+(K.amPmMode?ee%12||12:ee)).slice(-2))+_e(C(ee)),1)],64)):(_(),$(He,{key:1},[_t(_e(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,qW))),128)):re("v-if",!0)],2))}}),R2=UW,YW=D({__name:"panel-time-pick",props:KW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=Ne(co),{arrowControl:l,disabledHours:r,disabledMinutes:s,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}=Mb(r,s,u),g=ve("time"),{t:p,lang:v}=xt(),m=V([0,2]),y=Ob(n,{modelValue:x(()=>o.props.modelValue),valueOnClear:x(()=>o!=null&&o.emptyValues?o.emptyValues.valueOnClear.value:null)}),b=x(()=>kt(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),w=x(()=>n.format.includes("ss")),C=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=P=>{const B=lt(P).locale(v.value),W=U(B);return B.isSame(W)},k=()=>{const P=y.value;a("pick",P,!1),Ie(()=>{y.value=P})},T=(P=!1,B=!1)=>{B||a("pick",n.parsedValue,P)},M=P=>{n.visible&&a("pick",U(P).millisecond(0),!0)},A=(P,B)=>{a("select-range",P,B),m.value=[P,B]},O=P=>{const B=n.format,W=B.indexOf("HH"),K=B.indexOf("mm"),j=B.indexOf("ss"),G=[],ee=[];W!==-1&&(G.push(W),ee.push("hours")),K!==-1&&(G.push(K),ee.push("minutes")),j!==-1&&w.value&&(G.push(j),ee.push("seconds"));const te=(G.indexOf(m.value[0])+P+G.length)%G.length;L.start_emitSelectRange(ee[te])},I=P=>{const B=Kt(P),{left:W,right:K,up:j,down:G}=we;if([W,K].includes(B)){O(B===W?-1:1),P.preventDefault();return}if([j,G].includes(B)){const ee=B===j?-1:1;L.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:L,onSetOption:z,getAvailableTime:q}=Eb({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}),U=P=>q(P,n.datetimeRole||"",!0),F=P=>P?lt(P,n.format).locale(v.value):null,N=()=>lt(c).locale(v.value);return a("set-picker-option",["isValidValue",S]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleKeydownInput",I]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["getDefaultValue",N]),a("set-picker-option",["handleCancel",k]),(P,B)=>(_(),ie(qn,{name:b.value},{default:ae(()=>[P.actualVisible||P.visible?(_(),$("div",{key:0,class:R(i(g).b("panel"))},[E("div",{class:R([i(g).be("panel","content"),{"has-seconds":w.value}])},[Q(R2,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(l),"show-seconds":w.value,"am-pm-mode":C.value,"spinner-date":P.parsedValue,"disabled-hours":i(r),"disabled-minutes":i(s),"disabled-seconds":i(u),onChange:M,onSetOption:i(z),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),E("div",{class:R(i(g).be("panel","footer"))},[E("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:k},_e(i(p)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=W=>T())},_e(i(p)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),vd=YW;const GW=Ce({...Sb,parsedValue:{type:J(Array)}}),XW=["disabled"];var JW=D({__name:"panel-time-range",props:GW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(X,H)=>{const Z=[];for(let le=X;le<=H;le++)Z.push(le);return Z},{t:l,lang:r}=xt(),s=ve("time"),u=ve("picker"),c=Ne(co),{arrowControl:d,disabledHours:f,disabledMinutes:h,disabledSeconds:g,defaultValue:p}=c.props,v=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),m=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),y=x(()=>n.parsedValue[0]),b=x(()=>n.parsedValue[1]),w=Ob(n,{modelValue:x(()=>c.props.modelValue),valueOnClear:x(()=>c!=null&&c.emptyValues?c.emptyValues.valueOnClear.value:null)}),C=()=>{const X=w.value;a("pick",X,!1),Ie(()=>{w.value=X})},S=x(()=>n.format.includes("ss")),k=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(X=!1)=>{a("pick",[y.value,b.value],X)},M=X=>{I(X.millisecond(0),b.value)},A=X=>{I(y.value,X.millisecond(0))},O=X=>{const H=X.map(le=>lt(le).locale(r.value)),Z=j(H);return H[0].isSame(Z[0])&&H[1].isSame(Z[1])},I=(X,H)=>{n.visible&&a("pick",[X,H],!0)},L=x(()=>y.value>b.value),z=V([0,2]),q=(X,H)=>{a("select-range",X,H,"min"),z.value=[X,H]},U=x(()=>S.value?11:8),F=(X,H)=>{a("select-range",X,H,"max");const Z=i(U);z.value=[X+Z,H+Z]},N=X=>{const H=S.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(S.value?["seconds"]:[]),le=(H.indexOf(z.value[0])+X+H.length)%H.length,ce=H.length/2;le{const H=Kt(X),{left:Z,right:le,up:ce,down:ge}=we;if([Z,le].includes(H)){N(H===Z?-1:1),X.preventDefault();return}if([ce,ge].includes(H)){const me=H===ce?-1:1;ue[`${z.value[0]{const Z=f?f(X):[],le=X==="start",ce=(H||(le?b.value:y.value)).hour();return o0(Z,le?o(ce+1,23):o(0,ce-1))},W=(X,H,Z)=>{const le=h?h(X,H):[],ce=H==="start",ge=Z||(ce?b.value:y.value);if(X!==ge.hour())return le;const me=ge.minute();return o0(le,ce?o(me+1,59):o(0,me-1))},K=(X,H,Z,le)=>{const ce=g?g(X,H,Z):[],ge=Z==="start",me=le||(ge?b.value:y.value),$e=me.hour(),Re=me.minute();if(X!==$e||H!==Re)return ce;const Ae=me.second();return o0(ce,ge?o(Ae+1,59):o(0,Ae-1))},j=([X,H])=>[ne(X,"start",!0,H),ne(H,"end",!1,X)],{getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}=Mb(B,W,K),{timePickerOptions:ue,getAvailableTime:ne,onSetOption:de}=Eb({getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}),se=X=>X?Ve(X)?X.map(H=>lt(H,n.format).locale(r.value)):lt(X,n.format).locale(r.value):null,Y=()=>{if(Ve(p))return p.map(H=>lt(H).locale(r.value));const X=lt(p).locale(r.value);return[X,X.add(60,"m")]};return a("set-picker-option",["parseUserInput",se]),a("set-picker-option",["isValidValue",O]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["handleCancel",C]),(X,H)=>X.actualVisible?(_(),$("div",{key:0,class:R([i(s).b("range-picker"),i(u).b("panel")])},[E("div",{class:R(i(s).be("range-picker","content"))},[E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},_e(i(l)("el.datepicker.startTime")),3),E("div",{class:R(v.value)},[Q(R2,{ref:"minSpinner",role:"start","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":y.value,"disabled-hours":B,"disabled-minutes":W,"disabled-seconds":K,onChange:M,onSetOption:i(de),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},_e(i(l)("el.datepicker.endTime")),3),E("div",{class:R(m.value)},[Q(R2,{ref:"maxSpinner",role:"end","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":B,"disabled-minutes":W,"disabled-seconds":K,onChange:A,onSetOption:i(de),onSelectRange:F},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),E("div",{class:R(i(s).be("panel","footer"))},[E("button",{type:"button",class:R([i(s).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=Z=>C())},_e(i(l)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(s).be("panel","btn"),"confirm"]),disabled:L.value,onClick:H[1]||(H[1]=Z=>T())},_e(i(l)("el.datepicker.confirm")),11,XW)],2)],2)):re("v-if",!0)}}),ZW=JW,$b={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(y){this[m]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],h=function(m){var y=u[m];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(m,y){var b,w=u.meridiem;if(w){for(var C=1;C<=24;C+=1)if(m.indexOf(w(C,0,y))>-1){b=C>12;break}}else b=m===(y?"pm":"PM");return b},p={A:[s,function(m){this.afternoon=g(m,!1)}],a:[s,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(m){var y=u.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],w:[r,d("week")],ww:[l,d("week")],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(m){var y=h("months"),b=(h("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(m){var y=h("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var y,b;y=m,b=u&&u.formats;for(var w=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,L){var z=L&&L.toUpperCase();return I||b[L]||n[L]||b[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,U,F){return U||F.slice(1)})})).match(a),C=w.length,S=0;S-1)return new Date((P==="X"?1e3:1)*N);var K=v(P)(N),j=K.year,G=K.month,ee=K.day,te=K.hours,ue=K.minutes,ne=K.seconds,de=K.milliseconds,se=K.zone,Y=K.week,X=new Date,H=ee||(j||G?1:X.getDate()),Z=j||X.getFullYear(),le=0;j&&!G||(le=G>0?G-1:X.getMonth());var ce,ge=te||0,me=ue||0,$e=ne||0,Re=de||0;return se?new Date(Date.UTC(Z,le,H,ge,me,$e,Re+60*se.offset*1e3)):B?new Date(Date.UTC(Z,le,H,ge,me,$e,Re)):(ce=new Date(Z,le,H,ge,me,$e,Re),Y&&(ce=W(ce).week(Y).toDate()),ce)}catch{return new Date("")}}(k,A,T,b),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),L&&k!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var q=A.length,U=1;U<=q;U+=1){M[1]=A[U-1];var F=b.apply(this,M);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}U===q&&(this.$d=new Date(""))}else C.call(this,S)}}})})($b);var QW=$b.exports;const zh=Ol(QW);lt.extend(zh);var ej=D({name:"ElTimePicker",install:null,props:{...Bh,isRange:Boolean},emits:[at],setup(e,t){const n=V(),[a,o]=e.isRange?["timerange",ZW]:["time",vd],l=r=>t.emit(at,r);return bt(Lh,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{const r=e.format??Dr;return Q(kb,pt(e,{ref:n,type:a,format:r,"onUpdate:modelValue":l}),{default:s=>Q(o,s,null)})}}});const tj=rt(ej),wl=Ce({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:vo},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),nj={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},aj=["aria-label"],oj=["aria-label"];var lj=D({name:"ElTag",__name:"tag",props:wl,emits:nj,setup(e,{emit:t}){const n=e,a=t,o=En(),{t:l}=xt(),r=ve("tag"),s=x(()=>{const{type:f,hit:h,effect:g,closable:p,round:v}=n;return[r.b(),r.is("closable",p),r.m(f||"primary"),r.m(o.value),r.m(g),r.is("hit",h),r.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{var h,g,p;(p=(g=(h=f==null?void 0:f.component)==null?void 0:h.subTree)==null?void 0:g.component)!=null&&p.bum&&(f.component.subTree.component.bum=null)};return(f,h)=>e.disableTransitions?(_(),$("span",{key:0,class:R(s.value),style:We({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(_(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Xe(u,["stop"])},[Q(i(ze),null,{default:ae(()=>[Q(i(Ba))]),_:1})],10,aj)):re("v-if",!0)],6)):(_(),ie(qn,{key:1,name:`${i(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ae(()=>[E("span",{class:R(s.value),style:We({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(_(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Xe(u,["stop"])},[Q(i(ze),null,{default:ae(()=>[Q(i(Ba))]),_:1})],10,oj)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),rj=lj;const dl=rt(rj),Ab=Symbol("ElSelectGroup"),Ku=Symbol("ElSelect"),md={label:"label",value:"value",disabled:"disabled",options:"options"};function Wu(e){const t=V({...md,...e.props});let n={...e.props};return fe(()=>e.props,s=>{sn(s,n)||(t.value={...md,...s},n={...s})},{deep:!0}),{aliasProps:t,getLabel:s=>_n(s,t.value.label),getValue:s=>_n(s,t.value.value),getDisabled:s=>_n(s,t.value.disabled),getOptions:s=>_n(s,t.value.options)}}const Rb=Ce({name:String,id:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:On,effect:{type:J(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:J(Function)},filterMethod:{type:J(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ft,default:wo},fitInputWidth:Boolean,suffixIcon:{type:Ft,default:bo},tagType:{...wl.type,default:"info"},tagEffect:{...wl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:J(String),values:Uo,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,options:{type:J(Array)},props:{type:J(Object),default:()=>md},...Gr,...ia(["ariaLabel"])});lb.scroll;const N2="ElOption",sj=Ce({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function ij(e,t){const n=Ne(Ku);n||on(N2,"usage: ");const a=Ne(Ab,{disabled:!1}),o=x(()=>d(In(n.props.modelValue),e.value)),l=x(()=>{if(n.props.multiple){const g=In(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=x(()=>e.label??(Mt(e.value)?"":e.value)),s=x(()=>e.value||e.label||""),u=x(()=>e.disabled||t.groupDisabled||l.value),c=ht(),d=(g=[],p)=>{if(Mt(e.value)){const v=n.props.valueKey;return g&&g.some(m=>jt(_n(m,v))===_n(p,v))}else return g&&g.includes(p)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=g=>{t.visible=new RegExp(oh(g),"i").test(String(r.value))||e.created};return fe(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),fe(()=>e.value,(g,p)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==p:!sn(g,p))&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&&Mt(g)&&Mt(p)&&g[m]===p[m])return;n.setSelected()}}),fe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:s,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:h}}var uj=D({name:N2,componentName:N2,props:sj,setup(e){const t=ve("select"),n=Un(),a=x(()=>[t.be("dropdown","item"),t.is("disabled",i(s)),t.is("selected",i(r)),t.is("hovering",i(h))]),o=Nt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:r,isDisabled:s,select:u,hoverItem:c,updateOption:d}=ij(e,o),{visible:f,hover:h}=Bn(o),g=ht().proxy;u.onOptionCreate(g),Lt(()=>{const m=g.value;Ie(()=>{const{selected:y}=u.states,b=y.some(w=>w.value===g.value);u.states.cachedOptions.get(m)===g&&!b&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function p(){s.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:l,itemSelected:r,isDisabled:s,select:u,visible:f,hover:h,states:o,hoverItem:c,handleMousedown:m=>{let y=m.target;const b=m.currentTarget;for(;y&&y!==b;){if(Lr(y))return;y=y.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:p}}});const cj=["id","aria-disabled","aria-selected"];function dj(e,t,n,a,o,l){return dt((_(),$("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Xe((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{},()=>[E("span",null,_e(e.currentLabel),1)])],42,cj)),[[At,e.visible]])}var Dh=$n(uj,[["render",dj]]),fj=D({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ve("select"),n=V(),a=ht(),o=V([]);bt(Ab,Nt({...Bn(e)}));const l=x(()=>o.value.some(c=>c.visible===!0)),r=c=>{var d;return c.type.name==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},s=c=>{const d=In(c),f=[];return d.forEach(h=>{var g;Wt(h)&&(r(h)?f.push(h.component.proxy):Ve(h.children)&&h.children.length?f.push(...s(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...s(h.component.subTree)))}),f},u=()=>{o.value=s(a.subTree)};return mt(()=>{u()}),Su(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:t}}});function pj(e,t,n,a,o,l){return dt((_(),$("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[E("li",{class:R(e.ns.be("group","title"))},_e(e.label),3),E("li",null,[E("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[At,e.visible]])}var Hh=$n(fj,[["render",pj]]),hj=D({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ne(Ku),t=ve("select"),n=x(()=>e.props.popperClass),a=x(()=>e.props.multiple),o=x(()=>e.props.fitInputWidth),l=V("");function r(){var u;const s=(u=e.selectRef)==null?void 0:u.offsetWidth;s?l.value=`${s-O6}px`:l.value=""}return mt(()=>{r(),en(e.selectRef,r)}),{ns:t,minWidth:l,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function vj(e,t,n,a,o,l){return _(),$("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:We({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),$("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(_(),$("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var mj=$n(hj,[["render",vj]]);const gj=(e,t)=>{const{t:n}=xt(),a=yn(),o=Un(),l=ve("select"),r=ve("input"),s=Nt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=V(),c=V(),d=V(),f=V(),h=V(),g=V(),p=V(),v=V(),m=V(),y=V(),b=V(),w=V(!1),C=V(),S=V(!1),{form:k,formItem:T}=Kn(),{inputId:M}=za(e,{formItemContext:T}),{valueOnClear:A,isEmptyValue:O}=zu(e),{isComposing:I,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q}=Bu({afterComposition:Se=>Ye(Se)}),U=dn(),{wrapperRef:F,isFocused:N,handleBlur:P}=El(h,{disabled:U,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(Se){var Ze,Et;return((Ze=d.value)==null?void 0:Ze.isFocusInsideContent(Se))||((Et=f.value)==null?void 0:Et.isFocusInsideContent(Se))},afterBlur(){var Se;w.value=!1,s.menuVisibleOnFocus=!1,e.validateEvent&&((Se=T==null?void 0:T.validate)==null||Se.call(T,"blur").catch(Ze=>ft(Ze)))}}),B=x(()=>Ve(e.modelValue)?e.modelValue.length>0:!O(e.modelValue)),W=x(()=>(k==null?void 0:k.statusIcon)??!1),K=x(()=>e.clearable&&!U.value&&B.value&&(N.value||s.inputHovering)),j=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=x(()=>l.is("reverse",!!(j.value&&w.value))),ee=x(()=>(T==null?void 0:T.validateState)||""),te=x(()=>ee.value&&bf[ee.value]),ue=x(()=>e.remote?e.debounce:0),ne=x(()=>e.remote&&!s.inputValue&&s.options.size===0),de=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&se.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),se=x(()=>Y.value.filter(Se=>Se.visible).length),Y=x(()=>{const Se=Array.from(s.options.values()),Ze=[];return s.optionValues.forEach(Et=>{const Qt=Se.findIndex(kn=>kn.value===Et);Qt>-1&&Ze.push(Se[Qt])}),Ze.length>=Se.length?Ze:Se}),X=x(()=>Array.from(s.cachedOptions.values())),H=x(()=>{const Se=Y.value.filter(Ze=>!Ze.created).some(Ze=>Ze.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!Se}),Z=()=>{e.filterable&&ct(e.filterMethod)||e.filterable&&e.remote&&ct(e.remoteMethod)||Y.value.forEach(Se=>{var Ze;(Ze=Se.updateOption)==null||Ze.call(Se,s.inputValue)})},le=En(),ce=x(()=>["small"].includes(le.value)?"small":"default"),ge=x({get(){return w.value&&(e.loading||!ne.value||e.remote&&!!a.empty)&&(!S.value||!ha(s.previousQuery)||s.options.size>0)},set(Se){w.value=Se}}),me=x(()=>{if(e.multiple&&!kt(e.modelValue))return In(e.modelValue).length===0&&!s.inputValue;const Se=Ve(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||kt(Se)?!s.inputValue:!0}),$e=x(()=>{const Se=e.placeholder??n("el.select.placeholder");return e.multiple||!B.value?Se:s.selectedLabel}),Re=x(()=>ld?null:"mouseenter");fe(()=>e.modelValue,(Se,Ze)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Ae("")),ke(),!sn(Se,Ze)&&e.validateEvent&&(T==null||T.validate("change").catch(Et=>ft(Et)))},{flush:"post",deep:!0}),fe(()=>w.value,Se=>{Se?Ae(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0,s.menuVisibleOnFocus=!1)}),fe(()=>s.options.entries(),()=>{Rt&&(ke(),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value&&ye())},{flush:"post"}),fe([()=>s.hoveringIndex,Y],([Se])=>{De(Se)&&Se>-1?C.value=Y.value[Se]||{}:C.value={},Y.value.forEach(Ze=>{Ze.hover=C.value===Ze})}),ma(()=>{s.isBeforeHide||Z()});const Ae=Se=>{s.previousQuery===Se||I.value||(s.previousQuery=Se,e.filterable&&ct(e.filterMethod)?e.filterMethod(Se):e.filterable&&e.remote&&ct(e.remoteMethod)&&e.remoteMethod(Se),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value?Ie(ye):Ie(Pe))},ye=()=>{const Se=Y.value.filter(Qt=>Qt.visible&&!Qt.disabled&&!Qt.states.groupDisabled),Ze=Se.find(Qt=>Qt.created),Et=Se[0];s.hoveringIndex=Ee(Y.value.map(Qt=>Qt.value),Ze||Et)},ke=()=>{if(e.multiple)s.selectedLabel="";else{const Ze=be(Ve(e.modelValue)?e.modelValue[0]:e.modelValue);s.selectedLabel=Ze.currentLabel,s.selected=[Ze];return}const Se=[];kt(e.modelValue)||In(e.modelValue).forEach(Ze=>{Se.push(be(Ze))}),s.selected=Se},be=Se=>{let Ze;const Et=Q0(Se);for(let Qt=s.cachedOptions.size-1;Qt>=0;Qt--){const kn=X.value[Qt];if(Et?_n(kn.value,e.valueKey)===_n(Se,e.valueKey):kn.value===Se){Ze={index:Y.value.filter(zn=>!zn.created).indexOf(kn),value:Se,currentLabel:kn.currentLabel,get isDisabled(){return kn.isDisabled}};break}}return Ze||{index:-1,value:Se,currentLabel:Et?Se.label:Se??""}},Pe=()=>{const Se=s.selected.length;if(Se>0){const Ze=s.selected[Se-1];s.hoveringIndex=Y.value.findIndex(Et=>Nn(Ze)===Nn(Et))}else s.hoveringIndex=-1},Be=()=>{s.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},Qe=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},tt=()=>{var Se,Ze;(Ze=(Se=d.value)==null?void 0:Se.updatePopper)==null||Ze.call(Se)},nt=()=>{var Se,Ze;(Ze=(Se=f.value)==null?void 0:Se.updatePopper)==null||Ze.call(Se)},Te=()=>{s.inputValue.length>0&&!w.value&&(w.value=!0),Ae(s.inputValue)},Ye=Se=>{if(s.inputValue=Se.target.value,e.remote)S.value=!0,st();else return Te()},st=_u(()=>{Te(),S.value=!1},ue),Ke=Se=>{sn(e.modelValue,Se)||t(yt,Se)},et=Se=>b8(Se,Ze=>{const Et=s.cachedOptions.get(Ze);return!(Et!=null&&Et.disabled)&&!(Et!=null&&Et.states.groupDisabled)}),gt=Se=>{const Ze=Kt(Se);if(e.multiple&&Ze!==we.delete&&Se.target.value.length<=0){const Et=In(e.modelValue).slice(),Qt=et(Et);if(Qt<0)return;const kn=Et[Qt];Et.splice(Qt,1),t(at,Et),Ke(Et),t("remove-tag",kn)}},he=(Se,Ze)=>{const Et=s.selected.indexOf(Ze);if(Et>-1&&!U.value){const Qt=In(e.modelValue).slice();Qt.splice(Et,1),t(at,Qt),Ke(Qt),t("remove-tag",Ze.value)}Se.stopPropagation(),Je()},Le=Se=>{Se.stopPropagation();const Ze=e.multiple?[]:A.value;if(e.multiple)for(const Et of s.selected)Et.isDisabled&&Ze.push(Et.value);t(at,Ze),Ke(Ze),s.hoveringIndex=-1,w.value=!1,t("clear"),Je()},pe=Se=>{if(e.multiple){const Ze=In(e.modelValue??[]).slice(),Et=Ee(Ze,Se);Et>-1?Ze.splice(Et,1):(e.multipleLimit<=0||Ze.length{it(Se)})},Ee=(Se,Ze)=>kt(Ze)?-1:Mt(Ze.value)?Se.findIndex(Et=>sn(_n(Et,e.valueKey),Nn(Ze))):Se.indexOf(Ze.value),it=Se=>{var Qt,kn,zn,Xo,si;const Ze=Ve(Se)?Se[Se.length-1]:Se;let Et=null;if(!Cn(Ze==null?void 0:Ze.value)){const tr=Y.value.filter(Jr=>Jr.value===Ze.value);tr.length>0&&(Et=tr[0].$el)}if(d.value&&Et){const tr=(Xo=(zn=(kn=(Qt=d.value)==null?void 0:Qt.popperRef)==null?void 0:kn.contentRef)==null?void 0:zn.querySelector)==null?void 0:Xo.call(zn,`.${l.be("dropdown","wrap")}`);tr&&sh(tr,Et)}(si=b.value)==null||si.handleScroll()},Pt=Se=>{s.options.set(Se.value,Se),s.cachedOptions.set(Se.value,Se)},Xt=(Se,Ze)=>{s.options.get(Se)===Ze&&s.options.delete(Se)},Oe=x(()=>{var Se,Ze;return(Ze=(Se=d.value)==null?void 0:Se.popperRef)==null?void 0:Ze.contentRef}),Fe=()=>{s.isBeforeHide=!1,Ie(()=>{var Se;(Se=b.value)==null||Se.update(),it(s.selected)})},Je=()=>{var Se;(Se=h.value)==null||Se.focus()},hn=()=>{var Se;if(w.value){w.value=!1,Ie(()=>{var Ze;return(Ze=h.value)==null?void 0:Ze.blur()});return}(Se=h.value)==null||Se.blur()},zt=Se=>{Le(Se)},Zt=Se=>{if(w.value=!1,N.value){const Ze=new FocusEvent("blur",Se);Ie(()=>P(Ze))}},je=()=>{s.inputValue.length>0?s.inputValue="":w.value=!1},Ge=Se=>{var Ze;U.value||e.filterable&&w.value&&Se&&!((Ze=p.value)!=null&&Ze.contains(Se.target))||(ld&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:w.value=!w.value)},vt=()=>{if(!w.value)Ge();else{const Se=Y.value[s.hoveringIndex];Se&&!Se.isDisabled&&pe(Se)}},Nn=Se=>Mt(Se.value)?_n(Se.value,e.valueKey):Se.value,So=x(()=>Y.value.filter(Se=>Se.visible).every(Se=>Se.isDisabled)),Xa=x(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Qu=x(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),er=Se=>{if(!w.value){w.value=!0;return}if(!(s.options.size===0||se.value===0||I.value)&&!So.value){Se==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):Se==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Ze=Y.value[s.hoveringIndex];(Ze.isDisabled||!Ze.visible)&&er(Se),Ie(()=>it(C.value))}},ec=(Se,Ze,Et,Qt)=>{for(let kn=Ze;kn>=0&&kn{const Et=s.options.size;if(Et===0)return;const Qt=gr(Se,0,Et-1),kn=Y.value,zn=Ze==="up"?-1:1,Xo=ec(kn,Qt,zn,Et)??ec(kn,Qt-zn,-zn,Et);Xo!=null&&(s.hoveringIndex=Xo,Ie(()=>it(C.value)))},Bf=Se=>{const Ze=Kt(Se);let Et=!0;switch(Ze){case we.up:er("prev");break;case we.down:er("next");break;case we.enter:case we.numpadEnter:I.value||vt();break;case we.esc:je();break;case we.backspace:Et=!1,gt(Se);return;case we.home:if(!w.value)return;Go(0,"down");break;case we.end:if(!w.value)return;Go(s.options.size-1,"up");break;case we.pageUp:if(!w.value)return;Go(s.hoveringIndex-10,"up");break;case we.pageDown:if(!w.value)return;Go(s.hoveringIndex+10,"down");break;default:Et=!1;break}Et&&(Se.preventDefault(),Se.stopPropagation())},zf=()=>{if(!c.value)return 0;const Se=window.getComputedStyle(c.value);return Number.parseFloat(Se.gap||"6px")},Df=x(()=>{const Se=zf(),Ze=e.filterable?Se+Xd:0;return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-Se-Ze:s.selectionWidth-Ze}px`}}),Hf=x(()=>({maxWidth:`${s.selectionWidth}px`})),Ff=Se=>{t("popup-scroll",Se)};en(c,Be),en(F,tt),en(m,nt),en(y,Qe);let $l;return fe(()=>ge.value,Se=>{Se?$l=en(v,tt).stop:($l==null||$l(),$l=void 0),t("visible-change",Se)}),mt(()=>{ke()}),{inputId:M,contentId:o,nsSelect:l,nsInput:r,states:s,isFocused:N,expanded:w,optionsArray:Y,hoverOption:C,selectSize:le,filteredOptionsCount:se,updateTooltip:tt,updateTagTooltip:nt,debouncedOnInputChange:st,onInput:Ye,deletePrevTag:gt,deleteTag:he,deleteSelected:Le,handleOptionSelect:pe,scrollToOption:it,hasModelValue:B,shouldShowPlaceholder:me,currentPlaceholder:$e,mouseEnterEventName:Re,needStatusIcon:W,showClearBtn:K,iconComponent:j,iconReverse:G,validateState:ee,validateIcon:te,showNewOption:H,updateOptions:Z,collapseTagSize:ce,setSelected:ke,selectDisabled:U,emptyText:de,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q,handleKeydown:Bf,onOptionCreate:Pt,onOptionDestroy:Xt,handleMenuEnter:Fe,focus:Je,blur:hn,handleClearClick:zt,handleClickOutside:Zt,handleEsc:je,toggleMenu:Ge,selectOption:vt,getValueKey:Nn,navigateOptions:er,dropdownMenuVisible:ge,showTagList:Xa,collapseTagList:Qu,popupScroll:Ff,getOption:be,tagStyle:Df,collapseTagStyle:Hf,popperRef:Oe,inputRef:h,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:p,selectRef:u,wrapperRef:F,selectionRef:c,scrollbarRef:b,menuRef:v,tagMenuRef:m,collapseItemRef:y}};var yj=D({name:"ElOptions",setup(e,{slots:t}){const n=Ne(Ku);let a=[];return()=>{var s,u;const o=(s=t.default)==null?void 0:s.call(t),l=[];function r(c){Ve(c)&&c.forEach(d=>{var h,g,p,v;const f=(h=(d==null?void 0:d.type)||{})==null?void 0:h.name;f==="ElOptionGroup"?r(!Ue(d.children)&&!Ve(d.children)&&ct((g=d.children)==null?void 0:g.default)?(p=d.children)==null?void 0:p.default():d.children):f==="ElOption"?l.push((v=d.props)==null?void 0:v.value):Ve(d.children)&&r(d.children)})}return o.length&&r((u=o[0])==null?void 0:u.children),sn(l,a)||(a=l,n&&(n.states.optionValues=l)),o}}});const hg="ElSelect",ru=new WeakMap,bj=e=>(...t)=>{var o,l;const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((o=t[2])!=null&&o.includes("ElTreeSelect")))return;const a=(l=ru.get(e))==null?void 0:l.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},wj=e=>{let t=ru.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:bj(e),count:0},ru.set(e,t)),t};var Cj=D({name:hg,componentName:hg,components:{ElSelectMenu:mj,ElOption:Dh,ElOptions:yj,ElOptionGroup:Hh,ElTag:dl,ElScrollbar:uo,ElTooltip:Fn,ElIcon:ze},directives:{ClickOutside:Yl},props:Rb,emits:[at,yt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const a=ht(),o=wj(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const l=x(()=>{const{modelValue:b,multiple:w}=e,C=w?[]:void 0;return Ve(b)?w?b:C:w?C:b}),r=Nt({...Bn(e),modelValue:l}),s=gj(r,t),{calculatorRef:u,inputStyle:c}=ah(),{getLabel:d,getValue:f,getOptions:h,getDisabled:g}=Wu(e),p=b=>({label:d(b),value:f(b),disabled:g(b)}),v=b=>b.reduce((w,C)=>(w.push(C),C.children&&C.children.length>0&&w.push(...v(C.children)),w),[]),m=b=>{Ra(b||[]).forEach(w=>{var C;if(Mt(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const S=w.type.name;if(S==="ElTree")v(((C=w.props)==null?void 0:C.data)||[]).forEach(k=>{k.currentLabel=k.label??(Mt(k.value)?"":k.value),s.onOptionCreate(k)});else if(S==="ElOption"){const k={...w.props};k.currentLabel=k.label??(Mt(k.value)?"":k.value),s.onOptionCreate(k)}}})};fe(()=>{var b;return[e.persistent||s.expanded.value||!n.default||(b=n.default)==null?void 0:b.call(n),l.value]},()=>{var b;e.persistent||s.expanded.value||n.default&&(s.states.options.clear(),m((b=n.default)==null?void 0:b.call(n)))},{immediate:!0}),bt(Ku,Nt({props:r,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=x(()=>e.multiple?s.states.selected.map(b=>b.currentLabel):s.states.selectedLabel);return Lt(()=>{const b=ru.get(a.appContext);b&&(b.count-=1,b.count<=0&&(a.appContext.config.warnHandler=b.originalWarnHandler,ru.delete(a.appContext)))}),{...s,modelValue:l,selectedLabel:y,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:h,getDisabled:g,getOptionProps:p}}});const _j=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Sj=["textContent"],xj={key:1};function kj(e,t,n,a,o,l){const r=$t("el-tag"),s=$t("el-tooltip"),u=$t("el-icon"),c=$t("el-option"),d=$t("el-option-group"),f=$t("el-options"),h=$t("el-scrollbar"),g=$t("el-select-menu"),p=Ap("click-outside");return dt((_(),$("div",pt({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[Oi(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ae(()=>{var v;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Xe((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?(_(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var m,y,b,w,C,S,k,T,M,A,O,I,L;return[(_(!0),$(He,null,Ct(e.showTagList,z=>(_(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:We(e.tagStyle),onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[_t(_e(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((m=e.tagTooltip)==null?void 0:m.fallbackPlacements)??["bottom","top","right","left"],effect:((y=e.tagTooltip)==null?void 0:y.effect)??e.effect,placement:((b=e.tagTooltip)==null?void 0:b.placement)??"bottom","popper-class":((w=e.tagTooltip)==null?void 0:w.popperClass)??e.popperClass,"popper-style":((C=e.tagTooltip)==null?void 0:C.popperStyle)??e.popperStyle,teleported:((S=e.tagTooltip)==null?void 0:S.teleported)??e.teleported,"append-to":((k=e.tagTooltip)==null?void 0:k.appendTo)??e.appendTo,"popper-options":((T=e.tagTooltip)==null?void 0:T.popperOptions)??e.popperOptions,transition:(M=e.tagTooltip)==null?void 0:M.transition,"show-after":(A=e.tagTooltip)==null?void 0:A.showAfter,"hide-after":(O=e.tagTooltip)==null?void 0:O.hideAfter,"auto-close":(I=e.tagTooltip)==null?void 0:I.autoClose,offset:(L=e.tagTooltip)==null?void 0:L.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:We(e.collapseTagStyle)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+_e(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),$(He,null,Ct(e.collapseTagList,z=>(_(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[_t(_e(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:We(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...m)=>e.handleKeydown&&e.handleKeydown(...m)),onCompositionstart:t[1]||(t[1]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[2]||(t[2]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[3]||(t[3]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[4]||(t[4]=(...m)=>e.onInput&&e.onInput(...m)),onChange:t[5]||(t[5]=Xe(()=>{},["stop"])),onClick:t[6]||(t[6]=Xe((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,_j),e.filterable?(_(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:_e(e.states.inputValue)},null,10,Sj)):re("v-if",!0)],2),e.shouldShowPlaceholder?(_(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,_e(e.currentPlaceholder),1)]):(_(),$("span",xj,_e(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(_(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(_(),ie(ut(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(g,{ref:"menuRef"},{default:ae(()=>[e.$slots.header?(_(),$("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),dt(Q(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:ae(()=>[e.showNewOption?(_(),ie(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),Q(f,null,{default:ae(()=>[oe(e.$slots,"default",{},()=>[(_(!0),$(He,null,Ct(e.options,(v,m)=>{var y;return _(),$(He,{key:m},[(y=e.getOptions(v))!=null&&y.length?(_(),ie(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ae(()=>[(_(!0),$(He,null,Ct(e.getOptions(v),b=>(_(),ie(c,pt({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(_(),ie(c,pt({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[At,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),$("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),$("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,_e(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(_(),$("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[p,e.handleClickOutside,e.popperRef]])}var Ej=$n(Cj,[["render",kj]]);const Jl=rt(Ej,{Option:Dh,OptionGroup:Hh}),gd=ln(Dh),Tj=ln(Hh),Mj=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return ql(t).map((a,o)=>n-(t-o-1))},Oj=e=>ql(e.daysInMonth()).map((t,n)=>n+1),$j=e=>ql(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Aj=Ce({selectedDay:{type:J(Object)},range:{type:J(Array)},date:{type:J(Object),required:!0},hideHeader:{type:Boolean}}),Rj={pick:e=>Mt(e)};var Nb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a,o){var l=a.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,h,g,p,v){var m=f.name?f:f.$locale(),y=r(m[h]),b=r(m[g]),w=y||b.map(function(S){return S.slice(0,p)});if(!v)return w;var C=m.weekStart;return w.map(function(S,k){return w[(k+(C||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,m){return v||m.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):s(f,"months")},monthsShort:function(h){return h?h.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(f){return s(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(Nb);var Nj=Nb.exports;const Pb=Ol(Nj),Pj=(e,t)=>{lt.extend(Pb);const n=lt.localeData().firstDayOfWeek(),{t:a,lang:o}=xt(),l=lt().locale(o.value),r=x(()=>!!e.range&&!!e.range.length),s=x(()=>{let h=[];if(r.value){const[g,p]=e.range,v=ql(p.date()-g.date()+1).map(b=>({text:g.date()+b,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const y=ql(m).map((b,w)=>({text:w+1,type:"next"}));h=v.concat(y)}else{const g=e.date.startOf("month").day(),p=Mj(e.date,(g-n+7)%7).map(y=>({text:y,type:"prev"})),v=Oj(e.date).map(y=>({text:y,type:"current"}));h=[...p,...v];const m=ql(7-(h.length%7||7)).map((y,b)=>({text:b+1,type:"next"}));h=h.concat(m)}return $j(h)}),u=x(()=>{const h=n;return h===0?Qf.map(g=>a(`el.datepicker.weeks.${g}`)):Qf.slice(h).concat(Qf.slice(0,h)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(h,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:l,isInRange:r,rows:s,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:g})=>{t("pick",c(h,g))},getSlotData:({text:h,type:g})=>{const p=c(h,g);return{isSelected:p.isSame(e.selectedDay),type:`${g}-month`,day:p.format(ll),date:p.toDate()}}}},Ij={key:0},Lj=["onClick"];var Vj=D({name:"DateTable",__name:"date-table",props:Aj,emits:Rj,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:l,rows:r,weekDays:s,getFormattedDate:u,handlePickDay:c,getSlotData:d}=Pj(a,n),f=ve("calendar-table"),h=ve("calendar-day"),g=({text:p,type:v})=>{const m=[v];if(v==="current"){const y=u(p,v);y.isSame(a.selectedDay,"day")&&m.push(h.is("selected")),y.isSame(l,"day")&&m.push(h.is("today"))}return m};return t({getFormattedDate:u}),(p,v)=>(_(),$("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(_(),$("thead",Ij,[E("tr",null,[(_(!0),$(He,null,Ct(i(s),m=>(_(),$("th",{key:m,scope:"col"},_e(m),1))),128))])])),E("tbody",null,[(_(!0),$(He,null,Ct(i(r),(m,y)=>(_(),$("tr",{key:y,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:y===0&&e.hideHeader})},[(_(!0),$(He,null,Ct(m,(b,w)=>(_(),$("td",{key:w,class:R(g(b)),onClick:C=>i(c)(b)},[E("div",{class:R(i(h).b())},[oe(p.$slots,"date-cell",{data:i(d)(b)},()=>[E("span",null,_e(b.text),1)])],2)],10,Lj))),128))],2))),128))])],2))}}),vg=Vj;const Bj=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},zj=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,l=o.endOf("month"),r=t.startOf("month"),s=l.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),l],[s.startOf("week"),t]]},Dj=(e,t,n)=>{const{lang:a}=xt(),o=V(),l=lt().locale(a.value),r=x({get(){return e.modelValue?u.value:o.value},set(y){if(!y)return;o.value=y;const b=y.toDate();t(Sn,b),t(at,b)}}),s=x(()=>{if(!e.range||!Ve(e.range)||e.range.length!==2||e.range.some(w=>!$s(w)))return[];const[y,b]=e.range.map(w=>lt(w).locale(a.value));return y.isAfter(b)?(ft(n,"end time should be greater than start time"),[]):y.isSame(b,"month")?g(y,b):y.add(1,"month").month()!==b.month()?(ft(n,"start time and end time interval must not exceed two months"),[]):g(y,b)}),u=x(()=>e.modelValue?lt(e.modelValue).locale(a.value):r.value||(s.value.length?s.value[0][0]:l)),c=x(()=>u.value.subtract(1,"month").date(1)),d=x(()=>u.value.add(1,"month").date(1)),f=x(()=>u.value.subtract(1,"year").date(1)),h=x(()=>u.value.add(1,"year").date(1)),g=(y,b)=>{const w=y.startOf("week"),C=b.endOf("week"),S=w.get("month"),k=C.get("month");return S===k?[[w,C]]:(S+1)%12===k?Bj(w,C):S+2===k||(S+1)%11===k?zj(w,C):(ft(n,"start time and end time interval must not exceed two months"),[])},p=y=>{r.value=y},v=y=>{const b={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:l}[y];b.isSame(u.value,"day")||p(b)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:r,pickDay:p,selectDate:v,validatedRange:s,handleDateChange:y=>{y==="today"?v("today"):p(y)}}},Hj=Ce({date:{type:J(Object),required:!0},formatter:{type:J(Function)}}),Fj={"date-change":e=>Mt(e)||Ue(e)};var Kj=D({name:"SelectController",__name:"select-controller",props:Hj,emits:Fj,setup(e,{emit:t}){const n=e,a=t,o=ve("calendar-select"),{t:l,lang:r}=xt(),s=Array.from({length:12},(p,v)=>{const m=v+1;return{value:m,label:ct(n.formatter)?n.formatter(m,"month"):m}}),u=x(()=>n.date.year()),c=x(()=>n.date.month()+1),d=x(()=>{const p=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const y=ct(n.formatter)?n.formatter(m,"year"):m;p.push({value:m,label:y})}}return p}),f=p=>{a("date-change",lt(new Date(p,c.value-1,1)).locale(r.value))},h=p=>{a("date-change",lt(new Date(u.value,p-1,1)).locale(r.value))},g=()=>{a("date-change","today")};return(p,v)=>(_(),$(He,null,[Q(i(Jl),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),Q(i(Jl),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(s),onChange:h},null,8,["model-value","class","options"]),Q(i(Ln),{size:"small",onClick:g},{default:ae(()=>[_t(_e(i(l)("el.datepicker.today")),1)]),_:1})],64))}}),Wj=Kj;const mg="ElCalendar";var jj=D({name:mg,__name:"calendar",props:NW,emits:PW,setup(e,{expose:t,emit:n}){const a=ve("calendar"),{calculateValidatedDateRange:o,date:l,pickDay:r,realSelectedDay:s,selectDate:u,validatedRange:c,handleDateChange:d}=Dj(e,n,mg),{t:f}=xt(),h=x(()=>{const g=`el.datepicker.month${l.value.format("M")}`;return`${l.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:s,pickDay:r,selectDate:u,calculateValidatedDateRange:o}),(g,p)=>(_(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:h.value},()=>[E("div",{class:R(i(a).e("title"))},_e(h.value),3),i(c).length===0&&e.controllerType==="button"?(_(),$("div",{key:0,class:R(i(a).e("button-group"))},[Q(i(gb),null,{default:ae(()=>[Q(i(Ln),{size:"small",onClick:p[0]||(p[0]=v=>i(u)("prev-month"))},{default:ae(()=>[_t(_e(i(f)("el.datepicker.prevMonth")),1)]),_:1}),Q(i(Ln),{size:"small",onClick:p[1]||(p[1]=v=>i(u)("today"))},{default:ae(()=>[_t(_e(i(f)("el.datepicker.today")),1)]),_:1}),Q(i(Ln),{size:"small",onClick:p[2]||(p[2]=v=>i(u)("next-month"))},{default:ae(()=>[_t(_e(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(_(),$("div",{key:1,class:R(i(a).e("select-controller"))},[Q(Wj,{date:i(l),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(_(),$("div",{key:0,class:R(i(a).e("body"))},[Q(vg,{date:i(l),"selected-day":i(s),onPick:i(r)},ga({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(v=>[oe(g.$slots,"date-cell",il(ul(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),$("div",{key:1,class:R(i(a).e("body"))},[(_(!0),$(He,null,Ct(i(c),(v,m)=>(_(),ie(vg,{key:m,date:v[0],"selected-day":i(s),range:v,"hide-header":m!==0,onPick:i(r)},ga({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(y=>[oe(g.$slots,"date-cell",pt({ref_for:!0},y))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),qj=jj;const Uj=rt(qj),Yj=Ce({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:J([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var Gj=D({name:"ElCard",__name:"card",props:Yj,setup(e){const t=Tl("card"),n=ve("card");return(a,o)=>{var l;return _(),$("div",{class:R([i(n).b(),i(n).is(`${e.shadow||((l=i(t))==null?void 0:l.shadow)||"always"}-shadow`)])},[a.$slots.header||e.header?(_(),$("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[_t(_e(e.header),1)])],2)):re("v-if",!0),E("div",{class:R([i(n).e("body"),e.bodyClass]),style:We(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(_(),$("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[_t(_e(e.footer),1)])],2)):re("v-if",!0)],2)}}}),Xj=Gj;const Jj=rt(Xj),Zj=Ce({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Qj={change:(e,t)=>[e,t].every(De)},Ib=Symbol("carouselContextKey"),su="ElCarouselItem",eq=Ce({name:{type:String,default:""},label:{type:[String,Number],default:""}}),gg=300,tq=(e,t,n)=>{const{children:a,addChild:o,removeChild:l,ChildrenSorter:r}=mf(ht(),su),s=yn(),u=V(-1),c=V(null),d=V(!1),f=V(),h=V(0),g=V(!0),p=x(()=>e.arrow!=="never"&&!i(y)),v=x(()=>a.value.some(te=>te.props.label.toString().length>0)),m=x(()=>e.type==="card"),y=x(()=>e.direction==="vertical"),b=x(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=Dl(te=>{A(te)},gg,{trailing:!0}),C=Dl(te=>{N(te)},gg),S=te=>g.value?u.value<=1?te<=1:te>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>M(),e.interval))}const M=()=>{u.valuese.props.name===te);de.length>0&&(te=a.value.indexOf(de[0]))}if(te=Number(te),Number.isNaN(te)||te!==Math.floor(te)){ft(n,"index must be integer.");return}const ue=a.value.length,ne=u.value;te<0?u.value=e.loop?ue-1:0:te>=ue?u.value=e.loop?0:ue-1:u.value=te,ne===u.value&&O(ne),W()}function O(te){a.value.forEach((ue,ne)=>{ue.translateItem(ne,u.value,te)})}function I(te,ue){var ge,me,$e,Re;const ne=i(a),de=ne.length;if(de===0||!te.states.inStage)return!1;const se=ue+1,Y=ue-1,X=de-1,H=ne[X].states.active,Z=ne[0].states.active,le=(me=(ge=ne[se])==null?void 0:ge.states)==null?void 0:me.active,ce=(Re=($e=ne[Y])==null?void 0:$e.states)==null?void 0:Re.active;return ue===X&&Z||le?"left":ue===0&&H||ce?"right":!1}function L(){d.value=!0,e.pauseOnHover&&k()}function z(){d.value=!1,T()}function q(te){i(y)||a.value.forEach((ue,ne)=>{te===I(ue,ne)&&(ue.states.hover=!0)})}function U(){i(y)||a.value.forEach(te=>{te.states.hover=!1})}function F(te){u.value=te}function N(te){e.trigger==="hover"&&te!==u.value&&(u.value=te)}function P(){A(u.value-1)}function B(){A(u.value+1)}function W(){k(),(!e.pauseOnHover||!d.value)&&T()}function K(te){e.height==="auto"&&(h.value=te)}function j(){var ne;const te=(ne=s.default)==null?void 0:ne.call(s);if(!te)return null;const ue=Ra(te).filter(de=>Wt(de)&&de.type.name===su);return(ue==null?void 0:ue.length)===2&&e.loop&&!m.value?(g.value=!0,ue):(g.value=!1,null)}fe(()=>u.value,(te,ue)=>{O(ue),g.value&&(te=te%2,ue=ue%2),ue>-1&&t(yt,te,ue)});const G=x({get:()=>g.value?u.value%2:u.value,set:te=>u.value=te});fe(()=>e.autoplay,te=>{te?T():k()}),fe(()=>e.loop,()=>{A(u.value)}),fe(()=>e.interval,()=>{W()});const ee=qt();return mt(()=>{fe(()=>a.value,()=>{a.value.length>0&&A(e.initialIndex)},{immediate:!0}),ee.value=en(f.value,()=>{O()}),T()}),Lt(()=>{k(),f.value&&ee.value&&ee.value.stop()}),bt(Ib,{root:f,isCardType:m,isVertical:y,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:l,setActiveItem:A,setContainerHeight:K}),{root:f,activeIndex:u,exposeActiveIndex:G,arrowDisplay:p,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:y,containerStyle:b,isItemsTwoLength:g,handleButtonEnter:q,handleButtonLeave:U,handleIndicatorClick:F,handleMouseEnter:L,handleMouseLeave:z,setActiveItem:A,prev:P,next:B,PlaceholderItem:j,isTwoLengthShow:S,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:C}},nq=["aria-label"],aq=["aria-label"],oq=["onMouseenter","onClick"],lq=["aria-label"],rq={key:0},sq={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},yg="ElCarousel";var iq=D({name:yg,__name:"carousel",props:Zj,emits:Qj,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:l,exposeActiveIndex:r,arrowDisplay:s,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:h,containerStyle:g,handleButtonEnter:p,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:w,prev:C,next:S,PlaceholderItem:k,isTwoLengthShow:T,ItemsSorter:M,throttledArrowClick:A,throttledIndicatorHover:O}=tq(a,n,yg),I=ve("carousel"),{t:L}=xt(),z=x(()=>{const N=[I.b(),I.m(a.direction)];return i(d)&&N.push(I.m("card")),N.push(I.is("vertical-outside",i(h)&&a.indicatorPosition==="outside")),N}),q=x(()=>{const N=[I.e("indicators"),I.em("indicators",a.direction)];return i(u)&&N.push(I.em("indicators","labels")),a.indicatorPosition==="outside"&&N.push(I.em("indicators","outside")),i(h)&&N.push(I.em("indicators","right")),N});function U(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.add(P)}function F(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.remove(P)}return t({activeIndex:r,setActiveItem:w,prev:C,next:S}),(N,P)=>(_(),$("div",{ref_key:"root",ref:o,class:R(z.value),onMouseenter:P[6]||(P[6]=Xe((...B)=>i(y)&&i(y)(...B),["stop"])),onMouseleave:P[7]||(P[7]=Xe((...B)=>i(b)&&i(b)(...B),["stop"]))},[i(s)?(_(),ie(qn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ae(()=>[dt(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","left")]),"aria-label":i(L)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=B=>i(p)("left")),onMouseleave:P[1]||(P[1]=(...B)=>i(v)&&i(v)(...B)),onClick:P[2]||(P[2]=Xe(B=>i(A)(i(l)-1),["stop"]))},[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})],42,nq),[[At,(e.arrow==="always"||i(c))&&(e.loop||i(l)>0)]])]),_:1})):re("v-if",!0),i(s)?(_(),ie(qn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ae(()=>[dt(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","right")]),"aria-label":i(L)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=B=>i(p)("right")),onMouseleave:P[4]||(P[4]=(...B)=>i(v)&&i(v)(...B)),onClick:P[5]||(P[5]=Xe(B=>i(A)(i(l)+1),["stop"]))},[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})],42,aq),[[At,(e.arrow==="always"||i(c))&&(e.loop||i(l)[e.indicatorPosition!=="none"?(_(),$("ul",{key:0,class:R(q.value)},[(_(!0),$(He,null,Ct(i(f),(B,W)=>dt((_(),$("li",{key:W,class:R([i(I).e("indicator"),i(I).em("indicator",e.direction),i(I).is("active",W===i(l))]),onMouseenter:K=>i(O)(W),onClick:Xe(K=>i(m)(W),["stop"])},[E("button",{class:R(i(I).e("button")),"aria-label":i(L)("el.carousel.indicator",{index:W+1})},[i(u)?(_(),$("span",rq,_e(B.props.label),1)):re("v-if",!0)],10,lq)],42,oq)),[[At,i(T)(W)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(_(),$("svg",sq,[...P[8]||(P[8]=[E("defs",null,[E("filter",{id:"elCarouselHorizontal"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),E("filter",{id:"elCarouselVertical"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),uq=iq;const cq=e=>{const t=Ne(Ib),n=ht();t||ft(su,"usage: "),n||ft(su,"compositional hook can only be invoked inside setups");const a=V(),o=V(!1),l=V(0),r=V(1),s=V(!1),u=V(!1),c=V(!1),d=V(!1),{isCardType:f,isVertical:h,cardScale:g}=t;function p(C,S,k){const T=k-1,M=S-1,A=S+1,O=k/2;return S===0&&C===T?-1:S===T&&C===0?k:C=O?k+1:C>A&&C-S>=O?-2:C}function v(C,S){var T,M;const k=i(h)?((T=t.root.value)==null?void 0:T.offsetHeight)||0:((M=t.root.value)==null?void 0:M.offsetWidth)||0;return c.value?k*((2-g)*(C-S)+1)/4:C{const T=i(f),M=t.items.value.length??NaN,A=C===S;!T&&!kt(k)&&(d.value=A||C===k),!A&&M>2&&t.loop&&(C=p(C,S,M));const O=i(h);s.value=A,T?(c.value=Math.round(Math.abs(C-S))<=1,l.value=v(C,S),r.value=i(s)?1:g):l.value=m(C,S,O),u.value=!0,A&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function b(){if(t&&i(f)){const C=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(C)}}const w={props:e,states:Nt({hover:o,translate:l,scale:r,active:s,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(w),Lt(()=>{t.removeItem(w)}),{carouselItemRef:a,active:s,animating:d,hover:o,inStage:c,isVertical:h,translate:l,isCardType:f,scale:r,ready:u,handleItemClick:b}};var dq=D({name:su,__name:"carousel-item",props:eq,setup(e){const t=e,n=ve("carousel"),{carouselItemRef:a,active:o,animating:l,hover:r,inStage:s,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:g}=cq(t),p=x(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",r.value),n.is("animating",l.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=x(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,y)=>dt((_(),$("div",{ref_key:"carouselItemRef",ref:a,class:R(p.value),style:We(v.value),onClick:y[0]||(y[0]=(...b)=>i(g)&&i(g)(...b))},[i(d)?dt((_(),$("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[At,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[At,i(h)]])}}),Lb=dq;const fq=rt(uq,{CarouselItem:Lb}),pq=ln(Lb),Vb=Ce({modelValue:{type:J([Number,String,Array,Object])},options:{type:J(Array),default:()=>[]},props:{type:J(Object),default:()=>({})}}),hq={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Yt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},vq=Ce({...Vb,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),bg=e=>!0,mq={[at]:bg,[yt]:bg,close:()=>!0,"expand-change":e=>e},gq=e=>x(()=>({...hq,...e.props})),Bb={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:On,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},zb={[at]:e=>Ue(e)||De(e)||Dt(e),change:e=>Ue(e)||De(e)||Dt(e)},oi=Symbol("checkboxGroupContextKey"),yq=Ce({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:On,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Db},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),bq={[at]:e=>Ve(e),change:e=>Ve(e)},Db={label:"label",value:"value",disabled:"disabled"},wq=({model:e,isChecked:t})=>{const n=Ne(oi,void 0),a=Ne(Xr,void 0),o=x(()=>{var s,u;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!kt(l)&&e.value.length>=l&&!t.value||!kt(r)&&e.value.length<=r&&t.value});return{isDisabled:dn(x(()=>{var l;return n===void 0?(a==null?void 0:a.disabled)??o.value:((l=n.disabled)==null?void 0:l.value)||o.value})),isLimitDisabled:o}},Cq=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:l})=>{const r=Ne(oi,void 0),{formItem:s}=Kn(),{emit:u}=ht();function c(p){return[!0,e.trueValue,e.trueLabel].includes(p)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(p,v){u(yt,c(p),v)}function f(p){if(n.value)return;const v=p.target;u(yt,c(v.checked),p)}async function h(p){n.value||!a.value&&!o.value&&l.value&&(p.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Ie(),d(t.value,p)))}const g=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(p=>ft(p)))}),{handleChange:f,onClickRoot:h}},_q=e=>{const t=V(!1),{emit:n,vnode:a}=ht(),o=Ne(oi,void 0),l=x(()=>kt(o)===!1),r=V(!1),s=x(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=x({get(){var c;return l.value?(c=o==null?void 0:o.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;l.value&&Ve(c)?(r.value=((d=o==null?void 0:o.max)==null?void 0:d.value)!==void 0&&c.length>(o==null?void 0:o.max.value)&&c.length>u.value.length,r.value===!1&&((f=o==null?void 0:o.changeEvent)==null||f.call(o,c))):(n(at,c),t.value=c)}});return{model:u,isGroup:l,isLimitExceeded:r}},Sq=(e,t,{model:n})=>{const a=Ne(oi,void 0),o=V(!1),l=x(()=>Sa(e.value)?e.label:e.value),r=x(()=>{const s=n.value;return Dt(s)?s:Ve(s)?Mt(l.value)?s.map(jt).some(u=>sn(u,l.value)):s.map(jt).includes(l.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:En(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:o,checkboxSize:En(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:x(()=>!!t.default||!Sa(l.value)),actualValue:l}},Hb=(e,t)=>{const{formItem:n}=Kn(),{model:a,isGroup:o,isLimitExceeded:l}=_q(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=Sq(e,t,{model:a}),{isDisabled:h}=wq({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:p}=za(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=Cq(e,{model:a,isLimitExceeded:l,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:p});return(()=>{function b(){Ve(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),Lo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>o.value&&Sa(e.value))),Lo({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.trueLabel)),Lo({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:p,isChecked:s,isDisabled:h,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},xq=["id","indeterminate","name","tabindex","disabled"];var kq=D({name:"ElCheckbox",__name:"checkbox",props:Bb,emits:zb,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:l,isFocused:r,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=Hb(t,yn()),g=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),p=ve("checkbox"),v=x(()=>[p.b(),p.m(s.value),p.is("disabled",l.value),p.is("bordered",t.border),p.is("checked",o.value)]),m=x(()=>[p.e("input"),p.is("disabled",l.value),p.is("checked",o.value),p.is("indeterminate",t.indeterminate),p.is("focus",r.value)]);return(y,b)=>(_(),ie(ut(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(h)},{default:ae(()=>[E("span",{class:R(m.value)},[dt(E("input",pt({id:i(n),"onUpdate:modelValue":b[0]||(b[0]=w=>Gt(c)?c.value=w:null),class:i(p).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(l)},g.value,{onChange:b[1]||(b[1]=(...w)=>i(f)&&i(f)(...w)),onFocus:b[2]||(b[2]=w=>r.value=!0),onBlur:b[3]||(b[3]=w=>r.value=!1),onClick:b[4]||(b[4]=Xe(()=>{},["stop"]))}),null,16,xq),[[S6,i(c)]]),E("span",{class:R(i(p).e("inner"))},null,2)],2),i(u)?(_(),$("span",{key:0,class:R(i(p).e("label"))},[oe(y.$slots,"default"),y.$slots.default?re("v-if",!0):(_(),$(He,{key:0},[_t(_e(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),Fb=kq;const Eq=["name","tabindex","disabled"];var Tq=D({name:"ElCheckboxButton",__name:"checkbox-button",props:Bb,emits:zb,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:l,model:r,actualValue:s,handleChange:u}=Hb(t,yn()),c=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:s.value}),d=Ne(oi,void 0),f=ve("checkbox"),h=x(()=>{var v,m;const p=((v=d==null?void 0:d.fill)==null?void 0:v.value)??"";return{backgroundColor:p,borderColor:p,color:((m=d==null?void 0:d.textColor)==null?void 0:m.value)??"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),g=x(()=>[f.b("button"),f.bm("button",l.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(p,v)=>(_(),$("label",{class:R(g.value)},[dt(E("input",pt({"onUpdate:modelValue":v[0]||(v[0]=m=>Gt(r)?r.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Xe(()=>{},["stop"]))}),null,16,Eq),[[S6,i(r)]]),p.$slots.default||e.label?(_(),$("span",{key:0,class:R(i(f).be("button","inner")),style:We(i(a)?h.value:void 0)},[oe(p.$slots,"default",{},()=>[_t(_e(e.label),1)])],6)):re("v-if",!0)],2))}}),Fh=Tq,Mq=D({name:"ElCheckboxGroup",__name:"checkbox-group",props:yq,emits:bq,setup(e,{emit:t}){const n=e,a=t,o=ve("checkbox"),l=dn(),{formItem:r}=Kn(),{inputId:s,isLabeledByFormItem:u}=za(n,{formItemContext:r}),c=async p=>{a(at,p),await Ie(),a(yt,p)},d=x({get(){return n.modelValue},set(p){c(p)}}),f=x(()=>({...Db,...n.props})),h=p=>{const{label:v,value:m,disabled:y}=f.value,b={label:p[v],value:p[m],disabled:p[y]};return{...Mu(p,[v,m,y]),...b}},g=x(()=>n.type==="button"?Fh:Fb);return bt(oi,{...vl(Bn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:l,modelValue:d,changeEvent:c}),fe(()=>n.modelValue,(p,v)=>{n.validateEvent&&!sn(p,v)&&(r==null||r.validate("change").catch(m=>ft(m)))}),(p,v)=>{var m;return _(),ie(ut(e.tag),{id:i(s),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?(m=i(r))==null?void 0:m.labelId:void 0},{default:ae(()=>[oe(p.$slots,"default",{},()=>[(_(!0),$(He,null,Ct(e.options,(y,b)=>(_(),ie(ut(g.value),pt({key:b},{ref_for:!0},h(y)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),Kb=Mq;const fo=rt(Fb,{CheckboxButton:Fh,CheckboxGroup:Kb}),Oq=ln(Fh),Kh=ln(Kb),Wb=Ce({modelValue:{type:[String,Number,Boolean],default:void 0},size:On,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),$q=Ce({...Wb,border:Boolean}),jb={[at]:e=>Ue(e)||De(e)||Dt(e),[yt]:e=>Ue(e)||De(e)||Dt(e)},qb=Symbol("radioGroupKey"),Aq=Ce({...Wb}),Ub={label:"label",value:"value",disabled:"disabled"},Rq=Ce({id:{type:String,default:void 0},size:On,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Ub},type:{type:String,values:["radio","button"],default:"radio"},...ia(["ariaLabel"])}),Nq=jb,Yb=(e,t)=>{const n=V(),a=Ne(qb,void 0),o=x(()=>!!a),l=x(()=>Sa(e.value)?e.label:e.value),r=x({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t(at,f),n.value.checked=e.modelValue===l.value}}),s=En(x(()=>a==null?void 0:a.size)),u=dn(x(()=>a==null?void 0:a.disabled)),c=V(!1),d=x(()=>u.value||o.value&&r.value!==l.value?-1:0);return Lo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},x(()=>o.value&&Sa(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:s,disabled:u,tabIndex:d,modelValue:r,actualValue:l}},Pq=["value","name","disabled","checked"];var Iq=D({name:"ElRadio",__name:"radio",props:$q,emits:jb,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),{radioRef:l,radioGroup:r,focus:s,size:u,disabled:c,modelValue:d,actualValue:f}=Yb(n,a);function h(){Ie(()=>a(yt,d.value))}return(g,p)=>{var v;return _(),$("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(s)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[E("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[dt(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=m=>Gt(d)?d.value=m:null),class:R(i(o).e("original")),value:i(f),name:e.name||((v=i(r))==null?void 0:v.name),disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:h,onClick:p[3]||(p[3]=Xe(()=>{},["stop"]))},null,42,Pq),[[x6,i(d)]]),E("span",{class:R(i(o).e("inner"))},null,2)],2),E("span",{class:R(i(o).e("label")),onKeydown:p[4]||(p[4]=Xe(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[_t(_e(e.label),1)])],34)],2)}}}),Gb=Iq;const Lq=["value","name","disabled"];var Vq=D({name:"ElRadioButton",__name:"radio-button",props:Aq,setup(e){const t=e,n=ve("radio"),{radioRef:a,focus:o,size:l,disabled:r,modelValue:s,radioGroup:u,actualValue:c}=Yb(t),d=x(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var g;return _(),$("label",{class:R([i(n).b("button"),i(n).is("active",i(s)===i(c)),i(n).is("disabled",i(r)),i(n).is("focus",i(o)),i(n).bm("button",i(l))])},[dt(E("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=p=>Gt(s)?s.value=p:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||((g=i(u))==null?void 0:g.name),disabled:i(r),onFocus:h[1]||(h[1]=p=>o.value=!0),onBlur:h[2]||(h[2]=p=>o.value=!1),onClick:h[3]||(h[3]=Xe(()=>{},["stop"]))},null,42,Lq),[[x6,i(s)]]),E("span",{class:R(i(n).be("button","inner")),style:We(i(s)===i(c)?d.value:{}),onKeydown:h[4]||(h[4]=Xe(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[_t(_e(e.label),1)])],38)],2)}}}),Wh=Vq;const Bq=["id","aria-label","aria-labelledby"];var zq=D({name:"ElRadioGroup",__name:"radio-group",props:Rq,emits:Nq,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),l=Un(),r=V(),{formItem:s}=Kn(),{inputId:u,isLabeledByFormItem:c}=za(n,{formItemContext:s}),d=v=>{a(at,v),Ie(()=>a(yt,v))};mt(()=>{const v=r.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(y=>y.checked)&&m&&(m.tabIndex=0)});const f=x(()=>n.name||l.value),h=x(()=>({...Ub,...n.props})),g=v=>{const{label:m,value:y,disabled:b}=h.value,w={label:v[m],value:v[y],disabled:v[b]};return{...Mu(v,[m,y,b]),...w}},p=x(()=>n.type==="button"?Wh:Gb);return bt(qb,Nt({...Bn(n),changeEvent:d,name:f})),fe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!sn(v,m)&&(s==null||s.validate("change").catch(y=>ft(y)))}),(v,m)=>(_(),$("div",{id:i(u),ref_key:"radioGroupRef",ref:r,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(s).labelId:void 0},[oe(v.$slots,"default",{},()=>[(_(!0),$(He,null,Ct(e.options,(y,b)=>(_(),ie(ut(p.value),pt({key:b},{ref_for:!0},g(y)),null,16))),128))])],10,Bq))}}),Xb=zq;const Jb=rt(Gb,{RadioButton:Wh,RadioGroup:Xb}),Dq=ln(Xb),Hq=ln(Wh),_f=Symbol();function Fq(e){return!!(Ve(e)?e.every(({type:t})=>t===wn):(e==null?void 0:e.type)===wn)}var Kq=D({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ve("cascader-node"),{renderLabelFn:n}=Ne(_f),{node:a}=e,{data:o,label:l}=a,r=()=>{const s=n==null?void 0:n({node:a,data:o});return Fq(s)?l:s??l};return()=>Q("span",{class:t.e("label")},[r()])}});const Wq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var jq=D({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=Ne(_f),l=ve("cascader-node"),r=x(()=>o.isHoverMenu),s=x(()=>o.config.multiple),u=x(()=>o.config.checkStrictly),c=x(()=>o.config.showPrefix),d=x(()=>{var A;return(A=o.checkedNodes[0])==null?void 0:A.uid}),f=x(()=>n.node.isDisabled),h=x(()=>n.node.isLeaf),g=x(()=>u.value&&!h.value||!f.value),p=x(()=>m(o.expandingNode)),v=x(()=>u.value&&o.checkedNodes.some(m)),m=A=>{var L;const{level:O,uid:I}=n.node;return((L=A==null?void 0:A.pathNodes[O-1])==null?void 0:L.uid)===I},y=()=>{p.value||o.expandNode(n.node)},b=A=>{const{node:O}=n;A!==O.checked&&o.handleCheckChange(O,A)},w=()=>{o.lazyLoad(n.node,()=>{h.value||y()})},C=A=>{r.value&&(S(),!h.value&&a("expand",A))},S=()=>{const{node:A}=n;!g.value||A.loading||(A.loaded?y():w())},k=()=>{h.value&&!f.value&&!u.value&&!s.value?M(!0):(o.config.checkOnClickNode&&(s.value||u.value)||h.value&&o.config.checkOnClickLeaf)&&!f.value?T(!n.node.checked):r.value||S()},T=A=>{u.value?(b(A),n.node.loaded&&y()):M(A)},M=A=>{n.node.loaded?(b(A),!u.value&&y()):w()};return(A,O)=>(_(),$("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":p.value,tabindex:g.value?-1:void 0,class:R([i(l).b(),i(l).is("selectable",u.value),i(l).is("active",e.node.checked),i(l).is("disabled",!g.value),p.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:C,onFocus:C,onClick:k},[re(" prefix "),s.value&&c.value?(_(),ie(i(fo),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:O[0]||(O[0]=Xe(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(_(),ie(i(Jb),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":T,onClick:O[1]||(O[1]=Xe(()=>{},["stop"]))},{default:ae(()=>[re(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),O[2]||(O[2]=E("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(_(),ie(i(ze),{key:2,class:R(i(l).e("prefix"))},{default:ae(()=>[Q(i(ni))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(Kq),{node:e.node},null,8,["node"]),re(" postfix "),h.value?re("v-if",!0):(_(),$(He,{key:3},[e.node.loading?(_(),ie(i(ze),{key:0,class:R([i(l).is("loading"),i(l).e("postfix")])},{default:ae(()=>[Q(i(io))]),_:1},8,["class"])):(_(),ie(i(ze),{key:1,class:R(["arrow-right",i(l).e("postfix")])},{default:ae(()=>[Q(i(Jn))]),_:1},8,["class"]))],64))],42,Wq))}}),qq=jq,Uq=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=ht(),a=ve("cascader-menu"),{t:o}=xt(),l=Un();let r,s;const u=Ne(_f),c=V(),d=x(()=>!t.nodes.length),f=x(()=>!u.initialLoaded),h=x(()=>`${l.value}-${t.index}`),g=y=>{r=y.target},p=y=>{var b;if(!(!u.isHoverMenu||!r||!c.value))if(r.contains(y.target)){v();const w=n.vnode.el,{left:C}=w.getBoundingClientRect(),{offsetWidth:S,offsetHeight:k}=w,T=y.clientX-C,M=r.offsetTop,A=M+r.offsetHeight,O=((b=w.querySelector(`.${a.e("wrap")}`))==null?void 0:b.scrollTop)||0;c.value.innerHTML=` + + + `}else s||(s=window.setTimeout(m,u.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=void 0)},m=()=>{c.value&&(c.value.innerHTML="",v())};return(y,b)=>(_(),ie(i(uo),{key:h.value,tag:"ul",role:"menu",class:R(i(a).b()),"wrap-class":i(a).e("wrap"),"view-class":[i(a).e("list"),i(a).is("empty",d.value)],onMousemove:p,onMouseleave:m},{default:ae(()=>{var w;return[(_(!0),$(He,null,Ct(e.nodes,C=>(_(),ie(qq,{key:C.uid,node:C,"menu-id":h.value,onExpand:g},null,8,["node","menu-id"]))),128)),f.value?(_(),$("div",{key:0,class:R(i(a).e("empty-text"))},[Q(i(ze),{size:"14",class:R(i(a).is("loading"))},{default:ae(()=>[Q(i(io))]),_:1},8,["class"]),_t(" "+_e(i(o)("el.cascader.loading")),1)],2)):d.value?(_(),$("div",{key:1,class:R(i(a).e("empty-text"))},[oe(y.$slots,"empty",{},()=>[_t(_e(i(o)("el.cascader.noData")),1)])],2)):(w=i(u))!=null&&w.isHoverMenu?(_(),$(He,{key:2},[re(" eslint-disable vue/html-self-closing "),(_(),$("svg",{ref_key:"hoverZone",ref:c,class:R(i(a).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),Yq=Uq;let Gq=0;const Xq=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var P2=class I2{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=Gq++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:r,children:s}=n,u=t[s],c=Xq(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new I2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ha(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(ct(o)?o(t,this):!!t[o])||!l&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:l,leaf:r}=n,s=ct(r)?r(t,this):t[r];return kt(s)?l&&!o?!1:!(Ve(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new I2(t,this.config,this);return Ve(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,l)=>o+(l.checked?1:l.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const L2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(L2(a.children,t))),n),[]);var wg=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new P2(a,this.config));this.nodes=n,this.allNodes=L2(n,!1),this.leafNodes=L2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new P2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return Sa(e)?null:this.getFlattedNodes(t).find(n=>sn(n.value,e)||sn(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>sn(e.value,t)&&e.level===n)||null}};const Cg=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Jq=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():x8(e)&&e.click()},Zq=(e,t)=>{const n=t.slice(0),a=n.map(l=>l.uid),o=e.reduce((l,r)=>{const s=a.indexOf(r.uid);return s>-1&&(l.push(r),n.splice(s,1),a.splice(s,1)),l},[]);return o.push(...n),o};var Qq=D({name:"ElCascaderPanel",__name:"index",props:vq,emits:mq,setup(e,{expose:t,emit:n}){const a=e,o=n;let l=!1;const r=ve("cascader"),s=gq(a),u=yn();let c;const d=V(!0),f=V(!1),h=V([]),g=V(),p=V([]),v=V(),m=V([]),y=x(()=>s.value.expandTrigger==="hover"),b=x(()=>a.renderLabel||u.default),w=()=>{const{options:N}=a,P=s.value;l=!1,c=new wg(N,P),p.value=[c.getNodes()],P.lazy&&ha(a.options)?(d.value=!1,C(void 0,B=>{B&&(c=new wg(B,P),p.value=[c.getNodes()]),d.value=!0,L(!1,!0)})):L(!1,!0)},C=(N,P)=>{const B=s.value;N=N||new P2({},B,void 0,!0),N.loading=!0;const W=j=>{const G=N,ee=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],j&&(c==null||c.appendNodes(j,ee)),j&&(P==null||P(j)),N.level===0&&(f.value=!0)},K=()=>{N.loading=!1,N.loaded=!1,N.level===0&&(d.value=!0)};B.lazyLoad(N,W,K)},S=(N,P)=>{var j;const{level:B}=N,W=p.value.slice(0,B);let K;N.isLeaf?K=N.pathNodes[B-2]:(K=N,W.push(N.children)),((j=v.value)==null?void 0:j.uid)!==(K==null?void 0:K.uid)&&(v.value=N,p.value=W,!P&&o("expand-change",(N==null?void 0:N.pathValues)||[]))},k=(N,P,B=!0)=>{const{checkStrictly:W,multiple:K}=s.value,j=m.value[0];l=!0,!K&&(j==null||j.doCheck(!1)),N.doCheck(P),I(),B&&!K&&!W&&o("close"),!B&&!K&&T(N)},T=N=>{N&&(N=N.parent,T(N),N&&S(N))},M=N=>c==null?void 0:c.getFlattedNodes(N),A=N=>{var P;return(P=M(N))==null?void 0:P.filter(({checked:B})=>B!==!1)},O=()=>{m.value.forEach(N=>N.doCheck(!1)),I(),p.value=p.value.slice(0,1),v.value=void 0,o("expand-change",[])},I=()=>{const{checkStrictly:N,multiple:P}=s.value,B=m.value,W=Zq(B,A(!N)),K=W.map(j=>j.valueByOption);m.value=W,g.value=P?K:K[0]??null},L=(N=!1,P=!1)=>{const{modelValue:B}=a,{lazy:W,multiple:K,checkStrictly:j}=s.value,G=!j;if(!(!d.value||l||!P&&sn(B,g.value)))if(W&&!N){const ee=zm(oM(la(B))).map(te=>c==null?void 0:c.getNodeByValue(te)).filter(te=>!!te&&!te.loaded&&!te.loading);ee.length?ee.forEach(te=>{C(te,()=>L(!1,P))}):L(!0,P)}else z(zm((K?la(B):[B]).map(ee=>c==null?void 0:c.getNodeByValue(ee,G))),P),g.value=Ro(B??void 0)},z=(N,P=!0)=>{const{checkStrictly:B}=s.value,W=m.value,K=N.filter(ee=>!!ee&&(B||ee.isLeaf)),j=c==null?void 0:c.getSameNode(v.value),G=P&&j||K[0];G?G.pathNodes.forEach(ee=>S(ee,!0)):v.value=void 0,W.forEach(ee=>ee.doCheck(!1)),Nt(K).forEach(ee=>ee.doCheck(!0)),m.value=K,Ie(q)},q=()=>{Rt&&h.value.forEach(N=>{const P=N==null?void 0:N.$el;if(P){const B=P.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let W=P.querySelector(`.${r.b("node")}.in-active-path`);if(!W){const K=P.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);W=K[K.length-1]}sh(B,W)}})},U=N=>{var W,K;const P=N.target,B=Kt(N);switch(B){case we.up:case we.down:N.preventDefault(),Ac(k8(P,B===we.up?-1:1,`.${r.b("node")}[tabindex="-1"]`));break;case we.left:{N.preventDefault();const j=(W=h.value[Cg(P)-1])==null?void 0:W.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Ac(j);break}case we.right:{N.preventDefault();const j=(K=h.value[Cg(P)+1])==null?void 0:K.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Ac(j);break}case we.enter:case we.numpadEnter:Jq(P);break}};bt(_f,Nt({config:s,expandingNode:v,checkedNodes:m,isHoverMenu:y,initialLoaded:d,renderLabelFn:b,lazyLoad:C,expandNode:S,handleCheckChange:k})),fe(s,(N,P)=>{sn(N,P)||w()},{immediate:!0}),fe(()=>a.options,w,{deep:!0}),fe(()=>a.modelValue,()=>{l=!1,L()},{deep:!0}),fe(()=>g.value,N=>{sn(N,a.modelValue)||(o(at,N),o(yt,N))});const F=()=>{f.value||w()};return Op(()=>h.value=[]),mt(()=>!ha(a.modelValue)&&L()),t({menuList:h,menus:p,checkedNodes:m,handleKeyDown:U,handleCheckChange:k,getFlattedNodes:M,getCheckedNodes:A,clearCheckedNodes:O,calculateCheckedValue:I,scrollToExpandingNode:q,loadLazyRootNodes:F}),(N,P)=>(_(),$("div",{class:R([i(r).b("panel"),i(r).is("bordered",e.border)]),onKeydown:U},[(_(!0),$(He,null,Ct(p.value,(B,W)=>(_(),ie(Yq,{key:W,ref_for:!0,ref:K=>h.value[W]=K,index:W,nodes:[...B]},{empty:ae(()=>[oe(N.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}}),eU=Qq;const Zb=rt(eU),tU=Ce({...Vb,size:On,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ft,default:wo},filterable:Boolean,filterMethod:{type:J(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:J(Function),default:()=>!0},placement:{type:J(String),values:Uo,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,teleported:Ht.teleported,effect:{type:J(String),default:"light"},tagType:{...wl.type,default:"info"},tagEffect:{...wl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Gr}),_g=e=>!0,nU={[at]:_g,[yt]:_g,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Dt(e),expandChange:e=>!!e,removeTag:e=>!!e},aU=["placeholder"],oU=["onClick"];var lU=D({name:"ElCascader",__name:"cascader",props:tU,emits:nU,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Oe})=>{const{modifiersData:Fe,placement:Je}=Oe;["right","left","bottom","top"].includes(Je)||Fe.arrow&&(Fe.arrow.x=35)},requires:["arrow"]}]},o=e,l=n,r=_l(),s=yn();let u=0,c=0;const d=ve("cascader"),f=ve("input"),h={small:7,default:11,large:15},{t:g}=xt(),{formItem:p}=Kn(),v=dn(),{valueOnClear:m}=zu(o),{isComposing:y,handleComposition:b}=Bu({afterComposition(Oe){var Je;const Fe=(Je=Oe.target)==null?void 0:Je.value;Ee(Fe)}}),w=V(),C=V(),S=V(),k=V(),T=V(),M=V(),A=V(!1),O=V(!1),I=V(!1),L=V(""),z=V(""),q=V([]),U=V([]),F=x(()=>o.props.multiple?o.collapseTags?q.value.slice(0,o.maxCollapseTags):q.value:[]),N=x(()=>o.props.multiple?o.collapseTags?q.value.slice(o.maxCollapseTags):[]:[]),P=x(()=>r.style),B=x(()=>o.placeholder??g("el.cascader.placeholder")),W=x(()=>z.value||q.value.length>0||y.value?"":B.value),K=En(),j=x(()=>K.value==="small"?"small":"default"),G=x(()=>!!o.props.multiple),ee=x(()=>!o.filterable||G.value),te=x(()=>G.value?z.value:L.value),ue=x(()=>{var Oe;return((Oe=T.value)==null?void 0:Oe.checkedNodes)||[]}),{wrapperRef:ne,isFocused:de,handleBlur:se}=El(S,{disabled:v,beforeBlur(Oe){var Fe,Je;return((Fe=w.value)==null?void 0:Fe.isFocusInsideContent(Oe))||((Je=C.value)==null?void 0:Je.isFocusInsideContent(Oe))},afterBlur(){var Oe;o.validateEvent&&((Oe=p==null?void 0:p.validate)==null||Oe.call(p,"blur").catch(Fe=>ft(Fe)))}}),Y=x(()=>!o.clearable||v.value||I.value||!O.value&&!de.value?!1:!!ue.value.length),X=x(()=>{const{showAllLevels:Oe,separator:Fe}=o,Je=ue.value;return Je.length?G.value?"":Je[0].calcText(Oe,Fe):""}),H=x(()=>(p==null?void 0:p.validateState)||""),Z=x({get(){return Ro(o.modelValue)},set(Oe){const Fe=Oe??m.value;l(at,Fe),l(yt,Fe),o.validateEvent&&(p==null||p.validate("change").catch(Je=>ft(Je)))}}),le=x(()=>[d.b(),d.m(K.value),d.is("disabled",v.value),r.class]),ce=x(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",A.value)]),ge=x(()=>d.is("focus",de.value)),me=x(()=>{var Oe,Fe;return(Fe=(Oe=w.value)==null?void 0:Oe.popperRef)==null?void 0:Fe.contentRef}),$e=Oe=>{de.value&&se(new FocusEvent("blur",Oe)),Re(!1)},Re=Oe=>{var Fe,Je;v.value||(Oe=Oe??!A.value,Oe!==A.value&&(A.value=Oe,(Je=(Fe=S.value)==null?void 0:Fe.input)==null||Je.setAttribute("aria-expanded",`${Oe}`),Oe?(Ae(),T.value&&Ie(T.value.scrollToExpandingNode)):o.filterable&&et(),l("visibleChange",Oe)))},Ae=()=>{Ie(()=>{var Oe;(Oe=w.value)==null||Oe.updatePopper()})},ye=()=>{I.value=!1},ke=Oe=>{const{showAllLevels:Fe,separator:Je}=o;return{node:Oe,key:Oe.uid,text:Oe.calcText(Fe,Je),hitState:!1,closable:!v.value&&!Oe.isDisabled}},be=Oe=>{var Je;const Fe=Oe.node;Fe.doCheck(!1),(Je=T.value)==null||Je.calculateCheckedValue(),l("removeTag",Fe.valueByOption)},Pe=()=>{switch(o.showCheckedStrategy){case"child":return ue.value;case"parent":{const Oe=Te(!1),Fe=Oe.map(Je=>Je.value);return Oe.filter(Je=>!Je.parent||!Fe.includes(Je.parent.value))}default:return[]}},Be=()=>{if(!G.value)return;const Oe=Pe(),Fe=[];Oe.forEach(Je=>Fe.push(ke(Je))),q.value=Fe},Qe=()=>{var zt,Zt;const{filterMethod:Oe,showAllLevels:Fe,separator:Je}=o,hn=(Zt=(zt=T.value)==null?void 0:zt.getFlattedNodes(!o.props.checkStrictly))==null?void 0:Zt.filter(je=>je.isDisabled?!1:(je.calcText(Fe,Je),Oe(je,te.value)));G.value&&q.value.forEach(je=>{je.hitState=!1}),I.value=!0,U.value=hn,Ae()},tt=()=>{var Fe;let Oe;I.value&&M.value?Oe=M.value.$el.querySelector(`.${d.e("suggestion-item")}`):Oe=(Fe=T.value)==null?void 0:Fe.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!I.value&&Oe.getAttribute("aria-haspopup")==="true"&&Oe.click())},nt=()=>{var hn,zt,Zt;const Oe=(hn=S.value)==null?void 0:hn.input,Fe=k.value,Je=(zt=M.value)==null?void 0:zt.$el;if(!(!Rt||!Oe)){if(Je){const je=Je.querySelector(`.${d.e("suggestion-list")}`);je.style.minWidth=`${Oe.offsetWidth}px`}if(Fe){const{offsetHeight:je}=Fe,Ge=q.value.length>0?`${Math.max(je,u)-2}px`:`${u}px`;if(Oe.style.height=Ge,s.prefix){const vt=(Zt=S.value)==null?void 0:Zt.$el.querySelector(`.${f.e("prefix")}`);let Nn=0;vt&&(Nn=vt.offsetWidth,Nn>0&&(Nn+=h[K.value||"default"])),Fe.style.left=`${Nn}px`}else Fe.style.left="0";Ae()}}},Te=Oe=>{var Fe;return(Fe=T.value)==null?void 0:Fe.getCheckedNodes(Oe)},Ye=Oe=>{Ae(),l("expandChange",Oe)},st=Oe=>{if(!y.value)switch(Kt(Oe)){case we.enter:case we.numpadEnter:Re();break;case we.down:Re(!0),Ie(tt),Oe.preventDefault();break;case we.esc:A.value===!0&&(Oe.preventDefault(),Oe.stopPropagation(),Re(!1));break;case we.tab:Re(!1);break}},Ke=()=>{var Oe;(Oe=T.value)==null||Oe.clearCheckedNodes(),!A.value&&o.filterable&&et(),Re(!1),l("clear")},et=()=>{const{value:Oe}=X;L.value=Oe,z.value=Oe},gt=Oe=>{var Je,hn;const{checked:Fe}=Oe;G.value?(Je=T.value)==null||Je.handleCheckChange(Oe,!Fe,!1):(!Fe&&((hn=T.value)==null||hn.handleCheckChange(Oe,!0,!1)),Re(!1))},he=Oe=>{const Fe=Oe.target,Je=Kt(Oe);switch(Je){case we.up:case we.down:Oe.preventDefault(),Ac(k8(Fe,Je===we.up?-1:1,`.${d.e("suggestion-item")}[tabindex="-1"]`));break;case we.enter:case we.numpadEnter:Fe.click();break}},Le=()=>{const Oe=q.value[q.value.length-1];c=z.value?0:c+1,!(!Oe||!c||o.collapseTags&&q.value.length>1)&&(Oe.hitState?be(Oe):Oe.hitState=!0)},pe=_u(()=>{const{value:Oe}=te;if(!Oe)return;const Fe=o.beforeFilter(Oe);As(Fe)?Fe.then(Qe).catch(()=>{}):Fe!==!1?Qe():ye()},x(()=>o.debounce)),Ee=(Oe,Fe)=>{if(!A.value&&Re(!0),!(Fe!=null&&Fe.isComposing))if(Oe)pe();else{const Je=o.beforeFilter("");As(Je)&&Je.catch(()=>{}),ye()}},it=Oe=>Number.parseFloat(FS(f.cssVarName("input-height"),Oe).value)-2,Pt=()=>{var Oe;(Oe=S.value)==null||Oe.focus()},Xt=()=>{var Oe;(Oe=S.value)==null||Oe.blur()};return fe(I,Ae),fe([ue,v,()=>o.collapseTags,()=>o.maxCollapseTags],Be),fe(q,()=>{Ie(()=>nt())}),fe(K,async()=>{await Ie();const Oe=S.value.input;u=it(Oe)||u,nt()}),fe(X,et,{immediate:!0}),fe(()=>A.value,Oe=>{var Fe;Oe&&o.props.lazy&&o.props.lazyLoad&&((Fe=T.value)==null||Fe.loadLazyRootNodes())}),mt(()=>{const Oe=S.value.input,Fe=it(Oe);u=Oe.offsetHeight||Fe,en(Oe,nt)}),t({getCheckedNodes:Te,cascaderPanelRef:T,togglePopperVisible:Re,contentRef:me,presentText:X,focus:Pt,blur:Xt}),(Oe,Fe)=>(_(),ie(i(Fn),{ref_key:"tooltipRef",ref:w,visible:A.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:ye},{default:ae(()=>[dt((_(),$("div",{ref_key:"wrapperRef",ref:ne,class:R(le.value),style:We(P.value),onClick:Fe[8]||(Fe[8]=()=>Re(ee.value?void 0:!0)),onKeydown:st,onMouseenter:Fe[9]||(Fe[9]=Je=>O.value=!0),onMouseleave:Fe[10]||(Fe[10]=Je=>O.value=!1)},[Q(i(jn),{ref_key:"inputRef",ref:S,modelValue:L.value,"onUpdate:modelValue":Fe[1]||(Fe[1]=Je=>L.value=Je),placeholder:W.value,readonly:ee.value,disabled:i(v),"validate-event":!1,size:i(K),class:R(ge.value),tabindex:G.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(b),onCompositionupdate:i(b),onCompositionend:i(b),onInput:Ee},ga({suffix:ae(()=>[Y.value?(_(),ie(i(ze),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Xe(Ke,["stop"])},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class"])):(_(),ie(i(ze),{key:"arrow-down",class:R(ce.value),onClick:Fe[0]||(Fe[0]=Xe(Je=>Re(),["stop"]))},{default:ae(()=>[Q(i(bo))]),_:1},8,["class"]))]),_:2},[Oe.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Oe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),G.value?(_(),$("div",{key:0,ref_key:"tagWrapper",ref:k,class:R([i(d).e("tags"),i(d).is("validate",!!H.value)])},[oe(Oe.$slots,"tag",{data:q.value,deleteTag:be},()=>[(_(!0),$(He,null,Ct(F.value,Je=>(_(),ie(i(dl),{key:Je.key,type:e.tagType,size:j.value,effect:e.tagEffect,hit:Je.hitState,closable:Je.closable,"disable-transitions":"",onClose:hn=>be(Je)},{default:ae(()=>[E("span",null,_e(Je.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&q.value.length>e.maxCollapseTags?(_(),ie(i(Fn),{key:0,ref_key:"tagTooltipRef",ref:C,disabled:A.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ae(()=>[Q(i(dl),{closable:!1,size:j.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[E("span",{class:R(i(d).e("tags-text"))}," + "+_e(q.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ae(()=>[Q(i(uo),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ae(()=>[E("div",{class:R(i(d).e("collapse-tags"))},[(_(!0),$(He,null,Ct(N.value,(Je,hn)=>(_(),$("div",{key:hn,class:R(i(d).e("collapse-tag"))},[(_(),ie(i(dl),{key:Je.key,class:"in-tooltip",type:e.tagType,size:j.value,effect:e.tagEffect,hit:Je.hitState,closable:Je.closable,"disable-transitions":"",onClose:zt=>be(Je)},{default:ae(()=>[E("span",null,_e(Je.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?dt((_(),$("input",{key:1,"onUpdate:modelValue":Fe[2]||(Fe[2]=Je=>z.value=Je),type:"text",class:R(i(d).e("search-input")),placeholder:X.value?"":B.value,onInput:Fe[3]||(Fe[3]=Je=>Ee(z.value,Je)),onClick:Fe[4]||(Fe[4]=Xe(Je=>Re(!0),["stop"])),onKeydown:rn(Le,["delete"]),onCompositionstart:Fe[5]||(Fe[5]=(...Je)=>i(b)&&i(b)(...Je)),onCompositionupdate:Fe[6]||(Fe[6]=(...Je)=>i(b)&&i(b)(...Je)),onCompositionend:Fe[7]||(Fe[7]=(...Je)=>i(b)&&i(b)(...Je))},null,42,aU)),[[_6,z.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(Yl),$e,me.value]])]),content:ae(()=>[Oe.$slots.header?(_(),$("div",{key:0,class:R(i(d).e("header")),onClick:Fe[11]||(Fe[11]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"header")],2)):re("v-if",!0),dt(Q(i(Zb),{ref_key:"cascaderPanelRef",ref:T,modelValue:Z.value,"onUpdate:modelValue":Fe[12]||(Fe[12]=Je=>Z.value=Je),options:e.options,props:o.props,border:!1,"render-label":Oe.$slots.default,onExpandChange:Ye,onClose:Fe[13]||(Fe[13]=Je=>Oe.$nextTick(()=>Re(!1)))},{empty:ae(()=>[oe(Oe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[At,!I.value]]),e.filterable?dt((_(),ie(i(uo),{key:1,ref_key:"suggestionPanel",ref:M,tag:"ul",class:R(i(d).e("suggestion-panel")),"view-class":i(d).e("suggestion-list"),onKeydown:he},{default:ae(()=>[U.value.length?(_(!0),$(He,{key:0},Ct(U.value,Je=>(_(),$("li",{key:Je.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",Je.checked)]),tabindex:-1,onClick:hn=>gt(Je)},[oe(Oe.$slots,"suggestion-item",{item:Je},()=>[E("span",null,_e(Je.text),1),Je.checked?(_(),ie(i(ze),{key:0},{default:ae(()=>[Q(i(ni))]),_:1})):re("v-if",!0)])],10,oU))),128)):oe(Oe.$slots,"empty",{key:1},()=>[E("li",{class:R(i(d).e("empty-text"))},_e(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[At,I.value]]):re("v-if",!0),Oe.$slots.footer?(_(),$("div",{key:2,class:R(i(d).e("footer")),onClick:Fe[14]||(Fe[14]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),rU=lU;const sU=rt(rU),iU=Ce({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),uU={"update:checked":e=>Dt(e),[yt]:e=>Dt(e)};var cU=D({name:"ElCheckTag",__name:"check-tag",props:iU,emits:uU,setup(e,{emit:t}){const n=e,a=t,o=ve("check-tag"),l=x(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const s=!n.checked;a(yt,s),a("update:checked",s)};return(s,u)=>(_(),$("span",{class:R(l.value),onClick:r},[oe(s.$slots,"default")],2))}}),dU=cU;const fU=rt(dU),pU=Ce({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:J([Number,Object]),default:()=>un({})},sm:{type:J([Number,Object]),default:()=>un({})},md:{type:J([Number,Object]),default:()=>un({})},lg:{type:J([Number,Object]),default:()=>un({})},xl:{type:J([Number,Object]),default:()=>un({})}}),hU=["start","center","end","space-around","space-between","space-evenly"],vU=["top","middle","bottom"],mU=Ce({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:hU,default:"start"},align:{type:String,values:vU}}),Qb=Symbol("rowContextKey");var gU=D({name:"ElRow",__name:"row",props:mU,setup(e){const t=e,n=ve("row");bt(Qb,{gutter:x(()=>t.gutter)});const a=x(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l}),o=x(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(l,r)=>(_(),ie(ut(e.tag),{class:R(o.value),style:We(a.value)},{default:ae(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),yU=gU;const bU=rt(yU);var wU=D({name:"ElCol",__name:"col",props:pU,setup(e){const t=e,{gutter:n}=Ne(Qb,{gutter:x(()=>0)}),a=ve("col"),o=x(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=x(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const u=t[s];De(u)&&(s==="span"?r.push(a.b(`${t[s]}`)):u>0&&r.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{De(t[s])?r.push(a.b(`${s}-${t[s]}`)):Mt(t[s])&&Object.entries(t[s]).forEach(([u,c])=>{r.push(u!=="span"?a.b(`${s}-${u}-${c}`):a.b(`${s}-${c}`))})}),n.value&&r.push(a.is("guttered")),[a.b(),r]});return(r,s)=>(_(),ie(ut(e.tag),{class:R(l.value),style:We(o.value)},{default:ae(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),CU=wU;const _U=rt(CU),Sg=e=>De(e)||Ue(e)||Ve(e),SU=Ce({accordion:Boolean,modelValue:{type:J([Array,String,Number]),default:()=>un([])},expandIconPosition:{type:J([String]),default:"right"},beforeCollapse:{type:J(Function)}}),xU={[at]:Sg,[yt]:Sg},ew=Symbol("collapseContextKey"),kU=Ce({title:{type:String,default:""},name:{type:J([String,Number]),default:void 0},icon:{type:Ft,default:Jn},disabled:Boolean});var EU=D({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ve("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,l)=>(_(),ie(qn,pt({name:i(t).b()},s_(a)),{default:ae(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),TU=EU;const Sf=rt(TU),xg="ElCollapse",MU=(e,t)=>{const n=V(In(e.modelValue)),a=r=>{n.value=r;const s=e.accordion?n.value[0]:n.value;t(at,s),t(yt,s)},o=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const s=[...n.value],u=s.indexOf(r);u>-1?s.splice(u,1):s.push(r),a(s)}},l=async r=>{const{beforeCollapse:s}=e;if(!s){o(r);return}const u=s(r);[As(u),Dt(u)].includes(!0)||on(xg,"beforeCollapse must return type `Promise` or `boolean`"),As(u)?u.then(c=>{c!==!1&&o(r)}).catch(c=>{ft(xg,`some error occurred: ${c}`)}):u&&o(r)};return fe(()=>e.modelValue,()=>n.value=In(e.modelValue),{deep:!0}),bt(ew,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},OU=e=>{const t=ve("collapse");return{rootKls:x(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var $U=D({name:"ElCollapse",__name:"collapse",props:SU,emits:xU,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:l}=MU(a,n),{rootKls:r}=OU(a);return t({activeNames:o,setActiveNames:l}),(s,u)=>(_(),$("div",{class:R(i(r))},[oe(s.$slots,"default")],2))}}),AU=$U;const RU=e=>{const t=Ne(ew),{namespace:n}=ve("collapse"),a=V(!1),o=V(!1),l=gh(),r=x(()=>l.current++),s=x(()=>e.name??`${n.value}-id-${l.prefix}-${i(r)}`),u=x(()=>t==null?void 0:t.activeNames.value.includes(i(s)));return{focusing:a,id:r,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:h=>{var g;e.disabled||(g=h.target)!=null&&g.closest("input, textarea, select")||(t==null||t.handleItemClick(i(s)),a.value=!1,o.value=!0)},handleEnterClick:h=>{var g;(g=h.target)!=null&&g.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(i(s)))}}},NU=(e,{focusing:t,isActive:n,id:a})=>{const o=ve("collapse"),l=x(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),r=x(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),s=x(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:x(()=>[o.be("item","title")]),arrowKls:s,headKls:r,rootKls:l,itemWrapperKls:x(()=>o.be("item","wrap")),itemContentKls:x(()=>o.be("item","content")),scopedContentId:x(()=>o.b(`content-${i(a)}`)),scopedHeadId:x(()=>o.b(`head-${i(a)}`))}},PU=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],IU=["id","aria-hidden","aria-labelledby"];var LU=D({name:"ElCollapseItem",__name:"collapse-item",props:kU,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:l,handleFocus:r,handleHeaderClick:s,handleEnterClick:u}=RU(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:h,itemWrapperKls:g,itemContentKls:p,scopedContentId:v,scopedHeadId:m}=NU(n,{focusing:a,isActive:l,id:o});return t({isActive:l}),(y,b)=>(_(),$("div",{class:R(i(f))},[E("div",{id:i(m),class:R(i(d)),"aria-expanded":i(l),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:b[0]||(b[0]=(...w)=>i(s)&&i(s)(...w)),onKeydown:b[1]||(b[1]=rn(Xe((...w)=>i(u)&&i(u)(...w),["stop"]),["space","enter"])),onFocus:b[2]||(b[2]=(...w)=>i(r)&&i(r)(...w)),onBlur:b[3]||(b[3]=w=>a.value=!1)},[E("span",{class:R(i(h))},[oe(y.$slots,"title",{isActive:i(l)},()=>[_t(_e(e.title),1)])],2),oe(y.$slots,"icon",{isActive:i(l)},()=>[Q(i(ze),{class:R(i(c))},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class"])])],42,PU),Q(i(Sf),null,{default:ae(()=>[dt(E("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(l),"aria-labelledby":i(m)},[E("div",{class:R(i(p))},[oe(y.$slots,"default")],2)],10,IU),[[At,i(l)]])]),_:3})],2))}}),tw=LU;const VU=rt(AU,{CollapseItem:tw}),BU=ln(tw),nw=Ce({modelValue:{type:J(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:J(String)},disabled:Boolean,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:J([String,Array,Object])},hueSliderStyle:{type:J([String,Array,Object])}}),zU={[at]:e=>Ue(e)||Cn(e)},aw=Symbol("colorCommonPickerKey"),ow=Symbol("colorPickerPanelContextKey"),lw=Ce({color:{type:J(Object),required:!0},vertical:Boolean,disabled:Boolean}),DU=lw,kg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},V2=(e,t)=>Math.abs(kg(e)-kg(t)),rw=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let y0=!1;function B2(e,t){if(!Rt)return;const n=function(l){var r;(r=t.drag)==null||r.call(t,l)},a=function(l){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,y0=!1,(r=t.end)==null||r.call(t,l)},o=function(l){var r;y0||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),y0=!0,(r=t.start)==null||r.call(t,l))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const sw=(e,{key:t,minValue:n,maxValue:a})=>{const o=ht(),l=qt(),r=qt(),s=x(()=>e.color.get(t));function u(h){var g;e.disabled||(h.target!==l.value&&c(h),(g=l.value)==null||g.focus())}function c(h){if(!r.value||!l.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:p,clientY:v}=rw(h);let m;if(e.vertical){let y=v-g.top;y=Math.max(l.value.offsetHeight/2,y),y=Math.min(y,g.height-l.value.offsetHeight/2),m=Math.round((y-l.value.offsetHeight/2)/(g.height-l.value.offsetHeight)*a)}else{let y=p-g.left;y=Math.max(l.value.offsetWidth/2,y),y=Math.min(y,g.width-l.value.offsetWidth/2),m=Math.round((y-l.value.offsetWidth/2)/(g.width-l.value.offsetWidth)*a)}e.color.set(t,m)}function d(h){if(e.disabled)return;const{shiftKey:g}=h,p=Kt(h),v=g?10:1,m=t==="hue"?-1:1;let y=!0;switch(p){case we.left:case we.down:f(-v*m);break;case we.right:case we.up:f(v*m);break;case we.home:e.color.set(t,t==="hue"?a:n);break;case we.end:e.color.set(t,t==="hue"?n:a);break;case we.pageDown:f(-4*m);break;case we.pageUp:f(4*m);break;default:y=!1;break}y&&h.preventDefault()}function f(h){let g=s.value+h;g=ga?a:g,e.color.set(t,g)}return{thumb:l,bar:r,currentValue:s,handleDrag:c,handleClick:u,handleKeydown:d}},iw=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:l,handleDrag:r,getBackground:s})=>{const u=ht(),c=ve(t),d=V(0),f=V(0),h=V();function g(){if(!o.value||e.vertical)return 0;const w=u.vnode.el,C=l.value;return w?Math.round(C*(w.offsetWidth-o.value.offsetWidth/2)/n):0}function p(){if(!o.value)return 0;const w=u.vnode.el;if(!e.vertical)return 0;const C=l.value;return w?Math.round(C*(w.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=p(),h.value=s==null?void 0:s()}mt(()=>{if(!a.value||!o.value)return;const w={drag:C=>{r(C)},end:C=>{r(C)}};B2(a.value,w),B2(o.value,w),v()}),fe(l,()=>v()),fe(()=>e.color.value,()=>v());const m=x(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),y=x(()=>c.e("bar")),b=x(()=>c.e("thumb"));return{rootKls:m,barKls:y,barStyle:x(()=>({background:h.value})),thumbKls:b,thumbStyle:x(()=>({left:cn(d.value),top:cn(f.value)})),thumbLeft:d,thumbTop:f,update:v}},HU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Eg=0,b0=100;var FU=D({name:"ElColorAlphaSlider",__name:"alpha-slider",props:lw,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=sw(n,{key:"alpha",minValue:Eg,maxValue:b0}),{rootKls:c,barKls:d,barStyle:f,thumbKls:h,thumbStyle:g,update:p}=iw(n,{namespace:"color-alpha-slider",maxValue:b0,currentValue:a,bar:o,thumb:l,handleDrag:r,getBackground:b}),{t:v}=xt(),m=x(()=>v("el.colorpicker.alphaLabel")),y=x(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function b(){if(n.color&&n.color.value){const{r:w,g:C,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${C}, ${S}, 0) 0%, rgba(${w}, ${C}, ${S}, 1) 100%)`}return""}return t({update:p,bar:o,thumb:l}),(w,C)=>(_(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),style:We(i(f)),onClick:C[0]||(C[0]=(...S)=>i(s)&&i(s)(...S))},null,6),E("div",{ref_key:"thumb",ref:l,class:R(i(h)),style:We(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Eg,"aria-valuemax":b0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:C[1]||(C[1]=(...S)=>i(u)&&i(u)(...S))},null,46,HU)],2))}}),KU=FU;const WU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Tg=0,w0=360;var jU=D({name:"ElColorHueSlider",__name:"hue-slider",props:DU,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=sw(n,{key:"hue",minValue:Tg,maxValue:w0}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:h,thumbTop:g,update:p}=iw(n,{namespace:"color-hue-slider",maxValue:w0,currentValue:a,bar:o,thumb:l,handleDrag:r}),{t:v}=xt(),m=x(()=>v("el.colorpicker.hueLabel")),y=x(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:l,thumbTop:g,update:p}),(b,w)=>(_(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:w[0]||(w[0]=(...C)=>i(s)&&i(s)(...C))},null,2),E("div",{ref_key:"thumb",ref:l,class:R(i(f)),style:We(i(h)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Tg,"aria-valuemax":w0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(...C)=>i(u)&&i(u)(...C))},null,46,WU)],2))}}),qU=jU;const UU=Ce({colors:{type:J(Array),required:!0},color:{type:J(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var yd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new mn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)An(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)An(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new mn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:l}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=l*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new mn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:l}=this;let r=o||(l?"rgb":"hex");o==="hex"&&l&&(r="hex8"),this._tiny=new mn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(r):""}};const YU=e=>{const{currentColor:t}=Ne(ow),n=V(o(e.colors,e.color));fe(()=>t.value,l=>{const r=new yd({value:l,enableAlpha:e.enableAlpha});n.value.forEach(s=>{s.selected=r.compare(s)})}),ma(()=>{n.value=o(e.colors,e.color)});function a(l){e.color.fromString(e.colors[l])}function o(l,r){return l.map(s=>{const u=new yd({value:s,enableAlpha:e.enableAlpha});return u.selected=u.compare(r),u})}return{rgbaColors:n,handleSelect:a}},GU=e=>{const t=ve("color-predefine"),n=x(()=>[t.b(),t.is("disabled",e.disabled)]),a=x(()=>t.e("colors"));function o(l){return[t.e("color-selector"),t.is("alpha",l.get("alpha")<100),{selected:l.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},XU=["disabled","aria-label","onClick"];var JU=D({name:"ElColorPredefine",__name:"predefine",props:UU,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=YU(t),{rootKls:o,colorsKls:l,colorSelectorKls:r}=GU(t),{t:s}=xt(),u=c=>s("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(_(),$("div",{class:R(i(o))},[E("div",{class:R(i(l))},[(_(!0),$(He,null,Ct(i(n),(f,h)=>(_(),$("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(r)(f)),onClick:g=>i(a)(h)},[E("div",{style:We({backgroundColor:f.value})},null,4)],10,XU))),128))],2)],2))}}),ZU=JU;const QU=Ce({color:{type:J(Object),required:!0},disabled:Boolean}),eY=e=>{const t=ht(),n=V(),a=V(0),o=V(0),l=V("hsl(0, 100%, 50%)"),r=x(()=>e.color.get("saturation")),s=x(()=>e.color.get("value")),u=x(()=>e.color.get("hue"));function c(p){var v;e.disabled||(p.target!==n.value&&d(p),(v=n.value)==null||v.focus({preventScroll:!0}))}function d(p){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=rw(p);let b=m-v.left,w=y-v.top;b=Math.max(0,b),b=Math.min(b,v.width),w=Math.max(0,w),w=Math.min(w,v.height),o.value=b,a.value=w,e.color.set({saturation:b/v.width*100,value:100-w/v.height*100})}function f(p){if(e.disabled)return;const{shiftKey:v}=p,m=Kt(p),y=v?10:1;let b=!0;switch(m){case we.left:h(-y);break;case we.right:h(y);break;case we.up:g(y);break;case we.down:g(-y);break;default:b=!1;break}b&&p.preventDefault()}function h(p){let v=r.value+p;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(p){let v=s.value+p;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:l,saturation:r,brightness:s,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},tY=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const l=ht(),r=ve("color-svpanel");function s(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=l.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return mt(()=>{B2(l.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),s()}),fe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>s()),{rootKls:x(()=>r.b()),cursorKls:x(()=>r.e("cursor")),rootStyle:x(()=>({backgroundColor:a.value})),cursorStyle:x(()=>({top:cn(t.value),left:cn(n.value)})),update:s}},nY=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var aY=D({name:"ElSvPanel",__name:"sv-panel",props:QU,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:l,background:r,saturation:s,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=eY(n),{rootKls:h,cursorKls:g,rootStyle:p,cursorStyle:v,update:m}=tY(n,{cursorTop:o,cursorLeft:l,background:r,handleDrag:d}),{t:y}=xt(),b=x(()=>y("el.colorpicker.svLabel")),w=x(()=>y("el.colorpicker.svDescription",{saturation:s.value,brightness:u.value,color:n.color.value}));return t({update:m}),(C,S)=>(_(),$("div",{class:R(i(h)),style:We(i(p)),onClick:S[1]||(S[1]=(...k)=>i(c)&&i(c)(...k))},[E("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:We(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${i(s)},${i(u)}`,"aria-valuetext":w.value,onKeydown:S[0]||(S[0]=(...k)=>i(f)&&i(f)(...k))},null,46,nY)],6))}}),oY=aY;const uw=(e,t)=>{const n=Nt(new yd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return fe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(at,n.value)}),{color:n}};var lY=D({name:"ElColorPickerPanel",__name:"color-picker-panel",props:nw,emits:zU,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("color-picker-panel"),{formItem:r}=Kn(),s=dn(),u=V(),c=V(),d=V(),f=V(),h=V(""),{color:g}=Ne(aw,()=>uw(a,o),!0);function p(){g.fromString(h.value),g.value!==h.value&&(h.value=g.value)}function v(){var y;a.validateEvent&&((y=r==null?void 0:r.validate)==null||y.call(r,"blur").catch(b=>ft(b)))}function m(){var y,b,w;(y=u.value)==null||y.update(),(b=c.value)==null||b.update(),(w=d.value)==null||w.update()}return mt(()=>{a.modelValue&&(h.value=g.value),Ie(m)}),fe(()=>a.modelValue,y=>{y!==g.value&&(y?g.fromString(y):g.clear())}),fe(()=>g.value,y=>{o(at,y),h.value=y,a.validateEvent&&(r==null||r.validate("change").catch(b=>ft(b)))}),bt(ow,{currentColor:x(()=>g.value)}),t({color:g,inputRef:f,update:m}),(y,b)=>(_(),$("div",{class:R([i(l).b(),i(l).is("disabled",i(s)),i(l).is("border",e.border)]),onFocusout:v},[E("div",{class:R(i(l).e("wrapper"))},[Q(qU,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(s),class:R(["hue-slider",e.hueSliderClass]),style:We(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),Q(oY,{ref_key:"svRef",ref:c,color:i(g),disabled:i(s)},null,8,["color","disabled"])],2),e.showAlpha?(_(),ie(KU,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(s)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(_(),ie(ZU,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(s)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),E("div",{class:R(i(l).e("footer"))},[Q(i(jn),{ref_key:"inputRef",ref:f,modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:i(s),onChange:p},null,8,["modelValue","disabled"]),oe(y.$slots,"footer")],2)],34))}}),rY=lY;const cw=rt(rY),sY=Ce({persistent:{type:Boolean,default:!0},modelValue:{type:J(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:J(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:On,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Ht.teleported,appendTo:Ht.appendTo,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},...Gr,...ia(["ariaLabel"])}),iY={[at]:e=>Ue(e)||Cn(e),[yt]:e=>Ue(e)||Cn(e),activeChange:e=>Ue(e)||Cn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},uY=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var cY=D({name:"ElColorPicker",__name:"color-picker",props:sY,emits:iY,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("color"),{formItem:s}=Kn(),u=En(),c=dn(),{valueOnClear:d,isEmptyValue:f}=zu(a,null),h=uw(a,o),{inputId:g,isLabeledByFormItem:p}=za(a,{formItemContext:s}),v=V(),m=V(),y=V(),b=V(!1),w=V(!1);let C=!0;const{isFocused:S,handleFocus:k,handleBlur:T}=El(m,{disabled:c,beforeBlur(Y){var X;return(X=v.value)==null?void 0:X.isFocusInsideContent(Y)},afterBlur(){var Y;F(!1),W(),a.validateEvent&&((Y=s==null?void 0:s.validate)==null||Y.call(s,"blur").catch(X=>ft(X)))}}),M=MS(()=>{var Y;return((Y=y.value)==null?void 0:Y.color)??h.color}),A=x(()=>vl(a,Object.keys(nw))),O=x(()=>!a.modelValue&&!w.value?"transparent":U(M,a.showAlpha)),I=x(()=>!a.modelValue&&!w.value?"":M.value),L=x(()=>p.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),z=x(()=>p.value?s==null?void 0:s.labelId:void 0),q=x(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",u.value),r.is("focused",S.value)]);function U(Y,X){const{r:H,g:Z,b:le,a:ce}=Y.toRgb();return X?`rgba(${H}, ${Z}, ${le}, ${ce})`:`rgb(${H}, ${Z}, ${le})`}function F(Y){b.value=Y}const N=Ko(F,100,{leading:!0});function P(){c.value||F(!0)}function B(){N(!1),W()}function W(){Ie(()=>{a.modelValue?M.fromString(a.modelValue):(M.value="",Ie(()=>{w.value=!1}))})}function K(){c.value||(b.value&&W(),N(!b.value))}function j(){const Y=f(M.value)?d.value:M.value;o(at,Y),o(yt,Y),a.validateEvent&&(s==null||s.validate("change").catch(X=>ft(X))),N(!1),Ie(()=>{const X=new yd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});M.compare(X)||W()})}function G(){N(!1),o(at,d.value),o(yt,d.value),a.modelValue!==d.value&&a.validateEvent&&(s==null||s.validate("change").catch(Y=>ft(Y))),W(),o("clear")}function ee(){var Y,X;(X=(Y=y==null?void 0:y.value)==null?void 0:Y.inputRef)==null||X.focus()}function te(){b.value&&(B(),S.value&&de())}function ue(Y){Y.preventDefault(),Y.stopPropagation(),F(!1),W()}function ne(Y){switch(Kt(Y)){case we.enter:case we.numpadEnter:case we.space:Y.preventDefault(),Y.stopPropagation(),P();break;case we.esc:ue(Y);break}}function de(){m.value.focus()}function se(){m.value.blur()}return fe(()=>I.value,Y=>{C&&o("activeChange",Y),C=!0}),fe(()=>M.value,()=>{!a.modelValue&&!w.value&&(w.value=!0)}),fe(()=>a.modelValue,Y=>{Y?Y&&Y!==M.value&&(C=!1,M.fromString(Y)):w.value=!1}),fe(()=>b.value,()=>{y.value&&Ie(y.value.update)}),bt(aw,h),t({color:M,show:P,hide:B,focus:de,blur:se}),(Y,X)=>(_(),ie(i(Fn),{ref_key:"popper",ref:v,visible:b.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:X[2]||(X[2]=H=>F(!1))},{content:ae(()=>[dt((_(),ie(i(cw),pt({ref_key:"pickerPanelRef",ref:y},A.value,{border:!1,"validate-event":!1,onKeydown:rn(ue,["esc"])}),{footer:ae(()=>[E("div",null,[e.clearable?(_(),ie(i(Ln),{key:0,class:R(i(r).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:ae(()=>[_t(_e(i(l)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Q(i(Ln),{plain:"",size:"small",class:R(i(r).be("footer","btn")),onClick:j},{default:ae(()=>[_t(_e(i(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(Yl),te,m.value]])]),default:ae(()=>[E("div",pt({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:q.value,role:"button","aria-label":L.value,"aria-labelledby":z.value,"aria-description":i(l)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:ne,onFocus:X[0]||(X[0]=(...H)=>i(k)&&i(k)(...H)),onBlur:X[1]||(X[1]=(...H)=>i(T)&&i(T)(...H))}),[E("div",{class:R(i(r).be("picker","trigger")),onClick:K},[E("span",{class:R([i(r).be("picker","color"),i(r).is("alpha",e.showAlpha)])},[E("span",{class:R(i(r).be("picker","color-inner")),style:We({backgroundColor:O.value})},[dt(Q(i(ze),{class:R([i(r).be("picker","icon"),i(r).is("icon-arrow-down")])},{default:ae(()=>[Q(i(bo))]),_:1},8,["class"]),[[At,e.modelValue||w.value]]),dt(Q(i(ze),{class:R([i(r).be("picker","empty"),i(r).is("icon-close")])},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class"]),[[At,!e.modelValue&&!w.value]])],6)],2)],2)],16,uY)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),dY=cY;const fY=rt(dY);var pY=D({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=yn(),a=ve("container"),o=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const r=l.type.name;return r==="ElHeader"||r==="ElFooter"}):!1);return(l,r)=>(_(),$("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(l.$slots,"default")],2))}}),hY=pY,vY=D({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("aside"),a=x(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,l)=>(_(),$("aside",{class:R(i(n).b()),style:We(a.value)},[oe(o.$slots,"default")],6))}}),dw=vY,mY=D({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("footer"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(_(),$("footer",{class:R(i(n).b()),style:We(a.value)},[oe(o.$slots,"default")],6))}}),fw=mY,gY=D({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("header"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(_(),$("header",{class:R(i(n).b()),style:We(a.value)},[oe(o.$slots,"default")],6))}}),pw=gY,yY=D({name:"ElMain",__name:"main",setup(e){const t=ve("main");return(n,a)=>(_(),$("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),hw=yY;const bY=rt(hY,{Aside:dw,Footer:fw,Header:pw,Main:hw}),wY=ln(dw),CY=ln(fw),_Y=ln(pw),SY=ln(hw),xY=Ce({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:J([Date,Array,String,Number]),default:""},defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Vh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:J(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),jh=Symbol("rootPickerContextKey"),ju="ElIsDefaultFormat",kY=["date","dates","year","years","month","months","week","range"],qh=Ce({cellClassName:{type:J(Function)},disabledDate:{type:J(Function)},date:{type:J(Object),required:!0},minDate:{type:J(Object)},maxDate:{type:J(Object)},parsedValue:{type:J([Object,Array])},rangeState:{type:J(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),vw=Ce({type:{type:J(String),required:!0,values:ES},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Uh=Ce({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:J(Array)}}),Yh=e=>({type:String,values:kY,default:e}),EY=Ce({...vw,parsedValue:{type:J([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),iu=e=>{if(!Ve(e))return!1;const[t,n]=e;return lt.isDayjs(t)&<.isDayjs(n)&<(t).isValid()&<(n).isValid()&&t.isSameOrBefore(n)},xf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let l;if(Ve(e)){let[r,s]=e.map(u=>lt(u).locale(t));return o||(s=r.add(n,a)),[r,s]}else e?l=lt(e):l=lt();return l=l.locale(t),[l,l.add(n,a)]},TY=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:l,unit:r,relativeDateGetter:s,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=lt().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return ql(o.daysInMonth()).map(l=>o.add(l,"day").toDate())},Hs=(e,t,n,a,o)=>{const l=lt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=bd(e,t,n,a).find(s=>!(o!=null&&o(s)));return r?lt(r).locale(a):l.locale(a)},wd=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const o=e.month();if(!bd(e,a,o,t).every(n))return Hs(e,a,o,t,n);for(let l=0;l<12;l++)if(!bd(e,a,l,t).every(n))return Hs(e,a,l,t,n);return e},Fs=(e,t,n,a)=>{if(Ve(e))return e.map(o=>Fs(o,t,n,a));if(Ue(e)){const o=a!=null&&a.value?lt(e):lt(e,t);if(!o.isValid())return o}return lt(e,t).locale(n)},MY=Ce({...qh,showWeekNumber:Boolean,selectionMode:Yh("date")}),OY=["changerange","pick","select"],Cd=(e="")=>["normal","today"].includes(e),$Y=(e,t)=>{const{lang:n}=xt(),a=V(),o=V(),l=V(),r=V(),s=V([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(B=>B.toLowerCase()),f=x(()=>c>3?7-c:-c),h=x(()=>{const B=e.date.startOf("month");return B.subtract(B.day()||7,"day")}),g=x(()=>d.concat(d).slice(c,c+7)),p=x(()=>sd(i(C)).some(B=>B.isCurrent)),v=x(()=>{const B=e.date.startOf("month");return{startOfMonthDay:B.day()||7,dateCountOfMonth:B.daysInMonth(),dateCountOfLastMonth:B.subtract(1,"month").daysInMonth()}}),m=x(()=>e.selectionMode==="dates"?la(e.parsedValue):[]),y=(B,{count:W,rowIndex:K,columnIndex:j})=>{const{startOfMonthDay:G,dateCountOfMonth:ee,dateCountOfLastMonth:te}=i(v),ue=i(f);if(K>=0&&K<=1){const ne=G+ue<0?7+G+ue:G+ue;if(j+K*7>=ne)return B.text=W,!0;B.text=te-(ne-j%7)+1+K*7,B.type="prev-month"}else return W<=ee?B.text=W:(B.text=W-ee,B.type="next-month"),!0;return!1},b=(B,{columnIndex:W,rowIndex:K},j)=>{const{disabledDate:G,cellClassName:ee}=e,te=i(m),ue=y(B,{count:j,rowIndex:K,columnIndex:W}),ne=B.dayjs.toDate();return B.selected=te.find(de=>de.isSame(B.dayjs,"day")),B.isSelected=!!B.selected,B.isCurrent=k(B),B.disabled=G==null?void 0:G(ne),B.customClass=ee==null?void 0:ee(ne),ue},w=B=>{if(e.selectionMode==="week"){const[W,K]=e.showWeekNumber?[1,7]:[0,6],j=P(B[W+1]);B[W].inRange=j,B[W].start=j,B[K].inRange=j,B[K].end=j}},C=x(()=>{const{minDate:B,maxDate:W,rangeState:K,showWeekNumber:j}=e,G=i(f),ee=i(s),te="day";let ue=1;if(TY({row:6,column:7},ee,{startDate:B,columnIndexOffset:j?1:0,nextEndDate:K.endDate||W||K.selecting&&B||null,now:lt().locale(i(n)).startOf(te),unit:te,relativeDateGetter:ne=>i(h).add(ne-G,te),setCellMetadata:(...ne)=>{b(...ne,ue)&&(ue+=1)},setRowMetadata:w}),j)for(let ne=0;ne<6;ne++)ee[ne][1].dayjs&&(ee[ne][0]={type:"week",text:ee[ne][1].dayjs.week()});return ee});fe(()=>e.date,async()=>{var B;(B=i(a))!=null&&B.contains(document.activeElement)&&(await Ie(),await S())});const S=async()=>{var B;return(B=i(o))==null?void 0:B.focus()},k=B=>e.selectionMode==="date"&&Cd(B.type)&&T(B,e.parsedValue),T=(B,W)=>W?lt(W).locale(i(n)).isSame(e.date.date(Number(B.text)),"day"):!1,M=(B,W)=>{const K=i(v).startOfMonthDay,j=i(f),G=K+j<0?7+K+j:K+j,ee=B*7+(W-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(G,"day").add(ee,"day")},A=B=>{var G;if(!e.rangeState.selecting)return;let W=B.target;if(W.tagName==="SPAN"&&(W=(G=W.parentNode)==null?void 0:G.parentNode),W.tagName==="DIV"&&(W=W.parentNode),W.tagName!=="TD")return;const K=W.parentNode.rowIndex-1,j=W.cellIndex;i(C)[K][j].disabled||(K!==i(l)||j!==i(r))&&(l.value=K,r.value=j,t("changerange",{selecting:!0,endDate:M(K,j)}))},O=B=>!i(p)&&(B==null?void 0:B.text)===1&&Cd(B.type)||B.isCurrent,I=B=>{u||i(p)||e.selectionMode!=="date"||N(B,!0)},L=B=>{B.target.closest("td")&&(u=!0)},z=B=>{B.target.closest("td")&&(u=!1)},q=B=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:B,maxDate:null}),t("select",!0)):(B>=e.minDate?t("pick",{minDate:e.minDate,maxDate:B}):t("pick",{minDate:B,maxDate:e.minDate}),t("select",!1))},U=B=>{const W=B.week(),K=`${B.year()}w${W}`;t("pick",{year:B.year(),week:W,value:K,date:B.startOf("week")})},F=(B,W)=>{t("pick",W?la(e.parsedValue).filter(K=>(K==null?void 0:K.valueOf())!==B.valueOf()):la(e.parsedValue).concat([B]))},N=(B,W=!1)=>{if(e.disabled)return;const K=B.target.closest("td");if(!K)return;const j=K.parentNode.rowIndex-1,G=K.cellIndex,ee=i(C)[j][G];if(ee.disabled||ee.type==="week")return;const te=M(j,G);switch(e.selectionMode){case"range":q(te);break;case"date":t("pick",te,W);break;case"week":U(te);break;case"dates":F(te,!!ee.selected);break}},P=B=>{if(e.selectionMode!=="week")return!1;let W=e.date.startOf("day");if(B.type==="prev-month"&&(W=W.subtract(1,"month")),B.type==="next-month"&&(W=W.add(1,"month")),W=W.date(Number.parseInt(B.text,10)),e.parsedValue&&!Ve(e.parsedValue)){const K=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(K,"day").isSame(W,"day")}return!1};return{WEEKS:g,rows:C,tbodyRef:a,currentCellRef:o,focus:S,isCurrent:k,isWeekActive:P,isSelectedCell:O,handlePickDate:N,handleMouseUp:z,handleMouseDown:L,handleMouseMove:A,handleFocus:I}},AY=(e,{isCurrent:t,isWeekActive:n})=>{const a=ve("date-table"),{t:o}=xt(),l=x(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=x(()=>o("el.datepicker.dateTablePrompt")),s=c=>{const d=[];return Cd(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(Cd(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:l,tableLabel:r,weekHeaderClass:a.e("week-header"),getCellClasses:s,getRowKls:u,t:o}},RY=Ce({cell:{type:J(Object)}});var Gh=D({name:"ElDatePickerCell",props:RY,setup(e){const t=ve("date-table-cell"),{slots:n}=Ne(jh);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[Q("div",{class:t.b()},[Q("span",{class:t.e("text")},[(a==null?void 0:a.renderText)??(a==null?void 0:a.text)])])])}}});const NY=["aria-label"],PY=["aria-label"],IY=["aria-current","aria-selected","tabindex","aria-disabled"];var LY=D({__name:"basic-date-table",props:MY,emits:OY,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:l,tbodyRef:r,currentCellRef:s,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:g,handleMouseDown:p,handleMouseMove:v,handleFocus:m}=$Y(a,n),{tableLabel:y,tableKls:b,getCellClasses:w,getRowKls:C,weekHeaderClass:S,t:k}=AY(a,{isCurrent:c,isWeekActive:d});let T=!1;return Lt(()=>{T=!0}),t({focus:u}),(M,A)=>(_(),$("table",{"aria-label":i(y),class:R(i(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...O)=>i(h)&&i(h)(...O)),onMousemove:A[2]||(A[2]=(...O)=>i(v)&&i(v)(...O)),onMousedown:A[3]||(A[3]=(...O)=>i(p)&&i(p)(...O)),onMouseup:A[4]||(A[4]=(...O)=>i(g)&&i(g)(...O))},[E("tbody",{ref_key:"tbodyRef",ref:r},[E("tr",null,[M.showWeekNumber?(_(),$("th",{key:0,scope:"col",class:R(i(S))},null,2)):re("v-if",!0),(_(!0),$(He,null,Ct(i(o),(O,I)=>(_(),$("th",{key:I,"aria-label":i(k)("el.datepicker.weeksFull."+O),scope:"col"},_e(i(k)("el.datepicker.weeks."+O)),9,PY))),128))]),(_(!0),$(He,null,Ct(i(l),(O,I)=>(_(),$("tr",{key:I,class:R(i(C)(M.showWeekNumber?O[2]:O[1]))},[(_(!0),$(He,null,Ct(O,(L,z)=>(_(),$("td",{key:`${I}.${z}`,ref_for:!0,ref:q=>!i(T)&&i(f)(L)&&(s.value=q),class:R(i(w)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:M.disabled?void 0:i(f)(L)?0:-1,"aria-disabled":M.disabled,onFocus:A[0]||(A[0]=(...q)=>i(m)&&i(m)(...q))},[Q(i(Gh),{cell:L},null,8,["cell"])],42,IY))),128))],2))),128))],512)],42,NY))}}),z2=LY;const VY=Ce({...qh,selectionMode:Yh("month")}),BY=["aria-label"],zY=["aria-selected","aria-label","tabindex","onKeydown"];var DY=D({__name:"basic-month-table",props:VY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("month-table"),{t:r,lang:s}=xt(),u=V(),c=V(),d=V(a.date.locale("en").localeData().monthsShort().map(C=>C.toLowerCase())),f=V([[],[],[]]),h=V(),g=V(),p=x(()=>{var k,T,M;const C=f.value,S=lt().locale(s.value).startOf("month");for(let A=0;A<3;A++){const O=C[A];for(let I=0;I<4;I++){const L=O[I]||(O[I]={row:A,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});L.type="normal";const z=A*4+I,q=a.date.startOf("year").month(z),U=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;L.inRange=!!(a.minDate&&q.isSameOrAfter(a.minDate,"month")&&U&&q.isSameOrBefore(U,"month"))||!!(a.minDate&&q.isSameOrBefore(a.minDate,"month")&&U&&q.isSameOrAfter(U,"month")),(k=a.minDate)!=null&&k.isSameOrAfter(U)?(L.start=!!(U&&q.isSame(U,"month")),L.end=a.minDate&&q.isSame(a.minDate,"month")):(L.start=!!(a.minDate&&q.isSame(a.minDate,"month")),L.end=!!(U&&q.isSame(U,"month"))),S.isSame(q)&&(L.type="today");const F=q.toDate();L.text=z,L.disabled=((T=a.disabledDate)==null?void 0:T.call(a,F))||!1,L.date=F,L.customClass=(M=a.cellClassName)==null?void 0:M.call(a,F),L.dayjs=q,L.timestamp=q.valueOf(),L.isSelected=y(L)}}return C}),v=()=>{var C;(C=c.value)==null||C.focus()},m=C=>{const S={},k=a.date.year(),T=new Date,M=C.text;return S.disabled=a.disabled||(a.disabledDate?bd(a.date,k,M,s.value).every(a.disabledDate):!1),S.current=la(a.parsedValue).some(A=>lt.isDayjs(A)&&A.year()===k&&A.month()===M),S.today=T.getFullYear()===k&&T.getMonth()===M,C.customClass&&(S[C.customClass]=!0),C.inRange&&(S["in-range"]=!0,C.start&&(S["start-date"]=!0),C.end&&(S["end-date"]=!0)),S},y=C=>{const S=a.date.year(),k=C.text;return la(a.date).some(T=>T.year()===S&&T.month()===k)},b=C=>{var M;if(!a.rangeState.selecting)return;let S=C.target;if(S.tagName==="SPAN"&&(S=(M=S.parentNode)==null?void 0:M.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const k=S.parentNode.rowIndex,T=S.cellIndex;p.value[k][T].disabled||(k!==h.value||T!==g.value)&&(h.value=k,g.value=T,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(k*4+T)}))},w=C=>{var A;if(a.disabled)return;const S=(A=C.target)==null?void 0:A.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Vo(S,"disabled"))return;const k=S.cellIndex,T=S.parentNode.rowIndex*4+k,M=a.date.startOf("year").month(T);if(a.selectionMode==="months"){if(C.type==="keydown"){o("pick",la(a.parsedValue),!1);return}const O=Hs(a.date,a.date.year(),T,s.value,a.disabledDate);o("pick",Vo(S,"current")?la(a.parsedValue).filter(I=>(I==null?void 0:I.year())!==O.year()||(I==null?void 0:I.month())!==O.month()):la(a.parsedValue).concat([lt(O)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&M>=a.minDate?o("pick",{minDate:a.minDate,maxDate:M}):o("pick",{minDate:M,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:M,maxDate:null}),o("select",!0)):o("pick",T)};return fe(()=>a.date,async()=>{var C,S;(C=u.value)!=null&&C.contains(document.activeElement)&&(await Ie(),(S=c.value)==null||S.focus())}),t({focus:v}),(C,S)=>(_(),$("table",{role:"grid","aria-label":i(r)("el.datepicker.monthTablePrompt"),class:R(i(l).b()),onClick:w,onMousemove:b},[E("tbody",{ref_key:"tbodyRef",ref:u},[(_(!0),$(He,null,Ct(p.value,(k,T)=>(_(),$("tr",{key:T},[(_(!0),$(He,null,Ct(k,(M,A)=>(_(),$("td",{key:A,ref_for:!0,ref:O=>M.isSelected&&(c.value=O),class:R(m(M)),"aria-selected":!!M.isSelected,"aria-label":i(r)(`el.datepicker.month${+M.text+1}`),tabindex:M.isSelected?0:-1,onKeydown:[rn(Xe(w,["prevent","stop"]),["space"]),rn(Xe(w,["prevent","stop"]),["enter"])]},[Q(i(Gh),{cell:{...M,renderText:i(r)("el.datepicker.months."+d.value[M.text])}},null,8,["cell"])],42,zY))),128))]))),128))],512)],42,BY))}}),uu=DY;const HY=Ce({...qh,selectionMode:Yh("year")}),FY=["aria-label"],KY=["aria-selected","aria-label","tabindex","onKeydown"];var WY=D({__name:"basic-year-table",props:HY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(S,k)=>{const T=lt(String(S)).locale(k).startOf("year");return ql(T.endOf("year").dayOfYear()).map(M=>T.add(M,"day").toDate())},o=e,l=n,r=ve("year-table"),{t:s,lang:u}=xt(),c=V(),d=V(),f=x(()=>Math.floor(o.date.year()/10)*10),h=V([[],[],[]]),g=V(),p=V(),v=x(()=>{var T,M,A;const S=h.value,k=lt().locale(u.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let L=0;L<4&&!(O*4+L>=10);L++){let z=I[L];z||(z={row:O,column:L,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),z.type="normal";const q=O*4+L+f.value,U=lt().year(q),F=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;z.inRange=!!(o.minDate&&U.isSameOrAfter(o.minDate,"year")&&F&&U.isSameOrBefore(F,"year"))||!!(o.minDate&&U.isSameOrBefore(o.minDate,"year")&&F&&U.isSameOrAfter(F,"year")),(T=o.minDate)!=null&&T.isSameOrAfter(F)?(z.start=!!(F&&U.isSame(F,"year")),z.end=!!(o.minDate&&U.isSame(o.minDate,"year"))):(z.start=!!(o.minDate&&U.isSame(o.minDate,"year")),z.end=!!(F&&U.isSame(F,"year"))),k.isSame(U)&&(z.type="today"),z.text=q;const N=U.toDate();z.disabled=((M=o.disabledDate)==null?void 0:M.call(o,N))||!1,z.date=N,z.customClass=(A=o.cellClassName)==null?void 0:A.call(o,N),z.dayjs=U,z.timestamp=U.valueOf(),z.isSelected=b(z),I[L]=z}}return S}),m=()=>{var S;(S=d.value)==null||S.focus()},y=S=>{const k={},T=lt().locale(u.value),M=S.text;return k.disabled=o.disabled||(o.disabledDate?a(M,u.value).every(o.disabledDate):!1),k.today=T.year()===M,k.current=la(o.parsedValue).some(A=>A.year()===M),S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=S.text;return la(o.date).some(T=>T.year()===k)},w=S=>{var O;if(o.disabled)return;const k=(O=S.target)==null?void 0:O.closest("td");if(!k||!k.textContent||Vo(k,"disabled"))return;const T=k.cellIndex,M=k.parentNode.rowIndex*4+T+f.value,A=lt().year(M);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&A>=o.minDate?l("pick",{minDate:o.minDate,maxDate:A}):l("pick",{minDate:A,maxDate:o.minDate}),l("select",!1)):(l("pick",{minDate:A,maxDate:null}),l("select",!0));else if(o.selectionMode==="years"){if(S.type==="keydown"){l("pick",la(o.parsedValue),!1);return}const I=wd(A.startOf("year"),u.value,o.disabledDate);l("pick",Vo(k,"current")?la(o.parsedValue).filter(L=>(L==null?void 0:L.year())!==M):la(o.parsedValue).concat([I]))}else l("pick",M)},C=S=>{var A;if(!o.rangeState.selecting)return;const k=(A=S.target)==null?void 0:A.closest("td");if(!k)return;const T=k.parentNode.rowIndex,M=k.cellIndex;v.value[T][M].disabled||(T!==g.value||M!==p.value)&&(g.value=T,p.value=M,l("changerange",{selecting:!0,endDate:lt().year(f.value).add(T*4+M,"year")}))};return fe(()=>o.date,async()=>{var S,k;(S=c.value)!=null&&S.contains(document.activeElement)&&(await Ie(),(k=d.value)==null||k.focus())}),t({focus:m}),(S,k)=>(_(),$("table",{role:"grid","aria-label":i(s)("el.datepicker.yearTablePrompt"),class:R(i(r).b()),onClick:w,onMousemove:C},[E("tbody",{ref_key:"tbodyRef",ref:c},[(_(!0),$(He,null,Ct(v.value,(T,M)=>(_(),$("tr",{key:M},[(_(!0),$(He,null,Ct(T,(A,O)=>(_(),$("td",{key:`${M}_${O}`,ref_for:!0,ref:I=>A.isSelected&&(d.value=I),class:R(["available",y(A)]),"aria-selected":A.isSelected,"aria-label":String(A.text),tabindex:A.isSelected?0:-1,onKeydown:[rn(Xe(w,["prevent","stop"]),["space"]),rn(Xe(w,["prevent","stop"]),["enter"])]},[Q(i(Gh),{cell:A},null,8,["cell"])],42,KY))),128))]))),128))],512)],42,FY))}}),cu=WY;const jY=["disabled","onClick"],qY=["aria-label","disabled"],UY=["aria-label","disabled"],YY=["tabindex","aria-disabled"],GY=["tabindex","aria-disabled"],XY=["aria-label","disabled"],JY=["aria-label","disabled"];var ZY=D({__name:"panel-date-pick",props:EY,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(he,Le,pe)=>!0,a=e,o=t,l=ve("picker-panel"),r=ve("date-picker"),s=_l(),u=yn(),{t:c,lang:d}=xt(),f=Ne(co),h=Ne(ju,void 0),{shortcuts:g,disabledDate:p,cellClassName:v,defaultTime:m}=f.props,y=Bt(f.props,"defaultValue"),b=V(),w=V(lt().locale(d.value)),C=V(!1);let S=!1;const k=x(()=>lt(m).locale(d.value)),T=x(()=>w.value.month()),M=x(()=>w.value.year()),A=V([]),O=V(null),I=V(null),L=he=>A.value.length>0?n(he,A.value,a.format||Dr):!0,z=he=>m&&!$e.value&&!C.value&&!S?k.value.year(he.year()).month(he.month()).date(he.date()):se.value?he.millisecond(0):he.startOf("day"),q=(he,...Le)=>{he?Ve(he)?o("pick",he.map(z),...Le):o("pick",z(he),...Le):o("pick",he,...Le),O.value=null,I.value=null,C.value=!1,S=!1},U=async(he,Le)=>{if(K.value==="date"&<.isDayjs(he)){const pe=mi(a.parsedValue);let Ee=pe?pe.year(he.year()).month(he.month()).date(he.date()):he;L(Ee),w.value=Ee,q(Ee,se.value||Le)}else K.value==="week"?q(he.date):K.value==="dates"&&q(he,!0)},F=he=>{const Le=he?"add":"subtract";w.value=w.value[Le](1,"month"),gt("month")},N=he=>{const Le=w.value,pe=he?"add":"subtract";w.value=P.value==="year"?Le[pe](10,"year"):Le[pe](1,"year"),gt("year")},P=V("date"),B=x(()=>{const he=c("el.datepicker.year");if(P.value==="year"){const Le=Math.floor(M.value/10)*10;return he?`${Le} ${he} - ${Le+9} ${he}`:`${Le} - ${Le+9}`}return`${M.value} ${he}`}),W=he=>{const Le=ct(he.value)?he.value():he.value;if(Le){S=!0,q(lt(Le).locale(d.value));return}he.onClick&&he.onClick({attrs:s,slots:u,emit:o})},K=x(()=>{const{type:he}=a;return["week","month","months","year","years","dates"].includes(he)?he:"date"}),j=x(()=>K.value==="dates"||K.value==="months"||K.value==="years"),G=x(()=>K.value==="date"?P.value:K.value),ee=x(()=>!!g.length),te=async(he,Le)=>{K.value==="month"?(w.value=Hs(w.value,w.value.year(),he,d.value,p),q(w.value,!1)):K.value==="months"?q(he,Le??!0):(w.value=Hs(w.value,w.value.year(),he,d.value,p),P.value="date",["month","year","date","week"].includes(K.value)&&(q(w.value,!0),await Ie(),Ye())),gt("month")},ue=async(he,Le)=>{K.value==="year"?(w.value=wd(w.value.startOf("year").year(he),d.value,p),q(w.value,!1)):K.value==="years"?q(he,Le??!0):(w.value=wd(w.value.year(he),d.value,p),P.value="month",["month","year","date","week"].includes(K.value)&&(q(w.value,!0),await Ie(),Ye())),gt("year")},ne=dn(),de=async he=>{ne.value||(P.value=he,await Ie(),Ye())},se=x(()=>a.type==="datetime"||a.type==="datetimerange"),Y=x(()=>{const he=se.value||K.value==="dates",Le=K.value==="years",pe=K.value==="months",Ee=P.value==="date",it=P.value==="year",Pt=P.value==="month";return he&&Ee||Le&&it||pe&&Pt}),X=x(()=>!j.value&&a.showNow||a.showConfirm),H=x(()=>p?a.parsedValue?Ve(a.parsedValue)?p(a.parsedValue[0].toDate()):p(a.parsedValue.toDate()):!0:!1),Z=()=>{if(j.value)q(a.parsedValue);else{let he=mi(a.parsedValue);if(!he){const Le=lt(m).locale(d.value),pe=Te();he=Le.year(pe.year()).month(pe.month()).date(pe.date())}w.value=he,q(he)}},le=x(()=>p?p(lt().locale(d.value).toDate()):!1),ce=()=>{const he=lt().locale(d.value).toDate();C.value=!0,(!p||!p(he))&&L(he)&&(w.value=lt().locale(d.value),q(w.value))},ge=x(()=>a.timeFormat||Cb(a.format)||Dr),me=x(()=>a.dateFormat||wb(a.format)||ll),$e=x(()=>{if(I.value)return I.value;if(!(!a.parsedValue&&!y.value))return(mi(a.parsedValue)||w.value).format(ge.value)}),Re=x(()=>{if(O.value)return O.value;if(!(!a.parsedValue&&!y.value))return(mi(a.parsedValue)||w.value).format(me.value)}),Ae=V(!1),ye=()=>{Ae.value=!0},ke=()=>{Ae.value=!1},be=he=>({hour:he.hour(),minute:he.minute(),second:he.second(),year:he.year(),month:he.month(),date:he.date()}),Pe=(he,Le,pe)=>{const{hour:Ee,minute:it,second:Pt}=be(he),Xt=mi(a.parsedValue);w.value=Xt?Xt.hour(Ee).minute(it).second(Pt):he,q(w.value,!0),pe||(Ae.value=Le)},Be=he=>{const Le=lt(he,ge.value).locale(d.value);if(Le.isValid()&&L(Le)){const{year:pe,month:Ee,date:it}=be(w.value);w.value=Le.year(pe).month(Ee).date(it),I.value=null,Ae.value=!1,q(w.value,!0)}},Qe=he=>{const Le=Fs(he,me.value,d.value,h);if(Le.isValid()){if(p&&p(Le.toDate()))return;const{hour:pe,minute:Ee,second:it}=be(w.value);w.value=Le.hour(pe).minute(Ee).second(it),O.value=null,q(w.value,!0)}},tt=he=>lt.isDayjs(he)&&he.isValid()&&(p?!p(he.toDate()):!0),nt=he=>Fs(he,a.format,d.value,h),Te=()=>{const he=lt(y.value).locale(d.value);if(!y.value){const Le=k.value;return lt().hour(Le.hour()).minute(Le.minute()).second(Le.second()).locale(d.value)}return he},Ye=()=>{var he;["week","month","year","date"].includes(K.value)&&((he=b.value)==null||he.focus())},st=()=>{Ye(),K.value==="week"&&et(we.down)},Ke=he=>{const Le=Kt(he);[we.up,we.down,we.left,we.right,we.home,we.end,we.pageUp,we.pageDown].includes(Le)&&(et(Le),he.stopPropagation(),he.preventDefault()),[we.enter,we.space,we.numpadEnter].includes(Le)&&O.value===null&&I.value===null&&(he.preventDefault(),q(w.value,!1))},et=he=>{const{up:Le,down:pe,left:Ee,right:it,home:Pt,end:Xt,pageUp:Oe,pageDown:Fe}=we,Je={year:{[Le]:-4,[pe]:4,[Ee]:-1,[it]:1,offset:(zt,Zt)=>zt.setFullYear(zt.getFullYear()+Zt)},month:{[Le]:-4,[pe]:4,[Ee]:-1,[it]:1,offset:(zt,Zt)=>zt.setMonth(zt.getMonth()+Zt)},week:{[Le]:-1,[pe]:1,[Ee]:-1,[it]:1,offset:(zt,Zt)=>zt.setDate(zt.getDate()+Zt*7)},date:{[Le]:-7,[pe]:7,[Ee]:-1,[it]:1,[Pt]:zt=>-zt.getDay(),[Xt]:zt=>-zt.getDay()+6,[Oe]:zt=>-new Date(zt.getFullYear(),zt.getMonth(),0).getDate(),[Fe]:zt=>new Date(zt.getFullYear(),zt.getMonth()+1,0).getDate(),offset:(zt,Zt)=>zt.setDate(zt.getDate()+Zt)}},hn=w.value.toDate();for(;Math.abs(w.value.diff(hn,"year",!0))<1;){const zt=Je[G.value];if(!zt)return;if(zt.offset(hn,ct(zt[he])?zt[he](hn):zt[he]??0),p&&p(hn))break;const Zt=lt(hn).locale(d.value);w.value=Zt,o("pick",Zt,!0);break}},gt=he=>{o("panel-change",w.value.toDate(),he,P.value)};return fe(()=>K.value,he=>{if(["month","year"].includes(he)){P.value=he;return}else if(he==="years"){P.value="year";return}else if(he==="months"){P.value="month";return}P.value="date"},{immediate:!0}),fe(()=>y.value,he=>{he&&(w.value=Te())},{immediate:!0}),fe(()=>a.parsedValue,he=>{if(he){if(j.value||Ve(he))return;w.value=he}else w.value=Te()},{immediate:!0}),o("set-picker-option",["isValidValue",tt]),o("set-picker-option",["parseUserInput",nt]),o("set-picker-option",["handleFocusPicker",st]),(he,Le)=>(_(),$("div",{class:R([i(l).b(),i(r).b(),i(l).is("border",he.border),i(l).is("disabled",i(ne)),{"has-sidebar":he.$slots.sidebar||ee.value,"has-time":se.value}])},[E("div",{class:R(i(l).e("body-wrapper"))},[oe(he.$slots,"sidebar",{class:R(i(l).e("sidebar"))}),ee.value?(_(),$("div",{key:0,class:R(i(l).e("sidebar"))},[(_(!0),$(He,null,Ct(i(g),(pe,Ee)=>(_(),$("button",{key:Ee,type:"button",disabled:i(ne),class:R(i(l).e("shortcut")),onClick:it=>W(pe)},_e(pe.text),11,jY))),128))],2)):re("v-if",!0),E("div",{class:R(i(l).e("body"))},[se.value?(_(),$("div",{key:0,class:R(i(r).e("time-header"))},[E("span",{class:R(i(r).e("editor-wrap"))},[Q(i(jn),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Re.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onInput:Le[0]||(Le[0]=pe=>O.value=pe),onChange:Qe},null,8,["placeholder","model-value","disabled","readonly"])],2),dt((_(),$("span",{class:R(i(r).e("editor-wrap"))},[Q(i(jn),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":$e.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onFocus:ye,onInput:Le[1]||(Le[1]=pe=>I.value=pe),onChange:Be},null,8,["placeholder","model-value","disabled","readonly"]),Q(i(vd),{visible:Ae.value,format:ge.value,"parsed-value":w.value,onPick:Pe},null,8,["visible","format","parsed-value"])],2)),[[i(Yl),ke]])],2)):re("v-if",!0),dt(E("div",{class:R([i(r).e("header"),(P.value==="year"||P.value==="month")&&i(r).em("header","bordered")])},[E("span",{class:R(i(r).e("prev-btn"))},[E("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(l).e("icon-btn")]),disabled:i(ne),onClick:Le[2]||(Le[2]=pe=>N(!1))},[oe(he.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,qY),dt(E("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(l).e("icon-btn"),"arrow-left"]),disabled:i(ne),onClick:Le[3]||(Le[3]=pe=>F(!1))},[oe(he.$slots,"prev-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})])],10,UY),[[At,P.value==="date"]])],2),E("span",{role:"button",class:R(i(r).e("header-label")),"aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,onKeydown:Le[4]||(Le[4]=rn(pe=>de("year"),["enter"])),onClick:Le[5]||(Le[5]=pe=>de("year"))},_e(B.value),43,YY),dt(E("span",{role:"button","aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,class:R([i(r).e("header-label"),{active:P.value==="month"}]),onKeydown:Le[6]||(Le[6]=rn(pe=>de("month"),["enter"])),onClick:Le[7]||(Le[7]=pe=>de("month"))},_e(i(c)(`el.datepicker.month${T.value+1}`)),43,GY),[[At,P.value==="date"]]),E("span",{class:R(i(r).e("next-btn"))},[dt(E("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(l).e("icon-btn"),"arrow-right"]),disabled:i(ne),onClick:Le[8]||(Le[8]=pe=>F(!0))},[oe(he.$slots,"next-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})])],10,XY),[[At,P.value==="date"]]),E("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(l).e("icon-btn"),"d-arrow-right"]),disabled:i(ne),onClick:Le[9]||(Le[9]=pe=>N(!0))},[oe(he.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,JY)],2)],2),[[At,P.value!=="time"]]),E("div",{class:R(i(l).e("content")),onKeydown:Ke},[P.value==="date"?(_(),ie(z2,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),"show-week-number":he.showWeekNumber,onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(_(),ie(cu,{key:1,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"disabled-date":i(p),disabled:i(ne),"parsed-value":he.parsedValue,"cell-class-name":i(v),onPick:ue},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(_(),ie(uu,{key:2,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),onPick:te},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),he.showFooter&&Y.value&&X.value?(_(),$("div",{key:0,class:R(i(l).e("footer"))},[dt(Q(i(Ln),{text:"",size:"small",class:R(i(l).e("link-btn")),disabled:le.value,onClick:ce},{default:ae(()=>[_t(_e(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[At,!j.value&&he.showNow]]),he.showConfirm?(_(),ie(i(Ln),{key:0,plain:"",size:"small",class:R(i(l).e("link-btn")),disabled:H.value,onClick:Z},{default:ae(()=>[_t(_e(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),QY=ZY;const eG=Ce({...vw,...Uh}),tG=e=>{const{emit:t}=ht(),n=_l(),a=yn();return l=>{const r=ct(l.value)?l.value():l.value;if(r){t("pick",[lt(r[0]).locale(e.value),lt(r[1]).locale(e.value)]);return}l.onClick&&l.onClick({attrs:n,slots:a,emit:t})}},Xh=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:l,unit:r,sortDates:s})=>{const{emit:u}=ht(),{pickerNs:c}=Ne(jh),d=ve("date-range-picker"),{t:f,lang:h}=xt(),g=tG(h),p=V(),v=V(),m=V({endDate:null,selecting:!1}),y=k=>{m.value=k},b=(k=!1)=>{const T=i(p),M=i(v);iu([T,M])&&u("pick",[T,M],k)},w=k=>{m.value.selecting=k,k||(m.value.endDate=null)},C=k=>{if(Ve(k)&&k.length===2){const[T,M]=k;p.value=T,a.value=T,v.value=M,s(i(p),i(v))}else S()},S=()=>{let[k,T]=xf(i(t),{lang:i(h),step:l,unit:r,unlinkPanels:e.unlinkPanels});const M=O=>O.diff(O.startOf("d"),"ms"),A=i(n);if(A){let O=0,I=0;if(Ve(A)){const[L,z]=A.map(lt);O=M(L),I=M(z)}else{const L=M(lt(A));O=L,I=L}k=k.startOf("d").add(O,"ms"),T=T.startOf("d").add(I,"ms")}p.value=void 0,v.value=void 0,a.value=k,o.value=T};return fe(t,k=>{k&&S()},{immediate:!0}),fe(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!sn(k,[p.value,v.value]))&&C(k)},{immediate:!0}),fe(()=>e.visible,()=>{e.visible&&C(e.parsedValue)},{immediate:!0}),{minDate:p,maxDate:v,rangeState:m,lang:h,ppNs:c,drpNs:d,handleChangeRange:y,handleRangeConfirm:b,handleShortcutClick:g,onSelect:w,parseValue:C,t:f}},nG=(e,t,n,a)=>{const o=V("date"),l=V(),r=V("date"),s=V(),{disabledDate:u}=Ne(co).props,{t:c,lang:d}=xt(),f=x(()=>n.value.year()),h=x(()=>n.value.month()),g=x(()=>a.value.year()),p=x(()=>a.value.month());function v(S,k){const T=c("el.datepicker.year");if(S.value==="year"){const M=Math.floor(k.value/10)*10;return T?`${M} ${T} - ${M+9} ${T}`:`${M} - ${M+9}`}return`${k.value} ${T}`}function m(S){S==null||S.focus()}async function y(S,k){if(e.disabled)return;const T=S==="left"?o:r,M=S==="left"?l:s;T.value=k,await Ie(),m(M.value)}async function b(S,k,T){if(e.disabled)return;const M=k==="left",A=M?n:a,O=M?a:n,I=M?o:r,L=M?l:s;S==="year"&&(A.value=wd(A.value.year(T),d.value,u)),S==="month"&&(A.value=Hs(A.value,A.value.year(),T,d.value,u)),e.unlinkPanels||(O.value=k==="left"?A.value.add(1,"month"):A.value.subtract(1,"month")),I.value=S==="year"?"month":"date",await Ie(),m(L.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),a.value.toDate()],S)}function C(S,k,T){const M=T?"add":"subtract";return S==="year"?k[M](10,"year"):k[M](1,"year")}return{leftCurrentView:o,rightCurrentView:r,leftCurrentViewRef:l,rightCurrentViewRef:s,leftYear:f,rightYear:g,leftMonth:h,rightMonth:p,leftYearLabel:x(()=>v(o,f)),rightYearLabel:x(()=>v(r,g)),showLeftPicker:S=>y("left",S),showRightPicker:S=>y("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:C}},aG=["disabled","onClick"],oG=["aria-label","disabled"],lG=["aria-label","disabled"],rG=["disabled","aria-label"],sG=["disabled","aria-label"],iG=["tabindex","aria-disabled"],uG=["tabindex","aria-disabled"],cG=["disabled","aria-label"],dG=["disabled","aria-label"],fG=["aria-label","disabled"],pG=["disabled","aria-label"],hG=["tabindex","aria-disabled"],vG=["tabindex","aria-disabled"],yc="month";var mG=D({__name:"panel-date-range",props:eG,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=Ne(co),l=Ne(ju,void 0),{disabledDate:r,cellClassName:s,defaultTime:u,clearable:c}=o.props,d=Bt(o.props,"format"),f=Bt(o.props,"shortcuts"),h=Bt(o.props,"defaultValue"),{lang:g}=xt(),p=V(lt().locale(g.value)),v=V(lt().locale(g.value).add(1,yc)),{minDate:m,maxDate:y,rangeState:b,ppNs:w,drpNs:C,handleChangeRange:S,handleRangeConfirm:k,handleShortcutClick:T,onSelect:M,parseValue:A,t:O}=Xh(n,{defaultValue:h,defaultTime:u,leftDate:p,rightDate:v,unit:yc,sortDates:Zt});fe(()=>n.visible,je=>{!je&&b.value.selecting&&(A(n.parsedValue),M(!1))});const I=V({min:null,max:null}),L=V({min:null,max:null}),{leftCurrentView:z,rightCurrentView:q,leftCurrentViewRef:U,rightCurrentViewRef:F,leftYear:N,rightYear:P,leftMonth:B,rightMonth:W,leftYearLabel:K,rightYearLabel:j,showLeftPicker:G,showRightPicker:ee,handleLeftYearPick:te,handleRightYearPick:ue,handleLeftMonthPick:ne,handleRightMonthPick:de,handlePanelChange:se,adjustDateByView:Y}=nG(n,a,p,v),X=x(()=>!!f.value.length),H=x(()=>I.value.min!==null?I.value.min:m.value?m.value.format(me.value):""),Z=x(()=>I.value.max!==null?I.value.max:y.value||m.value?(y.value||m.value).format(me.value):""),le=x(()=>L.value.min!==null?L.value.min:m.value?m.value.format(ge.value):""),ce=x(()=>L.value.max!==null?L.value.max:y.value||m.value?(y.value||m.value).format(ge.value):""),ge=x(()=>n.timeFormat||Cb(d.value||"")||Dr),me=x(()=>n.dateFormat||wb(d.value||"")||ll),$e=je=>iu(je)&&(r?!r(je[0].toDate())&&!r(je[1].toDate()):!0),Re=()=>{p.value=Y(z.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("year")},Ae=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("month")},ye=()=>{n.unlinkPanels?v.value=Y(q.value,v.value,!0):(p.value=Y(q.value,p.value,!0),v.value=p.value.add(1,"month")),se("year")},ke=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),se("month")},be=()=>{p.value=Y(z.value,p.value,!0),se("year")},Pe=()=>{p.value=p.value.add(1,"month"),se("month")},Be=()=>{v.value=Y(q.value,v.value,!1),se("year")},Qe=()=>{v.value=v.value.subtract(1,"month"),se("month")},tt=x(()=>{const je=(B.value+1)%12,Ge=B.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+Ge,je)n.unlinkPanels&&P.value*12+W.value-(N.value*12+B.value+1)>=12),Te=dn(),Ye=x(()=>!(m.value&&y.value&&!b.value.selecting&&iu([m.value,y.value])&&!Te.value)),st=x(()=>n.type==="datetime"||n.type==="datetimerange"),Ke=(je,Ge)=>{if(je)return u?lt(u[Ge]||u).locale(g.value).year(je.year()).month(je.month()).date(je.date()):je},et=(je,Ge=!0)=>{const vt=je.minDate,Nn=je.maxDate,So=Ke(vt,0),Xa=Ke(Nn,1);y.value===Xa&&m.value===So||(a("calendar-change",[vt.toDate(),Nn&&Nn.toDate()]),y.value=Xa,m.value=So,!st.value&&Ge&&(Ge=!So||!Xa),k(Ge))},gt=V(!1),he=V(!1),Le=()=>{gt.value=!1},pe=()=>{he.value=!1},Ee=(je,Ge)=>{I.value[Ge]=je;const vt=lt(je,me.value).locale(g.value);if(vt.isValid()){if(r&&r(vt.toDate()))return;Ge==="min"?(p.value=vt,m.value=(m.value||p.value).year(vt.year()).month(vt.month()).date(vt.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(m.value))&&(v.value=vt.add(1,"month"),y.value=m.value.add(1,"month"))):(v.value=vt,y.value=(y.value||v.value).year(vt.year()).month(vt.month()).date(vt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(y.value))&&(p.value=vt.subtract(1,"month"),m.value=y.value.subtract(1,"month"))),Zt(m.value,y.value),k(!0)}},it=(je,Ge)=>{I.value[Ge]=null},Pt=(je,Ge)=>{L.value[Ge]=je;const vt=lt(je,ge.value).locale(g.value);vt.isValid()&&(Ge==="min"?(gt.value=!0,m.value=(m.value||p.value).hour(vt.hour()).minute(vt.minute()).second(vt.second()),p.value=m.value):(he.value=!0,y.value=(y.value||v.value).hour(vt.hour()).minute(vt.minute()).second(vt.second()),v.value=y.value))},Xt=(je,Ge)=>{L.value[Ge]=null,Ge==="min"?(p.value=m.value,gt.value=!1,(!y.value||y.value.isBefore(m.value))&&(y.value=m.value)):(v.value=y.value,he.value=!1,y.value&&y.value.isBefore(m.value)&&(m.value=y.value)),k(!0)},Oe=(je,Ge,vt)=>{L.value.min||(je&&(m.value=(m.value||p.value).hour(je.hour()).minute(je.minute()).second(je.second())),vt||(gt.value=Ge),(!y.value||y.value.isBefore(m.value))&&(y.value=m.value,v.value=je,Ie(()=>{A(n.parsedValue)})),k(!0))},Fe=(je,Ge,vt)=>{L.value.max||(je&&(y.value=(y.value||v.value).hour(je.hour()).minute(je.minute()).second(je.second())),vt||(he.value=Ge),y.value&&y.value.isBefore(m.value)&&(m.value=y.value),k(!0))},Je=()=>{hn(),a("clear")},hn=()=>{let je=null;o!=null&&o.emptyValues&&(je=o.emptyValues.valueOnClear.value),p.value=xf(i(h),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,m.value=void 0,k(!0),a("pick",je)},zt=je=>Fs(je,d.value||"",g.value,l);function Zt(je,Ge){if(n.unlinkPanels&&Ge){const vt=(je==null?void 0:je.year())||0,Nn=(je==null?void 0:je.month())||0,So=Ge.year(),Xa=Ge.month();v.value=vt===So&&Nn===Xa?Ge.add(1,yc):Ge}else v.value=p.value.add(1,yc),Ge&&(v.value=v.value.hour(Ge.hour()).minute(Ge.minute()).second(Ge.second()))}return a("set-picker-option",["isValidValue",$e]),a("set-picker-option",["parseUserInput",zt]),a("set-picker-option",["handleClear",hn]),(je,Ge)=>(_(),$("div",{class:R([i(w).b(),i(C).b(),i(w).is("border",je.border),i(w).is("disabled",i(Te)),{"has-sidebar":je.$slots.sidebar||X.value,"has-time":st.value}])},[E("div",{class:R(i(w).e("body-wrapper"))},[oe(je.$slots,"sidebar",{class:R(i(w).e("sidebar"))}),X.value?(_(),$("div",{key:0,class:R(i(w).e("sidebar"))},[(_(!0),$(He,null,Ct(f.value,(vt,Nn)=>(_(),$("button",{key:Nn,type:"button",disabled:i(Te),class:R(i(w).e("shortcut")),onClick:So=>i(T)(vt)},_e(vt.text),11,aG))),128))],2)):re("v-if",!0),E("div",{class:R(i(w).e("body"))},[st.value?(_(),$("div",{key:0,class:R(i(C).e("time-header"))},[E("span",{class:R(i(C).e("editors-wrap"))},[E("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.startDate"),class:R(i(C).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!je.editable,onInput:Ge[0]||(Ge[0]=vt=>Ee(vt,"min")),onChange:Ge[1]||(Ge[1]=vt=>it(vt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),dt((_(),$("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.startTime"),"model-value":le.value,"validate-event":!1,readonly:!je.editable,onFocus:Ge[2]||(Ge[2]=vt=>gt.value=!0),onInput:Ge[3]||(Ge[3]=vt=>Pt(vt,"min")),onChange:Ge[4]||(Ge[4]=vt=>Xt(vt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(vd),{visible:gt.value,format:ge.value,"datetime-role":"start","parsed-value":i(m)||p.value,onPick:Oe},null,8,["visible","format","parsed-value"])],2)),[[i(Yl),Le]])],2),E("span",null,[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})]),E("span",{class:R([i(C).e("editors-wrap"),"is-right"])},[E("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.endDate"),"model-value":Z.value,readonly:!i(m)||!je.editable,"validate-event":!1,onInput:Ge[5]||(Ge[5]=vt=>Ee(vt,"max")),onChange:Ge[6]||(Ge[6]=vt=>it(vt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),dt((_(),$("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.endTime"),"model-value":ce.value,readonly:!i(m)||!je.editable,"validate-event":!1,onFocus:Ge[7]||(Ge[7]=vt=>i(m)&&(he.value=!0)),onInput:Ge[8]||(Ge[8]=vt=>Pt(vt,"max")),onChange:Ge[9]||(Ge[9]=vt=>Xt(vt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(vd),{"datetime-role":"end",visible:he.value,format:ge.value,"parsed-value":i(y)||v.value,onPick:Fe},null,8,["visible","format","parsed-value"])],2)),[[i(Yl),pe]])],2)],2)):re("v-if",!0),E("div",{class:R([[i(w).e("content"),i(C).e("content")],"is-left"])},[E("div",{class:R(i(C).e("header"))},[E("button",{type:"button",class:R([i(w).e("icon-btn"),"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),disabled:i(Te),onClick:Re},[oe(je.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,oG),dt(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),disabled:i(Te),onClick:Ae},[oe(je.$slots,"prev-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})])],10,lG),[[At,i(z)==="date"]]),je.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!nt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Te))],"d-arrow-right"]),"aria-label":i(O)("el.datepicker.nextYear"),onClick:be},[oe(je.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,rG)):re("v-if",!0),je.unlinkPanels&&i(z)==="date"?(_(),$("button",{key:1,type:"button",disabled:!tt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!tt.value||i(Te))],"arrow-right"]),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Pe},[oe(je.$slots,"next-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})])],10,sG)):re("v-if",!0),E("div",null,[E("span",{role:"button",class:R(i(C).e("header-label")),"aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,onKeydown:Ge[10]||(Ge[10]=rn(vt=>i(G)("year"),["enter"])),onClick:Ge[11]||(Ge[11]=vt=>i(G)("year"))},_e(i(K)),43,iG),dt(E("span",{role:"button","aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,class:R([i(C).e("header-label"),{active:i(z)==="month"}]),onKeydown:Ge[12]||(Ge[12]=rn(vt=>i(G)("month"),["enter"])),onClick:Ge[13]||(Ge[13]=vt=>i(G)("month"))},_e(i(O)(`el.datepicker.month${p.value.month()+1}`)),43,uG),[[At,i(z)==="date"]])])],2),i(z)==="date"?(_(),ie(z2,{key:0,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"range",date:p.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":je.showWeekNumber,disabled:i(Te),onChangerange:i(S),onPick:et,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(z)==="year"?(_(),ie(cu,{key:1,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"year",date:p.value,"disabled-date":i(r),"parsed-value":je.parsedValue,disabled:i(Te),onPick:i(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(z)==="month"?(_(),ie(uu,{key:2,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"month",date:p.value,"parsed-value":je.parsedValue,"disabled-date":i(r),disabled:i(Te),onPick:i(ne)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),E("div",{class:R([[i(w).e("content"),i(C).e("content")],"is-right"])},[E("div",{class:R(i(C).e("header"))},[je.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!nt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Te))],"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),onClick:Be},[oe(je.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,cG)):re("v-if",!0),je.unlinkPanels&&i(q)==="date"?(_(),$("button",{key:1,type:"button",disabled:!tt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!tt.value||i(Te))],"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),onClick:Qe},[oe(je.$slots,"prev-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})])],10,dG)):re("v-if",!0),E("button",{type:"button","aria-label":i(O)("el.datepicker.nextYear"),class:R([i(w).e("icon-btn"),"d-arrow-right"]),disabled:i(Te),onClick:ye},[oe(je.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,fG),dt(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-right"]),disabled:i(Te),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:ke},[oe(je.$slots,"next-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})])],10,pG),[[At,i(q)==="date"]]),E("div",null,[E("span",{role:"button",class:R(i(C).e("header-label")),"aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,onKeydown:Ge[14]||(Ge[14]=rn(vt=>i(ee)("year"),["enter"])),onClick:Ge[15]||(Ge[15]=vt=>i(ee)("year"))},_e(i(j)),43,hG),dt(E("span",{role:"button","aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,class:R([i(C).e("header-label"),{active:i(q)==="month"}]),onKeydown:Ge[16]||(Ge[16]=rn(vt=>i(ee)("month"),["enter"])),onClick:Ge[17]||(Ge[17]=vt=>i(ee)("month"))},_e(i(O)(`el.datepicker.month${v.value.month()+1}`)),43,vG),[[At,i(q)==="date"]])])],2),i(q)==="date"?(_(),ie(z2,{key:0,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":je.showWeekNumber,disabled:i(Te),onChangerange:i(S),onPick:et,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(q)==="year"?(_(),ie(cu,{key:1,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"year",date:v.value,"disabled-date":i(r),"parsed-value":je.parsedValue,disabled:i(Te),onPick:i(ue)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(q)==="month"?(_(),ie(uu,{key:2,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"month",date:v.value,"parsed-value":je.parsedValue,"disabled-date":i(r),disabled:i(Te),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2)],2)],2),je.showFooter&&st.value&&(je.showConfirm||i(c))?(_(),$("div",{key:0,class:R(i(w).e("footer"))},[i(c)?(_(),ie(i(Ln),{key:0,text:"",size:"small",class:R(i(w).e("link-btn")),onClick:Je},{default:ae(()=>[_t(_e(i(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),je.showConfirm?(_(),ie(i(Ln),{key:1,plain:"",size:"small",class:R(i(w).e("link-btn")),disabled:Ye.value,onClick:Ge[18]||(Ge[18]=vt=>i(k)(!1))},{default:ae(()=>[_t(_e(i(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),gG=mG;const yG=Ce({...Uh}),bG=["pick","set-picker-option","calendar-change"],wG=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=xt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:x(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:x(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:x(()=>t.value.year()),rightYear:x(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},CG=["disabled","onClick"],_G=["disabled"],SG=["disabled"],xG=["disabled"],kG=["disabled"],bc="year";var EG=D({name:"DatePickerMonthRange",__name:"panel-month-range",props:yG,emits:bG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),l=Ne(co),r=Ne(ju,void 0),{shortcuts:s,disabledDate:u,cellClassName:c}=l.props,d=Bt(l.props,"format"),f=Bt(l.props,"defaultValue"),h=V(lt().locale(o.value)),g=V(lt().locale(o.value).add(1,bc)),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:S,onSelect:k,parseValue:T}=Xh(n,{defaultValue:f,leftDate:h,rightDate:g,unit:bc,sortDates:K}),M=x(()=>!!s.length),{leftPrevYear:A,rightNextYear:O,leftNextYear:I,rightPrevYear:L,leftLabel:z,rightLabel:q,leftYear:U,rightYear:F}=wG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:h,rightDate:g}),N=x(()=>n.unlinkPanels&&F.value>U.value+1),P=(G,ee=!0)=>{const te=G.minDate,ue=G.maxDate;v.value===ue&&p.value===te||(a("calendar-change",[te.toDate(),ue&&ue.toDate()]),v.value=ue,p.value=te,ee&&C())},B=()=>{let G=null;l!=null&&l.emptyValues&&(G=l.emptyValues.valueOnClear.value),h.value=xf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=h.value.add(1,"year"),a("pick",G)},W=G=>Fs(G,d.value,o.value,r);function K(G,ee){n.unlinkPanels&&ee?g.value=((G==null?void 0:G.year())||0)===ee.year()?ee.add(1,bc):ee:g.value=h.value.add(1,bc)}const j=dn();return fe(()=>n.visible,G=>{!G&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",iu]),a("set-picker-option",["parseUserInput",W]),a("set-picker-option",["handleClear",B]),(G,ee)=>(_(),$("div",{class:R([i(y).b(),i(b).b(),i(y).is("border",G.border),i(y).is("disabled",i(j)),{"has-sidebar":!!G.$slots.sidebar||M.value}])},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(G.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),M.value?(_(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(_(!0),$(He,null,Ct(i(s),(te,ue)=>(_(),$("button",{key:ue,type:"button",class:R(i(y).e("shortcut")),disabled:i(j),onClick:ne=>i(S)(te)},_e(te.text),11,CG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-left"])},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),disabled:i(j),onClick:ee[0]||(ee[0]=(...te)=>i(A)&&i(A)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,_G),G.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...te)=>i(I)&&i(I)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,SG)):re("v-if",!0),E("div",null,_e(i(z)),1)],2),Q(uu,{"selection-mode":"range",date:h.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-right"])},[E("div",{class:R(i(b).e("header"))},[G.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...te)=>i(L)&&i(L)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,xG)):re("v-if",!0),E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(j),onClick:ee[3]||(ee[3]=(...te)=>i(O)&&i(O)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,kG),E("div",null,_e(i(q)),1)],2),Q(uu,{"selection-mode":"range",date:g.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),TG=EG;const MG=Ce({...Uh}),OG=["pick","set-picker-option","calendar-change"],$G=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:x(()=>{const s=Math.floor(t.value.year()/10)*10;return`${s}-${s+9}`}),rightLabel:x(()=>{const s=Math.floor(n.value.year()/10)*10;return`${s}-${s+9}`}),leftYear:x(()=>Math.floor(t.value.year()/10)*10+9),rightYear:x(()=>Math.floor(n.value.year()/10)*10)}),AG=["disabled","onClick"],RG=["disabled"],NG=["disabled"],PG=["disabled"],IG=["disabled"],as=10,gi="year";var LG=D({name:"DatePickerYearRange",__name:"panel-year-range",props:MG,emits:OG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),l=V(lt().locale(o.value)),r=V(lt().locale(o.value).add(as,gi)),s=Ne(ju,void 0),u=Ne(co),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,h=Bt(u.props,"format"),g=Bt(u.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:S,onSelect:k,parseValue:T}=Xh(n,{defaultValue:g,leftDate:l,rightDate:r,step:as,unit:gi,sortDates:ue}),{leftPrevYear:M,rightNextYear:A,leftNextYear:O,rightPrevYear:I,leftLabel:L,rightLabel:z,leftYear:q,rightYear:U}=$G({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:l,rightDate:r}),F=dn(),N=x(()=>!!c.length),P=x(()=>[y.b(),b.b(),y.is("border",n.border),y.is("disabled",F.value),{"has-sidebar":!!yn().sidebar||N.value}]),B=x(()=>({content:[y.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[y.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),y.is("disabled",!K.value||F.value),"d-arrow-right"]})),W=x(()=>({content:[y.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[y.e("icon-btn"),y.is("disabled",!K.value||F.value),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),"d-arrow-right"]})),K=x(()=>n.unlinkPanels&&U.value>q.value+1),j=(ne,de=!0)=>{const se=ne.minDate,Y=ne.maxDate;v.value===Y&&p.value===se||(a("calendar-change",[se.toDate(),Y&&Y.toDate()]),v.value=Y,p.value=se,de&&C())},G=ne=>Fs(ne,h.value,o.value,s),ee=ne=>iu(ne)&&(d?!d(ne[0].toDate())&&!d(ne[1].toDate()):!0),te=()=>{let ne=null;u!=null&&u.emptyValues&&(ne=u.emptyValues.valueOnClear.value);const de=xf(i(g),{lang:i(o),step:as,unit:gi,unlinkPanels:n.unlinkPanels});l.value=de[0],r.value=de[1],a("pick",ne)};function ue(ne,de){if(n.unlinkPanels&&de){const se=(ne==null?void 0:ne.year())||0,Y=de.year();r.value=se+as>Y?de.add(as,gi):de}else r.value=l.value.add(as,gi)}return fe(()=>n.visible,ne=>{!ne&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",G]),a("set-picker-option",["handleClear",te]),(ne,de)=>(_(),$("div",{class:R(P.value)},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(ne.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),N.value?(_(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(_(!0),$(He,null,Ct(i(c),(se,Y)=>(_(),$("button",{key:Y,type:"button",class:R(i(y).e("shortcut")),disabled:i(F),onClick:X=>i(S)(se)},_e(se.text),11,AG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R(B.value.content)},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R(B.value.arrowLeftBtn),disabled:i(F),onClick:de[0]||(de[0]=(...se)=>i(M)&&i(M)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,RG),ne.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!K.value||i(F),class:R(B.value.arrowRightBtn),onClick:de[1]||(de[1]=(...se)=>i(O)&&i(O)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,NG)):re("v-if",!0),E("div",null,_e(i(L)),1)],2),Q(cu,{"selection-mode":"range",date:l.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R(W.value.content)},[E("div",{class:R(i(b).e("header"))},[ne.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!K.value||i(F),class:R(W.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...se)=>i(I)&&i(I)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,PG)):re("v-if",!0),E("button",{type:"button",class:R(W.value.arrowRightBtn),disabled:i(F),onClick:de[3]||(de[3]=(...se)=>i(A)&&i(A)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,IG),E("div",null,_e(i(z)),1)],2),Q(cu,{"selection-mode":"range",date:r.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),VG=LG;const BG=function(e){switch(e){case"daterange":case"datetimerange":return gG;case"monthrange":return TG;case"yearrange":return VG;default:return QY}};var mw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){var o=a.prototype,l=o.format;o.format=function(r){var s=this,u=this.$locale();if(!this.isValid())return l.bind(this)(r);var c=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return u.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return u.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return l.bind(this)(d)}}})})(mw);var zG=mw.exports;const DG=Ol(zG);var gw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){var n="week",a="year";return function(o,l,r){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=r(this).startOf(a).add(1,a).date(c),f=r(this).endOf(n);if(d.isBefore(f))return 1}var h=r(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?r(this).startOf("week").week():Math.ceil(g)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(gw);var HG=gw.exports;const FG=Ol(HG);var yw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),l=this.week(),r=this.year();return l===1&&o===11?r+1:o===0&&l>=52?r-1:r}}})})(yw);var KG=yw.exports;const WG=Ol(KG);var bw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a,o){a.prototype.dayOfYear=function(l){var r=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return l==null?r:this.add(l-r,"day")}}})})(bw);var jG=bw.exports;const qG=Ol(jG);var ww={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,l){return this.isSame(o,l)||this.isAfter(o,l)}}})})(ww);var UG=ww.exports;const YG=Ol(UG);var Cw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,l){return this.isSame(o,l)||this.isBefore(o,l)}}})})(Cw);var GG=Cw.exports;const XG=Ol(GG);function JG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}lt.extend(Pb);lt.extend(DG);lt.extend(zh);lt.extend(FG);lt.extend(WG);lt.extend(qG);lt.extend(YG);lt.extend(XG);var ZG=D({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:xY,emits:[at,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ve("picker-panel");kt(Ne(co,void 0))&&bt(co,{props:Nt({...Bn(e)})}),bt(jh,{slots:t,pickerNs:o});const{parsedValue:l,onCalendarChange:r,onPanelChange:s,onSetPickerOption:u,onPick:c}=Ne(yb,()=>xb(e,n),!0);return()=>Q(BG(e.type),pt(Mu(a,"onPick"),e,{parsedValue:l.value,"onSet-picker-option":u,"onCalendar-change":r,"onPanel-change":s,onClear:()=>n("clear"),onPick:c}),JG(t)?t:{default:()=>[t]})}});const _w=rt(ZG),QG=Ce({...Bh,type:{type:J(String),default:"date"}});function eX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}var tX=D({name:"ElDatePicker",install:null,props:QG,emits:[at],setup(e,{expose:t,emit:n,slots:a}){bt(ju,x(()=>!e.format)),bt(Lh,Nt(Bt(e,"popperOptions")));const o=V();t({focus:()=>{var r;(r=o.value)==null||r.focus()},blur:()=>{var r;(r=o.value)==null||r.blur()},handleOpen:()=>{var r;(r=o.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=o.value)==null||r.handleClose()}});const l=r=>{n(at,r)};return()=>{const r=e.format??(IW[e.type]||ll);return Q(kb,pt(e,{format:r,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:s=>Q(_w,pt({disabled:e.disabled,editable:e.editable,border:!1},s),eX(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}}});const nX=rt(tX),aX=Ce({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:On,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),Sw="ElDescriptionsItem",oX=Ce({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:k1,default:"left"},labelAlign:{type:String,values:k1},className:{type:String,default:""},labelClassName:{type:String,default:""}}),xw=D({name:Sw,props:oX}),Jh=Symbol("elDescriptions"),lX=Ce({row:{type:J(Array),default:()=>[]}});var yi=D({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ne(Jh,{})}},render(){var v;const e=nA(this.cell),t=(((v=this.cell)==null?void 0:v.dirs)||[]).map(m=>{const{dir:y,arg:b,modifiers:w,value:C}=m;return[y,C,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",l=()=>{var m,y,b;return((b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.label)==null?void 0:b.call(y))||e.label},r=()=>{var m,y,b;return(b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.default)==null?void 0:b.call(y)},s=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,h=e.labelClassName,g={width:cn(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:cn(e.minWidth)},p=ve("descriptions");switch(this.type){case"label":return dt(qe(this.tag,{style:g,class:[p.e("cell"),p.e("label"),p.is("bordered-label",n),p.is("vertical-label",o),d,h],colSpan:o?s:1,rowspan:o?1:u},l()),t);case"content":return dt(qe(this.tag,{style:g,class:[p.e("cell"),p.e("content"),p.is("bordered-content",n),p.is("vertical-content",o),c,f],colSpan:o?s:s*2-1,rowspan:o?u*2-1:u},r()),t);default:{const m=l(),y={},b=cn(e.labelWidth??this.descriptions.labelWidth);return b&&(y.width=b,y.display="inline-block"),dt(qe("td",{style:g,class:[p.e("cell"),c],colSpan:s,rowspan:u},[Cn(m)?void 0:qe("span",{style:y,class:[p.e("label"),h]},m),qe("span",{class:[p.e("content"),f]},r())]),t)}}}});const rX={key:1};var sX=D({name:"ElDescriptionsRow",__name:"descriptions-row",props:lX,setup(e){const t=Ne(Jh,{});return(n,a)=>i(t).direction==="vertical"?(_(),$(He,{key:0},[E("tr",null,[(_(!0),$(He,null,Ct(e.row,(o,l)=>(_(),ie(i(yi),{key:`tr1-${l}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),E("tr",null,[(_(!0),$(He,null,Ct(e.row,(o,l)=>(_(),ie(i(yi),{key:`tr2-${l}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),$("tr",rX,[(_(!0),$(He,null,Ct(e.row,(o,l)=>(_(),$(He,{key:`tr3-${l}`},[i(t).border?(_(),$(He,{key:0},[Q(i(yi),{cell:o,tag:"td",type:"label"},null,8,["cell"]),Q(i(yi),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ie(i(yi),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),iX=sX,uX=D({name:"ElDescriptions",__name:"description",props:aX,setup(e){const t=e,n=ve("descriptions"),a=En(),o=yn();bt(Jh,t);const l=x(()=>[n.b(),n.m(a.value)]),r=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),s=()=>{if(!o.default)return[];const u=Ra(o.default()).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)===Sw}),c=[];let d=[],f=t.column,h=0;const g=[];return u.forEach((p,v)=>{var w,C,S;const m=((w=p.props)==null?void 0:w.span)||1,y=((C=p.props)==null?void 0:C.rowspan)||1,b=c.length;if(g[b]||(g[b]=0),y>1)for(let k=1;k0&&(f-=g[b],g[b]=0),vf?f:m),v===u.length-1){const k=t.column-h%t.column;d.push(r(p,k,f,!0)),c.push(d);return}m(_(),$("div",{class:R(l.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(_(),$("div",{key:0,class:R(i(n).e("header"))},[E("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[_t(_e(e.title),1)])],2),E("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[_t(_e(e.extra),1)])],2)],2)):re("v-if",!0),E("div",{class:R(i(n).e("body"))},[E("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[E("tbody",null,[(_(!0),$(He,null,Ct(s(),(d,f)=>(_(),ie(iX,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),cX=uX;const dX=rt(cX,{DescriptionsItem:xw}),fX=ln(xw),kw=Ce({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ft},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),pX={close:()=>!0},Ew=Ce({...kw,appendToBody:Boolean,appendTo:{type:Au.to.type,default:"body"},beforeClose:{type:J(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:J([String,Object]),default:void 0}}),Tw={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[at]:e=>Dt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},hX=Ce({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:J([String,Array,Object])},zIndex:{type:J([String,Number])}}),vX={click:e=>e instanceof MouseEvent},mX="overlay";var gX=D({name:"ElOverlay",props:hX,emits:vX,setup(e,{slots:t,emit:n}){const a=ve(mX),o=u=>{n("click",u)},{onClick:l,onMousedown:r,onMouseup:s}=mh(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:r,onMouseup:s},[oe(t,"default")],Ja.STYLE|Ja.CLASS|Ja.PROPS,["onClick","onMouseup","onMousedown"]):qe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const Zh=gX,Mw=Symbol("dialogInjectionKey"),C0="dialog-fade",yX="ElDialog",Ow=(e,t)=>{const n=ht().emit,{nextZIndex:a}=Pu();let o="";const l=Un(),r=Un(),s=V(!1),u=V(!1),c=V(!1),d=V(e.zIndex??a()),f=V(!1);let h,g;const p=Tl(),v=x(()=>{var j;return((j=p.value)==null?void 0:j.namespace)??Bi}),m=x(()=>{var j;return(j=p.value)==null?void 0:j.dialog}),y=x(()=>{const j={},G=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(j[`${G}-margin-top`]=e.top);const ee=cn(e.width);ee&&(j[`${G}-width`]=ee)}return j}),b=x(()=>{var j;return(e.draggable??((j=m.value)==null?void 0:j.draggable)??!1)&&!e.fullscreen}),w=x(()=>{var j;return e.alignCenter??((j=m.value)==null?void 0:j.alignCenter)??!1}),C=x(()=>{var j;return e.overflow??((j=m.value)==null?void 0:j.overflow)??!1}),S=x(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),k=x(()=>w.value?{display:"flex"}:{}),T=x(()=>{var ee;const j=e.transition??((ee=m.value)==null?void 0:ee.transition)??C0,G={name:j,onAfterEnter:M,onBeforeLeave:O,onAfterLeave:A};if(Mt(j)){const te={...j},ue=(ne,de)=>se=>{Ve(ne)?ne.forEach(Y=>{ct(Y)&&Y(se)}):ct(ne)&&ne(se),de()};return te.onAfterEnter=ue(te.onAfterEnter,M),te.onBeforeLeave=ue(te.onBeforeLeave,O),te.onAfterLeave=ue(te.onAfterLeave,A),te.name||(te.name=C0,ft(yX,`transition.name is missing when using object syntax, fallback to '${C0}'`)),te}return G});function M(){n("opened")}function A(){n("closed"),n(at,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function O(){f.value=!0,n("close")}function I(){g==null||g(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Os(()=>U(),e.openDelay):U()}function L(){h==null||h(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=Os(()=>F(),e.closeDelay):F()}function z(){function j(G){G||(u.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(j):L()}function q(){e.closeOnClickModal&&z()}function U(){Rt&&(s.value=!0)}function F(){s.value=!1}function N(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function B(j){var G;((G=j.detail)==null?void 0:G.focusReason)==="pointer"&&j.preventDefault()}e.lockScroll&&cf(s);function W(){e.closeOnPressEscape&&z()}function K(){!s.value||!S.value||e.zIndex!==void 0||(d.value=a())}return fe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),fe(()=>e.modelValue,j=>{j?(u.value=!1,f.value=!1,I(),c.value=!0,d.value=e.zIndex??a(),Ie(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):s.value&&L()}),fe(()=>e.fullscreen,j=>{t.value&&(j?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),mt(()=>{e.modelValue&&(s.value=!0,c.value=!0,I())}),{afterEnter:M,afterLeave:A,beforeLeave:O,handleClose:z,onModalClick:q,close:L,doClose:F,onOpenAutoFocus:N,onCloseAutoFocus:P,onCloseRequested:W,onFocusoutPrevented:B,bringToFront:K,titleId:l,bodyId:r,closed:u,style:y,overlayDialogStyle:k,rendered:c,visible:s,zIndex:d,transitionConfig:T,_draggable:b,_alignCenter:w,_overflow:C,closing:f,penetrable:S}},Qh=(...e)=>t=>{e.forEach(n=>{n.value=t})},bX=["aria-level"],wX=["aria-label"],CX=["id"];var _X=D({name:"ElDialogContent",__name:"dialog-content",props:kw,emits:pX,setup(e,{expose:t}){const{t:n}=xt(),{Close:a}=jy,o=e,{dialogRef:l,headerRef:r,bodyId:s,ns:u,style:c}=Ne(Mw),{focusTrapRef:d}=Ne(nb),f=Qh(d,l),h=x(()=>!!o.draggable),{resetPosition:g,updatePosition:p,isDragging:v}=D8(l,r,h,x(()=>!!o.overflow)),m=x(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",h.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:p}),(y,b)=>(_(),$("div",{ref:i(f),class:R(m.value),style:We(i(c)),tabindex:"-1"},[E("header",{ref_key:"headerRef",ref:r,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(y.$slots,"header",{},()=>[E("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},_e(e.title),11,bX)]),e.showClose?(_(),$("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=w=>y.$emit("close"))},[Q(i(ze),{class:R(i(u).e("close"))},{default:ae(()=>[(_(),ie(ut(e.closeIcon||i(a))))]),_:1},8,["class"])],10,wX)):re("v-if",!0)],2),E("div",{id:i(s),class:R([i(u).e("body"),e.bodyClass])},[oe(y.$slots,"default")],10,CX),y.$slots.footer?(_(),$("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(y.$slots,"footer")],2)):re("v-if",!0)],6))}}),SX=_X;const xX=["aria-label","aria-labelledby","aria-describedby"];var kX=D({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:Ew,emits:Tw,setup(e,{expose:t}){const n=e,a=yn();Lo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},x(()=>!!a.title));const o=ve("dialog"),l=V(),r=V(),s=V(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,transitionConfig:p,zIndex:v,_draggable:m,_alignCenter:y,_overflow:b,penetrable:w,handleClose:C,onModalClick:S,onOpenAutoFocus:k,onCloseAutoFocus:T,onCloseRequested:M,onFocusoutPrevented:A,bringToFront:O,closing:I}=Ow(n,l);bt(Mw,{dialogRef:l,headerRef:r,bodyId:d,ns:o,rendered:g,style:f});const L=mh(S);return t({visible:u,dialogContentRef:s,resetPosition:()=>{var q;(q=s.value)==null||q.resetPosition()},handleClose:C}),(q,U)=>(_(),ie(i(ti),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(qn,pt(i(p),{persisted:""}),{default:ae(()=>[dt(Q(i(Zh),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(w))],"z-index":i(v)},{default:ae(()=>[E("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(I))]),style:We(i(h)),onClick:U[0]||(U[0]=(...F)=>i(L).onClick&&i(L).onClick(...F)),onMousedown:U[1]||(U[1]=(...F)=>i(L).onMousedown&&i(L).onMousedown(...F)),onMouseup:U[2]||(U[2]=(...F)=>i(L).onMouseup&&i(L).onMouseup(...F))},[Q(i(ai),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(k),onFocusAfterReleased:i(T),onFocusoutPrevented:i(A),onReleaseRequested:i(M)},{default:ae(()=>[i(g)?(_(),ie(SX,pt({key:0,ref_key:"dialogContentRef",ref:s},q.$attrs,{center:e.center,"align-center":i(y),"close-icon":e.closeIcon,draggable:i(m),overflow:i(b),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(C),onMousedown:i(O)}),ga({header:ae(()=>[q.$slots.title?oe(q.$slots,"title",{key:1}):oe(q.$slots,"header",{key:0,close:i(C),titleId:i(c),titleClass:i(o).e("title")})]),default:ae(()=>[oe(q.$slots,"default")]),_:2},[q.$slots.footer?{name:"footer",fn:ae(()=>[oe(q.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,xX)]),_:3},8,["mask","overlay-class","z-index"]),[[At,i(u)]])]),_:3},16)]),_:3},8,["to","disabled"]))}}),EX=kX;const TX=rt(EX),MX=Ce({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:J(String),default:"solid"}});var OX=D({name:"ElDivider",__name:"divider",props:MX,setup(e){const t=e,n=ve("divider"),a=x(()=>n.cssVar({"border-style":t.borderStyle}));return(o,l)=>(_(),$("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:We(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(_(),$("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),$X=OX;const $w=rt($X),AX=Ce({...Ew,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),RX={...Tw,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function NX(e,t,n){const{width:a,height:o}=zp(),l=x(()=>["ltr","rtl"].includes(e.direction)),r=x(()=>["ltr","ttb"].includes(e.direction)?1:-1),s=x(()=>l.value?a.value:o.value),u=x(()=>R6(c.value+r.value*d.value,4,s.value)),c=V(0),d=V(0),f=V(!1),h=V(!1);let g=[],p=[];const v=()=>{var S;const C=(S=t.value)==null?void 0:S.closest('[aria-modal="true"]');return C?l.value?C.offsetWidth:C.offsetHeight:100};fe(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,d.value=0,b()});const m=C=>{e.resizable&&(h.value||(c.value=v(),h.value=!0),g=[C.pageX,C.pageY],f.value=!0,n("resize-start",C,c.value),p.push(Vt(window,"mouseup",b),Vt(window,"mousemove",y)))},y=C=>{const{pageX:S,pageY:k}=C,T=S-g[0],M=k-g[1];d.value=l.value?T:M,n("resize",C,u.value)},b=C=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,p.forEach(S=>S==null?void 0:S()),p=[],C&&n("resize-end",C,c.value))},w=Vt(t,"mousedown",m);return Lt(()=>{w(),b()}),{size:x(()=>h.value?`${u.value}px`:cn(e.size)),isResizing:f,isHorizontal:l}}const PX=["aria-label","aria-labelledby","aria-describedby"],IX=["id","aria-level"],LX=["aria-label"],VX=["id"];var BX=D({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:AX,emits:RX,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn();Lo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},x(()=>!!l.title));const r=V(),s=V(),u=V(),c=ve("drawer"),{t:d}=xt(),{afterEnter:f,afterLeave:h,beforeLeave:g,visible:p,rendered:v,titleId:m,bodyId:y,zIndex:b,onModalClick:w,onOpenAutoFocus:C,onCloseAutoFocus:S,onFocusoutPrevented:k,onCloseRequested:T,handleClose:M}=Ow(a,r),{isHorizontal:A,size:O,isResizing:I}=NX(a,u,o),L=x(()=>a.modalPenetrable&&!a.modal);return t({handleClose:M,afterEnter:f,afterLeave:h}),(z,q)=>(_(),ie(i(ti),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(qn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(h),onBeforeLeave:i(g),persisted:""},{default:ae(()=>[dt(Q(i(Zh),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",L.value)],"z-index":i(b),onClick:i(w)},{default:ae(()=>[Q(i(ai),{loop:"",trapped:i(p),"focus-trap-el":r.value,"focus-start-el":s.value,onFocusAfterTrapped:i(C),onFocusAfterReleased:i(S),onFocusoutPrevented:i(k),onReleaseRequested:i(T)},{default:ae(()=>[E("div",pt({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(y)},z.$attrs,{class:[i(c).b(),e.direction,i(p)&&"open",i(c).is("dragging",i(I))],style:{[i(A)?"width":"height"]:i(O)},role:"dialog",onClick:q[1]||(q[1]=Xe(()=>{},["stop"]))}),[E("span",{ref_key:"focusStartRef",ref:s,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(_(),$("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[z.$slots.title?oe(z.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(z.$slots,"header",{key:0,close:i(M),titleId:i(m),titleClass:i(c).e("title")},()=>[E("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},_e(e.title),11,IX)]),e.showClose?(_(),$("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:q[0]||(q[0]=(...U)=>i(M)&&i(M)(...U))},[Q(i(ze),{class:R(i(c).e("close"))},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class"])],10,LX)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(_(),$("div",{key:1,id:i(y),class:R([i(c).e("body"),e.bodyClass])},[oe(z.$slots,"default")],10,VX)):re("v-if",!0),z.$slots.footer?(_(),$("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(z.$slots,"footer")],2)):re("v-if",!0),e.resizable?(_(),$("div",{key:3,ref_key:"draggerRef",ref:u,style:We({zIndex:i(b)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,PX)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[At,i(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}),zX=BX;const DX=rt(zX),zc=Ce({trigger:{...Do.trigger,type:J([String,Array])},triggerKeys:{type:J(Array),default:()=>[we.enter,we.numpadEnter,we.space,we.down]},virtualTriggering:Do.virtualTriggering,virtualRef:Do.virtualRef,effect:{...Ht.effect,default:"light"},type:{type:J(String)},placement:{type:J(String),default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:J([Number,String]),default:0},maxHeight:{type:J([Number,String]),default:""},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,disabled:Boolean,role:{type:String,values:qy,default:"menu"},buttonProps:{type:J(Object)},teleported:Ht.teleported,appendTo:Ht.appendTo,persistent:{type:Boolean,default:!0}}),Aw=Ce({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ft}}),HX=Ce({onKeydown:{type:J(Function)}}),kf=Symbol("elDropdown"),Rw="elDropdown";var FX=D({inheritAttrs:!1});function KX(e,t,n,a,o,l){return oe(e.$slots,"default")}var WX=$n(FX,[["render",KX]]),jX=D({name:"ElCollectionItem",inheritAttrs:!1});function qX(e,t,n,a,o,l){return oe(e.$slots,"default")}var UX=$n(jX,[["render",qX]]);const Nw="data-el-collection-item",YX=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},WX,{name:t,setup(){const l=V(),r=new Map;bt(a,{itemMap:r,getItems:()=>{const u=i(l);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${Nw}]`));return[...r.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:l})}}),ElCollectionItem:Object.assign({},UX,{name:n,setup(l,{attrs:r}){const s=V(),u=Ne(a,void 0);bt(o,{collectionItemRef:s}),mt(()=>{const c=i(s);c&&u.itemMap.set(c,{ref:c,...r})}),Lt(()=>{const c=i(s);u.itemMap.delete(c)})}})}},GX=Ce({style:{type:J([String,Array,Object])},currentTabId:{type:J(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:J(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:XX,ElCollectionItem:JX,COLLECTION_INJECTION_KEY:Pw,COLLECTION_ITEM_INJECTION_KEY:ZX}=YX("RovingFocusGroup"),ev=Symbol("elRovingFocusGroup"),Iw=Symbol("elRovingFocusGroupItem"),QX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},eJ=(e,t)=>e,tJ=(e,t,n)=>{const a=eJ(Kt(e));return QX[a]},nJ=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),Mg=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Og="currentTabIdChange",$g="rovingFocusGroup.entryFocus",aJ={bubbles:!1,cancelable:!0};var oJ=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:GX,emits:[Og,"entryFocus"],setup(e,{emit:t}){const n=V((e.currentTabId||e.defaultCurrentTabId)??null),a=V(!1),o=V(!1),l=V(),{getItems:r}=Ne(Pw,void 0),s=x(()=>[{outline:"none"},e.style]),u=v=>{t(Og,v)},c=()=>{a.value=!0},d=Pn(v=>{var m;(m=e.onMousedown)==null||m.call(e,v)},()=>{o.value=!0}),f=Pn(v=>{var m;(m=e.onFocus)==null||m.call(e,v)},v=>{const m=!i(o),{target:y,currentTarget:b}=v;if(y===b&&m&&!i(a)){const w=new Event($g,aJ);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const C=r().filter(S=>S.focusable);Mg([C.find(S=>S.active),C.find(S=>S.id===i(n)),...C].filter(Boolean).map(S=>S.ref))}}o.value=!1}),h=Pn(v=>{var m;(m=e.onBlur)==null||m.call(e,v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},p=v=>{const m=tJ(v);if(m){v.preventDefault();let y=r().filter(b=>b.focusable).map(b=>b.ref);switch(m){case"last":y.reverse();break;case"prev":case"next":{m==="prev"&&y.reverse();const b=y.indexOf(v.currentTarget);y=e.loop?nJ(y,b+1):y.slice(b+1);break}}Ie(()=>{Mg(y)})}};bt(ev,{currentTabbedId:Rr(n),loop:Bt(e,"loop"),tabIndex:x(()=>i(a)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:s,orientation:Bt(e,"orientation"),dir:Bt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:f,onMousedown:d,onKeydown:p}),fe(()=>e.currentTabId,v=>{n.value=v??null}),Vt(l,$g,g)}});function lJ(e,t,n,a,o,l){return oe(e.$slots,"default")}var rJ=$n(oJ,[["render",lJ]]),sJ=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:XX,ElRovingFocusGroupImpl:rJ}});function iJ(e,t,n,a,o,l){const r=$t("el-roving-focus-group-impl"),s=$t("el-focus-group-collection");return _(),ie(s,null,{default:ae(()=>[Q(r,il(ul(e.$attrs)),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var uJ=$n(sJ,[["render",iJ]]),cJ=D({components:{ElRovingFocusCollectionItem:JX},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:l}=Ne(ev,void 0),r=Un(),s=V(),u=Pn(h=>{t("mousedown",h)},h=>{e.focusable?a(i(r)):h.preventDefault()}),c=Pn(h=>{t("focus",h)},()=>{a(i(r))}),d=Pn(h=>{t("keydown",h)},h=>{const{shiftKey:g,target:p,currentTarget:v}=h;if(Kt(h)===we.tab&&g){o();return}p===v&&l(h)}),f=x(()=>n.value===i(r));return bt(Iw,{rovingFocusGroupItemRef:s,tabIndex:x(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:r,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function dJ(e,t,n,a,o,l){const r=$t("el-roving-focus-collection-item");return _(),ie(r,{id:e.id,focusable:e.focusable,active:e.active},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var fJ=$n(cJ,[["render",dJ]]),pJ=uJ;const{ButtonGroup:hJ}=Ln;var vJ=D({name:"ElDropdown",components:{ElButton:Ln,ElButtonGroup:hJ,ElScrollbar:uo,ElTooltip:Fn,ElRovingFocusGroup:pJ,ElOnlyChild:Xy,ElIcon:ze,ArrowDown:bo},props:zc,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=ht(),a=ve("dropdown"),{t:o}=xt(),l=V(),r=V(),s=V(),u=V(),c=V(null),d=V(null),f=V(!1),h=x(()=>({maxHeight:cn(e.maxHeight)})),g=x(()=>[a.m(C.value)]),p=x(()=>In(e.trigger)),v=Un().value,m=x(()=>e.id||v);function y(){var z;(z=s.value)==null||z.onClose(void 0,0)}function b(){var z;(z=s.value)==null||z.onClose()}function w(){var z;(z=s.value)==null||z.onOpen()}const C=En();function S(...z){t("command",...z)}function k(){}function T(){const z=i(u);p.value.includes("hover")&&(z==null||z.focus({preventScroll:!0})),d.value=null}function M(z){d.value=z}function A(){t("visible-change",!0)}function O(z){var q;f.value=(z==null?void 0:z.type)==="keydown",(q=u.value)==null||q.focus()}function I(){t("visible-change",!1)}return bt(kf,{contentRef:u,role:x(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:k,onItemLeave:T,handleClose:b}),bt(Rw,{instance:n,dropdownSize:C,handleClick:y,commandHandler:S,trigger:Bt(e,"trigger"),hideOnClick:Bt(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:g,dropdownSize:C,triggerId:m,currentTabId:d,handleCurrentTabIdChange:M,handlerMainButtonClick:z=>{t("click",z)},handleClose:b,handleOpen:w,handleBeforeShowTooltip:A,handleShowTooltip:O,handleBeforeHideTooltip:I,popperRef:s,contentRef:u,triggeringElementRef:l,referenceElementRef:r}}});function mJ(e,t,n,a,o,l){const r=$t("el-roving-focus-group"),s=$t("el-scrollbar"),u=$t("el-only-child"),c=$t("el-tooltip"),d=$t("el-button"),f=$t("arrow-down"),h=$t("el-icon"),g=$t("el-button-group");return _(),$("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},ga({content:ae(()=>[Q(s,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ae(()=>[Q(r,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ae(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ae(()=>[Q(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ie(g,{key:0},{default:ae(()=>[Q(d,pt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(d,pt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ae(()=>[Q(h,{class:R(e.ns.e("icon"))},{default:ae(()=>[Q(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var gJ=$n(vJ,[["render",mJ]]),yJ=D({name:"DropdownItemImpl",components:{ElIcon:ze},props:Aw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ve("dropdown"),{role:a}=Ne(kf,void 0),{collectionItemRef:o}=Ne(ZX,void 0),{rovingFocusGroupItemRef:l,tabIndex:r,handleFocus:s,handleKeydown:u,handleMousedown:c}=Ne(Iw,void 0),d=Qh(o,l),f=x(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),h=Pn(g=>{const p=Kt(g);if([we.enter,we.numpadEnter,we.space].includes(p))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[Nw]:""},role:f,tabIndex:r,handleFocus:s,handleKeydown:h,handleMousedown:c}}});const bJ=["aria-disabled","tabindex","role"];function wJ(e,t,n,a,o,l){const r=$t("el-icon");return _(),$(He,null,[e.divided?(_(),$("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),E("li",pt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=Xe((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon||e.$slots.icon?(_(),ie(r,{key:0},{default:ae(()=>[oe(e.$slots,"icon",{},()=>[(_(),ie(ut(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,bJ)],64)}var CJ=$n(yJ,[["render",wJ]]);const Lw=()=>{const e=Ne(Rw,{});return{elDropdown:e,_elDropdownSize:x(()=>e==null?void 0:e.dropdownSize)}};var _J=D({name:"ElDropdownItem",components:{ElRovingFocusItem:fJ,ElDropdownItemImpl:CJ},inheritAttrs:!1,props:Aw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=Lw(),o=ht(),{onItemEnter:l,onItemLeave:r}=Ne(kf,void 0),s=Pn(c=>(t("pointermove",c),c.defaultPrevented),sm(c=>{if(e.disabled){r(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(l(c),c.defaultPrevented||d==null||d.focus({preventScroll:!0}))})),u=Pn(c=>(t("pointerleave",c),c.defaultPrevented),sm(r));return{handleClick:Pn(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,f,h;if(e.disabled){c.stopImmediatePropagation();return}(d=a==null?void 0:a.hideOnClick)!=null&&d.value&&((f=a.handleClick)==null||f.call(a)),(h=a.commandHandler)==null||h.call(a,e.command,o,c)}),handlePointerMove:s,handlePointerLeave:u,propsAndAttrs:x(()=>({...e,...n}))}}});function SJ(e,t,n,a,o,l){const r=$t("el-dropdown-item-impl"),s=$t("el-roving-focus-item");return _(),ie(s,{focusable:!e.disabled},{default:ae(()=>[Q(r,pt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),ga({default:ae(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ae(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var Vw=$n(_J,[["render",SJ]]),xJ=D({name:"ElDropdownMenu",props:HX,setup(e){const t=ve("dropdown"),{_elDropdownSize:n}=Lw(),a=n.value,{contentRef:o,role:l,triggerId:r,isUsingKeyboard:s,handleClose:u}=Ne(kf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:h,onKeydown:g,onMousedown:p}=Ne(ev,void 0),{collectionRef:v}=Ne(Pw,void 0),m=x(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),y=Qh(o,c,v),b=Pn(C=>{var S;(S=e.onKeydown)==null||S.call(e,C)},C=>{const{currentTarget:S,target:k}=C,T=Kt(C);if(S.contains(k),we.tab===T)return u();g(C)});function w(C){s.value&&h(C)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:l,triggerId:r,dropdownListWrapperRef:y,handleKeydown:b,onBlur:f,handleFocus:w,onMousedown:p}}});const kJ=["role","aria-labelledby"];function EJ(e,t,n,a,o,l){return _(),$("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:We(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=Xe((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=Xe((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[oe(e.$slots,"default")],46,kJ)}var Bw=$n(xJ,[["render",EJ]]);const TJ=rt(gJ,{DropdownItem:Vw,DropdownMenu:Bw}),MJ=ln(Vw),OJ=ln(Bw),$J=Ce({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),AJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},RJ=["id"],NJ=["stop-color"],PJ=["stop-color"],IJ=["id"],LJ=["stop-color"],VJ=["stop-color"],BJ=["id"],zJ={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},DJ={transform:"translate(-1268.000000, -535.000000)"},HJ={transform:"translate(1268.000000, 535.000000)"},FJ=["fill"],KJ=["fill"],WJ={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},jJ=["fill"],qJ=["fill"],UJ=["fill"],YJ=["fill"],GJ=["fill"],XJ={transform:"translate(53.000000, 45.000000)"},JJ=["fill","xlink:href"],ZJ=["fill","mask"],QJ=["fill"];var eZ=D({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ve("empty"),n=Un();return(a,o)=>(_(),$("svg",AJ,[E("defs",null,[E("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,NJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,PJ)],8,RJ),E("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,LJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,VJ)],8,IJ),E("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,BJ)]),E("g",zJ,[E("g",DJ,[E("g",HJ,[E("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,FJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,KJ),E("g",WJ,[E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,jJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,qJ),E("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,UJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,YJ)]),E("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,GJ),E("g",XJ,[E("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,JJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,ZJ)]),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,QJ)])])])]))}}),tZ=eZ;const nZ=["src"],aZ={key:1};var oZ=D({name:"ElEmpty",__name:"empty",props:$J,setup(e){const t=e,{t:n}=xt(),a=ve("empty"),o=x(()=>t.description||n("el.table.emptyText")),l=x(()=>({width:cn(t.imageSize)}));return(r,s)=>(_(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("image")),style:We(l.value)},[e.image?(_(),$("img",{key:0,src:e.image,ondragstart:"return false"},null,8,nZ)):oe(r.$slots,"image",{key:1},()=>[Q(tZ)])],6),E("div",{class:R(i(a).e("description"))},[r.$slots.description?oe(r.$slots,"description",{key:0}):(_(),$("p",aZ,_e(o.value),1))],2),r.$slots.default?(_(),$("div",{key:0,class:R(i(a).e("bottom"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),lZ=oZ;const zw=rt(lZ),rZ=Ce({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:J([String,Object])},previewSrcList:{type:J(Array),default:()=>un([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),sZ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>De(e),close:()=>!0,show:()=>!0},iZ=Ce({urlList:{type:J(Array),default:()=>un([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),uZ={close:()=>!0,error:e=>e instanceof Event,switch:e=>De(e),rotate:e=>De(e)},cZ=["src","crossorigin"];var dZ=D({name:"ElImageViewer",__name:"image-viewer",props:iZ,emits:uZ,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Io($y)},ORIGINAL:{name:"original",icon:Io(By)}},o=e,l=n;let r;const{t:s}=xt(),u=ve("image-viewer"),{nextZIndex:c}=Pu(),d=V(),f=V(),h=vC(),g=x(()=>{const{scale:se,minScale:Y,maxScale:X}=o;return R6(se,Y,X)}),p=V(!0),v=V(!1),m=V(!1),y=V(o.initialIndex),b=qt(a.CONTAIN),w=V({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),C=V(o.zIndex??c());cf(m,{ns:u});const S=x(()=>{const{urlList:se}=o;return se.length<=1}),k=x(()=>y.value===0),T=x(()=>y.value===o.urlList.length-1),M=x(()=>o.urlList[y.value]),A=x(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&k.value)]),O=x(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&T.value)]),I=x(()=>{const{scale:se,deg:Y,offsetX:X,offsetY:H,enableTransition:Z}=w.value;let le=X/se,ce=H/se;const ge=Y*Math.PI/180,me=Math.cos(ge),$e=Math.sin(ge);le=le*me+ce*$e,ce=ce*me-X/se*$e;const Re={transform:`scale(${se}) rotate(${Y}deg) translate(${le}px, ${ce}px)`,transition:Z?"transform .3s":""};return b.value.name===a.CONTAIN.name&&(Re.maxWidth=Re.maxHeight="100%"),Re}),L=x(()=>`${y.value+1} / ${o.urlList.length}`);function z(){U(),r==null||r(),m.value=!1,l("close")}function q(){const se=Dl(X=>{switch(Kt(X)){case we.esc:o.closeOnPressEscape&&z();break;case we.space:K();break;case we.left:G();break;case we.up:te("zoomIn");break;case we.right:ee();break;case we.down:te("zoomOut");break}}),Y=Dl(X=>{te((X.deltaY||X.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});h.run(()=>{Vt(document,"keydown",se),Vt(d,"wheel",Y)})}function U(){h.stop()}function F(){p.value=!1}function N(se){v.value=!0,p.value=!1,l("error",se),se.target.alt=s("el.image.error")}function P(se){if(p.value||se.button!==0||!d.value)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,H=se.pageX,Z=se.pageY,le=Dl(me=>{w.value={...w.value,offsetX:Y+me.pageX-H,offsetY:X+me.pageY-Z}}),ce=Vt(document,"mousemove",le),ge=Vt(document,"mouseup",()=>{ce(),ge()});se.preventDefault()}function B(se){if(p.value||!d.value||se.touches.length!==1)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,{pageX:H,pageY:Z}=se.touches[0],le=Dl(me=>{const $e=me.touches[0];w.value={...w.value,offsetX:Y+$e.pageX-H,offsetY:X+$e.pageY-Z}}),ce=Vt(document,"touchmove",le),ge=Vt(document,"touchend",()=>{ce(),ge()});se.preventDefault()}function W(){w.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function K(){if(p.value||v.value)return;const se=tu(a),Y=Object.values(a),X=b.value.name;b.value=a[se[(Y.findIndex(H=>H.name===X)+1)%se.length]],W()}function j(se){v.value=!1;const Y=o.urlList.length;y.value=(se+Y)%Y}function G(){k.value&&!o.infinite||j(y.value-1)}function ee(){T.value&&!o.infinite||j(y.value+1)}function te(se,Y={}){if(p.value||v.value)return;const{minScale:X,maxScale:H}=o,{zoomRate:Z,rotateDeg:le,enableTransition:ce}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(se){case"zoomOut":w.value.scale>X&&(w.value.scale=Number.parseFloat((w.value.scale/Z).toFixed(3)));break;case"zoomIn":w.value.scale0)return se.preventDefault(),!1}}return fe(()=>g.value,se=>{w.value.scale=se}),fe(M,()=>{Ie(()=>{var se;(se=f.value)!=null&&se.complete||(p.value=!0)})}),fe(y,se=>{W(),l("switch",se)}),mt(()=>{m.value=!0,q(),r=Vt("wheel",de,{passive:!1})}),t({setActiveItem:j}),(se,Y)=>(_(),ie(i(ti),{to:"body",disabled:!e.teleported},{default:ae(()=>[Q(qn,{name:"viewer-fade",appear:""},{default:ae(()=>[E("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:We({zIndex:C.value})},[Q(i(ai),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ue,onReleaseRequested:ne},{default:ae(()=>[E("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Xe(X=>e.hideOnClickModal&&z(),["self"]))},null,2),re(" CLOSE "),E("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:z},[Q(i(ze),null,{default:ae(()=>[Q(i(Ba))]),_:1})],2),re(" ARROW "),S.value?re("v-if",!0):(_(),$(He,{key:0},[E("span",{class:R(A.value),onClick:G},[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})],2),E("span",{class:R(O.value),onClick:ee},[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})],2)],64)),se.$slots.progress||e.showProgress?(_(),$("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(se.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},()=>[_t(_e(L.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),E("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[E("div",{class:R(i(u).e("actions__inner"))},[oe(se.$slots,"toolbar",{actions:te,prev:G,next:ee,reset:K,activeIndex:y.value,setActiveItem:j},()=>[Q(i(ze),{onClick:Y[1]||(Y[1]=X=>te("zoomOut"))},{default:ae(()=>[Q(i(Wy))]),_:1}),Q(i(ze),{onClick:Y[2]||(Y[2]=X=>te("zoomIn"))},{default:ae(()=>[Q(i(Th))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(ze),{onClick:K},{default:ae(()=>[(_(),ie(ut(b.value.icon)))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(ze),{onClick:Y[3]||(Y[3]=X=>te("anticlockwise"))},{default:ae(()=>[Q(i(Ly))]),_:1}),Q(i(ze),{onClick:Y[4]||(Y[4]=X=>te("clockwise"))},{default:ae(()=>[Q(i(Vy))]),_:1})])],2)],2),re(" CANVAS "),E("div",{class:R(i(u).e("canvas"))},[v.value&&se.$slots["viewer-error"]?oe(se.$slots,"viewer-error",{key:0,activeIndex:y.value,src:M.value}):(_(),$("img",{ref_key:"imgRef",ref:f,key:M.value,src:M.value,style:We(I.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:F,onError:N,onMousedown:P,onTouchstart:B},null,46,cZ))],2),oe(se.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}}),fZ=dZ;const Dw=rt(fZ),pZ=["src","loading","crossorigin"],hZ={key:0};var vZ=D({name:"ElImage",inheritAttrs:!1,__name:"image",props:rZ,emits:sZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("image"),s=_l(),u=x(()=>Ns(Object.entries(s).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=uf({excludeListeners:!0,excludeKeys:x(()=>Object.keys(u.value))}),d=V(),f=V(!1),h=V(!0),g=V(!1),p=V(),v=V(),m=Rt&&"loading"in HTMLImageElement.prototype;let y;const b=x(()=>[r.e("inner"),C.value&&r.e("preview"),h.value&&r.is("loading")]),w=x(()=>{const{fit:N}=a;return Rt&&N?{objectFit:N}:{}}),C=x(()=>{const{previewSrcList:N}=a;return Ve(N)&&N.length>0}),S=x(()=>{const{previewSrcList:N,initialIndex:P}=a;let B=P;return P>N.length-1&&(B=0),B}),k=x(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),T=()=>{Rt&&(h.value=!0,f.value=!1,d.value=a.src)};function M(N){h.value=!1,f.value=!1,o("load",N)}function A(N){h.value=!1,f.value=!0,o("error",N)}function O(N){N&&(T(),z())}const I=P6(O,200,!0);async function L(){if(!Rt)return;await Ie();const{scrollContainer:N}=a;if(_a(N))v.value=N;else if(Ue(N)&&N!=="")v.value=document.querySelector(N)??void 0;else if(p.value){const B=rh(p.value);v.value=Ou(B)?void 0:B}const{stop:P}=WS(p,([B])=>{I(B.isIntersecting)},{root:v});y=P}function z(){!Rt||!I||(y==null||y(),v.value=void 0,y=void 0)}function q(){C.value&&(g.value=!0,o("show"))}function U(){g.value=!1,o("close")}function F(N){o("switch",N)}return fe(()=>a.src,()=>{k.value?(h.value=!0,f.value=!1,z(),L()):T()}),mt(()=>{k.value?L():T()}),t({showPreview:q}),(N,P)=>(_(),$("div",pt({ref_key:"container",ref:p},u.value,{class:[i(r).b(),N.$attrs.class]}),[f.value?oe(N.$slots,"error",{key:0},()=>[E("div",{class:R(i(r).e("error"))},_e(i(l)("el.image.error")),3)]):(_(),$(He,{key:1},[d.value!==void 0?(_(),$("img",pt({key:0},i(c),{src:d.value,loading:e.loading,style:w.value,class:b.value,crossorigin:e.crossorigin,onClick:q,onLoad:M,onError:A}),null,16,pZ)):re("v-if",!0),h.value?(_(),$("div",{key:1,class:R(i(r).e("wrapper"))},[oe(N.$slots,"placeholder",{},()=>[E("div",{class:R(i(r).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),C.value?(_(),$(He,{key:2},[g.value?(_(),ie(i(Dw),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:U,onSwitch:F},ga({toolbar:ae(B=>[oe(N.$slots,"toolbar",il(ul(B)))]),default:ae(()=>[N.$slots.viewer?(_(),$("div",hZ,[oe(N.$slots,"viewer")])):re("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:ae(B=>[oe(N.$slots,"progress",il(ul(B)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:ae(B=>[oe(N.$slots,"viewer-error",il(ul(B)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),mZ=vZ;const gZ=rt(mZ),yZ=Ce({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:On,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:J([String,Number,null]),validator:e=>e===null||De(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ia(["ariaLabel"]),inputmode:{type:J(String),default:void 0},align:{type:J(String),default:"center"},disabledScientific:Boolean}),bZ={[yt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Sn]:e=>De(e)||Cn(e),[at]:e=>De(e)||Cn(e)},wZ=["aria-label"],CZ=["aria-label"];var _Z=D({name:"ElInputNumber",__name:"input-number",props:yZ,emits:bZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("input-number"),s=V(),u=Nt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Kn(),d=x(()=>De(a.modelValue)&&a.modelValue<=a.min),f=x(()=>De(a.modelValue)&&a.modelValue>=a.max),h=x(()=>{const N=b(a.step);return kt(a.precision)?Math.max(b(a.modelValue),N):(N>a.precision&&ft("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=x(()=>a.controls&&a.controlsPosition==="right"),p=En(),v=dn(),m=x(()=>{if(u.userInput!==null)return u.userInput;let N=u.currentValue;if(Cn(N))return"";if(De(N)){if(Number.isNaN(N))return"";kt(a.precision)||(N=N.toFixed(a.precision))}return N}),y=(N,P)=>{if(kt(P)&&(P=h.value),P===0)return Math.round(N);let B=String(N);const W=B.indexOf(".");if(W===-1||!B.replace(".","").split("")[W+P])return N;const K=B.length;return B.charAt(K-1)==="5"&&(B=`${B.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(B).toFixed(P))},b=N=>{if(Cn(N))return 0;const P=N.toString(),B=P.indexOf(".");let W=0;return B!==-1&&(W=P.length-B-1),W},w=(N,P=1)=>De(N)?N>=Number.MAX_SAFE_INTEGER&&P===1?(ft("InputNumber","The value has reached the maximum safe integer limit."),N):N<=Number.MIN_SAFE_INTEGER&&P===-1?(ft("InputNumber","The value has reached the minimum safe integer limit."),N):y(N+a.step*P):u.currentValue,C=N=>{const P=Kt(N),B=E8(N);if(a.disabledScientific&&["e","E"].includes(B)){N.preventDefault();return}switch(P){case we.up:N.preventDefault(),S();break;case we.down:N.preventDefault(),k();break}},S=()=>{a.readonly||v.value||f.value||(M(w(Number(m.value)||0)),o(Sn,u.currentValue),U())},k=()=>{a.readonly||v.value||d.value||(M(w(Number(m.value)||0,-1)),o(Sn,u.currentValue),U())},T=(N,P)=>{const{max:B,min:W,step:K,precision:j,stepStrictly:G,valueOnClear:ee}=a;BB||teB?B:W,P&&o(at,te)),te},M=(N,P=!0)=>{var K;const B=u.currentValue,W=T(N);if(!P){o(at,W);return}u.userInput=null,!(B===W&&N)&&(o(at,W),B!==W&&o(yt,W,B),a.validateEvent&&((K=c==null?void 0:c.validate)==null||K.call(c,"change").catch(j=>ft(j))),u.currentValue=W)},A=N=>{u.userInput=N;const P=N===""?null:Number(N);o(Sn,P),M(P,!1)},O=N=>{const P=N!==""?Number(N):"";(De(P)&&!Number.isNaN(P)||N==="")&&M(P),U(),u.userInput=null},I=()=>{var N,P;(P=(N=s.value)==null?void 0:N.focus)==null||P.call(N)},L=()=>{var N,P;(P=(N=s.value)==null?void 0:N.blur)==null||P.call(N)},z=N=>{o("focus",N)},q=N=>{var P,B;u.userInput=null,u.currentValue===null&&((P=s.value)!=null&&P.input)&&(s.value.input.value=""),o("blur",N),a.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"blur").catch(W=>ft(W)))},U=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},F=N=>{document.activeElement===N.target&&N.preventDefault()};return fe(()=>a.modelValue,(N,P)=>{const B=T(N,!0);u.userInput===null&&B!==P&&(u.currentValue=B)},{immediate:!0}),fe(()=>a.precision,()=>{u.currentValue=T(a.modelValue)}),mt(()=>{var K;const{min:N,max:P,modelValue:B}=a,W=(K=s.value)==null?void 0:K.input;if(W.setAttribute("role","spinbutton"),Number.isFinite(P)?W.setAttribute("aria-valuemax",String(P)):W.removeAttribute("aria-valuemax"),Number.isFinite(N)?W.setAttribute("aria-valuemin",String(N)):W.removeAttribute("aria-valuemin"),W.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),W.setAttribute("aria-disabled",String(v.value)),!De(B)&&B!=null){let j=Number(B);Number.isNaN(j)&&(j=null),o(at,j)}W.addEventListener("wheel",F,{passive:!1})}),ho(()=>{var N,P;(P=(N=s.value)==null?void 0:N.input)==null||P.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:I,blur:L}),(N,P)=>(_(),$("div",{class:R([i(r).b(),i(r).m(i(p)),i(r).is("disabled",i(v)),i(r).is("without-controls",!e.controls),i(r).is("controls-right",g.value),i(r).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Xe(()=>{},["prevent"]))},[e.controls?dt((_(),$("span",{key:0,role:"button","aria-label":i(l)("el.inputNumber.decrease"),class:R([i(r).e("decrease"),i(r).is("disabled",d.value)]),onKeydown:rn(k,["enter"])},[oe(N.$slots,"decrease-icon",{},()=>[Q(i(ze),null,{default:ae(()=>[g.value?(_(),ie(i(bo),{key:0})):(_(),ie(i(Ry),{key:1}))]),_:1})])],42,wZ)),[[i(ud),k]]):re("v-if",!0),e.controls?dt((_(),$("span",{key:1,role:"button","aria-label":i(l)("el.inputNumber.increase"),class:R([i(r).e("increase"),i(r).is("disabled",f.value)]),onKeydown:rn(S,["enter"])},[oe(N.$slots,"increase-icon",{},()=>[Q(i(ze),null,{default:ae(()=>[g.value?(_(),ie(i(Du),{key:0})):(_(),ie(i(kh),{key:1}))]),_:1})])],42,CZ)),[[i(ud),S]]):re("v-if",!0),Q(i(jn),{id:e.id,ref_key:"input",ref:s,type:"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(p),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:C,onBlur:q,onFocus:z,onInput:A,onChange:O},ga({_:2},[N.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(N.$slots,"prefix")]),key:"0"}:void 0,N.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(N.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}}),SZ=_Z;const Hw=rt(SZ),xZ=Ce({modelValue:{type:J(Array)},max:Number,tagType:{...wl.type,default:"info"},tagEffect:wl.effect,effect:{type:J(String),default:"light"},trigger:{type:J(String),default:we.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:On,clearable:Boolean,clearIcon:{type:Ft,default:wo},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:J(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),kZ={[at]:e=>Ve(e)||kt(e),[yt]:e=>Ve(e)||kt(e),[Sn]:e=>Ue(e),"add-tag":e=>Ue(e)||Ve(e),"remove-tag":(e,t)=>Ue(e)&&De(t),"drag-tag":(e,t,n)=>De(e)&&De(t)&&Ue(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function EZ({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ve("input-tag"),o=qt(),l=V(!1);let r,s,u,c;function d(p){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${p+1})`}function f(p,v){r=v,s=e.value.querySelector(d(v)),s&&(s.style.opacity="0.5"),p.dataTransfer.effectAllowed="move"}function h(p,v){if(u=v,p.preventDefault(),p.dataTransfer.dropEffect="move",kt(r)||r===v){l.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),y=r+1!==v,b=r-1!==v,w=p.clientX-m.left,C=y?b?.5:1:-1,S=b?y?.5:0:1;w<=m.width*C?c="before":w>m.width*S?c="after":c=void 0;const k=e.value.querySelector(`.${a.e("inner")}`),T=k.getBoundingClientRect(),M=Number.parseFloat(ol(k,"gap"))/2,A=m.top-T.top;let O=-9999;if(c==="before")O=Math.max(m.left-T.left-M,Math.floor(-M/2));else if(c==="after"){const I=m.right-T.left;O=I+(T.width===I?Math.floor(M/2):M)}z8(o.value,{top:`${A}px`,left:`${O}px`}),l.value=!!c}function g(p){p.preventDefault(),s&&(s.style.opacity=""),c&&!kt(r)&&!kt(u)&&r!==u&&t(r,u,c),l.value=!1,r=void 0,s=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:o,showDropIndicator:l,handleDragStart:f,handleDragOver:h,handleDragEnd:g}}function TZ(){const e=V(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function MZ({props:e,emit:t,formItem:n}){const a=dn(),o=En(),l=qt(),r=V(),s=V(),u=x(()=>["small"].includes(o.value)?"small":"default"),c=x(()=>{var F;return(F=e.modelValue)!=null&&F.length?void 0:e.placeholder}),d=x(()=>!(e.readonly||a.value)),f=x(()=>{var F;return kt(e.max)?!1:(((F=e.modelValue)==null?void 0:F.length)??0)>=e.max}),h=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(0,e.maxCollapseTags):e.modelValue}),g=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(e.maxCollapseTags):[]}),p=F=>{const N=[...e.modelValue??[],...In(F)];t(at,N),t(yt,N),t("add-tag",F),r.value=void 0},v=F=>{var B;const N=F.split(e.delimiter),P=N.length>1?N.map(W=>W.trim()).filter(Boolean):[];if(e.max){const W=e.max-(((B=e.modelValue)==null?void 0:B.length)??0);P.splice(W)}return P.length===1?P[0]:P},m=F=>{var G;const N=(G=F.clipboardData)==null?void 0:G.getData("text");if(e.readonly||f.value||!e.delimiter||!N)return;const{selectionStart:P=0,selectionEnd:B=0,value:W}=F.target,K=W.slice(0,P)+N+W.slice(B),j=v(K);j.length&&(p(j),t(Sn,K),F.preventDefault())},y=F=>{if(f.value){r.value=void 0;return}if(!L.value){if(e.delimiter&&r.value){const N=v(r.value);N.length&&p(N)}t(Sn,F.target.value)}},b=F=>{var N;if(!L.value)switch(Kt(F)){case e.trigger:F.preventDefault(),F.stopPropagation(),C();break;case we.numpadEnter:e.trigger===we.enter&&(F.preventDefault(),F.stopPropagation(),C());break;case we.backspace:!r.value&&((N=e.modelValue)!=null&&N.length)&&(F.preventDefault(),F.stopPropagation(),S(e.modelValue.length-1));break}},w=F=>{if(!(L.value||!L6()))switch(Kt(F)){case we.space:e.trigger===we.space&&(F.preventDefault(),F.stopPropagation(),C());break}},C=()=>{var N;const F=(N=r.value)==null?void 0:N.trim();!F||f.value||p(F)},S=F=>{const N=(e.modelValue??[]).slice(),[P]=N.splice(F,1);t(at,N),t(yt,N),t("remove-tag",P,F)},k=()=>{r.value=void 0,t(at,void 0),t(yt,void 0),t("clear")},T=(F,N,P)=>{const B=(e.modelValue??[]).slice(),[W]=B.splice(F,1),K=N>F&&P==="before"?-1:N{var F;(F=l.value)==null||F.focus()},A=()=>{var F;(F=l.value)==null||F.blur()},{wrapperRef:O,isFocused:I}=El(l,{disabled:a,beforeBlur(F){var N;return(N=s.value)==null?void 0:N.isFocusInsideContent(F)},afterBlur(){var F;e.saveOnBlur?C():r.value=void 0,e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"blur").catch(N=>ft(N)))}}),{isComposing:L,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U}=Bu({afterComposition:y});return fe(()=>e.modelValue,()=>{var F;e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,yt).catch(N=>ft(N)))}),{inputRef:l,wrapperRef:O,tagTooltipRef:s,isFocused:I,isComposing:L,inputValue:r,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:h,collapseTagList:g,handleDragged:T,handlePaste:m,handleInput:y,handleKeydown:b,handleKeyup:w,handleAddTag:C,handleRemoveTag:S,handleClear:k,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U,focus:M,blur:A}}function OZ({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:l,validateState:r,validateIcon:s,needStatusIcon:u}){const c=_l(),d=yn(),f=ve("input-tag"),h=ve("input"),g=V(),p=V(),v=x(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(l.value),f.e("wrapper"),c.class]),m=x(()=>[c.style]),y=x(()=>{var A,O;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((A=e.modelValue)!=null&&A.length)&&!d.prefix),f.is("right-space",!((O=e.modelValue)!=null&&O.length)&&!w.value)]}),b=x(()=>{var A;return e.clearable&&!a.value&&!e.readonly&&(((A=e.modelValue)==null?void 0:A.length)||o.value)&&(t.value||n.value)}),w=x(()=>d.suffix||b.value||r.value&&s.value&&u.value),C=Nt({innerWidth:0,collapseItemWidth:0}),S=()=>{if(!p.value)return 0;const A=window.getComputedStyle(p.value);return Number.parseFloat(A.gap||"6px")},k=()=>{C.innerWidth=Number.parseFloat(window.getComputedStyle(p.value).width)},T=()=>{C.collapseItemWidth=g.value.getBoundingClientRect().width},M=x(()=>{if(!e.collapseTags)return{};const A=S(),O=A+Xd,I=g.value&&e.maxCollapseTags===1?C.innerWidth-C.collapseItemWidth-A-O:C.innerWidth-O;return{maxWidth:`${Math.max(I,0)}px`}});return en(p,k),en(g,T),{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:y,showClear:b,showSuffix:w,tagStyle:M,collapseItemRef:g,innerRef:p}}const $Z=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],AZ=["textContent"];var RZ=D({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:xZ,emits:kZ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=uf(),r=yn(),{form:s,formItem:u}=Kn(),{inputId:c}=za(a,{formItemContext:u}),d=x(()=>(s==null?void 0:s.statusIcon)??!1),f=x(()=>(u==null?void 0:u.validateState)||""),h=x(()=>f.value&&bf[f.value]),{inputRef:g,wrapperRef:p,tagTooltipRef:v,isFocused:m,inputValue:y,size:b,tagSize:w,placeholder:C,closable:S,disabled:k,showTagList:T,collapseTagList:M,handleDragged:A,handlePaste:O,handleInput:I,handleKeydown:L,handleKeyup:z,handleRemoveTag:q,handleClear:U,handleCompositionStart:F,handleCompositionUpdate:N,handleCompositionEnd:P,focus:B,blur:W}=MZ({props:a,emit:o,formItem:u}),{hovering:K,handleMouseEnter:j,handleMouseLeave:G}=TZ(),{calculatorRef:ee,inputStyle:te}=ah(),{dropIndicatorRef:ue,showDropIndicator:ne,handleDragStart:de,handleDragOver:se,handleDragEnd:Y}=EZ({wrapperRef:p,handleDragged:A,afterDragged:B}),{ns:X,nsInput:H,containerKls:Z,containerStyle:le,innerKls:ce,showClear:ge,showSuffix:me,tagStyle:$e,collapseItemRef:Re,innerRef:Ae}=OZ({props:a,hovering:K,isFocused:m,inputValue:y,disabled:k,size:b,validateState:f,validateIcon:h,needStatusIcon:d});return t({focus:B,blur:W}),(ye,ke)=>(_(),$("div",{ref_key:"wrapperRef",ref:p,class:R(i(Z)),style:We(i(le)),onMouseenter:ke[9]||(ke[9]=(...be)=>i(j)&&i(j)(...be)),onMouseleave:ke[10]||(ke[10]=(...be)=>i(G)&&i(G)(...be))},[i(r).prefix?(_(),$("div",{key:0,class:R(i(X).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref_key:"innerRef",ref:Ae,class:R(i(ce))},[(_(!0),$(He,null,Ct(i(T),(be,Pe)=>(_(),ie(i(dl),{key:Pe,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,draggable:i(S)&&e.draggable,style:We(i($e)),"disable-transitions":"",onClose:Be=>i(q)(Pe),onDragstart:Be=>i(de)(Be,Pe),onDragover:Be=>i(se)(Be,Pe),onDragend:i(Y),onDrop:ke[0]||(ke[0]=Xe(()=>{},["stop"]))},{default:ae(()=>[oe(ye.$slots,"tag",{value:be,index:Pe},()=>[_t(_e(be),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(_(),ie(i(Fn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ae(()=>[E("div",{ref_key:"collapseItemRef",ref:Re,class:R(i(X).e("collapse-tag"))},[Q(i(dl),{closable:!1,size:i(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[_t(" + "+_e(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ae(()=>[E("div",{class:R(i(X).e("input-tag-list"))},[(_(!0),$(He,null,Ct(i(M),(be,Pe)=>(_(),ie(i(dl),{key:Pe,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:Be=>i(q)(Pe+e.maxCollapseTags)},{default:ae(()=>[oe(ye.$slots,"tag",{value:be,index:Pe+e.maxCollapseTags},()=>[_t(_e(be),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),E("div",{class:R(i(X).e("input-wrapper"))},[dt(E("input",pt({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":ke[1]||(ke[1]=be=>Gt(y)?y.value=be:null)},i(l),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(C),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(X).e("input"),style:i(te),onCompositionstart:ke[2]||(ke[2]=(...be)=>i(F)&&i(F)(...be)),onCompositionupdate:ke[3]||(ke[3]=(...be)=>i(N)&&i(N)(...be)),onCompositionend:ke[4]||(ke[4]=(...be)=>i(P)&&i(P)(...be)),onPaste:ke[5]||(ke[5]=(...be)=>i(O)&&i(O)(...be)),onInput:ke[6]||(ke[6]=(...be)=>i(I)&&i(I)(...be)),onKeydown:ke[7]||(ke[7]=(...be)=>i(L)&&i(L)(...be)),onKeyup:ke[8]||(ke[8]=(...be)=>i(z)&&i(z)(...be))}),null,16,$Z),[[_6,i(y)]]),E("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(X).e("input-calculator")),textContent:_e(i(y))},null,10,AZ)],2),dt(E("div",{ref_key:"dropIndicatorRef",ref:ue,class:R(i(X).e("drop-indicator"))},null,2),[[At,i(ne)]])],2),i(me)?(_(),$("div",{key:1,class:R(i(X).e("suffix"))},[oe(ye.$slots,"suffix"),i(ge)?(_(),ie(i(ze),{key:0,class:R([i(X).e("icon"),i(X).e("clear")]),onMousedown:Xe(i(Yt),["prevent"]),onClick:i(U)},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&h.value&&d.value?(_(),ie(i(ze),{key:1,class:R([i(H).e("icon"),i(H).e("validateIcon"),i(H).is("loading",f.value==="validating")])},{default:ae(()=>[(_(),ie(ut(h.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),NZ=RZ;const PZ=rt(NZ),IZ=Ce({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ft}}),LZ={click:e=>e instanceof MouseEvent},VZ=["href","target"];var BZ=D({name:"ElLink",__name:"link",props:IZ,emits:LZ,setup(e,{emit:t}){const n=e,a=t,o=Tl("link");Lo({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},x(()=>Dt(n.underline)));const l=ve("link"),r=x(()=>{var c;return[l.b(),l.m(n.type??((c=o.value)==null?void 0:c.type)??"default"),l.is("disabled",n.disabled),l.is("underline",s.value==="always"),l.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=x(()=>{var c;return Dt(n.underline)?n.underline?"hover":"never":n.underline??((c=o.value)==null?void 0:c.underline)??"hover"});function u(c){n.disabled||a("click",c)}return(c,d)=>(_(),$("a",{class:R(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(_(),$("span",{key:1,class:R(i(l).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,VZ))}}),zZ=BZ;const DZ=rt(zZ),tv="rootMenu",_d="subMenu:";function Fw(e,t){const n=x(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:x(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function HZ(e){return x(()=>{const t=e.backgroundColor;return t?new mn(t).shade(20).toString():""})}const Kw=(e,t)=>{const n=ve("menu");return x(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":HZ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},FZ=Ce({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ft},expandOpenIcon:{type:Ft},collapseCloseIcon:{type:Ft},collapseOpenIcon:{type:Ft}}),_0="ElSubMenu";var nv=D({name:_0,props:FZ,setup(e,{slots:t,expose:n}){const a=ht(),{indexPath:o,parentMenu:l}=Fw(a,x(()=>e.index)),r=ve("menu"),s=ve("sub-menu"),u=Ne(tv);u||on(_0,"can not inject root menu");const c=Ne(`${_d}${l.value.uid}`);c||on(_0,"can not inject sub menu");const d=V({}),f=V({});let h;const g=V(!1),p=V(),v=V(),m=x(()=>c.level===0),y=x(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),b=x(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:bo:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Jn),w=x(()=>{const j=e.teleported;return kt(j)?m.value:j}),C=x(()=>u.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),S=x(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=x(()=>u.openedMenus.includes(e.index)),T=x(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:j})=>j)),M=x(()=>u.props.mode),A=x(()=>u.props.persistent),O=Nt({index:e.index,indexPath:o,active:T}),I=Kw(u.props,c.level+1),L=x(()=>e.popperOffset??u.props.popperOffset),z=x(()=>e.popperClass??u.props.popperClass),q=x(()=>e.popperStyle??u.props.popperStyle),U=x(()=>e.showTimeout??u.props.showTimeout),F=x(()=>e.hideTimeout??u.props.hideTimeout),N=()=>{var j,G,ee;return(ee=(G=(j=v.value)==null?void 0:j.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:ee.destroy()},P=j=>{j||N()},B=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:T.value})},W=(j,G=U.value)=>{var ee;if(j.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=Os(()=>{u.openMenu(e.index,o.value)},G),w.value&&((ee=l.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),j.type==="mouseenter"&&j.target&&Ie(()=>{$u(j.target,{preventScroll:!0})})}},K=(j=!1)=>{var G;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=Os(()=>!g.value&&u.closeMenu(e.index,o.value),F.value),w.value&&j&&((G=c.handleMouseleave)==null||G.call(c,!0))};fe(()=>u.props.collapse,j=>P(!!j));{const j=ee=>{f.value[ee.index]=ee},G=ee=>{delete f.value[ee.index]};bt(`${_d}${a.uid}`,{addSubMenu:j,removeSubMenu:G,handleMouseleave:K,mouseInChild:g,level:c.level+1})}return n({opened:k}),mt(()=>{u.addSubMenu(O),c.addSubMenu(O)}),Lt(()=>{c.removeSubMenu(O),u.removeSubMenu(O)}),()=>{var ee;const j=[(ee=t.title)==null?void 0:ee.call(t),qe(ze,{class:s.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ue(b.value)?qe(a.appContext.components[b.value]):qe(b.value)})],G=u.isMenuPopup?qe(Fn,{ref:v,visible:k.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:A.value,popperClass:z.value,popperStyle:q.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:C.value,gpuAcceleration:!1},{content:()=>{var te;return qe("div",{class:[r.m(M.value),r.m("popup-container"),z.value],onMouseenter:ue=>W(ue,100),onMouseleave:()=>K(!0),onFocus:ue=>W(ue,100)},[qe("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:I.value},[(te=t.default)==null?void 0:te.call(t)])])},default:()=>qe("div",{class:s.e("title"),onClick:B},j)}):qe(He,{},[qe("div",{class:s.e("title"),ref:p,onClick:B},j),qe(Sf,{},{default:()=>{var te;return dt(qe("ul",{role:"menu",class:[r.b(),r.m("inline")],style:I.value},[(te=t.default)==null?void 0:te.call(t)]),[[At,k.value]])}})]);return qe("li",{class:[s.b(),s.is("active",T.value),s.is("opened",k.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:W,onMouseleave:()=>K(),onFocus:W},[G])}}}),KZ=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,t=>{t.addEventListener("keydown",n=>{const a=Kt(n);let o=!1;switch(a){case we.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case we.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case we.tab:$c(e,"mouseleave");break;case we.enter:case we.numpadEnter:case we.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},WZ=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new KZ(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Kt(e);let n=!1;switch(t){case we.down:$c(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break;case we.up:$c(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case we.tab:$c(e.currentTarget,"mouseleave");break;case we.enter:case we.numpadEnter:case we.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},jZ=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new WZ(n,e)})}},qZ=D({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ve("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ka(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){sa(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Vo(a,t.m("collapse"))?(sa(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ka(a,t.m("collapse"))):(Ka(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),sa(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ka(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(_(),ie(qn,pt({mode:"out-in"},n),{default:ae(()=>[oe(a.$slots,"default")]),_:3},16))}}),UZ=qZ;const YZ=Ce({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:J(Array),default:()=>un([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ft,default:()=>Ny},popperEffect:{type:J(String),default:"dark"},popperClass:String,popperStyle:{type:J([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),S0=e=>Ve(e)&&e.every(t=>Ue(t)),GZ={close:(e,t)=>Ue(e)&&S0(t),open:(e,t)=>Ue(e)&&S0(t),select:(e,t,n,a)=>Ue(e)&&S0(t)&&Mt(n)&&(kt(a)||a instanceof Promise)},Ag=64;var XZ=D({name:"ElMenu",props:YZ,emits:GZ,setup(e,{emit:t,slots:n,expose:a}){const o=ht(),l=o.appContext.config.globalProperties.$router,r=V(),s=V(),u=ve("menu"),c=ve("sub-menu");let d=Ag;const f=V(-1),h=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=V(e.defaultActive),p=V({}),v=V({}),m=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const N=g.value&&p.value[g.value];!N||e.mode==="horizontal"||e.collapse||N.indexPath.forEach(P=>{const B=v.value[P];B&&b(P,B.indexPath)})},b=(N,P)=>{h.value.includes(N)||(e.uniqueOpened&&(h.value=h.value.filter(B=>P.includes(B))),h.value.push(N),t("open",N,P))},w=N=>{const P=h.value.indexOf(N);P!==-1&&h.value.splice(P,1)},C=(N,P)=>{w(N),t("close",N,P)},S=({index:N,indexPath:P})=>{h.value.includes(N)?C(N,P):b(N,P)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:P,indexPath:B}=N;if(!(Cn(P)||Cn(B)))if(e.router&&l){const W=N.route||P,K=l.push(W).then(j=>(j||(g.value=P),j));t("select",P,B,{index:P,indexPath:B,route:W},K)}else g.value=P,t("select",P,B,{index:P,indexPath:B})},T=N=>{var B;const P=p.value;g.value=((B=P[N]||g.value&&P[g.value]||P[e.defaultActive])==null?void 0:B.index)??N},M=N=>{const P=getComputedStyle(N),B=Number.parseInt(P.marginLeft,10),W=Number.parseInt(P.marginRight,10);return N.offsetWidth+B+W||0},A=()=>{if(!r.value)return-1;const N=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(r.value),B=Number.parseInt(P.paddingLeft,10),W=Number.parseInt(P.paddingRight,10),K=r.value.clientWidth-B-W;let j=0,G=0;return N.forEach((ee,te)=>{j+=M(ee),j<=K-d&&(G=te+1)}),G===N.length?-1:G},O=N=>v.value[N].indexPath,I=(N,P=33.34)=>{let B;return()=>{B&&clearTimeout(B),B=setTimeout(()=>{N()},P)}};let L=!0;const z=()=>{const N=Mn(s);if(N&&(d=M(N)||Ag),f.value===A())return;const P=()=>{f.value=-1,Ie(()=>{f.value=A()})};L?P():I(P)(),L=!1};fe(()=>e.defaultActive,N=>{p.value[N]||(g.value=""),T(N)}),fe(()=>e.collapse,N=>{N&&(h.value=[])}),fe(p.value,y);let q;ma(()=>{e.mode==="horizontal"&&e.ellipsis?q=en(r,z).stop:q==null||q()});const U=V(!1);{const N=K=>{v.value[K.index]=K},P=K=>{delete v.value[K.index]};bt(tv,Nt({props:e,openedMenus:h,items:p,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:K=>{p.value[K.index]=K},removeMenuItem:K=>{delete p.value[K.index]},addSubMenu:N,removeSubMenu:P,openMenu:b,closeMenu:C,handleMenuItemClick:k,handleSubMenuClick:S})),bt(`${_d}${o.uid}`,{addSubMenu:N,removeSubMenu:P,mouseInChild:U,level:0})}mt(()=>{e.mode==="horizontal"&&new jZ(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:B}=v.value[P];B.forEach(W=>b(W,B))},close:w,updateActiveIndex:T,handleResize:z});const F=Kw(e,0);return()=>{var K;let N=((K=n.default)==null?void 0:K.call(n))??[];const P=[];if(e.mode==="horizontal"&&r.value){const j=Ra(N).filter(te=>(te==null?void 0:te.shapeFlag)!==8),G=f.value===-1?j:j.slice(0,f.value),ee=f.value===-1?[]:j.slice(f.value);ee!=null&&ee.length&&e.ellipsis&&(N=G,P.push(qe(nv,{ref:s,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>qe(ze,{class:c.e("icon-more")},{default:()=>qe(e.ellipsisIcon)}),default:()=>ee})))}const B=e.closeOnClickOutside?[[Yl,()=>{h.value.length&&(U.value||(h.value.forEach(j=>t("close",j,O(j))),h.value=[]))}]]:[],W=dt(qe("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...N,...P]),B);return e.collapseTransition&&e.mode==="vertical"?qe(UZ,()=>W):W}}});const JZ=Ce({index:{type:J([String,null]),default:null},route:{type:J([String,Object])},disabled:Boolean}),ZZ={click:e=>Ue(e.index)&&Ve(e.indexPath)},QZ={title:String},wc="ElMenuItem";var eQ=D({name:wc,__name:"menu-item",props:JZ,emits:ZZ,setup(e,{expose:t,emit:n}){const a=e,o=n;Sa(a.index)&&ft(wc,'Missing required prop: "index"');const l=ht(),r=Ne(tv),s=ve("menu"),u=ve("menu-item");r||on(wc,"can not inject root menu");const{parentMenu:c,indexPath:d}=Fw(l,Bt(a,"index")),f=Ne(`${_d}${c.value.uid}`);f||on(wc,"can not inject sub menu");const h=x(()=>a.index===r.activeIndex),g=Nt({index:a.index,indexPath:d,active:h}),p=()=>{a.disabled||(r.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return mt(()=>{f.addSubMenu(g),r.addMenuItem(g)}),Lt(()=>{f.removeSubMenu(g),r.removeMenuItem(g)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:s,nsMenuItem:u,handleClick:p}),(v,m)=>(_(),$("li",{class:R([i(u).b(),i(u).is("active",h.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[i(c).type.name==="ElMenu"&&i(r).props.collapse&&v.$slots.title?(_(),ie(i(Fn),{key:0,effect:i(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(r).props.popperClass,"popper-style":i(r).props.popperStyle,persistent:i(r).props.persistent,"focus-on-target":""},{content:ae(()=>[oe(v.$slots,"title")]),default:ae(()=>[E("div",{class:R(i(s).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(_(),$(He,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),Ww=eQ,tQ=D({name:"ElMenuItemGroup",__name:"menu-item-group",props:QZ,setup(e){const t=ve("menu-item-group");return(n,a)=>(_(),$("li",{class:R(i(t).b())},[E("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(_(),$(He,{key:0},[_t(_e(e.title),1)],64))],2),E("ul",null,[oe(n.$slots,"default")])],2))}}),jw=tQ;const nQ=rt(XZ,{MenuItem:Ww,MenuItemGroup:jw,SubMenu:nv}),aQ=ln(Ww),oQ=ln(jw),lQ=ln(nv),rQ=Ce({icon:{type:Ft,default:()=>xy},title:String,content:{type:String,default:""}}),sQ={back:()=>!0},iQ=["aria-label"];var uQ=D({name:"ElPageHeader",__name:"page-header",props:rQ,emits:sQ,setup(e,{emit:t}){const n=t,{t:a}=xt(),o=ve("page-header");function l(){n("back")}return(r,s)=>(_(),$("div",{class:R([i(o).b(),i(o).is("contentful",!!r.$slots.default),{[i(o).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[i(o).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(_(),$("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(r.$slots,"breadcrumb")],2)):re("v-if",!0),E("div",{class:R(i(o).e("header"))},[E("div",{class:R(i(o).e("left"))},[E("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:l},[e.icon||r.$slots.icon?(_(),$("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(r.$slots,"icon",{},()=>[e.icon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1})):re("v-if",!0)])],10,iQ)):re("v-if",!0),E("div",{class:R(i(o).e("title"))},[oe(r.$slots,"title",{},()=>[_t(_e(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),Q(i($w),{direction:"vertical"}),E("div",{class:R(i(o).e("content"))},[oe(r.$slots,"content",{},()=>[_t(_e(e.content),1)])],2)],2),r.$slots.extra?(_(),$("div",{key:0,class:R(i(o).e("extra"))},[oe(r.$slots,"extra")],2)):re("v-if",!0)],2),r.$slots.default?(_(),$("div",{key:1,class:R(i(o).e("main"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),cQ=uQ;const dQ=rt(cQ),qw=Symbol("elPaginationKey"),fQ=Ce({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ft}}),pQ={click:e=>e instanceof MouseEvent},hQ=["disabled","aria-label","aria-disabled"],vQ={key:0};var mQ=D({name:"ElPaginationPrev",__name:"prev",props:fQ,emits:pQ,setup(e){const t=e,{t:n}=xt(),a=x(()=>t.disabled||t.currentPage<=1);return(o,l)=>(_(),$("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.prevText?(_(),$("span",vQ,_e(o.prevText),1)):(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(o.prevIcon)))]),_:1}))],8,hQ))}}),gQ=mQ;const yQ=Ce({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ft}}),bQ=["disabled","aria-label","aria-disabled"],wQ={key:0};var CQ=D({name:"ElPaginationNext",__name:"next",props:yQ,emits:["click"],setup(e){const t=e,{t:n}=xt(),a=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,l)=>(_(),$("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.nextText?(_(),$("span",wQ,_e(o.nextText),1)):(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(o.nextIcon)))]),_:1}))],8,bQ))}}),_Q=CQ;const av=()=>Ne(qw,{}),SQ=Ce({pageSize:{type:Number,required:!0},pageSizes:{type:J(Array),default:()=>un([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:vo},appendSizeTo:String});var xQ=D({name:"ElPaginationSizes",__name:"sizes",props:SQ,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),l=ve("pagination"),r=av(),s=V(n.pageSize);fe(()=>n.pageSizes,(d,f)=>{sn(d,f)||Ve(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),fe(()=>n.pageSize,d=>{s.value=d});const u=x(()=>n.pageSizes);function c(d){var f;d!==s.value&&(s.value=d,(f=r.handleSizeChange)==null||f.call(r,Number(d)))}return(d,f)=>(_(),$("span",{class:R(i(l).e("sizes"))},[Q(i(Jl),{"model-value":s.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ae(()=>[(_(!0),$(He,null,Ct(u.value,h=>(_(),ie(i(gd),{key:h,value:h,label:h+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),kQ=xQ;const EQ=Ce({size:{type:String,values:vo}}),TQ=["disabled"];var MQ=D({name:"ElPaginationJumper",__name:"jumper",props:EQ,setup(e){const{t}=xt(),n=ve("pagination"),{pageCount:a,disabled:o,currentPage:l,changeEvent:r}=av(),s=V(),u=x(()=>s.value??(l==null?void 0:l.value));function c(f){s.value=f?+f:""}function d(f){f=Math.trunc(+f),r==null||r(f),s.value=void 0}return(f,h)=>(_(),$("span",{class:R(i(n).e("jump")),disabled:i(o)},[E("span",{class:R([i(n).e("goto")])},_e(i(t)("el.pagination.goto")),3),Q(i(jn),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),E("span",{class:R([i(n).e("classifier")])},_e(i(t)("el.pagination.pageClassifier")),3)],10,TQ))}}),OQ=MQ;const $Q=Ce({total:{type:Number,default:1e3}}),AQ=["disabled"];var RQ=D({name:"ElPaginationTotal",__name:"total",props:$Q,setup(e){const{t}=xt(),n=ve("pagination"),{disabled:a}=av();return(o,l)=>(_(),$("span",{class:R(i(n).e("total")),disabled:i(a)},_e(i(t)("el.pagination.total",{total:o.total})),11,AQ))}}),NQ=RQ;const PQ=Ce({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),IQ=["aria-current","aria-label","tabindex"],LQ=["tabindex","aria-label"],VQ=["aria-current","aria-label","tabindex"],BQ=["tabindex","aria-label"],zQ=["aria-current","aria-label","tabindex"];var DQ=D({name:"ElPaginationPager",__name:"pager",props:PQ,emits:[yt],setup(e,{emit:t}){const n=e,a=t,o=ve("pager"),l=ve("icon"),{t:r}=xt(),s=V(!1),u=V(!1),c=V(!1),d=V(!1),f=V(!1),h=V(!1),g=x(()=>{const S=n.pagerCount,k=(S-1)/2,T=Number(n.currentPage),M=Number(n.pageCount);let A=!1,O=!1;M>S&&(T>S-k&&(A=!0),T["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),v=x(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),m=x(()=>n.disabled?-1:0);fe(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,k,T])=>{const M=(k-1)/2;let A=!1,O=!1;S>k&&(A=T>k-M,O=TM&&(T=M)),T!==A&&a(yt,T)}return(S,k)=>(_(),$("ul",{class:R(i(o).b()),onClick:C,onKeyup:rn(w,["enter"])},[S.pageCount>0?(_(),$("li",{key:0,class:R([[i(o).is("active",S.currentPage===1),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":i(r)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,IQ)):re("v-if",!0),s.value?(_(),$("li",{key:1,class:R(p.value),tabindex:m.value,"aria-label":i(r)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>y(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>b(!0)),onBlur:k[3]||(k[3]=T=>f.value=!1)},[(c.value||f.value)&&!S.disabled?(_(),ie(i(yl),{key:0})):(_(),ie(i(_2),{key:1}))],42,LQ)):re("v-if",!0),(_(!0),$(He,null,Ct(g.value,T=>(_(),$("li",{key:T,class:R([[i(o).is("active",S.currentPage===T),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===T,"aria-label":i(r)("el.pagination.currentPage",{pager:T}),tabindex:m.value},_e(T),11,VQ))),128)),u.value?(_(),$("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(r)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>y()),onMouseleave:k[5]||(k[5]=T=>d.value=!1),onFocus:k[6]||(k[6]=T=>b()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(d.value||h.value)&&!S.disabled?(_(),ie(i(bl),{key:0})):(_(),ie(i(_2),{key:1}))],42,BQ)):re("v-if",!0),S.pageCount>1?(_(),$("li",{key:3,class:R([[i(o).is("active",S.currentPage===S.pageCount),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":i(r)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:m.value},_e(S.pageCount),11,zQ)):re("v-if",!0)],34))}}),HQ=DQ;const ua=e=>typeof e!="number",FQ=Ce({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>De(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:J(Array),default:()=>un([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ft,default:()=>jo},nextText:{type:String,default:""},nextIcon:{type:Ft,default:()=>Jn},teleported:{type:Boolean,default:!0},small:Boolean,size:On,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),KQ={"update:current-page":e=>De(e),"update:page-size":e=>De(e),"size-change":e=>De(e),change:(e,t)=>De(e)&&De(t),"current-change":e=>De(e),"prev-click":e=>De(e),"next-click":e=>De(e)},Rg="ElPagination";var WQ=D({name:Rg,props:FQ,emits:KQ,setup(e,{emit:t,slots:n}){const{t:a}=xt(),o=ve("pagination"),l=ht().vnode.props||{},r=wy(),s=x(()=>e.small?"small":e.size??r.value);Lo({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},x(()=>!!e.small));const u="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,c="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,d=x(()=>{if(ua(e.total)&&ua(e.pageCount)||!ua(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(ua(e.pageCount)){if(!ua(e.total)&&!ua(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=V(ua(e.defaultPageSize)?10:e.defaultPageSize),h=V(ua(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=x({get(){return ua(e.pageSize)?f.value:e.pageSize},set(S){ua(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),p=x(()=>{let S=0;return ua(e.pageCount)?ua(e.total)||(S=Math.max(1,Math.ceil(e.total/g.value))):S=e.pageCount,S}),v=x({get(){return ua(e.currentPage)?h.value:e.currentPage},set(S){let k=S;S<1?k=1:S>p.value&&(k=p.value),ua(e.currentPage)&&(h.value=k),u&&(t("update:current-page",k),t("current-change",k))}});fe(p,S=>{v.value>S&&(v.value=S)}),fe([v,g],S=>{t(yt,...S)},{flush:"post"});function m(S){v.value=S}function y(S){g.value=S;const k=p.value;v.value>k&&(v.value=k)}function b(){e.disabled||(v.value-=1,t("prev-click",v.value))}function w(){e.disabled||(v.value+=1,t("next-click",v.value))}function C(S,k){S&&(S.props||(S.props={}),S.props.class=[S.props.class,k].join(" "))}return bt(qw,{pageCount:p,disabled:x(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:y}),()=>{var I;if(!d.value)return ft(Rg,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const S=[],k=[],T=qe("div",{class:o.e("rightwrapper")},k),M={prev:qe(gQ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:qe(OQ,{size:s.value}),pager:qe(HQ,{currentPage:v.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:qe(_Q,{disabled:e.disabled,currentPage:v.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:qe(kQ,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:((I=n==null?void 0:n.default)==null?void 0:I.call(n))??null,total:qe(NQ,{total:ua(e.total)?0:e.total})},A=e.layout.split(",").map(L=>L.trim());let O=!1;return A.forEach(L=>{if(L==="->"){O=!0;return}O?k.push(M[L]):S.push(M[L])}),C(S[0],o.is("first")),C(S[S.length-1],o.is("last")),O&&k.length>0&&(C(k[0],o.is("first")),C(k[k.length-1],o.is("last")),S.push(T)),qe("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},S)}}});const jQ=rt(WQ),qQ=Ce({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:O2,default:"primary"},cancelButtonType:{type:String,values:O2,default:"text"},icon:{type:Ft,default:()=>Iy},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,persistent:Ht.persistent,width:{type:[String,Number],default:150},virtualTriggering:Do.virtualTriggering,virtualRef:Do.virtualRef}),UQ={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var YQ=D({name:"ElPopconfirm",__name:"popconfirm",props:qQ,emits:UQ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("popconfirm"),s=V(),u=V(),c=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),d=()=>{var y,b;(b=(y=u.value)==null?void 0:y.focus)==null||b.call(y)},f=()=>{var y,b;(b=(y=s.value)==null?void 0:y.onClose)==null||b.call(y)},h=x(()=>({width:cn(a.width)})),g=y=>{o("confirm",y),f()},p=y=>{o("cancel",y),f()},v=x(()=>a.confirmButtonText||l("el.popconfirm.confirmButtonText")),m=x(()=>a.cancelButtonText||l("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(y,b)=>(_(),ie(i(Fn),pt({ref_key:"tooltipRef",ref:s,trigger:"click",effect:e.effect},y.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ae(()=>[E("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(r).b())},[E("div",{class:R(i(r).e("main"))},[!e.hideIcon&&e.icon?(_(),ie(i(ze),{key:0,class:R(i(r).e("icon")),style:We({color:e.iconColor})},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),_t(" "+_e(e.title),1)],2),E("div",{class:R(i(r).e("action"))},[oe(y.$slots,"actions",{confirm:g,cancel:p},()=>[Q(i(Ln),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:p},{default:ae(()=>[_t(_e(m.value),1)]),_:1},8,["type","text"]),Q(i(Ln),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ae(()=>[_t(_e(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),GQ=YQ;const XQ=rt(GQ),JQ=Ce({trigger:Do.trigger,triggerKeys:Do.triggerKeys,placement:zc.placement,disabled:Do.disabled,visible:Ht.visible,transition:Ht.transition,popperOptions:zc.popperOptions,tabindex:zc.tabindex,content:Ht.content,popperStyle:Ht.popperStyle,popperClass:Ht.popperClass,enterable:{...Ht.enterable,default:!0},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,appendTo:Ht.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),ZQ={"update:visible":e=>Dt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},QQ="onUpdate:visible";var eee=D({name:"ElPopover",__name:"popover",props:JQ,emits:ZQ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>a[QQ]),r=ve("popover"),s=V(),u=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),c=x(()=>[{width:cn(a.width)},a.popperStyle]),d=x(()=>[r.b(),a.popperClass,{[r.m("plain")]:!!a.content}]),f=x(()=>a.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var y;(y=s.value)==null||y.hide()},g=()=>{o("before-enter")},p=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:h}),(y,b)=>(_(),ie(i(Fn),pt({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":l.value,onBeforeShow:g,onBeforeHide:p,onShow:v,onHide:m}),{content:ae(()=>[e.title?(_(),$("div",{key:0,class:R(i(r).e("title")),role:"title"},_e(e.title),3)):re("v-if",!0),oe(y.$slots,"default",{hide:h},()=>[_t(_e(e.content),1)])]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),tee=eee;const Ng=(e,t)=>{var a;const n=(a=t.arg||t.value)==null?void 0:a.popperRef;n&&(n.triggerRef=e)};var nee={mounted(e,t){Ng(e,t)},updated(e,t){Ng(e,t)}};const aee="popover",Uw=iA(nee,aee),oee=rt(tee,{directive:Uw}),lee=Ce({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:J(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:J([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:J(Function),default:e=>`${e}%`}}),ree=["aria-valuenow"],see={viewBox:"0 0 100 100"},iee=["d","stroke","stroke-linecap","stroke-width"],uee=["d","stroke","opacity","stroke-linecap","stroke-width"],cee={key:0};var dee=D({name:"ElProgress",__name:"progress",props:lee,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ve("progress"),o=x(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},C=b(n.percentage);return C.includes("gradient")?w.background=C:w.backgroundColor=C,w}),l=x(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=x(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),s=x(()=>{const w=r.value,C=n.type==="dashboard";return` + M 50 50 + m 0 ${C?"":"-"}${w} + a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2} + a ${w} ${w} 0 1 1 0 ${C?"":"-"}${w*2} + `}),u=x(()=>2*Math.PI*r.value),c=x(()=>n.type==="dashboard"?.75:1),d=x(()=>`${-1*u.value*(1-c.value)/2}px`),f=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=x(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=x(()=>{let w;return n.color?w=b(n.percentage):w=t[n.status]||t.default,w}),p=x(()=>n.status==="warning"?Hu:n.type==="line"?n.status==="success"?gf:wo:n.status==="success"?ni:Ba),v=x(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=x(()=>n.format(n.percentage));function y(w){const C=100/w.length;return w.map((S,k)=>Ue(S)?{color:S,percentage:(k+1)*C}:S).sort((S,k)=>S.percentage-k.percentage)}const b=w=>{var S;const{color:C}=n;if(ct(C))return C(w);if(Ue(C))return C;{const k=y(C);for(const T of k)if(T.percentage>w)return T.color;return(S=k[k.length-1])==null?void 0:S.color}};return(w,C)=>(_(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(_(),$("div",{key:0,class:R(i(a).b("bar"))},[E("div",{class:R(i(a).be("bar","outer")),style:We({height:`${e.strokeWidth}px`})},[E("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:We(o.value)},[(e.showText||w.$slots.default)&&e.textInside?(_(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(w.$slots,"default",{percentage:e.percentage},()=>[E("span",null,_e(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(_(),$("div",{key:1,class:R(i(a).b("circle")),style:We({height:`${e.width}px`,width:`${e.width}px`})},[(_(),$("svg",see,[E("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:We(f.value)},null,14,iee),E("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:We(h.value)},null,14,uee)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(_(),$("div",{key:2,class:R(i(a).e("text")),style:We({fontSize:`${v.value}px`})},[oe(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(p.value)))]),_:1})):(_(),$("span",cee,_e(m.value),1))])],6)):re("v-if",!0)],10,ree))}}),fee=dee;const Yw=rt(fee),pee=Ce({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:J([Array,Object]),default:()=>un(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[xi,xi,xi]},voidIcon:{type:Ft,default:()=>Fy},disabledVoidIcon:{type:Ft,default:()=>xi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>un(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:On,clearable:Boolean,...ia(["ariaLabel"])}),hee={[yt]:e=>De(e),[at]:e=>De(e)},vee=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],mee=["onMousemove","onClick"];var gee=D({name:"ElRate",__name:"rate",props:pee,emits:hee,setup(e,{expose:t,emit:n}){function a(P,B){const W=j=>Mt(j),K=B[Object.keys(B).map(j=>+j).filter(j=>{const G=B[j];return W(G)&&G.excluded?Pj-G)[0]];return W(K)&&K.value||K}const o=e,l=n,r=Ne(qo,void 0),s=En(),u=ve("rate"),{inputId:c,isLabeledByFormItem:d}=za(o,{formItemContext:r}),f=V(gr(o.modelValue,0,o.max)),h=V(-1),g=V(!0),p=V([]),v=x(()=>p.value.map(P=>P.$el.clientWidth)),m=x(()=>[u.b(),u.m(s.value)]),y=dn(),b=x(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":k.value})),w=x(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),C=x(()=>o.modelValue*100-Math.floor(o.modelValue)*100),S=x(()=>Ve(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),k=x(()=>{const P=a(f.value,S.value);return Mt(P)?"":P}),T=x(()=>{let P="";return y.value?P=`${C.value}%`:o.allowHalf&&(P="50%"),{color:k.value,width:P}}),M=x(()=>{let P=Ve(o.icons)?[...o.icons]:{...o.icons};return P=Io(P),Ve(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),A=x(()=>a(o.modelValue,M.value)),O=x(()=>y.value?Ue(o.disabledVoidIcon)?o.disabledVoidIcon:Io(o.disabledVoidIcon):Ue(o.voidIcon)?o.voidIcon:Io(o.voidIcon)),I=x(()=>a(f.value,M.value));function L(P){const B=y.value&&C.value>0&&P-1o.modelValue,W=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return B||W}function z(P){o.clearable&&P===o.modelValue&&(P=0),l(at,P),o.modelValue!==P&&l(yt,P)}function q(P){y.value||(o.allowHalf&&g.value?z(f.value):z(P))}function U(P){if(y.value)return;const B=Kt(P),W=o.allowHalf?.5:1;let K=f.value;switch(B){case we.up:case we.right:K+=W;break;case we.left:case we.down:K-=W;break}if(K=gr(K,0,o.max),K!==f.value)return P.stopPropagation(),P.preventDefault(),l(at,K),l(yt,K),K}function F(P,B){y.value||(o.allowHalf&&B?(g.value=B.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,h.value=P)}function N(){y.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=gr(o.modelValue,0,o.max),h.value=-1)}return fe(()=>o.modelValue,P=>{f.value=gr(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||l(at,0),t({setCurrentValue:F,resetCurrentValue:N}),(P,B)=>{var W;return _(),$("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(y))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?(W=i(r))==null?void 0:W.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:We(b.value),tabindex:i(y)?void 0:0,"aria-disabled":i(y),onKeydown:U},[(_(!0),$(He,null,Ct(e.max,(K,j)=>(_(),$("span",{key:j,class:R(i(u).e("item")),onMousemove:G=>F(K,G),onMouseleave:N,onClick:G=>q(K)},[Q(i(ze),{ref_for:!0,ref_key:"iconRefs",ref:p,class:R([i(u).e("icon"),{hover:h.value===K},i(u).is("active",K<=f.value),i(u).is("focus-visible",K===Math.ceil(f.value||1))])},{default:ae(()=>[dt((_(),ie(ut(I.value),null,null,512)),[[At,!L(K)&&K<=f.value]]),dt((_(),ie(ut(O.value),null,null,512)),[[At,!L(K)&&K>f.value]]),dt((_(),ie(ut(O.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[At,L(K)]]),dt(Q(i(ze),{style:We(T.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ae(()=>[(_(),ie(ut(A.value)))]),_:1},8,["style","class"]),[[At,L(K)]])]),_:2},1032,["class"])],42,mee))),128)),e.showText||e.showScore?(_(),$("span",{key:0,class:R(i(u).e("text")),style:We({color:e.textColor})},_e(w.value),7)):re("v-if",!0)],46,vee)}}}),yee=gee;const bee=rt(yee),hr={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Pg={[hr.primary]:Ds,[hr.success]:Ty,[hr.warning]:Hu,[hr.error]:yf,[hr.info]:Ds},wee=Ce({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var Cee=D({name:"ElResult",__name:"result",props:wee,setup(e){const t=e,n=ve("result"),a=x(()=>{const o=t.icon,l=o&&hr[o]?hr[o]:"icon-info";return{class:l,component:Pg[l]||Pg["icon-info"]}});return(o,l)=>(_(),$("div",{class:R(i(n).b())},[E("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(_(),ie(ut(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(_(),$("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[E("p",null,_e(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(_(),$("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[E("p",null,_e(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(_(),$("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),_ee=Cee;const See=rt(_ee),D2=50,Sd="itemRendered",xd="scroll",fs="forward",kd="backward",Wa="auto",Ef="smart",du="start",No="center",fu="end",Ks="horizontal",Gw="vertical",xee="ltr",Cs="rtl",pu="negative",ov="positive-ascending",lv="positive-descending",kee={[Ks]:"left",[Gw]:"top"},Eee=20,H2=yo({type:J([Number,Function]),required:!0}),F2=yo({type:Number}),K2=yo({type:Number,default:2}),Tee=yo({type:String,values:["ltr","rtl"],default:"ltr"}),W2=yo({type:Number,default:0}),Ed=yo({type:Number,required:!0}),Xw=yo({type:String,values:["horizontal","vertical"],default:Gw}),Jw=Ce({className:{type:String,default:""},containerElement:{type:J([String,Object]),default:"div"},data:{type:J(Array),default:()=>un([])},direction:Tee,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:J(Object),default:()=>({})},style:{type:J([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Zw=Ce({cache:K2,estimatedItemSize:F2,layout:Xw,initScrollOffset:W2,total:Ed,itemSize:H2,...Jw}),j2={type:Number,default:6},Qw={type:Number,default:0},e5={type:Number,default:2},Or=Ce({columnCache:K2,columnWidth:H2,estimatedColumnWidth:F2,estimatedRowHeight:F2,initScrollLeft:W2,initScrollTop:W2,itemKey:{type:J(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:K2,rowHeight:H2,totalColumn:Ed,totalRow:Ed,hScrollbarSize:j2,vScrollbarSize:j2,scrollbarStartGap:Qw,scrollbarEndGap:e5,role:String,...Jw}),t5=Ce({alwaysOn:Boolean,class:String,layout:Xw,total:Ed,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:j2,startGap:Qw,endGap:e5,visible:Boolean}),Cr=(e,t)=>ee===xee||e===Cs||e===Ks,Ig=e=>e===Cs;let os=null;function Td(e=!1){if(os===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?os=lv:(t.scrollLeft=1,t.scrollLeft===0?os=pu:os=ov),document.body.removeChild(t),os}return os}function Mee({move:e,size:t,bar:n},a){const o={},l=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=l,a==="horizontal"?o.height="100%":o.width="100%",o}var Lg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Oee(e,t){return!!(e===t||Lg(e)&&Lg(t))}function $ee(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=ht().proxy.$props;return x(()=>{const t=(n,a,o)=>({});return e.perfMode?of(t):Aee(t)})},a5=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{ml(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===Ks?c:d;r(f)||(l+=f,!Zd()&&f!==0&&u.preventDefault(),o=Ua(()=>{a(l),l=0}))}}},q2=D({name:"ElVirtualScrollBar",props:t5,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=x(()=>e.startGap+e.endGap),a=ve("virtual-scrollbar"),o=ve("scrollbar"),l=V(),r=V();let s=null,u=null;const c=Nt({isDragging:!1,traveled:0}),d=x(()=>rb[e.layout]),f=x(()=>e.clientSize-i(n)),h=x(()=>({position:"absolute",width:`${Ks===e.layout?f.value:e.scrollbarSize}px`,height:`${Ks===e.layout?e.scrollbarSize:f.value}px`,[kee[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=x(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*f.value/100;const T=f.value/3;return Math.floor(Math.min(Math.max(k*f.value/100,Eee),T))}),p=x(()=>{if(!Number.isFinite(g.value))return{display:"none"};const k=`${g.value}px`;return Mee({bar:d.value,size:k,move:c.traveled},e.layout)}),v=x(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",C),window.addEventListener("mouseup",w);const k=i(r);k&&(u=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",C,{passive:!0}),k.addEventListener("touchend",w))},y=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const k=i(r);k&&(k.removeEventListener("touchmove",C),k.removeEventListener("touchend",w))},b=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[d.value.axis]=k.currentTarget[d.value.offset]-(k[d.value.client]-k.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),y()},C=k=>{const{isDragging:T}=c;if(!T||!r.value||!l.value)return;const M=c[d.value.axis];if(!M)return;ml(s);const A=(l.value.getBoundingClientRect()[d.value.direction]-k[d.value.client])*-1-(r.value[d.value.offset]-M);s=Ua(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=k=>{const T=Math.abs(k.target.getBoundingClientRect()[d.value.direction]-k[d.value.client])-r.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(T,v.value)),t("scroll",T,v.value)};return fe(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*v.value))}),Lt(()=>{y()}),()=>qe("div",{role:"presentation",ref:l,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Xe(S,["stop","prevent"]),onTouchstartPrevent:b},qe("div",{ref:r,class:o.e("thumb"),style:p.value,onMousedown:b},[]))}}),o5=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:s,clearCache:u,validateProps:c})=>D({name:e??"ElVirtualList",props:Zw,emits:[Sd,xd],setup(d,{emit:f,expose:h}){c(d);const g=ht(),p=ve("vl"),v=V(s(d,g)),m=n5(),y=V(),b=V(),w=V(),C=V({isScrolling:!1,scrollDir:"forward",scrollOffset:De(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=x(()=>{const{total:G,cache:ee}=d,{isScrolling:te,scrollDir:ue,scrollOffset:ne}=i(C);if(G===0)return[0,0,0,0];const de=l(d,ne,i(v)),se=r(d,de,ne,i(v)),Y=!te||ue===kd?Math.max(1,ee):1,X=!te||ue===fs?Math.max(1,ee):1;return[Math.max(0,de-Y),Math.max(0,Math.min(G-1,se+X)),de,se]}),k=x(()=>o(d,i(v))),T=x(()=>hu(d.layout)),M=x(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:De(d.height)?`${d.height}px`:d.height,width:De(d.width)?`${d.width}px`:d.width},d.style]),A=x(()=>{const G=i(k),ee=i(T);return{height:ee?"100%":`${G}px`,pointerEvents:i(C).isScrolling?"none":void 0,width:ee?`${G}px`:"100%",margin:0,boxSizing:"border-box"}}),O=x(()=>T.value?d.width:d.height),{onWheel:I}=a5({atStartEdge:x(()=>C.value.scrollOffset<=0),atEndEdge:x(()=>C.value.scrollOffset>=k.value),layout:x(()=>d.layout)},G=>{var ee,te;(te=(ee=w.value).onMouseUp)==null||te.call(ee),N(Math.min(C.value.scrollOffset+G,k.value-O.value))});Vt(y,"wheel",I,{passive:!1});const L=()=>{const{total:G}=d;if(G>0){const[ne,de,se,Y]=i(S);f(Sd,ne,de,se,Y)}const{scrollDir:ee,scrollOffset:te,updateRequested:ue}=i(C);f(xd,ee,te,ue)},z=G=>{const{clientHeight:ee,scrollHeight:te,scrollTop:ue}=G.currentTarget,ne=i(C);if(ne.scrollOffset===ue)return;const de=Math.max(0,Math.min(ue,te-ee));C.value={...ne,isScrolling:!0,scrollDir:Cr(ne.scrollOffset,de),scrollOffset:de,updateRequested:!1},Ie(W)},q=G=>{const{clientWidth:ee,scrollLeft:te,scrollWidth:ue}=G.currentTarget,ne=i(C);if(ne.scrollOffset===te)return;const{direction:de}=d;let se=te;if(de===Cs)switch(Td()){case pu:se=-te;break;case lv:se=ue-ee-te;break}se=Math.max(0,Math.min(se,ue-ee)),C.value={...ne,isScrolling:!0,scrollDir:Cr(ne.scrollOffset,se),scrollOffset:se,updateRequested:!1},Ie(W)},U=G=>{i(T)?q(G):z(G),L()},F=(G,ee)=>{const te=(k.value-O.value)/ee*G;N(Math.min(k.value-O.value,te))},N=G=>{G=Math.max(G,0),G!==i(C).scrollOffset&&(C.value={...i(C),scrollOffset:G,scrollDir:Cr(i(C).scrollOffset,G),updateRequested:!0},Ie(W))},P=(G,ee=Wa)=>{const{scrollOffset:te}=i(C);G=Math.max(0,Math.min(G,d.total-1)),N(t(d,G,ee,te,i(v)))},B=G=>{const{direction:ee,itemSize:te,layout:ue}=d,ne=m.value(u&&te,u&&ue,u&&ee);let de;if(An(ne,String(G)))de=ne[G];else{const se=a(d,G,i(v)),Y=n(d,G,i(v)),X=i(T),H=ee===Cs,Z=X?se:0;ne[G]=de={position:"absolute",left:H?void 0:`${Z}px`,right:H?`${Z}px`:void 0,top:X?0:`${se}px`,height:X?"100%":`${Y}px`,width:X?`${Y}px`:"100%"}}return de},W=()=>{C.value.isScrolling=!1,Ie(()=>{m.value(-1,null,null)})},K=()=>{const G=y.value;G&&(G.scrollTop=0)};mt(()=>{if(!Rt)return;const{initScrollOffset:G}=d,ee=i(y);De(G)&&ee&&(i(T)?ee.scrollLeft=G:ee.scrollTop=G),L()}),ho(()=>{const{direction:G,layout:ee}=d,{scrollOffset:te,updateRequested:ue}=i(C),ne=i(y);if(ue&&ne)if(ee===Ks)if(G===Cs)switch(Td()){case pu:ne.scrollLeft=-te;break;case ov:ne.scrollLeft=te;break;default:{const{clientWidth:de,scrollWidth:se}=ne;ne.scrollLeft=se-de-te;break}}else ne.scrollLeft=te;else ne.scrollTop=te}),wu(()=>{i(y).scrollTop=i(C).scrollOffset});const j={ns:p,clientSize:O,estimatedTotalSize:k,windowStyle:M,windowRef:y,innerRef:b,innerStyle:A,itemsToRender:S,scrollbarRef:w,states:C,getItemStyle:B,onScroll:U,onScrollbarScroll:F,onWheel:I,scrollTo:N,scrollToItem:P,resetScrollTop:K};return h({windowRef:y,innerRef:b,getItemStyleCache:m,scrollTo:N,scrollToItem:P,resetScrollTop:K,states:C}),j},render(d){var W;const{$slots:f,className:h,clientSize:g,containerElement:p,data:v,getItemStyle:m,innerElement:y,itemsToRender:b,innerStyle:w,layout:C,total:S,onScroll:k,onScrollbarScroll:T,states:M,useIsScrolling:A,windowStyle:O,ns:I}=d,[L,z]=b,q=ut(p),U=ut(y),F=[];if(S>0)for(let K=L;K<=z;K++)F.push(qe(He,{key:K},(W=f.default)==null?void 0:W.call(f,{data:v,index:K,isScrolling:A?M.isScrolling:void 0,style:m(K)})));const N=[qe(U,pt(d.innerProps,{style:w,ref:"innerRef"}),Ue(U)?F:{default:()=>F})],P=qe(q2,{ref:"scrollbarRef",clientSize:g,layout:C,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-g),total:S,alwaysOn:M.scrollbarAlwaysOn}),B=qe(q,{class:[I.e("window"),h],style:O,onScroll:k,ref:"windowRef",key:0},Ue(q)?[N]:{default:()=>[N]});return qe("div",{key:0,class:[I.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[B,P])}}),l5=o5({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},l,r,s)=>{const u=hu(a)?o:e;Ue(u)&&on("[ElVirtualList]",` + You should set + width/height + to number when your layout is + horizontal/vertical + `);const c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===Ef&&(s>=f-u&&s<=d+u?r=Wa:r=No),r){case du:return d;case fu:return f;case No:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case Wa:default:return s>=f&&s<=d?s:sMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},l,r)=>{const s=l*n,u=hu(a)?o:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Ree="ElDynamicSizeList",ps=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const s=o[l];r=s.offset+s.size}for(let s=l+1;s<=t;s++){const u=a(s);o[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return o[t]},Nee=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?r5(e,t,0,o,n):Pee(e,t,Math.max(0,o),n)},r5=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),r=ps(e,l,t).offset;if(r===o)return l;ro&&(a=l-1)}return Math.max(0,n-1)},Pee=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},Iee=o5({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>ps(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Vg,getOffset:(e,t,n,a,o)=>{const{height:l,layout:r,width:s}=e,u=hu(r)?s:l,c=ps(e,t,o),d=Vg(e,o),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===Ef&&(a>=h-u&&a<=f+u?n=Wa:n=No),n){case du:return f;case fu:return h;case No:return Math.round(h+(f-h)/2);case Wa:default:return a>=h&&a<=f?a:aNee(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:r,width:s}=e,u=hu(r)?s:o,c=ps(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&on(Ree,` + itemSize is required as function, but the given value was ${typeof e} + `)}}),Lee=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,s=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return h||g};return{hasReachedEdge:u,onWheel:d=>{ml(l);let f=d.deltaX,h=d.deltaY;if(Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),u(f,h)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=h,d.preventDefault(),l=Ua(()=>{o(r,s),r=0,s=0})}}},Vee=(e,t,n,a,o,l,r)=>{const s=V(0),u=V(0);let c,d=0,f=0;const h=p=>{ml(c),s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},g=p=>{p.preventDefault(),ml(c),d+=s.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Ua(()=>{const v=a.value-i(l),m=o.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Vt(e,"touchstart",h,{passive:!0}),Vt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:h,handleTouchMove:g}},s5=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:p})=>D({name:e??"ElVirtualList",props:Or,emits:[Sd,xd],setup(v,{emit:m,expose:y,slots:b}){const w=ve("vl");p(v);const C=ht(),S=V(h(v,C));g==null||g(C,S);const k=V(),T=V(),M=V(),A=V(),O=V({isScrolling:!1,scrollLeft:De(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:De(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:fs,yAxisScrollDir:fs}),I=n5(),L=x(()=>Number.parseInt(`${v.height}`,10)),z=x(()=>Number.parseInt(`${v.width}`,10)),q=x(()=>{const{totalColumn:ye,totalRow:ke,columnCache:be}=v,{isScrolling:Pe,xAxisScrollDir:Be,scrollLeft:Qe}=i(O);if(ye===0||ke===0)return[0,0,0,0];const tt=a(v,Qe,i(S)),nt=o(v,tt,Qe,i(S)),Te=!Pe||Be===kd?Math.max(1,be):1,Ye=!Pe||Be===fs?Math.max(1,be):1;return[Math.max(0,tt-Te),Math.max(0,Math.min(ye-1,nt+Ye)),tt,nt]}),U=x(()=>{const{totalColumn:ye,totalRow:ke,rowCache:be}=v,{isScrolling:Pe,yAxisScrollDir:Be,scrollTop:Qe}=i(O);if(ye===0||ke===0)return[0,0,0,0];const tt=d(v,Qe,i(S)),nt=f(v,tt,Qe,i(S)),Te=!Pe||Be===kd?Math.max(1,be):1,Ye=!Pe||Be===fs?Math.max(1,be):1;return[Math.max(0,tt-Te),Math.max(0,Math.min(ke-1,nt+Ye)),tt,nt]}),F=x(()=>l(v,i(S))),N=x(()=>r(v,i(S))),P=x(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:De(v.height)?`${v.height}px`:v.height,width:De(v.width)?`${v.width}px`:v.width},v.style??{}]),B=x(()=>{const ye=`${i(N)}px`;return{height:`${i(F)}px`,pointerEvents:i(O).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),W=()=>{const{totalColumn:ye,totalRow:ke}=v;if(ye>0&&ke>0){const[nt,Te,Ye,st]=i(q),[Ke,et,gt,he]=i(U);m(Sd,{columnCacheStart:nt,columnCacheEnd:Te,rowCacheStart:Ke,rowCacheEnd:et,columnVisibleStart:Ye,columnVisibleEnd:st,rowVisibleStart:gt,rowVisibleEnd:he})}const{scrollLeft:be,scrollTop:Pe,updateRequested:Be,xAxisScrollDir:Qe,yAxisScrollDir:tt}=i(O);m(xd,{xAxisScrollDir:Qe,scrollLeft:be,yAxisScrollDir:tt,scrollTop:Pe,updateRequested:Be})},K=ye=>{const{clientHeight:ke,clientWidth:be,scrollHeight:Pe,scrollLeft:Be,scrollTop:Qe,scrollWidth:tt}=ye.currentTarget,nt=i(O);if(nt.scrollTop===Qe&&nt.scrollLeft===Be)return;let Te=Be;if(Ig(v.direction))switch(Td()){case pu:Te=-Be;break;case lv:Te=tt-be-Be;break}O.value={...nt,isScrolling:!0,scrollLeft:Te,scrollTop:Math.max(0,Math.min(Qe,Pe-ke)),updateRequested:!0,xAxisScrollDir:Cr(nt.scrollLeft,Te),yAxisScrollDir:Cr(nt.scrollTop,Qe)},Ie(()=>H()),Z(),W()},j=(ye,ke)=>{const be=i(L),Pe=(F.value-be)/ke*ye;te({scrollTop:Math.min(F.value-be,Pe)})},G=(ye,ke)=>{const be=i(z),Pe=(N.value-be)/ke*ye;te({scrollLeft:Math.min(N.value-be,Pe)})},{onWheel:ee}=Lee({atXStartEdge:x(()=>O.value.scrollLeft<=0),atXEndEdge:x(()=>O.value.scrollLeft>=N.value-i(z)),atYStartEdge:x(()=>O.value.scrollTop<=0),atYEndEdge:x(()=>O.value.scrollTop>=F.value-i(L))},(ye,ke)=>{var Be,Qe,tt,nt;(Qe=(Be=T.value)==null?void 0:Be.onMouseUp)==null||Qe.call(Be),(nt=(tt=M.value)==null?void 0:tt.onMouseUp)==null||nt.call(tt);const be=i(z),Pe=i(L);te({scrollLeft:Math.min(O.value.scrollLeft+ye,N.value-be),scrollTop:Math.min(O.value.scrollTop+ke,F.value-Pe)})});Vt(k,"wheel",ee,{passive:!1});const te=({scrollLeft:ye=O.value.scrollLeft,scrollTop:ke=O.value.scrollTop})=>{ye=Math.max(ye,0),ke=Math.max(ke,0);const be=i(O);ke===be.scrollTop&&ye===be.scrollLeft||(O.value={...be,xAxisScrollDir:Cr(be.scrollLeft,ye),yAxisScrollDir:Cr(be.scrollTop,ke),scrollLeft:ye,scrollTop:ke,updateRequested:!0},Ie(()=>H()),Z(),W())},{touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se}=Vee(k,O,te,N,F,z,L),Y=(ye=0,ke=0,be=Wa)=>{const Pe=i(O);ke=Math.max(0,Math.min(ke,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const Be=K8(w.namespace.value),Qe=i(S),tt=l(v,Qe),nt=r(v,Qe);te({scrollLeft:s(v,ke,be,Pe.scrollLeft,Qe,nt>v.width?Be:0),scrollTop:u(v,ye,be,Pe.scrollTop,Qe,tt>v.height?Be:0)})},X=(ye,ke)=>{const{columnWidth:be,direction:Pe,rowHeight:Be}=v,Qe=I.value(t&&be,t&&Be,t&&Pe),tt=`${ye},${ke}`;if(An(Qe,tt))return Qe[tt];{const[,nt]=n(v,ke,i(S)),Te=i(S),Ye=Ig(Pe),[st,Ke]=c(v,ye,Te),[et]=n(v,ke,Te);return Qe[tt]={position:"absolute",left:Ye?void 0:`${nt}px`,right:Ye?`${nt}px`:void 0,top:`${Ke}px`,height:`${st}px`,width:`${et}px`},Qe[tt]}},H=()=>{O.value.isScrolling=!1,Ie(()=>{I.value(-1,null,null)})};mt(()=>{if(!Rt)return;const{initScrollLeft:ye,initScrollTop:ke}=v,be=i(k);be&&(De(ye)&&(be.scrollLeft=ye),De(ke)&&(be.scrollTop=ke)),W()});const Z=()=>{const{direction:ye}=v,{scrollLeft:ke,scrollTop:be,updateRequested:Pe}=i(O),Be=i(k);if(Pe&&Be){if(ye===Cs)switch(Td()){case pu:Be.scrollLeft=-ke;break;case ov:Be.scrollLeft=ke;break;default:{const{clientWidth:Qe,scrollWidth:tt}=Be;Be.scrollLeft=tt-Qe-ke;break}}else Be.scrollLeft=Math.max(0,ke);Be.scrollTop=Math.max(0,be)}},{resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge}=C.proxy;y({windowRef:k,innerRef:A,getItemStyleCache:I,touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se,scrollTo:te,scrollToItem:Y,states:O,resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge});const me=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:ke,scrollbarEndGap:be,totalColumn:Pe,totalRow:Be}=v,Qe=i(z),tt=i(L),nt=i(N),Te=i(F),{scrollLeft:Ye,scrollTop:st}=i(O);return{horizontalScrollbar:qe(q2,{ref:T,alwaysOn:ye,startGap:ke,endGap:be,class:w.e("horizontal"),clientSize:Qe,layout:"horizontal",onScroll:G,ratio:Qe*100/nt,scrollFrom:Ye/(nt-Qe),total:Be,visible:!0}),verticalScrollbar:qe(q2,{ref:M,alwaysOn:ye,startGap:ke,endGap:be,class:w.e("vertical"),clientSize:tt,layout:"vertical",onScroll:j,ratio:tt*100/Te,scrollFrom:st/(Te-tt),total:Pe,visible:!0})}},$e=()=>{var st;const[ye,ke]=i(q),[be,Pe]=i(U),{data:Be,totalColumn:Qe,totalRow:tt,useIsScrolling:nt,itemKey:Te}=v,Ye=[];if(tt>0&&Qe>0)for(let Ke=be;Ke<=Pe;Ke++)for(let et=ye;et<=ke;et++){const gt=Te({columnIndex:et,data:Be,rowIndex:Ke});Ye.push(qe(He,{key:gt},(st=b.default)==null?void 0:st.call(b,{columnIndex:et,data:Be,isScrolling:nt?i(O).isScrolling:void 0,style:X(Ke,et),rowIndex:Ke})))}return Ye},Re=()=>{const ye=ut(v.innerElement),ke=$e();return[qe(ye,pt(v.innerProps,{style:i(B),ref:A}),Ue(ye)?ke:{default:()=>ke})]};return()=>{const ye=ut(v.containerElement),{horizontalScrollbar:ke,verticalScrollbar:be}=me(),Pe=Re();return qe("div",{key:0,class:w.e("wrapper"),role:v.role},[qe(ye,{class:v.className,style:i(P),onScroll:K,ref:k},Ue(ye)?Pe:{default:()=>Pe}),ke,be])}}}),Bg="ElFixedSizeGrid",Bee=s5({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,s)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+s+t);switch(o==="smart"&&(l>=d-n&&l<=c+n?o=Wa:o=No),o){case du:return c;case fu:return d;case No:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case Wa:default:return l>=d&&l<=c?l:d>c||l{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+s+e);switch(o===Ef&&(l>=d-t&&l<=c+t?o=Wa:o=No),o){case du:return c;case fu:return d;case No:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case Wa:default:return l>=d&&l<=c?l:d>c||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{De(e)||on(Bg,` + "columnWidth" must be passed as number, + instead ${typeof e} was given. + `),De(t)||on(Bg,` + "columnWidth" must be passed as number, + instead ${typeof t} was given. + `)}}),{max:Md,min:i5,floor:u5}=Math,zg="ElDynamicSizeGrid",zee={column:"columnWidth",row:"rowHeight"},U2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},tl=(e,t,n,a)=>{const[o,l,r]=[n[a],e[zee[a]],n[U2[a]]];if(t>r){let s=0;if(r>=0){const u=o[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);o[u]={offset:s,size:c},s+=c}n[U2[a]]=t}return o[t]},c5=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+u5((a-n)/2),s=tl(e,r,t,l).offset;if(s===o)return r;s{const l=o==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[o,l]=[t[a],t[U2[a]]];return(l>0?o[l].offset:0)>=n?c5(e,t,0,l,n,a):Dee(e,t,Md(0,l),n,a)},d5=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];o=r.offset+r.size}const l=(e-n-1)*t;return o+l},f5=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},Hee={column:f5,row:d5},Hg=(e,t,n,a,o,l,r)=>{const[s,u]=[l==="row"?e.height:e.width,Hee[l]],c=tl(e,t,o,l),d=Md(0,i5(u(e,o)-s,c.offset)),f=Md(0,c.offset-s+r+c.size);switch(n===Ef&&(a>=f-s&&a<=d+s?n=Wa:n=No),n){case du:return d;case fu:return f;case No:return Math.round(f+(d-f)/2);case Wa:default:return a>=f&&a<=d?a:f>d||a{const a=tl(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=tl(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>Hg(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>Hg(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>Dg(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=tl(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,s=t;for(;sDg(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=tl(e,t,a,"row"),s=n+l;let u=r.size+r.offset,c=t;for(;c{const n=({columnIndex:l,rowIndex:r},s)=>{var u,c;s=kt(s)?!0:s,De(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),De(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,r)=>{n({columnIndex:l},r)},o=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=D2,estimatedRowHeight:t=D2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{ct(e)||on(zg,` + "columnWidth" must be passed as function, + instead ${typeof e} was given. + `),ct(t)||on(zg,` + "rowHeight" must be passed as function, + instead ${typeof t} was given. + `)}}),rv=Symbol("ElSelectV2Injection"),Kee=Ce({allowCreate:Boolean,autocomplete:{type:J(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:wo},effect:{type:J(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:J(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:J(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:J(Array),required:!0},placeholder:{type:String},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:On,props:{type:J(Object),default:()=>md},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:J(String),values:Uo,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tagType:{...wl.type,default:"info"},tagEffect:{...wl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Dt(e)||De(e)}},suffixIcon:{type:Ft,default:bo},...Gr,...ia(["ariaLabel"])}),Wee=Ce({data:Array,disabled:Boolean,hovering:Boolean,item:{type:J(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),jee={[at]:e=>!0,[yt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},qee={hover:e=>De(e),select:(e,t)=>!0};var Uee=D({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ve("select")}}});function Yee(e,t,n,a,o,l){return _(),$("div",{class:R(e.ns.be("group","title")),style:We({...e.style,lineHeight:`${e.height}px`})},_e(e.item.label),7)}var Gee=$n(Uee,[["render",Yee]]);function Xee(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var Jee=D({props:Wee,emits:qee,setup(e,{emit:t}){const n=Ne(rv),a=ve("select"),{hoverItem:o,selectOptionClick:l}=Xee(e,{emit:t}),{getLabel:r}=Wu(n.props),s=n.contentId;return{ns:a,contentId:s,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Lr(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:l,getLabel:r}}});const Zee=["id","aria-selected","aria-disabled"];function Qee(e,t,n,a,o,l){return _(),$("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:We(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Xe((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[E("span",null,_e(e.getLabel(e.item)),1)])],46,Zee)}var ete=$n(Jee,[["render",Qee]]);const tte={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var nte=D({name:"ElSelectDropdown",props:tte,setup(e,{slots:t,expose:n}){const a=Ne(rv),o=ve("select"),{getLabel:l,getValue:r,getDisabled:s}=Wu(a.props),u=V([]),c=V(),d=x(()=>e.data.length);fe(()=>d.value,()=>{var O,I;(I=(O=a.tooltipRef.value)==null?void 0:O.updatePopper)==null||I.call(O)});const f=x(()=>kt(a.props.estimatedOptionHeight)),h=x(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:O=>u.value[O]}),g=(O=[],I)=>{const{props:{valueKey:L}}=a;return Mt(I)?O&&O.some(z=>jt(_n(z,L))===_n(I,L)):O.includes(I)},p=(O,I)=>{if(Mt(I)){const{valueKey:L}=a.props;return _n(O,L)===_n(I,L)}else return O===I},v=(O,I)=>a.props.multiple?g(O,r(I)):p(O,r(I)),m=(O,I)=>{const{disabled:L,multiple:z,multipleLimit:q}=a.props;return L||!I&&(z?q>0&&O.length>=q:!1)},y=O=>e.hoveringIndex===O;n({listRef:c,isSized:f,isItemDisabled:m,isItemHovering:y,isItemSelected:v,scrollToItem:O=>{const I=c.value;I&&I.scrollToItem(O)},resetScrollTop:()=>{const O=c.value;O&&O.resetScrollTop()}});const C=O=>{const{index:I,data:L,style:z}=O,q=i(f),{itemSize:U,estimatedSize:F}=i(h),{modelValue:N}=a.props,{onSelect:P,onHover:B}=a,W=L[I];if(W.type==="Group")return Q(Gee,{item:W,style:z,height:q?U:F},null);const K=v(N,W),j=m(N,K),G=y(I);return Q(ete,pt(O,{selected:K,disabled:s(W)||j,created:!!W.created,hovering:G,item:W,onSelect:P,onHover:B}),{default:ee=>{var te;return((te=t.default)==null?void 0:te.call(t,ee))||Q("span",null,[l(W)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=a,T=()=>{S("forward")},M=()=>{S("backward")},A=O=>{const I=Kt(O),{tab:L,esc:z,down:q,up:U,enter:F,numpadEnter:N}=we;switch([z,q,U,F,N].includes(I)&&(O.preventDefault(),O.stopPropagation()),I){case L:case z:break;case q:T();break;case U:M();break;case F:case N:k();break}};return()=>{var N,P,B,W;const{data:O,width:I}=e,{height:L,multiple:z,scrollbarAlwaysOn:q}=a.props,U=x(()=>ld?!0:q),F=i(f)?l5:Iee;return Q("div",{class:[o.b("dropdown"),o.is("multiple",z)],style:{width:`${I}px`}},[(N=t.header)==null?void 0:N.call(t),((P=t.loading)==null?void 0:P.call(t))||((B=t.empty)==null?void 0:B.call(t))||Q(F,pt({ref:c},i(h),{className:o.be("dropdown","list"),scrollbarAlwaysOn:U.value,data:O,height:L,width:I,total:O.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:A}),{default:K=>Q(C,K,null)}),(W=t.footer)==null?void 0:W.call(t)])}}});function ate(e,t){const{aliasProps:n,getLabel:a,getValue:o}=Wu(e),l=V(0),r=V(),s=x(()=>e.allowCreate&&e.filterable);fe(()=>e.options,g=>{const p=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(a(v)))});function u(g){const p=v=>a(v)===g;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(g){s.value&&(e.multiple&&g.created?l.value++:r.value=g)}function d(g){if(s.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const p={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(g){if(!s.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const p=t.createdOptions.findIndex(v=>o(v)===o(g));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){s.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const ote=(e,t)=>{const{t:n}=xt(),a=yn(),o=ve("select"),l=ve("input"),{form:r,formItem:s}=Kn(),{inputId:u}=za(e,{formItemContext:s}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:g}=Wu(e),{valueOnClear:p,isEmptyValue:v}=zu(e),m=Nt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=V(-1),b=V(!1),w=V(),C=V(),S=V(),k=V(),T=V(),M=V(),A=V(),O=V(),I=V(),L=V(),{isComposing:z,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}=Bu({afterComposition:xe=>Qt(xe)}),N=dn(),{wrapperRef:P,isFocused:B,handleBlur:W}=El(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(xe){var ot,wt;return((ot=S.value)==null?void 0:ot.isFocusInsideContent(xe))||((wt=k.value)==null?void 0:wt.isFocusInsideContent(xe))},afterBlur(){var xe;ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&((xe=s==null?void 0:s.validate)==null||xe.call(s,"blur").catch(ot=>ft(ot)))}}),K=x(()=>$e("")),j=x(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),G=V([]),ee=V(!1),te=x(()=>(r==null?void 0:r.statusIcon)??!1),ue=x(()=>{const xe=G.value.length*e.itemHeight;return xe>e.height?e.height:xe}),ne=x(()=>e.multiple?Ve(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=x(()=>e.clearable&&!N.value&&ne.value&&(B.value||m.inputHovering)),se=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=x(()=>se.value&&o.is("reverse",ee.value)),X=x(()=>(s==null?void 0:s.validateState)||""),H=x(()=>{if(X.value)return bf[X.value]}),Z=x(()=>e.remote?e.debounce:0),le=x(()=>e.remote&&!m.inputValue&&!j.value),ce=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&j.value&&G.value.length===0?e.noMatchText||n("el.select.noMatch"):j.value?null:e.noDataText||n("el.select.noData")),ge=x(()=>e.filterable&&ct(e.filterMethod)),me=x(()=>e.filterable&&e.remote&&ct(e.remoteMethod)),$e=xe=>{const ot=new RegExp(oh(xe),"i"),wt=St=>ge.value||me.value?!0:xe?ot.test(d(St)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((St,Wn)=>{const wa=g(Wn);if(Ve(wa)){const ui=wa.filter(wt);ui.length>0&&St.push({label:d(Wn),type:"Group"},...ui)}else(e.remote||wt(Wn))&&St.push(Wn);return St},[])},Re=()=>{G.value=$e(m.inputValue)},Ae=x(()=>{const xe=new Map;return K.value.forEach((ot,wt)=>{xe.set(Ge(f(ot)),{option:ot,index:wt})}),xe}),ye=x(()=>{const xe=new Map;return G.value.forEach((ot,wt)=>{xe.set(Ge(f(ot)),{option:ot,index:wt})}),xe}),ke=x(()=>G.value.every(xe=>h(xe))),be=En(),Pe=x(()=>be.value==="small"?"small":"default"),Be=()=>{var ot;if(De(e.fitInputWidth)){y.value=e.fitInputWidth;return}const xe=((ot=w.value)==null?void 0:ot.offsetWidth)||200;!e.fitInputWidth&&j.value?Ie(()=>{y.value=Math.max(xe,Qe())}):y.value=xe},Qe=()=>{var wa,ui;const xe=document.createElement("canvas").getContext("2d"),ot=o.be("dropdown","item"),wt=(((ui=(wa=O.value)==null?void 0:wa.listRef)==null?void 0:ui.innerRef)||document).querySelector(`.${ot}`);if(wt===null||xe===null)return 0;const St=getComputedStyle(wt),Wn=Number.parseFloat(St.paddingLeft)+Number.parseFloat(St.paddingRight);return xe.font=`bold ${St.font.replace(new RegExp(`\\b${St.fontWeight}\\b`),"")}`,G.value.reduce((eC,tC)=>{const nC=xe.measureText(d(tC));return Math.max(nC.width,eC)},0)+Wn},tt=()=>{if(!C.value)return 0;const xe=window.getComputedStyle(C.value);return Number.parseFloat(xe.gap||"6px")},nt=x(()=>{const xe=tt(),ot=e.filterable?xe+Xd:0;return{maxWidth:`${L.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-xe-ot:m.selectionWidth-ot}px`}}),Te=x(()=>({maxWidth:`${m.selectionWidth}px`})),Ye=x(()=>Ve(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),st=x(()=>{const xe=e.placeholder??n("el.select.placeholder");return e.multiple||!ne.value?xe:m.selectedLabel}),Ke=x(()=>{var xe,ot;return(ot=(xe=S.value)==null?void 0:xe.popperRef)==null?void 0:ot.contentRef}),et=x(()=>{if(e.multiple){const xe=e.modelValue.length;if(xe>0&&ye.value.has(e.modelValue[xe-1])){const{index:ot}=ye.value.get(e.modelValue[xe-1]);return ot}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:xe}=ye.value.get(e.modelValue);return xe}return-1}),gt=x({get(){return ee.value&&(e.loading||!le.value||e.remote&&!!a.empty)&&(!b.value||!ha(m.previousQuery)||j.value)},set(xe){ee.value=xe}}),he=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Le=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:pe,removeNewOption:Ee,selectNewOption:it,clearAllNewOption:Pt}=ate(e,m),Xt=xe=>{var ot;N.value||e.filterable&&ee.value&&xe&&!((ot=A.value)!=null&&ot.contains(xe.target))||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},Oe=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),pe(m.inputValue),Ie(()=>{Je(m.inputValue)})},Fe=_u(()=>{Oe(),b.value=!1},Z),Je=xe=>{m.previousQuery===xe||z.value||(m.previousQuery=xe,e.filterable&&ct(e.filterMethod)?e.filterMethod(xe):e.filterable&&e.remote&&ct(e.remoteMethod)&&e.remoteMethod(xe),e.defaultFirstOption&&(e.filterable||e.remote)&&G.value.length?Ie(hn):Ie(Et))},hn=()=>{const xe=G.value.filter(St=>!St.disabled&&St.type!=="Group"),ot=xe.find(St=>St.created),wt=xe[0];m.hoveringIndex=je(G.value,ot||wt)},zt=xe=>{sn(e.modelValue,xe)||t(yt,xe)},Zt=xe=>{t(at,xe),zt(xe),m.previousValue=e.multiple?String(xe):xe,Ie(()=>{if(e.multiple&&Ve(e.modelValue)){const ot=m.cachedOptions.slice(),wt=e.modelValue.map(St=>si(St,ot));sn(m.cachedOptions,wt)||(m.cachedOptions=wt)}else Jr(!0)})},je=(xe=[],ot)=>{if(!Mt(ot))return xe.indexOf(ot);const wt=e.valueKey;let St=-1;return xe.some((Wn,wa)=>_n(Wn,wt)===_n(ot,wt)?(St=wa,!0):!1),St},Ge=xe=>Mt(xe)?_n(xe,e.valueKey):xe,vt=()=>{Be()},Nn=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},So=()=>{m.collapseItemWidth=L.value.getBoundingClientRect().width},Xa=()=>{var xe,ot;(ot=(xe=S.value)==null?void 0:xe.updatePopper)==null||ot.call(xe)},Qu=()=>{var xe,ot;(ot=(xe=k.value)==null?void 0:xe.updatePopper)==null||ot.call(xe)},er=xe=>{const ot=f(xe);if(e.multiple){let wt=e.modelValue.slice();const St=je(wt,ot);St>-1?(wt=[...wt.slice(0,St),...wt.slice(St+1)],m.cachedOptions.splice(St,1),Ee(xe)):(e.multipleLimit<=0||wt.length{let wt=e.modelValue.slice();const St=je(wt,f(ot));St>-1&&!N.value&&(wt=[...e.modelValue.slice(0,St),...e.modelValue.slice(St+1)],m.cachedOptions.splice(St,1),Zt(wt),t("remove-tag",f(ot)),Ee(ot)),xe.stopPropagation(),Go()},Go=()=>{var xe;(xe=T.value)==null||xe.focus()},Bf=()=>{var xe;if(ee.value){ee.value=!1,Ie(()=>{var ot;return(ot=T.value)==null?void 0:ot.blur()});return}(xe=T.value)==null||xe.blur()},zf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},Df=xe=>b8(xe,ot=>!m.cachedOptions.some(wt=>f(wt)===ot&&h(wt))),Hf=xe=>{const ot=Kt(xe);if(e.multiple&&ot!==we.delete&&m.inputValue.length===0){xe.preventDefault();const wt=e.modelValue.slice(),St=Df(wt);if(St<0)return;const Wn=wt[St];wt.splice(St,1);const wa=m.cachedOptions[St];m.cachedOptions.splice(St,1),Ee(wa),Zt(wt),t("remove-tag",Wn)}},Ff=()=>{let xe;Ve(e.modelValue)?xe=[]:xe=p.value,m.selectedLabel="",ee.value=!1,Zt(xe),t("clear"),Pt(),Go()},$l=(xe,ot=void 0)=>{const wt=G.value;if(!["forward","backward"].includes(xe)||N.value||wt.length<=0||ke.value||z.value)return;if(!ee.value)return Xt();kt(ot)&&(ot=m.hoveringIndex);let St=-1;xe==="forward"?(St=ot+1,St>=wt.length&&(St=0)):xe==="backward"&&(St=ot-1,(St<0||St>=wt.length)&&(St=wt.length-1));const Wn=wt[St];if(h(Wn)||Wn.type==="Group")return $l(xe,St);m.hoveringIndex=St,Xo(St)},Se=()=>{if(ee.value)~m.hoveringIndex&&G.value[m.hoveringIndex]&&er(G.value[m.hoveringIndex]);else return Xt()},Ze=xe=>{m.hoveringIndex=xe??-1},Et=()=>{if(!e.multiple)m.hoveringIndex=G.value.findIndex(xe=>Ge(f(xe))===Ge(e.modelValue));else{const xe=e.modelValue.length;if(xe>0){const ot=e.modelValue[xe-1];m.hoveringIndex=G.value.findIndex(wt=>Ge(ot)===Ge(f(wt)))}else m.hoveringIndex=-1}},Qt=xe=>{if(m.inputValue=xe.target.value,e.remote)b.value=!0,Fe();else return Oe()},kn=xe=>{ee.value=!1,B.value&&W(new FocusEvent("blur",xe))},zn=()=>(m.isBeforeHide=!1,Ie(()=>{~et.value&&Xo(et.value)})),Xo=xe=>{O.value.scrollToItem(xe)},si=(xe,ot)=>{const wt=Ge(xe);if(Ae.value.has(wt)){const{option:St}=Ae.value.get(wt);return St}if(ot&&ot.length){const St=ot.find(Wn=>Ge(f(Wn))===wt);if(St)return St}return{[c.value.value]:xe,[c.value.label]:xe}},tr=xe=>{var ot;return((ot=Ae.value.get(f(xe)))==null?void 0:ot.index)??-1},Jr=(xe=!1)=>{if(e.multiple)if(e.modelValue.length>0){const ot=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const wt of e.modelValue){const St=si(wt,ot);m.cachedOptions.push(St)}}else m.cachedOptions=[],m.previousValue=void 0;else if(ne.value){m.previousValue=e.modelValue;const ot=G.value,wt=ot.findIndex(St=>Ge(f(St))===Ge(e.modelValue));~wt?m.selectedLabel=d(ot[wt]):(!m.selectedLabel||xe)&&(m.selectedLabel=Ge(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;Pt(),Be()};fe(()=>e.fitInputWidth,()=>{Be()}),fe(ee,xe=>{xe?(e.persistent||Be(),Je("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,pe(""))}),fe(()=>e.modelValue,(xe,ot)=>{var wt;(!xe||Ve(xe)&&xe.length===0||e.multiple&&!sn(xe.toString(),m.previousValue)||!e.multiple&&Ge(xe)!==Ge(m.previousValue))&&Jr(!0),!sn(xe,ot)&&e.validateEvent&&((wt=s==null?void 0:s.validate)==null||wt.call(s,"change").catch(St=>ft(St)))},{deep:!0}),fe(()=>e.options,()=>{const xe=T.value;(!xe||xe&&document.activeElement!==xe)&&Jr()},{deep:!0,flush:"post"}),fe(()=>G.value,()=>(Be(),O.value&&Ie(O.value.resetScrollTop))),ma(()=>{m.isBeforeHide||Re()}),ma(()=>{const{valueKey:xe,options:ot}=e,wt=new Map;for(const St of ot){const Wn=f(St);let wa=Wn;if(Mt(wa)&&(wa=_n(Wn,xe)),wt.get(wa)){ft("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else wt.set(wa,!0)}}),mt(()=>{Jr()}),en(w,vt),en(C,Nn),en(P,Xa),en(I,Qu),en(L,So);let ii;return fe(()=>gt.value,xe=>{xe?ii=en(O,Xa).stop:(ii==null||ii(),ii=void 0),t("visible-change",xe)}),{inputId:u,collapseTagSize:Pe,currentPlaceholder:st,expanded:ee,emptyText:ce,popupHeight:ue,debounce:Z,allOptions:K,allOptionsValueMap:Ae,filteredOptions:G,iconComponent:se,iconReverse:Y,tagStyle:nt,collapseTagStyle:Te,popperSize:y,dropdownMenuVisible:gt,hasModelValue:ne,shouldShowPlaceholder:Ye,selectDisabled:N,selectSize:be,needStatusIcon:te,showClearBtn:de,states:m,isFocused:B,nsSelect:o,nsInput:l,inputRef:T,menuRef:O,tagMenuRef:I,tooltipRef:S,tagTooltipRef:k,selectRef:w,wrapperRef:P,selectionRef:C,prefixRef:M,suffixRef:A,collapseItemRef:L,popperRef:Ke,validateState:X,validateIcon:H,showTagList:he,collapseTagList:Le,debouncedOnInputChange:Fe,deleteTag:ec,getLabel:d,getValue:f,getDisabled:h,getValueKey:Ge,getIndex:tr,handleClear:Ff,handleClickOutside:kn,handleDel:Hf,handleEsc:zf,focus:Go,blur:Bf,handleMenuEnter:zn,handleResize:vt,resetSelectionWidth:Nn,updateTooltip:Xa,updateTagTooltip:Qu,updateOptions:Re,toggleMenu:Xt,scrollTo:Xo,onInput:Qt,onKeyboardNavigate:$l,onKeyboardSelect:Se,onSelect:er,onHover:Ze,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}};var lte=D({name:"ElSelectV2",components:{ElSelectMenu:nte,ElTag:dl,ElTooltip:Fn,ElIcon:ze},directives:{ClickOutside:Yl},props:Kee,emits:jee,setup(e,{emit:t}){const n=x(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ve(u)?c?u:d:c?d:u}),a=ote(Nt({...Bn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:l}=ah(),r=Un();bt(rv,{props:Nt({...Bn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:r,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=x(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:o,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:O6}}});const rte=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],ste=["textContent"],ite={key:1};function ute(e,t,n,a,o,l){const r=$t("el-tag"),s=$t("el-tooltip"),u=$t("el-icon"),c=$t("el-select-menu"),d=Ap("click-outside");return dt((_(),$("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ae(()=>{var f;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Xe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent"]))},[e.$slots.prefix?(_(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var h,g,p,v,m,y,b,w,C,S,k,T,M;return[(_(!0),$(He,null,Ct(e.showTagList,A=>(_(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:We(e.tagStyle),onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[_t(_e(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(_(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((h=e.tagTooltip)==null?void 0:h.fallbackPlacements)??["bottom","top","right","left"],effect:((g=e.tagTooltip)==null?void 0:g.effect)??e.effect,placement:((p=e.tagTooltip)==null?void 0:p.placement)??"bottom","popper-class":((v=e.tagTooltip)==null?void 0:v.popperClass)??e.popperClass,"popper-style":((m=e.tagTooltip)==null?void 0:m.popperStyle)??e.popperStyle,teleported:((y=e.tagTooltip)==null?void 0:y.teleported)??e.teleported,"append-to":((b=e.tagTooltip)==null?void 0:b.appendTo)??e.appendTo,"popper-options":((w=e.tagTooltip)==null?void 0:w.popperOptions)??e.popperOptions,transition:(C=e.tagTooltip)==null?void 0:C.transition,"show-after":(S=e.tagTooltip)==null?void 0:S.showAfter,"hide-after":(k=e.tagTooltip)==null?void 0:k.hideAfter,"auto-close":(T=e.tagTooltip)==null?void 0:T.autoClose,offset:(M=e.tagTooltip)==null?void 0:M.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:We(e.collapseTagStyle),"disable-transitions":""},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+_e(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),$(He,null,Ct(e.collapseTagList,A=>(_(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[_t(_e(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:We(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...h)=>e.onInput&&e.onInput(...h)),onChange:t[1]||(t[1]=Xe(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[3]||(t[3]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[4]||(t[4]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[5]||(t[5]=rn(Xe(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=rn(Xe(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=rn(Xe((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[8]||(t[8]=rn(Xe((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[9]||(t[9]=rn(Xe((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Xe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,rte),e.filterable?(_(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:_e(e.states.inputValue)},null,10,ste)):re("v-if",!0)],2),e.shouldShowPlaceholder?(_(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:((f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,_e(e.currentPlaceholder),1)]):(_(),$("span",ite,_e(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?dt((_(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])),[[At,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Xe(e.handleClear,["prevent","stop"])},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(_(),ie(ut(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},ga({default:ae(f=>[oe(e.$slots,"default",il(ul(f)))]),_:2},[e.$slots.header?{name:"header",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,_e(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var cte=$n(lte,[["render",ute]]);const dte=rt(cte),fte=Ce({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:J([Number,Object])}}),pte=Ce({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var hte=D({name:"ElSkeletonItem",__name:"skeleton-item",props:pte,setup(e){const t=ve("skeleton");return(n,a)=>(_(),$("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(_(),ie(i(Py),{key:0})):re("v-if",!0)],2))}}),Od=hte,vte=D({name:"ElSkeleton",__name:"skeleton",props:fte,setup(e,{expose:t}){const n=e,a=ve("skeleton"),o=n$(Bt(n,"loading"),n.throttle);return t({uiLoading:o}),(l,r)=>i(o)?(_(),$("div",pt({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},l.$attrs),[(_(!0),$(He,null,Ct(e.count,s=>(_(),$(He,{key:s},[i(o)?oe(l.$slots,"template",{key:s},()=>[Q(Od,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(_(!0),$(He,null,Ct(e.rows,u=>(_(),ie(Od,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(l.$slots,"default",il(pt({key:1},l.$attrs)))}}),mte=vte;const gte=rt(mte,{SkeletonItem:Od}),yte=ln(Od),p5=Symbol("sliderContextKey"),bte=Ce({modelValue:{type:J([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:J([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:On,inputSize:On,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:J(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:J(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Uo,default:"top"},marks:{type:J(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ia(["ariaLabel"])}),x0=e=>De(e)||Ve(e)&&e.every(De),wte={[at]:x0,[Sn]:x0,[yt]:x0},Cte=(e,t,n)=>{const a=V();return mt(async()=>{e.range?(Ve(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!De(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Vt(window,"resize",n),await Ie(),n()}),{sliderWrapper:a}},_te=e=>{const t=x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return ma(()=>{if(e.step==="mark"&&!e.marks&&ft("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(l=>l.point),o=n.filter(l=>{const r=Number.parseFloat(l);return Number.isNaN(r)||!a.includes(r)});o.length>0&&ft("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(l=>`'${l}'`).join(", ")}] and will be ignored.`)}}),t},Ste=(e,t,n)=>{const{formItem:a}=Kn(),o=qt(),l=V(),r=V(),s={firstButton:l,secondButton:r},u=dn(),c=x(()=>Math.min(t.firstValue,t.secondValue)),d=x(()=>Math.max(t.firstValue,t.secondValue)),f=x(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=x(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=x(()=>e.vertical?{height:e.height}:{}),p=x(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=I=>{const L=e.min+I*(e.max-e.min)/100;if(!e.range)return l;let z;return Math.abs(c.value-L)t.secondValue?"firstButton":"secondButton",s[z]},y=I=>{const L=m(I);return L.value.setPosition(I),L},b=I=>{t.firstValue=I??e.min,C(e.range?[c.value,d.value]:I??e.min)},w=I=>{t.secondValue=I,e.range&&C([c.value,d.value])},C=I=>{n(at,I),n(Sn,I)},S=async()=>{await Ie(),n(yt,e.range?[c.value,d.value]:e.modelValue)},k=I=>{var z,q,U,F;if(u.value||t.dragging)return;v();let L=0;if(e.vertical){const N=((q=(z=I.touches)==null?void 0:z.item(0))==null?void 0:q.clientY)??I.clientY;L=(o.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else L=((((F=(U=I.touches)==null?void 0:U.item(0))==null?void 0:F.clientX)??I.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!(L<0||L>100))return y(L)};return{elFormItem:a,slider:o,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:p,resetSize:v,setPosition:y,emitChange:S,onSliderWrapperPrevent:I=>{var L,z;((L=s.firstButton.value)!=null&&L.dragging||(z=s.secondButton.value)!=null&&z.dragging)&&I.preventDefault()},onSliderClick:I=>{k(I)&&S()},onSliderDown:async I=>{const L=k(I);L&&(await Ie(),L.value.onButtonDown(I))},onSliderMarkerDown:I=>{u.value||t.dragging||y(I)&&S()},setFirstValue:b,setSecondValue:w}},xte=(e,t,n,a)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&ft("ElSlider","step should not be 0."),[];const r=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*s);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),kte=(e,t,n,a,o,l)=>{const r=c=>{o(at,c),o(Sn,c)},s=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var d,f;e.min>e.max&&on("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&Ve(c)?c[1]e.max?r([e.max,e.max]):c[0]e.max?r([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>ft(h))),t.oldValue=c.slice())):!e.range&&De(c)&&!Number.isNaN(c)&&(ce.max?r(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((f=l==null?void 0:l.validate)==null||f.call(l,"change").catch(h=>ft(h))),t.oldValue=c)))};u(),fe(()=>t.dragging,c=>{c||u()}),fe(()=>e.modelValue,(c,d)=>{t.dragging||Ve(c)&&Ve(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),fe(()=>[e.min,e.max],()=>{u()})},Ete=(e,t,n)=>{const a=V(),o=V(!1),l=x(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:x(()=>l.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Ko(()=>{n.value&&(o.value=!0)},50),hideTooltip:Ko(()=>{n.value&&(o.value=!1)},50)}},Tte=(e,t,n)=>{const{disabled:a,min:o,max:l,step:r,showTooltip:s,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:g,updateDragging:p,markList:v}=Ne(p5),{tooltip:m,tooltipVisible:y,formatValue:b,displayTooltip:w,hideTooltip:C}=Ete(e,f,s),S=V(),k=x(()=>`${(e.modelValue-o.value)/(l.value-o.value)*100}%`),T=x(()=>e.vertical?{bottom:k.value}:{left:k.value}),M=x(()=>r.value==="mark"&&v.value.length>0),A=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||C()},I=ue=>{a.value||(ue.preventDefault(),j(ue),window.addEventListener("mousemove",G),window.addEventListener("touchmove",G),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},L=ue=>{a.value||(t.newPosition=Number.parseFloat(k.value)+ue/(l.value-o.value)*100,te(t.newPosition),h())},z=ue=>{if(a.value||!v.value.length)return;const ne=e.modelValue,de=Number.EPSILON,se=Math.abs(ue);let Y;if(ue>0){const X=v.value.findIndex(H=>H.point>ne+de);if(X!==-1){const H=Math.min(X+se-1,v.value.length-1);Y=v.value[H].point}}else{let X=-1;for(let H=v.value.length-1;H>=0;H--)if(v.value[H].point{M.value?z(-1):De(r.value)&&L(-r.value)},U=()=>{M.value?z(1):De(r.value)&&L(r.value)},F=()=>{M.value?z(-4):De(r.value)&&L(-r.value*4)},N=()=>{M.value?z(4):De(r.value)&&L(r.value*4)},P=()=>{a.value||(te(0),h())},B=()=>{a.value||(te(100),h())},W=ue=>{const ne=Kt(ue);let de=!0;switch(ne){case we.left:case we.down:q();break;case we.right:case we.up:U();break;case we.home:P();break;case we.end:B();break;case we.pageDown:F();break;case we.pageUp:N();break;default:de=!1;break}de&&ue.preventDefault()},K=ue=>{let ne,de;return ue.type.startsWith("touch")?(de=ue.touches[0].clientY,ne=ue.touches[0].clientX):(de=ue.clientY,ne=ue.clientX),{clientX:ne,clientY:de}},j=ue=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:de}=K(ue);e.vertical?t.startY=de:t.startX=ne,t.startPosition=Number.parseFloat(k.value),t.newPosition=t.startPosition},G=ue=>{if(t.dragging){t.isClick=!1,w(),g();let ne;const{clientX:de,clientY:se}=K(ue);e.vertical?(t.currentY=se,ne=(t.startY-t.currentY)/d.value*100):(t.currentX=de,ne=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+ne,te(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||C(),t.isClick||te(t.newPosition),h()},0),window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},te=async ue=>{if(ue===null||Number.isNaN(+ue))return;ue=gr(ue,0,100);let ne;if(r.value==="mark")v.value.length===0?ne=ue<=50?o.value:l.value:ne=v.value.reduce((de,se)=>Math.abs(se.position-ue)t.dragging,ue=>{p(ue)}),Vt(S,"touchstart",I,{passive:!1}),{disabled:a,button:S,tooltip:m,tooltipVisible:y,showTooltip:s,persistent:u,wrapperStyle:T,formatValue:b,handleMouseEnter:A,handleMouseLeave:O,onButtonDown:I,onKeyDown:W,setPosition:te}},Mte=Ce({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Uo,default:"top"}}),Ote={[at]:e=>De(e)},$te=["tabindex"];var Ate=D({name:"ElSliderButton",__name:"button",props:Mte,emits:Ote,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),r=Nt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),s=x(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:g,wrapperStyle:p,formatValue:v,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:b,onKeyDown:w,setPosition:C}=Tte(a,r,o),{hovering:S,dragging:k}=Bn(r);return t({onButtonDown:b,onKeyDown:w,setPosition:C,hovering:S,dragging:k}),(T,M)=>(_(),$("div",{ref_key:"button",ref:c,class:R([i(l).e("button-wrapper"),{hover:i(S),dragging:i(k)}]),style:We(i(p)),tabindex:i(u)?void 0:0,onMouseenter:M[0]||(M[0]=(...A)=>i(m)&&i(m)(...A)),onMouseleave:M[1]||(M[1]=(...A)=>i(y)&&i(y)(...A)),onMousedown:M[2]||(M[2]=(...A)=>i(b)&&i(b)(...A)),onFocus:M[3]||(M[3]=(...A)=>i(m)&&i(m)(...A)),onBlur:M[4]||(M[4]=(...A)=>i(y)&&i(y)(...A)),onKeydown:M[5]||(M[5]=(...A)=>i(w)&&i(w)(...A))},[Q(i(Fn),{ref_key:"tooltip",ref:d,visible:i(g),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!i(f),persistent:s.value},{content:ae(()=>[E("span",null,_e(i(v)),1)]),default:ae(()=>[E("div",{class:R([i(l).e("button"),{hover:i(S),dragging:i(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,$te))}}),Fg=Ate;const Rte=Ce({mark:{type:J([String,Object]),default:void 0}});var Nte=D({name:"ElSliderMarker",props:Rte,setup(e){const t=ve("slider"),n=x(()=>Ue(e.mark)?e.mark:e.mark.label),a=x(()=>Ue(e.mark)?void 0:e.mark.style);return()=>qe("div",{class:t.e("marks-text"),style:a.value},n.value)}});const Pte=["id","role","aria-label","aria-labelledby"],Ite={key:1};var Lte=D({name:"ElSlider",__name:"slider",props:bte,emits:wte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),{t:r}=xt(),s=Nt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:g,maxValue:p,runwayStyle:v,barStyle:m,resetSize:y,emitChange:b,onSliderWrapperPrevent:w,onSliderClick:C,onSliderDown:S,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:M}=Ste(a,s,o),{stops:A,getStopStyle:O}=xte(a,s,g,p),{inputId:I,isLabeledByFormItem:L}=za(a,{formItemContext:u}),z=En(),q=x(()=>a.inputSize||z.value),U=x(()=>a.showInput&&!a.range&&a.step!=="mark"),F=x(()=>a.ariaLabel||r("el.slider.defaultLabel",{min:a.min,max:a.max})),N=x(()=>a.range?a.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):F.value),P=x(()=>a.formatValueText?a.formatValueText(ue.value):`${ue.value}`),B=x(()=>a.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),W=x(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),K=x(()=>[l.b(),l.m(z.value),l.is("vertical",a.vertical),{[l.m("with-input")]:U.value}]),j=_te(a);kte(a,s,g,p,o,u);const G=x(()=>De(a.step)?a.step:1),ee=x(()=>{const Y=De(a.step)?a.step:1,X=[a.min,a.max,Y].map(H=>{const Z=`${H}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,X)}),{sliderWrapper:te}=Cte(a,s,y),{firstValue:ue,secondValue:ne,sliderSize:de}=Bn(s),se=Y=>{s.dragging=Y};return Vt(te,"touchstart",w,{passive:!1}),Vt(te,"touchmove",w,{passive:!1}),bt(p5,{...Bn(a),sliderSize:de,disabled:h,precision:ee,markList:j,emitChange:b,resetSize:y,updateDragging:se}),t({onSliderClick:C}),(Y,X)=>{var H,Z;return _(),$("div",{id:Y.range?i(I):void 0,ref_key:"sliderWrapper",ref:te,class:R(K.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i(L)?F.value:void 0,"aria-labelledby":Y.range&&i(L)?(H=i(u))==null?void 0:H.labelId:void 0},[E("div",{ref_key:"slider",ref:c,class:R([i(l).e("runway"),{"show-input":U.value},i(l).is("disabled",i(h))]),style:We(i(v)),onMousedown:X[0]||(X[0]=(...le)=>i(S)&&i(S)(...le)),onTouchstartPassive:X[1]||(X[1]=(...le)=>i(S)&&i(S)(...le))},[E("div",{class:R(i(l).e("bar")),style:We(i(m))},null,6),Q(Fg,{id:Y.range?void 0:i(I),ref_key:"firstButton",ref:d,"model-value":i(ue),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i(L)?N.value:void 0,"aria-labelledby":!Y.range&&i(L)?(Z=i(u))==null?void 0:Z.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(ne):Y.max,"aria-valuenow":i(ue),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(_(),ie(Fg,{key:0,ref_key:"secondButton",ref:f,"model-value":i(ne),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":B.value,"aria-valuemin":i(ue),"aria-valuemax":Y.max,"aria-valuenow":i(ne),"aria-valuetext":W.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(_(),$("div",Ite,[(_(!0),$(He,null,Ct(i(A),(le,ce)=>(_(),$("div",{key:ce,class:R(i(l).e("stop")),style:We(i(O)(le))},null,6))),128))])):re("v-if",!0),i(j).length>0?(_(),$(He,{key:2},[E("div",null,[(_(!0),$(He,null,Ct(i(j),(le,ce)=>(_(),$("div",{key:ce,style:We(i(O)(le.position)),class:R([i(l).e("stop"),i(l).e("marks-stop")])},null,6))),128))]),E("div",{class:R(i(l).e("marks"))},[(_(!0),$(He,null,Ct(i(j),(le,ce)=>(_(),ie(i(Nte),{key:ce,mark:le.mark,style:We(i(O)(le.position)),onMousedown:Xe(ge=>i(k)(le.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),U.value?(_(),ie(i(Hw),{key:0,ref:"input","model-value":i(ue),class:R(i(l).e("input")),step:G.value,disabled:i(h),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:q.value,"onUpdate:modelValue":i(T),onChange:i(b)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,Pte)}}}),Vte=Lte;const Bte=rt(Vte),zte=Ce({prefixCls:{type:String}}),Kg=D({name:"ElSpaceItem",props:zte,setup(e,{slots:t}){const n=ve("space"),a=x(()=>`${e.prefixCls||n.b()}__item`);return()=>qe("div",{class:a.value},oe(t,"default"))}}),Wg={small:8,default:12,large:16};function Dte(e){const t=ve("space"),n=x(()=>[t.b(),t.m(e.direction),e.class]),a=V(0),o=V(0),l=x(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),r=x(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return ma(()=>{const{size:s="small",wrap:u,direction:c,fill:d}=e;if(Ve(s)){const[f=0,h=0]=s;a.value=f,o.value=h}else{let f;De(s)?f=s:f=Wg[s||"small"]||Wg.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const Hte=Ce({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:J([String,Object,Array]),default:""},style:{type:J([String,Array,Object]),default:""},alignment:{type:J(String),default:"center"},prefixCls:{type:String},spacer:{type:J([Object,String,Number,Array]),default:null,validator:e=>Wt(e)||De(e)||Ue(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:vo,validator:e=>De(e)||Ve(e)&&e.length===2&&e.every(De)}}),Fte=D({name:"ElSpace",props:Hte,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=Dte(e);function l(r,s="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{C2(d)?Ve(d.children)&&d.children.forEach((h,g)=>{C2(h)&&Ve(h.children)?l(h.children,`${s+g}-`,u):Wt(h)&&(h==null?void 0:h.type)===wn?u.push(h):u.push(Q(Kg,{style:o.value,prefixCls:c,key:`nested-${s+g}`},{default:()=>[h]},Ja.PROPS|Ja.STYLE,["style","prefixCls"]))}):tA(d)&&u.push(Q(Kg,{style:o.value,prefixCls:c,key:`LoopKey${s+f}`},{default:()=>[d]},Ja.PROPS|Ja.STYLE,["style","prefixCls"]))}),u}return()=>{const{spacer:r,direction:s}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(Ve(u.children)){let c=l(u.children);if(r){const d=c.length-1;c=c.reduce((f,h,g)=>{const p=[...f,h];return g!==d&&p.push(Q("span",{style:[o.value,s==="vertical"?"width: 100%":null],key:g},[Wt(r)?r:_t(r,Ja.TEXT)],Ja.STYLE)),p},[])}return Q("div",{class:n.value,style:a.value},c,Ja.STYLE|Ja.CLASS)}return u.children}}}),Kte=rt(Fte),Wte=Ce({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:J([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:J([String,Object,Array])}});var jte=D({name:"ElStatistic",__name:"statistic",props:Wte,setup(e,{expose:t}){const n=e,a=ve("statistic"),o=x(()=>{const{value:l,formatter:r,precision:s,decimalSeparator:u,groupSeparator:c}=n;if(ct(r))return r(l);if(!De(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(l,r)=>(_(),$("div",{class:R(i(a).b())},[l.$slots.title||e.title?(_(),$("div",{key:0,class:R(i(a).e("head"))},[oe(l.$slots,"title",{},()=>[_t(_e(e.title),1)])],2)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[l.$slots.prefix||e.prefix?(_(),$("div",{key:0,class:R(i(a).e("prefix"))},[oe(l.$slots,"prefix",{},()=>[E("span",null,_e(e.prefix),1)])],2)):re("v-if",!0),E("span",{class:R(i(a).e("number")),style:We(e.valueStyle)},_e(o.value),7),l.$slots.suffix||e.suffix?(_(),$("div",{key:1,class:R(i(a).e("suffix"))},[oe(l.$slots,"suffix",{},()=>[E("span",null,_e(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),qte=jte;const h5=rt(qte),Ute=Ce({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:J([Number,Object]),default:0},valueStyle:{type:J([String,Object,Array])}}),Yte={finish:()=>!0,[yt]:e=>De(e)},Gte=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],jg=e=>De(e)?new Date(e).getTime():e.valueOf(),qg=(e,t)=>{let n=e;return Gte.reduce((a,[o,l])=>{const r=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(r.test(a)){const s=Math.floor(n/l);return n-=s*l,a.replace(r,u=>String(s).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var Xte=D({name:"ElCountdown",__name:"countdown",props:Ute,emits:Yte,setup(e,{expose:t,emit:n}){const a=e,o=n;let l;const r=V(0),s=x(()=>qg(r.value,a.format)),u=f=>qg(f,a.format),c=()=>{l&&(ml(l),l=void 0)},d=()=>{const f=jg(a.value),h=()=>{let g=f-Date.now();o(yt,g),g<=0?(g=0,c(),o("finish")):l=Ua(h),r.value=g};l=Ua(h)};return mt(()=>{r.value=jg(a.value)-Date.now(),fe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Lt(()=>{c()}),t({displayValue:s}),(f,h)=>(_(),ie(i(h5),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},ga({_:2},[Ct(f.$slots,(g,p)=>({name:p,fn:ae(()=>[oe(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),Jte=Xte;const Zte=rt(Jte),Qte=Ce({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),ene={[yt]:(e,t)=>[e,t].every(De)},v5="ElSteps",tne=Ce({title:{type:String,default:""},icon:{type:Ft},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var nne=D({name:"ElSteps",__name:"steps",props:Qte,emits:ene,setup(e,{emit:t}){const n=e,a=t,o=ve("steps"),{children:l,addChild:r,removeChild:s,ChildrenSorter:u}=mf(ht(),"ElStep");return fe(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),bt(v5,{props:n,steps:l,addStep:r,removeStep:s}),fe(()=>n.active,(c,d)=>{a(yt,c,d)}),(c,d)=>(_(),$("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),Q(i(u))],2))}}),ane=nne,one=D({name:"ElStep",__name:"item",props:tne,setup(e){const t=e,n=ve("step"),a=V(-1),o=V({}),l=V(""),r=Ne(v5),s=ht();let u=0,c=0;mt(()=>{fe([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([M],[A])=>{c=A||0,u=M-c,k(M)},{immediate:!0})});const d=x(()=>t.status||l.value),f=x(()=>{const M=r.steps.value[a.value-1];return M?M.internalStatus.value:"wait"}),h=x(()=>r.props.alignCenter),g=x(()=>r.props.direction==="vertical"),p=x(()=>r.props.simple),v=x(()=>r.steps.value.length),m=x(()=>{var M;return((M=r.steps.value[v.value-1])==null?void 0:M.uid)===s.uid}),y=x(()=>p.value?"":r.props.space),b=x(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",m.value&&!y.value&&!h.value),n.is("center",h.value&&!g.value&&!p.value)]),w=x(()=>{const M={flexBasis:De(y.value)?`${y.value}px`:y.value?y.value:`${100/(v.value-(h.value?0:1))}%`};return g.value||m.value&&(M.maxWidth=`${100/v.value}%`),M}),C=M=>{a.value=M},S=M=>{const A=M==="wait",O={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-r.props.active)*150}ms`},I=M===r.props.processStatus||A?0:100;O.borderWidth=I&&!p.value?"1px":0,O[r.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=O},k=M=>{M>a.value?l.value=r.props.finishStatus:M===a.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const A=r.steps.value[a.value-1];A&&A.calcProgress(l.value)},T={uid:s.uid,getVnode:()=>s.vnode,currentStatus:d,internalStatus:l,setIndex:C,calcProgress:S};return r.addStep(T),Lt(()=>{r.removeStep(T)}),(M,A)=>(_(),$("div",{style:We(w.value),class:R(b.value)},[re(" icon & line "),E("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[p.value?re("v-if",!0):(_(),$("div",{key:0,class:R(i(n).e("line"))},[E("i",{class:R(i(n).e("line-inner")),style:We(o.value)},null,6)],2)),E("div",{class:R([i(n).e("icon"),i(n).is(e.icon||M.$slots.icon?"icon":"text")])},[oe(M.$slots,"icon",{},()=>[e.icon?(_(),ie(i(ze),{key:0,class:R(i(n).e("icon-inner"))},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class"])):d.value==="success"?(_(),ie(i(ze),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(ni))]),_:1},8,["class"])):d.value==="error"?(_(),ie(i(ze),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class"])):p.value?re("v-if",!0):(_(),$("div",{key:3,class:R(i(n).e("icon-inner"))},_e(a.value+1),3))])],2)],2),re(" title & description "),E("div",{class:R(i(n).e("main"))},[E("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(M.$slots,"title",{},()=>[_t(_e(e.title),1)])],2),p.value?(_(),$("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(_(),$("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(M.$slots,"description",{},()=>[_t(_e(e.description),1)])],2))],2)],6))}}),m5=one;const lne=rt(ane,{Step:m5}),rne=ln(m5),g5=e=>["",...vo].includes(e),sne=Ce({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:g5},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ft},activeActionIcon:{type:Ft},activeIcon:{type:Ft},inactiveIcon:{type:Ft},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:J(Function)},id:String,tabindex:{type:[String,Number]},...ia(["ariaLabel"])}),ine={[at]:e=>Dt(e)||Ue(e)||De(e),[yt]:e=>Dt(e)||Ue(e)||De(e),[Sn]:e=>Dt(e)||Ue(e)||De(e)},une=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],cne=["aria-hidden"],dne={key:1},fne={key:1},pne=["aria-hidden"],k0="ElSwitch";var hne=D({name:k0,__name:"switch",props:sne,emits:ine,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Kn(),r=En(),s=ve("switch"),{inputId:u}=za(a,{formItemContext:l}),c=dn(x(()=>{if(a.loading)return!0})),d=V(a.modelValue!==!1),f=qt(),h=x(()=>[s.b(),s.m(r.value),s.is("disabled",c.value),s.is("checked",y.value)]),g=x(()=>[s.e("label"),s.em("label","left"),s.is("active",!y.value)]),p=x(()=>[s.e("label"),s.em("label","right"),s.is("active",y.value)]),v=x(()=>({width:cn(a.width)}));fe(()=>a.modelValue,()=>{d.value=!0});const m=x(()=>d.value?a.modelValue:!1),y=x(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(at,a.inactiveValue),o(yt,a.inactiveValue),o(Sn,a.inactiveValue)),fe(y,S=>{var k;f.value.checked=S,a.validateEvent&&((k=l==null?void 0:l.validate)==null||k.call(l,"change").catch(T=>ft(T)))});const b=()=>{const S=y.value?a.inactiveValue:a.activeValue;o(at,S),o(yt,S),o(Sn,S),Ie(()=>{f.value.checked=y.value})},w=()=>{if(c.value)return;const{beforeChange:S}=a;if(!S){b();return}const k=S();[As(k),Dt(k)].includes(!0)||on(k0,"beforeChange must return type `Promise` or `boolean`"),As(k)?k.then(T=>{T&&b()}).catch(T=>{ft(k0,`some error occurred: ${T}`)}):k&&b()},C=()=>{var S,k;(k=(S=f.value)==null?void 0:S.focus)==null||k.call(S)};return mt(()=>{f.value.checked=y.value}),t({focus:C,checked:y}),(S,k)=>(_(),$("div",{class:R(h.value),onClick:Xe(w,["prevent"])},[E("input",{id:i(u),ref_key:"input",ref:f,class:R(i(s).e("input")),type:"checkbox",role:"switch","aria-checked":y.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:b,onKeydown:rn(w,["enter"])},null,42,une),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||S.$slots.inactive)?(_(),$("span",{key:0,class:R(g.value)},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(_(),$("span",{key:1,"aria-hidden":y.value},_e(e.inactiveText),9,cne)):re("v-if",!0)])],2)):re("v-if",!0),E("span",{class:R(i(s).e("core")),style:We(v.value)},[e.inlinePrompt?(_(),$("div",{key:0,class:R(i(s).e("inner"))},[y.value?(_(),$("div",{key:1,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"active",{},()=>[e.activeIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(_(),$("span",fne,_e(e.activeText),1)):re("v-if",!0)])],2)):(_(),$("div",{key:0,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(_(),$("span",dne,_e(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),E("div",{class:R(i(s).e("action"))},[e.loading?(_(),ie(i(ze),{key:0,class:R(i(s).is("loading"))},{default:ae(()=>[Q(i(io))]),_:1},8,["class"])):y.value?oe(S.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):y.value?re("v-if",!0):oe(S.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||S.$slots.active)?(_(),$("span",{key:1,class:R(p.value)},[oe(S.$slots,"active",{},()=>[e.activeIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(_(),$("span",{key:1,"aria-hidden":!y.value},_e(e.activeText),9,pne)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),vne=hne;const mne=rt(vne),E0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},gne=function(e,t,n,a,o){if(!t&&!a&&(!o||Ve(o)&&!o.length))return e;Ue(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=a?null:function(s,u){return o?w8(In(o),c=>Ue(c)?_n(s,c):c(s,u,e)):(t!=="$key"&&Mt(s)&&"$value"in s&&(s=s.$value),[Mt(s)?t?_n(s,t):null:s])},r=function(s,u){var c,d,f,h,g;if(a)return a(s.value,u.value);for(let p=0,v=((c=s.key)==null?void 0:c.length)??0;p((g=u.key)==null?void 0:g[p]))return 1}return 0};return e.map((s,u)=>({value:s,index:u,key:l?l(s,u):null})).sort((s,u)=>{let c=r(s,u);return c||(c=s.index-u.index),c*+n}).map(s=>s.value)},y5=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},yne=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Ue(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(ct(t))return t.call(null,e);return""},_s=function(e,t,n=!1,a="children"){const o=e||[],l={};return o.forEach((r,s)=>{if(l[Yn(r,t)]={row:r,index:s},n){const u=r[a];Ve(u)&&Object.assign(l,_s(u,t,!0,a))}}),l};function bne(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(An(t,a)){const o=t[a];kt(o)||(n[a]=o)}return n}function sv(e){return e===""||kt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function b5(e){return e===""||kt(e)||(e=sv(e),Number.isNaN(e)&&(e=80)),e}function wne(e){return De(e)?e:Ue(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Cne(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function $d(e,t,n,a,o,l,r){let s=l??0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Yn(t,r);return e.findIndex(m=>Yn(m,r)===v)})(),f=d!==-1,h=o==null?void 0:o.call(null,t,s),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let m=0;const y=(a==null?void 0:a.children)&&v[a.children];return y&&Ve(y)&&(m+=y.length,y.forEach(b=>{m+=p(b)})),m};return(!o||h)&&(Dt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&Ve(t[a.children])&&t[a.children].forEach(v=>{const m=$d(e,v,n??!f,a,o,s+1,r);s+=p(v)+1,m&&(u=m)}),u}function _ne(e,t,n="children",a="hasChildren",o=!1){const l=s=>!(Ve(s)&&s.length);function r(s,u,c){t(s,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(s=>{if(s[a]&&o){t(s,null,0);return}const u=s[n];l(u)||r(s,u,0)})}const Sne=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},l=ct(a==null?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:Wl(n,a.property).value}):void 0;return Wt(l)?{slotContent:l,content:null,...e,popperOptions:o}:{slotContent:null,content:l??t,...e,popperOptions:o}};let fn=null;function xne(e,t,n,a,o,l){var g;const r=Sne(e,t,n,a),s={...r,slotContent:void 0};if((fn==null?void 0:fn.trigger)===o){const p=(g=fn.vm)==null?void 0:g.component;C8(p==null?void 0:p.props,s),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}fn==null||fn();const u=l==null?void 0:l.refs.tableWrapper,c=u==null?void 0:u.dataset.prefix,d=Q(Fn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...s},r.slotContent?{content:()=>r.slotContent}:void 0);d.appContext={...l.appContext,...l};const f=document.createElement("div");Ul(d,f),d.component.exposed.onOpen();const h=u==null?void 0:u.querySelector(`.${c}-scrollbar__wrap`);fn=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),Ul(null,f);const p=fn;h==null||h.removeEventListener("scroll",p),p.trigger=void 0,p.vm=void 0,fn=null},fn.trigger=o??void 0,fn.vm=d,h==null||h.addEventListener("scroll",fn)}function w5(e){return e.children?w8(e.children,w5):[e]}function Yg(e,t){return e+t.colSpan}const C5=(e,t,n,a)=>{let o=0,l=e;const r=n.states.columns.value;if(a){const u=w5(a[e]);o=r.slice(0,r.indexOf(u[0])).reduce(Yg,0),l=o+u.reduce(Yg,0)-1}else o=e;let s;switch(t){case"left":l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:l}:{}},iv=(e,t,n,a,o,l=0)=>{const r=[],{direction:s,start:u,after:c}=C5(t,n,a,o);if(s){const d=s==="left";r.push(`${e}-fixed-column--${s}`),d&&c+l===a.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function Gg(e,t){return e+(sf(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const uv=(e,t,n,a)=>{const{direction:o,start:l=0,after:r=0}=C5(e,t,n,a);if(!o)return;const s={},u=o==="left",c=n.states.columns.value;return u?s.left=c.slice(0,l).reduce(Gg,0):s.right=c.slice(r+1).reverse().reduce(Gg,0),s},Ws=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function _5(e){return e.some(t=>Wt(t)?!(t.type===wn||t.type===He&&!_5(t.children)):!0)?e:null}function kne(e){const t=ht(),n=V(!1),a=V([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return(f==null?void 0:f(c,d))??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=_s(a.value,d);a.value=c.filter((h,g)=>!!f[Yn(h,d)]&&o(h,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||$d(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,h=_s(d,f);a.value=c.reduce((g,p)=>{const v=h[p];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!_s(a.value,d)[Yn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function Ene(e){const t=ht(),n=V(null),a=V(null),o=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{const{data:d,rowKey:f}=e,h=a.value;let g=null;f.value&&(g=(i(d)||[]).find(p=>Yn(p,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,h)};return{setCurrentRowKey:o,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?r(Yn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:a}}}function Tne(e){const t=V([]),n=V({}),a=V(16),o=V(!1),l=V({}),r=V("hasChildren"),s=V("children"),u=V(!1),c=ht(),d=x(()=>e.rowKey.value?h(e.data.value||[]):{}),f=x(()=>{const C=e.rowKey.value,S=Object.keys(l.value),k={};return S.length&&S.forEach(T=>{if(l.value[T].length){const M={children:[]};l.value[T].forEach(A=>{const O=Yn(A,C);M.children.push(O),A[r.value]&&!k[O]&&(k[O]={children:[]})}),k[T]=M}}),k}),h=C=>{const S=e.rowKey.value,k={};return _ne(C,(T,M,A)=>{const O=Yn(T,S);Ve(M)?k[O]={children:M.map(I=>Yn(I,S)),level:A}:o.value&&(k[O]={children:[],lazy:!0,level:A})},s.value,r.value,o.value),k},g=(C=!1,S)=>{var O,I;S||(S=(O=c.store)==null?void 0:O.states.defaultExpandAll.value);const k=d.value,T=f.value,M=Object.keys(k),A={};if(M.length){const L=i(n),z=[],q=(F,N)=>{if(C)return t.value?S||t.value.includes(N):!!(S||F!=null&&F.expanded);{const P=S||t.value&&t.value.includes(N);return!!(F!=null&&F.expanded||P)}};M.forEach(F=>{const N=L[F],P={...k[F]};if(P.expanded=q(N,F),P.lazy){const{loaded:B=!1,loading:W=!1}=N||{};P.loaded=!!B,P.loading=!!W,z.push(F)}A[F]=P});const U=Object.keys(T);o.value&&U.length&&z.length&&U.forEach(F=>{var B;const N=L[F],P=T[F].children;if(z.includes(F)){if(((B=A[F].children)==null?void 0:B.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[F].children=P}else{const{loaded:W=!1,loading:K=!1}=N||{};A[F]={lazy:!0,loaded:!!W,loading:!!K,expanded:q(N,F),children:P,level:void 0}}})}n.value=A,(I=c.store)==null||I.updateTableScrollY()};fe(()=>t.value,()=>{g(!0)},{deep:!0}),fe(()=>d.value,()=>{g()}),fe(()=>f.value,()=>{g()});const p=C=>{t.value=C,g()},v=C=>o.value&&C&&"loaded"in C&&!C.loaded,m=(C,S)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Yn(C,k),M=T&&n.value[T];if(T&&M&&"expanded"in M){const A=M.expanded;S=kt(S)?!M.expanded:S,n.value[T].expanded=S,A!==S&&c.emit("expand-change",C,S),S&&v(M)&&b(C,T,M),c.store.updateTableScrollY()}},y=C=>{c.store.assertRowKey();const S=e.rowKey.value,k=Yn(C,S),T=n.value[k];v(T)?b(C,k,T):m(C,void 0)},b=(C,S,k)=>{const{load:T}=c.props;T&&!n.value[S].loaded&&(n.value[S].loading=!0,T(C,k,M=>{if(!Ve(M))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,M.length&&(l.value[S]=M),c.emit("expand-change",C,!0)}))};return{loadData:b,loadOrToggle:y,toggleTreeExpansion:m,updateTreeExpandKeys:p,updateTreeData:g,updateKeyChildren:(C,S)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[C]&&(l.value[C]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:s,checkStrictly:u}}}const Mne=(e,t)=>{const n=t.sortingColumn;return!n||Ue(n.sortable)?e:gne(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Dc=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Dc(n.children)):t.push(n)}),t};function One(){var st;const e=ht(),{size:t}=Bn((st=e.proxy)==null?void 0:st.$props),n=V(null),a=V([]),o=V([]),l=V(!1),r=V([]),s=V([]),u=V([]),c=V([]),d=V([]),f=V([]),h=V([]),g=V([]),p=[],v=V(0),m=V(0),y=V(0),b=V(!1),w=V([]),C=V(!1),S=V(!1),k=V(null),T=V(null),M=V({}),A=V(null),O=V(null),I=V(null),L=V(null),z=V(null),q=x(()=>n.value?_s(w.value,n.value):void 0);fe(a,()=>{var Ke;e.state&&(P(!1),e.props.tableLayout==="auto"&&((Ke=e.refs.tableHeaderRef)==null||Ke.updateFixedColumnStyle()))},{deep:!0});const U=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},F=Ke=>{var et;(et=Ke.children)==null||et.forEach(gt=>{gt.fixed=Ke.fixed,F(gt)})},N=()=>{r.value.forEach(Ee=>{F(Ee)}),c.value=r.value.filter(Ee=>[!0,"left"].includes(Ee.fixed));const Ke=r.value.find(Ee=>Ee.type==="selection");let et;Ke&&Ke.fixed!=="right"&&!c.value.includes(Ke)&&r.value.indexOf(Ke)===0&&c.value.length&&(c.value.unshift(Ke),et=!0),d.value=r.value.filter(Ee=>Ee.fixed==="right");const gt=r.value.filter(Ee=>(et?Ee.type!=="selection":!0)&&!Ee.fixed);s.value=Array.from(c.value).concat(gt).concat(d.value);const he=Dc(gt),Le=Dc(c.value),pe=Dc(d.value);v.value=he.length,m.value=Le.length,y.value=pe.length,u.value=Array.from(Le).concat(he).concat(pe),l.value=c.value.length>0||d.value.length>0},P=(Ke,et=!1)=>{Ke&&N(),et?e.state.doLayout():e.state.debouncedUpdateLayout()},B=Ke=>q.value?!!q.value[Yn(Ke,n.value)]:w.value.includes(Ke),W=()=>{b.value=!1;const Ke=w.value;w.value=[],Ke.length&&e.emit("selection-change",[])},K=()=>{var et,gt;let Ke;if(n.value){Ke=[];const he=(gt=(et=e==null?void 0:e.store)==null?void 0:et.states)==null?void 0:gt.childrenColumnName.value,Le=_s(a.value,n.value,!0,he);for(const pe in q.value)An(q.value,pe)&&!Le[pe]&&Ke.push(q.value[pe].row)}else Ke=w.value.filter(he=>!a.value.includes(he));if(Ke.length){const he=w.value.filter(Le=>!Ke.includes(Le));w.value=he,e.emit("selection-change",he.slice())}},j=()=>(w.value||[]).slice(),G=(Ke,et,gt=!0,he=!1)=>{var pe,Ee,it,Pt;const Le={children:(Ee=(pe=e==null?void 0:e.store)==null?void 0:pe.states)==null?void 0:Ee.childrenColumnName.value,checkStrictly:(Pt=(it=e==null?void 0:e.store)==null?void 0:it.states)==null?void 0:Pt.checkStrictly.value};if($d(w.value,Ke,et,Le,he?void 0:k.value,a.value.indexOf(Ke),n.value)){const Xt=(w.value||[]).slice();gt&&e.emit("select",Xt,Ke),e.emit("selection-change",Xt)}},ee=()=>{var Ee,it;const Ke=S.value?!b.value:!(b.value||w.value.length);b.value=Ke;let et=!1,gt=0;const he=(it=(Ee=e==null?void 0:e.store)==null?void 0:Ee.states)==null?void 0:it.rowKey.value,{childrenColumnName:Le}=e.store.states,pe={children:Le.value,checkStrictly:!1};a.value.forEach((Pt,Xt)=>{const Oe=Xt+gt;$d(w.value,Pt,Ke,pe,k.value,Oe,he)&&(et=!0),gt+=ue(Yn(Pt,he))}),et&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",(w.value||[]).slice())},te=()=>{var pe;if(((pe=a.value)==null?void 0:pe.length)===0){b.value=!1;return}const{childrenColumnName:Ke}=e.store.states;let et=0,gt=0;const he=Ee=>{var it;for(const Pt of Ee){const Xt=k.value&&k.value.call(null,Pt,et);if(B(Pt))gt++;else if(!k.value||Xt)return!1;if(et++,(it=Pt[Ke.value])!=null&&it.length&&!he(Pt[Ke.value]))return!1}return!0},Le=he(a.value||[]);b.value=gt===0?!1:Le},ue=Ke=>{var Le;if(!e||!e.store)return 0;const{treeData:et}=e.store.states;let gt=0;const he=(Le=et.value[Ke])==null?void 0:Le.children;return he&&(gt+=he.length,he.forEach(pe=>{gt+=ue(pe)})),gt},ne=(Ke,et)=>{const gt={};return In(Ke).forEach(he=>{M.value[he.id]=et,gt[he.columnKey||he.id]=et}),gt},de=(Ke,et,gt)=>{O.value&&O.value!==Ke&&(O.value.order=null),O.value=Ke,I.value=et,L.value=gt},se=()=>{let Ke=i(o);Object.keys(M.value).forEach(et=>{const gt=M.value[et];if(!gt||gt.length===0)return;const he=y5({columns:u.value},et);he&&he.filterMethod&&(Ke=Ke.filter(Le=>gt.some(pe=>he.filterMethod.call(null,pe,Le,he))))}),A.value=Ke},Y=()=>{a.value=Mne(A.value??[],{sortingColumn:O.value,sortProp:I.value,sortOrder:L.value})},X=(Ke=void 0)=>{Ke!=null&&Ke.filter||se(),Y()},H=Ke=>{const{tableHeaderRef:et}=e.refs;if(!et)return;const gt=Object.assign({},et.filterPanels),he=Object.keys(gt);if(he.length)if(Ue(Ke)&&(Ke=[Ke]),Ve(Ke)){const Le=Ke.map(pe=>yne({columns:u.value},pe));he.forEach(pe=>{const Ee=Le.find(it=>it.id===pe);Ee&&(Ee.filteredValue=[])}),e.store.commit("filterChange",{column:Le,values:[],silent:!0,multi:!0})}else he.forEach(Le=>{const pe=u.value.find(Ee=>Ee.id===Le);pe&&(pe.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Z=()=>{O.value&&(de(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:le,toggleRowExpansion:ce,updateExpandRows:ge,states:me,isRowExpanded:$e}=kne({data:a,rowKey:n}),{updateTreeExpandKeys:Re,toggleTreeExpansion:Ae,updateTreeData:ye,updateKeyChildren:ke,loadOrToggle:be,states:Pe}=Tne({data:a,rowKey:n}),{updateCurrentRowData:Be,updateCurrentRow:Qe,setCurrentRowKey:tt,states:nt}=Ene({data:a,rowKey:n});return{assertRowKey:U,updateColumns:N,scheduleLayout:P,isSelected:B,clearSelection:W,cleanSelection:K,getSelectionRows:j,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:te,updateFilters:ne,updateCurrentRow:Qe,updateSort:de,execFilter:se,execSort:Y,execQuery:X,clearFilter:H,clearSort:Z,toggleRowExpansion:ce,setExpandRowKeysAdapter:Ke=>{le(Ke),Re(Ke)},setCurrentRowKey:tt,toggleRowExpansionAdapter:(Ke,et)=>{u.value.some(({type:gt})=>gt==="expand")?ce(Ke,et):Ae(Ke,et)},isRowExpanded:$e,updateExpandRows:ge,updateCurrentRowData:Be,loadOrToggle:be,updateTreeData:ye,updateKeyChildren:ke,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:l,_columns:r,originColumns:s,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:g,updateOrderFns:p,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:C,selectOnIndeterminate:S,selectable:k,rowExpandable:T,filters:M,filteredData:A,sortingColumn:O,sortProp:I,sortOrder:L,hoverRow:z,...me,...Pe,...nt}}}function Y2(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=Y2(n.children,t)),n)})}function G2(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&G2(t.children)}),e.sort((t,n)=>t.no-n.no)}function $ne(){const e=ht(),t=One(),n=ve("table"),{t:a}=xt();return{ns:n,t:a,...t,mutations:{setData(s,u){const c=i(s._data)!==u;s.data.value=u,s._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(s.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,u,c,d){var g;const f=i(s._columns);let h=[];c?(c&&!c.children&&(c.children=[]),(g=c.children)==null||g.push(u),h=Y2(f,c)):(f.push(u),h=f),G2(h),s._columns.value=h,s.updateOrderFns.push(d),u.type==="selection"&&(s.selectable.value=u.selectable,s.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(G2(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,u,c,d){var g;const f=i(s._columns)||[];if(c)(g=c.children)==null||g.splice(c.children.findIndex(p=>p.id===u.id),1),Ie(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),s._columns.value=Y2(f,c);else{const p=f.indexOf(u);p>-1&&(f.splice(p,1),s._columns.value=f)}const h=s.updateOrderFns.indexOf(d);h>-1&&s.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,u){const{prop:c,order:d,init:f}=u;if(c){const h=i(s.columns).find(g=>g.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=s,h=i(c),g=i(d),p=i(f);sf(p)&&(s.sortingColumn.value=null,s.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:g,order:p}),e.store.updateTableScrollY()},filterChange(s,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var s,u;(u=(s=e.store).toggleAllSelection)==null||u.call(s)},rowSelectedChanged(s,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(s,u){s.hoverRow.value=u},setCurrentRow(s,u){e.store.updateCurrentRow(u)}},commit:function(s,...u){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ie(()=>e.layout.updateScrollY.apply(e.layout))}}}const cv={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Ane(e,t){if(!e)throw new Error("Table is required.");const n=$ne();return n.toggleAllSelection=Ko(n._toggleAllSelection,10),Object.keys(cv).forEach(a=>{S5(x5(t,a),a,n)}),Rne(n,t),n}function Rne(e,t){Object.keys(cv).forEach(n=>{fe(()=>x5(t,n),a=>{S5(a,n,e)})})}function S5(e,t,n){let a=e,o=cv[t];Mt(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function x5(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var Nne=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const t in e)An(e,t)&&(Gt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(sf(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!Rt)return;const n=this.table.vnode.el;if(e=wne(e),this.height.value=Number(e),!n&&(e||e===0)){Ie(()=>this.setHeight(e,t));return}n&&De(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Ue(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){var s;if(!Rt)return;const e=this.fit,t=(s=this.table.vnode.el)==null?void 0:s.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(u=>!De(u.width));if(a.forEach(u=>{De(u.width)&&u.realWidth&&(u.realWidth=null)}),o.length>0&&e){if(a.forEach(u=>{n+=Number(u.width||u.minWidth||80)}),n<=t){this.scrollX.value=!1;const u=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=u/o.reduce((f,h)=>f+Number(h.minWidth||80),0);let d=0;o.forEach((f,h)=>{if(h===0)return;const g=Math.floor(Number(f.minWidth||80)*c);d+=g,f.realWidth=Number(f.minWidth||80)+g}),o[0].realWidth=Number(o[0].minWidth||80)+u-d}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),n+=u.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let u=0;r.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{var n,a;switch(e){case"columns":(n=t.state)==null||n.onColumnsChange(this);break;case"scrollable":(a=t.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const Co=Symbol("ElTable"),k5=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,k5(n.children))):t.push(n)}),t},E5=e=>{let t=1;const n=(o,l)=>{if(l&&(o.level=l.level+1,t{n(s,o),r+=s.colSpan}),o.colSpan=r}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(l=>l.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function Pne(e){const t=Ne(Co),n=x(()=>E5(e.store.states.originColumns.value));return{isGroup:x(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Ine=D({name:"ElTableFilterPanel",components:{ElCheckbox:fo,ElCheckboxGroup:Kh,ElScrollbar:uo,ElTooltip:Fn,ElIcon:ze,ArrowDown:bo,ArrowUp:Du},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Ht.appendTo},setup(e){const t=ht(),{t:n}=xt(),a=ve("table-filter"),o=t==null?void 0:t.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const l=V(null),r=V(null),s=V(0),u=x(()=>e.column&&e.column.filters),c=x(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=x({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{f.value&&(Sa(T)?f.value.splice(0,1):f.value.splice(0,1,T))}}),f=x({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var M;e.column&&((M=e.upDataColumn)==null||M.call(e,"filteredValue",T))}}),h=x(()=>e.column?e.column.filterMultiple:!0),g=T=>T.value===d.value,p=()=>{var T;(T=l.value)==null||T.onClose()},v=()=>{b(f.value),p()},m=()=>{f.value=[],b(f.value),p()},y=(T,M)=>{d.value=T,s.value=M,Sa(T)?b([]):b(f.value),p()},b=T=>{var M,A;(M=e.store)==null||M.commit("filterChange",{column:e.column,values:T}),(A=e.store)==null||A.updateAllSelected()},w=()=>{var T,M;(T=r.value)==null||T.focus(),!h.value&&S(),e.column&&((M=e.upDataColumn)==null||M.call(e,"filterOpened",!0))},C=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},S=()=>{if(Sa(d)){s.value=0;return}const T=(u.value||[]).findIndex(M=>M.value===d.value);s.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:y,isPropAbsent:Sa,isActive:g,t:n,ns:a,tooltipRef:l,rootRef:r,checkedIndex:s,handleShowTooltip:w,handleHideTooltip:C,handleKeydown:T=>{var L,z;const M=Kt(T),A=(u.value?u.value.length:0)+1;let O=s.value,I=!0;switch(M){case we.down:case we.right:O=(O+1)%A;break;case we.up:case we.left:O=(O-1+A)%A;break;case we.tab:p(),I=!1;break;case we.enter:case we.space:if(O===0)y(null,0);else{const q=(u.value||[])[O-1];q.value&&y(q.value,O)}break;default:I=!1;break}I&&T.preventDefault(),s.value=O,(z=(L=r.value)==null?void 0:L.querySelector(`.${a.e("list-item")}:nth-child(${O+1})`))==null||z.focus()}}}});const Lne=["disabled"],Vne=["tabindex","aria-checked"],Bne=["tabindex","aria-checked","onClick"],zne=["aria-label"];function Dne(e,t,n,a,o,l){const r=$t("el-checkbox"),s=$t("el-checkbox-group"),u=$t("el-scrollbar"),c=$t("arrow-up"),d=$t("arrow-down"),f=$t("el-icon"),h=$t("el-tooltip");return _(),ie(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ae(()=>[e.multiple?(_(),$("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[E("div",{class:R(e.ns.e("content"))},[Q(u,{"wrap-class":e.ns.e("wrap")},{default:ae(()=>[Q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ae(()=>[(_(!0),$(He,null,Ct(e.filters,g=>(_(),ie(r,{key:g.value,value:g.value},{default:ae(()=>[_t(_e(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:R(e.ns.e("bottom"))},[E("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},_e(e.t("el.table.confirmFilter")),11,Lne),E("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},_e(e.t("el.table.resetFilter")),1)],2)],2)):(_(),$("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[E("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},_e(e.t("el.table.clearFilter")),11,Vne),(_(!0),$(He,null,Ct(e.filters,(g,p)=>(_(),$("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,p+1)},_e(g.text),11,Bne))),128))],34))]),default:ae(()=>{var g;return[E("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((g=e.column)==null?void 0:g.label)||""})},[Q(f,null,{default:ae(()=>[oe(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(_(),ie(c,{key:0})):(_(),ie(d,{key:1}))]})]),_:3})],10,zne)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Hne=$n(Ine,[["render",Dne]]);function dv(e){const t=ht();Ud(()=>{n.value.addObserver(t)}),mt(()=>{a(n.value),o(n.value)}),ho(()=>{a(n.value),o(n.value)}),Gs(()=>{n.value.removeObserver(t)});const n=x(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),a=l=>{var c;const r=((c=e.vnode.el)==null?void 0:c.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const s=l.getFlattenColumns(),u={};s.forEach(d=>{u[d.id]=d});for(let d=0,f=r.length;d{var u,c;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=r.length;d{v.stopPropagation()},l=(v,m)=>{!m.filters&&m.sortable?p(v,m,!1):m.filterable&&!m.sortable&&o(v),a==null||a.emit("header-click",m,v)},r=(v,m)=>{a==null||a.emit("header-contextmenu",m,v)},s=V(null),u=V(!1),c=V(),d=(v,m)=>{var y,b,w;if(Rt&&!(m.children&&m.children.length>0)&&s.value&&e.border&&s.value.id===m.id){u.value=!0;const C=a;t("set-drag-visible",!0);const S=(y=C==null?void 0:C.vnode.el)==null?void 0:y.getBoundingClientRect().left,k=(w=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:w.querySelector(`th.${m.id}`),T=k.getBoundingClientRect(),M=T.left-S+30;Ka(k,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:T.right-S,startColumnLeft:T.left-S,tableLeft:S};const A=C==null?void 0:C.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=L=>{const z=L.clientX-c.value.startMouseLeft,q=c.value.startLeft+z;A.style.left=`${Math.max(M,q)}px`},I=()=>{if(u.value){const{startColumnLeft:L,startLeft:z}=c.value;m.width=m.realWidth=Number.parseInt(A.style.left,10)-L,C==null||C.emit("header-dragend",m.width,z-L,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,s.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{sa(k,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)}},f=(v,m)=>{var A;if(!e.border||m.children&&m.children.length>0)return;const y=v.target,b=_a(y)?y.closest("th"):null;if(!b)return;const w=Vo(b,"is-sortable");if(w){const O=u.value?"col-resize":"";b.style.cursor=O;const I=b.querySelector(".caret-wrapper");I&&(I.style.cursor=O)}if(!m.resizable||u.value){s.value=null;return}const C=b.getBoundingClientRect(),S=((A=b.parentNode)==null?void 0:A.lastElementChild)===b,k=e.allowDragLastColumn||!S,T=C.width>12&&C.right-v.clientX<8&&k,M=T?"col-resize":"";document.body.style.cursor=M,s.value=T?m:null,w&&(b.style.cursor=M)},h=()=>{!Rt||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const y=m.indexOf(v||null);return m[y>m.length-2?0:y+1]},p=(v,m,y)=>{var A;v.stopPropagation();const b=m.order===y?null:y||g(m),w=(A=v.target)==null?void 0:A.closest("th");if(w&&Vo(w,"noclick")){sa(w,"noclick");return}if(!m.sortable)return;const C=v.currentTarget;if(["ascending","descending"].some(O=>Vo(C,O)&&!m.sortOrders.includes(O)))return;const S=e.store.states;let k=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==m||M===m&&sf(M.order))&&(M&&(M.order=null),S.sortingColumn.value=m,k=m.property),b?T=m.order=b:T=m.order=null,S.sortProp.value=k,S.sortOrder.value=T,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:o}}function Kne(e){const t=Ne(Co),n=ve("table");return{getHeaderRowStyle:s=>{const u=t==null?void 0:t.props.headerRowStyle;return ct(u)?u.call(null,{rowIndex:s}):u},getHeaderRowClass:s=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Ue(c)?u.push(c):ct(c)&&u.push(c.call(null,{rowIndex:s})),u.join(" ")},getHeaderCellStyle:(s,u,c,d)=>{let f=(t==null?void 0:t.props.headerCellStyle)??{};ct(f)&&(f=f.call(null,{rowIndex:s,columnIndex:u,row:c,column:d}));const h=uv(u,d.fixed,e.store,c);return Ws(h,"left"),Ws(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(s,u,c,d)=>{const f=iv(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return Ue(g)?h.push(g):ct(g)&&h.push(g.call(null,{rowIndex:s,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>!!p).join(" ")}}}var Wne=D({name:"ElTableHeader",components:{ElCheckbox:fo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=ht(),a=Ne(Co),o=ve("table"),l=V({}),{onColumnsChange:r,onScrollableChange:s}=dv(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=Nt(new Map),d=V();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((L,z)=>{const q=d.value.querySelector(`.${z.replace(/\s/g,".")}`);q&&(L.width=q.getBoundingClientRect().width||L.width)}),c.clear())})};fe(c,h),Lt(()=>{f&&(clearTimeout(f),f=void 0)}),mt(async()=>{await Ie(),await Ie();const{prop:L,order:z}=e.defaultSort;a==null||a.store.commit("sort",{prop:L,order:z,init:!0}),h()});const{handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w}=Fne(e,t),{getHeaderRowStyle:C,getHeaderRowClass:S,getHeaderCellStyle:k,getHeaderCellClass:T}=Kne(e),{isGroup:M,toggleAllSelection:A,columnRows:O}=Pne(e),{t:I}=xt();return n.state={onColumnsChange:r,onScrollableChange:s},n.filterPanels=l,{ns:o,t:I,filterPanels:l,onColumnsChange:r,onScrollableChange:s,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:C,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w,isGroup:M,toggleAllSelection:A,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:s,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:g,store:p,$parent:v,saveIndexSelection:m,isTableLayoutAuto:y}=this;let b=1;return qe("thead",{ref:"theadRef",class:e.is("group",n)},a.map((w,C)=>qe("tr",{class:r(C),key:C,style:s(C)},w.map((S,k)=>{S.rowSpan>b&&(b=S.rowSpan);const T=l(C,k,w,S);return y&&S.fixed&&m.set(T,S),qe("th",{class:T,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:o(C,k,w,S),onClick:M=>{var A;(A=M.currentTarget)!=null&&A.classList.contains("noclick")||u(M,S)},onContextmenu:M=>c(M,S),onMousedown:M=>d(M,S),onMousemove:M=>f(M,S),onMouseout:g},[qe("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:k,store:p,_self:v}):S.label,S.sortable&&qe("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:M=>h(M,S)},[qe("i",{onClick:M=>h(M,S,"ascending"),class:"sort-caret ascending"}),qe("i",{onClick:M=>h(M,S,"descending"),class:"sort-caret descending"})]),S.filterable&&qe(Hne,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(M,A)=>{S[M]=A}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function jne(e){const t=Ne(Co),n=V(""),a=V(qe("div")),o=(p,v,m)=>{var S,k;const y=t,b=E0(p);let w=null;const C=(S=y==null?void 0:y.vnode.el)==null?void 0:S.dataset.prefix;b&&(w=Ug({columns:((k=e.store)==null?void 0:k.states.columns.value)??[]},b,C),w&&(y==null||y.emit(`cell-${m}`,v,w,b,p))),y==null||y.emit(`row-${m}`,v,w,p)},l=(p,v)=>{o(p,v,"dblclick")},r=(p,v)=>{var m;(m=e.store)==null||m.commit("setCurrentRow",v),o(p,v,"click")},s=(p,v)=>{o(p,v,"contextmenu")},u=Ko(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=Ko(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(p,v,m)=>{var b;let y=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)m(y,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:s,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,m)=>{var N,P,B;if(!t)return;const y=t,b=E0(p),w=(N=y==null?void 0:y.vnode.el)==null?void 0:N.dataset.prefix;let C=null;if(b){if(C=Ug({columns:((P=e.store)==null?void 0:P.states.columns.value)??[]},b,w),!C)return;b.rowSpan>1&&f(b.rowSpan,p,Ka);const W=y.hoverState={cell:b,column:C,row:v};y==null||y.emit("cell-mouse-enter",W.row,W.column,W.cell,p)}if(!m){(fn==null?void 0:fn.trigger)===b&&(fn==null||fn());return}const S=p.target.querySelector(".cell");if(!(Vo(S,`${w}-tooltip`)&&S.childNodes.length&&((B=S.textContent)!=null&&B.trim())))return;const k=document.createRange();k.setStart(S,0),k.setEnd(S,S.childNodes.length);const{width:T,height:M}=k.getBoundingClientRect(),{width:A,height:O}=S.getBoundingClientRect(),{top:I,left:L,right:z,bottom:q}=d(S),U=L+z,F=I+q;jl(T+U,A)||jl(M+F,O)||jl(S.scrollWidth,A)?xne(m,((b==null?void 0:b.innerText)||(b==null?void 0:b.textContent))??"",v,C,b,y):(fn==null?void 0:fn.trigger)===b&&(fn==null||fn())},handleCellMouseLeave:p=>{const v=E0(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,sa);const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:a}}function qne(e){const t=Ne(Co),n=ve("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return ct(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var p;const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((p=e.store)==null?void 0:p.states.currentRow.value)&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return Ue(g)?h.push(g):ct(g)&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let p=g??{};ct(g)&&(p=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=uv(d,e==null?void 0:e.fixed,e.store);return Ws(v,"left"),Ws(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,g)=>{const p=iv(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),v=[h.id,h.align,h.className,...p],m=t==null?void 0:t.props.cellClassName;return Ue(m)?v.push(m):ct(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,f,h)=>{let g=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(ct(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:h});Ve(m)?(g=m[0],p=m[1]):Mt(m)&&(g=m.rowspan,p=m.colspan)}return{rowspan:g,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:g,width:p})=>g||p).slice(f,f+d);return Number(h.reduce((g,p)=>Number(g)+Number(p),-1))}}}const Une=["colspan","rowspan"];var Yne=D({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(_(),$("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,Une))}}),Gne=Yne;function Xne(e){const t=Ne(Co),n=ve("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:s,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=jne(e),{getRowStyle:h,getRowClass:g,getCellStyle:p,getCellClass:v,getSpan:m,getColspanRealWidth:y}=qne(e);let b=-1;const w=x(()=>{var M;return(M=e.store)==null?void 0:M.states.columns.value.findIndex(({type:A})=>A==="default")}),C=(M,A)=>{var I;const O=(I=t==null?void 0:t.props)==null?void 0:I.rowKey;return O?Yn(M,O):A},S=(M,A,O,I=!1)=>{const{tooltipEffect:L,tooltipOptions:z,store:q}=e,{indent:U,columns:F}=q.states,N=[];let P=!0;return O&&(N.push(n.em("row",`level-${O.level}`)),P=!!O.display),A===0&&(b=-1),e.stripe&&P&&b++,N.push(...g(M,A,b)),qe("tr",{style:[P?null:{display:"none"},h(M,A)],class:N,key:C(M,A),onDblclick:B=>a(B,M),onClick:B=>o(B,M),onContextmenu:B=>l(B,M),onMouseenter:()=>r(A),onMouseleave:s},F.value.map((B,W)=>{const{rowspan:K,colspan:j}=m(M,B,A,W);if(!K||!j)return null;const G=Object.assign({},B);G.realWidth=y(F.value,j,W);const ee={store:q,_self:e.context||t,column:G,row:M,$index:A,cellIndex:W,expanded:I};W===w.value&&O&&(ee.treeNode={indent:O.level&&O.level*U.value,level:O.level},Dt(O.expanded)&&(ee.treeNode.expanded=O.expanded,"loading"in O&&(ee.treeNode.loading=O.loading),"noLazyChildren"in O&&(ee.treeNode.noLazyChildren=O.noLazyChildren)));const te=`${C(M,A)},${W}`,ue=G.columnKey||G.rawColumnKey||"",ne=B.showOverflowTooltip&&C8({effect:L},z,B.showOverflowTooltip);return qe(Gne,{style:p(A,W,M,B),class:v(A,W,M,B,j-1),key:`${ue}${te}`,rowspan:K,colspan:j,onMouseenter:de=>u(de,M,ne),onMouseleave:c},{default:()=>k(W,B,ee)})}))},k=(M,A,O)=>A.renderCell(O);return{wrappedRowRender:(M,A)=>{const O=e.store,{isRowExpanded:I,assertRowKey:L}=O,{treeData:z,lazyTreeNodeMap:q,childrenColumnName:U,rowKey:F}=O.states,N=O.states.columns.value;if(N.some(({type:P})=>P==="expand")){const P=I(M),B=S(M,A,void 0,P),W=t==null?void 0:t.renderExpanded;if(!W)return console.error("[Element Error]renderExpanded is required."),B;const K=[[B]];return(t.props.preserveExpandedContent||P)&&K[0].push(qe("tr",{key:`expanded-row__${B.key}`,style:{display:P?"":"none"}},[qe("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[W({row:M,$index:A,store:O,expanded:P})])])),K}else if(Object.keys(z.value).length){L();const P=Yn(M,F.value);let B=z.value[P],W=null;B&&(W={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Dt(B.lazy)&&(W&&Dt(B.loaded)&&B.loaded&&(W.noLazyChildren=!(B.children&&B.children.length)),W.loading=B.loading));const K=[S(M,A,W??void 0)];if(B){let j=0;const G=(ee,te)=>{ee&&ee.length&&te&&ee.forEach(ue=>{const ne={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Yn(ue,F.value);if(Sa(de))throw new Error("For nested data item, row-key is required.");B={...z.value[de]},B&&(ne.expanded=B.expanded,B.level=B.level||ne.level,B.display=!!(B.expanded&&ne.display),Dt(B.lazy)&&(Dt(B.loaded)&&B.loaded&&(ne.noLazyChildren=!(B.children&&B.children.length)),ne.loading=B.loading)),j++,K.push(S(ue,A+j,ne)),B&&G(q.value[de]||ue[U.value],B)})};B.display=!0,G(q.value[P]||M[U.value],B)}return K}else return S(M,A,void 0)},tooltipContent:d,tooltipTrigger:f}}const Jne={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Zne=D({name:"ElTableBody",props:Jne,setup(e){var d;const t=ht(),n=Ne(Co),a=ve("table"),{wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}=Xne(e),{onColumnsChange:s,onScrollableChange:u}=dv(n),c=[];return fe((d=e.store)==null?void 0:d.states.hoverRow,(f,h)=>{var y,b;const g=t==null?void 0:t.vnode.el,p=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let v=f;const m=(y=p[v])==null?void 0:y.childNodes;if(m!=null&&m.length){let w=0;Array.from(m).reduce((C,S,k)=>{var T,M;return((T=m[k])==null?void 0:T.colSpan)>1&&(w=(M=m[k])==null?void 0:M.colSpan),S.nodeName!=="TD"&&w===0&&C.push(k),w>0&&w--,C},[]).forEach(C=>{var S;for(v=f;v>0;){const k=(S=p[v-1])==null?void 0:S.childNodes;if(k[C]&&k[C].nodeName==="TD"&&k[C].rowSpan>1){Ka(k[C],"hover-cell"),c.push(k[C]);break}v--}})}else c.forEach(w=>sa(w,"hover-cell")),c.length=0;!((b=e.store)!=null&&b.states.isComplex.value)||!Rt||Ua(()=>{const w=p[h],C=p[f];w&&!w.classList.contains("hover-fixed-row")&&sa(w,"hover-row"),C&&Ka(C,"hover-row")})}),Gs(()=>{fn==null||fn()}),{ns:a,onColumnsChange:s,onScrollableChange:u,wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this;return qe("tbody",{tabIndex:-1},[((t==null?void 0:t.states.data.value)||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function Qne(){var t;const e=(t=Ne(Co))==null?void 0:t.store;return{leftFixedLeafCount:x(()=>(e==null?void 0:e.states.fixedLeafColumnsLength.value)??0),rightFixedLeafCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columnsCount:x(()=>(e==null?void 0:e.states.columns.value.length)??0),leftFixedCount:x(()=>(e==null?void 0:e.states.fixedColumns.value.length)??0),rightFixedCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columns:x(()=>(e==null?void 0:e.states.columns.value)??[])}}function eae(e){const{columns:t}=Qne(),n=ve("table");return{getCellClasses:(l,r)=>{const s=l[r],u=[n.e("cell"),s.id,s.align,s.labelClassName,...iv(n.b(),r,s.fixed,e.store)];return s.className&&u.push(s.className),s.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const s=uv(r,l.fixed,e.store);return Ws(s,"left"),Ws(s,"right"),s},columns:t}}var tae=D({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ne(Co),n=ve("table"),{getCellClasses:a,getCellStyles:o,columns:l}=eae(e),{onScrollableChange:r,onColumnsChange:s}=dv(t);return{ns:n,onScrollableChange:r,onColumnsChange:s,getCellClasses:a,getCellStyles:o,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,l=this.store.states.data.value;let r=[];return a?r=a({columns:e,data:l}):e.forEach((s,u)=>{if(u===0){r[u]=o;return}const c=l.map(g=>Number(g[s.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const p=`${g}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((g,p)=>{const v=Number(p);return Number.isNaN(+v)?g:Number.parseFloat((g+p).toFixed(Math.min(h,20)))},0)}),qe(qe("tfoot",[qe("tr",{},[...e.map((s,u)=>qe("td",{key:u,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,u),style:t(s,u)},[qe("div",{class:["cell",s.labelClassName]},[r[u]])]))])]))}});function nae(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,g=!0)=>{e.toggleRowSelection(f,h,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function aae(e,t,n,a){const o=V(!1),l=V(null),r=V(!1),s=U=>{r.value=U},u=V({width:null,height:null,headerHeight:null}),c=V(!1),d={display:"inline-block",verticalAlign:"middle"},f=V(),h=V(0),g=V(0),p=V(0),v=V(0),m=V(0);fe(()=>e.height,U=>{t.setHeight(U??null)},{immediate:!0}),fe(()=>e.maxHeight,U=>{t.setMaxHeight(U??null)},{immediate:!0}),fe(()=>[e.currentRowKey,n.states.rowKey],([U,F])=>{!i(F)||!i(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),fe(()=>e.data,U=>{a.store.commit("setData",U)},{immediate:!0,deep:!0}),ma(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},b=(U,F)=>{const{pixelX:N,pixelY:P}=F;Math.abs(N)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},w=x(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),C=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(A)};mt(async()=>{await Ie(),n.updateColumns(),O(),requestAnimationFrame(S);const U=a.vnode.el,F=a.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),u.value={width:f.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(N=>{N.filteredValue&&N.filteredValue.length&&a.store.commit("filterChange",{column:N,values:N.filteredValue,silent:!0})}),a.$ready=!0});const k=(U,F)=>{if(!U)return;const N=Array.from(U.classList).filter(P=>!P.startsWith("is-scrolling-"));N.push(t.scrollX.value?F:"is-scrolling-none"),U.className=N.join(" ")},T=U=>{const{tableWrapper:F}=a.refs;k(F,U)},M=U=>{const{tableWrapper:F}=a.refs;return!!(F&&F.classList.contains(U))},A=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const K="is-scrolling-none";M(K)||T(K);return}const U=a.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:F,offsetWidth:N,scrollWidth:P}=U,{headerWrapper:B,footerWrapper:W}=a.refs;B&&(B.scrollLeft=F),W&&(W.scrollLeft=F),F>=P-N-1?T("is-scrolling-right"):T(F===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Vt(a.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?en(a.vnode.el,I):Vt(window,"resize",I),en(a.refs.tableInnerWrapper,()=>{var U,F;I(),(F=(U=a.refs)==null?void 0:U.scrollBarRef)==null||F.update()}))},I=()=>{var G,ee,te,ue;const U=a.vnode.el;if(!a.$ready||!U)return;let F=!1;const{width:N,height:P,headerHeight:B}=u.value,W=f.value=U.offsetWidth;N!==W&&(F=!0);const K=U.offsetHeight;(e.height||w.value)&&P!==K&&(F=!0);const j=e.tableLayout==="fixed"?a.refs.headerWrapper:(G=a.refs.tableHeaderRef)==null?void 0:G.$el;e.showHeader&&(j==null?void 0:j.offsetHeight)!==B&&(F=!0),h.value=((ee=a.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,p.value=(j==null?void 0:j.scrollHeight)||0,v.value=((te=a.refs.footerWrapper)==null?void 0:te.offsetHeight)||0,m.value=((ue=a.refs.appendWrapper)==null?void 0:ue.offsetHeight)||0,g.value=h.value-p.value-v.value-m.value,F&&(u.value={width:W,height:K,headerHeight:e.showHeader&&(j==null?void 0:j.offsetHeight)||0},S())},L=En(),z=x(()=>{const{bodyWidth:U,scrollY:F,gutterWidth:N}=t;return U.value?`${U.value-(F.value?N:0)}px`:""}),q=x(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:l,setDragVisible:s,isGroup:c,handleMouseLeave:y,handleHeaderFooterMousewheel:b,tableSize:L,emptyBlockStyle:x(()=>{if(e.data&&e.data.length)return;let U="100%";e.height&&g.value&&(U=`${g.value}px`);const F=f.value;return{width:F?`${F}px`:"",height:U}}),resizeProxyVisible:r,bodyWidth:z,resizeState:u,doLayout:S,tableBodyStyles:C,tableLayout:q,scrollbarViewStyle:d,scrollbarStyle:x(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{})}}function oae(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},l=e.store.states.updateOrderFns;t=new MutationObserver(()=>{l.forEach(r=>r())}),t.observe(a,o)};mt(()=>{n()}),Gs(()=>{t==null||t.disconnect()})}var lae={data:{type:Array,default:()=>[]},size:On,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function T5(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>kt(o))&&(n=[]);const a=o=>{const l={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?l.style={width:`${o.width}px`}:l.name=o.id,l};return qe("colgroup",{},n.map(o=>qe("col",a(o))))}T5.props=["columns","tableLayout"];const rae=()=>{const e=V(),t=(l,r)=>{const s=e.value;s&&s.scrollTo(l,r)},n=(l,r)=>{const s=e.value;s&&De(r)&&["Top","Left"].includes(l)&&s[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let sae=1;var iae=D({name:"ElTable",directives:{Mousewheel:PM},components:{TableHeader:Wne,TableBody:Zne,TableFooter:tae,ElScrollbar:uo,hColgroup:T5},props:lae,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=xt(),n=ve("table"),a=Tl("table"),o=ht();bt(Co,o);const l=Ane(o,e);o.store=l;const r=new Nne({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=r;const s=x(()=>(l.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:y}=nae(l),{isHidden:b,renderExpanded:w,setDragVisible:C,isGroup:S,handleMouseLeave:k,handleHeaderFooterMousewheel:T,tableSize:M,emptyBlockStyle:A,resizeProxyVisible:O,bodyWidth:I,resizeState:L,doLayout:z,tableBodyStyles:q,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N}=aae(e,r,l,o),{scrollBarRef:P,scrollTo:B,setScrollLeft:W,setScrollTop:K}=rae(),j=Ko(z,50),G=`${n.namespace.value}-table_${sae++}`;o.tableId=G,o.state={isGroup:S,resizeState:L,doLayout:z,debouncedUpdateLayout:j};const ee=x(()=>e.sumText??t("el.table.sumText")),te=x(()=>e.emptyText??t("el.table.emptyText")),ue=x(()=>{var se;return e.tooltipEffect??((se=a.value)==null?void 0:se.tooltipEffect)}),ne=x(()=>{var se;return e.tooltipOptions??((se=a.value)==null?void 0:se.tooltipOptions)}),de=x(()=>E5(l.states.originColumns.value)[0]);return oae(o),Lt(()=>{j.cancel()}),{ns:n,layout:r,store:l,columns:de,handleHeaderFooterMousewheel:T,handleMouseLeave:k,tableId:G,tableSize:M,isHidden:b,isEmpty:s,renderExpanded:w,resizeProxyVisible:O,resizeState:L,isGroup:S,bodyWidth:I,tableBodyStyles:q,emptyBlockStyle:A,debouncedUpdateLayout:j,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,doLayout:z,sort:m,updateKeyChildren:y,t,setDragVisible:C,context:o,computedSumText:ee,computedEmptyText:te,computedTooltipEffect:ue,computedTooltipOptions:ne,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N,scrollBarRef:P,scrollTo:B,setScrollLeft:W,setScrollTop:K,allowDragLastColumn:e.allowDragLastColumn}}});const uae=["data-prefix"],cae={ref:"hiddenColumns",class:"hidden-columns"};function dae(e,t,n,a,o,l){const r=$t("hColgroup"),s=$t("table-header"),u=$t("table-body"),c=$t("table-footer"),d=$t("el-scrollbar"),f=Ap("mousewheel");return _(),$("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:We(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[E("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[E("div",cae,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?dt((_(),$("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:We(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),E("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[Q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:ae(()=>[E("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:We({width:e.bodyWidth,tableLayout:e.tableLayout})},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ie(s,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),Q(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(_(),ie(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(_(),$("div",{key:0,ref:"emptyBlock",style:We(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[E("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[_t(_e(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(_(),$("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?dt((_(),$("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[E("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:We(e.tableBodyStyles)},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[At,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(_(),$("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),dt(E("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[At,e.resizeProxyVisible]])],46,uae)}var fae=$n(iae,[["render",dae]]);const pae={selection:"table-column--selection",expand:"table__expand-column"},hae={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},vae=e=>pae[e]||"",mae={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return qe(fo,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return qe(fo,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return De(a)?n=t+a:ct(a)&&(n=a(t)),qe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){var c,d;const{ns:l}=n,r=[l.e("expand-icon")];!e.renderExpand&&a&&r.push(l.em("expand-icon","expanded"));const s=function(f){f.stopPropagation(),n.toggleRowExpansion(t)},u=((d=(c=n.states.rowExpandable).value)==null?void 0:d.call(c,t,o))??!0;return u||r.push(l.is("disabled")),qe("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:r,onClick:s},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[qe(ze,null,{default:()=>[qe(Jn)]})]})},sortable:!1,resizable:!1}};function gae({row:e,column:t,$index:n}){var l;const a=t.property,o=a&&Wl(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((l=o==null?void 0:o.toString)==null?void 0:l.call(o))||""}function yae({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[qe("span",{class:o.e("placeholder")})]:null;const l=[],r=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(qe("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Dt(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=Jn;t.loading&&(u=io),l.push(qe("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:s,onClick:r},{default:()=>[qe(ze,{class:o.is("loading",t.loading)},{default:()=>[qe(u)]})]}))}else l.push(qe("span",{class:o.e("placeholder")}));return l}function Xg(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function bae(e,t){const n=ht();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},s=Xg(l,r);Object.keys(s).forEach(u=>{const c=r[u];An(t,c)&&fe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=sv(d)),c==="minWidth"&&u==="realMinWidth"&&(f=b5(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Xg(l,s);Object.keys(u).forEach(d=>{const f=s[d];An(t,f)&&fe(()=>t[f],h=>{n.columnConfig.value[d]=h,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(d=>{An(e.value.props,d)&&fe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&kt(t[d])&&(n.columnConfig.value[d]=f)})});const c=Tl("table");c.value&&An(c.value,"showOverflowTooltip")&&fe(()=>{var d;return(d=c.value)==null?void 0:d.showOverflowTooltip},d=>{n.columnConfig.value.type!=="selection"&&(!kt(t.showOverflowTooltip)||!kt(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function wae(e,t,n){const a=ht(),o=V(""),l=V(!1),r=V(),s=V(),u=ve("table");ma(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),ma(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:r.value,s.value});const c=x(()=>{let C=a.vnode.vParent||a.parent;for(;C&&!C.tableId&&!C.columnId;)C=C.vnode.vParent||C.parent;return C}),d=x(()=>{const{store:C}=a.parent;if(!C)return!1;const{treeData:S}=C.states,k=S.value;return k&&Object.keys(k).length>0}),f=V(sv(e.width)),h=V(b5(e.minWidth)),g=C=>(f.value&&(C.width=f.value),h.value&&(C.minWidth=h.value),!f.value&&h.value&&(C.width=void 0),C.minWidth||(C.minWidth=80),C.realWidth=Number(kt(C.width)?C.minWidth:C.width),C),p=C=>{const S=C.type,k=mae[S]||{};Object.keys(k).forEach(M=>{const A=k[M];M!=="className"&&!kt(A)&&(C[M]=A)});const T=vae(S);if(T){const M=`${i(u.namespace)}-${T}`;C.className=C.className?`${C.className} ${M}`:M}return C},v=C=>{Ve(C)?C.forEach(k=>S(k)):S(C);function S(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=a)}};return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:s,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:p,setColumnRenders:C=>{e.renderHeader?ft("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):C.type!=="selection"&&(C.renderHeader=k=>{if(a.columnConfig.value.label,t.header){const T=t.header(k);if(_5(T))return qe(He,T)}return _t(C.label)}),t["filter-icon"]&&(C.renderFilterIcon=k=>oe(t,"filter-icon",k)),t.expand&&(C.renderExpand=k=>oe(t,"expand",k));let S=C.renderCell;return C.type==="expand"?(C.renderCell=k=>qe("div",{class:"cell"},[S(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(S=S||gae,C.renderCell=k=>{let T=null;if(t.default){const L=t.default(k);T=L.some(z=>z.type!==wn)?L:S(k)}else T=S(k);const{columns:M}=n.value.store.states,A=M.value.findIndex(L=>L.type==="default"),O=yae(k,d.value&&k.cellIndex===A),I={class:"cell",style:{}};return C.showOverflowTooltip&&(I.class=`${I.class} ${i(u.namespace)}-tooltip`,I.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),v(T),qe("div",I,[O,T])}),C},getPropsData:(...C)=>C.reduce((S,k)=>(Ve(k)&&k.forEach(T=>{S[T]=e[T]}),S),{}),getColumnElIndex:(C,S)=>Array.prototype.indexOf.call(C,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var Cae={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let _ae=1;var Sae=D({name:"ElTableColumn",components:{ElCheckbox:fo},props:Cae,setup(e,{slots:t}){const n=ht(),a=Tl("table"),o=V({}),l=x(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:r,registerComplexWatchers:s}=bae(l,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:y,updateColumnOrder:b}=wae(e,t,l),w=f.value;u.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${_ae++}`,Ud(()=>{var O,I;c.value=l.value!==w;const C=e.type||"default",S=e.sortable===""?!0:e.sortable,k=C==="selection"?!1:kt(e.showOverflowTooltip)?w.props.showOverflowTooltip??((O=a.value)==null?void 0:O.showOverflowTooltip):e.showOverflowTooltip,T=kt(e.tooltipFormatter)?w.props.tooltipFormatter??((I=a.value)==null?void 0:I.tooltipFormatter):e.tooltipFormatter,M={...hae[C],id:u.value,type:C,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:k,tooltipFormatter:T,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let A=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);A=bne(M,A),A=Cne(p,h,g)(A),o.value=A,r(),s()}),mt(()=>{var T,M;const C=f.value,S=c.value?(T=C.vnode.el)==null?void 0:T.children:(M=C.refs.hiddenColumns)==null?void 0:M.children,k=()=>m(S||[],n.vnode.el);o.value.getColumnIndex=k,k()>-1&&l.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),Lt(()=>{const C=o.value.getColumnIndex;(C?C():-1)>-1&&l.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in w&&w.columnConfig.value:null,b)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Ve(a))for(const l of a)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===He&&Ve(l.children)&&l.children.forEach(r=>{(r==null?void 0:r.patchFlag)!==1024&&!Ue(r==null?void 0:r.children)&&o.push(r)});return qe("div",o)}catch{return qe("div",[])}}}),M5=Sae;const xae=rt(fae,{TableColumn:M5}),kae=ln(M5);let Po=function(e){return e.ASC="asc",e.DESC="desc",e}({}),Ad=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({}),Eae=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const X2={[Po.ASC]:Po.DESC,[Po.DESC]:Po.ASC},vu=Symbol("placeholder"),O5=String,qu={type:J(Array),required:!0},fv={type:J(Array)},$5={...fv,required:!0},Tae=String,Jg={type:J(Array),default:()=>un([])},vr={type:Number,required:!0},A5={type:J([String,Number,Symbol]),default:"id"},Zg={type:J(Object)},_r=Ce({class:String,columns:qu,columnsStyles:{type:J(Object),required:!0},depth:Number,expandColumnKey:Tae,estimatedRowHeight:{...Or.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:J(Function)},onRowHover:{type:J(Function)},onRowHeightChange:{type:J(Function)},rowData:{type:J(Object),required:!0},rowEventHandlers:{type:J(Object)},rowIndex:{type:Number,required:!0},rowKey:A5,style:{type:J(Object)}}),T0={type:Number,required:!0},pv=Ce({class:String,columns:qu,fixedHeaderData:{type:J(Array)},headerData:{type:J(Array),required:!0},headerHeight:{type:J([Number,Array]),default:50},rowWidth:T0,rowHeight:{type:Number,default:50},height:T0,width:T0}),Hc=Ce({columns:qu,data:$5,fixedData:fv,estimatedRowHeight:_r.estimatedRowHeight,width:vr,height:vr,headerWidth:vr,headerHeight:pv.headerHeight,bodyWidth:vr,rowHeight:vr,cache:Zw.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Or.scrollbarAlwaysOn,scrollbarStartGap:Or.scrollbarStartGap,scrollbarEndGap:Or.scrollbarEndGap,class:O5,style:Zg,containerStyle:Zg,getRowHeight:{type:J(Function),required:!0},rowKey:_r.rowKey,onRowsRendered:{type:J(Function)},onScroll:{type:J(Function)}}),Mae=Ce({cache:Hc.cache,estimatedRowHeight:_r.estimatedRowHeight,rowKey:A5,headerClass:{type:J([String,Function])},headerProps:{type:J([Object,Function])},headerCellProps:{type:J([Object,Function])},headerHeight:pv.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:J([String,Function])},rowProps:{type:J([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:J([Object,Function])},columns:qu,data:$5,dataGetter:{type:J(Function)},fixedData:fv,expandColumnKey:_r.expandColumnKey,expandedRowKeys:Jg,defaultExpandedRowKeys:Jg,class:O5,fixed:Boolean,style:{type:J(Object)},width:vr,height:vr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Or.hScrollbarSize,vScrollbarSize:Or.vScrollbarSize,scrollbarAlwaysOn:t5.alwaysOn,sortBy:{type:J(Object),default:()=>({})},sortState:{type:J(Object),default:void 0},onColumnSort:{type:J(Function)},onExpandedRowsChange:{type:J(Function)},onEndReached:{type:J(Function)},onRowExpand:_r.onRowExpand,onScroll:Hc.onScroll,onRowsRendered:Hc.onRowsRendered,rowEventHandlers:_r.rowEventHandlers}),Oae=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function $ae(e,t,n){const a=x(()=>i(t).map((m,y)=>({...m,key:m.key??m.dataKey??y}))),o=x(()=>i(a).filter(m=>!m.hidden)),l=x(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),r=x(()=>i(o).filter(m=>m.fixed==="right")),s=x(()=>i(o).filter(m=>!m.fixed)),u=x(()=>{const m=[];return i(l).forEach(y=>{m.push({...y,placeholderSign:vu})}),i(s).forEach(y=>{m.push(y)}),i(r).forEach(y=>{m.push({...y,placeholderSign:vu})}),m}),c=x(()=>i(l).length||i(r).length),d=x(()=>i(a).reduce((m,y)=>(m[y.key]=Oae(y,i(n),e.fixed),m),{})),f=x(()=>i(o).reduce((m,y)=>m+y.width,0)),h=m=>i(a).find(y=>y.key===m),g=m=>i(d)[m],p=(m,y)=>{m.width=y};function v(m){var S;const{key:y}=m.currentTarget.dataset;if(!y)return;const{sortState:b,sortBy:w}=e;let C=Po.ASC;Mt(b)?C=X2[b[y]]:C=X2[w.order],(S=e.onColumnSort)==null||S.call(e,{column:h(y),key:y,order:C})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:s,visibleColumns:o,getColumn:h,getColumnStyle:g,updateColumnWidth:p,onColumnSorted:v}}const Aae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=V({scrollLeft:0,scrollTop:0});function r(g){var v,m,y;const{scrollTop:p}=g;(v=t.value)==null||v.scrollTo(g),(m=n.value)==null||m.scrollToTop(p),(y=a.value)==null||y.scrollToTop(p)}function s(g){l.value=g,r(g)}function u(g){l.value.scrollTop=g,r(i(l))}function c(g){var p,v;l.value.scrollLeft=g,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,i(l))}function d(g){var p;s(g),(p=e.onScroll)==null||p.call(e,g)}function f({scrollTop:g}){const{scrollTop:p}=i(l);g!==p&&u(g)}function h(g,p="auto"){var v;(v=t.value)==null||v.scrollToRow(g,p)}return fe(()=>i(l).scrollTop,(g,p)=>{g>p&&o()}),{scrollPos:l,scrollTo:s,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},Rae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const s=ht(),{emit:u}=s,c=qt(!1),d=V(e.defaultExpandedRowKeys||[]),f=V(-1),h=qt(null),g=V({}),p=V({}),v=qt({}),m=qt({}),y=qt({}),b=x(()=>De(e.estimatedRowHeight));function w(O){var I;(I=e.onRowsRendered)==null||I.call(e,O),O.rowCacheEnd>i(f)&&(f.value=O.rowCacheEnd)}function C({hovered:O,rowKey:I}){r.value||o.vnode.el.querySelectorAll(`[rowkey="${String(I)}"]`).forEach(L=>{O?L.classList.add(l.is("hovered")):L.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:I,rowIndex:L,rowKey:z}){var F,N;const q=[...i(d)],U=q.indexOf(z);O?U===-1&&q.push(z):U>-1&&q.splice(U,1),d.value=q,u("update:expandedRowKeys",q),(F=e.onRowExpand)==null||F.call(e,{expanded:O,rowData:I,rowIndex:L,rowKey:z}),(N=e.onExpandedRowsChange)==null||N.call(e,q),o.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(z)}"]`)&&Ie(()=>C({hovered:!0,rowKey:z}))}const k=Ko(()=>{var O,I,L,z;c.value=!0,g.value={...i(g),...i(p)},T(i(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(I=n.value)==null||I.forceUpdate(),(L=a.value)==null||L.forceUpdate(),(z=s.proxy)==null||z.$forceUpdate(),c.value=!1},0);function T(O,I=!1){i(b)&&[t,n,a].forEach(L=>{const z=i(L);z&&z.resetAfterRowIndex(O,I)})}function M(O,I,L){const z=i(h);(z===null||z>L)&&(h.value=L),p.value[O]=I}function A({rowKey:O,height:I,rowIndex:L},z){z?z===Eae.RIGHT?y.value[O]=I:v.value[O]=I:m.value[O]=I;const q=Math.max(...[v,y,m].map(U=>U.value[O]||0));i(g)[O]!==q&&(M(O,q,L),k())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:b,isResetting:c,rowHeights:g,resetAfterIndex:T,onRowExpanded:S,onRowHovered:C,onRowsRendered:w,onRowHeightChange:A}},Nae=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=V({}),l=x(()=>{const s={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let g=u.slice();for(g.forEach(p=>s[p[c]]=0);g.length>0;){const p=g.shift();f.push(p),h.has(p[c])&&Ve(p.children)&&p.children.length>0&&(g=[...p.children,...g],p.children.forEach(v=>s[v[c]]=s[p[c]]+1))}return o.value=s,f}),r=x(()=>{const{data:s,expandColumnKey:u}=e;return u?i(l):s});return fe(r,(s,u)=>{s!==u&&(n.value=-1,a(0,!0))}),{data:r,depthMap:o}},Pae=(e,t)=>e+t,Fc=e=>Ve(e)?e.reduce(Pae,0):e,Hr=(e,t,n={})=>ct(e)?e(t):e??n,Kl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=cn(e[t])}),e),R5=e=>Wt(e)?t=>qe(e,t):e,Iae=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=x(()=>{const{fixed:v,width:m,vScrollbarSize:y}=e,b=m-y;return v?Math.max(Math.round(i(t)),b):b}),r=x(()=>{const{height:v=0,maxHeight:m=0,footerHeight:y,hScrollbarSize:b}=e;if(m>0){const w=i(h),C=i(n),S=i(f)+w+C+b;return Math.min(S,m-y)}return v-y}),s=x(()=>{const{maxHeight:v}=e,m=i(r);if(De(v)&&v>0)return m;const y=i(n)+i(f)+i(h);return Math.min(m,y)}),u=v=>v.width,c=x(()=>Fc(i(a).map(u))),d=x(()=>Fc(i(o).map(u))),f=x(()=>Fc(e.headerHeight)),h=x(()=>{var v;return(((v=e.fixedData)==null?void 0:v.length)||0)*e.rowHeight}),g=x(()=>i(r)-i(f)-i(h)),p=x(()=>{const{style:v={},height:m,width:y}=e;return Kl({...v,height:m,width:y})});return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:x(()=>Kl({height:e.footerHeight})),emptyStyle:x(()=>({top:cn(i(f)),bottom:cn(e.footerHeight),width:cn(e.width)})),rootStyle:p,headerHeight:f}};function Lae(e){const t=V(),n=V(),a=V(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=$ae(e,Bt(e,"columns"),Bt(e,"fixed")),{scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y,scrollPos:b}=Aae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:Z}),w=ve("table-v2"),C=ht(),S=qt(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:M,isResetting:A,rowHeights:O,resetAfterIndex:I,onRowExpanded:L,onRowHeightChange:z,onRowHovered:q,onRowsRendered:U}=Rae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:C,ns:w,isScrolling:S}),{data:F,depthMap:N}=Nae(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:I}),P=x(()=>{const{estimatedRowHeight:le,rowHeight:ce}=e,ge=i(F);return De(le)?Object.values(i(O)).reduce((me,$e)=>me+$e,0):ge.length*ce}),{bodyWidth:B,fixedTableHeight:W,mainTableHeight:K,leftTableWidth:j,rightTableWidth:G,windowHeight:ee,footerHeight:te,emptyStyle:ue,rootStyle:ne,headerHeight:de}=Iae(e,{columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,rowsHeight:P}),se=V(),Y=x(()=>{const le=i(F).length===0;return Ve(e.fixedData)?e.fixedData.length===0&&le:le});function X(le){const{estimatedRowHeight:ce,rowHeight:ge,rowKey:me}=e;return ce?i(O)[i(F)[le][me]]||ce:ge}const H=V(!1);function Z(){const{onEndReached:le}=e;if(!le)return;const{scrollTop:ce}=i(b),ge=i(P),me=ge-(ce+i(ee))+e.hScrollbarSize;!H.value&&i(T)>=0&&ge<=ce+i(K)-i(de)?(H.value=!0,le(me)):H.value=!1}return fe(()=>i(P),()=>H.value=!1),fe(()=>e.expandedRowKeys,le=>k.value=le,{deep:!0}),{columns:o,containerRef:se,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:A,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:F,expandedRowKeys:k,depthMap:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:B,emptyStyle:ue,rootStyle:ne,footerHeight:te,mainTableHeight:K,fixedTableHeight:W,leftTableWidth:j,rightTableWidth:G,showEmpty:Y,getRowHeight:X,onColumnSorted:f,onRowHovered:q,onRowExpanded:L,onRowsRendered:U,onRowHeightChange:z,scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y}}const hv=Symbol("tableV2"),N5="tableV2GridScrollLeft",Vae=D({name:"ElTableV2Header",props:pv,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),o=Ne(N5),l=V(),r=x(()=>Kl({width:e.width,height:e.height})),s=x(()=>Kl({width:e.rowWidth,height:e.height})),u=x(()=>In(i(e.headerHeight))),c=h=>{const g=i(l);Ie(()=>{g!=null&&g.scroll&&g.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:g,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((m,y)=>{var w;const b=Kl({height:v,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:h,columns:g,rowData:m,rowIndex:-(y+1),style:b})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((p,v)=>{var y;const m=Kl({width:"100%",height:p});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:g,headerIndex:v,style:m})})};return ho(()=>{o!=null&&o.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Q("div",{ref:l,class:e.class,style:i(r),role:"rowgroup"},[Q("div",{style:i(s),class:a.e("header")},[f(),d()])])}}}),Bae="ElTableV2Grid",zae=e=>{const t=V(),n=V(),a=V(0),o=x(()=>{const{data:m,rowHeight:y,estimatedRowHeight:b}=e;if(!b)return m.length*y}),l=x(()=>{const{fixedData:m,rowHeight:y}=e;return((m==null?void 0:m.length)||0)*y}),r=x(()=>Fc(e.headerHeight)),s=x(()=>{const{height:m}=e;return Math.max(0,m-i(r)-i(l))}),u=x(()=>i(r)+i(l)>0),c=({data:m,rowIndex:y})=>m[y][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w}){var C;(C=e.onRowsRendered)==null||C.call(e,{rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w})}function f(m,y){var b;(b=n.value)==null||b.resetAfterRowIndex(m,y)}function h(m,y){const b=i(t),w=i(n);Mt(m)?(b==null||b.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,w==null||w.scrollTo(m)):(b==null||b.scrollToLeft(m),a.value=m,w==null||w.scrollTo({scrollLeft:m,scrollTop:y}))}function g(m){var y;(y=i(n))==null||y.scrollTo({scrollTop:m})}function p(m,y){const b=i(n);if(!b)return;const w=a.value;b.scrollToItem(m,0,y),w&&h({scrollLeft:w})}function v(){var m,y;(m=i(n))==null||m.$forceUpdate(),(y=i(t))==null||y.$forceUpdate()}return fe(()=>e.bodyWidth,()=>{var m;De(e.estimatedRowHeight)&&((m=n.value)==null||m.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:s,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:g,scrollToRow:p,scrollLeft:a}},vv=D({name:Bae,props:Hc,setup(e,{slots:t,expose:n}){const{ns:a}=Ne(hv),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:s,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:g,resetAfterRowIndex:p,scrollTo:v,scrollToTop:m,scrollToRow:y,scrollLeft:b}=zae(e);bt(N5,b),wu(async()=>{var S;await Ie();const C=(S=o.value)==null?void 0:S.states.scrollTop;C&&m(Math.round(C)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:y,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:C,columns:S,data:k,fixedData:T,useIsScrolling:M,scrollbarAlwaysOn:A,scrollbarEndGap:O,scrollbarStartGap:I,style:L,rowHeight:z,bodyWidth:q,estimatedRowHeight:U,headerWidth:F,height:N,width:P,getRowHeight:B,onScroll:W}=e,K=De(U),j=K?Fee:Bee,G=i(c);return Q("div",{role:"table",class:[a.e("table"),e.class],style:L},[Q(j,{ref:o,data:k,useIsScrolling:M,itemKey:h,columnCache:0,columnWidth:K?w:q,totalColumn:1,totalRow:k.length,rowCache:C,rowHeight:K?B:z,width:P,height:i(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:I,scrollbarEndGap:O,scrollbarAlwaysOn:A,onScroll:W,onItemRendered:g,perfMode:!1},{default:ee=>{var ue;const te=k[ee.rowIndex];return(ue=t.row)==null?void 0:ue.call(t,{...ee,columns:S,rowData:te})}}),i(s)&&Q(Vae,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:F,rowHeight:z,width:P,height:Math.min(G+i(l),N)},{dynamic:t.header,fixed:t.row})])}}});function Dae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Hae=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Q(vv,pt({ref:n},a),Dae(t)?t:{default:()=>[t]})};function Fae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Kae=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Q(vv,pt({ref:n},a),Fae(t)?t:{default:()=>[t]})};function Wae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const jae=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Q(vv,pt({ref:n},a),Wae(t)?t:{default:()=>[t]})},qae=e=>{const{isScrolling:t}=Ne(hv),n=V(!1),a=V(),o=x(()=>De(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:g,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Ie(()=>{if(u||v!==Number.parseInt(p.height)){const m=d[0],y=(m==null?void 0:m.placeholderSign)===vu;f==null||f({rowKey:h,height:v,rowIndex:g},m&&!y&&m.fixed)}})},r=x(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},g={};return Object.entries(h).forEach(([p,v])=>{ct(v)&&(g[p]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const m=g[p];g[p]=y=>{f({event:y,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m==null||m(y)}}),g}),s=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return mt(()=>{i(o)&&l(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:r,onExpand:s}},Uae=D({name:"ElTableV2TableRow",props:_r,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:s,rowRef:u,onExpand:c}=qae(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:g,rowData:p,rowIndex:v,style:m}=e;let y=d.map((b,w)=>{const C=Ve(p.children)&&p.children.length>0&&b.key===h;return n.cell({column:b,columns:d,columnIndex:w,depth:g,style:f[b.key],rowData:p,rowIndex:v,isScrolling:i(l),expandIconProps:C?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(y=n.row({cells:y.map(b=>Ve(b)&&b.length===1?b[0]:b),style:m,columns:d,depth:g,rowData:p,rowIndex:v,isScrolling:i(l)})),i(r)){const{height:b,...w}=m||{},C=i(s);return Q("div",pt({ref:u,class:e.class,style:C?m:w,role:"row"},a,i(o)),[y])}return Q("div",pt(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[y])}}});function Yae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Gae=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:s,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:g,rowClass:p,rowKey:v,rowEventHandlers:m,ns:y,onRowHovered:b,onRowExpanded:w}=e,C=Hr(p,{columns:n,rowData:c,rowIndex:d},""),S=Hr(g,{columns:n,rowData:c,rowIndex:d}),k=c[v],T=o[k]||0,M=!!l,A=d<0,O=[y.e("row"),C,y.is("expanded",M&&r.includes(k)),y.is("fixed",!T&&A),y.is("customized",!!t.row),{[y.e(`row-depth-${T}`)]:M&&d>=0}],I=u?b:void 0,L={...S,columns:n,columnsStyles:a,class:O,depth:T,expandColumnKey:l,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:d,rowData:c,rowKey:k,rowEventHandlers:m,style:f};return Q(Uae,pt(L,{onRowExpand:w,onMouseenter:U=>{I==null||I({hovered:!0,rowKey:k,event:U,rowData:c,rowIndex:d})},onMouseleave:U=>{I==null||I({hovered:!1,rowKey:k,event:U,rowData:c,rowIndex:d})},rowkey:k}),Yae(t)?t:{default:()=>[t]})},mv=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,o=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"",l=oe(t,"default",e,()=>[o]);return Q("div",{class:e.class,title:o,style:a},[l])};mv.displayName="ElTableV2Cell";mv.inheritAttrs=!1;const P5=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l,ariaLabel:r}=e;return Q("button",pt({onClick:n?()=>a(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class},{type:"button"}),[Q(ze,{size:l,style:o},{default:()=>[Q(Jn,null,null)]})])};P5.inheritAttrs=!1;const J2=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:s,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:g,indentSize:p,iconSize:v,rowKey:m},{slots:y})=>{const b=Kl(u);if(t.placeholderSign===vu)return Q("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:C,dataGetter:S}=t,k=ct(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:s}):_n(r,C??""),T=Hr(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:r}),M={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:s},A=R5(w),O=A?A(M):oe(y,"default",M,()=>[Q(mv,M,null)]),I=[d.e("row-cell"),t.class,t.align===Ad.CENTER&&d.is("align-center"),t.align===Ad.RIGHT&&d.is("align-right")],L=s>=0&&g&&t.key===g,z=s>=0&&c.includes(r[m]);let q;const U=`margin-inline-start: ${a*p}px;`;return L&&(Mt(o)?q=Q(P5,pt(o,{class:[d.e("expand-icon"),d.is("expanded",z)],size:v,expanded:z,ariaLabel:f(z?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:U,expandable:!0}),null):q=Q("div",{style:[U,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Q("div",pt({class:I,style:b},T,{role:"cell"}),[q,O])};J2.inheritAttrs=!1;const Xae=Ce({class:String,columns:qu,columnsStyles:{type:J(Object),required:!0},headerIndex:Number,style:{type:J(Object)}}),Jae=D({name:"ElTableV2HeaderRow",props:Xae,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map((s,u)=>t.cell({columns:n,column:s,columnIndex:u,headerIndex:o,style:a[s.key]}));return t.header&&(r=t.header({cells:r.map(s=>Ve(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),Q("div",{class:e.class,style:l,role:"row"},[r])}}});function Zae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Qae=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:s})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),Hr(o,u,""),r.is("customized",!!s.header)];return Q(Jae,{...Hr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},Zae(s)?s:{default:()=>[s]})},gv=(e,{slots:t})=>oe(t,"default",e,()=>{var n,a;return[Q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});gv.displayName="ElTableV2HeaderCell";gv.inheritAttrs=!1;const eoe=e=>{const{sortOrder:t}=e;return Q("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Q(ze,{size:14},{default:()=>[t===Po.ASC?Q(Hy,null,null):Q(Dy,null,null)]})])},Qg=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:l,onColumnSorted:r}=e,s=Kl(l);if(n.placeholderSign===vu)return Q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},h=R5(u),g=h?h(f):oe(t,"default",f,()=>[Q(gv,f,null)]),{sortBy:p,sortState:v,headerCellProps:m}=e;let y,b,w;if(v){const S=v[n.key];y=!!X2[S],b=y?S:Po.ASC}else y=n.key===p.key,b=y?p.order:Po.ASC;b===Po.ASC?w="ascending":b===Po.DESC?w="descending":w=void 0;const C=[a.e("header-cell"),Hr(c,e,""),n.align===Ad.CENTER&&a.is("align-center"),n.align===Ad.RIGHT&&a.is("align-right"),d&&a.is("sortable")];return Q("div",pt({...Hr(m,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:C,style:s,"data-key":n.key},{role:"columnheader"}),[g,d&&Q(eoe,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:b,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},I5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};I5.displayName="ElTableV2Footer";const L5=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[Q(zw,null,null)]);return Q("div",{class:e.class,style:e.style},[n])};L5.displayName="ElTableV2Empty";const V5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};V5.displayName="ElTableV2Overlay";function bi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const toe=D({name:"ElTableV2",props:Mae,slots:Object,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),{t:o}=xt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:g,depthMap:p,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:y,leftTableRef:b,rightTableRef:w,isDynamic:C,isResetting:S,isScrolling:k,bodyWidth:T,emptyStyle:M,rootStyle:A,footerHeight:O,showEmpty:I,scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U,getRowHeight:F,onColumnSorted:N,onRowHeightChange:P,onRowHovered:B,onRowExpanded:W,onRowsRendered:K,onScroll:j,onVerticalScroll:G}=Lae(e);return n({scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U}),bt(hv,{ns:a,isResetting:S,isScrolling:k}),()=>{const{cache:ee,cellProps:te,estimatedRowHeight:ue,expandColumnKey:ne,fixedData:de,headerHeight:se,headerClass:Y,headerProps:X,headerCellProps:H,sortBy:Z,sortState:le,rowHeight:ce,rowClass:ge,rowEventHandlers:me,rowKey:$e,rowProps:Re,scrollbarAlwaysOn:Ae,indentSize:ye,iconSize:ke,useIsScrolling:be,vScrollbarSize:Pe,width:Be}=e,Qe=i(g),tt={cache:ee,class:a.e("main"),columns:i(u),data:Qe,fixedData:de,estimatedRowHeight:ue,bodyWidth:i(T),headerHeight:se,headerWidth:i(T),height:i(c),mainTableRef:y,rowKey:$e,rowHeight:ce,scrollbarAlwaysOn:Ae,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:Be,getRowHeight:F,onRowsRendered:K,onScroll:j},nt=i(f),Te=i(d),Ye={cache:ee,class:a.e("left"),columns:i(r),data:Qe,fixedData:de,estimatedRowHeight:ue,leftTableRef:b,rowHeight:ce,bodyWidth:nt,headerWidth:nt,headerHeight:se,height:Te,rowKey:$e,scrollbarAlwaysOn:Ae,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:nt,getRowHeight:F,onScroll:G},st=i(h),Ke={cache:ee,class:a.e("right"),columns:i(s),data:Qe,fixedData:de,estimatedRowHeight:ue,rightTableRef:w,rowHeight:ce,bodyWidth:st,headerWidth:st,headerHeight:se,height:Te,rowKey:$e,scrollbarAlwaysOn:Ae,scrollbarStartGap:2,scrollbarEndGap:Pe,width:st,style:`${a.cssVarName("table-scrollbar-size")}: ${Pe}px`,useIsScrolling:be,getRowHeight:F,onScroll:G},et=i(l),gt={ns:a,depthMap:i(p),columnsStyles:et,expandColumnKey:ne,expandedRowKeys:i(v),estimatedRowHeight:ue,hasFixedColumns:i(m),rowProps:Re,rowClass:ge,rowKey:$e,rowEventHandlers:me,onRowHovered:B,onRowExpanded:W,onRowHeightChange:P},he={cellProps:te,expandColumnKey:ne,indentSize:ye,iconSize:ke,rowKey:$e,expandedRowKeys:i(v),ns:a,t:o},Le={ns:a,headerClass:Y,headerProps:X,columnsStyles:et},pe={ns:a,t:o,sortBy:Z,sortState:le,headerCellProps:H,onColumnSorted:N},Ee={row:Xt=>Q(Gae,pt(Xt,gt),{row:t.row,cell:Oe=>{let Fe;return t.cell?Q(J2,pt(Oe,he,{style:et[Oe.column.key]}),bi(Fe=t.cell(Oe))?Fe:{default:()=>[Fe]}):Q(J2,pt(Oe,he,{style:et[Oe.column.key]}),null)}}),header:Xt=>Q(Qae,pt(Xt,Le),{header:t.header,cell:Oe=>{let Fe;return t["header-cell"]?Q(Qg,pt(Oe,pe,{style:et[Oe.column.key]}),bi(Fe=t["header-cell"](Oe))?Fe:{default:()=>[Fe]}):Q(Qg,pt(Oe,pe,{style:et[Oe.column.key]}),null)}})},it=[e.class,a.b(),a.e("root"),a.is("dynamic",i(C))],Pt={class:a.e("footer"),style:i(O)};return Q("div",{class:it,style:i(A)},[Q(Hae,tt,bi(Ee)?Ee:{default:()=>[Ee]}),Q(Kae,Ye,bi(Ee)?Ee:{default:()=>[Ee]}),Q(jae,Ke,bi(Ee)?Ee:{default:()=>[Ee]}),t.footer&&Q(I5,Pt,{default:t.footer}),i(I)&&Q(L5,{class:a.e("empty"),style:i(M)},{default:t.empty}),t.overlay&&Q(V5,{class:a.e("overlay")},{default:t.overlay})])}}}),noe=Ce({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:J(Function)}}),aoe=e=>{const t=V(),n=V(0),a=V(0);let o;return mt(()=>{o=en(t,([l])=>{const{width:r,height:s}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,g=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-g,a.value=s-p-v}).stop}),Lt(()=>{o==null||o()}),fe([n,a],([l,r])=>{var s;(s=e.onResize)==null||s.call(e,{width:l,height:r})}),{sizer:t,width:n,height:a}},ooe=D({name:"ElAutoResizer",props:noe,setup(e,{slots:t}){const n=ve("auto-resizer"),{height:a,width:o,sizer:l}=aoe(e),r={width:"100%",height:"100%"};return()=>{var s;return Q("div",{ref:l,class:n.b(),style:r},[(s=t.default)==null?void 0:s.call(t,{height:a.value,width:o.value})])}}}),loe=rt(toe),roe=rt(ooe),Tf=Symbol("tabsRootContextKey"),soe=Ce({tabs:{type:J(Array),default:()=>un([])},tabRefs:{type:J(Object),default:()=>un({})}}),e4="ElTabBar";var ioe=D({name:e4,__name:"tab-bar",props:soe,setup(e,{expose:t}){const n=e,a=Ne(Tf);a||on(e4,"");const o=ve("tabs"),l=V(),r=V(),s=x(()=>{var g;return kt(a.props.defaultValue)||!!((g=r.value)!=null&&g.transform)}),u=()=>{let g=0,p=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(b=>{if(kt(b.paneName))return!1;const w=n.tabRefs[b.paneName];if(!w)return!1;if(!b.active)return!0;g=w[`offset${l0(y)}`],p=w[`client${l0(v)}`];const C=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),g+=Number.parseFloat(C.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${l0(m)}(${g}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(en(g,c))})};fe(()=>n.tabs,async()=>{await Ie(),c(),f()},{immediate:!0});const h=en(l,()=>c());return Lt(()=>{d.forEach(g=>g.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(g,p)=>s.value?(_(),$("div",{key:0,ref_key:"barRef",ref:l,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:We(r.value)},null,6)):re("v-if",!0)}}),uoe=ioe;const coe=Ce({panes:{type:J(Array),default:()=>un([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),doe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},t4="ElTabNav",foe=D({name:t4,props:coe,emits:doe,setup(e,{expose:t,emit:n}){const a=Ne(Tf);a||on(t4,"");const o=ve("tabs"),l=KS(),r=jS(),s=V(),u=V(),c=V(),d=V({}),f=V(),h=V(!1),g=V(0),p=V(!1),v=V(!0),m=V(!1),y=qt(),b=x(()=>["top","bottom"].includes(a.props.tabPosition)),w=x(()=>b.value?"width":"height"),C=x(()=>{const j=w.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${j}(-${g.value}px)`}}),{width:S,height:k}=Z0(s),{width:T,height:M}=Z0(u,{width:0,height:0},{box:"border-box"}),A=x(()=>b.value?S.value:k.value),O=x(()=>b.value?T.value:M.value),{onWheel:I}=a5({atStartEdge:x(()=>g.value<=0),atEndEdge:x(()=>O.value-g.value<=A.value),layout:x(()=>b.value?"horizontal":"vertical")},j=>{g.value=gr(g.value+j,0,O.value-A.value)}),L=j=>{m.value=!0,I(j),Ua(()=>{m.value=!1})},z=()=>{if(!s.value)return;const j=s.value.getBoundingClientRect()[w.value],G=g.value;G&&(g.value=G>j?G-j:0)},q=()=>{if(!s.value||!u.value)return;const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;jl(j-ee,G)&&(g.value=j-ee>G*2?ee+G:j-G)},U=async()=>{const j=u.value;if(!h.value||!c.value||!s.value||!j)return;await Ie();const G=d.value[e.currentName];if(!G)return;const ee=s.value,te=G.getBoundingClientRect(),ue=ee.getBoundingClientRect(),ne=ue.left+1,de=ue.right-1,se=j.getBoundingClientRect(),Y=b.value?se.width-ue.width:se.height-ue.height,X=g.value;let H=X;b.value?(te.leftde&&(H=X+te.right-de)):(te.topue.bottom&&(H=X+(te.bottom-ue.bottom))),H=Math.max(H,0),g.value=Math.min(H,Y)},F=()=>{var te;if(!u.value||!s.value)return;e.stretch&&((te=f.value)==null||te.update());const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;G0&&(g.value=0))},N=j=>{const G=Kt(j);let ee=0;switch(G){case we.left:case we.up:ee=-1;break;case we.right:case we.down:ee=1;break;default:return}const te=Array.from(j.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ue=te.indexOf(j.target)+ee;ue<0?ue=te.length-1:ue>=te.length&&(ue=0),te[ue].focus({preventScroll:!0}),te[ue].click(),P()},P=()=>{v.value&&(p.value=!0)},B=()=>p.value=!1,W=(j,G)=>{d.value[G]=j},K=async()=>{var j;await Ie(),(j=d.value[e.currentName])==null||j.focus({preventScroll:!0})};return fe(l,j=>{j==="hidden"?v.value=!1:j==="visible"&&setTimeout(()=>v.value=!0,50)}),fe(r,j=>{j?setTimeout(()=>v.value=!0,50):v.value=!1}),en(c,()=>{Ua(F)}),mt(()=>setTimeout(()=>U(),0)),ho(()=>F()),t({scrollToActiveTab:U,removeFocus:B,focusActiveTab:K,tabListRef:u,tabBarRef:f,scheduleRender:()=>Ec(y)}),()=>{const j=h.value?[Q("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:z},[Q(ze,null,{default:()=>[Q(jo,null,null)]})]),Q("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:q},[Q(ze,null,{default:()=>[Q(Jn,null,null)]})])]:null,G=e.panes.map((ee,te)=>{var Z,le;const ue=ee.uid,ne=ee.props.disabled,de=ee.props.name??ee.index??`${te}`,se=!ne&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${te}`;const Y=se?Q(ze,{class:"is-icon-close",onClick:ce=>n("tabRemove",ee,ce)},{default:()=>[Q(Ba,null,null)]}):null,X=((le=(Z=ee.slots).label)==null?void 0:le.call(Z))||ee.props.label,H=!ne&&ee.active?e.tabindex??a.props.tabindex:-1;return Q("div",{ref:ce=>W(ce,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",ne),o.is("closable",se),o.is("focus",p.value)],id:`tab-${de}`,key:`tab-${ue}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:H,onFocus:()=>P(),onBlur:()=>B(),onClick:ce=>{B(),n("tabClick",ee,de,ce)},onKeydown:ce=>{const ge=Kt(ce);se&&(ge===we.delete||ge===we.backspace)&&n("tabRemove",ee,ce)}},[X,Y])});return y.value,Q("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(a.props.tabPosition)]},[j,Q("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?Q("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:C.value,role:"tablist",onKeydown:N,onWheel:L},[e.type?null:Q(uoe,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),G]):null])])}}}),poe=Ce({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:J(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),M0=e=>Ue(e)||De(e),hoe={[at]:e=>M0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>M0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>M0(e),tabAdd:()=>!0},voe=D({name:"ElTabs",props:poe,emits:hoe,setup(e,{emit:t,slots:n,expose:a}){const o=ve("tabs"),l=x(()=>["left","right"].includes(e.tabPosition)),{children:r,addChild:s,removeChild:u,ChildrenSorter:c}=mf(ht(),"ElTabPane"),d=V(),f=V((kt(e.modelValue)?e.defaultValue:e.modelValue)??"0"),h=async(b,w=!1)=>{var C,S,k,T;if(!(f.value===b||kt(b)))try{let M;if(e.beforeLeave){const A=e.beforeLeave(b,f.value);M=A instanceof Promise?await A:A}else M=!0;if(M!==!1){const A=(C=r.value.find(O=>O.paneName===f.value))==null?void 0:C.isFocusInsidePane();f.value=b,w&&(t(at,b),t("tabChange",b)),(k=(S=d.value)==null?void 0:S.removeFocus)==null||k.call(S),A&&((T=d.value)==null||T.focusActiveTab())}}catch{}},g=(b,w,C)=>{b.props.disabled||(t("tabClick",b,C),h(w,!0))},p=(b,w)=>{b.props.disabled||kt(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const w=Kt(b);[we.enter,we.numpadEnter].includes(w)&&v()},y=b=>{const w=b.el.firstChild,C=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;w!==C&&w.before(C)};return fe(()=>e.modelValue,b=>h(b)),fe(f,async()=>{var b;await Ie(),(b=d.value)==null||b.scrollToActiveTab()}),bt(Tf,{props:e,currentName:f,registerPane:s,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return Mu(d.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],w=e.editable||e.addable?Q("div",{class:[o.e("new-tab"),l.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[b?oe(n,"add-icon"):Q(ze,{class:o.is("icon-plus")},{default:()=>[Q(kh,null,null)]})]):null,C=()=>Q(foe,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:g,onTabRemove:p},null),S=Q("div",{class:[o.e("header"),l.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[Q(c,null,{default:C,$stable:!0}),w]),k=Q("div",{class:o.e("content")},[oe(n,"default")]);return Q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[k,S])}}}),moe=Ce({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),goe=["id","aria-hidden","aria-labelledby"],n4="ElTabPane";var yoe=D({name:n4,__name:"tab-pane",props:moe,setup(e){const t=e,n=ht(),a=yn(),o=Ne(Tf);o||on(n4,"usage: ");const l=ve("tab-pane"),r=V(),s=V(),u=x(()=>t.closable??o.props.closable),c=x(()=>o.currentName.value===(t.name??s.value)),d=V(c.value),f=x(()=>t.name??s.value),h=x(()=>!t.lazy||d.value||c.value),g=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};fe(c,v=>{v&&(d.value=!0)});const p=Nt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:s,isClosable:u,isFocusInsidePane:g});return o.registerPane(p),Lt(()=>{o.unregisterPane(p)}),Op(()=>{var v;a.label&&((v=o.nav$.value)==null||v.scheduleRender())}),(v,m)=>h.value?dt((_(),$("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:R(i(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,goe)),[[At,c.value]]):re("v-if",!0)}}),B5=yoe;const boe=rt(voe,{TabPane:B5}),woe=ln(B5),Coe=Ce({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:vo,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var _oe=D({name:"ElText",__name:"text",props:Coe,setup(e){const t=e,n=V(),a=En(),o=ve("text"),l=x(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!kt(t.lineClamp))]),r=()=>{var c,d,f,h,g,p,v;if(_l().title)return;let s=!1;const u=((c=n.value)==null?void 0:c.textContent)||"";if(t.truncated){const m=(d=n.value)==null?void 0:d.offsetWidth,y=(f=n.value)==null?void 0:f.scrollWidth;m&&y&&y>m&&(s=!0)}else if(!kt(t.lineClamp)){const m=(h=n.value)==null?void 0:h.offsetHeight,y=(g=n.value)==null?void 0:g.scrollHeight;m&&y&&y>m&&(s=!0)}s?(p=n.value)==null||p.setAttribute("title",u):(v=n.value)==null||v.removeAttribute("title")};return mt(r),ho(r),(s,u)=>(_(),ie(ut(e.tag),{ref_key:"textRef",ref:n,class:R(l.value),style:We({"-webkit-line-clamp":e.lineClamp})},{default:ae(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),Soe=_oe;const yv=rt(Soe),Z2="00:30",xoe=Ce({format:{type:String,default:"HH:mm"},modelValue:{type:J(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:J(String),default:"light"},clearable:{type:Boolean,default:!0},size:On,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:Z2},minTime:{type:J(String)},maxTime:{type:J(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:J([String,Object]),default:()=>xh},clearIcon:{type:J([String,Object]),default:()=>wo},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},...Gr}),rl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},O0=(e,t)=>{const n=rl(e);if(!n)return-1;const a=rl(t);if(!a)return-1;const o=n.minutes+n.hours*60,l=a.minutes+a.hours*60;return o===l?0:o>l?1:-1},a4=e=>`${e}`.padStart(2,"0"),us=e=>`${a4(e.hours)}:${a4(e.minutes)}`,koe=(e,t)=>{const n=rl(e);if(!n)return"";const a=rl(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,us(o)};var Eoe=D({name:"ElTimeSelect",__name:"time-select",props:xoe,emits:[yt,"blur","focus","clear",at],setup(e,{expose:t}){lt.extend(zh);const{Option:n}=Jl,a=e,o=ve("input"),l=V(),r=dn(),{lang:s}=xt(),u=x(()=>a.modelValue),c=x(()=>{const y=rl(a.start);return y?us(y):null}),d=x(()=>{const y=rl(a.end);return y?us(y):null}),f=x(()=>{const y=rl(a.minTime||"");return y?us(y):null}),h=x(()=>{const y=rl(a.maxTime||"");return y?us(y):null}),g=x(()=>{const y=rl(a.step),b=!y||y.hours<0||y.minutes<0||Number.isNaN(y.hours)||Number.isNaN(y.minutes)||y.hours===0&&y.minutes===0;return b&&ft("ElTimeSelect",`invalid step, fallback to default step (${Z2}).`),b?Z2:us(y)}),p=x(()=>{var w;const y=[],b=(C,S)=>{y.push({value:C,rawValue:S,disabled:O0(S,f.value||"-1:-1")<=0||O0(S,h.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let C=c.value,S;for(;C&&d.value&&O0(C,d.value)<=0;)S=lt(C,"HH:mm").locale(s.value).format(a.format),b(S,C),C=koe(C,g.value);a.includeEndTime&&d.value&&((w=y[y.length-1])==null?void 0:w.rawValue)!==d.value&&b(lt(d.value,"HH:mm").locale(s.value).format(a.format),d.value)}return y});return t({blur:()=>{var y,b;(b=(y=l.value)==null?void 0:y.blur)==null||b.call(y)},focus:()=>{var y,b;(b=(y=l.value)==null?void 0:y.focus)==null||b.call(y)}}),(y,b)=>(_(),ie(i(Jl),{ref_key:"select",ref:l,name:e.name,"model-value":u.value,disabled:i(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":b[0]||(b[0]=w=>y.$emit(i(at),w)),onChange:b[1]||(b[1]=w=>y.$emit(i(yt),w)),onBlur:b[2]||(b[2]=w=>y.$emit("blur",w)),onFocus:b[3]||(b[3]=w=>y.$emit("focus",w)),onClear:b[4]||(b[4]=()=>y.$emit("clear"))},{prefix:ae(()=>[e.prefixIcon?(_(),ie(i(ze),{key:0,class:R(i(o).e("prefix-icon"))},{default:ae(()=>[(_(),ie(ut(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ae(()=>[(_(!0),$(He,null,Ct(p.value,w=>(_(),ie(i(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),Toe=Eoe;const Moe=rt(Toe),z5="timeline",Ooe=Ce({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),$oe=D({name:"ElTimeline",props:Ooe,setup(e,{slots:t}){const n=ve("timeline");bt(z5,{props:e,slots:t});const a=x(()=>[n.b(),n.is(e.mode)]);return()=>{var l;const o=Ra(((l=t.default)==null?void 0:l.call(t))??[]);return qe("ul",{class:a.value},e.reverse?o.reverse():o)}}}),Aoe=Ce({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ft},hollow:Boolean});var Roe=D({name:"ElTimelineItem",__name:"timeline-item",props:Aoe,setup(e){const t=e,{props:n}=Ne(z5),a=ve("timeline-item"),o=x(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),l=x(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(r,s)=>(_(),$("li",{class:R(l.value)},[E("div",{class:R(i(a).e("tail"))},null,2),r.$slots.dot?re("v-if",!0):(_(),$("div",{key:0,class:R(o.value),style:We({backgroundColor:e.color})},[e.icon?(_(),ie(i(ze),{key:0,class:R(i(a).e("icon"))},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),r.$slots.dot?(_(),$("div",{key:1,class:R(i(a).e("dot"))},[oe(r.$slots,"dot")],2)):re("v-if",!0),E("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(_(),$("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},_e(e.timestamp),3)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[oe(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(_(),$("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},_e(e.timestamp),3)):re("v-if",!0)],2)],2))}}),D5=Roe;const Noe=rt($oe,{TimelineItem:D5}),Poe=ln(D5),H5="left-check-change",F5="right-check-change",cs=Ce({data:{type:J(Array),default:()=>[]},titles:{type:J(Array),default:()=>[]},buttonTexts:{type:J(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:J(Function)},leftDefaultChecked:{type:J(Array),default:()=>[]},rightDefaultChecked:{type:J(Array),default:()=>[]},renderContent:{type:J(Function)},modelValue:{type:J(Array),default:()=>[]},format:{type:J(Object),default:()=>({})},filterable:Boolean,props:{type:J(Object),default:()=>un({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Q2=(e,t)=>[e,t].every(Ve)||Ve(e)&&Cn(t),Ioe={[yt]:(e,t,n)=>[e,n].every(Ve)&&["left","right"].includes(t),[at]:e=>Ve(e),[H5]:Q2,[F5]:Q2},Uu=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},Loe=(e,t)=>({onSourceCheckedChange:(o,l)=>{e.leftChecked=o,l&&t(H5,o,l)},onTargetCheckedChange:(o,l)=>{e.rightChecked=o,l&&t(F5,o,l)}}),Voe=e=>{const t=Uu(e),n=x(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:x(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:x(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const l=n.value[o];return l&&a.push(l),a},[]))}},Boe=(e,t,n)=>{const a=Uu(e),o=(s,u,c)=>{n(at,s),n(yt,s,u,c)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=s.indexOf(u);c>-1&&s.splice(c,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);s=e.targetOrder==="unshift"?u.concat(s):s.concat(u),e.targetOrder==="original"&&(s=e.data.filter(c=>s.includes(c[a.value.key])).map(c=>c[a.value.key])),o(s,"right",t.leftChecked)}}},ep="checked-change",zoe=Ce({data:cs.data,optionRender:{type:J(Function)},placeholder:String,title:String,filterable:Boolean,format:cs.format,filterMethod:cs.filterMethod,defaultChecked:cs.leftDefaultChecked,props:cs.props}),Doe={[ep]:Q2},Hoe=(e,t,n)=>{const a=Uu(e),o=x(()=>e.data.filter(d=>ct(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=x(()=>o.value.filter(d=>!d[a.value.disabled])),r=x(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:g}=e.format;return h&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),s=x(()=>{const d=t.checked.length;return d>0&&d{const d=l.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[a.value.key]):[]};return fe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(ep,d,d.concat(f).filter(h=>!d.includes(h)||!f.includes(h))):(n(ep,d),t.checkChangeByUser=!0)}),fe(l,()=>{u()}),fe(()=>e.data,()=>{const d=[],f=o.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),fe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],g=l.value.map(p=>p[a.value.key]);d.forEach(p=>{g.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:s,updateAllChecked:u,handleAllCheckedChange:c}};var Foe=D({name:"ElTransferPanel",__name:"transfer-panel",props:zoe,emits:Doe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),r=({option:C})=>C,{t:s}=xt(),u=ve("transfer"),c=Nt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Uu(a),{filteredData:f,checkedSummary:h,isIndeterminate:g,handleAllCheckedChange:p}=Hoe(a,c,o),v=x(()=>!ha(c.query)&&ha(f.value)),m=x(()=>!ha(l.default()[0].children)),{checked:y,allChecked:b,query:w}=Bn(c);return t({query:w}),(C,S)=>(_(),$("div",{class:R(i(u).b("panel"))},[E("p",{class:R(i(u).be("panel","header"))},[Q(i(fo),{modelValue:i(b),"onUpdate:modelValue":S[0]||(S[0]=k=>Gt(b)?b.value=k:null),indeterminate:i(g),"validate-event":!1,onChange:i(p)},{default:ae(()=>[E("span",{class:R(i(u).be("panel","header-title"))},_e(e.title),3),E("span",{class:R(i(u).be("panel","header-count"))},_e(i(h)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),E("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(_(),ie(i(jn),{key:0,modelValue:i(w),"onUpdate:modelValue":S[1]||(S[1]=k=>Gt(w)?w.value=k:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(zy),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),dt(Q(i(Kh),{modelValue:i(y),"onUpdate:modelValue":S[2]||(S[2]=k=>Gt(y)?y.value=k:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ae(()=>[(_(!0),$(He,null,Ct(i(f),k=>(_(),ie(i(fo),{key:k[i(d).key],class:R(i(u).be("panel","item")),value:k[i(d).key],disabled:k[i(d).disabled],"validate-event":!1},{default:ae(()=>{var T;return[Q(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[At,!v.value&&!i(ha)(e.data)]]),dt(E("div",{class:R(i(u).be("panel","empty"))},[oe(C.$slots,"empty",{},()=>[_t(_e(v.value?i(s)("el.transfer.noMatch"):i(s)("el.transfer.noData")),1)])],2),[[At,v.value||i(ha)(e.data)]])],2),m.value?(_(),$("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(C.$slots,"default")],2)):re("v-if",!0)],2))}}),o4=Foe;const Koe={key:0},Woe={key:0};var joe=D({name:"ElTransfer",__name:"transfer",props:cs,emits:Ioe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),{t:r}=xt(),s=ve("transfer"),{formItem:u}=Kn(),c=Nt({leftChecked:[],rightChecked:[]}),d=Uu(a),{sourceData:f,targetData:h}=Voe(a),{onSourceCheckedChange:g,onTargetCheckedChange:p}=Loe(c,o),{addToLeft:v,addToRight:m}=Boe(a,c,o),y=V(),b=V(),w=A=>{switch(A){case"left":y.value.query="";break;case"right":b.value.query="";break}},C=x(()=>a.buttonTexts.length===2),S=x(()=>a.titles[0]||r("el.transfer.titles.0")),k=x(()=>a.titles[1]||r("el.transfer.titles.1")),T=x(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));fe(()=>a.modelValue,()=>{var A;a.validateEvent&&((A=u==null?void 0:u.validate)==null||A.call(u,"change").catch(O=>ft(O)))});const M=x(()=>A=>{var I;if(a.renderContent)return a.renderContent(qe,A);const O=(((I=l.default)==null?void 0:I.call(l,{option:A}))||[]).filter(L=>L.type!==wn);return O.length?O:qe("span",A[d.value.label]||A[d.value.key])});return t({clearQuery:w,leftPanel:y,rightPanel:b}),(A,O)=>(_(),$("div",{class:R(i(s).b())},[Q(o4,{ref_key:"leftPanel",ref:y,data:i(f),"option-render":M.value,placeholder:T.value,title:S.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ae(()=>[oe(A.$slots,"left-empty")]),default:ae(()=>[oe(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),E("div",{class:R(i(s).e("buttons"))},[Q(i(Ln),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",C.value)]),disabled:i(ha)(c.rightChecked),onClick:i(v)},{default:ae(()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1}),i(kt)(e.buttonTexts[0])?re("v-if",!0):(_(),$("span",Koe,_e(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Q(i(Ln),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",C.value)]),disabled:i(ha)(c.leftChecked),onClick:i(m)},{default:ae(()=>[i(kt)(e.buttonTexts[1])?re("v-if",!0):(_(),$("span",Woe,_e(e.buttonTexts[1]),1)),Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Q(o4,{ref_key:"rightPanel",ref:b,data:i(h),"option-render":M.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(p)},{empty:ae(()=>[oe(A.$slots,"right-empty")]),default:ae(()=>[oe(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),qoe=joe;const Uoe=rt(qoe),bv="RootTree",K5="NodeInstance",l4="TreeNodeMap",W5=Ce({data:{type:J(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:J(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:J(Function)},allowDrop:{type:J(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ft}}),Yoe={"check-change":(e,t,n)=>e&&Dt(t)&&Dt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},Ss="$treeNodeId",r4=function(e,t){!t||t[Ss]||Object.defineProperty(t,Ss,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},wv=(e,t)=>t==null?void 0:t[e||Ss],tp=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},j5=e=>{let t=!0,n=!0,a=!0,o=!0;for(let l=0,r=e.length;l{n.canFocus=t,np(n.childNodes,t)})};let Goe=0;var ap=class Kc{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Goe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)An(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var l;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=Cc(this,"isLeaf");Dt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ve(this.data)||r4(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!Cn(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((l=this.parent)==null?void 0:l.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ve(t)||r4(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ve(this.data)?n=this.data:n=Cc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Kc)){if(!a){const o=this.getChildren(!0);o!=null&&o.includes(t.data)||(kt(n)||n<0?o==null||o.push(t.data):o==null||o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Nt(new Kc(t)),t instanceof Kc&&t.initialize()}t.level=this.level+1,kt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),np(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{Ve(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ei(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,np(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const s=this.childNodes;for(let f=0,h=s.length;f{r(),Ei(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||a||Ei(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),kt(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),a={},o=[];t.forEach((l,r)=>{const s=l[Ss];s&&n.some(u=>(u==null?void 0:u[Ss])===s)?a[s]={index:r,data:l}:o.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{a[l==null?void 0:l[Ss]]||this.removeChildByData(l)}),o.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||Ei(this)}},Xoe=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)An(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new ap({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},Yt)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[r,s]of l.entries())s.visible=!!(t!=null&&t.call(s,e,s.data,s)),r%80===0&&r>0&&await Ie(),await a(s);if(!o.visible&&l.length){let r=!0;r=!l.some(s=>s.visible),o.root?o.root.visible=r===!1:o.visible=r===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof ap)return e;const t=Mt(e)?wv(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertBefore({data:e},n)}insertAfter(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=Sa(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!Cn(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;Cn(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||t&&l.indeterminate)&&(!e||e&&l.isLeaf)&&n.push(l.data),a(l)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)An(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const l=a[o];this.remove(l.data)}for(let o=0,l=t.length;os.level-u.level),o=Object.create(null),l=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));const r=s=>{s.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&r(u)})};for(let s=0,u=a.length;s{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),h.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var o;const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(e,t=!0){var a;if(this.currentNodeKey=e,Sa(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0)))}};function q5(e){const t=Ne(l4,null);let n={treeNodeExpand:a=>{var o;e.node!==a&&((o=e.node)==null||o.collapse())},children:new Set};return t&&t.children.add(n),Lt(()=>{t&&t.children.delete(n),n=null}),bt(l4,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const U5=Symbol("dragEvents");function Joe({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=ve("tree"),r=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return bt(U5,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(ct(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,g=r.value.dropNode;g&&g.node.id!==h.node.id&&sa(g.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,m=!0,y=!0,b=!0;ct(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),b=m=e.allowDrop(p.node,h.node,"inner"),y=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(g==null?void 0:g.node.id)!==h.node.id&&(g&&t.emit("node-drag-leave",p.node,g.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||m||y?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(y=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(m=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,m=!1,y=!1);const w=h.$el,C=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const M=v?m?.25:y?.45:1:Number.NEGATIVE_INFINITY,A=y?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const I=d.clientY-C.top;IC.height*A?T="after":m?T="inner":T="none";const L=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),z=a.value;T==="before"?O=L.top-S.top+k:T==="after"&&(O=L.bottom-S.top+k),z.style.top=`${O}px`,z.style.left=`${L.right-S.left}px`,T==="inner"?Ka(w,l.is("drop-inner")):sa(w,l.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||b,r.value.dropType=T,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var p,v;const{draggingNode:f,dropType:h,dropNode:g}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f!=null&&f.node.data&&g){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?(p=g.node.parent)==null||p.insertBefore(m,g.node):h==="after"?(v=g.node.parent)==null||v.insertAfter(m,g.node):h==="inner"&&g.node.insertChild(m),h!=="none"&&(o.value.registerNode(m),o.value.key&&f.node.eachNode(y=>{var b;(b=o.value.nodesMap[y.data[o.value.key]])==null||b.setChecked(y.checked,!o.value.checkStrictly)})),sa(g.$el,l.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,h,d),h!=="none"&&t.emit("node-drop",f.node,g.node,h,d)}f&&!g&&t.emit("node-drag-end",f.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var Zoe=D({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ve("tree"),n=Ne(K5),a=Ne(bv);return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(qe,{_self:n,node:o,data:l,store:r}):oe(a.ctx.slots,"default",{node:o,data:l},()=>[qe(yv,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),Qoe=Zoe,ele=D({name:"ElTreeNode",components:{ElCollapseTransition:Sf,ElCheckbox:fo,NodeContent:Qoe,ElIcon:ze,Loading:io},props:{node:{type:ap,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ve("tree"),{broadcastExpanded:a}=q5(e),o=Ne(bv),l=V(!1),r=V(!1),s=V(),u=V(),c=V(),d=Ne(U5),f=ht();bt(K5,f),o||ft("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const h=o.props.props.children||"children";fe(()=>{var O;const A=(O=e.node.data)==null?void 0:O[h];return A&&[...A]},()=>{e.node.updateChildren()}),fe(()=>e.node.indeterminate,A=>{v(e.node.checked,A)}),fe(()=>e.node.checked,A=>{v(A,e.node.indeterminate)}),fe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),fe(()=>e.node.expanded,A=>{Ie(()=>l.value=A),A&&(r.value=!0)});const g=A=>o.props.nodeKey?wv(o.props.nodeKey,A.data):A.id,p=A=>{const O=e.props.class;if(!O)return{};let I;if(ct(O)){const{data:L}=A;I=O(L,A)}else I=O;return Ue(I)?{[I]:!0}:I},v=(A,O)=>{(s.value!==A||u.value!==O)&&o.ctx.emit("check-change",e.node.data,A,O),s.value=A,u.value=O},m=A=>{tp(o.store,o.ctx.emit,()=>{var O;if((O=o==null?void 0:o.props)!=null&&O.nodeKey){const I=g(e.node);o.store.value.setCurrentNodeKey(I)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&b(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,A)},y=A=>{var O;(O=o.instance.vnode.props)!=null&&O.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),o.ctx.emit("node-contextmenu",A,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=A=>{const O=o==null?void 0:o.props.checkStrictly,I=e.node.childNodes;!O&&I.length&&(A=I.some(L=>!L.isEffectivelyChecked)),e.node.setChecked(A,!O),Ie(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:l,childNodeRendered:r,oldChecked:s,oldIndeterminate:u,getNodeKey:g,getNodeClass:p,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:w,handleChildNodeExpand:(A,O,I)=>{a(O),o.ctx.emit("node-expand",A,O,I)},handleDragStart:A=>{o.props.draggable&&d.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:A,treeNode:{$el:c.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{o.props.draggable&&d.treeNodeDragEnd(A)},CaretRight:Sh}}});const tle=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],nle=["aria-expanded"];function ale(e,t,n,a,o,l){const r=$t("el-icon"),s=$t("el-checkbox"),u=$t("loading"),c=$t("node-content"),d=$t("el-tree-node"),f=$t("el-collapse-transition");return dt((_(),$("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Xe((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=Xe((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=Xe((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=Xe((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=Xe((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[E("div",{class:R(e.ns.be("node","content")),style:We({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ie(r,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Xe(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(_(),ie(ut(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(_(),ie(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Xe(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(_(),ie(r,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ae(()=>[Q(u)]),_:1},8,["class"])):re("v-if",!0),Q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Q(f,null,{default:ae(()=>[!e.renderAfterExpand||e.childNodeRendered?dt((_(),$("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Xe(()=>{},["stop"]))},[(_(!0),$(He,null,Ct(e.node.childNodes,h=>(_(),ie(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,nle)),[[At,e.expanded]]):re("v-if",!0)]),_:1})],42,tle)),[[At,e.node.visible]])}var ole=$n(ele,[["render",ale]]);function lle({el$:e},t){const n=ve("tree");mt(()=>{l()}),ho(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(r,s){var c,d;const u=t.value.getNode(r[s].dataset.key);return u.canFocus&&u.visible&&(((c=u.parent)==null?void 0:c.expanded)||((d=u.parent)==null?void 0:d.level)===0)}Vt(e,"keydown",r=>{const s=r.target;if(!s.className.includes(n.b("node")))return;const u=Kt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(s);let f;if([we.up,we.down].includes(u)){if(r.preventDefault(),u===we.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[we.left,we.right].includes(u)&&(r.preventDefault(),s.click());const h=s.querySelector('[type="checkbox"]');[we.enter,we.numpadEnter,we.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var u;if(!e.value)return;const r=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const s=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(s.length){s[0].setAttribute("tabindex","0");return}(u=r[0])==null||u.setAttribute("tabindex","0")}}var rle=D({name:"ElTree",components:{ElTreeNode:ole},props:W5,emits:Yoe,setup(e,t){const{t:n}=xt(),a=ve("tree"),o=V(new Xoe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const l=V(o.value.root),r=V(null),s=V(null),u=V(null),{broadcastExpanded:c}=q5(e),{dragState:d}=Joe({props:e,ctx:t,el$:s,dropIndicator$:u,store:o});lle({el$:s},o);const f=ht(),h=x(()=>{let W=f==null?void 0:f.parent;for(;W;){if(W.type.name==="ElTreeSelect")return!0;W=W.parent}return!1}),g=x(()=>{const{childNodes:W}=l.value;return(!W||W.length===0||W.every(({visible:K})=>!K))&&!h.value});fe(()=>e.currentNodeKey,W=>{o.value.setCurrentNodeKey(W??null)}),fe(()=>e.defaultCheckedKeys,(W,K)=>{sn(W,K)||o.value.setDefaultCheckedKey(W??[])}),fe(()=>e.defaultExpandedKeys,W=>{o.value.setDefaultExpandedKeys(W??[])}),fe(()=>e.data,W=>{o.value.setData(W)},{deep:!0}),fe(()=>e.checkStrictly,W=>{o.value.checkStrictly=W});const p=W=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(W)},v=W=>e.nodeKey?wv(e.nodeKey,W.data):W.id,m=W=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${W}`)},y=W=>{m("getNodePath");const K=o.value.getNode(W);if(!K)return[];const j=[K.data];let G=K.parent;for(;G&&G!==l.value;)j.push(G.data),G=G.parent;return j.reverse()},b=(W,K)=>o.value.getCheckedNodes(W,K),w=W=>o.value.getCheckedKeys(W),C=()=>{const W=o.value.getCurrentNode();return W?W.data:null},S=()=>{m("getCurrentKey");const W=C();return W?W[e.nodeKey]:null},k=(W,K)=>{m("setCheckedNodes"),o.value.setCheckedNodes(W,K)},T=(W,K)=>{m("setCheckedKeys"),o.value.setCheckedKeys(W,K)},M=(W,K,j)=>{o.value.setChecked(W,K,j)},A=()=>o.value.getHalfCheckedNodes(),O=()=>o.value.getHalfCheckedKeys(),I=(W,K=!0)=>{m("setCurrentNode"),tp(o,t.emit,()=>{c(W),o.value.setUserCurrentNode(W,K)})},L=(W=null,K=!0)=>{m("setCurrentKey"),tp(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(W,K)})},z=W=>o.value.getNode(W),q=W=>{o.value.remove(W)},U=(W,K)=>{o.value.append(W,K)},F=(W,K)=>{o.value.insertBefore(W,K)},N=(W,K)=>{o.value.insertAfter(W,K)},P=(W,K,j)=>{c(K),t.emit("node-expand",W,K,j)},B=(W,K)=>{m("updateKeyChildren"),o.value.updateChildren(W,K)};return bt(bv,{ctx:t,props:e,store:o,root:l,currentNode:r,instance:f}),bt(qo,void 0),{ns:a,store:o,root:l,currentNode:r,dragState:d,el$:s,dropIndicator$:u,isEmpty:g,filter:p,getNodeKey:v,getNodePath:y,getCheckedNodes:b,getCheckedKeys:w,getCurrentNode:C,getCurrentKey:S,setCheckedNodes:k,setCheckedKeys:T,setChecked:M,getHalfCheckedNodes:A,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:L,t:n,getNode:z,remove:q,append:U,insertBefore:F,insertAfter:N,handleNodeExpand:P,updateKeyChildren:B}}});function sle(e,t,n,a,o,l){const r=$t("el-tree-node");return _(),$("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),$(He,null,Ct(e.root.childNodes,s=>(_(),ie(r,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),$("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[E("span",{class:R(e.ns.e("empty-text"))},_e(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),dt(E("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[At,e.dragState.showDropIndicator]])],2)}var ile=$n(rle,[["render",sle]]);const Cv=rt(ile),ule=(e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=ve("tree-select");fe(()=>e.data,()=>{e.filterable&&Ie(()=>{var u,c;(c=o.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const s=u=>{var d,f;const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))s([c.childNodes.at(-1)]);else{(f=(d=o.value.el$)==null?void 0:d.querySelector(`[data-key="${u.at(-1).key}"]`))==null||f.focus({preventScroll:!0});return}};return mt(()=>{Vt(()=>{var u;return(u=a.value)==null?void 0:u.$el},"keydown",async u=>{const c=Kt(u),{dropdownMenuVisible:d}=a.value;[we.down,we.up].includes(c)&&d&&(await Ie(),setTimeout(()=>{var f,h,g;if(we.up===c){const p=o.value.store.root.childNodes;s(p);return}(g=(h=(f=a.value.optionsArray[a.value.states.hoveringIndex].$el)==null?void 0:f.parentNode)==null?void 0:h.parentNode)==null||g.focus({preventScroll:!0})}))},{capture:!0})}),{...vl(Bn(e),Object.keys(Jl.props)),...t,class:x(()=>t.class),style:x(()=>t.style),"onUpdate:modelValue":u=>n(at,u),valueKey:l,popperClass:x(()=>{const u=[r.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=o.value)==null||c.filter(u)}}},cle=D({extends:gd,setup(e,t){const n=gd.setup(e,t);delete n.selectOptionClick;const a=ht().proxy;return Ie(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),fe(()=>t.attrs.visible,o=>{Ie(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function op(e){return e||e===0}function _v(e){return Ve(e)&&e.length}function ls(e){return Ve(e)?e:op(e)?[e]:[]}function Wc(e,t,n,a,o){for(let l=0;l{fe([()=>e.modelValue,l],()=>{e.showCheckbox&&Ie(()=>{const p=l.value;p&&!sn(p.getCheckedKeys(),ls(e.modelValue))&&p.setCheckedKeys(ls(e.modelValue))})},{immediate:!0,deep:!0});const s=x(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(p,v)=>{var y;const m=s.value[p];return ct(m)?m(v,(y=l.value)==null?void 0:y.getNode(u("value",v))):v[m]},c=ls(e.modelValue).map(p=>Wc(e.data||[],v=>u("value",v)===p,v=>u("children",v),(v,m,y,b)=>b&&u("value",b))).filter(p=>op(p)),d=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return jc(e.data.concat(e.cacheData),v=>{const m=u("value",v);p.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),p}),f=()=>{var p;return(p=l.value)==null?void 0:p.getCheckedKeys().filter(v=>{var y;const m=(y=l.value)==null?void 0:y.getNode(v);return!Cn(m)&&ha(m.childNodes)})},h=p=>{sn(e.modelValue,p)||a(yt,p)};function g(p){a(at,p),h(p)}return{...vl(Bn(e),Object.keys(Cv.props)),...t,nodeKey:r,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:v,data:m,store:y})=>p(cle,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(p,{node:v,data:m,store:y}):n.default?()=>n.default({node:v,data:m,store:y}):void 0),filterNodeMethod:(p,v,m)=>e.filterNodeMethod?e.filterNodeMethod(p,v,m):p?new RegExp(oh(p),"i").test(u("label",v)||""):!0,onNodeClick:(p,v,m)=>{var y,b,w;if((y=t.onNodeClick)==null||y.call(t,p,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",p)){const C=(b=o.value)==null?void 0:b.states.options.get(u("value",p));(w=o.value)==null||w.handleOptionSelect(C)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,v)=>{var S;if(!e.showCheckbox)return;const m=u("value",p),y={};jc([l.value.store.root],k=>y[k.key]=k,k=>k.childNodes);const b=v.checkedKeys,w=e.multiple?ls(e.modelValue).filter(k=>!(k in y)&&!b.includes(k)):[],C=w.concat(b);if(e.checkStrictly)g(e.multiple?C:C.includes(m)?m:void 0);else if(e.multiple){const k=f();g(w.concat(k))}else{const k=Wc([p],A=>!_v(u("children",A))&&!u("disabled",A),A=>u("children",A)),T=k?u("value",k):void 0,M=op(e.modelValue)&&!!Wc([p],A=>u("value",A)===e.modelValue,A=>u("children",A));g(T===e.modelValue||M?void 0:T)}Ie(()=>{var T;const k=ls(e.modelValue);l.value.setCheckedKeys(k),(T=t.onCheck)==null||T.call(t,p,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(S=o.value)==null||S.focus()},onNodeExpand:(p,v,m)=>{var y;(y=t.onNodeExpand)==null||y.call(t,p,v,m),Ie(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=l.value.getCheckedKeys();jc([l.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const C=ls(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(C.concat(S))}})},cacheOptions:d}};var fle=D({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ne(Ku);return fe(()=>e.data,()=>{var a;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const n=((a=t.selectRef)==null?void 0:a.querySelectorAll("input"))||[];Rt&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),ple=D({name:"ElTreeSelect",inheritAttrs:!1,props:{...Rb,...W5,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:l}=t,r={...l,onChange:void 0},s=V(),u=V(),c=x(()=>e.nodeKey||e.valueKey||"value"),d=ule(e,{attrs:l,emit:o},{select:s,tree:u,key:c}),{cacheOptions:f,...h}=dle(e,{attrs:r,slots:n,emit:o},{select:s,tree:u,key:c}),g=Nt({});return a(g),mt(()=>{Object.assign(g,{...vl(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...vl(s.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:s.value})}),()=>qe(Jl,Nt({...d,ref:p=>s.value=p}),{...n,default:()=>[qe(fle,{data:f.value}),qe(Cv,Nt({...h,ref:p=>u.value=p}))]})}}),hle=ple;const vle=rt(hle),Sv=Symbol(),mle={key:-1,level:-1,data:{}};let sl=function(e){return e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e}({}),s4=function(e){return e.ADD="add",e.DELETE="delete",e}({});const Y5={type:Number,default:26},gle=Ce({data:{type:J(Array),default:()=>un([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:J(Object),default:()=>un({children:sl.CHILDREN,label:sl.LABEL,disabled:sl.DISABLED,value:sl.KEY,class:sl.CLASS})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:J(Array),default:()=>un([])},checkStrictly:Boolean,defaultExpandedKeys:{type:J(Array),default:()=>un([])},indent:{type:Number,default:16},itemSize:Y5,icon:{type:Ft},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:J([String,Number])},accordion:Boolean,filterMethod:{type:J(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),yle=Ce({node:{type:J(Object),default:()=>un(mle)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:Y5}),ble=Ce({node:{type:J(Object),required:!0}}),G5="node-click",X5="node-drop",J5="node-expand",Z5="node-collapse",Q5="current-change",e9="check",t9="check-change",n9="node-contextmenu",wle={[G5]:(e,t,n)=>e&&t&&n,[X5]:(e,t,n)=>e&&t&&n,[J5]:(e,t)=>e&&t,[Z5]:(e,t)=>e&&t,[Q5]:(e,t)=>e&&t,[e9]:(e,t)=>e&&t,[t9]:(e,t)=>e&&Dt(t),[n9]:(e,t,n)=>e&&t&&n},Cle={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Dt(t)};function _le(e,t){const n=V(new Set),a=V(new Set),{emit:o}=ht();fe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ie(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:C}=t.value,S=n.value,k=new Set;for(let T=C;T>=1;--T){const M=w.get(T);M&&M.forEach(A=>{const O=A.children;let I=!A.isLeaf||A.disabled||S.has(A.key);if(O){let L=!0,z=!1;for(const q of O){const U=q.key;if(q.isEffectivelyChecked||(I=!1),S.has(U))z=!0;else if(k.has(U)){L=!1,z=!0;break}else L=!1}L?S.add(A.key):z?(k.add(A.key),S.delete(A.key)):(S.delete(A.key),k.delete(A.key))}A.isEffectivelyChecked=I})}a.value=k},r=w=>n.value.has(w.key),s=w=>a.value.has(w.key),u=(w,C,S=!0,k=!0)=>{const T=n.value,M=w.children;!e.checkStrictly&&S&&(M!=null&&M.length)&&(C=M.some(O=>!O.isEffectivelyChecked));const A=(O,I)=>{T[I?s4.ADD:s4.DELETE](O.key);const L=O.children;!e.checkStrictly&&L&&L.forEach(z=>{(!z.disabled||z.children)&&A(z,I)})};A(w,C),k&&l(),S&&c(w,C)},c=(w,C)=>{const{checkedNodes:S,checkedKeys:k}=p(),{halfCheckedNodes:T,halfCheckedKeys:M}=v();o(e9,w.data,{checkedKeys:k,checkedNodes:S,halfCheckedKeys:M,halfCheckedNodes:T}),o(t9,w.data,C)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function p(w=!1){const C=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const M=k.get(T);M&&(!w||w&&M.isLeaf)&&(S.push(T),C.push(M.data))})}return{checkedKeys:S,checkedNodes:C}}function v(){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(k=>{const T=S.get(k);T&&(C.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:C}}function m(w){n.value.clear(),a.value.clear(),Ie(()=>{b(w)})}function y(w,C){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,C,!1)}}function b(w){if(t!=null&&t.value){const{treeNodeMap:C}=t.value;if(e.showCheckbox&&C&&(w==null?void 0:w.length)>0){for(const S of w){const k=C.get(S);k&&!r(k)&&u(k,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:g,setChecked:y,setCheckedKeys:m}}function Sle(e,t){const n=V(new Set([])),a=V(new Set([])),o=x(()=>ct(e.filterMethod));function l(s){var v;if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],h=((v=t.value)==null?void 0:v.treeNodes)||[],g=e.filterMethod;d.clear();function p(m){m.forEach(y=>{f.push(y),g!=null&&g(s,y.data,y)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(y.expanded=!1,y.isLeaf&&d.add(y.key));const b=y.children;if(b&&p(b),!y.isLeaf){if(!u.has(y.key))d.add(y.key);else if(b){let w=!0;for(const C of b)if(!d.has(C.key)){w=!1;break}w?c.add(y.key):c.delete(y.key)}}f.pop()})}return p(h),u}function r(s){return a.value.has(s.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function xle(e,t){const n=V(new Set),a=V(),o=qt(),l=V(),{isIndeterminate:r,isChecked:s,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p}=_le(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=Sle(e,o),b=x(()=>{var X;return((X=e.props)==null?void 0:X.value)||sl.KEY}),w=x(()=>{var X;return((X=e.props)==null?void 0:X.children)||sl.CHILDREN}),C=x(()=>{var X;return((X=e.props)==null?void 0:X.disabled)||sl.DISABLED}),S=x(()=>{var X;return((X=e.props)==null?void 0:X.label)||sl.LABEL}),k=x(()=>{var ge;const X=n.value,H=m.value,Z=[],le=((ge=o.value)==null?void 0:ge.treeNodes)||[],ce=[];for(let me=le.length-1;me>=0;--me)ce.push(le[me]);for(;ce.length;){const me=ce.pop();if(!H.has(me.key)&&(Z.push(me),me.children&&X.has(me.key)))for(let $e=me.children.length-1;$e>=0;--$e)ce.push(me.children[$e])}return Z}),T=x(()=>k.value.length>0);function M(X){const H=new Map,Z=new Map;let le=1;function ce(me,$e=1,Re=void 0){var ye;const Ae=[];for(const ke of me){const be=I(ke),Pe={level:$e,key:be,data:ke};Pe.label=z(ke),Pe.parent=Re;const Be=O(ke);Pe.disabled=L(ke),Pe.isLeaf=!Be||Be.length===0,Pe.expanded=n.value.has(be),Be&&Be.length&&(Pe.children=ce(Be,$e+1,Pe)),Ae.push(Pe),H.set(be,Pe),Z.has($e)||Z.set($e,[]),(ye=Z.get($e))==null||ye.push(Pe)}return $e>le&&(le=$e),Ae}const ge=ce(X);return{treeNodeMap:H,levelTreeNodeMap:Z,maxLevel:le,treeNodes:ge}}function A(X){const H=v(X);H&&(n.value=H)}function O(X){return X[w.value]}function I(X){return X?X[b.value]:""}function L(X){return X[C.value]}function z(X){return X[S.value]}function q(X){n.value.has(X.key)?K(X):W(X)}function U(X){const H=new Set,Z=o.value.treeNodeMap;n.value.forEach(le=>{const ce=Z.get(le);ce&&(ce.expanded=!1)}),X.forEach(le=>{let ce=Z.get(le);for(;ce&&!H.has(ce.key);)H.add(ce.key),ce.expanded=!0,ce=ce.parent}),n.value=H}function F(X,H){t(G5,X.data,X,H),P(X),e.expandOnClickNode&&q(X),e.showCheckbox&&(e.checkOnClickNode||X.isLeaf&&e.checkOnClickLeaf)&&!X.disabled&&u(X,!s(X),!0)}function N(X,H){t(X5,X.data,X,H)}function P(X){G(X)||(a.value=X.key,t(Q5,X.data,X))}function B(X,H){u(X,H)}function W(X){const H=n.value;if(o.value&&e.accordion){const{treeNodeMap:le}=o.value;H.forEach(ce=>{const ge=le.get(ce);X&&X.level===(ge==null?void 0:ge.level)&&(H.delete(ce),ge.expanded=!1)})}H.add(X.key);const Z=de(X.key);Z&&(Z.expanded=!0,t(J5,Z.data,Z))}function K(X){n.value.delete(X.key);const H=de(X.key);H&&(H.expanded=!1,t(Z5,H.data,H))}function j(X){return!!X.disabled}function G(X){const H=a.value;return H!==void 0&&H===X.key}function ee(){var X,H;if(a.value)return(H=(X=o.value)==null?void 0:X.treeNodeMap.get(a.value))==null?void 0:H.data}function te(){return a.value}function ue(X){a.value=X}function ne(X){o.value=M(X)}function de(X){var Z;const H=Mt(X)?I(X):X;return(Z=o.value)==null?void 0:Z.treeNodeMap.get(H)}function se(X,H="auto"){const Z=de(X);Z&&l.value&&l.value.scrollToItem(k.value.indexOf(Z),H)}function Y(X){var H;(H=l.value)==null||H.scrollTo(X)}return fe(()=>e.currentNodeKey,X=>{a.value=X},{immediate:!0}),fe(()=>e.defaultExpandedKeys,X=>{U(X||[])}),fe(()=>e.data,X=>{ne(X),U(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:k,isNotEmpty:T,listRef:l,getKey:I,getChildren:O,toggleExpand:q,toggleCheckbox:u,isChecked:s,isIndeterminate:r,isDisabled:j,isCurrent:G,isForceHiddenExpandIcon:y,handleNodeClick:F,handleNodeDrop:N,handleNodeCheck:B,getCurrentNode:ee,getCurrentKey:te,setCurrentKey:ue,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p,filter:A,setData:ne,getNode:de,expandNode:W,collapseNode:K,setExpandedKeys:U,scrollToNode:se,scrollTo:Y}}var kle=D({name:"ElTreeNodeContent",props:ble,setup(e){const t=Ne(Sv),n=ve("tree");return()=>{const a=e.node,{data:o}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):qe(yv,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a==null?void 0:a.label])}}});const Ele=["aria-expanded","aria-disabled","aria-checked","data-key"];var Tle=D({name:"ElTreeNode",__name:"tree-node",props:yle,emits:Cle,setup(e,{emit:t}){const n=e,a=t,o=Ne(Sv),l=ve("tree"),r=x(()=>(o==null?void 0:o.props.indent)??16),s=x(()=>(o==null?void 0:o.props.icon)??Sh),u=p=>{var y;const v=(y=o==null?void 0:o.props.props)==null?void 0:y.class;if(!v)return{};let m;if(ct(v)){const{data:b}=p;m=v(b,p)}else m=v;return Ue(m)?{[m]:!0}:m},c=p=>{a("click",n.node,p)},d=p=>{a("drop",n.node,p)},f=()=>{a("toggle",n.node)},h=p=>{a("check",n.node,p)},g=p=>{var v,m,y,b;(y=(m=(v=o==null?void 0:o.instance)==null?void 0:v.vnode)==null?void 0:m.props)!=null&&y.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),o==null||o.ctx.emit(n9,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var m,y,b;return _(),$("div",{ref:"node$",class:R([i(l).b("node"),i(l).is("expanded",e.expanded),i(l).is("current",e.current),i(l).is("focusable",!e.disabled),i(l).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(m=e.node)==null?void 0:m.key,onClick:Xe(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Xe(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Xe(()=>{},["prevent"])),onDrop:Xe(d,["stop"])},[E("div",{class:R(i(l).be("node","content")),style:We({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[s.value?(_(),ie(i(ze),{key:0,class:R([i(l).is("leaf",!!((y=e.node)!=null&&y.isLeaf)),i(l).is("hidden",e.hiddenExpandIcon),{expanded:!((b=e.node)!=null&&b.isLeaf)&&e.expanded},i(l).be("node","expand-icon")]),onClick:Xe(f,["stop"])},{default:ae(()=>[(_(),ie(ut(s.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(_(),ie(i(fo),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:v[0]||(v[0]=Xe(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),Q(i(kle),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,Ele)}}}),Mle=Tle,Ole=D({name:"ElTreeV2",__name:"tree",props:gle,emits:wle,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),r=x(()=>a.itemSize);bt(Sv,{ctx:{emit:o,slots:l},props:a,instance:ht()}),bt(qo,void 0);const{t:s}=xt(),u=ve("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:g,isChecked:p,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:y,handleNodeClick:b,handleNodeDrop:w,handleNodeCheck:C,toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:W,scrollToNode:K,scrollTo:j}=xle(a,o);return t({toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:W,scrollToNode:K,scrollTo:j}),(G,ee)=>(_(),$("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(_(),ie(i(l5),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ae(({data:te,index:ue,style:ne})=>[(_(),ie(Mle,{key:te[ue].key,style:We(ne),node:te[ue],expanded:te[ue].expanded,"show-checkbox":e.showCheckbox,checked:i(p)(te[ue]),indeterminate:i(g)(te[ue]),"item-size":r.value,disabled:i(v)(te[ue]),current:i(m)(te[ue]),"hidden-expand-icon":i(y)(te[ue]),onClick:i(b),onToggle:i(h),onCheck:i(C),onDrop:i(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(_(),$("div",{key:1,class:R(i(u).e("empty-block"))},[oe(G.$slots,"empty",{},()=>[E("span",{class:R(i(u).e("empty-text"))},_e(e.emptyText??i(s)("el.tree.emptyText")),3)])],2))],2))}}),$le=Ole;const Ale=rt($le),Rle="ElUpload";var Nle=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function i4(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new Nle(a,n.status,t.method,e)}function Ple(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Ile=e=>{typeof XMLHttpRequest>"u"&&on(Rle,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))Ve(r)?r.length===2&&r[0]instanceof Blob&&Ue(r[1])?a.append(l,r[0],r[1]):r.forEach(s=>{a.append(l,s)}):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(i4(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(i4(n,e,t));e.onSuccess(Ple(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(o))Cn(r)||t.setRequestHeader(l,String(r));return t.send(a),t},a9=["text","picture","picture-card"];let Lle=1;const lp=()=>Date.now()+Lle++,o9=Ce({action:{type:String,default:"#"},headers:{type:J(Object)},method:{type:String,default:"post"},data:{type:J([Object,Function,Promise]),default:()=>un({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:J(Array),default:()=>un([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:a9,default:"text"},httpRequest:{type:J(Function),default:Ile},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),Vle=Ce({...o9,beforeUpload:{type:J(Function),default:Yt},beforeRemove:{type:J(Function)},onRemove:{type:J(Function),default:Yt},onChange:{type:J(Function),default:Yt},onPreview:{type:J(Function),default:Yt},onSuccess:{type:J(Function),default:Yt},onProgress:{type:J(Function),default:Yt},onError:{type:J(Function),default:Yt},onExceed:{type:J(Function),default:Yt},crossorigin:{type:J(String)}}),l9=Symbol("uploadContextKey"),Ble=Ce({files:{type:J(Array),default:()=>un([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:J(Function),default:Yt},listType:{type:String,values:a9,default:"text"},crossorigin:{type:J(String)}}),zle={remove:e=>!!e},Dle=Ce({...o9,beforeUpload:{type:J(Function),default:Yt},onRemove:{type:J(Function),default:Yt},onStart:{type:J(Function),default:Yt},onSuccess:{type:J(Function),default:Yt},onProgress:{type:J(Function),default:Yt},onError:{type:J(Function),default:Yt},onExceed:{type:J(Function),default:Yt}}),Hle=Ce({disabled:{type:Boolean,default:void 0},directory:Boolean}),Fle={file:e=>Ve(e)},Kle=["tabindex","aria-disabled","onKeydown"],Wle=["src","crossorigin"],jle=["onClick"],qle=["title"],Ule=["onClick"],Yle=["onClick"];var Gle=D({name:"ElUploadList",__name:"upload-list",props:Ble,emits:zle,setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),l=ve("upload"),r=ve("icon"),s=ve("list"),u=dn(),c=V(!1),d=x(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{a("remove",h)};return(h,g)=>(_(),ie(w6,{tag:"ul",class:R(d.value),name:i(s).b()},{default:ae(()=>[(_(!0),$(He,null,Ct(e.files,(p,v)=>(_(),$("li",{key:p.uid||p.name,class:R([i(l).be("list","item"),i(l).is(p.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:rn(m=>!i(u)&&f(p),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(h.$slots,"default",{file:p,index:v},()=>[e.listType==="picture"||p.status!=="uploading"&&e.listType==="picture-card"?(_(),$("img",{key:0,class:R(i(l).be("list","item-thumbnail")),src:p.url,crossorigin:e.crossorigin,alt:""},null,10,Wle)):re("v-if",!0),p.status==="uploading"||e.listType!=="picture-card"?(_(),$("div",{key:1,class:R(i(l).be("list","item-info"))},[E("a",{class:R(i(l).be("list","item-name")),onClick:Xe(m=>e.handlePreview(p),["prevent"])},[Q(i(ze),{class:R(i(r).m("document"))},{default:ae(()=>[Q(i(Oy))]),_:1},8,["class"]),E("span",{class:R(i(l).be("list","item-file-name")),title:p.name},_e(p.name),11,qle)],10,jle),p.status==="uploading"?(_(),ie(i(Yw),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:We(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),E("label",{class:R(i(l).be("list","item-status-label"))},[e.listType==="text"?(_(),ie(i(ze),{key:0,class:R([i(r).m("upload-success"),i(r).m("circle-check")])},{default:ae(()=>[Q(i(gf))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(_(),ie(i(ze),{key:1,class:R([i(r).m("upload-success"),i(r).m("check")])},{default:ae(()=>[Q(i(ni))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(_(),ie(i(ze),{key:2,class:R(i(r).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(p),onKeydown:rn(Xe(m=>f(p),["prevent"]),["enter","space"])},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(_(),$("i",{key:3,class:R(i(r).m("close-tip"))},_e(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(_(),$("span",{key:4,class:R(i(l).be("list","item-actions"))},[E("span",{class:R(i(l).be("list","item-preview")),onClick:m=>e.handlePreview(p)},[Q(i(ze),{class:R(i(r).m("zoom-in"))},{default:ae(()=>[Q(i(Th))]),_:1},8,["class"])],10,Ule),i(u)?re("v-if",!0):(_(),$("span",{key:0,class:R(i(l).be("list","item-delete")),onClick:m=>f(p)},[Q(i(ze),{class:R(i(r).m("delete"))},{default:ae(()=>[Q(i(My))]),_:1},8,["class"])],10,Yle))],2)):re("v-if",!0)])],42,Kle))),128)),oe(h.$slots,"append")]),_:3},8,["class","name"]))}}),u4=Gle;const c4="ElUploadDrag";var Xle=D({name:c4,__name:"upload-dragger",props:Hle,emits:Fle,setup(e,{emit:t}){const n=e,a=t;Ne(l9)||on(c4,"usage: ");const o=ve("upload"),l=V(!1),r=dn(),s=h=>new Promise((g,p)=>h.file(g,p)),u=async h=>{try{if(h.isFile){const g=await s(h);return g.isDirectory=!1,[g]}if(h.isDirectory){const g=h.createReader(),p=()=>new Promise((b,w)=>g.readEntries(b,w)),v=[];let m=await p();for(;m.length>0;)v.push(...m),m=await p();const y=v.map(b=>u(b).catch(()=>[]));return sd(await Promise.all(y))}}catch{return[]}return[]},c=async h=>{if(r.value)return;l.value=!1,h.stopPropagation();const g=Array.from(h.dataTransfer.files),p=h.dataTransfer.items||[];if(n.directory){const v=Array.from(p).map(m=>{var y;return(y=m==null?void 0:m.webkitGetAsEntry)==null?void 0:y.call(m)}).filter(m=>m);a("file",sd(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{var b,w;const y=(w=(b=p[m])==null?void 0:b.webkitGetAsEntry)==null?void 0:w.call(b);y&&(v.isDirectory=y.isDirectory)}),a("file",g)},d=()=>{r.value||(l.value=!0)},f=h=>{h.currentTarget.contains(h.relatedTarget)||(l.value=!1)};return(h,g)=>(_(),$("div",{class:R([i(o).b("dragger"),i(o).is("dragover",l.value)]),onDrop:Xe(c,["prevent"]),onDragover:Xe(d,["prevent"]),onDragleave:Xe(f,["prevent"])},[oe(h.$slots,"default")],34))}}),Jle=Xle;const Zle=["tabindex","aria-disabled","onKeydown"],Qle=["name","disabled","multiple","accept","webkitdirectory"];var ere=D({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:Dle,setup(e,{expose:t}){const n=e,a=ve("upload"),o=dn(),l=qt({}),r=qt(),s=v=>{if(v.length===0)return;const{autoUpload:m,limit:y,fileList:b,multiple:w,onStart:C,onExceed:S}=n;if(y&&b.length+v.length>y){S(v,b);return}w||(v=v.slice(0,1));for(const k of v){const T=k;T.uid=lp(),C(T),m&&u(T)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let m,y={};try{const w=n.data,C=n.beforeUpload(v);y=Q0(n.data)?Ro(n.data):n.data,m=await C,Q0(n.data)&&sn(w,y)&&(y=Ro(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let b=v;m instanceof Blob&&(m instanceof File?b=m:b=new File([m],v.name,{type:v.type})),d(Object.assign(b,{uid:v.uid}),y)},c=async(v,m)=>ct(v)?v(m):v,d=async(v,m)=>{const{headers:y,data:b,method:w,withCredentials:C,name:S,action:k,onProgress:T,onSuccess:M,onError:A,httpRequest:O}=n;try{m=await c(m??b,v)}catch{n.onRemove(v);return}const{uid:I}=v,L={headers:y||{},withCredentials:C,file:v,data:m,method:w,filename:S,action:k,onProgress:q=>{T(q,v)},onSuccess:q=>{M(q,v),delete l.value[I]},onError:q=>{A(q,v),delete l.value[I]}},z=O(L);l.value[I]=z,z instanceof Promise&&z.then(L.onSuccess,L.onError)},f=v=>{const m=v.target.files;m&&s(Array.from(m))},h=()=>{o.value||(r.value.value="",r.value.click())},g=()=>{h()};return t({abort:v=>{I8(l.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:u}),(v,m)=>(_(),$("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:h,onKeydown:rn(Xe(g,["self"]),["enter","space"])},[e.drag?(_(),ie(Jle,{key:0,disabled:i(o),directory:e.directory,onFile:s},{default:ae(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),E("input",{ref_key:"inputRef",ref:r,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Xe(()=>{},["stop"]))},null,42,Qle)],42,Zle))}}),d4=ere;const f4="ElUpload",p4=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},tre=(e,t)=>{const n=I6(e,"fileList",void 0,{passive:!0}),a=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=p=>{Ie(()=>e.onChange(p,n.value))},u=(p,v)=>{const m=a(v);m&&(console.error(p),m.status="fail",r(m),e.onError(p,m,n.value),s(m))},c=(p,v)=>{const m=a(v);m&&(e.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},d=(p,v)=>{const m=a(v);m&&(m.status="success",m.response=p,e.onSuccess(p,m,n.value),s(m))},f=p=>{Cn(p.uid)&&(p.uid=lp());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(m){ft(f4,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],s(v)},h=async p=>{const v=p instanceof File?a(p):p;v||on(f4,"file to be removed not found");const m=y=>{o(y),r(y),e.onRemove(y,n.value),p4(y)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return fe(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:y}=v;if(!y&&m)try{v.url=URL.createObjectURL(m)}catch(b){e.onError(b,v,n.value)}return v}))}),fe(n,p=>{for(const v of p)v.uid||(v.uid=lp()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:g,revokeFileObjectURL:p4}};var nre=D({name:"ElUpload",__name:"upload",props:Vle,setup(e,{expose:t}){const n=e,a=dn(),o=qt(),{abort:l,submit:r,clearFiles:s,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:p}=tre(n,o),v=x(()=>n.listType==="picture-card"),m=x(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return Lt(()=>{u.value.forEach(p)}),bt(l9,{accept:Bt(n,"accept")}),t({abort:l,submit:r,clearFiles:s,handleStart:c,handleRemove:f}),(y,b)=>(_(),$("div",null,[v.value&&e.showFileList?(_(),ie(u4,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ga({append:ae(()=>[Q(d4,pt({ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:C})=>[oe(y.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(_(),ie(d4,pt({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),y.$slots.trigger?oe(y.$slots,"default",{key:2}):re("v-if",!0),oe(y.$slots,"tip"),!v.value&&e.showFileList?(_(),ie(u4,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ga({_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:C})=>[oe(y.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),are=nre;const ore=rt(are),lre=Ce({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:J([String,Array]),default:"Element Plus"},font:{type:J(Object)},gap:{type:J(Array),default:()=>[100,100]},offset:{type:J(Array)}});function rre(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sre(e){return Object.keys(e).map(t=>`${rre(t)}: ${e[t]};`).join(" ")}function ire(){return window.devicePixelRatio||1}const ure=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},cre={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function $0(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function dre(){function e(t,n,a,o,l,r,s,u,c){const[d,f,h,g]=$0(o,l,a);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,g);else{const{color:j,fontSize:G,fontStyle:ee,fontWeight:te,fontFamily:ue,textAlign:ne,textBaseline:de}=r,se=Number(G)*a;d.font=`${ee} normal ${te} ${se}px/${l}px ${ue}`,d.fillStyle=j,d.textAlign=ne,d.textBaseline=de;const Y=Ve(t)?t:[t];if(de!=="top"&&Y[0]){const X=d.measureText(Y[0]);d.textBaseline="top";const H=d.measureText(Y[0]);p=X.actualBoundingBoxAscent-H.actualBoundingBoxAscent}Y==null||Y.forEach((X,H)=>{const[Z,le]=cre[ne];d.fillText(X??"",h*Z+c*le,H*(se+r.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,l),[y,b,w]=$0(m,m,a);y.translate(w/2,w/2),y.rotate(v),h>0&&g>0&&y.drawImage(f,-h/2,-g/2);function C(j,G){return[j*Math.cos(v)-G*Math.sin(v),j*Math.sin(v)+G*Math.cos(v)]}let S=0,k=0,T=0,M=0;const A=h/2,O=g/2;[[0-A,0-O],[0+A,0-O],[0+A,0+O],[0-A,0+O]].forEach(([j,G])=>{const[ee,te]=C(j,G);S=Math.min(S,ee),k=Math.max(k,ee),T=Math.min(T,te),M=Math.max(M,te)});const I=S+w/2,L=T+w/2,z=k-S,q=M-T,U=s*a,F=u*a,N=(z+U)*2,P=q+F,[B,W]=$0(N,P);function K(j=0,G=0){B.drawImage(b,I,L,z,q,j,G+p,z,q)}return K(),K(z+U,-q/2-F/2),K(z+U,+q/2+F/2),[W.toDataURL(),N/a,P/a]}return e}var fre=D({name:"ElWatermark",__name:"watermark",props:lre,setup(e){const t={position:"relative"},n=e,a=x(()=>{var I;return((I=n.font)==null?void 0:I.fontGap)??3}),o=x(()=>{var I;return((I=n.font)==null?void 0:I.color)??"rgba(0,0,0,.15)"}),l=x(()=>{var I;return((I=n.font)==null?void 0:I.fontSize)??16}),r=x(()=>{var I;return((I=n.font)==null?void 0:I.fontWeight)??"normal"}),s=x(()=>{var I;return((I=n.font)==null?void 0:I.fontStyle)??"normal"}),u=x(()=>{var I;return((I=n.font)==null?void 0:I.fontFamily)??"sans-serif"}),c=x(()=>{var I;return((I=n.font)==null?void 0:I.textAlign)??"center"}),d=x(()=>{var I;return((I=n.font)==null?void 0:I.textBaseline)??"hanging"}),f=x(()=>n.gap[0]),h=x(()=>n.gap[1]),g=x(()=>f.value/2),p=x(()=>h.value/2),v=x(()=>{var I;return((I=n.offset)==null?void 0:I[0])??g.value}),m=x(()=>{var I;return((I=n.offset)==null?void 0:I[1])??p.value}),y=()=>{const I={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=v.value-g.value,z=m.value-p.value;return L>0&&(I.left=`${L}px`,I.width=`calc(100% - ${L}px)`,L=0),z>0&&(I.top=`${z}px`,I.height=`calc(100% - ${z}px)`,z=0),I.backgroundPosition=`${L}px ${z}px`,I},b=qt(null),w=qt(),C=V(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=(I,L)=>{var z;b.value&&w.value&&(C.value=!0,w.value.setAttribute("style",sre({...y(),backgroundImage:`url('${I}')`,backgroundSize:`${Math.floor(L)}px`})),(z=b.value)==null||z.append(w.value),setTimeout(()=>{C.value=!1}))},T=I=>{let L=120,z=64,q=0;const{image:U,content:F,width:N,height:P,rotate:B}=n;if(!U&&I.measureText){I.font=`${Number(l.value)}px ${u.value}`;const W=Ve(F)?F:[F];let K=0,j=0;W.forEach(ee=>{const{width:te,fontBoundingBoxAscent:ue,fontBoundingBoxDescent:ne,actualBoundingBoxAscent:de,actualBoundingBoxDescent:se}=I.measureText(ee),Y=kt(ue)?de+se:ue+ne;te>K&&(K=Math.ceil(te)),Y>j&&(j=Math.ceil(Y))}),L=K,z=j*W.length+(W.length-1)*a.value;const G=Math.PI/180*Number(B);q=Math.ceil(Math.abs(Math.sin(G)*z)/2),L+=q}return[N??L,P??z,q]},M=dre(),A=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,z=n.content,q=n.rotate;if(I){w.value||(w.value=document.createElement("div"));const U=ire(),[F,N,P]=T(I),B=W=>{const[K,j]=M(W||"",q,U,F,N,{color:o.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,P);k(K,j)};if(L){const W=new Image;W.onload=()=>{B(W)},W.onerror=()=>{B(z)},W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=L}else B(z)}};return mt(()=>{A()}),fe(()=>n,()=>{A()},{deep:!0,flush:"post"}),Lt(()=>{S()}),Su(b,I=>{C.value||I.forEach(L=>{ure(L,w.value)&&(S(),A())})},{attributes:!0,subtree:!0,childList:!0}),(I,L)=>(_(),$("div",{ref_key:"containerRef",ref:b,style:We([t])},[oe(I.$slots,"default")],4))}}),pre=fre;const hre=rt(pre),vre=["absolute","fixed"],mre=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],xv=Ce({placement:{type:J(String),values:mre,default:"bottom"},reference:{type:J(Object),default:null},strategy:{type:J(String),values:vre,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),gre={close:()=>!0},yre=Ce({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ft},placement:xv.placement,contentStyle:{type:J([Object])},mask:{type:J([Boolean,Object]),default:!0},gap:{type:J(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:J([Boolean,Object]),default:()=>({block:"center"})},type:{type:J(String)},appendTo:{type:Au.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),bre={[at]:e=>Dt(e),"update:current":e=>De(e),close:e=>De(e),finish:()=>!0,change:e=>De(e)},wre=Ce({target:{type:J([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ft},showArrow:{type:Boolean,default:void 0},placement:xv.placement,mask:{type:J([Boolean,Object]),default:void 0},contentStyle:{type:J([Object])},prevButtonProps:{type:J(Object)},nextButtonProps:{type:J(Object)},scrollIntoViewOptions:{type:J([Boolean,Object]),default:void 0},type:{type:J(String)}}),Cre={close:()=>!0},_re=(e,t,n,a,o)=>{const l=V(null),r=()=>{let d;return Ue(e.value)?d=document.querySelector(e.value):ct(e.value)?d=e.value():d=e.value,d},s=()=>{const d=r();if(!d||!t.value){l.value=null;return}Sre(d)||d.scrollIntoView(o.value);const{left:f,top:h,width:g,height:p}=d.getBoundingClientRect();l.value={left:f,top:h,width:g,height:p,radius:0}};mt(()=>{fe([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Lt(()=>{window.removeEventListener("resize",s)});const u=d=>(Ve(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=x(()=>{var g;if(!l.value)return l.value;const d=u(0),f=u(1),h=((g=n.value)==null?void 0:g.radius)||2;return{left:l.value.left-d,top:l.value.top-f,width:l.value.width+d*2,height:l.value.height+f*2,radius:h}});return{mergedPosInfo:c,triggerTarget:x(()=>{const d=r();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var f,h,g,p;return window.DOMRect.fromRect({width:((f=c.value)==null?void 0:f.width)||0,height:((h=c.value)==null?void 0:h.height)||0,x:((g=c.value)==null?void 0:g.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}})}},Mf=Symbol("ElTour");function Sre(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n}const xre=(e,t,n,a,o,l,r,s)=>{const u=V(),c=V(),d=V({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},h=x(()=>{const y=[Y$(i(l)),X$(),G$(),kre()];return i(s)&&i(n)&&y.push(J$({element:i(n)})),y}),g=async()=>{if(!Rt)return;const y=i(e),b=i(t);if(!y||!b)return;const w=await Z$(y,b,{placement:i(a),strategy:i(o),middleware:i(h)});tu(f).forEach(C=>{f[C].value=w[C]})},p=x(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(r)};const{overflow:y}=i(d);return{position:i(o),zIndex:i(r),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),v=x(()=>{if(!i(s))return{};const{arrow:y}=i(d);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let m;return mt(()=>{const y=i(e),b=i(t);y&&b&&(m=q$(y,b,g)),ma(()=>{g()})}),Lt(()=>{m&&m()}),{update:g,contentStyle:p,arrowStyle:v}},kre=()=>({name:"overflow",async fn(e){const t=await U$(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Ere=Ce({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:J(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Tre={style:{width:"100%",height:"100%"}},Mre=["d"];var Ore=D({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:Ere,setup(e){const t=e,{ns:n}=Ne(Mf),a=x(()=>{var d;return((d=t.pos)==null?void 0:d.radius)??2}),o=x(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=zp(),s=x(()=>{const d=l.value,f=r.value,h=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=a.value;return t.pos?`${g} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:g}),u=x(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=x(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return cf(Bt(t,"visible"),{ns:n}),(d,f)=>e.visible?(_(),$("div",pt({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(_(),$("svg",Tre,[E("path",{class:R(i(n).e("hollow")),style:We(c.value),d:s.value},null,14,Mre)]))],16)):re("v-if",!0)}}),$re=Ore;const Are=["data-side"];var Rre=D({name:"ElTourContent",__name:"content",props:xv,emits:gre,setup(e,{emit:t}){const n=e,a=t,o=V(n.placement),l=V(n.strategy),r=V(null),s=V(null);fe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=xre(Bt(n,"reference"),r,s,o,l,Bt(n,"offset"),Bt(n,"zIndex"),Bt(n,"showArrow")),d=x(()=>o.value.split("-")[0]),{ns:f}=Ne(Mf),h=()=>{a("close")},g=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(_(),$("div",{ref_key:"contentRef",ref:r,style:We(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[Q(i(ai),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:g},{default:ae(()=>[oe(p.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(_(),$("span",{key:0,ref_key:"arrowRef",ref:s,style:We(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,Are))}}),Nre=Rre,Pre=D({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var u,c;const o=(u=t.default)==null?void 0:u.call(t),l=[];let r=0;function s(d){Ve(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(l.push(f),r+=1)})}return o.length&&s(Ra((c=o[0])==null?void 0:c.children)),a!==r&&(a=r,n("update-total",r)),l.length?l[e.current]:null}}}),Ire=D({name:"ElTour",inheritAttrs:!1,__name:"tour",props:yre,emits:bre,setup(e,{emit:t}){const n=e,a=t,o=ve("tour"),l=V(0),r=V(),s=I6(n,"current",a,{passive:!0}),u=x(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=x(()=>[o.b(),y.value==="primary"?o.m("primary"):""]),d=x(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=x(()=>{var O;return((O=r.value)==null?void 0:O.contentStyle)??n.contentStyle}),h=x(()=>{var O;return((O=r.value)==null?void 0:O.mask)??n.mask}),g=x(()=>!!h.value&&n.modelValue),p=x(()=>Dt(h.value)?void 0:h.value),v=x(()=>{var O;return!!u.value&&(((O=r.value)==null?void 0:O.showArrow)??n.showArrow)}),m=x(()=>{var O;return((O=r.value)==null?void 0:O.scrollIntoViewOptions)??n.scrollIntoViewOptions}),y=x(()=>{var O;return((O=r.value)==null?void 0:O.type)??n.type}),{nextZIndex:b}=Pu(),w=b(),C=x(()=>n.zIndex??w),{mergedPosInfo:S,triggerTarget:k}=_re(u,Bt(n,"modelValue"),Bt(n,"gap"),h,m);fe(()=>n.modelValue,O=>{O||(s.value=0)});const T=()=>{n.closeOnPressEscape&&(a(at,!1),a("close",s.value))},M=O=>{l.value=O},A=yn();return bt(Mf,{currentStep:r,current:s,total:l,showClose:Bt(n,"showClose"),closeIcon:Bt(n,"closeIcon"),mergedType:y,ns:o,slots:A,updateModelValue(O){a(at,O)},onClose(){a("close",s.value)},onFinish(){a("finish")},onChange(){a(yt,s.value)}}),(O,I)=>(_(),$(He,null,[Q(i(ti),{to:e.appendTo},{default:ae(()=>{var L,z;return[E("div",pt({class:c.value},O.$attrs),[Q($re,{visible:g.value,fill:(L=p.value)==null?void 0:L.color,style:We((z=p.value)==null?void 0:z.style),pos:i(S),"z-index":C.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(_(),ie(Nre,{key:i(s),reference:i(k),placement:d.value,"show-arrow":v.value,"z-index":C.value,style:We(f.value),onClose:T},{default:ae(()=>[Q(i(Pre),{current:i(s),onUpdateTotal:M},{default:ae(()=>[oe(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)]}),_:3},8,["to"]),re(" just for IDE "),re("v-if",!0)],64))}}),Lre=Ire;const Vre=["aria-label"];var Bre=D({name:"ElTourStep",__name:"step",props:wre,emits:Cre,setup(e,{emit:t}){const n=e,a=t,{Close:o}=jy,{t:l}=xt(),{currentStep:r,current:s,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:g,updateModelValue:p,onClose:v,onFinish:m,onChange:y}=Ne(Mf);fe(n,O=>{r.value=O},{immediate:!0});const b=x(()=>n.showClose??c.value),w=x(()=>n.closeIcon??d.value??o),C=O=>{if(O)return Mu(O,["children","onClick"])},S=()=>{var O,I;s.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((I=n.prevButtonProps)==null||I.onClick()),y()},k=()=>{var O;s.value>=u.value-1?T():s.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),y()},T=()=>{M(),m()},M=()=>{p(!1),v(),a("close")},A=O=>{var I;if(!((I=O.target)!=null&&I.isContentEditable))switch(Kt(O)){case we.left:O.preventDefault(),s.value>0&&S();break;case we.right:O.preventDefault(),k();break}};return mt(()=>{window.addEventListener("keydown",A)}),Lt(()=>{window.removeEventListener("keydown",A)}),(O,I)=>(_(),$(He,null,[b.value?(_(),$("button",{key:0,"aria-label":i(l)("el.tour.close"),class:R(i(h).e("closebtn")),type:"button",onClick:M},[Q(i(ze),{class:R(i(h).e("close"))},{default:ae(()=>[(_(),ie(ut(w.value)))]),_:1},8,["class"])],10,Vre)):re("v-if",!0),E("header",{class:R([i(h).e("header"),{"show-close":i(c)}])},[oe(O.$slots,"header",{},()=>[E("span",{role:"heading",class:R(i(h).e("title"))},_e(e.title),3)])],2),E("div",{class:R(i(h).e("body"))},[oe(O.$slots,"default",{},()=>[E("span",null,_e(e.description),1)])],2),E("footer",{class:R(i(h).e("footer"))},[E("div",{class:R(i(h).b("indicators"))},[i(g).indicators?(_(),ie(ut(i(g).indicators),{key:0,current:i(s),total:i(u)},null,8,["current","total"])):(_(!0),$(He,{key:1},Ct(i(u),(L,z)=>(_(),$("span",{key:L,class:R([i(h).b("indicator"),i(h).is("active",z===i(s))])},null,2))),128))],2),E("div",{class:R(i(h).b("buttons"))},[i(s)>0?(_(),ie(i(Ln),pt({key:0,size:"small",type:i(f)},C(e.prevButtonProps),{onClick:S}),{default:ae(()=>{var L;return[_t(_e(((L=e.prevButtonProps)==null?void 0:L.children)??i(l)("el.tour.previous")),1)]}),_:1},16,["type"])):re("v-if",!0),i(s)<=i(u)-1?(_(),ie(i(Ln),pt({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},C(e.nextButtonProps),{onClick:k}),{default:ae(()=>{var L;return[_t(_e(((L=e.nextButtonProps)==null?void 0:L.children)??(i(s)===i(u)-1?i(l)("el.tour.finish"):i(l)("el.tour.next"))),1)]}),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),r9=Bre;const zre=rt(Lre,{TourStep:r9}),Dre=ln(r9),Hre=Ce({container:{type:J([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:J(String),default:"default"},direction:{type:J(String),default:"vertical"},selectScrollTop:Boolean}),Fre={change:e=>Ue(e),click:(e,t)=>e instanceof MouseEvent&&(Ue(t)||kt(t))},_c=e=>{if(!Rt||e==="")return null;if(Ue(e))try{return document.querySelector(e)}catch{return null}return e};function Kre(e){let t=0;const n=(...a)=>{t&&ml(t),t=Ua(()=>{e(...a),t=0})};return n.cancel=()=>{ml(t),t=0},n}const s9=Symbol("anchor");var Wre=D({name:"ElAnchor",__name:"anchor",props:Hre,emits:Fre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),r=V(""),s=V({}),u=V(null),c=V(null),d=V(),f={};let h=!1,g=0;const p=ve("anchor"),v=x(()=>[p.b(),a.type==="underline"?p.m("underline"):"",p.m(a.direction)]),m=L=>{f[L.href]=L.el},y=L=>{delete f[L]},b=L=>{r.value!==L&&(r.value=L,o(yt,L))};let w=null,C="";const S=L=>{if(!d.value)return;const z=_c(L);if(!z)return;if(w){if(C===L)return;w()}C=L,h=!0;const q=hm(z,d.value),U=V2(z,q),F=q.scrollHeight-q.clientHeight,N=Math.min(U-a.offset,F);w=YM(d.value,g,N,a.duration,()=>{setTimeout(()=>{h=!1,C=""},20)})},k=L=>{L&&(b(L),S(L))},T=(L,z)=>{o("click",L,z),k(z)},M=Kre(()=>{d.value&&(g=vm(d.value));const L=A();h||kt(L)||b(L)}),A=()=>{if(!d.value)return;const L=vm(d.value),z=[];for(const q of Object.keys(f)){const U=_c(q);if(!U)continue;const F=V2(U,hm(U,d.value));z.push({top:F-a.offset-a.bound,href:q})}z.sort((q,U)=>q.top-U.top);for(let q=0;qL))return U.href}},O=()=>{const L=_c(a.container);!L||Ou(L)?d.value=window:d.value=L};Vt(d,"scroll",M);const I=()=>{Ie(()=>{if(!u.value||!c.value||!r.value){s.value={};return}const L=f[r.value];if(!L){s.value={};return}const z=u.value.getBoundingClientRect(),q=c.value.getBoundingClientRect(),U=L.getBoundingClientRect();a.direction==="horizontal"?s.value={left:`${U.left-z.left}px`,width:`${U.width}px`,opacity:1}:s.value={top:`${U.top-z.top+(U.height-q.height)/2}px`,opacity:1}})};return fe(r,I),fe(()=>{var L;return(L=l.default)==null?void 0:L.call(l)},I),mt(()=>{O();const L=decodeURIComponent(window.location.hash);_c(L)?k(L):M()}),fe(()=>a.container,()=>{O()}),bt(s9,{ns:p,direction:a.direction,currentAnchor:r,addLink:m,removeLink:y,handleClick:T}),t({scrollTo:k}),(L,z)=>(_(),$("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(_(),$("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(p).e("marker")),style:We(s.value)},null,6)):re("v-if",!0),E("div",{class:R(i(p).e("list"))},[oe(L.$slots,"default")],2)],2))}}),jre=Wre;const qre=Ce({title:String,href:String}),Ure=["href"];var Yre=D({name:"ElAnchorLink",__name:"anchor-link",props:qre,setup(e){const t=e,n=V(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:s,handleClick:u}=Ne(s9),c=x(()=>[a.e("link"),a.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return fe(()=>t.href,(f,h)=>{Ie(()=>{h&&s(h),f&&r({href:f,el:n.value})})}),mt(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Lt(()=>{const{href:f}=t;f&&s(f)}),(f,h)=>(_(),$("div",{class:R(i(a).e("item"))},[E("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[_t(_e(e.title),1)])],10,Ure),f.$slots["sub-link"]&&i(o)==="vertical"?(_(),$("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),i9=Yre;const Gre=rt(jre,{AnchorLink:i9}),Xre=ln(i9),u9={label:"label",value:"value",disabled:"disabled"},Jre=Ce({direction:{type:J(String),default:"horizontal"},options:{type:J(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:J(Object),default:()=>u9},block:Boolean,size:On,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ia(["ariaLabel"])}),Zre={[at]:e=>Ue(e)||De(e)||Dt(e),[yt]:e=>Ue(e)||De(e)||Dt(e)},Qre=["id","aria-label","aria-labelledby"],ese=["name","disabled","checked","onChange"];var tse=D({name:"ElSegmented",__name:"segmented",props:Jre,emits:Zre,setup(e,{emit:t}){const n=e,a=t,o=ve("segmented"),l=Un(),r=En(),s=dn(),{formItem:u}=Kn(),{inputId:c,isLabeledByFormItem:d}=za(n,{formItemContext:u}),f=V(null),h=zS(),g=Nt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(I,L)=>{const z=m(L);a(at,z),a(yt,z),I.target.checked=z===n.modelValue},v=x(()=>({...u9,...n.props})),m=I=>Mt(I)?I[v.value.value]:I,y=I=>Mt(I)?I[v.value.label]:I,b=I=>!!(s.value||Mt(I)&&I[v.value.disabled]),w=I=>n.modelValue===m(I),C=I=>n.options.find(L=>m(L)===I),S=I=>[o.e("item"),o.is("selected",w(I)),o.is("disabled",b(I))],k=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=I.offsetHeight,g.translateY=I.offsetTop):(g.width=I.offsetWidth,g.translateX=I.offsetLeft);try{g.focusVisible=L.matches(":focus-visible")}catch{}},T=x(()=>[o.b(),o.m(r.value),o.is("block",n.block)]),M=x(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),A=x(()=>[o.e("item-selected"),o.is("disabled",b(C(n.modelValue))),o.is("focus-visible",g.focusVisible)]),O=x(()=>n.name||l.value);return en(f,k),fe(h,k),fe(()=>n.modelValue,()=>{var I;k(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>ft(L)))},{flush:"post"}),(I,L)=>e.options.length?(_(),$("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(T.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[E("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[E("div",{style:We(M.value),class:R(A.value)},null,6),(_(!0),$(He,null,Ct(e.options,(z,q)=>(_(),$("label",{key:q,class:R(S(z))},[E("input",{class:R(i(o).e("item-input")),type:"radio",name:O.value,disabled:b(z),checked:w(z),onChange:U=>p(U,z)},null,42,ese),E("div",{class:R(i(o).e("item-label"))},[oe(I.$slots,"default",{item:z},()=>[_t(_e(y(z)),1)])],2)],2))),128))],2)],10,Qre)):re("v-if",!0)}}),nse=tse;const ase=rt(nse),ose=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},lse=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,l=In(t);let r=-1,s;for(let u=a-1;u>=0;--u){const c=o[u];if(r===-1&&(c===n||c===` +`||c==="\r")){r=u;continue}if(l.includes(c)){const d=r===-1?a:r;s={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},rse=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);g>v?s.lineHeight=`${g-p}px`:g===v?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[h]=u[h]}),Zd()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,o)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},sse=Ce({...Nh,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Ue(e)?e.length===1:e.every(t=>Ue(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>ose,validator:e=>e===!1?!0:ct(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>c9}}),ise={[at]:e=>Ue(e),"whole-remove":(e,t)=>Ue(e)&&Ue(t),input:e=>Ue(e),search:(e,t)=>Ue(e)&&Ue(t),select:(e,t)=>Mt(e)&&Ue(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},c9={value:"value",label:"label",disabled:"disabled"},use=Ce({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),cse={select:e=>Ue(e.value)},dse=["id","aria-disabled","aria-selected","onMousemove","onClick"];var fse=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:use,emits:cse,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("mention"),{t:r}=xt(),s=V(-1),u=V(),c=V(),d=V(),f=(C,S)=>[l.be("dropdown","item"),l.is("hovering",s.value===S),l.is("disabled",C.disabled||a.disabled)],h=C=>{C.disabled||a.disabled||o("select",C)},g=C=>{s.value=C},p=x(()=>a.disabled||a.options.every(C=>C.disabled)),v=x(()=>a.options[s.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},y=C=>{const{options:S}=a;if(S.length===0||p.value)return;C==="next"?(s.value++,s.value===S.length&&(s.value=0)):C==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const k=S[s.value];if(k.disabled){y(C);return}Ie(()=>b(k))},b=C=>{var M,A,O,I;const{options:S}=a,k=S.findIndex(L=>L.value===C.value),T=(M=c.value)==null?void 0:M[k];if(T){const L=(O=(A=d.value)==null?void 0:A.querySelector)==null?void 0:O.call(A,`.${l.be("dropdown","wrap")}`);L&&sh(L,T)}(I=u.value)==null||I.handleScroll()};return fe(()=>a.options,()=>{p.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(C=>!C.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:m,hoverOption:v}),(C,S)=>(_(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(l).b("dropdown"))},[C.$slots.header?(_(),$("div",{key:0,class:R(i(l).be("dropdown","header"))},[oe(C.$slots,"header")],2)):re("v-if",!0),dt(Q(i(uo),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(l).be("dropdown","wrap"),"view-class":i(l).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(_(!0),$(He,null,Ct(e.options,(k,T)=>(_(),$("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:R(f(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":s.value===T,onMousemove:M=>g(T),onClick:Xe(M=>h(k),["stop"])},[oe(C.$slots,"label",{item:k,index:T},()=>[E("span",null,_e(k.label??k.value),1)])],42,dse))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[At,e.options.length>0&&!e.loading]]),e.loading?(_(),$("div",{key:1,class:R(i(l).be("dropdown","loading"))},[oe(C.$slots,"loading",{},()=>[_t(_e(i(r)("el.mention.loading")),1)])],2)):re("v-if",!0),C.$slots.footer?(_(),$("div",{key:2,class:R(i(l).be("dropdown","footer"))},[oe(C.$slots,"footer")],2)):re("v-if",!0)],2))}}),pse=fse,hse=D({name:"ElMention",inheritAttrs:!1,__name:"mention",props:sse,emits:ise,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const N=jn.props??[];return vl(a,Ve(N)?N:Object.keys(N))}),r=ve("mention"),s=dn(),u=Un(),c=V(),d=V(),f=V(),h=V(!1),g=V(),p=V(),v=x(()=>a.showArrow?a.placement:`${a.placement}-start`),m=x(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=x(()=>({...c9,...a.props})),b=N=>{const P={label:N[y.value.label],value:N[y.value.value],disabled:N[y.value.disabled]};return{...N,...P}},w=x(()=>a.options.map(b)),C=x(()=>{const{filterOption:N}=a;return!p.value||!N?w.value:w.value.filter(P=>N(p.value.pattern,P))}),S=x(()=>h.value&&(!!C.value.length||a.loading)),k=x(()=>{var N;return`${u.value}-${(N=f.value)==null?void 0:N.hoveringIndex}`}),T=N=>{o(at,N),o(Sn,N),q()},M=N=>{var B,W,K,j;if((B=c.value)!=null&&B.isComposing)return;const P=Kt(N);switch(P){case we.left:case we.right:q();break;case we.up:case we.down:if(!h.value)return;N.preventDefault(),(W=f.value)==null||W.navigateOptions(P===we.up?"prev":"next");break;case we.enter:case we.numpadEnter:if(!h.value){a.type!=="textarea"&&q();return}N.preventDefault(),(K=f.value)!=null&&K.hoverOption?(j=f.value)==null||j.selectHoverOption():h.value=!1;break;case we.esc:if(!h.value)return;N.preventDefault(),h.value=!1;break;case we.backspace:if(a.whole&&p.value){const{splitIndex:G,selectionEnd:ee,pattern:te,prefixIndex:ue,prefix:ne}=p.value,de=z();if(!de)return;const se=de.value,Y=w.value.find(X=>X.value===te);if((ct(a.checkIsWhole)?a.checkIsWhole(te,ne):Y)&&G!==-1&&G+1===ee){N.preventDefault();const X=se.slice(0,ue)+se.slice(G+1);o(at,X),o(Sn,X),o("whole-remove",te,ne);const H=ue;Ie(()=>{de.selectionStart=H,de.selectionEnd=H,F()})}}}},{wrapperRef:A}=El(c,{disabled:s,afterFocus(){q()},beforeBlur(N){var P;return(P=d.value)==null?void 0:P.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),O=()=>{q()},I=N=>a.options.find(P=>N.value===P[y.value.value]),L=N=>{if(!p.value)return;const P=z();if(!P)return;const B=P.value,{split:W}=a,K=B.slice(p.value.end),j=K.startsWith(W),G=`${N.value}${j?"":W}`,ee=B.slice(0,p.value.start)+G+K;o(at,ee),o(Sn,ee),o("select",I(N),p.value.prefix);const te=p.value.start+G.length+(j?1:0);Ie(()=>{P.selectionStart=te,P.selectionEnd=te,P.focus(),F()})},z=()=>{var N,P;return a.type==="textarea"?(N=c.value)==null?void 0:N.textarea:(P=c.value)==null?void 0:P.input},q=()=>{setTimeout(()=>{U(),F(),Ie(()=>{var N;return(N=d.value)==null?void 0:N.updatePopper()})},0)},U=()=>{const N=z();if(!N)return;const P=rse(N),B=N.getBoundingClientRect(),W=A.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+B.left-W.left}px`,top:`${P.top+B.top-W.top}px`}},F=()=>{const N=z();if(document.activeElement!==N){h.value=!1;return}const{prefix:P,split:B}=a;if(p.value=lse(N,P,B),p.value&&p.value.splitIndex===-1){h.value=!0,o("search",p.value.pattern,p.value.prefix);return}h.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(N,P)=>(_(),$("div",{ref_key:"wrapperRef",ref:A,class:R(i(r).b())},[Q(i(jn),pt(pt(l.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(s),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?k.value||"":void 0,"aria-controls":S.value?i(u):void 0,"aria-expanded":S.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:T,onKeydown:M,onMousedown:O}),ga({_:2},[Ct(N.$slots,(B,W)=>({name:W,fn:ae(K=>[oe(N.$slots,W,il(ul(K)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Q(i(Fn),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[i(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ae(()=>[E("div",{style:We(g.value)},null,4)]),content:ae(()=>[Q(pse,{ref_key:"dropdownRef",ref:f,options:C.value,disabled:i(s),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:L,onClick:P[0]||(P[0]=Xe(B=>{var W;return(W=c.value)==null?void 0:W.focus()},["stop"]))},ga({_:2},[Ct(N.$slots,(B,W)=>({name:W,fn:ae(K=>[oe(N.$slots,W,il(ul(K)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),vse=hse;const mse=rt(vse),gse=Ce({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),yse={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},bse=Ce({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),wse={"update:size":e=>typeof e=="number"||typeof e=="string"};function Cse(e){const t=V(),{width:n,height:a}=Z0(t);return{containerEl:t,containerSize:x(()=>e.value==="horizontal"?n.value:a.value)}}function kv(e){return Number(e.slice(0,-1))/100}function Ev(e){return Number(e.slice(0,-2))}function Tv(e){return Ue(e)&&e.endsWith("%")}function Mv(e){return Ue(e)&&e.endsWith("px")}function _se(e,t){const n=x(()=>e.value.map(r=>r.size)),a=x(()=>e.value.length),o=V([]);fe([n,a,t],()=>{var c;let r=[],s=0;for(let d=0;dd+(f||0),0);if(u>1||!s){const d=1/u;r=r.map(f=>f===void 0?0:f*d)}else{const d=(1-u)/s;r=r.map(f=>f===void 0?d:f)}o.value=r});const l=r=>r*t.value;return{percentSizes:o,pxSizes:x(()=>o.value.map(l))}}function Sse(e,t,n,a){const o=m=>m*t.value||0;function l(m,y){return Tv(m)?o(kv(m)):Mv(m)?Ev(m):m??y}const r=V(0),s=V(null);let u=[],c=Yt;const d=x(()=>e.value.map(m=>[m.min,m.max]));fe(a,()=>{if(r.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{r.value=0,s.value={index:m,confirmed:!1},u=n.value},h=(m,y)=>{var I;let b=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)b=m,s.value={index:m,confirmed:!0};else for(let L=m;L>=0;L-=1)if(u[L]>0){b=L,s.value={index:L,confirmed:!0};break}}const w=b??((I=s.value)==null?void 0:I.index)??m,C=[...u],S=w+1,k=l(d.value[w][0],0),T=l(d.value[S][0],0),M=l(d.value[w][1],t.value||0),A=l(d.value[S][1],t.value||0);let O=y;C[w]+OM&&(O=M-C[w]),C[S]-O>A&&(O=C[S]-A),C[w]+=O,C[S]-=O,r.value=O,c=()=>{e.value.forEach((L,z)=>{L.size=C[z]}),c=Yt},a.value||c()},g=()=>{a.value&&c(),r.value=0,s.value=null,u=[]},p=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:g,movingIndex:s,onCollapse:(m,y)=>{p.length||p.push(...n.value);const b=n.value,w=y==="start"?m:m+1,C=y==="start"?m+1:m,S=b[w],k=b[C];if(S!==0&&k!==0)b[w]=0,b[C]+=S,p[m]=S;else{const T=S+k,M=p[m],A=T-M;b[C]=M,b[w]=A}e.value.forEach((T,M)=>{T.size=b[M]})}}}const d9=Symbol("splitterRootContextKey");var xse=D({name:"ElSplitter",__name:"splitter",props:gse,emits:yse,setup(e,{emit:t}){const n=ve("splitter"),a=t,o=e,l=Bt(o,"layout"),r=Bt(o,"lazy"),{containerEl:s,containerSize:u}=Cse(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:h}=mf(ht(),"ElSplitterPanel");fe(d,()=>{m.value=null,d.value.forEach((O,I)=>{O.setIndex(I)})});const{percentSizes:g,pxSizes:p}=_se(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:y,onMoving:b,onMoveEnd:w,onCollapse:C}=Sse(d,u,p,r),S=x(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${v.value}px`:void 0}));return bt(d9,Nt({panels:d,percentSizes:g,pxSizes:p,layout:l,lazy:r,movingIndex:m,containerSize:u,onMoveStart:O=>{y(O),a("resizeStart",O,p.value)},onMoving:(O,I)=>{b(O,I),r.value||a("resize",O,p.value)},onMoveEnd:async O=>{w(),await Ie(),a("resizeEnd",O,p.value)},onCollapse:(O,I)=>{C(O,I),a("collapse",O,I,p.value)},registerPanel:f,unregisterPanel:c})),(O,I)=>(_(),$("div",{ref_key:"containerEl",ref:s,class:R([i(n).b(),i(n).e(l.value)]),style:We(S.value)},[oe(O.$slots,"default"),Q(i(h)),re(" Prevent iframe touch events from breaking "),i(m)?(_(),$("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${l.value}`)])},null,2)):re("v-if",!0)],6))}}),kse=xse;function Ese(e){return e&&Mt(e)?e:{start:!!e,end:!!e}}function h4(e,t,n,a){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&a===0&&t>0)}var Tse=D({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ve("splitter-bar"),a=e,o=t,l=x(()=>a.layout==="horizontal"),r=x(()=>l.value?{width:0}:{height:0}),s=x(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:a.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=x(()=>{const b=n.e("dragger");return{[`${b}-horizontal`]:l.value,[`${b}-vertical`]:!l.value,[`${b}-active`]:!!c.value}}),c=V(null),d=b=>{a.resizable&&(c.value=[b.pageX,b.pageY],o("moveStart",a.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",h))},f=b=>{if(a.resizable&&b.touches.length===1){b.preventDefault();const w=b.touches[0];c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},h=b=>{const{pageX:w,pageY:C}=b,S=w-c.value[0],k=C-c.value[1],T=l.value?S:k;o("moving",a.index,T)},g=b=>{if(b.touches.length===1){b.preventDefault();const w=b.touches[0],C=w.pageX-c.value[0],S=w.pageY-c.value[1],k=l.value?C:S;o("moving",a.index,k)}},p=()=>{c.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",h),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=x(()=>l.value?jo:Du),y=x(()=>l.value?Jn:bo);return(b,w)=>(_(),$("div",{class:R([i(n).b()]),style:We(r.value)},[e.startCollapsible?(_(),$("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=C=>o("collapse",e.index,"start"))},[oe(b.$slots,"start-collapsible",{},()=>[(_(),ie(ut(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),E("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:We(s.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(_(),$("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=C=>o("collapse",e.index,"end"))},[oe(b.$slots,"end-collapsible",{},()=>[(_(),ie(ut(y.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),Mse=Tse;const v4="ElSplitterPanel";var Ose=D({name:v4,__name:"split-panel",props:bse,emits:wse,setup(e,{expose:t,emit:n}){const a=ve("splitter-panel"),o=e,l=n,r=Ne(d9);r||on(v4,"usage: ");const{panels:s,layout:u,lazy:c,containerSize:d,pxSizes:f}=Bn(r),{registerPanel:h,unregisterPanel:g,onCollapse:p,onMoveEnd:v,onMoveStart:m,onMoving:y}=r,b=V(),w=ht(),C=w.uid,S=V(0),k=x(()=>s.value[S.value]),T=P=>{S.value=P},M=x(()=>k.value?f.value[S.value]??0:0),A=x(()=>k.value?f.value[S.value+1]??0:0),O=x(()=>k.value?s.value[S.value+1]:null),I=x(()=>{var P;return O.value?o.resizable&&((P=O.value)==null?void 0:P.resizable)&&(M.value!==0||!o.min)&&(A.value!==0||!O.value.min):!1}),L=x(()=>k.value?S.value!==s.value.length-1:!1),z=x(()=>h4(k.value,M.value,O.value,A.value)),q=x(()=>h4(O.value,A.value,k.value,M.value));function U(P){return Tv(P)?kv(P)*d.value||0:Mv(P)?Ev(P):P??0}let F=!1;fe(()=>o.size,()=>{if(!F&&k.value){if(!d.value){k.value.size=o.size;return}const P=U(o.size),B=U(o.max),W=U(o.min),K=Math.min(Math.max(P,W||0),B||P);K!==P&&l("update:size",K),k.value.size=K}}),fe(()=>{var P;return(P=k.value)==null?void 0:P.size},P=>{P!==o.size&&(F=!0,l("update:size",P),Ie(()=>F=!1))}),fe(()=>o.resizable,P=>{k.value&&(k.value.resizable=P)});const N=Nt({uid:C,getVnode:()=>w.vnode,setIndex:T,...o,collapsible:x(()=>Ese(o.collapsible))});return h(N),Lt(()=>g(N)),t({splitterPanelRef:b}),(P,B)=>(_(),$(He,null,[E("div",pt({ref_key:"panelEl",ref:b,class:[i(a).b()],style:{flexBasis:`${M.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),L.value?(_(),ie(Mse,{key:0,index:S.value,layout:i(u),lazy:i(c),resizable:I.value,"start-collapsible":z.value,"end-collapsible":q.value,onMoveStart:i(m),onMoving:i(y),onMoveEnd:i(v),onCollapse:i(p)},{"start-collapsible":ae(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ae(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),f9=Ose;const $se=rt(kse,{SplitPanel:f9}),Ase=ln(f9),Rse="2.13.7",Nse=(e=[])=>({version:Rse,install:(n,a)=>{n[E1]||(n[E1]=!0,e.forEach(o=>n.use(o)),a&&Ih(a,n,!0))}}),$a="ElInfiniteScroll",Pse=50,Ise=200,Lse=0,Vse={delay:{type:Number,default:Ise},distance:{type:Number,default:Lse},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ov=(e,t)=>Object.entries(Vse).reduce((n,[a,o])=>{const{type:l,default:r}=o,s=e.getAttribute(`infinite-scroll-${a}`);let u=t[s]??s??r;return u=u==="false"?!1:u,u=l(u),n[a]=Number.isNaN(u)?r:u,n},{}),p9=e=>{const{observer:t}=e[$a];t&&(t.disconnect(),delete e[$a].observer)},Bse=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[$a],{disabled:s,distance:u}=Ov(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-r;if(e[$a].lastScrollTop=f,l||s||h<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:v}=e,m=V2(e,a);g=f+c>=m+p+v-u}g&&t.call(o)};function A0(e,t){const{containerEl:n,instance:a}=e[$a],{disabled:o}=Ov(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):p9(e))}const zse={async mounted(e,t){const{instance:n,value:a}=t;Lo({scope:$a,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),ct(a)||on($a,"'v-infinite-scroll' binding value must be a function"),await Ie();const{delay:o,immediate:l}=Ov(e,n),r=rh(e,!0),s=r===window?document.documentElement:r,u=Dl(Bse.bind(null,e,a),o);if(r){if(e[$a]={instance:n,container:r,containerEl:s,delay:o,cb:a,onScroll:u,lastScrollTop:s.scrollTop},l){const c=new MutationObserver(Dl(A0.bind(null,e,a),Pse));e[$a].observer=c,c.observe(e,{childList:!0,subtree:!0}),A0(e,a)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[$a])return;const{container:t,onScroll:n}=e[$a];t==null||t.removeEventListener("scroll",n),p9(e)},async updated(e){if(!e[$a])await Ie();else{const{containerEl:t,cb:n,observer:a}=e[$a];t.clientHeight&&a&&A0(e,n)}}},rp=zse;rp.install=e=>{e.directive("InfiniteScroll",rp)};const Dse=rp;function Hse(e,t){let n;const a=V(!1),o=Nt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){o.text=h}function r(){const h=o.parent,g=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(sa(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),sa(h,g.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function u(){var h;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!a.value)return;const h=o.parent;a.value=!1,h.vLoadingAddClassList=void 0,r()}const d=M6(D({name:"ElLoading",setup(h,{expose:g}){const{ns:p,zIndex:v}=Cf("loading");return g({ns:p,zIndex:v}),()=>{const m=o.spinner||o.svg,y=qe("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[qe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?qe("p",{class:p.b("text")},[o.text]):void 0;return qe(qn,{name:p.b("fade"),onAfterLeave:c},{default:ae(()=>[dt(Q("div",{style:{backgroundColor:o.background||""},class:[p.b("mask"),o.customClass,p.is("fullscreen",o.fullscreen)]},[qe("div",{class:p.b("spinner")},[y,b])]),[[At,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Bn(o),setText:l,removeElLoadingChild:s,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let Sc;const xs=function(e={},t){if(!Rt)return;const n=Fse(e);if(n.fullscreen&&Sc)return Sc;const a=Hse({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(Sc=void 0)}},t??xs._context);Kse(n,n.parent,a),m4(n,n.parent,a),n.parent.vLoadingAddClassList=()=>m4(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Ie(()=>a.visible.value=n.visible),n.fullscreen&&(Sc=a),a},Fse=e=>{let t;return Ue(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},Kse=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=ol(document.body,"position"),n.originalOverflow.value=ol(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=ol(document.body,"position"),await Ie();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";o[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(ol(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])o[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=ol(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},m4=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?sa(t,a.bm("parent","relative")):Ka(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ka(t,a.bm("parent","hidden")):sa(t,a.bm("parent","hidden"))};xs._context=null;const Ti=Symbol("ElLoading"),cr=e=>`element-loading-${XS(e)}`,g4=(e,t)=>{const n=t.instance,a=c=>Mt(t.value)?t.value[c]:void 0,o=c=>V(Ue(c)&&(n==null?void 0:n[c])||c),l=c=>o(a(c)||e.getAttribute(cr(c))),r=a("fullscreen")??t.modifiers.fullscreen,s={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:r,target:a("target")??(r?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=xs(s);u._context=Fi._context,e[Ti]={options:s,instance:u}},Wse=(e,t)=>{for(const n of Object.keys(e))Gt(e[n])&&(e[n].value=t[n])},Fi={mounted(e,t){t.value&&g4(e,t)},updated(e,t){const n=e[Ti];if(!t.value){n==null||n.instance.close(),e[Ti]=null;return}n?Wse(n.options,Mt(t.value)?t.value:{text:e.getAttribute(cr("text")),svg:e.getAttribute(cr("svg")),svgViewBox:e.getAttribute(cr("svgViewBox")),spinner:e.getAttribute(cr("spinner")),background:e.getAttribute(cr("background")),customClass:e.getAttribute(cr("customClass"))}):g4(e,t)},unmounted(e){var t;(t=e[Ti])==null||t.instance.close(),e[Ti]=null}};Fi._context=null;const jse={install(e){xs._context=e._context,Fi._context=e._context,e.directive("loading",Fi),e.config.globalProperties.$loading=xs},directive:Fi,service:xs},h9=["primary","success","info","warning","error"],v9=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ks="top",ea=un({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Rt?document.body:void 0}),qse=Ce({customClass:{type:String,default:ea.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ea.dangerouslyUseHTMLString},duration:{type:Number,default:ea.duration},icon:{type:Ft,default:ea.icon},id:{type:String,default:ea.id},message:{type:J([String,Object,Function]),default:ea.message},onClose:{type:J(Function),default:ea.onClose},showClose:{type:Boolean,default:ea.showClose},type:{type:String,values:h9,default:ea.type},plain:{type:Boolean,default:ea.plain},offset:{type:Number,default:ea.offset},placement:{type:String,values:v9,default:ea.placement},zIndex:{type:Number,default:ea.zIndex},grouping:{type:Boolean,default:ea.grouping},repeatNum:{type:Number,default:ea.repeatNum}}),Use={destroy:()=>!0},ao=Fd({}),Yse=e=>(ao[e]||(ao[e]=Fd([])),ao[e]),Gse=(e,t)=>{const n=ao[t]||[],a=n.findIndex(r=>r.id===e),o=n[a];let l;return a>0&&(l=n[a-1]),{current:o,prev:l}},Xse=(e,t)=>{const{prev:n}=Gse(e,t);return n?n.vm.exposed.bottom.value:0},Jse=(e,t,n)=>(ao[n]||[]).findIndex(a=>a.id===e)>0?16:t,Zse=["id"],Qse=["innerHTML"];var eie=D({name:"ElMessage",__name:"message",props:qse,emits:Use,setup(e,{expose:t,emit:n}){const{Close:a}=Mh,o=e,l=n,r=V(!1),{ns:s,zIndex:u}=Cf("message"),{currentZIndex:c,nextZIndex:d}=u,f=V(),h=V(!1),g=V(0);let p;const v=x(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=x(()=>{const z=o.type;return{[s.bm("icon",z)]:z&&Xl[z]}}),y=x(()=>o.icon||Xl[o.type]||""),b=x(()=>o.placement||ks),w=x(()=>Xse(o.id,b.value)),C=x(()=>Math.max(Jse(o.id,o.offset,b.value)+w.value,o.offset)),S=x(()=>g.value+C.value),k=x(()=>b.value.includes("left")?s.is("left"):b.value.includes("right")?s.is("right"):s.is("center")),T=x(()=>b.value.startsWith("top")?"top":"bottom"),M=x(()=>({[T.value]:`${C.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:p}=Os(()=>{I()},o.duration))}function O(){p==null||p()}function I(){h.value=!1,Ie(()=>{var z;r.value||((z=o.onClose)==null||z.call(o),l("destroy"))})}function L(z){Kt(z)===we.esc&&I()}return mt(()=>{A(),d(),h.value=!0}),fe(()=>o.repeatNum,()=>{O(),A()}),Vt(document,"keydown",L),en(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:I}),(z,q)=>(_(),ie(qn,{name:i(s).b("fade"),onBeforeEnter:q[0]||(q[0]=U=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:q[1]||(q[1]=U=>z.$emit("destroy")),persisted:""},{default:ae(()=>[dt(E("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(s).b(),{[i(s).m(e.type)]:e.type},i(s).is("closable",e.showClose),i(s).is("plain",e.plain),i(s).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:We(M.value),role:"alert",onMouseenter:O,onMouseleave:A},[e.repeatNum>1?(_(),ie(i(cb),{key:0,value:e.repeatNum,type:v.value,class:R(i(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),y.value?(_(),ie(i(ze),{key:1,class:R([i(s).e("icon"),m.value])},{default:ae(()=>[(_(),ie(ut(y.value)))]),_:1},8,["class"])):re("v-if",!0),oe(z.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),$(He,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:R(i(s).e("content")),innerHTML:e.message},null,10,Qse)],2112)):(_(),$("p",{key:0,class:R(i(s).e("content"))},_e(e.message),3))]),e.showClose?(_(),ie(i(ze),{key:2,class:R(i(s).e("closeBtn")),onClick:Xe(I,["stop"])},{default:ae(()=>[Q(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,Zse),[[At,h.value]])]),_:3},8,["name","onBeforeLeave"]))}}),tie=eie;let nie=1;const aie=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ue(e.appendTo)){let t=document.querySelector(e.appendTo);_a(t)||(ft("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},oie=e=>{!e.placement&&Ue(na.placement)&&na.placement&&(e.placement=na.placement),e.placement||(e.placement=ks),v9.includes(e.placement)||(ft("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${ks}'.`),e.placement=ks)},m9=e=>{const t=!e||Ue(e)||Wt(e)||ct(e)?{message:e}:e,n={...ea,...t};return aie(n),oie(n),Dt(na.grouping)&&!n.grouping&&(n.grouping=na.grouping),De(na.duration)&&n.duration===3e3&&(n.duration=na.duration),De(na.offset)&&n.offset===16&&(n.offset=na.offset),Dt(na.showClose)&&!n.showClose&&(n.showClose=na.showClose),Dt(na.plain)&&!n.plain&&(n.plain=na.plain),n},lie=e=>{const t=ao[e.props.placement||ks],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},rie=({appendTo:e,...t},n)=>{const a=`message_${nie++}`,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{o==null||o(),lie(c)},onDestroy:()=>{Ul(null,l)}},s=Q(tie,r,ct(r.message)||Wt(r.message)?{default:ct(r.message)?r.message:()=>r.message}:null);s.appContext=n||Fr._context,Ul(s,l),e.appendChild(l.firstElementChild);const u=s.component,c={id:a,vnode:s,vm:u,handler:{close:()=>{u.exposed.close()}},props:s.component.props};return c},Fr=(e={},t)=>{if(!Rt)return{close:()=>{}};const n=m9(e),a=Yse(n.placement||ks);if(n.grouping&&a.length){const l=a.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(De(na.max)&&a.length>=na.max)return{close:()=>{}};const o=rie(n,t);return a.push(o),o.handler};h9.forEach(e=>{Fr[e]=(t={},n)=>Fr({...m9(t),type:e},n)});function sie(e){for(const t in ao)if(An(ao,t)){const n=[...ao[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function iie(e){ao[e]&&[...ao[e]].forEach(t=>t.handler.close())}Fr.closeAll=sie;Fr.closeAllByPlacement=iie;Fr._context=null;const g9=Sy(Fr,"$message");var uie=D({name:"ElMessageBox",directives:{TrapFocus:TM},components:{ElButton:Ln,ElFocusTrap:ai,ElInput:jn,ElOverlay:Zh,ElIcon:ze,...Mh},inheritAttrs:!1,props:{buttonSize:{type:String,validator:g5},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=Cf("message-box",x(()=>e.buttonSize)),{t:r}=n,{nextZIndex:s}=a,u=V(!1),c=Nt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Io(io),cancelButtonLoadingIcon:Io(io),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=x(()=>{const U=c.type;return{[o.bm("icon",U)]:U&&Xl[U]}}),f=Un(),h=Un(),g=x(()=>{const U=c.type;return c.icon||U&&Xl[U]||""}),p=x(()=>!!c.message),v=V(),m=V(),y=V(),b=V(),w=V(),C=x(()=>c.confirmButtonClass);fe(()=>c.inputValue,async U=>{await Ie(),e.boxType==="prompt"&&U&&I()},{immediate:!0}),fe(()=>u.value,U=>{var F;U&&(e.boxType!=="prompt"&&(c.autofocus?y.value=((F=w.value)==null?void 0:F.$el)??v.value:y.value=v.value),c.zIndex=s()),e.boxType==="prompt"&&(U?Ie().then(()=>{b.value&&b.value.$el&&(c.autofocus?y.value=L()??v.value:y.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:S}=D8(v,m,x(()=>e.draggable),x(()=>e.overflow));mt(async()=>{await Ie(),e.closeOnHashChange&&window.addEventListener("hashchange",k)}),Lt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",k)});function k(){u.value&&(u.value=!1,Ie(()=>{c.action&&t("action",c.action)}))}const T=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},M=mh(T),A=U=>{var F;if(c.inputType!=="textarea"&&!((F=b.value)!=null&&F.isComposing))return U.preventDefault(),O("confirm")},O=U=>{var F;e.boxType==="prompt"&&U==="confirm"&&!I()||(c.action=U,c.beforeClose?(F=c.beforeClose)==null||F.call(c,U,c,k):k())},I=()=>{if(e.boxType==="prompt"){const U=c.inputPattern;if(U&&!U.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const F=c.inputValidator;if(ct(F)){const N=F(c.inputValue);if(N===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Ue(N))return c.editorErrorMessage=N,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},L=()=>{var F;const U=(F=b.value)==null?void 0:F.$refs;return(U==null?void 0:U.input)??(U==null?void 0:U.textarea)},z=()=>{O("close")},q=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&cf(u,{ns:o}),{...Bn(c),ns:o,overlayEvent:M,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:h,btnSize:l,iconComponent:g,confirmButtonClasses:C,rootRef:v,focusStartRef:y,headerRef:m,inputRef:b,isDragging:S,confirmRef:w,doClose:k,handleClose:z,onCloseRequested:q,handleWrapperClick:T,handleInputEnter:A,handleAction:O,t:r}}});const cie=["aria-label","aria-describedby"],die=["aria-label"],fie=["id"];function pie(e,t,n,a,o,l){const r=$t("el-icon"),s=$t("el-input"),u=$t("el-button"),c=$t("el-focus-trap"),d=$t("el-overlay");return _(),ie(qn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ae(()=>[dt(Q(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ae(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ae(()=>[E("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:We(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Xe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(_(),$("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[E("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),E("span",null,_e(e.title),1)],2),e.showClose?(_(),$("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=rn(Xe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(r,{class:R(e.ns.e("close"))},{default:ae(()=>[(_(),ie(ut(e.closeIcon||"close")))]),_:1},8,["class"])],42,die)):re("v-if",!0)],2)):re("v-if",!0),E("div",{id:e.contentId,class:R(e.ns.e("content"))},[E("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(_(),$("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ie(ut(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ie(ut(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:_e(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),dt(E("div",{class:R(e.ns.e("input"))},[Q(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:rn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:R(e.ns.e("errormsg")),style:We({visibility:e.editorErrorMessage?"visible":"hidden"})},_e(e.editorErrorMessage),7)],2),[[At,e.showInput]])],10,fie),E("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(_(),ie(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=rn(Xe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ae(()=>[_t(_e(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),dt(Q(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=rn(Xe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ae(()=>[_t(_e(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[At,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,cie)]),_:3},8,["z-index","overlay-class","mask"]),[[At,e.visible]])]),_:3})}var hie=$n(uie,[["render",pie]]);const mu=new Map,vie=e=>{let t=document.body;return e.appendTo&&(Ue(e.appendTo)&&(t=document.querySelector(e.appendTo)),_a(e.appendTo)&&(t=e.appendTo),_a(t)||(ft("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},mie=(e,t,n=null)=>{const a=Q(hie,e,ct(e.message)||Wt(e.message)?{default:ct(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Ul(a,t),vie(e).appendChild(t.firstElementChild),a.component},gie=()=>document.createElement("div"),yie=(e,t)=>{const n=gie();e.onVanish=()=>{Ul(null,n),mu.delete(o)},e.onAction=l=>{const r=mu.get(o);let s;e.showInput?s={value:o.inputValue,action:l}:s=l,e.callback?e.callback(s,a.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(s)};const a=mie(e,n,t),o=a.proxy;for(const l in e)An(e,l)&&!An(o.$props,l)&&(l==="closeIcon"&&Mt(e[l])?o[l]=Io(e[l]):o[l]=e[l]);return o.visible=!0,o};function li(e,t=null){if(!Rt)return Promise.reject();let n;return Ue(e)||Wt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const l=yie(e,t??li._context);mu.set(l,{options:e,callback:n,resolve:a,reject:o})})}const bie=["alert","confirm","prompt"],wie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};bie.forEach(e=>{li[e]=Cie(e)});function Cie(e){return(t,n,a,o)=>{let l="";return Mt(n)?(a=n,l=""):kt(n)?l="":l=n,li(Object.assign({title:l,message:t,type:"",...wie[e]},a,{boxType:e}),o)}}li.close=()=>{mu.forEach((e,t)=>{t.doClose()}),mu.clear()};li._context=null;const Ll=li;Ll.install=e=>{Ll._context=e._context,e.config.globalProperties.$msgbox=Ll,e.config.globalProperties.$messageBox=Ll,e.config.globalProperties.$alert=Ll.alert,e.config.globalProperties.$confirm=Ll.confirm,e.config.globalProperties.$prompt=Ll.prompt};const _ie=Ll,y9=["primary","success","info","warning","error"],Sie=Ce({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ft},id:{type:String,default:""},message:{type:J([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:J(Function),default:()=>{}},onClose:{type:J(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...y9,""],default:""},zIndex:Number,closeIcon:{type:Ft,default:Ba}}),xie={destroy:()=>!0},kie=["id"],Eie=["textContent"],Tie={key:0},Mie=["innerHTML"];var Oie=D({name:"ElNotification",__name:"notification",props:Sie,emits:xie,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=Cf("notification"),{nextZIndex:l,currentZIndex:r}=o,s=V(!1);let u;const c=x(()=>{const b=n.type;return b&&Xl[n.type]?a.m(b):""}),d=x(()=>n.type&&Xl[n.type]||n.icon),f=x(()=>n.position.endsWith("right")?"right":"left"),h=x(()=>n.position.startsWith("top")?"top":"bottom"),g=x(()=>({[h.value]:`${n.offset}px`,zIndex:n.zIndex??r.value}));function p(){n.duration>0&&({stop:u}=Os(()=>{s.value&&m()},n.duration))}function v(){u==null||u()}function m(){s.value=!1}function y(b){switch(Kt(b)){case we.delete:case we.backspace:v();break;case we.esc:s.value&&m();break;default:p();break}}return mt(()=>{p(),l(),s.value=!0}),Vt(document,"keydown",y),t({visible:s,close:m}),(b,w)=>(_(),ie(qn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=C=>b.$emit("destroy")),persisted:""},{default:ae(()=>[dt(E("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:We(g.value),role:"alert",onMouseenter:v,onMouseleave:p,onClick:w[0]||(w[0]=(...C)=>e.onClick&&e.onClick(...C))},[d.value?(_(),ie(i(ze),{key:0,class:R([i(a).e("icon"),c.value])},{default:ae(()=>[(_(),ie(ut(d.value)))]),_:1},8,["class"])):re("v-if",!0),E("div",{class:R(i(a).e("group"))},[E("h2",{class:R(i(a).e("title")),textContent:_e(e.title)},null,10,Eie),dt(E("div",{class:R(i(a).e("content")),style:We(e.title?void 0:{margin:0})},[oe(b.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),$(He,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:e.message},null,8,Mie)],2112)):(_(),$("p",Tie,_e(e.message),1))])],6),[[At,e.message]]),e.showClose?(_(),ie(i(ze),{key:0,class:R(i(a).e("closeBtn")),onClick:Xe(m,["stop"])},{default:ae(()=>[(_(),ie(ut(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,kie),[[At,s.value]])]),_:3},8,["name","onBeforeLeave"]))}}),$ie=Oie;const js={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Rd=16;let Aie=1;const Kr=function(e={},t){if(!Rt)return{close:()=>{}};(Ue(e)||Wt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;js[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Rd}),a+=Rd;const o=`notification_${Aie++}`,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{Rie(o,n,l)}};let s=document.body;_a(e.appendTo)?s=e.appendTo:Ue(e.appendTo)&&(s=document.querySelector(e.appendTo)),_a(s)||(ft("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const u=document.createElement("div"),c=Q($ie,r,ct(r.message)?r.message:Wt(r.message)?()=>r.message:null);return c.appContext=kt(t)?Kr._context:t,c.props.onDestroy=()=>{Ul(null,u)},Ul(c,u),js[n].push({vm:c}),s.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};y9.forEach(e=>{Kr[e]=(t={},n)=>((Ue(t)||Wt(t))&&(t={message:t}),Kr({...t,type:e},n))});function Rie(e,t,n){const a=js[t],o=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:l}=a[o];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,s=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function Pie(e="top-right"){var n,a,o,l;let t=((o=(a=(n=js[e][0])==null?void 0:n.vm.component)==null?void 0:a.props)==null?void 0:o.offset)||0;for(const{vm:r}of js[e])r.component.props.offset=t,t+=(((l=r.el)==null?void 0:l.offsetHeight)||0)+Rd}Kr.closeAll=Nie;Kr.updateOffsets=Pie;Kr._context=null;const Iie=Sy(Kr,"$notify");var Lie=[pA,TH,LK,roe,FK,KK,GK,cb,lW,rW,Ln,gb,Uj,Jj,fq,pq,sU,Zb,fU,fo,Oq,Kh,_U,VU,BU,Sf,cw,fY,fW,bY,wY,CY,_Y,SY,nX,_w,dX,fX,TX,$w,DX,TJ,MJ,OJ,zw,kF,EF,ze,gZ,Dw,jn,Hw,PZ,DZ,nQ,aQ,oQ,lQ,dQ,jQ,XQ,oee,ob,Yw,Jb,Hq,Dq,bee,See,bU,uo,Jl,gd,Tj,dte,gte,yte,Bte,Kte,h5,Zte,lne,rne,mne,xae,kae,loe,boe,woe,dl,yv,tj,Moe,Noe,Poe,Fn,Uoe,Cv,vle,Ale,ore,hre,zre,Dre,Gre,Xre,ase,mse,$se,Ase],Vie=[Dse,jse,g9,_ie,Iie,Uw],$v=Nse([...Lie,...Vie]);$v.install;$v.version;var Bie=$v;const zie={__name:"App",setup(e){return mt(()=>{const t=localStorage.getItem("theme");t?document.documentElement.classList.toggle("dark",t==="dark"):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("dark")}),(t,n)=>{const a=$t("router-view");return _(),ie(a)}}},Die="modulepreload",Hie=function(e){return"/"+e},y4={},ir=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=Hie(u),u in y4)return;y4[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Die,c||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return o.then(r=>{for(const s of r||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})};/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const ds=typeof document<"u";function b9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&b9(e.default)}const nn=Object.assign;function R0(e,t){const n={};for(const a in t){const o=t[a];n[a]=po(o)?o.map(e):e(o)}return n}const Ki=()=>{},po=Array.isArray;function b4(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const w9=/#/g,Kie=/&/g,Wie=/\//g,jie=/=/g,qie=/\?/g,C9=/\+/g,Uie=/%5B/g,Yie=/%5D/g,_9=/%5E/g,Gie=/%60/g,S9=/%7B/g,Xie=/%7C/g,x9=/%7D/g,Jie=/%20/g;function Av(e){return e==null?"":encodeURI(""+e).replace(Xie,"|").replace(Uie,"[").replace(Yie,"]")}function Zie(e){return Av(e).replace(S9,"{").replace(x9,"}").replace(_9,"^")}function sp(e){return Av(e).replace(C9,"%2B").replace(Jie,"+").replace(w9,"%23").replace(Kie,"%26").replace(Gie,"`").replace(S9,"{").replace(x9,"}").replace(_9,"^")}function Qie(e){return sp(e).replace(jie,"%3D")}function eue(e){return Av(e).replace(w9,"%23").replace(qie,"%3F")}function tue(e){return eue(e).replace(Wie,"%2F")}function gu(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const nue=/\/$/,aue=e=>e.replace(nue,"");function N0(e,t,n="/"){let a,o={},l="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,s>0?s:t.length),o=e(l.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=sue(a??t,n),{fullPath:a+l+r,path:a,query:o,hash:gu(r)}}function oue(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function w4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lue(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&qs(t.matched[a],n.matched[o])&&k9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function k9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rue(e[n],t[n]))return!1;return!0}function rue(e,t){return po(e)?C4(e,t):po(t)?C4(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function C4(e,t){return po(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function sue(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,s;for(r=0;r1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Rl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ip=function(e){return e.pop="pop",e.push="push",e}({}),P0=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function iue(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aue(e)}const uue=/^[^#]+#/;function cue(e,t){return e.replace(uue,"#")+t}function due(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Of=()=>({left:window.scrollX,top:window.scrollY});function fue(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=due(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _4(e,t){return(history.state?history.state.position-t:-1)+e}const up=new Map;function pue(e,t){up.set(e,t)}function hue(e){const t=up.get(e);return up.delete(e),t}function vue(e){return typeof e=="string"||e&&typeof e=="object"}function E9(e){return typeof e=="string"||typeof e=="symbol"}let Tn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const T9=Symbol("");Tn.MATCHER_NOT_FOUND+"",Tn.NAVIGATION_GUARD_REDIRECT+"",Tn.NAVIGATION_ABORTED+"",Tn.NAVIGATION_CANCELLED+"",Tn.NAVIGATION_DUPLICATED+"";function Us(e,t){return nn(new Error,{type:e,[T9]:!0},t)}function Zo(e,t){return e instanceof Error&&T9 in e&&(t==null||!!(e.type&t))}const mue=["params","query","hash"];function gue(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of mue)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function yue(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&sp(o)):[a&&sp(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function bue(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=po(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const wue=Symbol(""),x4=Symbol(""),$f=Symbol(""),Rv=Symbol(""),cp=Symbol("");function wi(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bl(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((s,u)=>{const c=h=>{h===!1?u(Us(Tn.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):vue(h)?u(Us(Tn.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&a.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(h=>u(h))})}function I0(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const s in r.components){let u=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(b9(u)){const c=(u.__vccOpts||u)[t];c&&l.push(Bl(c,n,a,r,s,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${r.path}"`);const f=Fie(d)?d.default:d;r.mods[s]=d,r.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Bl(h,n,a,r,s,o)()}))}}return l}function Cue(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rqs(c,s))?a.push(s):n.push(s));const u=e.matched[r];u&&(t.matched.find(c=>qs(c,u))||o.push(u))}return[n,a,o]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let _ue=()=>location.protocol+"//"+location.host;function M9(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let r=o.includes(e.slice(l))?e.slice(l).length:1,s=o.slice(r);return s[0]!=="/"&&(s="/"+s),w4(s,"")}return w4(n,e)+a+o}function Sue(e,t,n,a){let o=[],l=[],r=null;const s=({state:h})=>{const g=M9(e,location),p=n.value,v=t.value;let m=0;if(h){if(n.value=g,t.value=h,r&&r===p){r=null;return}m=v?h.position-v.position:0}else a(g);o.forEach(y=>{y(n.value,p,{delta:m,type:ip.pop,direction:m?m>0?P0.forward:P0.back:P0.unknown})})};function u(){r=n.value}function c(h){o.push(h);const g=()=>{const p=o.indexOf(h);p>-1&&o.splice(p,1)};return l.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(nn({},h.state,{scroll:Of()}),"")}}function f(){for(const h of l)h();l=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function k4(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Of():null}}function xue(e){const{history:t,location:n}=window,a={value:M9(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:_ue()+e+u;try{t[d?"replaceState":"pushState"](c,"",h),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function r(u,c){l(u,nn({},t.state,k4(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function s(u,c){const d=nn({},o.value,t.state,{forward:u,scroll:Of()});l(d.current,d,!0),l(u,nn({},k4(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:s,replace:r}}function kue(e){e=iue(e);const t=xue(e),n=Sue(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=nn({location:"",base:e,go:a,createHref:cue.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Sr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Dn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Dn||{});const Eue={type:Sr.Static,value:""},Tue=/[a-zA-Z0-9_]/;function Mue(e){if(!e)return[[]];if(e==="/")return[[Eue]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=Dn.Static,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let s=0,u,c="",d="";function f(){c&&(n===Dn.Static?l.push({type:Sr.Static,value:c}):n===Dn.Param||n===Dn.ParamRegExp||n===Dn.ParamRegExpEnd?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:Sr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=u}for(;st.length?t.length===1&&t[0]===fa.Static+fa.Segment?1:-1:0}function O9(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Nue={strict:!1,end:!0,sensitive:!1};function Pue(e,t,n){const a=Aue(Mue(e.path),n),o=nn(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Iue(e,t){const n=[],a=new Map;t=b4(Nue,t);function o(f){return a.get(f)}function l(f,h,g){const p=!g,v=O4(f);v.aliasOf=g&&g.record;const m=b4(t,f),y=[v];if("alias"in f){const C=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of C)y.push(O4(nn({},v,{components:g?g.record.components:v.components,path:S,aliasOf:g?g.record:v})))}let b,w;for(const C of y){const{path:S}=C;if(h&&S[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";C.path=h.record.path+(S&&T+S)}if(b=Pue(C,h,m),g?g.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&f.name&&!$4(b)&&r(f.name)),$9(b)&&u(b),v.children){const k=v.children;for(let T=0;T{r(w)}:Ki}function r(f){if(E9(f)){const h=a.get(f);h&&(a.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function s(){return n}function u(f){const h=Bue(f,n);n.splice(h,0,f),f.record.name&&!$4(f)&&a.set(f.record.name,f)}function c(f,h){let g,p={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Us(Tn.MATCHER_NOT_FOUND,{location:f});m=g.record.name,p=nn(M4(h.params,g.keys.filter(w=>!w.optional).concat(g.parent?g.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&M4(f.params,g.keys.map(w=>w.name))),v=g.stringify(p)}else if(f.path!=null)v=f.path,g=n.find(w=>w.re.test(v)),g&&(p=g.parse(v),m=g.record.name);else{if(g=h.name?a.get(h.name):n.find(w=>w.re.test(h.path)),!g)throw Us(Tn.MATCHER_NOT_FOUND,{location:f,currentLocation:h});m=g.record.name,p=nn({},h.params,f.params),v=g.stringify(p)}const y=[];let b=g;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:v,params:p,matched:y,meta:Vue(y)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function M4(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function O4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Lue(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Lue(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function $4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vue(e){return e.reduce((t,n)=>nn(t,n.meta),{})}function Bue(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;O9(e,t[l])<0?a=l:n=l+1}const o=zue(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function zue(e){let t=e;for(;t=t.parent;)if($9(t)&&O9(e,t)===0)return t}function $9({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function A4(e){const t=Ne($f),n=Ne(Rv),a=x(()=>{const u=i(e.to);return t.resolve(u)}),o=x(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(qs.bind(null,d));if(h>-1)return h;const g=R4(u[c-2]);return c>1&&R4(d)===g&&f[f.length-1].path!==g?f.findIndex(qs.bind(null,u[c-2])):h}),l=x(()=>o.value>-1&&Wue(n.params,a.value.params)),r=x(()=>o.value>-1&&o.value===n.matched.length-1&&k9(n.params,a.value.params));function s(u={}){if(Kue(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Ki);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:x(()=>a.value.href),isActive:l,isExactActive:r,navigate:s}}function Due(e){return e.length===1?e[0]:e}const Hue=D({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"},viewTransition:Boolean},useLink:A4,setup(e,{slots:t}){const n=Nt(A4(e)),{options:a}=Ne($f),o=x(()=>({[N4(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[N4(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Due(t.default(n));return e.custom?l:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),Fue=Hue;function Kue(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 Wue(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!po(o)||o.length!==a.length||a.some((l,r)=>l.valueOf()!==o[r].valueOf()))return!1}return!0}function R4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const N4=(e,t,n)=>e??t??n,jue=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Ne(cp),o=x(()=>e.route||a.value),l=Ne(x4,0),r=x(()=>{let c=i(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),s=x(()=>o.value.matched[r.value]);bt(x4,x(()=>r.value+1)),bt(wue,s),bt(cp,o);const u=V();return fe(()=>[u.value,s.value,e.name],([c,d,f],[h,g,p])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!qs(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=s.value,h=f&&f.components[d];if(!h)return P4(n.default,{Component:h,route:c});const g=f.props[d],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=qe(h,nn({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return P4(n.default,{Component:m,route:c})||m}}});function P4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const que=jue;function Uue(e){const t=Iue(e.routes,e),n=e.parseQuery||yue,a=e.stringifyQuery||S4,o=e.history,l=wi(),r=wi(),s=wi(),u=qt(Rl);let c=Rl;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=R0.bind(null,ne=>""+ne),f=R0.bind(null,tue),h=R0.bind(null,gu);function g(ne,de){let se,Y;return E9(ne)?(se=t.getRecordMatcher(ne),Y=de):Y=ne,t.addRoute(Y,se)}function p(ne){const de=t.getRecordMatcher(ne);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(ne=>ne.record)}function m(ne){return!!t.getRecordMatcher(ne)}function y(ne,de){if(de=nn({},de||u.value),typeof ne=="string"){const le=N0(n,ne,de.path),ce=t.resolve({path:le.path},de),ge=o.createHref(le.fullPath);return nn(le,ce,{params:h(ce.params),hash:gu(le.hash),redirectedFrom:void 0,href:ge})}let se;if(ne.path!=null)se=nn({},ne,{path:N0(n,ne.path,de.path).path});else{const le=nn({},ne.params);for(const ce in le)le[ce]==null&&delete le[ce];se=nn({},ne,{params:f(le)}),de.params=f(de.params)}const Y=t.resolve(se,de),X=ne.hash||"";Y.params=d(h(Y.params));const H=oue(a,nn({},ne,{hash:Zie(X),path:Y.path})),Z=o.createHref(H);return nn({fullPath:H,hash:X,query:a===S4?bue(ne.query):ne.query||{}},Y,{redirectedFrom:void 0,href:Z})}function b(ne){return typeof ne=="string"?N0(n,ne,u.value.path):nn({},ne)}function w(ne,de){if(c!==ne)return Us(Tn.NAVIGATION_CANCELLED,{from:de,to:ne})}function C(ne){return T(ne)}function S(ne){return C(nn(b(ne),{replace:!0}))}function k(ne,de){const se=ne.matched[ne.matched.length-1];if(se&&se.redirect){const{redirect:Y}=se;let X=typeof Y=="function"?Y(ne,de):Y;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=b(X):{path:X},X.params={}),nn({query:ne.query,hash:ne.hash,params:X.path!=null?{}:ne.params},X)}}function T(ne,de){const se=c=y(ne),Y=u.value,X=ne.state,H=ne.force,Z=ne.replace===!0,le=k(se,Y);if(le)return T(nn(b(le),{state:typeof le=="object"?nn({},X,le.state):X,force:H,replace:Z}),de||se);const ce=se;ce.redirectedFrom=de;let ge;return!H&&lue(a,Y,se)&&(ge=Us(Tn.NAVIGATION_DUPLICATED,{to:ce,from:Y}),K(Y,Y,!0,!1)),(ge?Promise.resolve(ge):O(ce,Y)).catch(me=>Zo(me)?Zo(me,Tn.NAVIGATION_GUARD_REDIRECT)?me:W(me):P(me,ce,Y)).then(me=>{if(me){if(Zo(me,Tn.NAVIGATION_GUARD_REDIRECT))return T(nn({replace:Z},b(me.to),{state:typeof me.to=="object"?nn({},X,me.to.state):X,force:H}),de||ce)}else me=L(ce,Y,!0,Z,X);return I(ce,Y,me),me})}function M(ne,de){const se=w(ne,de);return se?Promise.reject(se):Promise.resolve()}function A(ne){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(ne):ne()}function O(ne,de){let se;const[Y,X,H]=Cue(ne,de);se=I0(Y.reverse(),"beforeRouteLeave",ne,de);for(const le of Y)le.leaveGuards.forEach(ce=>{se.push(Bl(ce,ne,de))});const Z=M.bind(null,ne,de);return se.push(Z),ue(se).then(()=>{se=[];for(const le of l.list())se.push(Bl(le,ne,de));return se.push(Z),ue(se)}).then(()=>{se=I0(X,"beforeRouteUpdate",ne,de);for(const le of X)le.updateGuards.forEach(ce=>{se.push(Bl(ce,ne,de))});return se.push(Z),ue(se)}).then(()=>{se=[];for(const le of H)if(le.beforeEnter)if(po(le.beforeEnter))for(const ce of le.beforeEnter)se.push(Bl(ce,ne,de));else se.push(Bl(le.beforeEnter,ne,de));return se.push(Z),ue(se)}).then(()=>(ne.matched.forEach(le=>le.enterCallbacks={}),se=I0(H,"beforeRouteEnter",ne,de,A),se.push(Z),ue(se))).then(()=>{se=[];for(const le of r.list())se.push(Bl(le,ne,de));return se.push(Z),ue(se)}).catch(le=>Zo(le,Tn.NAVIGATION_CANCELLED)?le:Promise.reject(le))}function I(ne,de,se){s.list().forEach(Y=>A(()=>Y(ne,de,se)))}function L(ne,de,se,Y,X){const H=w(ne,de);if(H)return H;const Z=de===Rl,le=ds?history.state:{};se&&(Y||Z?o.replace(ne.fullPath,nn({scroll:Z&&le&&le.scroll},X)):o.push(ne.fullPath,X)),u.value=ne,K(ne,de,se,Z),W()}let z;function q(){z||(z=o.listen((ne,de,se)=>{if(!te.listening)return;const Y=y(ne),X=k(Y,te.currentRoute.value);if(X){T(nn(X,{replace:!0,force:!0}),Y).catch(Ki);return}c=Y;const H=u.value;ds&&pue(_4(H.fullPath,se.delta),Of()),O(Y,H).catch(Z=>Zo(Z,Tn.NAVIGATION_ABORTED|Tn.NAVIGATION_CANCELLED)?Z:Zo(Z,Tn.NAVIGATION_GUARD_REDIRECT)?(T(nn(b(Z.to),{force:!0}),Y).then(le=>{Zo(le,Tn.NAVIGATION_ABORTED|Tn.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===ip.pop&&o.go(-1,!1)}).catch(Ki),Promise.reject()):(se.delta&&o.go(-se.delta,!1),P(Z,Y,H))).then(Z=>{Z=Z||L(Y,H,!1),Z&&(se.delta&&!Zo(Z,Tn.NAVIGATION_CANCELLED)?o.go(-se.delta,!1):se.type===ip.pop&&Zo(Z,Tn.NAVIGATION_ABORTED|Tn.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),I(Y,H,Z)}).catch(Ki)}))}let U=wi(),F=wi(),N;function P(ne,de,se){W(ne);const Y=F.list();return Y.length?Y.forEach(X=>X(ne,de,se)):console.error(ne),Promise.reject(ne)}function B(){return N&&u.value!==Rl?Promise.resolve():new Promise((ne,de)=>{U.add([ne,de])})}function W(ne){return N||(N=!ne,q(),U.list().forEach(([de,se])=>ne?se(ne):de()),U.reset()),ne}function K(ne,de,se,Y){const{scrollBehavior:X}=e;if(!ds||!X)return Promise.resolve();const H=!se&&hue(_4(ne.fullPath,0))||(Y||!se)&&history.state&&history.state.scroll||null;return Ie().then(()=>X(ne,de,H)).then(Z=>Z&&fue(Z)).catch(Z=>P(Z,ne,de))}const j=ne=>o.go(ne);let G;const ee=new Set,te={currentRoute:u,listening:!0,addRoute:g,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:y,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:r.add,afterEach:s.add,onError:F.add,isReady:B,install(ne){ne.component("RouterLink",Fue),ne.component("RouterView",que),ne.config.globalProperties.$router=te,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),ds&&!G&&u.value===Rl&&(G=!0,C(o.location).catch(Y=>{}));const de={};for(const Y in Rl)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});ne.provide($f,te),ne.provide(Rv,Fd(de)),ne.provide(cp,u);const se=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(c=Rl,z&&z(),z=null,u.value=Rl,G=!1,N=!1),se()}}};function ue(ne){return ne.reduce((de,se)=>de.then(()=>A(se)),Promise.resolve())}return te}function Ide(){return Ne($f)}function Lde(e){return Ne(Rv)}function A9(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yue}=Object.prototype,{getPrototypeOf:Af}=Object,{iterator:Rf,toStringTag:R9}=Symbol,Nf=(e=>t=>{const n=Yue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_o=e=>(e=e.toLowerCase(),t=>Nf(t)===e),Pf=e=>t=>typeof t===e,{isArray:ri}=Array,Ys=Pf("undefined");function Yu(e){return e!==null&&!Ys(e)&&e.constructor!==null&&!Ys(e.constructor)&&Ea(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N9=_o("ArrayBuffer");function Gue(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&N9(e.buffer),t}const Xue=Pf("string"),Ea=Pf("function"),P9=Pf("number"),Gu=e=>e!==null&&typeof e=="object",Jue=e=>e===!0||e===!1,qc=e=>{if(Nf(e)!=="object")return!1;const t=Af(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(R9 in e)&&!(Rf in e)},Zue=e=>{if(!Gu(e)||Yu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Que=_o("Date"),ece=_o("File"),tce=e=>!!(e&&typeof e.uri<"u"),nce=e=>e&&typeof e.getParts<"u",ace=_o("Blob"),oce=_o("FileList"),lce=e=>Gu(e)&&Ea(e.pipe);function rce(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const I4=rce(),L4=typeof I4.FormData<"u"?I4.FormData:void 0,sce=e=>{if(!e)return!1;if(L4&&e instanceof L4)return!0;const t=Af(e);if(!t||t===Object.prototype||!Ea(e.append))return!1;const n=Nf(e);return n==="formdata"||n==="object"&&Ea(e.toString)&&e.toString()==="[object FormData]"},ice=_o("URLSearchParams"),[uce,cce,dce,fce]=["ReadableStream","Request","Response","Headers"].map(_o),pce=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),ri(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,L9=e=>!Ys(e)&&e!==xr;function dp(){const{caseless:e,skipUndefined:t}=L9(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const r=e&&I9(n,l)||l;qc(n[r])&&qc(o)?n[r]=dp(n[r],o):qc(o)?n[r]=dp({},o):ri(o)?n[r]=o.slice():(!t||!Ys(o))&&(n[r]=o)};for(let o=0,l=arguments.length;o(Xu(t,(o,l)=>{n&&Ea(o)?Object.defineProperty(e,l,{value:A9(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),vce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mce=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gce=(e,t,n,a)=>{let o,l,r;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)r=o[l],(!a||a(r,e,t))&&!s[r]&&(t[r]=e[r],s[r]=!0);e=n!==!1&&Af(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yce=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},bce=e=>{if(!e)return null;if(ri(e))return e;let t=e.length;if(!P9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Af(Uint8Array)),Cce=(e,t)=>{const a=(e&&e[Rf]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},_ce=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Sce=_o("HTMLFormElement"),xce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),V4=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kce=_o("RegExp"),V9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Xu(n,(o,l)=>{let r;(r=t(o,l,e))!==!1&&(a[l]=r||o)}),Object.defineProperties(e,a)},Ece=e=>{V9(e,(t,n)=>{if(Ea(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Ea(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tce=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return ri(e)?a(e):a(String(e).split(t)),n},Mce=()=>{},Oce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $ce(e){return!!(e&&Ea(e.append)&&e[R9]==="FormData"&&e[Rf])}const Ace=e=>{const t=new Array(10),n=(a,o)=>{if(Gu(a)){if(t.indexOf(a)>=0)return;if(Yu(a))return a;if(!("toJSON"in a)){t[o]=a;const l=ri(a)?[]:{};return Xu(a,(r,s)=>{const u=n(r,o+1);!Ys(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},Rce=_o("AsyncFunction"),Nce=e=>e&&(Gu(e)||Ea(e))&&Ea(e.then)&&Ea(e.catch),B9=((e,t)=>e?setImmediate:t?((n,a)=>(xr.addEventListener("message",({source:o,data:l})=>{o===xr&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),xr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ea(xr.postMessage)),Pce=typeof queueMicrotask<"u"?queueMicrotask.bind(xr):typeof process<"u"&&process.nextTick||B9,Ice=e=>e!=null&&Ea(e[Rf]),Me={isArray:ri,isArrayBuffer:N9,isBuffer:Yu,isFormData:sce,isArrayBufferView:Gue,isString:Xue,isNumber:P9,isBoolean:Jue,isObject:Gu,isPlainObject:qc,isEmptyObject:Zue,isReadableStream:uce,isRequest:cce,isResponse:dce,isHeaders:fce,isUndefined:Ys,isDate:Que,isFile:ece,isReactNativeBlob:tce,isReactNative:nce,isBlob:ace,isRegExp:kce,isFunction:Ea,isStream:lce,isURLSearchParams:ice,isTypedArray:wce,isFileList:oce,forEach:Xu,merge:dp,extend:hce,trim:pce,stripBOM:vce,inherits:mce,toFlatObject:gce,kindOf:Nf,kindOfTest:_o,endsWith:yce,toArray:bce,forEachEntry:Cce,matchAll:_ce,isHTMLForm:Sce,hasOwnProperty:V4,hasOwnProp:V4,reduceDescriptors:V9,freezeMethods:Ece,toObjectSet:Tce,toCamelCase:xce,noop:Mce,toFiniteNumber:Oce,findKey:I9,global:xr,isContextDefined:L9,isSpecCompliantForm:$ce,toJSONObject:Ace,isAsyncFn:Rce,isThenable:Nce,setImmediate:B9,asap:Pce,isIterable:Ice};let Ot=class z9 extends Error{static from(t,n,a,o,l,r){const s=new z9(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),r&&Object.assign(s,r),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Me.toJSONObject(this.config),code:this.code,status:this.status}}};Ot.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ot.ERR_BAD_OPTION="ERR_BAD_OPTION";Ot.ECONNABORTED="ECONNABORTED";Ot.ETIMEDOUT="ETIMEDOUT";Ot.ERR_NETWORK="ERR_NETWORK";Ot.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ot.ERR_DEPRECATED="ERR_DEPRECATED";Ot.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ot.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ot.ERR_CANCELED="ERR_CANCELED";Ot.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ot.ERR_INVALID_URL="ERR_INVALID_URL";Ot.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Lce=null;function fp(e){return Me.isPlainObject(e)||Me.isArray(e)}function D9(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function L0(e,t,n){return e?e.concat(t).map(function(o,l){return o=D9(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Vce(e){return Me.isArray(e)&&!e.some(fp)}const Bce=Me.toFlatObject(Me,{},null,function(t){return/^is[A-Z]/.test(t)});function If(e,t,n){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Me.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!Me.isUndefined(y[m])});const a=n.metaTokens,o=n.visitor||f,l=n.dots,r=n.indexes,s=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?100:n.maxDepth,c=s&&Me.isSpecCompliantForm(t);if(!Me.isFunction(o))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(Me.isDate(v))return v.toISOString();if(Me.isBoolean(v))return v.toString();if(!c&&Me.isBlob(v))throw new Ot("Blob is not supported. Use a Buffer instead.");return Me.isArrayBuffer(v)||Me.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,m,y){let b=v;if(Me.isReactNative(t)&&Me.isReactNativeBlob(v))return t.append(L0(y,m,l),d(v)),!1;if(v&&!y&&typeof v=="object"){if(Me.endsWith(m,"{}"))m=a?m:m.slice(0,-2),v=JSON.stringify(v);else if(Me.isArray(v)&&Vce(v)||(Me.isFileList(v)||Me.endsWith(m,"[]"))&&(b=Me.toArray(v)))return m=D9(m),b.forEach(function(C,S){!(Me.isUndefined(C)||C===null)&&t.append(r===!0?L0([m],S,l):r===null?m:m+"[]",d(C))}),!1}return fp(v)?!0:(t.append(L0(y,m,l),d(v)),!1)}const h=[],g=Object.assign(Bce,{defaultVisitor:f,convertValue:d,isVisitable:fp});function p(v,m,y=0){if(!Me.isUndefined(v)){if(y>u)throw new Ot("Object is too deeply nested ("+y+" levels). Max depth: "+u,Ot.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(v),Me.forEach(v,function(w,C){(!(Me.isUndefined(w)||w===null)&&o.call(t,w,Me.isString(C)?C.trim():C,m,g))===!0&&p(w,m?m.concat(C):[C],y+1)}),h.pop()}}if(!Me.isObject(e))throw new TypeError("data must be an object");return p(e),t}function B4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(a){return t[a]})}function Nv(e,t){this._pairs=[],e&&If(e,this,t)}const H9=Nv.prototype;H9.append=function(t,n){this._pairs.push([t,n])};H9.toString=function(t){const n=t?function(a){return t.call(this,a,B4)}:B4;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function F9(e,t,n){if(!t)return e;const a=n&&n.encode||zce,o=Me.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let r;if(l?r=l(t,o):r=Me.isURLSearchParams(t)?t.toString():new Nv(t,o).toString(a),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class z4{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Me.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Pv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Dce=typeof URLSearchParams<"u"?URLSearchParams:Nv,Hce=typeof FormData<"u"?FormData:null,Fce=typeof Blob<"u"?Blob:null,Kce={isBrowser:!0,classes:{URLSearchParams:Dce,FormData:Hce,Blob:Fce},protocols:["http","https","file","blob","url","data"]},Iv=typeof window<"u"&&typeof document<"u",pp=typeof navigator=="object"&&navigator||void 0,Wce=Iv&&(!pp||["ReactNative","NativeScript","NS"].indexOf(pp.product)<0),jce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qce=Iv&&window.location.href||"http://localhost",Uce=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Iv,hasStandardBrowserEnv:Wce,hasStandardBrowserWebWorkerEnv:jce,navigator:pp,origin:qce},Symbol.toStringTag,{value:"Module"})),ra={...Uce,...Kce};function Yce(e,t){return If(e,new ra.classes.URLSearchParams,{visitor:function(n,a,o,l){return ra.isNode&&Me.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Gce(e){return Me.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xce(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a=n.length;return r=!r&&Me.isArray(o)?o.length:r,u?(Me.hasOwnProp(o,r)?o[r]=Me.isArray(o[r])?o[r].concat(a):[o[r],a]:o[r]=a,!s):((!o[r]||!Me.isObject(o[r]))&&(o[r]=[]),t(n,a,o[r],l)&&Me.isArray(o[r])&&(o[r]=Xce(o[r])),!s)}if(Me.isFormData(e)&&Me.isFunction(e.entries)){const n={};return Me.forEachEntry(e,(a,o)=>{t(Gce(a),o,n,0)}),n}return null}const rs=(e,t)=>e!=null&&Me.hasOwnProp(e,t)?e[t]:void 0;function Jce(e,t,n){if(Me.isString(e))try{return(t||JSON.parse)(e),Me.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const Ju={transitional:Pv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=Me.isObject(t);if(l&&Me.isHTMLForm(t)&&(t=new FormData(t)),Me.isFormData(t))return o?JSON.stringify(K9(t)):t;if(Me.isArrayBuffer(t)||Me.isBuffer(t)||Me.isStream(t)||Me.isFile(t)||Me.isBlob(t)||Me.isReadableStream(t))return t;if(Me.isArrayBufferView(t))return t.buffer;if(Me.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){const u=rs(this,"formSerializer");if(a.indexOf("application/x-www-form-urlencoded")>-1)return Yce(t,u).toString();if((s=Me.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=rs(this,"env"),d=c&&c.FormData;return If(s?{"files[]":t}:t,d&&new d,u)}}return l||o?(n.setContentType("application/json",!1),Jce(t)):t}],transformResponse:[function(t){const n=rs(this,"transitional")||Ju.transitional,a=n&&n.forcedJSONParsing,o=rs(this,"responseType"),l=o==="json";if(Me.isResponse(t)||Me.isReadableStream(t))return t;if(t&&Me.isString(t)&&(a&&!o||l)){const s=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,rs(this,"parseReviver"))}catch(u){if(s)throw u.name==="SyntaxError"?Ot.from(u,Ot.ERR_BAD_RESPONSE,this,null,rs(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ra.classes.FormData,Blob:ra.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Me.forEach(["delete","get","head","post","put","patch"],e=>{Ju.headers[e]={}});const Zce=Me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qce=e=>{const t={};let n,a,o;return e&&e.split(` +`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),a=r.substring(o+1).trim(),!(!n||t[n]&&Zce[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},D4=Symbol("internals"),ede=/[^\x09\x20-\x7E\x80-\xFF]/g;function tde(e){let t=0,n=e.length;for(;tt;){const a=e.charCodeAt(n-1);if(a!==9&&a!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Ci(e){return e&&String(e).trim().toLowerCase()}function nde(e){return tde(e.replace(ede,""))}function Uc(e){return e===!1||e==null?e:Me.isArray(e)?e.map(Uc):nde(String(e))}function ade(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const ode=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function V0(e,t,n,a,o){if(Me.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!Me.isString(t)){if(Me.isString(a))return t.indexOf(a)!==-1;if(Me.isRegExp(a))return a.test(t)}}function lde(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function rde(e,t){const n=Me.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,l,r){return this[a].call(this,t,o,l,r)},configurable:!0})})}let Ta=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,c){const d=Ci(u);if(!d)throw new Error("header name must be a non-empty string");const f=Me.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=Uc(s))}const r=(s,u)=>Me.forEach(s,(c,d)=>l(c,d,u));if(Me.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(Me.isString(t)&&(t=t.trim())&&!ode(t))r(Qce(t),n);else if(Me.isObject(t)&&Me.isIterable(t)){let s={},u,c;for(const d of t){if(!Me.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(u=s[c])?Me.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}r(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=Ci(t),t){const a=Me.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return ade(o);if(Me.isFunction(n))return n.call(this,o,a);if(Me.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ci(t),t){const a=Me.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||V0(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(r){if(r=Ci(r),r){const s=Me.findKey(a,r);s&&(!n||V0(a,a[s],s,n))&&(delete a[s],o=!0)}}return Me.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||V0(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return Me.forEach(this,(o,l)=>{const r=Me.findKey(a,l);if(r){n[r]=Uc(o),delete n[l];return}const s=t?lde(l):String(l).trim();s!==l&&delete n[l],n[s]=Uc(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Me.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&Me.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[D4]=this[D4]={accessors:{}}).accessors,o=this.prototype;function l(r){const s=Ci(r);a[s]||(rde(o,r),a[s]=!0)}return Me.isArray(t)?t.forEach(l):l(t),this}};Ta.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Me.reduceDescriptors(Ta.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});Me.freezeMethods(Ta);function B0(e,t){const n=this||Ju,a=t||n,o=Ta.from(a.headers);let l=a.data;return Me.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function W9(e){return!!(e&&e.__CANCEL__)}let Zu=class extends Ot{constructor(t,n,a){super(t??"canceled",Ot.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function j9(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ot("Request failed with status code "+n.status,[Ot.ERR_BAD_REQUEST,Ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sde(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ide(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[l];r||(r=c),n[o]=u,a[o]=c;let f=l,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),c-r{n=d,o=null,l&&(clearTimeout(l),l=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?r(c,d):(o=c,l||(l=setTimeout(()=>{l=null,r(o)},a-f)))},()=>o&&r(o)]}const Nd=(e,t,n=3)=>{let a=0;const o=ide(50,250);return ude(l=>{const r=l.loaded,s=l.lengthComputable?l.total:void 0,u=s!=null?Math.min(r,s):r,c=Math.max(0,u-a),d=o(c);a=Math.max(a,u);const f={loaded:u,total:s,progress:s?u/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-u)/d:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},H4=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},F4=e=>(...t)=>Me.asap(()=>e(...t)),cde=ra.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ra.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ra.origin),ra.navigator&&/(msie|trident)/i.test(ra.navigator.userAgent)):()=>!0,dde=ra.hasStandardBrowserEnv?{write(e,t,n,a,o,l,r){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Me.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Me.isString(a)&&s.push(`path=${a}`),Me.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),Me.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function fde(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pde(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function q9(e,t,n){let a=!fde(t);return e&&(a||n===!1)?pde(e,t):t}const K4=e=>e instanceof Ta?{...e}:e;function Wr(e,t){t=t||{};const n={};function a(c,d,f,h){return Me.isPlainObject(c)&&Me.isPlainObject(d)?Me.merge.call({caseless:h},c,d):Me.isPlainObject(d)?Me.merge({},d):Me.isArray(d)?d.slice():d}function o(c,d,f,h){if(Me.isUndefined(d)){if(!Me.isUndefined(c))return a(void 0,c,f,h)}else return a(c,d,f,h)}function l(c,d){if(!Me.isUndefined(d))return a(void 0,d)}function r(c,d){if(Me.isUndefined(d)){if(!Me.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function s(c,d,f){if(Me.hasOwnProp(t,f))return a(c,d);if(Me.hasOwnProp(e,f))return a(void 0,c)}const u={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(c,d,f)=>o(K4(c),K4(d),f,!0)};return Me.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Me.hasOwnProp(u,d)?u[d]:o,h=Me.hasOwnProp(e,d)?e[d]:void 0,g=Me.hasOwnProp(t,d)?t[d]:void 0,p=f(h,g,d);Me.isUndefined(p)&&f!==s||(n[d]=p)}),n}const U9=e=>{const t=Wr({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:r,auth:s}=t;if(t.headers=r=Ta.from(r),t.url=F9(q9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Me.isFormData(n)){if(ra.hasStandardBrowserEnv||ra.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(Me.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&r.set(d,f)})}}if(ra.hasStandardBrowserEnv&&(Me.isFunction(a)&&(a=a(t)),a===!0||a==null&&cde(t.url))){const c=o&&l&&dde.read(l);c&&r.set(o,c)}return t},hde=typeof XMLHttpRequest<"u",vde=hde&&function(e){return new Promise(function(n,a){const o=U9(e);let l=o.data;const r=Ta.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=o,d,f,h,g,p;function v(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const w=Ta.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};j9(function(T){n(T),v()},function(T){a(T),v()},S),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new Ot("Request aborted",Ot.ECONNABORTED,e,m)),m=null)},m.onerror=function(C){const S=C&&C.message?C.message:"Network Error",k=new Ot(S,Ot.ERR_NETWORK,e,m);k.event=C||null,a(k),m=null},m.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Pv;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),a(new Ot(C,S.clarifyTimeoutError?Ot.ETIMEDOUT:Ot.ECONNABORTED,e,m)),m=null},l===void 0&&r.setContentType(null),"setRequestHeader"in m&&Me.forEach(r.toJSON(),function(C,S){m.setRequestHeader(S,C)}),Me.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),s&&s!=="json"&&(m.responseType=o.responseType),c&&([h,p]=Nd(c,!0),m.addEventListener("progress",h)),u&&m.upload&&([f,g]=Nd(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=w=>{m&&(a(!w||w.type?new Zu(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const b=sde(o.url);if(b&&ra.protocols.indexOf(b)===-1){a(new Ot("Unsupported protocol "+b+":",Ot.ERR_BAD_REQUEST,e));return}m.send(l||null)})},mde=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(c){if(!o){o=!0,s();const d=c instanceof Error?c:this.reason;a.abort(d instanceof Ot?d:new Zu(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,l(new Ot(`timeout of ${t}ms exceeded`,Ot.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>Me.asap(s),u}},gde=function*(e,t){let n=e.byteLength;if(n{const o=yde(e,t);let l=0,r,s=u=>{r||(r=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){s(),u.close();return}let f=d.byteLength;if(n){let h=l+=f;n(h)}u.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},j4=64*1024,{isFunction:xc}=Me,wde=(({Request:e,Response:t})=>({Request:e,Response:t}))(Me.global),{ReadableStream:q4,TextEncoder:U4}=Me.global,Y4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cde=e=>{e=Me.merge.call({skipUndefined:!0},wde,e);const{fetch:t,Request:n,Response:a}=e,o=t?xc(t):typeof fetch=="function",l=xc(n),r=xc(a);if(!o)return!1;const s=o&&xc(q4),u=o&&(typeof U4=="function"?(p=>v=>p.encode(v))(new U4):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=l&&s&&Y4(()=>{let p=!1;const v=new n(ra.origin,{body:new q4,method:"POST",get duplex(){return p=!0,"half"}}),m=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),p&&!m}),d=r&&s&&Y4(()=>Me.isReadableStream(new a("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(v,m)=>{let y=v&&v[p];if(y)return y.call(v);throw new Ot(`Response type '${p}' is not supported`,Ot.ERR_NOT_SUPPORT,m)})});const h=async p=>{if(p==null)return 0;if(Me.isBlob(p))return p.size;if(Me.isSpecCompliantForm(p))return(await new n(ra.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(Me.isArrayBufferView(p)||Me.isArrayBuffer(p))return p.byteLength;if(Me.isURLSearchParams(p)&&(p=p+""),Me.isString(p))return(await u(p)).byteLength},g=async(p,v)=>{const m=Me.toFiniteNumber(p.getContentLength());return m??h(v)};return async p=>{let{url:v,method:m,data:y,signal:b,cancelToken:w,timeout:C,onDownloadProgress:S,onUploadProgress:k,responseType:T,headers:M,withCredentials:A="same-origin",fetchOptions:O}=U9(p),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=mde([b,w&&w.toAbortSignal()],C),z=null;const q=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let U;try{if(k&&c&&m!=="get"&&m!=="head"&&(U=await g(M,y))!==0){let K=new n(v,{method:"POST",body:y,duplex:"half"}),j;if(Me.isFormData(y)&&(j=K.headers.get("content-type"))&&M.setContentType(j),K.body){const[G,ee]=H4(U,Nd(F4(k)));y=W4(K.body,j4,G,ee)}}Me.isString(A)||(A=A?"include":"omit");const F=l&&"credentials"in n.prototype;if(Me.isFormData(y)){const K=M.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&M.delete("content-type")}const N={...O,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:F?A:void 0};z=l&&new n(v,N);let P=await(l?I(z,O):I(v,N));const B=d&&(T==="stream"||T==="response");if(d&&(S||B&&q)){const K={};["status","statusText","headers"].forEach(te=>{K[te]=P[te]});const j=Me.toFiniteNumber(P.headers.get("content-length")),[G,ee]=S&&H4(j,Nd(F4(S),!0))||[];P=new a(W4(P.body,j4,G,()=>{ee&&ee(),q&&q()}),K)}T=T||"text";let W=await f[Me.findKey(f,T)||"text"](P,p);return!B&&q&&q(),await new Promise((K,j)=>{j9(K,j,{data:W,headers:Ta.from(P.headers),status:P.status,statusText:P.statusText,config:p,request:z})})}catch(F){throw q&&q(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Ot("Network Error",Ot.ERR_NETWORK,p,z,F&&F.response),{cause:F.cause||F}):Ot.from(F,F&&F.code,p,z,F&&F.response)}}},_de=new Map,Y9=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let r=l.length,s=r,u,c,d=_de;for(;s--;)u=l[s],c=d.get(u),c===void 0&&d.set(u,c=s?new Map:Cde(t)),d=c;return c};Y9();const Lv={http:Lce,xhr:vde,fetch:{get:Y9}};Me.forEach(Lv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const G4=e=>`- ${e}`,Sde=e=>Me.isFunction(e)||e===null||e===!1;function xde(e,t){e=Me.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let r=0;r`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?r.length>1?`since : +`+r.map(G4).join(` +`):" "+G4(r[0]):"as no adapter specified";throw new Ot("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const G9={getAdapter:xde,adapters:Lv};function z0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu(null,e)}function X4(e){return z0(e),e.headers=Ta.from(e.headers),e.data=B0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),G9.getAdapter(e.adapter||Ju.adapter,e)(e).then(function(a){return z0(e),a.data=B0.call(e,e.transformResponse,a),a.headers=Ta.from(a.headers),a},function(a){return W9(a)||(z0(e),a&&a.response&&(a.response.data=B0.call(e,e.transformResponse,a.response),a.response.headers=Ta.from(a.response.headers))),Promise.reject(a)})}const X9="1.15.1",Lf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lf[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const J4={};Lf.transitional=function(t,n,a){function o(l,r){return"[Axios v"+X9+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,s)=>{if(t===!1)throw new Ot(o(r," has been removed"+(n?" in "+n:"")),Ot.ERR_DEPRECATED);return n&&!J4[r]&&(J4[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,r,s):!0}};Lf.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function kde(e,t,n){if(typeof e!="object")throw new Ot("options must be an object",Ot.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],r=t[l];if(r){const s=e[l],u=s===void 0||r(s,l,e);if(u!==!0)throw new Ot("option "+l+" must be "+u,Ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ot("Unknown option "+l,Ot.ERR_BAD_OPTION)}}const Yc={assertOptions:kde,validators:Lf},Ha=Yc.validators;let $r=class{constructor(t){this.defaults=t||{},this.interceptors={request:new z4,response:new z4}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(` +`);return r===-1?"":o.stack.slice(r+1)})();try{if(!a.stack)a.stack=l;else if(l){const r=l.indexOf(` +`),s=r===-1?-1:l.indexOf(` +`,r+1),u=s===-1?"":l.slice(s+1);String(a.stack).endsWith(u)||(a.stack+=` +`+l)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wr(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Yc.assertOptions(a,{silentJSONParsing:Ha.transitional(Ha.boolean),forcedJSONParsing:Ha.transitional(Ha.boolean),clarifyTimeoutError:Ha.transitional(Ha.boolean),legacyInterceptorReqResOrdering:Ha.transitional(Ha.boolean)},!1),o!=null&&(Me.isFunction(o)?n.paramsSerializer={serialize:o}:Yc.assertOptions(o,{encode:Ha.function,serialize:Ha.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Yc.assertOptions(n,{baseUrl:Ha.spelling("baseURL"),withXsrfToken:Ha.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=l&&Me.merge(l.common,l[n.method]);l&&Me.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=Ta.concat(r,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||Pv;m&&m.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!u){const p=[X4.bind(this),void 0];for(p.unshift(...s),p.push(...c),h=p.length,d=Promise.resolve(n);f{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const r=new Promise(s=>{a.subscribe(s),l=s}).then(o);return r.cancel=function(){a.unsubscribe(l)},r},t(function(l,r,s){a.reason||(a.reason=new Zu(l,r,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new J9(function(o){t=o}),cancel:t}}};function Tde(e){return function(n){return e.apply(null,n)}}function Mde(e){return Me.isObject(e)&&e.isAxiosError===!0}const hp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hp).forEach(([e,t])=>{hp[t]=e});function Z9(e){const t=new $r(e),n=A9($r.prototype.request,t);return Me.extend(n,$r.prototype,t,{allOwnKeys:!0}),Me.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Z9(Wr(e,o))},n}const Rn=Z9(Ju);Rn.Axios=$r;Rn.CanceledError=Zu;Rn.CancelToken=Ede;Rn.isCancel=W9;Rn.VERSION=X9;Rn.toFormData=If;Rn.AxiosError=Ot;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=Tde;Rn.isAxiosError=Mde;Rn.mergeConfig=Wr;Rn.AxiosHeaders=Ta;Rn.formToJSON=e=>K9(Me.isHTMLForm(e)?new FormData(e):e);Rn.getAdapter=G9.getAdapter;Rn.HttpStatusCode=hp;Rn.default=Rn;const{Axios:Dde,AxiosError:Hde,CanceledError:Fde,isCancel:Kde,CancelToken:Wde,VERSION:jde,all:qde,Cancel:Ude,isAxiosError:Yde,spread:Gde,toFormData:Xde,AxiosHeaders:Jde,HttpStatusCode:Zde,formToJSON:Qde,getAdapter:efe,mergeConfig:tfe}=Rn,Jt=Rn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});Jt.interceptors.response.use(e=>e,e=>{var n,a,o;const t=((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.error)||e.message||"请求失败";return((o=e.response)==null?void 0:o.status)===401?(Rde(),window.location.href="/login",Promise.reject(e)):(g9.error(t),Promise.reject(e))});let Ode=1e4;const $de=()=>Jt.get("/auth/me").then(e=>(e.data&&typeof e.data.ui_refresh_interval=="number"&&(Ode=e.data.ui_refresh_interval),e)),nfe=e=>Jt.post("/auth/login",e),afe=()=>Jt.post("/auth/guest"),ofe=()=>Jt.post("/auth/logout"),lfe=e=>Jt.get("/machines",{params:e}),rfe=e=>Jt.get(`/machines/${e}`),sfe=e=>Jt.post("/machines",e),ife=(e,t)=>Jt.put(`/machines/${e}`,t),ufe=e=>Jt.delete(`/machines/${e}`),cfe=(e,t)=>Jt.post(`/machines/${e}/ssh-info`,t),dfe=(e,t)=>Jt.post(`/machines/${e}/sync-ssh`,t),ffe=e=>Jt.get(`/machines/${e}/offline-logs`),pfe=e=>Jt.get(`/machines/${e}/services`),hfe=()=>Jt.get("/services"),vfe=(e,t)=>Jt.post(`/machines/${e}/services`,t),mfe=(e,t)=>Jt.put(`/services/${e}`,t),gfe=e=>Jt.delete(`/services/${e}`),yfe=()=>Jt.get("/relationships"),bfe=e=>Jt.post("/relationships",e),wfe=(e,t)=>Jt.put(`/relationships/${e}`,t),Cfe=e=>Jt.delete(`/relationships/${e}`),_fe=e=>Jt.get("/logs",{params:e}),Sfe=()=>Jt.get("/export",{responseType:"blob"}),xfe=e=>Jt.post("/import",e,{headers:{"Content-Type":"multipart/form-data"}}),kfe=()=>Jt.get("/pve/hosts"),Efe=e=>Jt.post("/pve/hosts",e),Tfe=(e,t)=>Jt.put(`/pve/hosts/${e}`,t),Mfe=e=>Jt.delete(`/pve/hosts/${e}`),Ofe=e=>Jt.get(`/pve/hosts/${e}/status`),$fe=e=>Jt.get(`/pve/hosts/${e}/vms`),Afe=e=>Jt.get(`/machines/${e}/vm-status`),Rfe=e=>Jt.post(`/machines/${e}/vm-start`),Nfe=e=>Jt.post(`/machines/${e}/vm-stop`),Ade=[{path:"/login",name:"Login",component:()=>ir(()=>import("./Login-DsgAjqqn.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guestOnly:!0}},{path:"/",component:()=>ir(()=>import("./MainLayout-BpAm6i02.js"),__vite__mapDeps([3,1,4])),children:[{path:"",redirect:"/machines"},{path:"machines",name:"MachineList",component:()=>ir(()=>import("./MachineList-MzBh9r6c.js"),__vite__mapDeps([5,1,6])),meta:{public:!0}},{path:"machines/:id",name:"MachineDetail",component:()=>ir(()=>import("./MachineDetail-CV5DfGMb.js"),__vite__mapDeps([7,1,8])),meta:{public:!0}},{path:"topology",name:"Topology",component:()=>ir(()=>import("./Topology-D7ycfmKq.js"),__vite__mapDeps([9,1,10])),meta:{admin:!0}},{path:"logs",name:"Logs",component:()=>ir(()=>import("./Logs-B37lkquY.js"),__vite__mapDeps([11,1,12])),meta:{admin:!0}},{path:"pve-hosts",name:"PVEHosts",component:()=>ir(()=>import("./PVEHosts-DdWF4BUY.js"),__vite__mapDeps([13,1,14])),meta:{admin:!0}}]}],Q9=Uue({history:kue(),routes:Ade});let vp=!1,mr={is_admin:!1};Q9.beforeEach(async(e,t,n)=>{if(!vp){try{const{data:a}=await $de();mr=a}catch{mr={is_admin:!1}}vp=!0}if(e.name==="MachineDetail"&&!mr.is_admin)return n("/machines");if(e.meta.admin&&!mr.is_admin)return n("/login?redirect="+encodeURIComponent(e.fullPath));if(e.meta.guestOnly&&mr.is_admin)return n("/");n()});function Rde(){vp=!1}function Pfe(e){mr=e}function Ife(){return mr}const Vf=M6(zie);for(const[e,t]of Object.entries(yH))Vf.component(e,t);Vf.use(Bie);Vf.use(Q9);Vf.mount("#app");export{My as $,ut as A,Gz as B,dV as C,tD as D,g9 as E,ofe as F,Ife as G,Rde as H,$de as I,Ode as J,Gs as K,lfe as L,kh as M,He as N,Ct as O,xfe as P,kfe as Q,zy as R,We as S,ife as T,sfe as U,Sfe as V,rfe as W,pfe as X,QD as Y,JD as Z,wP as _,E as a,BB as a0,Lde as a1,ffe as a2,yfe as a3,Afe as a4,jo as a5,pD as a6,qB as a7,Xe as a8,_ie as a9,ufe as aa,cfe as ab,dfe as ac,Cfe as ad,mfe as ae,vfe as af,wfe as ag,bfe as ah,Rfe as ai,Nfe as aj,gfe as ak,Pde as al,Ol as am,Ml as an,hfe as ao,Nde as ap,_fe as aq,dt as ar,Ap as as,Ofe as at,Ky as au,io as av,$fe as aw,Mfe as ax,Tfe as ay,Efe as az,Q as b,$ as c,$t as d,i as e,KD as f,rn as g,_t as h,nfe as i,afe as j,mt as k,ML as l,ie as m,re as n,_ as o,R as p,x as q,V as r,Pfe as s,_e as t,Ide as u,sV as v,ae as w,fz as x,Oy as y,MN as z}; diff --git a/server/static/index.html b/server/static/index.html index f10be5d..3203862 100644 --- a/server/static/index.html +++ b/server/static/index.html @@ -5,7 +5,7 @@ 局域网机器管理后台 - + diff --git a/web/dist/assets/Login-DsgAjqqn.js b/web/dist/assets/Login-DsgAjqqn.js new file mode 100644 index 0000000..d4a027a --- /dev/null +++ b/web/dist/assets/Login-DsgAjqqn.js @@ -0,0 +1 @@ +import{o as b,c as x,a as o,b as s,w as l,r as g,d as u,u as k,e as v,f as N,g as w,l as z,h as y,E as d,i as C,s as V,j as M}from"./index-D__NZX4I.js";import{_ as A}from"./_plugin-vue_export-helper-DlAUqK2U.js";const B={class:"login-page"},E={class:"login-card"},K={class:"input-wrap"},U={class:"input-wrap"},$={class:"login-guest"},j={__name:"Login",setup(I){const c=k(),a=g({username:"",password:""}),n=g(!1);async function r(){if(!a.value.username||!a.value.password){d.warning("请输入用户名和密码");return}n.value=!0;try{const t=await C(a.value);V(t.data),d.success("登录成功"),c.push("/")}catch{}n.value=!1}async function h(){n.value=!0;try{const t=await M();V(t.data),d.success("已进入访客模式"),c.push("/")}catch{}n.value=!1}return(t,e)=>{const p=u("el-icon"),_=u("el-input"),m=u("el-form-item"),f=u("el-button"),L=u("el-form");return b(),x("div",B,[o("div",E,[e[4]||(e[4]=o("div",{class:"login-header"},[o("div",{class:"logo"},"LM"),o("h1",null,"LAN Manager"),o("p",null,"轻量级局域网资产管理平台")],-1)),s(L,{model:a.value,class:"login-form"},{default:l(()=>[s(m,null,{default:l(()=>[o("div",K,[s(p,{class:"input-icon"},{default:l(()=>[s(v(N))]),_:1}),s(_,{modelValue:a.value.username,"onUpdate:modelValue":e[0]||(e[0]=i=>a.value.username=i),placeholder:"用户名",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(m,null,{default:l(()=>[o("div",U,[s(p,{class:"input-icon"},{default:l(()=>[s(v(z))]),_:1}),s(_,{modelValue:a.value.password,"onUpdate:modelValue":e[1]||(e[1]=i=>a.value.password=i),type:"password","show-password":"",placeholder:"密码",size:"large",onKeydown:w(r,["enter"])},null,8,["modelValue"])])]),_:1}),s(f,{type:"primary",size:"large",class:"login-btn",loading:n.value,onClick:r},{default:l(()=>[...e[2]||(e[2]=[y("登录",-1)])]),_:1},8,["loading"]),o("div",$,[s(f,{text:"",size:"small",onClick:h},{default:l(()=>[...e[3]||(e[3]=[y("访客模式进入",-1)])]),_:1})])]),_:1},8,["model"])]),e[5]||(e[5]=o("div",{class:"login-footer"}," © LAN Manager ",-1))])}}},q=A(j,[["__scopeId","data-v-92ccba4b"]]);export{q as default}; diff --git a/web/dist/assets/Logs-B37lkquY.js b/web/dist/assets/Logs-B37lkquY.js new file mode 100644 index 0000000..e895c8a --- /dev/null +++ b/web/dist/assets/Logs-B37lkquY.js @@ -0,0 +1 @@ +import{k as V,aq as $,o as w,c as k,a as o,b as t,w as d,t as f,ar as N,m as B,r as i,d as r,as as C,h as b}from"./index-D__NZX4I.js";import{_ as L}from"./_plugin-vue_export-helper-DlAUqK2U.js";const M={class:"page"},T={class:"page-header"},U={class:"header-actions"},I={class:"card"},q={class:"table-header"},E={class:"pagination-bar"},F={__name:"Logs",setup(H){const h=i([]),p=i(0),c=i(1),u=i(20),_=i(""),g=i(!1);V(()=>v());async function v(){g.value=!0;const l=await $({page:c.value,page_size:u.value,search:_.value});h.value=l.data.list,p.value=l.data.total,g.value=!1}function y(l){if(!l)return"-";const e=new Date(l);if(isNaN(e.getTime()))return l;const s=m=>String(m).padStart(2,"0");return`${e.getFullYear()}-${s(e.getMonth()+1)}-${s(e.getDate())} ${s(e.getHours())}:${s(e.getMinutes())}:${s(e.getSeconds())}`}return(l,e)=>{const s=r("el-input"),m=r("el-button"),n=r("el-table-column"),z=r("el-tag"),x=r("el-table"),D=r("el-pagination"),S=C("loading");return w(),k("div",M,[o("div",T,[e[4]||(e[4]=o("div",null,[o("div",{class:"page-title"},"操作日志"),o("div",{class:"page-subtitle"},"查看最近的系统操作记录")],-1)),o("div",U,[t(s,{modelValue:_.value,"onUpdate:modelValue":e[0]||(e[0]=a=>_.value=a),placeholder:"搜索操作内容",clearable:"",style:{width:"240px"}},null,8,["modelValue"]),t(m,{type:"primary",onClick:v},{default:d(()=>[...e[3]||(e[3]=[b("查询",-1)])]),_:1})])]),o("div",I,[o("div",q,"共 "+f(p.value)+" 条记录",1),N((w(),B(x,{data:h.value,stripe:"",style:{width:"100%"},class:"modern-table"},{default:d(()=>[t(n,{prop:"id",label:"ID",width:"70"}),t(n,{prop:"action",label:"操作",width:"140"}),t(n,{prop:"target_type",label:"对象",width:"100"},{default:d(({row:a})=>[t(z,{size:"small",effect:"plain",round:""},{default:d(()=>[b(f(a.target_type),1)]),_:2},1024)]),_:1}),t(n,{prop:"target_name",label:"对象名称","min-width":"160"}),t(n,{prop:"details",label:"详情","min-width":"240","show-overflow-tooltip":""}),t(n,{prop:"created_at",label:"时间",width:"170"},{default:d(({row:a})=>[b(f(y(a.created_at)),1)]),_:1})]),_:1},8,["data"])),[[S,g.value]]),o("div",E,[t(D,{"current-page":c.value,"onUpdate:currentPage":e[1]||(e[1]=a=>c.value=a),"page-size":u.value,"onUpdate:pageSize":e[2]||(e[2]=a=>u.value=a),"page-sizes":[10,20,50,100],layout:"total, sizes, prev, pager, next",total:p.value,onChange:v},null,8,["current-page","page-size","total"])])])])}}},j=L(F,[["__scopeId","data-v-b1b09e4f"]]);export{j as default}; diff --git a/web/dist/assets/MachineDetail-BeE91e36.css b/web/dist/assets/MachineDetail-BeE91e36.css new file mode 100644 index 0000000..1cd10ef --- /dev/null +++ b/web/dist/assets/MachineDetail-BeE91e36.css @@ -0,0 +1 @@ +.detail-header[data-v-6f4bd63e]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px}.header-left[data-v-6f4bd63e]{display:flex;align-items:center;gap:12px}.host-title[data-v-6f4bd63e]{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700}.status-badge[data-v-6f4bd63e]{font-size:11px;padding:2px 8px;border-radius:999px;font-weight:600}.status-badge.online[data-v-6f4bd63e]{background:#22c55e1f;color:#15803d}.status-badge.offline[data-v-6f4bd63e]{background:#ef44441a;color:#b91c1c}html.dark .status-badge.online[data-v-6f4bd63e]{background:#34d39926;color:#34d399}html.dark .status-badge.offline[data-v-6f4bd63e]{background:#f8717126;color:#f87171}.vm-status-tag[data-v-6f4bd63e]{font-size:12px;height:24px;margin-right:4px}.vm-status-grid[data-v-6f4bd63e]{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.vm-stat-item[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:var(--surface-hover);border-radius:8px}.vm-stat-label[data-v-6f4bd63e]{font-size:11px;color:var(--text-muted)}.vm-stat-value[data-v-6f4bd63e]{font-size:14px;font-weight:600;color:var(--text)}.vm-stat-value.running[data-v-6f4bd63e]{color:#15803d}.vm-stat-value.stopped[data-v-6f4bd63e]{color:#b91c1c}html.dark .vm-stat-value.running[data-v-6f4bd63e]{color:#34d399}html.dark .vm-stat-value.stopped[data-v-6f4bd63e]{color:#f87171}.host-subtitle[data-v-6f4bd63e]{margin-top:4px;font-size:13px;color:var(--text-secondary);display:flex;align-items:center;gap:8px}.host-subtitle span+span[data-v-6f4bd63e]:before{content:"·";margin-right:8px;color:var(--text-muted)}.detail-grid[data-v-6f4bd63e]{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-grid>.card[data-v-6f4bd63e]{margin-bottom:0}@media (max-width: 900px){.detail-grid[data-v-6f4bd63e]{grid-template-columns:1fr}}.info-list[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:10px}.info-item[data-v-6f4bd63e]{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;background:var(--surface-hover);border-radius:8px;font-size:13px;transition:background .2s ease}.info-label[data-v-6f4bd63e]{color:var(--text-secondary)}.info-value[data-v-6f4bd63e]{font-weight:500;color:var(--text)}.text-muted[data-v-6f4bd63e]{color:var(--text-muted)}.status-pills[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:10px}.status-pill[data-v-6f4bd63e]{display:flex;align-items:center;gap:12px;padding:12px;background:var(--surface-hover);border-radius:10px;transition:background .2s ease}.sp-icon[data-v-6f4bd63e]{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:#fff;flex-shrink:0}.sp-icon.cpu[data-v-6f4bd63e]{background:linear-gradient(135deg,#3b82f6,#60a5fa)}.sp-icon.mem[data-v-6f4bd63e]{background:linear-gradient(135deg,#22c55e,#4ade80)}.sp-icon.disk[data-v-6f4bd63e]{background:linear-gradient(135deg,#f59e0b,#fbbf24)}.sp-info[data-v-6f4bd63e]{flex:1;min-width:0}.sp-title[data-v-6f4bd63e]{font-size:12px;color:var(--text-secondary);margin-bottom:6px}.sp-bar[data-v-6f4bd63e]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.sp-fill[data-v-6f4bd63e]{height:100%;border-radius:3px;background:#3b82f6;transition:width .3s ease}.sp-num[data-v-6f4bd63e]{font-size:14px;font-weight:700;color:var(--text);min-width:36px;text-align:right}.status-pill.disk-multi[data-v-6f4bd63e]{flex-wrap:wrap}.multi-disk-info[data-v-6f4bd63e]{flex:1;display:flex;flex-direction:column;gap:8px;min-width:0;max-height:220px;overflow-y:auto}.detail-disk-item[data-v-6f4bd63e]{display:flex;align-items:center;gap:10px;font-size:12px}.dd-mount[data-v-6f4bd63e]{min-width:50px;color:var(--text-secondary);font-weight:500}.dd-bar-wrap[data-v-6f4bd63e]{flex:1;min-width:80px}.dd-bar[data-v-6f4bd63e]{height:5px;background:var(--border-strong);border-radius:3px;overflow:hidden}.dd-fill[data-v-6f4bd63e]{height:100%;border-radius:3px}.dd-val[data-v-6f4bd63e]{white-space:nowrap;color:var(--text-secondary)}.dd-pct[data-v-6f4bd63e]{min-width:32px;text-align:right;font-weight:700;color:var(--text)}.uptime-line[data-v-6f4bd63e]{margin-top:14px;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-secondary);padding:8px 10px;background:var(--surface-hover);border-radius:8px;transition:background .2s ease}.sync-actions[data-v-6f4bd63e]{margin-bottom:10px}.ssh-actions[data-v-6f4bd63e]{margin-bottom:12px}.ssh-result[data-v-6f4bd63e]{background:var(--surface-hover);border-radius:10px;padding:12px;transition:background .2s ease}.result-grid[data-v-6f4bd63e]{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-item[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:2px}.result-item.full[data-v-6f4bd63e]{grid-column:1 / -1}.rl[data-v-6f4bd63e]{font-size:11px;color:var(--text-muted)}.rv[data-v-6f4bd63e]{font-size:13px;color:var(--text);font-weight:500}.service-list[data-v-6f4bd63e],.rel-list[data-v-6f4bd63e]{display:flex;flex-direction:column;gap:10px}.service-row[data-v-6f4bd63e]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.service-main[data-v-6f4bd63e]{display:flex;align-items:center;gap:10px}.service-name[data-v-6f4bd63e]{font-weight:600;font-size:14px}.service-port[data-v-6f4bd63e]{font-size:12px;color:var(--text-muted);background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border)}.service-target[data-v-6f4bd63e]{display:flex;align-items:center;gap:4px;font-size:12px;color:var(--primary)}.target-note[data-v-6f4bd63e]{color:var(--text-muted)}.service-note[data-v-6f4bd63e]{font-size:12px;color:var(--text-secondary);flex:1 1 100%}.service-actions[data-v-6f4bd63e]{display:flex;gap:6px}.rel-row[data-v-6f4bd63e]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--surface-hover);border-radius:10px;flex-wrap:wrap;transition:background .2s ease}.rel-arrow[data-v-6f4bd63e]{display:flex;align-items:center;gap:8px;font-size:14px}.rel-host[data-v-6f4bd63e]{font-weight:600}.rel-meta[data-v-6f4bd63e]{display:flex;align-items:center;gap:8px;font-size:12px}.rel-port[data-v-6f4bd63e]{background:var(--surface);padding:1px 6px;border-radius:4px;border:1px solid var(--border);color:var(--text-secondary)}.rel-note[data-v-6f4bd63e]{color:var(--text-muted)}.rel-actions[data-v-6f4bd63e]{display:flex;gap:6px}.offline-stats[data-v-6f4bd63e]{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-bottom:16px}.stat-box[data-v-6f4bd63e]{background:var(--surface-hover);border-radius:10px;padding:12px;text-align:center}.stat-num[data-v-6f4bd63e]{font-size:20px;font-weight:700;color:var(--text)}.stat-reason[data-v-6f4bd63e]{font-size:13px;font-weight:600;color:var(--danger);word-break:break-all}.stat-label[data-v-6f4bd63e]{font-size:12px;color:var(--text-muted);margin-top:4px}.offline-logs[data-v-6f4bd63e]{background:var(--surface-hover);border-radius:10px;padding:12px}.log-title[data-v-6f4bd63e]{font-size:13px;font-weight:600;color:var(--text-secondary);margin-bottom:10px}.log-row[data-v-6f4bd63e]{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--border);font-size:12px}.log-row[data-v-6f4bd63e]:last-child{border-bottom:none}.log-time[data-v-6f4bd63e]{color:var(--text-muted);min-width:140px}.log-reason[data-v-6f4bd63e]{flex:1;color:var(--text-secondary)}.log-dur[data-v-6f4bd63e]{color:var(--text);font-weight:500}.log-dur.pending[data-v-6f4bd63e]{color:var(--warning)} diff --git a/web/dist/assets/MachineDetail-CV5DfGMb.js b/web/dist/assets/MachineDetail-CV5DfGMb.js new file mode 100644 index 0000000..9fc77fe --- /dev/null +++ b/web/dist/assets/MachineDetail-CV5DfGMb.js @@ -0,0 +1 @@ +import{k as Ne,I as qe,J as Fe,K as Le,W as Ke,X as Oe,o as i,c as d,a as l,b as s,w as n,h as c,t as u,p as ce,e as _,n as m,m as C,Y as Ae,Z as Ge,_ as se,$ as ae,S as X,N as U,O as T,a0 as We,M as fe,a1 as je,r as h,d as S,G as Ye,u as Je,L as Qe,Q as Xe,a2 as Ze,a3 as et,a4 as tt,a5 as lt,a6 as st,a7 as ye,a8 as he,a9 as A,aa as at,E as P,ab as Ve,ac as ge,q as ot,ad as nt,T as it,ae as ut,af as dt,ag as rt,ah as vt,ai as mt,aj as _t,ak as pt}from"./index-D__NZX4I.js";import{_ as ct}from"./_plugin-vue_export-helper-DlAUqK2U.js";const ft={key:0,class:"page"},yt={class:"detail-header"},ht={class:"header-left"},Vt={class:"host-title"},gt={class:"host-subtitle"},kt={key:0},bt={key:1},wt={key:0,class:"header-actions"},Mt={class:"detail-grid"},xt={class:"card"},St={class:"info-list"},$t={class:"info-item"},Ct={class:"info-value"},Ut={key:0,class:"info-item"},Pt={class:"info-value"},Dt={class:"info-item"},Tt={class:"info-value"},Et={key:1,class:"info-item"},Ht={class:"info-value"},It={key:2,class:"info-item"},Rt={class:"info-value text-muted"},zt={key:0,class:"card"},Bt={class:"vm-status-grid"},Nt={class:"vm-stat-item"},qt={key:0,class:"vm-stat-item"},Ft={class:"vm-stat-value"},Lt={key:1,class:"vm-stat-item"},Kt={class:"vm-stat-value"},Ot={key:2,class:"vm-stat-item"},At={class:"vm-stat-value"},Gt={key:1,class:"card"},Wt={class:"status-pills"},jt={key:0,class:"status-pill"},Yt={class:"sp-info"},Jt={class:"sp-title"},Qt={class:"sp-bar"},Xt={class:"sp-num"},Zt={key:1,class:"status-pill"},el={class:"sp-info"},tl={class:"sp-title"},ll={class:"sp-bar"},sl={class:"sp-num"},al={key:2,class:"status-pill disk-multi"},ol={class:"sp-info"},nl={class:"sp-title"},il={class:"sp-bar"},ul={class:"sp-num"},dl={class:"sp-info multi-disk-info"},rl={class:"dd-mount"},vl={class:"dd-bar-wrap"},ml={class:"dd-bar"},_l={class:"dd-val"},pl={class:"dd-pct"},cl={key:0,class:"uptime-line"},fl={key:2,class:"card"},yl={key:0,class:"sync-actions"},hl={class:"ssh-actions"},Vl={key:1,class:"ssh-result"},gl={class:"result-grid"},kl={class:"result-item"},bl={class:"rv"},wl={class:"result-item"},Ml={class:"rv"},xl={class:"result-item"},Sl={class:"rv"},$l={class:"result-item"},Cl={class:"rv"},Ul={class:"result-item"},Pl={class:"rv"},Dl={class:"result-item"},Tl={class:"rv"},El={class:"result-item full"},Hl={class:"rv"},Il={class:"card"},Rl={class:"card-title"},zl={key:0,class:"service-list"},Bl={class:"service-main"},Nl={class:"service-name"},ql={class:"service-port"},Fl={key:0,class:"service-target"},Ll={key:0,class:"target-note"},Kl={key:1,class:"service-note"},Ol={key:2,class:"service-actions"},Al={key:3,class:"card"},Gl={class:"offline-stats"},Wl={class:"stat-box"},jl={class:"stat-num"},Yl={class:"stat-box"},Jl={class:"stat-num"},Ql={key:0,class:"stat-box"},Xl={class:"stat-reason"},Zl={key:0,class:"offline-logs"},es={class:"log-time"},ts={class:"log-reason"},ls={key:0,class:"log-dur"},ss={key:1,class:"log-dur pending"},as={key:4,class:"card"},os={class:"card-title"},ns={key:0,class:"rel-list"},is={class:"rel-arrow"},us={class:"rel-host"},ds={class:"rel-host"},rs={class:"rel-meta"},vs={key:0,class:"rel-port"},ms={key:1,class:"rel-note"},_s={class:"rel-actions"},ps={__name:"MachineDetail",setup(cs){const ke=je(),be=Je(),k=Ye().is_admin,V=ke.params.id,o=h(null),Z=h([]),ee=h([]),z=h(!1),f=h({}),B=h([]),te=h([]),oe=h([]),q=h(!1),p=h({}),F=h(!1),E=h({username:"",password:""}),M=h(null),N=h(!1),L=h(!1),b=h({}),K=h(!1),w=h({}),we=ot(()=>{const a={};return B.value.forEach(e=>a[e.id]=e.hostname),a});let le=null;Ne(async()=>{if(await H(),await G(),k){await W();const e=await Qe();B.value=e.data;try{const r=await Xe();oe.value=r.data}catch{}await j()}await qe();const a=Fe||1e4;a>0&&(le=setInterval(async()=>{await H(),await G(),k&&(await W(),await j())},a))}),Le(()=>{le&&clearInterval(le)});async function H(){const a=await Ke(V);if(o.value=a.data.machine,k){const e=await Ze(V);te.value=e.data}o.value&&(o.value.cpu_info||o.value.memory_info||o.value.disk_info||o.value.uptime)?M.value={hostname:o.value.hostname,os_version:o.value.os_version,cpu:o.value.cpu_info,memory:o.value.memory_info,disk:o.value.disk_info,uptime:o.value.uptime,listen_ports:o.value.listen_ports?o.value.listen_ports.split(",").map(e=>e.trim()).filter(Boolean):[]}:M.value=null}async function G(){const a=await Oe(V);Z.value=a.data}async function W(){const a=await et(),e={};B.value.forEach(r=>e[r.id]=r.hostname),ee.value=a.data.filter(r=>r.source_machine_id==V||r.target_machine_id==V).map(r=>({...r,source_hostname:e[r.source_machine_id]||r.source_machine_id,target_hostname:e[r.target_machine_id]||r.target_machine_id}))}function Me(a){p.value={...a,ssh_port:a.ssh_port||22,ssh_username:a.ssh_username||"",ssh_password:"",pve_host_id:a.pve_host_id||null,pve_vmid:a.pve_vmid||""},q.value=!0}async function xe(){if(o.value.ssh_username){N.value=!0;try{const a=await Ve(V,{username:o.value.ssh_username,password:""});M.value=a.data;const e={...M.value};delete e.hostname,await ge(V,e),P.success("获取并同步成功"),await H(),N.value=!1;return}catch{N.value=!1}}E.value={username:o.value.ssh_username||"",password:""},F.value=!0}async function Se(){await it(p.value.id,p.value),P.success("保存成功"),q.value=!1,H()}async function j(){if(!(!o.value||!o.value.pve_host_id||!o.value.pve_vmid))try{const a=await tt(V);f.value=a.data}catch{f.value={_error:!0}}}async function $e(){try{await A.confirm("确定要启动虚拟机吗?","确认启动",{type:"info"}),z.value=!0,await mt(V),P.success("虚拟机已启动"),await j(),H()}catch{}z.value=!1}async function Ce(){try{await A.confirm("确定要关闭虚拟机吗?","确认关闭",{type:"warning"}),z.value=!0,await _t(V),P.success("虚拟机已关闭"),await j(),H()}catch{}z.value=!1}async function Ue(){try{await A.confirm("确定删除该机器?","提示",{type:"warning"}),await at(V),P.success("删除成功"),be.back()}catch{}}async function Pe(){N.value=!0;try{const a=await Ve(V,E.value);M.value=a.data,F.value=!1;const e={...M.value};delete e.hostname,await ge(V,e),P.success("获取并同步成功"),await H()}catch{}N.value=!1}function ne(a){b.value=a?{...a,target_machine_id:a.target_machine_id||null,target_notes:a.target_notes||""}:{name:"",port:80,protocol:"TCP",notes:"",target_machine_id:null,target_notes:""},L.value=!0}async function De(){const a={...b.value};a.id?await ut(a.id,a):await dt(V,a),P.success("保存成功"),L.value=!1,G()}async function Te(a){try{await A.confirm("确定删除该服务?","提示",{type:"warning"}),await pt(a.id),P.success("删除成功"),G()}catch{}}function ie(a){w.value=a?{...a}:{source_machine_id:Number(V),target_machine_id:null,relation_type:"dependency",source_port:null,target_port:null,notes:""},K.value=!0}async function Ee(){const a={...w.value};a.id?await rt(a.id,a):await vt(a),P.success("保存成功"),K.value=!1,W()}async function He(a){try{await A.confirm("确定删除该关系?","提示",{type:"warning"}),await nt(a.id),P.success("删除成功"),W()}catch{}}function Ie(a){return{port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[a]||a}function D(a){if(!a)return 0;const e=a.match(/\((\d+)%\)/)||a.match(/(\d+(?:\.\d+)?)%/);if(e){const r=parseFloat(e[1]);return isNaN(r)?0:Math.min(100,Math.max(0,Math.round(r)))}return 0}function Re(a){return a>=90?"#f87171":a>=70?"#fbbf24":"#34d399"}function ue(a){return a>=90?"#f87171":a>=80?"#fbbf24":"#60a5fa"}function de(a){if(!a)return[];const e=[],r=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let v;for(;(v=r.exec(a))!==null;)e.push({mount:v[1],detail:v[2],percent:parseInt(v[3],10)});if(e.length>0)return e;const $=D(a),I=extractDetail(a);return I?[{mount:"",detail:I,percent:$}]:[]}function re(a){if(!a)return"-";const e=new Date(a);if(isNaN(e.getTime()))return a;const r=v=>String(v).padStart(2,"0");return`${e.getFullYear()}-${r(e.getMonth()+1)}-${r(e.getDate())} ${r(e.getHours())}:${r(e.getMinutes())}:${r(e.getSeconds())}`}function ve(a){if(!a&&a!==0)return"-";const e=Number(a);if(e<60)return`${e}秒`;if(e<3600)return`${Math.floor(e/60)}分${e%60}秒`;const r=Math.floor(e/3600),v=Math.floor(e%3600/60);if(r<24)return`${r}时${v}分`;const $=Math.floor(r/24),I=r%24;return`${$}天${I}时${v}分`}function me(a){if(!a&&a!==0)return"-";const e=Number(a);return e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:e<1024*1024*1024?`${(e/1024/1024).toFixed(1)}MB`:`${(e/1024/1024/1024).toFixed(1)}GB`}function ze(a){if(!a&&a!==0)return"-";const e=Number(a),r=Math.floor(e/86400),v=Math.floor(e%86400/3600),$=Math.floor(e%3600/60);return r>0?`${r}天${v}时${$}分`:v>0?`${v}时${$}分`:`${$}分`}return(a,e)=>{var _e,pe;const r=S("el-icon"),v=S("el-button"),$=S("el-tag"),I=S("el-empty"),x=S("el-input"),y=S("el-form-item"),Y=S("el-form"),J=S("el-dialog"),Q=S("el-input-number"),g=S("el-option"),R=S("el-select"),Be=S("el-divider");return o.value?(i(),d("div",ft,[l("div",yt,[l("div",ht,[s(v,{text:"",circle:"",onClick:e[0]||(e[0]=t=>a.$router.back())},{default:n(()=>[s(r,null,{default:n(()=>[s(_(lt))]),_:1})]),_:1}),l("div",null,[l("div",Vt,[c(u(o.value.hostname)+" ",1),l("span",{class:ce(["status-badge",o.value.is_online?"online":"offline"])},u(o.value.is_online?"在线":"离线"),3)]),l("div",gt,[_(k)?(i(),d("span",kt,u(o.value.ip),1)):m("",!0),l("span",null,u(o.value.os_type),1),o.value.os_version?(i(),d("span",bt,u(o.value.os_version),1)):m("",!0)])])]),_(k)?(i(),d("div",wt,[o.value.pve_host_id&&o.value.pve_vmid?(i(),C($,{key:0,size:"small",type:f.value._error?"info":f.value.status==="running"?"success":f.value.status==="stopped"?"danger":"info",effect:"light",class:"vm-status-tag"},{default:n(()=>[c(u(f.value._error?"VM检测失败":f.value.status==="running"?"VM运行中":f.value.status==="stopped"?"VM已停止":"VM检测中"),1)]),_:1},8,["type"])):m("",!0),o.value.pve_host_id&&o.value.pve_vmid?(i(),C(v,{key:1,type:"success",icon:_(Ae),loading:z.value,onClick:$e,disabled:f.value.status==="running"||f.value._error},{default:n(()=>[...e[37]||(e[37]=[c("启动",-1)])]),_:1},8,["icon","loading","disabled"])):m("",!0),o.value.pve_host_id&&o.value.pve_vmid?(i(),C(v,{key:2,type:"warning",icon:_(Ge),loading:z.value,onClick:Ce,disabled:f.value.status==="stopped"||f.value._error},{default:n(()=>[...e[38]||(e[38]=[c("关闭",-1)])]),_:1},8,["icon","loading","disabled"])):m("",!0),s(v,{text:"",icon:_(se),onClick:e[1]||(e[1]=t=>Me(o.value))},{default:n(()=>[...e[39]||(e[39]=[c("编辑",-1)])]),_:1},8,["icon"]),s(v,{text:"",type:"danger",icon:_(ae),onClick:Ue},{default:n(()=>[...e[40]||(e[40]=[c("删除",-1)])]),_:1},8,["icon"])])):m("",!0)]),l("div",Mt,[l("div",xt,[e[46]||(e[46]=l("div",{class:"card-title"},"基本信息",-1)),l("div",St,[l("div",$t,[e[41]||(e[41]=l("span",{class:"info-label"},"IP",-1)),l("span",Ct,u(o.value.ip),1)]),_(k)?(i(),d("div",Ut,[e[42]||(e[42]=l("span",{class:"info-label"},"MAC",-1)),l("span",Pt,u(o.value.mac||"-"),1)])):m("",!0),l("div",Dt,[e[43]||(e[43]=l("span",{class:"info-label"},"系统",-1)),l("span",Tt,u(o.value.os_type)+" "+u(o.value.os_version||""),1)]),_(k)?(i(),d("div",Et,[e[44]||(e[44]=l("span",{class:"info-label"},"SSH 端口",-1)),l("span",Ht,u(o.value.ssh_port||22),1)])):m("",!0),_(k)?(i(),d("div",It,[e[45]||(e[45]=l("span",{class:"info-label"},"备注",-1)),l("span",Rt,u(o.value.notes||"-"),1)])):m("",!0)])]),o.value.pve_host_id&&o.value.pve_vmid&&f.value.status?(i(),d("div",zt,[e[51]||(e[51]=l("div",{class:"card-title"},"PVE 虚拟机状态",-1)),l("div",Bt,[l("div",Nt,[e[47]||(e[47]=l("span",{class:"vm-stat-label"},"运行状态",-1)),l("span",{class:ce(["vm-stat-value",f.value.status])},u(f.value.status==="running"?"运行中":"已停止"),3)]),f.value.cpu!==void 0?(i(),d("div",qt,[e[48]||(e[48]=l("span",{class:"vm-stat-label"},"CPU 使用率",-1)),l("span",Ft,u((_e=f.value.cpu)!=null&&_e.toFixed?f.value.cpu.toFixed(1):f.value.cpu)+"%",1)])):m("",!0),f.value.memory_used!==void 0&&f.value.memory_total?(i(),d("div",Lt,[e[49]||(e[49]=l("span",{class:"vm-stat-label"},"内存使用",-1)),l("span",Kt,u(me(f.value.memory_used))+" / "+u(me(f.value.memory_total)),1)])):m("",!0),f.value.uptime?(i(),d("div",Ot,[e[50]||(e[50]=l("span",{class:"vm-stat-label"},"运行时长",-1)),l("span",At,u(ze(f.value.uptime)),1)])):m("",!0)])])):m("",!0),o.value.cpu_info||o.value.memory_info||o.value.disk_info?(i(),d("div",Gt,[e[56]||(e[56]=l("div",{class:"card-title"},"系统状态",-1)),l("div",Wt,[o.value.cpu_info?(i(),d("div",jt,[e[52]||(e[52]=l("div",{class:"sp-icon cpu"},"CPU",-1)),l("div",Yt,[l("div",Jt,u(o.value.cpu_info),1),l("div",Qt,[l("div",{class:"sp-fill",style:X({width:D(o.value.cpu_info)+"%"})},null,4)])]),l("div",Xt,u(D(o.value.cpu_info))+"%",1)])):m("",!0),o.value.memory_info?(i(),d("div",Zt,[e[53]||(e[53]=l("div",{class:"sp-icon mem"},"MEM",-1)),l("div",el,[l("div",tl,u(o.value.memory_info),1),l("div",ll,[l("div",{class:"sp-fill",style:X({width:D(o.value.memory_info)+"%",background:Re(D(o.value.memory_info))})},null,4)])]),l("div",sl,u(D(o.value.memory_info))+"%",1)])):m("",!0),o.value.disk_info?(i(),d("div",al,[de(o.value.disk_info).length<=1?(i(),d(U,{key:0},[e[54]||(e[54]=l("div",{class:"sp-icon disk"},"DISK",-1)),l("div",ol,[l("div",nl,u(o.value.disk_info),1),l("div",il,[l("div",{class:"sp-fill",style:X({width:D(o.value.disk_info)+"%",background:ue(D(o.value.disk_info))})},null,4)])]),l("div",ul,u(D(o.value.disk_info))+"%",1)],64)):(i(),d(U,{key:1},[e[55]||(e[55]=l("div",{class:"sp-icon disk"},"DISK",-1)),l("div",dl,[(i(!0),d(U,null,T(de(o.value.disk_info),(t,O)=>(i(),d("div",{key:O,class:"detail-disk-item"},[l("span",rl,u(t.mount),1),l("div",vl,[l("div",ml,[l("div",{class:"dd-fill",style:X({width:t.percent+"%",background:ue(t.percent)})},null,4)])]),l("span",_l,u(t.detail),1),l("span",pl,u(t.percent)+"%",1)]))),128))])],64))])):m("",!0)]),o.value.uptime?(i(),d("div",cl,[s(r,null,{default:n(()=>[s(_(st))]),_:1}),l("span",null,"运行时间 "+u(o.value.uptime),1)])):m("",!0)])):m("",!0),_(k)?(i(),d("div",fl,[e[65]||(e[65]=l("div",{class:"card-title"},"SSH 系统信息",-1)),o.value.cpu_info||o.value.memory_info||o.value.disk_info||o.value.uptime?(i(),d("div",yl,[s($,{size:"small",effect:"plain",round:""},{default:n(()=>[c("上次同步 "+u(re(o.value.ssh_synced_at)),1)]),_:1})])):m("",!0),l("div",hl,[s(v,{type:"primary",icon:_(We),onClick:xe},{default:n(()=>[...e[57]||(e[57]=[c("获取系统信息",-1)])]),_:1},8,["icon"])]),M.value?(i(),d("div",Vl,[l("div",gl,[l("div",kl,[e[58]||(e[58]=l("span",{class:"rl"},"主机名",-1)),l("span",bl,u(M.value.hostname),1)]),l("div",wl,[e[59]||(e[59]=l("span",{class:"rl"},"系统版本",-1)),l("span",Ml,u(M.value.os_version),1)]),l("div",xl,[e[60]||(e[60]=l("span",{class:"rl"},"CPU",-1)),l("span",Sl,u(M.value.cpu),1)]),l("div",$l,[e[61]||(e[61]=l("span",{class:"rl"},"内存",-1)),l("span",Cl,u(M.value.memory),1)]),l("div",Ul,[e[62]||(e[62]=l("span",{class:"rl"},"磁盘",-1)),l("span",Pl,u(M.value.disk),1)]),l("div",Dl,[e[63]||(e[63]=l("span",{class:"rl"},"运行时间",-1)),l("span",Tl,u(M.value.uptime),1)]),l("div",El,[e[64]||(e[64]=l("span",{class:"rl"},"监听端口",-1)),l("span",Hl,u((pe=M.value.listen_ports)==null?void 0:pe.join(", ")),1)])])])):m("",!0)])):m("",!0),l("div",Il,[l("div",Rl,[e[67]||(e[67]=c(" 服务列表 ",-1)),_(k)?(i(),C(v,{key:0,size:"small",type:"primary",icon:_(fe),onClick:e[2]||(e[2]=t=>ne())},{default:n(()=>[...e[66]||(e[66]=[c("添加服务",-1)])]),_:1},8,["icon"])):m("",!0)]),Z.value.length?(i(),d("div",zl,[(i(!0),d(U,null,T(Z.value,t=>(i(),d("div",{key:t.id,class:"service-row"},[l("div",Bl,[l("div",Nl,u(t.name),1),l("div",ql,u(t.port)+" / "+u(t.protocol),1)]),_(k)&&t.target_machine_id?(i(),d("div",Fl,[s(r,null,{default:n(()=>[s(_(ye))]),_:1}),l("span",null,u(we.value[t.target_machine_id]||t.target_machine_id),1),t.target_notes?(i(),d("span",Ll,u(t.target_notes),1)):m("",!0)])):m("",!0),_(k)&&t.notes?(i(),d("div",Kl,u(t.notes),1)):m("",!0),_(k)?(i(),d("div",Ol,[s(v,{text:"",size:"small",icon:_(se),onClick:he(O=>ne(t),["stop"])},{default:n(()=>[...e[68]||(e[68]=[c("编辑",-1)])]),_:1},8,["icon","onClick"]),s(v,{text:"",size:"small",type:"danger",icon:_(ae),onClick:he(O=>Te(t),["stop"])},{default:n(()=>[...e[69]||(e[69]=[c("删除",-1)])]),_:1},8,["icon","onClick"])])):m("",!0)]))),128))])):(i(),C(I,{key:1,description:"暂无服务","image-size":80}))]),_(k)?(i(),d("div",Al,[e[74]||(e[74]=l("div",{class:"card-title"},"离线统计",-1)),l("div",Gl,[l("div",Wl,[l("div",jl,u(o.value.offline_count||0),1),e[70]||(e[70]=l("div",{class:"stat-label"},"离线次数",-1))]),l("div",Yl,[l("div",Jl,u(ve(o.value.total_offline_seconds)),1),e[71]||(e[71]=l("div",{class:"stat-label"},"累计离线时长",-1))]),o.value.last_offline_reason?(i(),d("div",Ql,[l("div",Xl,u(o.value.last_offline_reason),1),e[72]||(e[72]=l("div",{class:"stat-label"},"上次离线原因",-1))])):m("",!0)]),te.value.length?(i(),d("div",Zl,[e[73]||(e[73]=l("div",{class:"log-title"},"最近离线记录",-1)),(i(!0),d(U,null,T(te.value.slice(0,5),t=>(i(),d("div",{key:t.id,class:"log-row"},[l("span",es,u(re(t.started_at)),1),l("span",ts,u(t.reason||"未知原因"),1),t.duration_seconds!==null&&t.duration_seconds!==void 0?(i(),d("span",ls,"持续 "+u(ve(t.duration_seconds)),1)):(i(),d("span",ss,"未恢复"))]))),128))])):m("",!0)])):m("",!0),_(k)?(i(),d("div",as,[l("div",os,[e[76]||(e[76]=c(" 关联关系 ",-1)),s(v,{size:"small",type:"primary",icon:_(fe),onClick:e[3]||(e[3]=t=>ie())},{default:n(()=>[...e[75]||(e[75]=[c("添加关系",-1)])]),_:1},8,["icon"])]),ee.value.length?(i(),d("div",ns,[(i(!0),d(U,null,T(ee.value,t=>(i(),d("div",{key:t.id,class:"rel-row"},[l("div",is,[l("span",us,u(t.source_hostname),1),s(r,null,{default:n(()=>[s(_(ye))]),_:1}),l("span",ds,u(t.target_hostname),1)]),l("div",rs,[s($,{size:"small",effect:"plain",round:""},{default:n(()=>[c(u(Ie(t.relation_type)),1)]),_:2},1024),t.source_port?(i(),d("span",vs,u(t.source_port)+" → "+u(t.target_port||"-"),1)):m("",!0),t.notes?(i(),d("span",ms,u(t.notes),1)):m("",!0)]),l("div",_s,[s(v,{text:"",size:"small",icon:_(se),onClick:O=>ie(t)},{default:n(()=>[...e[77]||(e[77]=[c("编辑",-1)])]),_:1},8,["icon","onClick"]),s(v,{text:"",size:"small",type:"danger",icon:_(ae),onClick:O=>He(t)},{default:n(()=>[...e[78]||(e[78]=[c("删除",-1)])]),_:1},8,["icon","onClick"])])]))),128))])):(i(),C(I,{key:1,description:"暂无关系","image-size":80}))])):m("",!0)]),s(J,{modelValue:F.value,"onUpdate:modelValue":e[7]||(e[7]=t=>F.value=t),title:"SSH 获取系统信息",width:"360px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[6]||(e[6]=t=>F.value=!1)},{default:n(()=>[...e[79]||(e[79]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",loading:N.value,onClick:Pe},{default:n(()=>[...e[80]||(e[80]=[c("连接",-1)])]),_:1},8,["loading"])]),default:n(()=>[s(Y,{model:E.value,"label-width":"80px"},{default:n(()=>[s(y,{label:"用户名"},{default:n(()=>[s(x,{modelValue:E.value.username,"onUpdate:modelValue":e[4]||(e[4]=t=>E.value.username=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"密码"},{default:n(()=>[s(x,{modelValue:E.value.password,"onUpdate:modelValue":e[5]||(e[5]=t=>E.value.password=t),type:"password","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),s(J,{modelValue:q.value,"onUpdate:modelValue":e[20]||(e[20]=t=>q.value=t),title:"编辑机器",width:"480px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[19]||(e[19]=t=>q.value=!1)},{default:n(()=>[...e[82]||(e[82]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",onClick:Se},{default:n(()=>[...e[83]||(e[83]=[c("保存",-1)])]),_:1})]),default:n(()=>[s(Y,{model:p.value,"label-width":"90px"},{default:n(()=>[s(y,{label:"主机名",required:""},{default:n(()=>[s(x,{modelValue:p.value.hostname,"onUpdate:modelValue":e[8]||(e[8]=t=>p.value.hostname=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"IP",required:""},{default:n(()=>[s(x,{modelValue:p.value.ip,"onUpdate:modelValue":e[9]||(e[9]=t=>p.value.ip=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"MAC"},{default:n(()=>[s(x,{modelValue:p.value.mac,"onUpdate:modelValue":e[10]||(e[10]=t=>p.value.mac=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"SSH端口"},{default:n(()=>[s(Q,{modelValue:p.value.ssh_port,"onUpdate:modelValue":e[11]||(e[11]=t=>p.value.ssh_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"SSH用户"},{default:n(()=>[s(x,{modelValue:p.value.ssh_username,"onUpdate:modelValue":e[12]||(e[12]=t=>p.value.ssh_username=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"SSH密码"},{default:n(()=>[s(x,{modelValue:p.value.ssh_password,"onUpdate:modelValue":e[13]||(e[13]=t=>p.value.ssh_password=t),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(y,{label:"系统",required:""},{default:n(()=>[s(R,{modelValue:p.value.os_type,"onUpdate:modelValue":e[14]||(e[14]=t=>p.value.os_type=t),style:{width:"100%"}},{default:n(()=>[s(g,{label:"Linux",value:"Linux"}),s(g,{label:"Windows",value:"Windows"}),s(g,{label:"macOS",value:"macOS"}),s(g,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"系统版本"},{default:n(()=>[s(x,{modelValue:p.value.os_version,"onUpdate:modelValue":e[15]||(e[15]=t=>p.value.os_version=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"备注"},{default:n(()=>[s(x,{modelValue:p.value.notes,"onUpdate:modelValue":e[16]||(e[16]=t=>p.value.notes=t),type:"textarea",rows:2},null,8,["modelValue"])]),_:1}),s(Be,{"content-position":"left"},{default:n(()=>[...e[81]||(e[81]=[c("PVE 配置(可选)",-1)])]),_:1}),s(y,{label:"PVE 主机"},{default:n(()=>[s(R,{modelValue:p.value.pve_host_id,"onUpdate:modelValue":e[17]||(e[17]=t=>p.value.pve_host_id=t),placeholder:"选择 PVE 主机",clearable:"",style:{width:"100%"}},{default:n(()=>[(i(!0),d(U,null,T(oe.value,t=>(i(),C(g,{key:t.id,label:t.name,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"虚拟机 ID"},{default:n(()=>[s(x,{modelValue:p.value.pve_vmid,"onUpdate:modelValue":e[18]||(e[18]=t=>p.value.pve_vmid=t),placeholder:"如 101"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),s(J,{modelValue:L.value,"onUpdate:modelValue":e[28]||(e[28]=t=>L.value=t),title:"编辑服务",width:"440px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[27]||(e[27]=t=>L.value=!1)},{default:n(()=>[...e[84]||(e[84]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",onClick:De},{default:n(()=>[...e[85]||(e[85]=[c("保存",-1)])]),_:1})]),default:n(()=>[s(Y,{model:b.value,"label-width":"90px"},{default:n(()=>[s(y,{label:"名称",required:""},{default:n(()=>[s(x,{modelValue:b.value.name,"onUpdate:modelValue":e[21]||(e[21]=t=>b.value.name=t)},null,8,["modelValue"])]),_:1}),s(y,{label:"端口",required:""},{default:n(()=>[s(Q,{modelValue:b.value.port,"onUpdate:modelValue":e[22]||(e[22]=t=>b.value.port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"协议"},{default:n(()=>[s(R,{modelValue:b.value.protocol,"onUpdate:modelValue":e[23]||(e[23]=t=>b.value.protocol=t),style:{width:"100%"}},{default:n(()=>[s(g,{label:"TCP",value:"TCP"}),s(g,{label:"UDP",value:"UDP"}),s(g,{label:"HTTP",value:"HTTP"}),s(g,{label:"HTTPS",value:"HTTPS"})]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"指向机器"},{default:n(()=>[s(R,{modelValue:b.value.target_machine_id,"onUpdate:modelValue":e[24]||(e[24]=t=>b.value.target_machine_id=t),clearable:"",style:{width:"100%"},placeholder:"选择目标机器(拓扑连线用)"},{default:n(()=>[(i(!0),d(U,null,T(B.value.filter(t=>t.id!=_(V)),t=>(i(),C(g,{key:t.id,label:t.hostname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"指向备注"},{default:n(()=>[s(x,{modelValue:b.value.target_notes,"onUpdate:modelValue":e[25]||(e[25]=t=>b.value.target_notes=t),placeholder:"如:反向代理到目标"},null,8,["modelValue"])]),_:1}),s(y,{label:"备注"},{default:n(()=>[s(x,{modelValue:b.value.notes,"onUpdate:modelValue":e[26]||(e[26]=t=>b.value.notes=t),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),s(J,{modelValue:K.value,"onUpdate:modelValue":e[36]||(e[36]=t=>K.value=t),title:"编辑关系",width:"440px",class:"modern-dialog"},{footer:n(()=>[s(v,{onClick:e[35]||(e[35]=t=>K.value=!1)},{default:n(()=>[...e[86]||(e[86]=[c("取消",-1)])]),_:1}),s(v,{type:"primary",onClick:Ee},{default:n(()=>[...e[87]||(e[87]=[c("保存",-1)])]),_:1})]),default:n(()=>[s(Y,{model:w.value,"label-width":"100px"},{default:n(()=>[s(y,{label:"源机器",required:""},{default:n(()=>[s(R,{modelValue:w.value.source_machine_id,"onUpdate:modelValue":e[29]||(e[29]=t=>w.value.source_machine_id=t),style:{width:"100%"}},{default:n(()=>[(i(!0),d(U,null,T(B.value,t=>(i(),C(g,{key:t.id,label:t.hostname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"目标机器",required:""},{default:n(()=>[s(R,{modelValue:w.value.target_machine_id,"onUpdate:modelValue":e[30]||(e[30]=t=>w.value.target_machine_id=t),style:{width:"100%"}},{default:n(()=>[(i(!0),d(U,null,T(B.value,t=>(i(),C(g,{key:t.id,label:t.hostname,value:t.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"关系类型",required:""},{default:n(()=>[s(R,{modelValue:w.value.relation_type,"onUpdate:modelValue":e[31]||(e[31]=t=>w.value.relation_type=t),style:{width:"100%"}},{default:n(()=>[s(g,{label:"端口转发",value:"port_forward"}),s(g,{label:"依赖",value:"dependency"}),s(g,{label:"主从",value:"primary_secondary"}),s(g,{label:"自定义",value:"custom"})]),_:1},8,["modelValue"])]),_:1}),s(y,{label:"源端口"},{default:n(()=>[s(Q,{modelValue:w.value.source_port,"onUpdate:modelValue":e[32]||(e[32]=t=>w.value.source_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"目标端口"},{default:n(()=>[s(Q,{modelValue:w.value.target_port,"onUpdate:modelValue":e[33]||(e[33]=t=>w.value.target_port=t),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(y,{label:"备注"},{default:n(()=>[s(x,{modelValue:w.value.notes,"onUpdate:modelValue":e[34]||(e[34]=t=>w.value.notes=t),type:"textarea",rows:2},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])):m("",!0)}}},hs=ct(ps,[["__scopeId","data-v-6f4bd63e"]]);export{hs as default}; diff --git a/web/dist/assets/MachineList-MzBh9r6c.js b/web/dist/assets/MachineList-MzBh9r6c.js new file mode 100644 index 0000000..63502ab --- /dev/null +++ b/web/dist/assets/MachineList-MzBh9r6c.js @@ -0,0 +1 @@ +import{k as oe,I as ae,J as ne,K as ie,L as de,o as u,c as r,a as o,b as s,w as i,e as f,m as b,M as ue,n as p,N as $,O as F,r as V,d as m,G as re,P as pe,E as k,u as ce,Q as _e,R as me,h as y,p as U,t as c,S as R,T as ve,U as fe,V as ye}from"./index-D__NZX4I.js";import{_ as he}from"./_plugin-vue_export-helper-DlAUqK2U.js";const be={class:"page"},Ve={class:"toolbar"},we={class:"search-wrap"},ke={class:"cards-grid"},ge=["onClick"],Ce={class:"card-header"},xe={class:"title-row"},Me=["title"],Se={class:"hostname"},Ue={class:"meta-row"},De={key:0,class:"meta-ip"},Le={class:"meta-item"},Oe={key:1,class:"meta-item"},Ee={key:2,class:"meta-uptime"},Ie={key:3,class:"meta-pve"},$e={key:0,class:"stats-row"},Fe={key:0,class:"stat-pill"},Re={class:"pill-body"},Be={class:"pill-bar"},Ne={class:"pill-value"},Pe={key:1,class:"stat-pill"},Ae={class:"pill-body"},He={class:"pill-bar"},Te={class:"pill-value"},We={key:2,class:"stat-pill"},je={class:"pill-body"},ze={class:"pill-bar"},Ge={class:"pill-value"},Ke={key:1,class:"ports-row"},qe={key:0,class:"more-ports"},Je={key:2,class:"sync-time"},Qe={__name:"MachineList",setup(Ye){const T=ce(),h=re().is_admin,D=V([]),B=V([]),L=V(""),O=V(""),g=V(!1),d=V({hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:"",pve_host_id:null,pve_vmid:""}),N=V(null);let E=null;oe(async()=>{if(await C(),await ae(),h)try{const e=await _e();B.value=e.data}catch{}const t=ne||1e4;t>0&&(E=setInterval(C,t))}),ie(()=>{E&&clearInterval(E)});async function C(){const t=await de({search:L.value,os_type:O.value});D.value=t.data}function W(t){T.push(`/machines/${t}`)}function j(t){d.value={hostname:"",ip:"",mac:"",os_type:"Linux",os_version:"",notes:"",ssh_port:22,ssh_username:"",ssh_password:"",pve_host_id:null,pve_vmid:""},g.value=!0}async function z(){const t={...d.value};if(!t.hostname||!t.ip||!t.os_type){k.warning("请填写必填项");return}t.id?await ve(t.id,t):await fe(t),k.success("保存成功"),g.value=!1,C()}async function G(){try{const t=await ye(),e=new Blob([t.data]),a=window.URL.createObjectURL(e),n=document.createElement("a");n.href=a,n.download=`lan-manager-backup-${new Date().toISOString().slice(0,10)}.json`,document.body.appendChild(n),n.click(),document.body.removeChild(n),window.URL.revokeObjectURL(a),k.success("导出成功")}catch{k.error("导出失败")}}function K(){var t;(t=N.value)==null||t.click()}async function q(t){var n;const e=(n=t.target.files)==null?void 0:n[0];if(!e)return;const a=new FormData;a.append("file",e),a.append("mode","overwrite");try{await pe(a),k.success("导入成功,页面即将刷新"),setTimeout(()=>location.reload(),800)}catch{k.error("导入失败")}t.target.value=""}function x(t){if(!t)return 0;const e=t.match(/\((\d+)%\)/)||t.match(/(\d+(?:\.\d+)?)%/);if(e){const a=parseFloat(e[1]);return isNaN(a)?0:Math.min(100,Math.max(0,Math.round(a)))}return 0}function P(t){if(!t)return"";const e=t.match(/\((\d+)\s*cores\)/);if(e)return e[1]+" cores";let a=t.replace(/\s*\(\d+(?:\.\d+)?%\)\s*/g,"").trim();return a.includes(",")&&(a=a.split(",")[0].trim()),a=a.replace(/^\/\s+/,"").trim(),/^\d+\.?\d*\/\d+\.?\d*$/.test(a)&&(a+="G"),a}function J(t){return t>=90?"#f87171":t>=70?"#fbbf24":"#34d399"}function Q(t){return t>=90?"#f87171":t>=80?"#fbbf24":"#60a5fa"}function Y(t){if(!t)return[];const e=[],a=/(\S+)\s+([\d\.]+[KMGT]?\/[\d\.]+[KMGT]?)\s+\((\d+)%\)/g;let n;for(;(n=a.exec(t))!==null;)e.push({mount:n[1],detail:n[2],percent:parseInt(n[3],10)});if(e.length>0)return e;const _=x(t),w=P(t);return w?[{mount:"",detail:w,percent:_}]:[]}function S(t){return Y(t).find(n=>n.mount==="/")||null}function X(t){return{Linux:"os-linux",Windows:"os-windows",macOS:"os-macos"}[t]||"os-other"}function Z(t){if(!t)return"-";const e=new Date(t);if(isNaN(e.getTime()))return t;const a=n=>String(n).padStart(2,"0");return`${e.getFullYear()}-${a(e.getMonth()+1)}-${a(e.getDate())} ${a(e.getHours())}:${a(e.getMinutes())}:${a(e.getSeconds())}`}return(t,e)=>{const a=m("el-icon"),n=m("el-input"),_=m("el-option"),w=m("el-select"),M=m("el-button"),A=m("el-tag"),ee=m("el-empty"),v=m("el-form-item"),H=m("el-divider"),le=m("el-input-number"),te=m("el-form"),se=m("el-dialog");return u(),r("div",be,[o("div",Ve,[o("div",we,[s(a,{class:"search-icon"},{default:i(()=>[s(f(me))]),_:1}),s(n,{modelValue:L.value,"onUpdate:modelValue":e[0]||(e[0]=l=>L.value=l),placeholder:"搜索主机名",clearable:"",onChange:C},null,8,["modelValue"])]),s(w,{modelValue:O.value,"onUpdate:modelValue":e[1]||(e[1]=l=>O.value=l),placeholder:"系统类型",clearable:"",onChange:C,class:"os-select"},{default:i(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"]),f(h)?(u(),b(M,{key:0,type:"primary",icon:f(ue),onClick:e[2]||(e[2]=l=>j())},{default:i(()=>[...e[16]||(e[16]=[y("添加机器",-1)])]),_:1},8,["icon"])):p("",!0),f(h)?(u(),b(M,{key:1,type:"success",onClick:G},{default:i(()=>[...e[17]||(e[17]=[y("导出数据",-1)])]),_:1})):p("",!0),f(h)?(u(),b(M,{key:2,type:"warning",onClick:K},{default:i(()=>[...e[18]||(e[18]=[y("导入数据",-1)])]),_:1})):p("",!0),o("input",{ref_key:"importFileRef",ref:N,type:"file",accept:".json",style:{display:"none"},onChange:q},null,544)]),o("div",ke,[(u(!0),r($,null,F(D.value,l=>(u(),r("div",{key:l.id,class:U(["server-card",[{"guest-card":!f(h),"offline-card":!l.is_online}]]),onClick:I=>f(h)&&W(l.id)},[o("div",Ce,[o("div",xe,[o("span",{class:U(["os-dot",X(l.os_type)]),title:l.os_type},null,10,Me),o("span",Se,c(l.hostname),1),o("span",{class:U(["status-badge",l.is_online?"online":"offline"])},c(l.is_online?"在线":"离线"),3),l.service_count?(u(),b(A,{key:0,size:"small",effect:"plain",class:"svc-tag",round:""},{default:i(()=>[y("服务 "+c(l.service_count),1)]),_:2},1024)):p("",!0)]),o("div",Ue,[f(h)?(u(),r("span",De,c(l.ip),1)):p("",!0),o("span",Le,c(l.os_type),1),l.os_version?(u(),r("span",Oe,c(l.os_version),1)):p("",!0),l.uptime?(u(),r("span",Ee,c(l.uptime),1)):p("",!0),f(h)&&l.pve_host_id&&l.pve_vmid?(u(),r("span",Ie,[o("span",{class:U(["vm-status",l.pve_vm_status])},c(l.pve_vm_status==="running"?"🟢 VM运行中":"🔴 VM已停止"),3)])):p("",!0)])]),l.cpu_info||l.memory_info||l.disk_info?(u(),r("div",$e,[l.cpu_info?(u(),r("div",Fe,[e[20]||(e[20]=o("div",{class:"pill-icon cpu"},"C",-1)),o("div",Re,[e[19]||(e[19]=o("div",{class:"pill-label"},"CPU",-1)),o("div",Be,[o("div",{class:"pill-fill",style:R({width:x(l.cpu_info)+"%"})},null,4)])]),o("div",Ne,c(x(l.cpu_info))+"%",1)])):p("",!0),l.memory_info?(u(),r("div",Pe,[e[22]||(e[22]=o("div",{class:"pill-icon mem"},"M",-1)),o("div",Ae,[e[21]||(e[21]=o("div",{class:"pill-label"},"RAM",-1)),o("div",He,[o("div",{class:"pill-fill",style:R({width:x(l.memory_info)+"%",background:J(x(l.memory_info))})},null,4)])]),o("div",Te,c(P(l.memory_info)),1)])):p("",!0),S(l.disk_info)?(u(),r("div",We,[e[24]||(e[24]=o("div",{class:"pill-icon disk"},"D",-1)),o("div",je,[e[23]||(e[23]=o("div",{class:"pill-label"},"DISK",-1)),o("div",ze,[o("div",{class:"pill-fill",style:R({width:S(l.disk_info).percent+"%",background:Q(S(l.disk_info).percent)})},null,4)])]),o("div",Ge,c(S(l.disk_info).detail),1)])):p("",!0)])):p("",!0),l.listen_ports?(u(),r("div",Ke,[(u(!0),r($,null,F(l.listen_ports.split(",").slice(0,6),I=>(u(),b(A,{key:I,size:"small",effect:"plain",round:"",class:"port-tag"},{default:i(()=>[y(c(I.trim()),1)]),_:2},1024))),128)),l.listen_ports.split(",").length>6?(u(),r("span",qe,"+"+c(l.listen_ports.split(",").length-6),1)):p("",!0)])):p("",!0),l.ssh_synced_at?(u(),r("div",Je," 同步于 "+c(Z(l.ssh_synced_at)),1)):p("",!0)],10,ge))),128))]),D.value.length?p("",!0):(u(),b(ee,{key:0,description:"暂无机器"})),s(se,{modelValue:g.value,"onUpdate:modelValue":e[15]||(e[15]=l=>g.value=l),title:d.value.id?"编辑机器":"添加机器",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:i(()=>[s(M,{onClick:e[14]||(e[14]=l=>g.value=!1)},{default:i(()=>[...e[27]||(e[27]=[y("取消",-1)])]),_:1}),s(M,{type:"primary",onClick:z},{default:i(()=>[...e[28]||(e[28]=[y("保存",-1)])]),_:1})]),default:i(()=>[s(te,{model:d.value,"label-width":"90px"},{default:i(()=>[s(v,{label:"主机名",required:""},{default:i(()=>[s(n,{modelValue:d.value.hostname,"onUpdate:modelValue":e[3]||(e[3]=l=>d.value.hostname=l),placeholder:"如 web-server-01"},null,8,["modelValue"])]),_:1}),s(v,{label:"IP",required:""},{default:i(()=>[s(n,{modelValue:d.value.ip,"onUpdate:modelValue":e[4]||(e[4]=l=>d.value.ip=l),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),s(v,{label:"MAC"},{default:i(()=>[s(n,{modelValue:d.value.mac,"onUpdate:modelValue":e[5]||(e[5]=l=>d.value.mac=l),placeholder:"AA:BB:CC:DD:EE:FF"},null,8,["modelValue"])]),_:1}),s(v,{label:"系统",required:""},{default:i(()=>[s(w,{modelValue:d.value.os_type,"onUpdate:modelValue":e[6]||(e[6]=l=>d.value.os_type=l),style:{width:"100%"}},{default:i(()=>[s(_,{label:"Linux",value:"Linux"}),s(_,{label:"Windows",value:"Windows"}),s(_,{label:"macOS",value:"macOS"}),s(_,{label:"Other",value:"Other"})]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"系统版本"},{default:i(()=>[s(n,{modelValue:d.value.os_version,"onUpdate:modelValue":e[7]||(e[7]=l=>d.value.os_version=l),placeholder:"Ubuntu 22.04"},null,8,["modelValue"])]),_:1}),s(H,{"content-position":"left"},{default:i(()=>[...e[25]||(e[25]=[y("SSH 配置",-1)])]),_:1}),s(v,{label:"SSH 端口"},{default:i(()=>[s(le,{modelValue:d.value.ssh_port,"onUpdate:modelValue":e[8]||(e[8]=l=>d.value.ssh_port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 用户"},{default:i(()=>[s(n,{modelValue:d.value.ssh_username,"onUpdate:modelValue":e[9]||(e[9]=l=>d.value.ssh_username=l),placeholder:"root"},null,8,["modelValue"])]),_:1}),s(v,{label:"SSH 密码"},{default:i(()=>[s(n,{modelValue:d.value.ssh_password,"onUpdate:modelValue":e[10]||(e[10]=l=>d.value.ssh_password=l),type:"password","show-password":"",placeholder:"输入则更新密码,留空保持不变"},null,8,["modelValue"])]),_:1}),s(v,{label:"备注"},{default:i(()=>[s(n,{modelValue:d.value.notes,"onUpdate:modelValue":e[11]||(e[11]=l=>d.value.notes=l),type:"textarea",rows:3,placeholder:"记录用途、负责人等信息"},null,8,["modelValue"])]),_:1}),s(H,{"content-position":"left"},{default:i(()=>[...e[26]||(e[26]=[y("PVE 配置(可选)",-1)])]),_:1}),s(v,{label:"PVE 主机"},{default:i(()=>[s(w,{modelValue:d.value.pve_host_id,"onUpdate:modelValue":e[12]||(e[12]=l=>d.value.pve_host_id=l),placeholder:"选择 PVE 主机",clearable:"",style:{width:"100%"}},{default:i(()=>[(u(!0),r($,null,F(B.value,l=>(u(),b(_,{key:l.id,label:l.name,value:l.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),s(v,{label:"虚拟机 ID"},{default:i(()=>[s(n,{modelValue:d.value.pve_vmid,"onUpdate:modelValue":e[13]||(e[13]=l=>d.value.pve_vmid=l),placeholder:"如 101"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"])])}}},el=he(Qe,[["__scopeId","data-v-cae8dc77"]]);export{el as default}; diff --git a/web/dist/assets/MainLayout-BpAm6i02.js b/web/dist/assets/MainLayout-BpAm6i02.js new file mode 100644 index 0000000..2056f5c --- /dev/null +++ b/web/dist/assets/MainLayout-BpAm6i02.js @@ -0,0 +1 @@ +import{k as h,o as i,c as m,a as s,b as e,w as t,m as d,n as r,t as v,p as C,r as x,q as w,d as _,u as E,e as l,v as L,x as M,y as A,z as B,A as D,B as N,C as V,f as z,D as I,F as S,E as q,G as F,H as G}from"./index-D__NZX4I.js";import{_ as H}from"./_plugin-vue_export-helper-DlAUqK2U.js";const P={class:"layout"},R={key:0,class:"sidebar"},T={class:"nav"},$={class:"sidebar-footer"},j={class:"user-info"},J={class:"user-name"},K={class:"main-inner"},O={__name:"MainLayout",setup(Q){const f=E(),u=w(()=>F().is_admin),o=x(!1);h(()=>{o.value=document.documentElement.classList.contains("dark")});function p(){o.value=!o.value,document.documentElement.classList.toggle("dark",o.value),localStorage.setItem("theme",o.value?"dark":"light")}async function g(){try{await S()}catch{}G(),q.success("已退出"),f.push("/login")}return(k,a)=>{const n=_("el-icon"),c=_("router-link"),y=_("el-button"),b=_("router-view");return i(),m("div",P,[u.value?(i(),m("aside",R,[a[5]||(a[5]=s("div",{class:"brand"},[s("div",{class:"brand-logo"},"LM"),s("div",{class:"brand-text"},"LAN Manager")],-1)),s("nav",T,[e(c,{to:"/machines",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(L))]),_:1}),a[0]||(a[0]=s("span",null,"机器列表",-1))]),_:1}),u.value?(i(),d(c,{key:0,to:"/topology",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(M))]),_:1}),a[1]||(a[1]=s("span",null,"拓扑图",-1))]),_:1})):r("",!0),u.value?(i(),d(c,{key:1,to:"/logs",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(A))]),_:1}),a[2]||(a[2]=s("span",null,"操作日志",-1))]),_:1})):r("",!0),u.value?(i(),d(c,{key:2,to:"/pve-hosts",class:"nav-item","active-class":"active"},{default:t(()=>[e(n,null,{default:t(()=>[e(l(B))]),_:1}),a[3]||(a[3]=s("span",null,"PVE 主机",-1))]),_:1})):r("",!0)]),s("div",{class:"theme-toggle",onClick:p},[e(n,{class:"theme-icon"},{default:t(()=>[(i(),d(D(o.value?l(N):l(V))))]),_:1}),s("span",null,v(o.value?"浅色模式":"深色模式"),1)]),s("div",$,[s("div",j,[e(n,{class:"user-icon"},{default:t(()=>[e(l(z))]),_:1}),s("span",J,v(u.value?"管理员":"访客"),1)]),e(y,{text:"",class:"logout-btn",onClick:g},{default:t(()=>[e(n,null,{default:t(()=>[e(l(I))]),_:1}),a[4]||(a[4]=s("span",null,"退出",-1))]),_:1})])])):r("",!0),s("main",{class:C(["main",{"no-sidebar":!u.value}])},[s("div",K,[e(b)])],2)])}}},X=H(O,[["__scopeId","data-v-dac2493b"]]);export{X as default}; diff --git a/web/dist/assets/PVEHosts-Bh9QYZd6.css b/web/dist/assets/PVEHosts-Bh9QYZd6.css new file mode 100644 index 0000000..93de3b5 --- /dev/null +++ b/web/dist/assets/PVEHosts-Bh9QYZd6.css @@ -0,0 +1 @@ +.toolbar[data-v-fede7675]{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.page-title[data-v-fede7675]{margin:0;font-size:20px;font-weight:600}.hosts-grid[data-v-fede7675]{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}.host-card[data-v-fede7675]{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.host-header[data-v-fede7675]{display:flex;align-items:center;gap:10px;margin-bottom:12px}.host-icon[data-v-fede7675]{font-size:20px;color:var(--el-color-primary)}.host-name[data-v-fede7675]{font-size:16px;font-weight:600;flex:1}.status-tag[data-v-fede7675]{font-size:11px;height:20px;padding:0 8px}.host-info[data-v-fede7675]{margin-bottom:12px}.info-row[data-v-fede7675]{display:flex;font-size:13px;margin-bottom:4px}.info-row .label[data-v-fede7675]{color:var(--text-secondary);width:50px}.info-row .value[data-v-fede7675]{color:var(--text)}.host-actions[data-v-fede7675]{display:flex;gap:8px}.vm-loading[data-v-fede7675]{display:flex;align-items:center;justify-content:center;gap:10px;padding:40px 0;color:var(--text-secondary)}.loading-icon[data-v-fede7675]{font-size:20px;animation:spin-fede7675 1s linear infinite}@keyframes spin-fede7675{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.vm-list[data-v-fede7675]{display:flex;flex-direction:column;gap:8px}.vm-item[data-v-fede7675]{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--surface-hover);border-radius:8px}.vm-main[data-v-fede7675]{display:flex;align-items:center;gap:10px}.vm-id[data-v-fede7675]{font-size:12px;font-weight:700;color:var(--el-color-primary);background:var(--surface);padding:2px 8px;border-radius:4px;border:1px solid var(--border)}.vm-name[data-v-fede7675]{font-size:14px;font-weight:500;color:var(--text)} diff --git a/web/dist/assets/PVEHosts-DdWF4BUY.js b/web/dist/assets/PVEHosts-DdWF4BUY.js new file mode 100644 index 0000000..13d8334 --- /dev/null +++ b/web/dist/assets/PVEHosts-DdWF4BUY.js @@ -0,0 +1 @@ +import{k as G,Q as J,at as K,o as u,c as m,a as o,b as a,w as t,e as b,M as R,m as x,n as B,N as L,O as N,r as i,d,h as v,v as W,t as r,au as X,av as Y,aw as Z,a9 as ee,ax as le,E,ay as ae,az as se}from"./index-D__NZX4I.js";import{_ as te}from"./_plugin-vue_export-helper-DlAUqK2U.js";const oe={class:"page"},ne={class:"toolbar"},ue={key:1,class:"hosts-grid"},de={class:"host-header"},ie={class:"host-name"},re={class:"host-info"},me={class:"info-row"},ve={class:"value"},pe={class:"info-row"},ce={class:"value"},fe={class:"info-row"},_e={class:"value"},Ve={class:"host-actions"},ye={key:2,class:"vm-loading"},we={key:3,class:"vm-list"},ge={class:"vm-main"},ke={class:"vm-id"},be={class:"vm-name"},Ee={__name:"PVEHosts",setup(Ce){const _=i([]),V=i(!1),s=i({name:"",hostname:"",port:8006,node_name:"pve",username:"",password:"",verify_ssl:!1}),C=i(!1),w=i(!1),g=i([]),k=i(""),H=i(null),c=i({});G(()=>{P()});async function P(){const n=await J();_.value=n.data,await Promise.all(_.value.map(e=>D(e.id)))}async function D(n){try{const e=await K(n);c.value[n]=e.data.status}catch{c.value[n]="offline"}}function U(n){s.value=n?{...n,password:""}:{name:"",hostname:"",port:8006,node_name:"pve",username:"",password:"",verify_ssl:!1},V.value=!0}async function F(){if(!s.value.name||!s.value.hostname||!s.value.username){E.warning("请填写必填项");return}if(!s.value.id&&!s.value.password){E.warning("请填写密码");return}try{s.value.id?await ae(s.value.id,s.value):await se(s.value),E.success("保存成功"),V.value=!1,P()}catch{}}async function I(n){try{await ee.confirm(`确定要删除主机 "${n.name}" 吗?`,"确认删除",{type:"warning"}),await le(n.id),E.success("删除成功"),P()}catch{}}async function O(n){H.value=n,C.value=!0,w.value=!0,g.value=[],k.value="";try{const e=await Z(n.id);g.value=e.data||[]}catch{k.value="获取虚拟机列表失败,请检查节点连接状态"}w.value=!1}return(n,e)=>{var S;const f=d("el-button"),h=d("el-empty"),M=d("el-icon"),$=d("el-tag"),y=d("el-input"),p=d("el-form-item"),Q=d("el-input-number"),T=d("el-switch"),j=d("el-form"),z=d("el-dialog"),A=d("el-alert");return u(),m("div",oe,[o("div",ne,[e[12]||(e[12]=o("h2",{class:"page-title"},"PVE 主机管理",-1)),a(f,{type:"primary",icon:b(R),onClick:e[0]||(e[0]=l=>U())},{default:t(()=>[...e[11]||(e[11]=[v("添加主机",-1)])]),_:1},8,["icon"])]),_.value.length?B("",!0):(u(),x(h,{key:0,description:"暂无 PVE 主机"})),_.value.length?(u(),m("div",ue,[(u(!0),m(L,null,N(_.value,l=>(u(),m("div",{key:l.id,class:"host-card"},[o("div",de,[a(M,{class:"host-icon"},{default:t(()=>[a(b(W))]),_:1}),o("span",ie,r(l.name),1),a($,{size:"small",type:c.value[l.id]==="online"?"success":c.value[l.id]==="offline"?"danger":"info",effect:"light",class:"status-tag"},{default:t(()=>[v(r(c.value[l.id]==="online"?"在线":c.value[l.id]==="offline"?"离线":"检测中"),1)]),_:2},1032,["type"])]),o("div",re,[o("div",me,[e[13]||(e[13]=o("span",{class:"label"},"地址:",-1)),o("span",ve,r(l.hostname)+":"+r(l.port),1)]),o("div",pe,[e[14]||(e[14]=o("span",{class:"label"},"节点:",-1)),o("span",ce,r(l.node_name||"pve"),1)]),o("div",fe,[e[15]||(e[15]=o("span",{class:"label"},"用户:",-1)),o("span",_e,r(l.username),1)])]),o("div",Ve,[a(f,{size:"small",icon:b(X),onClick:q=>O(l)},{default:t(()=>[...e[16]||(e[16]=[v("查看虚拟机",-1)])]),_:1},8,["icon","onClick"]),a(f,{size:"small",onClick:q=>U(l)},{default:t(()=>[...e[17]||(e[17]=[v("编辑",-1)])]),_:1},8,["onClick"]),a(f,{size:"small",type:"danger",onClick:q=>I(l)},{default:t(()=>[...e[18]||(e[18]=[v("删除",-1)])]),_:1},8,["onClick"])])]))),128))])):B("",!0),a(z,{modelValue:V.value,"onUpdate:modelValue":e[9]||(e[9]=l=>V.value=l),title:s.value.id?"编辑主机":"添加主机",width:"480px",class:"modern-dialog","destroy-on-close":""},{footer:t(()=>[a(f,{onClick:e[8]||(e[8]=l=>V.value=!1)},{default:t(()=>[...e[19]||(e[19]=[v("取消",-1)])]),_:1}),a(f,{type:"primary",onClick:F},{default:t(()=>[...e[20]||(e[20]=[v("保存",-1)])]),_:1})]),default:t(()=>[a(j,{model:s.value,"label-width":"90px"},{default:t(()=>[a(p,{label:"名称",required:""},{default:t(()=>[a(y,{modelValue:s.value.name,"onUpdate:modelValue":e[1]||(e[1]=l=>s.value.name=l),placeholder:"如 PVE-01"},null,8,["modelValue"])]),_:1}),a(p,{label:"地址",required:""},{default:t(()=>[a(y,{modelValue:s.value.hostname,"onUpdate:modelValue":e[2]||(e[2]=l=>s.value.hostname=l),placeholder:"192.168.1.100"},null,8,["modelValue"])]),_:1}),a(p,{label:"节点名"},{default:t(()=>[a(y,{modelValue:s.value.node_name,"onUpdate:modelValue":e[3]||(e[3]=l=>s.value.node_name=l),placeholder:"pve(默认)"},null,8,["modelValue"])]),_:1}),a(p,{label:"端口"},{default:t(()=>[a(Q,{modelValue:s.value.port,"onUpdate:modelValue":e[4]||(e[4]=l=>s.value.port=l),min:1,max:65535,style:{width:"100%"}},null,8,["modelValue"])]),_:1}),a(p,{label:"用户名",required:""},{default:t(()=>[a(y,{modelValue:s.value.username,"onUpdate:modelValue":e[5]||(e[5]=l=>s.value.username=l),placeholder:"root@pam 或 root@vmbr0"},null,8,["modelValue"])]),_:1}),a(p,{label:"密码",required:!s.value.id},{default:t(()=>[a(y,{modelValue:s.value.password,"onUpdate:modelValue":e[6]||(e[6]=l=>s.value.password=l),type:"password","show-password":"",placeholder:s.value.id?"留空保持不变":"必填"},null,8,["modelValue","placeholder"])]),_:1},8,["required"]),a(p,{label:"SSL 验证"},{default:t(()=>[a(T,{modelValue:s.value.verify_ssl,"onUpdate:modelValue":e[7]||(e[7]=l=>s.value.verify_ssl=l)},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue","title"]),a(z,{modelValue:C.value,"onUpdate:modelValue":e[10]||(e[10]=l=>C.value=l),title:`${((S=H.value)==null?void 0:S.name)||""} — 虚拟机列表`,width:"600px",class:"modern-dialog","destroy-on-close":""},{default:t(()=>[k.value?(u(),x(A,{key:0,title:k.value,type:"error",closable:!1,"show-icon":""},null,8,["title"])):!w.value&&!g.value.length?(u(),x(h,{key:1,description:"该节点上暂无虚拟机"})):w.value?(u(),m("div",ye,[a(M,{class:"loading-icon"},{default:t(()=>[a(b(Y))]),_:1}),e[21]||(e[21]=o("span",null,"正在获取虚拟机列表...",-1))])):(u(),m("div",we,[(u(!0),m(L,null,N(g.value,l=>(u(),m("div",{key:l.vmid,class:"vm-item"},[o("div",ge,[o("span",ke,"VM "+r(l.vmid),1),o("span",be,r(l.name),1)]),a($,{size:"small",type:l.status==="running"?"success":"info",effect:"light"},{default:t(()=>[v(r(l.status==="running"?"运行中":"已停止"),1)]),_:2},1032,["type"])]))),128))]))]),_:1},8,["modelValue","title"])])}}},He=te(Ee,[["__scopeId","data-v-fede7675"]]);export{He as default}; diff --git a/web/dist/assets/Topology-D7ycfmKq.js b/web/dist/assets/Topology-D7ycfmKq.js new file mode 100644 index 0000000..b5d3a8a --- /dev/null +++ b/web/dist/assets/Topology-D7ycfmKq.js @@ -0,0 +1,467 @@ +import{al as Ka,am as bi,an as me,k as EP,L as _P,ao as SP,a3 as MP,K as AP,o as iw,c as CP,a as rc,e as ow,m as TP,w as IP,M as kP,n as NP,ap as OP,G as LP,d as DP,h as PP}from"./index-D__NZX4I.js";import{_ as RP}from"./_plugin-vue_export-helper-DlAUqK2U.js";function FP(t,e){for(var r=0;rn[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const ty=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Ea},get Circle(){return b9},get Ellipse(){return w9},get Image(){return x9},get Line(){return E9},get Marker(){return S9},get Path(){return Ky},get Polygon(){return N9},get Polyline(){return O9},get Rect(){return P9},get Text(){return R9}},Symbol.toStringTag,{value:"Module"})),ry=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return aa},get Circle(){return z9},get Dom(){return j9},get Ellipse(){return U9},get Image(){return $9},get Line(){return X9},get Marker(){return W9},get Path(){return V9},get Polygon(){return Y9},get Polyline(){return q9},get Rect(){return Z9},get Text(){return e7}},Symbol.toStringTag,{value:"Module"}));var b0=function(t,e){return b0=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},b0(t,e)};function jt(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");b0(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var P=function(){return P=Object.assign||function(e){for(var r,n=1,a=arguments.length;n=0;s--)(o=t[s])&&(i=(a<3?o(i):a>3?o(e,r,i):o(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i}function vS(t,e){return function(r,n){e(r,n,t)}}function pS(t,e,r,n,a,i){function o(y){if(y!==void 0&&typeof y!="function")throw new TypeError("Function expected");return y}for(var s=n.kind,u=s==="getter"?"get":s==="setter"?"set":"value",f=!e&&t?n.static?t:t.prototype:null,l=e||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),c,h=!1,d=r.length-1;d>=0;d--){var v={};for(var p in n)v[p]=p==="access"?{}:n[p];for(var p in n.access)v.access[p]=n.access[p];v.addInitializer=function(y){if(h)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(y||null))};var g=(0,r[d])(s==="accessor"?{get:l.get,set:l.set}:l[u],v);if(s==="accessor"){if(g===void 0)continue;if(g===null||typeof g!="object")throw new TypeError("Object expected");(c=o(g.get))&&(l.get=c),(c=o(g.set))&&(l.set=c),(c=o(g.init))&&a.unshift(c)}else(c=o(g))&&(s==="field"?a.unshift(c):l[u]=c)}f&&Object.defineProperty(f,n.name,l),h=!0}function gS(t,e,r){for(var n=arguments.length>2,a=0;a0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function ny(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),a,i=[],o;try{for(;(e===void 0||e-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function xS(){for(var t=[],e=0;e1||u(d,p)})},v&&(a[d]=v(a[d])))}function u(d,v){try{f(n[d](v))}catch(p){h(i[0][3],p)}}function f(d){d.value instanceof Hs?Promise.resolve(d.value.v).then(l,c):h(i[0][2],d)}function l(d){u("next",d)}function c(d){u("throw",d)}function h(d,v){d(v),i.shift(),i.length&&u(i[0][0],i[0][1])}}function _S(t){var e,r;return e={},n("next"),n("throw",function(a){throw a}),n("return"),e[Symbol.iterator]=function(){return this},e;function n(a,i){e[a]=t[a]?function(o){return(r=!r)?{value:Hs(t[a](o)),done:!1}:i?i(o):o}:i}}function SS(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof _h=="function"?_h(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(s,u){o=t[i](o),a(s,u,o.done,o.value)})}}function a(i,o,s,u){Promise.resolve(u).then(function(f){i({value:f,done:s})},o)}}function MS(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var BP=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e},w0=function(t){return w0=Object.getOwnPropertyNames||function(e){var r=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[r.length]=n);return r},w0(t)};function AS(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r=w0(t),n=0;n-1:!1},DS=function(t,e){if(!On(t))return t;for(var r=[],n=0;n-1;)HP.call(t,i,1);return t},QP=Array.prototype.splice,GS=function(e,r){if(!On(e))return[];for(var n=e?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,QP.call(e,o,1))}return e},zS=function(t,e,r){if(!bt(t)&&!ln(t))return t;var n=r;return _e(t,function(a,i){n=e(n,a,i)}),n},JP=function(t,e){var r=[];if(!On(t))return r;for(var n=-1,a=[],i=t.length;++ni[s])return 1;if(a[s]r?r:t},pR=function(t,e){var r=e.toString(),n=r.indexOf(".");if(n===-1)return Math.round(t);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))},Ot=function(t){return xa(t,"Number")},gR=function(t){return Ot(t)&&t%1!==0},yR=function(t){return Ot(t)&&t%2===0},mR=Number.isInteger?Number.isInteger:function(t){return Ot(t)&&t%1===0},bR=function(t){return Ot(t)&&t<0},wR=1e-5;function US(t,e,r){return r===void 0&&(r=wR),Math.abs(t-e)0};const _R=function(t,e){if(bt(t)){for(var r,n=-1/0,a=0;an&&(r=i,n=o)}return r}},SR=function(t,e){if(bt(t)){for(var r,n=1/0,a=0;ae?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},ZS=function(t){return On(t)?Array.prototype.slice.call(t):[]};var nc={};const Ji=function(t){return t=t||"g",nc[t]?nc[t]+=1:nc[t]=1,t+nc[t]},sf=function(){},a3=function(t){return t};function i3(t){return Zt(t)?0:On(t)?t.length:Object.keys(t).length}var ac;const uf=YS(function(t,e){e===void 0&&(e={});var r=e.fontSize,n=e.fontFamily,a=e.fontWeight,i=e.fontStyle,o=e.fontVariant;return ac||(ac=document.createElement("canvas").getContext("2d")),ac.font=[i,o,a,r+"px",n].join(" "),ac.measureText(Ye(t)?t:"").width},function(t,e){return e===void 0&&(e={}),ay([t],iy(e)).join("")}),o3=function(t,e,r,n){n===void 0&&(n="...");var a=16,i=uf(n,r),o=Ye(t)?t:vu(t),s=e,u=[],f,l;if(uf(t,r)<=e)return t;for(;f=o.substr(0,a),l=uf(f,r),!(l+i>s&&l>s);)if(u.push(f),s-=l,o=o.substr(a),!o)return u.join("");for(;f=o.substr(0,1),l=uf(f,r),!(l+i>s);)if(u.push(f),s-=l,o=o.substr(1),!o)return u.join("");return""+u.join("")+n};var s3=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,r){var n=this.map[e];return n===void 0?r:n},t.prototype.set=function(e,r){this.map[e]=r},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}();const u3=Object.freeze(Object.defineProperty({__proto__:null,Cache:s3,assign:Et,augment:XR,clamp:vR,clearAnimationFrame:VS,clone:rr,contains:Sh,debounce:oy,deepMix:_r,difference:UP,each:_e,endsWith:oR,every:sR,extend:VR,filter:DS,find:XP,findIndex:WP,firstValue:VP,fixedBase:pR,flatten:YP,flattenDeep:FS,forIn:_e,get:HS,getEllipsisText:o3,getRange:qP,getType:$S,getWrapBehavior:cR,group:lR,groupBy:Ah,groupToMap:jS,has:uw,hasKey:uw,hasValue:IR,head:nR,identity:a3,includes:Sh,indexOf:YR,isArguments:PR,isArray:bt,isArrayLike:On,isBoolean:Qf,isDate:RR,isDecimal:gR,isElement:$R,isEmpty:HR,isEqual:jo,isEqualWith:ZR,isError:FR,isEven:yR,isFinite:BR,isFunction:Tr,isInteger:mR,isMatch:RS,isNegative:bR,isNil:Zt,isNull:GR,isNumber:Ot,isNumberEqual:US,isObject:gn,isObjectLike:Mh,isOdd:xR,isPlainObject:ln,isPositive:ER,isPrototype:XS,isRegExp:jR,isString:Ye,isType:xa,isUndefined:UR,keys:PS,last:aR,lowerCase:kR,lowerFirst:NR,map:KR,mapValues:JR,max:qa,maxBy:_R,measureTextWidth:uf,memoize:YS,min:Ha,minBy:SR,mix:Et,mod:gd,noop:sf,number2color:hR,omit:n3,parseRadius:dR,pick:r3,pull:KP,pullAt:GS,reduce:zS,remove:JP,requestAnimationFrame:WS,set:e3,size:i3,some:uR,sortBy:eR,startsWith:iR,substitute:OR,throttle:Ch,toArray:ZS,toDegree:AR,toInteger:CR,toRadian:yd,toString:vu,union:tR,uniq:kf,uniqueId:Ji,upperCase:LR,upperFirst:Zs,values:iy,valuesOfKey:rR,wrapBehavior:Bs},Symbol.toStringTag,{value:"Module"})),f3={getDefaultCfg:function(){return{}},getEvents:function(){return{}},updateCfg:function(e){return Object.assign(this,e),!0},shouldBegin:function(){return!0},shouldUpdate:function(){return!0},shouldEnd:function(){return!0},bind:function(e){var r=this,n=this.events;this.graph=e,(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!0),_e(n,function(a,i){e.on(i,a)}),document.addEventListener("visibilitychange",function(){r.keydown=!1})},unbind:function(e){var r=this.events,n=e.get("canvas").get("draggable");(this.type==="drag-canvas"||this.type==="brush-select"||this.type==="lasso-select")&&e.get("canvas").set("draggable",!1),_e(r,function(a,i){e.off(i,a)}),e.get("canvas").set("draggable",n)},get:function(e){return this[e]},set:function(e,r){return this[e]=r,this}};var sy=function(){function t(){}return t.registerBehavior=function(e,r){if(!r)throw new Error("please specify handler for this behavior: ".concat(e));var n=rr(f3);Object.assign(n,r);var a=function(o){var s=this;Object.assign(this,this.getDefaultCfg(),o);var u=this.getEvents();this.events=null;var f={};u&&(_e(u,function(l,c){f[c]=Bs(s,l)}),this.events=f)};a.prototype=n,t.types[e]=a},t.hasBehavior=function(e){return!!t.types[e]},t.getBehavior=function(e){return t.types[e]},t.types={},t}(),l3="*",KS=function(){function t(){this._events={}}return t.prototype.on=function(e,r,n){return this._events[e]||(this._events[e]=[]),this._events[e].push({callback:r,once:!!n}),this},t.prototype.once=function(e,r){return this.on(e,r,!0)},t.prototype.emit=function(e){for(var r=this,n=[],a=1;a=0?Math.round(t):t%.5===0?Math.floor(t):Math.round(t)}function c3(t){qt=t}var h3=Math.PI/180,d3=180/Math.PI;function v3(t){return t*h3}function p3(t){return t*d3}function g3(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pt;return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}const y3=Object.freeze(Object.defineProperty({__proto__:null,ANGLE_ORDER:QS,get ARRAY_TYPE(){return qt},EPSILON:pt,RANDOM:ya,equals:g3,round:Ba,setMatrixArrayType:c3,toDegree:p3,toRadian:v3},Symbol.toStringTag,{value:"Module"}));function m3(){var t=new qt(4);return qt!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t}function b3(t){var e=new qt(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function w3(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function x3(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t}function E3(t,e,r,n){var a=new qt(4);return a[0]=t,a[1]=e,a[2]=r,a[3]=n,a}function _3(t,e,r,n,a){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t}function S3(t,e){if(t===e){var r=e[1];t[1]=e[2],t[2]=r}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t}function M3(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r*i-a*n;return o?(o=1/o,t[0]=i*o,t[1]=-n*o,t[2]=-a*o,t[3]=r*o,t):null}function A3(t,e){var r=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=r,t}function C3(t){return t[0]*t[3]-t[2]*t[1]}function JS(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*s+i*u,t[1]=a*s+o*u,t[2]=n*f+i*l,t[3]=a*f+o*l,t}function T3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+i*s,t[1]=a*u+o*s,t[2]=n*-s+i*u,t[3]=a*-s+o*u,t}function I3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1];return t[0]=n*s,t[1]=a*s,t[2]=i*u,t[3]=o*u,t}function k3(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t}function N3(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t}function O3(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function L3(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3])}function D3(t,e,r,n){return t[2]=n[2]/n[0],r[0]=n[0],r[1]=n[1],r[3]=n[3]-t[2]*r[1],[t,e,r]}function P3(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}function eM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}function R3(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function F3(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(r-o)<=pt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}function B3(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}function G3(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}var z3=JS,j3=eM;const U3=Object.freeze(Object.defineProperty({__proto__:null,LDU:D3,add:P3,adjoint:A3,clone:b3,copy:w3,create:m3,determinant:C3,equals:F3,exactEquals:R3,frob:L3,fromRotation:k3,fromScaling:N3,fromValues:E3,identity:x3,invert:M3,mul:z3,multiply:JS,multiplyScalar:B3,multiplyScalarAndAdd:G3,rotate:T3,scale:I3,set:_3,str:O3,sub:j3,subtract:eM,transpose:S3},Symbol.toStringTag,{value:"Module"}));function $3(){var t=new qt(6);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t}function X3(t){var e=new qt(6);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 W3(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function V3(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Y3(t,e,r,n,a,i){var o=new qt(6);return o[0]=t,o[1]=e,o[2]=r,o[3]=n,o[4]=a,o[5]=i,o}function q3(t,e,r,n,a,i,o){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t}function H3(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=r*i-n*a;return u?(u=1/u,t[0]=i*u,t[1]=-n*u,t[2]=-a*u,t[3]=r*u,t[4]=(a*s-i*o)*u,t[5]=(n*o-r*s)*u,t):null}function Z3(t){return t[0]*t[3]-t[1]*t[2]}function tM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1],c=r[2],h=r[3],d=r[4],v=r[5];return t[0]=n*f+i*l,t[1]=a*f+o*l,t[2]=n*c+i*h,t[3]=a*c+o*h,t[4]=n*d+i*v+s,t[5]=a*d+o*v+u,t}function K3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=Math.sin(r),l=Math.cos(r);return t[0]=n*l+i*f,t[1]=a*l+o*f,t[2]=n*-f+i*l,t[3]=a*-f+o*l,t[4]=s,t[5]=u,t}function Q3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1];return t[0]=n*f,t[1]=a*f,t[2]=i*l,t[3]=o*l,t[4]=s,t[5]=u,t}function J3(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=r[0],l=r[1];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=n*f+i*l+s,t[5]=a*f+o*l+u,t}function e5(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t[4]=0,t[5]=0,t}function t5(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t}function r5(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t}function n5(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"}function a5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+1)}function i5(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t}function rM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t}function o5(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t}function s5(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t}function u5(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]}function f5(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=e[0],f=e[1],l=e[2],c=e[3],h=e[4],d=e[5];return Math.abs(r-u)<=pt*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-f)<=pt*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(a-l)<=pt*Math.max(1,Math.abs(a),Math.abs(l))&&Math.abs(i-c)<=pt*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-h)<=pt*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-d)<=pt*Math.max(1,Math.abs(s),Math.abs(d))}var l5=tM,c5=rM;const h5=Object.freeze(Object.defineProperty({__proto__:null,add:i5,clone:X3,copy:W3,create:$3,determinant:Z3,equals:f5,exactEquals:u5,frob:a5,fromRotation:e5,fromScaling:t5,fromTranslation:r5,fromValues:Y3,identity:V3,invert:H3,mul:l5,multiply:tM,multiplyScalar:o5,multiplyScalarAndAdd:s5,rotate:K3,scale:Q3,set:q3,str:n5,sub:c5,subtract:rM,translate:J3},Symbol.toStringTag,{value:"Module"}));function nM(){var t=new qt(9);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function d5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function v5(t){var e=new qt(9);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[6]=t[6],e[7]=t[7],e[8]=t[8],e}function p5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function g5(t,e,r,n,a,i,o,s,u){var f=new qt(9);return f[0]=t,f[1]=e,f[2]=r,f[3]=n,f[4]=a,f[5]=i,f[6]=o,f[7]=s,f[8]=u,f}function y5(t,e,r,n,a,i,o,s,u,f){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t[8]=f,t}function m5(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function b5(t,e){if(t===e){var r=e[1],n=e[2],a=e[5];t[1]=e[3],t[2]=e[6],t[3]=r,t[5]=e[7],t[6]=n,t[7]=a}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function aM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=l*o-s*f,h=-l*i+s*u,d=f*i-o*u,v=r*c+n*h+a*d;return v?(v=1/v,t[0]=c*v,t[1]=(-l*n+a*f)*v,t[2]=(s*n-a*o)*v,t[3]=h*v,t[4]=(l*r-a*u)*v,t[5]=(-s*r+a*i)*v,t[6]=d*v,t[7]=(-f*r+n*u)*v,t[8]=(o*r-n*i)*v,t):null}function w5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8];return t[0]=o*l-s*f,t[1]=a*f-n*l,t[2]=n*s-a*o,t[3]=s*u-i*l,t[4]=r*l-a*u,t[5]=a*i-r*s,t[6]=i*f-o*u,t[7]=n*u-r*f,t[8]=r*o-n*i,t}function x5(t){var e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],o=t[5],s=t[6],u=t[7],f=t[8];return e*(f*i-o*u)+r*(-f*a+o*s)+n*(u*a-i*s)}function Qa(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=r[0],d=r[1],v=r[2],p=r[3],g=r[4],y=r[5],m=r[6],b=r[7],w=r[8];return t[0]=h*n+d*o+v*f,t[1]=h*a+d*s+v*l,t[2]=h*i+d*u+v*c,t[3]=p*n+g*o+y*f,t[4]=p*a+g*s+y*l,t[5]=p*i+g*u+y*c,t[6]=m*n+b*o+w*f,t[7]=m*a+b*s+w*l,t[8]=m*i+b*u+w*c,t}function E5(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=r[0],d=r[1];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=s,t[5]=u,t[6]=h*n+d*o+f,t[7]=h*a+d*s+l,t[8]=h*i+d*u+c,t}function _5(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=Math.sin(r),d=Math.cos(r);return t[0]=d*n+h*o,t[1]=d*a+h*s,t[2]=d*i+h*u,t[3]=d*o-h*n,t[4]=d*s-h*a,t[5]=d*u-h*i,t[6]=f,t[7]=l,t[8]=c,t}function S5(t,e,r){var n=r[0],a=r[1];return t[0]=n*e[0],t[1]=n*e[1],t[2]=n*e[2],t[3]=a*e[3],t[4]=a*e[4],t[5]=a*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function uy(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function fy(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function ly(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function M5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function A5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r+r,s=n+n,u=a+a,f=r*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return t[0]=1-c-v,t[3]=l-y,t[6]=h+g,t[1]=l+y,t[4]=1-f-v,t[7]=d-p,t[2]=h-g,t[5]=d+p,t[8]=1-f-c,t}function C5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,t[0]=(s*k-u*I+f*C)*O,t[1]=(u*M-o*k-f*A)*O,t[2]=(o*I-s*M+f*S)*O,t[3]=(a*I-n*k-i*C)*O,t[4]=(r*k-a*M+i*A)*O,t[5]=(n*M-r*I-i*S)*O,t[6]=(p*_-g*E+y*x)*O,t[7]=(g*w-v*_-y*b)*O,t[8]=(v*E-p*w+y*m)*O,t):null}function T5(t,e,r){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function I5(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function k5(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8])}function N5(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t}function iM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t}function O5(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t}function L5(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t}function D5(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function P5(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=t[8],c=e[0],h=e[1],d=e[2],v=e[3],p=e[4],g=e[5],y=e[6],m=e[7],b=e[8];return Math.abs(r-c)<=pt*Math.max(1,Math.abs(r),Math.abs(c))&&Math.abs(n-h)<=pt*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(a-d)<=pt*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(i-v)<=pt*Math.max(1,Math.abs(i),Math.abs(v))&&Math.abs(o-p)<=pt*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(s-g)<=pt*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(u-y)<=pt*Math.max(1,Math.abs(u),Math.abs(y))&&Math.abs(f-m)<=pt*Math.max(1,Math.abs(f),Math.abs(m))&&Math.abs(l-b)<=pt*Math.max(1,Math.abs(l),Math.abs(b))}var R5=Qa,F5=iM;const oM=Object.freeze(Object.defineProperty({__proto__:null,add:N5,adjoint:w5,clone:v5,copy:p5,create:nM,determinant:x5,equals:P5,exactEquals:D5,frob:k5,fromMat2d:M5,fromMat4:d5,fromQuat:A5,fromRotation:fy,fromScaling:ly,fromTranslation:uy,fromValues:g5,identity:m5,invert:aM,mul:R5,multiply:Qa,multiplyScalar:O5,multiplyScalarAndAdd:L5,normalFromMat4:C5,projection:T5,rotate:_5,scale:S5,set:y5,str:I5,sub:F5,subtract:iM,translate:E5,transpose:b5},Symbol.toStringTag,{value:"Module"}));function B5(){var t=new qt(16);return qt!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function G5(t){var e=new qt(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function z5(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function j5(t,e,r,n,a,i,o,s,u,f,l,c,h,d,v,p){var g=new qt(16);return g[0]=t,g[1]=e,g[2]=r,g[3]=n,g[4]=a,g[5]=i,g[6]=o,g[7]=s,g[8]=u,g[9]=f,g[10]=l,g[11]=c,g[12]=h,g[13]=d,g[14]=v,g[15]=p,g}function U5(t,e,r,n,a,i,o,s,u,f,l,c,h,d,v,p,g){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t[8]=f,t[9]=l,t[10]=c,t[11]=h,t[12]=d,t[13]=v,t[14]=p,t[15]=g,t}function sM(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function $5(t,e){if(t===e){var r=e[1],n=e[2],a=e[3],i=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=i,t[11]=e[14],t[12]=a,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function X5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g,O=m*k-b*I+w*C+x*M-E*A+_*S;return O?(O=1/O,t[0]=(s*k-u*I+f*C)*O,t[1]=(a*I-n*k-i*C)*O,t[2]=(p*_-g*E+y*x)*O,t[3]=(h*E-c*_-d*x)*O,t[4]=(u*M-o*k-f*A)*O,t[5]=(r*k-a*M+i*A)*O,t[6]=(g*w-v*_-y*b)*O,t[7]=(l*_-h*w+d*b)*O,t[8]=(o*I-s*M+f*S)*O,t[9]=(n*M-r*I-i*S)*O,t[10]=(v*E-p*w+y*m)*O,t[11]=(c*w-l*E-d*m)*O,t[12]=(s*A-o*C-u*S)*O,t[13]=(r*C-n*A+a*S)*O,t[14]=(p*b-v*x-g*m)*O,t[15]=(l*x-c*b+h*m)*O,t):null}function W5(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],u=e[6],f=e[7],l=e[8],c=e[9],h=e[10],d=e[11],v=e[12],p=e[13],g=e[14],y=e[15],m=r*s-n*o,b=r*u-a*o,w=r*f-i*o,x=n*u-a*s,E=n*f-i*s,_=a*f-i*u,S=l*p-c*v,A=l*g-h*v,M=l*y-d*v,C=c*g-h*p,I=c*y-d*p,k=h*y-d*g;return t[0]=s*k-u*I+f*C,t[1]=a*I-n*k-i*C,t[2]=p*_-g*E+y*x,t[3]=h*E-c*_-d*x,t[4]=u*M-o*k-f*A,t[5]=r*k-a*M+i*A,t[6]=g*w-v*_-y*b,t[7]=l*_-h*w+d*b,t[8]=o*I-s*M+f*S,t[9]=n*M-r*I-i*S,t[10]=v*E-p*w+y*m,t[11]=c*w-l*E-d*m,t[12]=s*A-o*C-u*S,t[13]=r*C-n*A+a*S,t[14]=p*b-v*x-g*m,t[15]=l*x-c*b+h*m,t}function V5(t){var e=t[0],r=t[1],n=t[2],a=t[3],i=t[4],o=t[5],s=t[6],u=t[7],f=t[8],l=t[9],c=t[10],h=t[11],d=t[12],v=t[13],p=t[14],g=t[15],y=e*o-r*i,m=e*s-n*i,b=r*s-n*o,w=f*v-l*d,x=f*p-c*d,E=l*p-c*v,_=e*E-r*x+n*w,S=i*E-o*x+s*w,A=f*b-l*m+c*y,M=d*b-v*m+p*y;return u*_-a*S+g*A-h*M}function uM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=e[8],h=e[9],d=e[10],v=e[11],p=e[12],g=e[13],y=e[14],m=e[15],b=r[0],w=r[1],x=r[2],E=r[3];return t[0]=b*n+w*s+x*c+E*p,t[1]=b*a+w*u+x*h+E*g,t[2]=b*i+w*f+x*d+E*y,t[3]=b*o+w*l+x*v+E*m,b=r[4],w=r[5],x=r[6],E=r[7],t[4]=b*n+w*s+x*c+E*p,t[5]=b*a+w*u+x*h+E*g,t[6]=b*i+w*f+x*d+E*y,t[7]=b*o+w*l+x*v+E*m,b=r[8],w=r[9],x=r[10],E=r[11],t[8]=b*n+w*s+x*c+E*p,t[9]=b*a+w*u+x*h+E*g,t[10]=b*i+w*f+x*d+E*y,t[11]=b*o+w*l+x*v+E*m,b=r[12],w=r[13],x=r[14],E=r[15],t[12]=b*n+w*s+x*c+E*p,t[13]=b*a+w*u+x*h+E*g,t[14]=b*i+w*f+x*d+E*y,t[15]=b*o+w*l+x*v+E*m,t}function Y5(t,e,r){var n=r[0],a=r[1],i=r[2],o,s,u,f,l,c,h,d,v,p,g,y;return e===t?(t[12]=e[0]*n+e[4]*a+e[8]*i+e[12],t[13]=e[1]*n+e[5]*a+e[9]*i+e[13],t[14]=e[2]*n+e[6]*a+e[10]*i+e[14],t[15]=e[3]*n+e[7]*a+e[11]*i+e[15]):(o=e[0],s=e[1],u=e[2],f=e[3],l=e[4],c=e[5],h=e[6],d=e[7],v=e[8],p=e[9],g=e[10],y=e[11],t[0]=o,t[1]=s,t[2]=u,t[3]=f,t[4]=l,t[5]=c,t[6]=h,t[7]=d,t[8]=v,t[9]=p,t[10]=g,t[11]=y,t[12]=o*n+l*a+v*i+e[12],t[13]=s*n+c*a+p*i+e[13],t[14]=u*n+h*a+g*i+e[14],t[15]=f*n+d*a+y*i+e[15]),t}function q5(t,e,r){var n=r[0],a=r[1],i=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*a,t[5]=e[5]*a,t[6]=e[6]*a,t[7]=e[7]*a,t[8]=e[8]*i,t[9]=e[9]*i,t[10]=e[10]*i,t[11]=e[11]*i,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function H5(t,e,r,n){var a=n[0],i=n[1],o=n[2],s=Math.sqrt(a*a+i*i+o*o),u,f,l,c,h,d,v,p,g,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;return s0?(r[0]=(s*o+l*n+u*i-f*a)*2/c,r[1]=(u*o+l*a+f*n-s*i)*2/c,r[2]=(f*o+l*i+s*a-u*n)*2/c):(r[0]=(s*o+l*n+u*i-f*a)*2,r[1]=(u*o+l*a+f*n-s*i)*2,r[2]=(f*o+l*i+s*a-u*n)*2),fM(t,e,r),t}function lM(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function cM(t,e){var r=e[0],n=e[1],a=e[2],i=e[4],o=e[5],s=e[6],u=e[8],f=e[9],l=e[10];return t[0]=Math.sqrt(r*r+n*n+a*a),t[1]=Math.sqrt(i*i+o*o+s*s),t[2]=Math.sqrt(u*u+f*f+l*l),t}function hM(t,e){var r=new qt(3);cM(r,e);var n=1/r[0],a=1/r[1],i=1/r[2],o=e[0]*n,s=e[1]*a,u=e[2]*i,f=e[4]*n,l=e[5]*a,c=e[6]*i,h=e[8]*n,d=e[9]*a,v=e[10]*i,p=o+l+v,g=0;return p>0?(g=Math.sqrt(p+1)*2,t[3]=.25*g,t[0]=(c-d)/g,t[1]=(h-u)/g,t[2]=(s-f)/g):o>l&&o>v?(g=Math.sqrt(1+o-l-v)*2,t[3]=(c-d)/g,t[0]=.25*g,t[1]=(s+f)/g,t[2]=(h+u)/g):l>v?(g=Math.sqrt(1+l-o-v)*2,t[3]=(h-u)/g,t[0]=(s+f)/g,t[1]=.25*g,t[2]=(c+d)/g):(g=Math.sqrt(1+v-o-l)*2,t[3]=(s-f)/g,t[0]=(h+u)/g,t[1]=(c+d)/g,t[2]=.25*g),t}function oF(t,e,r,n){e[0]=n[12],e[1]=n[13],e[2]=n[14];var a=n[0],i=n[1],o=n[2],s=n[4],u=n[5],f=n[6],l=n[8],c=n[9],h=n[10];r[0]=Math.sqrt(a*a+i*i+o*o),r[1]=Math.sqrt(s*s+u*u+f*f),r[2]=Math.sqrt(l*l+c*c+h*h);var d=1/r[0],v=1/r[1],p=1/r[2],g=a*d,y=i*v,m=o*p,b=s*d,w=u*v,x=f*p,E=l*d,_=c*v,S=h*p,A=g+w+S,M=0;return A>0?(M=Math.sqrt(A+1)*2,t[3]=.25*M,t[0]=(x-_)/M,t[1]=(E-m)/M,t[2]=(y-b)/M):g>w&&g>S?(M=Math.sqrt(1+g-w-S)*2,t[3]=(x-_)/M,t[0]=.25*M,t[1]=(y+b)/M,t[2]=(E+m)/M):w>S?(M=Math.sqrt(1+w-g-S)*2,t[3]=(E-m)/M,t[0]=(y+b)/M,t[1]=.25*M,t[2]=(x+_)/M):(M=Math.sqrt(1+S-g-w)*2,t[3]=(y-b)/M,t[0]=(E+m)/M,t[1]=(x+_)/M,t[2]=.25*M),t}function sF(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=a+a,f=i+i,l=o+o,c=a*u,h=a*f,d=a*l,v=i*f,p=i*l,g=o*l,y=s*u,m=s*f,b=s*l,w=n[0],x=n[1],E=n[2];return t[0]=(1-(v+g))*w,t[1]=(h+b)*w,t[2]=(d-m)*w,t[3]=0,t[4]=(h-b)*x,t[5]=(1-(c+g))*x,t[6]=(p+y)*x,t[7]=0,t[8]=(d+m)*E,t[9]=(p-y)*E,t[10]=(1-(c+v))*E,t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}function uF(t,e,r,n,a){var i=e[0],o=e[1],s=e[2],u=e[3],f=i+i,l=o+o,c=s+s,h=i*f,d=i*l,v=i*c,p=o*l,g=o*c,y=s*c,m=u*f,b=u*l,w=u*c,x=n[0],E=n[1],_=n[2],S=a[0],A=a[1],M=a[2],C=(1-(p+y))*x,I=(d+w)*x,k=(v-b)*x,O=(d-w)*E,B=(1-(h+y))*E,L=(g+m)*E,z=(v+b)*_,X=(g-m)*_,R=(1-(h+p))*_;return t[0]=C,t[1]=I,t[2]=k,t[3]=0,t[4]=O,t[5]=B,t[6]=L,t[7]=0,t[8]=z,t[9]=X,t[10]=R,t[11]=0,t[12]=r[0]+S-(C*S+O*A+z*M),t[13]=r[1]+A-(I*S+B*A+X*M),t[14]=r[2]+M-(k*S+L*A+R*M),t[15]=1,t}function fF(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r+r,s=n+n,u=a+a,f=r*o,l=n*o,c=n*s,h=a*o,d=a*s,v=a*u,p=i*o,g=i*s,y=i*u;return t[0]=1-c-v,t[1]=l+y,t[2]=h-g,t[3]=0,t[4]=l-y,t[5]=1-f-v,t[6]=d+p,t[7]=0,t[8]=h+g,t[9]=d-p,t[10]=1-f-c,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function lF(t,e,r,n,a,i,o){var s=1/(r-e),u=1/(a-n),f=1/(i-o);return t[0]=i*2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i*2*u,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(a+n)*u,t[10]=(o+i)*f,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*i*2*f,t[15]=0,t}function dM(t,e,r,n,a){var i=1/Math.tan(e/2);if(t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0){var o=1/(n-a);t[10]=(a+n)*o,t[14]=2*a*n*o}else t[10]=-1,t[14]=-2*n;return t}var cF=dM;function hF(t,e,r,n,a){var i=1/Math.tan(e/2);if(t[0]=i/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=i,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,a!=null&&a!==1/0){var o=1/(n-a);t[10]=a*o,t[14]=a*n*o}else t[10]=-1,t[14]=-n;return t}function dF(t,e,r,n){var a=Math.tan(e.upDegrees*Math.PI/180),i=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),u=2/(o+s),f=2/(a+i);return t[0]=u,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=f,t[6]=0,t[7]=0,t[8]=-((o-s)*u*.5),t[9]=(a-i)*f*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}function vM(t,e,r,n,a,i,o){var s=1/(e-r),u=1/(n-a),f=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*f,t[11]=0,t[12]=(e+r)*s,t[13]=(a+n)*u,t[14]=(o+i)*f,t[15]=1,t}var vF=vM;function pF(t,e,r,n,a,i,o){var s=1/(e-r),u=1/(n-a),f=1/(i-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*u,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=f,t[11]=0,t[12]=(e+r)*s,t[13]=(a+n)*u,t[14]=i*f,t[15]=1,t}function gF(t,e,r,n){var a,i,o,s,u,f,l,c,h,d,v=e[0],p=e[1],g=e[2],y=n[0],m=n[1],b=n[2],w=r[0],x=r[1],E=r[2];return Math.abs(v-w)0&&(d=1/Math.sqrt(d),l*=d,c*=d,h*=d);var v=u*h-f*c,p=f*l-s*h,g=s*c-u*l;return d=v*v+p*p+g*g,d>0&&(d=1/Math.sqrt(d),v*=d,p*=d,g*=d),t[0]=v,t[1]=p,t[2]=g,t[3]=0,t[4]=c*g-h*p,t[5]=h*v-l*g,t[6]=l*p-c*v,t[7]=0,t[8]=l,t[9]=c,t[10]=h,t[11]=0,t[12]=a,t[13]=i,t[14]=o,t[15]=1,t}function mF(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function bF(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]+t[3]*t[3]+t[4]*t[4]+t[5]*t[5]+t[6]*t[6]+t[7]*t[7]+t[8]*t[8]+t[9]*t[9]+t[10]*t[10]+t[11]*t[11]+t[12]*t[12]+t[13]*t[13]+t[14]*t[14]+t[15]*t[15])}function wF(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t[4]=e[4]+r[4],t[5]=e[5]+r[5],t[6]=e[6]+r[6],t[7]=e[7]+r[7],t[8]=e[8]+r[8],t[9]=e[9]+r[9],t[10]=e[10]+r[10],t[11]=e[11]+r[11],t[12]=e[12]+r[12],t[13]=e[13]+r[13],t[14]=e[14]+r[14],t[15]=e[15]+r[15],t}function pM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t[4]=e[4]-r[4],t[5]=e[5]-r[5],t[6]=e[6]-r[6],t[7]=e[7]-r[7],t[8]=e[8]-r[8],t[9]=e[9]-r[9],t[10]=e[10]-r[10],t[11]=e[11]-r[11],t[12]=e[12]-r[12],t[13]=e[13]-r[13],t[14]=e[14]-r[14],t[15]=e[15]-r[15],t}function xF(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*r,t[5]=e[5]*r,t[6]=e[6]*r,t[7]=e[7]*r,t[8]=e[8]*r,t[9]=e[9]*r,t[10]=e[10]*r,t[11]=e[11]*r,t[12]=e[12]*r,t[13]=e[13]*r,t[14]=e[14]*r,t[15]=e[15]*r,t}function EF(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t[4]=e[4]+r[4]*n,t[5]=e[5]+r[5]*n,t[6]=e[6]+r[6]*n,t[7]=e[7]+r[7]*n,t[8]=e[8]+r[8]*n,t[9]=e[9]+r[9]*n,t[10]=e[10]+r[10]*n,t[11]=e[11]+r[11]*n,t[12]=e[12]+r[12]*n,t[13]=e[13]+r[13]*n,t[14]=e[14]+r[14]*n,t[15]=e[15]+r[15]*n,t}function _F(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function SF(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=t[8],c=t[9],h=t[10],d=t[11],v=t[12],p=t[13],g=t[14],y=t[15],m=e[0],b=e[1],w=e[2],x=e[3],E=e[4],_=e[5],S=e[6],A=e[7],M=e[8],C=e[9],I=e[10],k=e[11],O=e[12],B=e[13],L=e[14],z=e[15];return Math.abs(r-m)<=pt*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(n-b)<=pt*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(a-w)<=pt*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(i-x)<=pt*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(o-E)<=pt*Math.max(1,Math.abs(o),Math.abs(E))&&Math.abs(s-_)<=pt*Math.max(1,Math.abs(s),Math.abs(_))&&Math.abs(u-S)<=pt*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(f-A)<=pt*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(l-M)<=pt*Math.max(1,Math.abs(l),Math.abs(M))&&Math.abs(c-C)<=pt*Math.max(1,Math.abs(c),Math.abs(C))&&Math.abs(h-I)<=pt*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(d-k)<=pt*Math.max(1,Math.abs(d),Math.abs(k))&&Math.abs(v-O)<=pt*Math.max(1,Math.abs(v),Math.abs(O))&&Math.abs(p-B)<=pt*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(g-L)<=pt*Math.max(1,Math.abs(g),Math.abs(L))&&Math.abs(y-z)<=pt*Math.max(1,Math.abs(y),Math.abs(z))}var MF=uM,AF=pM;const CF=Object.freeze(Object.defineProperty({__proto__:null,add:wF,adjoint:W5,clone:G5,copy:z5,create:B5,decompose:oF,determinant:V5,equals:SF,exactEquals:_F,frob:bF,fromQuat:fF,fromQuat2:iF,fromRotation:tF,fromRotationTranslation:fM,fromRotationTranslationScale:sF,fromRotationTranslationScaleOrigin:uF,fromScaling:eF,fromTranslation:J5,fromValues:j5,fromXRotation:rF,fromYRotation:nF,fromZRotation:aF,frustum:lF,getRotation:hM,getScaling:cM,getTranslation:lM,identity:sM,invert:X5,lookAt:gF,mul:MF,multiply:uM,multiplyScalar:xF,multiplyScalarAndAdd:EF,ortho:vF,orthoNO:vM,orthoZO:pF,perspective:cF,perspectiveFromFieldOfView:dF,perspectiveNO:dM,perspectiveZO:hF,rotate:H5,rotateX:Z5,rotateY:K5,rotateZ:Q5,scale:q5,set:U5,str:mF,sub:AF,subtract:pM,targetTo:yF,translate:Y5,transpose:$5},Symbol.toStringTag,{value:"Module"}));function cy(){var t=new qt(3);return qt!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function TF(t){var e=new qt(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function gM(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}function x0(t,e,r){var n=new qt(3);return n[0]=t,n[1]=e,n[2]=r,n}function IF(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function kF(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}function NF(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}function yM(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}function mM(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}function bM(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}function OF(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function LF(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function DF(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}function PF(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}function RF(t,e){return t[0]=Ba(e[0]),t[1]=Ba(e[1]),t[2]=Ba(e[2]),t}function FF(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}function BF(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}function wM(t,e){var r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return Math.sqrt(r*r+n*n+a*a)}function xM(t,e){var r=e[0]-t[0],n=e[1]-t[1],a=e[2]-t[2];return r*r+n*n+a*a}function EM(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}function GF(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function zF(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function _M(t,e){var r=e[0],n=e[1],a=e[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i,t}function md(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function eh(t,e,r){var n=e[0],a=e[1],i=e[2],o=r[0],s=r[1],u=r[2];return t[0]=a*u-i*s,t[1]=i*o-n*u,t[2]=n*s-a*o,t}function jF(t,e,r,n){var a=e[0],i=e[1],o=e[2];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t}function UF(t,e,r,n){var a=Math.acos(Math.min(Math.max(md(e,r),-1),1)),i=Math.sin(a),o=Math.sin((1-n)*a)/i,s=Math.sin(n*a)/i;return t[0]=o*e[0]+s*r[0],t[1]=o*e[1]+s*r[1],t[2]=o*e[2]+s*r[2],t}function $F(t,e,r,n,a,i){var o=i*i,s=o*(2*i-3)+1,u=o*(i-2)+i,f=o*(i-1),l=o*(3-2*i);return t[0]=e[0]*s+r[0]*u+n[0]*f+a[0]*l,t[1]=e[1]*s+r[1]*u+n[1]*f+a[1]*l,t[2]=e[2]*s+r[2]*u+n[2]*f+a[2]*l,t}function XF(t,e,r,n,a,i){var o=1-i,s=o*o,u=i*i,f=s*o,l=3*i*s,c=3*u*o,h=u*i;return t[0]=e[0]*f+r[0]*l+n[0]*c+a[0]*h,t[1]=e[1]*f+r[1]*l+n[1]*c+a[1]*h,t[2]=e[2]*f+r[2]*l+n[2]*c+a[2]*h,t}function WF(t,e){e=e===void 0?1:e;var r=ya()*2*Math.PI,n=ya()*2-1,a=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*a,t[1]=Math.sin(r)*a,t[2]=n*e,t}function VF(t,e,r){var n=e[0],a=e[1],i=e[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,t[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,t[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,t}function bd(t,e,r){var n=e[0],a=e[1],i=e[2];return t[0]=n*r[0]+a*r[3]+i*r[6],t[1]=n*r[1]+a*r[4]+i*r[7],t[2]=n*r[2]+a*r[5]+i*r[8],t}function YF(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,t[0]=s+o*l+a*h-i*c,t[1]=u+o*c+i*l-n*h,t[2]=f+o*h+n*c-a*l,t}function qF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function HF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function ZF(t,e,r,n){var a=[],i=[];return a[0]=e[0]-r[0],a[1]=e[1]-r[1],a[2]=e[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],t[0]=i[0]+r[0],t[1]=i[1]+r[1],t[2]=i[2]+r[2],t}function KF(t,e){var r=t[0],n=t[1],a=t[2],i=e[0],o=e[1],s=e[2],u=Math.sqrt((r*r+n*n+a*a)*(i*i+o*o+s*s)),f=u&&md(t,e)/u;return Math.acos(Math.min(Math.max(f,-1),1))}function QF(t){return t[0]=0,t[1]=0,t[2]=0,t}function JF(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function eB(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function tB(t,e){var r=t[0],n=t[1],a=t[2],i=e[0],o=e[1],s=e[2];return Math.abs(r-i)<=pt*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-o)<=pt*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=pt*Math.max(1,Math.abs(a),Math.abs(s))}var rB=yM,nB=mM,aB=bM,iB=wM,oB=xM,SM=gM,sB=EM,uB=function(){var t=cy();return function(e,r,n,a,i,o){var s,u;for(r||(r=3),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;s0&&(o=1/Math.sqrt(o)),t[0]=r*o,t[1]=n*o,t[2]=a*o,t[3]=i*o,t}function vy(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function mB(t,e,r,n){var a=r[0]*n[1]-r[1]*n[0],i=r[0]*n[2]-r[2]*n[0],o=r[0]*n[3]-r[3]*n[0],s=r[1]*n[2]-r[2]*n[1],u=r[1]*n[3]-r[3]*n[1],f=r[2]*n[3]-r[3]*n[2],l=e[0],c=e[1],h=e[2],d=e[3];return t[0]=c*f-h*u+d*s,t[1]=-(l*f)+h*o-d*i,t[2]=l*u-c*o+d*a,t[3]=-(l*s)+c*i-h*a,t}function BM(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}function bB(t,e){e=e===void 0?1:e;var r,n,a,i,o,s,u;u=ya(),r=u*2-1,n=(4*ya()-2)*Math.sqrt(u*-u+u),o=r*r+n*n,u=ya(),a=u*2-1,i=(4*ya()-2)*Math.sqrt(u*-u+u),s=a*a+i*i;var f=Math.sqrt((1-o)/s);return t[0]=e*r,t[1]=e*n,t[2]=e*a*f,t[3]=e*i*f,t}function wB(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3];return t[0]=r[0]*n+r[4]*a+r[8]*i+r[12]*o,t[1]=r[1]*n+r[5]*a+r[9]*i+r[13]*o,t[2]=r[2]*n+r[6]*a+r[10]*i+r[14]*o,t[3]=r[3]*n+r[7]*a+r[11]*i+r[15]*o,t}function xB(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=a*f-i*u,c=i*s-n*f,h=n*u-a*s;return l=l+l,c=c+c,h=h+h,t[0]=s+o*l+a*h-i*c,t[1]=u+o*c+i*l-n*h,t[2]=f+o*h+n*c-a*l,t[3]=e[3],t}function EB(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function _B(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function GM(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function SB(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=e[0],s=e[1],u=e[2],f=e[3];return Math.abs(r-o)<=pt*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=pt*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(a-u)<=pt*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(i-f)<=pt*Math.max(1,Math.abs(i),Math.abs(f))}var MB=NM,AB=OM,CB=LM,TB=PM,IB=RM,kB=hy,NB=dy,OB=function(){var t=MM();return function(e,r,n,a,i,o){var s,u;for(r||(r=4),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;spt?(t[0]=e[0]/n,t[1]=e[1]/n,t[2]=e[2]/n):(t[0]=1,t[1]=0,t[2]=0),r}function RB(t,e){var r=gy(t,e);return Math.acos(2*r*r-1)}function jM(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*l+o*s+a*f-i*u,t[1]=a*l+o*u+i*s-n*f,t[2]=i*l+o*f+n*u-a*s,t[3]=o*l-n*s-a*u-i*f,t}function UM(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+o*s,t[1]=a*u+i*s,t[2]=i*u-a*s,t[3]=o*u-n*s,t}function $M(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u-i*s,t[1]=a*u+o*s,t[2]=i*u+n*s,t[3]=o*u-a*s,t}function XM(t,e,r){r*=.5;var n=e[0],a=e[1],i=e[2],o=e[3],s=Math.sin(r),u=Math.cos(r);return t[0]=n*u+a*s,t[1]=a*u-n*s,t[2]=i*u+o*s,t[3]=o*u-i*s,t}function FB(t,e){var r=e[0],n=e[1],a=e[2];return t[0]=r,t[1]=n,t[2]=a,t[3]=Math.sqrt(Math.abs(1-r*r-n*n-a*a)),t}function WM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(r*r+n*n+a*a),s=Math.exp(i),u=o>0?s*Math.sin(o)/o:0;return t[0]=r*u,t[1]=n*u,t[2]=a*u,t[3]=s*Math.cos(o),t}function VM(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=Math.sqrt(r*r+n*n+a*a),s=o>0?Math.atan2(o,i)/o:0;return t[0]=r*s,t[1]=n*s,t[2]=a*s,t[3]=.5*Math.log(r*r+n*n+a*a+i*i),t}function BB(t,e,r){return VM(t,e),qM(t,t,r),WM(t,t),t}function th(t,e,r,n){var a=e[0],i=e[1],o=e[2],s=e[3],u=r[0],f=r[1],l=r[2],c=r[3],h,d,v,p,g;return d=a*u+i*f+o*l+s*c,d<0&&(d=-d,u=-u,f=-f,l=-l,c=-c),1-d>pt?(h=Math.acos(d),v=Math.sin(h),p=Math.sin((1-n)*h)/v,g=Math.sin(n*h)/v):(p=1-n,g=n),t[0]=p*a+g*u,t[1]=p*i+g*f,t[2]=p*o+g*l,t[3]=p*s+g*c,t}function GB(t){var e=ya(),r=ya(),n=ya(),a=Math.sqrt(1-e),i=Math.sqrt(e);return t[0]=a*Math.sin(2*Math.PI*r),t[1]=a*Math.cos(2*Math.PI*r),t[2]=i*Math.sin(2*Math.PI*n),t[3]=i*Math.cos(2*Math.PI*n),t}function zB(t,e){var r=e[0],n=e[1],a=e[2],i=e[3],o=r*r+n*n+a*a+i*i,s=o?1/o:0;return t[0]=-r*s,t[1]=-n*s,t[2]=-a*s,t[3]=i*s,t}function jB(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function YM(t,e){var r=e[0]+e[4]+e[8],n;if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var a=0;e[4]>e[0]&&(a=1),e[8]>e[a*3+a]&&(a=2);var i=(a+1)%3,o=(a+2)%3;n=Math.sqrt(e[a*3+a]-e[i*3+i]-e[o*3+o]+1),t[a]=.5*n,n=.5/n,t[3]=(e[i*3+o]-e[o*3+i])*n,t[i]=(e[i*3+a]+e[a*3+i])*n,t[o]=(e[o*3+a]+e[a*3+o])*n}return t}function UB(t,e,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:QS,i=Math.PI/360;e*=i,n*=i,r*=i;var o=Math.sin(e),s=Math.cos(e),u=Math.sin(r),f=Math.cos(r),l=Math.sin(n),c=Math.cos(n);switch(a){case"xyz":t[0]=o*f*c+s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c-o*u*l;break;case"xzy":t[0]=o*f*c-s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c+o*u*l;break;case"yxz":t[0]=o*f*c+s*u*l,t[1]=s*u*c-o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c+o*u*l;break;case"yzx":t[0]=o*f*c+s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c-o*u*l;break;case"zxy":t[0]=o*f*c-s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l+o*u*c,t[3]=s*f*c-o*u*l;break;case"zyx":t[0]=o*f*c-s*u*l,t[1]=s*u*c+o*f*l,t[2]=s*f*l-o*u*c,t[3]=s*f*c+o*u*l;break;default:throw new Error("Unknown angle order "+a)}return t}function $B(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var XB=AM,WB=CM,py=TM,VB=IM,YB=kM,qB=jM,qM=DM,gy=vy,HB=BM,yy=hy,ZB=yy,my=dy,KB=my,by=FM,QB=GM;function JB(t,e){return Math.abs(vy(t,e))>=1-pt}var e4=function(){var t=cy(),e=x0(1,0,0),r=x0(0,1,0);return function(n,a,i){var o=md(a,i);return o<-.999999?(eh(t,e,a),SM(t)<1e-6&&eh(t,r,a),_M(t,t),zM(n,t,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(eh(t,a,i),n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=1+o,by(n,n))}}(),t4=function(){var t=Th(),e=Th();return function(r,n,a,i,o,s){return th(t,n,o,s),th(e,a,i,s),th(r,t,e,2*s*(1-s)),r}}(),r4=function(){var t=nM();return function(e,r,n,a){return t[0]=n[0],t[3]=n[1],t[6]=n[2],t[1]=a[0],t[4]=a[1],t[7]=a[2],t[2]=-r[0],t[5]=-r[1],t[8]=-r[2],by(e,YM(e,t))}}();const n4=Object.freeze(Object.defineProperty({__proto__:null,add:YB,calculateW:FB,clone:XB,conjugate:jB,copy:py,create:Th,dot:gy,equals:JB,exactEquals:QB,exp:WM,fromEuler:UB,fromMat3:YM,fromValues:WB,getAngle:RB,getAxisAngle:PB,identity:DB,invert:zB,len:ZB,length:yy,lerp:HB,ln:VM,mul:qB,multiply:jM,normalize:by,pow:BB,random:GB,rotateX:UM,rotateY:$M,rotateZ:XM,rotationTo:e4,scale:qM,set:VB,setAxes:r4,setAxisAngle:zM,slerp:th,sqlerp:t4,sqrLen:KB,squaredLength:my,str:$B},Symbol.toStringTag,{value:"Module"}));function a4(){var t=new qt(8);return qt!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t}function i4(t){var e=new qt(8);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[6]=t[6],e[7]=t[7],e}function o4(t,e,r,n,a,i,o,s){var u=new qt(8);return u[0]=t,u[1]=e,u[2]=r,u[3]=n,u[4]=a,u[5]=i,u[6]=o,u[7]=s,u}function s4(t,e,r,n,a,i,o){var s=new qt(8);s[0]=t,s[1]=e,s[2]=r,s[3]=n;var u=a*.5,f=i*.5,l=o*.5;return s[4]=u*n+f*r-l*e,s[5]=f*n+l*t-u*r,s[6]=l*n+u*e-f*t,s[7]=-u*t-f*e-l*r,s}function HM(t,e,r){var n=r[0]*.5,a=r[1]*.5,i=r[2]*.5,o=e[0],s=e[1],u=e[2],f=e[3];return t[0]=o,t[1]=s,t[2]=u,t[3]=f,t[4]=n*f+a*u-i*s,t[5]=a*f+i*o-n*u,t[6]=i*f+n*s-a*o,t[7]=-n*o-a*s-i*u,t}function u4(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0]*.5,t[5]=e[1]*.5,t[6]=e[2]*.5,t[7]=0,t}function f4(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function l4(t,e){var r=Th();hM(r,e);var n=new qt(3);return lM(n,e),HM(t,r,n),t}function ZM(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function c4(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t}function h4(t,e,r,n,a,i,o,s,u){return t[0]=e,t[1]=r,t[2]=n,t[3]=a,t[4]=i,t[5]=o,t[6]=s,t[7]=u,t}var d4=py;function v4(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t}var p4=py;function g4(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t}function y4(t,e){var r=e[4],n=e[5],a=e[6],i=e[7],o=-e[0],s=-e[1],u=-e[2],f=e[3];return t[0]=(r*f+i*o+n*u-a*s)*2,t[1]=(n*f+i*s+a*o-r*u)*2,t[2]=(a*f+i*u+r*s-n*o)*2,t}function m4(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0]*.5,u=r[1]*.5,f=r[2]*.5,l=e[4],c=e[5],h=e[6],d=e[7];return t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=o*s+a*f-i*u+l,t[5]=o*u+i*s-n*f+c,t[6]=o*f+n*u-a*s+h,t[7]=-n*s-a*u-i*f+d,t}function b4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return UM(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function w4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return $M(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function x4(t,e,r){var n=-e[0],a=-e[1],i=-e[2],o=e[3],s=e[4],u=e[5],f=e[6],l=e[7],c=s*o+l*n+u*i-f*a,h=u*o+l*a+f*n-s*i,d=f*o+l*i+s*a-u*n,v=l*o-s*n-u*a-f*i;return XM(t,e,r),n=t[0],a=t[1],i=t[2],o=t[3],t[4]=c*o+v*n+h*i-d*a,t[5]=h*o+v*a+d*n-c*i,t[6]=d*o+v*i+c*a-h*n,t[7]=v*o-c*n-h*a-d*i,t}function E4(t,e,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=e[0],u=e[1],f=e[2],l=e[3];return t[0]=s*o+l*n+u*i-f*a,t[1]=u*o+l*a+f*n-s*i,t[2]=f*o+l*i+s*a-u*n,t[3]=l*o-s*n-u*a-f*i,s=e[4],u=e[5],f=e[6],l=e[7],t[4]=s*o+l*n+u*i-f*a,t[5]=u*o+l*a+f*n-s*i,t[6]=f*o+l*i+s*a-u*n,t[7]=l*o-s*n-u*a-f*i,t}function _4(t,e,r){var n=e[0],a=e[1],i=e[2],o=e[3],s=r[0],u=r[1],f=r[2],l=r[3];return t[0]=n*l+o*s+a*f-i*u,t[1]=a*l+o*u+i*s-n*f,t[2]=i*l+o*f+n*u-a*s,t[3]=o*l-n*s-a*u-i*f,s=r[4],u=r[5],f=r[6],l=r[7],t[4]=n*l+o*s+a*f-i*u,t[5]=a*l+o*u+i*s-n*f,t[6]=i*l+o*f+n*u-a*s,t[7]=o*l-n*s-a*u-i*f,t}function S4(t,e,r,n){if(Math.abs(n)0){r=Math.sqrt(r);var n=e[0]/r,a=e[1]/r,i=e[2]/r,o=e[3]/r,s=e[4],u=e[5],f=e[6],l=e[7],c=n*s+a*u+i*f+o*l;t[0]=n,t[1]=a,t[2]=i,t[3]=o,t[4]=(s-n*c)/r,t[5]=(u-a*c)/r,t[6]=(f-i*c)/r,t[7]=(l-o*c)/r}return t}function D4(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"}function P4(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]}function R4(t,e){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],u=t[6],f=t[7],l=e[0],c=e[1],h=e[2],d=e[3],v=e[4],p=e[5],g=e[6],y=e[7];return Math.abs(r-l)<=pt*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(n-c)<=pt*Math.max(1,Math.abs(n),Math.abs(c))&&Math.abs(a-h)<=pt*Math.max(1,Math.abs(a),Math.abs(h))&&Math.abs(i-d)<=pt*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(o-v)<=pt*Math.max(1,Math.abs(o),Math.abs(v))&&Math.abs(s-p)<=pt*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(u-g)<=pt*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(f-y)<=pt*Math.max(1,Math.abs(f),Math.abs(y))}const F4=Object.freeze(Object.defineProperty({__proto__:null,add:M4,clone:i4,conjugate:k4,copy:ZM,create:a4,dot:QM,equals:R4,exactEquals:P4,fromMat4:l4,fromRotation:f4,fromRotationTranslation:HM,fromRotationTranslationValues:s4,fromTranslation:u4,fromValues:o4,getDual:v4,getReal:d4,getTranslation:y4,identity:c4,invert:I4,len:N4,length:JM,lerp:T4,mul:A4,multiply:KM,normalize:L4,rotateAroundAxis:S4,rotateByQuatAppend:E4,rotateByQuatPrepend:_4,rotateX:b4,rotateY:w4,rotateZ:x4,scale:C4,set:h4,setDual:g4,setReal:p4,sqrLen:O4,squaredLength:wd,str:D4,translate:m4},Symbol.toStringTag,{value:"Module"}));function eA(){var t=new qt(2);return qt!=Float32Array&&(t[0]=0,t[1]=0),t}function B4(t){var e=new qt(2);return e[0]=t[0],e[1]=t[1],e}function G4(t,e){var r=new qt(2);return r[0]=t,r[1]=e,r}function z4(t,e){return t[0]=e[0],t[1]=e[1],t}function j4(t,e,r){return t[0]=e,t[1]=r,t}function fn(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t}function tA(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t}function rA(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t}function nA(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t}function U4(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function $4(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function Pi(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t}function Ri(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t}function X4(t,e){return t[0]=Ba(e[0]),t[1]=Ba(e[1]),t}function wn(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t}function W4(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t}function Ih(t,e){var r=e[0]-t[0],n=e[1]-t[1];return Math.sqrt(r*r+n*n)}function aA(t,e){var r=e[0]-t[0],n=e[1]-t[1];return r*r+n*n}function iA(t){var e=t[0],r=t[1];return Math.sqrt(e*e+r*r)}function oA(t){var e=t[0],r=t[1];return e*e+r*r}function V4(t,e){return t[0]=-e[0],t[1]=-e[1],t}function Y4(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function Wi(t,e){var r=e[0],n=e[1],a=r*r+n*n;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t}function wy(t,e){return t[0]*e[0]+t[1]*e[1]}function q4(t,e,r){var n=e[0]*r[1]-e[1]*r[0];return t[0]=t[1]=0,t[2]=n,t}function H4(t,e,r,n){var a=e[0],i=e[1];return t[0]=a+n*(r[0]-a),t[1]=i+n*(r[1]-i),t}function Z4(t,e){e=e===void 0?1:e;var r=ya()*2*Math.PI;return t[0]=Math.cos(r)*e,t[1]=Math.sin(r)*e,t}function K4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a,t[1]=r[1]*n+r[3]*a,t}function Q4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[2]*a+r[4],t[1]=r[1]*n+r[3]*a+r[5],t}function J4(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[3]*a+r[6],t[1]=r[1]*n+r[4]*a+r[7],t}function eG(t,e,r){var n=e[0],a=e[1];return t[0]=r[0]*n+r[4]*a+r[12],t[1]=r[1]*n+r[5]*a+r[13],t}function tG(t,e,r,n){var a=e[0]-r[0],i=e[1]-r[1],o=Math.sin(n),s=Math.cos(n);return t[0]=a*s-i*o+r[0],t[1]=a*o+i*s+r[1],t}function sA(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.abs(Math.atan2(n*a-r*i,r*a+n*i))}function rG(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.atan2(r*i-n*a,r*a+n*i)}function nG(t){return t[0]=0,t[1]=0,t}function aG(t){return"vec2("+t[0]+", "+t[1]+")"}function xy(t,e){return t[0]===e[0]&&t[1]===e[1]}function iG(t,e){var r=t[0],n=t[1],a=e[0],i=e[1];return Math.abs(r-a)<=pt*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-i)<=pt*Math.max(1,Math.abs(n),Math.abs(i))}var oG=iA,rh=tA,sG=rA,uG=nA,fG=Ih,lG=aA,cG=oA,hG=function(){var t=eA();return function(e,r,n,a,i,o){var s,u;for(r||(r=2),n||(n=0),a?u=Math.min(a*r+n,e.length):u=e.length,s=n;s0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o},cA=function(e){for(var r=e.nodes,n=r===void 0?[]:r,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=Un(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=Un(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),r&&n?(M=!1,C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!0)):r&&!n&&C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(r&&n===!1&&r.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=cA({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(r&&n&&r.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s},pA=function(e,r,n,a){return a===void 0&&(a=!0),r?Ay(e,n,a):My(e,n,a)},MG=function(e,r,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?Un(v,s,"target"):Un(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c},Of=function(e,r){for(var n=Uo(e,r),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},bA=function(e,r,n,a){r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=fA();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=Uo(e,r),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=rr(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=fp(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=fp(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},wA=function(e,r,n,a,i,o,s,u){return r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e-4),i===void 0&&(i=void 0),o===void 0&&(o=[]),s===void 0&&(s=["id"]),u===void 0&&(u=1),Iy(e,r,n,a,!0,i,o,s,u)},xA=function(e,r){var n;r===void 0&&(r=1);for(var a=rr(e),i=a.nodes,o=i===void 0?[]:i,s=a.edges,u=s===void 0?[]:s,f=function(){var h=yi({nodes:o,edges:u}),d=Object.keys(h);d.sort(function(g,y){var m,b;return((m=h[g])===null||m===void 0?void 0:m.degree)-((b=h[y])===null||b===void 0?void 0:b.degree)});var v=d[0];if(!o.length||((n=h[v])===null||n===void 0?void 0:n.degree)>=r)return"break";var p=o.findIndex(function(g){return g.id===v});o.splice(p,1),u=u.filter(function(g){return!(g.source===v||g.target===v)})};;){var l=f();if(l==="break")break}return{nodes:o,edges:u}},hw=function(e,r,n){var a=[];switch(e){case pa.EuclideanDistance:a=r[n];break;default:a=[];break}return a},EA=function(e,r,n,a,i,o){r===void 0&&(r=3),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=["id"]),o===void 0&&(o=pa.EuclideanDistance);var s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c={clusters:[{id:"0",nodes:u}],clusterEdges:[]};if(o===pa.EuclideanDistance&&!u.every(function(he){return he.hasOwnProperty(n)}))return c;var h=[],d=[];if(o===pa.EuclideanDistance&&(h=Cy(u,n),d=Ty(h,a,i)),!d.length)return c;for(var v=kf(d.map(function(he){return he.join("")})),p=Math.min(r,u.length,v.length),g=0;gx&&!y.find(function(it){return jo(it,hw(o,d,u[le].originIndex))})&&(x=Ve,E=le)}},S=0;S=0;O--)b[Number(u[g].clusterId)][O].id===u[g].id&&b[Number(u[g].clusterId)].splice(O,1);u[g].clusterId=String(M),b[M].push(u[g])}}for(var B=!1,g=0;g=1e3)break}var R=[],V={};return l.forEach(function(he){var ce,le,ie=he.source,Ie=he.target,qe=(ce=u.find(function(st){return st.id===ie}))===null||ce===void 0?void 0:ce.clusterId,Ve=(le=u.find(function(st){return st.id===Ie}))===null||le===void 0?void 0:le.clusterId,it="".concat(qe,"---").concat(Ve);if(V[it])V[it].count++;else{var dt={source:qe,target:Ve,count:1};V[it]=dt,R.push(dt)}}),{clusters:b,clusterEdges:R}},ky=function(e,r){var n=new ta(r),a=n.norm2(),i=new ta(e),o=i.norm2(),s=n.dot(i),u=a*o,f=u?s/u:0;return f},_A=function(e,r,n,a,i){e===void 0&&(e=[]),n===void 0&&(n=void 0),a===void 0&&(a=[]),i===void 0&&(i=[]);var o=rr(e.filter(function(h){return h.id!==r.id})),s=e.findIndex(function(h){return h.id===r.id}),u=Cy(e,n),f=Ty(u,a,i),l=f[s],c=[];return o.forEach(function(h,d){if(h.id!==r.id){var v=f[d],p=ky(v,l);c.push(p),h.cosineSimilarity=p}}),o.sort(function(h,d){return d.cosineSimilarity-h.cosineSimilarity}),{allCosineSimilarity:c,similarNodes:o}},CG=function(){function t(e){this.count=e.length,this.parent={};for(var r=0,n=e;r0&&(this.list[0]=r,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var r=this.list.length-1;return this.moveUp(r),!0}return!1},t.prototype.moveUp=function(e){for(var r=this.getParent(e);e&&e>0&&this.compareFn(this.list[r],this.list[e])>0;){var n=this.list[r];this.list[r]=this.list[e],this.list[e]=n,e=r,r=this.getParent(e)}},t.prototype.moveDown=function(e){var r,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(r=[this.list[n],this.list[e]],this.list[e]=r[0],this.list[n]=r[1],this.moveDown(n))},t}(),kG=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return r?g.weight-y.weight:0},c=new IG(l);for(nh(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),nh(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),nh(v,s).forEach(function(p){c.insert(p)})))}return n},dw=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});r&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new CG(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},SA=function(e,r,n){var a={prim:kG,kruskal:dw};return n?a[n](e,r):dw(e,r)},MA=function(e,r,n){typeof r!="number"&&(r=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>r;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(r.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new ko(p,m,Ga,_.edgeLabel,Ga));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new ic(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new ic(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=r.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(r.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:r.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=r.maxNodeNum)){var y=r.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=r.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(r.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:r.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*r)););if(g<2*r&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*r)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[r]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},kA=function(e,r,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=Of(e,n),c=Of(r,n),h=ww(e.nodes,l,n),d=ww(r.nodes,c,n),v=mw(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=mw(r.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;bw(e.edges,s,p);var w=bw(r.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,Xn(Xn([],x,!1),[2],!1))),a||(a=i);var E=yw(e,l,o,a),_=yw(r,c,o,a),S=Math.min(100,f*(f-1)/2),A=FG(a,f,S,E,l),M=ah(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=RG(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=ih(Se,tt,o,s);X[te][N]=Fe})});var R=BG(X,z,L),V=R.structure,he=R.structureCountMap,ce=r.nodes[0],le=[],ie=(u=r.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;r.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=ah(Se,_,r,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=ih(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=ah(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=ih(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=IA(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:GG(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=Nf(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,xu=ge[Ur.id].inDegree,Eu=ge[Ur.id].outDegree,rn=Ur[o],ti=xw(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,_u=ti.minPatternNodeLabelInDegree,Su=ti.minPatternNodeLabelOutDegree,Mu=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},Gs=function(){function t(e){e===void 0&&(e=10),this.linkedList=new uA,this.maxStep=e}return Object.defineProperty(t.prototype,"length",{get:function(){return this.linkedList.toArray().length},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return!this.linkedList.head},t.prototype.isMaxStack=function(){return this.toArray().length>=this.maxStep},t.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},t.prototype.push=function(e){this.linkedList.prepend(e),this.length>this.maxStep&&this.linkedList.deleteTail()},t.prototype.pop=function(){var e=this.linkedList.deleteHead();return e?e.value:null},t.prototype.toArray=function(){return this.linkedList.toArray().map(function(e){return e.value})},t.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},t}(),NA=Sy;const zG={getAdjMatrix:Uo,breadthFirstSearch:lA,connectedComponent:Ey,getDegree:yi,getInDegree:hA,getOutDegree:dA,detectCycle:Sy,detectDirectedCycle:NA,detectAllCycles:pA,detectAllDirectedCycle:Ay,detectAllUndirectedCycle:My,depthFirstSearch:_y,dijkstra:Nf,findAllPath:mA,findShortestPath:yA,floydWarshall:Of,labelPropagation:bA,louvain:Iy,iLouvain:wA,kCore:xA,kMeans:EA,cosineSimilarity:ky,nodesCosineSimilarity:_A,minimumSpanningTree:SA,pageRank:MA,getNeighbors:Un,Stack:Gs,GADDI:kA},jG=Object.freeze(Object.defineProperty({__proto__:null,GADDI:kA,Stack:Gs,breadthFirstSearch:lA,connectedComponent:Ey,cosineSimilarity:ky,default:zG,depthFirstSearch:_y,detectAllCycles:pA,detectAllDirectedCycle:Ay,detectAllUndirectedCycle:My,detectCycle:Sy,detectDirectedCycle:NA,dijkstra:Nf,findAllPath:mA,findShortestPath:yA,floydWarshall:Of,getAdjMatrix:Uo,getDegree:yi,getInDegree:hA,getNeighbors:Un,getOutDegree:dA,iLouvain:wA,kCore:xA,kMeans:EA,labelPropagation:bA,louvain:Iy,minimumSpanningTree:SA,nodesCosineSimilarity:_A,pageRank:MA},Symbol.toStringTag,{value:"Module"}));var Nh=eo,UG=function(e){return function(r,n){return r[e]-n[e]}},Ew=function(e,r,n){return e>=r&&e<=n},xd=function(e,r,n,a){var i=1e-4,o={x:n.x-e.x,y:n.y-e.y},s={x:r.x-e.x,y:r.y-e.y},u={x:a.x-n.x,y:a.y-n.y},f=s.x*u.y-s.y*u.x,l=f*f,c=1/f,h=s.x*s.x+s.y*s.y,d=u.x*u.x+u.y*u.y;if(l>i*h*d){var v=(o.x*u.y-o.y*u.x)*c,p=(o.x*s.y-o.y*s.x)*c;return!Ew(v,0,1)||!Ew(p,0,1)?null:{x:e.x+v*s.x,y:e.y+v*s.y}}return null},OA=function(e,r){var n=e.x,a=e.y,i=e.width,o=e.height,s=n+i/2,u=a+o/2,f=[],l={x:s,y:u};f.push({x:n,y:a}),f.push({x:n+i,y:a}),f.push({x:n+i,y:a+o}),f.push({x:n,y:a+o}),f.push({x:n,y:a});for(var c=null,h=1;hr[a][o]+r[o][i]&&(r[a][i]=r[a][o]+r[o][i]);return r},WG=function(e,r){var n=e.nodes,a=e.edges,i=[],o={};if(!n)throw new Error("invalid nodes data!");return n&&n.forEach(function(s,u){o[s.id]=u;var f=[];i.push(f)}),a&&a.forEach(function(s){var u=s.source,f=s.target,l=o[u],c=o[f];i[l][c]=1,r||(i[c][l]=1)}),i},RA=function(e,r){e.translate(r.x,r.y)},_0=function(e,r,n,a){a===void 0&&(a={duration:500});var i=e.getMatrix();i||(i=[1,0,0,0,1,0,0,0,1]);var o=e.getCanvasBBox(),s=r.x-o.minX,u=r.y-o.minY;if(n){var f=s*i[0],l=u*i[4],c=0,h=0,d=0,v=0;e.animate(function(g){return d=f*g,v=l*g,i=Nh(i,[["t",d-c,v-h]]),c=d,h=v,{matrix:i}},a)}else{var p=Nh(i,[["t",s,u]]);e.setMatrix(p)}},VG=function(e,r){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]);var a=r;bt(r)||(a=[r,r]),bt(r)&&r.length===1&&(a=[r[0],r[0]]),n=Nh(n,[["s",a[0],a[1]]]),e.setMatrix(n)},YG=function(e,r){var n=e.getMatrix();n||(n=[1,0,0,0,1,0,0,0,1]),n=Nh(n,[["r",r]]),e.setMatrix(n)},qG=function(e,r,n){for(var a=[],i=0;i0!=s(l[1]-n)>0&&s(r-(n-f[1])*(f[0]-l[0])/(f[1]-l[1])-f[0])<0&&(a=!a)}return a},FA=function(e,r){return!(r.minX>e.maxX||r.maxXe.maxY||r.maxY1){var m=h[0],b=h[v-1];d.push({from:{x:b[0],y:b[1]},to:{x:m[0],y:m[1]}})}return d};if(e.length<2||r.length<2)return!1;var i=n(e),o=n(r);if(!FA(i,o))return!1;var s=!1;if(_e(r,function(c){if(Lf(e,c[0],c[1]))return s=!0,!1}),s||(_e(e,function(c){if(Lf(r,c[0],c[1]))return s=!0,!1}),s))return!0;var u=a(e),f=a(r),l=!1;return _e(f,function(c){if(ZG(u,c))return l=!0,!1}),l},$o=function(){function t(e,r,n,a){this.x1=e,this.y1=r,this.x2=n,this.y2=a}return t.prototype.getBBox=function(){var e=Math.min(this.x1,this.x2),r=Math.min(this.y1,this.y2),n=Math.max(this.x1,this.x2),a=Math.max(this.y1,this.y2),i={x:e,y:r,minX:e,minY:r,maxX:n,maxY:a,width:n-e,height:a-r};return i},t}(),Ny=function(e,r){var n={top:[e.minX,e.minY,e.maxX,e.minY],left:[e.minX,e.minY,e.minX,e.maxY],bottom:[e.minX,e.maxY,e.maxX,e.maxY],right:[e.maxX,e.minY,e.maxX,e.maxY]};return n[r]},KG=function(e,r){var n=(r.x2-r.x1)*(e.y1-r.y1)-(r.y2-r.y1)*(e.x1-r.x1),a=(e.x2-e.x1)*(e.y1-r.y1)-(e.y2-e.y1)*(e.x1-r.x1),i=(r.y2-r.y1)*(e.x2-e.x1)-(r.x2-r.x1)*(e.y2-e.y1);if(i){var o=n/i,s=a/i;if(o>=0&&o<=1&&s>=0&&s<=1)return o}return Number.POSITIVE_INFINITY},GA=function(e,r){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=0,o=[],s=0;s<4;s++){var u=Ny(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3];o[s]=xd({x:r.x1,y:r.y1},{x:r.x2,y:r.y2},{x:f,y:l},{x:c,y:h}),o[s]&&(i+=1)}return[o,i]},Oy=function(e,r){for(var n=["top","left","bottom","right"],a=e.getBBox(),i=Number.POSITIVE_INFINITY,o=0,s=0;s<4;s++){var u=Ny(a,n[s]),f=u[0],l=u[1],c=u[2],h=u[3],d=KG(r,new $o(f,l,c,h));d=Math.abs(d-.5),d>=0&&d<=1&&(o+=1,i=d0){for(var a=0,i=e;ar.x+r.width,i=e.y>r.y+r.height,o=e.y":.604998779296875,"/":.5,"?":.53699951171875};var Pa=Math.PI,A0=Math.sin,C0=Math.cos,sn=A0(Pa/8),un=C0(Pa/8),Dh=function(e,r){var n=e.getBBox(),a={x:n.minX,y:n.minY},i={x:n.maxX,y:n.maxY};if(r){var o=r.getMatrix();o||(o=[1,0,0,0,1,0,0,0,1]),a=Us(a,o),i=Us(i,o)}var s=a.x,u=a.y,f=i.x,l=i.y;return{x:s,y:u,minX:s,minY:u,maxX:f,maxY:l,width:f-s,height:l-u}},$A=function(e){var r=e.sourceNode||e.targetNode,n=r.get("group"),a=n.getMatrix();a||(a=[1,0,0,0,1,0,0,0,1]);var i=r.getKeyShape(),o=i.getBBox(),s=e.loopCfg||{},u=s.dist||Math.max(o.width,o.height)*2,f=s.position||ft.defaultLoopPosition,l=[(o.minX+o.maxX)/2+a[6],(o.minY+o.maxY)/2+a[7]],c=[e.startPoint.x,e.startPoint.y],h=[e.endPoint.x,e.endPoint.y],d=o.height/2,v=o.width/2,p=d,g=d,y=p*sn,m=p*un,b=g*sn,w=g*un,x=i.get("type"),E=Math.min(d/2,v/2),_=Math.min(d,v),S=s!=null&&s.pointPadding?Math.min(_,s==null?void 0:s.pointPadding):E;if(c[0]===h[0]&&c[1]===h[1]){switch(f){case"top":x==="circle"?(c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]):(c=[l[0]-S,l[1]-d],h=[l[0]+S,l[1]-d]);break;case"top-right":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]-m],h=[l[0]+w,l[1]-b]):(c=[l[0]+v-S,l[1]-d],h=[l[0]+v,l[1]-d+S]);break;case"right":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]-y],h=[l[0]+w,l[1]+b]):(c=[l[0]+v,l[1]-S],h=[l[0]+v,l[1]+S]);break;case"bottom-right":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+m,l[1]+y],h=[l[0]+b,l[1]+w]):(c=[l[0]+v,l[1]+d-S],h=[l[0]+v-S,l[1]+d]);break;case"bottom":p=d,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]+y,l[1]+m],h=[l[0]-b,l[1]+w]):(c=[l[0]-S,l[1]+d],h=[l[0]+S,l[1]+d]);break;case"bottom-left":p=d,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]+m],h=[l[0]-w,l[1]+b]):(c=[l[0]-v,l[1]+d-S],h=[l[0]-v+S,l[1]+d]);break;case"left":p=v,g=v,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]+y],h=[l[0]-w,l[1]-b]):(c=[l[0]-v,l[1]-S],h=[l[0]-v,l[1]+S]);break;case"top-left":p=v,g=d,x==="circle"?(y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-m,l[1]-y],h=[l[0]-b,l[1]-w]):(c=[l[0]-v+S,l[1]-d],h=[l[0]-v,l[1]-d+S]);break;default:p=v,g=v,y=p*sn,m=p*un,b=g*sn,w=g*un,c=[l[0]-y,l[1]-m],h=[l[0]+b,l[1]-w]}if(s.clockwise===!1){var A=[c[0],c[1]];c=[h[0],h[1]],h=[A[0],A[1]]}}var M=[c[0]-l[0],c[1]-l[1]],C=(p+u)/p,I=(g+u)/g;s.clockwise===!1&&(C=(g+u)/g,I=(p+u)/p);var k=wn([0,0],M,C),O=[l[0]+k[0],l[1]+k[1]],B=[h[0]-l[0],h[1]-l[1]],L=wn([0,0],B,I),z=[l[0]+L[0],l[1]+L[1]];return e.startPoint={x:c[0],y:c[1]},e.endPoint={x:h[0],y:h[1]},e.controlPoints=[{x:O[0],y:O[1]},{x:z[0],y:z[1]}],e},XA=function(e,r,n,a,i){var o=1e-4,s=[],u=e==null?void 0:e.getPoint(r);if(!u)return{x:0,y:0,angle:0};if(r1-o)s=e.getEndTangent();else{var f=e==null?void 0:e.getPoint(r+o);s.push([u.x,u.y]),s.push([f.x,f.y])}var l=Math.atan2(s[1][1]-s[0][1],s[1][0]-s[0][0]);if(l<0&&(l+=Pa*2),n&&(u.x+=C0(l)*n,u.y+=A0(l)*n),a){var c=l-Pa/2;l>1/2*Pa&&l<3*1/2*Pa&&(c-=Pa),u.x+=C0(c)*a,u.y+=A0(c)*a}var h={x:u.x,y:u.y,angle:l};return i?(l>.5*Pa&&l<1.5*Pa&&(l-=Pa),P({rotate:l},h)):h},oz=function t(e,r,n,a){if(a(e,r,n)===!1)return!1;if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!t(e.children[i],e,i,a))return!1}return!0},sz=function t(e,r,n,a){if(e&&e.children){for(var i=e.children.length-1;i>=0;i--)if(!t(e.children[i],e,i,a))return}return a(e,r,n)!==!1},bn=function(e,r){typeof r=="function"&&oz(e,null,-1,r)},Ra=function(e,r){typeof r=="function"&&sz(e,null,-1,r)},WA=function(e,r){return r*(iz[e]||1)},VA=function(e,r){var n=0,a=new RegExp("[一-龥]+");return e.split("").forEach(function(i){a.test(i)?n+=r:n+=WA(i,r)}),[n,r]},YA=function(e,r){return typeof r!="number"||r<=0||r>=e.length?e:e.substring(0,r)+"..."},T0=function(e,r){var n=[],a={},i={};e.forEach(function(u){i[u.id]=u}),e.forEach(function(u,f){var l=rr(u);l.itemType="combo",l.children=void 0,l.parentId===l.id?(console.warn("The parentId for combo ".concat(l.id," can not be the same as the combo's id")),delete l.parentId):l.parentId&&!i[l.parentId]&&(console.warn("The parent combo for combo ".concat(l.id," does not exist!")),delete l.parentId);var c=a[l.id];if(c){if(l.children=c.children,a[l.id]=l,c=l,!c.parentId){n.push(c);return}var h=a[c.parentId];if(h)h.children?h.children.push(l):h.children=[l];else{var d={id:c.parentId,children:[c]};a[c.parentId]=d,a[l.id]=l}return}if(Ye(u.parentId)){var v=a[u.parentId];if(v)v.children?v.children.push(l):v.children=[l],a[l.id]=l;else{var p={id:u.parentId,children:[l]};a[p.id]=p,a[l.id]=l}}else n.push(l),a[l.id]=l});var o={};(r||[]).forEach(function(u){o[u.id]=u;var f=a[u.comboId];if(f){var l={id:u.id,comboId:u.comboId};f.children?f.children.push(l):f.children=[l],l.itemType="node",a[u.id]=l}});var s=0;return n.forEach(function(u){u.depth=s+10,bn(u,function(f){var l,c=a[f.id].itemType;c==="node"?l=a[f.comboId]:l=a[f.parentId],l&&c==="node"?f.depth=s+1:f.depth=s+10,s-1&&i.splice(l,1),u||(o={id:r,itemType:"node",comboId:n},s[r]={children:void 0}),r){var c=!1;if(n){var h=0;(e||[]).forEach(function(v){c||bn(v,function(p){return n===p.id?(c=!0,p.children?p.children.push(o):p.children=[o],h=p.depth,o.itemType==="node"?o.depth=h+2:o.depth=h+1,!1):!0})})}else(!n||!c)&&o.itemType!=="node"&&e.push(o);var d=o.depth;bn(o,function(v){return v.itemType==="node"?d+=2:d+=1,v.depth=d,!0})}return e},oh=function(e,r,n){var a={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0,x:void 0,y:void 0,width:void 0,height:void 0,centerX:void 0,centerY:void 0};if(!e||e.length===0){var i=n==null?void 0:n.getModel(),o=i||{},s=o.x,u=o.y,f=o.fixSize,l=o.collapsed,c=o.fixCollapseSize,h=l?c:f,d=bt(h)?h:[h,h],v=d[0],p=d[1],g=[v/2,p/2];return{minX:s-g[0],minY:u-g[1],maxX:s+g[0],maxY:u+g[1],x:s,y:u,width:v,height:p}}return e.forEach(function(y){var m=r.findById(y.id);if(!(!m||!m.isVisible())){m.set("bboxCanvasCache",void 0);var b=m.getCanvasBBox();b.x&&a.minX>b.minX&&(a.minX=b.minX),b.y&&a.minY>b.minY&&(a.minY=b.minY),b.x&&a.maxX2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=e[s]&&(r.push([a].concat(o.splice(0,e[s]))),!!e[s]););return t}),r},k0=function(t,e){for(var r=[],n=0,a=t.length;a-2*!e>n;n+=2){var i=[{x:+t[n-2],y:+t[n-1]},{x:+t[n],y:+t[n+1]},{x:+t[n+2],y:+t[n+3]},{x:+t[n+4],y:+t[n+5]}];e?n?a-4===n?i[3]={x:+t[0],y:+t[1]}:a-2===n&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[a-2],y:+t[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+t[n],y:+t[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r},uc=function(t,e,r,n,a){var i=[];if(a===null&&n===null&&(n=r),t=+t,e=+e,r=+r,n=+n,a!==null){var o=Math.PI/180,s=t+r*Math.cos(-n*o),u=t+r*Math.cos(-a*o),f=e+r*Math.sin(-n*o),l=e+r*Math.sin(-a*o);i=[["M",s,f],["A",r,r,0,+(a-n>180),0,u,l]]}else i=[["M",t,e],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return i},N0=function(t){if(t=zs(t),!t||!t.length)return[["M",0,0]];var e=[],r=0,n=0,a=0,i=0,o=0,s,u;t[0][0]==="M"&&(r=+t[0][1],n=+t[0][2],a=r,i=n,o++,e[0]=["M",r,n]);for(var f=t.length===3&&t[0][0]==="M"&&t[1][0].toUpperCase()==="R"&&t[2][0].toUpperCase()==="Z",l=void 0,c=void 0,h=o,d=t.length;h1&&(x=Math.sqrt(x),r=x*r,n=x*n);var E=r*r,_=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((E*_-E*w*w-_*b*b)/(E*w*w+_*b*b)));g=S*r*w/n+(t+s)/2,y=S*-n*b/r+(e+u)/2,v=Math.asin(((e-y)/n).toFixed(9)),p=Math.asin(((u-y)/n).toFixed(9)),v=tp&&(v=v-Math.PI*2),!o&&p>v&&(p=p-Math.PI*2)}var A=p-v;if(Math.abs(A)>l){var M=p,C=s,I=u;p=v+l*(o&&p>v?1:-1),s=g+r*Math.cos(p),u=y+n*Math.sin(p),h=qA(s,u,r,n,a,0,o,C,I,[p,M,g,y])}A=p-v;var k=Math.cos(v),O=Math.sin(v),B=Math.cos(p),L=Math.sin(p),z=Math.tan(A/4),X=4/3*r*z,R=4/3*n*z,V=[t,e],he=[t+X*O,e-R*k],ce=[s+X*L,u-R*B],le=[s,u];if(he[0]=2*V[0]-he[0],he[1]=2*V[1]-he[1],f)return[he,ce,le].concat(h);h=[he,ce,le].concat(h).join().split(",");for(var ie=[],Ie=0,qe=h.length;Ie7){b[w].shift();for(var x=b[w];x.length;)o[w]="A",n&&(s[w]="A"),b.splice(w++,0,["C"].concat(x.splice(0,6)));b.splice(w,1),l=Math.max(r.length,n&&n.length||0)}},d=function(b,w,x,E,_){b&&w&&b[_][0]==="M"&&w[_][0]!=="M"&&(w.splice(_,0,["M",E.x,E.y]),x.bx=0,x.by=0,x.x=b[_][1],x.y=b[_][2],l=Math.max(r.length,n&&n.length||0))};l=Math.max(r.length,n&&n.length||0);for(var v=0;v1?1:u<0?0:u;for(var f=u/2,l=12,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v0&&d<1&&u.push(d);continue}var p=c*c-4*h*l,g=Math.sqrt(p);if(!(p<0)){var y=(-c+g)/(2*l);y>0&&y<1&&u.push(y);var m=(-c-g)/(2*l);m>0&&m<1&&u.push(m)}}for(var b=u.length,w=b,x;b--;)d=u[b],x=1-d,f[0][b]=x*x*x*t+3*x*x*d*r+3*x*d*d*a+d*d*d*o,f[1][b]=x*x*x*e+3*x*x*d*n+3*x*d*d*i+d*d*d*s;return f[0][w]=t,f[1][w]=e,f[0][w+1]=o,f[1][w+1]=s,f[0].length=f[1].length=w+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},gz=function(t,e,r,n,a,i,o,s){if(!(Math.max(t,r)Math.max(a,o)||Math.max(e,n)Math.max(i,s))){var u=(t*n-e*r)*(a-o)-(t-r)*(a*s-i*o),f=(t*n-e*r)*(i-s)-(e-n)*(a*s-i*o),l=(t-r)*(i-s)-(e-n)*(a-o);if(l){var c=u/l,h=f/l,d=+c.toFixed(2),v=+h.toFixed(2);if(!(d<+Math.min(t,r).toFixed(2)||d>+Math.max(t,r).toFixed(2)||d<+Math.min(a,o).toFixed(2)||d>+Math.max(a,o).toFixed(2)||v<+Math.min(e,n).toFixed(2)||v>+Math.max(e,n).toFixed(2)||v<+Math.min(i,s).toFixed(2)||v>+Math.max(i,s).toFixed(2)))return{x:c,y:h}}}},Oi=function(t,e,r){return e>=t.x&&e<=t.x+t.width&&r>=t.y&&r<=t.y+t.height},ZA=function(t,e,r,n,a){if(a)return[["M",+t+ +a,e],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",t,e],["l",r,0],["l",0,n],["l",-r,0],["z"]];return i.parsePathArray=HA,i},L0=function(t,e,r,n){return t===null&&(t=e=r=n=0),e===null&&(e=t.y,r=t.width,n=t.height,t=t.x),{x:t,y:e,width:r,w:r,height:n,h:n,x2:t+r,y2:e+n,cx:t+r/2,cy:e+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:ZA(t,e,r,n),vb:[t,e,r,n].join(" ")}},yz=function(t,e){return t=L0(t),e=L0(e),Oi(e,t.x,t.y)||Oi(e,t.x2,t.y)||Oi(e,t.x,t.y2)||Oi(e,t.x2,t.y2)||Oi(t,e.x,e.y)||Oi(t,e.x2,e.y)||Oi(t,e.x,e.y2)||Oi(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},Nw=function(t,e,r,n,a,i,o,s){bt(t)||(t=[t,e,r,n,a,i,o,s]);var u=pz.apply(null,t);return L0(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},Ow=function(t,e,r,n,a,i,o,s,u){var f=1-u,l=Math.pow(f,3),c=Math.pow(f,2),h=u*u,d=h*u,v=l*t+c*3*u*r+f*3*u*u*a+d*o,p=l*e+c*3*u*n+f*3*u*u*i+d*s,g=t+2*u*(r-t)+h*(a-2*r+t),y=e+2*u*(n-e)+h*(i-2*n+e),m=r+2*u*(a-r)+h*(o-2*a+r),b=n+2*u*(i-n)+h*(s-2*i+n),w=f*t+u*r,x=f*e+u*n,E=f*a+u*o,_=f*i+u*s,S=90-Math.atan2(g-m,y-b)*180/Math.PI;return{x:v,y:p,m:{x:g,y},n:{x:m,y:b},start:{x:w,y:x},end:{x:E,y:_},alpha:S}},mz=function(t,e,r){var n=Nw(t),a=Nw(e);if(!yz(n,a))return[];for(var i=kw.apply(0,t),o=kw.apply(0,e),s=~~(i/8),u=~~(o/8),f=[],l=[],c={},h=[],d=0;d=0&&_<=1&&S>=0&&S<=1&&h.push({x:E.x,y:E.y,t1:_,t2:S})}}return h},bz=function(t,e,r){t=O0(t),e=O0(e);for(var n,a,i,o,s,u,f,l,c,h,d=r?0:[],v=0,p=t.length;v=3&&(c.length===3&&h.push("Q"),h=h.concat(c[1])),c.length===2&&h.push("L"),h=h.concat(c[c.length-1]),h});return l}var _z=function(t,e,r){if(r===1)return[[].concat(t)];var n=[];if(e[0]==="L"||e[0]==="C"||e[0]==="Q")n=n.concat(Ez(t,e,r));else{var a=[].concat(t);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n},Sz=function(t,e){if(t.length===1)return t;var r=t.length-1,n=e.length-1,a=r/n,i=[];if(t.length===1&&t[0][0]==="M"){for(var o=0;o=0;u--)o=i[u].index,i[u].type==="add"?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}n=t.length;var c=a-n;if(n0)r=cp(r,t[n-1],1);else{t[n]=e[n];break}t[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":t[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=cp(r,t[n-1],2);else{t[n]=e[n];break}t[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=cp(r,t[n-1],1);else{t[n]=e[n];break}t[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:t[n]=e[n]}return t};const Tz=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:k0,fillPath:Sz,fillPathByDiff:KA,formatPath:D0,intersection:wz,parsePathArray:HA,parsePathString:zs,pathToAbsolute:N0,pathToCurve:O0,rectPath:ZA},Symbol.toStringTag,{value:"Module"}));var JA=function(){function t(e,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=e,this.name=e,this.originalEvent=r,this.timeStamp=r.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var e=this.type;return"[Event (type="+e+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();function eC(t,e){var r=t.indexOf(e);r!==-1&&t.splice(r,1)}var Lw=typeof window<"u"&&typeof window.document<"u";function tC(t,e){if(t.isCanvas())return!0;for(var r=e.getParent(),n=!1;r;){if(r===t){n=!0;break}r=r.getParent()}return n}function P0(t){return t.cfg.visible&&t.cfg.capture}var Iz=function(t){jt(e,t);function e(r){var n=t.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=Et(a,r),n}return e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(r){return this.cfg[r]},e.prototype.set=function(r,n){this.cfg[r]=n},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(KS),Dw=function(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Dz:typeof navigator<"u"?Gz(navigator.userAgent):jz()}function Bz(t){return t!==""&&Fz.reduce(function(e,r){var n=r[0],a=r[1];if(e)return e;var i=a.exec(t);return!!i&&[n,i]},!1)}function Gz(t){var e=Bz(t);if(!e)return null;var r=e[0],n=e[1];if(r==="searchbot")return new Lz;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.lengtho.delay&&_e(e.toAttrs,function(s,u){i.call(o.toAttrs,u)&&(delete o.toAttrs[u],delete o.fromAttrs[u])})}),t}var aC=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;n.attrs={};var a=n.getDefaultAttrs();return Et(a,r.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(r){},e.prototype.initAttrs=function(r){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var r,n=[],a=0;a0?i=Zz(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var a=this.get("animations");_e(a,function(i){r&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),a=r.getTime();return _e(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},e.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return _e(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},e.prototype.emitDelegation=function(r,n){var a=this,i=n.propagationPath;this.getEvents();var o;r==="mouseenter"?o=n.fromShape:r==="mouseleave"&&(o=n.toShape);for(var s=function(c){var h=i[c],d=h.get("name");if(d){if((h.isGroup()||h.isCanvas&&h.isCanvas())&&o&&tC(h,o))return"break";bt(d)?_e(d,function(v){a.emitDelegateEvent(h,v,n)}):u.emitDelegateEvent(h,d,n)}},u=this,f=0;f0)});o.length>0?_e(o,function(u){var f=u.getBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},e.prototype.getCanvasBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(u){return u.get("visible")&&(!u.isGroup()||u.isGroup()&&u.getChildren().length>0)});o.length>0?_e(o,function(u){var f=u.getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY;ln&&(n=c),hi&&(i=d)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.children=[],r},e.prototype.onAttrChange=function(r,n,a){if(t.prototype.onAttrChange.call(this,r,n,a),r==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,r);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},e.prototype._applyChildrenMarix=function(r){var n=this.getChildren();_e(n,function(a){a.applyMatrix(r)})},e.prototype.addShape=function(){for(var r=[],n=0;n=0;s--){var u=r[s];if(P0(u)&&(u.isGroup()?o=u.getShape(n,a,i):u.isHit(n,a)&&(o=u)),o)break}return o},e.prototype.add=function(r){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=r.getParent();o&&Kz(o,r),r.set("parent",this),n&&iC(r,n),i&&oC(r,i),a.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},e.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},e.prototype.getChildren=function(){return this.get("children")||[]},e.prototype.sort=function(){var r=this.getChildren();_e(r,function(n,a){return n[R0]=a,n}),r.sort(Qz(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},e.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},e.prototype.getCount=function(){var r=this.getChildren();return r.length},e.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},e.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},e.prototype.findAll=function(r){var n=[],a=this.getChildren();return _e(a,function(i){r(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(r)))}),n},e.prototype.find=function(r){var n=null,a=this.getChildren();return _e(a,function(i){if(r(i)?n=i:i.isGroup()&&(n=i.find(r)),n)return!1}),n},e.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},e.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},e.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},e}(aC),Ks=0,ff=0,Xu=0,uC=1e3,Ph,lf,Rh=0,Xo=0,Ed=0,Pf=typeof performance=="object"&&performance.now?performance:Date,fC=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function lC(){return Xo||(fC(Jz),Xo=Pf.now()+Ed)}function Jz(){Xo=0}function F0(){this._call=this._time=this._next=null}F0.prototype=cC.prototype={constructor:F0,restart:function(t,e,r){if(typeof t!="function")throw new TypeError("callback is not a function");r=(r==null?lC():+r)+(e==null?0:+e),!this._next&&lf!==this&&(lf?lf._next=this:Ph=this,lf=this),this._call=t,this._time=r,B0()},stop:function(){this._call&&(this._call=null,this._time=1/0,B0())}};function cC(t,e,r){var n=new F0;return n.restart(t,e,r),n}function e6(){lC(),++Ks;for(var t=Ph,e;t;)(e=Xo-t._time)>=0&&t._call.call(null,e),t=t._next;--Ks}function Gw(){Xo=(Rh=Pf.now())+Ed,Ks=ff=0;try{e6()}finally{Ks=0,r6(),Xo=0}}function t6(){var t=Pf.now(),e=t-Rh;e>uC&&(Ed-=e,Rh=t)}function r6(){for(var t,e=Ph,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Ph=r);lf=t,B0(n)}function B0(t){if(!Ks){ff&&(ff=clearTimeout(ff));var e=t-Xo;e>24?(t<1/0&&(ff=setTimeout(Gw,t-Pf.now()-Ed)),Xu&&(Xu=clearInterval(Xu))):(Xu||(Rh=Pf.now(),Xu=setInterval(t6,uC)),Ks=1,fC(Gw))}}function Dy(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function hC(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function Jf(){}var Rf=.7,Fh=1/Rf,$s="\\s*([+-]?\\d+)\\s*",Ff="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Va="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",n6=/^#([0-9a-f]{3,8})$/,a6=new RegExp(`^rgb\\(${$s},${$s},${$s}\\)$`),i6=new RegExp(`^rgb\\(${Va},${Va},${Va}\\)$`),o6=new RegExp(`^rgba\\(${$s},${$s},${$s},${Ff}\\)$`),s6=new RegExp(`^rgba\\(${Va},${Va},${Va},${Ff}\\)$`),u6=new RegExp(`^hsl\\(${Ff},${Va},${Va}\\)$`),f6=new RegExp(`^hsla\\(${Ff},${Va},${Va},${Ff}\\)$`),zw={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Dy(Jf,Bf,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:jw,formatHex:jw,formatHex8:l6,formatHsl:c6,formatRgb:Uw,toString:Uw});function jw(){return this.rgb().formatHex()}function l6(){return this.rgb().formatHex8()}function c6(){return dC(this).formatHsl()}function Uw(){return this.rgb().formatRgb()}function Bf(t){var e,r;return t=(t+"").trim().toLowerCase(),(e=n6.exec(t))?(r=e[1].length,e=parseInt(e[1],16),r===6?$w(e):r===3?new Nn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?lc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?lc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=a6.exec(t))?new Nn(e[1],e[2],e[3],1):(e=i6.exec(t))?new Nn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=o6.exec(t))?lc(e[1],e[2],e[3],e[4]):(e=s6.exec(t))?lc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=u6.exec(t))?Vw(e[1],e[2]/100,e[3]/100,1):(e=f6.exec(t))?Vw(e[1],e[2]/100,e[3]/100,e[4]):zw.hasOwnProperty(t)?$w(zw[t]):t==="transparent"?new Nn(NaN,NaN,NaN,0):null}function $w(t){return new Nn(t>>16&255,t>>8&255,t&255,1)}function lc(t,e,r,n){return n<=0&&(t=e=r=NaN),new Nn(t,e,r,n)}function h6(t){return t instanceof Jf||(t=Bf(t)),t?(t=t.rgb(),new Nn(t.r,t.g,t.b,t.opacity)):new Nn}function G0(t,e,r,n){return arguments.length===1?h6(t):new Nn(t,e,r,n??1)}function Nn(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}Dy(Nn,G0,hC(Jf,{brighter(t){return t=t==null?Fh:Math.pow(Fh,t),new Nn(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Rf:Math.pow(Rf,t),new Nn(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Nn(Bo(this.r),Bo(this.g),Bo(this.b),Bh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xw,formatHex:Xw,formatHex8:d6,formatRgb:Ww,toString:Ww}));function Xw(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}`}function d6(){return`#${Po(this.r)}${Po(this.g)}${Po(this.b)}${Po((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ww(){const t=Bh(this.opacity);return`${t===1?"rgb(":"rgba("}${Bo(this.r)}, ${Bo(this.g)}, ${Bo(this.b)}${t===1?")":`, ${t})`}`}function Bh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Bo(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Po(t){return t=Bo(t),(t<16?"0":"")+t.toString(16)}function Vw(t,e,r,n){return n<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new ga(t,e,r,n)}function dC(t){if(t instanceof ga)return new ga(t.h,t.s,t.l,t.opacity);if(t instanceof Jf||(t=Bf(t)),!t)return new ga;if(t instanceof ga)return t;t=t.rgb();var e=t.r/255,r=t.g/255,n=t.b/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=NaN,s=i-a,u=(i+a)/2;return s?(e===i?o=(r-n)/s+(r0&&u<1?0:o,new ga(o,s,u,t.opacity)}function v6(t,e,r,n){return arguments.length===1?dC(t):new ga(t,e,r,n??1)}function ga(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}Dy(ga,v6,hC(Jf,{brighter(t){return t=t==null?Fh:Math.pow(Fh,t),new ga(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Rf:Math.pow(Rf,t),new ga(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*e,a=2*r-n;return new Nn(dp(t>=240?t-240:t+120,a,n),dp(t,a,n),dp(t<120?t+240:t-120,a,n),this.opacity)},clamp(){return new ga(Yw(this.h),cc(this.s),cc(this.l),Bh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Bh(this.opacity);return`${t===1?"hsl(":"hsla("}${Yw(this.h)}, ${cc(this.s)*100}%, ${cc(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Yw(t){return t=(t||0)%360,t<0?t+360:t}function cc(t){return Math.max(0,Math.min(1,t||0))}function dp(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}const Py=t=>()=>t;function p6(t,e){return function(r){return t+r*e}}function g6(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}function y6(t){return(t=+t)==1?vC:function(e,r){return r-e?g6(e,r,t):Py(isNaN(e)?r:e)}}function vC(t,e){var r=e-t;return r?p6(t,r):Py(isNaN(t)?e:t)}const qw=function t(e){var r=y6(e);function n(a,i){var o=r((a=G0(a)).r,(i=G0(i)).r),s=r(a.g,i.g),u=r(a.b,i.b),f=vC(a.opacity,i.opacity);return function(l){return a.r=o(l),a.g=s(l),a.b=u(l),a.opacity=f(l),a+""}}return n.gamma=t,n}(1);function pC(t,e){e||(e=[]);var r=t?Math.min(e.length,t.length):0,n=e.slice(),a;return function(i){for(a=0;ar&&(i=e.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,u.push({i:o,x:z0(n,a)})),r=vp.lastIndex;return rf.length?(u=zs(i[s]),f=zs(a[s]),f=KA(f,u),f=D0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u):e.pathFormatted||(u=zs(i[s]),f=zs(a[s]),f=D0(f,u),e.fromAttrs.path=f,e.toAttrs.path=u,e.pathFormatted=!0),n[s]=[];for(var l=0;l0){for(var s=e.animators.length-1;s>=0;s--){if(n=e.animators[s],n.destroyed){e.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var u=a.length-1;u>=0;u--)i=a[u],r=nj(n,i,o),r&&(a.splice(u,1),r=!1,i.callback&&i.callback())}a.length===0&&e.removeAnimator(s)}var f=e.canvas.get("autoDraw");f||e.canvas.draw()}})},t.prototype.addAnimator=function(e){this.animators.push(e)},t.prototype.removeAnimator=function(e){this.animators.splice(e,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(e){e===void 0&&(e=!0),this.animators.forEach(function(r){r.stopAnimate(e)}),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),ij=40,ax=0,ix=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function ox(t,e,r){r.name=e,r.target=t,r.currentTarget=t,r.delegateTarget=t,t.emit(e,r)}function oj(t,e,r){if(r.bubbles){var n=void 0,a=!1;if(e==="mouseenter"?(n=r.fromShape,a=!0):e==="mouseleave"&&(a=!0,n=r.toShape),t.isCanvas()&&a)return;if(n&&tC(t,n)){r.bubbles=!1;return}r.name=e,r.currentTarget=t,r.delegateTarget=t,t.emit(e,r)}}var sj=function(){function t(e){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;r._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&(r.dragging||r.currentShape)){var o=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,o,r.draggingShape)}},this._onDocumentMouseUp=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&r.dragging){var o=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,o,null),r._emitEvent("dragend",n,o,r.draggingShape),r._afterDrag(r.draggingShape,o,n)}},this.canvas=e.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var e=this,r=this.canvas.get("el");_e(ix,function(n){r.addEventListener(n,e._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var e=this,r=this.canvas.get("el");_e(ix,function(n){r.removeEventListener(n,e._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(e,r,n,a,i,o){var s=new JA(e,r);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},t.prototype._getShape=function(e,r){return this.canvas.getShape(e.x,e.y,r)},t.prototype._getPointInfo=function(e){var r=this.canvas,n=r.getClientByEvent(e),a=r.getPointByEvent(e);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(e,r){var n=this._getPointInfo(r),a=this._getShape(n,r),i=this["_on"+e],o=!1;if(i)i.call(this,n,a,r);else{var s=this.currentShape;e==="mouseenter"||e==="dragenter"||e==="mouseover"?(this._emitEvent(e,r,n,null,null,a),a&&this._emitEvent(e,r,n,a,null,a),e==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):e==="mouseleave"||e==="dragleave"||e==="mouseout"?(o=!0,s&&this._emitEvent(e,r,n,s,s,null),this._emitEvent(e,r,n,null,s,null),e==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(e,r,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var u=this.canvas,f=u.get("el");f.style.cursor=a.attr("cursor")||u.get("cursor")}},t.prototype._onmousedown=function(e,r,n){n.button===ax&&(this.mousedownShape=r,this.mousedownPoint=e,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,e,r,null,null)},t.prototype._emitMouseoverEvents=function(e,r,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",e,r,n,n,a),this._emitEvent("mouseleave",e,r,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",e,r,a,n,a),this._emitEvent("mouseenter",e,r,a,n,a)))},t.prototype._emitDragoverEvents=function(e,r,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",e,r,n,n,a),this._emitEvent("dragenter",e,r,a,n,a)),i||this._emitEvent("dragover",e,r,a)):n&&this._emitEvent("dragleave",e,r,n,n,a),i&&this._emitEvent("dragover",e,r,a)},t.prototype._afterDrag=function(e,r,n){e&&(e.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(r,n);a!==e&&this._emitMouseoverEvents(n,r,e,a),this.currentShape=a},t.prototype._onmouseup=function(e,r,n){if(n.button===ax){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,e,r),this._emitEvent("dragend",n,e,a),this._afterDrag(a,e,n)):(this._emitEvent("mouseup",n,e,r),r===this.mousedownShape&&this._emitEvent("click",n,e,r),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(e,r,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,e,a,r,!0)},t.prototype._onmousemove=function(e,r,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,e,i,r,!1),this._emitEvent("drag",n,e,o);else{var s=this.mousedownPoint;if(s){var u=this.mousedownShape,f=n.timeStamp,l=f-this.mousedownTimeStamp,c=s.clientX-e.clientX,h=s.clientY-e.clientY,d=c*c+h*h;l>120||d>ij?u&&u.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,e,o),this.mousedownShape=null,this.mousedownPoint=null):!u&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,e,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r)):(this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r))}else this._emitMouseoverEvents(n,e,i,r),this._emitEvent("mousemove",n,e,r)}},t.prototype._emitEvent=function(e,r,n,a,i,o){var s=this._getEventObj(e,r,n,a,i,o);if(a){s.shape=a,ox(a,e,s);for(var u=a.getParent();u;)u.emitDelegation(e,s),s.propagationStopped||oj(u,e,s),s.propagationPath.push(u),u=u.getParent()}else{var f=this.canvas;ox(f,e,s)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),sx="px",ux=rC(),uj=ux&&ux.name==="firefox",wC=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},e.prototype.initContainer=function(){var r=this.get("container");Ye(r)&&(r=document.getElementById(r),this.set("container",r))},e.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var r=new sj({canvas:this});r.init(),this.set("eventController",r)},e.prototype.initTimeline=function(){var r=new aj(this);this.set("timeline",r)},e.prototype.setDOMSize=function(r,n){var a=this.get("el");Lw&&(a.style.width=r+sx,a.style.height=n+sx)},e.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");Lw&&n&&(n.style.cursor=r)},e.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(uj&&!Zt(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!Zt(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var a=this.getClientByEvent(r),i=a.x,o=a.y;return this.getPointByClient(i,o)},e.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},e.prototype.getPointByClient=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r-i.left,y:n-i.top}},e.prototype.getClientByPoint=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r+i.left,y:n+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},e.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(sC),xC=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var r=t.prototype.clone.call(this),n=this.getChildren(),a=0;a=r&&a.minY<=n&&a.maxY>=n},e.prototype.afterAttrsChange=function(r){t.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},e.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},e.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},e.prototype.applyMatrix=function(r){t.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),a=r.minX,i=r.minY,o=r.maxX,s=r.maxY;if(n){var u=Do(n,[r.minX,r.minY]),f=Do(n,[r.maxX,r.minY]),l=Do(n,[r.minX,r.maxY]),c=Do(n,[r.maxX,r.maxY]);a=Math.min(u[0],f[0],l[0],c[0]),o=Math.max(u[0],f[0],l[0],c[0]),i=Math.min(u[1],f[1],l[1],c[1]),s=Math.max(u[1],f[1],l[1],c[1])}var h=this.attrs;if(h.shadowColor){var d=h.shadowBlur,v=d===void 0?0:d,p=h.shadowOffsetX,g=p===void 0?0:p,y=h.shadowOffsetY,m=y===void 0?0:y,b=a-v+g,w=o+v+g,x=i-v+m,E=s+v+m;a=Math.min(a,b),o=Math.max(o,w),i=Math.min(i,x),s=Math.max(s,E)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(r,n){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(r,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[r,n,1];o=this.invertFromMatrix(o);var s=o[0],u=o[1],f=this._isInBBox(s,u);return this.isOnlyHitBox()?f:!!(f&&!this.isClipped(s,u)&&(this.isInShape(s,u)||a&&a.isHit(s,u)||i&&i.isHit(s,u)))},e}(aC),_C=new Map;function Ja(t,e){_C.set(t,e)}function SC(t){return _C.get(t)}function MC(t){var e=t.attr(),r=e.x,n=e.y,a=e.width,i=e.height;return{x:r,y:n,width:a,height:i}}function AC(t){var e=t.attr(),r=e.x,n=e.y,a=e.r;return{x:r-a,y:n-a,width:a*2,height:a*2}}function xn(t,e,r,n){var a=t-r,i=e-n;return Math.sqrt(a*a+i*i)}function uh(t,e){return Math.abs(t-e)<.001}function pu(t,e){var r=Ha(t),n=Ha(e),a=qa(t),i=qa(e);return{x:r,y:n,width:a-r,height:i-n}}function _d(t){return(t+Math.PI*2)%(Math.PI*2)}const cn={box:function(t,e,r,n){return pu([t,r],[e,n])},length:function(t,e,r,n){return xn(t,e,r,n)},pointAt:function(t,e,r,n,a){return{x:(1-a)*t+a*r,y:(1-a)*e+a*n}},pointDistance:function(t,e,r,n,a,i){var o=(r-t)*(a-t)+(n-e)*(i-e);if(o<0)return xn(t,e,a,i);var s=(r-t)*(r-t)+(n-e)*(n-e);return o>s?xn(r,n,a,i):this.pointToLine(t,e,r,n,a,i)},pointToLine:function(t,e,r,n,a,i){var o=[r-t,n-e];if(xy(o,[0,0]))return Math.sqrt((a-t)*(a-t)+(i-e)*(i-e));var s=[-o[1],o[0]];Wi(s,s);var u=[a-t,i-e];return Math.abs(wy(u,s))},tangentAngle:function(t,e,r,n){return Math.atan2(n-e,r-t)}};var fj=1e-4;function CC(t,e,r,n,a,i){var o,s=1/0,u=[r,n],f=20;i&&i>200&&(f=i/10);for(var l=1/f,c=l/10,h=0;h<=f;h++){var d=h*l,v=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))],p=xn(u[0],u[1],v[0],v[1]);p=0&&p=0?[a]:[]}function lx(t,e,r,n){return 2*(1-n)*(e-t)+2*n*(r-e)}function TC(t,e,r,n,a,i,o){var s=Bi(t,r,a,o),u=Bi(e,n,i,o),f=cn.pointAt(t,e,r,n,o),l=cn.pointAt(r,n,a,i,o);return[[t,e,f.x,f.y,s,u],[s,u,l.x,l.y,a,i]]}function $0(t,e,r,n,a,i,o){if(o===0)return(xn(t,e,r,n)+xn(r,n,a,i)+xn(t,e,a,i))/2;var s=TC(t,e,r,n,a,i,.5),u=s[0],f=s[1];return u.push(o-1),f.push(o-1),$0.apply(null,u)+$0.apply(null,f)}const IC={box:function(t,e,r,n,a,i){var o=fx(t,r,a)[0],s=fx(e,n,i)[0],u=[t,a],f=[e,i];return o!==void 0&&u.push(Bi(t,r,a,o)),s!==void 0&&f.push(Bi(e,n,i,s)),pu(u,f)},length:function(t,e,r,n,a,i){return $0(t,e,r,n,a,i,3)},nearestPoint:function(t,e,r,n,a,i,o,s){return CC([t,r,a],[e,n,i],o,s,Bi)},pointDistance:function(t,e,r,n,a,i,o,s){var u=this.nearestPoint(t,e,r,n,a,i,o,s);return xn(u.x,u.y,o,s)},interpolationAt:Bi,pointAt:function(t,e,r,n,a,i,o){return{x:Bi(t,r,a,o),y:Bi(e,n,i,o)}},divide:function(t,e,r,n,a,i,o){return TC(t,e,r,n,a,i,o)},tangentAngle:function(t,e,r,n,a,i,o){var s=lx(t,r,a,o),u=lx(e,n,i,o),f=Math.atan2(u,s);return _d(f)}};function Gi(t,e,r,n,a){var i=1-a;return i*i*i*t+3*e*a*i*i+3*r*a*a*i+n*a*a*a}function cx(t,e,r,n,a){var i=1-a;return 3*(i*i*(e-t)+2*i*a*(r-e)+a*a*(n-r))}function pp(t,e,r,n){var a=-3*t+9*e-9*r+3*n,i=6*t-12*e+6*r,o=3*e-3*t,s=[],u,f,l;if(uh(a,0))uh(i,0)||(u=-o/i,u>=0&&u<=1&&s.push(u));else{var c=i*i-4*a*o;uh(c,0)?s.push(-i/(2*a)):c>0&&(l=Math.sqrt(c),u=(-i+l)/(2*a),f=(-i-l)/(2*a),u>=0&&u<=1&&s.push(u),f>=0&&f<=1&&s.push(f))}return s}function kC(t,e,r,n,a,i,o,s,u){var f=Gi(t,r,a,o,u),l=Gi(e,n,i,s,u),c=cn.pointAt(t,e,r,n,u),h=cn.pointAt(r,n,a,i,u),d=cn.pointAt(a,i,o,s,u),v=cn.pointAt(c.x,c.y,h.x,h.y,u),p=cn.pointAt(h.x,h.y,d.x,d.y,u);return[[t,e,c.x,c.y,v.x,v.y,f,l],[f,l,p.x,p.y,d.x,d.y,o,s]]}function X0(t,e,r,n,a,i,o,s,u){if(u===0)return lj([t,r,a,o],[e,n,i,s]);var f=kC(t,e,r,n,a,i,o,s,.5),l=f[0],c=f[1];return l.push(u-1),c.push(u-1),X0.apply(null,l)+X0.apply(null,c)}const xf={extrema:pp,box:function(t,e,r,n,a,i,o,s){for(var u=[t,o],f=[e,s],l=pp(t,r,a,o),c=pp(e,n,i,s),h=0;h0?r:r*-1}const cj={box:function(t,e,r,n){return{x:t-r,y:e-n,width:r*2,height:n*2}},length:function(t,e,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(t,e,r,n,a,i){var o=r,s=n;if(o===0||s===0)return{x:t,y:e};for(var u=a-t,f=i-e,l=Math.abs(u),c=Math.abs(f),h=o*o,d=s*s,v=Math.PI/4,p,g,y=0;y<4;y++){p=o*Math.cos(v),g=s*Math.sin(v);var m=(h-d)*Math.pow(Math.cos(v),3)/o,b=(d-h)*Math.pow(Math.sin(v),3)/s,w=p-m,x=g-b,E=l-m,_=c-b,S=Math.hypot(x,w),A=Math.hypot(_,E),M=S*Math.asin((w*_-x*E)/(S*A)),C=M/Math.sqrt(h+d-p*p-g*g);v+=C,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+hx(p,u),y:e+hx(g,f)}},pointDistance:function(t,e,r,n,a,i){var o=this.nearestPoint(t,e,r,n,a,i);return xn(o.x,o.y,a,i)},pointAt:function(t,e,r,n,a){var i=2*Math.PI*a;return{x:t+r*Math.cos(i),y:e+n*Math.sin(i)}},tangentAngle:function(t,e,r,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-r*Math.sin(i));return _d(o)}};function hj(t,e,r,n,a,i,o,s){return-1*r*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function dj(t,e,r,n,a,i,o,s){return-1*r*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function vj(t,e,r){return Math.atan(-e/t*Math.tan(r))}function pj(t,e,r){return Math.atan(e/(t*Math.tan(r)))}function dx(t,e,r,n,a,i){return r*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+t}function vx(t,e,r,n,a,i){return r*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+e}function gj(t,e,r,n){var a=Math.atan2(n*t,r*e);return(a+Math.PI*2)%(Math.PI*2)}function px(t,e,r){return{x:t*Math.cos(r),y:e*Math.sin(r)}}function gx(t,e,r){var n=Math.cos(r),a=Math.sin(r);return[t*n-e*a,t*a+e*n]}const yj={box:function(t,e,r,n,a,i,o){for(var s=vj(r,n,a),u=1/0,f=-1/0,l=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var h=s+c;if&&(f=d)}for(var v=pj(r,n,a),p=1/0,g=-1/0,y=[i,o],c=-Math.PI*2;c<=Math.PI*2;c+=Math.PI){var m=v+c;ig&&(g=b)}return{x:u,y:p,width:f-u,height:g-p}},length:function(t,e,r,n,a,i,o){},nearestPoint:function(t,e,r,n,a,i,o,s,u){var f=gx(s-t,u-e,-a),l=f[0],c=f[1],h=cj.nearestPoint(0,0,r,n,l,c),d=gj(r,n,h.x,h.y);do&&(h=px(r,n,o));var v=gx(h.x,h.y,a);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,r,n,a,i,o,s,u){var f=this.nearestPoint(t,e,r,n,s,u);return xn(f.x,f.y,s,u)},pointAt:function(t,e,r,n,a,i,o,s){var u=(o-i)*s+i;return{x:dx(t,e,r,n,a,u),y:vx(t,e,r,n,a,u)}},tangentAngle:function(t,e,r,n,a,i,o,s){var u=(o-i)*s+i,f=hj(t,e,r,n,a,i,o,u),l=dj(t,e,r,n,a,i,o,u);return _d(Math.atan2(l,f))}};function NC(t){for(var e=0,r=[],n=0;n1||e<0||t.length<2)return null;var r=NC(t),n=r.segments,a=r.totalLength;if(a===0)return{x:t[0][0],y:t[0][1]};for(var i=0,o=null,s=0;s=i&&e<=i+c){var h=(e-i)/c;o=cn.pointAt(f[0],f[1],l[0],l[1],h);break}i+=c}return o}function wj(t,e){if(e>1||e<0||t.length<2)return 0;for(var r=NC(t),n=r.segments,a=r.totalLength,i=0,o=0,s=0;s=i&&e<=i+c){o=Math.atan2(l[1]-f[1],l[0]-f[0]);break}i+=c}return o}function xj(t,e,r){for(var n=1/0,a=0;a1){var a=Sj(e,r);return e*n+a*(n-1)}return e}function Sj(t,e){return e?e-t:t*.14}function Mj(t,e){var r=LC(),n=0;if(Zt(t)||t==="")return n;if(r.save(),r.font=e,Ye(t)&&t.includes(` +`)){var a=t.split(` +`);_e(a,function(i){var o=r.measureText(i).width;n1){var a=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=a}_e(r,function(i,o){isNaN(i)||(r[o]=+i)}),e[n]=r}),e}function kj(t,e,r,n){var a=[],i=!!n,o,s,u,f,l,c,h;if(i){u=n[0],f=n[1];for(var d=0,v=t.length;d2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=e[s]&&(r.push([a].concat(o.splice(0,e[s]))),!!e[s]););return""}),r}var Dj=/[a-z]/;function mx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function RC(t){var e=W0(t);if(!e||!e.length)return[["M",0,0]];for(var r=!1,n=0;n=0){r=!0;break}}if(!r)return e;var i=[],o=0,s=0,u=0,f=0,l=0,c=e[0];(c[0]==="M"||c[0]==="m")&&(o=+c[1],s=+c[2],u=o,f=s,l++,i[0]=["M",o,s]);for(var n=l,h=e.length;n1&&(r*=Math.sqrt(d),n*=Math.sqrt(d));var v=r*r*(h*h)+n*n*(c*c),p=v?Math.sqrt((r*r*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*r*h/n:0,y=r?p*-n*c/r:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/r,(h-y)/n],x=[(-1*c-g)/r,(-1*h-y)/n],E=bx([1,0],w),_=bx(w,x);return V0(w,x)<=-1&&(_=Math.PI),V0(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:Y0(t,[f,l])?0:r,ry:Y0(t,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}function wx(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function FC(t){t=Ij(t);for(var e=[],r=null,n=null,a=null,i=0,o=t.length,s=0;sMath.PI/2?Math.PI-f:f,l=l>Math.PI/2?Math.PI-l:l;var c={xExtra:Math.cos(u/2-f)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(l-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0};return c}function Fj(t){var e=t.attr(),r=e.path,n=e.stroke,a=n?e.lineWidth:0,i=t.get("segments")||FC(r),o=Rj(i,a),s=o.x,u=o.y,f=o.width,l=o.height,c={minX:s,minY:u,maxX:s+f,maxY:u+l};return c=zy(t,c),{x:c.minX,y:c.minY,width:c.maxX-c.minX,height:c.maxY-c.minY}}function Bj(t){var e=t.attr(),r=e.x1,n=e.y1,a=e.x2,i=e.y2,o=Math.min(r,a),s=Math.max(r,a),u=Math.min(n,i),f=Math.max(n,i),l={minX:o,maxX:s,minY:u,maxY:f};return l=zy(t,l),{x:l.minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}}function Gj(t){var e=t.attr(),r=e.x,n=e.y,a=e.rx,i=e.ry;return{x:r-a,y:n-i,width:a*2,height:i*2}}Ja("rect",MC);Ja("image",MC);Ja("circle",AC);Ja("marker",AC);Ja("polyline",Ej);Ja("polygon",_j);Ja("text",Aj);Ja("path",Fj);Ja("line",Bj);Ja("ellipse",Gj);var zj=function(t){jt(e,t);function e(r,n){var a=t.call(this,r,n)||this;return a.item=n.item,a.canvasX=n.canvasX,a.canvasY=n.canvasY,a.wheelDelta=n.wheelDelta,a.detail=n.detail,a}return e}(JA),q0=function(e){return"".concat(e,"-").concat(Math.random()).concat(Date.now())},jy=function(e){if(bt(e))switch(e.length){case 4:return e;case 3:return e.push(e[1]),e;case 2:return e.concat(e);case 1:return[e[0],e[0],e[0],e[0]];default:return[0,0,0,0]}if(Ot(e))return[e,e,e,e];if(Ye(e)){var r=parseInt(e,10);return[r,r,r,r]}return[0,0,0,0]},jj=function(e){var r=new zj(e.type,e);return r.clientX=e.clientX,r.clientY=e.clientY,r.x=e.x,r.y=e.y,r.target=e.target,r.currentTarget=e.currentTarget,r.bubbles=!0,r.item=e.item,r},Uj=function(e){if(!e)return!1;for(var r=9,n=[1,0,0,0,1,0,0,0,1],a=0;an&&(n=c),h>i&&(i=h)}var d=Math.floor(r),v=Math.floor(a),p=Math.ceil(n)-Math.floor(r),g=Math.ceil(i)-Math.floor(a);return{x:d,y:v,width:p,height:g,minX:r,minY:a,maxX:n,maxY:i}},$j=function(e,r,n,a,i){r===void 0&&(r=15),n===void 0&&(n="quadratic"),a===void 0&&(a=void 0),i===void 0&&(i=void 0);for(var o=e.length,s=r*2,u=["top","top-right","right","bottom-right","bottom","bottom-left","left","top-left"],f={},l=[],c={},h=0;h=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}to.angleTo=qj;function Hj(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}to.vertical=Hj;var Zj=function(){function t(e){this.destroyed=!1,this.graph=e,this.destroyed=!1}return t.prototype.getViewCenter=function(){var e=this.getFormatPadding(),r=this.graph,n=this.graph.get("width"),a=r.get("height");return{x:(n-e[1]-e[3])/2+e[3],y:(a-e[0]-e[2])/2+e[0]}},t.prototype.fitCenter=function(e,r){var n=this.graph,a=n.get("group"),i,o=n.getNodes();if(o.length>n.get("optimizeThreshold")){var s=1/0,u=1/0,f=-1/0,l=-1/0;o.forEach(function(w){var x=w.getModel(),E=x.x,_=x.y;s>E&&(s=E),u>_&&(u=_),fg&&(y=g,console.warn("fitview failed, ratio out of range, ratio: %f",s,"graph maxzoom has been used instead"));var m=xx(d,[["t",-i.x,-i.y],["s",y,y],["t",i.x,i.y]]),b=Df({animateCfg:n,callback:function(){e.setMatrix(m),f.emit("viewportchange",{action:"translate",matrix:d}),f.emit("viewportchange",{action:"zoom",matrix:m})}});e.stopAnimate(),e.setMatrix(r),e.animate(function(w){return{matrix:M0(r,m,w)}},b)}},t.prototype.fitView=function(e,r){var n=this.graph,a=this.getFormatPadding(),i=n.get("width"),o=n.get("height"),s=n.get("group"),u=s.getMatrix()||[1,0,0,0,1,0,0,0,1];s.resetMatrix();var f,l=n.getNodes();if(l.length>n.get("optimizeThreshold")){var c=1/0,h=1/0,d=-1/0,v=-1/0;l.forEach(function(E){var _=E.getModel(),S=_.x,A=_.y;c>S&&(c=S),h>A&&(h=A),dm&&(b=m),e)this.animatedFitView(s,u,r,f,p,g,b,!0);else{var w=p.x-g.x,x=p.y-g.y;if(Fa(w)||Fa(x))return;n.translate(w,x),n.zoom(b,p)||console.warn("zoom failed, ratio out of range, ratio: %f",b)}}},t.prototype.fitViewByRules=function(e,r,n){var a=e.onlyOutOfViewPort,i=a===void 0?!1:a,o=e.direction,s=o===void 0?"both":o,u=e.ratioRule,f=u===void 0?"min":u,l=this.graph,c=this.getFormatPadding(),h=l.get("width"),d=l.get("height"),v=l.get("group"),p=v.getMatrix()||[1,0,0,0,1,0,0,0,1];v.resetMatrix();var g,y=l.getNodes();if(y.length>l.get("optimizeThreshold")){var m=1/0,b=1/0,w=-1/0,x=-1/0;y.forEach(function(O){var B=O.getModel(),L=B.x,z=B.y;m>L&&(m=L),b>z&&(b=z),wc.maxX&&(c.maxX=p.maxX),p.maxY>c.maxY&&(c.maxY=p.maxY)}if(c.x=c.minX,c.y=c.minY,c.width=c.maxX-c.minX,c.height=c.maxY-c.minY,!(c.width===0||c.height===0)){var g=this.getViewCenter(),y={x:c.x+c.width/2,y:c.y+c.height/2},m=(s-o[1]-o[3])/c.width,b=(u-o[0]-o[2])/c.height,w=m;m>b&&(w=b),n?this.animatedFitView(f,l,a,c,g,y,w,r):(i.translate(g.x-y.x,g.y-y.y),r&&!i.zoom(w,g)&&console.warn("zoom failed, ratio out of range, ratio: %f",w))}}},t.prototype.changeSize=function(e,r){var n=this.graph;if(!Ot(e)||!Ot(r))throw Error("invalid canvas width & height, please make sure width & height type is number");n.set({width:e,height:r});var a=n.get("canvas");a.changeSize(e,r);var i=n.get("plugins");i.forEach(function(o){o.get("gridContainer")&&o.positionInit()})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!1},t}();function H0(t){"@babel/helpers - typeof";return H0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H0(t)}function Ex(t){if(typeof t!="string")return t;var e=function(_){if(typeof _!="string")return _;try{return JSON.parse(_.trim())}catch{return _.trim()}},r=e(t);if(typeof r!="string")return r;for(var n=function(_){return _[_.length-1]},a=t.trim(),i=[],o=[],s=function(){for(var _=[],S=0;S=0&&(i.height=o),s>=0&&(i.width=s),a.marginTop&&(i.y+=a.marginTop),a.marginLeft&&(i.x+=a.marginLeft),i}function XC(t,e){var r;e===void 0&&(e={x:0,y:0});var n=P({x:0,y:0,width:0,height:0},e);if(!((r=t.children)===null||r===void 0)&&r.length){var a=t.attrs,i=a===void 0?{}:a,o=i.marginTop,s=P({},e);o&&(s.y+=o);for(var u=0;un.width&&(n.width=l.width+l.x),l.height+l.y>n.height&&(n.height=l.height+l.y)}}}return t.bbox=Jj(t,e,n),t.attrs=P(P({},t.attrs),t.bbox),t}function WC(t,e){var r,n,a,i,o=(t||{}).type,s=((e==null?void 0:e.attrs)||{}).key;if(s&&t&&(t.attrs.key=s),!t&&e)return{action:"delete",val:e,type:o,key:s};if(t&&!e)return{action:"add",val:t,type:o};if(!t&&!e)return{action:"same",type:o};var u=[];if(((r=t.children)===null||r===void 0?void 0:r.length)>0||((n=e.children)===null||n===void 0?void 0:n.length)>0)for(var f=Math.max((a=t.children)===null||a===void 0?void 0:a.length,(i=e.children)===null||i===void 0?void 0:i.length),l=e.children||[],c=t.children||[],h=0;h"u"?a=q0(i):typeof a!="string"&&(a=String(a)),this.get("model").id=a,this.set("id",a);var o=e.group;o&&(o.set("item",this),o.set("id",a)),this.init(),this.draw();var s=n.shape||n.type||(i==="edge"?"line":"circle"),u=this.get("shapeFactory");if(u&&u[s]){var f=u[s].options;if(f&&f.stateStyles){var l=this.get("styles")||n.stateStyles;l=_r({},f.stateStyles,l),this.set("styles",l)}}}return t.prototype.calculateBBox=function(){var e=this.get("keyShape"),r=this.get("group"),n=Dh(e,r);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.calculateCanvasBBox=function(){var e=this.get("keyShape"),r=this.get("group"),n=Dh(e,r);return n.x=n.minX,n.y=n.minY,n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.centerX=(n.minX+n.maxX)/2,n.centerY=(n.minY+n.maxY)/2,n},t.prototype.drawInner=function(){var e=this,r=e.get("shapeFactory"),n=e.get("group"),a=e.get("model");n.clear();var i=a.visible;if(i!==void 0&&!i&&e.changeVisibility(i),!!r){e.updatePosition(a);var o=e.getShapeCfg(a),s=o.type,u=r.draw(s,o,n);u&&(e.set("keyShape",u),u.set("isKeyShape",!0),u.set("draggable",!0)),this.setOriginStyle(),this.set("currentShape",s),this.restoreStates(r,s)}},t.prototype.setOriginStyle=function(){var e=this.get("group"),r=e.get("children"),n=this.getKeyShape(),a=this,i=n.get("name");if(this.get("originStyle")){var d=this.get("originStyle");i&&!d[i]&&(d[i]={});for(var v=this.getCurrentStatesStyle(),p=function(y){var m=r[y],b=m.get("name"),w=m.attr();if(b&&b!==i){var x=v[b];d[b]||(d[b]={}),x?Object.keys(w).forEach(function(S){var A=w[S];A!==x[S]&&(d[b][S]=A)}):d[b]=m.get("type")!=="image"?rr(w):a.getShapeStyleByName(b)}else{var E=m.attr(),_={};Object.keys(v).forEach(function(S){var A=v[S];(S===i||!ln(A))&&(_[S]=A)}),Object.keys(E).forEach(function(S){var A=E[S];_[S]!==A&&(i?d[i][S]=A:d[S]=A)})}},s=0;s-1)return;n.push(i)}else u>-1&&n.splice(u,1)}else if(Ye(r)){var f=n.filter(function(h){return h.includes(o)});f.length>0&&this.clearStates(f),s=s.filter(function(h){return!h.includes(o)}),s.push(i),this.set("states",s)}if(a){var l=this.get("model"),c=l.type;a.setState(c,e,r,this)}},t.prototype.clearStates=function(e){var r=this,n=r.getStates(),a=r.get("shapeFactory"),i=r.get("model"),o=i.type;e||(e=n),Ye(e)&&(e=[e]);var s=n.filter(function(u){return e.indexOf(u)===-1});r.set("states",s),e.forEach(function(u){a.setState(o,u,!1,r)})},t.prototype.setOptimize=function(e){this.optimize=e},t.prototype.getContainer=function(){return this.get("group")},t.prototype.getKeyShape=function(){return this.get("keyShape")},t.prototype.getModel=function(){return this.get("model")},t.prototype.getType=function(){return this.get("type")},t.prototype.getID=function(){return this.get("id")},t.prototype.isItem=function(){return!0},t.prototype.getStates=function(){return this.get("states")},t.prototype.hasState=function(e){var r=this.getStates();return r.indexOf(e)>=0},t.prototype.refresh=function(e){var r=this.get("model");this.updatePosition(r),this.updateShape(e),this.afterUpdate(),this.clearCache()},t.prototype.getUpdateType=function(e){},t.prototype.update=function(e,r){r===void 0&&(r=void 0);var n=this.get("model");if(r==="move")this.updatePosition(e);else{var a=n.visible,i=e.visible;a!==i&&i!==void 0&&this.changeVisibility(i);var o={x:n.x,y:n.y};e.x=isNaN(+e.x)?n.x:+e.x,e.y=isNaN(+e.y)?n.y:+e.y;var s=this.get("styles");if(e.stateStyles){var u=e.stateStyles;Et(s,u),delete e.stateStyles}Object.assign(n,e),(o.x!==e.x||o.y!==e.y)&&this.updatePosition(e),this.updateShape(r)}this.afterUpdate(),this.clearCache()},t.prototype.updateShape=function(e){var r=this.get("shapeFactory"),n=this.get("model"),a=n.type;if(r.shouldUpdate(a)&&a===this.get("currentShape")){var i=this.getShapeCfg(n,e);r.baseUpdate(a,i,this,e),e!=="move"&&this.setOriginStyle()}else this.draw();this.restoreStates(r,a)},t.prototype.updatePosition=function(e){var r=this.get("model"),n=isNaN(+e.x)?+r.x:+e.x,a=isNaN(+e.y)?+r.y:+e.y,i=this.get("group");if(isNaN(n)||isNaN(a))return!1;r.x=n,r.y=a;var o=i.getMatrix();return o&&o[6]===n&&o[7]===a?!1:(i.resetMatrix(),RA(i,{x:n,y:a}),this.clearCache(),!0)},t.prototype.getBBox=function(){var e=this.get(bp);return e||(e=this.calculateBBox(),this.set(bp,e)),e},t.prototype.getCanvasBBox=function(){var e=this.get(wp);return e||(e=this.calculateCanvasBBox(),this.set(wp,e)),e},t.prototype.toFront=function(){var e=this.get("group");e.toFront()},t.prototype.toBack=function(){var e=this.get("group");e.toBack()},t.prototype.show=function(){this.changeVisibility(!0)},t.prototype.hide=function(){this.changeVisibility(!1)},t.prototype.changeVisibility=function(e){var r=this.get("group");e?r.show():r.hide(),this.set("visible",e)},t.prototype.isVisible=function(){return this.get("visible")},t.prototype.enableCapture=function(e){var r=this.get("group");r&&r.set("capture",e)},t.prototype.destroy=function(){if(!this.destroyed){var e=this.get("animate"),r=this.get("group");e&&r.stopAnimate(),r.shapeMap={},this.clearCache(),r.remove(),this._cfg=null,this.destroyed=!0}},t}(),pc={source:"start",target:"end"},ka="Node",bs="Point",t8="Anchor",r8=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){return{type:"edge",sourceNode:null,targetNode:null,startPoint:null,endPoint:null,linkCenter:!1}},e.prototype.setEnd=function(r,n){var a=pc[r]+bs,i=r+ka,o=this.get(i);o&&!o.destroyed&&o.removeEdge(this),ln(n)?(this.set(a,n),this.set(i,null)):n&&(n.addEdge(this),this.set(i,n),this.set(a,null))},e.prototype.getLinkPoint=function(r,n,a){var i=pc[r]+bs,o=r+ka,s=this.get(i);if(!s){var u=this.get(o),f=r+t8,l=this.getPrePoint(r,a),c=n[f];Zt(c)||(s=u.getLinkPointByAnchor(c)),s=s||u.getLinkPoint(l),Zt(s.index)||this.set("".concat(r,"AnchorIndex"),s.index)}return s},e.prototype.getPrePoint=function(r,n){if(n&&n.length){var a=r==="source"?0:n.length-1;return n[a]}var i=r==="source"?"target":"source";return this.getEndPoint(i)},e.prototype.getEndPoint=function(r){var n=r+ka,a=pc[r]+bs,i=this.get(n);return i&&!i.destroyed?i.get("model"):this.get(a)},e.prototype.getControlPointsByCenter=function(r){var n=this.getEndPoint("source"),a=this.getEndPoint("target"),i=this.get("shapeFactory"),o=r.type;return i.getControlPoints(o,{startPoint:n,endPoint:a})},e.prototype.getEndCenter=function(r){var n=r+ka,a=pc[r]+bs,i=this.get(n);if(i){var o=i.getBBox();return{x:o.centerX,y:o.centerY}}return this.get(a)},e.prototype.init=function(){t.prototype.init.call(this),this.setSource(this.get("source")),this.setTarget(this.get("target"))},e.prototype.getShapeCfg=function(r,n){var a=this,i=a.get("linkCenter"),o=n!=null&&n.includes("move")?r:t.prototype.getShapeCfg.call(this,r);if(i)o.startPoint=a.getEndCenter("source"),o.endPoint=a.getEndCenter("target");else{var s=o.controlPoints||a.getControlPointsByCenter(o);o.startPoint=a.getLinkPoint("source",r,s),o.endPoint=a.getLinkPoint("target",r,s)}return o.sourceNode=a.get("sourceNode"),o.targetNode=a.get("targetNode"),o},e.prototype.getModel=function(){var r=this.get("model"),n=this.get("source".concat(ka)),a=this.get("target".concat(ka));return n?delete r["source".concat(ka)]:r.source=this.get("start".concat(bs)),a?delete r["target".concat(ka)]:r.target=this.get("end".concat(bs)),!Ye(r.source)&&!ln(r.source)&&(r.source=r.source.getID()),!Ye(r.target)&&!ln(r.target)&&(r.target=r.target.getID()),r},e.prototype.setSource=function(r){this.setEnd("source",r),this.set("source",r)},e.prototype.setTarget=function(r){this.setEnd("target",r),this.set("target",r)},e.prototype.getSource=function(){return this.get("source")},e.prototype.getTarget=function(){return this.get("target")},e.prototype.updatePosition=function(){return!1},e.prototype.update=function(r,n){n===void 0&&(n=void 0);var a=this.get("model"),i=a.visible,o=r.visible;i!==o&&o!==void 0&&this.changeVisibility(o);var s=this.get("source"),u=this.get("target");if(!(!s||s.destroyed||!u||u.destroyed)){var f=this.get("styles");if(r.stateStyles){var l=r.stateStyles;Et(f,l),delete r.stateStyles}Object.assign(a,r),this.updateShape(n),this.afterUpdate(),this.clearCache()}},e.prototype.destroy=function(){var r=this.get("source".concat(ka)),n=this.get("target".concat(ka));r&&!r.destroyed&&r.removeEdge(this),n&&!n.destroyed&&n.removeEdge(this),t.prototype.destroy.call(this)},e}(VC),xp="anchorPointsCache",n8="bboxCache",YC=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getNearestPoint=function(r,n){for(var a=0,i=r[0],o=Oh(r[0],n),s=0;s-1&&n.splice(a,1)},e.prototype.clearCache=function(){this.set(n8,null),this.set(xp,null)},e.prototype.getUpdateType=function(r){var n,a,i,o,s;if(r){var u=!Zt(r.x),f=!Zt(r.y),l=Object.keys(r);if(l.length===1&&(u||f)||l.length===2&&u&&f)return"move";if(Ot(r.x)||Ot(r.y)||r.type||r.anchorPoints||r.size||r!=null&&r.style&&(!((n=r==null?void 0:r.style)===null||n===void 0)&&n.r||!((a=r==null?void 0:r.style)===null||a===void 0)&&a.width||!((i=r==null?void 0:r.style)===null||i===void 0)&&i.height||!((o=r==null?void 0:r.style)===null||o===void 0)&&o.rx||!((s=r==null?void 0:r.style)===null||s===void 0)&&s.ry))return"bbox|label";var c=l.includes("label")||l.includes("labelCfg");return c?"style|label":"style"}},e.prototype.setState=function(r,n){var a=this;if(this.optimize){t.prototype.setState.call(this,r,n);return}this.runWithBBoxAffected(function(){return t.prototype.setState.call(a,r,n)})},e.prototype.clearStates=function(r){var n=this;if(this.optimize){t.prototype.clearStates.call(this,r);return}this.runWithBBoxAffected(function(){return t.prototype.clearStates.call(n,r)})},e.prototype.runWithBBoxAffected=function(r){var n=["r","width","height","rx","ry","lineWidth"],a=this.getKeyShape().attr(),i={};Object.keys(this.getKeyShape().attr()).forEach(function(f){n.includes(f)&&(i[f]=a[f])}),r();for(var o=this.getKeyShape().attr(),s=0;s-1?(n.splice(a,1),!0):!1}},e.prototype.removeNode=function(r){if(r){var n=this.getNodes(),a=n.indexOf(r);return a>-1?(n.splice(a,1),!0):!1}},e.prototype.getUpdateType=function(r){},e.prototype.getBBox=function(){this.set(Ax,null);var r=this.calculateCanvasBBox();return r},e.prototype.clearCache=function(){this.set(Mx,null),this.set(Ax,null),this.set(Cx,null)},e.prototype.destroy=function(){if(!this.destroyed){var r=this.get("animate"),n=this.get("group");r&&n.stopAnimate(),n.shapeMap={},this.clearCache(),this.set(gc,null),this.set("bbox",null),n.remove(),this._cfg=null,this.destroyed=!0}},e}(YC),yc="node",mc="edge",Tx="vedge",Wu="combo",i8="default",Ix="Mapper",ii="stateStyles",o8=function(){function t(e){var r=this;this.edgeToBeUpdateMap={},this.throttleRefresh=Ch(function(n){var a=r.graph;if(!(!a||a.get("destroyed"))){var i=r.edgeToBeUpdateMap;if(i){var o=Object.values(i);o.length&&(o.forEach(function(s){var u=s.edge;if(!(!u||u.destroyed)){var f=u.getSource(),l=u.getTarget();!f||f.destroyed||!l||l.destroyed||u.refresh(s.updateType)}}),r.edgeToBeUpdateMap={})}}},16,{trailing:!0,leading:!0}),this.graph=e,this.destroyed=!1}return t.prototype.addItem=function(e,r){var n=this.graph,a=e===Tx?mc:e,i=n.get("".concat(a,"Group"))||n.get("group"),o=Zs(a),s=null,u=n.get(a+Zs(ii))||{},f=n.get(i8+o);r[ii]&&(u=r[ii]),f&&_e(f,function(E,_){gn(E)&&!bt(E)?r[_]=_r({},E,r[_]):bt(E)?r[_]=r[_]||rr(f[_]):r[_]=r[_]||f[_]});var l=n.get(a+Ix);if(l){var c=l(r);c[ii]&&(u=c[ii],delete c[ii]),_e(c,function(E,_){gn(E)&&!bt(E)?r[_]=_r({},r[_],E):r[_]=c[_]||r[_]})}if(n.emit("beforeadditem",{type:e,model:r}),e===mc||e===Tx){var h=void 0,d=void 0;if(h=r.source,d=r.target,h&&Ye(h)&&(h=n.findById(h)),d&&Ye(d)&&(d=n.findById(d)),!h||!d){console.warn("The source or target node of edge ".concat(r.id," does not exist!"));return}h.getType&&h.getType()==="combo"&&(r.isComboEdge=!0),d.getType&&d.getType()==="combo"&&(r.isComboEdge=!0),s=new r8({model:r,source:h,target:d,styles:u,linkCenter:n.get("linkCenter"),group:i.addGroup()})}else if(e===yc)s=new YC({model:r,styles:u,group:i.addGroup()});else if(e===Wu){var v=r.children,p=oh(v,n),g=void 0,y=void 0;if(isNaN(p.x)?isNaN(r.x)&&(g=Math.random()*100):g=p.x,isNaN(p.y)?isNaN(r.y)&&(y=Math.random()*100):y=p.y,isNaN(r.x)||isNaN(r.y))r.x=g,r.y=y;else{var m=r.x-g,b=r.y-y;this.updateComboSucceeds(r.id,m,b,v)}var w=i.addGroup();w.setZIndex(r.depth),s=new a8({model:r,styles:u,animate:n.get("animate"),bbox:r.collapsed?oh([],n):p,group:w}),!r.collapsed&&s.getKeyShape().get("type")==="circle"&&(p.width=Math.hypot(p.height,p.width),p.height=p.width,s.set("bbox",p),s.refresh());var x=s.getModel();(v||[]).forEach(function(E){var _=n.findById(E.id);s.addChild(_),E.depth=x.depth+2})}if(s)return s.setOptimize(n.getNodes().length>n.get("optimizeThreshold")),n.get("".concat(e,"s")).push(s),n.get("itemMap")[s.get("id")]=s,n.emit("afteradditem",{item:s,model:r}),s},t.prototype.updateItem=function(e,r){var n=this,a,i,o=this.graph;if(Ye(e)&&(e=o.findById(e)),!(!e||e.destroyed)){var s="";e.getType&&(s=e.getType());var u=o.get(s+Ix),f=e.getModel(),l=f.x,c=f.y,h=e.getUpdateType(r);if(u){var d=_r({},f,r),v=u(d),p=_r({},f,v,r);v[ii]&&(e.set("styles",p[ii]),delete p[ii]),_e(p,function(M,C){r[C]=M})}else _e(r,function(M,C){f[C]&&gn(M)&&!bt(M)&&(r[C]=P(P({},f[C]),r[C]))});if(o.emit("beforeupdateitem",{item:e,cfg:r}),s===mc){if(r.source){var g=r.source;Ye(g)&&(g=o.findById(g)),e.setSource(g)}if(r.target){var y=r.target;Ye(y)&&(y=o.findById(y)),e.setTarget(y)}e.update(r)}else if(s===yc){e.update(r,h);var m=e.getEdges();h==="move"?_e(m,function(M){n.edgeToBeUpdateMap[M.getID()]={edge:M,updateType:h},n.throttleRefresh()}):h!=null&&h.includes("bbox")&&_e(m,function(M){M.refresh(h)})}else if(s===Wu){if(e.update(r,h),!isNaN(r.x)||!isNaN(r.y)){var b=r.x-l||0,w=r.y-c||0;this.updateComboSucceeds(f.id,b,w)}var x=e.getEdges(),E=(h==null?void 0:h.includes("bbox"))||h==="move";if(E&&s===Wu){var _=e.get("shapeFactory"),S=f.type||"circle",A=f.animate===void 0||r.animate===void 0?(i=(a=_[S])===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.animate:f.animate||r.animate;A?setTimeout(function(){if(!(!e||e.destroyed)){var M=e.getKeyShape();!M||M.destroyed||_e(x,function(C){C&&!C.destroyed&&C.refresh()})}},201):_e(x,function(M){M.refresh()})}}e.setOptimize(o.getNodes().length>o.get("optimizeThreshold")),o.emit("afterupdateitem",{item:e,cfg:r})}},t.prototype.updateCombo=function(e,r,n){var a=this,i,o,s=this.graph;if(Ye(e)&&(e=s.findById(e)),!(!e||e.destroyed)){var u=e.getModel(),f=oh(r,s,e),l=f.x,c=f.y;e.set("bbox",f);var h=l,d=c;n?(h=isNaN(u.x)?l:u.x,d=isNaN(u.y)?c:u.y):(h=isNaN(l)?u.x:l,d=isNaN(c)?u.y:c),e.update({x:h,y:d});var v=e.get("shapeFactory"),p=u.type||"circle",g=u.animate===void 0?(o=(i=v[p])===null||i===void 0?void 0:i.options)===null||o===void 0?void 0:o.animate:u.animate;g?setTimeout(function(){if(!(!e||e.destroyed)){var y=e.getKeyShape();!y||y.destroyed||(e.getShapeCfg(u),a.updateComboEdges(e))}},201):this.updateComboEdges(e)}},t.prototype.updateComboEdges=function(e){for(var r,n,a=e.getEdges()||[],i=0;i-1&&o.splice(s,1),i===mc){var u=n.get("v".concat(i,"s")),f=u.indexOf(e);f>-1&&u.splice(f,1)}var l=e.get("id"),c=n.get("itemMap");delete c[l];var h=n.get("comboTrees"),d=e.get("id");if(i===yc){var v=e.getModel().comboId;if(h&&v){var p=h,g=!1;h.forEach(function(E){g||bn(E,function(_){if(_.id===d&&p){var S=p.indexOf(_);return p.splice(S,1),g=!0,!1}return p=_.children,!0})})}for(var y=e.getEdges(),m=y.length-1;m>=0;m--)n.removeItem(y[m],!1);v&&n.updateCombo(v)}else if(i===Wu){var b=e.getModel().parentId,w,x=!1;(h||[]).forEach(function(_){x||bn(_,function(S){return S.id===d?(w=S,x=!0,!1):!0})}),w.removed=!0,w&&w.children&&w.children.forEach(function(_){r.removeItem(_.id)});for(var y=e.getEdges(),m=y.length;m>=0;m--)n.removeItem(y[m],!1);b&&n.updateCombo(b)}e.destroy(),n.emit("afterremoveitem",{item:a,type:i})}},t.prototype.setItemState=function(e,r,n){var a=this.graph,i=r;Ye(n)&&(i="".concat(r,":").concat(n)),!(e.hasState(i)===n&&n||Ye(n)&&e.hasState(i))&&(a.emit("beforeitemstatechange",{item:e,state:i,enabled:n}),e.setState(r,n),a.autoPaint(),a.emit("afteritemstatechange",{item:e,state:i,enabled:n}))},t.prototype.priorityState=function(e,r){var n=this.graph,a=e;Ye(e)&&(a=n.findById(e)),this.setItemState(a,r,!1),this.setItemState(a,r,!0)},t.prototype.clearItemStates=function(e,r){var n=this.graph;Ye(e)&&(e=n.findById(e)),n.emit("beforeitemstatesclear",{item:e,states:r}),e.clearStates(r),n.emit("afteritemstatesclear",{item:e,states:r})},t.prototype.refreshItem=function(e){var r=this.graph;Ye(e)&&(e=r.findById(e)),r.emit("beforeitemrefresh",{item:e}),e.refresh(),r.emit("afteritemrefresh",{item:e})},t.prototype.addCombos=function(e,r){var n=this,a=this.graph;(e||[]).forEach(function(o){Ra(o,function(s){var u;return r.forEach(function(f){f.id===s.id&&(f.children=s.children,f.depth=s.depth,u=f)}),u&&n.addItem("combo",u),!0})});var i=a.get("comboGroup");i&&i.sort()},t.prototype.changeItemVisibility=function(e,r){var n=this,a=this.graph;if(Ye(e)&&(e=a.findById(e)),!e){console.warn("The item to be shown or hidden does not exist!");return}if(a.emit("beforeitemvisibilitychange",{item:e,visible:r}),e.changeVisibility(r),e.getType&&e.getType()===yc){var i=e.getEdges();_e(i,function(l){r&&!(l.get("source").isVisible()&&l.get("target").isVisible())||n.changeItemVisibility(l,r)})}else if(e.getType&&e.getType()===Wu){var o=a.get("comboTrees"),s=e.get("id"),u=[],f=!1;(o||[]).forEach(function(c){f||!c.children||c.children.length===0||bn(c,function(h){return h.id===s?(u=h.children,f=!0,!1):!0})}),u&&(!r||r&&!e.getModel().collapsed)&&u.forEach(function(c){var h=a.findById(c.id);n.changeItemVisibility(h,r)});var i=e.getEdges();_e(i,function(c){r&&!(c.get("source").isVisible()&&c.get("target").isVisible())||n.changeItemVisibility(c,r)})}return a.emit("afteritemvisibilitychange",{item:e,visible:r}),e},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),s8=function(){function t(e){this.graph=e,this.destroyed=!1}return t.prototype.updateState=function(e,r,n){var a=this.graph.get("states"),i=r;Ye(n)&&(i="".concat(r,":").concat(n)),a[i]||(a[i]=[]),n?a[i].push(e):a[i]=a[i].filter(function(o){return o!==e}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:a})},t.prototype.updateStates=function(e,r,n){var a=this.graph.get("states"),i=Ye(r)?[r]:r;i.forEach(function(o){var s=o;a[s]||(a[s]=[]),Ye(n)&&(s="".concat(o,":").concat(n)),n?a[s].push(e):a[s]=a[s].filter(function(u){return u!==e})}),this.graph.set("states",a),this.graph.emit("graphstatechange",{states:r})},t.prototype.destroy=function(){this.graph=null,this.destroyed=!0},t}(),u8=function(e,r){return!e||!r?e:e.replace(/\\?\{([^{}]+)\}/g,function(n,a){if(n.charAt(0)==="\\")return n.slice(1);var i=r[a];return i===0&&(i="0"),i||""})},qC=function(e){var r=[];if(e.length<2)throw new Error("point length must largn than 2, now it's ".concat(e.length));for(var n=0,a=e;n0?o-1:r-1,u=Wi([0,0],fn([0,0],i[s].v,wn([0,0],i[o].v,-1)));i[o].p=fn([0,0],i[o].p,wn([0,0],u,e))}return i.map(function(f){var l=f.p;return{x:l[0],y:l[1]}})}var l8=function(e,r){for(var n=[],a=0;a<5;a++){var i=Math.cos((18+72*a)/180*Math.PI)*e,o=Math.sin((18+72*a)/180*Math.PI)*e,s=Math.cos((54+72*a)/180*Math.PI)*r,u=Math.sin((54+72*a)/180*Math.PI)*r;a===0?n.push(["M",i,-o]):n.push(["L",i,-o]),n.push(["L",s,-u])}return n.push(["Z"]),n};const c8=Object.freeze(Object.defineProperty({__proto__:null,getClosedSpline:K0,getControlPoint:zh,getSpline:qC,getStarPath:l8,paddedHull:HC,pathToPoints:Z0,pointsToPolygon:f8,roundedHull:Q0},Symbol.toStringTag,{value:"Module"}));var Lx=function(e,r,n){return(e.y-n.y)*(r.x-n.x)-(e.x-n.x)*(r.y-n.y)},Dx=function(e){var r=e.map(function(c){return{x:c.getModel().x,y:c.getModel().y}});r.sort(function(c,h){return c.x===h.x?c.y-h.y:c.x-h.x});for(var n={},a=r.length-1;a>=0;a--){var i=r[a],o=i.x,s=i.y;n["".concat(o,"-").concat(s)]&&r.splice(a,1),n["".concat(o,"-").concat(s)]=!0}if(r.length===1)return r;for(var u=[],a=0;a=2&&Lx(u[u.length-2],u[u.length-1],r[a])<=0;)u.pop();u.push(r[a])}for(var f=[],a=r.length-1;a>=0;a--){for(;f.length>=2&&Lx(f[f.length-2],f[f.length-1],r[a])<=0;)f.pop();f.push(r[a])}f.pop(),u.pop();var l=u.concat(f);return l},h8={maxRoutingIterations:100,maxMarchingIterations:100,pixelGroupSize:2,edgeR0:10,edgeR1:10,nodeR0:5,nodeR1:10,morphBuffer:5,threshold:.001,skip:16,nodeInfluenceFactor:1,edgeInfluenceFactor:1,negativeNodeInfluenceFactor:-.5};function d8(t,e,r){var n=!1,a=function(u,f){return e.cells[u+f*e.width]},i=function(u,f){var l=0;return a(u-1,f-1)>=r&&(l+=1),a(u,f-1)>r&&(l+=2),a(u-1,f)>r&&(l+=4),a(u,f)>r&&(l+=8),l},o=function(u,f){for(var l=u,c=f,h,d,v=0;v-1){if(!(t[0].x!==l||t[0].y!==c))return!0}else t.push({x:l,y:c});var p=i(l,c);switch(p){case-1:return console.warn("Marched out of bounds"),!0;case 0:case 3:case 2:case 7:l++;break;case 12:case 14:case 4:l--;break;case 6:h===0&&(d===-1?l-=1:l+=1);break;case 1:case 13:case 5:c--;break;case 9:h===1&&(d===0?c-=1:c+=1);break;case 10:case 8:case 11:c++;break;default:return console.warn("Marching squares invalid state: ".concat(p)),!0}}};this.march=function(){for(var s=0;sr&&i(s,u)!==15&&(n=o(s,u));return n}}var v8=function(e,r,n){var a=Math.ceil(e/n),i=Math.ceil(r/n),o=new Float32Array(Math.max(0,a*i)).fill(0);return{cells:o,width:a,height:i}},p8=function(e,r,n){var a=null,i=Number.POSITIVE_INFINITY;return r.forEach(function(o){var s={x:e.getModel().x,y:e.getModel().y},u={x:o.getModel().x,y:o.getModel().y},f=Lh(s,u),l=new $o(s.x,s.y,u.x,u.y),c=n.reduce(function(h,d){return Oy(d,l)>0?h+1:h},0);f*Math.pow(c+1,2)=0&&o=1;)x/=1.5,E=Px(v,x,g,w),_=f(E,o)||f(E,i),S=l(E,r);E&&!_&&(!w||!S)&&(o.push(new $o(d.x1,d.y1,E.x,E.y)),o.push(new $o(E.x,E.y,d.x2,d.y2)),s=!0)};m(!0),s||m(!1)}}s||i.push(d),u+=1};!s&&o.length;)c()}for(;o.length;)i.push(o.pop());return i};function y8(t,e,r,n,a){var i=p8(t,r,e);if(i===null)return[];var o=function(c){for(var h=[];c.length>0;){var d=c.pop();if(c.length===0){h.push(d);break}var v=c.pop(),p=new $o(d.x1,d.y1,v.x2,v.y2),g=ZC(e,p);g?(h.push(d),c.push(v)):c.push(p)}return h},s=new $o(t.getModel().x,t.getModel().y,i.getModel().x,i.getModel().y),u=g8(s,e,n,a),f=o(u);return f}var m8=function(e,r,n){var a=Object.assign(h8,n),i=zA(e.map(function(m){return{x:m.getModel().x,y:m.getModel().y}}));e=e.sort(function(m,b){return Lh({x:m.getModel().x,y:m.getModel().y},i)-Lh({x:b.getModel().x,y:b.getModel().y},i)});var o=[],s=[];e.forEach(function(m){var b=y8(m,r,o,a.maxRoutingIterations,a.morphBuffer);b.forEach(function(w){s.push(w)}),o.push(m)});for(var u=b8(e,s,a.nodeR0),f=v8(u.width,u.height,a.pixelGroupSize),l=[],c=[],h=0;h1)for(v=Math.floor(d.length/a.skip);v<3&&a.skip>1;)a.skip-=1,v=Math.floor(d.length/a.skip);for(var p=0,g=0;g0)a.nonMemberInfluenceFactor*=.8;else break}return c};function b8(t,e,r){var n={minX:Number.POSITIVE_INFINITY,minY:Number.POSITIVE_INFINITY,maxX:Number.NEGATIVE_INFINITY,maxY:Number.NEGATIVE_INFINITY,width:0,height:0,x:0,y:0},a=[];t.forEach(function(u){a.push(u.getBBox())}),e.forEach(function(u){a.push(u.getBBox())});for(var i=0,o=a;in.maxX?s.maxX:n.maxX)+r,n.maxY=(s.maxY>n.maxY?s.maxY:n.maxY)+r}return n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n.x=n.minX,n.y=n.minY,n}function w8(t,e,r,n,a,i){function o(d,v){var p=Math.floor((d-v)/i.pixelGroupSize);return p<0?0:p}function s(d,v){return d*i.pixelGroupSize+v}var u=(i.nodeR0-i.nodeR1)*(i.nodeR0-i.nodeR1),f=(i.edgeR0-i.edgeR1)*(i.edgeR0-i.edgeR1),l=function(v,p){var g=Math.min(o(v.minX,p+n.minX),a.width),y=Math.min(o(v.minY,p+n.minY),a.height),m=Math.min(o(v.maxX,-p+n.minX),a.width),b=Math.min(o(v.maxY,-p+n.minY),a.height);return[g,y,m,b]},c=function(v,p){for(var g=v.getBBox(),y=l(g,i.nodeR1),m=y[0],b=y[1],w=y[2],x=y[3],E=b;Eu.y?n?f.topLeft:f.bottomRight:n?f.topRight:f.bottomLeft:o.ys.x?n?f.topLeft:f.bottomRight:n?f.bottomLeft:f.topRight:i.x0?this.cfg.padding+e:10+e,this.cfg.bubbleCfg={nodeR0:this.padding-e,nodeR1:this.padding-e,morphBuffer:this.padding-e}},t.prototype.setType=function(){this.type=this.cfg.type,this.members.length<3&&(this.type="round-convex"),this.type!=="round-convex"&&this.type!=="smooth-convex"&&this.type!=="bubble"&&(console.warn("The hull type should be either round-convex, smooth-convex or bubble, round-convex is used by default."),this.type="round-convex")},t.prototype.calcPath=function(e,r){var n,a,i;switch(this.type){case"round-convex":n=Dx(e),i=Q0(n.map(function(o){return[o.x,o.y]}),this.padding),a=W0(i);break;case"smooth-convex":n=Dx(e),n.length===2?(i=Q0(n.map(function(o){return[o.x,o.y]}),this.padding),a=W0(i)):n.length>2&&(i=HC(n.map(function(o){return[o.x,o.y]}),this.padding),a=K0(i));break;case"bubble":n=m8(e,r,this.cfg.bubbleCfg),a=n.length>=2&&K0(n);break}return a},t.prototype.render=function(){this.group.addShape("path",{attrs:P({path:this.path},this.cfg.style),id:this.id,name:this.cfg.id,capture:!1}),this.group.toBack()},t.prototype.addMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.members.push(e);var r=this.nonMembers.indexOf(e);return r>-1&&this.nonMembers.splice(r,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.addNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e)),this.nonMembers.push(e);var r=this.members.indexOf(e);return r>-1&&this.members.splice(r,1),this.updateData(this.members,this.nonMembers),!0}},t.prototype.removeMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var r=this.members.indexOf(e);return r>-1?(this.members.splice(r,1),this.updateData(this.members,this.nonMembers),!0):!1}},t.prototype.removeNonMember=function(e){if(e){Ye(e)&&(e=this.graph.findById(e));var r=this.nonMembers.indexOf(e);return r>-1?(this.nonMembers.splice(r,1),this.updateData(this.members,this.nonMembers),!0):!1}},t.prototype.updateData=function(e,r){var n=this;this.group.findById(this.id).remove(),e&&(this.members=e.map(function(a){return Ye(a)?n.graph.findById(a):a})),r&&(this.nonMembers=r.map(function(a){return Ye(a)?n.graph.findById(a):a})),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.updateStyle=function(e){var r=this.group.findById(this.id);r.attr(P({},e))},t.prototype.updateCfg=function(e){var r=this;this.cfg=_r(this.cfg,e),this.id=this.cfg.id,this.group=this.cfg.group,e.members&&(this.members=this.cfg.members.map(function(n){return Ye(n)?r.graph.findById(n):n})),e.nonMembers&&(this.nonMembers=this.cfg.nonMembers.map(function(n){return Ye(n)?r.graph.findById(n):n})),this.setPadding(),this.setType(),this.path=this.calcPath(this.members,this.nonMembers),this.render()},t.prototype.contain=function(e){var r=this,n;Ye(e)?n=this.graph.findById(e):n=e;var a,i=n.getKeyShape();if(n.get("type")==="path")a=Z0(i.attr("path"));else{var o=i.getCanvasBBox();a=[[o.minX,o.minY],[o.maxX,o.minY],[o.maxX,o.maxY],[o.minX,o.maxY]]}return a=a.map(function(s){var u=r.graph.getPointByCanvas(s[0],s[1]);return[u.x,u.y]}),BA(a,Z0(this.path))},t.prototype.destroy=function(){this.group.remove(),this.cfg=null},t}(),Vu=eo,E8="node",_8=function(t){jt(e,t);function e(r){var n=t.call(this)||this;return n.sortCombos=oy(function(){var a=n.get("comboSorted");if(!(!n||n.destroyed||a)){n.set("comboSorted",!0);var i=[],o={},s=n.get("comboTrees");(s||[]).forEach(function(f){bn(f,function(l){return i[l.depth]?i[l.depth].push(l.id):i[l.depth]=[l.id],o[l.id]=l.depth,!0})});var u=n.getEdges().concat(n.get("vedges"));(u||[]).forEach(function(f){var l=f.getModel(),c=o[l.source]||0,h=o[l.target]||0,d=Math.max(c,h);i[d]?i[d].push(l.id):i[d]=[l.id]}),i.forEach(function(f){if(!(!f||!f.length))for(var l=f.length-1;l>=0;l--){var c=n.findById(f[l]);c&&c.toFront()}})}},500,!1),n.cfg=_r(n.getDefaultCfg(),r),n.init(),n.animating=!1,n.destroyed=!1,n.cfg.enabledStack&&(n.undoStack=new Gs(n.cfg.maxStep),n.redoStack=new Gs(n.cfg.maxStep)),n}return e.prototype.init=function(){this.initCanvas();var r=new Zj(this),n=new cz(this),a=new o8(this),i=new s8(this);this.set({viewController:r,modeController:n,itemController:a,stateController:i}),this.initLayoutController(),this.initEventController(),this.initGroups(),this.initPlugins()},e.prototype.initGroups=function(){var r=this.get("canvas");if(r){var n=r.get("el"),a=(n||{}).id,i=a===void 0?"g6":a,o=r.addGroup({id:"".concat(i,"-root"),className:ft.rootContainerClassName});if(this.get("groupByTypes")){var s=o.addGroup({id:"".concat(i,"-edge"),className:ft.edgeContainerClassName}),u=o.addGroup({id:"".concat(i,"-node"),className:ft.nodeContainerClassName}),f=o.addGroup({id:"".concat(i,"-combo"),className:ft.comboContainerClassName});f.toBack(),this.set({nodeGroup:u,edgeGroup:s,comboGroup:f})}var l=o.addGroup({id:"".concat(i,"-delegate"),className:ft.delegateContainerClassName});this.set({delegateGroup:l}),this.set("group",o)}},e.prototype.getDefaultCfg=function(){return{container:void 0,width:void 0,height:void 0,renderer:"canvas",modes:{},plugins:[],data:{},fitViewPadding:10,minZoom:.02,maxZoom:10,event:!0,groupByTypes:!0,directed:!1,autoPaint:!0,nodes:[],edges:[],combos:[],vedges:[],itemMap:{},linkCenter:!1,defaultNode:{},defaultEdge:{},nodeStateStyles:{},edgeStateStyles:{},states:{},animate:!1,animateCfg:{onFrame:void 0,duration:500,easing:"easeLinear"},callback:void 0,enabledStack:!1,maxStep:10,tooltips:[],optimizeThreshold:1e3}},e.prototype.set=function(r,n){return ln(r)?this.cfg=P(P({},this.cfg),r):this.cfg[r]=n,r==="enabledStack"&&n&&!this.undoStack&&!this.redoStack&&(this.undoStack=new Gs(this.cfg.maxStep),this.redoStack=new Gs(this.cfg.maxStep)),this},e.prototype.get=function(r){var n;return(n=this.cfg)===null||n===void 0?void 0:n[r]},e.prototype.getGroup=function(){return this.get("group")},e.prototype.getContainer=function(){return this.get("container")},e.prototype.getMinZoom=function(){return this.get("minZoom")},e.prototype.setMinZoom=function(r){return this.set("minZoom",r)},e.prototype.getMaxZoom=function(){return this.get("maxZoom")},e.prototype.setMaxZoom=function(r){return this.set("maxZoom",r)},e.prototype.getWidth=function(){return this.get("width")},e.prototype.getHeight=function(){return this.get("height")},e.prototype.clearItemStates=function(r,n){Ye(r)&&(r=this.findById(r));var a=this.get("itemController");n||(n=r.get("states")),a.clearItemStates(r,n);var i=this.get("stateController");i.updateStates(r,n,!1)},e.prototype.node=function(r){typeof r=="function"&&this.set("nodeMapper",r)},e.prototype.edge=function(r){typeof r=="function"&&this.set("edgeMapper",r)},e.prototype.combo=function(r){typeof r=="function"&&this.set("comboMapper",r)},e.prototype.findById=function(r){return this.get("itemMap")[r]},e.prototype.find=function(r,n){var a,i=this.get("".concat(r,"s"));return _e(i,function(o,s){if(n(o,s))return a=o,a}),a},e.prototype.findAll=function(r,n){var a=[];return _e(this.get("".concat(r,"s")),function(i,o){n(i,o)&&a.push(i)}),a},e.prototype.findAllByState=function(r,n,a){return a?this.findAll(r,function(i){return i.hasState(n)&&a(i)}):this.findAll(r,function(i){return i.hasState(n)})},e.prototype.translate=function(r,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix());if(u||(u=[1,0,0,0,1,0,0,0,1]),a){var f=Df({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"translate",matrix:s.getMatrix()})}});_0(s,{x:s.getCanvasBBox().x+r,y:s.getCanvasBBox().y+n},a,f||{duration:500,easing:"easeCubic"})}else u=Vu(u,[["t",r,n]]),s.setMatrix(u),this.emit("viewportchange",{action:"translate",matrix:u}),this.autoPaint()},e.prototype.moveTo=function(r,n,a,i){var o=this.get("group");_0(o,{x:r,y:n},a,i||{duration:500,easing:"easeCubic"}),this.emit("viewportchange",{action:"move",matrix:o.getMatrix()})},e.prototype.fitView=function(r,n,a,i){r&&this.set("fitViewPadding",r);var o=this.get("viewController");n?o.fitViewByRules(n,a,i):o.fitView(a,i),this.autoPaint()},e.prototype.fitCenter=function(r,n){var a=this.get("viewController");a.fitCenter(r,n),this.autoPaint()},e.prototype.addBehaviors=function(r,n){var a=this.get("modeController");return a.manipulateBehaviors(r,n,!0),this},e.prototype.removeBehaviors=function(r,n){var a=this.get("modeController");return a.manipulateBehaviors(r,n,!1),this},e.prototype.updateBehavior=function(r,n,a){var i=this.get("modeController");return i.updateBehavior(r,n,a),this},e.prototype.zoom=function(r,n,a,i){var o=this,s=this.get("group"),u=rr(s.getMatrix())||[1,0,0,0,1,0,0,0,1],f=this.get("minZoom"),l=this.get("maxZoom"),c=this.getZoom()||1,h=c*r,d=r,v=!1;if(f&&hl&&(d=l/c,v=!0),n?u=Vu(u,[["t",-n.x,-n.y],["s",d,d],["t",n.x,n.y]]):u=Vu(u,[["s",d,d]]),a){var p=rr(s.getMatrix());p||(p=[1,0,0,0,1,0,0,0,1]);var g=p[0],y=g*d,m=Df({animateCfg:i,callback:function(){return o.emit("viewportchange",{action:"zoom",matrix:s.getMatrix()})}});s.animate(function(b){if(b===1)p=u;else{var w=Ly(g,y,b)/p[0];n?p=Vu(p,[["t",-n.x,-n.y],["s",w,w],["t",n.x,n.y]]):p=Vu(p,[["s",w,w]])}return{matrix:p}},m)}else s.setMatrix(u),this.emit("viewportchange",{action:"zoom",matrix:u}),this.autoPaint();return!v},e.prototype.zoomTo=function(r,n,a,i){var o=r/this.getZoom();return this.zoom(o,n,a,i)},e.prototype.focusItem=function(r,n,a){var i=this.get("viewController"),o=!1;n?o=!0:n===void 0&&(o=this.get("animate"));var s={};a?s=a:a===void 0&&(s=this.get("animateCfg")),i.focus(r,o,s),this.autoPaint()},e.prototype.focusItems=function(r,n,a,i){var o=this.get("viewController");o.focusItems(r,n,a,i)},e.prototype.autoPaint=function(){this.get("autoPaint")&&this.paint()},e.prototype.paint=function(){this.emit("beforepaint"),this.get("canvas").draw(),this.emit("afterpaint")},e.prototype.getPointByClient=function(r,n){var a=this.get("viewController");return a.getPointByClient(r,n)},e.prototype.getClientByPoint=function(r,n){var a=this.get("viewController");return a.getClientByPoint(r,n)},e.prototype.getPointByCanvas=function(r,n){var a=this.get("viewController");return a.getPointByCanvas(r,n)},e.prototype.getCanvasByPoint=function(r,n){var a=this.get("viewController");return a.getCanvasByPoint(r,n)},e.prototype.getGraphCenterPoint=function(){var r=this.get("group").getCanvasBBox();return{x:(r.minX+r.maxX)/2,y:(r.minY+r.maxY)/2}},e.prototype.getViewPortCenterPoint=function(){return this.getPointByCanvas(this.get("width")/2,this.get("height")/2)},e.prototype.showItem=function(r,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(r,!0);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!1}],f.nodes=[{id:o,visible:!0}];break;case"edge":u.nodes=[{id:o,visible:!1}],f.edges=[{id:o,visible:!0}];break;case"combo":u.nodes=[{id:o,visible:!1}],f.combos=[{id:o,visible:!0}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.hideItem=function(r,n){n===void 0&&(n=!0);var a=this.get("itemController"),i=a.changeItemVisibility(r,!1);if(n&&this.get("enabledStack")){var o=i.getID(),s=i.getType(),u={},f={};switch(s){case"node":u.nodes=[{id:o,visible:!0}],f.nodes=[{id:o,visible:!1}];break;case"edge":u.nodes=[{id:o,visible:!0}],f.edges=[{id:o,visible:!1}];break;case"combo":u.nodes=[{id:o,visible:!0}],f.combos=[{id:o,visible:!1}];break}this.pushStack("visible",{before:u,after:f})}},e.prototype.refreshItem=function(r){var n=this.get("itemController");n.refreshItem(r)},e.prototype.setAutoPaint=function(r){var n=this;n.set("autoPaint",r);var a=n.get("canvas");a.set("autoDraw",r)},e.prototype.remove=function(r,n){n===void 0&&(n=!0),this.removeItem(r,n)},e.prototype.removeItem=function(r,n){n===void 0&&(n=!0);var a=r;if(Ye(r)&&(a=this.findById(r)),!a&&Ye(r))console.warn("The item ".concat(r," to be removed does not exist!"));else if(a){var i="";if(a.getType&&(i=a.getType()),n&&this.get("enabledStack")){var o=P(P({},a.getModel()),{itemType:i}),s={};switch(i){case"node":{s.nodes=[o],s.edges=[];for(var u=a.getEdges(),f=u.length-1;f>=0;f--)s.edges.push(P(P({},u[f].getModel()),{itemType:"edge"}));break}case"edge":s.edges=[o];break;case"combo":s.combos=[o];break}this.pushStack("delete",{before:s,after:{}})}if(i==="node"){var l=a.getModel();l.comboId&&this.updateComboTree(a,void 0,!1)}var c=this.get("itemController");if(c.removeItem(a),i==="combo"){var h=I0(this.get("comboTrees"));this.set("comboTrees",h)}}},e.prototype.innerAddItem=function(r,n,a){if(!lz(r,n))return!1;if(n.id&&this.findById(n.id)){console.warn("This item exists already. Be sure the id %c".concat(n.id,"%c is unique."),"font-size: 20px; color: red;","");return}var i,o=this.get("comboTrees")||[];if(r==="combo"){var s=this.get("itemMap"),u=!1;if(o.forEach(function(v){u||Ra(v,function(p){if(n.parentId===p.id){u=!0;var g=P({id:n.id,depth:p.depth+2},n);p.children?p.children.push(g):p.children=[g],n.depth=g.depth,i=a.addItem(r,n)}var y=s[p.id];return u&&y&&y.getType&&y.getType()==="combo"&&a.updateCombo(y,p.children),!0})}),!u){var f=P({id:n.id,depth:0},n);n.depth=f.depth,o.push(f),i=a.addItem(r,n)}this.set("comboTrees",o),n.collapsed&&(this.collapseCombo(i,!1),this.updateCombo(i))}else if(r==="node"&&Ye(n.comboId)&&o){var l=this.findById(n.comboId);l&&l.getType&&l.getType()!=="combo"&&console.warn("'".concat(n.comboId,"' is not a id of a combo in the graph, the node will be added without combo.")),i=a.addItem(r,n);var c=this.get("itemMap"),h=!1,d=!1;o.forEach(function(v){d||h||Ra(v,function(p){if(p.id===n.id)return d=!0,!1;if(n.comboId===p.id&&!d){h=!0;var g=rr(n);g.itemType="node",p.children?p.children.push(g):p.children=[g],g.depth=p.depth+1}return h&&c[p.id].getType&&c[p.id].getType()==="combo"&&a.updateCombo(c[p.id],p.children),!0})})}else i=a.addItem(r,n);if(r==="node"&&n.comboId||r==="combo"&&n.parentId){var l=this.findById(n.comboId||n.parentId);l&&l.getType&&l.getType()==="combo"&&l.addChild(i)}return i},e.prototype.addItem=function(r,n,a,i){a===void 0&&(a=!0),i===void 0&&(i=!0);var o=this.get("comboSorted");this.set("comboSorted",o&&!i);var s=this.get("itemController"),u=this.innerAddItem(r,n,s);if(u===!1||u===!0)return u;var f=this.get("combos");if(f&&f.length>0&&this.sortCombos(),this.autoPaint(),a&&this.get("enabledStack")){var l=P(P({},u.getModel()),{itemType:r}),c={};switch(r){case"node":c.nodes=[l];break;case"edge":c.edges=[l];break;case"combo":c.combos=[l];break}this.pushStack("add",{before:{},after:c})}return u},e.prototype.addItems=function(r,n,a){r===void 0&&(r=[]),n===void 0&&(n=!0),a===void 0&&(a=!0);var i=this.get("comboSorted");this.set("comboSorted",i&&!a);for(var o=this.get("itemController"),s=[],u=0;u0&&this.sortCombos()}if(this.autoPaint(),n&&this.get("enabledStack")){for(var c={nodes:[],edges:[],combos:[]},u=0;u=0;g--)v[g].destroyed&&v.splice(g,1);h&&(o.addCombos(h),this.get("groupByTypes")||this.sortCombos()),this.diffItems("edge",c,s.edges),_e(l,function(w,x){w.getType&&(w.getType()==="node"||w.getType()==="combo")||c.edges.indexOf(w)<0&&(delete l[x],o.remove(w,!1))}),(this.get("comboTrees")||[]).forEach(function(w){Ra(w,function(x){var E=a.findById(x.id);return E.getType()==="combo"&&x.collapsed&&a.collapseCombo(x.id,!1),!0})}),this.set({nodes:c.nodes,edges:c.edges});var y=(this.get("layout")||{}).relayoutAtChangeData,m=y===void 0?!0:y,b=this.get("layoutController");return m&&b&&(b.changeData(function(){setTimeout(function(){var w;(w=o.getCombos())===null||w===void 0||w.forEach(function(x){x.set("animate",!0)})},0)}),o.get("animate")&&!b.getLayoutType()?(o.positionsAnimate(),(i=o.getCombos())===null||i===void 0||i.forEach(function(w){return w.set("animate",!0)})):o.autoPaint()),setTimeout(function(){u.set("localRefresh",f)},16),this.set("data",s),this.emit("afterchangedata"),this},e.prototype.addCombos=function(r){var n=this,a=n.get("comboTrees"),i=this.get("itemController");i.addCombos(a,r)},e.prototype.createCombo=function(r,n,a){var i=this;a===void 0&&(a=!0);var o=this.get("itemController");this.set("comboSorted",!1);var s="",u;if(r){if(Ye(r))s=r,u={id:r};else{if(s=r.id,!s){console.warn("Create combo failed. Please assign a unique string id for the adding combo.");return}u=r}var f=a&&this.get("enabledStack"),l={nodes:[],combos:[]};f&&n.forEach(function(y){var m=i.findById(y),b=m.getType();if(!(b!=="node"&&b!=="combo")){var w=m.getModel();l["".concat(b,"s")].push({id:y,parentId:b==="node"?w.comboId:w.parentId})}});var c=this.get("comboTrees"),h=new Set(n),d=new Map;c&&(c.forEach(function(y){Ra(y,function(m,b,w){if(h.has(m.id)){if(b){var x=i.findById(b.id),E=i.findById(m.id);b.children.splice(w,1),x.removeChild(E),o.updateCombo(x,b.children)}m.itemType==="combo"&&d.set(m.id,m)}return!0})}),c=c.filter(function(y){return!h.has(y.id)}),this.set("comboTrees",c));var v={nodes:[],combos:[]},p=n.map(function(y){var m=i.findById(y),b=m.getModel(),w="";m.getType&&(w=m.getType());var x=d.get(y)||{id:m.getID(),itemType:w};return w==="combo"?(x.parentId=s,b.parentId=s):w==="node"&&(x.comboId=s,b.comboId=s),f&&v["".concat(w,"s")].push({id:b.id,parentId:s}),x});u.children=p,this.addItem("combo",u,!1),this.set("comboSorted",!1),c&&(c.forEach(function(y){bn(y,function(m){return m.id===s?(m.itemType="combo",m.children=p,!1):!0})}),this.sortCombos()),f&&(v.combos.push(u),this.pushStack("createCombo",{before:l,after:v}));var g=this.findById(s);!g.getModel().parentId&&g.getChildren().combos.length&&this.updateComboTree(g,void 0,!1),setTimeout(function(){g.set("animate",!0)},0)}},e.prototype.uncombo=function(r,n){var a=this,i,o;n===void 0&&(n=!0);var s=this,u=r;if(Ye(r)&&(u=this.findById(r)),!u||u.getType&&u.getType()!=="combo"){console.warn("The item is not a combo!");return}var f=u.getModel(),l=u.getModel().parentId,c=s.get("comboTrees");c||(c=[]);var h=this.get("itemMap"),d=u.get("id"),v,p=[],g=this.get("combos"),y=this.findById(l),m=n&&this.get("enabledStack"),b={};if(m&&(b=rr(f),b.children=[]),c.forEach(function(_){v||Ra(_,function(S){var A;if(S.id===d){v=S;var M=u.getEdges().map(function(k){return k.getID()});M.forEach(function(k){a.removeItem(k,!1)});var C=g.indexOf(u);g.splice(C,1),delete h[d];var I=rr(u.getModel());u.destroy(),a.emit("afterremoveitem",{item:I,type:"combo"})}if(l&&v&&S.id===l){y.removeCombo(u),p=S.children;var C=p.indexOf(v);return C!==-1&&p.splice(C,1),(A=v.children)===null||A===void 0||A.forEach(function(O){var B=a.findById(O.id),L=B.getModel();B.getType&&B.getType()==="combo"?(O.parentId=l,delete O.comboId,L.parentId=l,delete L.comboId):B.getType&&B.getType()==="node"&&(O.comboId=l,L.comboId=l),y.addChild(B),p.push(O)}),a.updateCombo(y),!1}return!0})}),!l&&v){var w=c.indexOf(v);c.splice(w,1),(i=v.children)===null||i===void 0||i.forEach(function(_){_.parentId=void 0;var S=a.findById(_.id).getModel();delete S.parentId,delete S.comboId,_.itemType!=="node"&&c.push(_)})}if(m){var x={nodes:[],combos:[]},E={nodes:[],combos:[]};(o=v.children)===null||o===void 0||o.forEach(function(_){var S=a.findById(_.id),A=S.getType();A!=="node"&&A!=="combo"||(x["".concat(A,"s")].push({id:_.id,parentId:d}),E["".concat(A,"s")].push({id:_.id,parentId:l}))}),x.combos.push(b),this.pushStack("uncombo",{before:x,after:E})}},e.prototype.updateCombos=function(r){var n=this;r===void 0&&(r=!1);var a=this,i=this.get("comboTrees"),o=a.get("itemController"),s=a.get("itemMap");(i||[]).forEach(function(u){Ra(u,function(f){var l;if(!f)return!0;var c=s[f.id];if(((l=c==null?void 0:c.getType)===null||l===void 0?void 0:l.call(c))==="combo"){var h=Xn([],c.getStates(),!0);_e(h,function(d){return n.setItemState(c,d,!1)}),o.updateCombo(c,f.children,r),_e(h,function(d){return n.setItemState(c,d,!0)})}return!0})}),a.sortCombos()},e.prototype.updateCombo=function(r){var n=this,a=this,i=r,o;if(Ye(r)&&(i=this.findById(r)),!i||i.getType&&i.getType()!=="combo"){console.warn("The item to be updated is not a combo!");return}o=i.get("id");var s=this.get("comboTrees"),u=a.get("itemController"),f=a.get("itemMap");(s||[]).forEach(function(l){Ra(l,function(c){if(!c)return!0;var h=f[c.id];if(o===c.id&&h&&h.getType&&h.getType()==="combo"){var d=Xn([],h.getStates(),!0);_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!1)}),u.updateCombo(h,c.children),_e(d,function(v){h.getStateStyle(v)&&n.setItemState(h,v,!0)}),o&&(o=c.parentId)}return!0})})},e.prototype.updateComboTree=function(r,n,a){a===void 0&&(a=!0);var i=this;this.set("comboSorted",!1);var o;Ye(r)?o=i.findById(r):o=r;var s=o.getModel(),u=s.comboId||s.parentId,f="";if(o.getType&&(f=o.getType()),n&&f==="combo"){var l=this.get("comboTrees"),c=!0,h;if((l||[]).forEach(function(m){h||bn(m,function(b){if(!h)return b.id===o.getID()&&(h=b),!0})}),bn(h,function(m){return m.id===n?(c=!1,!1):!0}),!c){console.warn("Failed to update the combo tree! The parentId points to a descendant of the combo!");return}}if(a&&this.get("enabledStack")){var d={},v={};f==="combo"?(d.combos=[{id:s.id,parentId:s.parentId}],v.combos=[{id:s.id,parentId:n}]):f==="node"&&(d.nodes=[{id:s.id,parentId:s.comboId}],v.nodes=[{id:s.id,parentId:n}]),this.pushStack("updateComboTree",{before:d,after:v})}if(s.parentId||s.comboId){var p=this.findById(s.parentId||s.comboId);p&&p.removeChild(o)}if(f==="combo"?s.parentId=n:f==="node"&&(s.comboId=n),n){var g=this.findById(n);g&&g.addChild(o)}if(u){var g=this.findById(u);g&&g.removeChild(o)}var y=I0(this.get("comboTrees"),s.id,n);this.set("comboTrees",y),this.updateCombos()},e.prototype.save=function(){var r=[],n=[],a=[];return _e(this.get("nodes"),function(i){r.push(i.getModel())}),_e(this.get("edges"),function(i){n.push(i.getModel())}),_e(this.get("combos"),function(i){a.push(i.getModel())}),{nodes:r,edges:n,combos:a}},e.prototype.changeSize=function(r,n){var a=this.get("viewController");return a.changeSize(r,n),this},e.prototype.refresh=function(){var r=this;if(r.emit("beforegraphrefresh"),r.get("animate"))r.positionsAnimate();else{var n=r.get("nodes"),a=r.get("edges"),i=r.get("edges");_e(n,function(o){o.refresh()}),_e(a,function(o){o.refresh()}),_e(i,function(o){o.refresh()})}r.emit("aftergraphrefresh"),r.autoPaint()},e.prototype.getNodes=function(){return this.get("nodes")},e.prototype.getEdges=function(){return this.get("edges")},e.prototype.getCombos=function(){return this.get("combos")},e.prototype.getComboChildren=function(r){if(Ye(r)&&(r=this.findById(r)),!r||r.getType&&r.getType()!=="combo"){console.warn("The combo does not exist!");return}return r.getChildren()},e.prototype.positionsAnimate=function(r){var n=this;n.emit("beforeanimate");var a=n.get("animateCfg"),i=a.onFrame,o=r?n.getNodes().concat(n.getCombos()):n.getNodes(),s=o.map(function(f){var l=f.getModel();return{id:l.id,x:l.x,y:l.y}});n.stopAnimate();var u=n.get("canvas");n.animating=!0,setTimeout(function(){u.animate(function(f){_e(s,function(l){var c=n.findById(l.id);if(!(!c||c.destroyed)){var h=c.get("originAttrs"),d=c.get("model"),v=c.getContainer().getMatrix();if(h==null&&(v&&(h={x:v[6],y:v[7]}),c.set("originAttrs",h||0)),i){var p=i(c,f,l,h||{x:0,y:0});c.set("model",Object.assign(d,p))}else h?(d.x=h.x+(l.x-h.x)*f,d.y=h.y+(l.y-h.y)*f):(d.x=l.x,d.y=l.y)}}),n.refreshPositions(r)},{duration:a.duration,easing:a.easing,callback:function(){_e(o,function(l){l.set("originAttrs",null)}),a.callback&&a.callback(),n.emit("afteranimate"),n.animating=!1}})},0)},e.prototype.refreshPositions=function(r){var n=this;n.emit("beforegraphrefreshposition");var a=n.get("nodes"),i=n.get("edges"),o=n.get("vedges"),s=n.get("combos"),u,f={},l=function(h){_e(h,function(d){u=d.getModel();var v=d.get("originAttrs");if(!(v&&u.x===v.x&&u.y===v.y)){var p=d.updatePosition({x:u.x,y:u.y});f[u.id]=p,u.comboId&&(f[u.comboId]=f[u.comboId]||p),u.parentId&&(f[u.parentId]=f[u.parentId]||p)}})};l(s),l(a),s&&s.length!==0&&(r&&l(s),n.updateCombos()),_e(i,function(c){var h=c.getSource().getModel(),d=c.getTarget();if(!ln(d)){var v=d.getModel();(f[h.id]||f[v.id]||c.getModel().isComboEdge)&&c.refresh()}}),_e(o,function(c){c.refresh()}),n.emit("aftergraphrefreshposition"),n.autoPaint()},e.prototype.stopAnimate=function(){var r=this.get("canvas"),n=r.cfg.timeline;n&&n.stopAllAnimations()},e.prototype.isAnimating=function(){return this.animating},e.prototype.getZoom=function(){var r=this.get("group").getMatrix();return r?r[0]:1},e.prototype.getCurrentMode=function(){var r=this.get("modeController");return r.getMode()},e.prototype.setMode=function(r){var n=this.get("modeController");return n.setMode(r),this},e.prototype.clear=function(r){var n;return r===void 0&&(r=!1),(n=this.get("canvas"))===null||n===void 0||n.clear(),this.initGroups(),this.set({itemMap:{},nodes:[],edges:[],vedges:[],groups:[],combos:[],comboTrees:[]}),r||this.emit("afterrender"),this},e.prototype.updateLayout=function(r,n,a,i){var o=this;r===void 0&&(r={}),i===void 0&&(i=!0);var s=this.get("layoutController");if(Ye(r)&&(r={type:r}),n){var u=a;u||(n==="begin"?u={x:0,y:0}:u={x:this.getWidth()/2,y:this.getHeight()/2}),u=this.getPointByCanvas(u.x,u.y);var f=["force","gForce","fruchterman","force2"];f.includes(r.type)||!r.type&&f.includes(s==null?void 0:s.layoutType)?r.center=[u.x,u.y]:this.once("afterlayout",function(h){var d=o.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];u.x=u.x*d[0]+d[6],u.y=u.y*d[0]+d[7];var v=o.getGroup().getCanvasBBox(),p=v.minX,g=v.maxX,y=v.minY,m=v.maxY,b={x:(p+g)/2,y:(y+m)/2};n==="begin"&&(b.x=p,b.y=y),o.translate(u.x-b.x,u.y-b.y)})}var l=P({},this.get("layout")),c={};Object.assign(c,l,r),r.pipes&&!r.type?delete c.type:!r.pipes&&c.type&&delete c.pipes,this.set("layout",c),s&&(s.isLayoutTypeSame(c)&&c.gpuEnabled===l.gpuEnabled?s.updateLayoutCfg(c):s.changeLayout(c),i&&this.get("enabledStack")&&this.pushStack("layout",{before:l,after:c}))},e.prototype.destroyLayout=function(){var r=this.get("layoutController");r==null||r.destroyLayout()},e.prototype.layout=function(){var r,n=this.get("layoutController"),a=this.get("layout");if(!(!a||!n)){if(a.workerEnabled){n.layout();return}!((r=n.layoutMethods)===null||r===void 0)&&r.length?n.relayout(!0):n.layout()}},e.prototype.collapseCombo=function(r,n){var a=this;if(n===void 0&&(n=!0),!this.destroyed){if(Ye(r)&&(r=this.findById(r)),!r){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"collapse",item:r});var i=r.getModel(),o=this.get("itemController");o.collapseCombo(r,n),i.collapsed=!0;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){var d=h.getModel(),v=d.isVEdge,p=d.size,g=p===void 0?1:p;if(!(h.isVisible()&&!v)){var y=h.getSource(),m=h.getTarget(),b=null,w;if(y.getModel().id===i.id||u.includes(y)&&!u.includes(m)?(b=m,w=!1):(m.getModel().id===i.id||!u.includes(y)&&u.includes(m))&&(b=y,w=!0),b){if(v){a.removeItem(h,!1);return}for(var x=b.getModel();!b.isVisible();){var E=x.parentId,_=x.comboId,S=E||_;if(b=a.findById(S),!b||!S)return;x=b.getModel()}var A=x.id,M=w?{source:A,target:i.id,size:g,isVEdge:!0}:{source:i.id,target:A,size:g,isVEdge:!0},C="".concat(M.source,"-").concat(M.target);if(c[C]){c[C].size+=g;return}c[C]=M}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"collapse",item:r})}},e.prototype.expandCombo=function(r,n){var a=this;if(n===void 0&&(n=!0),Ye(r)&&(r=this.findById(r)),!r||r.getType&&r.getType()!=="combo"){console.warn("The combo to be collapsed does not exist!");return}this.emit("beforecollapseexpandcombo",{action:"expand",item:r});var i=r.getModel(),o=this.get("itemController");o.expandCombo(r,n),i.collapsed=!1;var s=this.getEdges().concat(this.get("vedges")),u=[],f=this.get("comboTrees"),l=!1;(f||[]).forEach(function(h){l||bn(h,function(d){if(l&&d.depth<=i.depth)return!1;if(i.id===d.id&&(l=!0),l){var v=a.findById(d.id);v&&v.getType&&v.getType()==="combo"&&(u=u.concat(v.getNodes()),u=u.concat(v.getCombos()))}return!0})});var c={};s.forEach(function(h){if(!(h.isVisible()&&!h.getModel().isVEdge)){var d=h.getSource(),v=h.getTarget(),p=d.get("id"),g=v.get("id"),y=null,m;if(p===i.id||u.includes(d)&&!u.includes(v)?(y=v,m=!1):g===i.id||!u.includes(d)&&u.includes(v)?(y=d,m=!0):u.includes(d)&&u.includes(v)&&d.isVisible()&&v.isVisible()&&h.show(),y){var b=h.getModel(),w=b.isVEdge,x=b.size,E=x===void 0?1:x;if(w){a.removeItem(h,!1);return}for(var _=y.getModel();!y.isVisible();){var S=_.parentId,A=_.comboId,M=S||A;if(y=a.findById(M),!y||!M)return;_=y.getModel()}for(var C=_.id,I=m?v:d,k=I.getModel();!I.isVisible();){var O=k.parentId,B=k.comboId,L=O||B;if(I=a.findById(L),!I||!L)return;if(k.comboId===i.id||k.parentId===i.id)break;k=I.getModel()}var z=k.id;if(C){var X=m?{source:C,target:z,isVEdge:!0,size:E}:{source:z,target:C,isVEdge:!0,size:E},R="".concat(X.source,"-").concat(X.target);if(c[R]){c[R].size+=E;return}c[R]=X}}}}),this.addItems(Object.values(c).map(function(h){return{type:"vedge",model:h}}),!1),this.emit("aftercollapseexpandcombo",{action:"expand",item:r})},e.prototype.collapseExpandCombo=function(r,n){if(n===void 0&&(n=!0),Ye(r)&&(r=this.findById(r)),!(!r||r.getType&&r.getType()!=="combo")){for(var a=r.getModel(),i=this.findById(a.parentId);i;){var o=i.getModel();if(o.collapsed){console.warn("Fail to expand the combo since it's ancestor combo is collapsed."),i=void 0;return}i=this.findById(o.parentId)}var s=a.collapsed;s?this.expandCombo(r,n):this.collapseCombo(r,n),this.updateCombo(r)}},e.prototype.getNeighbors=function(r,n){var a=r;return Ye(r)&&(a=this.findById(r)),a.getNeighbors(n)},e.prototype.getNodeDegree=function(r,n,a){n===void 0&&(n=void 0),a===void 0&&(a=!1);var i=r;Ye(r)&&(i=this.findById(r));var o=this.get("degrees");(!o||a)&&(o=yi(this.save()),this.set("degrees",o));var s=o[i.getID()],u=0;if(!s)return 0;switch(n){case"in":u=s.inDegree;break;case"out":u=s.outDegree;break;case"all":u=s;break;default:u=s.degree;break}return u},e.prototype.getUndoStack=function(){return this.undoStack},e.prototype.getRedoStack=function(){return this.redoStack},e.prototype.getStackData=function(){return this.get("enabledStack")?{undoStack:this.undoStack.toArray(),redoStack:this.redoStack.toArray()}:null},e.prototype.clearStack=function(){this.get("enabledStack")&&(this.undoStack.clear(),this.redoStack.clear(),this.emit("stackchange",{undoStack:this.undoStack,redoStack:this.redoStack}))},e.prototype.pushStack=function(r,n,a){if(r===void 0&&(r="update"),a===void 0&&(a="undo"),!this.get("enabledStack")){console.warn("请先启用 undo & redo 功能,在实例化 Graph 时候配置 enabledStack: true !");return}var i=n?rr(n):{before:{},after:rr(this.save())};a==="redo"?this.redoStack.push({action:r,data:i}):this.undoStack.push({action:r,data:i}),this.emit("stackchange",{action:r,stackType:a,undoStack:this.undoStack,redoStack:this.redoStack})},e.prototype.getAdjMatrix=function(r,n){r===void 0&&(r=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix");return(!a||!r)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),a},e.prototype.getShortestPathMatrix=function(r,n){r===void 0&&(r=!0),n===void 0&&(n=this.get("directed"));var a=this.get("adjMatrix"),i=this.get("shortestPathMatrix");return(!a||!r)&&(a=Uo(this.save(),n),this.set("adjMatrix",a)),(!i||!r)&&(i=Of(this.save(),n),this.set("shortestPathMatrix",i)),i},e.prototype.on=function(r,n,a){return t.prototype.on.call(this,r,n,a)},e.prototype.destroy=function(){var r,n,a,i,o;this.emit("beforedestroy"),this.clear(),this.clearStack(),(r=this.get("itemController"))===null||r===void 0||r.destroy(),(n=this.get("modeController"))===null||n===void 0||n.destroy(),(a=this.get("viewController"))===null||a===void 0||a.destroy(),(i=this.get("stateController"))===null||i===void 0||i.destroy(),(o=this.get("canvas"))===null||o===void 0||o.destroy(),this.cfg=null,this.destroyed=!0,this.redoStack=null,this.undoStack=null,this.emit("afterdestroy")},e.prototype.createHull=function(r){if(!r.members||r.members.length<1){console.warn("Create hull failed! The members is empty.");return}var n=this.get("hullGroup"),a=this.get("hullMap");if(a||(a={},this.set("hullMap",a)),(!n||n.get("destroyed"))&&(n=this.get("group").addGroup({id:"hullGroup"}),n.toBack(),this.set("hullGroup",n)),a[r.id])return console.warn("Existed hull id."),a[r.id];var i=n.addGroup({id:"".concat(r.id,"-container")}),o=new x8(this,P(P({},r),{group:i})),s=o.id;return a[s]=o,o},e.prototype.getHulls=function(){return this.get("hullMap")},e.prototype.getHullById=function(r){return this.get("hullMap")[r]},e.prototype.removeHull=function(r){var n,a;Ye(r)?a=this.getHullById(r):a=r,(n=this.get("hullMap"))===null||n===void 0||delete n[a.id],a.destroy()},e.prototype.removeHulls=function(){var r=this.getHulls();!r||!Object.keys(r).length||(Object.keys(r).forEach(function(n){var a=r[n];a.destroy()}),this.set("hullMap",{}))},e}(KS);function J0(t){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J0(t)}var ws=eo,Rx="-shape",Ep="-label",bc=["startArrow","endArrow"],Fx={lineWidth:1,stroke:void 0,fill:void 0,lineAppendWidth:1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,x:0,y:0,r:10,width:20,height:20,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},S8={lineWidth:1,stroke:"#000",lineDash:void 0,startArrow:!1,endArrow:!1,opacity:void 0,strokeOpacity:void 0,fillOpacity:void 0,shadowColor:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0},wc={edge:S8,node:Fx,combo:Fx},eg="-label-bg",Uy={options:{labelCfg:{style:{fontFamily:ft.windowFontFamily}},descriptionCfg:{style:{fontFamily:ft.windowFontFamily}}},itemType:"",type:"",getCustomConfig:function(e){return{}},getOptions:function(e,r){return r==="move"||r!=null&&r.includes("bbox")?e:_r({},this.options,this.getCustomConfig(e)||{},e)},draw:function(e,r){r.shapeMap={},this.mergeStyle=this.getOptions(e);var n=this.drawShape(e,r);if(n.set("className",this.itemType+Rx),r.shapeMap[this.itemType+Rx]=n,e.label){var a=this.drawLabel(e,r);a.set("className",this.itemType+Ep),r.shapeMap[this.itemType+Ep]=a}return n},afterDraw:function(e,r,n){},drawShape:function(e,r){return null},drawLabel:function(e,r){var n=(this.mergeStyle||this.getOptions(e)||{}).labelCfg,a=n||{},i=this.getLabelStyle(e,a,r),o=i.rotate;delete i.rotate;var s=r.addShape("text",{attrs:i,draggable:!0,className:"text-shape",name:"text-shape",labelRelated:!0});if(r.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""){var u=s.getBBox(),f=[1,0,0,0,1,0,0,0,1];if(i.rotateCenter)switch(i.rotateCenter){case"center":f=ws(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break;case"lefttop":f=ws(f,[["t",-i.x,-i.y],["r",o],["t",i.x,i.y]]);break;case"leftcenter":f=ws(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);break;default:f=ws(f,[["t",-u.width/2,-u.height/2],["r",o],["t",u.width/2,u.height/2]]);break}else f=ws(f,[["t",-i.x,-i.y-u.height/2],["r",o],["t",i.x,i.y+u.height/2]]);s.setMatrix(f)}if(i.background){var l=this.drawLabelBg(e,r,s),c=this.itemType+eg;l.set("classname",c),r.shapeMap[c]=l,s.toFront()}return s},drawLabelBg:function(e,r,n){var a=this.options.labelCfg,i=Et({},a,e.labelCfg),o=this.getLabelBgStyleByPosition(n,i),s=r.addShape("rect",{name:"text-bg-shape",attrs:o,labelRelated:!0});return r.shapeMap["text-bg-shape"]=s,s},getLabelStyleByPosition:function(e,r,n){return{text:e.label}},getLabelBgStyleByPosition:function(e,r){return{}},getLabelStyle:function(e,r,n){var a=this.getLabelStyleByPosition(e,r,n),i="".concat(this.itemType,"Label"),o=ft[i]?ft[i].style:null;return P(P(P({},o),a),r.style)},getShapeStyle:function(e){return e.style},update:function(e,r,n){this.updateShapeStyle(e,r,n),this.updateLabel(e,r,n)},updateShapeStyle:function(e,r,n){var a,i=r.getContainer(),o=r.getKeyShape(),s=Et({},o.attr(),e.style),u=function(c){var h,d=s[c];if(ln(d)){var v=((a=i.shapeMap)===null||a===void 0?void 0:a[c])||i.find(function(p){return p.get("name")===c});v==null||v.attr(d)}else o.attr((h={},h[c]=d,h))};for(var f in s)u(f)},updateLabel:function(e,r,n){var a,i,o=r.getContainer(),s=(this.mergeStyle||this.getOptions({},n)||{}).labelCfg,u=s===void 0?{}:s,f=this.itemType+Ep,l=o.shapeMap[f]||o.find(function(w){return w.get("className")===f}),c=this.itemType+eg,h=o.shapeMap[c]||o.find(function(w){return w.get("className")===c});if(l&&e.label===void 0&&(o.removeChild(l),delete o.shapeMap[f],h&&(o.removeChild(h),delete o.shapeMap[c])),e.label||e.label==="")if(l){(!n||n==="bbox|label"||this.itemType==="edge"&&n!=="style")&&(u=_r(u,e.labelCfg));var v=this.getLabelStyleByPosition(e,u,o),p=(a=e.labelCfg)===null||a===void 0?void 0:a.style,g=P(P({},v),p),y=g.rotate;if(delete g.rotate,!isNaN(y)&&y!==""){var m=[1,0,0,0,1,0,0,0,1];m=ws(m,[["t",-g.x,-g.y],["r",y],["t",g.x,g.y]]),g.matrix=m,l.attr(g)}else((i=l.getMatrix())===null||i===void 0?void 0:i[4])!==1&&l.resetMatrix(),l.attr(g);if(!h)g.background&&(h=this.drawLabelBg(e,o,l),h.set("classname",c),o.shapeMap[c]=h,l.toFront());else if(g.background){var b=this.getLabelBgStyleByPosition(l,u);h.attr(b)}else o.removeChild(h)}else{var d=this.drawLabel(e,o);d.set("className",f),o.shapeMap[f]=d}},afterUpdate:function(e,r){},setState:function(e,r,n){var a,i,o,s=n.get("keyShape");if(!(!s||s.destroyed)){var u=n.getType(),f=Qf(r)?e:"".concat(e,":").concat(r),l=this.getStateStyle(f,n),c=n.getStateStyle(f);if(!(!c&&!l)){var h=Et({},c||l),d=n.getContainer(),v={x:1,y:1,cx:1,cy:1,matrix:1};if(u==="combo"&&(v.r=1,v.width=1,v.height=1),r){var p=function(L){var z,X=h[L];if(ln(X)&&!bc.includes(L)){var R=((o=d.shapeMap)===null||o===void 0?void 0:o[L])||d.find(function(V){return V.get("name")===L});R==null||R.attr(X)}else s.attr((z={},z[L]=X,z))};for(var g in h)p(g)}else{var y=sh(n.getCurrentStatesStyle()),m=n.getModel(),b=Et({},m.style,sh(n.getOriginStyle())),w=s.get("name"),x=s.attr(),E={};Object.keys(x).forEach(function(B){if(B!=="img"){var L=x[B];L&&J0(L)==="object"?E[B]=rr(L):E[B]=L}});var _={},S=function(L){var z=h[L];if(ln(z)&&!bc.includes(L)){var X=d.shapeMap[L]||d.find(function(he){return he.get("name")===L});if(X){var R=sh(X.attr());_e(z,function(he,ce){if(L===w&&E[ce]&&!v[ce]){delete E[ce];var le=b[L][ce]||wc[u][ce];s.attr(ce,le)}else if(R[ce]||R[ce]===0){delete R[ce];var ie=b[L][ce]||wc[u][ce];X.attr(ce,ie)}}),_[L]=R}}else if(E[L]&&!v[L]){delete E[L];var V=b[L]||(b[w]?b[w][L]:void 0)||wc[u][L];s.attr(L,V)}};for(var A in h)S(A);w?_[w]=E:Et(_,E);for(var g in y)if(!v[g]){var M=y[g];(!ln(M)||bc.includes(g))&&(w?(Et(b[w],(i={},i[g]=M,i)),delete b[g]):Et(b,(a={},a[g]=M,a)),delete y[g])}var C={};_r(C,b,_,y);var I=!1,k=function(L){var z,X,R=C[L];if(ln(R)&&!bc.includes(L)){var V=d.shapeMap[L]||d.find(function(ce){return ce.get("name")===L});V&&((V.get("type")==="text"||V.get("labelRelated"))&&(delete R.x,delete R.y,delete R.matrix),L===w&&(u==="combo"&&(delete R.r,delete R.width,delete R.height),I=!0),V.attr(R))}else if(!I){var he=R||wc[u][L];u==="combo"?w||s.attr((z={},z[L]=he,z)):s.attr((X={},X[L]=he,X))}};for(var O in C)k(O)}}}},getStateStyle:function(e,r){var n=r.getModel(),a=r.getType(),i=this.getOptions(n),o=i.stateStyles,s=i.style,u=s===void 0?{}:s,f=n.stateStyles?n.stateStyles[e]:o&&o[e];return a==="combo"?rr(f):Et({},u,f)},getControlPoints:function(e){return e.controlPoints},getAnchorPoints:function(e){var r,n,a=(e==null?void 0:e.anchorPoints)||((r=this.getCustomConfig(e))===null||r===void 0?void 0:r.anchorPoints)||((n=this.options)===null||n===void 0?void 0:n.anchorPoints);return a}},M8={itemType:"node",shapeType:"single-node",labelPosition:"center",offset:ft.nodeLabel.offset,getSize:function(e){var r,n=((r=this.mergeStyle)===null||r===void 0?void 0:r.size)||e.size||this.getOptions({}).size||ft.defaultNode.size;return bt(n)&&n.length===1&&(n=[n[0],n[0]]),bt(n)||(n=[n,n]),n},getLabelStyleByPosition:function(e,r){var n=r.maxLength,a=e.label;n&&(a=YA(a,n));var i=r.position||this.labelPosition;if(i==="center")return{x:0,y:0,text:a,textBaseline:"middle",textAlign:"center"};var o=r.offset;Zt(o)&&(o=this.offset);var s=this.getSize(e),u;switch(i){case"top":u={x:0,y:-s[1]/2-o,textBaseline:"bottom",textAlign:"center"};break;case"bottom":u={x:0,y:s[1]/2+o,textBaseline:"top",textAlign:"center"};break;case"left":u={x:-s[0]/2-o,y:0,textBaseline:"middle",textAlign:"right"};break;default:u={x:s[0]/2+o,y:0,textBaseline:"middle",textAlign:"left"};break}return u.text=a,u},getLabelBgStyleByPosition:function(e,r){var n;if(!e)return{};var a=(n=r.style)===null||n===void 0?void 0:n.background;if(!a)return{};var i=e.getBBox(),o=jy(a.padding),s=i.width+o[1]+o[3],u=i.height+o[0]+o[2];return P(P({x:i.minX-o[3],y:i.minY-o[0]},a),{width:s,height:u})},drawShape:function(e,r){var n=this.shapeType,a=this.getShapeStyle(e),i=r.addShape(n,{attrs:a,draggable:!0,name:"node-shape"});return r.shapeMap["node-shape"]=i,i},updateLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=r.shapeMap["link-point-left"]||r.find(function(C){return C.get("className")==="link-point-left"}),i=r.shapeMap["link-point-right"]||r.find(function(C){return C.get("className")==="link-point-right"}),o=r.shapeMap["link-point-top"]||r.find(function(C){return C.get("className")==="link-point-top"}),s=r.shapeMap["link-point-bottom"]||r.find(function(C){return C.get("className")==="link-point-bottom"}),u;a&&(u=a.attr()),i&&!u&&(u=i.attr()),o&&!u&&(u=o.attr()),s&&!u&&(u=s.attr()),u||(u=n);var f=Et({},u,e.linkPoints),l=f.fill,c=f.stroke,h=f.lineWidth,d=f.size/2;d||(d=f.r);var v=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},p=v.left,g=v.right,y=v.top,m=v.bottom,b=this.getSize(e),w=b[0],x=b[1],E={r:d,fill:l,stroke:c,lineWidth:h};if(a)!p&&p!==void 0?(a.remove(),delete r.shapeMap["link-point-left"]):a.attr(P(P({},E),{x:-w/2,y:0}));else if(p){var _="link-point-left";r.shapeMap[_]=r.addShape("circle",{attrs:P(P({},E),{x:-w/2,y:0}),className:_,name:_,isAnchorPoint:!0})}if(i)!g&&g!==void 0&&(i.remove(),delete r.shapeMap["link-point-right"]),i.attr(P(P({},E),{x:w/2,y:0}));else if(g){var S="link-point-right";r.shapeMap[S]=r.addShape("circle",{attrs:P(P({},E),{x:w/2,y:0}),className:S,name:S,isAnchorPoint:!0})}if(o)!y&&y!==void 0&&(o.remove(),delete r.shapeMap["link-point-top"]),o.attr(P(P({},E),{x:0,y:-x/2}));else if(y){var A="link-point-top";r.shapeMap[A]=r.addShape("circle",{attrs:P(P({},E),{x:0,y:-x/2}),className:A,name:A,isAnchorPoint:!0})}if(s)!m&&m!==void 0?(s.remove(),delete r.shapeMap["link-point-bottom"]):s.attr(P(P({},E),{x:0,y:x/2}));else if(m){var M="link-point-bottom";r.shapeMap[M]=r.addShape("circle",{attrs:P(P({},E),{x:0,y:x/2}),className:M,name:M,isAnchorPoint:!0})}},updateShape:function(e,r,n,a,i){var o=r.get("keyShape");o.attr(P({},n)),this.updateLabel(e,r,i),a&&this.updateIcon(e,r)},updateIcon:function(e,r){var n=this,a=r.getContainer(),i=(this.mergeStyle||this.getOptions(e)).icon,o=e.icon?e.icon:{show:void 0,text:void 0},s=o.show,u=o.text,f=a.shapeMap["".concat(this.type,"-icon")]||a.find(function(y){return y.get("name")==="".concat(n.type,"-icon")});if(f)if(s||s===void 0){var l=Et({},f.attr(),i),c=l.width,h=c===void 0?20:c,d=l.height,v=d===void 0?20:d;(l.fontFamily==="iconfont"||l.hasOwnProperty("text"))&&(h=0,v=0),f.attr(P(P({},l),{x:-h/2,y:-v/2}))}else f.remove(),delete a.shapeMap["".concat(this.type,"-icon")];else if(s){var p="".concat(this.type,"-icon");if(u)a.shapeMap[p]=a.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:p,name:p});else{var h=i.width,v=i.height;a.shapeMap[p]=a.addShape("image",{attrs:P(P({},i),{x:-h/2,y:-v/2}),className:p,name:p})}var g=a.shapeMap["node-label"]||a.find(function(y){return y.get("name")==="node-label"});g&&g.toFront()}}},A8=P(P({},Uy),M8);mr.registerNode("single-node",A8);var xc="edge-shape";function C8(t){var e=t;return t==="start"?e="end":t==="end"&&(e="start"),e}var T8={itemType:"edge",labelPosition:"center",refX:0,refY:0,labelAutoRotate:!1,options:{size:ft.defaultEdge.size,style:{x:0,y:0,stroke:ft.defaultEdge.style.stroke,lineAppendWidth:ft.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:ft.edgeLabel.style.fill,fontSize:ft.edgeLabel.style.fontSize,fontFamily:ft.windowFontFamily}},stateStyles:P({},ft.edgeStateStyles)},getPath:function(e){var r=[];return _e(e,function(n,a){a===0?r.push(["M",n.x,n.y]):r.push(["L",n.x,n.y])}),r},getShapeStyle:function(e){var r=this.options.style,n={stroke:e.color},a=Et({},r,n,e.style),i=e.size||ft.defaultEdge.size;e=this.getPathPoints(e);var o=e.startPoint,s=e.endPoint,u=this.getControlPoints(e),f=[o];u&&(f=f.concat(u)),f.push(s);var l=this.getPath(f),c=Et({},ft.defaultEdge.style,{stroke:ft.defaultEdge.color,lineWidth:i,path:l},a);return c},updateShapeStyle:function(e,r,n){var a,i=r.getContainer(),o=((a=r.getKeyShape)===null||a===void 0?void 0:a.call(r))||i.shapeMap["edge-shape"],s=e.size;e=this.getPathPoints(e);var u=e.startPoint,f=e.endPoint,l=this.getControlPoints(e),c=[u];l&&(c=c.concat(l)),c.push(f);var h=o.attr(),d=e.style||{};d.stroke===void 0&&(d.stroke=e.color);var v=e.sourceNode,p=e.targetNode,g={radius:d.radius};l||(g={source:v,target:p,offset:d.offset,radius:d.radius});var y=this.getPath(c,g),m={};n==="move"?m={path:y}:(h.endArrow&&d.endArrow===!1&&(e.style.endArrow={path:""}),h.startArrow&&d.startArrow===!1&&(e.style.startArrow={path:""}),m=P({},e.style),m.lineWidth===void 0&&(m.lineWidth=(Ot(s)?s:s==null?void 0:s[0])||h.lineWidth),m.path===void 0&&(m.path=y),m.stroke===void 0&&(m.stroke=h.stroke||e.color)),o&&o.attr(m)},getLabelStyleByPosition:function(e,r,n){var a=r.position||this.labelPosition,i={},o=n==null?void 0:n.shapeMap[xc],s;a==="start"?s=0:a==="end"?s=1:s=.5;var u=r.refX||this.refX,f=r.refY||this.refY;if(e.startPoint.x===e.endPoint.x&&e.startPoint.y===e.endPoint.y)return i.x=e.startPoint.x+u,i.y=e.startPoint.y+f,i.text=e.label,i;var l;Zt(r.autoRotate)?l=this.labelAutoRotate:l=r.autoRotate;var c=XA(o,s,u,f,l);return i.x=c.x,i.y=c.y,i.rotate=c.rotate,i.textAlign=this._getTextAlign(a,c.angle),i.text=e.label,i},getLabelBgStyleByPosition:function(e,r){if(!e)return{};var n=e.getBBox(),a=r.style&&r.style.background;if(!a)return{};var i=a.padding,o=n.width+i[1]+i[3],s=n.height+i[0]+i[2],u=P(P({},a),{width:o,height:s,x:n.minX-i[3],y:n.minY-i[0],matrix:[1,0,0,0,1,0,0,0,1]}),f;return Zt(r.autoRotate)?f=this.labelAutoRotate:f=r.autoRotate,f&&(u.matrix=e.attr("matrix")||[1,0,0,0,1,0,0,0,1]),u},_getTextAlign:function(e,r){var n="center";return r?(r=r%(Math.PI*2),e!=="center"&&(r>=0&&r<=Math.PI/2||r>=3/2*Math.PI&&r<2*Math.PI?n=e:n=C8(e)),n):e},getControlPoints:function(e){return e.controlPoints},getPathPoints:function(e){return e},drawShape:function(e,r){var n=this.getShapeStyle(e),a=r.addShape("path",{className:xc,name:xc,attrs:n});return r.shapeMap[xc]=a,a},drawLabel:function(e,r){var n=this.options.labelCfg,a=_r({},n,e.labelCfg),i=this.getLabelStyle(e,a,r),o=i.rotate;delete i.rotate;var s=r.addShape("text",{attrs:i,name:"text-shape",labelRelated:!0,draggable:!0});if(r.shapeMap["text-shape"]=s,!isNaN(o)&&o!==""&&s.rotateAtStart(o),i.background){var u=this.drawLabelBg(e,r,s,i,o),f=this.itemType+eg;u.set("classname",f),r.shapeMap[f]=u,s.toFront()}return s},drawLabelBg:function(e,r,n,a,i){var o=this.options.labelCfg,s=_r({},o,e.labelCfg),u=this.getLabelBgStyleByPosition(n,s),f=r.addShape("rect",{name:"text-bg-shape",attrs:u,labelRelated:!0});return r.shapeMap["text-bg-shape"]=f,f}},I8=P(P({},Uy),T8);mr.registerEdge("single-edge",I8);mr.registerEdge("line",{getControlPoints:function(){}},"single-edge");mr.registerEdge("spline",{getPath:function(e){var r=qC(e);return r}},"single-edge");mr.registerEdge("arc",{curveOffset:20,clockwise:1,getControlPoints:function(e){var r=e.startPoint,n=e.endPoint,a={x:(r.x+n.x)/2,y:(r.y+n.y)/2},i,o;if(e.controlPoints!==void 0){if(o=e.controlPoints[0],i=E0(r,o,n),r.x<=n.x&&r.y>n.y?this.clockwise=i.x>o.x?0:1:r.x<=n.x&&r.yo.x?1:0:r.x>n.x&&r.y<=n.y?this.clockwise=i.y0&&d(x[0])}},y=0;y0;)h.push(u.pop());o.push(h)}}return o};Zi.detectConnectedComponents=eT;var tT=function(e){for(var r=e.nodes,n=r===void 0?[]:r,a=e.edges,i=a===void 0?[]:a,o=[],s={},u={},f={},l=[],c=0,h=function g(y){u[y.id]=c,f[y.id]=c,c+=1,o.push(y),s[y.id]=!0;for(var m=(0,JC.getNeighbors)(y.id,i,"target").filter(function(_){return n.map(function(S){return S.id}).indexOf(_)>-1}),b=function(S){var A=m[S];if(!u[A]&&u[A]!==0){var M=n.filter(function(C){return C.id===A});M.length>0&&g(M[0]),f[y.id]=Math.min(f[y.id],f[A])}else s[A]&&(f[y.id]=Math.min(f[y.id],u[A]))},w=0;w0;){var E=o.pop();if(s[E.id]=!1,x.push(E),E===y)break}x.length>0&&l.push(x)}},d=0,v=n;d0;)for(var g=d.pop(),y=g.id,m=(0,aT.getNeighbors)(y,e.edges),b=function(E){var _,S=m[E],A=e.nodes.find(function(B){return B.id===S});if(S===y)o.push((_={},_[S]=g,_));else if(!(S in p))v[S]=g,d.push(A),p[S]=new Set([g]);else if(!p[y].has(A)){for(var M=!0,C=[A,g],I=v[y];p[S].size&&!p[S].has(I)&&(C.push(I),I!==v[I.id]);)I=v[I.id];if(C.push(I),r&&n?(M=!1,C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!0)):r&&!n&&C.findIndex(function(B){return r.indexOf(B.id)>-1})>-1&&(M=!1),M){for(var k={},O=1;O0;){var O=k.pop();i.has(O)&&(i.delete(O),o[O.id].forEach(function(B){k.push(B)}),o[O.id].clear())}},c=function C(I,k,O){var B=!1;if(r&&n===!1&&r.indexOf(I.id)>-1)return B;a.push(I),i.add(I);for(var L=O[I.id],z=0;z-1});le-1)?s.push((k={},k[ce.id]=ce,k)):he[ce.id].push(f[Ie])}}return{component:V,adjList:he,minIdx:B}},b=0;b=b}),x=(0,nT.detectStrongConnectComponents)({nodes:w,edges:e.edges}).filter(function(C){return C.length>1});if(x.length===0)break;var E=m(x),_=E.minIdx,S=E.adjList,A=E.component;if(A.length>1){A.forEach(function(C){o[C.id]=new Set});var M=u[_];if(r&&n&&r.indexOf(M.id)===-1)return s;c(M,M,S),b=_+1}else break}return s};za.detectAllDirectedCycle=sT;var mU=function(e,r,n,a){return a===void 0&&(a=!0),r?sT(e,n,a):oT(e,n,a)};za.detectAllCycles=mU;var bU=yU;za.default=bU;var gu={};const uT=Ka(jP),el=Ka(u3);Object.defineProperty(gu,"__esModule",{value:!0});gu.default=void 0;var Bx=uT,wU=el,Gx=Wr,xU=function(e,r,n){for(var a=1/0,i,o=0;ol[w.id]+C?(l[M]=l[w.id]+C,c[M]=[w.id]):l[M]===l[w.id]+C&&c[M].push(w.id)})},v=0;v0&&l.length>0;){var d=l[l.length-1];if(d.length){var v=d.shift();v&&(u.push(v),f[v]=!0,h=a?(0,Ec.getNeighbors)(v,s,"target"):(0,Ec.getNeighbors)(v,s),l.push(h.filter(function(y){return!f[y]})))}else{var p=u.pop();f[p]=!1,l.pop();continue}if(u[u.length-1]===n){var g=u.map(function(m){return m});c.push(g);var p=u.pop();f[p]=!1,l.pop()}}return c};eu.findAllPath=CU;var tl={};Object.defineProperty(tl,"__esModule",{value:!0});tl.default=void 0;var TU=IU(Ko);function IU(t){return t&&t.__esModule?t:{default:t}}var kU=function(e,r){for(var n=(0,TU.default)(e,r),a=[],i=n.length,o=0;oa[o][u]+a[u][s]&&(a[o][s]=a[o][u]+a[u][s]);return a},NU=kU;tl.default=NU;var Id={};Object.defineProperty(Id,"__esModule",{value:!0});Id.default=void 0;var OU=DU(Ko),LU=Wr;function DU(t){return t&&t.__esModule?t:{default:t}}var PU=function(e,r,n,a){r===void 0&&(r=!1),n===void 0&&(n="weight"),a===void 0&&(a=1e3);var i=e.nodes,o=i===void 0?[]:i,s=e.edges,u=s===void 0?[]:s,f={},l={};o.forEach(function(b,w){var x=(0,LU.uniqueId)();b.clusterId=x,f[x]={id:x,nodes:[b]},l[b.id]={node:b,idx:w}});var c=(0,OU.default)(e,r),h={};c.forEach(function(b,w){var x=o[w].id;h[x]={},b.forEach(function(E,_){if(E){var S=o[_].id;h[x][S]=E}})});for(var d=0,v=function(){var w=!1;if(o.forEach(function(x){var E={};Object.keys(h[x.id]).forEach(function(O){var B=h[x.id][O],L=l[O].node,z=L.clusterId;E[z]||(E[z]=0),E[z]+=B});var _=-1/0,S=[];if(Object.keys(E).forEach(function(O){_=0&&S.splice(A,1),S&&S.length){w=!0;var M=f[x.clusterId],C=M.nodes.indexOf(x);M.nodes.splice(C,1);var I=Math.floor(Math.random()*S.length),k=f[S[I]];k.nodes.push(x),x.clusterId=k.id}}}),!w)return"break";d++};d0&&S>A&&S-AA&&(C=c.map(function(R){return{node:R,clusterId:R.clusterId}}),I=(0,VU.clone)(m),A=S),k||M>100)break;M++,Object.keys(m).forEach(function(R){var V=0;d.forEach(function(he){var ce=he.source,le=he.target,ie=b[ce].node.clusterId,Ie=b[le].node.clusterId;(ie===R&&Ie!==R||Ie===R&&ie!==R)&&(V=V+(he[n]||1))}),m[R].sumTot=V}),c.forEach(function(R,V){var he=m[R.clusterId],ce=0,le,ie=x[V]/(2*_),Ie=0,qe=he.nodes;qe.forEach(function(Wt){var vr=b[Wt.id].idx;Ie+=w[V][vr]||0});var Ve=Ie-he.sumTot*ie,it=qe.filter(function(Wt){return Wt.id!==R.id});it.forEach(function(Wt,vr){v[Wt.originIndex]});var dt=_p(it,v)*f,st=E[R.id];if(Object.keys(st).forEach(function(Wt){var vr=b[Wt].node,cr=vr.clusterId;if(cr!==R.clusterId){var $t=m[cr],sr=$t.nodes;if(!(!sr||!sr.length)){var tn=0;sr.forEach(function(Fe){var ge=b[Fe.id].idx;tn+=w[V][ge]||0});var tt=tn-$t.sumTot*ie,te=sr.concat([R]);te.forEach(function(Fe,ge){v[Fe.originIndex]});var N=_p(te,v)*f,Se=tt-Ve;i&&(Se=tt+N-(Ve+dt)),Se>ce&&(ce=Se,le=$t)}}}),ce>0){le.nodes.push(R);var Tt=R.clusterId;R.clusterId=le.id;var _t=he.nodes.indexOf(R);he.nodes.splice(_t,1);var lr=0,Bt=0;d.forEach(function(Wt){var vr=Wt.source,cr=Wt.target,$t=b[vr].node.clusterId,sr=b[cr].node.clusterId;($t===le.id&&sr!==le.id||sr===le.id&&$t!==le.id)&&(lr=lr+(Wt[n]||1)),($t===Tt&&sr!==Tt||sr===Tt&&$t!==Tt)&&(Bt=Bt+(Wt[n]||1))}),le.sumTot=lr,he.sumTot=Bt}})}var O={},B=0;Object.keys(I).forEach(function(R){var V=I[R];if(!V.nodes||!V.nodes.length){delete I[R];return}var he=String(B+1);he!==R&&(V.id=he,V.nodes=V.nodes.map(function(ce){return{id:ce.id,clusterId:he}}),I[he]=V,O[R]=he,delete I[R],B++)}),C.forEach(function(R){var V=R.node,he=R.clusterId;V&&(V.clusterId=he,V.clusterId&&O[V.clusterId]&&(V.clusterId=O[V.clusterId]))});var L=[],z={};d.forEach(function(R){var V=R.source,he=R.target,ce=R[n]||1,le=b[V].node.clusterId,ie=b[he].node.clusterId;if(!(!le||!ie)){var Ie="".concat(le,"---").concat(ie);if(z[Ie])z[Ie].weight+=ce,z[Ie].count++;else{var qe={source:le,target:ie,weight:ce,count:1};z[Ie]=qe,L.push(qe)}}});var X=[];return Object.keys(I).forEach(function(R){X.push(I[R])}),{clusters:X,clusterEdges:L}},KU=ZU;kd.default=KU;var Nd={},Od={};Object.defineProperty(Od,"__esModule",{value:!0});Od.default=void 0;var QU=function(){function t(e){this.count=e.length,this.parent={};for(var r=0,n=e;r0&&(this.list[0]=r,this.moveDown(0)),e},t.prototype.insert=function(e){if(e!==null){this.list.push(e);var r=this.list.length-1;return this.moveUp(r),!0}return!1},t.prototype.moveUp=function(e){for(var r=this.getParent(e);e&&e>0&&this.compareFn(this.list[r],this.list[e])>0;){var n=this.list[r];this.list[r]=this.list[e],this.list[e]=n,e=r,r=this.getParent(e)}},t.prototype.moveDown=function(e){var r,n=e,a=this.getLeft(e),i=this.getRight(e),o=this.list.length;a!==null&&a0?n=a:i!==null&&i0&&(n=i),e!==n&&(r=[this.list[n],this.list[e]],this.list[e]=r[0],this.list[n]=r[1],this.moveDown(n))},t}(),r$=t$;Ld.default=r$;Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var n$=pT(Od),a$=pT(Ld),Sp=Wr;function pT(t){return t&&t.__esModule?t:{default:t}}var i$=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=i[0],f=new Set;f.add(u);var l=function(g,y){return r?g.weight-y.weight:0},c=new a$.default(l);for((0,Sp.getEdgesByNodeId)(u.id,s).forEach(function(p){c.insert(p)});!c.isEmpty();){var h=c.delMin(),d=h.source,v=h.target;f.has(d)&&f.has(v)||(n.push(h),f.has(d)||(f.add(d),(0,Sp.getEdgesByNodeId)(d,s).forEach(function(p){c.insert(p)})),f.has(v)||(f.add(v),(0,Sp.getEdgesByNodeId)(v,s).forEach(function(p){c.insert(p)})))}return n},Wx=function(e,r){var n=[],a=e.nodes,i=a===void 0?[]:a,o=e.edges,s=o===void 0?[]:o;if(i.length===0)return n;var u=s.map(function(d){return d});r&&u.sort(function(d,v){return d.weight-v.weight});for(var f=new n$.default(i.map(function(d){return d.id}));u.length>0;){var l=u.shift(),c=l.source,h=l.target;f.connected(c,h)||(n.push(l),f.union(c,h))}return n},o$=function(e,r,n){var a={prim:i$,kruskal:Wx};return n?a[n](e,r):Wx(e,r)},s$=o$;Nd.default=s$;var Dd={};Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=void 0;var u$=l$(pi),f$=Wr;function l$(t){return t&&t.__esModule?t:{default:t}}var c$=function(e,r,n){typeof r!="number"&&(r=1e-6),typeof n!="number"&&(n=.85);for(var a=1,i=0,o=1e3,s=e.nodes,u=s===void 0?[]:s,f=e.edges,l=f===void 0?[]:f,c=u.length,h,d={},v={},p=0;p0&&a>r;){i=0;for(var p=0;p0&&(h+=v[x]/E)}d[y]=n*h,i+=d[y]}}i=(1-i)/c,a=0;for(var p=0;p=0;n--){var a=this.dfsEdgeList[n],i=a.fromNode,o=a.toNode;id||a.hasNode(o[h.to])||(r.labelb;x--){var E=w(x);if(E==="break")break}if(y){var _=e.findMinLabel(g);o.dfsEdgeList.push(new No(p,m,In.VACANT_NODE_LABEL,_.edgeLabel,In.VACANT_NODE_LABEL));var S=o.dfsEdgeList.length-1;return e.dfsCode.dfsEdgeList[S]!==o.dfsEdgeList[S]?!1:c(g[_.edgeLabel].projected)}var A={};y=!1;var M=0;h.forEach(function(L){var z=new _c(L),X=e.findForwardPureEdges(a,z.edges[d[0]],v,z);X.length>0&&(y=!0,M=p,X.forEach(function(R){var V="".concat(R.label,"-").concat(i[R.to].label);A[V]||(A[V]={projected:[],edgeLabel:R.label,nodeLabel2:i[R.to].label}),A[V].projected.push({graphId:a.id,edge:R,preNode:L})}))});for(var C=d.length,I=function(z){if(y)return"break";var X=d[z];h.forEach(function(R){var V=new _c(R),he=e.findForwardRmpathEdges(a,V.edges[X],v,V);he.length>0&&(y=!0,M=o.dfsEdgeList[X].fromNode,he.forEach(function(ce){var le="".concat(ce.label,"-").concat(i[ce.to].label);A[le]||(A[le]={projected:[],edgeLabel:ce.label,nodeLabel2:i[ce.to].label}),A[le].projected.push({graphId:a.id,edge:ce,preNode:R})}))})},x=0;x=0;v--){var p=r.findBackwardEdge(c,d.edges[i[v]],d.edges[i[0]],d);if(p){var g="".concat(r.dfsCode.dfsEdgeList[i[v]].fromNode,"-").concat(p.label);f[g]||(f[g]={projected:[],toNodeId:r.dfsCode.dfsEdgeList[i[v]].fromNode,edgeLabel:p.label}),f[g].projected.push({graphId:l.graphId,edge:p,preNode:l})}}if(!(a>=r.maxNodeNum)){var y=r.findForwardPureEdges(c,d.edges[i[0]],s,d);y.forEach(function(b){var w="".concat(o,"-").concat(b.label,"-").concat(h[b.to].label);u[w]||(u[w]={projected:[],fromNodeId:o,edgeLabel:b.label,nodeLabel2:h[b.to].label}),u[w].projected.push({graphId:l.graphId,edge:b,preNode:l})});for(var m=function(w){var x=r.findForwardRmpathEdges(c,d.edges[i[w]],s,d);x.forEach(function(E){var _="".concat(r.dfsCode.dfsEdgeList[i[w]].fromNode,"-").concat(E.label,"-").concat(h[E.to].label);u[_]||(u[_]={projected:[],fromNodeId:r.dfsCode.dfsEdgeList[i[w]].fromNode,edgeLabel:E.label,nodeLabel2:h[E.to].label}),u[_].projected.push({graphId:l.graphId,edge:E,preNode:l})})},v=0;vm){var b=m;m=y,y=b}var w=g.label,x="".concat(y,"-").concat(w,"-").concat(m);if(!o[x]){var E=o[x]||0;E++,o[x]=E}})})}),Object.keys(i).forEach(function(u){var f=i[u];if(!(f2*r)););if(g<2*r&&(s["".concat(l,"-").concat(p)]={start:l,end:p,distance:i[l][p]},c++,u++,u>=n))return s;if(h++,h>2*r)break}if(ch&&(u=h);var d=n[c.id].inDegree;f>d&&(f=d);var v=n[c.id].outDegree;l>v&&(l=v)}),e[r]={degree:u,inDegree:f,outDegree:l}),{minPatternNodeLabelDegree:u,minPatternNodeLabelInDegree:f,minPatternNodeLabelOutDegree:l}},C$=function(e,r,n,a,i,o,s){var u;if(n===void 0&&(n=!1),o===void 0&&(o="cluster"),s===void 0&&(s="cluster"),!(!e||!e.nodes)){var f=e.nodes.length;if(f){var l=(0,Hx.default)(e,n),c=(0,Hx.default)(r,n),h=eE(e.nodes,l,n),d=eE(r.nodes,c,n),v=Qx(e.nodes,o),p=v.nodeMap,g=v.nodeLabelMap,y=Qx(r.nodes,o),m=y.nodeMap,b=y.nodeLabelMap;Jx(e.edges,s,p);var w=Jx(r.edges,s,m).edgeLabelMap,x=[];c==null||c.forEach(function(tt){x=x.concat(tt)}),i||(i=Math.max.apply(Math,(0,qx.__spreadArray)((0,qx.__spreadArray)([],x,!1),[2],!1))),a||(a=i);var E=Kx(e,l,o,a),_=Kx(r,c,o,a),S=Math.min(100,f*(f-1)/2),A=S$(a,f,S,E,l),M=fh(A,E,e),C=10,I=1,k=1,O=4,B={graphs:M,nodeLabelProp:o,edgeLabelProp:s,minSupport:I,minNodeNum:k,maxNodeNum:O,directed:n},L=(0,E$.default)(B).slice(0,C),z=L.length,X=[];L.forEach(function(tt,te){X[te]={},Object.keys(M).forEach(function(N){var Se=M[N],Fe=lh(Se,tt,o,s);X[te][N]=Fe})});var R=M$(X,z,L),V=R.structure,he=R.structureCountMap,ce=r.nodes[0],le=[],ie=(u=r.nodes[0])===null||u===void 0?void 0:u[o],Ie=-1/0;r.nodes.forEach(function(tt){var te=tt[o],N=g[te];(N==null?void 0:N.length)>Ie&&(Ie=N.length,le=N,ie=te,ce=tt)});var qe={},Ve={},it={},dt={},st={},Tt={};Object.keys(b).forEach(function(tt,te){st[tt]=[],n&&(Tt[tt]=[]);var N=b[tt],Se={};N.forEach(function(Ze){var Je=d["".concat(ce.id,"-").concat(Ze.id)];if(Je&&st[tt].push(Je),Se["".concat(ce.id,"-").concat(Ze.id)]={start:0,end:m[Ze.id].idx,distance:Je},n){var ht=d["".concat(Ze.id,"-").concat(ce.id)];ht&&Tt[tt].push(ht)}}),st[tt]=st[tt].sort(function(Ze,Je){return Ze-Je}),n&&(Tt[tt]=Tt[tt].sort(function(Ze,Je){return Ze-Je})),Ve=fh(Se,_,r,Ve);var Fe=[];if(Object.keys(Se).forEach(function(Ze){if(it[Ze]){Fe.push(it[Ze]);return}var Je=Ve[Ze];it[Ze]=lh(Je,V,o,s),Fe.push(it[Ze])}),Fe=Fe.sort(function(Ze,Je){return Je-Ze}),dt["".concat(ce.id,"-").concat(tt)]=Fe,tt!==ie)for(var ge=(le==null?void 0:le.length)||0,Ue=function(Je){var ht=le[Je],Lt=E[p[ht.id].idx],ur=Lt.nodeLabelCountMap[tt],Dt=b[tt].length;if(!ur||ur.countst[tt][or]){fr=!0;break}if(fr)return le.splice(Je,1),"continue";var gr={};Lt.neighbors.forEach(function(nr){var Fr=h["".concat(ht.id,"-").concat(nr.id)];gr["".concat(ht.id,"-").concat(nr.id)]={start:p[ht.id].idx,end:p[nr.id].idx,distance:Fr}}),M=fh(gr,E,e,M);var hr=[];Object.keys(gr).forEach(function(nr){if(he[nr]){hr.push(he[nr]);return}var Fr=M[nr];he[nr]=lh(Fr,V,o,s),hr.push(he[nr])}),hr=hr.sort(function(nr,Fr){return Fr-nr});for(var hn=!1,or=0;or=0;$e--)Ue($e)});var _t=[];le==null||le.forEach(function(tt){for(var te=p[tt.id].idx,N=wT(e.nodes,l[te],te,o,i),Se=N.neighbors,Fe=Se.length,ge=!1,Ue=Fe-1;Ue>=0;Ue--){if(Se.length+1ur){Se.splice(Ue,1);continue}if(n){var Dt="".concat($e.id,"-").concat(tt.id),fr=h[Dt];Lt=Tt[Ze].length-1;var or=Tt[Ze][Lt];if(fr>or){Se.splice(Ue,1);continue}}var gr=he[Je]?he[Je]:A$(e,tt,$e,p,ht,E,V,o,s,he,M),hr="".concat(ce.id,"-").concat(Ze),hn=dt[hr][dt[hr].length-1];if(gr=0;ht--){var or=fr(ht);if(or==="break")break}if(Dt)return _t.splice(te,1),"continue";N.edges=Ue;var gr=(0,Zx.default)(N,N.nodes[0].id,!1).length;if(Object.keys(gr).reverse().forEach(function(St){if(!(St===N.nodes[0].id||Dt)){if(gr[St]===1/0){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]Bt[Sr][Bt[Sr].length-1]){var dr=ge[St].node[o];if(Fe[dr]--,Fe[dr]=0;oa--){var Ur=N.nodes[oa],Mi=ge[Ur.id].degree,xu=ge[Ur.id].inDegree,Eu=ge[Ur.id].outDegree,rn=Ur[o],ti=tE(qe,rn,m,b),uo=ti.minPatternNodeLabelDegree,_u=ti.minPatternNodeLabelInDegree,Su=ti.minPatternNodeLabelOutDegree,Mu=n?Mi=0;sa--){var Br=Ue[sa];if(!ge[Br.source]||!ge[Br.target]){Ue.splice(sa,1);var ua=Br[s];if($e[ua]--,ge[Br.source]&&(ge[Br.source].degree--,ge[Br.source].outDegree--),ge[Br.target]&&(ge[Br.target].degree--,ge[Br.target].inDegree--),w[ua]&&$e[ua]=0;cr--){var $t=vr(cr);if($t==="break")break}for(var sr=_t.length,tn=function(te){var N=_t[te],Se={};N.edges.forEach(function(Ue){var $e="".concat(Ue.source,"-").concat(Ue.target,"-").concat(Ue.label);Se[$e]?Se[$e]++:Se[$e]=1});for(var Fe=function($e){var Ze=_t[$e],Je={};Ze.edges.forEach(function(Lt){var ur="".concat(Lt.source,"-").concat(Lt.target,"-").concat(Lt.label);Je[ur]?Je[ur]++:Je[ur]=1});var ht=!0;Object.keys(Je).length!==Object.keys(Se).length?ht=!1:Object.keys(Se).forEach(function(Lt){Je[Lt]!==Se[Lt]&&(ht=!1)}),ht&&_t.splice($e,1)},ge=sr-1;ge>te;ge--)Fe(ge);sr=_t.length},cr=0;cr<=sr-1;cr++)tn(cr);return _t}}},T$=C$;Pd.default=T$;(function(t){function e(w){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},e(w)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"GADDI",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"breadthFirstSearch",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"connectedComponent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"depthFirstSearch",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"detectCycle",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"dijkstra",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"findAllPath",{enumerable:!0,get:function(){return f.findAllPath}}),Object.defineProperty(t,"findShortestPath",{enumerable:!0,get:function(){return f.findShortestPath}}),Object.defineProperty(t,"floydWarshall",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"getAdjMatrix",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"getDegree",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"getInDegree",{enumerable:!0,get:function(){return i.getInDegree}}),Object.defineProperty(t,"getNeighbors",{enumerable:!0,get:function(){return g.getNeighbors}}),Object.defineProperty(t,"getOutDegree",{enumerable:!0,get:function(){return i.getOutDegree}}),Object.defineProperty(t,"labelPropagation",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"louvain",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"minimumSpanningTree",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"pageRank",{enumerable:!0,get:function(){return v.default}});var r=b(Ko),n=b(Ad),a=b(Zi),i=m(pi),o=b(za),s=b(Td),u=b(gu),f=eu,l=b(tl),c=b(Id),h=b(kd),d=b(Nd),v=b(Dd),p=b(Pd),g=Wr;function y(w){if(typeof WeakMap!="function")return null;var x=new WeakMap,E=new WeakMap;return(y=function(S){return S?E:x})(w)}function m(w,x){if(w&&w.__esModule)return w;if(w===null||e(w)!=="object"&&typeof w!="function")return{default:w};var E=y(x);if(E&&E.has(w))return E.get(w);var _={},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var A in w)if(A!=="default"&&Object.prototype.hasOwnProperty.call(w,A)){var M=S?Object.getOwnPropertyDescriptor(w,A):null;M&&(M.get||M.set)?Object.defineProperty(_,A,M):_[A]=w[A]}return _.default=w,E&&E.set(w,_),_}function b(w){return w&&w.__esModule?w:{default:w}}})(QC);function ig(t){"@babel/helpers - typeof";return ig=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ig(t)}Object.defineProperty(Md,"__esModule",{value:!0});Md.default=void 0;var Mp=I$(QC),rE=Hi;function xT(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(xT=function(a){return a?r:e})(t)}function I$(t,e){if(t&&t.__esModule)return t;if(t===null||ig(t)!=="object"&&typeof t!="function")return{default:t};var r=xT(e);if(r&&r.has(t))return r.get(t);var n={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if(i!=="default"&&Object.prototype.hasOwnProperty.call(t,i)){var o=a?Object.getOwnPropertyDescriptor(t,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=t[i]}return n.default=t,r&&r.set(t,n),n}var Ap=typeof self<"u"?self:{};Ap.onmessage=function(t){var e=t.data,r=e._algorithmType,n=e.data;if(r){if(typeof Mp[r]=="function"){var a=Mp[r].apply(Mp,n);Ap.postMessage({_algorithmType:rE.MESSAGE.SUCCESS,data:a});return}Ap.postMessage({_algorithmType:rE.MESSAGE.FAILURE})}};var k$=null;Md.default=k$;Object.defineProperty(Sd,"__esModule",{value:!0});Sd.default=void 0;var N$=Hi,O$=L$(Md);function L$(t){return t&&t.__esModule?t:{default:t}}var D$=function(e){return function(){for(var r=[],n=0;n=t&&a<=t+r&&i>=e&&i<=e+n}function Uf(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},u={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a1&&(r*=Math.sqrt(d),n*=Math.sqrt(d));var v=r*r*(h*h)+n*n*(c*c),p=v?Math.sqrt((r*r*(n*n)-v)/v):1;i===o&&(p*=-1),isNaN(p)&&(p=0);var g=n?p*r*h/n:0,y=r?p*-n*c/r:0,m=(s+f)/2+Math.cos(a)*g-Math.sin(a)*y,b=(u+l)/2+Math.sin(a)*g+Math.cos(a)*y,w=[(c-g)/r,(h-y)/n],x=[(-1*c-g)/r,(-1*h-y)/n],E=aE([1,0],w),_=aE(w,x);return og(w,x)<=-1&&(_=Math.PI),og(w,x)>=1&&(_=0),o===0&&_>0&&(_=_-2*Math.PI),o===1&&_<0&&(_=_+2*Math.PI),{cx:m,cy:b,rx:nE(t,[f,l])?0:r,ry:nE(t,[f,l])?0:n,startAngle:E,endAngle:E+_,xRotation:a,arcFlag:i,sweepFlag:o}}var jh=Math.sin,Uh=Math.cos,Yy=Math.atan2,Mc=Math.PI;function MT(t,e,r,n,a,i,o){var s=e.stroke,u=e.lineWidth,f=r-a,l=n-i,c=Yy(l,f),h=new Ky({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*Uh(Mc/6)+","+10*jh(Mc/6)+" L0,0 L"+10*Uh(Mc/6)+",-"+10*jh(Mc/6),stroke:s,lineWidth:u}});h.translate(a,i),h.rotateAtPoint(a,i,c),t.set(o?"startArrowShape":"endArrowShape",h)}function AT(t,e,r,n,a,i,o){var s=e.startArrow,u=e.endArrow,f=e.stroke,l=e.lineWidth,c=o?s:u,h=c.d,d=c.fill,v=c.stroke,p=c.lineWidth,g=Kr(c,["d","fill","stroke","lineWidth"]),y=r-a,m=n-i,b=Yy(m,y);h&&(a=a-Uh(b)*h,i=i-jh(b)*h);var w=new Ky({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:P(P({},g),{stroke:v||f,lineWidth:p||l,fill:d})});w.translate(a,i),w.rotateAtPoint(a,i,b),t.set(o?"startArrowShape":"endArrowShape",w)}function Go(t,e,r,n,a){var i=Yy(n-e,r-t);return{dx:Uh(i)*a,dy:jh(i)*a}}function qy(t,e,r,n,a,i){typeof e.startArrow=="object"?AT(t,e,r,n,a,i,!0):e.startArrow?MT(t,e,r,n,a,i,!0):t.set("startArrowShape",null)}function Hy(t,e,r,n,a,i){typeof e.endArrow=="object"?AT(t,e,r,n,a,i,!1):e.endArrow?MT(t,e,r,n,a,i,!1):t.set("startArrowShape",null)}var oE={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ru(t,e){var r=e.attr();for(var n in r){var a=r[n],i=oE[n]?oE[n]:n;i==="matrix"&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&t.setLineDash?bt(a)&&t.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=h9(t,e,a):i==="globalAlpha"&&(a=a*t.globalAlpha),t[i]=a)}}function sg(t,e,r){for(var n=0;nx?w:x,C=w>x?1:w/x,I=w>x?x/w:1;e.translate(m,b),e.rotate(S),e.scale(C,I),e.arc(0,0,M,E,_,1-A),e.scale(1/C,1/I),e.rotate(-S),e.translate(-m,-b)}break}case"Z":e.closePath();break}if(h==="Z")s=u;else{var k=c.length;s=[c[k-2],c[k-1]]}}}}function IT(t,e){var r=t.get("canvas");r&&(e==="remove"&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(r.refreshElement(t,e,r),r.get("autoDraw")&&r.draw())))}function g9(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var r=t.get("cacheCanvasBBox"),n=r&&!!(r.width&&r.height),a=t.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?e=i9(r,a):n?e=r:i&&(e=a)}return e}function y9(t){if(!t.length)return null;var e=[],r=[],n=[],a=[];return _e(t,function(i){var o=g9(i);o&&(e.push(o.minX),r.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:Ha(e),minY:Ha(r),maxX:qa(n),maxY:qa(a)}}function m9(t,e){return!t||!e||!Uf(t,e)?null:{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}}var kT=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onCanvasChange=function(r){IT(this,r)},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(r,n){n&&(r.save(),ru(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},e.prototype.cacheCanvasBBox=function(){var r=this.cfg.children,n=[],a=[];_e(r,function(h){var d=h.cfg.cacheCanvasBBox;d&&h.cfg.isInView&&(n.push(d.minX,d.maxX),a.push(d.minY,d.maxY))});var i=null;if(n.length){var o=Ha(n),s=qa(n),u=Ha(a),f=qa(a);i={minX:o,minY:u,x:o,y:u,maxX:s,maxY:f,width:s-o,height:f-u};var l=this.cfg.canvas;if(l){var c=l.getViewRange();this.set("isInView",Uf(i,c))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(r,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(r.save(),ru(r,this),this._applyClip(r,this.getClip()),sg(r,a,n),r.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(xC),Ea=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return kT},e.prototype.onCanvasChange=function(r){IT(this,r)},e.prototype.calculateBBox=function(){var r=this.get("type"),n=this.getHitLineWidth(),a=SC(r),i=a(this),o=n/2,s=i.x-o,u=i.y-o,f=i.x+i.width+o,l=i.y+i.height+o;return{x:s,minX:s,y:u,minY:u,width:i.width+n,height:i.height+n,maxX:f,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(r,n){n&&(r.save(),ru(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},e.prototype.draw=function(r,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!Uf(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}r.save(),ru(r,this),this._applyClip(r,a),this.drawPath(r),r.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var r=this.cfg.canvas;return r?r.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var r=this.getCanvasViewBox();if(r){var n=this.getCanvasBBox(),a=Uf(n,r);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(r){this.createPath(r),this.strokeAndFill(r),this.afterDrawPath(r)},e.prototype.fill=function(r){r.fill()},e.prototype.stroke=function(r){r.stroke()},e.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!Zt(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(r.globalAlpha=o),this.stroke(r)),this.afterDrawPath(r)},e.prototype.createPath=function(r){},e.prototype.afterDrawPath=function(r){},e.prototype.isInShape=function(r,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(r,n,a,i,o)},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var r=this.attrs;return r.lineWidth+r.lineAppendWidth},e}(EC),b9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.r,c=o/2,h=ET(u,f,r,n);return i&&a?h<=l+c:i?h<=l:a?h>=l-c&&h<=l+c:!1},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.r;r.beginPath(),r.arc(a,i,o,0,Math.PI*2,!1),r.closePath()},e}(Ea);function Ac(t,e,r,n){return t/(r*r)+e/(n*n)}var w9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=o/2,f=s.x,l=s.y,c=s.rx,h=s.ry,d=(r-f)*(r-f),v=(n-l)*(n-l);return i&&a?Ac(d,v,c+u,h+u)<=1:i?Ac(d,v,c,h)<=1:a?Ac(d,v,c-u,h-u)>=1&&Ac(d,v,c+u,h+u)<=1:!1},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(r.beginPath(),r.ellipse)r.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var u=o>s?o:s,f=o>s?1:o/s,l=o>s?s/o:1;r.save(),r.translate(a,i),r.scale(f,l),r.arc(0,0,u,0,Math.PI*2),r.restore(),r.closePath()}},e}(Ea);function sE(t){return t instanceof HTMLElement&&Ye(t.nodeName)&&t.nodeName.toUpperCase()==="CANVAS"}var x9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(r){this._setImage(r.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var r=this.get("canvas");r?r.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(r){var n=this,a=this.attrs;if(Ye(r)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=r,this.set("loading",!0)}else r instanceof Image?(a.width||(a.width=r.width),a.height||(a.height=r.height)):sE(r)&&(a.width||(a.width=Number(r.getAttribute("width"))),a.height||(a.height,Number(r.getAttribute("height"))))},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),r==="img"&&this._setImage(n)},e.prototype.createPath=function(r){if(this.get("loading")){this.set("toDraw",!0),this.set("context",r);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.sx,f=n.sy,l=n.swidth,c=n.sheight,h=n.img;(h instanceof Image||sE(h))&&(!Zt(u)&&!Zt(f)&&!Zt(l)&&!Zt(c)?r.drawImage(h,u,f,l,c,a,i,o,s):r.drawImage(h,a,i,o,s))},e}(Ea);function ji(t,e,r,n,a,i,o){var s=Math.min(t,r),u=Math.max(t,r),f=Math.min(e,n),l=Math.max(e,n),c=a/2;return i>=s-c&&i<=u+c&&o>=f-c&&o<=l+c?cn.pointToLine(t,e,r,n,i,o)<=a/2:!1}var E9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(r){this.setArrow()},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),this.setArrow()},e.prototype.setArrow=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2,s=r.startArrow,u=r.endArrow;s&&qy(this,r,i,o,n,a),u&&Hy(this,r,n,a,i,o)},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),u=s.x1,f=s.y1,l=s.x2,c=s.y2;return ji(u,f,l,c,o,r,n)},e.prototype.createPath=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,u=n.startArrow,f=n.endArrow,l={dx:0,dy:0},c={dx:0,dy:0};u&&u.d&&(l=Go(a,i,o,s,n.startArrow.d)),f&&f.d&&(c=Go(a,i,o,s,n.endArrow.d)),r.beginPath(),r.moveTo(a+l.dx,i+l.dy),r.lineTo(o-c.dx,s-c.dy)},e.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},e.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,r)},e}(Ea),_9={circle:function(t,e,r){return[["M",t-r,e],["A",r,r,0,1,0,t+r,e],["A",r,r,0,1,0,t-r,e]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["Z"]]},"triangle-down":function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}},S9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initAttrs=function(r){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),["symbol","x","y","r","radius"].indexOf(r)!==-1&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(r){return Zt(r.r)?r.radius:r.r},e.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.symbol||"circle",o=this._getR(r),s,u;if(Tr(i))s=i,u=s(n,a,o),u=RC(u);else{if(s=e.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;u=s(n,a,o)}return u},e.prototype.createPath=function(r){var n=this._getPath(),a=this.get("paramsCache");TT(this,r,{path:n},a)},e.Symbols=_9,e}(Ea);function NT(t,e,r){var n=LC();return t.createPath(n),n.isPointInPath(e,r)}var M9=1e-6;function Cp(t){return Math.abs(t)0!=Cp(s[1]-r)>0&&Cp(e-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function cf(t,e,r,n,a,i,o,s){var u=(Math.atan2(s-e,o-t)+Math.PI*2)%(Math.PI*2);if(ua)return!1;var f={x:t+r*Math.cos(u),y:e+r*Math.sin(u)};return ET(f.x,f.y,o,s)<=i/2}var C9=eo;function T9(t){for(var e=!1,r=t.length,n=0;nb?m:b,A=m>b?1:m/b,M=m>b?b/m:1,C=C9(null,[["t",-g,-y],["r",-E],["s",1/A,1/M]]);bd(_,_,C),i=cf(0,0,S,w,x,e,_[0],_[1]);break}if(i)break}}return i}function k9(t){for(var e=t.length,r=[],n=[],a=[],i=0;i0&&n.push(a),{polygons:r,polylines:n}}const Cc=P({hasArc:T9,extractPolygons:k9,isPointInStroke:I9},Tz);function uE(t,e,r){for(var n=!1,a=0;a=l[0]&&r<=l[1]&&(a=(r-l[0])/(l[1]-l[0]),i=c)});var s=o[i];if(Zt(s)||Zt(i))return null;var u=s.length,f=o[i+1];return xf.pointAt(s[u-2],s[u-1],f[1],f[2],f[3],f[4],f[5],f[6],a)},e.prototype._calculateCurve=function(){var r=this.attr().path;this.set("curve",Cc.pathToCurve(r))},e.prototype._setTcache=function(){var r=0,n=0,a=[],i,o,s,u,f=this.get("curve");if(f){if(_e(f,function(l,c){s=f[c+1],u=l.length,s&&(r+=xf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",r),r===0){this.set("tCache",[]);return}_e(f,function(l,c){s=f[c+1],u=l.length,s&&(i=[],i[0]=n/r,o=xf.length(l[u-2],l[u-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/r,a.push(i))}),this.set("tCache",a)}},e.prototype.getStartTangent=function(){var r=this.getSegments(),n;if(r.length>1){var a=r[0].currentPoint,i=r[1].currentPoint,o=r[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},e.prototype.getEndTangent=function(){var r=this.getSegments(),n=r.length,a;if(n>1){var i=r[n-2].currentPoint,o=r[n-1].currentPoint,s=r[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},e}(Ea);function LT(t,e,r,n,a){var i=t.length;if(i<2)return!1;for(var o=0;o=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(r,function(u,f){r[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],r[f+1][0],r[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},e.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},e}(Ea);function L9(t,e,r,n,a,i,o){var s=a/2;return Ro(t-s,e-s,r,a,i,o)||Ro(t+r-s,e-s,a,n,i,o)||Ro(t+s,e+n-s,r,a,i,o)||Ro(t-s,e+s,a,n,i,o)}function D9(t,e,r,n,a,i,o,s){return ji(t+a,e,t+r-a,e,i,o,s)||ji(t+r,e+a,t+r,e+n-a,i,o,s)||ji(t+r-a,e+n,t+a,e+n,i,o,s)||ji(t,e+n-a,t,e+a,i,o,s)||cf(t+r-a,e+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||cf(t+r-a,e+n-a,a,0,.5*Math.PI,i,o,s)||cf(t+a,e+n-a,a,.5*Math.PI,Math.PI,i,o,s)||cf(t+a,e+a,a,Math.PI,1.5*Math.PI,i,o,s)}var P9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),u=s.x,f=s.y,l=s.width,c=s.height,h=s.radius;if(h){var v=!1;return a&&(v=D9(u,f,l,c,h,o,r,n)),!v&&i&&(v=NT(this,r,n)),v}else{var d=o/2;if(i&&a)return Ro(u-d,f-d,l+d,c+d,r,n);if(i)return Ro(u,f,l,c,r,n);if(a)return L9(u,f,l,c,o,r,n)}},e.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,u=n.radius;if(r.beginPath(),u===0)r.rect(a,i,o,s);else{var f=d9(u),l=f[0],c=f[1],h=f[2],d=f[3];r.moveTo(a+l,i),r.lineTo(a+o-c,i),c!==0&&r.arc(a+o-c,i+c,c,-Math.PI/2,0),r.lineTo(a+o,i+s-h),h!==0&&r.arc(a+o-h,i+s-h,h,0,Math.PI/2),r.lineTo(a+d,i+s),d!==0&&r.arc(a+d,i+s-d,d,Math.PI/2,Math.PI),r.lineTo(a,i+l),l!==0&&r.arc(a+l,i+l,l,Math.PI,Math.PI*1.5),r.closePath()}},e}(Ea),R9=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(r){this._assembleFont(),r.text&&this._setText(r.text)},e.prototype._assembleFont=function(){var r=this.attrs;r.font=PC(r)},e.prototype._setText=function(r){var n=null;Ye(r)&&r.indexOf(` +`)!==-1&&(n=r.split(` +`)),this.set("textArr",n)},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),r.startsWith("font")&&this._assembleFont(),r==="text"&&this._setText(n)},e.prototype._getSpaceingY=function(){var r=this.attrs,n=r.lineHeight,a=r.fontSize*1;return n?n-a:a*.14},e.prototype._drawTextArr=function(r,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,u=i.y,f=i.fontSize*1,l=this._getSpaceingY(),c=DC(i.text,i.fontSize,i.lineHeight),h;_e(n,function(d,v){h=u+v*(l+f)-c+f,o==="middle"&&(h+=c-f-(c-f)/2),o==="top"&&(h+=c-f),Zt(d)||(a?r.fillText(d,s,h):r.strokeText(d,s,h))})},e.prototype._drawText=function(r,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(r,s,n);else{var u=a.text;Zt(u)||(n?r.fillText(u,i,o):r.strokeText(u,i,o))}},e.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!Zt(o)&&o!==1&&(r.globalAlpha=i),this.stroke(r)),this.isFill()&&(!Zt(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.afterDrawPath(r)},e.prototype.fill=function(r){this._drawText(r,!0)},e.prototype.stroke=function(r){this._drawText(r,!1)},e}(Ea);function F9(t,e){if(e){var r=nC(e);return Do(r,t)}return t}function DT(t,e,r){var n=t.getTotalMatrix();if(n){var a=F9([e,r,1],n),i=a[0],o=a[1];return[i,o]}return[e,r]}function fE(t,e,r){if(t.isCanvas&&t.isCanvas())return!0;if(!P0(t)||t.cfg.isInView===!1)return!1;if(t.cfg.clipShape){var n=DT(t,e,r),a=n[0],i=n[1];if(t.isClipped(a,i))return!1}var o=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=o.minX&&e<=o.maxX&&r>=o.minY&&r<=o.maxY}function PT(t,e,r){if(!fE(t,e,r))return null;for(var n=null,a=t.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=PT(s,e,r);else if(fE(s,e,r)){var u=s,f=DT(s,e,r),l=f[0],c=f[1];u.isInShape(l,c)&&(n=s)}if(n)break}return n}var qu=function(t){jt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getDefaultCfg=function(){var r=t.prototype.getDefaultCfg.call(this);return r.renderer="canvas",r.autoDraw=!0,r.localRefresh=!0,r.refreshElements=[],r.clipView=!0,r.quickHit=!1,r},e.prototype.onCanvasChange=function(r){(r==="attr"||r==="sort"||r==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return ty},e.prototype.getGroupBase=function(){return kT},e.prototype.getPixelRatio=function(){var r=this.get("pixelRatio")||a9();return r>=1?Math.ceil(r):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var r=document.createElement("canvas"),n=r.getContext("2d");return this.set("context",n),r},e.prototype.setDOMSize=function(r,n){t.prototype.setDOMSize.call(this,r,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*r,i.height=o*n,o>1&&a.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var r=this.get("context"),n=this.get("el");r.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(r,n){var a;return this.get("quickHit")?a=PT(this,r,n):a=t.prototype.getShape.call(this,r,n,null),a},e.prototype._getRefreshRegion=function(){var r=this.get("refreshElements"),n=this.getViewRange(),a;if(r.length&&r[0]===this)a=n;else if(a=y9(r),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=m9(a,n))}return a},e.prototype.refreshElement=function(r){var n=this.get("refreshElements");n.push(r)},e.prototype._clearFrame=function(){var r=this.get("drawFrame");r&&(VS(r),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var r=this.get("drawFrame");this.get("autoDraw")&&r||this._startDraw()},e.prototype._drawAll=function(){var r=this.get("context"),n=this.get("el"),a=this.getChildren();r.clearRect(0,0,n.width,n.height),ru(r,this),sg(r,a),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var r=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(r.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.save(),r.beginPath(),r.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.clip(),ru(r,this),v9(this,a,i),sg(r,a,i),r.restore()):n.length&&CT(n),_e(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},e.prototype._startDraw=function(){var r=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=WS(function(){r.get("localRefresh")?r._drawRegion():r._drawAll(),r.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var r=this.get("el");r.width=0,r.height=0,r.parentNode.removeChild(r)},e}(wC),fg={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},ar={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function ra(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function RT(t){var e=fg[t.type],r=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var n=ra(e);if(t.get("id")&&(n.id=t.get("id")),t.set("el",n),t.set("attrs",{}),r){var a=r.get("el");a||(a=r.createDom(),r.set("el",a)),a.appendChild(n)}return n}function FT(t,e){var r=t.get("el"),n=ZS(r.children).sort(e),a=document.createDocumentFragment();n.forEach(function(i){a.appendChild(i)}),r.appendChild(a)}function B9(t,e){var r=t.parentNode,n=Array.from(r.childNodes).filter(function(s){return s.nodeType===1&&s.nodeName.toLowerCase()!=="defs"}),a=n[e],i=n.indexOf(t);if(a){if(i>e)r.insertBefore(t,a);else if(i0&&(n?"stroke"in a?this._setColor(r,"stroke",s):"strokeStyle"in a&&this._setColor(r,"stroke",u):this._setColor(r,"stroke",s||u),l&&h.setAttribute(ar.strokeOpacity,l),c&&h.setAttribute(ar.lineWidth,c))},e.prototype._setColor=function(r,n,a){var i=this.get("el");if(!a){i.setAttribute(ar[n],"none");return}if(a=a.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(a)){var o=r.find("gradient",a);o||(o=r.addGradient(a)),i.setAttribute(ar[n],"url(#"+o+")")}else if(/^[p,P]{1}[\s]*\(/.test(a)){var o=r.find("pattern",a);o||(o=r.addPattern(a)),i.setAttribute(ar[n],"url(#"+o+")")}else i.setAttribute(ar[n],a)},e.prototype.shadow=function(r,n){var a=this.attr(),i=n||a,o=i.shadowOffsetX,s=i.shadowOffsetY,u=i.shadowBlur,f=i.shadowColor;(o||s||u||f)&&G9(this,r)},e.prototype.transform=function(r){var n=this.attr(),a=(r||n).matrix;a&&al(this)},e.prototype.isInShape=function(r,n){return this.isPointInPath(r,n)},e.prototype.isPointInPath=function(r,n){var a=this.get("el"),i=this.get("canvas"),o=i.get("el").getBoundingClientRect(),s=r+o.left,u=n+o.top,f=document.elementFromPoint(s,u);return!!(f&&f.isEqualNode(a))},e.prototype.getHitLineWidth=function(){var r=this.attrs,n=r.lineWidth,a=r.lineAppendWidth;return this.isStroke()?n+a:0},e}(EC),z9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="circle",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,r:0})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),j9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="dom",r.canFill=!1,r.canStroke=!1,r}return e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");if(_e(n||a,function(f,l){ar[l]&&i.setAttribute(ar[l],f)}),typeof a.html=="function"){var o=a.html.call(this,a);if(o instanceof Element||o instanceof HTMLDocument){for(var s=i.childNodes,u=s.length-1;u>=0;u--)i.removeChild(s[u]);i.appendChild(o)}else i.innerHTML=o}else i.innerHTML=a.html},e}(aa),U9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="ellipse",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="x"||s==="y"?i.setAttribute("c"+s,o):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),$9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="image",r.canFill=!1,r.canStroke=!1,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){u==="img"?a._setImage(i.img):ar[u]&&o.setAttribute(ar[u],s)})},e.prototype.setAttr=function(r,n){this.attrs[r]=n,r==="img"&&this._setImage(n)},e.prototype._setImage=function(r){var n=this.attr(),a=this.get("el");if(Ye(r))a.setAttribute("href",r);else if(r instanceof window.Image)n.width||(a.setAttribute("width",r.width),this.attr("width",r.width)),n.height||(a.setAttribute("height",r.height),this.attr("height",r.height)),a.setAttribute("href",r.src);else if(r instanceof HTMLElement&&Ye(r.nodeName)&&r.nodeName.toUpperCase()==="CANVAS")a.setAttribute("href",r.toDataURL());else if(r instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+r.width),i.setAttribute("height",""+r.height),i.getContext("2d").putImageData(r,0,0),n.width||(a.setAttribute("width",""+r.width),this.attr("width",r.width)),n.height||(a.setAttribute("height",""+r.height),this.attr("height",r.height)),a.setAttribute("href",i.toDataURL())}},e}(aa),X9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="line",r.canFill=!1,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){if(s==="startArrow"||s==="endArrow")if(o){var u=gn(o)?r.addArrow(a,ar[s]):r.getDefaultArrow(a,ar[s]);i.setAttribute(ar[s],"url(#"+u+")")}else i.removeAttribute(ar[s]);else ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return cn.length(n,a,i,o)},e.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return cn.pointAt(a,i,o,s,r)},e}(aa),Tc={circle:function(t,e,r){return[["M",t,e],["m",-r,0],["a",r,r,0,1,0,r*2,0],["a",r,r,0,1,0,-r*2,0]]},square:function(t,e,r){return[["M",t-r,e-r],["L",t+r,e-r],["L",t+r,e+r],["L",t-r,e+r],["Z"]]},diamond:function(t,e,r){return[["M",t-r,e],["L",t,e-r],["L",t+r,e],["L",t,e+r],["Z"]]},triangle:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e+n],["L",t,e-n],["L",t+r,e+n],["z"]]},triangleDown:function(t,e,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",t-r,e-n],["L",t+r,e-n],["L",t,e+n],["Z"]]}};const lE={get:function(t){return Tc[t]},register:function(t,e){Tc[t]=e},remove:function(t){delete Tc[t]},getAll:function(){return Tc}};var W9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="marker",r.canFill=!0,r.canStroke=!0,r}return e.prototype.createPath=function(r){var n=this.get("el");n.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var r=this._getPath();return bt(r)?r.map(function(n){return n.join(" ")}).join(""):r},e.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.r||r.radius,o=r.symbol||"circle",s;return Tr(o)?s=o:s=lE.get(o),s?s(n,a,i):(console.warn(s+" symbol is not exist."),null)},e.symbolsFactory=lE,e}(aa),V9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="path",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");_e(n||i,function(s,u){if(u==="path"&&bt(s))o.setAttribute("d",a._formatPath(s));else if(u==="startArrow"||u==="endArrow")if(s){var f=gn(s)?r.addArrow(i,ar[u]):r.getDefaultArrow(i,ar[u]);o.setAttribute(ar[u],"url(#"+f+")")}else o.removeAttribute(ar[u]);else ar[u]&&o.setAttribute(ar[u],s)})},e.prototype._formatPath=function(r){var n=r.map(function(a){return a.join(" ")}).join("");return~n.indexOf("NaN")?"":n},e.prototype.getTotalLength=function(){var r=this.get("el");return r?r.getTotalLength():null},e.prototype.getPoint=function(r){var n=this.get("el"),a=this.getTotalLength();if(a===0)return null;var i=n?n.getPointAtLength(r*a):null;return i?{x:i.x,y:i.y}:null},e}(aa),Y9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="polygon",r.canFill=!0,r.canStroke=!0,r}return e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e}(aa),q9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="polyline",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(r,n,a){t.prototype.onAttrChange.call(this,r,n,a),["points"].indexOf(r)!==-1&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(r,n){var a=this.attr(),i=this.get("el");_e(n||a,function(o,s){s==="points"&&bt(o)&&o.length>=2?i.setAttribute("points",o.map(function(u){return u[0]+","+u[1]}).join(" ")):ar[s]&&i.setAttribute(ar[s],o)})},e.prototype.getTotalLength=function(){var r=this.attr().points,n=this.get("totalLength");return Zt(n)?(this.set("totalLength",OC.length(r)),this.get("totalLength")):n},e.prototype.getPoint=function(r){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return _e(a,function(s,u){r>=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=u)}),cn.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},e.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;_e(r,function(u,f){r[f+1]&&(o=[],o[0]=a/n,s=cn.length(u[0],u[1],r[f+1][0],r[f+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},e.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},e.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},e}(aa);function H9(t){var e=0,r=0,n=0,a=0;return bt(t)?t.length===1?e=r=n=a=t[0]:t.length===2?(e=n=t[0],r=a=t[1]):t.length===3?(e=t[0],r=a=t[1],n=t[2]):(e=t[0],r=t[1],n=t[2],a=t[3]):e=r=n=a=t,{r1:e,r2:r,r3:n,r4:a}}var Z9=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="rect",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el"),s=!1,u=["x","y","width","height","radius"];_e(n||i,function(f,l){u.indexOf(l)!==-1&&!s?(o.setAttribute("d",a._assembleRect(i)),s=!0):u.indexOf(l)===-1&&ar[l]&&o.setAttribute(ar[l],f)})},e.prototype._assembleRect=function(r){var n=r.x,a=r.y,i=r.width,o=r.height,s=r.radius;if(!s)return"M "+n+","+a+" l "+i+",0 l 0,"+o+" l"+-i+" 0 z";var u=H9(s);bt(s)?s.length===1?u.r1=u.r2=u.r3=u.r4=s[0]:s.length===2?(u.r1=u.r3=s[0],u.r2=u.r4=s[1]):s.length===3?(u.r1=s[0],u.r2=u.r4=s[1],u.r3=s[2]):(u.r1=s[0],u.r2=s[1],u.r3=s[2],u.r4=s[3]):u.r1=u.r2=u.r3=u.r4=s;var f=[["M "+(n+u.r1)+","+a],["l "+(i-u.r1-u.r2)+",0"],["a "+u.r2+","+u.r2+",0,0,1,"+u.r2+","+u.r2],["l 0,"+(o-u.r2-u.r3)],["a "+u.r3+","+u.r3+",0,0,1,"+-u.r3+","+u.r3],["l "+(u.r3+u.r4-i)+",0"],["a "+u.r4+","+u.r4+",0,0,1,"+-u.r4+","+-u.r4],["l 0,"+(u.r4+u.r1-o)],["a "+u.r1+","+u.r1+",0,0,1,"+u.r1+","+-u.r1],["z"]];return f.join(" ")},e}(aa),cE=.3,K9={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Q9={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},J9={left:"left",start:"left",center:"middle",right:"end",end:"end"},e7=function(t){jt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type="text",r.canFill=!0,r.canStroke=!0,r}return e.prototype.getDefaultAttrs=function(){var r=t.prototype.getDefaultAttrs.call(this);return P(P({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(r,n){var a=this,i=this.attr(),o=this.get("el");this._setFont(),_e(n||i,function(s,u){u==="text"?a._setText(""+s):u==="matrix"&&s?al(a):ar[u]&&o.setAttribute(ar[u],s)}),o.setAttribute("paint-order","stroke"),o.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var r=this.get("el"),n=this.attr(),a=n.textBaseline,i=n.textAlign,o=rC();o&&o.name==="firefox"?r.setAttribute("dominant-baseline",Q9[a]||"alphabetic"):r.setAttribute("alignment-baseline",K9[a]||"baseline"),r.setAttribute("text-anchor",J9[i]||"left")},e.prototype._setText=function(r){var n=this.get("el"),a=this.attr(),i=a.x,o=a.textBaseline,s=o===void 0?"bottom":o;if(!r)n.innerHTML="";else if(~r.indexOf(` +`)){var u=r.split(` +`),f=u.length-1,l="";_e(u,function(c,h){h===0?s==="alphabetic"?l+=''+c+"":s==="top"?l+=''+c+"":s==="middle"?l+=''+c+"":s==="bottom"?l+=''+c+"":s==="hanging"&&(l+=''+c+""):l+=''+c+""}),n.innerHTML=l}else n.innerHTML=r},e}(aa),t7=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r7=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n7=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function jT(t){var e=t.match(n7);if(!e)return"";var r="";return e.sort(function(n,a){return n=n.split(":"),a=a.split(":"),Number(n[0])-Number(a[0])}),_e(e,function(n){n=n.split(":"),r+=''}),r}function a7(t,e){var r=t7.exec(t),n=gd(yd(parseFloat(r[1])),Math.PI*2),a=r[2],i,o;n>=0&&n<.5*Math.PI?(i={x:0,y:0},o={x:1,y:1}):.5*Math.PI<=n&&n`;r.innerHTML=n},t}(),hE=function(){function t(e,r){this.cfg={};var n=ra("marker"),a=Ji("marker_");n.setAttribute("id",a);var i=ra("path");i.setAttribute("stroke",e.stroke||"none"),i.setAttribute("fill",e.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=a;var o=e[r==="marker-start"?"startArrow":"endArrow"];return this.stroke=e.stroke||"#000",o===!0?this._setDefaultPath(r,i):(this.cfg=o,this._setMarker(e.lineWidth,i)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(e,r){var n=this.el;r.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(e,r){var n=this.el,a=this.cfg.path,i=this.cfg.d;bt(a)&&(a=a.map(function(o){return o.join(" ")}).join("")),r.setAttribute("d",a),n.appendChild(r),i&&n.setAttribute("refX",""+i/e)},t.prototype.update=function(e){var r=this.child;r.attr?r.attr("fill",e):r.setAttribute("fill",e)},t}(),l7=function(){function t(e){this.type="clip",this.cfg={};var r=ra("clipPath");this.el=r,this.id=Ji("clip_"),r.id=this.id;var n=e.cfg.el;return r.appendChild(n),this.cfg=e,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var e=this.el;e.parentNode.removeChild(e)},t}(),c7=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,h7=function(){function t(e){this.cfg={};var r=ra("pattern");r.setAttribute("patternUnits","userSpaceOnUse");var n=ra("image");r.appendChild(n);var a=Ji("pattern_");r.id=a,this.el=r,this.id=a,this.cfg=e;var i=c7.exec(e),o=i[2];n.setAttribute("href",o);var s=new Image;o.match(/^data:/i)||(s.crossOrigin="Anonymous"),s.src=o;function u(){r.setAttribute("width",""+s.width),r.setAttribute("height",""+s.height)}return s.complete?u():(s.onload=u,s.src=s.src),this}return t.prototype.match=function(e,r){return this.cfg===r},t}(),d7=function(){function t(e){var r=ra("defs"),n=Ji("defs_");r.id=n,e.appendChild(r),this.children=[],this.defaultArrow={},this.el=r,this.canvas=e}return t.prototype.find=function(e,r){for(var n=this.children,a=null,i=0;i]*>/,lg={tr:document.createElement("tbody"),tbody:hf,thead:hf,tfoot:hf,td:Ip,th:Ip,"*":document.createElement("div")}}function cg(t){hf||v7();var e=UT.test(t)&&RegExp.$1;(!e||!(e in lg))&&(e="*");var r=lg[e];t=typeof t=="string"?t.replace(/(^\s*)|(\s*$)/g,""):t,r.innerHTML=""+t;var n=r.childNodes[0];return n&&r.contains(n)&&r.removeChild(n),n}function Hu(t,e){if(t)for(var r in e)e.hasOwnProperty(r)&&(t.style[r]=e[r]);return t}var $T={exports:{}},p7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},XT={exports:{}},g7=function(e){return!e||typeof e=="string"?!1:e instanceof Array||Array.isArray(e)||e.length>=0&&(e.splice instanceof Function||Object.getOwnPropertyDescriptor(e,e.length-1)&&e.constructor.name!=="String")},y7=g7,m7=Array.prototype.concat,b7=Array.prototype.slice,dE=XT.exports=function(e){for(var r=[],n=0,a=e.length;n=4&&t[3]!==1&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"};$n.to.keyword=function(t){return VT[t.slice(0,3)]};function Vi(t,e,r){return Math.min(Math.max(e,t),r)}function kc(t){var e=Math.round(t).toString(16).toUpperCase();return e.length<2?"0"+e:e}var x7=$T.exports,YT={exports:{}},E7={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},zo=E7,qT={};for(var Np in zo)zo.hasOwnProperty(Np)&&(qT[zo[Np]]=Np);var mt=YT.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var Tn in mt)if(mt.hasOwnProperty(Tn)){if(!("channels"in mt[Tn]))throw new Error("missing channels property: "+Tn);if(!("labels"in mt[Tn]))throw new Error("missing channel labels property: "+Tn);if(mt[Tn].labels.length!==mt[Tn].channels)throw new Error("channel and label counts mismatch: "+Tn);var _7=mt[Tn].channels,S7=mt[Tn].labels;delete mt[Tn].channels,delete mt[Tn].labels,Object.defineProperty(mt[Tn],"channels",{value:_7}),Object.defineProperty(mt[Tn],"labels",{value:S7})}mt.rgb.hsl=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.min(e,r,n),i=Math.max(e,r,n),o=i-a,s,u,f;return i===a?s=0:e===i?s=(r-n)/o:r===i?s=2+(n-e)/o:n===i&&(s=4+(e-r)/o),s=Math.min(s*60,360),s<0&&(s+=360),f=(a+i)/2,i===a?u=0:f<=.5?u=o/(i+a):u=o/(2-i-a),[s,u*100,f*100]};mt.rgb.hsv=function(t){var e,r,n,a,i,o=t[0]/255,s=t[1]/255,u=t[2]/255,f=Math.max(o,s,u),l=f-Math.min(o,s,u),c=function(h){return(f-h)/6/l+1/2};return l===0?a=i=0:(i=l/f,e=c(o),r=c(s),n=c(u),o===f?a=n-r:s===f?a=1/3+e-n:u===f&&(a=2/3+r-e),a<0?a+=1:a>1&&(a-=1)),[a*360,i*100,f*100]};mt.rgb.hwb=function(t){var e=t[0],r=t[1],n=t[2],a=mt.rgb.hsl(t)[0],i=1/255*Math.min(e,Math.min(r,n));return n=1-1/255*Math.max(e,Math.max(r,n)),[a,i*100,n*100]};mt.rgb.cmyk=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a,i,o,s;return s=Math.min(1-e,1-r,1-n),a=(1-e-s)/(1-s)||0,i=(1-r-s)/(1-s)||0,o=(1-n-s)/(1-s)||0,[a*100,i*100,o*100,s*100]};function M7(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2)}mt.rgb.keyword=function(t){var e=qT[t];if(e)return e;var r=1/0,n;for(var a in zo)if(zo.hasOwnProperty(a)){var i=zo[a],o=M7(t,i);o.04045?Math.pow((e+.055)/1.055,2.4):e/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92;var a=e*.4124+r*.3576+n*.1805,i=e*.2126+r*.7152+n*.0722,o=e*.0193+r*.1192+n*.9505;return[a*100,i*100,o*100]};mt.rgb.lab=function(t){var e=mt.rgb.xyz(t),r=e[0],n=e[1],a=e[2],i,o,s;return r/=95.047,n/=100,a/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=a>.008856?Math.pow(a,1/3):7.787*a+16/116,i=116*n-16,o=500*(r-n),s=200*(n-a),[i,o,s]};mt.hsl.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,a,i,o,s,u;if(r===0)return u=n*255,[u,u,u];n<.5?i=n*(1+r):i=n+r-n*r,a=2*n-i,s=[0,0,0];for(var f=0;f<3;f++)o=e+1/3*-(f-1),o<0&&o++,o>1&&o--,6*o<1?u=a+(i-a)*6*o:2*o<1?u=i:3*o<2?u=a+(i-a)*(2/3-o)*6:u=a,s[f]=u*255;return s};mt.hsl.hsv=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=r,i=Math.max(n,.01),o,s;return n*=2,r*=n<=1?n:2-n,a*=i<=1?i:2-i,s=(n+r)/2,o=n===0?2*a/(i+a):2*r/(n+r),[e,o*100,s*100]};mt.hsv.rgb=function(t){var e=t[0]/60,r=t[1]/100,n=t[2]/100,a=Math.floor(e)%6,i=e-Math.floor(e),o=255*n*(1-r),s=255*n*(1-r*i),u=255*n*(1-r*(1-i));switch(n*=255,a){case 0:return[n,u,o];case 1:return[s,n,o];case 2:return[o,n,u];case 3:return[o,s,n];case 4:return[u,o,n];case 5:return[n,o,s]}};mt.hsv.hsl=function(t){var e=t[0],r=t[1]/100,n=t[2]/100,a=Math.max(n,.01),i,o,s;return s=(2-r)*n,i=(2-r)*a,o=r*a,o/=i<=1?i:2-i,o=o||0,s/=2,[e,o*100,s*100]};mt.hwb.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100,a=r+n,i,o,s,u;a>1&&(r/=a,n/=a),i=Math.floor(6*e),o=1-n,s=6*e-i,i&1&&(s=1-s),u=r+s*(o-r);var f,l,c;switch(i){default:case 6:case 0:f=o,l=u,c=r;break;case 1:f=u,l=o,c=r;break;case 2:f=r,l=o,c=u;break;case 3:f=r,l=u,c=o;break;case 4:f=u,l=r,c=o;break;case 5:f=o,l=r,c=u;break}return[f*255,l*255,c*255]};mt.cmyk.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,a=t[3]/100,i,o,s;return i=1-Math.min(1,e*(1-a)+a),o=1-Math.min(1,r*(1-a)+a),s=1-Math.min(1,n*(1-a)+a),[i*255,o*255,s*255]};mt.xyz.rgb=function(t){var e=t[0]/100,r=t[1]/100,n=t[2]/100,a,i,o;return a=e*3.2406+r*-1.5372+n*-.4986,i=e*-.9689+r*1.8758+n*.0415,o=e*.0557+r*-.204+n*1.057,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*12.92,o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92,a=Math.min(Math.max(0,a),1),i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),[a*255,i*255,o*255]};mt.xyz.lab=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return e/=95.047,r/=100,n/=108.883,e=e>.008856?Math.pow(e,1/3):7.787*e+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,n=n>.008856?Math.pow(n,1/3):7.787*n+16/116,a=116*r-16,i=500*(e-r),o=200*(r-n),[a,i,o]};mt.lab.xyz=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;i=(e+16)/116,a=r/500+i,o=i-n/200;var s=Math.pow(i,3),u=Math.pow(a,3),f=Math.pow(o,3);return i=s>.008856?s:(i-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,o=f>.008856?f:(o-16/116)/7.787,a*=95.047,i*=100,o*=108.883,[a,i,o]};mt.lab.lch=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return a=Math.atan2(n,r),i=a*360/2/Math.PI,i<0&&(i+=360),o=Math.sqrt(r*r+n*n),[e,o,i]};mt.lch.lab=function(t){var e=t[0],r=t[1],n=t[2],a,i,o;return o=n/360*2*Math.PI,a=r*Math.cos(o),i=r*Math.sin(o),[e,a,i]};mt.rgb.ansi16=function(t){var e=t[0],r=t[1],n=t[2],a=1 in arguments?arguments[1]:mt.rgb.hsv(t)[2];if(a=Math.round(a/50),a===0)return 30;var i=30+(Math.round(n/255)<<2|Math.round(r/255)<<1|Math.round(e/255));return a===2&&(i+=60),i};mt.hsv.ansi16=function(t){return mt.rgb.ansi16(mt.hsv.rgb(t),t[2])};mt.rgb.ansi256=function(t){var e=t[0],r=t[1],n=t[2];if(e===r&&r===n)return e<8?16:e>248?231:Math.round((e-8)/247*24)+232;var a=16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5);return a};mt.ansi16.rgb=function(t){var e=t%10;if(e===0||e===7)return t>50&&(e+=3.5),e=e/10.5*255,[e,e,e];var r=(~~(t>50)+1)*.5,n=(e&1)*r*255,a=(e>>1&1)*r*255,i=(e>>2&1)*r*255;return[n,a,i]};mt.ansi256.rgb=function(t){if(t>=232){var e=(t-232)*10+8;return[e,e,e]}t-=16;var r,n=Math.floor(t/36)/5*255,a=Math.floor((r=t%36)/6)/5*255,i=r%6/5*255;return[n,a,i]};mt.rgb.hex=function(t){var e=((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255),r=e.toString(16).toUpperCase();return"000000".substring(r.length)+r};mt.hex.rgb=function(t){var e=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!e)return[0,0,0];var r=e[0];e[0].length===3&&(r=r.split("").map(function(s){return s+s}).join(""));var n=parseInt(r,16),a=n>>16&255,i=n>>8&255,o=n&255;return[a,i,o]};mt.rgb.hcg=function(t){var e=t[0]/255,r=t[1]/255,n=t[2]/255,a=Math.max(Math.max(e,r),n),i=Math.min(Math.min(e,r),n),o=a-i,s,u;return o<1?s=i/(1-o):s=0,o<=0?u=0:a===e?u=(r-n)/o%6:a===r?u=2+(n-e)/o:u=4+(e-r)/o+4,u/=6,u%=1,[u*360,o*100,s*100]};mt.hsl.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1,a=0;return r<.5?n=2*e*r:n=2*e*(1-r),n<1&&(a=(r-.5*n)/(1-n)),[t[0],n*100,a*100]};mt.hsv.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=e*r,a=0;return n<1&&(a=(r-n)/(1-n)),[t[0],n*100,a*100]};mt.hcg.rgb=function(t){var e=t[0]/360,r=t[1]/100,n=t[2]/100;if(r===0)return[n*255,n*255,n*255];var a=[0,0,0],i=e%1*6,o=i%1,s=1-o,u=0;switch(Math.floor(i)){case 0:a[0]=1,a[1]=o,a[2]=0;break;case 1:a[0]=s,a[1]=1,a[2]=0;break;case 2:a[0]=0,a[1]=1,a[2]=o;break;case 3:a[0]=0,a[1]=s,a[2]=1;break;case 4:a[0]=o,a[1]=0,a[2]=1;break;default:a[0]=1,a[1]=0,a[2]=s}return u=(1-r)*n,[(r*a[0]+u)*255,(r*a[1]+u)*255,(r*a[2]+u)*255]};mt.hcg.hsv=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e),a=0;return n>0&&(a=e/n),[t[0],a*100,n*100]};mt.hcg.hsl=function(t){var e=t[1]/100,r=t[2]/100,n=r*(1-e)+.5*e,a=0;return n>0&&n<.5?a=e/(2*n):n>=.5&&n<1&&(a=e/(2*(1-n))),[t[0],a*100,n*100]};mt.hcg.hwb=function(t){var e=t[1]/100,r=t[2]/100,n=e+r*(1-e);return[t[0],(n-e)*100,(1-n)*100]};mt.hwb.hcg=function(t){var e=t[1]/100,r=t[2]/100,n=1-r,a=n-e,i=0;return a<1&&(i=(n-a)/(1-a)),[t[0],a*100,i*100]};mt.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};mt.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};mt.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};mt.gray.hsl=mt.gray.hsv=function(t){return[0,0,t[0]]};mt.gray.hwb=function(t){return[0,100,t[0]]};mt.gray.cmyk=function(t){return[0,0,0,t[0]]};mt.gray.lab=function(t){return[t[0],0,0]};mt.gray.hex=function(t){var e=Math.round(t[0]/100*255)&255,r=(e<<16)+(e<<8)+e,n=r.toString(16).toUpperCase();return"000000".substring(n.length)+n};mt.rgb.gray=function(t){var e=(t[0]+t[1]+t[2])/3;return[e/255*100]};var HT=YT.exports,$h=HT;function A7(){for(var t={},e=Object.keys($h),r=e.length,n=0;n1&&(r=Array.prototype.slice.call(arguments)),t(r))};return"conversion"in t&&(e.conversion=t.conversion),e}function D7(t){var e=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var n=t(r);if(typeof n=="object")for(var a=n.length,i=0;i>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;var o=Object.keys(t);"alpha"in t&&(o.splice(o.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);var s=o.sort().join("");if(!(s in dg))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=dg[s];var u=zn[this.model].labels,f=[];for(r=0;rr?(e+.05)/(r+.05):(r+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return e>=7.1?"AAA":e>=4.5?"AA":""},isDark:function(){var t=this.rgb().color,e=(t[0]*299+t[1]*587+t[2]*114)/1e3;return e<128},isLight:function(){return!this.isDark()},negate:function(){for(var t=this.rgb(),e=0;e<3;e++)t.color[e]=255-t.color[e];return t},lighten:function(t){var e=this.hsl();return e.color[2]+=e.color[2]*t,e},darken:function(t){var e=this.hsl();return e.color[2]-=e.color[2]*t,e},saturate:function(t){var e=this.hsl();return e.color[1]+=e.color[1]*t,e},desaturate:function(t){var e=this.hsl();return e.color[1]-=e.color[1]*t,e},whiten:function(t){var e=this.hwb();return e.color[1]+=e.color[1]*t,e},blacken:function(t){var e=this.hwb();return e.color[2]+=e.color[2]*t,e},grayscale:function(){var t=this.rgb().color,e=t[0]*.3+t[1]*.59+t[2]*.11;return pn.rgb(e,e,e)},fade:function(t){return this.alpha(this.valpha-this.valpha*t)},opaquer:function(t){return this.alpha(this.valpha+this.valpha*t)},rotate:function(t){var e=this.hsl(),r=e.color[0];return r=(r+t)%360,r=r<0?360+r:r,e.color[0]=r,e},mix:function(t,e){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);var r=t.rgb(),n=this.rgb(),a=e===void 0?.5:e,i=2*a-1,o=r.alpha()-n.alpha(),s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,u=1-s;return pn.rgb(s*r.red()+u*n.red(),s*r.green()+u*n.green(),s*r.blue()+u*n.blue(),r.alpha()*a+n.alpha()*(1-a))}};Object.keys(zn).forEach(function(t){if(ZT.indexOf(t)===-1){var e=zn[t].channels;pn.prototype[t]=function(){if(this.model===t)return new pn(this);if(arguments.length)return new pn(arguments,t);var r=typeof arguments[e]=="number"?e:this.valpha;return new pn(B7(zn[this.model][t].raw(this.color)).concat(r),t)},pn[t]=function(r){return typeof r=="number"&&(r=vg(Qy.call(arguments),e)),new pn(r,t)}}});function R7(t,e){return Number(t.toFixed(e))}function F7(t){return function(e){return R7(e,t)}}function Lr(t,e,r){return t=Array.isArray(t)?t:[t],t.forEach(function(n){(Xh[n]||(Xh[n]=[]))[e]=r}),t=t[0],function(n){var a;return arguments.length?(r&&(n=r(n)),a=this[t](),a.color[e]=n,a):(a=this[t]().color[e],r&&(a=r(a)),a)}}function qr(t){return function(e){return Math.max(0,Math.min(t,e))}}function B7(t){return Array.isArray(t)?t:[t]}function vg(t,e){for(var r=0;r=0,i=!r&&a&&(e==="hex"||e==="hex6"||e==="hex3"||e==="hex4"||e==="hex8"||e==="name");return i?e==="name"&&this._a===0?this.toName():this.toRgbString():(e==="rgb"&&(n=this.toRgbString()),e==="prgb"&&(n=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(n=this.toHexString()),e==="hex3"&&(n=this.toHexString(!0)),e==="hex4"&&(n=this.toHex8String(!0)),e==="hex8"&&(n=this.toHex8String()),e==="name"&&(n=this.toName()),e==="hsl"&&(n=this.toHslString()),e==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return wt(this.toString())},_applyModification:function(e,r){var n=e.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Z7,arguments)},brighten:function(){return this._applyModification(K7,arguments)},darken:function(){return this._applyModification(Q7,arguments)},desaturate:function(){return this._applyModification(Y7,arguments)},saturate:function(){return this._applyModification(q7,arguments)},greyscale:function(){return this._applyModification(H7,arguments)},spin:function(){return this._applyModification(J7,arguments)},_applyCombination:function(e,r){return e.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(rX,arguments)},complement:function(){return this._applyCombination(eX,arguments)},monochromatic:function(){return this._applyCombination(nX,arguments)},splitcomplement:function(){return this._applyCombination(tX,arguments)},triad:function(){return this._applyCombination(mE,[3])},tetrad:function(){return this._applyCombination(mE,[4])}};wt.fromRatio=function(t,e){if(Wh(t)=="object"){var r={};for(var n in t)t.hasOwnProperty(n)&&(n==="a"?r[n]=t[n]:r[n]=vf(t[n]));t=r}return wt(t,e)};function U7(t){var e={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof t=="string"&&(t=uX(t)),Wh(t)=="object"&&(oi(t.r)&&oi(t.g)&&oi(t.b)?(e=$7(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):oi(t.h)&&oi(t.s)&&oi(t.v)?(n=vf(t.s),a=vf(t.v),e=W7(t.h,n,a),o=!0,s="hsv"):oi(t.h)&&oi(t.s)&&oi(t.l)&&(n=vf(t.s),i=vf(t.l),e=X7(t.h,n,i),o=!0,s="hsl"),t.hasOwnProperty("a")&&(r=t.a)),r=KT(r),{ok:o,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:r}}function $7(t,e,r){return{r:Er(t,255)*255,g:Er(e,255)*255,b:Er(r,255)*255}}function vE(t,e,r){t=Er(t,255),e=Er(e,255),r=Er(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var u=n-a;switch(o=s>.5?u/(2-n-a):u/(n+a),n){case t:i=(e-r)/u+(e1&&(c-=1),c<1/6?f+(l-f)*6*c:c<1/2?l:c<2/3?f+(l-f)*(2/3-c)*6:f}if(e===0)n=a=i=r;else{var s=r<.5?r*(1+e):r+e-r*e,u=2*r-s;n=o(u,s,t+1/3),a=o(u,s,t),i=o(u,s,t-1/3)}return{r:n*255,g:a*255,b:i*255}}function pE(t,e,r){t=Er(t,255),e=Er(e,255),r=Er(r,255);var n=Math.max(t,e,r),a=Math.min(t,e,r),i,o,s=n,u=n-a;if(o=n===0?0:u/n,n==a)i=0;else{switch(n){case t:i=(e-r)/u+(e>1)+720)%360;--e;)n.h=(n.h+a)%360,i.push(wt(n));return i}function nX(t,e){e=e||6;for(var r=wt(t).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/e;e--;)o.push(wt({h:n,s:a,v:i})),i=(i+s)%1;return o}wt.mix=function(t,e,r){r=r===0?0:r||50;var n=wt(t).toRgb(),a=wt(e).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return wt(o)};wt.readability=function(t,e){var r=wt(t),n=wt(e);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};wt.isReadable=function(t,e,r){var n=wt.readability(t,e),a,i;switch(i=!1,a=fX(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};wt.mostReadable=function(t,e,r){var n=null,a=0,i,o,s,u;r=r||{},o=r.includeFallbackColors,s=r.level,u=r.size;for(var f=0;fa&&(a=i,n=wt(e[f]));return wt.isReadable(t,n,{level:s,size:u})||!o?n:(r.includeFallbackColors=!1,wt.mostReadable(t,["#fff","#000"],r))};var pg=wt.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},aX=wt.hexNames=iX(pg);function iX(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}function KT(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function Er(t,e){oX(t)&&(t="100%");var r=sX(t);return t=Math.min(e,Math.max(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function Fd(t){return Math.min(1,Math.max(0,t))}function Fn(t){return parseInt(t,16)}function oX(t){return typeof t=="string"&&t.indexOf(".")!=-1&&parseFloat(t)===1}function sX(t){return typeof t=="string"&&t.indexOf("%")!=-1}function ma(t){return t.length==1?"0"+t:""+t}function vf(t){return t<=1&&(t=t*100+"%"),t}function QT(t){return Math.round(parseFloat(t)*255).toString(16)}function bE(t){return Fn(t)/255}var ha=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",r="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function oi(t){return!!ha.CSS_UNIT.exec(t)}function uX(t){t=t.replace(z7,"").replace(j7,"").toLowerCase();var e=!1;if(pg[t])t=pg[t],e=!0;else if(t=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=ha.rgb.exec(t))?{r:r[1],g:r[2],b:r[3]}:(r=ha.rgba.exec(t))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ha.hsl.exec(t))?{h:r[1],s:r[2],l:r[3]}:(r=ha.hsla.exec(t))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ha.hsv.exec(t))?{h:r[1],s:r[2],v:r[3]}:(r=ha.hsva.exec(t))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ha.hex8.exec(t))?{r:Fn(r[1]),g:Fn(r[2]),b:Fn(r[3]),a:bE(r[4]),format:e?"name":"hex8"}:(r=ha.hex6.exec(t))?{r:Fn(r[1]),g:Fn(r[2]),b:Fn(r[3]),format:e?"name":"hex"}:(r=ha.hex4.exec(t))?{r:Fn(r[1]+""+r[1]),g:Fn(r[2]+""+r[2]),b:Fn(r[3]+""+r[3]),a:bE(r[4]+""+r[4]),format:e?"name":"hex8"}:(r=ha.hex3.exec(t))?{r:Fn(r[1]+""+r[1]),g:Fn(r[2]+""+r[2]),b:Fn(r[3]+""+r[3]),format:e?"name":"hex"}:!1}function fX(t){var e,r;return t=t||{level:"AA",size:"small"},e=(t.level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),e!=="AA"&&e!=="AAA"&&(e="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:e,size:r}}var Nc=2,wE=.16,lX=.05,cX=.05,hX=.15,JT=5,eI=4,dX=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function xE(t,e,r){var n;return Math.round(t.h)>=60&&Math.round(t.h)<=240?n=r?Math.round(t.h)-Nc*e:Math.round(t.h)+Nc*e:n=r?Math.round(t.h)+Nc*e:Math.round(t.h)-Nc*e,n<0?n+=360:n>=360&&(n-=360),n}function EE(t,e,r){if(t.h===0&&t.s===0)return t.s;var n;return r?n=t.s-wE*e:e===eI?n=t.s+wE:n=t.s+lX*e,n>1&&(n=1),r&&e===JT&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function _E(t,e,r){var n;return r?n=t.v+cX*e:n=t.v-hX*e,n>1&&(n=1),Number(n.toFixed(2))}function Vh(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=wt(t),a=JT;a>0;a-=1){var i=n.toHsv(),o=wt({h:xE(i,a,!0),s:EE(i,a,!0),v:_E(i,a,!0)}).toHexString();r.push(o)}r.push(n.toHexString());for(var s=1;s<=eI;s+=1){var u=n.toHsv(),f=wt({h:xE(u,s),s:EE(u,s),v:_E(u,s)}).toHexString();r.push(f)}return e.theme==="dark"?dX.map(function(l){var c=l.index,h=l.opacity,d=wt.mix(e.backgroundColor||"#141414",r[c],h*100).toHexString();return d}):r}var Op={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Lp={},Dp={};Object.keys(Op).forEach(function(t){Lp[t]=Vh(Op[t]),Lp[t].primary=Lp[t][5],Dp[t]=Vh(Op[t],{theme:"dark",backgroundColor:"#141414"}),Dp[t].primary=Dp[t][5]});var Zr=function(e,r,n){var a=Sf(e),i=Sf(r);return Sf([(1-n)*a.red()+n*i.red(),(1-n)*a.green()+n*i.green(),(1-n)*a.blue()+n*i.blue()]).rgb()},vX=function(e,r,n){r===void 0&&(r="#fff");var a=Zr(r,e,.05).rgb().toString(),i=Zr(r,e,.1).rgb().toString(),o=Zr(r,e,.2).rgb().toString(),s=Zr(r,e,.4).rgb().toString(),u=Zr(r,n,.02).rgb().toString(),f=Zr(r,n,.05).rgb().toString(),l=Zr(r,n,.1).rgb().toString(),c=Zr(r,n,.2).rgb().toString(),h=Zr(r,n,.3).rgb().toString(),d=Vh(e,{theme:"default",backgroundColor:r}),v=Sf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:e,mainFill:i,activeStroke:e,activeFill:a,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:r,highlightStroke:g,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:h,edgeActiveStroke:e,edgeInactiveStroke:c,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:h,comboMainFill:u,comboActiveStroke:e,comboActiveFill:a,comboInactiveStroke:h,comboInactiveFill:u,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:u,comboDisableStroke:c,comboDisableFill:f}},pX=function(e,r,n){r===void 0&&(r="#fff");var a=Zr(r,e,.2).rgb().toString(),i=Zr(r,e,.3).rgb().toString(),o=Zr(r,e,.6).rgb().toString(),s=Zr(r,e,.8).rgb().toString(),u=Zr(r,n,.2).rgb().toString(),f=Zr(r,n,.25).rgb().toString(),l=Zr(r,n,.3).rgb().toString(),c=Zr(r,n,.4).rgb().toString(),h=Zr(r,n,.5).rgb().toString(),d=Vh(e,{theme:"dark",backgroundColor:r}),v=Sf(e).hex().toLowerCase(),p=d.indexOf(v),g=e;return p!==-1&&(g=d[p+1]),{mainStroke:s,mainFill:a,activeStroke:e,activeFill:i,inactiveStroke:s,inactiveFill:a,selectedStroke:e,selectedFill:a,highlightStroke:e,highlightFill:o,disableStroke:h,disableFill:f,edgeMainStroke:n,edgeActiveStroke:e,edgeInactiveStroke:n,edgeSelectedStroke:e,edgeHighlightStroke:e,edgeDisableStroke:l,comboMainStroke:c,comboMainFill:f,comboActiveStroke:e,comboActiveFill:u,comboInactiveStroke:c,comboInactiveFill:f,comboSelectedStroke:e,comboSelectedFill:u,comboHighlightStroke:g,comboHighlightFill:f,comboDisableStroke:c,comboDisableFill:u}},Jy=function(e,r,n,a){return r===void 0&&(r="#fff"),n===void 0&&(n="default"),n==="default"?vX(e,r,"rgb(150, 150, 150)"):pX(e,r,"#777")},gX=function(e,r,n,a){r===void 0&&(r="#fff"),n===void 0&&(n="default");var i=[];return e.forEach(function(o){i.push(Jy(o,r,n))}),i};const yX=Object.freeze(Object.defineProperty({__proto__:null,getColorSetsBySubjectColors:gX,getColorsWithSubjectColor:Jy,mixColor:Zr},Symbol.toStringTag,{value:"Module"}));var mX="rgb(95, 149, 255)",bX="rgb(255, 255, 255)",Ht=Jy(mX,bX);const Mf={defaultNode:{style:{stroke:Ht.mainStroke,fill:Ht.mainFill},color:Ht.mainStroke,linkPoints:{fill:Ht.activeFill,stroke:Ht.activeStroke}},nodeStateStyles:{active:{fill:Ht.activeFill,stroke:Ht.activeStroke,shadowColor:Ht.mainStroke},selected:{fill:Ht.selectedFill,stroke:Ht.selectedStroke,shadowColor:Ht.selectedStroke},highlight:{fill:Ht.highlightFill,stroke:Ht.highlightStroke},inactive:{fill:Ht.inactiveFill,stroke:Ht.inactiveStroke},disable:{fill:Ht.disableFill,stroke:Ht.disableStroke}},defaultEdge:{style:{stroke:Ht.edgeMainStroke},color:Ht.edgeMainStroke},edgeStateStyles:{active:{stroke:Ht.edgeActiveStroke},selected:{stroke:Ht.edgeSelectedStroke,shadowColor:Ht.edgeSelectedStroke},highlight:{stroke:Ht.edgeHighlightStroke},inactive:{stroke:Ht.edgeInactiveStroke},disable:{stroke:Ht.edgeDisableStroke}},defaultCombo:{style:{fill:Ht.comboMainFill,stroke:Ht.comboMainStroke},color:Ht.comboMainStroke},comboStateStyles:{active:{stroke:Ht.comboActiveStroke,fill:Ht.comboActiveFill},selected:{stroke:Ht.comboSelectedStroke,fill:Ht.comboSelectedFill,shadowColor:Ht.comboSelectedStroke},highlight:{stroke:Ht.comboHighlightStroke,fill:Ht.comboHighlightFill},inactive:{stroke:Ht.comboInactiveStroke,fill:Ht.comboInactiveFill},disable:{stroke:Ht.comboDisableStroke,fill:Ht.comboDisableFill}},delegateStyle:{fill:"#F3F9FF",fillOpacity:.5,stroke:"#1890FF",strokeOpacity:.9,lineDash:[5,5]},textWaterMarkerConfig:{width:150,height:100,compatible:!1,text:{x:0,y:60,lineHeight:20,rotate:20,fontSize:14,fontFamily:"Microsoft YaHei",fill:"rgba(0, 0, 0, 0.1)",baseline:"Middle"}},imageWaterMarkerConfig:{width:150,height:130,compatible:!1,image:{x:0,y:0,width:30,height:20,rotate:0}},waterMarkerImage:"https://gw.alipayobjects.com/os/s/prod/antv/assets/image/logo-with-text-73b8a.svg"};var wX=function(e){var r=e.clone();return tI(e,r),r},tI=function(e,r){var n;e.isGroup()&&r.isGroup()&&((n=e.get("children"))===null||n===void 0||n.forEach(function(s,u){var f=r.get("children")[u];tI(s,f)}));var a=e.get("type"),i=r.get("type");if(!(a!=="image"||i!=="image")){var o=e.get("clipShape");o&&r.setClip({type:o.get("type"),attrs:o.attr()})}},xX=Za.cloneEvent,EX=Za.isViewportChanged,_X=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.extendEvents=[],n.dragging=!1,n.mousedown=!1,n.preItem=null,n.destroy(),n.graph=r,n.destroyed=!1,n.initEvents(),n}return e.prototype.initEvents=function(){var r=this,n=r.graph,a=r.extendEvents,i=a===void 0?[]:a,o=n.get("canvas"),s=o.get("el"),u=Bs(this,"onCanvasEvents"),f=Bs(this,"onExtendEvents"),l=Bs(this,"onWheelEvent");o.off("*").on("*",u),this.canvasHandler=u,i.push(Ic(s,"wheel",l)),typeof window<"u"&&(i.push(Ic(window,"keydown",f)),i.push(Ic(window,"keyup",f)),i.push(Ic(window,"focus",f))),this.resetHandler&&n.off("afterchangedata",this.resetHandler),this.resetHandler=Bs(this,"resetStatus"),n.on("afterchangedata",this.resetHandler)},e.getItemRoot=function(r){for(;r&&!r.get("item");)r=r.get("parent");return r},e.prototype.onCanvasEvents=function(r){var n=this,a=this.graph,i=a.get("canvas"),o=r.target,s=r.type;switch(s){case"drag":this.onCanvasEvents(Object.assign({},r,{type:"mousemove"}));break;case"dragend":this.onCanvasEvents(Object.assign({},r,{type:"mouseup"}));break;case"mousedown":this.mousedown=!0;break;case"mouseup":setTimeout(function(){return n.mousedown=!1});break;case"click":if(!this.mousedown)return;break}r.canvasX=r.x,r.canvasY=r.y;var u={x:r.canvasX,y:r.canvasY},f=a.get("group"),l=f.getMatrix();if(l||(l=[1,0,0,0,1,0,0,0,1]),EX(l)&&(u=a.getPointByClient(r.clientX,r.clientY)),r.x=u.x,r.y=u.y,r.currentTarget=a,o===i){(s==="mousemove"||s==="mouseleave")&&this.handleMouseMove(r,"canvas"),r.target=i,r.item=null,a.emit(s,r),a.emit("canvas:".concat(s),r);return}var c=e.getItemRoot(o);if(!c){a.emit(s,r);return}var h=c.get("item");if(!h.destroyed){var d=h.getType();if(r.target=o,r.item=h,r.canvasX===r.x&&r.canvasY===r.y){var v=a.getCanvasByPoint(r.x,r.y);r.canvasX=v.x,r.canvasY=v.y}r.name&&!r.name.includes(":")?(a.emit("".concat(d,":").concat(s),r),a.emit(s,r)):r.name&&a.emit(r.name,r),s==="dragstart"&&(this.dragging=!0),s==="dragend"&&(this.dragging=!1),s==="mousemove"&&this.handleMouseMove(r,d)}},e.prototype.onExtendEvents=function(r){this.graph.emit(r.type,r)},e.prototype.onWheelEvent=function(r){Zt(r.wheelDelta)&&(r.wheelDelta=-r.detail),this.graph.emit("wheel",r)},e.prototype.handleMouseMove=function(r,n){var a=this,i=a.graph,o=a.preItem,s=i.get("canvas"),u=r.target===s?null:r.item;r=xX(r),o&&o!==u&&!o.destroyed&&(r.item=o,this.emitCustomEvent(o.getType(),"mouseleave",r),this.dragging&&this.emitCustomEvent(o.getType(),"dragleave",r)),u&&o!==u&&(r.item=u,this.emitCustomEvent(n,"mouseenter",r),this.dragging&&this.emitCustomEvent(n,"dragenter",r)),this.preItem=u},e.prototype.emitCustomEvent=function(r,n,a){a.type=n,this.graph.emit("".concat(r,":").concat(n),a)},e.prototype.resetStatus=function(){this.mousedown=!1,this.dragging=!1,this.preItem=null},e.prototype.destroy=function(){var r=this,n=r.graph,a=r.canvasHandler,i=r.extendEvents,o=n.get("canvas");o.off("*",a),_e(i,function(s){s.remove()}),this.resetStatus(),this.extendEvents.length=0,this.canvasHandler=null,this.resetHandler=null,this.destroyed=!0},e}(F8),Kt={},gi={},Rr={};Object.defineProperty(Rr,"__esModule",{value:!0});Rr.Base=void 0;var SX=function(){function t(){this.nodes=[],this.edges=[],this.combos=[],this.comboEdges=[],this.hiddenNodes=[],this.hiddenEdges=[],this.hiddenCombos=[],this.vedges=[],this.positions=[],this.destroyed=!1,this.onLayoutEnd=function(){}}return t.prototype.layout=function(e){return this.init(e),this.execute(!0)},t.prototype.init=function(e){this.nodes=e.nodes||[],this.edges=e.edges||[],this.combos=e.combos||[],this.comboEdges=e.comboEdges||[],this.hiddenNodes=e.hiddenNodes||[],this.hiddenEdges=e.hiddenEdges||[],this.hiddenCombos=e.hiddenCombos||[],this.vedges=e.vedges||[]},t.prototype.execute=function(e){},t.prototype.executeWithWorker=function(){},t.prototype.getDefaultCfg=function(){return{}},t.prototype.updateCfg=function(e){e&&Object.assign(this,e)},t.prototype.getType=function(){return"base"},t.prototype.destroy=function(){this.nodes=null,this.edges=null,this.combos=null,this.positions=null,this.destroyed=!0},t}();Rr.Base=SX;var Pp={},nu={};Object.defineProperty(nu,"__esModule",{value:!0});nu.camelize=nu.isString=void 0;var MX=function(t){return typeof t=="string"};nu.isString=MX;var AX=function(t){var e=Object.create(null);return function(r){var n=e[r];return n||(e[r]=t(r))}},CX=/-(\w)/g;nu.camelize=AX(function(t){return t.replace(CX,function(e,r){return r?r.toUpperCase():""})});var ol={};Object.defineProperty(ol,"__esModule",{value:!0});ol.isArray=void 0;ol.isArray=Array.isArray;var Bd={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.toNumber=t.isNaN=t.isNumber=void 0;var e=function(a){return typeof a=="number"};t.isNumber=e;var r=function(a){return Number.isNaN(Number(a))};t.isNaN=r;var n=function(a){var i=parseFloat(a);return(0,t.isNaN)(i)?a:i};t.toNumber=n})(Bd);var Gd={},em={};(function(t){var e=me&&me.__assign||function(){return e=Object.assign||function(a){for(var i,o=1,s=arguments.length;ob[x][_]+b[_][E]&&(b[x][E]=b[x][_]+b[_][E]);return b};t.floydWarshall=s;var u=function(m,b){var w=m.nodes,x=m.edges,E=[],_={};if(!w)throw new Error("invalid nodes data!");return w&&w.forEach(function(S,A){_[S.id]=A;var M=[];E.push(M)}),x==null||x.forEach(function(S){var A=(0,t.getEdgeTerminal)(S,"source"),M=(0,t.getEdgeTerminal)(S,"target"),C=_[A],I=_[M];C===void 0||I===void 0||(E[C][I]=1,b||(E[I][C]=1))}),E};t.getAdjMatrix=u;var f=function(m,b){var w=[];return m.forEach(function(x){var E=[];x.forEach(function(_){E.push(_*b)}),w.push(E)}),w};t.scaleMatrix=f;var l=function(m,b){if(m&&m.children){for(var w=m.children.length-1;w>=0;w--)if(!l(m.children[w],b))return}return!!b(m)},c=function(m,b){typeof b=="function"&&l(m,b)};t.traverseTreeUp=c;var h=function(m){var b=1/0,w=1/0,x=-1/0,E=-1/0;return m.forEach(function(_){var S=_.size;(0,e.isArray)(S)?S.length===1&&(S=[S[0],S[0]]):(0,r.isNumber)(S)?S=[S,S]:(S===void 0||isNaN(S))&&(S=[30,30]);var A=[S[0]/2,S[1]/2],M=_.x-A[0],C=_.x+A[0],I=_.y-A[1],k=_.y+A[1];b>M&&(b=M),w>I&&(w=I),xf.size[1]?f.size[0]:f.size[1]:(0,e.isObject)(f.size)?f.size.width>f.size.height?f.size.width:f.size.height:f.size:o}:(0,t.isFunction)(s)?s:(0,r.isNumber)(s)?function(){return s}:(0,e.isArray)(s)?function(){if(u){var f=Math.max.apply(Math,s);return isNaN(f)?o:f}return s}:(0,e.isObject)(s)?function(){if(u){var f=Math.max(s.width,s.height);return isNaN(f)?o:f}return[s.width,s.height]}:function(){return o}};t.getFuncByUnknownType=i}(Rp)),Rp}var ME;function Ir(){return ME||(ME=1,function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(nu,t),r(ol,t),r(Bd,t),r(Gd,t),r(em,t),r(TX(),t)}(Pp)),Pp}var IX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(gi,"__esModule",{value:!0});gi.getLayoutByName=gi.unRegisterLayout=gi.registerLayout=void 0;var kX=Rr,NX=Ir(),Ui=new Map,OX=function(t,e){if(Ui.get(t)&&console.warn("The layout with the name ".concat(t," exists already, it will be overridden")),(0,NX.isObject)(e)){var r=function(n){IX(a,n);function a(i){var o=this,s;o=n.call(this)||this;var u=o,f={},l=Object.assign({},u.getDefaultCfg(),((s=e.getDefaultCfg)===null||s===void 0?void 0:s.call(e))||{});return Object.assign(f,l,e,i),Object.keys(f).forEach(function(c){var h=f[c];u[c]=h}),o}return a}(kX.Base);Ui.set(t,r)}else Ui.set(t,e);return Ui.get(t)};gi.registerLayout=OX;var LX=function(t){Ui.has(t)&&Ui.delete(t)};gi.unRegisterLayout=LX;var DX=function(t){return Ui.has(t)?Ui.get(t):null};gi.getLayoutByName=DX;var Fp={},sl={},PX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(sl,"__esModule",{value:!0});sl.GridLayout=void 0;var xs=Ir(),RX=Rr,FX=function(t){PX(e,t);function e(r){var n=t.call(this)||this;return n.begin=[0,0],n.preventOverlap=!0,n.preventOverlapPadding=10,n.condense=!1,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.row=0,n.col=0,n.cellWidth=0,n.cellHeight=0,n.cellUsed={},n.id2manPos={},n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30}},e.prototype.execute=function(){var r=this,n=r.nodes,a=r.edges,i=r.begin,o=n.length;if(o===0)return r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a};if(o===1)return n[0].x=i[0],n[0].y=i[1],r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a};var s=r.sortBy,u=r.width,f=r.height,l=r.condense,c=r.preventOverlapPadding,h=r.preventOverlap,d=r.nodeSpacing,v=r.nodeSize,p=[];n.forEach(function(I){p.push(I)});var g={};if(p.forEach(function(I,k){g[I.id]=k}),(s==="degree"||!(0,xs.isString)(s)||p[0][s]===void 0)&&(s="degree",(0,xs.isNaN)(n[0].degree))){var y=(0,xs.getDegree)(p.length,g,a);p.forEach(function(I,k){I.degree=y[k].all})}p.sort(function(I,k){return k[s]-I[s]}),!u&&typeof window<"u"&&(u=window.innerWidth),!f&&typeof window<"u"&&(f=window.innerHeight);var m=r.rows,b=r.cols!=null?r.cols:r.columns;if(r.cells=o,m!=null&&b!=null?(r.rows=m,r.cols=b):m!=null&&b==null?(r.rows=m,r.cols=Math.ceil(r.cells/r.rows)):m==null&&b!=null?(r.cols=b,r.rows=Math.ceil(r.cells/r.cols)):(r.splits=Math.sqrt(r.cells*r.height/r.width),r.rows=Math.round(r.splits),r.cols=Math.round(r.width/r.height*r.splits)),r.rows=Math.max(r.rows,1),r.cols=Math.max(r.cols,1),r.cols*r.rows>r.cells){var w=r.small(),x=r.large();(w-1)*x>=r.cells?r.small(w-1):(x-1)*w>=r.cells&&r.large(x-1)}else for(;r.cols*r.rows=r.cells?r.large(x+1):r.small(w+1)}if(r.cellWidth=u/r.cols,r.cellHeight=f/r.rows,l&&(r.cellWidth=0,r.cellHeight=0),h||d){var E=(0,xs.getFuncByUnknownType)(10,d),_=(0,xs.getFuncByUnknownType)(30,v,!1);p.forEach(function(I){(!I.x||!I.y)&&(I.x=0,I.y=0);var k=_(I)||30,O,B;(0,xs.isArray)(k)?(O=k[0],B=k[1]):(O=k,B=k);var L=E!==void 0?E(I):c,z=O+L,X=B+L;r.cellWidth=Math.max(r.cellWidth,z),r.cellHeight=Math.max(r.cellHeight,X)})}r.cellUsed={},r.row=0,r.col=0,r.id2manPos={};for(var S=0;S=n&&(r.col=0,r.row++)},e.prototype.getPos=function(r){var n=this,a=n.begin,i=n.cellWidth,o=n.cellHeight,s,u,f=n.id2manPos[r.id];if(f)s=f.col*i+i/2+a[0],u=f.row*o+o/2+a[1];else{for(;n.used(n.row,n.col);)n.moveToNextCell();s=n.col*i+i/2+a[0],u=n.row*o+o/2+a[1],n.use(n.row,n.col),n.moveToNextCell()}r.x=s,r.y=u},e.prototype.getType=function(){return"grid"},e}(RX.Base);sl.GridLayout=FX;var ul={},BX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(ul,"__esModule",{value:!0});ul.RandomLayout=void 0;var GX=Rr,zX=function(t){BX(e,t);function e(r){var n=t.call(this)||this;return n.center=[0,0],n.width=300,n.height=300,n.nodes=[],n.edges=[],n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{center:[0,0],width:300,height:300}},e.prototype.execute=function(){var r=this,n=r.nodes,a=.9,i=r.center;return!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),n&&n.forEach(function(o){o.x=(Math.random()-.5)*a*r.width+i[0],o.y=(Math.random()-.5)*a*r.height+i[1]}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:this.edges}},e.prototype.getType=function(){return"random"},e}(GX.Base);ul.RandomLayout=zX;var fl={},jX=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(fl,"__esModule",{value:!0});fl.GForceLayout=void 0;var UX=Rr,yn=Ir(),Bp=function(t,e){var r;return t?(0,yn.isNumber)(t)?r=function(n){return t}:r=t:r=function(n){return e},r},$X=function(t){jX(e,t);function e(r){var n=t.call(this)||this;return n.maxIteration=500,n.workerEnabled=!1,n.edgeStrength=200,n.nodeStrength=1e3,n.coulombDisScale=.005,n.damping=.9,n.maxSpeed=1e3,n.minMovement=.5,n.interval=.02,n.factor=1,n.linkDistance=1,n.gravity=10,n.preventOverlap=!0,n.collideStrength=1,n.tick=function(){},n.nodes=[],n.edges=[],n.width=300,n.height=300,n.nodeMap={},n.nodeIdxMap={},n.animate=!0,n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var r,n,a=this,i=a.nodes;if(a.timeInterval!==void 0&&typeof window<"u"&&window.clearInterval(a.timeInterval),!i||i.length===0){(r=a.onLayoutEnd)===null||r===void 0||r.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var o=a.center;if(i.length===1){i[0].x=o[0],i[0].y=o[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var s={},u={};i.forEach(function(v,p){(0,yn.isNumber)(v.x)||(v.x=Math.random()*a.width),(0,yn.isNumber)(v.y)||(v.y=Math.random()*a.height),s[v.id]=v,u[v.id]=p}),a.nodeMap=s,a.nodeIdxMap=u,a.linkDistance=Bp(a.linkDistance,1),a.nodeStrength=Bp(a.nodeStrength,1),a.edgeStrength=Bp(a.edgeStrength,1);var f=a.nodeSize,l;if(a.preventOverlap){var c=a.nodeSpacing,h;(0,yn.isNumber)(c)?h=function(){return c}:(0,yn.isFunction)(c)?h=c:h=function(){return 0},f?(0,yn.isArray)(f)?l=function(v){return Math.max(f[0],f[1])+h(v)}:l=function(v){return f+h(v)}:l=function(v){return v.size?(0,yn.isArray)(v.size)?Math.max(v.size[0],v.size[1])+h(v):(0,yn.isObject)(v.size)?Math.max(v.size.width,v.size.height)+h(v):v.size+h(v):10+h(v)}}a.nodeSize=l;var d=a.edges;a.degrees=(0,yn.getDegree)(i.length,a.nodeIdxMap,d),a.getMass||(a.getMass=function(v){var p=v.mass||a.degrees[a.nodeIdxMap[v.id]].all||1;return p}),a.run()},e.prototype.run=function(){var r,n=this,a=n.maxIteration,i=n.nodes,o=n.workerEnabled,s=n.minMovement,u=n.animate;if(i)if(o||!u){for(var f=0;f"u")return;var c=0;this.timeInterval=window.setInterval(function(){var h,d;if(i){var v=n.runOneStep(c)||[];n.reachMoveThreshold(i,v,s)&&((h=n.onLayoutEnd)===null||h===void 0||h.call(n),window.clearInterval(n.timeInterval)),c++,c>=a&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))}},0)}},e.prototype.reachMoveThreshold=function(r,n,a){var i=0;return r.forEach(function(o,s){var u=o.x-n[s].x,f=o.y-n[s].y;i+=Math.sqrt(u*u+f*f)}),i/=r.length,i=y)){var m=d.x-g.x,b=d.y-g.y;m===0&&b===0&&(m=Math.random()*.01,b=Math.random()*.01);var w=m*m+b*b,x=Math.sqrt(w),E=(x+.1)*s,_=m/x,S=b/x,A=(c(d)+c(g))*.5*o/(E*E),M=i?i(g):1;if(r[2*v]+=_*A,r[2*v+1]+=S*A,r[2*y]-=_*A,r[2*y+1]-=S*A,u&&(h(d)+h(g))/2>x){var C=l*(c(d)+c(g))*.5/w;r[2*v]+=_*C/p,r[2*v+1]+=S*C/p,r[2*y]-=_*C/M,r[2*y+1]-=S*C/M}}})})},e.prototype.calAttractive=function(r,n){var a=this,i=a.nodeMap,o=a.nodeIdxMap,s=a.linkDistance,u=a.edgeStrength,f=a.nodeSize,l=a.getMass;n.forEach(function(c,h){var d=(0,yn.getEdgeTerminal)(c,"source"),v=(0,yn.getEdgeTerminal)(c,"target"),p=i[d],g=i[v],y=g.x-p.x,m=g.y-p.y;y===0&&m===0&&(y=Math.random()*.01,m=Math.random()*.01);var b=Math.sqrt(y*y+m*m),w=y/b,x=m/b,E=s(c,p,g)||1+(f(p)+f(g)||0)/2,_=E-b,S=_*u(c),A=o[d],M=o[v],C=l?l(p):1,I=l?l(g):1;r[2*A]-=w*S/C,r[2*A+1]-=x*S/C,r[2*M]+=w*S/I,r[2*M+1]+=x*S/I})},e.prototype.calGravity=function(r,n){for(var a=this,i=a.center,o=a.gravity,s=a.degrees,u=n.length,f=0;fo.maxSpeed){var d=o.maxSpeed/h;l=d*l,c=d*c}n[2*f]=l,n[2*f+1]=c})},e.prototype.updatePosition=function(r,n,a){a.forEach(function(i,o){if((0,yn.isNumber)(i.fx)&&(0,yn.isNumber)(i.fy)){i.x=i.fx,i.y=i.fy;return}var s=r[2*o]*n,u=r[2*o+1]*n;i.x+=s,i.y+=u})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"gForce"},e}(UX.Base);fl.GForceLayout=$X;var ll={},zd={};function XX(t){const e=+this._x.call(null,t),r=+this._y.call(null,t);return rI(this.cover(e,r),e,r,t)}function rI(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var a,i=t._root,o={data:n},s=t._x0,u=t._y0,f=t._x1,l=t._y1,c,h,d,v,p,g,y,m;if(!i)return t._root=o,t;for(;i.length;)if((p=e>=(c=(s+f)/2))?s=c:f=c,(g=r>=(h=(u+l)/2))?u=h:l=h,a=i,!(i=i[y=g<<1|p]))return a[y]=o,t;if(d=+t._x.call(null,i.data),v=+t._y.call(null,i.data),e===d&&r===v)return o.next=i,a?a[y]=o:t._root=o,t;do a=a?a[y]=new Array(4):t._root=new Array(4),(p=e>=(c=(s+f)/2))?s=c:f=c,(g=r>=(h=(u+l)/2))?u=h:l=h;while((y=g<<1|p)===(m=(v>=h)<<1|d>=c));return a[m]=i,a[y]=o,t}function WX(t){var e,r,n=t.length,a,i,o=new Array(n),s=new Array(n),u=1/0,f=1/0,l=-1/0,c=-1/0;for(r=0;rl&&(l=a),ic&&(c=i));if(u>l||f>c)return this;for(this.cover(u,f).cover(l,c),r=0;rt||t>=a||n>e||e>=i;)switch(f=(el||(s=v.y0)>c||(u=v.x1)=y)<<1|t>=g)&&(v=h[h.length-1],h[h.length-1]=h[h.length-1-p],h[h.length-1-p]=v)}else{var m=t-+this._x.call(null,d.data),b=e-+this._y.call(null,d.data),w=m*m+b*b;if(w=(h=(o+u)/2))?o=h:u=h,(p=c>=(d=(s+f)/2))?s=d:f=d,e=r,!(r=r[g=p<<1|v]))return this;if(!r.length)break;(e[g+1&3]||e[g+2&3]||e[g+3&3])&&(n=e,y=g)}for(;r.data!==t;)if(a=r,!(r=r.next))return this;return(i=r.next)&&delete r.next,a?(i?a.next=i:delete a.next,this):e?(i?e[g]=i:delete e[g],(r=e[0]||e[1]||e[2]||e[3])&&r===(e[3]||e[2]||e[1]||e[0])&&!r.length&&(n?n[y]=r:this._root=r),this):(this._root=i,this)}function KX(t){for(var e=0,r=t.length;e1&&(S=(0,Hr.getAvgNodePosition)(M))}else S=void 0;return{x:S==null?void 0:S.x,y:S==null?void 0:S.y}}}}if(a){c||(c=this.getSameTypeLeafMap());var d=Array.from(new Set(o.map(function(b,w){return b[i]}))).filter(function(b){return b!==void 0}),v={};d.forEach(function(b){var w=o.filter(function(x){return x[i]===b}).map(function(x){return s[x.id]});v[b]=(0,Hr.getAvgNodePosition)(w)}),l={single:function(b){return f(b)},leaf:function(b){return f(b)},others:function(b){return f(b)},center:function(b,w,x){var E=v[b[i]];return{x:E==null?void 0:E.x,y:E==null?void 0:E.y}}}}this.centripetalOptions=da(da({},this.centripetalOptions),l);var p=this.centripetalOptions,g=p.leaf,y=p.single,m=p.others;g&&typeof g!="function"&&(this.centripetalOptions.leaf=function(){return g}),y&&typeof y!="function"&&(this.centripetalOptions.single=function(){return y}),m&&typeof m!="function"&&(this.centripetalOptions.others=function(){return m})},e.prototype.updateCfg=function(r){r&&Object.assign(this,r)},e.prototype.getDefaultCfg=function(){return{maxIteration:500,gravity:10,enableTick:!0,animate:!0}},e.prototype.execute=function(){var r=this;r.stop();var n=r.nodes,a=r.edges,i=r.defSpringLen;if(r.judgingDistance=0,!n||n.length===0){r.onLayoutEnd([]);return}!r.width&&typeof window<"u"&&(r.width=window.innerWidth),!r.height&&typeof window<"u"&&(r.height=window.innerHeight),r.center||(r.center=[r.width/2,r.height/2]);var o=r.center;if(n.length===1){n[0].x=o[0],n[0].y=o[1],r.onLayoutEnd([da({},n[0])]);return}r.degreesMap=(0,Hr.getDegreeMap)(n,a),r.propsGetMass?r.getMass=r.propsGetMass:r.getMass=function(d){var v=1;(0,Hr.isNumber)(d.mass)&&(v=d.mass);var p=r.degreesMap[d.id].all;return!p||p<5?v:p*5*v};var s=r.nodeSize,u;if(r.preventOverlap){var f=r.nodeSpacing,l;(0,Hr.isNumber)(f)?l=function(){return f}:(0,Hr.isFunction)(f)?l=f:l=function(){return 0},s?(0,Hr.isArray)(s)?u=function(d){return Math.max(s[0],s[1])+l(d)}:u=function(d){return s+l(d)}:u=function(d){return d.size?(0,Hr.isArray)(d.size)?Math.max(d.size[0],d.size[1])+l(d):(0,Hr.isObject)(d.size)?Math.max(d.size.width,d.size.height)+l(d):d.size+l(d):10+l(d)}}r.nodeSize=u,r.linkDistance=Gp(r.linkDistance,1),r.nodeStrength=Gp(r.nodeStrength,1),r.edgeStrength=Gp(r.edgeStrength,1);var c={},h={};n.forEach(function(d,v){(0,Hr.isNumber)(d.x)||(d.x=Math.random()*r.width),(0,Hr.isNumber)(d.y)||(d.y=Math.random()*r.height);var p=r.degreesMap[d.id];c[d.id]=da(da({},d),{data:da(da({},d.data),{size:r.nodeSize(d)||30,layout:{inDegree:p.in,outDegree:p.out,degree:p.all,tDegree:p.in,sDegree:p.out,force:{mass:r.getMass(d),nodeStrength:r.nodeStrength(d,a)}}})}),h[d.id]=v}),r.nodeMap=c,r.nodeIdxMap=h,r.edgeInfos=[],a==null||a.forEach(function(d){var v=c[d.source],p=c[d.target];!v||!p?elf.edgeInfos.push({}):r.edgeInfos.push({edgeStrength:r.edgeStrength(d),linkDistance:i?i(da(da({},d),{source:v,target:p}),v,p):r.linkDistance(d,v,p)||1+(s(v)+s(v)||0)/2})}),this.getCentripetalOptions(),r.onLayoutEnd=r.onLayoutEnd||function(){},r.run()},e.prototype.run=function(){var r=this,n=r.maxIteration,a=r.nodes,i=r.edges,o=r.workerEnabled,s=r.minMovement,u=r.animate,f=r.nodeMap,l=r.height;if(r.currentMinY=0,r.currentMaxY=l,!!a){var c=[];if(a.forEach(function(y,m){c[2*m]=0,c[2*m+1]=0}),this.defSideCoe&&typeof this.defSideCoe=="function"){var h={};i.forEach(function(y){var m=y.source,b=y.target;h[m]=h[m]||[],h[m].push(y),h[b]=h[b]||[],h[b].push(y)}),this.relatedEdges=h}var d=n,v=!u;if(o||v){for(var p=0;(r.judgingDistance>s||p<1)&&p"u")return;var g=0;this.timeInterval=window.setInterval(function(){a&&(r.runOneStep(g,c),g++,(g>=d||r.judgingDistanceu){var v=u/d;c=v*c,h=v*h}n[2*l]=c,n[2*l+1]=h})},e.prototype.updatePosition=function(r,n){var a=this,i=a.nodes,o=a.distanceThresholdMode,s=a.nodeMap;if(!(i!=null&&i.length)){this.judgingDistance=0;return}var u=0;o==="max"?a.judgingDistance=-1/0:o==="min"&&(a.judgingDistance=1/0);var f=1/0,l=-1/0;i.forEach(function(c,h){var d=s[c.id];if((0,Hr.isNumber)(c.fx)&&(0,Hr.isNumber)(c.fy)){c.x=c.fx,c.y=c.fy,d.x=c.x,d.y=c.y;return}var v=r[2*h]*n,p=r[2*h+1]*n;c.x+=v,c.y+=p,d.x=c.x,d.y=c.y,c.yl&&(l=c.y);var g=Math.sqrt(v*v+p*p);switch(o){case"max":a.judgingDistanceg&&(a.judgingDistance=g);break;default:u=u+g;break}}),this.currentMinY=f,this.currentMaxY=l,(!o||o==="mean")&&(a.judgingDistance=u/i.length)},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"force2"},e.prototype.getSameTypeLeafMap=function(){var r=this,n=r.nodeClusterBy,a=r.nodes,i=r.edges,o=r.nodeMap,s=r.degreesMap;if(a!=null&&a.length){var u={};return a.forEach(function(f,l){var c=s[f.id].all;c===1&&(u[f.id]=(0,Hr.getCoreNodeAndRelativeLeafNodes)("leaf",f,i,n,s,o))}),u}},e}(pW.Base);ll.Force2Layout=yW;var rm={},Ud={};function mW(t,e){var r,n=1;t==null&&(t=0),e==null&&(e=0);function a(){var i,o=r.length,s,u=0,f=0;for(i=0;ih.index){var C=d-S.x-S.vx,I=v-S.y-S.vy,k=C*C+I*I;kd+M||Ev+M||_f.r&&(f.r=f[l].r)}function u(){if(e){var f,l=e.length,c;for(r=new Array(l),f=0;f[e(x,E,o),x])),w;for(g=0,s=new Array(y);g{}};function nI(){for(var t=0,e=arguments.length,r={},n;t=0&&(n=r.slice(a+1),r=r.slice(0,a)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}ch.prototype=nI.prototype={constructor:ch,on:function(t,e){var r=this._,n=MW(t+"",r),a,i=-1,o=n.length;if(arguments.length<2){for(;++i0)for(var r=new Array(a),n=0,a,i;n=0&&t._call.call(null,e),t=t._next;--au}function kE(){Wo=(qh=Xf.now())+$d,au=pf=0;try{TW()}finally{au=0,kW(),Wo=0}}function IW(){var t=Xf.now(),e=t-qh;e>aI&&($d-=e,qh=t)}function kW(){for(var t,e=Yh,r,n=1/0;e;)e._call?(n>e._time&&(n=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Yh=r);gf=t,yg(n)}function yg(t){if(!au){pf&&(pf=clearTimeout(pf));var e=t-Wo;e>24?(t<1/0&&(pf=setTimeout(kE,t-Xf.now()-$d)),Zu&&(Zu=clearInterval(Zu))):(Zu||(qh=Xf.now(),Zu=setInterval(IW,aI)),au=1,iI(kE))}}const NW=1664525,OW=1013904223,NE=4294967296;function LW(){let t=1;return()=>(t=(NW*t+OW)%NE)/NE}function DW(t){return t.x}function PW(t){return t.y}var RW=10,FW=Math.PI*(3-Math.sqrt(5));function BW(t){var e,r=1,n=.001,a=1-Math.pow(n,1/300),i=0,o=.6,s=new Map,u=sI(c),f=nI("tick","end"),l=LW();t==null&&(t=[]);function c(){h(),f.call("tick",e),r1?(g==null?s.delete(p):s.set(p,v(g)),e):s.get(p)},find:function(p,g,y){var m=0,b=t.length,w,x,E,_,S;for(y==null?y=1/0:y*=y,m=0;m1?(f.on(p,g),e):f.on(p)}}}function GW(){var t,e,r,n,a=Qr(-30),i,o=1,s=1/0,u=.81;function f(d){var v,p=t.length,g=jd(t,DW,PW).visitAfter(c);for(n=d,v=0;v=s)return;(d.data!==e||d.next)&&(y===0&&(y=$i(r),w+=y*y),m===0&&(m=$i(r),w+=m*m),w-1||(o[u]=i[u])}),o}),n.ticking=!1},e.prototype.execute=function(r){var n=this,a=n.nodes,i=n.edges;if(!n.ticking){var o=n.forceSimulation,s=n.alphaMin,u=n.alphaDecay,f=n.alpha;if(o){if(r){if(n.clustering&&n.clusterForce&&(n.clusterForce.nodes(a),n.clusterForce.links(i)),o.nodes(a),i&&n.edgeForce)n.edgeForce.links(i);else if(i&&!n.edgeForce){var h=_s.forceLink().id(function(g){return g.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}}n.preventOverlap&&n.overlapProcess(o),o.alpha(f).restart(),this.ticking=!0}else try{var l=_s.forceManyBody();if(n.nodeStrength&&l.strength(n.nodeStrength),o=_s.forceSimulation().nodes(a),n.clustering){var c=(0,JW.default)();c.centerX(n.center[0]).centerY(n.center[1]).template("force").strength(n.clusterFociStrength),i&&c.links(i),a&&c.nodes(a),c.forceLinkDistance(n.clusterEdgeDistance).forceLinkStrength(n.clusterEdgeStrength).forceCharge(n.clusterNodeStrength).forceNodeSize(n.clusterNodeSize),n.clusterForce=c,o.force("group",c)}if(o.force("center",_s.forceCenter(n.center[0],n.center[1])).force("charge",l).alpha(f).alphaDecay(u).alphaMin(s),n.preventOverlap&&n.overlapProcess(o),i){var h=_s.forceLink().id(function(p){return p.id}).links(i);n.edgeStrength&&h.strength(n.edgeStrength),n.linkDistance&&h.distance(n.linkDistance),n.edgeForce=h,o.force("link",h)}if(n.workerEnabled&&!aV()&&(n.workerEnabled=!1,console.warn("workerEnabled option is only supported when running in web worker.")),!n.workerEnabled)o.on("tick",function(){n.tick()}).on("end",function(){n.ticking=!1,n.onLayoutEnd&&n.onLayoutEnd()}),n.ticking=!0;else{o.stop();for(var d=nV(o),v=1;v<=d;v++)o.tick(),postMessage({nodes:a,currentTick:v,totalTicks:d,type:tV.LAYOUT_MESSAGE.TICK},void 0);n.ticking=!1}n.forceSimulation=o,n.ticking=!0}catch(p){n.ticking=!1,console.warn(p)}}},e.prototype.overlapProcess=function(r){var n=this,a=n.nodeSize,i=n.nodeSpacing,o,s,u=n.collideStrength;if((0,Ao.isNumber)(i)?s=function(){return i}:(0,Ao.isFunction)(i)?s=i:s=function(){return 0},!a)o=function(h){if(h.size){if((0,Ao.isArray)(h.size)){var d=h.size[0]>h.size[1]?h.size[0]:h.size[1];return d/2+s(h)}if((0,Ao.isObject)(h.size)){var d=h.size.width>h.size.height?h.size.width:h.size.height;return d/2+s(h)}return h.size/2+s(h)}return 10+s(h)};else if((0,Ao.isFunction)(a))o=function(h){var d=a(h);return d+s(h)};else if((0,Ao.isArray)(a)){var f=a[0]>a[1]?a[0]:a[1],l=f/2;o=function(h){return l+s(h)}}else if((0,Ao.isNumber)(a)){var c=a/2;o=function(h){return c+s(h)}}else o=function(){return 10};r.force("collisionForce",_s.forceCollide(o).strength(u))},e.prototype.updateCfg=function(r){var n=this;n.ticking&&(n.forceSimulation.stop(),n.ticking=!1),n.forceSimulation=null,Object.assign(n,r)},e.prototype.destroy=function(){var r=this;r.ticking&&(r.forceSimulation.stop(),r.ticking=!1),r.nodes=null,r.edges=null,r.destroyed=!0},e}(eV.Base);Ud.ForceLayout=rV;function nV(t){var e=t.alphaMin(),r=t.alphaTarget(),n=t.alpha(),a=Math.log((e-r)/(n-r))/Math.log(1-t.alphaDecay()),i=Math.ceil(a);return i}function aV(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope}(function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(Ud,t)})(rm);var cl={},iV=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(cl,"__esModule",{value:!0});cl.CircularLayout=void 0;var oV=Rr,$a=Ir();function sV(t,e,r,n){t.forEach(function(a,i){t[i].children=[],t[i].parent=[]}),n?e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=r[i]);var u=0;o&&(u=r[o]);var f=t[s].children,l=t[u].parent;f.push(t[u].id),l.push(t[s].id)}):e.forEach(function(a){var i=(0,$a.getEdgeTerminal)(a,"source"),o=(0,$a.getEdgeTerminal)(a,"target"),s=0;i&&(s=r[i]);var u=0;o&&(u=r[o]);var f=t[s].children,l=t[u].children;f.push(t[u].id),l.push(t[s].id)})}function uV(t,e,r){for(var n=r.length,a=0;an?1:0}var lV=function(t){iV(e,t);function e(r){var n=t.call(this)||this;return n.radius=null,n.nodeSize=void 0,n.startRadius=null,n.endRadius=null,n.startAngle=0,n.endAngle=2*Math.PI,n.clockwise=!0,n.divisions=1,n.ordering=null,n.angleRatio=1,n.nodes=[],n.edges=[],n.nodeMap={},n.degrees=[],n.width=300,n.height=300,n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1}},e.prototype.execute=function(){var r,n=this,a=n.nodes,i=n.edges,o=a.length;if(o===0){n.onLayoutEnd&&n.onLayoutEnd();return}!n.width&&typeof window<"u"&&(n.width=window.innerWidth),!n.height&&typeof window<"u"&&(n.height=window.innerHeight),n.center||(n.center=[n.width/2,n.height/2]);var s=n.center;if(o===1){a[0].x=s[0],a[0].y=s[1],n.onLayoutEnd&&n.onLayoutEnd();return}var u=n.radius,f=n.startRadius,l=n.endRadius,c=n.divisions,h=n.startAngle,d=n.endAngle,v=n.angleRatio,p=n.ordering,g=n.clockwise,y=n.nodeSpacing,m=n.nodeSize,b=(d-h)/o,w={};a.forEach(function(L,z){w[L.id]=z}),n.nodeMap=w;var x=(0,$a.getDegree)(a.length,w,i);if(n.degrees=x,y){var E=(0,$a.getFuncByUnknownType)(10,y),_=(0,$a.getFuncByUnknownType)(10,m),S=-1/0;a.forEach(function(L){var z=_(L);Sn.width?n.width/2:n.height/2:!f&&l?f=l:f&&!l&&(l=f);var M=b*v,C=[];p==="topology"?C=n.topologyOrdering():p==="topology-directed"?C=n.topologyOrdering(!0):p==="degree"?C=n.degreeOrdering():C=a;for(var I=Math.ceil(o/c),k=0;k0?t.set(e,r):t.delete(e))}function uI(t,e,r,n){var a=String(e),i=String(r);if(!t&&a>i){var o=a;a=i,i=o}return a+Xs.EDGE_KEY_DELIM+i+Xs.EDGE_KEY_DELIM+(n===void 0?Xs.DEFAULT_EDGE_NAME:n)}function PE(t,e,r,n){var a=String(e),i=String(r),o={v:e,w:r};if(!t&&a>i){var s=o.v;o.v=o.w,o.w=s}return n!==void 0&&(o.name=n),o}function zp(t,e){return uI(t,e.v,e.w,e.name)}function RE(t){return typeof t=="function"}var dV=function(e){return e.nodes().map(function(r){var n=e.node(r),a=e.parent(r),i={id:r,value:n,parent:a};return i.value===void 0&&delete i.value,i.parent===void 0&&delete i.parent,i})},vV=function(e){return e.edges().map(function(r){var n=e.edge(r),a={v:r.v,w:r.w,value:n,name:r.name};return a.name===void 0&&delete a.name,a.value===void 0&&delete a.value,a})},pV=function(e){var r={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:dV(e),edges:vV(e),value:e.graph()};return r.value===void 0&&delete r.value,r},gV=function(e){var r=new Qo(e.options);return e.value!==void 0&&r.setGraph(e.value),e.nodes.forEach(function(n){r.setNode(n.id,n.value),n.parent&&r.setParent(n.id,n.parent)}),e.edges.forEach(function(n){r.setEdge(n.v,n.w,n.value,n.name)}),r};function FE(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function BE(t){for(var e=1;e0&&arguments[0]!==void 0?arguments[0]:{};mV(this,t),this.directed=!0,this.multigraph=!1,this.compound=!1,this.GRAPH_NODE=Xs.GRAPH_NODE,this.label=void 0,this.nodeCountNum=0,this.edgeCountNum=0,this.defaultNodeLabelFn=function(){},this.defaultEdgeLabelFn=function(){},this.parentMap=void 0,this.childrenMap=void 0,this.nodesLabelMap=new Map,this.inEdgesMap=new Map,this.outEdgesMap=new Map,this.predecessorsMap=new Map,this.successorsMap=new Map,this.edgesMap=new Map,this.edgesLabelsMap=new Map,this.isDirected=function(){return e.directed},this.isMultigraph=function(){return e.multigraph},this.isCompound=function(){return e.compound},this.setGraph=function(a){return e.label=a,e},this.graph=function(){return e.label},this.setDefaultNodeLabel=function(a){return RE(a)?e.defaultNodeLabelFn=a:e.defaultNodeLabelFn=function(){return a},e},this.nodeCount=function(){return e.nodeCountNum},this.node=function(a){return e.nodesLabelMap.get(a)},this.nodes=function(){return Array.from(e.nodesLabelMap.keys())},this.sources=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.inEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.sinks=function(){return e.nodes().filter(function(a){var i;return!(!((i=e.outEdgesMap.get(a))===null||i===void 0)&&i.size)})},this.setNodes=function(a,i){return a.map(function(o){return e.setNode(o,i)}),e},this.hasNode=function(a){return e.nodesLabelMap.has(a)},this.checkCompound=function(){if(!e.isCompound())throw new Error("Cannot construct parent-children relations in a non-compound graph")},this.parent=function(a){if(e.isCompound()){var i,o=(i=e.parentMap)===null||i===void 0?void 0:i.get(a);if(o!==e.GRAPH_NODE)return o}},this.removeFromParentsChildList=function(a){var i=e.parentMap.get(a);e.childrenMap.get(i).delete(a)},this.setParent=function(a,i){var o,s;e.checkCompound();for(var u=i===void 0?e.GRAPH_NODE:i,f=e.parent(u);f;){if(a===f)throw new Error("Setting "+i+" as parent of "+a+" would create a cycle");f=e.parent(f)}i&&e.setNode(i),e.setNode(a),e.removeFromParentsChildList(a),(o=e.parentMap)===null||o===void 0||o.set(a,u);var l=e.childrenMap.get(u);return l.set(a,!0),(s=e.childrenMap)===null||s===void 0||s.set(u,l),e},this.children=function(a){var i=a===void 0?e.GRAPH_NODE:a;if(e.isCompound()){var o,s=(o=e.childrenMap)===null||o===void 0?void 0:o.get(i);return s?Array.from(s.keys()):void 0}if(i===e.GRAPH_NODE)return e.nodes();if(a&&e.hasNode(a))return[]},this.predecessors=function(a){var i=e.predecessorsMap.get(a);return i?Array.from(i.keys()):void 0},this.successors=function(a){var i=e.successorsMap.get(a);return i?Array.from(i.keys()):void 0},this.neighbors=function(a){var i;if(e.hasNode(a))return Array.from(new Set((i=e.predecessors(a))===null||i===void 0?void 0:i.concat(e.successors(a))))},this.isLeaf=function(a){var i;if(e.isDirected()){var o;return!(!((o=e.successors(a))===null||o===void 0)&&o.length)}return!(!((i=e.neighbors(a))===null||i===void 0)&&i.length)},this.filterNodes=function(a){var i=e.directed,o=e.multigraph,s=e.compound,u=new t({directed:i,multigraph:o,compound:s});if(u.setGraph(e.graph()),e.nodes().forEach(function(l){a(l)&&u.setNode(l,e.node(l))}),e.edges().forEach(function(l){u.hasNode(l.v)&&u.hasNode(l.w)&&u.setEdgeObj(l,e.edge(l))}),s){var f=function(c){for(var h=e.parent(c);h!==void 0&&!u.hasNode(h);)h=e.parent(h);return h};u.nodes().forEach(function(l){u.setParent(l,f(l))})}return u},this.setDefaultEdgeLabel=function(a){return RE(a)?e.defaultEdgeLabelFn=a:e.defaultEdgeLabelFn=function(){return a},e},this.edgeCount=function(){return e.edgeCountNum},this.setEdgeObj=function(a,i){return e.setEdge(a.v,a.w,i,a.name)},this.setPath=function(a,i){return a.reduce(function(o,s){return e.setEdge(o,s,i),s}),e},this.edgeFromArgs=function(a,i,o){return e.edge({v:a,w:i,name:o})},this.edge=function(a){return e.edgesLabelsMap.get(zp(e.isDirected(),a))},this.hasEdge=function(a,i,o){return e.edgesLabelsMap.has(zp(e.isDirected(),{v:a,w:i,name:o}))},this.removeEdgeObj=function(a){var i=a.v,o=a.w,s=a.name;return e.removeEdge(i,o,s)},this.edges=function(){return Array.from(e.edgesMap.values())},this.inEdges=function(a,i){var o=e.inEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.v===i})},this.outEdges=function(a,i){var o=e.outEdgesMap.get(a);if(o)return Array.from(o.values()).filter(function(s){return!i||s.w===i})},this.nodeEdges=function(a,i){var o;if(e.hasNode(a))return(o=e.inEdges(a,i))===null||o===void 0?void 0:o.concat(e.outEdges(a,i))},this.toJSON=function(){return pV(e)},this.nodeInDegree=function(a){var i=e.inEdgesMap.get(a);return i?i.size:0},this.nodeOutDegree=function(a){var i=e.outEdgesMap.get(a);return i?i.size:0},this.nodeDegree=function(a){return e.nodeInDegree(a)+e.nodeOutDegree(a)},this.source=function(a){return a.v},this.target=function(a){return a.w};var n=BE(BE({},xV),r);this.compound=n.compound,this.directed=n.directed,this.multigraph=n.multigraph,this.compound&&(this.parentMap=new Map,this.childrenMap=new Map)}return wV(t,[{key:"setNode",value:function(r,n){var a=this.nodesLabelMap,i=this.defaultNodeLabelFn,o=this.isCompound,s=this.parentMap,u=this.childrenMap,f=this.inEdgesMap,l=this.outEdgesMap,c=this.predecessorsMap,h=this.successorsMap;if(a.has(r))return n!==void 0&&a.set(r,n),this;if(a.set(r,n||i(r)),o()){var d;s==null||s.set(r,this.GRAPH_NODE),u==null||u.set(r,new Map),u!=null&&u.has(this.GRAPH_NODE)||u==null||u.set(this.GRAPH_NODE,new Map),u==null||(d=u.get(this.GRAPH_NODE))===null||d===void 0||d.set(r,!0)}return[f,l,c,h].forEach(function(v){return v.set(r,new Map)}),this.nodeCountNum+=1,this}},{key:"removeNode",value:function(r){var n=this;if(this.hasNode(r)){var a=function(g){n.removeEdge(g.v,g.w,g.name)},i=this.inEdgesMap,o=this.outEdgesMap,s=this.predecessorsMap,u=this.successorsMap,f=this.nodesLabelMap;if(this.isCompound()){var l,c,h;this.removeFromParentsChildList(r),(l=this.parentMap)===null||l===void 0||l.delete(r),(c=this.children(r))===null||c===void 0||c.forEach(function(p){return n.setParent(p)}),(h=this.childrenMap)===null||h===void 0||h.delete(r)}var d=i.get(r),v=o.get(r);Array.from(d.values()).forEach(function(p){return a(p)}),Array.from(v.values()).forEach(function(p){return a(p)}),f.delete(r),i.delete(r),o.delete(r),s.delete(r),u.delete(r),this.nodeCountNum-=1}return this}},{key:"setEdge",value:function(r,n,a,i){var o,s,u=PE(this.isDirected(),r,n,i),f=zp(this.isDirected(),u),l=u.v,c=u.w;if(this.edgesLabelsMap.has(f))return this.edgesLabelsMap.set(f,a),this;if(i!==void 0&&!this.isMultigraph())throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(l),this.setNode(c),this.edgesLabelsMap.set(f,a||this.defaultEdgeLabelFn(l,c,i)),Object.freeze(u),this.edgesMap.set(f,u);var h=this.predecessorsMap.get(c),d=this.successorsMap.get(l);return LE(h,l),LE(d,c),(o=this.inEdgesMap.get(c))===null||o===void 0||o.set(f,u),(s=this.outEdgesMap.get(l))===null||s===void 0||s.set(f,u),this.edgeCountNum+=1,this}},{key:"removeEdge",value:function(r,n,a){var i=uI(this.isDirected(),r,n,a),o=this.edgesMap.get(i);if(o){var s=PE(this.isDirected(),r,n,a),u=s.v,f=s.w;this.edgesLabelsMap.delete(i),this.edgesMap.delete(i);var l=this.predecessorsMap.get(f),c=this.successorsMap.get(u);DE(l,u),DE(c,f),this.inEdgesMap.get(f).delete(i),this.outEdgesMap.get(u).delete(i),this.edgeCountNum-=1}return this}}]),t}();Qo.fromJSON=gV;function mg(t){"@babel/helpers - typeof";return mg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mg(t)}function EV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _V(t,e){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function di(t){return di=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},di(t)}var NV=function(t){AV(r,t);var e=CV(r);function r(){var n;EV(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1&&this.eventPool[a].splice(o,1)}}},{key:"emitEvent",value:function(a){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s>1,((s=n[i])===null||s===void 0?void 0:s.priority)e.arr[a].priority)throw new Error("New priority is greater than current priority.Key: ".concat(r," Old: + ").concat(e.arr[a].priority," New: ").concat(n));e.arr[a].priority=n,e.innerDecrease(a)}}),DV=function(e,r){var n=new Qo,a=new Map,i=new fI,o;function s(l){var c=l.v===o?l.w:l.v,h=i.priority(c);if(h!==void 0){var d=r(l);d0;){var f;if(o=i.removeMin(),a.has(o))n.setEdge(o,a.get(o));else{if(u)throw new Error("Input graph is not connected: "+e.graph());u=!0}(f=e.nodeEdges(o))===null||f===void 0||f.forEach(s)}return n},PV=function(e){var r=new Set,n=[],a=e.nodes();return a.forEach(function(i){for(var o=[],s=[i];s.length>0;){var u=s.pop();if(!r.has(u)){var f,l;r.add(u),o.push(u),(f=e.successors(u))===null||f===void 0||f.forEach(function(c){return s.push(c)}),(l=e.predecessors(u))===null||l===void 0||l.forEach(function(c){return s.push(c)})}}o.length&&n.push(o)}),n},RV=function t(e,r,n,a,i,o){a.includes(r)||(a.push(r),n||o.push(r),i(r).forEach(function(s){return t(e,s,n,a,i,o)}),n&&o.push(r))},lm=function(e,r,n){var a=Array.isArray(r)?r:[r],i=function(f){return e.isDirected()?e.successors(f):e.neighbors(f)},o=[],s=[];return a.forEach(function(u){if(e.hasNode(u))RV(e,u,n==="post",s,i,o);else throw new Error("Graph does not have node: "+u)}),o};function FV(t,e){return jV(t)||zV(t,e)||GV(t,e)||BV()}function BV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GV(t,e){if(t){if(typeof t=="string")return GE(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return GE(t,e)}}function GE(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&(s=o.removeMin(),u=i.get(s),!(u&&u.distance===Number.POSITIVE_INFINITY));)a(s).forEach(f);var l={};return Array.from(i.entries()).forEach(function(c){var h=FV(c,2),d=h[0],v=h[1];return l[String(d)]=v,l}),l},XV=function(e,r,n){var a={};return e.nodes().forEach(function(i){return a[String(i)]=lI(e,i,r,n),a}),a},cI=function(e){var r=0,n=[],a=new Map,i=[];function o(s){var u,f={onStack:!0,lowlink:r,index:r};if(a.set(s,f),r+=1,n.push(s),(u=e.successors(s))===null||u===void 0||u.forEach(function(d){var v;if(a.has(d)){if(!((v=a.get(d))===null||v===void 0)&&v.onStack){var g=a.get(d);f.lowlink=Math.min(f.lowlink,g.index)}}else{o(d);var p=a.get(d);f.lowlink=Math.min(f.lowlink,p.lowlink)}}),f.lowlink===f.index){var l=[],c;do{c=n.pop();var h=a.get(c);h.onStack=!1,l.push(c)}while(s!==c);i.push(l)}}return e.nodes().forEach(function(s){a.has(s)||o(s)}),i},WV=function(e){return cI(e).filter(function(r){return r.length>1||r.length===1&&e.hasEdge(r[0],r[0])})};function wg(t){"@babel/helpers - typeof";return wg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wg(t)}function VV(t,e,r){return Object.defineProperty(t,"prototype",{writable:!1}),t}function YV(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qV(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wf(t,e)}function HV(t){var e=hI();return function(){var n=Vf(t),a;if(e){var i=Vf(this).constructor;a=Reflect.construct(n,arguments,i)}else a=n.apply(this,arguments);return ZV(this,a)}}function ZV(t,e){if(e&&(wg(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KV(t)}function KV(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function xg(t){var e=typeof Map=="function"?new Map:void 0;return xg=function(n){if(n===null||!QV(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(n))return e.get(n);e.set(n,a)}function a(){return hh(n,arguments,Vf(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Wf(a,n)},xg(t)}function hh(t,e,r){return hI()?hh=Reflect.construct:hh=function(a,i,o){var s=[null];s.push.apply(s,i);var u=Function.bind.apply(a,s),f=new u;return o&&Wf(f,o.prototype),f},hh.apply(null,arguments)}function hI(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function QV(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function Wf(t,e){return Wf=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},Wf(t,e)}function Vf(t){return Vf=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Vf(t)}var Eg=function(t){qV(r,t);var e=HV(r);function r(){return YV(this,r),e.apply(this,arguments)}return VV(r)}(xg(Error));function dI(t){var e=new Set,r=new Set,n=[];function a(i){if(r.has(i))throw new Eg;if(!e.has(i)){var o;r.add(i),e.add(i),(o=t.predecessors(i))===null||o===void 0||o.forEach(a),r.delete(i),n.push(i)}}if(t.sinks().forEach(a),e.size!==t.nodeCount())throw new Eg;return n}var JV=function(e){try{dI(e)}catch(r){if(r instanceof Eg)return!1;throw r}return!0},eY=function(e,r){return lm(e,r,"post")},tY=function(e,r){return lm(e,r,"pre")},rY=function(){return 1};function nY(t,e,r){return aY(t,e||rY,r||function(n){return t.outEdges(n)})}function aY(t,e,r){var n={},a=t.nodes();return a.forEach(function(i){var o=String(i);n[o]={},n[o][o]={distance:0},a.forEach(function(s){i!==s&&(n[o][String(s)]={distance:Number.POSITIVE_INFINITY})}),r(i).forEach(function(s){var u=s.v===i?s.w:s.v,f=e(s);n[o][String(u)]={distance:f,predecessor:i}})}),a.forEach(function(i){var o=String(i),s=n[o];a.forEach(function(u){var f=String(u),l=n[f];a.forEach(function(c){var h=String(c),d=l[o],v=s[h],p=l[h],g=d.distance+v.distance;gt.length)&&(e=t.length);for(var r=0,n=new Array(e);r0;--s)if(o=e[s].dequeue(),o){n=n.concat(jp(t,e,r,o,!0));break}}}return n},jp=function(t,e,r,n,a){var i,o,s=[];return(i=t.inEdges(n.v))===null||i===void 0||i.forEach(function(u){var f=t.edge(u),l=t.node(u.v);a&&s.push({v:u.v,w:u.w,in:0,out:0}),l.out===void 0&&(l.out=0),l.out-=f,_g(e,r,l)}),(o=t.outEdges(n.v))===null||o===void 0||o.forEach(function(u){var f=t.edge(u),l=u.w,c=t.node(l);c.in===void 0&&(c.in=0),c.in-=f,_g(e,r,c)}),t.removeNode(n.v),a?s:void 0},NY=function(t,e){var r=new CY,n=0,a=0;t.nodes().forEach(function(f){r.setNode(f,{v:f,in:0,out:0})}),t.edges().forEach(function(f){var l=r.edge(f)||0,c=(e==null?void 0:e(f))||1,h=l+c;r.setEdge(f.v,f.w,h),a=Math.max(a,r.node(f.v).out+=c),n=Math.max(n,r.node(f.w).in+=c)});for(var i=[],o=a+n+3,s=0;sMath.abs(S)*C?(A<0&&(C=-C),I=C*S/A,k=C):(S<0&&(M=-M),I=M,k=M*A/S),{x:E+I,y:_+k}};t.intersectRect=l;var c=function(w){for(var x=[],E=(0,t.maxRank)(w)+1,_=0;_x)&&(x=S)}),x||(x=0),x};t.maxRank=p;var g=function(w,x){var E={lhs:[],rhs:[]};return w==null||w.forEach(function(_){x(_)?E.lhs.push(_):E.rhs.push(_)}),E};t.partition=g;var y=function(w,x){var E=Date.now();try{return x()}finally{console.log("".concat(w," time: ").concat(Date.now()-E,"ms"))}};t.time=y;var m=function(w,x){return x()};t.notime=m;var b=function(w,x){return w.reduce(function(E,_){var S=x(E),A=x(_);return S>A?_:E})};t.minBy=b})(Vn);Object.defineProperty(hm,"__esModule",{value:!0});var zY=Vn,jY=function(t){t.graph().dummyChains=[],t.edges().forEach(function(e){return UY(t,e)})},UY=function(t,e){var r=e.v,n=t.node(r).rank,a=e.w,i=t.node(a).rank,o=e.name,s=t.edge(e),u=s.labelRank;if(i!==n+1){t.removeEdgeObj(e);var f=t.graph(),l,c,h;for(h=0,++n;nA.lim&&(M=A,C=!0);var I=w.edges().filter(function(k){return C===m(b,b.node(k.v),M)&&C!==m(b,b.node(k.w),M)});return(0,n.minBy)(I,function(k){return(0,r.slack)(w,k)})};t.enterEdge=v;var p=function(b,w,x,E){var _=x.v,S=x.w;b.removeEdge(_,S),b.setEdge(E.v,E.w,{}),(0,t.initLowLimValues)(b),(0,t.initCutValues)(b,w),g(b,w)};t.exchangeEdges=p;var g=function(b,w){var x=b.nodes().find(function(_){var S;return!(!((S=w.node(_))===null||S===void 0)&&S.parent)}),E=i(b,x);E=E==null?void 0:E.slice(1),E==null||E.forEach(function(_){var S=b.node(_).parent,A=w.edgeFromArgs(_,S),M=!1;A||(A=w.edgeFromArgs(S,_),M=!0),w.node(_).rank=w.node(S).rank+(M?A.minlen:-A.minlen)})},y=function(b,w,x){return b.hasEdge(w,x)},m=function(b,w,x){return x.low<=w.lim&&w.lim<=x.lim};t.default=s})(CI);var YY=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(dm,"__esModule",{value:!0});var TI=ba,qY=Ki,HY=YY(CI),ZY=function(t){switch(t.graph().ranker){case"network-simplex":QY(t);break;case"tight-tree":jE(t);break;case"longest-path":KY(t);break;default:jE(t)}},KY=TI.longestPath,jE=function(t){(0,TI.longestPathWithLayer)(t),(0,qY.feasibleTreeWithLayer)(t)},QY=function(t){(0,HY.default)(t)};dm.default=ZY;var vm={};Object.defineProperty(vm,"__esModule",{value:!0});var JY=function(t){var e,r={},n=0,a=function(i){var o,s=n;(o=t.children(i))===null||o===void 0||o.forEach(a),r[i]={low:s,lim:n++}};return(e=t.children())===null||e===void 0||e.forEach(a),r},eq=function(t,e,r,n){var a=[],i=[],o=Math.min(e[r].low,e[n].low),s=Math.max(e[r].lim,e[n].lim),u,f;u=r;do u=t.parent(u),a.push(u);while(u&&(e[u].low>o||s>e[u].lim));for(f=u,u=n;u&&u!==f;)i.push(u),u=t.parent(u);return{lca:f,path:a.concat(i.reverse())}},tq=function(t){var e,r=JY(t);(e=t.graph().dummyChains)===null||e===void 0||e.forEach(function(n){var a,i,o=n,s=t.node(o),u=s.edgeObj;if(u)for(var f=eq(t,r,u.v,u.w),l=f.path,c=f.lca,h=0,d=l[h],v=!0;o!==u.w;){if(s=t.node(o),v){for(;d!==c&&((a=t.node(d))===null||a===void 0?void 0:a.maxRank)-1:!1},LI=function(t,e){if(!Ln(t))return t;for(var r=[],n=0;n-1;)bq.call(t,i,1);return t},Eq=Array.prototype.splice,zI=function(e,r){if(!Ln(e))return[];for(var n=e?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,Eq.call(e,o,1))}return e},jI=function(t,e,r){if(!Vr(t)&&!ou(t))return t;var n=r;return iu(t,function(a,i){n=e(n,a,i)}),n},_q=function(t,e){var r=[];if(!Ln(t))return r;for(var n=-1,a=[],i=t.length;++ni[s])return 1;if(a[s]r?r:t},zq=function(t,e){var r=e.toString(),n=r.indexOf(".");if(n===-1)return Math.round(t);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(t.toFixed(a))};function xi(t){return typeof t=="number"}function jq(t){return xi(t)&&t%1!==0}function Uq(t){return xi(t)&&t%2===0}function $q(t){return xi(t)&&t%1===0}function Xq(t){return xi(t)&&t<0}var Wq=1e-5;function Vq(t,e,r){return r===void 0&&(r=Wq),t===e||Math.abs(t-e)0};const Hq=function(t,e){if(Vr(t)){for(var r,n=-1/0,a=0;an&&(r=i,n=o)}return r}},Zq=function(t,e){if(Vr(t)){for(var r,n=1/0,a=0;aa&&(n=r,o(1),++e),r[s]=u}function o(s){e=0,r=Object.create(null),s||(n=Object.create(null))}return o(),{clear:o,has:function(s){return r[s]!==void 0||n[s]!==void 0},get:function(s){var u=r[s];if(u!==void 0)return u;if((u=n[s])!==void 0)return i(s,u),u},set:function(s,u){r[s]!==void 0?r[s]=u:i(s,u)}}}var Vp=new Map;function qI(t,e,r){r===void 0&&(r=128);var n=function(){for(var a=[],i=0;ie?(n&&(clearTimeout(n),n=null),s=l,o=t.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(u,c)),o};return f.cancel=function(){clearTimeout(n),s=0,n=a=i=null},f},UH=function(t){return Ln(t)?Array.prototype.slice.call(t):[]};var Lc={};const $H=function(t){return t=t||"g",Lc[t]?Lc[t]+=1:Lc[t]=1,t+Lc[t]},XH=function(){},WH=function(t){return t};function VH(t){return no(t)?0:Ln(t)?t.length:Object.keys(t).length}var YH=function(){function t(){this.map={}}return t.prototype.has=function(e){return this.map[e]!==void 0},t.prototype.get=function(e,r){var n=this.map[e];return n===void 0?r:n},t.prototype.set=function(e,r){this.map[e]=r},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(e){delete this.map[e]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),qH=/rgba?\(([\s.,0-9]+)\)/;function HH(){var t=document.getElementById("antv-web-colour-picker");return t||(t=document.createElement("i"),t.id="antv-web-colour-picker",t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t)}function ZH(t){if(t[0]==="#"&&t.length===7)return t;var e=HH();e.style.color=t;var r=document.defaultView.getComputedStyle(e,"").getPropertyValue("color"),n=qH.exec(r),a=n[1].split(/\s*,\s*/).map(function(i){return Number(i)});return r=OI(a),r}var ZI=qI(ZH,function(t){return t},256);function Yp(t,e,r,n){return t[n]+(e[n]-t[n])*r}function KH(t,e){var r=isNaN(Number(e))||e<0?0:e>1?1:Number(e),n=t.length-1,a=Math.floor(n*r),i=n*r-a,o=t[a],s=a===n?o:t[a+1];return OI([Yp(o,s,i,0),Yp(o,s,i,1),Yp(o,s,i,2)])}function QH(t){var e=typeof t=="string"?t.split("-"):t,r=e.map(function(n){return NI(n.indexOf("#")===-1?ZI(n):n)});return function(n){return KH(r,n)}}var JH=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,eZ=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,tZ=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function rZ(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}function nZ(t){if(rZ(t)){var e,r=void 0;if(t[0]==="l"){var n=JH.exec(t),a=+n[1]+90;r=n[2],e="linear-gradient(".concat(a,"deg, ")}else if(t[0]==="r"){e="radial-gradient(";var n=eZ.exec(t);r=n[4]}var i=r.match(tZ);return i.forEach(function(o,s){var u=o.split(":");e+="".concat(u[1]," ").concat(Number(u[0])*100,"%"),s!==i.length-1&&(e+=", ")}),e+=")",e}return t}function aZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return uy(n,r),Qa(t,n,e)}function iZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return fy(n,r),Qa(t,n,e)}function oZ(t,e,r){var n=[0,0,0,0,0,0,0,0,0];return ly(n,r),Qa(t,n,e)}function sZ(t,e,r){return Qa(t,r,e)}function uZ(t,e){for(var r=t?[].concat(t):[1,0,0,0,1,0,0,0,1],n=0,a=e.length;n=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function lZ(t,e,r){return r?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}function cZ(t,e){if(e==="off")return[].concat(t);var r=typeof e=="number"&&e>=1?Math.pow(10,e):1;return t.map(function(n){var a=n.slice(1).map(Number).map(function(i){return e?Math.round(i*r)/r:Math.round(i)});return[n[0]].concat(a)})}function hZ(t,e){return e===void 0&&(e="off"),cZ(t,e).map(function(r){return r[0]+r.slice(1).join(" ")}).join("")}var QI={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};function dZ(t,e,r){if(t[r].length>7){t[r].shift();for(var n=t[r],a=r;n.length;)e[r]="A",t.splice(a+=1,0,["C"].concat(n.splice(0,6)));t.splice(r,1)}}var Af={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function JI(t){return Array.isArray(t)&&t.every(function(e){var r=e[0].toLowerCase();return Af[r]===e.length-1&&"achlmqstvz".includes(r)})}function ek(t){return JI(t)&&t.every(function(e){var r=e[0];return r===r.toUpperCase()})}function tk(t){return ek(t)&&t.every(function(e){var r=e[0];return"ACLMQZ".includes(r)})}function VE(t){for(var e=t.pathValue[t.segmentStart],r=e.toLowerCase(),n=t.data;n.length>=Af[r]&&(r==="m"&&n.length>2?(t.segments.push([e].concat(n.splice(0,2))),r="l",e=e==="m"?"l":"L"):t.segments.push([e].concat(n.splice(0,Af[r]))),!!Af[r]););}function vZ(t){var e=t.index,r=t.pathValue,n=r.charCodeAt(e);if(n===48){t.param=0,t.index+=1;return}if(n===49){t.param=1,t.index+=1;return}t.err='[path-util]: invalid Arc flag "'.concat(r[e],'", expecting 0 or 1 at index ').concat(e)}function pZ(t){return t>=48&&t<=57||t===43||t===45||t===46}function Ss(t){return t>=48&&t<=57}function gZ(t){var e=t.max,r=t.pathValue,n=t.index,a=n,i=!1,o=!1,s=!1,u=!1,f;if(a>=e){t.err="[path-util]: Invalid path value at index ".concat(a,', "pathValue" is missing param');return}if(f=r.charCodeAt(a),(f===43||f===45)&&(a+=1,f=r.charCodeAt(a)),!Ss(f)&&f!==46){t.err="[path-util]: Invalid path value at index ".concat(a,', "').concat(r[a],'" is not a number');return}if(f!==46){if(i=f===48,a+=1,f=r.charCodeAt(a),i&&a=5760&&e.includes(t)}function dh(t){for(var e=t.pathValue,r=t.max;t.index0;o-=1){if(bZ(a)&&(o===3||o===4)?vZ(t):gZ(t),t.err.length)return;t.data.push(t.param),dh(t),t.index=t.max||!pZ(r.charCodeAt(t.index)))break}VE(t)}var xZ=function(){function t(e){this.pathValue=e,this.segments=[],this.max=e.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return t}();function Yd(t){if(JI(t))return[].concat(t);var e=new xZ(t);for(dh(e);e.index1&&(M=Math.sqrt(M),h*=M,d*=M);var C=h*h,I=d*d,k=(i===o?-1:1)*Math.sqrt(Math.abs((C*I-C*A*A-I*S*S)/(C*A*A+I*S*S)));E=k*h*A/d+(l+v)/2,_=k*-d*S/h+(c+p)/2,w=Math.asin(((c-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),x=Math.asin(((p-_)/d*Math.pow(10,9)>>0)/Math.pow(10,9)),w=lx&&(w-=Math.PI*2),!o&&x>w&&(x-=Math.PI*2)}var O=x-w;if(Math.abs(O)>g){var B=x,L=v,z=p;x=w+g*(o&&x>w?1:-1),v=E+h*Math.cos(x),p=_+d*Math.sin(x),m=wm(v,p,h,d,a,0,o,L,z,[x,B,E,_])}O=x-w;var X=Math.cos(w),R=Math.sin(w),V=Math.cos(x),he=Math.sin(x),ce=Math.tan(O/4),le=4/3*h*ce,ie=4/3*d*ce,Ie=[l,c],qe=[l+le*R,c-ie*X],Ve=[v+le*he,p-ie*V],it=[v,p];if(qe[0]=2*Ie[0]-qe[0],qe[1]=2*Ie[1]-qe[1],f)return qe.concat(Ve,it,m);m=qe.concat(Ve,it,m);for(var dt=[],st=0,Tt=m.length;st=i)o={x:r,y:n};else{var s=zi([t,e],[r,n],a/i),u=s[0],f=s[1];o={x:u,y:f}}return{length:i,point:o,min:{x:Math.min(t,r),y:Math.min(e,n)},max:{x:Math.max(t,r),y:Math.max(e,n)}}}function qE(t,e){var r=t.x,n=t.y,a=e.x,i=e.y,o=r*a+n*i,s=Math.sqrt((Math.pow(r,2)+Math.pow(n,2))*(Math.pow(a,2)+Math.pow(i,2))),u=r*i-n*a<0?-1:1,f=u*Math.acos(o/s);return f}function IZ(t,e,r,n,a,i,o,s,u,f){var l=Math.abs,c=Math.sin,h=Math.cos,d=Math.sqrt,v=Math.PI,p=l(r),g=l(n),y=(a%360+360)%360,m=y*(v/180);if(t===s&&e===u)return{x:t,y:e};if(p===0||g===0)return Ag(t,e,s,u,f).point;var b=(t-s)/2,w=(e-u)/2,x={x:h(m)*b+c(m)*w,y:-c(m)*b+h(m)*w},E=Math.pow(x.x,2)/Math.pow(p,2)+Math.pow(x.y,2)/Math.pow(g,2);E>1&&(p*=d(E),g*=d(E));var _=Math.pow(p,2)*Math.pow(g,2)-Math.pow(p,2)*Math.pow(x.y,2)-Math.pow(g,2)*Math.pow(x.x,2),S=Math.pow(p,2)*Math.pow(x.y,2)+Math.pow(g,2)*Math.pow(x.x,2),A=_/S;A=A<0?0:A;var M=(i!==o?1:-1)*d(A),C={x:M*(p*x.y/g),y:M*(-(g*x.x)/p)},I={x:h(m)*C.x-c(m)*C.y+(t+s)/2,y:c(m)*C.x+h(m)*C.y+(e+u)/2},k={x:(x.x-C.x)/p,y:(x.y-C.y)/g},O=qE({x:1,y:0},k),B={x:(-x.x-C.x)/p,y:(-x.y-C.y)/g},L=qE(k,B);!o&&L>0?L-=2*v:o&&L<0&&(L+=2*v),L%=2*v;var z=O+L*f,X=p*h(z),R=g*c(z),V={x:h(m)*X-c(m)*R+I.x,y:c(m)*X+h(m)*R+I.y};return V}function kZ(t,e,r,n,a,i,o,s,u,f,l){var c,h=l.bbox,d=h===void 0?!0:h,v=l.length,p=v===void 0?!0:v,g=l.sampleSize,y=g===void 0?30:g,m=typeof f=="number",b=t,w=e,x=0,E=[b,w,x],_=[b,w],S=0,A={x:0,y:0},M=[{x:b,y:w}];m&&f<=0&&(A={x:b,y:w});for(var C=0;C<=y;C+=1){if(S=C/y,c=IZ(t,e,r,n,a,i,o,s,u,S),b=c.x,w=c.y,d&&M.push({x:b,y:w}),p&&(x+=bu(_,[b,w])),_=[b,w],m&&x>=f&&f>E[2]){var I=(x-f)/(x-E[2]);A={x:_[0]*(1-I)+E[0]*I,y:_[1]*(1-I)+E[1]*I}}E=[b,w,x]}return m&&f>=x&&(A={x:s,y:u}),{length:x,point:A,min:{x:Math.min.apply(null,M.map(function(k){return k.x})),y:Math.min.apply(null,M.map(function(k){return k.y}))},max:{x:Math.max.apply(null,M.map(function(k){return k.x})),y:Math.max.apply(null,M.map(function(k){return k.y}))}}}function NZ(t,e,r,n,a,i,o,s,u){var f=1-u;return{x:Math.pow(f,3)*t+3*Math.pow(f,2)*u*r+3*f*Math.pow(u,2)*a+Math.pow(u,3)*o,y:Math.pow(f,3)*e+3*Math.pow(f,2)*u*n+3*f*Math.pow(u,2)*i+Math.pow(u,3)*s}}function ak(t,e,r,n,a,i,o,s,u,f){var l,c=f.bbox,h=c===void 0?!0:c,d=f.length,v=d===void 0?!0:d,p=f.sampleSize,g=p===void 0?10:p,y=typeof u=="number",m=t,b=e,w=0,x=[m,b,w],E=[m,b],_=0,S={x:0,y:0},A=[{x:m,y:b}];y&&u<=0&&(S={x:m,y:b});for(var M=0;M<=g;M+=1){if(_=M/g,l=NZ(t,e,r,n,a,i,o,s,_),m=l.x,b=l.y,h&&A.push({x:m,y:b}),v&&(w+=bu(E,[m,b])),E=[m,b],y&&w>=u&&u>x[2]){var C=(w-u)/(w-x[2]);S={x:E[0]*(1-C)+x[0]*C,y:E[1]*(1-C)+x[1]*C}}x=[m,b,w]}return y&&u>=w&&(S={x:o,y:s}),{length:w,point:S,min:{x:Math.min.apply(null,A.map(function(I){return I.x})),y:Math.min.apply(null,A.map(function(I){return I.y}))},max:{x:Math.max.apply(null,A.map(function(I){return I.x})),y:Math.max.apply(null,A.map(function(I){return I.y}))}}}function OZ(t,e,r,n,a,i,o){var s=1-o;return{x:Math.pow(s,2)*t+2*s*o*r+Math.pow(o,2)*a,y:Math.pow(s,2)*e+2*s*o*n+Math.pow(o,2)*i}}function LZ(t,e,r,n,a,i,o,s){var u,f=s.bbox,l=f===void 0?!0:f,c=s.length,h=c===void 0?!0:c,d=s.sampleSize,v=d===void 0?10:d,p=typeof o=="number",g=t,y=e,m=0,b=[g,y,m],w=[g,y],x=0,E={x:0,y:0},_=[{x:g,y}];p&&o<=0&&(E={x:g,y});for(var S=0;S<=v;S+=1){if(x=S/v,u=OZ(t,e,r,n,a,i,x),g=u.x,y=u.y,l&&_.push({x:g,y}),h&&(m+=bu(w,[g,y])),w=[g,y],p&&m>=o&&o>b[2]){var A=(m-o)/(m-b[2]);E={x:w[0]*(1-A)+b[0]*A,y:w[1]*(1-A)+b[1]*A}}b=[g,y,m]}return p&&o>=m&&(E={x:a,y:i}),{length:m,point:E,min:{x:Math.min.apply(null,_.map(function(M){return M.x})),y:Math.min.apply(null,_.map(function(M){return M.y}))},max:{x:Math.max.apply(null,_.map(function(M){return M.x})),y:Math.max.apply(null,_.map(function(M){return M.y}))}}}function Hd(t,e,r){for(var n,a,i,o,s,u,f=qd(t),l=typeof e=="number",c,h=[],d,v=0,p=0,g=0,y=0,m,b=[],w=[],x=0,E={x:0,y:0},_=E,S=E,A=E,M=0,C=0,I=f.length;C=e&&(A=S),w.push(_),b.push(E),M+=x,u=d!=="Z"?m.slice(-2):[g,y],v=u[0],p=u[1];return l&&e>=M&&(A={x:v,y:p}),{length:M,point:A,min:{x:Math.min.apply(null,b.map(function(k){return k.x})),y:Math.min.apply(null,b.map(function(k){return k.y}))},max:{x:Math.max.apply(null,w.map(function(k){return k.x})),y:Math.max.apply(null,w.map(function(k){return k.y}))}}}function DZ(t,e){if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var r=Hd(t,void 0,P(P({},e),{length:!1})),n=r.min,a=n.x,i=n.y,o=r.max,s=o.x,u=o.y,f=s-a,l=u-i;return{width:f,height:l,x:a,y:i,x2:s,y2:u,cx:a+f/2,cy:i+l/2,cz:Math.max(f,l)+Math.min(f,l)/2}}function Cf(t,e){return Hd(t,void 0,P(P({},e),{bbox:!1,length:!0})).length}function PZ(t,e){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var r=Hd(t,void 0,P(P({},e),{bbox:!0,length:!0})),n=r.length,a=r.min,i=a.x,o=a.y,s=r.max,u=s.x,f=s.y,l=u-i,c=f-o;return{length:n,width:l,height:c,x:i,y:o,x2:u,y2:f,cx:i+l/2,cy:o+c/2,cz:Math.max(l,c)+Math.min(l,c)/2}}function RZ(t){var e=t.length,r=e-1;return t.map(function(n,a){return t.map(function(i,o){var s=a+o,u;return o===0||t[s]&&t[s][0]==="M"?(u=t[s],["M"].concat(u.slice(-2))):(s>=e&&(s-=r),t[s])})})}function FZ(t,e){var r=t.length-1,n=[],a=0,i=0,o=RZ(t);return o.forEach(function(s,u){t.slice(1).forEach(function(f,l){i+=bu(t[(u+l)%r].slice(-2),e[l%r].slice(-2))}),n[u]=i,i=0}),a=n.indexOf(Math.min.apply(null,n)),o[a]}function BZ(t,e,r,n,a,i,o,s){return 3*((s-e)*(r+a)-(o-t)*(n+i)+n*(t-a)-r*(e-i)+s*(a+t/3)-o*(i+e/3))/20}function ik(t){var e=0,r=0,n=0;return nk(t).map(function(a){var i;switch(a[0]){case"M":return e=a[1],r=a[2],0;default:var o=a.slice(1),s=o[0],u=o[1],f=o[2],l=o[3],c=o[4],h=o[5];return n=BZ(e,r,s,u,f,l,c,h),i=a.slice(-2),e=i[0],r=i[1],n}}).reduce(function(a,i){return a+i},0)}function GZ(t){return ik(t)>=0}function vh(t,e,r){return Hd(t,e,P(P({},r),{bbox:!1,length:!0})).point}function zZ(t,e){var r=Yd(t);if(typeof r=="string")throw TypeError(r);var n=r.slice(),a=Cf(n),i=n.length-1,o=0,s=0,u=r[0],f=u.slice(-2),l=f[0],c=f[1],h={x:l,y:c};if(i<=0||!e||!Number.isFinite(e))return{segment:u,index:0,length:s,point:h,lengthAtSegment:o};if(e>=a)return n=r.slice(0,-1),o=Cf(n),s=a-o,{segment:r[i],index:i,length:s,lengthAtSegment:o};for(var d=[];i>0;)u=n[i],n=n.slice(0,-1),o=Cf(n),s=a-o,a=o,d.push({segment:u,index:i,length:s,lengthAtSegment:o}),i-=1;return d.find(function(v){var p=v.lengthAtSegment;return p<=e})}function jZ(t,e){for(var r=Yd(t),n=qd(r),a=Cf(r),i=function(x){var E=x.x-e.x,_=x.y-e.y;return E*E+_*_},o=8,s,u=0,f,l=0,c=1/0,h=0;h<=a;h+=o)s=vh(n,h),u=i(s),u.5;)p=l-o,d=vh(n,p),y=i(d),g=l+o,v=vh(n,g),m=i(v),p>=0&&y$Z)return console.warn("Maximum recursion depth reached in equalizeSegments"),[t,e];var a=HE(t),i=HE(e),o=a.length,s=i.length,u=a.filter(function(y){return y.l}).length,f=i.filter(function(y){return y.l}).length,l=a.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/u||0,c=i.filter(function(y){return y.l}).reduce(function(y,m){var b=m.l;return y+b},0)/f||0,h=r||Math.max(o,s),d=[l,c],v=[h-o,h-s],p=0,g=[a,i].map(function(y,m){return y.l===h?y.map(function(b){return b.s}):y.map(function(b,w){return p=w&&v[m]&&b.l>=d[m],v[m]-=p?1:0,p?b.ss:[b.s]}).flat()});return g[0].length===g[1].length?g:ok(g[0],g[1],h,n+1)}var WZ=1e-6;function qp(t){return Math.abs(t)0!=qp(s[1]-r)>0&&qp(e-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}var ZE=function(t,e,r){return t>=e&&t<=r};function YZ(t,e,r,n){var a=.001,i={x:r.x-t.x,y:r.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:n.x-r.x,y:n.y-r.y},u=o.x*s.y-o.y*s.x,f=u*u,l=o.x*o.x+o.y*o.y,c=s.x*s.x+s.y*s.y,h=null;if(f>a*l*c){var d=(i.x*s.y-i.y*s.x)/u,v=(i.x*o.y-i.y*o.x)/u;ZE(d,0,1)&&ZE(v,0,1)&&(h={x:t.x+d*o.x,y:t.y+d*o.y})}return h}function KE(t){for(var e=[],r=t.length,n=0;n1){var o=t[0],s=t[r-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function qZ(t,e){var r=!1;return t.forEach(function(n){if(YZ(n.from,n.to,e.from,e.to))return r=!0,!1}),r}function QE(t){var e=t.map(function(n){return n[0]}),r=t.map(function(n){return n[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,r),maxY:Math.max.apply(null,r)}}function HZ(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0;)c%2&&(h+=u[c+1]),c=c-1>>1,u[c]+=l.weight;f+=l.weight*h}}),f},aK=function(t,e){for(var r=0,n=1;n<(e==null?void 0:e.length);n+=1)r+=nK(t,e[n-1],e[n]);return r};xm.default=aK;var Em={};Object.defineProperty(Em,"__esModule",{value:!0});var iK=wi,oK=function(t,e,r){var n=sK(t),a=new iK.Graph({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return t.nodes().forEach(function(i){var o,s=t.node(i),u=t.parent(i);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(a.setNode(i),a.setParent(i,u||n),(o=t[r](i))===null||o===void 0||o.forEach(function(f){var l=f.v===i?f.w:f.v,c=a.edgeFromArgs(l,i),h=c!==void 0?c.weight:0;a.setEdge(l,i,{weight:t.edge(f).weight+h})}),s.hasOwnProperty("minRank")&&a.setNode(i,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),a},sK=function(t){for(var e;t.hasNode(e="_root".concat(Math.random())););return e};Em.default=oK;var _m={};Object.defineProperty(_m,"__esModule",{value:!0});var uK=function(t,e,r){var n={},a;r==null||r.forEach(function(i){for(var o=t.parent(i),s,u;o;){if(s=t.parent(o),s?(u=n[s],n[s]=o):(u=a,a=o),u&&u!==o){e.setEdge(u,o);return}o=s}})};_m.default=uK;var Sm={},Mm={};Object.defineProperty(Mm,"__esModule",{value:!0});var fK=function(t,e){return e.map(function(r){var n=t.inEdges(r);if(!(n!=null&&n.length))return{v:r};{var a={sum:0,weight:0};return n==null||n.forEach(function(i){var o=t.edge(i),s=t.node(i.v);a.sum+=o.weight*s.order,a.weight+=o.weight}),{v:r,barycenter:a.sum/a.weight,weight:a.weight}}})};Mm.default=fK;var Am={};Object.defineProperty(Am,"__esModule",{value:!0});var lK=function(t,e){var r,n,a,i={};t==null||t.forEach(function(s,u){i[s.v]={i:u,indegree:0,in:[],out:[],vs:[s.v]};var f=i[s.v];s.barycenter!==void 0&&(f.barycenter=s.barycenter,f.weight=s.weight)}),(r=e.edges())===null||r===void 0||r.forEach(function(s){var u=i[s.v],f=i[s.w];u!==void 0&&f!==void 0&&(f.indegree++,u.out.push(i[s.w]))});var o=(a=(n=Object.values(i)).filter)===null||a===void 0?void 0:a.call(n,function(s){return!s.indegree});return cK(o)},cK=function(t){for(var e,r,n=[],a=function(f){return function(l){l.merged||(l.barycenter===void 0||f.barycenter===void 0||l.barycenter>=f.barycenter)&&hK(f,l)}},i=function(f){return function(l){l.in.push(f),--l.indegree===0&&t.push(l)}},o=function(){var f=t.pop();n.push(f),(e=f.in.reverse())===null||e===void 0||e.forEach(function(l){return a(f)(l)}),(r=f.out)===null||r===void 0||r.forEach(function(l){return i(f)(l)})};t!=null&&t.length;)o();var s=n.filter(function(f){return!f.merged}),u=["vs","i","barycenter","weight"];return s.map(function(f){var l={};return u==null||u.forEach(function(c){f[c]!==void 0&&(l[c]=f[c])}),l})},hK=function(t,e){var r,n=0,a=0;t.weight&&(n+=t.barycenter*t.weight,a+=t.weight),e.weight&&(n+=e.barycenter*e.weight,a+=e.weight),t.vs=(r=e.vs)===null||r===void 0?void 0:r.concat(t.vs),t.barycenter=n/a,t.weight=a,t.i=Math.min(e.i,t.i),e.merged=!0};Am.default=lK;var Cm={};Object.defineProperty(Cm,"__esModule",{value:!0});var dK=Vn,vK=function(t,e,r,n){var a=(0,dK.partition)(t,function(h){var d=h.hasOwnProperty("fixorder")&&!isNaN(h.fixorder);return n?!d&&h.hasOwnProperty("barycenter"):d||h.hasOwnProperty("barycenter")}),i=a.lhs,o=a.rhs.sort(function(h,d){return-h.i- -d.i}),s=[],u=0,f=0,l=0;i==null||i.sort(pK(!!e,!!r)),l=JE(s,o,l),i==null||i.forEach(function(h){var d;l+=(d=h.vs)===null||d===void 0?void 0:d.length,s.push(h.vs),u+=h.barycenter*h.weight,f+=h.weight,l=JE(s,o,l)});var c={vs:s.flat()};return f&&(c.barycenter=u/f,c.weight=f),c},JE=function(t,e,r){for(var n=r,a;e.length&&(a=e[e.length-1]).i<=n;)e.pop(),t==null||t.push(a.vs),n++;return n},pK=function(t,e){return function(r,n){if(r.fixorder!==void 0&&n.fixorder!==void 0)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(e&&r.order!==void 0&&n.order!==void 0){if(r.ordern.order)return 1}return t?n.i-r.i:r.i-n.i}};Cm.default=vK;var Tm=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sm,"__esModule",{value:!0});var gK=Tm(Mm),yK=Tm(Am),mK=Tm(Cm),uk=function(t,e,r,n,a,i){var o,s,u,f,l=t.children(e),c=t.node(e),h=c?c.borderLeft:void 0,d=c?c.borderRight:void 0,v={};h&&(l=l==null?void 0:l.filter(function(w){return w!==h&&w!==d}));var p=(0,gK.default)(t,l||[]);p==null||p.forEach(function(w){var x;if(!((x=t.children(w.v))===null||x===void 0)&&x.length){var E=uk(t,w.v,r,n,i);v[w.v]=E,E.hasOwnProperty("barycenter")&&wK(w,E)}});var g=(0,yK.default)(p,r);bK(g,v),(o=g.filter(function(w){return w.vs.length>0}))===null||o===void 0||o.forEach(function(w){var x=t.node(w.vs[0]);x&&(w.fixorder=x.fixorder,w.order=x.order)});var y=(0,mK.default)(g,n,a,i);if(h&&(y.vs=[h,y.vs,d].flat(),!((s=t.predecessors(h))===null||s===void 0)&&s.length)){var m=t.node(((u=t.predecessors(h))===null||u===void 0?void 0:u[0])||""),b=t.node(((f=t.predecessors(d))===null||f===void 0?void 0:f[0])||"");y.hasOwnProperty("barycenter")||(y.barycenter=0,y.weight=0),y.barycenter=(y.barycenter*y.weight+m.order+b.order)/(y.weight+2),y.weight+=2}return y},bK=function(t,e){t==null||t.forEach(function(r){var n,a=(n=r.vs)===null||n===void 0?void 0:n.map(function(i){return e[i]?e[i].vs:i});r.vs=a.flat()})},wK=function(t,e){t.barycenter!==void 0?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)};Sm.default=uk;var dl=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mm,"__esModule",{value:!0});var e_=dl(bm),t_=dl(xm),xK=dl(Em),EK=dl(_m),_K=dl(Sm),r_=Ir(),SK=wi,Hp=Vn,MK=function(t,e){for(var r=(0,Hp.maxRank)(t),n=[],a=[],i=1;i-1;i--)a.push(i);var o=n_(t,n,"inEdges"),s=n_(t,a,"outEdges"),u=(0,e_.default)(t);Zp(t,u);for(var f=Number.POSITIVE_INFINITY,l,i=0,c=0;c<4;++i,++c){a_(i%2?o:s,i%4>=2,!1,e),u=(0,Hp.buildLayerMatrix)(t);var h=(0,t_.default)(t,u);h=2,!0,e),u=(0,Hp.buildLayerMatrix)(t);var h=(0,t_.default)(t,u);hB)&&(0,t.addConflict)(E,V,X)}))}function S(C){return JSON.stringify(C.slice(1))}function A(C,I){var k=S(C);I.get(k)||(_.apply(void 0,C),I.set(k,!0))}var M=function(C,I){var k=-1,O,B=0,L=new Map;return I==null||I.forEach(function(z,X){var R;if(((R=w.node(z))===null||R===void 0?void 0:R.dummy)==="border"){var V=w.predecessors(z)||[];V.length&&(O=w.node(V[0]).order,A([I,B,X,k,O],L),B=X,k=O)}A([I,B,I.length,O,C.length],L)}),I};return x!=null&&x.length&&x.reduce(M),E};t.findType2Conflicts=s;var u=function(w,x){var E,_;if(!((E=w.node(x))===null||E===void 0)&&E.dummy)return(_=w.predecessors(x))===null||_===void 0?void 0:_.find(function(S){return w.node(S).dummy})};t.findOtherInnerSegmentNode=u;var f=function(w,x,E){var _=x,S=E;if(_>S){var A=_;_=S,S=A}var M=w[_];M||(w[_]=M={}),M[S]=!0};t.addConflict=f;var l=function(w,x,E){var _=x,S=E;if(_>S){var A=x;_=S,S=A}return!!w[_]};t.hasConflict=l;var c=function(w,x,E,_){var S={},A={},M={};return x==null||x.forEach(function(C){C==null||C.forEach(function(I,k){S[I]=I,A[I]=I,M[I]=k})}),x==null||x.forEach(function(C){var I=-1;C==null||C.forEach(function(k){var O=_(k);if(O.length){O=O.sort(function(R,V){return M[R]-M[V]});for(var B=(O.length-1)/2,L=Math.floor(B),z=Math.ceil(B);L<=z;++L){var X=O[L];A[k]===k&&IN.x&&(B=N.x),L>N.y&&(L=N.y)}),b.edges().forEach(function(te){var N,Se=b.edge(te);(N=Se.points)===null||N===void 0||N.forEach(function(Fe){B>Fe.x&&(B=Fe.x),L>Fe.y&&(L=Fe.y)})}),O[0]=h[0]-B,O[1]=h[1]-L}var z=l==="LR"||l==="RL";if(d){var X=this,R=X.focusNode,V=X.ranksep,he=X.getRadialPos,ce=(0,Rn.isString)(R)?R:R==null?void 0:R.id,le=ce?(o=b.node(ce))===null||o===void 0?void 0:o._rank:0,ie=[],Ie=z?"y":"x",qe=z?"height":"width",Ve=1/0,it=-1/0;b.nodes().forEach(function(te){var N=b.node(te);if(s.nodeMap[te]){var Se=A(s.nodeMap[te]);if(le===0)ie[N._rank]||(ie[N._rank]={nodes:[],totalWidth:0,maxSize:-1/0}),ie[N._rank].nodes.push(te),ie[N._rank].totalWidth+=Se*2+N[qe],ie[N._rank].maxSizeit&&(it=$e)}});var dt=V||50,st={},Tt=(it-Ve)/.9,_t=[(Ve+it-Tt)*.5,(Ve+it+Tt)*.5],lr=function(te,N,Se,Fe){Se===void 0&&(Se=-1/0),Fe===void 0&&(Fe=[0,1]);var ge=Se;return te.forEach(function(Ue){var $e=b.node(Ue);st[Ue]=N;var Ze=he($e[Ie],_t,Tt,N,Fe),Je=Ze.x,ht=Ze.y;if(s.nodeMap[Ue]){s.nodeMap[Ue].x=Je+O[0],s.nodeMap[Ue].y=ht+O[1],s.nodeMap[Ue]._order=$e._order;var Lt=S(s.nodeMap[Ue]);ge=ge})}:function(te,N,Se){var Fe=Math.max(N.x,Se.x),ge=Math.min(N.x,Se.x);return te.filter(function(Ue){return Ue.x<=Fe&&Ue.x>=ge})};b.edges().forEach(function(te){var N,Se=b.edge(te),Fe=m.findIndex(function($e){var Ze=(0,Rn.getEdgeTerminal)($e,"source"),Je=(0,Rn.getEdgeTerminal)($e,"target");return Ze===te.v&&Je===te.w});if(!(Fe<=-1)&&s.edgeLabelSpace&&s.controlPoints&&m[Fe].type!=="loop"){(N=Se==null?void 0:Se.points)===null||N===void 0||N.forEach(function($e){$e.x+=O[0],$e.y+=O[1]});var ge=s.nodeMap[te.v],Ue=s.nodeMap[te.w];m[Fe].controlPoints=dQ(Se==null?void 0:Se.points,ge,Ue,sr,z,tn,tt)}})}return s.onLayoutEnd&&s.onLayoutEnd(),{nodes:u,edges:m}}},e.prototype.getRadialPos=function(r,n,a,i,o){o===void 0&&(o=[0,1]);var s=(r-n[0])/a;s=s*(o[1]-o[0])+o[0];var u=s*2*Math.PI;return{x:Math.cos(u)*i,y:Math.sin(u)*i}},e.prototype.getType=function(){return"dagre"},e}(cQ.Base);yu.DagreLayout=hQ;var dQ=function(t,e,r,n,a,i,o){var s=(t==null?void 0:t.slice(1,t.length-1))||[];if(e&&r){var u=e.x,f=e.y,l=r.x,c=r.y;if(a&&(u=e.y,f=e.x,l=r.y,c=r.x),c!==f&&u!==l){var h=n.indexOf(f),d=n[h+1];if(d){var v=s[0],p=a?{x:(f+d)/2,y:(v==null?void 0:v.y)||l}:{x:(v==null?void 0:v.x)||l,y:(f+d)/2};(!v||i(v,p))&&s.unshift(p)}var g=n.indexOf(c),y=Math.abs(g-h);if(y===1)s=o(s,e,r),s.length||s.push(a?{x:(f+c)/2,y:u}:{x:u,y:(f+c)/2});else if(y>1){var m=n[g-1];if(m){var b=s[s.length-1],w=a?{x:(c+m)/2,y:(b==null?void 0:b.y)||l}:{x:(b==null?void 0:b.x)||u,y:(c+m)/2};(!b||i(b,w))&&s.push(w)}}}}return s},vl={};const ed={graph:{meta:{rankDir:"TB",nodeSep:50,rankSep:50,edgeSep:5,align:void 0}},subScene:{meta:{paddingTop:20,paddingBottom:20,paddingLeft:20,paddingRight:20,labelHeight:20}},nodeSize:{meta:{width:100,maxLabelWidth:0,height:20},node:{width:80,height:20,labelOffset:10,maxLabelWidth:40},bridge:{width:5,height:5,radius:2,labelOffset:0}}};function Tg(t={},e=ed){var r,n,a,i;const o=JSON.parse(JSON.stringify(e)),s=((r=t==null?void 0:t.graph)===null||r===void 0?void 0:r.meta)||{},u=((n=t==null?void 0:t.subScene)===null||n===void 0?void 0:n.meta)||{},f=((a=t==null?void 0:t.nodeSize)===null||a===void 0?void 0:a.meta)||{},l=((i=t==null?void 0:t.nodeSize)===null||i===void 0?void 0:i.node)||{},c=o.nodeSize.bridge;return{graph:{meta:Object.assign(o.graph.meta,s)},subScene:{meta:Object.assign(o.subScene.meta,u)},nodeSize:{meta:Object.assign(o.nodeSize.meta,f),node:Object.assign(o.nodeSize.node,l),bridge:c}}}function lk(t){return`◬${t}◬`}const su=lk("ROOT"),ck=lk("BRIDGE_GRAPH");var kn,Yo,uu,Ig;(function(t){t[t.META=0]="META",t[t.NODE=1]="NODE",t[t.BRIDGE=2]="BRIDGE"})(kn||(kn={})),function(t){t[t.INCLUDE=0]="INCLUDE",t[t.EXCLUDE=1]="EXCLUDE",t[t.UNSPECIFIED=2]="UNSPECIFIED"}(Yo||(Yo={})),function(t){t[t.META=0]="META",t[t.CORE=1]="CORE",t[t.BRIDGE=2]="BRIDGE"}(uu||(uu={})),function(t){t[t.META=0]="META",t[t.OP=1]="OP",t[t.SERIES=2]="SERIES"}(Ig||(Ig={}));var Pc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(t,e){return t(e={exports:{}},e.exports),e.exports}var vQ=function(){this.__data__=[],this.size=0},wu=function(t,e){return t===e||t!=t&&e!=e},Zd=function(t,e){for(var r=t.length;r--;)if(wu(t[r][0],e))return r;return-1},pQ=Array.prototype.splice,gQ=function(t){var e=this.__data__,r=Zd(e,t);return!(r<0)&&(r==e.length-1?e.pop():pQ.call(e,r,1),--this.size,!0)},yQ=function(t){var e=this.__data__,r=Zd(e,t);return r<0?void 0:e[r][1]},mQ=function(t){return Zd(this.__data__,t)>-1},bQ=function(t,e){var r=this.__data__,n=Zd(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};function Os(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991},br={};br["[object Float32Array]"]=br["[object Float64Array]"]=br["[object Int8Array]"]=br["[object Int16Array]"]=br["[object Int32Array]"]=br["[object Uint8Array]"]=br["[object Uint8ClampedArray]"]=br["[object Uint16Array]"]=br["[object Uint32Array]"]=!0,br["[object Arguments]"]=br["[object Array]"]=br["[object ArrayBuffer]"]=br["[object Boolean]"]=br["[object DataView]"]=br["[object Date]"]=br["[object Error]"]=br["[object Function]"]=br["[object Map]"]=br["[object Number]"]=br["[object Object]"]=br["[object RegExp]"]=br["[object Set]"]=br["[object String]"]=br["[object WeakMap]"]=!1;var oJ=function(t){return wa(t)&&Dm(t.length)&&!!br[ao(t)]},nv=function(t){return function(e){return t(e)}},lu=Om(function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,a=n&&n.exports===r&&hk.process,i=function(){try{var o=n&&n.require&&n.require("util").types;return o||a&&a.binding&&a.binding("util")}catch{}}();t.exports=i}),y_=lu&&lu.isTypedArray,yl=y_?nv(y_):oJ,sJ=Object.prototype.hasOwnProperty,pk=function(t,e){var r=Pr(t),n=!r&&fu(t),a=!r&&!n&&qo(t),i=!r&&!n&&!a&&yl(t),o=r||n||a||i,s=o?tJ(t.length,String):[],u=s.length;for(var f in t)!e&&!sJ.call(t,f)||o&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||rv(f,u))||s.push(f);return s},uJ=Object.prototype,av=function(t){var e=t&&t.constructor;return t===(typeof e=="function"&&e.prototype||uJ)},gk=function(t,e){return function(r){return t(e(r))}},fJ=gk(Object.keys,Object),lJ=Object.prototype.hasOwnProperty,Pm=function(t){if(!av(t))return fJ(t);var e=[];for(var r in Object(t))lJ.call(t,r)&&r!="constructor"&&e.push(r);return e},Ei=function(t){return t!=null&&Dm(t.length)&&!pl(t)},io=function(t){return Ei(t)?pk(t):Pm(t)},cJ=function(t,e){return t&&gl(e,io(e),t)},hJ=function(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e},dJ=Object.prototype.hasOwnProperty,vJ=function(t){if(!Dn(t))return hJ(t);var e=av(t),r=[];for(var n in t)(n!="constructor"||!e&&dJ.call(t,n))&&r.push(n);return r},ts=function(t){return Ei(t)?pk(t,!0):vJ(t)},pJ=function(t,e){return t&&gl(e,ts(e),t)},yk=Om(function(t,e){var r=e&&!e.nodeType&&e,n=r&&t&&!t.nodeType&&t,a=n&&n.exports===r?_a.Buffer:void 0,i=a?a.allocUnsafe:void 0;t.exports=function(o,s){if(s)return o.slice();var u=o.length,f=i?i(u):new o.constructor(u);return o.copy(f),f}}),mk=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++rs))return!1;var f=i.get(t),l=i.get(e);if(f&&l)return f==e&&l==t;var c=-1,h=!0,d=2&r?new kk:void 0;for(i.set(t,e),i.set(e,t);++c0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(Aee),fv=function(t,e){return Zk(Hk(t,e,rs),t+"")},Kk=function(t,e,r,n){for(var a=t.length,i=r+-1;++i-1},Oee=function(){},Lee=Ys&&1/Um(new Ys([,-0]))[1]==1/0?function(t){return new Ys(t)}:Oee,Dee=function(t,e,r){var n=-1,a=Nee,i=t.length,o=!0,s=[],u=s;if(i>=200){var f=Lee(t);if(f)return Um(f);o=!1,a=Nk,u=new kk}else u=s;e:for(;++ni){var o=a;a=i,i=o}return a+""+i+""+(ot.isUndefined(n)?"\0":n)}function Fee(t,e,r,n){var a=""+e,i=""+r;if(!t&&a>i){var o=a;a=i,i=o}var s={v:a,w:i};return n&&(s.name=n),s}function n0(t,e){return yf(t,e.v,e.w,e.name)}tr.prototype._nodeCount=0,tr.prototype._edgeCount=0,tr.prototype.isDirected=function(){return this._isDirected},tr.prototype.isMultigraph=function(){return this._isMultigraph},tr.prototype.isCompound=function(){return this._isCompound},tr.prototype.setGraph=function(t){return this._label=t,this},tr.prototype.graph=function(){return this._label},tr.prototype.setDefaultNodeLabel=function(t){return ot.isFunction(t)||(t=ot.constant(t)),this._defaultNodeLabelFn=t,this},tr.prototype.nodeCount=function(){return this._nodeCount},tr.prototype.nodes=function(){return ot.keys(this._nodes)},tr.prototype.sources=function(){var t=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(t._in[e])})},tr.prototype.sinks=function(){var t=this;return ot.filter(this.nodes(),function(e){return ot.isEmpty(t._out[e])})},tr.prototype.setNodes=function(t,e){var r=arguments,n=this;return ot.each(t,function(a){r.length>1?n.setNode(a,e):n.setNode(a)}),this},tr.prototype.setNode=function(t,e){return ot.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]="\0",this._children[t]={},this._children["\0"][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},tr.prototype.node=function(t){return this._nodes[t]},tr.prototype.hasNode=function(t){return ot.has(this._nodes,t)},tr.prototype.removeNode=function(t){var e=this;if(ot.has(this._nodes,t)){var r=function(n){e.removeEdge(e._edgeObjs[n])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],ot.each(this.children(t),function(n){e.setParent(n)}),delete this._children[t]),ot.each(ot.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],ot.each(ot.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},tr.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(ot.isUndefined(e))e="\0";else{for(var r=e+="";!ot.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},tr.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},tr.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!=="\0")return e}},tr.prototype.children=function(t){if(ot.isUndefined(t)&&(t="\0"),this._isCompound){var e=this._children[t];if(e)return ot.keys(e)}else{if(t==="\0")return this.nodes();if(this.hasNode(t))return[]}},tr.prototype.predecessors=function(t){var e=this._preds[t];if(e)return ot.keys(e)},tr.prototype.successors=function(t){var e=this._sucs[t];if(e)return ot.keys(e)},tr.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return ot.union(e,this.successors(t))},tr.prototype.isLeaf=function(t){return(this.isDirected()?this.successors(t):this.neighbors(t)).length===0},tr.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;ot.each(this._nodes,function(i,o){t(o)&&e.setNode(o,i)}),ot.each(this._edgeObjs,function(i){e.hasNode(i.v)&&e.hasNode(i.w)&&e.setEdge(i,r.edge(i))});var n={};function a(i){var o=r.parent(i);return o===void 0||e.hasNode(o)?(n[i]=o,o):o in n?n[o]:a(o)}return this._isCompound&&ot.each(e.nodes(),function(i){e.setParent(i,a(i))}),e},tr.prototype.setDefaultEdgeLabel=function(t){return ot.isFunction(t)||(t=ot.constant(t)),this._defaultEdgeLabelFn=t,this},tr.prototype.edgeCount=function(){return this._edgeCount},tr.prototype.edges=function(){return ot.values(this._edgeObjs)},tr.prototype.setPath=function(t,e){var r=this,n=arguments;return ot.reduce(t,function(a,i){return n.length>1?r.setEdge(a,i,e):r.setEdge(a,i),i}),this},tr.prototype.setEdge=function(){var t,e,r,n,a=!1,i=arguments[0];typeof i=="object"&&i!==null&&"v"in i?(t=i.v,e=i.w,r=i.name,arguments.length===2&&(n=arguments[1],a=!0)):(t=i,e=arguments[1],r=arguments[3],arguments.length>2&&(n=arguments[2],a=!0)),t=""+t,e=""+e,ot.isUndefined(r)||(r=""+r);var o=yf(this._isDirected,t,e,r);if(ot.has(this._edgeLabels,o))return a&&(this._edgeLabels[o]=n),this;if(!ot.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[o]=a?n:this._defaultEdgeLabelFn(t,e,r);var s=Fee(this._isDirected,t,e,r);return t=s.v,e=s.w,Object.freeze(s),this._edgeObjs[o]=s,O_(this._preds[e],t),O_(this._sucs[t],e),this._in[e][o]=s,this._out[t][o]=s,this._edgeCount++,this},tr.prototype.edge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r);return this._edgeLabels[n]},tr.prototype.hasEdge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r);return ot.has(this._edgeLabels,n)},tr.prototype.removeEdge=function(t,e,r){var n=arguments.length===1?n0(this._isDirected,arguments[0]):yf(this._isDirected,t,e,r),a=this._edgeObjs[n];return a&&(t=a.v,e=a.w,delete this._edgeLabels[n],delete this._edgeObjs[n],L_(this._preds[e],t),L_(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},tr.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var n=ot.values(r);return e?ot.filter(n,function(a){return a.v===e}):n}},tr.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var n=ot.values(r);return e?ot.filter(n,function(a){return a.w===e}):n}},tr.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))};var D_={Graph:Vm,version:"2.1.8"},Bee={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Gee(t),edges:zee(t)};return ot.isUndefined(t.graph())||(e.value=ot.clone(t.graph())),e},read:function(t){var e=new Vm(t.options).setGraph(t.value);return ot.each(t.nodes,function(r){e.setNode(r.v,r.value),r.parent&&e.setParent(r.v,r.parent)}),ot.each(t.edges,function(r){e.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),e}};function Gee(t){return ot.map(t.nodes(),function(e){var r=t.node(e),n=t.parent(e),a={v:e};return ot.isUndefined(r)||(a.value=r),ot.isUndefined(n)||(a.parent=n),a})}function zee(t){return ot.map(t.edges(),function(e){var r=t.edge(e),n={v:e.v,w:e.w};return ot.isUndefined(e.name)||(n.name=e.name),ot.isUndefined(r)||(n.value=r),n})}var jee=function(t){var e,r={},n=[];function a(i){ot.has(r,i)||(r[i]=!0,e.push(i),ot.each(t.successors(i),a),ot.each(t.predecessors(i),a))}return ot.each(t.nodes(),function(i){e=[],a(i),e.length&&n.push(e)}),n},eN=Qn;function Qn(){this._arr=[],this._keyIndices={}}Qn.prototype.size=function(){return this._arr.length},Qn.prototype.keys=function(){return this._arr.map(function(t){return t.key})},Qn.prototype.has=function(t){return ot.has(this._keyIndices,t)},Qn.prototype.priority=function(t){var e=this._keyIndices[t];if(e!==void 0)return this._arr[e].priority},Qn.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},Qn.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!ot.has(r,t)){var n=this._arr,a=n.length;return r[t]=a,n.push({key:t,priority:e}),this._decrease(a),!0}return!1},Qn.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},Qn.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},Qn.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,a=t;r>1].priority0&&(u=c.removeMin(),(f=l[u]).distance!==Number.POSITIVE_INFINITY);)s(u).forEach(h);return l}(t,String(e),r||Uee,n||function(a){return t.outEdges(a)})},Uee=ot.constant(1),$ee=function(t,e,r){return ot.transform(t.nodes(),function(n,a){n[a]=tN(t,a,e,r)},{})},rN=function(t){var e=0,r=[],n={},a=[];function i(o){var s=n[o]={onStack:!0,lowlink:e,index:e++};if(r.push(o),t.successors(o).forEach(function(l){ot.has(n,l)?n[l].onStack&&(s.lowlink=Math.min(s.lowlink,n[l].index)):(i(l),s.lowlink=Math.min(s.lowlink,n[l].lowlink))}),s.lowlink===s.index){var u,f=[];do u=r.pop(),n[u].onStack=!1,f.push(u);while(o!==u);a.push(f)}}return t.nodes().forEach(function(o){ot.has(n,o)||i(o)}),a},Xee=function(t){return ot.filter(rN(t),function(e){return e.length>1||e.length===1&&t.hasEdge(e[0],e[0])})},Wee=function(t,e,r){return function(n,a,i){var o={},s=n.nodes();return s.forEach(function(u){o[u]={},o[u][u]={distance:0},s.forEach(function(f){u!==f&&(o[u][f]={distance:Number.POSITIVE_INFINITY})}),i(u).forEach(function(f){var l=f.v===u?f.w:f.v,c=a(f);o[u][l]={distance:c,predecessor:u}})}),s.forEach(function(u){var f=o[u];s.forEach(function(l){var c=o[l];s.forEach(function(h){var d=c[u],v=f[h],p=c[h],g=d.distance+v.distance;g0;){if(r=i.removeMin(),ot.has(a,r))n.setEdge(r,a[r]);else{if(s)throw new Error("Input graph is not connected: "+t);s=!0}t.nodeEdges(r).forEach(o)}return n},tarjan:rN,topsort:a0},version:D_.version};try{id=Yee}catch{}id||(id=window.graphlib);var Sa=id,qee=function(t){return Ak(t,5)},Hf=function(t,e,r){if(!Dn(r))return!1;var n=typeof e;return!!(n=="number"?Ei(r)&&rv(e,r.length):n=="string"&&e in r)&&wu(r[e],t)},iN=Object.prototype,Hee=iN.hasOwnProperty,Zee=fv(function(t,e){t=Object(t);var r=-1,n=e.length,a=n>2?e[2]:void 0;for(a&&Hf(e[0],e[1],a)&&(n=1);++r-1?a[i?e[o]:o]:void 0}},Qee=/^\s+|\s+$/g,Jee=/^[-+]0x[0-9a-f]+$/i,ete=/^0b[01]+$/i,tte=/^0o[0-7]+$/i,rte=parseInt,nte=function(t){if(typeof t=="number")return t;if(Zo(t))return NaN;if(Dn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Dn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(Qee,"");var r=ete.test(t);return r||tte.test(t)?rte(t.slice(2),r?2:8):Jee.test(t)?NaN:+t},gh=function(t){return t?(t=nte(t))===1/0||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:t===0?t:0},ate=function(t){var e=gh(t),r=e%1;return e==e?r?e-r:e:0},ite=Math.max,ote=Kee(function(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var a=r==null?0:ate(r);return a<0&&(a=ite(n+a,0)),Kk(t,_i(e),a)}),oN=function(t){return t!=null&&t.length?Wm(t):[]},ste=function(t,e){return t==null?t:zm(t,Ck(e),ts)},ute=function(t){var e=t==null?0:t.length;return e?t[e-1]:void 0},fte=function(t,e){var r={};return e=_i(e),jm(t,function(n,a,i){ev(r,a,e(n,a,i))}),r},Ym=function(t,e,r){for(var n=-1,a=t.length;++ne},cte=function(t){return t&&t.length?Ym(t,rs,lte):void 0},Rg=function(t,e,r){(r!==void 0&&!wu(t[e],r)||r===void 0&&!(e in t))&&ev(t,e,r)},hte=Function.prototype,dte=Object.prototype,sN=hte.toString,vte=dte.hasOwnProperty,pte=sN.call(Object),gte=function(t){if(!wa(t)||ao(t)!="[object Object]")return!1;var e=iv(t);if(e===null)return!0;var r=vte.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&sN.call(r)==pte},R_=function(t,e){if((e!=="constructor"||typeof t[e]!="function")&&e!="__proto__")return t[e]},yte=function(t){return gl(t,ts(t))},mte=function(t,e,r,n,a,i,o){var s=R_(t,r),u=R_(e,r),f=o.get(u);if(f)Rg(t,r,f);else{var l=void 0,c=l===void 0;if(c){var h=Pr(u),d=!h&&qo(u),v=!h&&!d&&yl(u);l=u,h||d||v?Pr(s)?l=s:Qk(s)?l=mk(s):d?(c=!1,l=yk(u,!0)):v?(c=!1,l=_k(u,!0)):l=[]:gte(u)||fu(u)?(l=s,fu(s)?l=yte(s):Dn(s)&&!pl(s)||(l=Mk(u))):c=!1}c&&(o.set(u,l),a(l,u,n,i,o),o.delete(u)),Rg(t,r,l)}},bte=function t(e,r,n,a,i){e!==r&&zm(r,function(o,s){if(i||(i=new Vs),Dn(o))mte(e,r,s,n,t,a,i);else{var u=void 0;u===void 0&&(u=o),Rg(e,s,u)}},ts)},wte=function(t){return fv(function(e,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(a--,i):void 0,o&&Hf(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),e=Object(e);++ne||i&&o&&u&&!s&&!f||n&&o&&u||!r&&u||!a)return 1;if(!n&&!i&&!f&&t=s?u:u*(r[n]=="desc"?-1:1)}return t.index-e.index},Pte=function(t,e,r){e=e.length?qs(e,function(i){return Pr(i)?function(o){return uv(o,i.length===1?i[0]:i)}:i}):[rs];var n=-1;e=qs(e,nv(_i));var a=$k(t,function(i,o,s){return{criteria:qs(e,function(u){return u(i)}),index:++n,value:i}});return Ote(a,function(i,o){return Dte(i,o,r)})},Rte=fv(function(t,e){if(t==null)return[];var r=e.length;return r>1&&Hf(t,e[0],e[1])?e=[]:r>2&&Hf(e[0],e[1],e[2])&&(e=[e[0]]),Pte(t,Wm(e),[])}),Fte=0,Bte=function(t){var e=++Fte;return Rk(t)+e},Gte=function(t,e,r){for(var n=-1,a=t.length,i=e.length,o={};++n0;--c)if(s=i[c].dequeue()){u=u.concat(i0(a,i,o,s,!0));break}}}return u}(r.graph,r.buckets,r.zeroIdx);return Z.flatten(Z.map(n,function(a){return t.outEdges(a.v,a.w)}),!0)},Wte=Z.constant(1);function i0(t,e,r,n,a){var i=a?[]:void 0;return Z.forEach(t.inEdges(n.v),function(o){var s=t.edge(o),u=t.node(o.v);a&&i.push({v:o.v,w:o.w}),u.out-=s,Fg(e,r,u)}),Z.forEach(t.outEdges(n.v),function(o){var s=t.edge(o),u=o.w,f=t.node(u);f.in-=s,Fg(e,r,f)}),t.removeNode(n.v),i}function Fg(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}var B_={run:function(t){var e=t.graph().acyclicer==="greedy"?Xte(t,function(r){return function(n){return r.edge(n).weight}}(t)):function(r){var n=[],a={},i={};function o(s){Z.has(i,s)||(i[s]=!0,a[s]=!0,Z.forEach(r.outEdges(s),function(u){Z.has(a,u.w)?n.push(u):o(u.w)}),delete a[s])}return Z.forEach(r.nodes(),o),n}(t);Z.forEach(e,function(r){var n=t.edge(r);t.removeEdge(r),n.forwardName=r.name,n.reversed=!0,t.setEdge(r.w,r.v,n,Z.uniqueId("rev"))})},undo:function(t){Z.forEach(t.edges(),function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}})}},G_=Sa.Graph,Mn={addDummyNode:z_,simplify:function(t){var e=new G_().setGraph(t.graph());return Z.forEach(t.nodes(),function(r){e.setNode(r,t.node(r))}),Z.forEach(t.edges(),function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},a=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+a.weight,minlen:Math.max(n.minlen,a.minlen)})}),e},asNonCompoundGraph:function(t){var e=new G_({multigraph:t.isMultigraph()}).setGraph(t.graph());return Z.forEach(t.nodes(),function(r){t.children(r).length||e.setNode(r,t.node(r))}),Z.forEach(t.edges(),function(r){e.setEdge(r,t.edge(r))}),e},successorWeights:function(t){var e=Z.map(t.nodes(),function(r){var n={};return Z.forEach(t.outEdges(r),function(a){n[a.w]=(n[a.w]||0)+t.edge(a).weight}),n});return Z.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=Z.map(t.nodes(),function(r){var n={};return Z.forEach(t.inEdges(r),function(a){n[a.v]=(n[a.v]||0)+t.edge(a).weight}),n});return Z.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,a=t.x,i=t.y,o=e.x-a,s=e.y-i,u=t.width/2,f=t.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(s)*u>Math.abs(o)*f?(s<0&&(f=-f),r=f*o/s,n=f):(o<0&&(u=-u),r=u,n=u*s/o),{x:a+r,y:i+n}},buildLayerMatrix:function(t){var e=Z.map(Z.range(j_(t)+1),function(){return[]});return Z.forEach(t.nodes(),function(r){var n=t.node(r),a=n.rank;Z.isUndefined(a)||(e[a][n.order]=r)}),e},normalizeRanks:function(t){var e=Z.min(Z.map(t.nodes(),function(r){return t.node(r).rank}));Z.forEach(t.nodes(),function(r){var n=t.node(r);Z.has(n,"rank")&&(n.rank-=e)})},removeEmptyRanks:function(t){var e=Z.min(Z.map(t.nodes(),function(i){return t.node(i).rank})),r=[];Z.forEach(t.nodes(),function(i){var o=t.node(i).rank-e;r[o]||(r[o]=[]),r[o].push(i)});var n=0,a=t.graph().nodeRankFactor;Z.forEach(r,function(i,o){Z.isUndefined(i)&&o%a!=0?--n:n&&Z.forEach(i,function(s){t.node(s).rank+=n})})},addBorderNode:function(t,e,r,n){var a={width:0,height:0};return arguments.length>=4&&(a.rank=r,a.order=n),z_(t,"border",a,e)},maxRank:j_,partition:function(t,e){var r={lhs:[],rhs:[]};return Z.forEach(t,function(n){e(n)?r.lhs.push(n):r.rhs.push(n)}),r},time:function(t,e){var r=Z.now();try{return e()}finally{console.log(t+" time: "+(Z.now()-r)+"ms")}},notime:function(t,e){return e()}};function z_(t,e,r,n){var a;do a=Z.uniqueId(n);while(t.hasNode(a));return r.dummy=e,t.setNode(a,r),a}function j_(t){return Z.max(Z.map(t.nodes(),function(e){var r=t.node(e).rank;if(!Z.isUndefined(r))return r}))}var U_={run:function(t){t.graph().dummyChains=[],Z.forEach(t.edges(),function(e){(function(r,n){var a,i,o,s=n.v,u=r.node(s).rank,f=n.w,l=r.node(f).rank,c=n.name,h=r.edge(n),d=h.labelRank;if(l!==u+1){for(r.removeEdge(n),o=0,++u;uo.lim&&(s=o,u=!0);var f=Z.filter(e.edges(),function(l){return u===$_(t,t.node(l.v),s)&&u!==$_(t,t.node(l.w),s)});return Z.minBy(f,function(l){return Zte(e,l)})}function gN(t,e,r,n){var a=r.v,i=r.w;t.removeEdge(a,i),t.setEdge(n.v,n.w,{}),Hm(t),qm(t,e),function(o,s){var u=Z.find(o.nodes(),function(l){return!s.node(l).parent}),f=Qte(o,u);f=f.slice(1),Z.forEach(f,function(l){var c=o.node(l).parent,h=s.edge(l,c),d=!1;h||(h=s.edge(c,l),d=!0),s.node(l).rank=s.node(c).rank+(d?h.minlen:-h.minlen)})}(t,e)}function $_(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}Lo.initLowLimValues=Hm,Lo.initCutValues=qm,Lo.calcCutValue=hN,Lo.leaveEdge=vN,Lo.enterEdge=pN,Lo.exchangeEdges=gN;var yN=fN,rre=function(t){switch(t.graph().ranker){case"network-simplex":X_(t);break;case"tight-tree":(function(e){yN(e),cN(e)})(t);break;case"longest-path":nre(t);break;default:X_(t)}},nre=yN;function X_(t){tre(t)}var are=function(t){var e=function(r){var n={},a=0;function i(o){var s=a;Z.forEach(r.children(o),i),n[o]={low:s,lim:a++}}return Z.forEach(r.children(),i),n}(t);Z.forEach(t.graph().dummyChains,function(r){for(var n=t.node(r),a=n.edgeObj,i=function(c,h,d,v){var p,g,y=[],m=[],b=Math.min(h[d].low,h[v].low),w=Math.max(h[d].lim,h[v].lim);p=d;do p=c.parent(p),y.push(p);while(p&&(h[p].low>b||w>h[p].lim));for(g=p,p=v;(p=c.parent(p))!==g;)m.push(p);return{path:y.concat(m.reverse()),lca:g}}(t,e,a.v,a.w),o=i.path,s=i.lca,u=0,f=o[u],l=!0;r!==a.w;){if(n=t.node(r),l){for(;(f=o[u])!==s&&t.node(f).maxRank0;)l%2&&(c+=s[l+1]),s[l=l-1>>1]+=f.weight;u+=f.weight*c})),u}var fre=function(t,e){return Z.map(e,function(r){var n=t.inEdges(r);if(n.length){var a=Z.reduce(n,function(i,o){var s=t.edge(o),u=t.node(o.v);return{sum:i.sum+s.weight*u.order,weight:i.weight+s.weight}},{sum:0,weight:0});return{v:r,barycenter:a.sum/a.weight,weight:a.weight}}return{v:r}})},lre=function(t,e){var r={};return Z.forEach(t,function(n,a){var i=r[n.v]={indegree:0,in:[],out:[],vs:[n.v],i:a};Z.isUndefined(n.barycenter)||(i.barycenter=n.barycenter,i.weight=n.weight)}),Z.forEach(e.edges(),function(n){var a=r[n.v],i=r[n.w];Z.isUndefined(a)||Z.isUndefined(i)||(i.indegree++,a.out.push(r[n.w]))}),function(n){var a=[];function i(u){return function(f){f.merged||(Z.isUndefined(f.barycenter)||Z.isUndefined(u.barycenter)||f.barycenter>=u.barycenter)&&function(l,c){var h=0,d=0;l.weight&&(h+=l.barycenter*l.weight,d+=l.weight),c.weight&&(h+=c.barycenter*c.weight,d+=c.weight),l.vs=c.vs.concat(l.vs),l.barycenter=h/d,l.weight=d,l.i=Math.min(c.i,l.i),c.merged=!0}(u,f)}}function o(u){return function(f){f.in.push(u),--f.indegree==0&&n.push(f)}}for(;n.length;){var s=n.pop();a.push(s),Z.forEach(s.in.reverse(),i(s)),Z.forEach(s.out,o(s))}return Z.map(Z.filter(a,function(u){return!u.merged}),function(u){return Z.pick(u,["vs","i","barycenter","weight"])})}(Z.filter(r,function(n){return!n.indegree}))},cre=function(t,e){var r=Mn.partition(t,function(c){return Z.has(c,"barycenter")}),n=r.lhs,a=Z.sortBy(r.rhs,function(c){return-c.i}),i=[],o=0,s=0,u=0;n.sort((f=!!e,function(c,h){return c.barycenterh.barycenter?1:f?h.i-c.i:c.i-h.i})),u=Z_(i,a,u),Z.forEach(n,function(c){u+=c.vs.length,i.push(c.vs),o+=c.barycenter*c.weight,s+=c.weight,u=Z_(i,a,u)});var f,l={vs:Z.flatten(i,!0)};return s&&(l.barycenter=o/s,l.weight=s),l};function Z_(t,e,r){for(var n;e.length&&(n=Z.last(e)).i<=r;)e.pop(),t.push(n.vs),r++;return r}var hre=function t(e,r,n,a){var i=e.children(r),o=e.node(r),s=o?o.borderLeft:void 0,u=o?o.borderRight:void 0,f={};s&&(i=Z.filter(i,function(p){return p!==s&&p!==u}));var l=fre(e,i);Z.forEach(l,function(p){if(e.children(p.v).length){var g=t(e,p.v,n,a);f[p.v]=g,Z.has(g,"barycenter")&&(y=p,m=g,Z.isUndefined(y.barycenter)?(y.barycenter=m.barycenter,y.weight=m.weight):(y.barycenter=(y.barycenter*y.weight+m.barycenter*m.weight)/(y.weight+m.weight),y.weight+=m.weight))}var y,m});var c=lre(l,n);(function(p,g){Z.forEach(p,function(y){y.vs=Z.flatten(y.vs.map(function(m){return g[m]?g[m].vs:m}),!0)})})(c,f);var h=cre(c,a);if(s&&(h.vs=Z.flatten([s,h.vs,u],!0),e.predecessors(s).length)){var d=e.node(e.predecessors(s)[0]),v=e.node(e.predecessors(u)[0]);Z.has(h,"barycenter")||(h.barycenter=0,h.weight=0),h.barycenter=(h.barycenter*h.weight+d.order+v.order)/(h.weight+2),h.weight+=2}return h},dre=Sa.Graph,vre=function(t,e,r){var n=function(i){for(var o;i.hasNode(o=Z.uniqueId("_root")););return o}(t),a=new dre({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(i){return t.node(i)});return Z.forEach(t.nodes(),function(i){var o=t.node(i),s=t.parent(i);(o.rank===e||o.minRank<=e&&e<=o.maxRank)&&(a.setNode(i),a.setParent(i,s||n),Z.forEach(t[r](i),function(u){var f=u.v===i?u.w:u.v,l=a.edge(f,i),c=Z.isUndefined(l)?0:l.weight;a.setEdge(f,i,{weight:t.edge(u).weight+c})}),Z.has(o,"minRank")&&a.setNode(i,{borderLeft:o.borderLeft[e],borderRight:o.borderRight[e]}))}),a},pre=function(t,e,r){var n,a={};Z.forEach(r,function(i){for(var o,s,u=t.parent(i);u;){if((o=t.parent(u))?(s=a[o],a[o]=u):(s=n,n=u),s&&s!==u)return void e.setEdge(s,u);u=o}})},gre=Sa.Graph,yre=function(t){var e=Mn.maxRank(t),r=K_(t,Z.range(1,e+1),"inEdges"),n=K_(t,Z.range(e-1,-1,-1),"outEdges"),a=ore(t);Q_(t,a);for(var i,o=Number.POSITIVE_INFINITY,s=0,u=0;u<4;++s,++u){mre(s%2?r:n,s%4>=2),a=Mn.buildLayerMatrix(t);var f=sre(t,a);fu)&&bN(r,c,f)})})}return Z.reduce(e,function(a,i){var o,s=-1,u=0;return Z.forEach(i,function(f,l){if(t.node(f).dummy==="border"){var c=t.predecessors(f);c.length&&(o=t.node(c[0]).order,n(i,u,l,s,o),u=l,s=o)}n(i,u,i.length,o,a.length)}),i}),r}function bN(t,e,r){if(e>r){var n=e;e=r,r=n}var a=t[e];a||(t[e]=a={}),a[r]=!0}function _re(t,e,r){if(e>r){var n=e;e=r,r=n}return Z.has(t[e],r)}function Sre(t,e,r,n){var a={},i={},o={};return Z.forEach(e,function(s){Z.forEach(s,function(u,f){a[u]=u,i[u]=u,o[u]=f})}),Z.forEach(e,function(s){var u=-1;Z.forEach(s,function(f){var l=n(f);if(l.length)for(var c=((l=Z.sortBy(l,function(p){return o[p]})).length-1)/2,h=Math.floor(c),d=Math.ceil(c);h<=d;++h){var v=l[h];i[f]===f&&unew Wre(r)).forEach(r=>{e.nodes[r.name]=r,r.inputs.forEach(n=>{(function(a,i,o){o.name!==i.name&&a.edges.push(Object.assign(Object.assign({},o.attr),{v:o.name,w:i.name}))})(e,r,n)})}),e}class qre{constructor(e,r={}){this.attr=null,this.bridgeGraph=null,this.cardinality=0,this.depth=1,this.include=Yo.UNSPECIFIED,this.isGroupNode=!0,this.parentNode=null,this.type=kn.META,this.path=[],this.name=e,this.metaGraph=Zm(e,uu.META,r)}getFirstChild(){return this.metaGraph.node(this.metaGraph.nodes()[0])}getChildren(){return this.metaGraph.nodes().map(e=>this.metaGraph.node(e))}leaves(){let e,r=[],n=[this];for(;n.length;){let a=n.shift();a.isGroupNode?(e=a.metaGraph,e.nodes().forEach(i=>n.push(e.node(i)))):r.push(a.name)}return r}}class Hre{constructor(e,r){this.v=e,this.w=r,this.baseEdgeList=[],this.inbound=null,this.name=null}addBaseEdge(e,r){this.baseEdgeList.push(e)}}function xN(t,e={}){return new qre(t,e)}function EN(t,e){return new Hre(t,e)}function Zm(t,e,r){const n=r||{},a=new $re.Graph(n);return a.setGraph({name:t,rankdir:n.rankdir,type:e,align:n.align}),a}class Zre{constructor(e={}){this.graphOptions=e,this.index={},this.graphOptions.compound=!0,this.root=xN(su,this.graphOptions),this.index[su]=this.root}getNodeMap(){return this.index}node(e){return this.index[e]}setNode(e,r){this.index[e]=r}getBridgeGraph(e){const r=this.index[e];if(!r)throw Error("Could not find node in hierarchy: "+e);if(!("metaGraph"in r))return null;const n=r;if(n.bridgeGraph)return n.bridgeGraph;const a=Zm(ck,uu.BRIDGE,this.graphOptions);if(n.bridgeGraph=a,!r.parentNode||!("metaGraph"in r.parentNode))return a;const i=r.parentNode;return[i.metaGraph,this.getBridgeGraph(i.name)].forEach(o=>{o.edges().filter(s=>s.v===e||s.w===e).forEach(s=>{const u=s.w===e;o.edge(s).baseEdgeList.forEach(f=>{const[l,c]=u?[f.w,s.v]:[f.v,s.w],h=this.getChildName(e,l),d={v:u?c:h,w:u?h:c};let v=a.edge(d);v||(v=EN(d.v,d.w),v.inbound=u,a.setEdge(d.v,d.w,v)),v.addBaseEdge(f,this)})})}),a}getChildName(e,r){let n=this.index[r];for(;n;){if(n.parentNode&&n.parentNode.name===e)return n.name;n=n.parentNode}throw Error("Could not find immediate child for descendant: "+r)}getPredecessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!0)}getSuccessors(e){const r=this.index[e];if(!r)throw Error("Could not find node with name: "+e);return this.getOneWayEdges(r,!1)}getOneWayEdges(e,r){const n=[];if(!e.parentNode||!e.parentNode.isGroupNode)return n;const a=e.parentNode,i=a.metaGraph,o=this.getBridgeGraph(a.name);return J_(i,e,r,n),J_(o,e,r,n),n}}function Kre(t,e){const{rankDirection:r,align:n}=e,a=new Zre({rankdir:r,align:n});return function(i,o){Object.keys(o.nodes).forEach(s=>{const u=o.nodes[s],f=u.path;let l=i.root;l.depth=Math.max(f.length,l.depth);for(let c=0;c{let d=0;for(;c;)h[d++]=c.name,c=c.parentNode;return d-1};o.edges.forEach(c=>{u=[],f=[];let h=l(o.nodes[c.v],u),d=l(o.nodes[c.w],f);for(;u[h]===f[d];)if(h--,d--,h<0||d<0)throw Error("No difference found between ancestor paths.");const v=s[u[h+1]],p=u[h],g=f[d];let y=v.metaGraph.edge(p,g);y||(y=EN(p,g),v.metaGraph.setEdge(p,g,y)),y.addBaseEdge(c,i)})}(a,t),a}function J_(t,e,r,n){(r?t.inEdges(e.name):t.outEdges(e.name)).forEach(a=>{const i=t.edge(a);n.push(i)})}class Qre{constructor(e){this.hierarchy=e,this.index={},this.hasSubHierarchy={},this.root=new t2(this.hierarchy.root,this.hierarchy.graphOptions),this.index[e.root.name]=this.root,this.buildSubHierarchy(e.root.name),this.root.expanded=!0}getRenderInfoNodes(){return Object.values(this.index)}getSubHierarchy(){return this.hasSubHierarchy}buildSubHierarchy(e){if(e in this.hasSubHierarchy)return;this.hasSubHierarchy[e]=!0;const r=this.index[e];if(r.node.type!==kn.META)return;const n=r,a=n.node.metaGraph,i=n.coreGraph;a.nodes().forEach(l=>{const c=this.getOrCreateRenderNodeByName(l);i.setNode(l,c)}),a.edges().forEach(l=>{const c=a.edge(l),h=new e2(c);i.setEdge(l.v,l.w,h)});const o=n.node.parentNode;if(!o)return;const s=this.getRenderNodeByName(o.name),u=(l,...c)=>c.concat([l?"IN":"OUT"]).join("~~"),f=this.hierarchy.getBridgeGraph(e);f.edges().forEach(l=>{const c=f.edge(l),h=!!a.node(l.w),[d,v]=h?[l.w,l.v]:[l.v,l.w],p=x=>{const E=h?{v:x,w:e}:{v:e,w:x};return s.coreGraph.edge(E)};let g=p(v);g||(g=p(u(h,v,o.name)));const y=u(h,e),m=u(h,v,e);let b=i.node(m);if(!b){let x=i.node(y);if(!x){const _={name:y,type:kn.BRIDGE,isGroupNode:!1,cardinality:0,parentNode:null,include:Yo.UNSPECIFIED,inbound:h,attr:{}};x=new mh(_),this.index[y]=x,i.setNode(y,x)}const E={name:m,type:kn.BRIDGE,isGroupNode:!1,cardinality:1,parentNode:null,include:Yo.UNSPECIFIED,inbound:h,attr:{}};b=new mh(E),this.index[m]=b,i.setNode(m,b),i.setParent(m,y),x.node.cardinality++}const w=new e2(c);w.adjoiningMetaEdge=g,h?i.setEdge(m,d,w):i.setEdge(d,m,w)})}getOrCreateRenderNodeByName(e){if(!e)return null;if(e in this.index)return this.index[e];const r=this.getNodeByName(e);return r?(this.index[e]=r.isGroupNode?new t2(r,this.hierarchy.graphOptions):new mh(r),this.index[e]):null}getRenderNodeByName(e){return this.index[e]}getNodeByName(e){return this.hierarchy.node(e)}}class mh{constructor(e){this.node=e,this.expanded=!1,this.x=0,this.y=0,this.coreBox={width:0,height:0},this.outboxWidth=0,this.labelOffset=0,this.radius=0,this.labelHeight=0,this.paddingTop=0,this.paddingLeft=0,this.paddingRight=0,this.paddingBottom=0,this.width=e.width||0,this.height=e.height||0,this.displayName=e.name,this.attr=e.attr}}class e2{constructor(e){this.metaEdge=e,this.adjoiningMetaEdge=null,this.weight=1,this.points=[]}}class t2 extends mh{constructor(e,r){super(e);const n=e.metaGraph.graph();r.compound=!0,this.coreGraph=Zm(n.name,uu.CORE,r)}}function _N(t,e){t.node.isGroupNode&&function(r,n){const a=Tg(n);r.coreGraph.nodes().map(i=>r.coreGraph.node(i)).forEach(i=>{var o,s,u,f,l,c;const{height:h,width:d}=i;switch(i.node.type){case kn.NODE:Object.assign(i,a.nodeSize.node),i.height=h||a.nodeSize.node.height,i.width=d||a.nodeSize.node.width;break;case kn.BRIDGE:Object.assign(i,a.nodeSize.bridge);break;case kn.META:i.expanded?_N(i,n):(Object.assign(i,a.nodeSize.meta),i.height=a.nodeSize.meta.height,i.width=a.nodeSize.meta.width);break;default:throw Error("Unrecognized node type: "+i.node.type)}if(!i.expanded){const v=i.attr;(function(p,g=!1){if(p.coreBox.width=p.width,p.coreBox.height=p.height,!g){const y=`${p.displayName}`.length,m=3;p.width=Math.max(p.coreBox.width,y*m)}})(i,n&&(i.node.type===0&&!!(!((s=(o=n==null?void 0:n.nodeSize)===null||o===void 0?void 0:o.meta)===null||s===void 0)&&s.width)||i.node.type===1&&(!!(!((f=(u=n==null?void 0:n.nodeSize)===null||u===void 0?void 0:u.node)===null||f===void 0)&&f.width)||!!v.width)||i.node.type===2&&!!(!((c=(l=n==null?void 0:n.nodeSize)===null||l===void 0?void 0:l.bridge)===null||c===void 0)&&c.width)))}})}(t,e),t.node.type===kn.META&&function(r,n){const a=Tg(n),i=a.subScene.meta;Object.assign(r,i);const{nodeSep:o,rankSep:s,edgeSep:u,align:f}=a.graph.meta,l={nodesep:o,ranksep:s,edgesep:u,align:f};Object.assign(r.coreBox,function(d,v){const{ranksep:p,nodesep:g,edgesep:y,align:m}=v;Object.assign(d.graph(),{ranksep:p,nodesep:g,edgesep:y,align:m});const b=[];if(d.nodes().forEach(S=>{d.node(S).node.type!==kn.BRIDGE&&b.push(S)}),!b.length)return{width:0,height:0};Xre(d);let w=1/0,x=1/0,E=-1/0,_=-1/0;return b.forEach(S=>{const A=d.node(S),M=.5*A.width,C=A.x-M,I=A.x+M;w=CE?I:E;const k=.5*A.height,O=A.y-k,B=A.y+k;x=O_?B:_}),d.edges().forEach(S=>{const A=d.edge(S),M=d.node(A.metaEdge.v),C=d.node(A.metaEdge.w);if(A.points.length===3&&function(O){let B=r2(O[0],O[1]);for(let L=1;L1)return!1;B=z}return!0}(A.points)){if(M!=null){const O=M.expanded?M.x:Bg(M);A.points[0].x=O}if(C!=null){const O=C.expanded?C.x:Bg(C);A.points[2].x=O}A.points=[A.points[0],A.points[1]]}const I=A.points[A.points.length-2];C!=null&&(A.points[A.points.length-1]=n2(I,C));const k=A.points[1];M!=null&&(A.points[0]=n2(k,M)),A.points.forEach(O=>{w=O.xE?O.x:E,x=O.y_?O.y:_})}),d.nodes().forEach(S=>{const A=d.node(S);A.x-=w,A.y-=x}),d.edges().forEach(S=>{d.edge(S).points.forEach(A=>{A.x-=w,A.y-=x})}),{width:E-w,height:_-x}}(r.coreGraph,l));let c=0;r.coreGraph.nodeCount()>0&&c++;const h=c<=1?0:c;r.coreBox.width+=h+h,r.coreBox.height=i.labelHeight+r.coreBox.height,r.width=r.coreBox.width+i.paddingLeft+i.paddingRight,r.height=r.paddingTop+r.coreBox.height+r.paddingBottom}(t,e)}function r2(t,e){const r=e.x-t.x,n=e.y-t.y;return 180*Math.atan(n/r)/Math.PI}function Bg(t){return t.expanded?t.x:t.x-t.width/2+0+t.coreBox.width/2}function n2(t,e){const r=e.expanded?e.x:Bg(e),n=e.y,a=t.x-r,i=t.y-n;let o,s,u=e.expanded?e.width:e.coreBox.width,f=e.expanded?e.height:e.coreBox.height;return Math.abs(i)*u/2>Math.abs(a)*f/2?(i<0&&(f=-f),o=i===0?0:f/2*a/i,s=f/2):(a<0&&(u=-u),o=u/2,s=a===0?0:u/2*i/a),{x:r+o,y:n+s}}function Jre(t,e,r){var n,a,i,o;const s=t.nodes.filter((c,h,d)=>d.findIndex(v=>v.id===c.id)!==h).map(c=>c.id);if(s.length)throw new Error(`Duplicated ids found: ${s.join(", ")}`);const u=function(c){const h={nodes:[]},d=c.compound,v=Object.keys(d||{}),p=new Map,g=(m,b=[])=>{if(p.has(m))return p.get(m);for(let w=0;wc.edges.filter(b=>b.w===m).map(b=>({name:b.v}));return c.nodes.forEach(m=>{const b=m.id,w=[...g(b),b];let x=y(b);h.nodes.push({name:b,path:w,inputs:x,width:m.width,height:m.height,attr:Object.assign({},m)})}),h}(t),f=function(c,h){const d=(p,g)=>{for(let y of g.values())if(y.includes(p))return!0;return!1},v=(p,g=[])=>{if(Object.keys(p).length===0)return[...new Set(g)];const y=new Map(Object.keys(p).map(b=>[b,p[b]])),m={};for(let[b,w]of y)d(b,y)?m[b]=w:g=g.concat(b,w);return v(m,g)};return v(c).filter(p=>h.includes(p))}(t.compound||{},(e==null?void 0:e.expanded)||[]),l=function(c,h){return function(d){return new Qre(d)}(Kre(Yre(c),h))}(u,{rankDirection:((a=(n=r==null?void 0:r.graph)===null||n===void 0?void 0:n.meta)===null||a===void 0?void 0:a.rankDir)||(e==null?void 0:e.rankDirection)||ed.graph.meta.rankDir,align:((o=(i=r==null?void 0:r.graph)===null||i===void 0?void 0:i.meta)===null||o===void 0?void 0:o.align)||ed.graph.meta.align});return function(c,h){h.forEach(d=>{const v=c.getRenderInfoNodes().find(y=>y.displayName===d);let p=v&&v.node&&v.node.name||"";const g=c.getRenderNodeByName(p);if(!g)throw new Error(`No nodes found: ${p}`);g.expanded=!0,c.buildSubHierarchy(p)})}(l,f),_N(l.root,r),SN(l.root)}function ene(t,e=!1){const r=JSON.parse(JSON.stringify(t)),n={nodes:[r],edges:[...r.edges]};return r.nodes.forEach(function a(i){(i.type===0||i.type===1)&&n.nodes.push(i),i.type===0&&(n.edges=n.edges.concat(i.edges)),Array.isArray(i.nodes)&&i.nodes.forEach(a)}),e&&n.nodes.forEach(a=>{const i=n.nodes.find(o=>o.id===a.parentNodeName);if(i){const o=i.x-i.width/2+i.paddingLeft,s=i.y-i.height/2+i.labelHeight+i.paddingTop;i.id!==su&&(a.x+=o,a.y+=s),a.type===0&&a.edges.forEach(u=>{u.points.forEach(f=>{f.x+=a.x-a.width/2+a.paddingLeft,f.y+=a.y-a.height/2+a.labelHeight+a.paddingTop})})}}),n}function tne(t,e,r,n){var a,i;let o=[];const s=((a=r.find(c=>c.id===t))===null||a===void 0?void 0:a.path)||[],u=((i=r.find(c=>c.id===e))===null||i===void 0?void 0:i.path)||[],f=[su,...s].slice(0,s.length).reverse(),l=[su,...u].slice(0,u.length);return f.forEach(c=>{const h=r.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||t)&&v.w===((n==null?void 0:n.w)||e))))}),l.filter(c=>!f.includes(c)).forEach(c=>{const h=r.find(d=>d.id===c);o=o.concat(h.edges.filter(d=>d.baseEdgeList.some(v=>v.v===((n==null?void 0:n.v)||t)&&v.w===((n==null?void 0:n.w)||e))))}),o}function SN(t){const e=t.coreGraph.nodes().map(n=>t.coreGraph.node(n));return Object.assign(Object.assign({},a2(t)),{expanded:t.expanded,nodes:t.expanded?(r=e,r.map(n=>n.node.type===kn.META?SN(n):a2(n))):[],edges:t.expanded?rne(t):[]});var r}function a2(t){return{id:t.node.name,name:t.node.name,type:t.node.type,cardinality:t.node.cardinality,attr:t.attr,parentNodeName:t.node.parentNode?t.node.parentNode.name:null,coreBox:Object.assign({},t.coreBox),x:t.x,y:t.y,width:t.width,height:t.height,radius:t.radius,labelHeight:t.labelHeight,labelOffset:t.labelOffset,outboxWidth:t.outboxWidth,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom,path:t.node.path}}function rne(t){return t.coreGraph.edges().map(e=>({renderInfoEdge:t.coreGraph.edge(e),edge:e})).filter(({renderInfoEdge:e})=>e.metaEdge).map(({edge:e,renderInfoEdge:r})=>{const n=function(a,i){const o=i.points.map(s=>Object.assign({},s));if(i.adjoiningMetaEdge){const s=i.adjoiningMetaEdge.points,u=i.metaEdge.inbound,f=u?s[s.length-1]:s[0],l=o[u?0:o.length-1],c=a.x-a.width/2,h=a.y-a.height/2,d=f.x-c,v=f.y-h,p=-a.paddingLeft,g=-(a.paddingTop+a.labelHeight);l.x=d+p,l.y=v+g}return o}(t,r);return{adjoiningEdge:r.adjoiningMetaEdge?{w:r.adjoiningMetaEdge.metaEdge.w,v:r.adjoiningMetaEdge.metaEdge.v}:null,inbound:r.metaEdge.inbound,w:e.w,v:e.v,points:n,weight:r.weight,baseEdgeList:r.metaEdge.baseEdgeList,parentNodeName:t.node.name}})}const nne=Object.freeze(Object.defineProperty({__proto__:null,BRIDGE_GRAPH_NAME:ck,get GraphType(){return uu},get HierarchyNodeType(){return Ig},get InclusionType(){return Yo},LAYOUT_CONFIG:ed,get NodeType(){return kn},ROOT_NAME:su,buildGraph:Jre,flatGraph:ene,getEdges:tne,mergeConfig:Tg},Symbol.toStringTag,{value:"Module"})),ane=Ka(nne);var ine=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),va=me&&me.__assign||function(){return va=Object.assign||function(t){for(var e,r=1,n=arguments.length;rf.x&&(s=f.x),u>f.y&&(u=f.y)}),n.forEach(function(f){f.points.forEach(function(l){s>l.x&&(s=l.x),u>l.y&&(u=l.y)})}),o[0]=i[0]-s,o[1]=i[1]-u}return o},e.prototype.updateNodePosition=function(r,n){var a=this,i=a.combos,o=a.nodes,s=a.edges,u=a.anchorPoint,f=a.graphSettings,l=this.getBegin(r,n);r.forEach(function(c){var h,d=c.x,v=c.y,p=c.id,g=c.type,y=c.coreBox;if(g===Hn.HierarchyNodeType.META&&p!==Hn.ROOT_NAME){var m=i.findIndex(function(_){return _.id===p}),b=(h=f==null?void 0:f.subScene)===null||h===void 0?void 0:h.meta;i[m].offsetX=d+l[0],i[m].offsetY=v+l[1],i[m].fixSize=[y.width,y.height],i[m].fixCollapseSize=[y.width,y.height],c.expanded?i[m].padding=[b==null?void 0:b.paddingTop,b==null?void 0:b.paddingRight,b==null?void 0:b.paddingBottom,b==null?void 0:b.paddingLeft]:i[m].padding=[0,0,0,0]}else if(g===Hn.HierarchyNodeType.OP){var m=o.findIndex(function(S){return S.id===p});if(o[m].x=d+l[0],o[m].y=v+l[1],u){var w=[],x=n.filter(function(S){return S.v===p}),E=n.filter(function(S){return S.w===p});x.length>0&&x.forEach(function(S){var A=S.points[0],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.sourceAnchor=w.length-1)})}),E.length>0&&E.forEach(function(S){var A=S.points[S.points.length-1],M=(A.x-d)/c.width+.5,C=(A.y-v)/c.height+.5;w.push([M,C]),S.baseEdgeList.forEach(function(I){var k=s.find(function(O){return O.source===I.v&&O.target===I.w});k&&(k.targetAnchor=w.length-1)})}),o[m].anchorPoints=w.length>0?w:o[m].anchorPoints||[]}}})},e.prototype.updateEdgePosition=function(r,n){var a=this,i=a.combos,o=a.edges,s=a.controlPoints,u=this.getBegin(r,n);s&&(i.forEach(function(f){f.inEdges=[],f.outEdges=[]}),o.forEach(function(f){var l,c,h,d,v=r.find(function(_){return _.id===f.source}),p=r.find(function(_){return _.id===f.target}),g=[],y=[];if(v&&p)y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,r);else if(!v||!p){var m=a.getNodePath(f.source),b=a.getNodePath(f.target),w=m.reverse().slice(v?0:1).find(function(_){return r.find(function(S){return S.id===_})}),x=b.reverse().slice(p?0:1).find(function(_){return r.find(function(S){return S.id===_})});v=r.find(function(_){return _.id===w}),p=r.find(function(_){return _.id===x}),y=(0,Hn.getEdges)(v==null?void 0:v.id,p==null?void 0:p.id,r,{v:f.source,w:f.target})}if(g=y.reduce(function(_,S){return Ms(Ms([],_,!0),S.points.map(function(A){return va(va({},A),{x:A.x+u[0],y:A.y+u[1]})}),!0)},[]),g=g.slice(1,-1),f.controlPoints=g,(p==null?void 0:p.type)===Hn.NodeType.META){var E=i.findIndex(function(_){return _.id===(p==null?void 0:p.id)});if(!i[E]||!((l=i[E].inEdges)===null||l===void 0)&&l.some(function(_){return _.source===v.id&&_.target===p.id}))return;(c=i[E].inEdges)===null||c===void 0||c.push({source:v.id,target:p.id,controlPoints:g})}if((v==null?void 0:v.type)===Hn.NodeType.META){var E=i.findIndex(function(S){return S.id===(v==null?void 0:v.id)});if(!i[E]||!((h=i[E].outEdges)===null||h===void 0)&&h.some(function(S){return S.source===v.id&&S.target===p.id}))return;(d=i[E].outEdges)===null||d===void 0||d.push({source:v.id,target:p.id,controlPoints:g})}}))},e.prototype.getType=function(){return"dagreCompound"},e.prototype.getDataByOrder=function(r){return r.every(function(n){return n.layoutOrder!==void 0})||r.forEach(function(n,a){n.layoutOrder=a}),r.sort(function(n,a){return n.layoutOrder-a.layoutOrder})},e}(one.Base);vl.DagreCompoundLayout=sne;var Km={},lv={},Qm={};const une=Object.prototype.toString;function ud(t){const e=une.call(t);return e.endsWith("Array]")&&!e.includes("Big")}function fne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ud(t))throw new TypeError("input must be an array");if(t.length===0)throw new TypeError("input must not be empty");var r=e.fromIndex,n=r===void 0?0:r,a=e.toIndex,i=a===void 0?t.length:a;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=t[n],s=n+1;so&&(o=t[s]);return o}function lne(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ud(t))throw new TypeError("input must be an array");if(t.length===0)throw new TypeError("input must not be empty");var r=e.fromIndex,n=r===void 0?0:r,a=e.toIndex,i=a===void 0?t.length:a;if(n<0||n>=t.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(i<=n||i>t.length||!Number.isInteger(i))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=t[n],s=n+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(ud(t)){if(t.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var r;if(e.output!==void 0){if(!ud(e.output))throw new TypeError("output option must be an array if specified");r=e.output}else r=new Array(t.length);var n=lne(t),a=fne(t);if(n===a)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var i=e.min,o=i===void 0?e.autoMinMax?n:0:i,s=e.max,u=s===void 0?e.autoMinMax?a:1:s;if(o>=u)throw new RangeError("min option must be smaller than max option");for(var f=(u-o)/(a-n),l=0;l>n);return this},t.prototype.signPropagatingRightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>n.get(a,i));return this},t.signPropagatingRightShift=function(n,a){return new e(n).signPropagatingRightShift(a)},t.prototype.rightShift=function(n){return typeof n=="number"?this.rightShiftS(n):this.rightShiftM(n)},t.prototype.rightShiftS=function(n){for(let a=0;a>>n);return this},t.prototype.rightShiftM=function(n){if(n=e.checkMatrix(n),this.rows!==n.rows||this.columns!==n.columns)throw new RangeError("Matrices dimensions must be equal");for(let a=0;a>>n.get(a,i));return this},t.rightShift=function(n,a){return new e(n).rightShift(a)},t.prototype.zeroFillRightShift=t.prototype.rightShift,t.prototype.zeroFillRightShiftS=t.prototype.rightShiftS,t.prototype.zeroFillRightShiftM=t.prototype.rightShiftM,t.zeroFillRightShift=t.rightShift,t.prototype.not=function(){for(let n=0;nn)throw new RangeError("Row index out of range")}function ea(t,e,r){let n=r?t.columns:t.columns-1;if(e<0||e>n)throw new RangeError("Column index out of range")}function Rs(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.columns)throw new RangeError("vector size must be the same as the number of columns");return e}function Fs(t,e){if(e.to1DArray&&(e=e.to1DArray()),e.length!==t.rows)throw new RangeError("vector size must be the same as the number of rows");return e}function CN(t,e,r){return{row:TN(t,e),column:IN(t,r)}}function TN(t,e){if(typeof e!="object")throw new TypeError("unexpected type for row indices");if(e.some(n=>n<0||n>=t.rows))throw new RangeError("row indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function IN(t,e){if(typeof e!="object")throw new TypeError("unexpected type for column indices");if(e.some(n=>n<0||n>=t.columns))throw new RangeError("column indices are out of range");return Array.isArray(e)||(e=Array.from(e)),e}function Gg(t,e,r,n,a){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(Bc("startRow",e),Bc("endRow",r),Bc("startColumn",n),Bc("endColumn",a),e>r||n>a||e<0||e>=t.rows||r<0||r>=t.rows||n<0||n>=t.columns||a<0||a>=t.columns)throw new RangeError("Submatrix indices are out of range")}function cv(t,e=0){let r=[];for(let n=0;n=i)throw new RangeError("min must be smaller than max");let s=i-a,u=new lt(e,r);for(let f=0;fn?(i=!0,n=r):(a=!1,i=!0);e++}return a}isReducedEchelonForm(){let e=0,r=0,n=-1,a=!0,i=!1;for(;en?(i=!0,n=r):(a=!1,i=!0);for(let o=r+1;oe.get(a,n)&&(a=i);if(e.get(a,n)===0)n++;else{e.swapRows(r,a);let i=e.get(r,n);for(let o=n;o=0;)if(e.maxRow(a)===0)a--;else{let i=0,o=!1;for(;ie&&(e=this.get(r,n));return e}maxIndex(){let e=this.get(0,0),r=[0,0];for(let n=0;ne&&(e=this.get(n,a),r[0]=n,r[1]=a);return r}min(){let e=this.get(0,0);for(let r=0;rr&&(r=this.get(e,n));return r}maxRowIndex(e){Jn(this,e);let r=this.get(e,0),n=[e,0];for(let a=1;ar&&(r=this.get(e,a),n[1]=a);return n}minRow(e){Jn(this,e);let r=this.get(e,0);for(let n=1;nr&&(r=this.get(n,e));return r}maxColumnIndex(e){ea(this,e);let r=this.get(0,e),n=[0,e];for(let a=1;ar&&(r=this.get(a,e),n[0]=a);return n}minColumn(e){ea(this,e);let r=this.get(0,e);for(let n=1;n=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;i=n)throw new RangeError("min must be smaller than max");let a=new lt(this.rows,this.columns);for(let i=0;in||r<0||r>=this.columns||n<0||n>=this.columns)throw new RangeError("Argument out of range");let a=new lt(e.length,n-r+1);for(let i=0;i=this.rows)throw new RangeError(`Row index out of range: ${e[i]}`);a.set(i,o-r,this.get(e[i],o))}return a}subMatrixColumn(e,r,n){if(r===void 0&&(r=0),n===void 0&&(n=this.rows-1),r>n||r<0||r>=this.rows||n<0||n>=this.rows)throw new RangeError("Argument out of range");let a=new lt(n-r+1,e.length);for(let i=0;i=this.columns)throw new RangeError(`Column index out of range: ${e[i]}`);a.set(o-r,i,this.get(o,e[i]))}return a}setSubMatrix(e,r,n){e=lt.checkMatrix(e);let a=r+e.rows-1,i=n+e.columns-1;Gg(this,r,a,n,i);for(let o=0;o0)if(this.data=[],Number.isInteger(r)&&r>0)for(let n=0;n"u"&&(r=e,e=this.columns),ea(this,e,!0),r=Fs(this,r);for(let n=0;nMath.abs(v[l])&&(l=s);if(l!==u){for(f=0;f=0;f--){for(u=0;uo?a.set(i,o,e.get(i,o)):i===o?a.set(i,o,1):a.set(i,o,0);return a}get upperTriangularMatrix(){let e=this.LU,r=e.rows,n=e.columns,a=new lt(r,n);for(let i=0;iMath.abs(e)?(r=e/t,Math.abs(t)*Math.sqrt(1+r*r)):e!==0?(r=t/e,Math.abs(e)*Math.sqrt(1+r*r)):0}class zg{constructor(e){e=Wn.checkMatrix(e);let r=e.clone(),n=e.rows,a=e.columns,i=new Float64Array(a),o,s,u,f;for(u=0;u=0;f--){for(u=0;u=0;s--){for(i=0;i=0;M--)if(v[M]!==0){for(let C=M+1;C=0;M--){if(M0;){let M,C;for(M=_-2;M>=-1&&M!==-1;M--){const I=Number.MIN_VALUE+A*Math.abs(v[M]+Math.abs(v[M+1]));if(Math.abs(y[M])<=I||Number.isNaN(y[M])){y[M]=0;break}}if(M===_-2)C=4;else{let I;for(I=_-1;I>=M&&I!==M;I--){let k=(I!==_?Math.abs(y[I]):0)+(I!==M+1?Math.abs(y[I-1]):0);if(Math.abs(v[I])<=A*k){v[I]=0;break}}I===M?C=3:I===_-1?C=1:(C=2,M=I)}switch(M++,C){case 1:{let I=y[_-2];y[_-2]=0;for(let k=_-2;k>=M;k--){let O=hi(v[k],I),B=v[k]/O,L=I/O;if(v[k]=O,k!==M&&(I=-L*y[k-1],y[k-1]=B*y[k-1]),f)for(let z=0;z=v[M+1]);){let I=v[M];if(v[M]=v[M+1],v[M+1]=I,f&&Mr&&i.set(l,c,e.get(l,c)/this.s[c]);let o=this.U,s=o.rows,u=o.columns,f=new lt(n,s);for(let l=0;le&&r++;return r}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return lt.diag(this.s)}}function Une(t,e=!1){return t=Wn.checkMatrix(t),e?new cu(t).inverse():NN(t,lt.eye(t.rows))}function NN(t,e,r=!1){return t=Wn.checkMatrix(t),e=Wn.checkMatrix(e),r?new cu(t).solve(e):t.isSquare()?new fd(t).solve(e):new zg(t).solve(e)}function wh(t){if(t=lt.checkMatrix(t),t.isSquare()){let e,r,n,a;if(t.columns===2)return e=t.get(0,0),r=t.get(0,1),n=t.get(1,0),a=t.get(1,1),e*a-r*n;if(t.columns===3){let i,o,s;return i=new bh(t,[1,2],[1,2]),o=new bh(t,[1,2],[0,2]),s=new bh(t,[1,2],[0,1]),e=t.get(0,0),r=t.get(0,1),n=t.get(0,2),e*wh(i)-r*wh(o)+n*wh(s)}else return new fd(t).determinant}else throw Error("determinant can only be calculated for a square matrix")}function $ne(t,e){let r=[];for(let n=0;na)return new Array(e.rows+1).fill(0);{let i=e.addRow(r,[0]);for(let o=0;oe?i[o]=1/i[o]:i[o]=0;return a.mmul(lt.diag(i).mmul(n.transpose()))}function Yne(t,e=t,r={}){t=new lt(t);let n=!1;if(typeof e=="object"&&!lt.isMatrix(e)&&!Array.isArray(e)?(r=e,e=t,n=!0):e=new lt(e),t.rows!==e.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:a=!0}=r;a&&(t=t.center("column"),n||(e=e.center("column")));const i=t.transpose().mmul(e);for(let o=0;o0?a.set(i,i+1,r[i]):r[i]<0&&a.set(i,i-1,r[i])}return a}}function Hne(t,e,r,n){let a,i,o,s,u,f,l,c;for(u=0;u0;s--){for(c=0,o=0,f=0;f0&&(i=-i),e[s]=c*i,o=o-a*i,r[s-1]=a-i,u=0;uf)do{for(a=r[f],c=(r[f+1]-a)/(2*e[f]),h=hi(c,1),c<0&&(h=-h),r[f]=e[f]/(c+h),r[f+1]=e[f]*(c+h),d=r[f+1],i=a-r[f],o=f+2;o=f;o--)for(g=p,p=v,b=m,a=v*e[o],i=v*c,h=hi(c,e[o]),e[o+1]=m*h,m=e[o]/h,v=c/h,c=v*r[o]-m*a,r[o+1]=i+m*(v*a+m*r[o]),u=0;uE*x);r[f]=r[f]+w,e[f]=0}for(o=0;o=c;f--)r[f]=e.get(f,c-1)/h,u+=r[f]*r[f];for(s=Math.sqrt(u),r[c]>0&&(s=-s),u=u-r[c]*s,r[c]=r[c]-s,l=c;l=c;f--)o+=r[f]*e.get(f,l);for(o=o/u,f=c;f<=i;f++)e.set(f,l,e.get(f,l)-o*r[f])}for(f=0;f<=i;f++){for(o=0,l=i;l>=c;l--)o+=r[l]*e.get(f,l);for(o=o/u,l=c;l<=i;l++)e.set(f,l,e.get(f,l)-o*r[l])}r[c]=h*r[c],e.set(c,c-1,h*s)}}for(f=0;f=a+1;c--)if(e.get(c,c-1)!==0){for(f=c+1;f<=i;f++)r[f]=e.get(f,c-1);for(l=c;l<=i;l++){for(s=0,f=c;f<=i;f++)s+=r[f]*n.get(f,l);for(s=s/r[c]/e.get(c,c-1),f=c;f<=i;f++)n.set(f,l,n.get(f,l)+s*r[f])}}}function Qne(t,e,r,n,a){let i=t-1,o=0,s=t-1,u=Number.EPSILON,f=0,l=0,c=0,h=0,d=0,v=0,p=0,g=0,y,m,b,w,x,E,_,S,A,M,C,I,k,O,B;for(y=0;ys)&&(r[y]=a.get(y,y),e[y]=0),m=Math.max(y-1,0);m=o;){for(w=i;w>o&&(v=Math.abs(a.get(w-1,w-1))+Math.abs(a.get(w,w)),v===0&&(v=l),!(Math.abs(a.get(w,w-1))=0){for(p=c>=0?c+p:c-p,r[i-1]=S+p,r[i]=r[i-1],p!==0&&(r[i]=S-_/p),e[i-1]=0,e[i]=0,S=a.get(i,i-1),v=Math.abs(S)+Math.abs(p),c=S/v,h=p/v,d=Math.sqrt(c*c+h*h),c=c/d,h=h/d,m=i-1;m0)){for(v=Math.sqrt(v),A=w&&(p=a.get(x,x),d=S-p,v=A-p,c=(d*v-_)/a.get(x+1,x)+a.get(x,x+1),h=a.get(x+1,x+1)-p-d-v,d=a.get(x+2,x+1),v=Math.abs(c)+Math.abs(h)+Math.abs(d),c=c/v,h=h/v,d=d/v,!(x===w||Math.abs(a.get(x,x-1))*(Math.abs(h)+Math.abs(d))x+2&&a.set(y,y-3,0);for(b=x;b<=i-1&&(O=b!==i-1,b!==x&&(c=a.get(b,b-1),h=a.get(b+1,b-1),d=O?a.get(b+2,b-1):0,S=Math.abs(c)+Math.abs(h)+Math.abs(d),S!==0&&(c=c/S,h=h/S,d=d/S)),S!==0);b++)if(v=Math.sqrt(c*c+h*h+d*d),c<0&&(v=-v),v!==0){for(b!==x?a.set(b,b-1,-v*S):w!==x&&a.set(b,b-1,-a.get(b,b-1)),c=c+v,S=c/v,A=h/v,p=d/v,h=h/c,d=d/c,m=b;m=0;i--)if(c=r[i],h=e[i],h===0)for(w=i,a.set(i,i,1),y=i-1;y>=0;y--){for(_=a.get(y,y)-c,d=0,m=w;m<=i;m++)d=d+a.get(y,m)*a.get(m,i);if(e[y]<0)p=_,v=d;else if(w=y,e[y]===0?a.set(y,i,_!==0?-d/_:-d/(u*l)):(S=a.get(y,y+1),A=a.get(y+1,y),h=(r[y]-c)*(r[y]-c)+e[y]*e[y],E=(S*v-p*d)/h,a.set(y,i,E),a.set(y+1,i,Math.abs(S)>Math.abs(p)?(-d-_*E)/S:(-v-A*E)/p)),E=Math.abs(a.get(y,i)),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i,a.get(m,i)/E)}else if(h<0)for(w=i-1,Math.abs(a.get(i,i-1))>Math.abs(a.get(i-1,i))?(a.set(i-1,i-1,h/a.get(i,i-1)),a.set(i-1,i,-(a.get(i,i)-c)/a.get(i,i-1))):(B=Gc(0,-a.get(i-1,i),a.get(i-1,i-1)-c,h),a.set(i-1,i-1,B[0]),a.set(i-1,i,B[1])),a.set(i,i-1,0),a.set(i,i,1),y=i-2;y>=0;y--){for(M=0,C=0,m=w;m<=i;m++)M=M+a.get(y,m)*a.get(m,i-1),C=C+a.get(y,m)*a.get(m,i);if(_=a.get(y,y)-c,e[y]<0)p=_,d=M,v=C;else if(w=y,e[y]===0?(B=Gc(-M,-C,_,h),a.set(y,i-1,B[0]),a.set(y,i,B[1])):(S=a.get(y,y+1),A=a.get(y+1,y),I=(r[y]-c)*(r[y]-c)+e[y]*e[y]-h*h,k=(r[y]-c)*2*h,I===0&&k===0&&(I=u*l*(Math.abs(_)+Math.abs(h)+Math.abs(S)+Math.abs(A)+Math.abs(p))),B=Gc(S*d-p*M+h*C,S*v-p*C-h*M,I,k),a.set(y,i-1,B[0]),a.set(y,i,B[1]),Math.abs(S)>Math.abs(p)+Math.abs(h)?(a.set(y+1,i-1,(-M-_*a.get(y,i-1)+h*a.get(y,i))/S),a.set(y+1,i,(-C-_*a.get(y,i)-h*a.get(y,i-1))/S)):(B=Gc(-d-A*a.get(y,i-1),-v-A*a.get(y,i),p,h),a.set(y+1,i-1,B[0]),a.set(y+1,i,B[1]))),E=Math.max(Math.abs(a.get(y,i-1)),Math.abs(a.get(y,i))),u*E*E>1)for(m=y;m<=i;m++)a.set(m,i-1,a.get(m,i-1)/E),a.set(m,i,a.get(m,i)/E)}for(y=0;ys)for(m=y;m=o;m--)for(y=o;y<=s;y++){for(p=0,b=o;b<=Math.min(m,s);b++)p=p+n.get(y,b)*a.get(b,m);n.set(y,m,p)}}}function Gc(t,e,r,n){let a,i;return Math.abs(r)>Math.abs(n)?(a=n/r,i=r+a*n,[(t+a*e)/i,(e-a*t)/i]):(a=r/n,i=n+a*r,[(a*t+e)/i,(a*e-t)/i])}class u2{constructor(e){if(e=Wn.checkMatrix(e),!e.isSymmetric())throw new Error("Matrix is not symmetric");let r=e,n=r.rows,a=new lt(n,n),i=!0,o,s,u;for(s=0;s0,a.set(s,s,Math.sqrt(Math.max(f,0))),u=s+1;u=0;u--)for(s=0;so;d++)c=e.transpose().mmul(s).div(s.transpose().mmul(s).get(0,0)),c=c.div(c.norm()),f=e.mmul(c).div(c.transpose().mmul(c).get(0,0)),d>0&&(u=f.clone().sub(h).pow(2).sum()),h=f.clone(),n?(l=n.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),l=l.div(l.norm()),s=n.mmul(l).div(l.transpose().mmul(l).get(0,0))):s=f;if(n){let d=e.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0));d=d.div(d.norm());let v=e.clone().sub(f.clone().mmul(d.transpose())),p=s.transpose().mmul(f).div(f.transpose().mmul(f).get(0,0)),g=n.clone().sub(f.clone().mulS(p.get(0,0)).mmul(l.transpose()));this.t=f,this.p=d.transpose(),this.w=c.transpose(),this.q=l,this.u=s,this.s=f.transpose().mmul(f),this.xResidual=v,this.yResidual=g,this.betas=p}else this.w=c.transpose(),this.s=f.transpose().mmul(f).sqrt(),a?this.t=f.clone().div(this.s.get(0,0)):this.t=f,this.xResidual=e.sub(f.mmul(c.transpose()))}}const Jne=Object.freeze(Object.defineProperty({__proto__:null,AbstractMatrix:Xt,CHO:u2,CholeskyDecomposition:u2,EVD:s2,EigenvalueDecomposition:s2,LU:fd,LuDecomposition:fd,Matrix:lt,MatrixColumnSelectionView:Dne,MatrixColumnView:Lne,MatrixFlipColumnView:Pne,MatrixFlipRowView:Rne,MatrixRowSelectionView:Bne,MatrixRowView:Fne,MatrixSelectionView:bh,MatrixSubView:Gne,MatrixTransposeView:zne,NIPALS:f2,Nipals:f2,QR:zg,QrDecomposition:zg,SVD:cu,SingularValueDecomposition:cu,WrapperMatrix1D:kN,WrapperMatrix2D:Wn,correlation:qne,covariance:Yne,default:lt,determinant:wh,inverse:Une,linearDependencies:Wne,pseudoInverse:Vne,solve:NN,wrap:jne},Symbol.toStringTag,{value:"Module"})),ON=Ka(Jne);Object.defineProperty(Qm,"__esModule",{value:!0});var Qu=ON,eae=function(){function t(e){this.distances=e.distances,this.dimension=e.dimension||2,this.linkDistance=e.linkDistance}return t.prototype.layout=function(){var e=this,r=e.dimension,n=e.distances,a=e.linkDistance;try{var i=Qu.Matrix.mul(Qu.Matrix.pow(n,2),-.5),o=i.mean("row"),s=i.mean("column"),u=i.mean();i.add(u).subRowVector(o).subColumnVector(s);var f=new Qu.SingularValueDecomposition(i),l=Qu.Matrix.sqrt(f.diagonalMatrix).diagonal();return f.leftSingularVectors.toJSON().map(function(p){return Qu.Matrix.mul([p],[l]).toJSON()[0].splice(0,r)})}catch{for(var c=[],h=0;hl?1:-1;c=.01*v,h=.01*v}if(dMath.PI/2&&(y-=Math.PI/2,v*=-1,p*=-1);var m=Math.cos(y)*g;f.x=v*m,f.y=p*m});var u=e.radii;r.forEach(function(f,l){if(l!==o){var c=Math.sqrt(n[l].x*n[l].x+n[l].y*n[l].y);if(c>0&&l!==o){var h=Math.min(s*(a/tae),c);if(f[0]+=n[l].x/c*h,f[1]+=n[l].y/c*h,i){var d=f[0]-r[o][0],v=f[1]-r[o][1],p=Math.sqrt(d*d+v*v);d=d/p*u[l],v=v/p*u[l],f[0]=r[o][0]+d,f[1]=r[o][1]+v}}}})},t}();Jm.default=rae;var nae=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),LN=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lv,"__esModule",{value:!0});lv.RadialLayout=void 0;var Zn=Ir(),aae=Rr,iae=LN(Qm),oae=LN(Jm);function sae(t){for(var e=t.length,r=t[0].length,n=[],a=0;ai[0]?i[0]:p-i[0],m=g-i[1]>i[1]?i[1]:g-i[1];y===0&&(y=p/2),m===0&&(m=g/2);var b=m>y?y:m,w=Math.max.apply(Math,v),x=[];v.forEach(function(X,R){r.unitRadius||(r.unitRadius=b/w),x[R]=X*r.unitRadius}),r.radii=x;var E=r.eIdealDisMatrix();r.eIdealDistances=E;var _=sae(E);r.weights=_;var S=new iae.default({linkDistance:o,distances:E}),A=S.layout();A.forEach(function(X){(0,Zn.isNaN)(X[0])&&(X[0]=Math.random()*o),(0,Zn.isNaN)(X[1])&&(X[1]=Math.random()*o)}),r.positions=A,A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),A.forEach(function(X){X[0]-=A[l][0],X[1]-=A[l][1]}),r.run();var M=r.preventOverlap,C=r.nodeSize,I,k=r.strictRadial;if(M){var O=r.nodeSpacing,B;(0,Zn.isNumber)(O)?B=function(){return O}:(0,Zn.isFunction)(O)?B=O:B=function(){return 0},C?(0,Zn.isArray)(C)?I=function(X){var R=C[0]>C[1]?C[0]:C[1];return R+B(X)}:I=function(X){return C+B(X)}:I=function(X){if(X.size){if((0,Zn.isArray)(X.size)){var R=X.size[0]>X.size[1]?X.size[0]:X.size[1];return R+B(X)}if((0,Zn.isObject)(X.size)){var R=X.size.width>X.size.height?X.size.width:X.size.height;return R+B(X)}return X.size+B(X)}return 10+B(X)};var L={nodes:n,nodeSizeFunc:I,adjMatrix:c,positions:A,radii:x,height:g,width:p,strictRadial:k,focusID:l,iterations:r.maxPreventOverlapIteration||200,k:A.length/4.5},z=new oae.default(L);A=z.layout()}return A.forEach(function(X,R){n[R].x=X[0]+i[0],n[R].y=X[1]+i[1]}),r.onLayoutEnd&&r.onLayoutEnd(),{nodes:n,edges:a}},e.prototype.run=function(){for(var r=this,n=r.maxIteration,a=r.positions||[],i=r.weights||[],o=r.eIdealDistances||[],s=r.radii||[],u=0;u<=n;u++){var f=u/n;r.oneIteration(f,a,s,o,i)}},e.prototype.oneIteration=function(r,n,a,i,o){var s=this,u=1-r,f=s.focusIndex;n.forEach(function(l,c){var h=l2(l,[0,0]),d=h===0?0:1/h;if(c!==f){var v=0,p=0,g=0;n.forEach(function(m,b){if(c!==b){var w=l2(l,m),x=w===0?0:1/w,E=i[b][c];g+=o[c][b],v+=o[c][b]*(m[0]+E*(l[0]-m[0])*x),p+=o[c][b]*(m[1]+E*(l[1]-m[1])*x)}});var y=a[c]===0?0:1/a[c];g*=u,g+=r*y*y,v*=u,v+=r*y*l[0]*d,l[0]=v/g,p*=u,p+=r*y*l[1]*d,l[1]=p/g}})},e.prototype.eIdealDisMatrix=function(){var r=this,n=r.nodes;if(!n)return[];var a=r.distances,i=r.linkDistance,o=r.radii||[],s=r.unitRadius||50,u=[];return a&&a.forEach(function(f,l){var c=[];f.forEach(function(h,d){if(l===d)c.push(0);else if(o[l]===o[d])if(r.sortBy==="data")c.push(h*(Math.abs(l-d)*r.sortStrength)/(o[l]/s));else if(r.sortBy){var v=n[l][r.sortBy]||0,p=n[d][r.sortBy]||0;(0,Zn.isString)(v)&&(v=v.charCodeAt(0)),(0,Zn.isString)(p)&&(p=p.charCodeAt(0)),c.push(h*(Math.abs(v-p)*r.sortStrength)/(o[l]/s))}else c.push(h*i/(o[l]/s));else{var g=(i+s)/2;c.push(h*g)}}),u.push(c)}),u},e.prototype.handleInfinity=function(r,n,a){for(var i=r.length,o=0;oa?r[n][i]:a);return a},e.prototype.getType=function(){return"radial"},e}(aae.Base);lv.RadialLayout=fae;(function(t){var e=me&&me.__createBinding||(Object.create?function(n,a,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(a,i);(!s||("get"in s?!a.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(n,o,s)}:function(n,a,i,o){o===void 0&&(o=i),n[o]=a[i]}),r=me&&me.__exportStar||function(n,a){for(var i in n)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,n,i)};Object.defineProperty(t,"__esModule",{value:!0}),r(lv,t)})(Km);var bl={},lae=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(bl,"__esModule",{value:!0});bl.ConcentricLayout=void 0;var Na=Ir(),cae=Rr,hae=function(t){lae(e,t);function e(r){var n=t.call(this)||this;return n.nodeSize=30,n.minNodeSpacing=10,n.nodeSpacing=10,n.preventOverlap=!1,n.equidistant=!1,n.startAngle=3/2*Math.PI,n.clockwise=!0,n.sortBy="degree",n.nodes=[],n.edges=[],n.width=300,n.height=300,n.onLayoutEnd=function(){},n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{nodeSize:30,minNodeSpacing:10,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"}},e.prototype.execute=function(){var r,n,a=this,i=a.nodes,o=a.edges,s=i.length;if(s===0){(r=a.onLayoutEnd)===null||r===void 0||r.call(a);return}!a.width&&typeof window<"u"&&(a.width=window.innerWidth),!a.height&&typeof window<"u"&&(a.height=window.innerHeight),a.center||(a.center=[a.width/2,a.height/2]);var u=a.center;if(s===1){i[0].x=u[0],i[0].y=u[1],(n=a.onLayoutEnd)===null||n===void 0||n.call(a);return}var f=a.nodeSize,l=a.nodeSpacing,c=[],h,d=0;(0,Na.isArray)(f)?h=Math.max(f[0],f[1]):h=f,(0,Na.isArray)(l)?d=Math.max(l[0],l[1]):(0,Na.isNumber)(l)&&(d=l),i.forEach(function(k){c.push(k);var O=h;(0,Na.isArray)(k.size)?O=Math.max(k.size[0],k.size[1]):(0,Na.isNumber)(k.size)?O=k.size:(0,Na.isObject)(k.size)&&(O=Math.max(k.size.width,k.size.height)),h=Math.max(h,O),(0,Na.isFunction)(l)&&(d=Math.max(l(k),d))}),a.clockwise=a.counterclockwise!==void 0?!a.counterclockwise:a.clockwise;var v={},p={};if(c.forEach(function(k,O){v[k.id]=k,p[k.id]=O}),(a.sortBy==="degree"||!(0,Na.isString)(a.sortBy)||c[0][a.sortBy]===void 0)&&(a.sortBy="degree",!(0,Na.isNumber)(i[0].degree))){var g=(0,Na.getDegree)(i.length,p,o);c.forEach(function(k,O){k.degree=g[O].all})}c.sort(function(k,O){return O[a.sortBy]-k[a.sortBy]}),a.maxValueNode=c[0],a.maxLevelDiff=a.maxLevelDiff||a.maxValueNode[a.sortBy]/4;var y=[[]],m=y[0];c.forEach(function(k){if(m.length>0){var O=Math.abs(m[0][a.sortBy]-k[a.sortBy]);a.maxLevelDiff&&O>=a.maxLevelDiff&&(m=[],y.push(m))}m.push(k)});var b=h+(d||a.minNodeSpacing);if(!a.preventOverlap){var w=y.length>0&&y[0].length>1,x=Math.min(a.width,a.height)/2-b,E=x/(y.length+(w?1:0));b=Math.min(b,E)}var _=0;if(y.forEach(function(k){var O=a.sweep;O===void 0&&(O=2*Math.PI-2*Math.PI/k.length);var B=k.dTheta=O/Math.max(1,k.length-1);if(k.length>1&&a.preventOverlap){var L=Math.cos(B)-Math.cos(0),z=Math.sin(B)-Math.sin(0),X=Math.sqrt(b*b/(L*L+z*z));_=Math.max(X,_)}k.r=_,_+=b}),a.equidistant){for(var S=0,A=0,M=0;M"u")return;var h=0;this.timeInterval=window.setInterval(function(){var d;n.runOneStep(l),h++,h>=o&&((d=n.onLayoutEnd)===null||d===void 0||d.call(n),window.clearInterval(n.timeInterval))},0)}return{nodes:a,edges:i}}},e.prototype.runOneStep=function(r){var n,a=this,i=a.nodes;if(i){var o=a.edges,s=a.center,u=a.gravity,f=a.speed,l=a.clustering,c=a.height*a.width,h=Math.sqrt(c)/10,d=c/(i.length+1),v=Math.sqrt(d),p=[];if(i.forEach(function(m,b){p[b]={x:0,y:0}}),a.applyCalculate(i,o,p,v,d),l){for(var g in r)r[g].cx=0,r[g].cy=0,r[g].count=0;i.forEach(function(m){var b=r[m.cluster];(0,Dr.isNumber)(m.x)&&(b.cx+=m.x),(0,Dr.isNumber)(m.y)&&(b.cy+=m.y),b.count++});for(var g in r)r[g].cx/=r[g].count,r[g].cy/=r[g].count;var y=a.clusterGravity||u;i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=r[m.cluster],x=Math.sqrt((m.x-w.cx)*(m.x-w.cx)+(m.y-w.cy)*(m.y-w.cy)),E=v*y;p[b].x-=E*(m.x-w.cx)/x,p[b].y-=E*(m.y-w.cy)/x}})}i.forEach(function(m,b){if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=.01*v*u;p[b].x-=w*(m.x-s[0]),p[b].y-=w*(m.y-s[1])}}),i.forEach(function(m,b){if((0,Dr.isNumber)(m.fx)&&(0,Dr.isNumber)(m.fy)){m.x=m.fx,m.y=m.fy;return}if(!(!(0,Dr.isNumber)(m.x)||!(0,Dr.isNumber)(m.y))){var w=Math.sqrt(p[b].x*p[b].x+p[b].y*p[b].y);if(w>0){var x=Math.min(h*(f/mae),w);m.x+=p[b].x/w*x,m.y+=p[b].y/w*x}}}),(n=a.tick)===null||n===void 0||n.call(a)}},e.prototype.applyCalculate=function(r,n,a,i,o){var s=this;s.calRepulsive(r,a,o),n&&s.calAttractive(n,a,i)},e.prototype.calRepulsive=function(r,n,a){r.forEach(function(i,o){n[o]={x:0,y:0},r.forEach(function(s,u){if(o!==u&&!(!(0,Dr.isNumber)(i.x)||!(0,Dr.isNumber)(s.x)||!(0,Dr.isNumber)(i.y)||!(0,Dr.isNumber)(s.y))){var f=i.x-s.x,l=i.y-s.y,c=f*f+l*l;if(c===0){c=1;var h=o>u?1:-1;f=.01*h,l=.01*h}var d=a/c;n[o].x+=f*d,n[o].y+=l*d}})})},e.prototype.calAttractive=function(r,n,a){var i=this;r.forEach(function(o){var s=(0,Dr.getEdgeTerminal)(o,"source"),u=(0,Dr.getEdgeTerminal)(o,"target");if(!(!s||!u)){var f=i.nodeIdxMap[s],l=i.nodeIdxMap[u];if(f!==l){var c=i.nodeMap[s],h=i.nodeMap[u];if(!(!(0,Dr.isNumber)(h.x)||!(0,Dr.isNumber)(c.x)||!(0,Dr.isNumber)(h.y)||!(0,Dr.isNumber)(c.y))){var d=h.x-c.x,v=h.y-c.y,p=Math.sqrt(d*d+v*v),g=p*p/a;n[l].x-=d/p*g,n[l].y-=v/p*g,n[f].x+=d/p*g,n[f].y+=v/p*g}}}})},e.prototype.stop=function(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval)},e.prototype.destroy=function(){var r=this;r.stop(),r.tick=null,r.nodes=null,r.edges=null,r.destroyed=!0},e.prototype.getType=function(){return"fruchterman"},e}(yae.Base);xl.FruchtermanLayout=bae;var El={};function c2(t,e,r,n,a,i,o){try{var s=t[i](o),u=s.value}catch(f){return void r(f)}s.done?e(u):Promise.resolve(u).then(n,a)}function Xi(t){return function(){var e=this,r=arguments;return new Promise(function(n,a){var i=t.apply(e,r);function o(u){c2(i,n,a,o,s,"next",u)}function s(u){c2(i,n,a,o,s,"throw",u)}o(void 0)})}}function hu(t){"@babel/helpers - typeof";return hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(t)}function wae(t,e){if(hu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(hu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function DN(t){var e=wae(t,"string");return hu(e)=="symbol"?e:e+""}function Ke(t,e,r){return(e=DN(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ma(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h2(t,e){for(var r=0;r-1&&t%1==0&&t<=jae}var $ae=Uae;function Xae(t){return t!=null&&typeof t=="object"}var t1=Xae,Wae=e1,Vae=$ae,Yae=t1,qae="[object Arguments]",Hae="[object Array]",Zae="[object Boolean]",Kae="[object Date]",Qae="[object Error]",Jae="[object Function]",eie="[object Map]",tie="[object Number]",rie="[object Object]",nie="[object RegExp]",aie="[object Set]",iie="[object String]",oie="[object WeakMap]",sie="[object ArrayBuffer]",uie="[object DataView]",fie="[object Float32Array]",lie="[object Float64Array]",cie="[object Int8Array]",hie="[object Int16Array]",die="[object Int32Array]",vie="[object Uint8Array]",pie="[object Uint8ClampedArray]",gie="[object Uint16Array]",yie="[object Uint32Array]",wr={};wr[fie]=wr[lie]=wr[cie]=wr[hie]=wr[die]=wr[vie]=wr[pie]=wr[gie]=wr[yie]=!0;wr[qae]=wr[Hae]=wr[sie]=wr[Zae]=wr[uie]=wr[Kae]=wr[Qae]=wr[Jae]=wr[eie]=wr[tie]=wr[rie]=wr[nie]=wr[aie]=wr[iie]=wr[oie]=!1;function mie(t){return Yae(t)&&Vae(t.length)&&!!wr[Wae(t)]}var bie=mie;function wie(t){return function(e){return t(e)}}var xie=wie,ld={exports:{}};ld.exports;(function(t,e){var r=PN,n=e&&!e.nodeType&&e,a=n&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var u=a&&a.require&&a.require("util").types;return u||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s})(ld,ld.exports);var Eie=ld.exports,_ie=bie,Sie=xie,g2=Eie,y2=g2&&g2.isTypedArray,Mie=y2?Sie(y2):_ie,Aie=Mie;const cd=bi(Aie);var Cie=e1,Tie=t1,Iie="[object Number]";function kie(t){return typeof t=="number"||Tie(t)&&Cie(t)==Iie}var Nie=kie;const Oie=bi(Nie);var Lie=Array.isArray,Die=Lie;const Pie=bi(Die);var BN={exports:{}},GN={exports:{}};(function(t){function e(r,n){this.v=r,this.k=n}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(GN);var zN=GN.exports,jN={exports:{}},UN={exports:{}};(function(t){function e(r,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}t.exports=e=function(u,f,l,c){function h(d,v){e(u,d,function(p){return this._invoke(d,v,p)})}f?o?o(u,f,{value:l,enumerable:!c,configurable:!c,writable:!c}):u[f]=l:(h("next",0),h("throw",1),h("return",2))},t.exports.__esModule=!0,t.exports.default=t.exports,e(r,n,a,i)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(UN);var $N=UN.exports;(function(t){var e=$N;function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function u(g,y,m,b){var w=y&&y.prototype instanceof l?y:l,x=Object.create(w.prototype);return e(x,"_invoke",function(E,_,S){var A,M,C,I=0,k=S||[],O=!1,B={p:0,n:0,v:n,a:L,f:L.bind(n,4),d:function(X,R){return A=X,M=0,C=n,B.n=R,f}};function L(z,X){for(M=z,C=X,a=0;!O&&I&&!R&&a3?(R=ce===X)&&(C=V[(M=V[4])?5:(M=3,3)],V[4]=V[5]=n):V[0]<=he&&((R=z<2&&heX||X>ce)&&(V[4]=z,V[5]=X,B.n=ce,M=0))}if(R||z>1)return f;throw O=!0,X}return function(z,X,R){if(I>1)throw TypeError("Generator is already running");for(O&&X===1&&L(X,R),M=X,C=R;(a=M<2?n:C)||!O;){A||(M?M<3?(M>1&&(B.n=-1),L(M,C)):B.n=C:B.v=C);try{if(I=2,A){if(M||(z="next"),a=A[z]){if(!(a=a.call(A,C)))throw TypeError("iterator result is not an object");if(!a.done)return a;C=a.value,M<2&&(M=0)}else M===1&&(a=A.return)&&a.call(A),M<2&&(C=TypeError("The iterator does not provide a '"+z+"' method"),M=1);A=n}else if((a=(O=B.n<0)?C:E.call(_,B))!==f)break}catch(V){A=n,M=1,C=V}finally{I=1}}return{value:a,done:O}}}(g,m,b),!0),x}var f={};function l(){}function c(){}function h(){}a=Object.getPrototypeOf;var d=[][o]?a(a([][o]())):(e(a={},o,function(){return this}),a),v=h.prototype=l.prototype=Object.create(d);function p(g){return Object.setPrototypeOf?Object.setPrototypeOf(g,h):(g.__proto__=h,e(g,s,"GeneratorFunction")),g.prototype=Object.create(v),g}return c.prototype=h,e(v,"constructor",h),e(h,"constructor",c),c.displayName="GeneratorFunction",e(h,s,"GeneratorFunction"),e(v),e(v,s,"Generator"),e(v,o,function(){return this}),e(v,"toString",function(){return"[object Generator]"}),(t.exports=r=function(){return{w:u,m:p}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(jN);var XN=jN.exports,WN={exports:{}},VN={exports:{}},YN={exports:{}};(function(t){var e=zN,r=$N;function n(a,i){function o(u,f,l,c){try{var h=a[u](f),d=h.value;return d instanceof e?i.resolve(d.v).then(function(v){o("next",v,l,c)},function(v){o("throw",v,l,c)}):i.resolve(d).then(function(v){h.value=v,l(h)},function(v){return o("throw",v,l,c)})}catch(v){c(v)}}var s;this.next||(r(n.prototype),r(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(u,f,l){function c(){return new i(function(h,d){o(u,l,h,d)})}return s=s?s.then(c,c):c()},!0)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(YN);var qN=YN.exports;(function(t){var e=XN,r=qN;function n(a,i,o,s,u){return new r(e().w(a,i,o,s),u||Promise)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports})(VN);var HN=VN.exports;(function(t){var e=HN;function r(n,a,i,o,s){var u=e(n,a,i,o,s);return u.next().then(function(f){return f.done?f.value:u.next()})}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(WN);var Rie=WN.exports,ZN={exports:{}};(function(t){function e(r){var n=Object(r),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(ZN);var Fie=ZN.exports,KN={exports:{}},QN={exports:{}};(function(t){function e(r){"@babel/helpers - typeof";return t.exports=e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports})(QN);var Bie=QN.exports;(function(t){var e=Bie.default;function r(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(e(n)+" is not iterable")}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports})(KN);var Gie=KN.exports;(function(t){var e=zN,r=XN,n=Rie,a=HN,i=qN,o=Fie,s=Gie;function u(){var f=r(),l=f.m(u),c=(Object.getPrototypeOf?Object.getPrototypeOf(l):l.__proto__).constructor;function h(p){var g=typeof p=="function"&&p.constructor;return!!g&&(g===c||(g.displayName||g.name)==="GeneratorFunction")}var d={throw:1,return:2,break:3,continue:3};function v(p){var g,y;return function(m){g||(g={stop:function(){return y(m.a,2)},catch:function(){return m.v},abrupt:function(w,x){return y(m.a,d[w],x)},delegateYield:function(w,x,E){return g.resultName=x,y(m.d,s(w),E)},finish:function(w){return y(m.f,w)}},y=function(w,x,E){m.p=g.prev,m.n=g.next;try{return w(x,E)}finally{g.next=m.n}}),g.resultName&&(g[g.resultName]=m.v,g.resultName=void 0),g.sent=m.v,g.next=m.n;try{return p.call(this,g)}finally{m.p=g.prev,m.n=g.next}}}return(t.exports=u=function(){return{wrap:function(y,m,b,w){return f.w(v(y),m,b,w&&w.reverse())},isGeneratorFunction:h,mark:f.m,awrap:function(y,m){return new e(y,m)},AsyncIterator:i,async:function(y,m,b,w,x){return(h(m)?a:n)(v(y),m,b,w,x)},keys:o,values:s}},t.exports.__esModule=!0,t.exports.default=t.exports)()}t.exports=u,t.exports.__esModule=!0,t.exports.default=t.exports})(BN);var zie=BN.exports,xh=zie(),jie=xh;try{regeneratorRuntime=xh}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=xh:Function("r","regeneratorRuntime = r")(xh)}const mn=bi(jie);var Uie=1;function JN(){return Uie++}var ke;(function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL",t[t.COPY_SRC=1]="COPY_SRC",t[t.COPY_DST=2]="COPY_DST",t[t.SAMPLED=4]="SAMPLED",t[t.STORAGE=8]="STORAGE",t[t.RENDER_ATTACHMENT=16]="RENDER_ATTACHMENT"})(ke||(ke={}));var $ie=function(){function t(){Ma(this,t),this.config=void 0}return Aa(t,[{key:"get",value:function(){return this.config}},{key:"set",value:function(r){this.config=r}}]),t}(),Zf;(function(t){t.Void="Void",t.Boolean="Boolean",t.Float="Float",t.Uint32="Uint32",t.Int32="Int32",t.Vector="Vector",t.Vector2Float="vec2",t.Vector3Float="vec3",t.Vector4Float="vec4",t.Vector2Boolean="vec2",t.Vector3Boolean="vec3",t.Vector4Boolean="vec4",t.Vector2Uint="vec2",t.Vector3Uint="vec3",t.Vector4Uint="vec4",t.Vector2Int="vec2",t.Vector3Int="vec3",t.Vector4Int="vec4",t.Matrix="Matrix",t.Matrix3x3Float="mat3x3",t.Matrix4x4Float="mat4x4",t.Struct="Struct",t.FloatArray="Float[]",t.Vector4FloatArray="vec4[]"})(Zf||(Zf={}));var m2;(function(t){t.Program="Program",t.Identifier="Identifier",t.VariableDeclaration="VariableDeclaration",t.BlockStatement="BlockStatement",t.ReturnStatement="ReturnStatement",t.FunctionDeclaration="FunctionDeclaration",t.VariableDeclarator="VariableDeclarator",t.AssignmentExpression="AssignmentExpression",t.LogicalExpression="LogicalExpression",t.BinaryExpression="BinaryExpression",t.ArrayExpression="ArrayExpression",t.UnaryExpression="UnaryExpression",t.UpdateExpression="UpdateExpression",t.FunctionExpression="FunctionExpression",t.MemberExpression="MemberExpression",t.ConditionalExpression="ConditionalExpression",t.ExpressionStatement="ExpressionStatement",t.CallExpression="CallExpression",t.NumThreadStatement="NumThreadStatement",t.StorageStatement="StorageStatement",t.DoWhileStatement="DoWhileStatement",t.WhileStatement="WhileStatement",t.ForStatement="ForStatement",t.BreakStatement="BreakStatement",t.ContinueStatement="ContinueStatement",t.IfStatement="IfStatement",t.ImportedFunctionStatement="ImportedFunctionStatement"})(m2||(m2={}));var du;(function(t){t.Input="Input",t.Output="Output",t.Uniform="Uniform",t.Workgroup="Workgroup",t.UniformConstant="UniformConstant",t.Image="Image",t.StorageBuffer="StorageBuffer",t.Private="Private",t.Function="Function"})(du||(du={}));var Tf;(function(t){t.GLSL100="GLSL100",t.GLSL450="GLSL450",t.WGSL="WGSL"})(Tf||(Tf={}));var Xie="__DefineValuePlaceholder__";function Wie(){if(typeof document<"u")return document.createElement("canvas");throw new Error("Cannot create a canvas in this context")}function b2(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function w2(t){for(var e=1;e0&&s[0]!==void 0?s[0]:1,!this.dirty){f.next=6;break}return this.compiledBundle.context&&(i>1?this.compiledBundle.context.maxIteration=i:this.compiledBundle.context.maxIteration++),f.next=5,this.compile();case 5:this.dirty=!1;case 6:for(this.engine.beginFrame(),this.engine.clear({}),this.compiledBundle.context&&this.compiledBundle.context.uniforms.filter(function(l){var c=l.isReferer;return c}).forEach(function(l){var c=l.data,h=l.name;a.model.confirmInput(c.model,h)}),o=0;o"u";case"symbol":return typeof T=="symbol"}}function h(T,F,W){c(T,F)||o("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T)}function d(T,F){T>=0&&(T|0)===T||o("invalid parameter type, ("+T+")"+u(F)+". must be a nonnegative integer")}function v(T,F,W){F.indexOf(T)<0&&o("invalid value"+u(W)+". must be one of: "+F)}var p=["gl","canvas","container","attributes","pixelRatio","extensions","optionalExtensions","profile","onDone"];function g(T){Object.keys(T).forEach(function(F){p.indexOf(F)<0&&o('invalid regl constructor argument "'+F+'". must be one of '+p)})}function y(T,F){for(T=T+"";T.length0&&F.push(new w("unknown",0,W))}}),F}function A(T,F){F.forEach(function(W){var ue=T[W.file];if(ue){var be=ue.index[W.line];if(be){be.errors.push(W),ue.hasErrors=!0;return}}T.unknown.hasErrors=!0,T.unknown.lines[0].errors.push(W)})}function M(T,F,W,ue,be){if(!T.getShaderParameter(F,T.COMPILE_STATUS)){var se=T.getShaderInfoLog(F),de=ue===T.FRAGMENT_SHADER?"fragment":"vertex";z(W,"string",de+" shader source must be a string",be);var Ce=_(W,be),Ne=S(se);A(Ce,Ne),Object.keys(Ce).forEach(function(Pe){var Oe=Ce[Pe];if(!Oe.hasErrors)return;var Be=[""],Xe=[""];function Te(Ge,re){Be.push(Ge),Xe.push(re||"")}Te("file number "+Pe+": "+Oe.name+` +`,"color:red;text-decoration:underline;font-weight:bold"),Oe.lines.forEach(function(Ge){if(Ge.errors.length>0){Te(y(Ge.number,4)+"| ","background-color:yellow; font-weight:bold"),Te(Ge.line+a,"color:red; background-color:yellow; font-weight:bold");var re=0;Ge.errors.forEach(function(ve){var De=ve.message,He=/^\s*'(.*)'\s*:\s*(.*)$/.exec(De);if(He){var Ee=He[1];switch(De=He[2],Ee){case"assign":Ee="=";break}re=Math.max(Ge.line.indexOf(Ee,re),0)}else re=0;Te(y("| ",6)),Te(y("^^^",re+3)+a,"font-weight:bold"),Te(y("| ",6)),Te(De+a,"font-weight:bold")}),Te(y("| ",6)+a)}else Te(y(Ge.number,4)+"| "),Te(Ge.line+a,"color:red")}),typeof document<"u"&&!window.chrome?(Xe[0]=Be.join("%c"),console.log.apply(console,Xe)):console.log(Be.join(""))}),s.raise("Error compiling "+de+" shader, "+Ce[0].name)}}function C(T,F,W,ue,be){if(!T.getProgramParameter(F,T.LINK_STATUS)){var se=T.getProgramInfoLog(F),de=_(W,be),Ce=_(ue,be),Ne='Error linking program with vertex shader, "'+Ce[0].name+'", and fragment shader "'+de[0].name+'"';typeof document<"u"?console.log("%c"+Ne+a+"%c"+se,"color:red;text-decoration:underline;font-weight:bold","color:red"):console.log(Ne+a+se),s.raise(Ne)}}function I(T){T._commandRef=x()}function k(T,F,W,ue){I(T);function be(Ne){return Ne?ue.id(Ne):0}T._fragId=be(T.static.frag),T._vertId=be(T.static.vert);function se(Ne,Pe){Object.keys(Pe).forEach(function(Oe){Ne[ue.id(Oe)]=!0})}var de=T._uniformSet={};se(de,F.static),se(de,F.dynamic);var Ce=T._attributeSet={};se(Ce,W.static),se(Ce,W.dynamic),T._hasCount="count"in T.static||"count"in T.dynamic||"elements"in T.static||"elements"in T.dynamic}function O(T,F){var W=E();o(T+" in command "+(F||x())+(W==="unknown"?"":" called from "+W))}function B(T,F,W){T||O(F,W||x())}function L(T,F,W,ue){T in F||O("unknown parameter ("+T+")"+u(W)+". possible values: "+Object.keys(F).join(),ue||x())}function z(T,F,W,ue){c(T,F)||O("invalid parameter type"+u(W)+". expected "+F+", got "+typeof T,ue||x())}function X(T){T()}function R(T,F,W){T.texture?v(T.texture._texture.internalformat,F,"unsupported texture format for attachment"):v(T.renderbuffer._renderbuffer.format,W,"unsupported renderbuffer format for attachment")}var V=33071,he=9728,ce=9984,le=9985,ie=9986,Ie=9987,qe=5120,Ve=5121,it=5122,dt=5123,st=5124,Tt=5125,_t=5126,lr=32819,Bt=32820,Wt=33635,vr=34042,cr=36193,$t={};$t[qe]=$t[Ve]=1,$t[it]=$t[dt]=$t[cr]=$t[Wt]=$t[lr]=$t[Bt]=2,$t[st]=$t[Tt]=$t[_t]=$t[vr]=4;function sr(T,F){return T===Bt||T===lr||T===Wt?2:T===vr?4:$t[T]*F}function tn(T){return!(T&T-1)&&!!T}function tt(T,F,W){var ue,be=F.width,se=F.height,de=F.channels;s(be>0&&be<=W.maxTextureSize&&se>0&&se<=W.maxTextureSize,"invalid texture shape"),(T.wrapS!==V||T.wrapT!==V)&&s(tn(be)&&tn(se),"incompatible wrap mode for texture, both width and height must be power of 2"),F.mipmask===1?be!==1&&se!==1&&s(T.minFilter!==ce&&T.minFilter!==ie&&T.minFilter!==le&&T.minFilter!==Ie,"min filter requires mipmap"):(s(tn(be)&&tn(se),"texture must be a square power of 2 to support mipmapping"),s(F.mipmask===(be<<1)-1,"missing or incomplete mipmap data")),F.type===_t&&(W.extensions.indexOf("oes_texture_float_linear")<0&&s(T.minFilter===he&&T.magFilter===he,"filter not supported, must enable oes_texture_float_linear"),s(!T.genMipmaps,"mipmap generation not supported with float textures"));var Ce=F.images;for(ue=0;ue<16;++ue)if(Ce[ue]){var Ne=be>>ue,Pe=se>>ue;s(F.mipmask&1<0&&be<=ue.maxTextureSize&&se>0&&se<=ue.maxTextureSize,"invalid texture shape"),s(be===se,"cube map must be square"),s(F.wrapS===V&&F.wrapT===V,"wrap mode not supported by cube map");for(var Ce=0;Ce>Oe,Te=se>>Oe;s(Ne.mipmask&1<1&&F===W&&(F==='"'||F==="'"))return['"'+Ze(T.substr(1,T.length-2))+'"'];var ue=/\[(false|true|null|\d+|'[^']*'|"[^"]*")\]/.exec(T);if(ue)return Je(T.substr(0,ue.index)).concat(Je(ue[1])).concat(Je(T.substr(ue.index+ue[0].length)));var be=T.split(".");if(be.length===1)return['"'+Ze(T)+'"'];for(var se=[],de=0;deDt(W,F+"["+ue+"]")));if(T instanceof $e)return T;N(!1,"invalid option type in uniform "+F)}var fr={DynamicVariable:$e,define:Lt,isDynamic:ur,unbox:Dt,accessor:ht},or={next:typeof requestAnimationFrame=="function"?function(T){return requestAnimationFrame(T)}:function(T){return setTimeout(T,16)},cancel:typeof cancelAnimationFrame=="function"?function(T){return cancelAnimationFrame(T)}:clearTimeout},gr=typeof performance<"u"&&performance.now?function(){return performance.now()}:function(){return+new Date};function hr(){var T={"":0},F=[""];return{id:function(W){var ue=T[W];return ue||(ue=T[W]=F.length,F.push(W),ue)},str:function(W){return F[W]}}}function hn(T,F,W){var ue=document.createElement("canvas");n(ue.style,{border:0,margin:0,padding:0,top:0,left:0}),T.appendChild(ue),T===document.body&&(ue.style.position="absolute",n(T.style,{margin:0,padding:0}));function be(){var Ce=window.innerWidth,Ne=window.innerHeight;if(T!==document.body){var Pe=T.getBoundingClientRect();Ce=Pe.right-Pe.left,Ne=Pe.bottom-Pe.top}ue.width=W*Ce,ue.height=W*Ne,n(ue.style,{width:Ce+"px",height:Ne+"px"})}var se;T!==document.body&&typeof ResizeObserver=="function"?(se=new ResizeObserver(function(){setTimeout(be)}),se.observe(T)):window.addEventListener("resize",be,!1);function de(){se?se.disconnect():window.removeEventListener("resize",be),T.removeChild(ue)}return be(),{canvas:ue,onDestroy:de}}function nr(T,F){function W(ue){try{return T.getContext(ue,F)}catch{return null}}return W("webgl")||W("experimental-webgl")||W("webgl-experimental")}function Fr(T){return typeof T.nodeName=="string"&&typeof T.appendChild=="function"&&typeof T.getBoundingClientRect=="function"}function oa(T){return typeof T.drawArrays=="function"||typeof T.drawElements=="function"}function Ur(T){return typeof T=="string"?T.split():(N(Array.isArray(T),"invalid extension array"),T)}function Mi(T){return typeof T=="string"?(N(typeof document<"u","not supported outside of DOM"),document.querySelector(T)):T}function xu(T){var F=T||{},W,ue,be,se,de={},Ce=[],Ne=[],Pe=typeof window>"u"?1:window.devicePixelRatio,Oe=!1,Be=function(Ge){Ge&&N.raise(Ge)},Xe=function(){};if(typeof F=="string"?(N(typeof document<"u","selector queries only supported in DOM enviroments"),W=document.querySelector(F),N(W,"invalid query string for element")):typeof F=="object"?Fr(F)?W=F:oa(F)?(se=F,be=se.canvas):(N.constructor(F),"gl"in F?se=F.gl:"canvas"in F?be=Mi(F.canvas):"container"in F&&(ue=Mi(F.container)),"attributes"in F&&(de=F.attributes,N.type(de,"object","invalid context attributes")),"extensions"in F&&(Ce=Ur(F.extensions)),"optionalExtensions"in F&&(Ne=Ur(F.optionalExtensions)),"onDone"in F&&(N.type(F.onDone,"function","invalid or missing onDone callback"),Be=F.onDone),"profile"in F&&(Oe=!!F.profile),"pixelRatio"in F&&(Pe=+F.pixelRatio,N(Pe>0,"invalid pixel ratio"))):N.raise("invalid arguments to regl"),W&&(W.nodeName.toLowerCase()==="canvas"?be=W:ue=W),!se){if(!be){N(typeof document<"u","must manually specify webgl context outside of DOM environments");var Te=hn(ue||document.body,Be,Pe);if(!Te)return null;be=Te.canvas,Xe=Te.onDestroy}de.premultipliedAlpha===void 0&&(de.premultipliedAlpha=!0),se=nr(be,de)}return se?{gl:se,canvas:be,container:ue,extensions:Ce,optionalExtensions:Ne,pixelRatio:Pe,profile:Oe,onDone:Be,onDestroy:Xe}:(Xe(),Be("webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org"),null)}function Eu(T,F){var W={};function ue(de){N.type(de,"string","extension name must be string");var Ce=de.toLowerCase(),Ne;try{Ne=W[Ce]=T.getExtension(Ce)}catch{}return!!Ne}for(var be=0;be65535)<<4,T>>>=F,W=(T>255)<<3,T>>>=W,F|=W,W=(T>15)<<2,T>>>=W,F|=W,W=(T>3)<<1,T>>>=W,F|=W,F|T>>1}function dr(){var T=rn(8,function(){return[]});function F(se){var de=ua(se),Ce=T[St(de)>>2];return Ce.length>0?Ce.pop():new ArrayBuffer(de)}function W(se){T[St(se.byteLength)>>2].push(se)}function ue(se,de){var Ce=null;switch(se){case ti:Ce=new Int8Array(F(de),0,de);break;case uo:Ce=new Uint8Array(F(de),0,de);break;case _u:Ce=new Int16Array(F(2*de),0,de);break;case Su:Ce=new Uint16Array(F(2*de),0,de);break;case Mu:Ce=new Int32Array(F(4*de),0,de);break;case sa:Ce=new Uint32Array(F(4*de),0,de);break;case Br:Ce=new Float32Array(F(4*de),0,de);break;default:return null}return Ce.length!==de?Ce.subarray(0,de):Ce}function be(se){W(se.buffer)}return{alloc:F,free:W,allocType:ue,freeType:be}}var gt=dr();gt.zero=dr();var Sr=3408,dn=3410,fo=3411,lo=3412,ri=3413,co=3414,ho=3415,vo=33901,RO=33902,FO=3379,BO=3386,GO=34921,zO=36347,jO=36348,UO=35661,$O=35660,XO=34930,WO=36349,VO=34076,YO=34024,qO=7936,HO=7937,ZO=7938,KO=35724,QO=34047,JO=36063,eL=34852,Cl=3553,p1=34067,tL=34069,rL=33984,Au=6408,dv=5126,g1=5121,vv=36160,nL=36053,aL=36064,iL=16384,oL=function(T,F){var W=1;F.ext_texture_filter_anisotropic&&(W=T.getParameter(QO));var ue=1,be=1;F.webgl_draw_buffers&&(ue=T.getParameter(eL),be=T.getParameter(JO));var se=!!F.oes_texture_float;if(se){var de=T.createTexture();T.bindTexture(Cl,de),T.texImage2D(Cl,0,Au,1,1,0,Au,dv,null);var Ce=T.createFramebuffer();if(T.bindFramebuffer(vv,Ce),T.framebufferTexture2D(vv,aL,Cl,de,0),T.bindTexture(Cl,null),T.checkFramebufferStatus(vv)!==nL)se=!1;else{T.viewport(0,0,1,1),T.clearColor(1,0,0,1),T.clear(iL);var Ne=gt.allocType(dv,4);T.readPixels(0,0,1,1,Au,dv,Ne),T.getError()?se=!1:(T.deleteFramebuffer(Ce),T.deleteTexture(de),se=Ne[0]===1),gt.freeType(Ne)}}var Pe=typeof navigator<"u"&&(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent)),Oe=!0;if(!Pe){var Be=T.createTexture(),Xe=gt.allocType(g1,36);T.activeTexture(rL),T.bindTexture(p1,Be),T.texImage2D(tL,0,Au,3,3,0,Au,g1,Xe),gt.freeType(Xe),T.bindTexture(p1,null),T.deleteTexture(Be),Oe=!T.getError()}return{colorBits:[T.getParameter(dn),T.getParameter(fo),T.getParameter(lo),T.getParameter(ri)],depthBits:T.getParameter(co),stencilBits:T.getParameter(ho),subpixelBits:T.getParameter(Sr),extensions:Object.keys(F).filter(function(Te){return!!F[Te]}),maxAnisotropic:W,maxDrawbuffers:ue,maxColorAttachments:be,pointSizeDims:T.getParameter(vo),lineWidthDims:T.getParameter(RO),maxViewportDims:T.getParameter(BO),maxCombinedTextureUnits:T.getParameter(UO),maxCubeMapSize:T.getParameter(VO),maxRenderbufferSize:T.getParameter(YO),maxTextureUnits:T.getParameter(XO),maxTextureSize:T.getParameter(FO),maxAttributes:T.getParameter(GO),maxVertexUniforms:T.getParameter(zO),maxVertexTextureUnits:T.getParameter($O),maxVaryingVectors:T.getParameter(jO),maxFragmentUniforms:T.getParameter(WO),glsl:T.getParameter(KO),renderer:T.getParameter(HO),vendor:T.getParameter(qO),version:T.getParameter(ZO),readFloat:se,npotTextureCube:Oe}};function fa(T){return!!T&&typeof T=="object"&&Array.isArray(T.shape)&&Array.isArray(T.stride)&&typeof T.offset=="number"&&T.shape.length===T.stride.length&&(Array.isArray(T.data)||r(T.data))}var Pn=function(T){return Object.keys(T).map(function(F){return T[F]})},Tl={shape:lL,flatten:fL};function sL(T,F,W){for(var ue=0;ue0){var ze;if(Array.isArray(ve[0])){Ae=b1(ve);for(var Me=1,je=1;je0)if(typeof Me[0]=="number"){var We=gt.allocType(Ee.dtype,Me.length);x1(We,Me),Ae(We,ct),gt.freeType(We)}else if(Array.isArray(Me[0])||r(Me[0])){Mt=b1(Me);var Re=gv(Me,Mt,Ee.dtype);Ae(Re,ct),gt.freeType(Re)}else N.raise("invalid buffer data")}else if(fa(Me)){Mt=Me.shape;var xe=Me.stride,xt=0,It=0,nt=0,Rt=0;Mt.length===1?(xt=Mt[0],It=1,nt=xe[0],Rt=0):Mt.length===2?(xt=Mt[0],It=Mt[1],nt=xe[0],Rt=xe[1]):N.raise("invalid shape");var At=Array.isArray(Me.data)?Ee.dtype:kl(Me.data),Pt=gt.allocType(At,xt*It);E1(Pt,Me.data,xt,It,nt,Rt,Me.offset),Ae(Pt,ct),gt.freeType(Pt)}else N.raise("invalid data for buffer subdata");return et}return De||et(re),et._reglType="buffer",et._buffer=Ee,et.subdata=ze,W.profile&&(et.stats=Ee.stats),et.destroy=function(){Xe(Ee)},et}function Ge(){Pn(se).forEach(function(re){re.buffer=T.createBuffer(),T.bindBuffer(re.type,re.buffer),T.bufferData(re.type,re.persistentData||re.byteLength,re.usage)})}return W.profile&&(F.getTotalBufferSize=function(){var re=0;return Object.keys(se).forEach(function(ve){re+=se[ve].stats.size}),re}),{create:Te,createStream:Ne,destroyStream:Pe,clear:function(){Pn(se).forEach(Xe),Ce.forEach(Xe)},getBuffer:function(re){return re&&re._buffer instanceof de?re._buffer:null},restore:Ge,_initBuffer:Be}}var _L=0,SL=0,ML=1,AL=1,CL=4,TL=4,ns={points:_L,point:SL,lines:ML,line:AL,triangles:CL,triangle:TL,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6},IL=0,kL=1,Cu=4,NL=5120,as=5121,_1=5122,is=5123,S1=5124,go=5125,bv=34963,OL=35040,LL=35044;function DL(T,F,W,ue){var be={},se=0,de={uint8:as,uint16:is};F.oes_element_index_uint&&(de.uint32=go);function Ce(Ge){this.id=se++,be[this.id]=this,this.buffer=Ge,this.primType=Cu,this.vertCount=0,this.type=0}Ce.prototype.bind=function(){this.buffer.bind()};var Ne=[];function Pe(Ge){var re=Ne.pop();return re||(re=new Ce(W.create(null,bv,!0,!1)._buffer)),Be(re,Ge,OL,-1,-1,0,0),re}function Oe(Ge){Ne.push(Ge)}function Be(Ge,re,ve,De,He,Ee,et){Ge.buffer.bind();var Ae;if(re){var ze=et;!et&&(!r(re)||fa(re)&&!r(re.data))&&(ze=F.oes_element_index_uint?go:is),W._initBuffer(Ge.buffer,re,ve,ze,3)}else T.bufferData(bv,Ee,ve),Ge.buffer.dtype=Ae||as,Ge.buffer.usage=ve,Ge.buffer.dimension=3,Ge.buffer.byteLength=Ee;if(Ae=et,!et){switch(Ge.buffer.dtype){case as:case NL:Ae=as;break;case is:case _1:Ae=is;break;case go:case S1:Ae=go;break;default:N.raise("unsupported type for element array")}Ge.buffer.dtype=Ae}Ge.type=Ae,N(Ae!==go||!!F.oes_element_index_uint,"32 bit element buffers not supported, enable oes_element_index_uint first");var Me=He;Me<0&&(Me=Ge.buffer.byteLength,Ae===is?Me>>=1:Ae===go&&(Me>>=2)),Ge.vertCount=Me;var je=De;if(De<0){je=Cu;var ct=Ge.buffer.dimension;ct===1&&(je=IL),ct===2&&(je=kL),ct===3&&(je=Cu)}Ge.primType=je}function Xe(Ge){ue.elementsCount--,N(Ge.buffer!==null,"must not double destroy elements"),delete be[Ge.id],Ge.buffer.destroy(),Ge.buffer=null}function Te(Ge,re){var ve=W.create(null,bv,!0),De=new Ce(ve._buffer);ue.elementsCount++;function He(Ee){if(!Ee)ve(),De.primType=Cu,De.vertCount=0,De.type=as;else if(typeof Ee=="number")ve(Ee),De.primType=Cu,De.vertCount=Ee|0,De.type=as;else{var et=null,Ae=LL,ze=-1,Me=-1,je=0,ct=0;Array.isArray(Ee)||r(Ee)||fa(Ee)?et=Ee:(N.type(Ee,"object","invalid arguments for elements"),"data"in Ee&&(et=Ee.data,N(Array.isArray(et)||r(et)||fa(et),"invalid data for element buffer")),"usage"in Ee&&(N.parameter(Ee.usage,Il,"invalid element buffer usage"),Ae=Il[Ee.usage]),"primitive"in Ee&&(N.parameter(Ee.primitive,ns,"invalid element buffer primitive"),ze=ns[Ee.primitive]),"count"in Ee&&(N(typeof Ee.count=="number"&&Ee.count>=0,"invalid vertex count for elements"),Me=Ee.count|0),"type"in Ee&&(N.parameter(Ee.type,de,"invalid buffer type"),ct=de[Ee.type]),"length"in Ee?je=Ee.length|0:(je=Me,ct===is||ct===_1?je*=2:(ct===go||ct===S1)&&(je*=4))),Be(De,et,Ae,ze,Me,je,ct)}return He}return He(Ge),He._reglType="elements",He._elements=De,He.subdata=function(Ee,et){return ve.subdata(Ee,et),He},He.destroy=function(){Xe(De)},He}return{create:Te,createStream:Pe,destroyStream:Oe,getElements:function(Ge){return typeof Ge=="function"&&Ge._elements instanceof Ce?Ge._elements:null},clear:function(){Pn(be).forEach(Xe)}}}var M1=new Float32Array(1),PL=new Uint32Array(M1.buffer),RL=5123;function A1(T){for(var F=gt.allocType(RL,T.length),W=0;W>>31<<15,se=(ue<<1>>>24)-127,de=ue>>13&1023;if(se<-24)F[W]=be;else if(se<-14){var Ce=-14-se;F[W]=be+(de+1024>>Ce)}else se>15?F[W]=be+31744:F[W]=be+(se+15<<10)+de}return F}function Mr(T){return Array.isArray(T)||r(T)}var C1=function(T){return!(T&T-1)&&!!T},FL=34467,Ca=3553,wv=34067,Nl=34069,yo=6408,xv=6406,Ol=6407,Tu=6409,Ll=6410,T1=32854,Ev=32855,I1=36194,BL=32819,GL=32820,zL=33635,jL=34042,_v=6402,Dl=34041,Sv=35904,Mv=35906,os=36193,Av=33776,Cv=33777,Tv=33778,Iv=33779,k1=35986,N1=35987,O1=34798,L1=35840,D1=35841,P1=35842,R1=35843,F1=36196,ss=5121,kv=5123,Nv=5125,Iu=5126,UL=10242,$L=10243,XL=10497,Ov=33071,WL=33648,VL=10240,YL=10241,Lv=9728,qL=9729,Dv=9984,B1=9985,G1=9986,Pv=9987,HL=33170,Pl=4352,ZL=4353,KL=4354,QL=34046,JL=3317,eD=37440,tD=37441,rD=37443,z1=37444,ku=33984,nD=[Dv,G1,B1,Pv],Rl=[0,Tu,Ll,Ol,yo],Yn={};Yn[Tu]=Yn[xv]=Yn[_v]=1,Yn[Dl]=Yn[Ll]=2,Yn[Ol]=Yn[Sv]=3,Yn[yo]=Yn[Mv]=4;function us(T){return"[object "+T+"]"}var j1=us("HTMLCanvasElement"),U1=us("OffscreenCanvas"),$1=us("CanvasRenderingContext2D"),X1=us("ImageBitmap"),W1=us("HTMLImageElement"),V1=us("HTMLVideoElement"),aD=Object.keys(pv).concat([j1,U1,$1,X1,W1,V1]),fs=[];fs[ss]=1,fs[Iu]=4,fs[os]=2,fs[kv]=2,fs[Nv]=4;var nn=[];nn[T1]=2,nn[Ev]=2,nn[I1]=2,nn[Dl]=4,nn[Av]=.5,nn[Cv]=.5,nn[Tv]=1,nn[Iv]=1,nn[k1]=.5,nn[N1]=1,nn[O1]=1,nn[L1]=.5,nn[D1]=.25,nn[P1]=.5,nn[R1]=.25,nn[F1]=.5;function Y1(T){return Array.isArray(T)&&(T.length===0||typeof T[0]=="number")}function q1(T){if(!Array.isArray(T))return!1;var F=T.length;return!(F===0||!Mr(T[0]))}function mo(T){return Object.prototype.toString.call(T)}function H1(T){return mo(T)===j1}function Z1(T){return mo(T)===U1}function iD(T){return mo(T)===$1}function oD(T){return mo(T)===X1}function sD(T){return mo(T)===W1}function uD(T){return mo(T)===V1}function Rv(T){if(!T)return!1;var F=mo(T);return aD.indexOf(F)>=0?!0:Y1(T)||q1(T)||fa(T)}function K1(T){return pv[Object.prototype.toString.call(T)]|0}function fD(T,F){var W=F.length;switch(T.type){case ss:case kv:case Nv:case Iu:var ue=gt.allocType(T.type,W);ue.set(F),T.data=ue;break;case os:T.data=A1(F);break;default:N.raise("unsupported texture type, must specify a typed array")}}function Q1(T,F){return gt.allocType(T.type===os?Iu:T.type,F)}function J1(T,F){T.type===os?(T.data=A1(F),gt.freeType(F)):T.data=F}function lD(T,F,W,ue,be,se){for(var de=T.width,Ce=T.height,Ne=T.channels,Pe=de*Ce*Ne,Oe=Q1(T,Pe),Be=0,Xe=0;Xe=1;)Ce+=de*Ne*Ne,Ne/=2;return Ce}else return de*W*ue}function cD(T,F,W,ue,be,se,de){var Ce={"don't care":Pl,"dont care":Pl,nice:KL,fast:ZL},Ne={repeat:XL,clamp:Ov,mirror:WL},Pe={nearest:Lv,linear:qL},Oe=n({mipmap:Pv,"nearest mipmap nearest":Dv,"linear mipmap nearest":B1,"nearest mipmap linear":G1,"linear mipmap linear":Pv},Pe),Be={none:0,browser:z1},Xe={uint8:ss,rgba4:BL,rgb565:zL,"rgb5 a1":GL},Te={alpha:xv,luminance:Tu,"luminance alpha":Ll,rgb:Ol,rgba:yo,rgba4:T1,"rgb5 a1":Ev,rgb565:I1},Ge={};F.ext_srgb&&(Te.srgb=Sv,Te.srgba=Mv),F.oes_texture_float&&(Xe.float32=Xe.float=Iu),F.oes_texture_half_float&&(Xe.float16=Xe["half float"]=os),F.webgl_depth_texture&&(n(Te,{depth:_v,"depth stencil":Dl}),n(Xe,{uint16:kv,uint32:Nv,"depth stencil":jL})),F.webgl_compressed_texture_s3tc&&n(Ge,{"rgb s3tc dxt1":Av,"rgba s3tc dxt1":Cv,"rgba s3tc dxt3":Tv,"rgba s3tc dxt5":Iv}),F.webgl_compressed_texture_atc&&n(Ge,{"rgb atc":k1,"rgba atc explicit alpha":N1,"rgba atc interpolated alpha":O1}),F.webgl_compressed_texture_pvrtc&&n(Ge,{"rgb pvrtc 4bppv1":L1,"rgb pvrtc 2bppv1":D1,"rgba pvrtc 4bppv1":P1,"rgba pvrtc 2bppv1":R1}),F.webgl_compressed_texture_etc1&&(Ge["rgb etc1"]=F1);var re=Array.prototype.slice.call(T.getParameter(FL));Object.keys(Ge).forEach(function($){var fe=Ge[$];re.indexOf(fe)>=0&&(Te[$]=fe)});var ve=Object.keys(Te);W.textureFormats=ve;var De=[];Object.keys(Te).forEach(function($){var fe=Te[$];De[fe]=$});var He=[];Object.keys(Xe).forEach(function($){var fe=Xe[$];He[fe]=$});var Ee=[];Object.keys(Pe).forEach(function($){var fe=Pe[$];Ee[fe]=$});var et=[];Object.keys(Oe).forEach(function($){var fe=Oe[$];et[fe]=$});var Ae=[];Object.keys(Ne).forEach(function($){var fe=Ne[$];Ae[fe]=$});var ze=ve.reduce(function($,fe){var oe=Te[fe];return oe===Tu||oe===xv||oe===Tu||oe===Ll||oe===_v||oe===Dl||F.ext_srgb&&(oe===Sv||oe===Mv)?$[oe]=oe:oe===Ev||fe.indexOf("rgba")>=0?$[oe]=yo:$[oe]=Ol,$},{});function Me(){this.internalformat=yo,this.format=yo,this.type=ss,this.compressed=!1,this.premultiplyAlpha=!1,this.flipY=!1,this.unpackAlignment=1,this.colorSpace=z1,this.width=0,this.height=0,this.channels=0}function je($,fe){$.internalformat=fe.internalformat,$.format=fe.format,$.type=fe.type,$.compressed=fe.compressed,$.premultiplyAlpha=fe.premultiplyAlpha,$.flipY=fe.flipY,$.unpackAlignment=fe.unpackAlignment,$.colorSpace=fe.colorSpace,$.width=fe.width,$.height=fe.height,$.channels=fe.channels}function ct($,fe){if(!(typeof fe!="object"||!fe)){if("premultiplyAlpha"in fe&&(N.type(fe.premultiplyAlpha,"boolean","invalid premultiplyAlpha"),$.premultiplyAlpha=fe.premultiplyAlpha),"flipY"in fe&&(N.type(fe.flipY,"boolean","invalid texture flip"),$.flipY=fe.flipY),"alignment"in fe&&(N.oneOf(fe.alignment,[1,2,4,8],"invalid texture unpack alignment"),$.unpackAlignment=fe.alignment),"colorSpace"in fe&&(N.parameter(fe.colorSpace,Be,"invalid colorSpace"),$.colorSpace=Be[fe.colorSpace]),"type"in fe){var oe=fe.type;N(F.oes_texture_float||!(oe==="float"||oe==="float32"),"you must enable the OES_texture_float extension in order to use floating point textures."),N(F.oes_texture_half_float||!(oe==="half float"||oe==="float16"),"you must enable the OES_texture_half_float extension in order to use 16-bit floating point textures."),N(F.webgl_depth_texture||!(oe==="uint16"||oe==="uint32"||oe==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(oe,Xe,"invalid texture type"),$.type=Xe[oe]}var rt=$.width,Ft=$.height,j=$.channels,D=!1;"shape"in fe?(N(Array.isArray(fe.shape)&&fe.shape.length>=2,"shape must be an array"),rt=fe.shape[0],Ft=fe.shape[1],fe.shape.length===3&&(j=fe.shape[2],N(j>0&&j<=4,"invalid number of channels"),D=!0),N(rt>=0&&rt<=W.maxTextureSize,"invalid width"),N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")):("radius"in fe&&(rt=Ft=fe.radius,N(rt>=0&&rt<=W.maxTextureSize,"invalid radius")),"width"in fe&&(rt=fe.width,N(rt>=0&&rt<=W.maxTextureSize,"invalid width")),"height"in fe&&(Ft=fe.height,N(Ft>=0&&Ft<=W.maxTextureSize,"invalid height")),"channels"in fe&&(j=fe.channels,N(j>0&&j<=4,"invalid number of channels"),D=!0)),$.width=rt|0,$.height=Ft|0,$.channels=j|0;var q=!1;if("format"in fe){var ee=fe.format;N(F.webgl_depth_texture||!(ee==="depth"||ee==="depth stencil"),"you must enable the WEBGL_depth_texture extension in order to use depth/stencil textures."),N.parameter(ee,Te,"invalid texture format");var ne=$.internalformat=Te[ee];$.format=ze[ne],ee in Xe&&("type"in fe||($.type=Xe[ee])),ee in Ge&&($.compressed=!0),q=!0}!D&&q?$.channels=Yn[$.format]:D&&!q?$.channels!==Rl[$.format]&&($.format=$.internalformat=Rl[$.channels]):q&&D&&N($.channels===Yn[$.format],"number of channels inconsistent with specified format")}}function Mt($){T.pixelStorei(eD,$.flipY),T.pixelStorei(tD,$.premultiplyAlpha),T.pixelStorei(rD,$.colorSpace),T.pixelStorei(JL,$.unpackAlignment)}function We(){Me.call(this),this.xOffset=0,this.yOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function Re($,fe){var oe=null;if(Rv(fe)?oe=fe:fe&&(N.type(fe,"object","invalid pixel data type"),ct($,fe),"x"in fe&&($.xOffset=fe.x|0),"y"in fe&&($.yOffset=fe.y|0),Rv(fe.data)&&(oe=fe.data)),N(!$.compressed||oe instanceof Uint8Array,"compressed texture data must be stored in a uint8array"),fe.copy){N(!oe,"can not specify copy and data field for the same texture");var rt=be.viewportWidth,Ft=be.viewportHeight;$.width=$.width||rt-$.xOffset,$.height=$.height||Ft-$.yOffset,$.needsCopy=!0,N($.xOffset>=0&&$.xOffset=0&&$.yOffset0&&$.width<=rt&&$.height>0&&$.height<=Ft,"copy texture read out of bounds")}else if(!oe)$.width=$.width||1,$.height=$.height||1,$.channels=$.channels||4;else if(r(oe))$.channels=$.channels||4,$.data=oe,!("type"in fe)&&$.type===ss&&($.type=K1(oe));else if(Y1(oe))$.channels=$.channels||4,fD($,oe),$.alignment=1,$.needsFree=!0;else if(fa(oe)){var j=oe.data;!Array.isArray(j)&&$.type===ss&&($.type=K1(j));var D=oe.shape,q=oe.stride,ee,ne,K,H,Q,U;D.length===3?(K=D[2],U=q[2]):(N(D.length===2,"invalid ndarray pixel data, must be 2 or 3D"),K=1,U=1),ee=D[0],ne=D[1],H=q[0],Q=q[1],$.alignment=1,$.width=ee,$.height=ne,$.channels=K,$.format=$.internalformat=Rl[K],$.needsFree=!0,lD($,j,H,Q,U,oe.offset)}else if(H1(oe)||Z1(oe)||iD(oe))H1(oe)||Z1(oe)?$.element=oe:$.element=oe.canvas,$.width=$.element.width,$.height=$.element.height,$.channels=4;else if(oD(oe))$.element=oe,$.width=oe.width,$.height=oe.height,$.channels=4;else if(sD(oe))$.element=oe,$.width=oe.naturalWidth,$.height=oe.naturalHeight,$.channels=4;else if(uD(oe))$.element=oe,$.width=oe.videoWidth,$.height=oe.videoHeight,$.channels=4;else if(q1(oe)){var Y=$.width||oe[0].length,G=$.height||oe.length,J=$.channels;Mr(oe[0][0])?J=J||oe[0][0].length:J=J||1;for(var ae=Tl.shape(oe),ye=1,we=0;we=0,"oes_texture_float extension not enabled"):$.type===os&&N(W.extensions.indexOf("oes_texture_half_float")>=0,"oes_texture_half_float extension not enabled")}function xe($,fe,oe){var rt=$.element,Ft=$.data,j=$.internalformat,D=$.format,q=$.type,ee=$.width,ne=$.height;Mt($),rt?T.texImage2D(fe,oe,D,D,q,rt):$.compressed?T.compressedTexImage2D(fe,oe,j,ee,ne,0,Ft):$.needsCopy?(ue(),T.copyTexImage2D(fe,oe,D,$.xOffset,$.yOffset,ee,ne,0)):T.texImage2D(fe,oe,D,ee,ne,0,D,q,Ft||null)}function xt($,fe,oe,rt,Ft){var j=$.element,D=$.data,q=$.internalformat,ee=$.format,ne=$.type,K=$.width,H=$.height;Mt($),j?T.texSubImage2D(fe,Ft,oe,rt,ee,ne,j):$.compressed?T.compressedTexSubImage2D(fe,Ft,oe,rt,q,K,H,D):$.needsCopy?(ue(),T.copyTexSubImage2D(fe,Ft,oe,rt,$.xOffset,$.yOffset,K,H)):T.texSubImage2D(fe,Ft,oe,rt,K,H,ee,ne,D)}var It=[];function nt(){return It.pop()||new We}function Rt($){$.needsFree&>.freeType($.data),We.call($),It.push($)}function At(){Me.call(this),this.genMipmaps=!1,this.mipmapHint=Pl,this.mipmask=0,this.images=Array(16)}function Pt($,fe,oe){var rt=$.images[0]=nt();$.mipmask=1,rt.width=$.width=fe,rt.height=$.height=oe,rt.channels=$.channels=4}function Qt($,fe){var oe=null;if(Rv(fe))oe=$.images[0]=nt(),je(oe,$),Re(oe,fe),$.mipmask=1;else if(ct($,fe),Array.isArray(fe.mipmap))for(var rt=fe.mipmap,Ft=0;Ft>=Ft,oe.height>>=Ft,Re(oe,rt[Ft]),$.mipmask|=1<=0&&!("faces"in fe)&&($.genMipmaps=!0)}if("mag"in fe){var rt=fe.mag;N.parameter(rt,Pe),$.magFilter=Pe[rt]}var Ft=$.wrapS,j=$.wrapT;if("wrap"in fe){var D=fe.wrap;typeof D=="string"?(N.parameter(D,Ne),Ft=j=Ne[D]):Array.isArray(D)&&(N.parameter(D[0],Ne),N.parameter(D[1],Ne),Ft=Ne[D[0]],j=Ne[D[1]])}else{if("wrapS"in fe){var q=fe.wrapS;N.parameter(q,Ne),Ft=Ne[q]}if("wrapT"in fe){var ee=fe.wrapT;N.parameter(ee,Ne),j=Ne[ee]}}if($.wrapS=Ft,$.wrapT=j,"anisotropic"in fe){var ne=fe.anisotropic;N(typeof ne=="number"&&ne>=1&&ne<=W.maxAnisotropic,"aniso samples must be between 1 and "),$.anisotropic=fe.anisotropic}if("mipmap"in fe){var K=!1;switch(typeof fe.mipmap){case"string":N.parameter(fe.mipmap,Ce,"invalid mipmap hint"),$.mipmapHint=Ce[fe.mipmap],$.genMipmaps=!0,K=!0;break;case"boolean":K=$.genMipmaps=fe.mipmap;break;case"object":N(Array.isArray(fe.mipmap),"invalid mipmap type"),$.genMipmaps=!1,K=!0;break;default:N.raise("invalid mipmap type")}K&&!("min"in fe)&&($.minFilter=Dv)}}function zr($,fe){T.texParameteri(fe,YL,$.minFilter),T.texParameteri(fe,VL,$.magFilter),T.texParameteri(fe,UL,$.wrapS),T.texParameteri(fe,$L,$.wrapT),F.ext_texture_filter_anisotropic&&T.texParameteri(fe,QL,$.anisotropic),$.genMipmaps&&(T.hint(HL,$.mipmapHint),T.generateMipmap(fe))}var jr=0,Yr={},an=W.maxTextureUnits,Ar=Array(an).map(function(){return null});function kt($){Me.call(this),this.mipmask=0,this.internalformat=yo,this.id=jr++,this.refCount=1,this.target=$,this.texture=T.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new pr,de.profile&&(this.stats={size:0})}function on($){T.activeTexture(ku),T.bindTexture($.target,$.texture)}function ir(){var $=Ar[0];$?T.bindTexture($.target,$.texture):T.bindTexture(Ca,null)}function vt($){var fe=$.texture;N(fe,"must not double destroy texture");var oe=$.unit,rt=$.target;oe>=0&&(T.activeTexture(ku+oe),T.bindTexture(rt,null),Ar[oe]=null),T.deleteTexture(fe),$.texture=null,$.params=null,$.pixels=null,$.refCount=0,delete Yr[$.id],se.textureCount--}n(kt.prototype,{bind:function(){var $=this;$.bindCount+=1;var fe=$.unit;if(fe<0){for(var oe=0;oe0)continue;rt.unit=-1}Ar[oe]=$,fe=oe;break}fe>=an&&N.raise("insufficient number of texture units"),de.profile&&se.maxTextureUnits>Q)-K,U.height=U.height||(oe.height>>Q)-H,N(oe.type===U.type&&oe.format===U.format&&oe.internalformat===U.internalformat,"incompatible format for texture.subimage"),N(K>=0&&H>=0&&K+U.width<=oe.width&&H+U.height<=oe.height,"texture.subimage write out of bounds"),N(oe.mipmask&1<>K;++K){var H=ee>>K,Q=ne>>K;if(!H||!Q)break;T.texImage2D(Ca,K,oe.format,H,Q,0,oe.format,oe.type,null)}return ir(),de.profile&&(oe.stats.size=Fl(oe.internalformat,oe.type,ee,ne,!1,!1)),rt}return rt($,fe),rt.subimage=Ft,rt.resize=j,rt._reglType="texture2d",rt._texture=oe,de.profile&&(rt.stats=oe.stats),rt.destroy=function(){oe.decRef()},rt}function Vt($,fe,oe,rt,Ft,j){var D=new kt(wv);Yr[D.id]=D,se.cubeCount++;var q=new Array(6);function ee(H,Q,U,Y,G,J){var ae,ye=D.texInfo;for(pr.call(ye),ae=0;ae<6;++ae)q[ae]=zt();if(typeof H=="number"||!H){var we=H|0||1;for(ae=0;ae<6;++ae)Pt(q[ae],we,we)}else if(typeof H=="object")if(Q)Qt(q[0],H),Qt(q[1],Q),Qt(q[2],U),Qt(q[3],Y),Qt(q[4],G),Qt(q[5],J);else if(Or(ye,H),ct(D,H),"faces"in H){var pe=H.faces;for(N(Array.isArray(pe)&&pe.length===6,"cube faces must be a length 6 array"),ae=0;ae<6;++ae)N(typeof pe[ae]=="object"&&!!pe[ae],"invalid input for cube map face"),je(q[ae],D),Qt(q[ae],pe[ae])}else for(ae=0;ae<6;++ae)Qt(q[ae],H);else N.raise("invalid arguments to cube map");for(je(D,q[0]),W.npotTextureCube||N(C1(D.width)&&C1(D.height),"your browser does not support non power or two texture dimensions"),ye.genMipmaps?D.mipmask=(q[0].width<<1)-1:D.mipmask=q[0].mipmask,N.textureCube(D,ye,q,W),D.internalformat=q[0].internalformat,ee.width=q[0].width,ee.height=q[0].height,on(D),ae=0;ae<6;++ae)Nr(q[ae],Nl+ae);for(zr(ye,wv),ir(),de.profile&&(D.stats.size=Fl(D.internalformat,D.type,ee.width,ee.height,ye.genMipmaps,!0)),ee.format=De[D.internalformat],ee.type=He[D.type],ee.mag=Ee[ye.magFilter],ee.min=et[ye.minFilter],ee.wrapS=Ae[ye.wrapS],ee.wrapT=Ae[ye.wrapT],ae=0;ae<6;++ae)Gr(q[ae]);return ee}function ne(H,Q,U,Y,G){N(!!Q,"must specify image data"),N(typeof H=="number"&&H===(H|0)&&H>=0&&H<6,"invalid face");var J=U|0,ae=Y|0,ye=G|0,we=nt();return je(we,D),we.width=0,we.height=0,Re(we,Q),we.width=we.width||(D.width>>ye)-J,we.height=we.height||(D.height>>ye)-ae,N(D.type===we.type&&D.format===we.format&&D.internalformat===we.internalformat,"incompatible format for texture.subimage"),N(J>=0&&ae>=0&&J+we.width<=D.width&&ae+we.height<=D.height,"texture.subimage write out of bounds"),N(D.mipmask&1<>Y;++Y)T.texImage2D(Nl+U,Y,D.format,Q>>Y,Q>>Y,0,D.format,D.type,null);return ir(),de.profile&&(D.stats.size=Fl(D.internalformat,D.type,ee.width,ee.height,!1,!0)),ee}}return ee($,fe,oe,rt,Ft,j),ee.subimage=ne,ee.resize=K,ee._reglType="textureCube",ee._texture=D,de.profile&&(ee.stats=D.stats),ee.destroy=function(){D.decRef()},ee}function Cr(){for(var $=0;$>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);else for(var Ft=0;Ft<6;++Ft)T.texImage2D(Nl+Ft,rt,oe.internalformat,oe.width>>rt,oe.height>>rt,0,oe.internalformat,oe.type,null);zr(oe.texInfo,oe.target)})}function Mo(){for(var $=0;$=2,"invalid renderbuffer shape"),et=je[0]|0,Ae=je[1]|0}else"radius"in Me&&(et=Ae=Me.radius|0),"width"in Me&&(et=Me.width|0),"height"in Me&&(Ae=Me.height|0);"format"in Me&&(N.parameter(Me.format,se,"invalid renderbuffer format"),ze=se[Me.format])}else typeof He=="number"?(et=He|0,typeof Ee=="number"?Ae=Ee|0:Ae=et):He?N.raise("invalid arguments to renderbuffer constructor"):et=Ae=1;if(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),!(et===re.width&&Ae===re.height&&ze===re.format))return ve.width=re.width=et,ve.height=re.height=Ae,re.format=ze,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,ze,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=fb(re.format,re.width,re.height)),ve.format=de[re.format],ve}function De(He,Ee){var et=He|0,Ae=Ee|0||et;return et===re.width&&Ae===re.height||(N(et>0&&Ae>0&&et<=W.maxRenderbufferSize&&Ae<=W.maxRenderbufferSize,"invalid renderbuffer size"),ve.width=re.width=et,ve.height=re.height=Ae,T.bindRenderbuffer(Ci,re.renderbuffer),T.renderbufferStorage(Ci,re.format,et,Ae),N(T.getError()===0,"invalid render buffer format"),be.profile&&(re.stats.size=fb(re.format,re.width,re.height))),ve}return ve(Te,Ge),ve.resize=De,ve._reglType="renderbuffer",ve._renderbuffer=re,be.profile&&(ve.stats=re.stats),ve.destroy=function(){re.decRef()},ve}be.profile&&(ue.getTotalRenderbufferSize=function(){var Te=0;return Object.keys(Ne).forEach(function(Ge){Te+=Ne[Ge].stats.size}),Te});function Xe(){Pn(Ne).forEach(function(Te){Te.renderbuffer=T.createRenderbuffer(),T.bindRenderbuffer(Ci,Te.renderbuffer),T.renderbufferStorage(Ci,Te.format,Te.width,Te.height)}),T.bindRenderbuffer(Ci,null)}return{create:Be,clear:function(){Pn(Ne).forEach(Oe)},restore:Xe}},ni=36160,Fv=36161,bo=3553,Gl=34069,lb=36064,cb=36096,hb=36128,db=33306,vb=36053,dD=36054,vD=36055,pD=36057,gD=36061,yD=36193,mD=5121,bD=5126,pb=6407,gb=6408,wD=6402,xD=[pb,gb],Bv=[];Bv[gb]=4,Bv[pb]=3;var zl=[];zl[mD]=1,zl[bD]=4,zl[yD]=2;var ED=32854,_D=32855,SD=36194,MD=33189,AD=36168,yb=34041,CD=35907,TD=34836,ID=34842,kD=34843,ND=[ED,_D,SD,CD,ID,kD,TD],ls={};ls[vb]="complete",ls[dD]="incomplete attachment",ls[pD]="incomplete dimensions",ls[vD]="incomplete, missing attachment",ls[gD]="unsupported";function OD(T,F,W,ue,be,se){var de={cur:null,next:null,dirty:!1,setFBO:null},Ce=["rgba"],Ne=["rgba4","rgb565","rgb5 a1"];F.ext_srgb&&Ne.push("srgba"),F.ext_color_buffer_half_float&&Ne.push("rgba16f","rgb16f"),F.webgl_color_buffer_float&&Ne.push("rgba32f");var Pe=["uint8"];F.oes_texture_half_float&&Pe.push("half float","float16"),F.oes_texture_float&&Pe.push("float","float32");function Oe(We,Re,xe){this.target=We,this.texture=Re,this.renderbuffer=xe;var xt=0,It=0;Re?(xt=Re.width,It=Re.height):xe&&(xt=xe.width,It=xe.height),this.width=xt,this.height=It}function Be(We){We&&(We.texture&&We.texture._texture.decRef(),We.renderbuffer&&We.renderbuffer._renderbuffer.decRef())}function Xe(We,Re,xe){if(We)if(We.texture){var xt=We.texture._texture,It=Math.max(1,xt.width),nt=Math.max(1,xt.height);N(It===Re&&nt===xe,"inconsistent width/height for supplied texture"),xt.refCount+=1}else{var Rt=We.renderbuffer._renderbuffer;N(Rt.width===Re&&Rt.height===xe,"inconsistent width/height for renderbuffer"),Rt.refCount+=1}}function Te(We,Re){Re&&(Re.texture?T.framebufferTexture2D(ni,We,Re.target,Re.texture._texture.texture,0):T.framebufferRenderbuffer(ni,We,Fv,Re.renderbuffer._renderbuffer.renderbuffer))}function Ge(We){var Re=bo,xe=null,xt=null,It=We;typeof We=="object"&&(It=We.data,"target"in We&&(Re=We.target|0)),N.type(It,"function","invalid attachment data");var nt=It._reglType;return nt==="texture2d"?(xe=It,N(Re===bo)):nt==="textureCube"?(xe=It,N(Re>=Gl&&Re=2,"invalid shape for framebuffer"),Pt=on[0],Qt=on[1]}else"radius"in kt&&(Pt=Qt=kt.radius),"width"in kt&&(Pt=kt.width),"height"in kt&&(Qt=kt.height);("color"in kt||"colors"in kt)&&(zt=kt.color||kt.colors,Array.isArray(zt)&&N(zt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),zt||("colorCount"in kt&&(zr=kt.colorCount|0,N(zr>0,"invalid color buffer count")),"colorTexture"in kt&&(Gr=!!kt.colorTexture,pr="rgba4"),"colorType"in kt&&(Or=kt.colorType,Gr?(N(F.oes_texture_float||!(Or==="float"||Or==="float32"),"you must enable OES_texture_float in order to use floating point framebuffer objects"),N(F.oes_texture_half_float||!(Or==="half float"||Or==="float16"),"you must enable OES_texture_half_float in order to use 16-bit floating point framebuffer objects")):Or==="half float"||Or==="float16"?(N(F.ext_color_buffer_half_float,"you must enable EXT_color_buffer_half_float to use 16-bit render buffers"),pr="rgba16f"):(Or==="float"||Or==="float32")&&(N(F.webgl_color_buffer_float,"you must enable WEBGL_color_buffer_float in order to use 32-bit floating point renderbuffers"),pr="rgba32f"),N.oneOf(Or,Pe,"invalid color type")),"colorFormat"in kt&&(pr=kt.colorFormat,Ce.indexOf(pr)>=0?Gr=!0:Ne.indexOf(pr)>=0?Gr=!1:Gr?N.oneOf(kt.colorFormat,Ce,"invalid color format for texture"):N.oneOf(kt.colorFormat,Ne,"invalid color format for renderbuffer"))),("depthTexture"in kt||"depthStencilTexture"in kt)&&(Ar=!!(kt.depthTexture||kt.depthStencilTexture),N(!Ar||F.webgl_depth_texture,"webgl_depth_texture extension not supported")),"depth"in kt&&(typeof kt.depth=="boolean"?Nr=kt.depth:(jr=kt.depth,$r=!1)),"stencil"in kt&&(typeof kt.stencil=="boolean"?$r=kt.stencil:(Yr=kt.stencil,Nr=!1)),"depthStencil"in kt&&(typeof kt.depthStencil=="boolean"?Nr=$r=kt.depthStencil:(an=kt.depthStencil,Nr=!1,$r=!1))}var ir=null,vt=null,Gt=null,Vt=null;if(Array.isArray(zt))ir=zt.map(Ge);else if(zt)ir=[Ge(zt)];else for(ir=new Array(zr),At=0;At=0||ir[At].renderbuffer&&ND.indexOf(ir[At].renderbuffer._renderbuffer.format)>=0,"framebuffer color attachment "+At+" is invalid"),ir[At]&&ir[At].texture){var Ia=Bv[ir[At].texture._texture.format]*zl[ir[At].texture._texture.type];Cr===null?Cr=Ia:N(Cr===Ia,"all color attachments much have the same number of bits per pixel.")}return Xe(vt,Pt,Qt),N(!vt||vt.texture&&vt.texture._texture.format===wD||vt.renderbuffer&&vt.renderbuffer._renderbuffer.format===MD,"invalid depth attachment for framebuffer object"),Xe(Gt,Pt,Qt),N(!Gt||Gt.renderbuffer&&Gt.renderbuffer._renderbuffer.format===AD,"invalid stencil attachment for framebuffer object"),Xe(Vt,Pt,Qt),N(!Vt||Vt.texture&&Vt.texture._texture.format===yb||Vt.renderbuffer&&Vt.renderbuffer._renderbuffer.format===yb,"invalid depth-stencil attachment for framebuffer object"),Ae(xe),xe.width=Pt,xe.height=Qt,xe.colorAttachments=ir,xe.depthAttachment=vt,xe.stencilAttachment=Gt,xe.depthStencilAttachment=Vt,xt.color=ir.map(ve),xt.depth=ve(vt),xt.stencil=ve(Gt),xt.depthStencil=ve(Vt),xt.width=xe.width,xt.height=xe.height,Me(xe),xt}function It(nt,Rt){N(de.next!==xe,"can not resize a framebuffer which is currently in use");var At=Math.max(nt|0,1),Pt=Math.max(Rt|0||At,1);if(At===xe.width&&Pt===xe.height)return xt;for(var Qt=xe.colorAttachments,Nr=0;Nr=2,"invalid shape for framebuffer"),N(Gr[0]===Gr[1],"cube framebuffer must be square"),At=Gr[0]}else"radius"in zt&&(At=zt.radius|0),"width"in zt?(At=zt.width|0,"height"in zt&&N(zt.height===At,"must be square")):"height"in zt&&(At=zt.height|0);("color"in zt||"colors"in zt)&&(Pt=zt.color||zt.colors,Array.isArray(Pt)&&N(Pt.length===1||F.webgl_draw_buffers,"multiple render targets not supported")),Pt||("colorCount"in zt&&($r=zt.colorCount|0,N($r>0,"invalid color buffer count")),"colorType"in zt&&(N.oneOf(zt.colorType,Pe,"invalid color type"),Nr=zt.colorType),"colorFormat"in zt&&(Qt=zt.colorFormat,N.oneOf(zt.colorFormat,Ce,"invalid color format for texture"))),"depth"in zt&&(Rt.depth=zt.depth),"stencil"in zt&&(Rt.stencil=zt.stencil),"depthStencil"in zt&&(Rt.depthStencil=zt.depthStencil)}var pr;if(Pt)if(Array.isArray(Pt))for(pr=[],nt=0;nt0&&(Rt.depth=Re[0].depth,Rt.stencil=Re[0].stencil,Rt.depthStencil=Re[0].depthStencil),Re[nt]?Re[nt](Rt):Re[nt]=je(Rt)}return n(xe,{width:At,height:At,color:pr})}function xt(It){var nt,Rt=It|0;if(N(Rt>0&&Rt<=W.maxCubeMapSize,"invalid radius for cube fbo"),Rt===xe.width)return xe;var At=xe.color;for(nt=0;nt0,"must specify at least one attribute");var ct={},Mt=ze.attributes;Mt.length=je.length;for(var We=0;We=xt.byteLength?It.subdata(xt):(It.destroy(),ze.buffers[We]=null)),ze.buffers[We]||(It=ze.buffers[We]=be.create(Re,mb,!1,!0)),xe.buffer=be.getBuffer(It),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1,ct[We]=1}else be.getBuffer(Re)?(xe.buffer=be.getBuffer(Re),xe.size=xe.buffer.dimension|0,xe.normalized=!1,xe.type=xe.buffer.dtype,xe.offset=0,xe.stride=0,xe.divisor=0,xe.state=1):be.getBuffer(Re.buffer)?(xe.buffer=be.getBuffer(Re.buffer),xe.size=(+Re.size||xe.buffer.dimension)|0,xe.normalized=!!Re.normalized||!1,"type"in Re?(N.parameter(Re.type,po,"invalid buffer type"),xe.type=po[Re.type]):xe.type=xe.buffer.dtype,xe.offset=(Re.offset||0)|0,xe.stride=(Re.stride||0)|0,xe.divisor=(Re.divisor||0)|0,xe.state=1,N(xe.size>=1&&xe.size<=4,"size must be between 1 and 4"),N(xe.offset>=0,"invalid offset"),N(xe.stride>=0&&xe.stride<=255,"stride must be between 0 and 255"),N(xe.divisor>=0,"divisor must be positive"),N(!xe.divisor||!!F.angle_instanced_arrays,"ANGLE_instanced_arrays must be enabled to use divisor")):"x"in Re?(N(We>0,"first attribute must not be a constant"),xe.x=+Re.x||0,xe.y=+Re.y||0,xe.z=+Re.z||0,xe.w=+Re.w||0,xe.state=2):N(!1,"invalid attribute spec for location "+We)}for(var nt=0;nt1)for(var Mt=0;Mtre&&(re=ve.stats.uniformsCount)}),re},W.getMaxAttributesCount=function(){var re=0;return Oe.forEach(function(ve){ve.stats.attributesCount>re&&(re=ve.stats.attributesCount)}),re});function Ge(){be={},se={};for(var re=0;re=0,"missing vertex shader",De),N.command(ve>=0,"missing fragment shader",De);var Ee=Pe[ve];Ee||(Ee=Pe[ve]={});var et=Ee[re];if(et&&(et.refCount++,!He))return et;var Ae=new Xe(ve,re);return W.shaderCount++,Te(Ae,De,He),et||(Ee[re]=Ae),Oe.push(Ae),n(Ae,{destroy:function(){if(Ae.refCount--,Ae.refCount<=0){T.deleteProgram(Ae.program);var ze=Oe.indexOf(Ae);Oe.splice(ze,1),W.shaderCount--}Ee[Ae.vertId].refCount<=0&&(T.deleteShader(se[Ae.vertId]),delete se[Ae.vertId],delete Pe[Ae.fragId][Ae.vertId]),Object.keys(Pe[Ae.fragId]).length||(T.deleteShader(be[Ae.fragId]),delete be[Ae.fragId],delete Pe[Ae.fragId])}})},restore:Ge,shader:Ne,frag:-1,vert:-1}}var GD=6408,Nu=5121,zD=3333,jl=5126;function jD(T,F,W,ue,be,se,de){function Ce(Oe){var Be;F.next===null?(N(be.preserveDrawingBuffer,'you must create a webgl context with "preserveDrawingBuffer":true in order to read pixels from the drawing buffer'),Be=Nu):(N(F.next.colorAttachments[0].texture!==null,"You cannot read from a renderbuffer"),Be=F.next.colorAttachments[0].texture._texture.type,se.oes_texture_float?(N(Be===Nu||Be===jl,"Reading from a framebuffer is only allowed for the types 'uint8' and 'float'"),Be===jl&&N(de.readFloat,"Reading 'float' values is not permitted in your browser. For a fallback, please see: https://www.npmjs.com/package/glsl-read-float")):N(Be===Nu,"Reading from a framebuffer is only allowed for the type 'uint8'"));var Xe=0,Te=0,Ge=ue.framebufferWidth,re=ue.framebufferHeight,ve=null;r(Oe)?ve=Oe:Oe&&(N.type(Oe,"object","invalid arguments to regl.read()"),Xe=Oe.x|0,Te=Oe.y|0,N(Xe>=0&&Xe=0&&Te0&&Ge+Xe<=ue.framebufferWidth,"invalid width for read pixels"),N(re>0&&re+Te<=ue.framebufferHeight,"invalid height for read pixels"),W();var De=Ge*re*4;return ve||(Be===Nu?ve=new Uint8Array(De):Be===jl&&(ve=ve||new Float32Array(De))),N.isTypedArray(ve,"data buffer for regl.read() must be a typedarray"),N(ve.byteLength>=De,"data buffer for regl.read() too small"),T.pixelStorei(zD,4),T.readPixels(Xe,Te,Ge,re,GD,Be,ve),ve}function Ne(Oe){var Be;return F.setFBO({framebuffer:Oe.framebuffer},function(){Be=Ce(Oe)}),Be}function Pe(Oe){return!Oe||!("framebuffer"in Oe)?Ce(Oe):Ne(Oe)}return Pe}function cs(T){return Array.prototype.slice.call(T)}function hs(T){return cs(T).join("")}function UD(){var T=0,F=[],W=[];function ue(Be){for(var Xe=0;Xe0&&(Be.push(re,"="),Be.push.apply(Be,cs(arguments)),Be.push(";")),re}return n(Xe,{def:Ge,toString:function(){return hs([Te.length>0?"var "+Te.join(",")+";":"",hs(Be)])}})}function se(){var Be=be(),Xe=be(),Te=Be.toString,Ge=Xe.toString;function re(ve,De){Xe(ve,De,"=",Be.def(ve,De),";")}return n(function(){Be.apply(Be,cs(arguments))},{def:Be.def,entry:Be,exit:Xe,save:re,set:function(ve,De,He){re(ve,De),Be(ve,De,"=",He,";")},toString:function(){return Te()+Ge()}})}function de(){var Be=hs(arguments),Xe=se(),Te=se(),Ge=Xe.toString,re=Te.toString;return n(Xe,{then:function(){return Xe.apply(Xe,cs(arguments)),this},else:function(){return Te.apply(Te,cs(arguments)),this},toString:function(){var ve=re();return ve&&(ve="else{"+ve+"}"),hs(["if(",Be,"){",Ge(),"}",ve])}})}var Ce=be(),Ne={};function Pe(Be,Xe){var Te=[];function Ge(){var Ee="a"+Te.length;return Te.push(Ee),Ee}Xe=Xe||0;for(var re=0;re":516,notequal:517,"!=":517,"!==":517,gequal:518,">=":518,always:519},Ii={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,"increment wrap":34055,"decrement wrap":34056,invert:5386},Hb={frag:YD,vert:qD},op={cw:$b,ccw:ip};function tc(T){return Array.isArray(T)||r(T)||fa(T)}function Zb(T){return T.sort(function(F,W){return F===ai?-1:W===ai?1:F=1,ue>=2,F)}else if(W===Ul){var be=T.data;return new En(be.thisDep,be.contextDep,be.propDep,F)}else{if(W===xb)return new En(!1,!1,!1,F);if(W===Eb){for(var se=!1,de=!1,Ce=!1,Ne=0;Ne=1&&(de=!0),Oe>=2&&(Ce=!0)}else Pe.type===Ul&&(se=se||Pe.data.thisDep,de=de||Pe.data.contextDep,Ce=Ce||Pe.data.propDep)}return new En(se,de,Ce,F)}else return new En(W===Xv,W===$v,W===Uv,F)}}var Kb=new En(!1,!1,!1,function(){});function lP(T,F,W,ue,be,se,de,Ce,Ne,Pe,Oe,Be,Xe,Te,Ge){var re=Pe.Record,ve={add:32774,subtract:32778,"reverse subtract":32779};W.ext_blend_minmax&&(ve.min=iP,ve.max=oP);var De=W.angle_instanced_arrays,He=W.webgl_draw_buffers,Ee={dirty:!0,profile:Ge.profile},et={},Ae=[],ze={},Me={};function je(j){return j.replace(".","_")}function ct(j,D,q){var ee=je(j);Ae.push(j),et[ee]=Ee[ee]=!!q,ze[ee]=D}function Mt(j,D,q){var ee=je(j);Ae.push(j),Array.isArray(q)?(Ee[ee]=q.slice(),et[ee]=q.slice()):Ee[ee]=et[ee]=q,Me[ee]=D}ct(_b,QD),ct(Sb,KD),Mt(Mb,"blendColor",[0,0,0,0]),Mt(Wv,"blendEquationSeparate",[Vb,Vb]),Mt(Vv,"blendFuncSeparate",[Wb,Xb,Wb,Xb]),ct(Ab,eP,!0),Mt(Cb,"depthFunc",uP),Mt(Tb,"depthRange",[0,1]),Mt(Ib,"depthMask",!0),Mt(Yv,Yv,[!0,!0,!0,!0]),ct(kb,ZD),Mt(Nb,"cullFace",So),Mt(qv,qv,ip),Mt(Hv,Hv,1),ct(Ob,rP),Mt(Zv,"polygonOffset",[0,0]),ct(Lb,nP),ct(Db,aP),Mt(Kv,"sampleCoverage",[1,!1]),ct(Pb,JD),Mt(Rb,"stencilMask",-1),Mt(Qv,"stencilFunc",[sP,0,-1]),Mt(Jv,"stencilOpSeparate",[Uu,Ti,Ti,Ti]),Mt(Ou,"stencilOpSeparate",[So,Ti,Ti,Ti]),ct(Fb,tP),Mt($l,"scissor",[0,0,T.drawingBufferWidth,T.drawingBufferHeight]),Mt(ai,ai,[0,0,T.drawingBufferWidth,T.drawingBufferHeight]);var We={gl:T,context:Xe,strings:F,next:et,current:Ee,draw:Be,elements:se,buffer:be,shader:Oe,attributes:Pe.state,vao:Pe,uniforms:Ne,framebuffer:Ce,extensions:W,timer:Te,isBufferArgs:tc},Re={primTypes:ns,compareFuncs:ms,blendFuncs:Ta,blendEquations:ve,stencilOps:Ii,glTypes:po,orientationType:op};N.optional(function(){We.isArrayLike=Mr}),He&&(Re.backBuffer=[So],Re.drawBuffer=rn(ue.maxDrawbuffers,function(j){return j===0?[0]:rn(j,function(D){return fP+D})}));var xe=0;function xt(){var j=UD(),D=j.link,q=j.global;j.id=xe++,j.batchId="0";var ee=D(We),ne=j.shared={props:"a0"};Object.keys(We).forEach(function(Y){ne[Y]=q.def(ee,".",Y)}),N.optional(function(){j.CHECK=D(N),j.commandStr=N.guessCommand(),j.command=D(j.commandStr),j.assert=function(Y,G,J){Y("if(!(",G,"))",this.CHECK,".commandRaise(",D(J),",",this.command,");")},Re.invalidBlendCombinations=qb});var K=j.next={},H=j.current={};Object.keys(Me).forEach(function(Y){Array.isArray(Ee[Y])&&(K[Y]=q.def(ne.next,".",Y),H[Y]=q.def(ne.current,".",Y))});var Q=j.constants={};Object.keys(Re).forEach(function(Y){Q[Y]=q.def(JSON.stringify(Re[Y]))}),j.invoke=function(Y,G){switch(G.type){case jv:var J=["this",ne.context,ne.props,j.batchId];return Y.def(D(G.data),".call(",J.slice(0,Math.max(G.data.length+1,4)),")");case Uv:return Y.def(ne.props,G.data);case $v:return Y.def(ne.context,G.data);case Xv:return Y.def("this",G.data);case Ul:return G.data.append(j,Y),G.data.ref;case xb:return G.data.toString();case Eb:return G.data.map(function(ae){return j.invoke(Y,ae)})}},j.attribCache={};var U={};return j.scopeAttrib=function(Y){var G=F.id(Y);if(G in U)return U[G];var J=Pe.scope[G];J||(J=Pe.scope[G]=new re);var ae=U[G]=D(J);return ae},j}function It(j){var D=j.static,q=j.dynamic,ee;if(Lu in D){var ne=!!D[Lu];ee=kr(function(H,Q){return ne}),ee.enable=ne}else if(Lu in q){var K=q[Lu];ee=Cn(K,function(H,Q){return H.invoke(Q,K)})}return ee}function nt(j,D){var q=j.static,ee=j.dynamic;if(wo in q){var ne=q[wo];return ne?(ne=Ce.getFramebuffer(ne),N.command(ne,"invalid framebuffer object"),kr(function(H,Q){var U=H.link(ne),Y=H.shared;Q.set(Y.framebuffer,".next",U);var G=Y.context;return Q.set(G,"."+ps,U+".width"),Q.set(G,"."+gs,U+".height"),U})):kr(function(H,Q){var U=H.shared;Q.set(U.framebuffer,".next","null");var Y=U.context;return Q.set(Y,"."+ps,Y+"."+Gb),Q.set(Y,"."+gs,Y+"."+zb),"null"})}else if(wo in ee){var K=ee[wo];return Cn(K,function(H,Q){var U=H.invoke(Q,K),Y=H.shared,G=Y.framebuffer,J=Q.def(G,".getFramebuffer(",U,")");N.optional(function(){H.assert(Q,"!"+U+"||"+J,"invalid framebuffer object")}),Q.set(G,".next",J);var ae=Y.context;return Q.set(ae,"."+ps,J+"?"+J+".width:"+ae+"."+Gb),Q.set(ae,"."+gs,J+"?"+J+".height:"+ae+"."+zb),J})}else return null}function Rt(j,D,q){var ee=j.static,ne=j.dynamic;function K(U){if(U in ee){var Y=ee[U];N.commandType(Y,"object","invalid "+U,q.commandStr);var G=!0,J=Y.x|0,ae=Y.y|0,ye,we;return"width"in Y?(ye=Y.width|0,N.command(ye>=0,"invalid "+U,q.commandStr)):G=!1,"height"in Y?(we=Y.height|0,N.command(we>=0,"invalid "+U,q.commandStr)):G=!1,new En(!G&&D&&D.thisDep,!G&&D&&D.contextDep,!G&&D&&D.propDep,function(ut,Nt){var at=ut.shared.context,yt=ye;"width"in Y||(yt=Nt.def(at,".",ps,"-",J));var Ct=we;return"height"in Y||(Ct=Nt.def(at,".",gs,"-",ae)),[J,ae,yt,Ct]})}else if(U in ne){var pe=ne[U],Le=Cn(pe,function(ut,Nt){var at=ut.invoke(Nt,pe);N.optional(function(){ut.assert(Nt,at+"&&typeof "+at+'==="object"',"invalid "+U)});var yt=ut.shared.context,Ct=Nt.def(at,".x|0"),Jt=Nt.def(at,".y|0"),xr=Nt.def('"width" in ',at,"?",at,".width|0:","(",yt,".",ps,"-",Ct,")"),_n=Nt.def('"height" in ',at,"?",at,".height|0:","(",yt,".",gs,"-",Jt,")");return N.optional(function(){ut.assert(Nt,xr+">=0&&"+_n+">=0","invalid "+U)}),[Ct,Jt,xr,_n]});return D&&(Le.thisDep=Le.thisDep||D.thisDep,Le.contextDep=Le.contextDep||D.contextDep,Le.propDep=Le.propDep||D.propDep),Le}else return D?new En(D.thisDep,D.contextDep,D.propDep,function(ut,Nt){var at=ut.shared.context;return[0,0,Nt.def(at,".",ps),Nt.def(at,".",gs)]}):null}var H=K(ai);if(H){var Q=H;H=new En(H.thisDep,H.contextDep,H.propDep,function(U,Y){var G=Q.append(U,Y),J=U.shared.context;return Y.set(J,"."+$D,G[2]),Y.set(J,"."+XD,G[3]),G})}return{viewport:H,scissor_box:K($l)}}function At(j,D){var q=j.static,ee=typeof q[Pu]=="string"&&typeof q[Du]=="string";if(ee){if(Object.keys(D.dynamic).length>0)return null;var ne=D.static,K=Object.keys(ne);if(K.length>0&&typeof ne[K[0]]=="number"){for(var H=[],Q=0;Q=0,"invalid "+G,D.commandStr),kr(function(we,pe){return J&&(we.OFFSET=ae),ae})}else if(G in ee){var ye=ee[G];return Cn(ye,function(we,pe){var Le=we.invoke(pe,ye);return J&&(we.OFFSET=Le,N.optional(function(){we.assert(pe,Le+">=0","invalid "+G)})),Le})}else if(J&&K)return kr(function(we,pe){return we.OFFSET="0",0});return null}var U=Q(Xl,!0);function Y(){if(_o in q){var G=q[_o]|0;return N.command(typeof G=="number"&&G>=0,"invalid vertex count",D.commandStr),kr(function(){return G})}else if(_o in ee){var J=ee[_o];return Cn(J,function(we,pe){var Le=we.invoke(pe,J);return N.optional(function(){we.assert(pe,"typeof "+Le+'==="number"&&'+Le+">=0&&"+Le+"===("+Le+"|0)","invalid vertex count")}),Le})}else if(K)if(ki(K)){if(K)return U?new En(U.thisDep,U.contextDep,U.propDep,function(we,pe){var Le=pe.def(we.ELEMENTS,".vertCount-",we.OFFSET);return N.optional(function(){we.assert(pe,Le+">=0","invalid vertex offset/element buffer too small")}),Le}):kr(function(we,pe){return pe.def(we.ELEMENTS,".vertCount")});var ae=kr(function(){return-1});return N.optional(function(){ae.MISSING=!0}),ae}else{var ye=new En(K.thisDep||U.thisDep,K.contextDep||U.contextDep,K.propDep||U.propDep,function(we,pe){var Le=we.ELEMENTS;return we.OFFSET?pe.def(Le,"?",Le,".vertCount-",we.OFFSET,":-1"):pe.def(Le,"?",Le,".vertCount:-1")});return N.optional(function(){ye.DYNAMIC=!0}),ye}return null}return{elements:K,primitive:H(),count:Y(),instances:Q(Wl,!1),offset:U}}function Nr(j,D){var q=j.static,ee=j.dynamic,ne={};return Ae.forEach(function(K){var H=je(K);function Q(U,Y){if(K in q){var G=U(q[K]);ne[H]=kr(function(){return G})}else if(K in ee){var J=ee[K];ne[H]=Cn(J,function(ae,ye){return Y(ae,ye,ae.invoke(ye,J))})}}switch(K){case kb:case Sb:case _b:case Pb:case Ab:case Fb:case Ob:case Lb:case Db:case Ib:return Q(function(U){return N.commandType(U,"boolean",K,D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="boolean"',"invalid flag "+K,U.commandStr)}),G});case Cb:return Q(function(U){return N.commandParameter(U,ms,"invalid "+K,D.commandStr),ms[U]},function(U,Y,G){var J=U.constants.compareFuncs;return N.optional(function(){U.assert(Y,G+" in "+J,"invalid "+K+", must be one of "+Object.keys(ms))}),Y.def(J,"[",G,"]")});case Tb:return Q(function(U){return N.command(Mr(U)&&U.length===2&&typeof U[0]=="number"&&typeof U[1]=="number"&&U[0]<=U[1],"depth range is 2d array",D.commandStr),U},function(U,Y,G){N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===2&&typeof "+G+'[0]==="number"&&typeof '+G+'[1]==="number"&&'+G+"[0]<="+G+"[1]","depth range must be a 2d array")});var J=Y.def("+",G,"[0]"),ae=Y.def("+",G,"[1]");return[J,ae]});case Vv:return Q(function(U){N.commandType(U,"object","blend.func",D.commandStr);var Y="srcRGB"in U?U.srcRGB:U.src,G="srcAlpha"in U?U.srcAlpha:U.src,J="dstRGB"in U?U.dstRGB:U.dst,ae="dstAlpha"in U?U.dstAlpha:U.dst;return N.commandParameter(Y,Ta,H+".srcRGB",D.commandStr),N.commandParameter(G,Ta,H+".srcAlpha",D.commandStr),N.commandParameter(J,Ta,H+".dstRGB",D.commandStr),N.commandParameter(ae,Ta,H+".dstAlpha",D.commandStr),N.command(qb.indexOf(Y+", "+J)===-1,"unallowed blending combination (srcRGB, dstRGB) = ("+Y+", "+J+")",D.commandStr),[Ta[Y],Ta[J],Ta[G],Ta[ae]]},function(U,Y,G){var J=U.constants.blendFuncs;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid blend func, must be an object")});function ae(at,yt){var Ct=Y.def('"',at,yt,'" in ',G,"?",G,".",at,yt,":",G,".",at);return N.optional(function(){U.assert(Y,Ct+" in "+J,"invalid "+K+"."+at+yt+", must be one of "+Object.keys(Ta))}),Ct}var ye=ae("src","RGB"),we=ae("dst","RGB");N.optional(function(){var at=U.constants.invalidBlendCombinations;U.assert(Y,at+".indexOf("+ye+'+", "+'+we+") === -1 ","unallowed blending combination for (srcRGB, dstRGB)")});var pe=Y.def(J,"[",ye,"]"),Le=Y.def(J,"[",ae("src","Alpha"),"]"),ut=Y.def(J,"[",we,"]"),Nt=Y.def(J,"[",ae("dst","Alpha"),"]");return[pe,ut,Le,Nt]});case Wv:return Q(function(U){if(typeof U=="string")return N.commandParameter(U,ve,"invalid "+K,D.commandStr),[ve[U],ve[U]];if(typeof U=="object")return N.commandParameter(U.rgb,ve,K+".rgb",D.commandStr),N.commandParameter(U.alpha,ve,K+".alpha",D.commandStr),[ve[U.rgb],ve[U.alpha]];N.commandRaise("invalid blend.equation",D.commandStr)},function(U,Y,G){var J=U.constants.blendEquations,ae=Y.def(),ye=Y.def(),we=U.cond("typeof ",G,'==="string"');return N.optional(function(){function pe(Le,ut,Nt){U.assert(Le,Nt+" in "+J,"invalid "+ut+", must be one of "+Object.keys(ve))}pe(we.then,K,G),U.assert(we.else,G+"&&typeof "+G+'==="object"',"invalid "+K),pe(we.else,K+".rgb",G+".rgb"),pe(we.else,K+".alpha",G+".alpha")}),we.then(ae,"=",ye,"=",J,"[",G,"];"),we.else(ae,"=",J,"[",G,".rgb];",ye,"=",J,"[",G,".alpha];"),Y(we),[ae,ye]});case Mb:return Q(function(U){return N.command(Mr(U)&&U.length===4,"blend.color must be a 4d array",D.commandStr),rn(4,function(Y){return+U[Y]})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","blend.color must be a 4d array")}),rn(4,function(J){return Y.def("+",G,"[",J,"]")})});case Rb:return Q(function(U){return N.commandType(U,"number",H,D.commandStr),U|0},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"',"invalid stencil.mask")}),Y.def(G,"|0")});case Qv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.cmp||"keep",G=U.ref||0,J="mask"in U?U.mask:-1;return N.commandParameter(Y,ms,K+".cmp",D.commandStr),N.commandType(G,"number",K+".ref",D.commandStr),N.commandType(J,"number",K+".mask",D.commandStr),[ms[Y],G,J]},function(U,Y,G){var J=U.constants.compareFuncs;N.optional(function(){function pe(){U.assert(Y,Array.prototype.join.call(arguments,""),"invalid stencil.func")}pe(G+"&&typeof ",G,'==="object"'),pe('!("cmp" in ',G,")||(",G,".cmp in ",J,")")});var ae=Y.def('"cmp" in ',G,"?",J,"[",G,".cmp]",":",Ti),ye=Y.def(G,".ref|0"),we=Y.def('"mask" in ',G,"?",G,".mask|0:-1");return[ae,ye,we]});case Jv:case Ou:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.fail||"keep",G=U.zfail||"keep",J=U.zpass||"keep";return N.commandParameter(Y,Ii,K+".fail",D.commandStr),N.commandParameter(G,Ii,K+".zfail",D.commandStr),N.commandParameter(J,Ii,K+".zpass",D.commandStr),[K===Ou?So:Uu,Ii[Y],Ii[G],Ii[J]]},function(U,Y,G){var J=U.constants.stencilOps;N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});function ae(ye){return N.optional(function(){U.assert(Y,'!("'+ye+'" in '+G+")||("+G+"."+ye+" in "+J+")","invalid "+K+"."+ye+", must be one of "+Object.keys(Ii))}),Y.def('"',ye,'" in ',G,"?",J,"[",G,".",ye,"]:",Ti)}return[K===Ou?So:Uu,ae("fail"),ae("zfail"),ae("zpass")]});case Zv:return Q(function(U){N.commandType(U,"object",H,D.commandStr);var Y=U.factor|0,G=U.units|0;return N.commandType(Y,"number",H+".factor",D.commandStr),N.commandType(G,"number",H+".units",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid "+K)});var J=Y.def(G,".factor|0"),ae=Y.def(G,".units|0");return[J,ae]});case Nb:return Q(function(U){var Y=0;return U==="front"?Y=Uu:U==="back"&&(Y=So),N.command(!!Y,H,D.commandStr),Y},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="front"||'+G+'==="back"',"invalid cull.face")}),Y.def(G,'==="front"?',Uu,":",So)});case Hv:return Q(function(U){return N.command(typeof U=="number"&&U>=ue.lineWidthDims[0]&&U<=ue.lineWidthDims[1],"invalid line width, must be a positive number between "+ue.lineWidthDims[0]+" and "+ue.lineWidthDims[1],D.commandStr),U},function(U,Y,G){return N.optional(function(){U.assert(Y,"typeof "+G+'==="number"&&'+G+">="+ue.lineWidthDims[0]+"&&"+G+"<="+ue.lineWidthDims[1],"invalid line width")}),G});case qv:return Q(function(U){return N.commandParameter(U,op,H,D.commandStr),op[U]},function(U,Y,G){return N.optional(function(){U.assert(Y,G+'==="cw"||'+G+'==="ccw"',"invalid frontFace, must be one of cw,ccw")}),Y.def(G+'==="cw"?'+$b+":"+ip)});case Yv:return Q(function(U){return N.command(Mr(U)&&U.length===4,"color.mask must be length 4 array",D.commandStr),U.map(function(Y){return!!Y})},function(U,Y,G){return N.optional(function(){U.assert(Y,U.shared.isArrayLike+"("+G+")&&"+G+".length===4","invalid color.mask")}),rn(4,function(J){return"!!"+G+"["+J+"]"})});case Kv:return Q(function(U){N.command(typeof U=="object"&&U,H,D.commandStr);var Y="value"in U?U.value:1,G=!!U.invert;return N.command(typeof Y=="number"&&Y>=0&&Y<=1,"sample.coverage.value must be a number between 0 and 1",D.commandStr),[Y,G]},function(U,Y,G){N.optional(function(){U.assert(Y,G+"&&typeof "+G+'==="object"',"invalid sample.coverage")});var J=Y.def('"value" in ',G,"?+",G,".value:1"),ae=Y.def("!!",G,".invert");return[J,ae]})}}),ne}function $r(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q;if(typeof H=="number"||typeof H=="boolean")Q=kr(function(){return H});else if(typeof H=="function"){var U=H._reglType;U==="texture2d"||U==="textureCube"?Q=kr(function(Y){return Y.link(H)}):U==="framebuffer"||U==="framebufferCube"?(N.command(H.color.length>0,'missing color attachment for framebuffer sent to uniform "'+K+'"',D.commandStr),Q=kr(function(Y){return Y.link(H.color[0])})):N.commandRaise('invalid data for uniform "'+K+'"',D.commandStr)}else Mr(H)?Q=kr(function(Y){var G=Y.global.def("[",rn(H.length,function(J){return N.command(typeof H[J]=="number"||typeof H[J]=="boolean","invalid uniform "+K,Y.commandStr),H[J]}),"]");return G}):N.commandRaise('invalid or missing data for uniform "'+K+'"',D.commandStr);Q.value=H,ne[K]=Q}),Object.keys(ee).forEach(function(K){var H=ee[K];ne[K]=Cn(H,function(Q,U){return Q.invoke(U,H)})}),ne}function zt(j,D){var q=j.static,ee=j.dynamic,ne={};return Object.keys(q).forEach(function(K){var H=q[K],Q=F.id(K),U=new re;if(tc(H))U.state=vs,U.buffer=be.getBuffer(be.create(H,ys,!1,!0)),U.type=0;else{var Y=be.getBuffer(H);if(Y)U.state=vs,U.buffer=Y,U.type=0;else if(N.command(typeof H=="object"&&H,"invalid data for attribute "+K,D.commandStr),"constant"in H){var G=H.constant;U.buffer="null",U.state=zv,typeof G=="number"?U.x=G:(N.command(Mr(G)&&G.length>0&&G.length<=4,"invalid constant for attribute "+K,D.commandStr),ds.forEach(function(ut,Nt){Nt=0,'invalid offset for attribute "'+K+'"',D.commandStr);var ae=H.stride|0;N.command(ae>=0&&ae<256,'invalid stride for attribute "'+K+'", must be integer betweeen [0, 255]',D.commandStr);var ye=H.size|0;N.command(!("size"in H)||ye>0&&ye<=4,'invalid size for attribute "'+K+'", must be 1,2,3,4',D.commandStr);var we=!!H.normalized,pe=0;"type"in H&&(N.commandParameter(H.type,po,"invalid type for attribute "+K,D.commandStr),pe=po[H.type]);var Le=H.divisor|0;"divisor"in H&&(N.command(Le===0||De,'cannot specify divisor for attribute "'+K+'", instancing not supported',D.commandStr),N.command(Le>=0,'invalid divisor for attribute "'+K+'"',D.commandStr)),N.optional(function(){var ut=D.commandStr,Nt=["buffer","offset","divisor","normalized","type","size","stride"];Object.keys(H).forEach(function(at){N.command(Nt.indexOf(at)>=0,'unknown parameter "'+at+'" for attribute pointer "'+K+'" (valid parameters are '+Nt+")",ut)})}),U.buffer=Y,U.state=vs,U.size=ye,U.normalized=we,U.type=pe||Y.dtype,U.offset=J,U.stride=ae,U.divisor=Le}}ne[K]=kr(function(ut,Nt){var at=ut.attribCache;if(Q in at)return at[Q];var yt={isStream:!1};return Object.keys(U).forEach(function(Ct){yt[Ct]=U[Ct]}),U.buffer&&(yt.buffer=ut.link(U.buffer),yt.type=yt.type||yt.buffer+".dtype"),at[Q]=yt,yt})}),Object.keys(ee).forEach(function(K){var H=ee[K];function Q(U,Y){var G=U.invoke(Y,H),J=U.shared,ae=U.constants,ye=J.isBufferArgs,we=J.buffer;N.optional(function(){U.assert(Y,G+"&&(typeof "+G+'==="object"||typeof '+G+'==="function")&&('+ye+"("+G+")||"+we+".getBuffer("+G+")||"+we+".getBuffer("+G+".buffer)||"+ye+"("+G+'.buffer)||("constant" in '+G+"&&(typeof "+G+'.constant==="number"||'+J.isArrayLike+"("+G+".constant))))",'invalid dynamic attribute "'+K+'"')});var pe={isStream:Y.def(!1)},Le=new re;Le.state=vs,Object.keys(Le).forEach(function(yt){pe[yt]=Y.def(""+Le[yt])});var ut=pe.buffer,Nt=pe.type;Y("if(",ye,"(",G,")){",pe.isStream,"=true;",ut,"=",we,".createStream(",ys,",",G,");",Nt,"=",ut,".dtype;","}else{",ut,"=",we,".getBuffer(",G,");","if(",ut,"){",Nt,"=",ut,".dtype;",'}else if("constant" in ',G,"){",pe.state,"=",zv,";","if(typeof "+G+'.constant === "number"){',pe[ds[0]],"=",G,".constant;",ds.slice(1).map(function(yt){return pe[yt]}).join("="),"=0;","}else{",ds.map(function(yt,Ct){return pe[yt]+"="+G+".constant.length>"+Ct+"?"+G+".constant["+Ct+"]:0;"}).join(""),"}}else{","if(",ye,"(",G,".buffer)){",ut,"=",we,".createStream(",ys,",",G,".buffer);","}else{",ut,"=",we,".getBuffer(",G,".buffer);","}",Nt,'="type" in ',G,"?",ae.glTypes,"[",G,".type]:",ut,".dtype;",pe.normalized,"=!!",G,".normalized;");function at(yt){Y(pe[yt],"=",G,".",yt,"|0;")}return at("size"),at("offset"),at("stride"),at("divisor"),Y("}}"),Y.exit("if(",pe.isStream,"){",we,".destroyStream(",ut,");","}"),pe}ne[K]=Cn(H,Q)}),ne}function Gr(j,D){var q=j.static,ee=j.dynamic;if(Ru in q){var ne=q[Ru];return ne!==null&&Pe.getVAO(ne)===null&&(ne=Pe.createVAO(ne)),kr(function(H){return H.link(Pe.getVAO(ne))})}else if(Ru in ee){var K=ee[Ru];return Cn(K,function(H,Q){var U=H.invoke(Q,K);return Q.def(H.shared.vao+".getVAO("+U+")")})}return null}function pr(j){var D=j.static,q=j.dynamic,ee={};return Object.keys(D).forEach(function(ne){var K=D[ne];ee[ne]=kr(function(H,Q){return typeof K=="number"||typeof K=="boolean"?""+K:H.link(K)})}),Object.keys(q).forEach(function(ne){var K=q[ne];ee[ne]=Cn(K,function(H,Q){return H.invoke(Q,K)})}),ee}function Or(j,D,q,ee,ne){var K=j.static,H=j.dynamic;N.optional(function(){var at=[wo,Du,Pu,xo,Eo,Xl,_o,Wl,Lu,Ru].concat(Ae);function yt(Ct){Object.keys(Ct).forEach(function(Jt){N.command(at.indexOf(Jt)>=0,'unknown parameter "'+Jt+'"',ne.commandStr)})}yt(K),yt(H)});var Q=At(j,D),U=nt(j),Y=Rt(j,U,ne),G=Qt(j,ne),J=Nr(j,ne),ae=Pt(j,ne,Q);function ye(at){var yt=Y[at];yt&&(J[at]=yt)}ye(ai),ye(je($l));var we=Object.keys(J).length>0,pe={framebuffer:U,draw:G,shader:ae,state:J,dirty:we,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}};if(pe.profile=It(j),pe.uniforms=$r(q,ne),pe.drawVAO=pe.scopeVAO=Gr(j),!pe.drawVAO&&ae.program&&!Q&&W.angle_instanced_arrays){var Le=!0,ut=ae.program.attributes.map(function(at){var yt=D.static[at];return Le=Le&&!!yt,yt});if(Le&&ut.length>0){var Nt=Pe.getVAO(Pe.createVAO(ut));pe.drawVAO=new En(null,null,null,function(at,yt){return at.link(Nt)}),pe.useVAO=!0}}return Q?pe.useVAO=!0:pe.attributes=zt(D,ne),pe.context=pr(ee),pe}function zr(j,D,q){var ee=j.shared,ne=ee.context,K=j.scope();Object.keys(q).forEach(function(H){D.save(ne,"."+H);var Q=q[H],U=Q.append(j,D);Array.isArray(U)?K(ne,".",H,"=[",U.join(),"];"):K(ne,".",H,"=",U,";")}),D(K)}function jr(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.framebuffer,Q;He&&(Q=D.def(ne.extensions,".webgl_draw_buffers"));var U=j.constants,Y=U.drawBuffer,G=U.backBuffer,J;q?J=q.append(j,D):J=D.def(H,".next"),ee||D("if(",J,"!==",H,".cur){"),D("if(",J,"){",K,".bindFramebuffer(",Yb,",",J,".framebuffer);"),He&&D(Q,".drawBuffersWEBGL(",Y,"[",J,".colorAttachments.length]);"),D("}else{",K,".bindFramebuffer(",Yb,",null);"),He&&D(Q,".drawBuffersWEBGL(",G,");"),D("}",H,".cur=",J,";"),ee||D("}")}function Yr(j,D,q){var ee=j.shared,ne=ee.gl,K=j.current,H=j.next,Q=ee.current,U=ee.next,Y=j.cond(Q,".dirty");Ae.forEach(function(G){var J=je(G);if(!(J in q.state)){var ae,ye;if(J in H){ae=H[J],ye=K[J];var we=rn(Ee[J].length,function(Le){return Y.def(ae,"[",Le,"]")});Y(j.cond(we.map(function(Le,ut){return Le+"!=="+ye+"["+ut+"]"}).join("||")).then(ne,".",Me[J],"(",we,");",we.map(function(Le,ut){return ye+"["+ut+"]="+Le}).join(";"),";"))}else{ae=Y.def(U,".",J);var pe=j.cond(ae,"!==",Q,".",J);Y(pe),J in ze?pe(j.cond(ae).then(ne,".enable(",ze[J],");").else(ne,".disable(",ze[J],");"),Q,".",J,"=",ae,";"):pe(ne,".",Me[J],"(",ae,");",Q,".",J,"=",ae,";")}}}),Object.keys(q.state).length===0&&Y(Q,".dirty=false;"),D(Y)}function an(j,D,q,ee){var ne=j.shared,K=j.current,H=ne.current,Q=ne.gl;Zb(Object.keys(q)).forEach(function(U){var Y=q[U];if(!(ee&&!ee(Y))){var G=Y.append(j,D);if(ze[U]){var J=ze[U];ki(Y)?G?D(Q,".enable(",J,");"):D(Q,".disable(",J,");"):D(j.cond(G).then(Q,".enable(",J,");").else(Q,".disable(",J,");")),D(H,".",U,"=",G,";")}else if(Mr(G)){var ae=K[U];D(Q,".",Me[U],"(",G,");",G.map(function(ye,we){return ae+"["+we+"]="+ye}).join(";"),";")}else D(Q,".",Me[U],"(",G,");",H,".",U,"=",G,";")}})}function Ar(j,D){De&&(j.instancing=D.def(j.shared.extensions,".angle_instanced_arrays"))}function kt(j,D,q,ee,ne){var K=j.shared,H=j.stats,Q=K.current,U=K.timer,Y=q.profile;function G(){return typeof performance>"u"?"Date.now()":"performance.now()"}var J,ae;function ye(at){J=D.def(),at(J,"=",G(),";"),typeof ne=="string"?at(H,".count+=",ne,";"):at(H,".count++;"),Te&&(ee?(ae=D.def(),at(ae,"=",U,".getNumPendingQueries();")):at(U,".beginQuery(",H,");"))}function we(at){at(H,".cpuTime+=",G(),"-",J,";"),Te&&(ee?at(U,".pushScopeStats(",ae,",",U,".getNumPendingQueries(),",H,");"):at(U,".endQuery();"))}function pe(at){var yt=D.def(Q,".profile");D(Q,".profile=",at,";"),D.exit(Q,".profile=",yt,";")}var Le;if(Y){if(ki(Y)){Y.enable?(ye(D),we(D.exit),pe("true")):pe("false");return}Le=Y.append(j,D),pe(Le)}else Le=D.def(Q,".profile");var ut=j.block();ye(ut),D("if(",Le,"){",ut,"}");var Nt=j.block();we(Nt),D.exit("if(",Le,"){",Nt,"}")}function on(j,D,q,ee,ne){var K=j.shared;function H(U){switch(U){case Vl:case Hl:case Ql:return 2;case Yl:case Zl:case Jl:return 3;case ql:case Kl:case ec:return 4;default:return 1}}function Q(U,Y,G){var J=K.gl,ae=D.def(U,".location"),ye=D.def(K.attributes,"[",ae,"]"),we=G.state,pe=G.buffer,Le=[G.x,G.y,G.z,G.w],ut=["buffer","normalized","offset","stride"];function Nt(){D("if(!",ye,".buffer){",J,".enableVertexAttribArray(",ae,");}");var yt=G.type,Ct;if(G.size?Ct=D.def(G.size,"||",Y):Ct=Y,D("if(",ye,".type!==",yt,"||",ye,".size!==",Ct,"||",ut.map(function(xr){return ye+"."+xr+"!=="+G[xr]}).join("||"),"){",J,".bindBuffer(",ys,",",pe,".buffer);",J,".vertexAttribPointer(",[ae,Ct,yt,G.normalized,G.stride,G.offset],");",ye,".type=",yt,";",ye,".size=",Ct,";",ut.map(function(xr){return ye+"."+xr+"="+G[xr]+";"}).join(""),"}"),De){var Jt=G.divisor;D("if(",ye,".divisor!==",Jt,"){",j.instancing,".vertexAttribDivisorANGLE(",[ae,Jt],");",ye,".divisor=",Jt,";}")}}function at(){D("if(",ye,".buffer){",J,".disableVertexAttribArray(",ae,");",ye,".buffer=null;","}if(",ds.map(function(yt,Ct){return ye+"."+yt+"!=="+Le[Ct]}).join("||"),"){",J,".vertexAttrib4f(",ae,",",Le,");",ds.map(function(yt,Ct){return ye+"."+yt+"="+Le[Ct]+";"}).join(""),"}")}we===vs?Nt():we===zv?at():(D("if(",we,"===",vs,"){"),Nt(),D("}else{"),at(),D("}"))}ee.forEach(function(U){var Y=U.name,G=q.attributes[Y],J;if(G){if(!ne(G))return;J=G.append(j,D)}else{if(!ne(Kb))return;var ae=j.scopeAttrib(Y);N.optional(function(){j.assert(D,ae+".state","missing attribute "+Y)}),J={},Object.keys(new re).forEach(function(ye){J[ye]=D.def(ae,".",ye)})}Q(j.link(U),H(U.info.type),J)})}function ir(j,D,q,ee,ne){for(var K=j.shared,H=K.gl,Q,U=0;U1?D(rn(yt,function(_n){return Array.isArray(pe)?pe[_n]:pe+"["+_n+"]"})):(N(!Array.isArray(pe),"uniform value must not be an array"),D(pe));D(");")}}function vt(j,D,q,ee){var ne=j.shared,K=ne.gl,H=ne.draw,Q=ee.draw;function U(){var Ct=Q.elements,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr)):Jt=xr.def(H,".",xo),Jt&&xr("if("+Jt+")"+K+".bindBuffer("+VD+","+Jt+".buffer.buffer);"),Jt}function Y(){var Ct=Q.count,Jt,xr=D;return Ct?((Ct.contextDep&&ee.contextDynamic||Ct.propDep)&&(xr=q),Jt=Ct.append(j,xr),N.optional(function(){Ct.MISSING&&j.assert(D,"false","missing vertex count"),Ct.DYNAMIC&&j.assert(xr,Jt+">=0","missing vertex count")})):(Jt=xr.def(H,".",_o),N.optional(function(){j.assert(xr,Jt+">=0","missing vertex count")})),Jt}var G=U();function J(Ct){var Jt=Q[Ct];return Jt?Jt.contextDep&&ee.contextDynamic||Jt.propDep?Jt.append(j,q):Jt.append(j,D):D.def(H,".",Ct)}var ae=J(Eo),ye=J(Xl),we=Y();if(typeof we=="number"){if(we===0)return}else q("if(",we,"){"),q.exit("}");var pe,Le;De&&(pe=J(Wl),Le=j.instancing);var ut=G+".type",Nt=Q.elements&&ki(Q.elements);function at(){function Ct(){q(Le,".drawElementsInstancedANGLE(",[ae,we,ut,ye+"<<(("+ut+"-"+wb+")>>1)",pe],");")}function Jt(){q(Le,".drawArraysInstancedANGLE(",[ae,ye,we,pe],");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}function yt(){function Ct(){q(K+".drawElements("+[ae,we,ut,ye+"<<(("+ut+"-"+wb+")>>1)"]+");")}function Jt(){q(K+".drawArrays("+[ae,ye,we]+");")}G?Nt?Ct():(q("if(",G,"){"),Ct(),q("}else{"),Jt(),q("}")):Jt()}De&&(typeof pe!="number"||pe>=0)?typeof pe=="string"?(q("if(",pe,">0){"),at(),q("}else if(",pe,"<0){"),yt(),q("}")):at():yt()}function Gt(j,D,q,ee,ne){var K=xt(),H=K.proc("body",ne);return N.optional(function(){K.commandStr=D.commandStr,K.command=K.link(D.commandStr)}),De&&(K.instancing=H.def(K.shared.extensions,".angle_instanced_arrays")),j(K,H,q,ee),K.compile().body}function Vt(j,D,q,ee){Ar(j,D),q.useVAO?q.drawVAO?D(j.shared.vao,".setVAO(",q.drawVAO.append(j,D),");"):D(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(D(j.shared.vao,".setVAO(null);"),on(j,D,q,ee.attributes,function(){return!0})),ir(j,D,q,ee.uniforms,function(){return!0}),vt(j,D,D,q)}function Cr(j,D){var q=j.proc("draw",1);Ar(j,q),zr(j,q,D.context),jr(j,q,D.framebuffer),Yr(j,q,D),an(j,q,D.state),kt(j,q,D,!1,!0);var ee=D.shader.progVar.append(j,q);if(q(j.shared.gl,".useProgram(",ee,".program);"),D.shader.program)Vt(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var ne=j.global.def("{}"),K=q.def(ee,".id"),H=q.def(ne,"[",K,"]");q(j.cond(H).then(H,".call(this,a0);").else(H,"=",ne,"[",K,"]=",j.link(function(Q){return Gt(Vt,j,D,Q,1)}),"(",ee,");",H,".call(this,a0);"))}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function Ia(j,D,q,ee){j.batchId="a1",Ar(j,D);function ne(){return!0}on(j,D,q,ee.attributes,ne),ir(j,D,q,ee.uniforms,ne),vt(j,D,D,q)}function Mo(j,D,q,ee){Ar(j,D);var ne=q.contextDep,K=D.def(),H="a0",Q="a1",U=D.def();j.shared.props=U,j.batchId=K;var Y=j.scope(),G=j.scope();D(Y.entry,"for(",K,"=0;",K,"<",Q,";++",K,"){",U,"=",H,"[",K,"];",G,"}",Y.exit);function J(ut){return ut.contextDep&&ne||ut.propDep}function ae(ut){return!J(ut)}if(q.needsContext&&zr(j,G,q.context),q.needsFramebuffer&&jr(j,G,q.framebuffer),an(j,G,q.state,J),q.profile&&J(q.profile)&&kt(j,G,q,!1,!0),ee)q.useVAO?q.drawVAO?J(q.drawVAO)?G(j.shared.vao,".setVAO(",q.drawVAO.append(j,G),");"):Y(j.shared.vao,".setVAO(",q.drawVAO.append(j,Y),");"):Y(j.shared.vao,".setVAO(",j.shared.vao,".targetVAO);"):(Y(j.shared.vao,".setVAO(null);"),on(j,Y,q,ee.attributes,ae),on(j,G,q,ee.attributes,J)),ir(j,Y,q,ee.uniforms,ae),ir(j,G,q,ee.uniforms,J),vt(j,Y,G,q);else{var ye=j.global.def("{}"),we=q.shader.progVar.append(j,G),pe=G.def(we,".id"),Le=G.def(ye,"[",pe,"]");G(j.shared.gl,".useProgram(",we,".program);","if(!",Le,"){",Le,"=",ye,"[",pe,"]=",j.link(function(ut){return Gt(Ia,j,q,ut,2)}),"(",we,");}",Le,".call(this,a0[",K,"],",K,");")}}function $(j,D){var q=j.proc("batch",2);j.batchId="0",Ar(j,q);var ee=!1,ne=!0;Object.keys(D.context).forEach(function(ye){ee=ee||D.context[ye].propDep}),ee||(zr(j,q,D.context),ne=!1);var K=D.framebuffer,H=!1;K?(K.propDep?ee=H=!0:K.contextDep&&ee&&(H=!0),H||jr(j,q,K)):jr(j,q,null),D.state.viewport&&D.state.viewport.propDep&&(ee=!0);function Q(ye){return ye.contextDep&&ee||ye.propDep}Yr(j,q,D),an(j,q,D.state,function(ye){return!Q(ye)}),(!D.profile||!Q(D.profile))&&kt(j,q,D,!1,"a1"),D.contextDep=ee,D.needsContext=ne,D.needsFramebuffer=H;var U=D.shader.progVar;if(U.contextDep&&ee||U.propDep)Mo(j,q,D,null);else{var Y=U.append(j,q);if(q(j.shared.gl,".useProgram(",Y,".program);"),D.shader.program)Mo(j,q,D,D.shader.program);else{q(j.shared.vao,".setVAO(null);");var G=j.global.def("{}"),J=q.def(Y,".id"),ae=q.def(G,"[",J,"]");q(j.cond(ae).then(ae,".call(this,a0,a1);").else(ae,"=",G,"[",J,"]=",j.link(function(ye){return Gt(Mo,j,D,ye,2)}),"(",Y,");",ae,".call(this,a0,a1);"))}}Object.keys(D.state).length>0&&q(j.shared.current,".dirty=true;")}function fe(j,D){var q=j.proc("scope",3);j.batchId="a2";var ee=j.shared,ne=ee.current;zr(j,q,D.context),D.framebuffer&&D.framebuffer.append(j,q),Zb(Object.keys(D.state)).forEach(function(H){var Q=D.state[H],U=Q.append(j,q);Mr(U)?U.forEach(function(Y,G){q.set(j.next[H],"["+G+"]",Y)}):q.set(ee.next,"."+H,U)}),kt(j,q,D,!0,!0),[xo,Xl,_o,Wl,Eo].forEach(function(H){var Q=D.draw[H];Q&&q.set(ee.draw,"."+H,""+Q.append(j,q))}),Object.keys(D.uniforms).forEach(function(H){var Q=D.uniforms[H].append(j,q);Array.isArray(Q)&&(Q="["+Q.join()+"]"),q.set(ee.uniforms,"["+F.id(H)+"]",Q)}),Object.keys(D.attributes).forEach(function(H){var Q=D.attributes[H].append(j,q),U=j.scopeAttrib(H);Object.keys(new re).forEach(function(Y){q.set(U,"."+Y,Q[Y])})}),D.scopeVAO&&q.set(ee.vao,".targetVAO",D.scopeVAO.append(j,q));function K(H){var Q=D.shader[H];Q&&q.set(ee.shader,"."+H,Q.append(j,q))}K(Du),K(Pu),Object.keys(D.state).length>0&&(q(ne,".dirty=true;"),q.exit(ne,".dirty=true;")),q("a1(",j.shared.context,",a0,",j.batchId,");")}function oe(j){if(!(typeof j!="object"||Mr(j))){for(var D=Object.keys(j),q=0;q=0;--vt){var Gt=xe[vt];Gt&&Gt(Te,null,0)}W.flush(),Pe&&Pe.update()}function Pt(){!Rt&&xe.length>0&&(Rt=or.next(At))}function Qt(){Rt&&(or.cancel(At),Rt=null)}function Nr(vt){vt.preventDefault(),be=!0,Qt(),xt.forEach(function(Gt){Gt()})}function $r(vt){W.getError(),be=!1,se.restore(),Ae.restore(),De.restore(),ze.restore(),Me.restore(),je.restore(),He.restore(),Pe&&Pe.restore(),ct.procs.refresh(),Pt(),It.forEach(function(Gt){Gt()})}Re&&(Re.addEventListener(Jb,Nr,!1),Re.addEventListener(ew,$r,!1));function zt(){xe.length=0,Qt(),Re&&(Re.removeEventListener(Jb,Nr),Re.removeEventListener(ew,$r)),Ae.clear(),je.clear(),Me.clear(),ze.clear(),et.clear(),De.clear(),He.clear(),Pe&&Pe.clear(),nt.forEach(function(vt){vt()})}function Gr(vt){N(!!vt,"invalid args to regl({...})"),N.type(vt,"object","invalid args to regl({...})");function Gt(ne){var K=n({},ne);delete K.uniforms,delete K.attributes,delete K.context,delete K.vao,"stencil"in K&&K.stencil.op&&(K.stencil.opBack=K.stencil.opFront=K.stencil.op,delete K.stencil.op);function H(Q){if(Q in K){var U=K[Q];delete K[Q],Object.keys(U).forEach(function(Y){K[Q+"."+Y]=U[Y]})}}return H("blend"),H("depth"),H("cull"),H("stencil"),H("polygonOffset"),H("scissor"),H("sample"),"vao"in ne&&(K.vao=ne.vao),K}function Vt(ne,K){var H={},Q={};return Object.keys(ne).forEach(function(U){var Y=ne[U];if(fr.isDynamic(Y)){Q[U]=fr.unbox(Y,U);return}else if(K&&Array.isArray(Y)){for(var G=0;G0)return Ft.call(this,q(ne|0),ne|0)}else if(Array.isArray(ne)){if(ne.length)return Ft.call(this,ne,ne.length)}else return rt.call(this,ne)}return n(ee,{stats:fe,destroy:function(){oe.destroy()}})}var pr=je.setFBO=Gr({framebuffer:fr.define.call(null,tw,"framebuffer")});function Or(vt,Gt){var Vt=0;ct.procs.poll();var Cr=Gt.color;Cr&&(W.clearColor(+Cr[0]||0,+Cr[1]||0,+Cr[2]||0,+Cr[3]||0),Vt|=pP),"depth"in Gt&&(W.clearDepth(+Gt.depth),Vt|=gP),"stencil"in Gt&&(W.clearStencil(Gt.stencil|0),Vt|=yP),N(!!Vt,"called regl.clear with no buffer specified"),W.clear(Vt)}function zr(vt){if(N(typeof vt=="object"&&vt,"regl.clear() takes an object as input"),"framebuffer"in vt)if(vt.framebuffer&&vt.framebuffer_reglType==="framebufferCube")for(var Gt=0;Gt<6;++Gt)pr(n({framebuffer:vt.framebuffer.faces[Gt]},vt),Or);else pr(vt,Or);else Or(null,vt)}function jr(vt){N.type(vt,"function","regl.frame() callback must be a function"),xe.push(vt);function Gt(){var Vt=rw(xe,vt);N(Vt>=0,"cannot cancel a frame twice");function Cr(){var Ia=rw(xe,Cr);xe[Ia]=xe[xe.length-1],xe.length-=1,xe.length<=0&&Qt()}xe[Vt]=Cr}return Pt(),{cancel:Gt}}function Yr(){var vt=We.viewport,Gt=We.scissor_box;vt[0]=vt[1]=Gt[0]=Gt[1]=0,Te.viewportWidth=Te.framebufferWidth=Te.drawingBufferWidth=vt[2]=Gt[2]=W.drawingBufferWidth,Te.viewportHeight=Te.framebufferHeight=Te.drawingBufferHeight=vt[3]=Gt[3]=W.drawingBufferHeight}function an(){Te.tick+=1,Te.time=kt(),Yr(),ct.procs.poll()}function Ar(){ze.refresh(),Yr(),ct.procs.refresh(),Pe&&Pe.update()}function kt(){return(gr()-Oe)/1e3}Ar();function on(vt,Gt){N.type(Gt,"function","listener callback must be a function");var Vt;switch(vt){case"frame":return jr(Gt);case"lost":Vt=xt;break;case"restore":Vt=It;break;case"destroy":Vt=nt;break;default:N.raise("invalid event, must be one of frame,lost,restore,destroy")}return Vt.push(Gt),{cancel:function(){for(var Cr=0;Cr=0},read:Mt,destroy:zt,_gl:W,_refresh:Ar,poll:function(){an(),Pe&&Pe.update()},now:kt,stats:Ce});return F.onDone(null,ir),ir}return xP})})(tO);var Vie=tO.exports;const Yie=bi(Vie);var qie=function(){function t(e,r){Ma(this,t),this.attribute=void 0,this.buffer=void 0;var n=r.buffer,a=r.offset,i=r.stride,o=r.normalized,s=r.size,u=r.divisor;this.buffer=n,this.attribute={buffer:n.get(),offset:a||0,stride:i||0,normalized:o||!1,divisor:u||0},s&&(this.attribute.size=s)}return Aa(t,[{key:"get",value:function(){return this.attribute}},{key:"updateBuffer",value:function(r){this.buffer.subData(r)}},{key:"destroy",value:function(){this.buffer.destroy()}}]),t}(),si,tf,ui,Kn,rf,Di,nf,zc,Oa,To,vn,La,Da,jc,Hie=(si={},Ke(si,ke.POINTS,"points"),Ke(si,ke.LINES,"lines"),Ke(si,ke.LINE_LOOP,"line loop"),Ke(si,ke.LINE_STRIP,"line strip"),Ke(si,ke.TRIANGLES,"triangles"),Ke(si,ke.TRIANGLE_FAN,"triangle fan"),Ke(si,ke.TRIANGLE_STRIP,"triangle strip"),si),rO=(tf={},Ke(tf,ke.STATIC_DRAW,"static"),Ke(tf,ke.DYNAMIC_DRAW,"dynamic"),Ke(tf,ke.STREAM_DRAW,"stream"),tf),r1=(ui={},Ke(ui,ke.BYTE,"int8"),Ke(ui,ke.UNSIGNED_INT,"int16"),Ke(ui,ke.INT,"int32"),Ke(ui,ke.UNSIGNED_BYTE,"uint8"),Ke(ui,ke.UNSIGNED_SHORT,"uint16"),Ke(ui,ke.UNSIGNED_INT,"uint32"),Ke(ui,ke.FLOAT,"float"),ui),Zie=(Kn={},Ke(Kn,ke.ALPHA,"alpha"),Ke(Kn,ke.LUMINANCE,"luminance"),Ke(Kn,ke.LUMINANCE_ALPHA,"luminance alpha"),Ke(Kn,ke.RGB,"rgb"),Ke(Kn,ke.RGBA,"rgba"),Ke(Kn,ke.RGBA4,"rgba4"),Ke(Kn,ke.RGB5_A1,"rgb5 a1"),Ke(Kn,ke.RGB565,"rgb565"),Ke(Kn,ke.DEPTH_COMPONENT,"depth"),Ke(Kn,ke.DEPTH_STENCIL,"depth stencil"),Kn),Kie=(rf={},Ke(rf,ke.DONT_CARE,"dont care"),Ke(rf,ke.NICEST,"nice"),Ke(rf,ke.FASTEST,"fast"),rf),x2=(Di={},Ke(Di,ke.NEAREST,"nearest"),Ke(Di,ke.LINEAR,"linear"),Ke(Di,ke.LINEAR_MIPMAP_LINEAR,"mipmap"),Ke(Di,ke.NEAREST_MIPMAP_LINEAR,"nearest mipmap linear"),Ke(Di,ke.LINEAR_MIPMAP_NEAREST,"linear mipmap nearest"),Ke(Di,ke.NEAREST_MIPMAP_NEAREST,"nearest mipmap nearest"),Di),E2=(nf={},Ke(nf,ke.REPEAT,"repeat"),Ke(nf,ke.CLAMP_TO_EDGE,"clamp"),Ke(nf,ke.MIRRORED_REPEAT,"mirror"),nf),Qie=(zc={},Ke(zc,ke.NONE,"none"),Ke(zc,ke.BROWSER_DEFAULT_WEBGL,"browser"),zc),Jie=(Oa={},Ke(Oa,ke.NEVER,"never"),Ke(Oa,ke.ALWAYS,"always"),Ke(Oa,ke.LESS,"less"),Ke(Oa,ke.LEQUAL,"lequal"),Ke(Oa,ke.GREATER,"greater"),Ke(Oa,ke.GEQUAL,"gequal"),Ke(Oa,ke.EQUAL,"equal"),Ke(Oa,ke.NOTEQUAL,"notequal"),Oa),_2=(To={},Ke(To,ke.FUNC_ADD,"add"),Ke(To,ke.MIN_EXT,"min"),Ke(To,ke.MAX_EXT,"max"),Ke(To,ke.FUNC_SUBTRACT,"subtract"),Ke(To,ke.FUNC_REVERSE_SUBTRACT,"reverse subtract"),To),Uc=(vn={},Ke(vn,ke.ZERO,"zero"),Ke(vn,ke.ONE,"one"),Ke(vn,ke.SRC_COLOR,"src color"),Ke(vn,ke.ONE_MINUS_SRC_COLOR,"one minus src color"),Ke(vn,ke.SRC_ALPHA,"src alpha"),Ke(vn,ke.ONE_MINUS_SRC_ALPHA,"one minus src alpha"),Ke(vn,ke.DST_COLOR,"dst color"),Ke(vn,ke.ONE_MINUS_DST_COLOR,"one minus dst color"),Ke(vn,ke.DST_ALPHA,"dst alpha"),Ke(vn,ke.ONE_MINUS_DST_ALPHA,"one minus dst alpha"),Ke(vn,ke.CONSTANT_COLOR,"constant color"),Ke(vn,ke.ONE_MINUS_CONSTANT_COLOR,"one minus constant color"),Ke(vn,ke.CONSTANT_ALPHA,"constant alpha"),Ke(vn,ke.ONE_MINUS_CONSTANT_ALPHA,"one minus constant alpha"),Ke(vn,ke.SRC_ALPHA_SATURATE,"src alpha saturate"),vn),eoe=(La={},Ke(La,ke.NEVER,"never"),Ke(La,ke.ALWAYS,"always"),Ke(La,ke.LESS,"less"),Ke(La,ke.LEQUAL,"lequal"),Ke(La,ke.GREATER,"greater"),Ke(La,ke.GEQUAL,"gequal"),Ke(La,ke.EQUAL,"equal"),Ke(La,ke.NOTEQUAL,"notequal"),La),As=(Da={},Ke(Da,ke.ZERO,"zero"),Ke(Da,ke.KEEP,"keep"),Ke(Da,ke.REPLACE,"replace"),Ke(Da,ke.INVERT,"invert"),Ke(Da,ke.INCR,"increment"),Ke(Da,ke.DECR,"decrement"),Ke(Da,ke.INCR_WRAP,"increment wrap"),Ke(Da,ke.DECR_WRAP,"decrement wrap"),Da),toe=(jc={},Ke(jc,ke.FRONT,"front"),Ke(jc,ke.BACK,"back"),jc),roe=function(){function t(e,r){Ma(this,t),this.buffer=void 0;var n=r.data,a=r.usage,i=r.type;this.buffer=e.buffer({data:n,usage:rO[a||ke.STATIC_DRAW],type:r1[i||ke.UNSIGNED_BYTE]})}return Aa(t,[{key:"get",value:function(){return this.buffer}},{key:"destroy",value:function(){}},{key:"subData",value:function(r){var n=r.data,a=r.offset;this.buffer.subdata(n,a)}}]),t}();function jg(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r16)throw new Error("invalid data type ".concat(c));a[l]=function(){return f.data}}});var i=this.getOuputDataTexture(),o=i.textureWidth,s=i.texelCount;a.u_OutputTextureSize=[o,o],a.u_OutputTexelCount=s,this.context.output.textureSize=[o,o];var u={attributes:{a_Position:[[-1,1,0],[-1,-1,0],[1,1,0],[1,-1,0]],a_TexCoord:[[0,1],[0,0],[1,1],[1,0]]},frag:`#ifdef GL_FRAGMENT_PRECISION_HIGH + precision highp float; +#else + precision mediump float; +#endif +`.concat(this.context.shader),uniforms:a,vert:uoe,primitive:"triangle strip",count:4};this.computeCommand=this.reGl(u)}return Aa(t,[{key:"run",value:function(){var r=this;this.context.maxIteration>1&&this.context.needPingpong&&(this.compiledPingpong=!0),(this.compiledPingpong||this.dynamicPingpong)&&this.swap(),this.texFBO=this.reGl.framebuffer({color:this.getOuputDataTexture().texture}),this.texFBO.use(function(){r.computeCommand()})}},{key:"readData",value:function(){var e=Xi(mn.mark(function n(){var a=this,i,o,s,u,f,l,c,h;return mn.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:if(this.reGl({framebuffer:this.texFBO})(function(){i=a.reGl.read()}),!i){v.next=6;break}if(o=this.getOuputDataTexture(),s=o.originalDataLength,u=o.elementsPerTexel,f=o.typedArrayConstructor,l=f===void 0?Float32Array:f,c=[],u!==4)for(h=0;h0&&arguments[0]!==void 0?arguments[0]:{},n=new t;return n.setConfig(r),n.setEngine(new koe),n}}]),t}();const Ooe=Object.freeze(Object.defineProperty({__proto__:null,Kernel:eO,World:Noe},Symbol.toStringTag,{value:"Module"})),aO=Ka(Ooe);var jn={};Object.defineProperty(jn,"__esModule",{value:!0});jn.arrayToTextureData=jn.attributesToTextureData=jn.buildTextureDataWithTwoEdgeAttr=jn.buildTextureData=jn.proccessToFunc=void 0;var Loe=Ir(),hd=Gd,Doe=function(t,e){var r;return t?(0,Loe.isNumber)(t)?r=function(){return t}:r=t:r=function(){return e||1},r};jn.proccessToFunc=Doe;var Poe=function(t,e){var r=[],n=[],a={},i=0;for(i=0;i 0.0) { + dx += param * xDist; + dy += param * yDist; + if (xDist == 0 && yDist == 0) { + const sign = i < j ? 1 : -1; + dx += param * sign; + dy += param * sign; + } + } + } + } + return [dx, dy]; + } + calcGravity(currentNode: vec4, nodeAttributes: vec4): vec2 { // + let dx = 0, dy = 0; + const vx = currentNode[0] - this.u_Center[0]; + const vy = currentNode[1] - this.u_Center[1]; + const gf = 0.01 * this.u_K * this.u_Gravity; + dx = gf * vx; + dy = gf * vy; + if (this.u_Clustering == 1) { + const clusterIdx = int(nodeAttributes[0]); + const center = this.u_ClusterCenters[clusterIdx]; + const cvx = currentNode[0] - center[0]; + const cvy = currentNode[1] - center[1]; + const dist = sqrt(cvx * cvx + cvy * cvy) + 0.01; + const parma = this.u_K * this.u_ClusterGravity / dist; + dx += parma * cvx; + dy += parma * cvy; + } + return [dx, dy]; + } + calcAttractive(i: int, currentNode: vec4): vec2 { + let dx = 0, dy = 0; + const arr_offset = int(floor(currentNode[2] + 0.5)); + const length = int(floor(currentNode[3] + 0.5)); + const node_buffer: vec4; + for (let p = 0; p < MAX_EDGE_PER_VERTEX; p++) { + if (p >= length) break; + const arr_idx = arr_offset + p; + // when arr_idx % 4 == 0 update currentNodedx_buffer + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; + } + const float_j = buf_offset == 0 ? node_buffer[0] : + buf_offset == 1 ? node_buffer[1] : + buf_offset == 2 ? node_buffer[2] : + node_buffer[3]; + const nextNode = this.u_Data[int(float_j)]; + const xDist = currentNode[0] - nextNode[0]; + const yDist = currentNode[1] - nextNode[1]; + const dist = sqrt(xDist * xDist + yDist * yDist) + 0.01; + let attractiveF = dist / this.u_K; + + if (dist > 0.0) { + dx -= xDist * attractiveF; + dy -= yDist * attractiveF; + if (xDist == 0 && yDist == 0) { + const sign = i < int(float_j) ? 1 : -1; + dx -= sign * attractiveF; + dy -= sign * attractiveF; + } + } + } + return [dx, dy]; + } + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + let dx = 0, dy = 0; + if (i >= VERTEX_COUNT) { + this.u_Data[i] = currentNode; + return; + } + + // [gravity, fx, fy, 0] + const nodeAttributes = this.u_AttributeArray[i]; + + if (nodeAttributes[1] != 0 && nodeAttributes[2] != 0) { + // the node is fixed + this.u_Data[i] = [ + nodeAttributes[1], + nodeAttributes[2], + currentNode[2], + currentNode[3] + ]; + return; + } + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + dx += repulsive[0]; + dy += repulsive[1]; + // attractive + const attractive = this.calcAttractive(i, currentNode); + dx += attractive[0]; + dy += attractive[1]; + // gravity + const gravity = this.calcGravity(currentNode, nodeAttributes); + dx -= gravity[0]; + dy -= gravity[1]; + // speed + dx *= this.u_Speed; + dy *= this.u_Speed; + + // move + const distLength = sqrt(dx * dx + dy * dy); + if (distLength > 0.0) { + const limitedDist = min(this.u_MaxDisplace * this.u_Speed, distLength); + this.u_Data[i] = [ + currentNode[0] + dx / distLength * limitedDist, + currentNode[1] + dy / distLength * limitedDist, + currentNode[2], + currentNode[3] + ]; + } + } +} +`;Xa.fruchtermanBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_K;\\nuniform float u_K2;\\nuniform vec2 u_Center;\\nuniform float u_Gravity;\\nuniform float u_ClusterGravity;\\nuniform float u_Speed;\\nuniform float u_MaxDisplace;\\nuniform float u_Clustering;\\nuniform sampler2D u_AttributeArray;\\nuniform vec2 u_AttributeArraySize;\\nvec4 getDatau_AttributeArray(vec2 address2D) {\\n return vec4(texture2D(u_AttributeArray, address2D).rgba);\\n}\\nvec4 getDatau_AttributeArray(float address1D) {\\n return getDatau_AttributeArray(addrTranslation_1Dto2D(address1D, u_AttributeArraySize));\\n}\\nvec4 getDatau_AttributeArray(int address1D) {\\n return getDatau_AttributeArray(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = ((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat param = u_K2 / dist;\\nif (dist > 0.0) {dx += param * xDist;\\ndy += param * yDist;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < j) ? (1.0) : (-1.0);\\ndx += param * sign;\\ndy += param * sign;}}}}\\nreturn vec2(dx, dy);}\\nvec2 calcGravity(vec4 currentNode, vec4 nodeAttributes) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nfloat vx = currentNode.x - u_Center.x;\\nfloat vy = currentNode.y - u_Center.y;\\nfloat gf = (0.01 * u_K) * u_Gravity;\\ndx = gf * vx;\\ndy = gf * vy;\\nif (u_Clustering == 1.0) {int clusterIdx = int(nodeAttributes.x);\\nvec4 center = getDatau_ClusterCenters(clusterIdx);\\nfloat cvx = currentNode.x - center.x;\\nfloat cvy = currentNode.y - center.y;\\nfloat dist = sqrt((cvx * cvx) + (cvy * cvy)) + 0.01;\\nfloat parma = (u_K * u_ClusterGravity) / dist;\\ndx += parma * cvx;\\ndy += parma * cvy;}\\nreturn vec2(dx, dy);}\\nvec2 calcAttractive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nint arr_offset = int(floor(currentNode.z + 0.5));\\nint length = int(floor(currentNode.w + 0.5));\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + int(p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = (buf_offset == 0) ? (node_buffer.x) : ((buf_offset == 1) ? (node_buffer.y) : ((buf_offset == 2) ? (node_buffer.z) : (node_buffer.w)));\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat xDist = currentNode.x - nextNode.x;\\nfloat yDist = currentNode.y - nextNode.y;\\nfloat dist = sqrt((xDist * xDist) + (yDist * yDist)) + 0.01;\\nfloat attractiveF = dist / u_K;\\nif (dist > 0.0) {dx -= xDist * attractiveF;\\ndy -= yDist * attractiveF;\\nif ((xDist == 0.0) && (yDist == 0.0)) {float sign = (i < int(float_j)) ? (1.0) : (-1.0);\\ndx -= sign * attractiveF;\\ndy -= sign * attractiveF;}}}\\nreturn vec2(dx, dy);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nfloat dx = 0.0;\\nfloat dy = 0.0;\\nif (i >= VERTEX_COUNT) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes = getDatau_AttributeArray(i);\\nif ((nodeAttributes.y != 0.0) && (nodeAttributes.z != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes.y, nodeAttributes.z, currentNode.z, currentNode.w));\\nreturn ;}\\nvec2 repulsive = calcRepulsive(i, currentNode);\\ndx += repulsive.x;\\ndy += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode);\\ndx += attractive.x;\\ndy += attractive.y;\\nvec2 gravity = calcGravity(currentNode, nodeAttributes);\\ndx -= gravity.x;\\ndy -= gravity.y;\\ndx *= u_Speed;\\ndy *= u_Speed;\\nfloat distLength = sqrt((dx * dx) + (dy * dy));\\nif (distLength > 0.0) {float limitedDist = min(u_MaxDisplace * u_Speed, distLength);\\ngl_FragColor = vec4(vec4(currentNode.x + ((dx / distLength) * limitedDist), currentNode.y + ((dy / distLength) * limitedDist), currentNode.z, currentNode.w));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_K","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_K2","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Center","type":"vec2","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Gravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterGravity","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Speed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_MaxDisplace","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_Clustering","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AttributeArray","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Xa.clusterCode=` +import { globalInvocationID } from 'g-webgpu'; +const VERTEX_COUNT; +const CLUSTER_COUNT; +@numthreads(1, 1, 1) +class CalcCenter { + @in + u_Data: vec4[]; + @in + u_NodeAttributes: vec4[]; // [[clusterIdx, 0, 0, 0], ...] + @in @out + u_ClusterCenters: vec4[]; // [[cx, cy, nodeCount, clusterIdx], ...] + @main + compute() { + const i = globalInvocationID.x; + const center = this.u_ClusterCenters[i]; + let sumx = 0; + let sumy = 0; + let count = 0; + for (let j = 0; j < VERTEX_COUNT; j++) { + const attributes = this.u_NodeAttributes[j]; + const clusterIdx = int(attributes[0]); + const vertex = this.u_Data[j]; + if (clusterIdx == i) { + sumx += vertex.x; + sumy += vertex.y; + count += 1; + } + } + this.u_ClusterCenters[i] = [ + sumx / count, + sumy / count, + count, + i + ]; + } +} +`;Xa.clusterBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define CLUSTER_COUNT __DefineValuePlaceholder__CLUSTER_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributes;\\nuniform vec2 u_NodeAttributesSize;\\nvec4 getDatau_NodeAttributes(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributes, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributes(float address1D) {\\n return getDatau_NodeAttributes(addrTranslation_1Dto2D(address1D, u_NodeAttributesSize));\\n}\\nvec4 getDatau_NodeAttributes(int address1D) {\\n return getDatau_NodeAttributes(float(address1D));\\n}\\nuniform sampler2D u_ClusterCenters;\\nuniform vec2 u_ClusterCentersSize;\\nvec4 getDatau_ClusterCenters(vec2 address2D) {\\n return vec4(texture2D(u_ClusterCenters, address2D).rgba);\\n}\\nvec4 getDatau_ClusterCenters(float address1D) {\\n return getDatau_ClusterCenters(addrTranslation_1Dto2D(address1D, u_ClusterCentersSize));\\n}\\nvec4 getDatau_ClusterCenters(int address1D) {\\n return getDatau_ClusterCenters(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 center = getDatau_ClusterCenters(i);\\nfloat sumx = 0.0;\\nfloat sumy = 0.0;\\nfloat count = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 attributes = getDatau_NodeAttributes(j);\\nint clusterIdx = int(attributes.x);\\nvec4 vertex = getDatau_Data(j);\\nif (clusterIdx == i) {sumx += vertex.x;\\nsumy += vertex.y;\\ncount += 1.0;}}\\ngl_FragColor = vec4(vec4(sumx / count, sumy / count, count, i));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"CLUSTER_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributes","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_ClusterCenters","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_ClusterCenters","size":[1,1],"length":1},"needPingpong":true}}';var Goe=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),$c=me&&me.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(t,e||[])).next())})},Xc=me&&me.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]= length) break; + const arr_idx = arr_offset + 4 * p; // i 节点的第 p 条边开始的小格子位置 + const buf_offset = arr_idx - arr_idx / 4 * 4; + if (p == 0 || buf_offset == 0) { + node_buffer = this.u_Data[int(arr_idx / 4)]; // 大格子,大格子位置=小个子位置 / 4, + } + + let float_j: float = node_buffer[0]; + + const nextNode = this.u_Data[int(float_j)]; + const vx = nextNode[0] - currentNode[0]; + const vy = nextNode[1] - currentNode[1]; + const dist = sqrt(vx * vx + vy * vy) + 0.01; + const direx = vx / dist; + const direy = vy / dist; + const edgeLength = node_buffer[1]; + const edgeStrength = node_buffer[2]; + const diff: float = edgeLength - dist;//edgeLength + // const param = diff * this.u_stiffness / mass; // + const param = diff * edgeStrength / mass; // + ax -= direx * param; + ay -= direy * param; + } + return [ax, ay]; + } + + @main + compute() { + const i = globalInvocationID.x; + const currentNode = this.u_Data[i]; + const movement = u_AveMovement[0]; + let ax = 0, ay = 0; + + if (i >= VERTEX_COUNT || movement.x < u_minMovement) { + this.u_Data[i] = currentNode; + return; + } + + // 每个节点属性占两个数组中各一格 + // [mass, degree, nodeStrength, fx] + const nodeAttributes1 = this.u_NodeAttributeArray1[i]; + // [centerX, centerY, centerGravity, fy] + const nodeAttributes2 = this.u_NodeAttributeArray2[i]; + + // repulsive + const repulsive = this.calcRepulsive(i, currentNode); + ax += repulsive[0]; + ay += repulsive[1]; + + // attractive + const attractive = this.calcAttractive(i, currentNode, nodeAttributes1); + ax += attractive[0]; + ay += attractive[1]; + + // gravity + const gravity = this.calcGravity(i, currentNode, nodeAttributes2); + ax -= gravity[0]; + ay -= gravity[1]; + + // speed + const param = this.u_interval * this.u_damping; + let vx = ax * param; + let vy = ay * param; + const vlength = sqrt(vx * vx + vy * vy) + 0.0001; + if (vlength > this.u_maxSpeed) { + const param2 = this.u_maxSpeed / vlength; + vx = param2 * vx; + vy = param2 * vy; + } + + // move + if (nodeAttributes1[3] != 0 && nodeAttributes2[3] != 0) { + this.u_Data[i] = [ + nodeAttributes1[3], + nodeAttributes2[3], + currentNode[2], + 0 + ]; + } else { + const distx = vx * this.u_interval; + const disty = vy * this.u_interval; + const distLength = sqrt(distx * distx + disty * disty); + this.u_Data[i] = [ + currentNode[0] + distx, + currentNode[1] + disty, + currentNode[2], + distLength + ]; + } + + // the avarage move distance + // need to share memory + + } +} +`;Wa.gForceBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define MAX_EDGE_PER_VERTEX __DefineValuePlaceholder__MAX_EDGE_PER_VERTEX\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n#define SHIFT_20 1048576.0\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_damping;\\nuniform float u_maxSpeed;\\nuniform float u_minMovement;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nuniform float u_coulombDisScale;\\nuniform float u_factor;\\nuniform sampler2D u_NodeAttributeArray1;\\nuniform vec2 u_NodeAttributeArray1Size;\\nvec4 getDatau_NodeAttributeArray1(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray1, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray1(float address1D) {\\n return getDatau_NodeAttributeArray1(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray1Size));\\n}\\nvec4 getDatau_NodeAttributeArray1(int address1D) {\\n return getDatau_NodeAttributeArray1(float(address1D));\\n}\\nuniform sampler2D u_NodeAttributeArray2;\\nuniform vec2 u_NodeAttributeArray2Size;\\nvec4 getDatau_NodeAttributeArray2(vec2 address2D) {\\n return vec4(texture2D(u_NodeAttributeArray2, address2D).rgba);\\n}\\nvec4 getDatau_NodeAttributeArray2(float address1D) {\\n return getDatau_NodeAttributeArray2(addrTranslation_1Dto2D(address1D, u_NodeAttributeArray2Size));\\n}\\nvec4 getDatau_NodeAttributeArray2(int address1D) {\\n return getDatau_NodeAttributeArray2(float(address1D));\\n}\\nuniform float u_interval;\\nivec2 unpack_float(float packedValue) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint packedIntValue = int(packedValue);\\nint v0 = packedIntValue / int(SHIFT_20);\\nreturn ivec2(v0, packedIntValue - (v0 * int(SHIFT_20)));}\\nvec2 calcRepulsive(int i, vec4 currentNode) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {if (i != j) {vec4 nextNode = getDatau_Data(j);\\nfloat vx = currentNode.x - nextNode.x;\\nfloat vy = currentNode.y - nextNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat n_dist = (dist + 0.1) * u_coulombDisScale;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nvec4 attributesi = getDatau_NodeAttributeArray1(i);\\nvec4 attributesj = getDatau_NodeAttributeArray1(j);\\nfloat massi = attributesi.x;\\nfloat nodeStrengthi = attributesi.z;\\nfloat nodeStrengthj = attributesj.z;\\nfloat nodeStrength = (nodeStrengthi + nodeStrengthj) / 2.0;\\nfloat param = (nodeStrength * u_factor) / (n_dist * n_dist);\\nax += direx * param;\\nay += direy * param;}}\\nreturn vec2(ax, ay);}\\nvec2 calcGravity(int i, vec4 currentNode, vec4 attributes2) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat vx = currentNode.x - attributes2.x;\\nfloat vy = currentNode.y - attributes2.y;\\nfloat ax = vx * attributes2.z;\\nfloat ay = vy * attributes2.z;\\nreturn vec2(ax, ay);}\\nvec2 calcAttractive(int i, vec4 currentNode, vec4 attributes1) {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat mass = attributes1.x;\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nivec2 compressed = unpack_float(currentNode.z);\\nint length = compressed.x;\\nint arr_offset = compressed.y;\\nvec4 node_buffer;\\nfor (int p = 0; p < MAX_EDGE_PER_VERTEX; p++) {if (p >= length) {break;}\\nint arr_idx = arr_offset + (4 * p);\\nint buf_offset = arr_idx - ((arr_idx / 4) * 4);\\nif ((p == 0) || (buf_offset == 0)) {node_buffer = getDatau_Data(int(arr_idx / 4));}\\nfloat float_j = node_buffer.x;\\nvec4 nextNode = getDatau_Data(int(float_j));\\nfloat vx = nextNode.x - currentNode.x;\\nfloat vy = nextNode.y - currentNode.y;\\nfloat dist = sqrt((vx * vx) + (vy * vy)) + 0.01;\\nfloat direx = vx / dist;\\nfloat direy = vy / dist;\\nfloat edgeLength = node_buffer.y;\\nfloat edgeStrength = node_buffer.z;\\nfloat diff = edgeLength - dist;\\nfloat param = (diff * edgeStrength) / mass;\\nax -= direx * param;\\nay -= direy * param;}\\nreturn vec2(ax, ay);}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nint i = globalInvocationID.x;\\nvec4 currentNode = getDatau_Data(i);\\nvec4 movement = getDatau_AveMovement(0.0);\\nfloat ax = 0.0;\\nfloat ay = 0.0;\\nif ((i >= VERTEX_COUNT) || (movement.x < u_minMovement)) {gl_FragColor = vec4(currentNode);\\nreturn ;}\\nvec4 nodeAttributes1 = getDatau_NodeAttributeArray1(i);\\nvec4 nodeAttributes2 = getDatau_NodeAttributeArray2(i);\\nvec2 repulsive = calcRepulsive(i, currentNode);\\nax += repulsive.x;\\nay += repulsive.y;\\nvec2 attractive = calcAttractive(i, currentNode, nodeAttributes1);\\nax += attractive.x;\\nay += attractive.y;\\nvec2 gravity = calcGravity(i, currentNode, nodeAttributes2);\\nax -= gravity.x;\\nay -= gravity.y;\\nfloat param = u_interval * u_damping;\\nfloat vx = ax * param;\\nfloat vy = ay * param;\\nfloat vlength = sqrt((vx * vx) + (vy * vy)) + 0.0001;\\nif (vlength > u_maxSpeed) {float param2 = u_maxSpeed / vlength;\\nvx = param2 * vx;\\nvy = param2 * vy;}\\nif ((nodeAttributes1.w != 0.0) && (nodeAttributes2.w != 0.0)) {gl_FragColor = vec4(vec4(nodeAttributes1.w, nodeAttributes2.w, currentNode.z, 0.0));}else {float distx = vx * u_interval;\\nfloat disty = vy * u_interval;\\nfloat distLength = sqrt((distx * distx) + (disty * disty));\\ngl_FragColor = vec4(vec4(currentNode.x + distx, currentNode.y + disty, currentNode.z, distLength));}if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"MAX_EDGE_PER_VERTEX","type":"Float","runtime":true},{"name":"VERTEX_COUNT","type":"Float","runtime":true},{"name":"SHIFT_20","type":"Float","value":1048576,"runtime":false}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]},{"name":"u_damping","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_maxSpeed","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_minMovement","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_coulombDisScale","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_factor","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray1","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_NodeAttributeArray2","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_interval","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_Data","size":[1,1],"length":1},"needPingpong":true}}';Wa.aveMovementCode=` +const VERTEX_COUNT; +@numthreads(1, 1, 1) +class CalcAveMovement { + @in + u_Data: vec4[]; + @in + u_iter: float; + @in @out + u_AveMovement: vec4[]; + @main + compute() { + let movement = 0; + for (let j: int = 0; j < VERTEX_COUNT; j++) { + const vertex = this.u_Data[j]; + movement += vertex[3]; + } + movement = movement / float(VERTEX_COUNT); + this.u_AveMovement[0] = [movement, 0, 0, 0]; + } +} +`;Wa.aveMovementBundle='{"shaders":{"WGSL":"","GLSL450":"","GLSL100":"\\n\\nfloat epsilon = 0.00001;\\nvec2 addrTranslation_1Dto2D(float address1D, vec2 texSize) {\\n vec2 conv_const = vec2(1.0 / texSize.x, 1.0 / (texSize.x * texSize.y));\\n vec2 normAddr2D = float(address1D) * conv_const;\\n return vec2(fract(normAddr2D.x + epsilon), normAddr2D.y);\\n}\\n\\nvoid barrier() {}\\n \\n\\nuniform vec2 u_OutputTextureSize;\\nuniform int u_OutputTexelCount;\\nvarying vec2 v_TexCoord;\\n\\nbool gWebGPUDebug = false;\\nvec4 gWebGPUDebugOutput = vec4(0.0);\\n\\n#define VERTEX_COUNT __DefineValuePlaceholder__VERTEX_COUNT\\n\\nuniform sampler2D u_Data;\\nuniform vec2 u_DataSize;\\nvec4 getDatau_Data(vec2 address2D) {\\n return vec4(texture2D(u_Data, address2D).rgba);\\n}\\nvec4 getDatau_Data(float address1D) {\\n return getDatau_Data(addrTranslation_1Dto2D(address1D, u_DataSize));\\n}\\nvec4 getDatau_Data(int address1D) {\\n return getDatau_Data(float(address1D));\\n}\\nuniform float u_iter;\\nuniform sampler2D u_AveMovement;\\nuniform vec2 u_AveMovementSize;\\nvec4 getDatau_AveMovement(vec2 address2D) {\\n return vec4(texture2D(u_AveMovement, address2D).rgba);\\n}\\nvec4 getDatau_AveMovement(float address1D) {\\n return getDatau_AveMovement(addrTranslation_1Dto2D(address1D, u_AveMovementSize));\\n}\\nvec4 getDatau_AveMovement(int address1D) {\\n return getDatau_AveMovement(float(address1D));\\n}\\nvoid main() {\\nivec3 workGroupSize = ivec3(1, 1, 1);\\nivec3 numWorkGroups = ivec3(1, 1, 1); \\nint globalInvocationIndex = int(floor(v_TexCoord.x * u_OutputTextureSize.x))\\n + int(floor(v_TexCoord.y * u_OutputTextureSize.y)) * int(u_OutputTextureSize.x);\\nint workGroupIDLength = globalInvocationIndex / (workGroupSize.x * workGroupSize.y * workGroupSize.z);\\nivec3 workGroupID = ivec3(workGroupIDLength / numWorkGroups.y / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.z, workGroupIDLength / numWorkGroups.x / numWorkGroups.y);\\nint localInvocationIDZ = globalInvocationIndex / (workGroupSize.x * workGroupSize.y);\\nint localInvocationIDY = (globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y) / workGroupSize.x;\\nint localInvocationIDX = globalInvocationIndex - localInvocationIDZ * workGroupSize.x * workGroupSize.y - localInvocationIDY * workGroupSize.x;\\nivec3 localInvocationID = ivec3(localInvocationIDX, localInvocationIDY, localInvocationIDZ);\\nivec3 globalInvocationID = workGroupID * workGroupSize + localInvocationID;\\nint localInvocationIndex = localInvocationID.z * workGroupSize.x * workGroupSize.y\\n + localInvocationID.y * workGroupSize.x + localInvocationID.x;\\nfloat movement = 0.0;\\nfor (int j = 0; j < VERTEX_COUNT; j++) {vec4 vertex = getDatau_Data(j);\\nmovement += vertex.w;}\\nmovement = movement / float(VERTEX_COUNT);\\ngl_FragColor = vec4(vec4(movement, 0.0, 0.0, 0.0));if (gWebGPUDebug) {\\n gl_FragColor = gWebGPUDebugOutput;\\n}}\\n"},"context":{"name":"","dispatch":[1,1,1],"threadGroupSize":[1,1,1],"maxIteration":1,"defines":[{"name":"VERTEX_COUNT","type":"Float","runtime":true}],"uniforms":[{"name":"u_Data","type":"vec4[]","storageClass":"StorageBuffer","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_iter","type":"Float","storageClass":"Uniform","readonly":true,"writeonly":false,"size":[1,1]},{"name":"u_AveMovement","type":"vec4[]","storageClass":"StorageBuffer","readonly":false,"writeonly":false,"size":[1,1]}],"globalDeclarations":[],"output":{"name":"u_AveMovement","size":[1,1],"length":1},"needPingpong":true}}';var $oe=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),h0=me&&me.__awaiter||function(t,e,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(l){try{f(n.next(l))}catch(c){o(c)}}function u(l){try{f(n.throw(l))}catch(c){o(c)}}function f(l){l.done?i(l.value):a(l.value).then(s,u)}f((n=n.apply(t,e||[])).next())})},d0=me&&me.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(f){return function(l){return u([f,l])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,f[0]&&(r=0)),r;)try{if(n=1,a&&(i=f[0]&2?a.return:f[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,f[1])).done)return i;switch(a=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,a=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]z.size[1]?z.size[0]:z.size[1];return X/2}if((0,Ut.isObject)(z.size)){var X=z.size.width>z.size.height?z.size.width:z.size.height;return X/2}return z.size/2}return 10};else if((0,Ut.isFunction)(g))m=function(z){return g(z)};else if((0,Ut.isArray)(g)){var w=g[0]>g[1]?g[0]:g[1],x=w/2;m=function(z){return x}}else{var E=g/2;m=function(z){return E}}this.nodeSize=m;var _=r.comboSpacing,S;(0,Ut.isNumber)(_)?S=function(){return _}:(0,Ut.isFunction)(_)?S=_:S=function(){return 0},this.comboSpacing=S;var A=r.comboPadding,M;(0,Ut.isNumber)(A)?M=function(){return A}:(0,Ut.isArray)(A)?M=function(){return Math.max.apply(null,A)}:(0,Ut.isFunction)(A)?M=A:M=function(){return 0},this.comboPadding=M;var C=this.linkDistance,I;C||(C=10),(0,Ut.isNumber)(C)?I=function(z){return C}:I=C,this.linkDistance=I;var k=this.edgeStrength,O;k||(k=1),(0,Ut.isNumber)(k)?O=function(z){return k}:O=k,this.edgeStrength=O;var B=this.nodeStrength,L;B||(B=30),(0,Ut.isNumber)(B)?L=function(z){return B}:L=B,this.nodeStrength=L},e.prototype.initPos=function(r){var n=this,a=n.nodes;a.forEach(function(i,o){var s=i.comboId,u=r[s];s&&u?(i.x=u.cx+100/(o+1),i.y=u.cy+100/(o+1)):(i.x=100/(o+1),i.y=100/(o+1))})},e.prototype.getComboMap=function(){var r=this,n=r.nodeMap,a=r.comboTrees,i=r.oriComboMap,o={};return(a||[]).forEach(function(s){var u=[];(0,Ut.traverseTreeUp)(s,function(f){if(f.itemType==="node"||!i[f.id])return!0;if(o[f.id]===void 0){var l={id:f.id,name:f.id,cx:0,cy:0,count:0,depth:r.oriComboMap[f.id].depth||0,children:[]};o[f.id]=l}var c=f.children;c&&c.forEach(function(v){if(!o[v.id]&&!n[v.id])return!0;u.push(v)});var h=o[f.id];if(h.cx=0,h.cy=0,u.length===0){h.empty=!0;var d=i[f.id];h.cx=d.x,h.cy=d.y}return u.forEach(function(v){if(h.count++,v.itemType!=="node"){var p=o[v.id];(0,Ut.isNumber)(p.cx)&&(h.cx+=p.cx),(0,Ut.isNumber)(p.cy)&&(h.cy+=p.cy);return}var g=n[v.id];g&&((0,Ut.isNumber)(g.x)&&(h.cx+=g.x),(0,Ut.isNumber)(g.y)&&(h.cy+=g.y))}),h.cx/=h.count||1,h.cy/=h.count||1,h.children=u,!0})}),o},e.prototype.applyComboCenterForce=function(r){var n=this,a=n.gravity,i=n.comboGravity||a,o=this.alpha,s=n.comboTrees,u=n.indexMap,f=n.nodeMap,l=n.comboMap;(s||[]).forEach(function(c){(0,Ut.traverseTreeUp)(c,function(h){if(h.itemType==="node")return!0;var d=l[h.id];if(!d)return!0;var v=l[h.id],p=(v.depth+1)/10*.5,g=v.cx,y=v.cy;return v.cx=0,v.cy=0,v.children.forEach(function(m){if(m.itemType!=="node"){var b=l[m.id];b&&(0,Ut.isNumber)(b.cx)&&(v.cx+=b.cx),b&&(0,Ut.isNumber)(b.cy)&&(v.cy+=b.cy);return}var w=f[m.id],x=w.x-g||.005,E=w.y-y||.005,_=Math.sqrt(x*x+E*E),S=u[w.id],A=i*o/_*p;r[S].x-=x*A,r[S].y-=E*A,(0,Ut.isNumber)(w.x)&&(v.cx+=w.x),(0,Ut.isNumber)(w.y)&&(v.cy+=w.y)}),v.cx/=v.count||1,v.cy/=v.count||1,!0})})},e.prototype.applyCalculate=function(r){var n=this,a=n.comboMap,i=n.nodes,o={};i.forEach(function(u,f){i.forEach(function(l,c){if(!(fb&&(h.minX=b),h.minY>w&&(h.minY=w),h.maxX1&&l.forEach(function(c,h){if(c.itemType==="node")return!1;var d=n[c.id];d&&l.forEach(function(v,p){if(h<=p||v.itemType==="node")return!1;var g=n[v.id];if(!g)return!1;var y=d.cx-g.cx||.005,m=d.cy-g.cy||.005,b=y*y+m*m,w=d.r||1,x=g.r||1,E=w+x,_=x*x,S=w*w;if(bo)){var M=n["".concat(p.id,"-").concat(x.id)],C=M.vx,I=M.vy,k=Math.log(Math.abs(x.depth-p.depth)/10)+1||1;k=k<1?1:k,x.comboId!==p.comboId&&(k+=1);var O=k?Math.pow(d,k):1,B=s(x)*u/S*O;if(r[g].x+=C*B,r[g].y+=I*B,g=0;O--)k(O);return{nodes:c,edges:h,combos:d,comboEdges:v}},u.prototype.getInnerGraphs=function(f){var l=this,c=l.comboTrees,h=l.nodeSize,d=l.edges,v=l.comboPadding,p=l.spacing,g={},y=this.innerLayout||new i.ConcentricLayout({type:"concentric",sortBy:"id"});return y.center=[0,0],y.preventOverlap=!0,y.nodeSpacing=p,(c||[]).forEach(function(m){(0,a.traverseTreeUp)(m,function(b){var w,x=(v==null?void 0:v(b))||10;if((0,a.isArray)(x)&&(x=Math.max.apply(Math,x)),!((w=b.children)===null||w===void 0)&&w.length){var _=b.children.map(function(R){if(R.itemType==="combo")return g[R.id];var V=f[R.id]||{};return e(e({},V),R)}),S=_.map(function(R){return R.id}),A={nodes:_,edges:d.filter(function(R){return S.includes(R.source)&&S.includes(R.target)})},M=1/0;_.forEach(function(R){var V;R.size||(R.size=((V=g[R.id])===null||V===void 0?void 0:V.size)||(h==null?void 0:h(R))||[30,30]),(0,a.isNumber)(R.size)&&(R.size=[R.size,R.size]),M>R.size[0]&&(M=R.size[0]),M>R.size[1]&&(M=R.size[1])}),y.layout(A);var C=(0,a.getLayoutBBox)(_),I=C.minX,k=C.minY,O=C.maxX,B=C.maxY,L={x:(O+I)/2,y:(B+k)/2};A.nodes.forEach(function(R){R.x-=L.x,R.y-=L.y});var z=Math.max(O-I,M)+x*2,X=Math.max(B-k,M)+x*2;g[b.id]={id:b.id,nodes:_,size:[z,X]}}else if(b.itemType==="combo"){var E=x?[x*2,x*2]:[30,30];g[b.id]={id:b.id,nodes:[],size:E}}return!0})}),g},u.prototype.initVals=function(){var f=this,l=f.nodeSize,c=f.spacing,h,d;if((0,a.isNumber)(c)?d=function(){return c}:(0,a.isFunction)(c)?d=c:d=function(){return 0},this.spacing=d,!l)h=function(b){var w=d(b);if(b.size){if((0,a.isArray)(b.size)){var x=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(x+w)/2}if((0,a.isObject)(b.size)){var x=b.size.width>b.size.height?b.size.width:b.size.height;return(x+w)/2}return(b.size+w)/2}return 10+w/2};else if((0,a.isFunction)(l))h=function(b){var w=l(b),x=d(b);if((0,a.isArray)(b.size)){var E=b.size[0]>b.size[1]?b.size[0]:b.size[1];return(E+x)/2}return((w||10)+x)/2};else if((0,a.isArray)(l)){var v=l[0]>l[1]?l[0]:l[1],p=v/2;h=function(b){return p+d(b)/2}}else{var g=l/2;h=function(b){return g+d(b)/2}}this.nodeSize=h;var y=f.comboPadding,m;(0,a.isNumber)(y)?m=function(){return y}:(0,a.isArray)(y)?m=function(){return Math.max.apply(null,y)}:(0,a.isFunction)(y)?m=y:m=function(){return 0},this.comboPadding=m},u.prototype.getType=function(){return"comboCombined"},u}(n.Base);return af.ComboCombinedLayout=o,af}var Ml={},n1={};Object.defineProperty(n1,"__esModule",{value:!0});var Koe=function(){function t(e){this.id=e.id||0,this.rx=e.rx,this.ry=e.ry,this.fx=0,this.fy=0,this.mass=e.mass,this.degree=e.degree,this.g=e.g||0}return t.prototype.distanceTo=function(e){var r=this.rx-e.rx,n=this.ry-e.ry;return Math.hypot(r,n)},t.prototype.setPos=function(e,r){this.rx=e,this.ry=r},t.prototype.resetForce=function(){this.fx=0,this.fy=0},t.prototype.addForce=function(e){var r=e.rx-this.rx,n=e.ry-this.ry,a=Math.hypot(r,n);a=a<1e-4?1e-4:a;var i=this.g*(this.degree+1)*(e.degree+1)/a;this.fx+=i*r/a,this.fy+=i*n/a},t.prototype.in=function(e){return e.contains(this.rx,this.ry)},t.prototype.add=function(e){var r=this.mass+e.mass,n=(this.rx*this.mass+e.rx*e.mass)/r,a=(this.ry*this.mass+e.ry*e.mass)/r,i=this.degree+e.degree,o={rx:n,ry:a,mass:r,degree:i};return new t(o)},t}();n1.default=Koe;var a1={};Object.defineProperty(a1,"__esModule",{value:!0});var Qoe=function(){function t(e){this.xmid=e.xmid,this.ymid=e.ymid,this.length=e.length,this.massCenter=e.massCenter||[0,0],this.mass=e.mass||1}return t.prototype.getLength=function(){return this.length},t.prototype.contains=function(e,r){var n=this.length/2;return e<=this.xmid+n&&e>=this.xmid-n&&r<=this.ymid+n&&r>=this.ymid-n},t.prototype.NW=function(){var e=this.xmid-this.length/4,r=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.NE=function(){var e=this.xmid+this.length/4,r=this.ymid+this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.SW=function(){var e=this.xmid-this.length/4,r=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t.prototype.SE=function(){var e=this.xmid+this.length/4,r=this.ymid-this.length/4,n=this.length/2,a={xmid:e,ymid:r,length:n},i=new t(a);return i},t}();a1.default=Qoe;var i1={};Object.defineProperty(i1,"__esModule",{value:!0});var Joe=function(){function t(e){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,e!=null&&(this.quad=e)}return t.prototype.insert=function(e){if(this.body==null){this.body=e;return}this._isExternal()?(this.quad&&(this.NW=new t(this.quad.NW()),this.NE=new t(this.quad.NE()),this.SW=new t(this.quad.SW()),this.SE=new t(this.quad.SE())),this._putBody(this.body),this._putBody(e),this.body=this.body.add(e)):(this.body=this.body.add(e),this._putBody(e))},t.prototype._putBody=function(e){this.quad&&(e.in(this.quad.NW())&&this.NW?this.NW.insert(e):e.in(this.quad.NE())&&this.NE?this.NE.insert(e):e.in(this.quad.SW())&&this.SW?this.SW.insert(e):e.in(this.quad.SE())&&this.SE&&this.SE.insert(e))},t.prototype._isExternal=function(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null},t.prototype.updateForce=function(e){if(!(this.body==null||e===this.body))if(this._isExternal())e.addForce(this.body);else{var r=this.quad?this.quad.getLength():0,n=this.body.distanceTo(e);r/n250&&(r.barnesHut=!0),r.prune===void 0&&u>100&&(r.prune=!0),this.maxIteration===0&&!r.prune?(o=250,u<=200&&u>100?o=1e3:u>200&&(o=1200),this.maxIteration=o):this.maxIteration===0&&i&&(o=100,u<=200&&u>100?o=500:u>200&&(o=950),this.maxIteration=o),r.kr||(r.kr=50,u>100&&u<=500?r.kr=20:u>500&&(r.kr=1)),r.kg||(r.kg=20,u>100&&u<=500?r.kg=10:u>500&&(r.kg=1)),this.nodes=r.updateNodesByForces(s),a()},e.prototype.updateNodesByForces=function(r){for(var n=this,a=n.edges,i=n.maxIteration,o=n.nodes,s=a.filter(function(_){var S=(0,ci.getEdgeTerminal)(_,"source"),A=(0,ci.getEdgeTerminal)(_,"target");return S!==A}),u=o.length,f=s.length,l=[],c={},h={},d=[],v=0;v0;){for(var x=0;xy||!c)?m=this.getOptRepGraForces(m,w,o):m=this.getRepGraForces(g,y,m,p,s,o);var _=this.updatePos(m,b,v,o);f=_.nodes,v=_.sg,g--,u.tick&&u.tick()}return f},e.prototype.getAttrForces=function(r,n,a,i,o,s,u,f){for(var l=this,c=l.nodes,h=l.preventOverlap,d=l.dissuadeHubs,v=l.mode,p=l.prune,g=0;g0&&(_=E,S=E),f[2*i[y.id]]+=_*x[0],f[2*i[b.id]]-=S*x[0],f[2*i[y.id]+1]+=_*x[1],f[2*i[b.id]+1]-=S*x[1]}}return f},e.prototype.getRepGraForces=function(r,n,a,i,o,s){for(var u=this,f=u.nodes,l=u.preventOverlap,c=u.kr,h=u.kg,d=u.center,v=u.prune,p=f.length,g=0;g0&&(w=c*(s[g]+1)*(s[y]+1)/b),a[2*g]-=w*m[0],a[2*y]+=w*m[0],a[2*g+1]-=w*m[1],a[2*y+1]+=w*m[1]}var x=[f[g].x-d[0],f[g].y-d[1]],E=Math.hypot(x[0],x[1]);x[0]=x[0]/E,x[1]=x[1]/E;var _=h*(s[g]+1);a[2*g]-=_*x[0],a[2*g+1]-=_*x[1]}return a},e.prototype.getOptRepGraForces=function(r,n,a){for(var i=this,o=i.nodes,s=i.kg,u=i.center,f=i.prune,l=o.length,c=9e10,h=-9e10,d=9e10,v=-9e10,p=0;p=h&&(h=o[p].x),o[p].x<=c&&(c=o[p].x),o[p].y>=v&&(v=o[p].y),o[p].y<=d&&(d=o[p].y));for(var g=Math.max(h-c,v-d),y={xmid:(h+c)/2,ymid:(v+d)/2,length:g,massCenter:u,mass:l},m=new nse.default(y),b=new ase.default(m),p=0;p1.5*E?1.5*E:a);for(var y=0;yA?A:_;var M=_*r[2*y],C=_*r[2*y+1];s[y].x+=M,s[y].y+=C}return{nodes:s,sg:a}},e}(tse.Base);Ml.ForceAtlas2Layout=ise;var Al={},s1={},u1={},f1={},js=me&&me.__assign||function(){return js=Object.assign||function(t){for(var e,r=1,n=arguments.length;re;n--)for(var a=0;a=e&&(this.additionColumn[a]+=r);for(var n=0;ne;n--)this.cells[a][n+r]=js(js({},this.cells[a][n]),{dx:a,dy:n+r,x:a*this.CELL_W,y:(n+r)*this.CELL_H}),this.cells[a][n]={dx:a,dy:n,x:a*this.CELL_W,y:n*this.CELL_H,occupied:!1,node:null};for(var n=0;n=e&&(this.additionRow[n]+=r);for(var a=0;ai){for(var d=Math.ceil((f.size[0]+a)/i)-1,v=d,p=0;p-1;if(g&&!s.cells[c+p+1][h].node)v--;else break}s.insertColumn(c,v)}if(f.size[1]+a>o){for(var d=Math.ceil((f.size[1]+a)/o)-1,v=d,p=0;p-1;if(g&&!s.cells[c][h+p+1].node)v--;else break}s.insertRow(h,v)}}for(var u=0;uv0?(m=a-l,y=s-i,b=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)),w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):0y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):g<-v0?(m=a-l,y=-(f-n),m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y?(y/Math.sin(g)).toFixed(2):m.toFixed(2))):(m=u-o,Math.abs(p)>(i-n)/2?y=n-f:y=p,m>y?b=w=parseFloat(m?(m/Math.cos(g)).toFixed(2):y.toFixed(2)):b=w=parseFloat(y&&g!==0?(y/Math.sin(g)).toFixed(2):m.toFixed(2)));var x=parseFloat(g.toFixed(2)),E=r;return r&&(E=lsei?e:t,s=a>i?t:e,u=o.x-o.size[0]/2,f=o.y-o.size[1]/2,l=o.x+o.size[0]/2,c=o.y+o.size[1]/2,h=s.x-s.size[0]/2,d=s.y-s.size[1]/2,v=s.x+s.size[0]/2,p=s.y+s.size[1]/2,g=o.x,y=o.y,m=s.x,b=s.y,w=l>=h&&v>=u&&c>=d&&p>=f,x=0,E=0;if(w){E=Math.sqrt(Math.pow(m-g,2)+Math.pow(b-y,2));var _=u>h?u:h,S=f>d?f:d,A=loO||n.y>sO)&&(e+=1e12);for(var a=r+1;a150,d=c<30||c>150,v=l>70&&l<110,p=c>70&&c<110;if(h&&!d||l*c<0){s=!1;break}else if(v&&!p||l*c<0){s=!1;break}else if((f.x-t.x)*(f.x-e.x)<0){s=!1;break}else if((f.y-t.y)*(f.y-e.y)<0){s=!1;break}}return s}function yse(t,e){for(var r=!1,n=1,a=hse*n,i=dse*n,o=[a,-a,0,0],s=[0,0,i,-i],u=0;uD2?(l=d,r=!0):(f.x-=o[c],f.y-=s[c])}}return p0>D2&&(p0*=vse),r?lO(t):0}function P2(t,e){var r=0;(t.x<0||t.y<0||t.x+t.size[0]+20>oO||t.y+t.size[1]+20>sO)&&(r+=1e12);for(var n=0;n0&&(s++,!(s>=o));){var u=yse(t,e);u!==0&&(i=u),a=i-r,r=i,a===0?--n:n=20}return t.forEach(function(f){f.x=f.x-f.size[0]/2,f.y=f.y-f.size[1]/2}),{nodes:t,edges:e}}l1.default=mse;var $g=me&&me.__assign||function(){return $g=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1){var g=$g({},v);delete g.size,o.push(g)}});var s=[];n.forEach(function(v){var p=o.find(function(y){return y.id===v.source}),g=o.find(function(y){return y.id===v.target});p&&g&&s.push(v)});var u=new Sse.DagreLayout({type:"dagre",ranksep:e.nodeMinGap,nodesep:e.nodeMinGap}),f=u.layout({nodes:o,edges:s}).nodes;r.forEach(function(v){var p=(f||[]).find(function(g){return g.id===v.id});v.x=(p==null?void 0:p.x)||a/2,v.y=(p==null?void 0:p.y)||i/2});var l=JSON.parse(JSON.stringify(r)),c=JSON.parse(JSON.stringify(n)),h=Is.forceSimulation().nodes(l).force("link",Is.forceLink(c).id(function(v){return v.id}).distance(function(v){var p=s.find(function(g){return g.source===v.source&&g.target===v.target});return p?30:20})).force("charge",Is.forceManyBody()).force("center",Is.forceCenter(a/2,i/2)).force("x",Is.forceX(a/2)).force("y",Is.forceY(i/2)).alpha(.3).alphaDecay(.08).alphaMin(.001),d=new Promise(function(v){h.on("end",function(){r.forEach(function(x){var E=l.find(function(_){return _.id===x.id});E&&(x.x=E.x,x.y=E.y)});var p=Math.min.apply(Math,r.map(function(x){return x.x})),g=Math.max.apply(Math,r.map(function(x){return x.x})),y=Math.min.apply(Math,r.map(function(x){return x.y})),m=Math.max.apply(Math,r.map(function(x){return x.y})),b=a/(g-p),w=i/(m-y);r.forEach(function(x){x.x!==void 0&&b<1&&(x.x=(x.x-p)*b),x.y!==void 0&&w<1&&(x.y=(x.y-y)*w)}),r.forEach(function(x){x.sizeTemp=x.size,x.size=[10,10]}),(0,_se.default)(r,n),r.forEach(function(x){x.size=x.sizeTemp||[],delete x.sizeTemp}),(0,Ese.default)({nodes:r,edges:n},e),v()})});return d}s1.default=Mse;var Ase=me&&me.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Cse=me&&me.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Al,"__esModule",{value:!0});Al.ERLayout=void 0;var Tse=Rr,Ise=Cse(s1),kse=function(t){Ase(e,t);function e(r){var n=t.call(this)||this;return n.width=300,n.height=300,n.nodeMinGap=50,n.onLayoutEnd=function(){},r&&n.updateCfg(r),n}return e.prototype.getDefaultCfg=function(){return{width:300,height:300,nodeMinGap:50}},e.prototype.execute=function(){var r=this,n=r.nodes,a=r.edges;return n==null||n.forEach(function(i){i.size||(i.size=[50,50])}),(0,Ise.default)({nodes:n,edges:a},{width:this.width,height:this.height,nodeMinGap:this.nodeMinGap}).then(function(){r.onLayoutEnd&&r.onLayoutEnd()})},e.prototype.getType=function(){return"er"},e}(Tse.Base);Al.ERLayout=kse;var Io={},R2;function Nse(){if(R2)return Io;R2=1,Object.defineProperty(Io,"__esModule",{value:!0}),Io.Layouts=Io.Layout=void 0;var t=gi,e=sl,r=ul,n=ll,a=fl,i=rm,o=cl,s=yu,u=Km,f=bl,l=wl,c=xl,h=El,d=_l,v=Sl,p=iO(),g=Ml,y=Al,m=vl,b=Ir(),w=function(){function x(E){var _=(0,t.getLayoutByName)(E.type);this.layoutInstance=new _(E)}return x.prototype.layout=function(E){return this.layoutInstance.layout(E)},x.prototype.updateCfg=function(E){this.layoutInstance.updateCfg(E)},x.prototype.init=function(E){this.correctLayers(E.nodes),this.layoutInstance.init(E)},x.prototype.correctLayers=function(E){if(E!=null&&E.length){var _=1/0,S=[];if(E.forEach(function(M){(0,b.isString)(M.layer)&&(M.layer=parseInt(M.layer,10)),!(M.layer===void 0||isNaN(M.layer))&&(S.push(M),M.layer<_&&(_=M.layer))}),_<=0){var A=Math.abs(_)+1;S.forEach(function(M){return M.layer+=A})}}},x.prototype.execute=function(){this.layoutInstance.execute()},x.prototype.getDefaultCfg=function(){return this.layoutInstance.getDefaultCfg()},x.prototype.destroy=function(){return this.layoutInstance.destroy()},x}();return Io.Layout=w,Io.Layouts={force:i.ForceLayout,fruchterman:c.FruchtermanLayout,forceAtlas2:g.ForceAtlas2Layout,gForce:a.GForceLayout,force2:n.Force2Layout,dagre:s.DagreLayout,dagreCompound:m.DagreCompoundLayout,circular:o.CircularLayout,radial:u.RadialLayout,concentric:f.ConcentricLayout,grid:e.GridLayout,mds:l.MDSLayout,comboForce:v.ComboForceLayout,comboCombined:p.ComboCombinedLayout,random:r.RandomLayout,"gForce-gpu":d.GForceGPULayout,"fruchterman-gpu":h.FruchtermanGPULayout,er:y.ERLayout},Io}var hO={};Object.defineProperty(hO,"__esModule",{value:!0});var F2;function dO(){return F2||(F2=1,function(t){var e=me&&me.__createBinding||(Object.create?function(E,_,S,A){A===void 0&&(A=S);var M=Object.getOwnPropertyDescriptor(_,S);(!M||("get"in M?!_.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return _[S]}}),Object.defineProperty(E,A,M)}:function(E,_,S,A){A===void 0&&(A=S),E[A]=_[S]}),r=me&&me.__exportStar||function(E,_){for(var S in E)S!=="default"&&!Object.prototype.hasOwnProperty.call(_,S)&&e(_,E,S)};Object.defineProperty(t,"__esModule",{value:!0}),t.ERLayout=t.ForceAtlas2Layout=t.ComboCombinedLayout=t.ComboForceLayout=t.GForceGPULayout=t.FruchtermanGPULayout=t.FruchtermanLayout=t.MDSLayout=t.ConcentricLayout=t.RadialLayout=t.DagreCompoundLayout=t.DagreLayout=t.CircularLayout=t.ForceLayout=t.Force2Layout=t.GForceLayout=t.RandomLayout=t.GridLayout=t.Layouts=t.Layout=void 0;var n=sl;Object.defineProperty(t,"GridLayout",{enumerable:!0,get:function(){return n.GridLayout}});var a=ul;Object.defineProperty(t,"RandomLayout",{enumerable:!0,get:function(){return a.RandomLayout}});var i=fl;Object.defineProperty(t,"GForceLayout",{enumerable:!0,get:function(){return i.GForceLayout}});var o=ll;Object.defineProperty(t,"Force2Layout",{enumerable:!0,get:function(){return o.Force2Layout}});var s=rm;Object.defineProperty(t,"ForceLayout",{enumerable:!0,get:function(){return s.ForceLayout}});var u=cl;Object.defineProperty(t,"CircularLayout",{enumerable:!0,get:function(){return u.CircularLayout}});var f=yu;Object.defineProperty(t,"DagreLayout",{enumerable:!0,get:function(){return f.DagreLayout}});var l=vl;Object.defineProperty(t,"DagreCompoundLayout",{enumerable:!0,get:function(){return l.DagreCompoundLayout}});var c=Km;Object.defineProperty(t,"RadialLayout",{enumerable:!0,get:function(){return c.RadialLayout}});var h=bl;Object.defineProperty(t,"ConcentricLayout",{enumerable:!0,get:function(){return h.ConcentricLayout}});var d=wl;Object.defineProperty(t,"MDSLayout",{enumerable:!0,get:function(){return d.MDSLayout}});var v=xl;Object.defineProperty(t,"FruchtermanLayout",{enumerable:!0,get:function(){return v.FruchtermanLayout}});var p=El;Object.defineProperty(t,"FruchtermanGPULayout",{enumerable:!0,get:function(){return p.FruchtermanGPULayout}});var g=_l;Object.defineProperty(t,"GForceGPULayout",{enumerable:!0,get:function(){return g.GForceGPULayout}});var y=Sl;Object.defineProperty(t,"ComboForceLayout",{enumerable:!0,get:function(){return y.ComboForceLayout}});var m=iO();Object.defineProperty(t,"ComboCombinedLayout",{enumerable:!0,get:function(){return m.ComboCombinedLayout}});var b=Ml;Object.defineProperty(t,"ForceAtlas2Layout",{enumerable:!0,get:function(){return b.ForceAtlas2Layout}});var w=Al;Object.defineProperty(t,"ERLayout",{enumerable:!0,get:function(){return w.ERLayout}});var x=Nse();Object.defineProperty(t,"Layout",{enumerable:!0,get:function(){return x.Layout}}),Object.defineProperty(t,"Layouts",{enumerable:!0,get:function(){return x.Layouts}}),r(hO,t)}(Fp)),Fp}(function(t){var e=me&&me.__createBinding||(Object.create?function(a,i,o,s){s===void 0&&(s=o);var u=Object.getOwnPropertyDescriptor(i,o);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(a,s,u)}:function(a,i,o,s){s===void 0&&(s=o),a[s]=i[o]}),r=me&&me.__exportStar||function(a,i){for(var o in a)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&e(i,a,o)};Object.defineProperty(t,"__esModule",{value:!0}),t.getLayoutByName=t.unRegisterLayout=t.registerLayout=void 0;var n=gi;Object.defineProperty(t,"registerLayout",{enumerable:!0,get:function(){return n.registerLayout}}),Object.defineProperty(t,"unRegisterLayout",{enumerable:!0,get:function(){return n.unRegisterLayout}}),Object.defineProperty(t,"getLayoutByName",{enumerable:!0,get:function(){return n.getLayoutByName}}),r(dO(),t)})(Kt);function Ose(t,e,r,n){return n===void 0&&(n="height"),r==="center"?(t[n]+e[n])/2:t.height}var oo={assign:Object.assign,getHeight:Ose},vO=oo,c1=18,Lse=c1*2,B2=c1,Dse={getId:function(e){return e.id||e.name},getPreH:function(e){return e.preH||0},getPreV:function(e){return e.preV||0},getHGap:function(e){return e.hgap||B2},getVGap:function(e){return e.vgap||B2},getChildren:function(e){return e.children},getHeight:function(e){return e.height||Lse},getWidth:function(e){var r=e.label||" ";return e.width||r.split("").length*c1}};function dd(t,e){var r=this;if(r.vgap=r.hgap=0,t instanceof dd)return t;r.data=t;var n=e.getHGap(t),a=e.getVGap(t);return r.preH=e.getPreH(t),r.preV=e.getPreV(t),r.width=e.getWidth(t),r.height=e.getHeight(t),r.width+=r.preH,r.height+=r.preV,r.id=e.getId(t),r.x=r.y=0,r.depth=0,r.children||(r.children=[]),r.addGap(n,a),r}vO.assign(dd.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(e,r){var n=this;n.hgap+=e,n.vgap+=r,n.width+=2*e,n.height+=2*r},eachNode:function(e){for(var r=this,n=[r],a;a=n.shift();)e(a),n=a.children.concat(n)},DFTraverse:function(e){this.eachNode(e)},BFTraverse:function(e){for(var r=this,n=[r],a;a=n.shift();)e(a),n=n.concat(a.children)},getBoundingBox:function(){var e={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(r){e.left=Math.min(e.left,r.x),e.top=Math.min(e.top,r.y),e.width=Math.max(e.width,r.x+r.width),e.height=Math.max(e.height,r.y+r.height)}),e},translate:function(e,r){e===void 0&&(e=0),r===void 0&&(r=0),this.eachNode(function(n){n.x+=e,n.y+=r,n.x+=n.preH,n.y+=n.preV})},right2left:function(){var e=this,r=e.getBoundingBox();e.eachNode(function(n){n.x=n.x-(n.x-r.left)*2-n.width}),e.translate(r.width,0)},bottom2top:function(){var e=this,r=e.getBoundingBox();e.eachNode(function(n){n.y=n.y-(n.y-r.top)*2-n.height}),e.translate(0,r.height)}});function Pse(t,e,r){e===void 0&&(e={}),e=vO.assign({},Dse,e);var n=new dd(t,e),a=[n],i;if(!r&&!t.collapsed){for(;i=a.shift();)if(!i.data.collapsed){var o=e.getChildren(i.data),s=o?o.length:0;if(i.children=new Array(s),o&&s)for(var u=0;uw.low&&(w=w.nxt);var A=E+x.prelim+x.w-(S+_.prelim);A>0&&(S+=A,o(m,b,w.index,A));var M=f(x),C=f(_);M<=C&&(x=u(x),x!==null&&(E+=x.mod)),M>=C&&(_=s(_),_!==null&&(S+=_.mod))}!x&&_?l(m,b,_,S):x&&!_&&c(m,b,x,E)}function o(m,b,w,x){m.c[b].mod+=x,m.c[b].msel+=x,m.c[b].mser+=x,v(m,b,w,x)}function s(m){return m.cs===0?m.tl:m.c[0]}function u(m){return m.cs===0?m.tr:m.c[m.cs-1]}function f(m){return m.y+m.h}function l(m,b,w,x){var E=m.c[0].el;E.tl=w;var _=x-w.mod-m.c[0].msel;E.mod+=_,E.prelim-=_,m.c[0].el=m.c[b].el,m.c[0].msel=m.c[b].msel}function c(m,b,w,x){var E=m.c[b].er;E.tr=w;var _=x-w.mod-m.c[b].mser;E.mod+=_,E.prelim-=_,m.c[b].er=m.c[b-1].er,m.c[b].mser=m.c[b-1].mser}function h(m){m.prelim=(m.c[0].prelim+m.c[0].mod+m.c[m.cs-1].mod+m.c[m.cs-1].prelim+m.c[m.cs-1].w)/2-m.w/2}function d(m,b){b+=m.mod,m.x=m.prelim+b,p(m);for(var w=0;w=w.low;)w=w.nxt;return{low:m,index:b,nxt:w}}bO(t,r);var y=mf.fromNode(t,r);return n(y),d(y,0),mO(y,t,r),Bse(t,r),t},G2=pO,wO=function(t,e){for(var r=G2(t.data,e,!0),n=G2(t.data,e,!0),a=t.children.length,i=Math.round(a/2),o=e.getSide||function(l,c){return c-1},$se=Fi[0],h1=function(t,e,r){var n=e.direction||$se;if(e.isHorizontal=Use(n),Fi.indexOf(n)===-1)throw new TypeError("Invalid direction: "+n);if(n===Fi[0])r(t,e);else if(n===Fi[1])r(t,e),t.right2left();else if(n===Fi[2])r(t,e);else if(n===Fi[3])r(t,e),t.bottom2top();else if(n===Fi[4]||n===Fi[5]){var a=zse(t,e),i=a.left,o=a.right;r(i,e),r(o,e),e.isHorizontal?i.right2left():i.bottom2top(),o.translate(i.x-o.x,i.y-o.y),t.x=i.x,t.y=o.y;var s=t.getBoundingBox();e.isHorizontal?s.top<0&&t.translate(0,-s.top):s.left<0&&t.translate(-s.left,0)}var u=e.fixedRoot;return u===void 0&&(u=!0),u&&t.translate(-(t.x+t.width/2+t.hgap),-(t.y+t.height/2+t.vgap)),Xse(t,e),t};function Xse(t,e){if(e.radial){var r=e.isHorizontal?["x","y"]:["y","x"],n=r[0],a=r[1],i={x:1/0,y:1/0},o={x:-1/0,y:-1/0},s=0;t.DFTraverse(function(l){s++;var c=l.x,h=l.y;i.x=Math.min(i.x,c),i.y=Math.min(i.y,h),o.x=Math.max(o.x,c),o.y=Math.max(o.y,h)});var u=o[a]-i[a];if(u===0)return;var f=Math.PI*2/s;t.DFTraverse(function(l){var c=(l[a]-i[a])/u*(Math.PI*2-f)+f,h=l[n]-t[n];l.x=Math.cos(c)*h,l.y=Math.sin(c)*h})}}function Wse(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Xg(t,e)}function Xg(t,e){return Xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Xg(t,e)}var Vse=hv,Yse=Gse,qse=h1,Hse=oo,Zse=function(t){function e(){return t.apply(this,arguments)||this}Wse(e,t);var r=e.prototype;return r.execute=function(){var a=this;return qse(a.rootNode,a.options,Yse)},e}(Vse),Kse={};function Qse(t,e){return e=Hse.assign({},Kse,e),new Zse(t,e).execute()}var Jse=Qse,eue=oo;function tue(t,e){e===void 0&&(e=[]);var r=this;r.x=r.y=0,r.leftChild=r.rightChild=null,r.height=0,r.children=e}var rue={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function xO(t,e,r){r?(e.x=t.x,e.y=t.y):(e.x=t.y,e.y=t.x),t.children.forEach(function(n,a){xO(n,e.children[a],r)})}var nue=function(t,e){e===void 0&&(e={}),e=eue.assign({},rue,e);var r=0;function n(u){if(!u)return null;u.width=0,u.depth&&u.depth>r&&(r=u.depth);var f=u.children,l=f.length,c=new tue(u.height,[]);return f.forEach(function(h,d){var v=n(h);c.children.push(v),d===0&&(c.leftChild=v),d===l-1&&(c.rightChild=v)}),c.originNode=u,c.isLeaf=u.isLeaf(),c}function a(u){if(u.isLeaf||u.children.length===0)u.drawingDepth=r;else{var f=u.children.map(function(c){return a(c)}),l=Math.min.apply(null,f);u.drawingDepth=l-1}return u.drawingDepth}var i;function o(u){u.x=u.drawingDepth*e.rankSep,u.isLeaf?(u.y=0,i&&(u.y=i.y+i.height+e.nodeSep,u.originNode.parent!==i.originNode.parent&&(u.y+=e.subTreeSep)),i=u):(u.children.forEach(function(f){o(f)}),u.y=(u.leftChild.y+u.rightChild.y)/2)}var s=n(t);return a(s),o(s),xO(s,t,e.isHorizontal),t};function aue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wg(t,e)}function Wg(t,e){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Wg(t,e)}var iue=hv,oue=nue,sue=h1,uue=oo,fue=function(t){function e(){return t.apply(this,arguments)||this}aue(e,t);var r=e.prototype;return r.execute=function(){var a=this;return a.rootNode.width=0,sue(a.rootNode,a.options,oue)},e}(iue),lue={};function cue(t,e){return e=uue.assign({},lue,e),new fue(t,e).execute()}var hue=cue,z2=oo;function due(t,e,r,n,a){var i=(typeof r=="function"?r(t):r)*t.depth;if(!n)try{if(t.id===t.parent.children[0].id){t.x+=i,t.y=e?e.y:0;return}}catch{}if(t.x+=i,e){if(t.y=e.y+z2.getHeight(e,t,a),e.parent&&t.parent.id!==e.parent.id){var o=e.parent,s=o.y+z2.getHeight(o,t,a);t.y=s>t.y?s:t.y}}else t.y=0}var vue=function(t,e,r,n){var a=null;t.eachNode(function(i){due(i,a,e,r,n),a=i})};function pue(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Vg(t,e)}function Vg(t,e){return Vg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Vg(t,e)}var gue=hv,Vc=vue,yue=wO,mue=oo,bf=["LR","RL","H"],bue=bf[0],wue=function(t){function e(){return t.apply(this,arguments)||this}pue(e,t);var r=e.prototype;return r.execute=function(){var a=this,i=a.options,o=a.rootNode;i.isHorizontal=!0;var s=i.indent,u=s===void 0?20:s,f=i.dropCap,l=f===void 0?!0:f,c=i.direction,h=c===void 0?bue:c,d=i.align;if(h&&bf.indexOf(h)===-1)throw new TypeError("Invalid direction: "+h);if(h===bf[0])Vc(o,u,l,d);else if(h===bf[1])Vc(o,u,l,d),o.right2left();else if(h===bf[2]){var v=yue(o,i),p=v.left,g=v.right;Vc(p,u,l,d),p.right2left(),Vc(g,u,l,d);var y=p.getBoundingBox();g.translate(y.width,0),o.x=g.x-o.width/2}return o},e}(gue),xue={};function Eue(t,e){return e=mue.assign({},xue,e),new wue(t,e).execute()}var _ue=Eue,Sue=oo;function EO(t,e){var r=0;return t.children.length?t.children.forEach(function(n){r+=EO(n,e)}):r=t.height,t._subTreeSep=e.getSubTreeSep(t.data),t.totalHeight=Math.max(t.height,r)+2*t._subTreeSep,t.totalHeight}function _O(t){var e=t.children,r=e.length;if(r){e.forEach(function(u){_O(u)});var n=e[0],a=e[r-1],i=a.y-n.y+a.height,o=0;if(e.forEach(function(u){o+=u.totalHeight}),i>t.height)t.y=n.y+i/2-t.height/2;else if(e.length!==1||t.height>o){var s=t.y+(t.height-i)/2-n.y;e.forEach(function(u){u.translate(0,s)})}else t.y=(n.y+n.height/2+a.y+a.height/2)/2-t.height/2}}var Mue={getSubTreeSep:function(){return 0}},Aue=function(t,e){e===void 0&&(e={}),e=Sue.assign({},Mue,e),t.parent={x:0,width:0,height:0,y:0},t.BFTraverse(function(r){r.x=r.parent.x+r.parent.width}),t.parent=null,EO(t,e),t.startY=0,t.y=t.totalHeight/2-t.height/2,t.eachNode(function(r){var n=r.children,a=n.length;if(a){var i=n[0];if(i.startY=r.startY+r._subTreeSep,a===1)i.y=r.y+r.height/2-i.height/2;else{i.y=i.startY+i.totalHeight/2-i.height/2;for(var o=1;o=0&&(s="x",o="y");var u=0;U2(e,function(c){return u++,c.x>i.x&&(i.x=c.x),c.xi.y&&(i.y=c.y),c.y"u"||typeof document>"u"?{}:{canvas:!!window.CanvasRenderingContext2D,webgl:function(){try{var e=document.createElement("canvas");return!!(window.WebGLRenderingContext&&(e.getContext("webgl")||e.getContext("experimental-webgl")))}catch{return!1}}(),workers:!!window.Worker,fileapi:window.File&&window.FileReader&&window.FileList&&window.Blob,getWebGLErrorMessage:function(){var r=document.createElement("div");return r.id="webgl-error-message",r.style.fontFamily="monospace",r.style.fontSize="13px",r.style.fontWeight="normal",r.style.textAlign="center",r.style.background="#fff",r.style.color="#000",r.style.padding="1.5em",r.style.width="400px",r.style.margin="5em auto 0",this.webgl||(r.innerHTML=window.WebGLRenderingContext?['Your graphics card does not seem to support WebGL.
','Find out how to get it here.'].join(` +`):['Your browser does not seem to support WebGL.
','Find out how to get it here.'].join(` +`)),r},addGetWebGLMessage:function(r){r=r||{};var n=r.parent!==void 0?r.parent:document.body,a=r.id!==void 0?r.id:"oldie",i=d1().getWebGLErrorMessage();i.id=a,n.appendChild(i)}}};const Vue=Object.freeze(Object.defineProperty({__proto__:null,gpuDetector:d1},Symbol.toStringTag,{value:"Module"}));var SO=function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("firefox")>-1?"firefox":e.indexOf("safari")>-1?"safari":e.indexOf("opr")>-1?"opera":e.indexOf("chrome")>-1?"chrome":e.indexOf("trident")>-1?"ie 11":e.indexOf("ie")>-1?"ie":"unknown"};const Yue=Object.freeze(Object.defineProperty({__proto__:null,getBrowserName:SO},Symbol.toStringTag,{value:"Module"}));var so=P(P(P(P(P({},Za),yX),Wue),Vue),Yue);so.radialLayout;Kt.registerLayout("grid",Kt.GridLayout);Kt.registerLayout("random",Kt.RandomLayout);Kt.registerLayout("force",Kt.ForceLayout);Kt.registerLayout("circular",Kt.CircularLayout);Kt.registerLayout("dagre",Kt.DagreLayout);Kt.registerLayout("dagreCompound",Kt.DagreCompoundLayout);Kt.registerLayout("radial",Kt.RadialLayout);Kt.registerLayout("concentric",Kt.ConcentricLayout);Kt.registerLayout("mds",Kt.MDSLayout);Kt.registerLayout("fruchterman",Kt.FruchtermanLayout);Kt.registerLayout("fruchterman-gpu",Kt.FruchtermanGPULayout);Kt.registerLayout("gForce",Kt.GForceLayout);Kt.registerLayout("force2",Kt.Force2Layout);Kt.registerLayout("gForce-gpu",Kt.GForceGPULayout);Kt.registerLayout("comboForce",Kt.ComboForceLayout);Kt.registerLayout("comboCombined",Kt.ComboCombinedLayout);Kt.registerLayout("forceAtlas2",Kt.ForceAtlas2Layout);var que=function(){function t(e,r){var n=e.toString(),a=new Blob(["importScripts('".concat(r,"');(").concat(n,")()")],{type:"text/javascript"});return new Worker(URL.createObjectURL(a))}return t}(),Hue=function(e){e===void 0&&(e="https://unpkg.com/@antv/layout@0.3.23/dist/layout.min.js");function r(){var a={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",GPURUN:"GPU_LAYOUT_RUN"};layout.registerLayout("grid",layout.GridLayout),layout.registerLayout("random",layout.RandomLayout),layout.registerLayout("force",layout.ForceLayout),layout.registerLayout("force2",layout.Force2Layout),layout.registerLayout("circular",layout.CircularLayout),layout.registerLayout("dagre",layout.DagreLayout),layout.registerLayout("dagreCompound",layout.DagreCompoundLayout),layout.registerLayout("radial",layout.RadialLayout),layout.registerLayout("concentric",layout.ConcentricLayout),layout.registerLayout("mds",layout.MDSLayout),layout.registerLayout("fruchterman",layout.FruchtermanLayout),layout.registerLayout("fruchterman-gpu",layout.FruchtermanGPULayout),layout.registerLayout("gForce",layout.GForceLayout),layout.registerLayout("gForce-gpu",layout.GForceGPULayout),layout.registerLayout("comboForce",layout.ComboForceLayout),layout.registerLayout("comboCombined",layout.ComboCombinedLayout),layout.registerLayout("forceAtlas2",layout.ForceAtlas2Layout);function i(s){var u=s.data.type;return u===a.RUN||u===a.GPURUN}function o(s){var u=this,f=s.data.type;switch(f){case a.RUN:{var l=s.data,c=l.nodes,h=l.edges,d=l.layoutCfg,v=d===void 0?{}:d,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}var y;v.onLayoutEnd=function(){u.postMessage({type:a.END,nodes:c}),y==null||y.destroy()},y=new g(v),y.init({nodes:c,edges:h}),y.execute();break}case a.GPURUN:{var m=s.data,b=m.nodes,h=m.edges,w=m.layoutCfg,v=w===void 0?{}:w,x=m.canvas,p=v.type,g=layout.getLayoutByName(p);if(!g){this.postMessage({type:a.ERROR,message:"layout ".concat(p," not found")});break}if(p.split("-")[1]!=="gpu"){this.postMessage({type:a.ERROR,message:"layout ".concat(p," does not support GPU")});break}var E=new g(v);E.init({nodes:b,edges:h}),E.executeWithWorker(x,this);break}}}onmessage=function(u){i(u)&&o(u)}}var n=new que(r,e);return n},ks={RUN:"LAYOUT_RUN",END:"LAYOUT_END",ERROR:"LAYOUT_ERROR",TICK:"LAYOUT_TICK",GPURUN:"GPU_LAYOUT_RUN",GPUEND:"GPU_LAYOUT_END"};function qg(t){"@babel/helpers - typeof";return qg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qg(t)}var $2=function(e){return setTimeout(e,16)},X2=function(e){return clearTimeout(e)},Yc={requestAnimationFrame:function(e){var r=typeof window<"u"&&(window.requestAnimationFrame||window.webkitRequestAnimationFrame)||$2;return r(e)},cancelAnimationFrame:function(e){var r=typeof window<"u"&&(window.cancelAnimationFrame||window.webkitCancelAnimationFrame)||X2;return r(e)}},Zue=["fruchterman","gForce"],Kue=["force","grid","circular"],Que=function(t){jt(e,t);function e(r){var n=t.call(this,r)||this;return n.graph=r,n.layoutCfg=r.get("layout")||{},n.layoutType=n.getLayoutType(),n.worker=null,n.workerData={},n.initLayout(),n}return e.prototype.initLayout=function(){},e.prototype.getWorker=function(){return this.worker?this.worker:(typeof Worker>"u"?(console.warn("Web worker is not supported in current browser."),this.worker=null):this.worker=Hue(this.layoutCfg.workerScriptURL),this.worker)},e.prototype.stopWorker=function(){var r=this.workerData;this.worker&&(this.worker.terminate(),this.worker=null,r.requestId&&(Yc.cancelAnimationFrame(r.requestId),r.requestId=null),r.requestId2&&(Yc.cancelAnimationFrame(r.requestId2),r.requestId2=null))},e.prototype.execLayoutMethod=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,p,h,d,v,p,g;return Gn(this,function(y){switch(y.label){case 0:if(s=this.graph,!s||s.get("destroyed"))return[2];u=r.type,r.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},u&&this.isGPU&&(MO(u)?u="".concat(u,"-gpu"):console.warn("The '".concat(u,"' layout does not support GPU calculation for now, it will run in CPU."))),Za.isForce(u)?(f=r.onTick,l=r.animate,c=l===void 0&&(u==="force"||u==="force2"),p=function(){f&&f(),(l||c)&&s.refreshPositions()},r.tick=p):(u==="comboForce"||u==="comboCombined")&&(r.comboTrees=s.get("comboTrees")),h=!1;try{d=new Kt.Layouts[u](r),this.layoutMethods[n]&&this.layoutMethods[n].destroy(),this.layoutMethods[n]=d}catch{console.warn("The layout method: '".concat(u,"' does not exist! Please specify it first.")),o()}return h=d.enableTick,h&&(v=r.onTick,p=function(){v&&v(),s.refreshPositions()},d.tick=p),g=this.filterLayoutData(this.data,r),tfe(g,n),d.init(g),s.emit("beforesublayout",{type:u}),[4,d.execute()];case 1:return y.sent(),d.isCustomLayout&&r.onLayoutEnd&&r.onLayoutEnd(),[2]}})})})},e.prototype.updateLayoutMethod=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this.graph,u=n==null?void 0:n.type,n.onLayoutEnd=function(){s.emit("aftersublayout",{type:u}),i()},Za.isForce(u)&&(f=n.onTick,l=n.animate,c=l===void 0&&(u==="force"||u==="force2"),h=function(){f==null||f(),(l||c)&&s.refreshPositions()},n.tick=h),d=this.filterLayoutData(this.data,n),r.init(d),r.updateCfg(n),s.emit("beforesublayout",{type:u}),[4,r.execute()];case 1:return v.sent(),r.isCustomLayout&&n.onLayoutEnd&&n.onLayoutEnd(),[2]}})})})},e.prototype.layout=function(r){var n=this,a,i=this.graph;if(!(!i||i.get("destroyed"))){this.data=this.setDataFromGraph();var o=this.data,s=o.nodes,u=o.hiddenNodes;if(!s)return!1;var f=i.get("width"),l=i.get("height"),c={};Object.assign(c,{width:f,height:l,center:[f/2,l/2]},this.layoutCfg),this.layoutCfg=c;var h=c.type,d=!1;(a=this.layoutMethods)===null||a===void 0||a.forEach(function(x){var E;return d=!!(!((E=x.nodes)===null||E===void 0)&&E.length)||d});var v=this.destoryLayoutMethods();i.emit("beforelayout");var p=Promise.resolve();d&&h&&(v==null?void 0:v.length)===1&&v[0]===h?this.tweakInit():p=this.initPositions(c.center,s);var g=this.initPositions(c.center,u);g.then(),this.isGPU=W2(c,h);var y=c.onLayoutEnd,m=c.layoutEndFormatted,b=c.adjust;if(m||(c.layoutEndFormatted=!0,c.onAllLayoutEnd=function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return y&&y(s),this.refreshLayout(),b&&c.pipes?[4,this.adjustPipesBox(this.data,b)]:[3,2];case 1:x.sent(),this.refreshLayout(),x.label=2;case 2:return i.emit("afterlayout"),[2]}})})}),this.stopWorker(),c.workerEnabled&&this.layoutWithWorker(this.data,r))return!0;var w=!1;return c.type?(w=!0,p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(x){switch(x.label){case 0:return[4,this.execLayoutMethod(c,0)];case 1:return[2,x.sent()]}})})})):c.pipes&&(w=!0,c.pipes.forEach(function(x,E){p=p.then(function(){return Bn(n,void 0,void 0,function(){return Gn(this,function(_){switch(_.label){case 0:return[4,this.execLayoutMethod(x,E)];case 1:return[2,_.sent()]}})})})})),w?p.then(function(){c.onAllLayoutEnd&&c.onAllLayoutEnd(),r&&r()}).catch(function(x){console.warn("graph layout failed,",x)}):(i.refreshPositions(),r==null||r()),!1}},e.prototype.tweakInit=function(){var r=this,n=r.data,a=r.graph,i=n.nodes,o=n.edges;if(i!=null&&i.length){var s={};i.forEach(function(l){var c=l.x,h=l.y;!isNaN(c)&&!isNaN(h)&&(s[l.id]={x:c,y:h},l.mass=l.mass||2)}),o.forEach(function(l){var c=l.source,h=l.target,d=s[c],v=s[h];!d&&v?s[c]={x:v.x+(Math.random()-.5)*80,y:v.y+(Math.random()-.5)*80}:!v&&d&&(s[h]={x:d.x+(Math.random()-.5)*80,y:d.y+(Math.random()-.5)*80})});var u=a.get("width"),f=a.get("height");i.forEach(function(l){var c=s[l.id]||{x:u/2+(Math.random()-.5)*20,y:f/2+(Math.random()-.5)*20};l.x=c.x,l.y=c.y})}},e.prototype.initWithPreset=function(r,n){var a=this;return new Promise(function(i,o){return Bn(a,void 0,void 0,function(){var s,u,f,l,c,h,d;return Gn(this,function(v){switch(v.label){case 0:return s=this,u=s.layoutCfg,f=s.data,l=u.preset,!(l!=null&&l.type)||!Kt.Layouts[l==null?void 0:l.type]?(n==null||n(),i(),[2,!1]):(c=W2(l,l.type),h=c?"".concat(l.type,"-gpu"):l.type,d=new Kt.Layouts[h](l),delete u.preset,d.init(f),[4,d.execute()]);case 1:return v.sent(),r==null||r(),i(),[2,!0]}})})})},e.prototype.layoutWithWorker=function(r,n){var a=this,i=this,o=i.layoutCfg,s=i.graph,u=this.getWorker(),f=this.workerData;if(!u)return!1;f.requestId=null,f.requestId2=null,f.currentTick=null,f.currentTickData=null,s.emit("beforelayout");var l=Promise.resolve(),c=!1;if(o.type)c=!0,l=l.then(function(){return a.runWebworker(u,r,o)});else if(o.pipes){c=!0;for(var h=function(y){l=l.then(function(){return a.runWebworker(u,r,y)})},d=0,v=o.pipes;d'),l=a?a.backgroundColor:void 0,c=a?a.padding:void 0;c?Ot(c)&&(c=[c,c,c,c]):c=[0,0,0,0];var h=o+c[0]+c[2],d=s+c[1]+c[3],v={container:f,height:h,width:d,quickHit:!0},p=u==="svg"?new Tp(v):new qu(v),g=this.get("group"),y=g.clone(),m=rr(y.getMatrix());m||(m=[1,0,0,0,1,0,0,0,1]);var b=(i.maxX+i.minX)/2,w=(i.maxY+i.minY)/2;m=V2(m,[["t",-b,-w],["t",s/2+c[3],o/2+c[0]]]),y.resetMatrix(),y.setMatrix(m),p.add(y);var x=p.get("el"),E="";n||(n="image/png"),setTimeout(function(){if(u==="svg"){var _=x.cloneNode(!0),S=document.implementation.createDocumentType("svg","-//W3C//DTD SVG 1.1//EN","http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"),A=document.implementation.createDocument("http://www.w3.org/2000/svg","svg",S);A.replaceChild(_,A.documentElement);var M=new XMLSerializer().serializeToString(A);E="data:image/svg+xml;charset=utf8,".concat(encodeURIComponent(M))}else{var C=void 0,I=x.getContext("2d"),k=void 0;if(l){var O=typeof window<"u"?window.devicePixelRatio:1;try{C=I.getImageData(0,0,d*O,h*O),k=I.globalCompositeOperation,I.globalCompositeOperation="destination-over",I.fillStyle=l,I.fillRect(0,0,d,h)}catch{console.error("Download image failed. Out of memory at ImageData creation")}}E=x.toDataURL(n),l&&(I.clearRect(0,0,d,h),I.putImageData(C,0,0),I.globalCompositeOperation=k)}r&&r(E)},16)},e.prototype.downloadFullImage=function(r,n,a){var i=this,o=this.get("group").getCanvasBBox(),s=o.height,u=o.width,f=this.get("renderer"),l=cg('
'),c=document.querySelector(".g6-graph-watermarker"),h=a?a.backgroundColor:void 0,d=a?a.padding:void 0;d?Ot(d)&&(d=[d,d,d,d]):d=[0,0,0,0];var v=s+d[0]+d[2],p=u+d[1]+d[3];if(c){var g=this.get("graphWaterMarker").cfg||{},y=g.width,m=g.height;v=Math.ceil(v/m)*m,p=Math.ceil(p/y)*y}var b={container:l,height:v,width:p},w=f==="svg"?new Tp(b):new qu(b),x=this.get("group"),E=wX(x),_=rr(E.getMatrix());_||(_=[1,0,0,0,1,0,0,0,1]);var S=(o.maxX+o.minX)/2,A=(o.maxY+o.minY)/2;_=V2(_,[["t",-S,-A],["t",u/2+d[3],s/2+d[0]]]),E.resetMatrix(),E.setMatrix(_),w.add(E);var M=w.get("el");n||(n="image/png"),this.asyncToDataUrl(n,h,function(C){var I=document.createElement("a"),k=(r||"graph")+(f==="svg"?".svg":".".concat(n.split("/")[1]));i.dataURLToImage(C,f,I,k);var O=document.createEvent("MouseEvents");O.initEvent("click",!1,!1),I.dispatchEvent(O)},p,v,M)},e.prototype.downloadImage=function(r,n,a){var i=this,o=this;o.stopAnimate();var s=o.get("canvas"),u=s.getRenderer();n||(n="image/png");var f=(r||"graph")+(u==="svg"?".svg":".".concat(n.split("/")[1])),l=document.createElement("a");o.asyncToDataUrl(n,a,function(c){i.dataURLToImage(c,u,l,f);var h=document.createEvent("MouseEvents");h.initEvent("click",!1,!1),l.dispatchEvent(h)})},e.prototype.dataURLToImage=function(r,n,a,i){if(!r||r==="data:"){console.error("Download image failed. The graph is too large or there is invalid attribute values in graph items");return}if(typeof window<"u")if(window.Blob&&window.URL&&n!=="svg"){var o=r.split(","),s="";if(o&&o.length>0){var u=o[0].match(/:(.*?);/);u&&u.length>=2&&(s=u[1])}for(var f=atob(o[1]),l=f.length,c=new Uint8Array(l);l--;)c[l]=f.charCodeAt(l);var h=new Blob([c],{type:s});window.navigator.msSaveBlob?window.navigator.msSaveBlob(h,i):a.addEventListener("click",function(){a.download=i,a.href=window.URL.createObjectURL(h)})}else a.addEventListener("click",function(){a.download=i,a.href=r})},e.prototype.addPlugin=function(r){var n=this;r.destroyed||(n.get("plugins").push(r),r.initPlugin(n))},e.prototype.removePlugin=function(r){var n=this.get("plugins"),a=n.indexOf(r);a>=0&&(r.destroyPlugin(),n.splice(a,1))},e.prototype.setImageWaterMarker=function(r,n){r===void 0&&(r=Mf.waterMarkerImage);var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},Mf.imageWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.image;if(!r){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new qu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.x,y=l.y;v.rotate(-p*Math.PI/180);var m=new Image;m.crossOrigin="anonymous",m.src=r,m.onload=function(){if(v.drawImage(m,g,y,l.width,l.height),v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var b=document.querySelector(".g6-graph-watermarker");b||(b=document.createElement("div"),b.className="g6-graph-watermarker"),b.className="g6-graph-watermarker",i.destroyed||(b.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:-1;"),a.appendChild(b))}}},e.prototype.setTextWaterMarker=function(r,n){var a=this.get("container");Ye(a)&&(a=document.getElementById(a)),a.style.position||(a.style.position="relative");var i=this.get("graphWaterMarker"),o=_r({},Mf.textWaterMarkerConfig,n),s=o.width,u=o.height,f=o.compatible,l=o.text;if(!(r!=null&&r.length)){var c=f?a:document.querySelector(".g6-graph-watermarker");c&&(c.style.cssText=void 0),i&&i.clear();return}if(i)i.clear();else{var h={container:a,width:s,height:u,capture:!1},d=this.get("pixelRatio");d&&(h.pixelRatio=d,window.devicePixelRatio=d),i=new qu(h),this.set("graphWaterMarker",i)}i.get("el").style.display="none";var v=i.get("context"),p=l.rotate,g=l.fill,y=l.fontFamily,m=l.fontSize,b=l.baseline,w=l.x,x=l.y,E=l.lineHeight;v.rotate(-p*Math.PI/180),v.font="".concat(m,"px ").concat(y),v.fillStyle=g,v.textBaseline=b;for(var _=Ye(r)?[r]:r,S=_.length-1;S>=0;S--)v.fillText(_[S],w,x+S*E);if(v.rotate(p*Math.PI/180),f)a.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;");else{var A=document.querySelector(".g6-graph-watermarker");A||(A=document.createElement("div"),A.className="g6-graph-watermarker"),A.style.cssText="background-image: url(".concat(i.get("el").toDataURL("image/png"),");background-repeat:repeat;position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:none;z-index:99;"),a.appendChild(A)}},e.prototype.destroy=function(){var r,n,a,i;_e(this.get("plugins"),function(l){l.destroyPlugin()});var o=this.get("tooltips");if(o)for(var s=0;s0)for(var f=s.length-1;f>=0;f--){var l=s[f].getModel();e.indexOfChild(r.children||[],l.id)===-1&&(i.innerRemoveChild(l.id,{x:r.x,y:r.y},a),s.splice(f,1))}}var c,h;o.get("originAttrs")&&(c=o.get("originAttrs").x,h=o.get("originAttrs").y);var d=o.getModel();a&&o.set("originAttrs",{x:d.x,y:d.y}),o.set("model",Object.assign(d,r.data)),(c!==r.x||h!==r.y)&&o.updatePosition({x:r.x,y:r.y})},e.prototype.innerRemoveChild=function(r,n,a){var i=this,o=i.findById(r);if(o)if(_e(o.get("children"),function(u){i.innerRemoveChild(u.getModel().id,n,a)}),a){var s=o.getModel();o.set("to",n),o.set("originAttrs",{x:s.x,y:s.y}),i.get("removeList").push(o)}else i.removeItem(o,!1)},e.prototype.changeData=function(r,n){n===void 0&&(n=!0);var a=this;this.getNodes().map(function(i){return a.clearItemStates(i)}),this.getEdges().map(function(i){return a.clearItemStates(i)}),n&&this.get("enabledStack")&&this.pushStack("changedata",{before:a.get("originData"),after:r||a.get("data")}),r?(a.data(r),a.render(!1)):a.layout(this.get("fitView"))},e.prototype.changeLayout=function(r){console.warn("Please call updateLayout instead of changeLayout. changeLayout will be discarded soon");var n=this;n.updateLayout(r)},e.prototype.updateLayout=function(r,n,a,i){i===void 0&&(i=!0);var o=this;if(!r){console.warn("layout cannot be null");return}if(i&&this.get("enabledStack")&&this.pushStack("layout",{before:o.get("layout"),after:r}),o.set("layout",r),o.set("layoutMethod",o.getLayout()),o.layout(),n){var s=a;s||(n==="begin"?s={x:0,y:0}:s={x:this.getWidth()/2,y:this.getHeight()/2}),s=this.getPointByCanvas(s.x,s.y);var u=this.getGroup().getMatrix()||[1,0,0,0,1,0,0,0,1];s.x=s.x*u[0]+u[6],s.y=s.y*u[0]+u[7];var f=this.getGroup().getCanvasBBox(),l=f.minX,c=f.maxX,h=f.minY,d=f.maxY,v={x:(l+c)/2,y:(h+d)/2};n==="begin"&&(v.x=l,v.y=h),this.translate(s.x-v.x,s.y-v.y)}},e.prototype.refreshLayout=function(r){console.warn("Please call layout instead of refreshLayout. refreshLayout will be discarded soon");var n=this;n.layout(r)},e.prototype.layout=function(r){var n=this,a=this,i=a.get("data"),o=a.get("layoutMethod"),s=a.get("layout"),u=i;if(s!=null&&s.excludeInvisibles){i=rr(a.get("data"));var f={};y0(i,function(h){var d=h.children;if(!(d!=null&&d.length))return!0;for(var v=d.length-1;v>=0;v--){var p=n.findById(d[v].id),g=p?!p.isVisible():d[v].visible===!1;g&&(f[h.id]=f[h.id]||[],f[h.id].push({idx:v,child:d.splice(v,1)[0]}))}}),u=o?o(i,a.get("layout")):i,y0(u,function(h){var d=f[h.id];if(d!=null&&d.length)for(var v=d.length-1;v>=0;v--){var p=d[v],g=p.idx,y=p.child;h.children.splice(g,0,y)}})}else u=o?o(i,a.get("layout")):i;var l=a.get("animate");if(a.emit("beforerefreshlayout",{data:i,layoutData:u}),a.emit("beforelayout"),a.innerUpdateChild(u,void 0,l),r){var c=a.get("viewController");c.fitView()}l?a.layoutAnimate(u):(a.refresh(),a.paint()),a.emit("afterrefreshlayout",{data:i,layoutData:u}),a.emit("afterlayout")},e.prototype.addChild=function(r,n,a){a===void 0&&(a=!0);var i=this;i.emit("beforeaddchild",{model:r,parent:n}),Ye(n)||(n=n.get("id"));var o=i.findDataById(n);if(o){o.children||(o.children=[]),o.children.push(r);var s=i.findById(n);s.refresh(),i.changeData(void 0,a)}},e.prototype.updateChildren=function(r,n,a){a===void 0&&(a=!0);var i=this,o=i.findById(n);if(!n||!o){console.warn("Update children failed! There is no node with id '".concat(n,"'"));return}var s=i.findDataById(n);s.children=r,o.refresh(),i.changeData(void 0,a)},e.prototype.updateChild=function(r,n,a){a===void 0&&(a=!0);var i=this;if(!n||!i.findById(n)){i.changeData(r,a);return}var o=i.findDataById(n),s=i.findById(r.id);if(o.children||(o.children=[]),!s)o.children.push(r);else{var u=e.indexOfChild(o.children,r.id);u>-1&&(o.children[u]=r)}var f=i.findById(n);f==null||f.refresh(),i.changeData(void 0,a)},e.prototype.removeChild=function(r,n){n===void 0&&(n=!0);var a=this,i=a.findById(r),o;if(i?o=i==null?void 0:i.get("parent"):o=a.getNodes().find(function(c){var h=c.getModel().children||[];return!!h.find(function(d){return d.id===r})}),o&&!o.destroyed){var s=o.get("id"),u=a.findDataById(s),f=u&&u.children||[],l=e.indexOfChild(f,r);f.splice(l,1),o.refresh()}a.changeData(void 0,n)},e.prototype.findDataById=function(r,n){var a=this;if(n||(n=a.get("data")),r===n.id)return n;var i=null;return _e(n.children||[],function(o){if(o.id===r)return i=o,!1;if(i=a.findDataById(r,o),i)return!1}),i},e.prototype.layoutAnimate=function(r,n){var a=this,i=this.get("animateCfg");a.emit("beforeanimate",{data:r}),a.getEdges().forEach(function(o){var s=o.get("model");s.sourceAnchor||(s.sourceAnchor=o.get("sourceAnchorIndex"))}),this.get("canvas").animate(function(o){y0(r,function(s){var u=a.findById(s.id);if(u){var f=u.get("originAttrs"),l=u.get("model");if(f||(f={x:l.x,y:l.y},u.set("originAttrs",f)),n){var c=n(u,o,f,r);u.set("model",Object.assign(l,c))}else l.x=f.x+(s.x-f.x)*o,l.y=f.y+(s.y-f.y)*o}return!0}),_e(a.get("removeList"),function(s){var u=s.getModel(),f=s.get("originAttrs"),l=s.get("to");u.x=f.x+(l.x-f.x)*o,u.y=f.y+(l.y-f.y)*o}),a.refreshPositions()},{duration:i.duration,easing:i.ease,callback:function(){_e(a.getNodes(),function(s){s.set("originAttrs",null)}),_e(a.get("removeList"),function(s){a.removeItem(s,!1)}),a.set("removeList",[]),i.callback&&i.callback(),a.emit("afteranimate",{data:r})},delay:i.delay})},e.prototype.stopLayoutAnimate=function(){this.get("canvas").stopAnimate(),this.emit("layoutanimateend",{data:this.get("data")}),this.layoutAnimating=!1},e.prototype.isLayoutAnimating=function(){return this.layoutAnimating},e.prototype.render=function(r){r===void 0&&(r=!0);var n=this,a=n.get("data");if(!a||!gn(a)||!Object.keys(a).length)throw new Error("data must be defined first");n.clear(),r&&this.get("enabledStack")&&this.clearStack(),n.emit("beforerender"),n.layout(this.get("fitView")),n.emit("afterrender")},e.prototype.save=function(){return this.get("data")},e.prototype.data=function(r){t.prototype.data.call(this,r),this.set("originData",nfe(r))},e})(AO);ro("circle",{options:{size:Qe.defaultNode.size,style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"circle",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=_r({},a,e.icon),s="".concat(this.type,"-keyShape"),u=r.addShape("circle",{attrs:i,className:s,name:s,draggable:!0});r.shapeMap[s]=u;var f=o.width,l=o.height,c=o.show,h=o.text;if(c){var d="".concat(this.type,"-icon");h?r.shapeMap[d]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},o),className:d,name:d,draggable:!0}):r.shapeMap[d]=r.addShape("image",{attrs:P({x:-f/2,y:-l/2},o),className:d,name:d,draggable:!0})}return this.drawLinkPoints(e,r),u},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints;if(n){var a=n||{},i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2;if(o){var v="link-point-left";r.shapeMap[v]=r.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:v,name:v,isAnchorPoint:!0})}if(s){var p="link-point-right";r.shapeMap[p]=r.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:p,name:p,isAnchorPoint:!0})}if(i){var g="link-point-top";r.shapeMap[g]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-d,r:f/2||l||5}),className:g,name:g,isAnchorPoint:!0})}if(u){var y="link-point-bottom";r.shapeMap[y]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:d,r:f/2||l||5}),className:y,name:y,isAnchorPoint:!0})}}},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=_r({},r,n),i=this.getSize(e),o=i[0]/2,s=P({x:0,y:0,r:o},a);return s},update:function(e,r,n){var a=r.getContainer(),i=this.getSize(e),o=P({},e.style);e.style.stroke===void 0&&e.color&&(o.stroke=e.color),e.style.r===void 0&&!isNaN(i[0])&&(o.r=i[0]/2),this.updateShape(e,r,o,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("rect",{options:{size:[100,30],style:{radius:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},anchorPoints:[[0,.5],[1,.5]],stateStyles:P({},Qe.nodeStateStyles)},shapeType:"rect",labelPosition:"center",drawShape:function(e,r){var n=this.getShapeStyle(e),a=r.addShape("rect",{attrs:n,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});return r.shapeMap["".concat(this.type,"-keyShape")]=a,this.drawLinkPoints(e,r),a},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s=r.get("keyShape");e.size||(o[0]=s.attr("width")||i.width,o[1]=s.attr("height")||i.height);var u={stroke:e.color,x:-o[0]/2,y:-o[1]/2,width:o[0],height:o[1]},f=Et({},i,s.attr(),u);f=Et(f,e.style),this.updateShape(e,r,f,!1,n),this.updateLinkPoints(e,a)}},"single-node");ro("ellipse",{options:{size:[80,40],style:{x:0,y:0,stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"ellipse",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("ellipse",{attrs:i,className:"ellipse-keyShape",name:"ellipse-keyShape",draggable:!0});r.shapeMap["ellipse-keyShape"]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0]/2,v=h[1]/2;o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=i[0]/2,s=i[1]/2,u=P({x:0,y:0,rx:o,ry:s},a);return u},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getSize(e),s={stroke:e.color,rx:o[0]/2,ry:o[1]/2},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("diamond",{options:{size:[80,80],style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"diamond",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},getPath:function(e){var r=this.getSize(e),n=r[0],a=r[1],i=[["M",0,-a/2],["L",n/2,0],["L",0,a/2],["L",-n/2,0],["Z"]];return i},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)}},"single-node");ro("triangle",{options:{size:40,direction:"up",style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize},offset:15},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20,offset:6},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"triangle",labelPosition:"bottom",drawShape:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.icon,i=a===void 0?{}:a,o=n.direction,s=this.getShapeStyle(e),u=e.direction||o,f=r.addShape("path",{attrs:s,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=f;var l=i.width,c=i.height,h=i.show,d=i.offset,v=i.text;if(h)if(v)r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0});else{var p=-l/2,g=-c/2;(u==="up"||u==="down")&&(g+=d),(u==="left"||u==="right")&&(p+=d),r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:p,y:g},i),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})}return this.drawLinkPoints(e,r),f},drawLinkPoints:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.linkPoints,i=a===void 0?{}:a,o=n.direction,s=e.direction||o,u=i.top,f=i.left,l=i.right,c=i.bottom,h=i.size,d=i.r,v=Kr(i,["top","left","right","bottom","size","r"]),p=this.getSize(e),g=p[0];if(f){var y=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?y=[-b,m]:s==="down"?y=[-b,-m]:s==="left"&&(y=[-b,b-m]),y&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},v),{x:y[0],y:y[1],r:h/2||d||5}),className:"link-point-left",name:"link-point-left"}))}if(l){var w=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?w=[b,m]:s==="down"?w=[b,-m]:s==="right"&&(w=[b,b-m]),w&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},v),{x:w[0],y:w[1],r:h/2||d||5}),className:"link-point-right",name:"link-point-right"}))}if(u){var x=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="up"?x=[b-m,-m]:s==="left"?x=[b,-m]:s==="right"&&(x=[-b,-m]),x&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},v),{x:x[0],y:x[1],r:h/2||d||5}),className:"link-point-top",name:"link-point-top"}))}if(c){var E=null,m=g*Math.sin(1/3*Math.PI),b=g*Math.sin(1/3*Math.PI);s==="down"?E=[-b+m,m]:s==="left"?E=[b,m]:s==="right"&&(E=[-b,m]),E&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},v),{x:E[0],y:E[1],r:h/2||d||5}),className:"link-point-bottom",name:"link-point-bottom"}))}},getPath:function(e){var r=(this.mergeStyle||this.getOptions(e)).direction,n=e.direction||r,a=this.getSize(e),i=a[0],o=i*Math.sin(1/3*Math.PI),s=i*Math.sin(1/3*Math.PI),u=[["M",-s,o],["L",0,-o],["L",s,o],["Z"]];return n==="down"?u=[["M",-s,-o],["L",s,-o],["L",0,o],["Z"]]:n==="left"?u=[["M",-s,s-o],["L",s,-s],["L",s,s],["Z"]]:n==="right"&&(u=[["M",s,s-o],["L",-s,s],["L",-s,-s],["Z"]]),u},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,r){var n=this.getOptions({}),a=n.linkPoints,i=n.direction,o=e.direction||i,s=r.shapeMap["link-point-left"]||r.find(function(L){return L.get("className")==="link-point-left"}),u=r.shapeMap["link-point-right"]||r.find(function(L){return L.get("className")==="link-point-right"}),f=r.shapeMap["link-point-top"]||r.find(function(L){return L.get("className")==="link-point-top"}),l=r.shapeMap["link-point-bottom"]||r.find(function(L){return L.get("className")==="link-point-bottom"}),c=a,h=s||u||f||l;h&&(c=h.attr());var d=Et({},c,e.linkPoints),v=d.fill,p=d.stroke,g=d.lineWidth,y=d.size/2;y||(y=d.r);var m=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,bottom:void 0},b=m.left,w=m.right,x=m.top,E=m.bottom,_=this.getSize(e),S=_[0],A={r:y,fill:v,stroke:p,lineWidth:g},M=null,C=S*Math.sin(1/3*Math.PI),I=S*Math.sin(1/3*Math.PI);o==="up"?M=[-I,C]:o==="down"?M=[-I,-C]:o==="left"&&(M=[-I,I-C]),M&&(s?!b&&b!==void 0?(s.remove(),delete r.shapeMap["link-point-left"]):s.attr(P(P({},A),{x:M[0],y:M[1]})):b&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},A),{x:M[0],y:M[1]}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})));var k=null;o==="up"?k=[I,C]:o==="down"?k=[I,-C]:o==="right"&&(k=[I,I-C]),k&&(u?!w&&w!==void 0?(u.remove(),delete r.shapeMap["link-point-right"]):u.attr(P(P({},A),{x:k[0],y:k[1]})):w&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},A),{x:k[0],y:k[1]}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})));var O=null;o==="up"?O=[I-C,-C]:o==="left"?O=[I,-C]:o==="right"&&(O=[-I,-C]),O&&(f?!x&&x!==void 0?(f.remove(),delete r.shapeMap["link-point-top"]):f.attr(P(P({},A),{x:O[0],y:O[1]})):x&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},A),{x:O[0],y:O[1]}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})));var B=null;o==="down"?B=[-I+C,C]:o==="left"?B=[I,C]:o==="right"&&(B=[-I,C]),B&&(l?!E&&E!==void 0?(l.remove(),delete r.shapeMap["link-point-bottom"]):l.attr(P(P({},A),{x:B[0],y:B[1]})):E&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},A),{x:B[0],y:B[1]}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0})))}},"single-node");ro("modelRect",{options:{size:[185,70],style:{radius:5,stroke:"#69c0ff",fill:"#ffffff",lineWidth:Qe.defaultNode.style.lineWidth,fillOpacity:1},labelCfg:{style:{fill:"#595959",fontSize:14,fontFamily:Qe.windowFontFamily},offset:30},descriptionCfg:{style:{fontSize:12,fill:"#bfbfbf",fontFamily:Qe.windowFontFamily},paddingTop:0},preRect:{show:!0,width:4,fill:"#40a9ff",radius:2},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:10,lineWidth:1,fill:"#72CC4A",stroke:"#72CC4A"},logoIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/4f81893c-1806-4de4-aff3-9a6b266bc8a2.svg",width:16,height:16,offset:0},stateIcon:{show:!0,x:0,y:0,img:"https://gw.alipayobjects.com/zos/basement_prod/300a2523-67e0-4cbf-9d4a-67c077b40395.svg",width:16,height:16,offset:-5},anchorPoints:[[0,.5],[1,.5]]},shapeType:"modelRect",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).preRect,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=this.getSize(e),s=o[0],u=o[1],f=r.addShape("rect",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=f;var l=a.show,c=Kr(a,["show"]);return l&&(r.shapeMap["pre-rect"]=r.addShape("rect",{attrs:P({x:-s/2,y:-u/2,height:u},c),className:"pre-rect",name:"pre-rect",draggable:!0})),this.drawLogoIcon(e,r),this.drawStateIcon(e,r),this.drawLinkPoints(e,r),f},drawLogoIcon:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).logoIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?r.shapeMap["rect-logo-icon"]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0}):r.shapeMap["rect-logo-icon"]=r.addShape("image",{attrs:P(P({},d),{x:f||-o/2+s+c,y:l||-u/2,width:s,height:u}),className:"rect-logo-icon",name:"rect-logo-icon",draggable:!0})}},drawStateIcon:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).stateIcon,a=n===void 0?{}:n,i=this.getSize(e),o=i[0];if(a.show){var s=a.width,u=a.height,f=a.x,l=a.y,c=a.offset,h=a.text,d=Kr(a,["width","height","x","y","offset","text"]);h?r.shapeMap["rect-state-icon"]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},d),className:"rect-state-icon",name:"rect-state-icon",draggable:!0}):r.shapeMap["rect-state-icon"]=r.addShape("image",{attrs:P(P({},d),{x:f||o/2-s+c,y:l||-u/2,width:s,height:u}),className:"rect-state-icon",name:"rect-state-icon",draggable:!0})}},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.bottom,f=a.size,l=a.r,c=Kr(a,["top","left","right","bottom","size","r"]),h=this.getSize(e),d=h[0],v=h[1];o&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},c),{x:-d/2,y:0,r:f/2||l||5}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),s&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},c),{x:d/2,y:0,r:f/2||l||5}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),i&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:-v/2,r:f/2||l||5}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),u&&(r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},c),{x:0,y:v/2,r:f/2||l||5}),className:"link-point-bottom",name:"link-point-bottom",isAnchorPoint:!0}))},drawLabel:function(e,r){var n=this.getOptions(e),a=n.labelCfg,i=a===void 0?{}:a,o=n.logoIcon,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=null,d=s.show,v=s.width,p=-c/2+i.offset;d&&(p=-c/2+v+i.offset);var g=i.style,y=f.style,m=f.paddingTop;return Ye(e.description)?(h=r.addShape("text",{attrs:P(P({},g),{x:p,y:-5,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),r.shapeMap["text-shape"]=h,r.shapeMap["rect-description"]=r.addShape("text",{attrs:P(P({},y),{x:p,y:17+(m||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0})):(h=r.addShape("text",{attrs:P(P({},g),{x:p,y:7,text:e.label}),className:"text-shape",name:"text-shape",draggable:!0,labelRelated:!0}),r.shapeMap["text-shape"]=h),h},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getSize(e),o=a.width||i[0],s=a.height||i[1],u=P({x:-o/2,y:-s/2,width:o,height:s},a);return u},update:function(e,r){var n=this.mergeStyle||this.getOptions(e),a=n.style,i=a===void 0?{}:a,o=n.labelCfg,s=o===void 0?{}:o,u=n.descriptionCfg,f=u===void 0?{}:u,l=this.getSize(e),c=l[0],h=l[1],d=r.get("keyShape");d.attr(P(P({},i),{x:-c/2,y:-h/2,width:c,height:h}));var v=r.getContainer(),p=v.shapeMap["rect-logo-icon"]||v.find(function(qe){return qe.get("className")==="rect-logo-icon"}),g=p?p.attr():{},y=Et({},g,e.logoIcon),m=y.width;m===void 0&&(m=this.options.logoIcon.width);var b=e.logoIcon?e.logoIcon.show:void 0,w=s.offset,x=-c/2+m+w;!b&&b!==void 0&&(x=-c/2+w);var E=v.shapeMap["node-label"]||v.find(function(qe){return qe.get("className")==="node-label"}),_=v.shapeMap["rect-description"]||v.find(function(qe){return qe.get("className")==="rect-description"});if(e.label)if(!E)v.shapeMap["node-label"]=v.addShape("text",{attrs:P(P({},s.style),{x,y:e.description?-5:7,text:e.label}),className:"node-label",name:"node-label",draggable:!0,labelRelated:!0});else{var S=e.labelCfg?e.labelCfg.style:{},A=Et({},E.attr(),S);e.label&&(A.text=e.label),A.x=x,Ye(e.description)&&(A.y=-5),_&&(_.resetMatrix(),_.attr({x})),E.resetMatrix(),E.attr(A)}if(Ye(e.description)){var M=f.paddingTop;if(!_)v.shapeMap["rect-description"]=v.addShape("text",{attrs:P(P({},f.style),{x,y:17+(M||0),text:e.description}),className:"rect-description",name:"rect-description",draggable:!0,labelRelated:!0});else{var S=e.descriptionCfg?e.descriptionCfg.style:{},C=Et({},_.attr(),S);Ye(e.description)&&(C.text=e.description),C.x=x,_.resetMatrix(),_.attr(P(P({},C),{y:17+(M||0)}))}}var I=v.shapeMap["pre-rect"]||v.find(function(qe){return qe.get("className")==="pre-rect"});if(I&&!I.destroyed){var k=Et({},I.attr(),e.preRect);I.attr(P(P({},k),{x:-c/2,y:-h/2,height:h}))}if(p&&!p.destroyed)if(!b&&b!==void 0)p.remove(),delete v.shapeMap["pre-rect"];else{var O=y.width,B=y.height,L=y.x,z=y.y,X=y.offset,R=Kr(y,["width","height","x","y","offset"]);p.attr(P(P({},R),{x:L||-c/2+O+X,y:z||-B/2,width:O,height:B}))}else b&&this.drawLogoIcon(e,v);var V=v.shapeMap["rect-state-icon"]||v.find(function(qe){return qe.get("className")==="rect-state-icon"}),he=V?V.attr():{},ce=Et({},he,e.stateIcon);if(V){!ce.show&&ce.show!==void 0&&(V.remove(),delete v.shapeMap["rect-state-icon"]);var le=ce.width,B=ce.height,L=ce.x,z=ce.y,ie=ce.offset,Ie=Kr(ce,["width","height","x","y","offset"]);V.attr(P(P({},Ie),{x:L||c/2-le+ie,y:z||-B/2,width:le,height:B}))}else ce.show&&this.drawStateIcon(e,v);this.updateLinkPoints(e,v)},getOptions:function(e,r){return r==="move"?e:_r({},this.options,this.getCustomConfig(e)||{},e)}},"single-node");ro("star",{options:{size:60,style:{stroke:Qe.defaultNode.style.stroke,fill:Qe.defaultNode.style.fill,lineWidth:Qe.defaultNode.style.lineWidth},labelCfg:{style:{fill:Qe.nodeLabel.style.fill,fontSize:Qe.nodeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},linkPoints:{top:!1,right:!1,bottom:!1,left:!1,size:Qe.defaultNode.linkPoints.size,lineWidth:Qe.defaultNode.linkPoints.lineWidth,fill:Qe.defaultNode.linkPoints.fill,stroke:Qe.defaultNode.linkPoints.stroke},icon:{show:!1,img:"https://gw.alipayobjects.com/zos/bmw-prod/5d015065-8505-4e7a-baec-976f81e3c41d.svg",width:20,height:20},stateStyles:P({},Qe.nodeStateStyles)},shapeType:"star",labelPosition:"center",drawShape:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).icon,a=n===void 0?{}:n,i=this.getShapeStyle(e),o=r.addShape("path",{attrs:i,className:"".concat(this.type,"-keyShape"),name:"".concat(this.type,"-keyShape"),draggable:!0});r.shapeMap["".concat(this.type,"-keyShape")]=o;var s=a.width,u=a.height,f=a.show,l=a.text;return f&&(l?r.shapeMap["".concat(this.type,"-icon")]=r.addShape("text",{attrs:P({x:0,y:0,fontSize:12,fill:"#000",stroke:"#000",textBaseline:"middle",textAlign:"center"},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0}):r.shapeMap["".concat(this.type,"-icon")]=r.addShape("image",{attrs:P({x:-s/2,y:-u/2},a),className:"".concat(this.type,"-icon"),name:"".concat(this.type,"-icon"),draggable:!0})),this.drawLinkPoints(e,r),o},drawLinkPoints:function(e,r){var n=(this.mergeStyle||this.getOptions(e)).linkPoints,a=n===void 0?{}:n,i=a.top,o=a.left,s=a.right,u=a.leftBottom,f=a.rightBottom,l=a.size,c=a.r,h=Kr(a,["top","left","right","leftBottom","rightBottom","size","r"]),d=this.getSize(e),v=d[0];if(s){var p=Math.cos(.1*Math.PI)*v,g=Math.sin((18+72*0)/180*Math.PI)*v;r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right",name:"link-point-right"})}if(i){var p=Math.cos(.5*Math.PI)*v,g=Math.sin((18+72*1)/180*Math.PI)*v;r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-top",name:"link-point-top"})}if(o){var p=Math.cos(.9*Math.PI)*v,g=Math.sin((18+72*2)/180*Math.PI)*v;r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left",name:"link-point-left"})}if(u){var p=Math.cos(1.3*Math.PI)*v,g=Math.sin((18+72*3)/180*Math.PI)*v;r.shapeMap["link-point-bottom"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-left-bottom",name:"link-point-left-bottom"})}if(f){var p=Math.cos(1.7*Math.PI)*v,g=Math.sin((18+72*4)/180*Math.PI)*v;r.shapeMap["link-point-right-bottom"]=r.addShape("circle",{attrs:P(P({},h),{x:p,y:-g,r:l/2||c||5}),className:"link-point-right-bottom",name:"link-point-right-bottom"})}},getPath:function(e){var r=this.getSize(e),n=r[0],a=n*3/8,i=e.innerR||a;return Za.getStarPath(n,i)},getShapeStyle:function(e){var r=(this.mergeStyle||this.getOptions(e)).style,n={stroke:e.color},a=Et({},r,n),i=this.getPath(e),o=P({path:i},a);return o},update:function(e,r,n){var a=r.getContainer(),i=this.getOptions({}).style,o=this.getPath(e),s={stroke:e.color,path:o},u=r.get("keyShape"),f=Et({},i,u.attr(),s);f=Et(f,e.style),this.updateShape(e,r,f,!0,n),this.updateLinkPoints(e,a)},updateLinkPoints:function(e,r){var n=this.getOptions({}).linkPoints,a=r.shapeMap["link-point-left"]||r.find(function(C){return C.get("className")==="link-point-left"}),i=r.shapeMap["link-point-right"]||r.find(function(C){return C.get("className")==="link-point-right"}),o=r.shapeMap["link-point-top"]||r.find(function(C){return C.get("className")==="link-point-top"}),s=r.shapeMap["link-point-left-bottom"]||r.find(function(C){return C.get("className")==="link-point-left-bottom"}),u=r.shapeMap["link-point-left-bottom"]||r.find(function(C){return C.get("className")==="link-point-right-bottom"}),f=n,l=a||i||o||s||u;l&&(f=l.attr());var c=Et({},f,e.linkPoints),h=c.fill,d=c.stroke,v=c.lineWidth,p=c.size/2;p||(p=c.r);var g=e.linkPoints?e.linkPoints:{left:void 0,right:void 0,top:void 0,leftBottom:void 0,rightBottom:void 0},y=g.left,m=g.right,b=g.top,w=g.leftBottom,x=g.rightBottom,E=this.getSize(e),_=E[0],S={r:p,fill:h,stroke:d,lineWidth:v},A=Math.cos((18+72*0)/180*Math.PI)*_,M=Math.sin((18+72*0)/180*Math.PI)*_;i?!m&&m!==void 0?(i.remove(),delete r.shapeMap["link-point-right"]):i.attr(P(P({},S),{x:A,y:-M})):m&&(r.shapeMap["link-point-right"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right",name:"link-point-right",isAnchorPoint:!0})),A=Math.cos((18+72*1)/180*Math.PI)*_,M=Math.sin((18+72*1)/180*Math.PI)*_,o?!b&&b!==void 0?(o.remove(),delete r.shapeMap["link-point-top"]):o.attr(P(P({},S),{x:A,y:-M})):b&&(r.shapeMap["link-point-top"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-top",name:"link-point-top",isAnchorPoint:!0})),A=Math.cos((18+72*2)/180*Math.PI)*_,M=Math.sin((18+72*2)/180*Math.PI)*_,a?!y&&y!==void 0?(a.remove(),delete r.shapeMap["link-point-left"]):a.attr(P(P({},S),{x:A,y:-M})):y&&(r.shapeMap["link-point-left"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left",name:"link-point-left",isAnchorPoint:!0})),A=Math.cos((18+72*3)/180*Math.PI)*_,M=Math.sin((18+72*3)/180*Math.PI)*_,s?!w&&w!==void 0?(s.remove(),delete r.shapeMap["link-point-left-bottom"]):s.attr(P(P({},S),{x:A,y:-M})):w&&(r.shapeMap["link-point-left-bottom"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-left-bottom",name:"link-point-left-bottom",isAnchorPoint:!0})),A=Math.cos((18+72*4)/180*Math.PI)*_,M=Math.sin((18+72*4)/180*Math.PI)*_,u?!x&&x!==void 0?(u.remove(),delete r.shapeMap["link-point-right-bottom"]):u.attr(P(P({},S),{x:A,y:-M})):x&&(r.shapeMap["link-point-right-bottom"]=r.addShape("circle",{attrs:P(P({},S),{x:A,y:-M}),className:"link-point-right-bottom",name:"link-point-right-bottom",isAnchorPoint:!0}))}},"single-node");var Y2=Za.defaultSubjectColors,If="fan-shape-",TO=function(e,r){var n=0,a=[];return Object.keys(e).forEach(function(i){var o=+e[i];isNaN(o)||(a.push({key:i,value:o,color:r[i]}),n+=o)}),{totalValue:n,configs:a}},IO=function(e){var r=e.attr("r"),n=.6*r,a=(r+n)/2,i=r-n;return{lineWidth:i,arcR:a}},Zg=function(e,r){var n=r.arcR,a=r.arcBegin,i=r.beginAngle,o=r.config,s=r.fanIndex,u=r.lineWidth,f=r.totalValue,l=r.drawWhole,c=l===void 0?!1:l,h=r.updateShape,d=h===void 0?void 0:h,v=o.value/f;if(v<.001)return{beginAngle:i,arcBegin:a,shape:void 0,shouldEnd:!1};var p,g,y;if(c||v>.999)p=[n,1e-4],y=1;else{var m=v*Math.PI*2;g=i+m,p=[n*Math.cos(g),-n*Math.sin(g)],y=m>Math.PI?1:0}var b={path:[["M",a[0],a[1]],["A",n,n,0,y,0,p[0],p[1]]],stroke:o.color||(d==null?void 0:d.attr("stroke"))||Y2[s%Y2.length],lineWidth:u};return d?d.attr(b):e.shapeMap["".concat(If).concat(s)]=e.addShape("path",{attrs:b,name:"".concat(If).concat(s),draggable:!0}),{beginAngle:g,arcBegin:p,shape:e.shapeMap["".concat(If).concat(s)],shouldEnd:c||v>.999}},ife=function(e,r,n){var a=e.donutAttrs,i=a===void 0?{}:a,o=e.donutColorMap,s=o===void 0?{}:o,u=Object.keys(i).length;if(i&&u>1){var f=TO(i,s),l=f.configs,c=f.totalValue;if(c){var h=IO(n),d=h.lineWidth,v=h.arcR,p=[v,0],g=0;if(u===1){Zg(r,{arcR:v,arcBegin:p,beginAngle:g,config:l[0],fanIndex:0,lineWidth:d,totalValue:c,drawWhole:!0});return}for(var y=0;y=0;i--){var o=e[i];o.id="".concat(o.x,"|||").concat(o.y),n[o.id]||(n[o.id]=o,r.push(o))}return r},kO=function(e){return v1(e)},vd=function(e,r){return e.width||e.height?{centerX:e.centerX,centerY:e.centerY,minX:e.minX-r,minY:e.minY-r,maxX:e.maxX+r,maxY:e.maxY+r,height:e.height+2*r,width:e.width+2*r}:e},ufe=function(e,r){var n=Math.abs(e.x-r.centerX),a=Math.abs(e.y-r.centerY);return n===0&&a===0?0:n/r.width>a/r.height},Kg=function(e,r,n){var a=ufe(r,e);if(a===0){var i=e.centerX,o=e.centerY;return n.yr.x?i=e.maxX:n.xe.centerX?e.maxX:e.minX,y:r.y}:{x:r.x,y:r.y>e.centerY?e.maxY:e.minY}},q2=function(e,r){var n=Math.min(e.minX,r.minX),a=Math.min(e.minY,r.minY),i=Math.max(e.maxX,r.maxX),o=Math.max(e.maxY,r.maxY);return{centerX:(n+i)/2,centerY:(a+o)/2,minX:n,minY:a,maxX:i,maxY:o,height:o-a,width:i-n}},Qg=function(e){return[{x:e.minX,y:e.minY},{x:e.maxX,y:e.minY},{x:e.maxX,y:e.maxY},{x:e.minX,y:e.maxY}]},Hc=function(e,r){var n=e.x,a=e.y;return nr.maxX||ar.maxY},ffe=function(e,r){return re.maxX?[]:[{x:r,y:e.minY},{x:r,y:e.maxY}]},lfe=function(e,r){return re.maxY?[]:[{x:e.minX,y:r},{x:e.maxX,y:r}]},cfe=function(e,r){return ffe(e,r.x).concat(lfe(e,r.y))},Kf=function(e,r){return Math.abs(e.x-r.x)+Math.abs(e.y-r.y)},hfe=function(e,r){var n=-2,a=0;return r.forEach(function(i){i&&(e.x===i.x&&(a+=n),e.y===i.y&&(a+=n))}),a},H2=function(e,r,n,a,i){return Kf(e,r)+Kf(e,n)+hfe(e,[r,n,a,i])},NO=function(e,r,n,a,i){i===void 0&&(i=0),e.unshift(r[a]),n[a]&&n[a]!==a&&i<=100&&NO(e,r,n,n[a],i+1)},Zc=function(e,r,n,a){var i=n.x-e.x,o=n.y-e.y,s=a.x-e.x,u=a.y-e.y,f=n.x-r.x,l=n.y-r.y,c=a.x-r.x,h=a.y-r.y,d=i*u-o*s,v=f*h-l*c,p=i*l-o*f,g=s*h-u*c;return d*v<=0&&p*g<=0},Jg=function(e,r,n){if(n.width||n.height){var a=Qg(n),i=a[0],o=a[1],s=a[2],u=a[3];return Zc(e,r,i,o)||Zc(e,r,i,u)||Zc(e,r,o,s)||Zc(e,r,s,u)}return!1},dfe=function(e,r,n,a){var i=[];return e.forEach(function(o){if(o!==r&&(o.x===r.x||o.y===r.y)){if(Jg(o,r,n)||Jg(o,r,a))return;i.push(o)}}),v1(i)},OO=function(){function t(){this.arr=[],this.map={},this.arr=[],this.map={}}return t.prototype._innerAdd=function(e,r){for(var n=[0,r-1];n[1]-n[0]>1;){var a=Math.floor((n[0]+n[1])/2);if(this.arr[a].value>e.value)n[1]=a;else if(this.arr[a].value=0;r--)this.map[this.arr[r].id]?e=this.arr[r].id:this.arr.splice(r,1);return e},t.prototype._findFirstId=function(){for(;this.arr.length;){var e=this.arr.shift();if(this.map[e.id])return e.id}},t.prototype.minId=function(e){return e?this._clearAndGetMinId():this._findFirstId()},t}(),vfe=function(e,r,n,a,i,o,s){var u,f=[],l=(u={},u[r.id]=r,u),c={},h={},d={};h[r.id]=0,d[r.id]=H2(r,n,r);var v=new OO;v.add({id:r.id,value:d[r.id]});var p={};e.forEach(function(x){p[x.id]=x});for(var g;Object.keys(l).length;){var y=v.minId(!1);if(y)g=l[y];else break;if(g===n){var m=[];return NO(m,p,c,n.id),m}delete l[g.id],v.remove(g.id),f.push(g);var b=dfe(e,g,a,i),w=function(E){E.forEach(function(_){if(f.indexOf(_)===-1){var S=_.id;l[S]||(l[S]=_);var A=d[g.id]+Kf(g,_);if(h[S]&&A>=h[S]){v.add({id:S,value:d[S]});return}c[S]=g.id,h[S]=A,d[S]=h[S]+H2(_,n,r,o,s),v.add({id:S,value:d[S]})}})};w(b)}return[r,n]},pfe=function(e,r,n){return!(e.x===r.x&&r.x===n.x||e.y===r.y&&r.y===n.y)},gfe=function(e,r,n,a){var i=Kf(e,r),o=Kf(n,r);i=0;o--){var s=e[o];if(s.x===n.x?a.push(s):(a=[s],n.x=s.x),s.y===n.y?i.push(s):(i=[s],n.y=s.y),a.length>2){var u=e.indexOf(a[1]);u>-1&&e.splice(u,1);continue}if(i.length>2){var u=e.indexOf(i[1]);u>-1&&e.splice(u,1)}}return e},mfe=function(e,r){return Math.abs(e.x-r.x)+Math.abs(e.y-r.y)},bfe=function(e,r,n,a,i){return kO(LO(e,r,n,a,i.offset))},wfe={offset:20,maxAllowedDirectionChange:Math.PI/2,maximumLoops:2e3,gridSize:10,directions:[{stepX:1,stepY:0},{stepX:-1,stepY:0},{stepX:0,stepY:1},{stepX:0,stepY:-1}],get penalties(){return{0:0,45:this.gridSize/2,90:this.gridSize/2}},distFunc:mfe,fallbackRoute:bfe},vi=function(e,r){var n=Math.round(Math.abs(e/r)),a=e<0?-1:1;return n<0?0:a*n},xfe=function(e,r,n){var a={};return e.forEach(function(i){if(i)for(var o=vd(i.getBBox(),n),s=vi(o.minX,r);s<=vi(o.maxX,r);s+=1)for(var u=vi(o.minY,r);u<=vi(o.maxY,r);u+=1)a["".concat(s,"|||").concat(u)]=!0}),a},m0=function(e,r){var n=r.x-e.x,a=r.y-e.y;return n||a?Math.atan2(a,n):0},K2=function(e,r){var n=Math.abs(e-r);return n>Math.PI?2*Math.PI-n:n},Q2=function(e,r,n){for(var a=1/0,i=0,o=r.length;if.minX&&r.xf.minY&&r.y0&&E>0;){var B=b.minId((E+1)%30===0);if(B)_=v[B];else break;if(O["".concat(_.x,"|||").concat(_.y)])return Efe(_,g,l,r,e,c,u);delete v[_.id],b.remove(_.id),p[_.id]=!0;for(var w=0;wo.maxAllowedDirectionChange)&&!f[L])){v[L]||(v[L]=A);var z=s[I];M=o.distFunc(_,A)+(isNaN(z)?u:z),C=y[_.id]+M;var X=y[L];X&&C>=X||(g[L]=_,y[L]=C,m[L]=C+Q2(A,d,o.distFunc),b.add({id:L,value:m[L]}))}}E-=1}return o.fallbackRoute(e,r,n,a,o)};B8("polyline",{options:{color:Qe.defaultEdge.color,size:Qe.defaultEdge.size,style:{radius:0,offset:15,x:0,y:0,stroke:Qe.defaultEdge.style.stroke,lineAppendWidth:Qe.defaultEdge.style.lineAppendWidth},labelCfg:{style:{fill:Qe.edgeLabel.style.fill,fontSize:Qe.edgeLabel.style.fontSize,fontFamily:Qe.windowFontFamily}},routeCfg:{obstacles:[],maxAllowedDirectionChange:Math.PI,maximumLoops:500,gridSize:10},stateStyles:P({},Qe.edgeStateStyles)},shapeType:"polyline",labelPosition:"center",drawShape:function(e,r){var n=this.getShapeStyle(e);n.radius===0&&delete n.radius;var a=r.addShape("path",{className:"edge-shape",name:"edge-shape",attrs:n});return r.shapeMap["edge-shape"]=a,a},getShapeStyle:function(e){var r=this.options.style,n={stroke:e.color},a=Et({},r,n,e.style);e=this.getPathPoints(e),this.radius=a.radius,this.offset=a.offset;var i=e.startPoint,o=e.endPoint,s=this.getControlPoints(e),u=[i];s&&(u=u.concat(s)),u.push(o);var f=e.sourceNode,l=e.targetNode,c=a.radius,h=this.options.routeCfg,d=Et({},h,e.routeCfg);d.offset=a.offset;var v=this.getPath(u,f,l,c,d,!s);(bt(v)&&v.length<=1||Ye(v)&&v.indexOf("L")===-1)&&(v="M0 0, L0 0"),(isNaN(i.x)||isNaN(i.y)||isNaN(o.x)||isNaN(o.y))&&(v="M0 0, L0 0");var p=Et({},Qe.defaultEdge.style,a,{lineWidth:e.size,path:v});return p},updateShapeStyle:function(e,r){var n=r.getContainer();if(r.isVisible()){var a={stroke:e.color},i=n.shapeMap["edge-shape"]||n.find(function(w){return w.get("className")==="edge-shape"})||r.getKeyShape(),o=e.size;e=this.getPathPoints(e);var s=e.startPoint,u=e.endPoint,f=this.getControlPoints(e),l=[s];f&&(l=l.concat(f)),l.push(u);var c=i.attr(),h=Et({},a,c,e.style),d=e.sourceNode,v=e.targetNode,p=h.radius,g=this.options.routeCfg,y=Et({},g,e.routeCfg);y.offset=h.offset;var m=this.getPath(l,d,v,p,y,!f);(bt(m)&&m.length<=1||Ye(m)&&m.indexOf("L")===-1)&&(m="M0 0, L0 0"),(isNaN(s.x)||isNaN(s.y)||isNaN(u.x)||isNaN(u.y))&&(m="M0 0, L0 0"),c.endArrow&&h.endArrow===!1&&(e.style.endArrow={path:""}),c.startArrow&&h.startArrow===!1&&(e.style.startArrow={path:""});var b=Et(a,i.attr(),{lineWidth:o,path:m},e.style);i&&i.attr(b)}},getPath:function(e,r,n,a,i,o){var s=i.offset,u=i.obstacles,f=i.simple;if(!s||e.length>2||o===!1){if(a)return Z2(e,a);var l=[];return _e(e,function(v,p){p===0?l.push(["M",v.x,v.y]):l.push(["L",v.x,v.y])}),l}f!==!1&&!(u!=null&&u.length)&&(f=!0);var c=f?LO(e[e.length-1],e[0],n,r,s):_fe(e[0],e[e.length-1],r,n,i);if(!c||!c.length)return"M0 0, L0 0";if(a){var h=Z2(c,a);return h}c=yfe(c);var d=Za.pointsToPolygon(c);return d}},"single-edge");var eS=so.cloneEvent,tS=so.isNaN,rS=Math.abs,Sfe=10,Mfe=["shift","ctrl","alt","control"];const Afe={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,scalableRange:0,allowDragOnItem:!1}},getEvents:function(){return{mousedown:"onMouseDown",drag:"onDragMove",dragend:"onMouseUp","canvas:click":"onMouseUp",keyup:"onKeyUp",focus:"onKeyUp",keydown:"onKeyDown",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onMouseUp"}},updateViewport:function(e){var r=this.origin,n=+e.clientX,a=+e.clientY;if(!(tS(n)||tS(a))){var i=n-r.x,o=a-r.y;this.get("direction")==="x"?o=0:this.get("direction")==="y"&&(i=0),this.origin={x:n,y:a};var s=this.graph.get("width"),u=this.graph.get("height"),f=this.graph.get("canvas").getCanvasBBox(),l=this.scalableRange,c=this.scalableRange;l<1&&l>-1&&(l=s*l,c=u*c),(f.minX<=s+l&&f.minX+i>s+l||f.maxX+l>=0&&f.maxX+l+i<0)&&(i=0),(f.minY<=u+c&&f.minY+o>u+c||f.maxY+c>=0&&f.maxY+c+o<0)&&(o=0),this.graph.translate(i,o)}},onTouchStart:function(e){var r=this,n=e.originalEvent.touches,a=n[0],i=n[1];a&&i||(e.preventDefault(),this.mousedown=!0,r.onDragStart(e))},onMouseDown:function(e){this.mousedown=!0},onDragMove:function(e){this.mousedown&&(this.dragstart?this.onDrag(e):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var r=this,n=e.originalEvent;if(!(n&&e.name!=="touchstart"&&n.button!==0)&&!(e.name!=="touchstart"&&typeof window<"u"&&window.event&&!window.event.buttons&&!window.event.button)&&this.shouldBegin(e,this)&&!r.keydown&&this.allowDrag(e)){if(r.origin={x:e.clientX,y:e.clientY},r.dragging=!1,this.enableOptimize){for(var a=this.graph,i=a.getEdges(),o=0,s=i.length;ou)for(var d=a.getNodes(),v=0,p=d.length;v-1?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){this.keydown=!1,this.origin=null,this.dragging=!1,this.dragbegin=!1},allowDrag:function(e){var r,n,a=e.target,i=a&&a.isCanvas&&a.isCanvas();if(Qf(this.allowDragOnItem)&&!this.allowDragOnItem&&!i)return!1;if(gn(this.allowDragOnItem)){var o=this.allowDragOnItem,s=o.node,u=o.edge,f=o.combo,l=(n=(r=e.item)===null||r===void 0?void 0:r.getType)===null||n===void 0?void 0:n.call(r);if(!s&&l==="node"||!u&&l==="edge"||!f&&l==="combo")return!1}return!0}},Cfe={getDefaultCfg:function(){return{updateEdge:!0,delegateStyle:{},enableDelegate:!1,onlyChangeComboSize:!1,comboActiveState:"",selectedState:"selected",enableOptimize:!1,enableDebounce:!1,enableStack:!0}},getEvents:function(){return{"node:mousedown":"onMouseDown",drag:"onDragMove",dragend:"onDragEnd","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave","combo:drop":"onDropCombo","node:drop":"onDropNode","canvas:drop":"onDropCanvas",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onDragEnd",afterchangedata:"onDragEnd"}},validationCombo:function(e){if(!this.origin||!e||e.destroyed)return!1;var r=e.getType();return r==="combo"},onTouchStart:function(e){if(e.item){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},this.dragstart=!0,r.onDragStart(e)}},onTouchMove:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i){r.onDragEnd(e);return}e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.onDrag(e)},onMouseDown:function(e){this.mousedown={item:e.item,target:e.target,origin:{x:e.x,y:e.y}},typeof window<"u"&&!this.windowEventBinded&&(this.windowEventBinded=!0,document.body.addEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.addEventListener("mouseup",this.onDragEnd.bind(this)))},onDragMove:function(e){var r,n;if(((n=(r=e.item)===null||r===void 0?void 0:r.getType)===null||n===void 0?void 0:n.call(r))!=="node"){this.onDragEnd();return}this.mousedown&&(this.dragstart?this.onDrag(P(P({},e),this.mousedown)):(this.dragstart=!0,this.onDragStart(e)))},onDragStart:function(e){var r=this;if(this.currentShouldEnd=!0,!!this.shouldBegin(P(P({},e),this.mousedown),this)){var n=this.mousedown,a=n.item,i=n.target;if(!(!a||a.destroyed||a.hasLocked())){var o=a.getContainer();if(o.set("capture",!1),this.cachedCaptureItems||(this.cachedCaptureItems=[]),this.cachedCaptureItems.push(a),i){var s=i.get("isAnchorPoint");if(s)return}var u=this.graph;this.targets=[],this.targetCombo=null;var f=u.findAllByState("node",this.selectedState),l=a.get("id"),c=f.filter(function(d){var v=d.get("id");return l===v});if(c.length===0?this.targets.push(a):f.length>1?f.forEach(function(d){var v=d.hasLocked();v||r.targets.push(d)}):this.targets.push(a),this.graph.get("enabledStack")&&this.enableStack){var h=[];this.targets.forEach(function(d){var v=d.getModel(),p=v.x,g=v.y,y=v.id;h.push({x:p,y:g,id:y})}),this.set("beforeDragNodes",h)}this.hidenEdge={},this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(d){var v=d.getEdges();v.forEach(function(p){p.isVisible()&&(r.hidenEdge[p.getID()]=!0,p.hide())})}),this.origin=this.mousedown.origin,this.point={},this.originPoint={}}}},onDrag:function(e){var r=this;if(!(!this.mousedown||!this.origin)&&this.shouldUpdate(e,this))if(this.get("enableDelegate"))this.updateDelegate(e);else if(this.enableDebounce)this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos});else{var n={};this.targets.map(function(a){r.update(a,e);var i=a.getModel().comboId;i&&(n[i]=r.graph.findById(i))}),this.onlyChangeComboSize&&this.updateParentCombos()}},onDragEnd:function(e){var r=this,n;if(this.mousedown=!1,this.dragstart=!1,typeof window<"u"&&this.windowEventBinded&&(this.windowEventBinded=!1,document.body.removeEventListener("contextmenu",this.onDragEnd.bind(this)),document.body.removeEventListener("mouseup",this.onDragEnd.bind(this))),!!this.origin){(n=this.cachedCaptureItems)===null||n===void 0||n.forEach(function(o){var s=o.getContainer();s.set("capture",!0)}),this.cachedCaptureItems=[],this.delegateRect&&(this.delegateRect.remove(),this.delegateRect=null),this.get("updateEdge")&&this.enableOptimize&&!this.enableDelegate&&this.targets.forEach(function(o){var s=o.getEdges();s.forEach(function(u){r.hidenEdge[u.getID()]&&u.show(),u.refresh()})}),this.hidenEdge={};var a=this.graph;if(a.get("enabledStack")&&this.enableStack){var i={before:{nodes:[],edges:[],combos:[]},after:{nodes:[],edges:[],combos:[]}};this.get("beforeDragNodes").forEach(function(o){i.before.nodes.push(o)}),this.targets.forEach(function(o){var s=o.getModel(),u=s.x,f=s.y,l=s.id;i.after.nodes.push({x:u,y:f,id:l})}),a.pushStack("update",rr(i))}a.emit("dragnodeend",{items:this.targets,targetItem:null}),this.point={},this.origin=null,this.originPoint={},this.targets.length=0,this.targetCombo=null}},onDropCombo:function(e){var r=e.item;if(this.currentShouldEnd=this.shouldEnd(e,r,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!this.validationCombo(r))){var n=this.graph;if(this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1),this.targetCombo=r,this.onlyChangeComboSize)n.updateCombos();else{var a=r.getModel();this.targets.map(function(i){var o=i.getModel();o.comboId!==a.id&&n.updateComboTree(i,a.id)}),n.updateCombo(r)}n.emit("dragnodeend",{items:this.targets,targetItem:this.targetCombo})}},onDropCanvas:function(e){var r=this.graph;this.currentShouldEnd=this.shouldEnd(e,void 0,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.targets||this.targets.length===0||!this.currentShouldEnd)&&(this.onlyChangeComboSize?this.updateParentCombos():this.targets.map(function(n){var a=n.getModel();a.comboId&&r.updateComboTree(n)}))},onDropNode:function(e){if(!(!this.targets||this.targets.length===0)){var r=this,n=e.item,a=r.graph,i=n.getModel().comboId,o=i?a.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){if(this.onlyChangeComboSize)this.updateParentCombos();else if(i){var s=a.findById(i);r.comboActiveState&&a.setItemState(s,r.comboActiveState,!1),this.targets.map(function(u){var f=u.getModel();i!==f.comboId&&a.updateComboTree(u,i)}),a.updateCombo(s)}else this.targets.map(function(u){var f=u.getModel();f.comboId&&a.updateComboTree(u)});a.emit("dragnodeend",{items:this.targets,targetItem:n})}}},onDragEnter:function(e){var r=e.item;if(this.validationCombo(r)){var n=this.graph;this.comboActiveState&&n.setItemState(r,this.comboActiveState,!0)}},onDragLeave:function(e){var r=e.item;if(this.validationCombo(r)){var n=this.graph;this.comboActiveState&&n.setItemState(r,this.comboActiveState,!1)}},updatePositions:function(e,r){var n=this;!this.targets||this.targets.length===0||(this.get("enableDelegate")?this.enableDebounce?this.debounceUpdate({targets:this.targets,graph:this.graph,point:this.point,origin:this.origin,evt:e,updateEdge:this.get("updateEdge"),onlyChangeComboSize:this.onlyChangeComboSize,updateParentCombos:this.updateParentCombos}):r||this.targets.map(function(a){return n.update(a,e)}):this.targets.map(function(a){return n.update(a,e,r)}))},update:function(e,r,n){var a=this.origin,i=e.get("model"),o=e.get("id");this.point[o]||(this.point[o]={x:i.x||0,y:i.y||0});var s=r.x-a.x+this.point[o].x,u=r.y-a.y+this.point[o].y;n&&(s+=a.x-r.x,u+=a.y-r.y);var f={x:s,y:u};this.get("updateEdge")?this.graph.updateItem(e,f,!1):e.updatePosition(f)},debounceUpdate:oy(function(t){var e=t.targets,r=t.graph,n=t.point,a=t.origin,i=t.evt,o=t.updateEdge,s=t.onlyChangeComboSize,u=t.updateParentCombos;e.map(function(f){var l=f.get("model"),c=f.get("id");n[c]||(n[c]={x:l.x||0,y:l.y||0});var h=i.x-a.x+n[c].x,d=i.y-a.y+n[c].y,v={x:h,y:d};o?r.updateItem(f,v,!1):f.updatePosition(v)}),s&&u(r,e)},50,!0),updateDelegate:function(e){var r=this.graph;if(this.delegateRect){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateRect.attr({x:h,y:d})}else{var n=r.get("group"),a=_r({},Mf.delegateStyle,this.delegateStyle),i=this.calculationGroupPosition(e),o=i.x,s=i.y,u=i.width,f=i.height,l=i.minX,c=i.minY;this.originPoint={x:o,y:s,width:u,height:f,minX:l,minY:c},this.delegateRect=n.addShape("rect",{attrs:P({width:u,height:f,x:o,y:s},a),name:"rect-delegate-shape"}),this.delegate=this.delegateRect,this.delegateRect.set("capture",!1)}},calculationGroupPosition:function(e){var r=this.targets;r.length===0&&r.push(e.item);for(var n=1/0,a=-1/0,i=1/0,o=-1/0,s=0;sa&&(a=h),d>o&&(o=d)}var v=Math.floor(n),p=Math.floor(i),g=Math.ceil(a)-Math.floor(n),y=Math.ceil(o)-Math.floor(i);return{x:v,y:p,width:g,height:y,minX:n,minY:i}},updateParentCombos:function(e,r){var n=e||this.graph,a=r||this.targets,i={};a==null||a.forEach(function(o){var s=o.getModel().comboId;s&&(i[s]=n.findById(s))}),Object.values(i).forEach(function(o){o&&n.updateCombo(o)})}};var Kc=null;const Tfe={getDefaultCfg:function(){return{trigger:"mouseenter",activeState:"active",inactiveState:"inactive",resetSelected:!1,shouldClearStatusOnSecond:!1,shouldUpdate:function(){return!0}}},getEvents:function(){return this.get("trigger")==="mouseenter"?{"node:mouseenter":"setAllItemStates","combo:mouseenter":"setAllItemStates","node:mouseleave":"clearActiveState","combo:mouseleave":"clearActiveState"}:{"node:click":"setAllItemStates","combo:click":"setAllItemStates","canvas:click":"clearActiveState","node:touchstart":"setOnTouchStart","combo:touchstart":"setOnTouchStart","canvas:touchstart":"clearOnTouchStart"}},setOnTouchStart:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.setAllItemStates(e)},clearOnTouchStart:function(e){var r=this;try{var n=e.originalEvent.touches,a=n[0],i=n[1];if(a&&i)return;e.preventDefault()}catch{console.warn("Touch original event not exist!")}r.clearActiveState(e)},setAllItemStates:function(e){clearTimeout(this.timer),this.throttleSetAllItemStates(e,this)},clearActiveState:function(e){var r=this,n=this.shouldClearStatusOnSecond;n&&(Kc=null),this.timer=setTimeout(function(){r.throttleClearActiveState(e,r)},50)},throttleSetAllItemStates:Ch(function(t,e){var r=t.item,n=e.graph;if(!(!n||n.destroyed)&&(e.item=r,!!e.shouldUpdate(t.item,{event:t,action:"activate"},e))){var a=e.shouldClearStatusOnSecond,i=r.getModel().id;if(Kc===i&&a){e.throttleClearActiveState(t,e),Kc=null;return}for(var o=e.activeState,s=e.inactiveState,u=n.getNodes(),f=n.getCombos(),l=n.getEdges(),c=n.get("vedges"),h=u.length,d=f.length,v=l.length,p=c.length,g=e.inactiveItems||{},y=e.activeItems||{},m=0;m-1||(this.trigger=iS,console.warn("Behavior brush-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates"}:{dragstart:"onMouseDown",drag:"onMouseMove",dragend:"onMouseUp","canvas:click":"clearStates",keyup:"onKeyUp",keydown:"onKeyDown"}},onMouseDown:function(e){var r=e.item,n=this.brush,a=this.selectOnCombo,i=(r==null?void 0:r.getType())==="combo";i&&!a||!i&&r||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates(),n||(n=this.createBrush()),this.originPoint={x:e.canvasX,y:e.canvasY},n.attr({width:0,height:0}),n.show(),this.dragging=!0)},onMouseMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||this.updateBrush(e))},onMouseUp:function(e){this.graph,!(!this.brush&&!this.dragging)&&(this.trigger!=="drag"&&!this.keydown||(this.brush.remove(!0),this.brush=null,this.getSelectedNodes(e),this.dragging=!1))},clearStates:function(){var e=this,r=e.graph,n=e.selectedState,a=r.findAllByState("node",n),i=r.findAllByState("edge",n),o=r.findAllByState("combo",n);a.forEach(function(s){return r.setItemState(s,n,!1)}),i.forEach(function(s){return r.setItemState(s,n,!1)}),o.forEach(function(s){return r.setItemState(s,n,!1)}),this.selectedNodes=[],this.selectedEdges=[],this.selectedCombos=[],this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges,this.selectedCombos),r.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})},isBBoxCenterInRect:function(e,r,n,a,i){var o=e.getBBox();return o.centerX>=r&&o.centerX<=n&&o.centerY>=a&&o.centerY<=i},getSelectedNodes:function(e){var r=this,n=this,a=n.graph,i=n.originPoint,o=n.shouldUpdate,s=n.isBBoxCenterInRect,u=this.selectedState,f={x:e.x,y:e.y},l=a.getPointByCanvas(i.x,i.y),c=Qc(f.x,l.x),h=nS(f.x,l.x),d=Qc(f.y,l.y),v=nS(f.y,l.y),p=[],g=[];a.getNodes().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",r)){p.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}});var y=[];this.includeEdges&&p.forEach(function(b){var w=b.getOutEdges();w.forEach(function(x){if(x.isVisible()){var E=x.getModel(),_=E.source,S=E.target;g.includes(_)&&g.includes(S)&&o(x,"select",r)&&(y.push(x),a.setItemState(x,r.selectedState,!0))}})});var m=[];this.includeCombos&&a.getCombos().forEach(function(b){if(b.isVisible()&&s(b,c,h,d,v)&&o(b,"select",r)){m.push(b);var w=b.getModel();g.push(w.id),a.setItemState(b,u,!0)}}),this.selectedEdges=y,this.selectedNodes=p,this.selectedCombos=m,this.onSelect&&this.onSelect(p,y,m),a.emit("nodeselectchange",{selectedItems:{nodes:p,edges:y,combos:m},select:!0})},createBrush:function(){var e=this,r=e.graph.get("canvas").addShape("rect",{attrs:e.brushStyle,capture:!1,name:"brush-shape"});return this.brush=r,this.delegate=r,r},updateBrush:function(e){var r=this.originPoint;this.brush.attr({width:aS(e.canvasX-r.x),height:aS(e.canvasY-r.y),x:Qc(e.canvasX,r.x),y:Qc(e.canvasY,r.y)})},onKeyDown:function(e){var r=e.key;if(r){var n=this.trigger.toLowerCase(),a=r.toLowerCase();a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.keydown=!0:this.keydown=!1}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.keydown=!1}};var oS="shift",Nfe=["shift","ctrl","alt","control"];const Ofe={getDefaultCfg:function(){return{multiple:!0,trigger:oS,selectedState:"selected",selectNode:!0,selectEdge:!1,selectCombo:!0}},getEvents:function(){var e=this;return Nfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=oS,console.warn("Behavior click-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),e.multiple?{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick",keyup:"onKeyUp",keydown:"onKeyDown"}:{"node:click":"onClick","combo:click":"onClick","edge:click":"onClick","canvas:click":"onCanvasClick"}},onClick:function(e){var r=this,n=e.item;if(!(!n||n.destroyed)){var a=n.getType(),i=r.graph,o=r.keydown,s=r.multiple,u=r.shouldUpdate,f=r.shouldBegin;if(f(e,r)){if(!o||!s){var l=i.findAllByState("node",r.selectedState).concat(i.findAllByState("edge",r.selectedState)).concat(i.findAllByState("combo",r.selectedState));_e(l,function(p){p!==n&&i.setItemState(p,r.selectedState,!1)})}var c=function(){switch(a){case"node":return r.selectNode;case"edge":return r.selectEdge;case"combo":return r.selectCombo;default:return!1}}();if(!c){var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{selectedItems:{nodes:h,edges:d,combos:v},select:!1});return}if(n.hasState(r.selectedState)){u(e,r)&&i.setItemState(n,r.selectedState,!1);var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!1})}else{u(e,r)&&i.setItemState(n,r.selectedState,!0);var h=i.findAllByState("node",r.selectedState),d=i.findAllByState("edge",r.selectedState),v=i.findAllByState("combo",r.selectedState);i.emit("nodeselectchange",{target:n,selectedItems:{nodes:h,edges:d,combos:v},select:!0})}}}},onCanvasClick:function(e){var r=this,n=this,a=n.graph,i=n.shouldBegin;if(i(e,this)){var o=a.findAllByState("node",this.selectedState);_e(o,function(f){a.setItemState(f,r.selectedState,!1)});var s=a.findAllByState("edge",this.selectedState);_e(s,function(f){a.setItemState(f,r.selectedState,!1)});var u=a.findAllByState("combo",this.selectedState);_e(u,function(f){a.setItemState(f,r.selectedState,!1)}),a.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[],combos:[]},select:!1})}},onKeyDown:function(e){var r=this,n=e.key;n&&(n.toLowerCase()===this.trigger.toLowerCase()||n.toLowerCase()==="control"?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){var e=this;e.keydown=!1}};var Lfe=eo,Jc=.05;const Dfe={getDefaultCfg:function(){return this.isFireFox=SO()==="firefox",{sensitivity:2,minZoom:void 0,maxZoom:void 0,enableOptimize:!1,optimizeZoom:.1,fixSelectedItems:{fixAll:!1,fixLineWidth:!1,fixLabel:!1,fixState:"selected"},animate:!1,animateCfg:{duration:500}}},getEvents:function(){var e=this.fixSelectedItems;return e.fixState||(e.fixState="selected"),e.fixAll&&(e.fixLineWidth=!0,e.fixLabel=!0),{wheel:"onWheel",touchstart:"onTouchStart",touchmove:"onTouchMove",touchend:"onTouchEnd"}},onTouchStart:function(e){var r=e.originalEvent.touches,n=r[0],a=r[1];e.preventDefault(),a&&(this.shouldBegin&&!this.shouldBegin(e,this)||(this.startPoint={pageX:n.pageX,pageY:n.pageY},this.moveable=!0,a&&(this.endPoint={pageX:a.pageX,pageY:a.pageY}),this.originScale=this.graph.getZoom()||this.currentScale||1))},onTouchMove:function(e){if(this.moveable){e.preventDefault();var r=e.originalEvent.touches,n=r[0],a=r[1];if(a){this.endPoint||(this.endPoint={pageX:a.pageX,pageY:a.pageY});var i=function(p,g){return Math.hypot(g.x-p.x,g.y-p.y)},o=i({x:n.pageX,y:n.pageY},{x:a.pageX,y:a.pageY})/i({x:this.startPoint.pageX,y:this.startPoint.pageY},{x:this.endPoint.pageX,y:this.endPoint.pageY}),s=this.originScale*o;this.currentScale=s;var u=this.get("minZoom")||this.graph.get("minZoom"),f=this.get("maxZoom")||this.graph.get("maxZoom");if(!(s>f||s0||e.wheelDelta<0?l=1-Jc*u:l=1/(1-Jc*u):e.wheelDelta<0?l=1-Jc*u:l=1/(1-Jc*u),c=f*l;var h=this.get("minZoom")||a.get("minZoom"),d=this.get("maxZoom")||a.get("maxZoom");c>d?c=d:ca/2?l-=h.width:l+=this.offset,c>i/2?c-=h.height:c+=this.offset;var d="".concat(l,"px"),v="".concat(c,"px");Hu(this.container,{left:d,top:v,visibility:"visible"})},createTooltip:function(e){var r=e.get("el");r.style.position="relative";var n=cg('
'));return r.parentNode.appendChild(n),Hu(n,{position:"absolute",visibility:"visible"}),this.width=e.get("width"),this.height=e.get("height"),this.container=n,this.graph.get("tooltips").push(n),n}},Pfe=P({getDefaultCfg:function(){return{item:"node",offset:12,formatText:function(r){return r.label}}},getEvents:function(){return{"node:mouseenter":"onMouseEnter","node:mouseleave":"onMouseLeave","node:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},DO),Rfe=P({getDefaultCfg:function(){return{item:"edge",offset:12,formatText:function(r){return"source: ".concat(r.source," target: ").concat(r.target)}}},getEvents:function(){return{"edge:mouseenter":"onMouseEnter","edge:mouseleave":"onMouseLeave","edge:mousemove":"onMouseMove",afterremoveitem:"onMouseLeave"}}},DO);var sS="click",Ffe=["click","dblclick"];const Bfe={getDefaultCfg:function(){return{trigger:sS,onChange:function(){}}},getEvents:function(){var e,r;return Ffe.includes(this.trigger)?r=this.trigger:(r=sS,console.warn("Behavior collapse-expand 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["node:".concat(r)]="onNodeClick",e.touchstart="onNodeClick",e},onNodeClick:function(e){var r=this;if(this.trigger==="click"){if(this.timer){clearTimeout(this.timer),this.timer=0;return}this.timer=setTimeout(function(){r.toggle(e),clearTimeout(r.timer),r.timer=0},200)}else this.toggle(e)},toggle:function(e){var r=e.item;if(r){var n=this.graph.findDataById(r.get("id"));if(n){var a=n.children;if(!(!a||a.length===0)){var i=!n.collapsed;this.shouldBegin(e,i,this)&&(n.collapsed=i,r.getModel().collapsed=i,this.graph.emit("itemcollapsed",{item:e.item,collapsed:i}),this.shouldUpdate(e,i,this)&&(this.onChange(r,i,this),this.graph.layout()))}}}}};var Gfe=so.calculationItemsBBox,PO=function(e,r){if(r(e)!==!1&&e){var n=e.get("combos");if(n.length===0)return!1;_e(n,function(a){PO(a,r)})}};const zfe={getDefaultCfg:function(){return{enableDelegate:!1,delegateStyle:{},onlyChangeComboSize:!1,activeState:"",selectedState:"selected",enableStack:!0}},getEvents:function(){return{"combo:mousedown":"onMouseDown","combo:dragstart":"onDragStart","combo:drag":"onDrag","combo:dragend":"onDragEnd","combo:drop":"onDrop","node:drop":"onNodeDrop","combo:dragenter":"onDragEnter","combo:dragleave":"onDragLeave"}},validationCombo:function(e){var r=e.item;if(!r||r.destroyed||!this.shouldUpdate(e,this))return!1;var n=r.getType();return n==="combo"},onMouseDown:function(e){this.origin={x:e.x,y:e.y}},onDragStart:function(e){var r=this,n=this.graph,a=e.item;if(this.currentShouldEnd=!0,!!this.validationCombo(e)&&!a.hasLocked()){this.targets=[];var i=n.findAllByState("combo",this.selectedState),o=a.get("id"),s=i.filter(function(f){var l=f.get("id");return o===l});s.length===0?this.targets.push(a):this.targets=i.filter(function(f){return!f.hasLocked()});var u=[];this.targets.forEach(function(f){var l=f.getModel(),c=l.x,h=l.y,d=l.id;u.push({x:c,y:h,id:d})}),this.set("beforeDragItems",u),this.activeState&&this.targets.map(function(f){var l=f.getModel();if(l.parentId){var c=n.findById(l.parentId);c&&n.setItemState(c,r.activeState,!0)}}),this.point={},this.originPoint={},this.currentItemChildCombos=[],PO(a,function(f){if(f.destroyed)return!1;var l=f.getModel();return r.currentItemChildCombos.push(l.id),!0})}},onDrag:function(e){var r=this;if(this.origin&&this.validationCombo(e))if(this.enableDelegate)this.updateDelegate(e);else{if(this.activeState){var n=this.graph,a=e.item,i=a.getModel(),o=n.getCombos(),s=a.getBBox(),u=s.centerX,f=s.centerY,l=s.width,c=o.filter(function(h){var d=h.getModel();return i.parentId,d.id!==i.id&&!r.currentItemChildCombos.includes(d.id)});c.map(function(h){var d=h.getBBox(),v=d.centerX,p=d.centerY,g=d.width,y=u-v,m=f-p,b=2*Math.sqrt(y*y+m*m);l+g-b>.8*l?n.setItemState(h,r.activeState,!0):n.setItemState(h,r.activeState,!1)})}_e(this.targets,function(h){r.updateCombo(h,e)}),this.onlyChangeComboSize&&this.updateParentCombos()}},updatePositions:function(e,r){var n=this;(this.enableDelegate||r)&&_e(this.targets,function(a){n.updateCombo(a,e,r)})},onDrop:function(e){var r=this,n=e.item;if(this.currentShouldEnd=this.shouldEnd(e,n,this),this.updatePositions(e,!this.currentShouldEnd),!(!this.currentShouldEnd||!n||!this.targets||n.destroyed)){var a=this.graph,i=n.getModel();this.targets.map(function(o){var s=o.getModel();s.parentId!==i.id?(r.activeState&&a.setItemState(n,r.activeState,!1),r.onlyChangeComboSize?a.updateCombo(o):a.updateComboTree(o,i.id,!1)):a.updateCombo(n)}),this.end(n,e),this.endComparison=!0}},onNodeDrop:function(e){var r=this;if(!(!this.targets||this.targets.length===0)){var n=this.graph,a=e.item,i=a.getModel().comboId,o=i?n.findById(i):void 0;if(this.currentShouldEnd=this.shouldEnd(e,o,this),this.updatePositions(e,!this.currentShouldEnd),!!this.currentShouldEnd){var s;if(i){if(this.activeState){var u=n.findById(i);n.setItemState(u,this.activeState,!1)}this.targets.map(function(f){r.onlyChangeComboSize?n.updateCombo(f):i!==f.getID()&&(s=n.findById(i),i!==f.getModel().parentId&&n.updateComboTree(f,i,!1))})}else this.targets.map(function(f){if(r.onlyChangeComboSize)n.updateCombo(f);else{var l=f.getModel();l.comboId&&n.updateComboTree(f,void 0,!1)}});this.endComparison=!0,this.end(s,e)}}},onDragEnter:function(e){if(this.origin&&this.validationCombo(e)){var r=e.item,n=this.graph;this.activeState&&n.setItemState(r,this.activeState,!0)}},onDragLeave:function(e){if(this.origin&&this.validationCombo(e)){var r=e.item,n=this.graph;this.activeState&&n.setItemState(r,this.activeState,!1)}},onDragEnd:function(e){if(!(!this.targets||this.targets.length===0)){var r=e.item;this.currentShouldEnd&&this.updatePositions(e);var n=this.getParentCombo(r.getModel().parentId),a=this.graph;n&&this.activeState&&a.setItemState(n,this.activeState,!1),this.end(void 0,e)}},end:function(e,r){var n=this;if(this.origin){var a=this.graph;if(this.delegateShape){var i=a.get("delegateGroup");i.clear(),this.delegateShape=null}if(e&&this.activeState&&a.setItemState(e,this.activeState,!1),!e){var o=a.get("enabledStack")&&this.enableStack,s={before:{nodes:[],edges:[],combos:[].concat(this.get("beforeDragItems"))},after:{nodes:[],edges:[],combos:[]}};this.targets.map(function(u){if(!n.onlyChangeComboSize)a.updateComboTree(u,void 0,o);else{a.updateCombo(u);var f=u.getModel(),l=f.x,c=f.y,h=f.id;s.after.combos.push({x:l,y:c,id:h}),a.pushStack("update",s)}})}this.point=[],this.origin=null,this.originPoint=null,this.targets.length=0}},traverse:function(e,r,n){var a=this;if(n===void 0&&(n={}),r(e,n)!==!1&&e){var i=e.get("combos");_e(i,function(s){a.traverse(s,r,n)});var o=e.get("nodes");_e(o,function(s){a.traverse(s,r,n)})}},updateCombo:function(e,r,n){this.updateSingleItem(e,r,n);var a={};this.traverse(e,function(i,o){return i.destroyed?!1:(i.getEdges().forEach(function(s){return o[s.getID()]=s}),!0)},a),Object.values(a).forEach(function(i){return i.refresh()})},updateSingleItem:function(e,r,n){var a=this.origin,i=this.graph,o=e.getModel(),s=e.get("id");this.point[s]||(this.point[s]={x:o.x,y:o.y});var u=r.x-a.x+this.point[s].x,f=r.y-a.y+this.point[s].y;n&&(u+=a.x-r.x,f+=a.y-r.y),i.updateItem(e,{x:u,y:f},!1)},getParentCombo:function(e){var r=this.graph;if(e){var n=r.findById(e);if(n)return n}},updateDelegate:function(e){var r=this.graph;if(this.delegateShape){var h=e.x-this.origin.x+this.originPoint.minX,d=e.y-this.origin.y+this.originPoint.minY;this.delegateShape.attr({x:h,y:d})}else{var n=r.get("delegateGroup"),a=null;this.targets.length>1?a=Gfe(this.targets):a=this.targets[0].getBBox();var i=a.x,o=a.y,s=a.width,u=a.height,f=a.minX,l=a.minY;this.originPoint={x:i,y:o,width:s,height:u,minX:f,minY:l};var c=P(P({},Mf.delegateStyle),this.delegateStyle);this.delegateShape=n.addShape("rect",{attrs:P({width:a.width,height:a.height,x:a.x,y:a.y},c),name:"combo-delegate-shape"}),this.delegateShape.set("capture",!1),this.delegate=this.delegateShape}},updateParentCombos:function(){var e=this,r=e.graph,n=e.targets,a={};n==null||n.forEach(function(i){var o=i.getModel().parentId;o&&(a[o]=r.findById(o))}),Object.values(a).forEach(function(i){i&&r.updateCombo(i)})}};var uS="dblclick",jfe=["click","dblclick"];const Ufe={getDefaultCfg:function(){return{trigger:uS,relayout:!0}},getEvents:function(){var e,r;return jfe.includes(this.trigger)?r=this.trigger:(r=uS,console.warn("Behavior collapse-expand-group 的 trigger 参数不合法,请输入 'click' 或 'dblclick'")),e={},e["combo:".concat(r)]="onComboClick",e},onComboClick:function(e){var r=e.item,n=this,a=n.graph,i=n.relayout;if(!(!r||r.destroyed||r.getType()!=="combo")){var o=r.getModel(),s=o.id;s&&(a.collapseExpandCombo(s),i&&a.get("layout")?a.layout():a.refreshPositions())}}};var $fe=so.isPolygonsIntersect,Xfe=so.pathToPoints,fS="shift",Wfe=["drag","shift","ctrl","alt","control"],Vfe=function(e,r){var n,a=e.getKeyShape();if(e.get("type")==="path")n=Xfe(a.attr("path"));else{var i=a.getCanvasBBox();n=[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return $fe(r,n)};const Yfe={getDefaultCfg:function(){return{delegateStyle:{fill:"#EEF6FF",fillOpacity:.4,stroke:"#DDEEFE",lineWidth:1},onSelect:function(){},onDeselect:function(){},shouldDeselect:void 0,selectedState:"selected",trigger:fS,includeEdges:!0,selectedEdges:[],selectedNodes:[]}},getEvents:function(){return Wfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=fS,console.warn("Behavior lasso-select 的 trigger 参数不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'")),this.trigger==="drag"?{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd","canvas:click":"clearStates"}:{dragstart:"onDragStart",drag:"onDragMove",dragend:"onDragEnd",keyup:"onKeyUp",keydown:"onKeyDown","canvas:click":"clearStates"}},onDragStart:function(e){var r=this.lasso,n=e.item;n||this.trigger!=="drag"&&!this.keydown||(this.selectedNodes&&this.selectedNodes.length!==0&&this.clearStates("dragstart"),r||(r=this.createLasso()),this.dragging=!0,this.originPoint={x:e.x,y:e.y},this.points.push(this.originPoint),r.show())},onDragMove:function(e){this.dragging&&(this.trigger!=="drag"&&!this.keydown||(this.points.push({x:e.x,y:e.y}),this.updateLasso(e)))},onDragEnd:function(e){!this.lasso&&!this.dragging||this.trigger!=="drag"&&!this.keydown||(this.points.push(this.originPoint),this.getSelectedItems(),this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1)},getLassoPath:function(){var e=this.points,r=[];return e.length&&(e.forEach(function(n,a){a===0?r.push(["M",n.x,n.y]):r.push(["L",n.x,n.y])}),r.push(["L",e[0].x,e[0].y])),r},clearStates:function(e){e===void 0&&(e="canvas:click");var r=this,n=r.graph,a=r.selectedState,i=r.shouldDeselect,o=n.findAllByState("node",a),s=n.findAllByState("edge",a);(!i||i({action:e,nodes:o,edges:s}))&&(o.forEach(function(u){return n.setItemState(u,a,!1)}),s.forEach(function(u){return n.setItemState(u,a,!1)})),this.onDeselect&&this.onDeselect(this.selectedNodes,this.selectedEdges),this.selectedNodes=[],this.selectedEdges=[],n.emit("nodeselectchange",{selectedItems:{nodes:[],edges:[]},select:!1})},getSelectedItems:function(){var e=this,r=this,n=r.graph,a=r.shouldUpdate,i=this.points.map(function(l){return[n.getCanvasByPoint(l.x,l.y).x,n.getCanvasByPoint(l.x,l.y).y]}),o=this.selectedState,s=[],u=[];n.getNodes().forEach(function(l){if(l.isVisible()&&Vfe(l,i)&&a(l,"select",e)){s.push(l);var c=l.getModel();u.push(c.id),n.setItemState(l,o,!0)}});var f=[];this.includeEdges&&s.forEach(function(l){var c=l.getOutEdges();c.forEach(function(h){if(h.isVisible()){var d=h.getModel(),v=d.source,p=d.target;u.includes(v)&&u.includes(p)&&a(h,"select",e)&&(f.push(h),n.setItemState(h,e.selectedState,!0))}})}),this.selectedEdges=f,this.selectedNodes=s,this.onSelect&&this.onSelect(s,f),n.emit("nodeselectchange",{selectedItems:{nodes:s,edges:f},select:!0})},createLasso:function(){var e=this,r=e.graph.get("delegateGroup").addShape("path",{attrs:P({path:[]},e.delegateStyle),capture:!1,name:"lasso-shape"});return this.lasso=r,this.delegate=r,this.points=[],r},updateLasso:function(e){var r=this;this.lasso.attr({path:r.getLassoPath()})},onKeyDown:function(e){var r=e.key;r&&(r.toLowerCase()===this.trigger.toLowerCase()?this.keydown=!0:this.keydown=!1)},onKeyUp:function(){this.lasso&&(this.lasso.remove(!0),this.lasso=null,this.points=[],this.dragging=!1),this.keydown=!1}};var lS="click",qfe=["click","drag"],cS=void 0,Hfe=["shift","ctrl","control","alt","meta",void 0];const Zfe={getDefaultCfg:function(){return{trigger:lS,key:cS,edgeConfig:{},getEdgeConfig:void 0}},getEvents:function(){var e=this;qfe.indexOf(e.trigger.toLowerCase())>-1||(e.trigger=lS,console.warn("Behavior create-edge 的 trigger 参数不合法,请输入 'click','drag'")),e.key&&Hfe.indexOf(e.key.toLowerCase())===-1&&(e.trigger=cS,console.warn("Behavior create-edge 的 key 参数不合法,请输入 'shift','ctrl','alt','control',或 undefined"));var r;return e.trigger==="drag"?r={"node:dragstart":"onClick","combo:dragstart":"onClick",drag:"updateEndPoint","node:drop":"onClick","combo:drop":"onClick",dragend:"onDragEnd"}:e.trigger==="click"&&(r={"node:click":"onClick",mousemove:"updateEndPoint","edge:click":"cancelCreating","canvas:click":"cancelCreating","combo:click":"onClick"}),e.key&&(r.keydown="onKeyDown",r.keyup="onKeyUp"),r},onDragEnd:function(e){var r=this;if(!(r.key&&!r.keydown)){var n=e.item;(!n||n.getID()===r.source||n.getType()!=="node")&&r.cancelCreating({item:r.edge,x:e.x,y:e.y})}},onClick:function(e){var r=this;if(!(r.key&&!r.keydown)){var n=e.item,a=r.graph,i=n.getModel(),o=r.getEdgeConfig;if(r.addingEdge&&r.edge){if(!r.shouldEnd(e,r))return;var s=void 0;o&&Tr(o)?s=o({source:r.source,target:i.id},r):s=r.edgeConfig;var u=P({target:i.id},s);if(r.source===i.id&&(u.type="loop"),a.emit("beforecreateedge",{}),a.updateItem(r.edge,u,!1),a.get("enabledStack")){var f=P(P({},r.edge.getModel()),{itemType:"edge"}),l={};l.edges=[f],a.pushStack("add",{before:{},after:l})}a.emit("aftercreateedge",{edge:r.edge}),r.edge.getKeyShape().set("capture",!0),r.edge=null,r.addingEdge=!1}else{if(!r.shouldBegin(e,r))return;var s=void 0;o&&Tr(o)?s=o({source:i.id,target:i.id},r):s=r.edgeConfig,r.edge=a.addItem("edge",P({source:i.id,target:i.id},s),!1),r.source=i.id,r.addingEdge=!0,r.edge.getKeyShape().set("capture",!1)}}},updateEndPoint:function(e){var r=this;if(!(r.key&&!r.keydown)){r.edge&&r.edge.destroyed&&r.cancelCreating({item:r.edge});var n={x:e.x,y:e.y};if(!r.graph.findById(r.source)){r.addingEdge=!1;return}r.addingEdge&&r.edge&&r.graph.updateItem(r.edge,{target:n},!1)}},cancelCreating:function(e){var r,n,a=this;if(!(a.key&&!a.keydown)){var i=a.graph,o=e.item;if(a.addingEdge&&(a.edge===o||!((n=(r=e.target)===null||r===void 0?void 0:r.isCanvas)===null||n===void 0)&&n.call(r))){a.edge&&!a.edge.destroyed&&i.removeItem(a.edge,!1),a.edge=null,a.addingEdge=!1;return}}},onKeyDown:function(e){var r=this,n=e.key;n&&(n.toLowerCase()===r.key.toLowerCase()?r.keydown=!0:r.keydown=!1)},onKeyUp:function(){var e=this;e.addingEdge&&e.edge&&(e.graph.removeItem(e.edge,!1),e.addingEdge=!1,e.edge=null),this.keydown=!1}};var hS="ctrl",Kfe=["shift","ctrl","alt","control"],Qfe="1";const Jfe={getDefaultCfg:function(){return{trigger:hS,combinedKey:Qfe,functionName:"fitView",functionParams:[]}},getEvents:function(){return Kfe.indexOf(this.trigger.toLowerCase())>-1||(this.trigger=hS,console.warn("Behavior shortcuts-fit-view 的 trigger 参数 '".concat(this.trigger,"' 不合法,请输入 'drag'、'shift'、'ctrl' 或 'alt'"))),this.combinedKey===this.trigger&&(this.combinedKey=void 0),{keyup:"onKeyUp",keydown:"onKeyDown"}},onKeyDown:function(e){var r=e.key;if(r){var n=this.trigger.toLowerCase(),a=r.toLowerCase();this.triggerKeydown||(a===n||a==="control"&&n==="ctrl"||a==="ctrl"&&n==="control"?this.triggerKeydown=!0:this.triggerKeydown=!1);var i=this.graph;if(!i[this.functionName])return console.warn("Behavior shortcuts-fit-view 的 functionName 参数 '".concat(this.functionName,"' 不合法,它不是 Graph 的一个函数名")),{};if(this.triggerKeydown&&!this.combinedKey){this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]();return}var o=this.combinedKey.toLowerCase();this.triggerKeydown&&(a===o||a==="control"&&o==="ctrl"||a==="ctrl"&&o==="control")&&(this.functionParams&&this.functionParams.length?i[this.functionName].apply(i,this.functionParams):i[this.functionName]())}},onKeyUp:function(){this.brush&&(this.brush.remove(!0),this.brush=null,this.dragging=!1),this.triggerKeydown=!1}};var ele=["shift","ctrl","alt","control","meta"];const tle={getDefaultCfg:function(){return{direction:"both",enableOptimize:!1,zoomKey:"ctrl",scalableRange:0,allowDragOnItem:!0}},getEvents:function(){return(!this.zoomKey||ele.indexOf(this.zoomKey)===-1)&&(this.zoomKey="ctrl"),{wheel:"onWheel"}},onWheel:function(e){var r=this;if(this.allowDrag(e)){var n=this.graph,a=Array.isArray(this.zoomKey)?[].concat(this.zoomKey):[this.zoomKey];a.includes("control")&&a.push("ctrl");var i=a.some(function(V){return e["".concat(V,"Key")]});if(i){var o=n.get("canvas"),s=o.getPointByClient(e.clientX,e.clientY),u=n.getZoom();e.wheelDelta>0?u=u+u*.05:u=u-u*.05,n.zoomTo(u,{x:s.x,y:s.y})}else{var f=e.deltaX||e.movementX,l=e.deltaY||e.movementY;!l&&navigator.userAgent.indexOf("Firefox")>-1&&(l=-e.wheelDelta*125/3);var c=this.graph.get("width"),h=this.graph.get("height"),d=this.graph.get("canvas").getCanvasBBox(),v=this.scalableRange,p=this.scalableRange;v<1&&v>-1&&(v=c*v,p=h*p);var g=d.minX,y=d.maxX,m=d.minY,b=d.maxY;f>0?y<-v?f=0:y-f<-v&&(f=y+v):f<0&&(g>c+v?f=0:g-f>c+v&&(f=g-(c+v))),l>0?b<-p?l=0:b-l<-p&&(l=b+p):l<0&&(m>h+p?l=0:m-l>h+p&&(l=m-(h+p))),this.get("direction")==="x"?l=0:this.get("direction")==="y"&&(f=0),n.translate(-f,-l)}e.preventDefault();var w=this.get("enableOptimize");if(w){var x=this.get("optimizeZoom"),E=this.get("optimized"),_=n.getNodes(),S=n.getEdges(),A=_.length,M=S.length;if(!E){for(var C=0;C{const v=d.getModel();r.updateItem(d,{style:{fill:i(),stroke:l(v.os),lineWidth:2,radius:8,shadowColor:a()?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:o(),fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:v.online?"#22c55e":"#ef4444",stroke:i(),lineWidth:2}}})}),r.getEdges().forEach(d=>{const v=d.getModel(),g=String(v.id).startsWith("rel-")?"#f97316":"#3b82f6";r.updateItem(d,{labelCfg:{style:{fill:g,fontSize:11,fontWeight:500,background:{fill:i(),padding:[2,4],radius:4}}}})}),r.paint())}EP(async()=>{const[h,d,v]=await Promise.all([_P(),SP(),MP()]),p=h.data,g=d.data,y=v.data,m={};p.forEach(A=>m[A.id]=A);const b=a(),w=i(),x=o(),E=p.map(A=>({id:String(A.id),label:A.hostname,online:A.is_online,os:A.os_type,style:{fill:w,stroke:l(A.os_type),lineWidth:2,radius:8,shadowColor:b?"rgba(0,0,0,0.5)":"rgba(0,0,0,0.06)",shadowBlur:8,shadowOffsetY:2},labelCfg:{style:{fill:x,fontSize:13,fontWeight:600}},badgeCfg:{position:"topRight",style:{fill:A.is_online?"#22c55e":"#ef4444",stroke:w,lineWidth:2}}})),_=[];y.forEach(A=>{!m[A.source_machine_id]||!m[A.target_machine_id]||_.push({id:`rel-${A.id}`,source:String(A.source_machine_id),target:String(A.target_machine_id),label:c(A),style:{stroke:"#f97316",lineDash:[4,2],lineWidth:1.5,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#f97316"}},labelCfg:{style:{fill:"#f97316",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})}),g.forEach(A=>{A.target_machine_id&&m[A.target_machine_id]&&_.push({id:`svc-${A.id}`,source:String(A.machine_id),target:String(A.target_machine_id),label:A.name,style:{stroke:"#3b82f6",lineWidth:2,endArrow:{path:"M 0,0 L 8,4 L 8,-4 Z",fill:"#3b82f6"}},labelCfg:{style:{fill:"#3b82f6",fontSize:11,fontWeight:500,background:{fill:w,padding:[2,4],radius:4}}}})});const S=document.getElementById("topo");S.style.background=s(),r=new AO({container:"topo",width:S.clientWidth,height:S.clientHeight,layout:{type:"force",preventOverlap:!0,linkDistance:140,nodeStrength:-80,edgeStrength:.2},defaultNode:{type:"rect",size:[110,40]},defaultEdge:{type:"line",style:{endArrow:!0}},modes:{default:["drag-node","drag-canvas","zoom-canvas"]},fitView:!0,fitViewPadding:20}),r.data({nodes:E,edges:_}),r.render(),r.on("node:click",A=>{const M=A.item.getModel().id;f(M)}),window.addEventListener("resize",()=>{const A=document.getElementById("topo");A&&r&&(r.changeSize(A.clientWidth,A.clientHeight),r.fitView())}),n=new MutationObserver(()=>{u()}),n.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),AP(()=>{n&&n.disconnect(),r&&(r.destroy(),r=null)});function f(h){if(!r)return;const d=r.getEdges();d.forEach(v=>{const p=v.getModel();p.source===h||p.target===h?(r.setItemState(v,"active",!0),v.update({style:{opacity:1}})):(r.setItemState(v,"inactive",!0),v.update({style:{opacity:.15}}))}),setTimeout(()=>{d.forEach(v=>{r.clearItemStates(v),v.update({style:{opacity:1}})})},2e3)}function l(h){switch(h){case"Linux":return"#3b82f6";case"Windows":return"#06b6d4";case"macOS":return"#a855f7";default:return"#9ca3af"}}function c(h){const v={port_forward:"端口转发",dependency:"依赖",primary_secondary:"主从",custom:"自定义"}[h.relation_type]||h.relation_type;return h.source_port?`${v} (${h.source_port})`:v}return(h,d)=>{const v=DP("el-button");return iw(),CP("div",nle,[rc("div",ale,[d[2]||(d[2]=rc("div",null,[rc("div",{class:"page-title"},"拓扑图"),rc("div",{class:"page-subtitle"},"展示机器之间的服务指向和关联关系")],-1)),ow(e)?(iw(),TP(v,{key:0,type:"primary",icon:ow(kP),onClick:d[0]||(d[0]=p=>h.$router.push("/machines"))},{default:IP(()=>[...d[1]||(d[1]=[PP("添加机器",-1)])]),_:1},8,["icon"])):NP("",!0)]),d[3]||(d[3]=OP('
在线
离线
服务指向
关联关系
',1))])}}},ule=RP(ile,[["__scopeId","data-v-1d46321d"]]);export{ule as default}; diff --git a/web/dist/assets/index-D__NZX4I.js b/web/dist/assets/index-D__NZX4I.js new file mode 100644 index 0000000..ead135c --- /dev/null +++ b/web/dist/assets/index-D__NZX4I.js @@ -0,0 +1,100 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-DsgAjqqn.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/Login-QAgKDetV.css","assets/MainLayout-BpAm6i02.js","assets/MainLayout-DQN4KPkJ.css","assets/MachineList-MzBh9r6c.js","assets/MachineList-9XRtZKRa.css","assets/MachineDetail-CV5DfGMb.js","assets/MachineDetail-BeE91e36.css","assets/Topology-D7ycfmKq.js","assets/Topology-DMH8-H8q.css","assets/Logs-B37lkquY.js","assets/Logs-DCJS9ser.css","assets/PVEHosts-DdWF4BUY.js","assets/PVEHosts-Bh9QYZd6.css"])))=>i.map(i=>d[i]); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const r of l.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();/** +* @vue/shared v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function mp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const pn={},hs=[],Qa=()=>{},Z4=()=>!1,Pd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Id=e=>e.startsWith("onUpdate:"),Vn=Object.assign,gp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},aC=Object.prototype.hasOwnProperty,an=(e,t)=>aC.call(e,t),Tt=Array.isArray,vs=e=>yu(e)==="[object Map]",Ld=e=>yu(e)==="[object Set]",Vv=e=>yu(e)==="[object Date]",It=e=>typeof e=="function",xn=e=>typeof e=="string",La=e=>typeof e=="symbol",tn=e=>e!==null&&typeof e=="object",Q4=e=>(tn(e)||It(e))&&It(e.then)&&It(e.catch),e3=Object.prototype.toString,yu=e=>e3.call(e),oC=e=>yu(e).slice(8,-1),t3=e=>yu(e)==="[object Object]",Vd=e=>xn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mi=mp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Bd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lC=/-\w/g,va=Bd(e=>e.replace(lC,t=>t.slice(1).toUpperCase())),rC=/\B([A-Z])/g,Zl=Bd(e=>e.replace(rC,"-$1").toLowerCase()),zd=Bd(e=>e.charAt(0).toUpperCase()+e.slice(1)),Oi=Bd(e=>e?`on${zd(e)}`:""),Ao=(e,t)=>!Object.is(e,t),kc=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},yp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},sC=e=>{const t=xn(e)?Number(e):NaN;return isNaN(t)?e:t};let Bv;const Dd=()=>Bv||(Bv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(Tt(e)){const t={};for(let n=0;n{if(n){const a=n.split(uC);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(xn(e))t=e;else if(Tt(e))for(let n=0;nAr(n,t))}const l3=e=>!!(e&&e.__v_isRef===!0),_e=e=>xn(e)?e:e==null?"":Tt(e)||tn(e)&&(e.toString===e3||!It(e.toString))?l3(e)?_e(e.value):JSON.stringify(e,r3,2):String(e),r3=(e,t)=>l3(t)?r3(e,t.value):vs(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,o],l)=>(n[Kf(a,l)+" =>"]=o,n),{})}:Ld(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Kf(n))}:La(t)?Kf(t):tn(t)&&!Tt(t)&&!t3(t)?String(t):t,Kf=(e,t="")=>{var n;return La(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let ta;class s3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=ta,!t&&ta&&(this.index=(ta.scopes||(ta.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(ta=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n0)return;if(Ai){let t=Ai;for(Ai=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;$i;){let t=$i;for($i=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function p3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function h3(e){let t,n=e.depsTail,a=n;for(;a;){const o=a.prevDep;a.version===-1?(a===n&&(n=o),Cp(a),mC(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=o}e.deps=t,e.depsTail=n}function D0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(v3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function v3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wi)||(e.globalVersion=Wi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!D0(e))))return;e.flags|=2;const t=e.dep,n=gn,a=eo;gn=e,eo=!0;try{p3(e);const o=e.fn(e._value);(t.version===0||Ao(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{gn=n,eo=a,h3(e),e.flags&=-3}}function Cp(e,t=!1){const{dep:n,prevSub:a,nextSub:o}=e;if(a&&(a.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Cp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function mC(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let eo=!0;const m3=[];function fl(){m3.push(eo),eo=!1}function pl(){const e=m3.pop();eo=e===void 0?!0:e}function zv(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=gn;gn=void 0;try{t()}finally{gn=n}}}let Wi=0;class gC{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class _p{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!gn||!eo||gn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==gn)n=this.activeLink=new gC(gn,this),gn.deps?(n.prevDep=gn.depsTail,gn.depsTail.nextDep=n,gn.depsTail=n):gn.deps=gn.depsTail=n,g3(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const a=n.nextDep;a.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=a),n.prevDep=gn.depsTail,n.nextDep=void 0,gn.depsTail.nextDep=n,gn.depsTail=n,gn.deps===n&&(gn.deps=a)}return n}trigger(t){this.version++,Wi++,this.notify(t)}notify(t){bp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{wp()}}}function g3(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let a=t.deps;a;a=a.nextDep)g3(a)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Gc=new WeakMap,kr=Symbol(""),H0=Symbol(""),ji=Symbol("");function aa(e,t,n){if(eo&&gn){let a=Gc.get(e);a||Gc.set(e,a=new Map);let o=a.get(n);o||(a.set(n,o=new _p),o.map=a,o.key=n),o.track()}}function nl(e,t,n,a,o,l){const r=Gc.get(e);if(!r){Wi++;return}const s=u=>{u&&u.trigger()};if(bp(),t==="clear")r.forEach(s);else{const u=Tt(e),c=u&&Vd(n);if(u&&n==="length"){const d=Number(a);r.forEach((f,h)=>{(h==="length"||h===ji||!La(h)&&h>=d)&&s(f)})}else switch((n!==void 0||r.has(void 0))&&s(r.get(n)),c&&s(r.get(ji)),t){case"add":u?c&&s(r.get("length")):(s(r.get(kr)),vs(e)&&s(r.get(H0)));break;case"delete":u||(s(r.get(kr)),vs(e)&&s(r.get(H0)));break;case"set":vs(e)&&s(r.get(kr));break}}wp()}function yC(e,t){const n=Gc.get(e);return n&&n.get(t)}function Zr(e){const t=jt(e);return t===e?t:(aa(t,"iterate",ji),Pa(e)?t:t.map(oo))}function Hd(e){return aa(e=jt(e),"iterate",ji),e}function Oo(e,t){return hl(e)?Es(Er(e)?oo(t):t):oo(t)}const bC={__proto__:null,[Symbol.iterator](){return jf(this,Symbol.iterator,e=>Oo(this,e))},concat(...e){return Zr(this).concat(...e.map(t=>Tt(t)?Zr(t):t))},entries(){return jf(this,"entries",e=>(e[1]=Oo(this,e[1]),e))},every(e,t){return Jo(this,"every",e,t,void 0,arguments)},filter(e,t){return Jo(this,"filter",e,t,n=>n.map(a=>Oo(this,a)),arguments)},find(e,t){return Jo(this,"find",e,t,n=>Oo(this,n),arguments)},findIndex(e,t){return Jo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Jo(this,"findLast",e,t,n=>Oo(this,n),arguments)},findLastIndex(e,t){return Jo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Jo(this,"forEach",e,t,void 0,arguments)},includes(...e){return qf(this,"includes",e)},indexOf(...e){return qf(this,"indexOf",e)},join(e){return Zr(this).join(e)},lastIndexOf(...e){return qf(this,"lastIndexOf",e)},map(e,t){return Jo(this,"map",e,t,void 0,arguments)},pop(){return ci(this,"pop")},push(...e){return ci(this,"push",e)},reduce(e,...t){return Dv(this,"reduce",e,t)},reduceRight(e,...t){return Dv(this,"reduceRight",e,t)},shift(){return ci(this,"shift")},some(e,t){return Jo(this,"some",e,t,void 0,arguments)},splice(...e){return ci(this,"splice",e)},toReversed(){return Zr(this).toReversed()},toSorted(e){return Zr(this).toSorted(e)},toSpliced(...e){return Zr(this).toSpliced(...e)},unshift(...e){return ci(this,"unshift",e)},values(){return jf(this,"values",e=>Oo(this,e))}};function jf(e,t,n){const a=Hd(e),o=a[t]();return a!==e&&!Pa(e)&&(o._next=o.next,o.next=()=>{const l=o._next();return l.done||(l.value=n(l.value)),l}),o}const wC=Array.prototype;function Jo(e,t,n,a,o,l){const r=Hd(e),s=r!==e&&!Pa(e),u=r[t];if(u!==wC[t]){const f=u.apply(e,l);return s?oo(f):f}let c=n;r!==e&&(s?c=function(f,h){return n.call(this,Oo(e,f),h,e)}:n.length>2&&(c=function(f,h){return n.call(this,f,h,e)}));const d=u.call(r,c,a);return s&&o?o(d):d}function Dv(e,t,n,a){const o=Hd(e),l=o!==e&&!Pa(e);let r=n,s=!1;o!==e&&(l?(s=a.length===0,r=function(c,d,f){return s&&(s=!1,c=Oo(e,c)),n.call(this,c,Oo(e,d),f,e)}):n.length>3&&(r=function(c,d,f){return n.call(this,c,d,f,e)}));const u=o[t](r,...a);return s?Oo(e,u):u}function qf(e,t,n){const a=jt(e);aa(a,"iterate",ji);const o=a[t](...n);return(o===-1||o===!1)&&Kd(n[0])?(n[0]=jt(n[0]),a[t](...n)):o}function ci(e,t,n=[]){fl(),bp();const a=jt(e)[t].apply(e,n);return wp(),pl(),a}const CC=mp("__proto__,__v_isRef,__isVue"),y3=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(La));function _C(e){La(e)||(e=String(e));const t=jt(this);return aa(t,"has",e),t.hasOwnProperty(e)}class b3{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,a){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return l;if(n==="__v_raw")return a===(o?l?RC:S3:l?_3:C3).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(a)?t:void 0;const r=Tt(t);if(!o){let u;if(r&&(u=bC[n]))return u;if(n==="hasOwnProperty")return _C}const s=Reflect.get(t,n,Gt(t)?t:a);if((La(n)?y3.has(n):CC(n))||(o||aa(t,"get",n),l))return s;if(Gt(s)){const u=r&&Vd(n)?s:s.value;return o&&tn(u)?Rr(u):u}return tn(s)?o?Rr(s):Nt(s):s}}class w3 extends b3{constructor(t=!1){super(!1,t)}set(t,n,a,o){let l=t[n];const r=Tt(t)&&Vd(n);if(!this._isShallow){const c=hl(l);if(!Pa(a)&&!hl(a)&&(l=jt(l),a=jt(a)),!r&&Gt(l)&&!Gt(a))return c||(l.value=a),!0}const s=r?Number(n)e,tc=e=>Reflect.getPrototypeOf(e);function TC(e,t,n){return function(...a){const o=this.__v_raw,l=jt(o),r=vs(l),s=e==="entries"||e===Symbol.iterator&&r,u=e==="keys"&&r,c=o[e](...a),d=n?F0:t?Es:oo;return!t&&aa(l,"iterate",u?H0:kr),Vn(Object.create(c),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:s?[d(f[0]),d(f[1])]:d(f),done:h}}})}}function nc(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function MC(e,t){const n={get(o){const l=this.__v_raw,r=jt(l),s=jt(o);e||(Ao(o,s)&&aa(r,"get",o),aa(r,"get",s));const{has:u}=tc(r),c=t?F0:e?Es:oo;if(u.call(r,o))return c(l.get(o));if(u.call(r,s))return c(l.get(s));l!==r&&l.get(o)},get size(){const o=this.__v_raw;return!e&&aa(jt(o),"iterate",kr),o.size},has(o){const l=this.__v_raw,r=jt(l),s=jt(o);return e||(Ao(o,s)&&aa(r,"has",o),aa(r,"has",s)),o===s?l.has(o):l.has(o)||l.has(s)},forEach(o,l){const r=this,s=r.__v_raw,u=jt(s),c=t?F0:e?Es:oo;return!e&&aa(u,"iterate",kr),s.forEach((d,f)=>o.call(l,c(d),c(f),r))}};return Vn(n,e?{add:nc("add"),set:nc("set"),delete:nc("delete"),clear:nc("clear")}:{add(o){const l=jt(this),r=tc(l),s=jt(o),u=!t&&!Pa(o)&&!hl(o)?s:o;return r.has.call(l,u)||Ao(o,u)&&r.has.call(l,o)||Ao(s,u)&&r.has.call(l,s)||(l.add(u),nl(l,"add",u,u)),this},set(o,l){!t&&!Pa(l)&&!hl(l)&&(l=jt(l));const r=jt(this),{has:s,get:u}=tc(r);let c=s.call(r,o);c||(o=jt(o),c=s.call(r,o));const d=u.call(r,o);return r.set(o,l),c?Ao(l,d)&&nl(r,"set",o,l):nl(r,"add",o,l),this},delete(o){const l=jt(this),{has:r,get:s}=tc(l);let u=r.call(l,o);u||(o=jt(o),u=r.call(l,o)),s&&s.call(l,o);const c=l.delete(o);return u&&nl(l,"delete",o,void 0),c},clear(){const o=jt(this),l=o.size!==0,r=o.clear();return l&&nl(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=TC(o,e,t)}),n}function Sp(e,t){const n=MC(e,t);return(a,o,l)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?a:Reflect.get(an(n,o)&&o in a?n:a,o,l)}const OC={get:Sp(!1,!1)},$C={get:Sp(!1,!0)},AC={get:Sp(!0,!1)};const C3=new WeakMap,_3=new WeakMap,S3=new WeakMap,RC=new WeakMap;function NC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function PC(e){return e.__v_skip||!Object.isExtensible(e)?0:NC(oC(e))}function Nt(e){return hl(e)?e:xp(e,!1,xC,OC,C3)}function Fd(e){return xp(e,!1,EC,$C,_3)}function Rr(e){return xp(e,!0,kC,AC,S3)}function xp(e,t,n,a,o){if(!tn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=PC(e);if(l===0)return e;const r=o.get(e);if(r)return r;const s=new Proxy(e,l===2?a:n);return o.set(e,s),s}function Er(e){return hl(e)?Er(e.__v_raw):!!(e&&e.__v_isReactive)}function hl(e){return!!(e&&e.__v_isReadonly)}function Pa(e){return!!(e&&e.__v_isShallow)}function Kd(e){return e?!!e.__v_raw:!1}function jt(e){const t=e&&e.__v_raw;return t?jt(t):e}function Io(e){return!an(e,"__v_skip")&&Object.isExtensible(e)&&n3(e,"__v_skip",!0),e}const oo=e=>tn(e)?Nt(e):e,Es=e=>tn(e)?Rr(e):e;function Gt(e){return e?e.__v_isRef===!0:!1}function V(e){return x3(e,!1)}function qt(e){return x3(e,!0)}function x3(e,t){return Gt(e)?e:new IC(e,t)}class IC{constructor(t,n){this.dep=new _p,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:jt(t),this._value=n?t:oo(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,a=this.__v_isShallow||Pa(t)||hl(t);t=a?t:jt(t),Ao(t,n)&&(this._rawValue=t,this._value=a?t:oo(t),this.dep.trigger())}}function Ec(e){e.dep&&e.dep.trigger()}function i(e){return Gt(e)?e.value:e}function Hv(e){return It(e)?e():i(e)}const LC={get:(e,t,n)=>t==="__v_raw"?e:i(Reflect.get(e,t,n)),set:(e,t,n,a)=>{const o=e[t];return Gt(o)&&!Gt(n)?(o.value=n,!0):Reflect.set(e,t,n,a)}};function k3(e){return Er(e)?e:new Proxy(e,LC)}function Bn(e){const t=Tt(e)?new Array(e.length):{};for(const n in e)t[n]=E3(e,n);return t}class VC{constructor(t,n,a){this._object=t,this._defaultValue=a,this.__v_isRef=!0,this._value=void 0,this._key=La(n)?n:String(n),this._raw=jt(t);let o=!0,l=t;if(!Tt(t)||La(this._key)||!Vd(this._key))do o=!Kd(l)||Pa(l);while(o&&(l=l.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=i(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Gt(this._raw[this._key])){const n=this._object[this._key];if(Gt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return yC(this._raw,this._key)}}class BC{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Bt(e,t,n){return Gt(e)?e:It(e)?new BC(e):tn(e)&&arguments.length>1?E3(e,t,n):V(e)}function E3(e,t,n){return new VC(e,t,n)}class zC{constructor(t,n,a){this.fn=t,this.setter=n,this._value=void 0,this.dep=new _p(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wi-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=a}notify(){if(this.flags|=16,!(this.flags&8)&&gn!==this)return f3(this,!0),!0}get value(){const t=this.dep.track();return v3(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function DC(e,t,n=!1){let a,o;return It(e)?a=e:(a=e.get,o=e.set),new zC(a,o,n)}const ac={},Xc=new WeakMap;let ur;function HC(e,t=!1,n=ur){if(n){let a=Xc.get(n);a||Xc.set(n,a=[]),a.push(e)}}function FC(e,t,n=pn){const{immediate:a,deep:o,once:l,scheduler:r,augmentJob:s,call:u}=n,c=C=>o?C:Pa(C)||o===!1||o===0?al(C,1):al(C);let d,f,h,g,p=!1,v=!1;if(Gt(e)?(f=()=>e.value,p=Pa(e)):Er(e)?(f=()=>c(e),p=!0):Tt(e)?(v=!0,p=e.some(C=>Er(C)||Pa(C)),f=()=>e.map(C=>{if(Gt(C))return C.value;if(Er(C))return c(C);if(It(C))return u?u(C,2):C()})):It(e)?t?f=u?()=>u(e,2):e:f=()=>{if(h){fl();try{h()}finally{pl()}}const C=ur;ur=d;try{return u?u(e,3,[g]):e(g)}finally{ur=C}}:f=Qa,t&&o){const C=f,S=o===!0?1/0:o;f=()=>al(C(),S)}const m=i3(),y=()=>{d.stop(),m&&m.active&&gp(m.effects,d)};if(l&&t){const C=t;t=(...S)=>{C(...S),y()}}let b=v?new Array(e.length).fill(ac):ac;const w=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const S=d.run();if(o||p||(v?S.some((k,T)=>Ao(k,b[T])):Ao(S,b))){h&&h();const k=ur;ur=d;try{const T=[S,b===ac?void 0:v&&b[0]===ac?[]:b,g];b=S,u?u(t,3,T):t(...T)}finally{ur=k}}}else d.run()};return s&&s(w),d=new c3(f),d.scheduler=r?()=>r(w,!1):w,g=C=>HC(C,!1,d),h=d.onStop=()=>{const C=Xc.get(d);if(C){if(u)u(C,4);else for(const S of C)S();Xc.delete(d)}},t?a?w(!0):b=d.run():r?r(w.bind(null,!0),!0):d.run(),y.pause=d.pause.bind(d),y.resume=d.resume.bind(d),y.stop=y,y}function al(e,t=1/0,n){if(t<=0||!tn(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Gt(e))al(e.value,t,n);else if(Tt(e))for(let a=0;a{al(a,t,n)});else if(t3(e)){for(const a in e)al(e[a],t,n);for(const a of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,a)&&al(e[a],t,n)}return e}/** +* @vue/runtime-core v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function bu(e,t,n,a){try{return a?e(...a):e()}catch(o){Wd(o,t,n)}}function lo(e,t,n,a){if(It(e)){const o=bu(e,t,n,a);return o&&Q4(o)&&o.catch(l=>{Wd(l,t,n)}),o}if(Tt(e)){const o=[];for(let l=0;l>>1,o=pa[a],l=qi(o);l=qi(n)?pa.push(e):pa.splice(WC(t),0,e),e.flags|=1,M3()}}function M3(){Jc||(Jc=T3.then($3))}function jC(e){Tt(e)?ms.push(...e):Vl&&e.id===-1?Vl.splice(ss+1,0,e):e.flags&1||(ms.push(e),e.flags|=1),M3()}function Fv(e,t,n=To+1){for(;nqi(n)-qi(a));if(ms.length=0,Vl){Vl.push(...t);return}for(Vl=t,ss=0;sse.id==null?e.flags&2?-1:1/0:e.id;function $3(e){try{for(To=0;To{a._d&&td(-1);const l=Zc(t);let r;try{r=e(...o)}finally{Zc(l),a._d&&td(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function dt(e,t){if(Gn===null)return e;const n=Gd(Gn),a=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&It(t)?t.call(a&&a.proxy):t}}const qC=Symbol.for("v-scx"),UC=()=>Ne(qC);function ma(e,t){return Ep(e,null,t)}function fe(e,t,n){return Ep(e,t,n)}function Ep(e,t,n=pn){const{immediate:a,deep:o,flush:l,once:r}=n,s=Vn({},n),u=t&&a||!t&&l!=="post";let c;if(Gi){if(l==="sync"){const g=UC();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!u){const g=()=>{};return g.stop=Qa,g.resume=Qa,g.pause=Qa,g}}const d=oa;s.call=(g,p,v)=>lo(g,d,p,v);let f=!1;l==="post"?s.scheduler=g=>{da(g,d&&d.suspense)}:l!=="sync"&&(f=!0,s.scheduler=(g,p)=>{p?g():kp(g)}),s.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,d&&(g.id=d.uid,g.i=d))};const h=FC(e,t,s);return Gi&&(c?c.push(h):u&&h()),h}function YC(e,t,n){const a=this.proxy,o=xn(e)?e.includes(".")?R3(a,e):()=>a[e]:e.bind(a,a);let l;It(t)?l=t:(l=t.handler,n=t);const r=Cu(this),s=Ep(o,l.bind(a),n);return r(),s}function R3(e,t){const n=t.split(".");return()=>{let a=e;for(let o=0;oe.__isTeleport,dr=e=>e&&(e.disabled||e.disabled===""),GC=e=>e&&(e.defer||e.defer===""),Kv=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Wv=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,K0=(e,t)=>{const n=e&&e.to;return xn(n)?t?t(n):null:n},XC={name:"Teleport",__isTeleport:!0,process(e,t,n,a,o,l,r,s,u,c){const{mc:d,pc:f,pbc:h,o:{insert:g,querySelector:p,createText:v,createComment:m}}=c,y=dr(t.props);let{dynamicChildren:b}=t;const w=(k,T,M)=>{k.shapeFlag&16&&d(k.children,T,M,o,l,r,s,u)},C=(k=t)=>{const T=dr(k.props),M=k.target=K0(k.props,p),A=W0(M,k,v,g);M&&(r!=="svg"&&Kv(M)?r="svg":r!=="mathml"&&Wv(M)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(M),T||(w(k,M,A),_i(k,!1)))},S=k=>{const T=()=>{ar.get(k)===T&&(ar.delete(k),dr(k.props)&&(w(k,n,k.anchor),_i(k,!0)),C(k))};ar.set(k,T),da(T,l)};if(e==null){const k=t.el=v(""),T=t.anchor=v("");if(g(k,n,a),g(T,n,a),GC(t.props)||l&&l.pendingBranch){S(t);return}y&&(w(t,n,T),_i(t,!0)),C()}else{t.el=e.el;const k=t.anchor=e.anchor,T=ar.get(e);if(T){T.flags|=8,ar.delete(e),S(t);return}t.targetStart=e.targetStart;const M=t.target=e.target,A=t.targetAnchor=e.targetAnchor,O=dr(e.props),I=O?n:M,L=O?k:A;if(r==="svg"||Kv(M)?r="svg":(r==="mathml"||Wv(M))&&(r="mathml"),b?(h(e.dynamicChildren,b,I,o,l,r,s),Ip(e,t,!0)):u||f(e,t,I,L,o,l,r,s,!1),y)O?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):oc(t,n,k,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=K0(t.props,p);z&&oc(t,z,null,c,0)}else O&&oc(t,M,A,c,1);_i(t,y)}},remove(e,t,n,{um:a,o:{remove:o}},l){const{shapeFlag:r,children:s,anchor:u,targetStart:c,targetAnchor:d,target:f,props:h}=e;let g=l||!dr(h);const p=ar.get(e);if(p&&(p.flags|=8,ar.delete(e),g=!1),f&&(o(c),o(d)),l&&o(u),r&16)for(let v=0;v{e.isMounted=!0}),Lt(()=>{e.isUnmounting=!0}),e}const Da=[Function,Array],L3={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Da,onEnter:Da,onAfterEnter:Da,onEnterCancelled:Da,onBeforeLeave:Da,onLeave:Da,onAfterLeave:Da,onLeaveCancelled:Da,onBeforeAppear:Da,onAppear:Da,onAfterAppear:Da,onAppearCancelled:Da},V3=e=>{const t=e.subTree;return t.component?V3(t.component):t},QC={name:"BaseTransition",props:L3,setup(e,{slots:t}){const n=ht(),a=I3();return()=>{const o=t.default&&Tp(t.default(),!0);if(!o||!o.length)return;const l=B3(o),r=jt(e),{mode:s}=r;if(a.isLeaving)return Uf(l);const u=jv(l);if(!u)return Uf(l);let c=Ui(u,r,a,n,f=>c=f);u.type!==wn&&Nr(u,c);let d=n.subTree&&jv(n.subTree);if(d&&d.type!==wn&&!fr(d,u)&&V3(n).type!==wn){let f=Ui(d,r,a,n);if(Nr(d,f),s==="out-in"&&u.type!==wn)return a.isLeaving=!0,f.afterLeave=()=>{a.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,d=void 0},Uf(l);s==="in-out"&&u.type!==wn?f.delayLeave=(h,g,p)=>{const v=z3(a,d);v[String(d.key)]=d,h[Mo]=()=>{g(),h[Mo]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return l}}};function B3(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==wn){t=n;break}}return t}const e_=QC;function z3(e,t){const{leavingVNodes:n}=e;let a=n.get(t.type);return a||(a=Object.create(null),n.set(t.type,a)),a}function Ui(e,t,n,a,o){const{appear:l,mode:r,persisted:s=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:p,onLeaveCancelled:v,onBeforeAppear:m,onAppear:y,onAfterAppear:b,onAppearCancelled:w}=t,C=String(e.key),S=z3(n,e),k=(A,O)=>{A&&lo(A,a,9,O)},T=(A,O)=>{const I=O[1];k(A,O),Tt(A)?A.every(L=>L.length<=1)&&I():A.length<=1&&I()},M={mode:r,persisted:s,beforeEnter(A){let O=u;if(!n.isMounted)if(l)O=m||u;else return;A[Mo]&&A[Mo](!0);const I=S[C];I&&fr(e,I)&&I.el[Mo]&&I.el[Mo](),k(O,[A])},enter(A){if(S[C]===e)return;let O=c,I=d,L=f;if(!n.isMounted)if(l)O=y||c,I=b||d,L=w||f;else return;let z=!1;A[di]=U=>{z||(z=!0,U?k(L,[A]):k(I,[A]),M.delayedLeave&&M.delayedLeave(),A[di]=void 0)};const q=A[di].bind(null,!1);O?T(O,[A,q]):q()},leave(A,O){const I=String(e.key);if(A[di]&&A[di](!0),n.isUnmounting)return O();k(h,[A]);let L=!1;A[Mo]=q=>{L||(L=!0,O(),q?k(v,[A]):k(p,[A]),A[Mo]=void 0,S[I]===e&&delete S[I])};const z=A[Mo].bind(null,!1);S[I]=e,g?T(g,[A,z]):z()},clone(A){const O=Ui(A,t,n,a,o);return o&&o(O),O}};return M}function Uf(e){if(jd(e))return e=Ho(e),e.children=null,e}function jv(e){if(!jd(e))return P3(e.type)&&e.children?B3(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&It(n.default))return n.default()}}function Nr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Nr(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 Tp(e,t=!1,n){let a=[],o=0;for(let l=0;l1)for(let l=0;lRi(v,t&&(Tt(t)?t[m]:t),n,a,o));return}if(gs(a)&&!o){a.shapeFlag&512&&a.type.__asyncResolved&&a.component.subTree.component&&Ri(e,t,n,a.component.subTree);return}const l=a.shapeFlag&4?Gd(a.component):a.el,r=o?null:l,{i:s,r:u}=e,c=t&&t.r,d=s.refs===pn?s.refs={}:s.refs,f=s.setupState,h=jt(f),g=f===pn?Z4:v=>qv(d,v)?!1:an(h,v),p=(v,m)=>!(m&&qv(d,m));if(c!=null&&c!==u){if(Uv(t),xn(c))d[c]=null,g(c)&&(f[c]=null);else if(Gt(c)){const v=t;p(c,v.k)&&(c.value=null),v.k&&(d[v.k]=null)}}if(It(u))bu(u,s,12,[r,d]);else{const v=xn(u),m=Gt(u);if(v||m){const y=()=>{if(e.f){const b=v?g(u)?f[u]:d[u]:p()||!e.k?u.value:d[e.k];if(o)Tt(b)&&gp(b,l);else if(Tt(b))b.includes(l)||b.push(l);else if(v)d[u]=[l],g(u)&&(f[u]=d[u]);else{const w=[l];p(u,e.k)&&(u.value=w),e.k&&(d[e.k]=w)}}else v?(d[u]=r,g(u)&&(f[u]=r)):m&&(p(u,e.k)&&(u.value=r),e.k&&(d[e.k]=r))};if(r){const b=()=>{y(),Qc.delete(e)};b.id=-1,Qc.set(e,b),da(b,n)}else Uv(e),y()}}}function Uv(e){const t=Qc.get(e);t&&(t.flags|=8,Qc.delete(e))}Dd().requestIdleCallback;Dd().cancelIdleCallback;const gs=e=>!!e.type.__asyncLoader,jd=e=>e.type.__isKeepAlive;function wu(e,t){H3(e,"a",t)}function Mp(e,t){H3(e,"da",t)}function H3(e,t,n=oa){const a=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(qd(t,a,n),n){let o=n.parent;for(;o&&o.parent;)jd(o.parent.vnode)&&t_(a,t,n,o),o=o.parent}}function t_(e,t,n,a){const o=qd(t,e,a,!0);Gs(()=>{gp(a[t],o)},n)}function qd(e,t,n=oa,a=!1){if(n){const o=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...r)=>{fl();const s=Cu(n),u=lo(t,n,e,r);return s(),pl(),u});return a?o.unshift(l):o.push(l),l}}const Cl=e=>(t,n=oa)=>{(!Gi||e==="sp")&&qd(e,(...a)=>t(...a),n)},Ud=Cl("bm"),mt=Cl("m"),Op=Cl("bu"),ho=Cl("u"),Lt=Cl("bum"),Gs=Cl("um"),n_=Cl("sp"),a_=Cl("rtg"),o_=Cl("rtc");function l_(e,t=oa){qd("ec",e,t)}const $p="components",r_="directives";function $t(e,t){return Rp($p,e,!0,t)||e}const F3=Symbol.for("v-ndc");function ut(e){return xn(e)?Rp($p,e,!1)||e:e||F3}function Ap(e){return Rp(r_,e)}function Rp(e,t,n=!0,a=!1){const o=Gn||oa;if(o){const l=o.type;if(e===$p){const s=F_(l,!1);if(s&&(s===t||s===va(t)||s===zd(va(t))))return l}const r=Yv(o[e]||l[e],t)||Yv(o.appContext[e],t);return!r&&a?l:r}}function Yv(e,t){return e&&(e[t]||e[va(t)]||e[zd(va(t))])}function Ct(e,t,n,a){let o;const l=n,r=Tt(e);if(r||xn(e)){const s=r&&Er(e);let u=!1,c=!1;s&&(u=!Pa(e),c=hl(e),e=Hd(e)),o=new Array(e.length);for(let d=0,f=e.length;dt(s,u,void 0,l));else{const s=Object.keys(e);o=new Array(s.length);for(let u=0,c=s.length;u{const l=a.fn(...o);return l&&(l.key=a.key),l}:a.fn)}return e}function oe(e,t,n={},a,o){if(Gn.ce||Gn.parent&&gs(Gn.parent)&&Gn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),_(),ie(He,null,[Q("slot",n,a&&a())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),_();const r=l&&K3(l(n)),s=n.key||r&&r.key,u=ie(He,{key:(s&&!La(s)?s:`_${t}`)+(!r&&a?"_fb":"")},r||(a?a():[]),r&&e._===1?64:-2);return u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),l&&l._c&&(l._d=!0),u}function K3(e){return e.some(t=>Wt(t)?!(t.type===wn||t.type===He&&!K3(t.children)):!0)?e:null}function s_(e,t){const n={};for(const a in e)n[Oi(a)]=e[a];return n}const j0=e=>e?u6(e)?Gd(e):j0(e.parent):null,Ni=Vn(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=>j0(e.parent),$root:e=>j0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>q3(e),$forceUpdate:e=>e.f||(e.f=()=>{kp(e.update)}),$nextTick:e=>e.n||(e.n=Ie.bind(e.proxy)),$watch:e=>YC.bind(e)}),Yf=(e,t)=>e!==pn&&!e.__isScriptSetup&&an(e,t),i_={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:a,data:o,props:l,accessCache:r,type:s,appContext:u}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return a[t];case 2:return o[t];case 4:return n[t];case 3:return l[t]}else{if(Yf(a,t))return r[t]=1,a[t];if(o!==pn&&an(o,t))return r[t]=2,o[t];if(an(l,t))return r[t]=3,l[t];if(n!==pn&&an(n,t))return r[t]=4,n[t];q0&&(r[t]=0)}}const c=Ni[t];let d,f;if(c)return t==="$attrs"&&aa(e.attrs,"get",""),c(e);if((d=s.__cssModules)&&(d=d[t]))return d;if(n!==pn&&an(n,t))return r[t]=4,n[t];if(f=u.config.globalProperties,an(f,t))return f[t]},set({_:e},t,n){const{data:a,setupState:o,ctx:l}=e;return Yf(o,t)?(o[t]=n,!0):a!==pn&&an(a,t)?(a[t]=n,!0):an(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:a,appContext:o,props:l,type:r}},s){let u;return!!(n[s]||e!==pn&&s[0]!=="$"&&an(e,s)||Yf(t,s)||an(l,s)||an(a,s)||an(Ni,s)||an(o.config.globalProperties,s)||(u=r.__cssModules)&&u[s])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:an(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function yn(){return W3().slots}function _l(){return W3().attrs}function W3(e){const t=ht();return t.setupContext||(t.setupContext=d6(t))}function Gv(e){return Tt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let q0=!0;function u_(e){const t=q3(e),n=e.proxy,a=e.ctx;q0=!1,t.beforeCreate&&Xv(t.beforeCreate,e,"bc");const{data:o,computed:l,methods:r,watch:s,provide:u,inject:c,created:d,beforeMount:f,mounted:h,beforeUpdate:g,updated:p,activated:v,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:w,unmounted:C,render:S,renderTracked:k,renderTriggered:T,errorCaptured:M,serverPrefetch:A,expose:O,inheritAttrs:I,components:L,directives:z,filters:q}=t;if(c&&c_(c,a,null),r)for(const N in r){const P=r[N];It(P)&&(a[N]=P.bind(n))}if(o){const N=o.call(n,n);tn(N)&&(e.data=Nt(N))}if(q0=!0,l)for(const N in l){const P=l[N],B=It(P)?P.bind(n,n):It(P.get)?P.get.bind(n,n):Qa,W=!It(P)&&It(P.set)?P.set.bind(n):Qa,K=x({get:B,set:W});Object.defineProperty(a,N,{enumerable:!0,configurable:!0,get:()=>K.value,set:j=>K.value=j})}if(s)for(const N in s)j3(s[N],a,n,N);if(u){const N=It(u)?u.call(n):u;Reflect.ownKeys(N).forEach(P=>{bt(P,N[P])})}d&&Xv(d,e,"c");function F(N,P){Tt(P)?P.forEach(B=>N(B.bind(n))):P&&N(P.bind(n))}if(F(Ud,f),F(mt,h),F(Op,g),F(ho,p),F(wu,v),F(Mp,m),F(l_,M),F(o_,k),F(a_,T),F(Lt,b),F(Gs,C),F(n_,A),Tt(O))if(O.length){const N=e.exposed||(e.exposed={});O.forEach(P=>{Object.defineProperty(N,P,{get:()=>n[P],set:B=>n[P]=B,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===Qa&&(e.render=S),I!=null&&(e.inheritAttrs=I),L&&(e.components=L),z&&(e.directives=z),A&&D3(e)}function c_(e,t,n=Qa){Tt(e)&&(e=U0(e));for(const a in e){const o=e[a];let l;tn(o)?"default"in o?l=Ne(o.from||a,o.default,!0):l=Ne(o.from||a):l=Ne(o),Gt(l)?Object.defineProperty(t,a,{enumerable:!0,configurable:!0,get:()=>l.value,set:r=>l.value=r}):t[a]=l}}function Xv(e,t,n){lo(Tt(e)?e.map(a=>a.bind(t.proxy)):e.bind(t.proxy),t,n)}function j3(e,t,n,a){let o=a.includes(".")?R3(n,a):()=>n[a];if(xn(e)){const l=t[e];It(l)&&fe(o,l)}else if(It(e))fe(o,e.bind(n));else if(tn(e))if(Tt(e))e.forEach(l=>j3(l,t,n,a));else{const l=It(e.handler)?e.handler.bind(n):t[e.handler];It(l)&&fe(o,l,e)}}function q3(e){const t=e.type,{mixins:n,extends:a}=t,{mixins:o,optionsCache:l,config:{optionMergeStrategies:r}}=e.appContext,s=l.get(t);let u;return s?u=s:!o.length&&!n&&!a?u=t:(u={},o.length&&o.forEach(c=>ed(u,c,r,!0)),ed(u,t,r)),tn(t)&&l.set(t,u),u}function ed(e,t,n,a=!1){const{mixins:o,extends:l}=t;l&&ed(e,l,n,!0),o&&o.forEach(r=>ed(e,r,n,!0));for(const r in t)if(!(a&&r==="expose")){const s=d_[r]||n&&n[r];e[r]=s?s(e[r],t[r]):t[r]}return e}const d_={data:Jv,props:Zv,emits:Zv,methods:Si,computed:Si,beforeCreate:ca,created:ca,beforeMount:ca,mounted:ca,beforeUpdate:ca,updated:ca,beforeDestroy:ca,beforeUnmount:ca,destroyed:ca,unmounted:ca,activated:ca,deactivated:ca,errorCaptured:ca,serverPrefetch:ca,components:Si,directives:Si,watch:p_,provide:Jv,inject:f_};function Jv(e,t){return t?e?function(){return Vn(It(e)?e.call(this,this):e,It(t)?t.call(this,this):t)}:t:e}function f_(e,t){return Si(U0(e),U0(t))}function U0(e){if(Tt(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${va(t)}Modifiers`]||e[`${Zl(t)}Modifiers`];function g_(e,t,...n){if(e.isUnmounted)return;const a=e.vnode.props||pn;let o=n;const l=t.startsWith("update:"),r=l&&m_(a,t.slice(7));r&&(r.trim&&(o=n.map(d=>xn(d)?d.trim():d)),r.number&&(o=n.map(yp)));let s,u=a[s=Oi(t)]||a[s=Oi(va(t))];!u&&l&&(u=a[s=Oi(Zl(t))]),u&&lo(u,e,6,o);const c=a[s+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,lo(c,e,6,o)}}const y_=new WeakMap;function Y3(e,t,n=!1){const a=n?y_:t.emitsCache,o=a.get(e);if(o!==void 0)return o;const l=e.emits;let r={},s=!1;if(!It(e)){const u=c=>{const d=Y3(c,t,!0);d&&(s=!0,Vn(r,d))};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!l&&!s?(tn(e)&&a.set(e,null),null):(Tt(l)?l.forEach(u=>r[u]=null):Vn(r,l),tn(e)&&a.set(e,r),r)}function Yd(e,t){return!e||!Pd(t)?!1:(t=t.slice(2).replace(/Once$/,""),an(e,t[0].toLowerCase()+t.slice(1))||an(e,Zl(t))||an(e,t))}function Qv(e){const{type:t,vnode:n,proxy:a,withProxy:o,propsOptions:[l],slots:r,attrs:s,emit:u,render:c,renderCache:d,props:f,data:h,setupState:g,ctx:p,inheritAttrs:v}=e,m=Zc(e);let y,b;try{if(n.shapeFlag&4){const C=o||a,S=C;y=$o(c.call(S,C,d,f,g,h,p)),b=s}else{const C=t;y=$o(C.length>1?C(f,{attrs:s,slots:r,emit:u}):C(f,null)),b=t.props?s:b_(s)}}catch(C){Pi.length=0,Wd(C,e,1),y=Q(wn)}let w=y;if(b&&v!==!1){const C=Object.keys(b),{shapeFlag:S}=w;C.length&&S&7&&(l&&C.some(Id)&&(b=w_(b,l)),w=Ho(w,b,!1,!0))}return n.dirs&&(w=Ho(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&Nr(w,n.transition),y=w,Zc(m),y}const b_=e=>{let t;for(const n in e)(n==="class"||n==="style"||Pd(n))&&((t||(t={}))[n]=e[n]);return t},w_=(e,t)=>{const n={};for(const a in e)(!Id(a)||!(a.slice(9)in t))&&(n[a]=e[a]);return n};function C_(e,t,n){const{props:a,children:o,component:l}=e,{props:r,children:s,patchFlag:u}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return a?e1(a,r,c):!!r;if(u&8){const d=t.dynamicProps;for(let f=0;fObject.create(X3),Z3=e=>Object.getPrototypeOf(e)===X3;function S_(e,t,n,a=!1){const o={},l=J3();e.propsDefaults=Object.create(null),Q3(e,t,o,l);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=a?o:Fd(o):e.type.props?e.props=o:e.props=l,e.attrs=l}function x_(e,t,n,a){const{props:o,attrs:l,vnode:{patchFlag:r}}=e,s=jt(o),[u]=e.propsOptions;let c=!1;if((a||r>0)&&!(r&16)){if(r&8){const d=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[h,g]=e6(f,t,!0);Vn(r,h),g&&s.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!u)return tn(e)&&a.set(e,hs),hs;if(Tt(l))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",Pp=e=>Tt(e)?e.map($o):[$o(e)],E_=(e,t,n)=>{if(t._n)return t;const a=ae((...o)=>Pp(t(...o)),n);return a._c=!1,a},t6=(e,t,n)=>{const a=e._ctx;for(const o in e){if(Np(o))continue;const l=e[o];if(It(l))t[o]=E_(o,l,a);else if(l!=null){const r=Pp(l);t[o]=()=>r}}},n6=(e,t)=>{const n=Pp(t);e.slots.default=()=>n},a6=(e,t,n)=>{for(const a in t)(n||!Np(a))&&(e[a]=t[a])},T_=(e,t,n)=>{const a=e.slots=J3();if(e.vnode.shapeFlag&32){const o=t._;o?(a6(a,t,n),n&&n3(a,"_",o,!0)):t6(t,a)}else t&&n6(e,t)},M_=(e,t,n)=>{const{vnode:a,slots:o}=e;let l=!0,r=pn;if(a.shapeFlag&32){const s=t._;s?n&&s===1?l=!1:a6(o,t,n):(l=!t.$stable,t6(t,o)),r=t}else t&&(n6(e,t),r={default:1});if(l)for(const s in o)!Np(s)&&r[s]==null&&delete o[s]},da=N_;function O_(e){return $_(e)}function $_(e,t){const n=Dd();n.__VUE__=!0;const{insert:a,remove:o,patchProp:l,createElement:r,createText:s,createComment:u,setText:c,setElementText:d,parentNode:f,nextSibling:h,setScopeId:g=Qa,insertStaticContent:p}=e,v=(H,Z,le,ce=null,ge=null,me=null,$e=void 0,Re=null,Ae=!!Z.dynamicChildren)=>{if(H===Z)return;H&&!fr(H,Z)&&(ce=ne(H),j(H,ge,me,!0),H=null),Z.patchFlag===-2&&(Ae=!1,Z.dynamicChildren=null);const{type:ye,ref:ke,shapeFlag:be}=Z;switch(ye){case Xs:m(H,Z,le,ce);break;case wn:y(H,Z,le,ce);break;case Tc:H==null&&b(Z,le,ce,$e);break;case He:L(H,Z,le,ce,ge,me,$e,Re,Ae);break;default:be&1?S(H,Z,le,ce,ge,me,$e,Re,Ae):be&6?z(H,Z,le,ce,ge,me,$e,Re,Ae):(be&64||be&128)&&ye.process(H,Z,le,ce,ge,me,$e,Re,Ae,Y)}ke!=null&&ge?Ri(ke,H&&H.ref,me,Z||H,!Z):ke==null&&H&&H.ref!=null&&Ri(H.ref,null,me,H,!0)},m=(H,Z,le,ce)=>{if(H==null)a(Z.el=s(Z.children),le,ce);else{const ge=Z.el=H.el;Z.children!==H.children&&c(ge,Z.children)}},y=(H,Z,le,ce)=>{H==null?a(Z.el=u(Z.children||""),le,ce):Z.el=H.el},b=(H,Z,le,ce)=>{[H.el,H.anchor]=p(H.children,Z,le,ce,H.el,H.anchor)},w=({el:H,anchor:Z},le,ce)=>{let ge;for(;H&&H!==Z;)ge=h(H),a(H,le,ce),H=ge;a(Z,le,ce)},C=({el:H,anchor:Z})=>{let le;for(;H&&H!==Z;)le=h(H),o(H),H=le;o(Z)},S=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{if(Z.type==="svg"?$e="svg":Z.type==="math"&&($e="mathml"),H==null)k(Z,le,ce,ge,me,$e,Re,Ae);else{const ye=H.el&&H.el._isVueCE?H.el:null;try{ye&&ye._beginPatch(),A(H,Z,ge,me,$e,Re,Ae)}finally{ye&&ye._endPatch()}}},k=(H,Z,le,ce,ge,me,$e,Re)=>{let Ae,ye;const{props:ke,shapeFlag:be,transition:Pe,dirs:Be}=H;if(Ae=H.el=r(H.type,me,ke&&ke.is,ke),be&8?d(Ae,H.children):be&16&&M(H.children,Ae,null,ce,ge,Gf(H,me),$e,Re),Be&&nr(H,null,ce,"created"),T(Ae,H,H.scopeId,$e,ce),ke){for(const tt in ke)tt!=="value"&&!Mi(tt)&&l(Ae,tt,null,ke[tt],me,ce);"value"in ke&&l(Ae,"value",null,ke.value,me),(ye=ke.onVnodeBeforeMount)&&xo(ye,ce,H)}Be&&nr(H,null,ce,"beforeMount");const Qe=A_(ge,Pe);Qe&&Pe.beforeEnter(Ae),a(Ae,Z,le),((ye=ke&&ke.onVnodeMounted)||Qe||Be)&&da(()=>{try{ye&&xo(ye,ce,H),Qe&&Pe.enter(Ae),Be&&nr(H,null,ce,"mounted")}finally{}},ge)},T=(H,Z,le,ce,ge)=>{if(le&&g(H,le),ce)for(let me=0;me{for(let ye=Ae;ye{const Re=Z.el=H.el;let{patchFlag:Ae,dynamicChildren:ye,dirs:ke}=Z;Ae|=H.patchFlag&16;const be=H.props||pn,Pe=Z.props||pn;let Be;if(le&&or(le,!1),(Be=Pe.onVnodeBeforeUpdate)&&xo(Be,le,Z,H),ke&&nr(Z,H,le,"beforeUpdate"),le&&or(le,!0),(be.innerHTML&&Pe.innerHTML==null||be.textContent&&Pe.textContent==null)&&d(Re,""),ye?O(H.dynamicChildren,ye,Re,le,ce,Gf(Z,ge),me):$e||P(H,Z,Re,null,le,ce,Gf(Z,ge),me,!1),Ae>0){if(Ae&16)I(Re,be,Pe,le,ge);else if(Ae&2&&be.class!==Pe.class&&l(Re,"class",null,Pe.class,ge),Ae&4&&l(Re,"style",be.style,Pe.style,ge),Ae&8){const Qe=Z.dynamicProps;for(let tt=0;tt{Be&&xo(Be,le,Z,H),ke&&nr(Z,H,le,"updated")},ce)},O=(H,Z,le,ce,ge,me,$e)=>{for(let Re=0;Re{if(Z!==le){if(Z!==pn)for(const me in Z)!Mi(me)&&!(me in le)&&l(H,me,Z[me],null,ge,ce);for(const me in le){if(Mi(me))continue;const $e=le[me],Re=Z[me];$e!==Re&&me!=="value"&&l(H,me,Re,$e,ge,ce)}"value"in le&&l(H,"value",Z.value,le.value,ge)}},L=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{const ye=Z.el=H?H.el:s(""),ke=Z.anchor=H?H.anchor:s("");let{patchFlag:be,dynamicChildren:Pe,slotScopeIds:Be}=Z;Be&&(Re=Re?Re.concat(Be):Be),H==null?(a(ye,le,ce),a(ke,le,ce),M(Z.children||[],le,ke,ge,me,$e,Re,Ae)):be>0&&be&64&&Pe&&H.dynamicChildren&&H.dynamicChildren.length===Pe.length?(O(H.dynamicChildren,Pe,le,ge,me,$e,Re),(Z.key!=null||ge&&Z===ge.subTree)&&Ip(H,Z,!0)):P(H,Z,le,ke,ge,me,$e,Re,Ae)},z=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{Z.slotScopeIds=Re,H==null?Z.shapeFlag&512?ge.ctx.activate(Z,le,ce,$e,Ae):q(Z,le,ce,ge,me,$e,Ae):U(H,Z,Ae)},q=(H,Z,le,ce,ge,me,$e)=>{const Re=H.component=B_(H,ce,ge);if(jd(H)&&(Re.ctx.renderer=Y),z_(Re,!1,$e),Re.asyncDep){if(ge&&ge.registerDep(Re,F,$e),!H.el){const Ae=Re.subTree=Q(wn);y(null,Ae,Z,le),H.placeholder=Ae.el}}else F(Re,H,Z,le,ge,me,$e)},U=(H,Z,le)=>{const ce=Z.component=H.component;if(C_(H,Z,le))if(ce.asyncDep&&!ce.asyncResolved){N(ce,Z,le);return}else ce.next=Z,ce.update();else Z.el=H.el,ce.vnode=Z},F=(H,Z,le,ce,ge,me,$e)=>{const Re=()=>{if(H.isMounted){let{next:be,bu:Pe,u:Be,parent:Qe,vnode:tt}=H;{const Ke=o6(H);if(Ke){be&&(be.el=tt.el,N(H,be,$e)),Ke.asyncDep.then(()=>{da(()=>{H.isUnmounted||ye()},ge)});return}}let nt=be,Te;or(H,!1),be?(be.el=tt.el,N(H,be,$e)):be=tt,Pe&&kc(Pe),(Te=be.props&&be.props.onVnodeBeforeUpdate)&&xo(Te,Qe,be,tt),or(H,!0);const Ye=Qv(H),st=H.subTree;H.subTree=Ye,v(st,Ye,f(st.el),ne(st),H,ge,me),be.el=Ye.el,nt===null&&__(H,Ye.el),Be&&da(Be,ge),(Te=be.props&&be.props.onVnodeUpdated)&&da(()=>xo(Te,Qe,be,tt),ge)}else{let be;const{el:Pe,props:Be}=Z,{bm:Qe,m:tt,parent:nt,root:Te,type:Ye}=H,st=gs(Z);or(H,!1),Qe&&kc(Qe),!st&&(be=Be&&Be.onVnodeBeforeMount)&&xo(be,nt,Z),or(H,!0);{Te.ce&&Te.ce._hasShadowRoot()&&Te.ce._injectChildStyle(Ye,H.parent?H.parent.type:void 0);const Ke=H.subTree=Qv(H);v(null,Ke,le,ce,H,ge,me),Z.el=Ke.el}if(tt&&da(tt,ge),!st&&(be=Be&&Be.onVnodeMounted)){const Ke=Z;da(()=>xo(be,nt,Ke),ge)}(Z.shapeFlag&256||nt&&gs(nt.vnode)&&nt.vnode.shapeFlag&256)&&H.a&&da(H.a,ge),H.isMounted=!0,Z=le=ce=null}};H.scope.on();const Ae=H.effect=new c3(Re);H.scope.off();const ye=H.update=Ae.run.bind(Ae),ke=H.job=Ae.runIfDirty.bind(Ae);ke.i=H,ke.id=H.uid,Ae.scheduler=()=>kp(ke),or(H,!0),ye()},N=(H,Z,le)=>{Z.component=H;const ce=H.vnode.props;H.vnode=Z,H.next=null,x_(H,Z.props,ce,le),M_(H,Z.children,le),fl(),Fv(H),pl()},P=(H,Z,le,ce,ge,me,$e,Re,Ae=!1)=>{const ye=H&&H.children,ke=H?H.shapeFlag:0,be=Z.children,{patchFlag:Pe,shapeFlag:Be}=Z;if(Pe>0){if(Pe&128){W(ye,be,le,ce,ge,me,$e,Re,Ae);return}else if(Pe&256){B(ye,be,le,ce,ge,me,$e,Re,Ae);return}}Be&8?(ke&16&&ue(ye,ge,me),be!==ye&&d(le,be)):ke&16?Be&16?W(ye,be,le,ce,ge,me,$e,Re,Ae):ue(ye,ge,me,!0):(ke&8&&d(le,""),Be&16&&M(be,le,ce,ge,me,$e,Re,Ae))},B=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{H=H||hs,Z=Z||hs;const ye=H.length,ke=Z.length,be=Math.min(ye,ke);let Pe;for(Pe=0;Peke?ue(H,ge,me,!0,!1,be):M(Z,le,ce,ge,me,$e,Re,Ae,be)},W=(H,Z,le,ce,ge,me,$e,Re,Ae)=>{let ye=0;const ke=Z.length;let be=H.length-1,Pe=ke-1;for(;ye<=be&&ye<=Pe;){const Be=H[ye],Qe=Z[ye]=Ae?el(Z[ye]):$o(Z[ye]);if(fr(Be,Qe))v(Be,Qe,le,null,ge,me,$e,Re,Ae);else break;ye++}for(;ye<=be&&ye<=Pe;){const Be=H[be],Qe=Z[Pe]=Ae?el(Z[Pe]):$o(Z[Pe]);if(fr(Be,Qe))v(Be,Qe,le,null,ge,me,$e,Re,Ae);else break;be--,Pe--}if(ye>be){if(ye<=Pe){const Be=Pe+1,Qe=BePe)for(;ye<=be;)j(H[ye],ge,me,!0),ye++;else{const Be=ye,Qe=ye,tt=new Map;for(ye=Qe;ye<=Pe;ye++){const he=Z[ye]=Ae?el(Z[ye]):$o(Z[ye]);he.key!=null&&tt.set(he.key,ye)}let nt,Te=0;const Ye=Pe-Qe+1;let st=!1,Ke=0;const et=new Array(Ye);for(ye=0;ye=Ye){j(he,ge,me,!0);continue}let Le;if(he.key!=null)Le=tt.get(he.key);else for(nt=Qe;nt<=Pe;nt++)if(et[nt-Qe]===0&&fr(he,Z[nt])){Le=nt;break}Le===void 0?j(he,ge,me,!0):(et[Le-Qe]=ye+1,Le>=Ke?Ke=Le:st=!0,v(he,Z[Le],le,null,ge,me,$e,Re,Ae),Te++)}const gt=st?R_(et):hs;for(nt=gt.length-1,ye=Ye-1;ye>=0;ye--){const he=Qe+ye,Le=Z[he],pe=Z[he+1],Ee=he+1{const{el:me,type:$e,transition:Re,children:Ae,shapeFlag:ye}=H;if(ye&6){K(H.component.subTree,Z,le,ce);return}if(ye&128){H.suspense.move(Z,le,ce);return}if(ye&64){$e.move(H,Z,le,Y);return}if($e===He){a(me,Z,le);for(let be=0;beRe.enter(me),ge);else{const{leave:be,delayLeave:Pe,afterLeave:Be}=Re,Qe=()=>{H.ctx.isUnmounted?o(me):a(me,Z,le)},tt=()=>{me._isLeaving&&me[Mo](!0),be(me,()=>{Qe(),Be&&Be()})};Pe?Pe(me,Qe,tt):tt()}else a(me,Z,le)},j=(H,Z,le,ce=!1,ge=!1)=>{const{type:me,props:$e,ref:Re,children:Ae,dynamicChildren:ye,shapeFlag:ke,patchFlag:be,dirs:Pe,cacheIndex:Be,memo:Qe}=H;if(be===-2&&(ge=!1),Re!=null&&(fl(),Ri(Re,null,le,H,!0),pl()),Be!=null&&(Z.renderCache[Be]=void 0),ke&256){Z.ctx.deactivate(H);return}const tt=ke&1&&Pe,nt=!gs(H);let Te;if(nt&&(Te=$e&&$e.onVnodeBeforeUnmount)&&xo(Te,Z,H),ke&6)te(H.component,le,ce);else{if(ke&128){H.suspense.unmount(le,ce);return}tt&&nr(H,null,Z,"beforeUnmount"),ke&64?H.type.remove(H,Z,le,Y,ce):ye&&!ye.hasOnce&&(me!==He||be>0&&be&64)?ue(ye,Z,le,!1,!0):(me===He&&be&384||!ge&&ke&16)&&ue(Ae,Z,le),ce&&G(H)}const Ye=Qe!=null&&Be==null;(nt&&(Te=$e&&$e.onVnodeUnmounted)||tt||Ye)&&da(()=>{Te&&xo(Te,Z,H),tt&&nr(H,null,Z,"unmounted"),Ye&&(H.el=null)},le)},G=H=>{const{type:Z,el:le,anchor:ce,transition:ge}=H;if(Z===He){ee(le,ce);return}if(Z===Tc){C(H);return}const me=()=>{o(le),ge&&!ge.persisted&&ge.afterLeave&&ge.afterLeave()};if(H.shapeFlag&1&&ge&&!ge.persisted){const{leave:$e,delayLeave:Re}=ge,Ae=()=>$e(le,me);Re?Re(H.el,me,Ae):Ae()}else me()},ee=(H,Z)=>{let le;for(;H!==Z;)le=h(H),o(H),H=le;o(Z)},te=(H,Z,le)=>{const{bum:ce,scope:ge,job:me,subTree:$e,um:Re,m:Ae,a:ye}=H;n1(Ae),n1(ye),ce&&kc(ce),ge.stop(),me&&(me.flags|=8,j($e,H,Z,le)),Re&&da(Re,Z),da(()=>{H.isUnmounted=!0},Z)},ue=(H,Z,le,ce=!1,ge=!1,me=0)=>{for(let $e=me;$e{if(H.shapeFlag&6)return ne(H.component.subTree);if(H.shapeFlag&128)return H.suspense.next();const Z=h(H.anchor||H.el),le=Z&&Z[N3];return le?h(le):Z};let de=!1;const se=(H,Z,le)=>{let ce;H==null?Z._vnode&&(j(Z._vnode,null,null,!0),ce=Z._vnode.component):v(Z._vnode||null,H,Z,null,null,null,le),Z._vnode=H,de||(de=!0,Fv(ce),O3(),de=!1)},Y={p:v,um:j,m:K,r:G,mt:q,mc:M,pc:P,pbc:O,n:ne,o:e};return{render:se,hydrate:void 0,createApp:v_(se)}}function Gf({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 or({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function A_(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ip(e,t,n=!1){const a=e.children,o=t.children;if(Tt(a)&&Tt(o))for(let l=0;l>1,e[n[s]]0&&(t[a]=n[l-1]),n[l]=a)}}for(l=n.length,r=n[l-1];l-- >0;)n[l]=r,r=t[r];return n}function o6(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:o6(t)}function n1(e){if(e)for(let t=0;te.__isSuspense;function N_(e,t){t&&t.pendingBranch?Tt(e)?t.effects.push(...e):t.effects.push(e):jC(e)}const He=Symbol.for("v-fgt"),Xs=Symbol.for("v-txt"),wn=Symbol.for("v-cmt"),Tc=Symbol.for("v-stc"),Pi=[];let Aa=null;function _(e=!1){Pi.push(Aa=e?null:[])}function P_(){Pi.pop(),Aa=Pi[Pi.length-1]||null}let Yi=1;function td(e,t=!1){Yi+=e,e<0&&Aa&&t&&(Aa.hasOnce=!0)}function s6(e){return e.dynamicChildren=Yi>0?Aa||hs:null,P_(),Yi>0&&Aa&&Aa.push(e),e}function $(e,t,n,a,o,l){return s6(E(e,t,n,a,o,l,!0))}function ie(e,t,n,a,o){return s6(Q(e,t,n,a,o,!0))}function Wt(e){return e?e.__v_isVNode===!0:!1}function fr(e,t){return e.type===t.type&&e.key===t.key}const i6=({key:e})=>e??null,Mc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?xn(e)||Gt(e)||It(e)?{i:Gn,r:e,k:t,f:!!n}:e:null);function E(e,t=null,n=null,a=0,o=null,l=e===He?0:1,r=!1,s=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&i6(t),ref:t&&Mc(t),scopeId:A3,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:a,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Gn};return s?(Lp(u,n),l&128&&e.normalize(u)):n&&(u.shapeFlag|=xn(n)?8:16),Yi>0&&!r&&Aa&&(u.patchFlag>0||l&6)&&u.patchFlag!==32&&Aa.push(u),u}const Q=I_;function I_(e,t=null,n=null,a=0,o=null,l=!1){if((!e||e===F3)&&(e=wn),Wt(e)){const s=Ho(e,t,!0);return n&&Lp(s,n),Yi>0&&!l&&Aa&&(s.shapeFlag&6?Aa[Aa.indexOf(e)]=s:Aa.push(s)),s.patchFlag=-2,s}if(K_(e)&&(e=e.__vccOpts),t){t=ul(t);let{class:s,style:u}=t;s&&!xn(s)&&(t.class=R(s)),tn(u)&&(Kd(u)&&!Tt(u)&&(u=Vn({},u)),t.style=We(u))}const r=xn(e)?1:r6(e)?128:P3(e)?64:tn(e)?4:It(e)?2:0;return E(e,t,n,a,o,r,l,!0)}function ul(e){return e?Kd(e)||Z3(e)?Vn({},e):e:null}function Ho(e,t,n=!1,a=!1){const{props:o,ref:l,patchFlag:r,children:s,transition:u}=e,c=t?pt(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&i6(c),ref:t&&t.ref?n&&l?Tt(l)?l.concat(Mc(t)):[l,Mc(t)]:Mc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==He?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:u,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ho(e.ssContent),ssFallback:e.ssFallback&&Ho(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return u&&a&&Nr(d,u.clone(d)),d}function _t(e=" ",t=0){return Q(Xs,null,e,t)}function Nde(e,t){const n=Q(Tc,null,e);return n.staticCount=t,n}function re(e="",t=!1){return t?(_(),ie(wn,null,e)):Q(wn,null,e)}function $o(e){return e==null||typeof e=="boolean"?Q(wn):Tt(e)?Q(He,null,e.slice()):Wt(e)?el(e):Q(Xs,null,String(e))}function el(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ho(e)}function Lp(e,t){let n=0;const{shapeFlag:a}=e;if(t==null)t=null;else if(Tt(t))n=16;else if(typeof t=="object")if(a&65){const o=t.default;o&&(o._c&&(o._d=!1),Lp(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Z3(t)?t._ctx=Gn:o===3&&Gn&&(Gn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else It(t)?(t={default:t,_ctx:Gn},n=32):(t=String(t),a&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function pt(...e){const t={};for(let n=0;noa||Gn;let nd,G0;{const e=Dd(),t=(n,a)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(a),l=>{o.length>1?o.forEach(r=>r(l)):o[0](l)}};nd=t("__VUE_INSTANCE_SETTERS__",n=>oa=n),G0=t("__VUE_SSR_SETTERS__",n=>Gi=n)}const Cu=e=>{const t=oa;return nd(e),e.scope.on(),()=>{e.scope.off(),nd(t)}},a1=()=>{oa&&oa.scope.off(),nd(null)};function u6(e){return e.vnode.shapeFlag&4}let Gi=!1;function z_(e,t=!1,n=!1){t&&G0(t);const{props:a,children:o}=e.vnode,l=u6(e);S_(e,a,l,t),T_(e,o,n||t);const r=l?D_(e,t):void 0;return t&&G0(!1),r}function D_(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,i_);const{setup:a}=n;if(a){fl();const o=e.setupContext=a.length>1?d6(e):null,l=Cu(e),r=bu(a,e,0,[e.props,o]),s=Q4(r);if(pl(),l(),(s||e.sp)&&!gs(e)&&D3(e),s){if(r.then(a1,a1),t)return r.then(u=>{o1(e,u)}).catch(u=>{Wd(u,e,0)});e.asyncDep=r}else o1(e,r)}else c6(e)}function o1(e,t,n){It(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:tn(t)&&(e.setupState=k3(t)),c6(e)}function c6(e,t,n){const a=e.type;e.render||(e.render=a.render||Qa);{const o=Cu(e);fl();try{u_(e)}finally{pl(),o()}}}const H_={get(e,t){return aa(e,"get",""),e[t]}};function d6(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,H_),slots:e.slots,emit:e.emit,expose:t}}function Gd(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(k3(Io(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ni)return Ni[n](e)},has(t,n){return n in t||n in Ni}})):e.proxy}function F_(e,t=!0){return It(e)?e.displayName||e.name:e.name||t&&e.__name}function K_(e){return It(e)&&"__vccOpts"in e}const x=(e,t)=>DC(e,t,Gi);function qe(e,t,n){try{td(-1);const a=arguments.length;return a===2?tn(t)&&!Tt(t)?Wt(t)?Q(e,null,[t]):Q(e,t):Q(e,null,t):(a>3?n=Array.prototype.slice.call(arguments,2):a===3&&Wt(n)&&(n=[n]),Q(e,t,n))}finally{td(1)}}const W_="3.5.32",j_=Qa;/** +* @vue/runtime-dom v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let X0;const l1=typeof window<"u"&&window.trustedTypes;if(l1)try{X0=l1.createPolicy("vue",{createHTML:e=>e})}catch{}const f6=X0?e=>X0.createHTML(e):e=>e,q_="http://www.w3.org/2000/svg",U_="http://www.w3.org/1998/Math/MathML",Qo=typeof document<"u"?document:null,r1=Qo&&Qo.createElement("template"),Y_={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const o=t==="svg"?Qo.createElementNS(q_,e):t==="mathml"?Qo.createElementNS(U_,e):n?Qo.createElement(e,{is:n}):Qo.createElement(e);return e==="select"&&a&&a.multiple!=null&&o.setAttribute("multiple",a.multiple),o},createText:e=>Qo.createTextNode(e),createComment:e=>Qo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Qo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,o,l){const r=n?n.previousSibling:t.lastChild;if(o&&(o===l||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===l||!(o=o.nextSibling)););else{r1.innerHTML=f6(a==="svg"?`${e}`:a==="mathml"?`${e}`:e);const s=r1.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Al="transition",fi="animation",Ts=Symbol("_vtc"),p6={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},h6=Vn({},L3,p6),G_=e=>(e.displayName="Transition",e.props=h6,e),qn=G_((e,{slots:t})=>qe(e_,v6(e),t)),lr=(e,t=[])=>{Tt(e)?e.forEach(n=>n(...t)):e&&e(...t)},s1=e=>e?Tt(e)?e.some(t=>t.length>1):e.length>1:!1;function v6(e){const t={};for(const L in e)L in p6||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:a,duration:o,enterFromClass:l=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=l,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,p=X_(o),v=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:w,onLeave:C,onLeaveCancelled:S,onBeforeAppear:k=y,onAppear:T=b,onAppearCancelled:M=w}=t,A=(L,z,q,U)=>{L._enterCancelled=U,Nl(L,z?d:s),Nl(L,z?c:r),q&&q()},O=(L,z)=>{L._isLeaving=!1,Nl(L,f),Nl(L,g),Nl(L,h),z&&z()},I=L=>(z,q)=>{const U=L?T:b,F=()=>A(z,L,q);lr(U,[z,F]),i1(()=>{Nl(z,L?u:l),Eo(z,L?d:s),s1(U)||u1(z,a,v,F)})};return Vn(t,{onBeforeEnter(L){lr(y,[L]),Eo(L,l),Eo(L,r)},onBeforeAppear(L){lr(k,[L]),Eo(L,u),Eo(L,c)},onEnter:I(!1),onAppear:I(!0),onLeave(L,z){L._isLeaving=!0;const q=()=>O(L,z);Eo(L,f),L._enterCancelled?(Eo(L,h),J0(L)):(J0(L),Eo(L,h)),i1(()=>{L._isLeaving&&(Nl(L,f),Eo(L,g),s1(C)||u1(L,a,m,q))}),lr(C,[L,q])},onEnterCancelled(L){A(L,!1,void 0,!0),lr(w,[L])},onAppearCancelled(L){A(L,!0,void 0,!0),lr(M,[L])},onLeaveCancelled(L){O(L),lr(S,[L])}})}function X_(e){if(e==null)return null;if(tn(e))return[Xf(e.enter),Xf(e.leave)];{const t=Xf(e);return[t,t]}}function Xf(e){return sC(e)}function Eo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ts]||(e[Ts]=new Set)).add(t)}function Nl(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[Ts];n&&(n.delete(t),n.size||(e[Ts]=void 0))}function i1(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let J_=0;function u1(e,t,n,a){const o=e._endId=++J_,l=()=>{o===e._endId&&a()};if(n!=null)return setTimeout(l,n);const{type:r,timeout:s,propCount:u}=m6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,h),l()},h=g=>{g.target===e&&++d>=u&&f()};setTimeout(()=>{d(n[p]||"").split(", "),o=a(`${Al}Delay`),l=a(`${Al}Duration`),r=c1(o,l),s=a(`${fi}Delay`),u=a(`${fi}Duration`),c=c1(s,u);let d=null,f=0,h=0;t===Al?r>0&&(d=Al,f=r,h=l.length):t===fi?c>0&&(d=fi,f=c,h=u.length):(f=Math.max(r,c),d=f>0?r>c?Al:fi:null,h=d?d===Al?l.length:u.length:0);const g=d===Al&&/\b(?:transform|all)(?:,|$)/.test(a(`${Al}Property`).toString());return{type:d,timeout:f,propCount:h,hasTransform:g}}function c1(e,t){for(;e.lengthd1(n)+d1(e[a])))}function d1(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function J0(e){return(e?e.ownerDocument:document).body.offsetHeight}function Z_(e,t,n){const a=e[Ts];a&&(t=(t?[t,...a]:[...a]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const ad=Symbol("_vod"),g6=Symbol("_vsh"),At={name:"show",beforeMount(e,{value:t},{transition:n}){e[ad]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):pi(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:a}){!t!=!n&&(a?t?(a.beforeEnter(e),pi(e,!0),a.enter(e)):a.leave(e,()=>{pi(e,!1)}):pi(e,t))},beforeUnmount(e,{value:t}){pi(e,t)}};function pi(e,t){e.style.display=t?e[ad]:"none",e[g6]=!t}const Q_=Symbol(""),eS=/(?:^|;)\s*display\s*:/;function tS(e,t,n){const a=e.style,o=xn(n);let l=!1;if(n&&!o){if(t)if(xn(t))for(const r of t.split(";")){const s=r.slice(0,r.indexOf(":")).trim();n[s]==null&&Oc(a,s,"")}else for(const r in t)n[r]==null&&Oc(a,r,"");for(const r in n)r==="display"&&(l=!0),Oc(a,r,n[r])}else if(o){if(t!==n){const r=a[Q_];r&&(n+=";"+r),a.cssText=n,l=eS.test(n)}}else t&&e.removeAttribute("style");ad in e&&(e[ad]=l?a.display:"",e[g6]&&(a.display="none"))}const f1=/\s*!important$/;function Oc(e,t,n){if(Tt(n))n.forEach(a=>Oc(e,t,a));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const a=nS(e,t);f1.test(n)?e.setProperty(Zl(a),n.replace(f1,""),"important"):e[a]=n}}const p1=["Webkit","Moz","ms"],Jf={};function nS(e,t){const n=Jf[t];if(n)return n;let a=va(t);if(a!=="filter"&&a in e)return Jf[t]=a;a=zd(a);for(let o=0;oZf||(rS.then(()=>Zf=0),Zf=Date.now());function iS(e,t){const n=a=>{if(!a._vts)a._vts=Date.now();else if(a._vts<=n.attached)return;lo(uS(a,n.value),t,5,[a])};return n.value=e,n.attached=sS(),n}function uS(e,t){if(Tt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(a=>o=>!o._stopped&&a&&a(o))}else return t}const b1=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cS=(e,t,n,a,o,l)=>{const r=o==="svg";t==="class"?Z_(e,a,r):t==="style"?tS(e,n,a):Pd(t)?Id(t)||oS(e,t,n,a,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):dS(e,t,a,r))?(m1(e,t,a),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&v1(e,t,a,r,l,t!=="value")):e._isVueCE&&(fS(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!xn(a)))?m1(e,va(t),a,l,t):(t==="true-value"?e._trueValue=a:t==="false-value"&&(e._falseValue=a),v1(e,t,a,r))};function dS(e,t,n,a){if(a)return!!(t==="innerHTML"||t==="textContent"||t in e&&b1(t)&&It(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return b1(t)&&xn(n)?!1:t in e}function fS(e,t){const n=e._def.props;if(!n)return!1;const a=va(t);return Array.isArray(n)?n.some(o=>va(o)===a):Object.keys(n).some(o=>va(o)===a)}const y6=new WeakMap,b6=new WeakMap,od=Symbol("_moveCb"),w1=Symbol("_enterCb"),pS=e=>(delete e.props.mode,e),hS=pS({name:"TransitionGroup",props:Vn({},h6,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ht(),a=I3();let o,l;return ho(()=>{if(!o.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!yS(o[0].el,n.vnode.el,r)){o=[];return}o.forEach(vS),o.forEach(mS);const s=o.filter(gS);J0(n.vnode.el),s.forEach(u=>{const c=u.el,d=c.style;Eo(c,r),d.transform=d.webkitTransform=d.transitionDuration="";const f=c[od]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",f),c[od]=null,Nl(c,r))};c.addEventListener("transitionend",f)}),o=[]}),()=>{const r=jt(e),s=v6(r);let u=r.tag||He;if(o=[],l)for(let c=0;c{s.split(/\s+/).forEach(u=>u&&a.classList.remove(u))}),n.split(/\s+/).forEach(s=>s&&a.classList.add(s)),a.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(a);const{hasTransform:r}=m6(a);return l.removeChild(a),r}const Ms=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Tt(t)?n=>kc(t,n):t};function bS(e){e.target.composing=!0}function C1(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const cl=Symbol("_assign");function _1(e,t,n){return t&&(e=e.trim()),n&&(e=yp(e)),e}const _6={created(e,{modifiers:{lazy:t,trim:n,number:a}},o){e[cl]=Ms(o);const l=a||o.props&&o.props.type==="number";zl(e,t?"change":"input",r=>{r.target.composing||e[cl](_1(e.value,n,l))}),(n||l)&&zl(e,"change",()=>{e.value=_1(e.value,n,l)}),t||(zl(e,"compositionstart",bS),zl(e,"compositionend",C1),zl(e,"change",C1))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:a,trim:o,number:l}},r){if(e[cl]=Ms(r),e.composing)return;const s=(l||e.type==="number")&&!/^0\d/.test(e.value)?yp(e.value):e.value,u=t??"";if(s===u)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(a&&t===n||o&&e.value.trim()===u)||(e.value=u)}},S6={deep:!0,created(e,t,n){e[cl]=Ms(n),zl(e,"change",()=>{const a=e._modelValue,o=k6(e),l=e.checked,r=e[cl];if(Tt(a)){const s=o3(a,o),u=s!==-1;if(l&&!u)r(a.concat(o));else if(!l&&u){const c=[...a];c.splice(s,1),r(c)}}else if(Ld(a)){const s=new Set(a);l?s.add(o):s.delete(o),r(s)}else r(E6(e,l))})},mounted:S1,beforeUpdate(e,t,n){e[cl]=Ms(n),S1(e,t,n)}};function S1(e,{value:t,oldValue:n},a){e._modelValue=t;let o;if(Tt(t))o=o3(t,a.props.value)>-1;else if(Ld(t))o=t.has(a.props.value);else{if(t===n)return;o=Ar(t,E6(e,!0))}e.checked!==o&&(e.checked=o)}const x6={created(e,{value:t},n){e.checked=Ar(t,n.props.value),e[cl]=Ms(n),zl(e,"change",()=>{e[cl](k6(e))})},beforeUpdate(e,{value:t,oldValue:n},a){e[cl]=Ms(a),t!==n&&(e.checked=Ar(t,a.props.value))}};function k6(e){return"_value"in e?e._value:e.value}function E6(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wS=["ctrl","shift","alt","meta"],CS={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)=>wS.some(n=>e[`${n}Key`]&&!t.includes(n))},Xe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),a=t.join(".");return n[a]||(n[a]=(o,...l)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),a=t.join(".");return n[a]||(n[a]=o=>{if(!("key"in o))return;const l=Zl(o.key);if(t.some(r=>r===l||_S[r]===l))return e(o)})},SS=Vn({patchProp:cS},Y_);let x1;function T6(){return x1||(x1=O_(SS))}const Ul=(...e)=>{T6().render(...e)},M6=(...e)=>{const t=T6().createApp(...e),{mount:n}=t;return t.mount=a=>{const o=kS(a);if(!o)return;const l=t._component;!It(l)&&!l.render&&!l.template&&(l.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,xS(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};function xS(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function kS(e){return xn(e)?document.querySelector(e):e}const we={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},k1=["left","center","right"],ES=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],Qf=["sun","mon","tue","wed","thu","fri","sat"],at="update:modelValue",yt="change",Sn="input",Xd=11,O6=2,E1=Symbol("INSTALLED_KEY"),vo=["","default","small","large"];function $6(e,t){var n;const a=qt();return ma(()=>{a.value=e()},{...t,flush:(n=void 0)!=null?n:"sync"}),Rr(a)}function jr(e){return i3()?(u3(e),!0):!1}function Xn(e){return typeof e=="function"?e():i(e)}function TS(e){if(!Gt(e))return Nt(e);const t=new Proxy({},{get(n,a,o){return i(Reflect.get(e.value,a,o))},set(n,a,o){return Gt(e.value[a])&&!Gt(o)?e.value[a].value=o:e.value[a]=o,!0},deleteProperty(n,a){return Reflect.deleteProperty(e.value,a)},has(n,a){return Reflect.has(e.value,a)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Nt(t)}function MS(e){return TS(x(e))}const Rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const OS=e=>typeof e<"u",A6=e=>e!=null,$S=Object.prototype.toString,AS=e=>$S.call(e)==="[object Object]",R6=(e,t,n)=>Math.min(n,Math.max(t,e)),to=()=>{},ld=RS();function RS(){var e,t;return Rt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function N6(e,t){function n(...a){return new Promise((o,l)=>{Promise.resolve(e(()=>t.apply(this,a),{fn:t,thisArg:this,args:a})).then(o).catch(l)})}return n}function NS(e,t={}){let n,a,o=to;const l=s=>{clearTimeout(s),o(),o=to};return s=>{const u=Xn(e),c=Xn(t.maxWait);return n&&l(n),u<=0||c!==void 0&&c<=0?(a&&(l(a),a=null),Promise.resolve(s())):new Promise((d,f)=>{o=t.rejectOnCancel?f:d,c&&!a&&(a=setTimeout(()=>{n&&l(n),a=null,d(s())},c)),n=setTimeout(()=>{a&&l(a),a=null,d(s())},u)})}}function PS(...e){let t=0,n,a=!0,o=to,l,r,s,u,c;!Gt(e[0])&&typeof e[0]=="object"?{delay:r,trailing:s=!0,leading:u=!0,rejectOnCancel:c=!1}=e[0]:[r,s=!0,u=!0,c=!1]=e;const d=()=>{n&&(clearTimeout(n),n=void 0,o(),o=to)};return h=>{const g=Xn(r),p=Date.now()-t,v=()=>l=h();return d(),g<=0?(t=Date.now(),v()):(p>g&&(u||!a)?(t=Date.now(),v()):s&&(l=new Promise((m,y)=>{o=c?y:m,n=setTimeout(()=>{t=Date.now(),a=!0,m(v()),d()},Math.max(0,g-p))})),!u&&!n&&(n=setTimeout(()=>a=!0,g)),a=!1,l)}}function IS(e){return ht()}function _u(e,t=200,n={}){return N6(NS(t,n),e)}function LS(e,t=200,n={}){const a=V(e.value),o=_u(()=>{a.value=e.value},t,n);return fe(e,()=>o()),a}function P6(e,t=200,n=!1,a=!0,o=!1){return N6(PS(t,n,a,o),e)}function Vp(e,t=!0,n){IS()?mt(e,n):t?e():Ie(e)}function Os(e,t,n={}){const{immediate:a=!0}=n,o=V(!1);let l=null;function r(){l&&(clearTimeout(l),l=null)}function s(){o.value=!1,r()}function u(...c){r(),o.value=!0,l=setTimeout(()=>{o.value=!1,l=null,e(...c)},Xn(t))}return a&&(o.value=!0,Rt&&u()),jr(s),{isPending:Rr(o),start:u,stop:s}}const mo=Rt?window:void 0,VS=Rt?window.document:void 0;function Mn(e){var t;const n=Xn(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Vt(...e){let t,n,a,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,a,o]=e,t=mo):[t,n,a,o]=e,!t)return to;Array.isArray(n)||(n=[n]),Array.isArray(a)||(a=[a]);const l=[],r=()=>{l.forEach(d=>d()),l.length=0},s=(d,f,h,g)=>(d.addEventListener(f,h,g),()=>d.removeEventListener(f,h,g)),u=fe(()=>[Mn(t),Xn(o)],([d,f])=>{if(r(),!d)return;const h=AS(f)?{...f}:f;l.push(...n.flatMap(g=>a.map(p=>s(d,g,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),r()};return jr(c),c}let T1=!1;function Bp(e,t,n={}){const{window:a=mo,ignore:o=[],capture:l=!0,detectIframe:r=!1}=n;if(!a)return to;ld&&!T1&&(T1=!0,Array.from(a.document.body.children).forEach(v=>v.addEventListener("click",to)),a.document.documentElement.addEventListener("click",to));let s=!0;const u=v=>Xn(o).some(m=>{if(typeof m=="string")return Array.from(a.document.querySelectorAll(m)).some(y=>y===v.target||v.composedPath().includes(y));{const y=Mn(m);return y&&(v.target===y||v.composedPath().includes(y))}});function c(v){const m=Xn(v);return m&&m.$.subTree.shapeFlag===16}function d(v,m){const y=Xn(v),b=y.$.subTree&&y.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(w=>w.el===m.target||m.composedPath().includes(w.el))}const f=v=>{const m=Mn(e);if(v.target!=null&&!(!(m instanceof Element)&&c(e)&&d(e,v))&&!(!m||m===v.target||v.composedPath().includes(m))){if(v.detail===0&&(s=!u(v)),!s){s=!0;return}t(v)}};let h=!1;const g=[Vt(a,"click",v=>{h||(h=!0,setTimeout(()=>{h=!1},0),f(v))},{passive:!0,capture:l}),Vt(a,"pointerdown",v=>{const m=Mn(e);s=!u(v)&&!!(m&&!v.composedPath().includes(m))},{passive:!0}),r&&Vt(a,"blur",v=>{setTimeout(()=>{var m;const y=Mn(e);((m=a.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(y!=null&&y.contains(a.document.activeElement))&&t(v)},0)})].filter(Boolean);return()=>g.forEach(v=>v())}function BS(){const e=V(!1),t=ht();return t&&mt(()=>{e.value=!0},t),e}function Jd(e){const t=BS();return x(()=>(t.value,!!e()))}function Su(e,t,n={}){const{window:a=mo,...o}=n;let l;const r=Jd(()=>a&&"MutationObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const h=Xn(e),g=(Array.isArray(h)?h:[h]).map(Mn).filter(A6);return new Set(g)}),c=fe(()=>u.value,h=>{s(),r.value&&h.size&&(l=new MutationObserver(t),h.forEach(g=>l.observe(g,o)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),f=()=>{c(),s()};return jr(f),{isSupported:r,stop:f,takeRecords:d}}function zS(e={}){var t;const{window:n=mo,deep:a=!0,triggerOnRemoval:o=!1}=e,l=(t=e.document)!=null?t:n==null?void 0:n.document,r=()=>{var c;let d=l==null?void 0:l.activeElement;if(a)for(;d!=null&&d.shadowRoot;)d=(c=d==null?void 0:d.shadowRoot)==null?void 0:c.activeElement;return d},s=V(),u=()=>{s.value=r()};return n&&(Vt(n,"blur",c=>{c.relatedTarget===null&&u()},!0),Vt(n,"focus",u,!0)),o&&Su(l,c=>{c.filter(d=>d.removedNodes.length).map(d=>Array.from(d.removedNodes)).flat().forEach(d=>{d===s.value&&u()})},{childList:!0,subtree:!0}),u(),s}function DS(e,t={}){const{window:n=mo}=t,a=Jd(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let o;const l=V(!1),r=c=>{l.value=c.matches},s=()=>{o&&("removeEventListener"in o?o.removeEventListener("change",r):o.removeListener(r))},u=ma(()=>{a.value&&(s(),o=n.matchMedia(Xn(e)),"addEventListener"in o?o.addEventListener("change",r):o.addListener(r),l.value=o.matches)});return jr(()=>{u(),s(),o=void 0}),l}function HS(e){return JSON.parse(JSON.stringify(e))}function FS(e,t,n={}){const{window:a=mo,initialValue:o,observe:l=!1}=n,r=V(o),s=x(()=>{var c;return Mn(t)||((c=a==null?void 0:a.document)==null?void 0:c.documentElement)});function u(){var c;const d=Xn(e),f=Xn(s);if(f&&a&&d){const h=(c=a.getComputedStyle(f).getPropertyValue(d))==null?void 0:c.trim();r.value=h||o}}return l&&Su(s,u,{attributeFilter:["style","class"],window:a}),fe([s,()=>Xn(e)],(c,d)=>{d[0]&&d[1]&&d[0].style.removeProperty(d[1]),u()},{immediate:!0}),fe(r,c=>{var d;const f=Xn(e);(d=s.value)!=null&&d.style&&f&&(c==null?s.value.style.removeProperty(f):s.value.style.setProperty(f,c))}),r}function KS(e={}){const{document:t=VS}=e;if(!t)return V("visible");const n=V(t.visibilityState);return Vt(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function en(e,t,n={}){const{window:a=mo,...o}=n;let l;const r=Jd(()=>a&&"ResizeObserver"in a),s=()=>{l&&(l.disconnect(),l=void 0)},u=x(()=>{const f=Xn(e);return Array.isArray(f)?f.map(h=>Mn(h)):[Mn(f)]}),c=fe(u,f=>{if(s(),r.value&&a){l=new ResizeObserver(t);for(const h of f)h&&l.observe(h,o)}},{immediate:!0,flush:"post"}),d=()=>{s(),c()};return jr(d),{isSupported:r,stop:d}}function M1(e,t={}){const{reset:n=!0,windowResize:a=!0,windowScroll:o=!0,immediate:l=!0,updateTiming:r="sync"}=t,s=V(0),u=V(0),c=V(0),d=V(0),f=V(0),h=V(0),g=V(0),p=V(0);function v(){const y=Mn(e);if(!y){n&&(s.value=0,u.value=0,c.value=0,d.value=0,f.value=0,h.value=0,g.value=0,p.value=0);return}const b=y.getBoundingClientRect();s.value=b.height,u.value=b.bottom,c.value=b.left,d.value=b.right,f.value=b.top,h.value=b.width,g.value=b.x,p.value=b.y}function m(){r==="sync"?v():r==="next-frame"&&requestAnimationFrame(()=>v())}return en(e,m),fe(()=>Mn(e),y=>!y&&m()),Su(e,m,{attributeFilter:["style","class"]}),o&&Vt("scroll",m,{capture:!0,passive:!0}),a&&Vt("resize",m,{passive:!0}),Vp(()=>{l&&m()}),{height:s,bottom:u,left:c,right:d,top:f,width:h,x:g,y:p,update:m}}function Z0(e,t={width:0,height:0},n={}){const{window:a=mo,box:o="content-box"}=n,l=x(()=>{var f,h;return(h=(f=Mn(e))==null?void 0:f.namespaceURI)==null?void 0:h.includes("svg")}),r=V(t.width),s=V(t.height),{stop:u}=en(e,([f])=>{const h=o==="border-box"?f.borderBoxSize:o==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(a&&l.value){const g=Mn(e);if(g){const p=g.getBoundingClientRect();r.value=p.width,s.value=p.height}}else if(h){const g=Array.isArray(h)?h:[h];r.value=g.reduce((p,{inlineSize:v})=>p+v,0),s.value=g.reduce((p,{blockSize:v})=>p+v,0)}else r.value=f.contentRect.width,s.value=f.contentRect.height},n);Vp(()=>{const f=Mn(e);f&&(r.value="offsetWidth"in f?f.offsetWidth:t.width,s.value="offsetHeight"in f?f.offsetHeight:t.height)});const c=fe(()=>Mn(e),f=>{r.value=f?t.width:0,s.value=f?t.height:0});function d(){u(),c()}return{width:r,height:s,stop:d}}function WS(e,t,n={}){const{root:a,rootMargin:o="0px",threshold:l=0,window:r=mo,immediate:s=!0}=n,u=Jd(()=>r&&"IntersectionObserver"in r),c=x(()=>{const p=Xn(e);return(Array.isArray(p)?p:[p]).map(Mn).filter(A6)});let d=to;const f=V(s),h=u.value?fe(()=>[c.value,Mn(a),f.value],([p,v])=>{if(d(),!f.value||!p.length)return;const m=new IntersectionObserver(t,{root:Mn(v),rootMargin:o,threshold:l});p.forEach(y=>y&&m.observe(y)),d=()=>{m.disconnect(),d=to}},{immediate:s,flush:"post"}):to,g=()=>{d(),h(),f.value=!1};return jr(g),{isSupported:u,isActive:f,pause(){d(),f.value=!1},resume(){f.value=!0},stop:g}}function I6(e,t,n,a={}){var o,l,r;const{clone:s=!1,passive:u=!1,eventName:c,deep:d=!1,defaultValue:f,shouldEmit:h}=a,g=ht(),p=n||(g==null?void 0:g.emit)||((o=g==null?void 0:g.$emit)==null?void 0:o.bind(g))||((r=(l=g==null?void 0:g.proxy)==null?void 0:l.$emit)==null?void 0:r.bind(g==null?void 0:g.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const m=w=>s?typeof s=="function"?s(w):HS(w):w,y=()=>OS(e[t])?m(e[t]):f,b=w=>{h?h(w)&&p(v,w):p(v,w)};if(u){const w=y(),C=V(w);let S=!1;return fe(()=>e[t],k=>{S||(S=!0,C.value=m(k),Ie(()=>S=!1))}),fe(C,k=>{!S&&(k!==e[t]||d)&&b(k)},{deep:d}),C}else return x({get(){return y()},set(w){b(w)}})}function jS(e={}){const{window:t=mo}=e;if(!t)return V(!1);const n=V(t.document.hasFocus());return Vt(t,"blur",()=>{n.value=!1}),Vt(t,"focus",()=>{n.value=!0}),n}function zp(e={}){const{window:t=mo,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:a=Number.POSITIVE_INFINITY,listenOrientation:o=!0,includeScrollbar:l=!0,type:r="inner"}=e,s=V(n),u=V(a),c=()=>{t&&(r==="outer"?(s.value=t.outerWidth,u.value=t.outerHeight):l?(s.value=t.innerWidth,u.value=t.innerHeight):(s.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight))};if(c(),Vp(c),Vt("resize",c,{passive:!0}),o){const d=DS("(orientation: portrait)");fe(d,()=>c())}return{width:s,height:u}}const Zd=()=>Rt&&/firefox/i.test(window.navigator.userAgent),L6=()=>Rt&&/android/i.test(window.navigator.userAgent);/** +* @vue/shared v3.5.32 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Yt=()=>{},qS=Object.prototype.hasOwnProperty,An=(e,t)=>qS.call(e,t),Ve=Array.isArray,$s=e=>V6(e)==="[object Date]",ct=e=>typeof e=="function",Ue=e=>typeof e=="string",Mt=e=>e!==null&&typeof e=="object",As=e=>(Mt(e)||ct(e))&&ct(e.then)&&ct(e.catch),US=Object.prototype.toString,V6=e=>US.call(e),Q0=e=>V6(e)==="[object Object]",Dp=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},YS=/-\w/g,Hp=Dp(e=>e.replace(YS,t=>t.slice(1).toUpperCase())),GS=/\B([A-Z])/g,XS=Dp(e=>e.replace(GS,"-$1").toLowerCase()),JS=Dp(e=>e.charAt(0).toUpperCase()+e.slice(1));var B6=typeof global=="object"&&global&&global.Object===Object&&global,ZS=typeof self=="object"&&self&&self.Object===Object&&self,go=B6||ZS||Function("return this")(),qa=go.Symbol,z6=Object.prototype,QS=z6.hasOwnProperty,ex=z6.toString,hi=qa?qa.toStringTag:void 0;function tx(e){var t=QS.call(e,hi),n=e[hi];try{e[hi]=void 0;var a=!0}catch{}var o=ex.call(e);return a&&(t?e[hi]=n:delete e[hi]),o}var nx=Object.prototype,ax=nx.toString;function ox(e){return ax.call(e)}var lx="[object Null]",rx="[object Undefined]",O1=qa?qa.toStringTag:void 0;function qr(e){return e==null?e===void 0?rx:lx:O1&&O1 in Object(e)?tx(e):ox(e)}function Fo(e){return e!=null&&typeof e=="object"}var sx="[object Symbol]";function Qd(e){return typeof e=="symbol"||Fo(e)&&qr(e)==sx}function Fp(e,t){for(var n=-1,a=e==null?0:e.length,o=Array(a);++n0){if(++t>=Ix)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zx(e){return function(){return e}}var rd=function(){try{var e=Yr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Dx=rd?function(e,t){return rd(e,"toString",{configurable:!0,enumerable:!1,value:zx(t),writable:!0})}:Kp,F6=Bx(Dx);function Hx(e,t){for(var n=-1,a=e==null?0:e.length;++n-1}var qx=9007199254740991,Ux=/^(?:0|[1-9]\d*)$/;function ef(e,t){var n=typeof e;return t=t??qx,!!t&&(n=="number"||n!="symbol"&&Ux.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=Xx}function Zs(e){return e!=null&&qp(e.length)&&!Wp(e)}function Jx(e,t,n){if(!ba(n))return!1;var a=typeof t;return(a=="number"?Zs(n)&&ef(t,n.length):a=="string"&&t in n)?xu(n[t],e):!1}function Zx(e){return j6(function(t,n){var a=-1,o=n.length,l=o>1?n[o-1]:void 0,r=o>2?n[2]:void 0;for(l=e.length>3&&typeof l=="function"?(o--,l):void 0,r&&Jx(n[0],n[1],r)&&(l=o<3?void 0:l,o=1),t=Object(t);++a-1}function ik(e,t){var n=this.__data__,a=nf(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}function Sl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t0&&n(s)?t>1?Tu(s,t-1,n,a,o):Jp(o,s):a||(o[o.length]=s)}return o}function sd(e){var t=e==null?0:e.length;return t?Tu(e,1):[]}function J6(e){return F6(W6(e,void 0,sd),e+"")}var Zp=X6(Object.getPrototypeOf,Object),Sk="[object Object]",xk=Function.prototype,kk=Object.prototype,Z6=xk.toString,Ek=kk.hasOwnProperty,Tk=Z6.call(Object);function Qp(e){if(!Fo(e)||qr(e)!=Sk)return!1;var t=Zp(e);if(t===null)return!0;var n=Ek.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Z6.call(n)==Tk}function Mk(e,t,n){var a=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(o);++a=t?e:t)),e}function gr(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=Ii(n),n=n===n?n:0),t!==void 0&&(t=Ii(t),t=t===t?t:0),Ok(Ii(e),t,n)}function $k(){this.__data__=new Sl,this.size=0}function Ak(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Rk(e){return this.__data__.get(e)}function Nk(e){return this.__data__.has(e)}var Pk=200;function Ik(e,t){var n=this.__data__;if(n instanceof Sl){var a=n.__data__;if(!Qi||a.lengths))return!1;var c=l.get(e),d=l.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,g=n&uT?new eu:void 0;for(l.set(e,t),l.set(t,e);++f=t||T<0||f&&M>=l}function y(){var k=a0();if(m(k))return b(k);s=setTimeout(y,v(k))}function b(k){return s=void 0,h&&a?g(k):(a=o=void 0,r)}function w(){s!==void 0&&clearTimeout(s),c=0,a=u=o=s=void 0}function C(){return s===void 0?r:b(a0())}function S(){var k=a0(),T=m(k);if(a=arguments,o=this,u=k,T){if(s===void 0)return p(u);if(f)return clearTimeout(s),s=setTimeout(y,t),g(u)}return s===void 0&&(s=setTimeout(y,t)),r}return S.cancel=w,S.flush=C,S}function o2(e,t,n){(n!==void 0&&!xu(e[t],n)||n===void 0&&!(t in e))&&tf(e,t,n)}function g8(e){return Fo(e)&&Zs(e)}function l2(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function ZT(e){return Js(e,Eu(e))}function QT(e,t,n,a,o,l,r){var s=l2(e,n),u=l2(t,n),c=r.get(u);if(c){o2(e,n,c);return}var d=l?l(s,u,n+"",e,t,r):void 0,f=d===void 0;if(f){var h=ya(u),g=!h&&Ji(u),p=!h&&!g&&Gp(u);d=u,h||g||p?ya(s)?d=s:g8(s)?d=H6(s):g?(f=!1,d=e8(u,!0)):p?(f=!1,d=l8(u,!0)):d=[]:Qp(u)||Xi(u)?(d=s,Xi(s)?d=ZT(s):(!ba(s)||Wp(s))&&(d=r8(u))):f=!1}f&&(r.set(u,d),o(d,u,a,l,r),r.delete(u)),o2(e,n,d)}function y8(e,t,n,a,o){e!==t&&m8(t,function(l,r){if(o||(o=new no),ba(l))QT(e,t,r,n,y8,a,o);else{var s=a?a(l2(e,r),l,r+"",e,t,o):void 0;s===void 0&&(s=l),o2(e,r,s)}},Eu)}function eM(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function b8(e,t,n){var a=e==null?0:e.length;if(!a)return-1;var o=a-1;return K6(e,v8(t),o,!0)}function tM(e,t){var n=-1,a=Zs(e)?Array(e.length):[];return YT(e,function(o,l,r){a[++n]=t(o,l,r)}),a}function nM(e,t){var n=ya(e)?Fp:tM;return n(e,v8(t))}function w8(e,t){return Tu(nM(e,t),1)}var aM=1/0;function oM(e){var t=e==null?0:e.length;return t?Tu(e,aM):[]}function Ns(e){for(var t=-1,n=e==null?0:e.length,a={};++t1),l}),Js(e,o8(e),n),a&&(n=Vi(n,dM|fM|pM,cM));for(var o=t.length;o--;)uM(n,t[o]);return n});function _8(e,t,n,a){if(!ba(e))return e;t=Qs(t,e);for(var o=-1,l=t.length,r=l-1,s=e;s!=null&&++o=wM){var c=bM(e);if(c)return nh(c);r=!1,o=c8,u=new eu}else u=s;e:for(;++ae===void 0,Dt=e=>typeof e=="boolean",De=e=>typeof e=="number",ha=e=>!e&&e!==0||Ve(e)&&e.length===0||Mt(e)&&!Object.keys(e).length,_a=e=>typeof Element>"u"?!1:e instanceof Element,Sa=e=>Cn(e),_M=e=>Ue(e)?!Number.isNaN(Number(e)):!1,Ou=e=>e===window,Pl=new Map;if(Rt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Pl.values())for(const{documentHandler:a}of n)a(t,e);e=void 0}})}function om(e,t){let n=[];return Ve(t.arg)?n=t.arg:_a(t.arg)&&n.push(t.arg),function(a,o){const l=t.instance.popperRef,r=a.target,s=o==null?void 0:o.target,u=!t||!t.instance,c=!r||!s,d=e.contains(r)||e.contains(s),f=e===r,h=n.length&&n.some(p=>p==null?void 0:p.contains(r))||n.length&&n.includes(s),g=l&&(l.contains(r)||l.contains(s));u||c||d||f||h||g||t.value(a,o)}}const Yl={beforeMount(e,t){Pl.has(e)||Pl.set(e,[]),Pl.get(e).push({documentHandler:om(e,t),bindingFn:t.value})},updated(e,t){Pl.has(e)||Pl.set(e,[]);const n=Pl.get(e),a=n.findIndex(l=>l.bindingFn===t.oldValue),o={documentHandler:om(e,t),bindingFn:t.value};a>=0?n.splice(a,1,o):n.push(o)},unmounted(e){Pl.delete(e)}},SM=100,xM=600,rc="_RepeatClick",ud={beforeMount(e,t){const n=t.value,{interval:a=SM,delay:o=xM}=ct(n)?{}:n;let l,r;const s=()=>ct(n)?n():n.handler(),u=()=>{r&&(clearTimeout(r),r=void 0),l&&(clearInterval(l),l=void 0)},c=d=>{d.button===0&&(u(),s(),document.addEventListener("mouseup",u,{once:!0}),r=setTimeout(()=>{l=setInterval(()=>{s()},a)},o))};e[rc]={start:c,clear:u},e.addEventListener("mousedown",c)},unmounted(e){if(!e[rc])return;const{start:t,clear:n}=e[rc];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[rc]=null}},kM='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',S8=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,lm=e=>typeof Element>"u"?!1:e instanceof Element,EM=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,rm=e=>Array.from(e.querySelectorAll(kM)).filter(t=>Lr(t)&&EM(t)),Lr=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},$c=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const o=document.createEvent(a);return o.initEvent(t,...n),e.dispatchEvent(o),e},x8=e=>!e.getAttribute("aria-owns"),k8=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const o=a.querySelectorAll(n);return o[Array.prototype.indexOf.call(o,e)+t]||null},$u=(e,t)=>{if(!e||!e.focus)return;let n=!1;lm(e)&&!Lr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),lm(e)&&n&&e.removeAttribute("tabindex")},Ac=e=>{e&&($u(e),!x8(e)&&e.click())},Pn=(e,t,{checkForDefaultPrevented:n=!0}={})=>o=>{const l=e==null?void 0:e(o);if(n===!1||!l)return t==null?void 0:t(o)},sm=e=>t=>t.pointerType==="mouse"?e(t):void 0,Kt=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=E8(e);if(t){if(Object.values(we).includes(t))return t;switch(t){case" ":return we.space;default:return""}}return""},E8=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&L6()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t},r2="_trap-focus-children",yr=[],im=e=>{if(yr.length===0)return;const t=Kt(e),n=yr[yr.length-1][r2];if(n.length>0&&t===we.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const a=e.shiftKey,o=e.target===n[0],l=e.target===n[n.length-1];o&&a&&(e.preventDefault(),n[n.length-1].focus()),l&&!a&&(e.preventDefault(),n[0].focus())}},TM={beforeMount(e){e[r2]=rm(e),yr.push(e),yr.length<=1&&document.addEventListener("keydown",im)},updated(e){Ie(()=>{e[r2]=rm(e)})},unmounted(){yr.shift(),yr.length===0&&document.removeEventListener("keydown",im)}};var um=!1,pr,s2,i2,Rc,Nc,T8,Pc,u2,c2,d2,M8,f2,p2,O8,$8;function Ca(){if(!um){um=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(f2=/\b(iPhone|iP[ao]d)/.exec(e),p2=/\b(iP[ao]d)/.exec(e),d2=/Android/i.exec(e),O8=/FBAN\/\w+;/i.exec(e),$8=/Mobile/i.exec(e),M8=!!/Win64/.exec(e),t){pr=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,pr&&document&&document.documentMode&&(pr=document.documentMode);var a=/(?:Trident\/(\d+.\d+))/.exec(e);T8=a?parseFloat(a[1])+4:pr,s2=t[2]?parseFloat(t[2]):NaN,i2=t[3]?parseFloat(t[3]):NaN,Rc=t[4]?parseFloat(t[4]):NaN,Rc?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Nc=t&&t[1]?parseFloat(t[1]):NaN):Nc=NaN}else pr=s2=i2=Nc=Rc=NaN;if(n){if(n[1]){var o=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Pc=o?parseFloat(o[1].replace("_",".")):!0}else Pc=!1;u2=!!n[2],c2=!!n[3]}else Pc=u2=c2=!1}}var h2={ie:function(){return Ca()||pr},ieCompatibilityMode:function(){return Ca()||T8>pr},ie64:function(){return h2.ie()&&M8},firefox:function(){return Ca()||s2},opera:function(){return Ca()||i2},webkit:function(){return Ca()||Rc},safari:function(){return h2.webkit()},chrome:function(){return Ca()||Nc},windows:function(){return Ca()||u2},osx:function(){return Ca()||Pc},linux:function(){return Ca()||c2},iphone:function(){return Ca()||f2},mobile:function(){return Ca()||f2||p2||d2||$8},nativeApp:function(){return Ca()||O8},android:function(){return Ca()||d2},ipad:function(){return Ca()||p2}},MM=h2,OM=!!(typeof window<"u"&&window.document&&window.document.createElement),$M={canUseDOM:OM},A8=$M,R8;A8.canUseDOM&&(R8=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function AM(e,t){if(!A8.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,a=n in document;if(!a){var o=document.createElement("div");o.setAttribute(n,"return;"),a=typeof o[n]=="function"}return!a&&R8&&e==="wheel"&&(a=document.implementation.hasFeature("Events.wheel","3.0")),a}var RM=AM,cm=10,dm=40,fm=800;function N8(e){var t=0,n=0,a=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),a=t*cm,o=n*cm,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(a=e.deltaX),(a||o)&&e.deltaMode&&(e.deltaMode==1?(a*=dm,o*=dm):(a*=fm,o*=fm)),a&&!t&&(t=a<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:a,pixelY:o}}N8.getEventType=function(){return MM.firefox()?"DOMMouseScroll":RM("wheel")?"wheel":"mousewheel"};var NM=N8;/** +* Checks if an event is supported in the current execution environment. +* +* NOTE: This will not work correctly for non-generic events such as `change`, +* `reset`, `load`, `error`, and `select`. +* +* Borrows from Modernizr. +* +* @param {string} eventNameSuffix Event name, e.g. "click". +* @param {?boolean} capture Check if the capture phase is supported. +* @return {boolean} True if the event is supported. +* @internal +* @license Modernizr 3.0.0pre (Custom Build) | MIT +*/const Ic="_Mousewheel",pm=function(e,t){if(e&&e.addEventListener){P8(e);const n=function(a){const o=NM(a);t&&Reflect.apply(t,this,[a,o])};e[Ic]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},P8=e=>{var t;(t=e[Ic])!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[Ic].wheelHandler),e[Ic]=null)},PM={beforeMount(e,t){pm(e,t.value)},unmounted(e){P8(e)},updated(e,t){t.value!==t.oldValue&&pm(e,t.value)}},tu=e=>Object.keys(e),I8=e=>Object.entries(e),Wl=(e,t,n)=>({get value(){return _n(e,t,n)},set value(a){mM(e,t,a)}}),L8="__epPropKey",J=e=>e,IM=e=>Mt(e)&&!!e[L8],yo=(e,t)=>{if(!Mt(e)||IM(e))return e;const{values:n,required:a,default:o,type:l,validator:r}=e,s={type:l,required:!!a,validator:n||r?u=>{let c=!1,d=[];if(n&&(d=Array.from(n),An(e,"default")&&d.push(o),c||(c=d.includes(u))),r&&(c||(c=r(u))),!c&&d.length>0){const f=[...new Set(d)].map(h=>JSON.stringify(h)).join(", ");j_(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[L8]:!0};return An(e,"default")&&(s.default=o),s},Ce=e=>Ns(Object.entries(e).map(([t,n])=>[t,yo(n,t)])),Au=Ce({to:{type:J([String,Object]),required:!0},disabled:Boolean}),LM=Ce({zIndex:{type:J([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"},teleported:Boolean,appendTo:{type:Au.to.type,default:"body"}}),VM={scroll:({scrollTop:e,fixed:t})=>De(e)&&Dt(t),[yt]:e=>Dt(e)};var V8=class extends Error{constructor(e){super(e),this.name="ElementPlusError"}};function on(e,t){throw new V8(`[${e}] ${t}`)}function ft(e,t){{const n=Ue(e)?new V8(`[${e}] ${t}`):e;console.warn(n)}}const BM=["class","style"],zM=/^on[A-Z]/,uf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,a=x(()=>((n==null?void 0:n.value)||[]).concat(BM)),o=ht();return o?x(()=>{var l;return Ns(Object.entries((l=o.proxy)==null?void 0:l.$attrs).filter(([r])=>!a.value.includes(r)&&!(t&&zM.test(r))))}):(ft("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),x(()=>({})))};function ah(){const e=qt(),t=V(0),n=x(()=>({minWidth:`${Math.max(t.value,Xd)}px`}));return en(e,()=>{var o;t.value=((o=e.value)==null?void 0:o.getBoundingClientRect().width)??0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const Lo=({from:e,replacement:t,scope:n,version:a,ref:o,type:l="API"},r)=>{fe(()=>i(r),s=>{s&&ft(n,`[${l}] ${e} is about to be deprecated in version ${a}, please use ${t} instead. +For more detail, please visit: ${o} +`)},{immediate:!0})},oh=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),l0=e=>JS(e),DM="utils/dom/style",B8=(e="")=>e.split(" ").filter(t=>!!t.trim()),Vo=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ka=(e,t)=>{!e||!t.trim()||e.classList.add(...B8(t))},sa=(e,t)=>{!e||!t.trim()||e.classList.remove(...B8(t))},ol=(e,t)=>{var a;if(!Rt||!e||!t||S8(e))return"";let n=Hp(t);n==="float"&&(n="cssFloat");try{const o=e.style[n];if(o)return o;const l=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return l?l[n]:""}catch{return e.style[n]}},z8=(e,t,n)=>{if(!(!e||!t))if(Mt(t))I8(t).forEach(([a,o])=>z8(e,a,o));else{const a=Hp(t);e.style[a]=n}};function cn(e,t="px"){if(!e&&e!==0)return"";if(De(e)||_M(e))return`${e}${t}`;if(Ue(e))return e;ft(DM,"binding value must be a string or number")}const D8=(e,t,n,a)=>{const o={offsetX:0,offsetY:0},l=V(!1),r=(h,g)=>{if(e.value){const{offsetX:p,offsetY:v}=o,m=e.value.getBoundingClientRect(),y=m.left,b=m.top,w=m.width,C=m.height,S=document.documentElement.clientWidth,k=document.documentElement.clientHeight,T=-y+p,M=-b+v,A=S-y-w+p,O=k-b-(C{const g=h.clientX,p=h.clientY,{offsetX:v,offsetY:m}=o,y=w=>{l.value||(l.value=!0),r(v+w.clientX-g,m+w.clientY-p)},b=()=>{l.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{o.offsetX=0,o.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:h,offsetY:g}=o;r(h,g)};return mt(()=>{ma(()=>{n.value?u():c()})}),Lt(()=>{c()}),{isDragging:l,resetPosition:d,updatePosition:f}};var HM={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const FM=e=>(t,n)=>KM(t,n,i(e)),KM=(e,t,n)=>_n(n,e,e).replace(/\{(\w+)\}/g,(a,o)=>`${(t==null?void 0:t[o])??`{${o}}`}`),WM=e=>({lang:x(()=>i(e).name),locale:Gt(e)?e:V(e),t:FM(e)}),H8=Symbol("localeContextKey"),xt=e=>{const t=e||Ne(H8,V());return WM(x(()=>t.value||HM))},Bi="el",jM="is-",rr=(e,t,n,a,o)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),a&&(l+=`__${a}`),o&&(l+=`--${o}`),l},F8=Symbol("namespaceContextKey"),lh=e=>{const t=e||(ht()?Ne(F8,V(Bi)):V(Bi));return x(()=>i(t)||Bi)},ve=(e,t)=>{const n=lh(t);return{namespace:n,b:(v="")=>rr(n.value,e,v,"",""),e:v=>v?rr(n.value,e,"",v,""):"",m:v=>v?rr(n.value,e,"","",v):"",be:(v,m)=>v&&m?rr(n.value,e,v,m,""):"",em:(v,m)=>v&&m?rr(n.value,e,"",v,m):"",bm:(v,m)=>v&&m?rr(n.value,e,v,"",m):"",bem:(v,m,y)=>v&&m&&y?rr(n.value,e,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${jM}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${e}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}};function qM(e,t,n,a){const o=n-t;return e/=a/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}const Ua=e=>Rt?window.requestAnimationFrame(e):setTimeout(e,16),ml=e=>Rt?window.cancelAnimationFrame(e):clearTimeout(e),UM=(e,t)=>{if(!Rt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],a=ol(e,n);return["scroll","auto","overlay"].some(o=>a.includes(o))},rh=(e,t)=>{if(!Rt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(UM(n,t))return n;S8(n)?n=n.host:n=n.parentNode}return n};let sc;const K8=e=>{var l;if(!Rt)return 0;if(sc!==void 0)return sc;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const n=t.offsetWidth;t.style.overflow="scroll";const a=document.createElement("div");a.style.width="100%",t.appendChild(a);const o=a.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),sc=n-o,sc};function sh(e,t){if(!Rt)return;if(!t){e.scrollTop=0;return}const n=[];let a=t.offsetParent;for(;a!==null&&e!==a&&e.contains(a);)n.push(a),a=a.offsetParent;const o=t.offsetTop+n.reduce((u,c)=>u+c.offsetTop,0),l=o+t.offsetHeight,r=e.scrollTop,s=r+e.clientHeight;os&&(e.scrollTop=l-e.clientHeight)}function YM(e,t,n,a,o){const l=Date.now();let r;const s=()=>{const u=Date.now()-l,c=qM(u>a?a:u,t,n,a);Ou(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u{r&&ml(r)}}const hm=(e,t)=>Ou(t)?e.ownerDocument.documentElement:t,vm=e=>Ou(e)?window.scrollY:e.scrollTop,cf=(e,t={})=>{Gt(e)||on("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||ve("popup"),a=x(()=>n.bm("parent","hidden"));let o=0,l=!1,r="0",s=!1;const u=()=>{s||(s=!0,setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=r,sa(document.body,a.value))},200))};fe(e,c=>{if(!c){u();return}s=!1,l=!Vo(document.body,a.value),l&&(r=document.body.style.width,Ka(document.body,a.value)),o=K8(n.namespace.value);const d=document.documentElement.clientHeight0&&(d||f==="scroll")&&l&&(document.body.style.width=`calc(100% - ${o}px)`)}),u3(()=>u())},GM=yo({type:J(Boolean),default:null}),XM=yo({type:J(Function)}),JM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,a=[t],o={[e]:GM,[n]:XM};return{useModelToggle:({indicator:r,toggleReason:s,shouldHideWhenRouteChanges:u,shouldProceed:c,onShow:d,onHide:f})=>{const h=ht(),{emit:g}=h,p=h.props,v=x(()=>ct(p[n])),m=x(()=>p[e]===null),y=T=>{r.value!==!0&&(r.value=!0,s&&(s.value=T),ct(d)&&d(T))},b=T=>{r.value!==!1&&(r.value=!1,s&&(s.value=T),ct(f)&&f(T))},w=T=>{if(p.disabled===!0||ct(c)&&!c())return;const M=v.value&&Rt;M&&g(t,!0),(m.value||!M)&&y(T)},C=T=>{if(p.disabled===!0||!Rt)return;const M=v.value&&Rt;M&&g(t,!1),(m.value||!M)&&b(T)},S=T=>{Dt(T)&&(p.disabled&&T?v.value&&g(t,!1):r.value!==T&&(T?y():b()))},k=()=>{r.value?C():w()};return fe(()=>p[e],S),u&&h.appContext.config.globalProperties.$route!==void 0&&fe(()=>({...h.proxy.$route}),()=>{u.value&&r.value&&C()}),mt(()=>{S(p[e])}),{hide:C,show:w,toggle:k,hasUpdateHandler:v}},useModelToggleProps:o,useModelToggleEmits:a}},W8=e=>{const t=ht();return x(()=>{var n,a;return(a=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:a[e]})};var xa="top",Ya="bottom",Ga="right",ka="left",ih="auto",Ru=[xa,Ya,Ga,ka],Ps="start",nu="end",ZM="clippingParents",j8="viewport",vi="popper",QM="reference",mm=Ru.reduce(function(e,t){return e.concat([t+"-"+Ps,t+"-"+nu])},[]),Uo=[].concat(Ru,[ih]).reduce(function(e,t){return e.concat([t,t+"-"+Ps,t+"-"+nu])},[]),eO="beforeRead",tO="read",nO="afterRead",aO="beforeMain",oO="main",lO="afterMain",rO="beforeWrite",sO="write",iO="afterWrite",uO=[eO,tO,nO,aO,oO,lO,rO,sO,iO];function Wo(e){return e?(e.nodeName||"").toLowerCase():null}function Va(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vr(e){var t=Va(e).Element;return e instanceof t||e instanceof Element}function ja(e){var t=Va(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function uh(e){if(typeof ShadowRoot>"u")return!1;var t=Va(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function cO(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var a=t.styles[n]||{},o=t.attributes[n]||{},l=t.elements[n];!ja(l)||!Wo(l)||(Object.assign(l.style,a),Object.keys(o).forEach(function(r){var s=o[r];s===!1?l.removeAttribute(r):l.setAttribute(r,s===!0?"":s)}))})}function dO(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(a){var o=t.elements[a],l=t.attributes[a]||{},r=Object.keys(t.styles.hasOwnProperty(a)?t.styles[a]:n[a]),s=r.reduce(function(u,c){return u[c]="",u},{});!ja(o)||!Wo(o)||(Object.assign(o.style,s),Object.keys(l).forEach(function(u){o.removeAttribute(u)}))})}}var q8={name:"applyStyles",enabled:!0,phase:"write",fn:cO,effect:dO,requires:["computeStyles"]};function Bo(e){return e.split("-")[0]}var Tr=Math.max,cd=Math.min,Is=Math.round;function v2(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function U8(){return!/^((?!chrome|android).)*safari/i.test(v2())}function Ls(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var a=e.getBoundingClientRect(),o=1,l=1;t&&ja(e)&&(o=e.offsetWidth>0&&Is(a.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Is(a.height)/e.offsetHeight||1);var r=Vr(e)?Va(e):window,s=r.visualViewport,u=!U8()&&n,c=(a.left+(u&&s?s.offsetLeft:0))/o,d=(a.top+(u&&s?s.offsetTop:0))/l,f=a.width/o,h=a.height/l;return{width:f,height:h,top:d,right:c+f,bottom:d+h,left:c,x:c,y:d}}function ch(e){var t=Ls(e),n=e.offsetWidth,a=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-a)<=1&&(a=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:a}}function Y8(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&uh(n)){var a=t;do{if(a&&e.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function gl(e){return Va(e).getComputedStyle(e)}function fO(e){return["table","td","th"].indexOf(Wo(e))>=0}function Ql(e){return((Vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function df(e){return Wo(e)==="html"?e:e.assignedSlot||e.parentNode||(uh(e)?e.host:null)||Ql(e)}function gm(e){return!ja(e)||gl(e).position==="fixed"?null:e.offsetParent}function pO(e){var t=/firefox/i.test(v2()),n=/Trident/i.test(v2());if(n&&ja(e)){var a=gl(e);if(a.position==="fixed")return null}var o=df(e);for(uh(o)&&(o=o.host);ja(o)&&["html","body"].indexOf(Wo(o))<0;){var l=gl(o);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return o;o=o.parentNode}return null}function Nu(e){for(var t=Va(e),n=gm(e);n&&fO(n)&&gl(n).position==="static";)n=gm(n);return n&&(Wo(n)==="html"||Wo(n)==="body"&&gl(n).position==="static")?t:n||pO(e)||t}function dh(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function zi(e,t,n){return Tr(e,cd(t,n))}function hO(e,t,n){var a=zi(e,t,n);return a>n?n:a}function G8(){return{top:0,right:0,bottom:0,left:0}}function X8(e){return Object.assign({},G8(),e)}function J8(e,t){return t.reduce(function(n,a){return n[a]=e,n},{})}var vO=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,X8(typeof e!="number"?e:J8(e,Ru))};function mO(e){var t,n=e.state,a=e.name,o=e.options,l=n.elements.arrow,r=n.modifiersData.popperOffsets,s=Bo(n.placement),u=dh(s),c=[ka,Ga].indexOf(s)>=0,d=c?"height":"width";if(!(!l||!r)){var f=vO(o.padding,n),h=ch(l),g=u==="y"?xa:ka,p=u==="y"?Ya:Ga,v=n.rects.reference[d]+n.rects.reference[u]-r[u]-n.rects.popper[d],m=r[u]-n.rects.reference[u],y=Nu(l),b=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0,w=v/2-m/2,C=f[g],S=b-h[d]-f[p],k=b/2-h[d]/2+w,T=zi(C,k,S),M=u;n.modifiersData[a]=(t={},t[M]=T,t.centerOffset=T-k,t)}}function gO(e){var t=e.state,n=e.options,a=n.element,o=a===void 0?"[data-popper-arrow]":a;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||Y8(t.elements.popper,o)&&(t.elements.arrow=o))}var yO={name:"arrow",enabled:!0,phase:"main",fn:mO,effect:gO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var bO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function wO(e,t){var n=e.x,a=e.y,o=t.devicePixelRatio||1;return{x:Is(n*o)/o||0,y:Is(a*o)/o||0}}function ym(e){var t,n=e.popper,a=e.popperRect,o=e.placement,l=e.variation,r=e.offsets,s=e.position,u=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,f=e.isFixed,h=r.x,g=h===void 0?0:h,p=r.y,v=p===void 0?0:p,m=typeof d=="function"?d({x:g,y:v}):{x:g,y:v};g=m.x,v=m.y;var y=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),w=ka,C=xa,S=window;if(c){var k=Nu(n),T="clientHeight",M="clientWidth";if(k===Va(n)&&(k=Ql(n),gl(k).position!=="static"&&s==="absolute"&&(T="scrollHeight",M="scrollWidth")),k=k,o===xa||(o===ka||o===Ga)&&l===nu){C=Ya;var A=f&&k===S&&S.visualViewport?S.visualViewport.height:k[T];v-=A-a.height,v*=u?1:-1}if(o===ka||(o===xa||o===Ya)&&l===nu){w=Ga;var O=f&&k===S&&S.visualViewport?S.visualViewport.width:k[M];g-=O-a.width,g*=u?1:-1}}var I=Object.assign({position:s},c&&bO),L=d===!0?wO({x:g,y:v},Va(n)):{x:g,y:v};if(g=L.x,v=L.y,u){var z;return Object.assign({},I,(z={},z[C]=b?"0":"",z[w]=y?"0":"",z.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+v+"px)":"translate3d("+g+"px, "+v+"px, 0)",z))}return Object.assign({},I,(t={},t[C]=b?v+"px":"",t[w]=y?g+"px":"",t.transform="",t))}function CO(e){var t=e.state,n=e.options,a=n.gpuAcceleration,o=a===void 0?!0:a,l=n.adaptive,r=l===void 0?!0:l,s=n.roundOffsets,u=s===void 0?!0:s,c={placement:Bo(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,ym(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ym(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Z8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:CO,data:{}},ic={passive:!0};function _O(e){var t=e.state,n=e.instance,a=e.options,o=a.scroll,l=o===void 0?!0:o,r=a.resize,s=r===void 0?!0:r,u=Va(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(d){d.addEventListener("scroll",n.update,ic)}),s&&u.addEventListener("resize",n.update,ic),function(){l&&c.forEach(function(d){d.removeEventListener("scroll",n.update,ic)}),s&&u.removeEventListener("resize",n.update,ic)}}var Q8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_O,data:{}},SO={left:"right",right:"left",bottom:"top",top:"bottom"};function Lc(e){return e.replace(/left|right|bottom|top/g,function(t){return SO[t]})}var xO={start:"end",end:"start"};function bm(e){return e.replace(/start|end/g,function(t){return xO[t]})}function fh(e){var t=Va(e),n=t.pageXOffset,a=t.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ph(e){return Ls(Ql(e)).left+fh(e).scrollLeft}function kO(e,t){var n=Va(e),a=Ql(e),o=n.visualViewport,l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;var c=U8();(c||!c&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}return{width:l,height:r,x:s+ph(e),y:u}}function EO(e){var t,n=Ql(e),a=fh(e),o=(t=e.ownerDocument)==null?void 0:t.body,l=Tr(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),r=Tr(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-a.scrollLeft+ph(e),u=-a.scrollTop;return gl(o||n).direction==="rtl"&&(s+=Tr(n.clientWidth,o?o.clientWidth:0)-l),{width:l,height:r,x:s,y:u}}function hh(e){var t=gl(e),n=t.overflow,a=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+a)}function ey(e){return["html","body","#document"].indexOf(Wo(e))>=0?e.ownerDocument.body:ja(e)&&hh(e)?e:ey(df(e))}function Di(e,t){var n;t===void 0&&(t=[]);var a=ey(e),o=a===((n=e.ownerDocument)==null?void 0:n.body),l=Va(a),r=o?[l].concat(l.visualViewport||[],hh(a)?a:[]):a,s=t.concat(r);return o?s:s.concat(Di(df(r)))}function m2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function TO(e,t){var n=Ls(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function wm(e,t,n){return t===j8?m2(kO(e,n)):Vr(t)?TO(t,n):m2(EO(Ql(e)))}function MO(e){var t=Di(df(e)),n=["absolute","fixed"].indexOf(gl(e).position)>=0,a=n&&ja(e)?Nu(e):e;return Vr(a)?t.filter(function(o){return Vr(o)&&Y8(o,a)&&Wo(o)!=="body"}):[]}function OO(e,t,n,a){var o=t==="clippingParents"?MO(e):[].concat(t),l=[].concat(o,[n]),r=l[0],s=l.reduce(function(u,c){var d=wm(e,c,a);return u.top=Tr(d.top,u.top),u.right=cd(d.right,u.right),u.bottom=cd(d.bottom,u.bottom),u.left=Tr(d.left,u.left),u},wm(e,r,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function ty(e){var t=e.reference,n=e.element,a=e.placement,o=a?Bo(a):null,l=a?Vs(a):null,r=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,u;switch(o){case xa:u={x:r,y:t.y-n.height};break;case Ya:u={x:r,y:t.y+t.height};break;case Ga:u={x:t.x+t.width,y:s};break;case ka:u={x:t.x-n.width,y:s};break;default:u={x:t.x,y:t.y}}var c=o?dh(o):null;if(c!=null){var d=c==="y"?"height":"width";switch(l){case Ps:u[c]=u[c]-(t[d]/2-n[d]/2);break;case nu:u[c]=u[c]+(t[d]/2-n[d]/2);break}}return u}function au(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=a===void 0?e.placement:a,l=n.strategy,r=l===void 0?e.strategy:l,s=n.boundary,u=s===void 0?ZM:s,c=n.rootBoundary,d=c===void 0?j8:c,f=n.elementContext,h=f===void 0?vi:f,g=n.altBoundary,p=g===void 0?!1:g,v=n.padding,m=v===void 0?0:v,y=X8(typeof m!="number"?m:J8(m,Ru)),b=h===vi?QM:vi,w=e.rects.popper,C=e.elements[p?b:h],S=OO(Vr(C)?C:C.contextElement||Ql(e.elements.popper),u,d,r),k=Ls(e.elements.reference),T=ty({reference:k,element:w,placement:o}),M=m2(Object.assign({},w,T)),A=h===vi?M:k,O={top:S.top-A.top+y.top,bottom:A.bottom-S.bottom+y.bottom,left:S.left-A.left+y.left,right:A.right-S.right+y.right},I=e.modifiersData.offset;if(h===vi&&I){var L=I[o];Object.keys(O).forEach(function(z){var q=[Ga,Ya].indexOf(z)>=0?1:-1,U=[xa,Ya].indexOf(z)>=0?"y":"x";O[z]+=L[U]*q})}return O}function $O(e,t){t===void 0&&(t={});var n=t,a=n.placement,o=n.boundary,l=n.rootBoundary,r=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?Uo:u,d=Vs(a),f=d?s?mm:mm.filter(function(p){return Vs(p)===d}):Ru,h=f.filter(function(p){return c.indexOf(p)>=0});h.length===0&&(h=f);var g=h.reduce(function(p,v){return p[v]=au(e,{placement:v,boundary:o,rootBoundary:l,padding:r})[Bo(v)],p},{});return Object.keys(g).sort(function(p,v){return g[p]-g[v]})}function AO(e){if(Bo(e)===ih)return[];var t=Lc(e);return[bm(e),t,bm(t)]}function RO(e){var t=e.state,n=e.options,a=e.name;if(!t.modifiersData[a]._skip){for(var o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!0:r,u=n.fallbackPlacements,c=n.padding,d=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,p=g===void 0?!0:g,v=n.allowedAutoPlacements,m=t.options.placement,y=Bo(m),b=y===m,w=u||(b||!p?[Lc(m)]:AO(m)),C=[m].concat(w).reduce(function(ee,te){return ee.concat(Bo(te)===ih?$O(t,{placement:te,boundary:d,rootBoundary:f,padding:c,flipVariations:p,allowedAutoPlacements:v}):te)},[]),S=t.rects.reference,k=t.rects.popper,T=new Map,M=!0,A=C[0],O=0;O=0,U=q?"width":"height",F=au(t,{placement:I,boundary:d,rootBoundary:f,altBoundary:h,padding:c}),N=q?z?Ga:ka:z?Ya:xa;S[U]>k[U]&&(N=Lc(N));var P=Lc(N),B=[];if(l&&B.push(F[L]<=0),s&&B.push(F[N]<=0,F[P]<=0),B.every(function(ee){return ee})){A=I,M=!1;break}T.set(I,B)}if(M)for(var W=p?3:1,K=function(ee){var te=C.find(function(ue){var ne=T.get(ue);if(ne)return ne.slice(0,ee).every(function(de){return de})});if(te)return A=te,"break"},j=W;j>0;j--){var G=K(j);if(G==="break")break}t.placement!==A&&(t.modifiersData[a]._skip=!0,t.placement=A,t.reset=!0)}}var NO={name:"flip",enabled:!0,phase:"main",fn:RO,requiresIfExists:["offset"],data:{_skip:!1}};function Cm(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _m(e){return[xa,Ga,Ya,ka].some(function(t){return e[t]>=0})}function PO(e){var t=e.state,n=e.name,a=t.rects.reference,o=t.rects.popper,l=t.modifiersData.preventOverflow,r=au(t,{elementContext:"reference"}),s=au(t,{altBoundary:!0}),u=Cm(r,a),c=Cm(s,o,l),d=_m(u),f=_m(c);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}var IO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:PO};function LO(e,t,n){var a=Bo(e),o=[ka,xa].indexOf(a)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,r=l[0],s=l[1];return r=r||0,s=(s||0)*o,[ka,Ga].indexOf(a)>=0?{x:s,y:r}:{x:r,y:s}}function VO(e){var t=e.state,n=e.options,a=e.name,o=n.offset,l=o===void 0?[0,0]:o,r=Uo.reduce(function(d,f){return d[f]=LO(f,t.rects,l),d},{}),s=r[t.placement],u=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=c),t.modifiersData[a]=r}var BO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VO};function zO(e){var t=e.state,n=e.name;t.modifiersData[n]=ty({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var ny={name:"popperOffsets",enabled:!0,phase:"read",fn:zO,data:{}};function DO(e){return e==="x"?"y":"x"}function HO(e){var t=e.state,n=e.options,a=e.name,o=n.mainAxis,l=o===void 0?!0:o,r=n.altAxis,s=r===void 0?!1:r,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,p=n.tetherOffset,v=p===void 0?0:p,m=au(t,{boundary:u,rootBoundary:c,padding:f,altBoundary:d}),y=Bo(t.placement),b=Vs(t.placement),w=!b,C=dh(y),S=DO(C),k=t.modifiersData.popperOffsets,T=t.rects.reference,M=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,O=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),I=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(l){var z,q=C==="y"?xa:ka,U=C==="y"?Ya:Ga,F=C==="y"?"height":"width",N=k[C],P=N+m[q],B=N-m[U],W=g?-M[F]/2:0,K=b===Ps?T[F]:M[F],j=b===Ps?-M[F]:-T[F],G=t.elements.arrow,ee=g&&G?ch(G):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:G8(),ue=te[q],ne=te[U],de=zi(0,T[F],ee[F]),se=w?T[F]/2-W-de-ue-O.mainAxis:K-de-ue-O.mainAxis,Y=w?-T[F]/2+W+de+ne+O.mainAxis:j+de+ne+O.mainAxis,X=t.elements.arrow&&Nu(t.elements.arrow),H=X?C==="y"?X.clientTop||0:X.clientLeft||0:0,Z=(z=I==null?void 0:I[C])!=null?z:0,le=N+se-Z-H,ce=N+Y-Z,ge=zi(g?cd(P,le):P,N,g?Tr(B,ce):B);k[C]=ge,L[C]=ge-N}if(s){var me,$e=C==="x"?xa:ka,Re=C==="x"?Ya:Ga,Ae=k[S],ye=S==="y"?"height":"width",ke=Ae+m[$e],be=Ae-m[Re],Pe=[xa,ka].indexOf(y)!==-1,Be=(me=I==null?void 0:I[S])!=null?me:0,Qe=Pe?ke:Ae-T[ye]-M[ye]-Be+O.altAxis,tt=Pe?Ae+T[ye]+M[ye]-Be-O.altAxis:be,nt=g&&Pe?hO(Qe,Ae,tt):zi(g?Qe:ke,Ae,g?tt:be);k[S]=nt,L[S]=nt-Ae}t.modifiersData[a]=L}}var FO={name:"preventOverflow",enabled:!0,phase:"main",fn:HO,requiresIfExists:["offset"]};function KO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function WO(e){return e===Va(e)||!ja(e)?fh(e):KO(e)}function jO(e){var t=e.getBoundingClientRect(),n=Is(t.width)/e.offsetWidth||1,a=Is(t.height)/e.offsetHeight||1;return n!==1||a!==1}function qO(e,t,n){n===void 0&&(n=!1);var a=ja(t),o=ja(t)&&jO(t),l=Ql(t),r=Ls(e,o,n),s={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!n)&&((Wo(t)!=="body"||hh(l))&&(s=WO(t)),ja(t)?(u=Ls(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):l&&(u.x=ph(l))),{x:r.left+s.scrollLeft-u.x,y:r.top+s.scrollTop-u.y,width:r.width,height:r.height}}function UO(e){var t=new Map,n=new Set,a=[];e.forEach(function(l){t.set(l.name,l)});function o(l){n.add(l.name);var r=[].concat(l.requires||[],l.requiresIfExists||[]);r.forEach(function(s){if(!n.has(s)){var u=t.get(s);u&&o(u)}}),a.push(l)}return e.forEach(function(l){n.has(l.name)||o(l)}),a}function YO(e){var t=UO(e);return uO.reduce(function(n,a){return n.concat(t.filter(function(o){return o.phase===a}))},[])}function GO(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function XO(e){var t=e.reduce(function(n,a){var o=n[a.name];return n[a.name]=o?Object.assign({},o,a,{options:Object.assign({},o.options,a.options),data:Object.assign({},o.data,a.data)}):a,n},{});return Object.keys(t).map(function(n){return t[n]})}var Sm={placement:"bottom",modifiers:[],strategy:"absolute"};function xm(){for(var e=arguments.length,t=new Array(e),n=0;n{const a={name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const c=t$(u);Object.assign(r.value,c)},requires:["computeStyles"]},o=x(()=>{const{onFirstUpdate:u,placement:c,strategy:d,modifiers:f}=i(n);return{onFirstUpdate:u,placement:c||"bottom",strategy:d||"absolute",modifiers:[...f||[],a,{name:"applyStyles",enabled:!1}]}}),l=qt(),r=V({styles:{popper:{position:i(o).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{l.value&&(l.value.destroy(),l.value=void 0)};return fe(o,u=>{const c=i(l);c&&c.setOptions(u)},{deep:!0}),fe([e,t],([u,c])=>{s(),!(!u||!c)&&(l.value=QO(u,c,i(o)))}),Lt(()=>{s()}),{state:x(()=>{var u;return{...((u=i(l))==null?void 0:u.state)||{}}}),styles:x(()=>i(r).styles),attributes:x(()=>i(r).attributes),update:()=>{var u;return(u=i(l))==null?void 0:u.update()},forceUpdate:()=>{var u;return(u=i(l))==null?void 0:u.forceUpdate()},instanceRef:x(()=>i(l))}};function t$(e){const t=Object.keys(e.elements);return{styles:Ns(t.map(n=>[n,e.styles[n]||{}])),attributes:Ns(t.map(n=>[n,e.attributes[n]]))}}const mh=e=>{if(!e)return{onClick:Yt,onMousedown:Yt,onMouseup:Yt};let t=!1,n=!1;return{onClick:r=>{t&&n&&e(r),t=n=!1},onMousedown:r=>{t=r.target===r.currentTarget},onMouseup:r=>{n=r.target===r.currentTarget}}},n$=(e,t=0)=>{if(t===0)return e;const n=V(Mt(t)&&!!t.initVal);let a=null;const o=r=>{if(kt(r)){n.value=e.value;return}a&&clearTimeout(a),a=setTimeout(()=>{n.value=e.value},r)},l=r=>{r==="leading"?De(t)?o(t):o(t.leading):Mt(t)?o(t.trailing):n.value=!1};return mt(()=>l("leading")),fe(()=>e.value,r=>{l(r?"leading":"trailing")}),n};function km(){let e;const t=(a,o)=>{n(),e=globalThis.setTimeout(a,o)},n=()=>{e!==void 0&&(globalThis.clearTimeout(e),e=void 0)};return jr(()=>n()),{registerTimeout:t,cancelTimeout:n}}const g2={prefix:Math.floor(Math.random()*1e4),current:0},a$=Symbol("elIdInjection"),gh=()=>ht()?Ne(a$,g2):g2,Un=e=>{const t=gh();!Rt&&t===g2&&ft("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed +usage: app.provide(ID_INJECTION_KEY, { + prefix: number, + current: number, +})`);const n=lh();return $6(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let is=[];const Em=e=>{Kt(e)===we.esc&&is.forEach(t=>t(e))},o$=e=>{mt(()=>{is.length===0&&document.addEventListener("keydown",Em),Rt&&is.push(e)}),Lt(()=>{is=is.filter(t=>t!==e),is.length===0&&Rt&&document.removeEventListener("keydown",Em)})},ay=()=>{const e=lh(),t=gh(),n=x(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:x(()=>`#${n.value}`)}},l$=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},r$=()=>{const{id:e,selector:t}=ay();return Ud(()=>{Rt&&(document.body.querySelector(t.value)||l$(e.value))}),{id:e,selector:t}},s$=Ce({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),i$=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:o})=>{const{registerTimeout:l}=km(),{registerTimeout:r,cancelTimeout:s}=km();return{onOpen:(d,f=i(e))=>{l(()=>{a(d);const h=i(n);De(h)&&h>0&&r(()=>{o(d)},h)},f)},onClose:(d,f=i(t))=>{s(),l(()=>{o(d)},f)}}},oy=Symbol("elForwardRef"),u$=e=>{bt(oy,{setForwardRef:n=>{e.value=n}})},c$=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Tm={current:0},Mm=V(0),ly=2e3,Om=Symbol("elZIndexContextKey"),ry=Symbol("zIndexContextKey"),Pu=e=>{const t=ht()?Ne(Om,Tm):Tm,n=e||(ht()?Ne(ry,void 0):void 0),a=x(()=>{const r=i(n);return De(r)?r:ly}),o=x(()=>a.value+Mm.value),l=()=>(t.current++,Mm.value=t.current,o.value);return!Rt&&!Ne(Om)&&ft("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed +usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:o,nextZIndex:l}},Bs=Math.min,Mr=Math.max,dd=Math.round,uc=Math.floor,zo=e=>({x:e,y:e}),d$={left:"right",right:"left",bottom:"top",top:"bottom"};function y2(e,t,n){return Mr(e,Bs(t,n))}function Iu(e,t){return typeof e=="function"?e(t):e}function Br(e){return e.split("-")[0]}function Lu(e){return e.split("-")[1]}function sy(e){return e==="x"?"y":"x"}function yh(e){return e==="y"?"height":"width"}function Hl(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function bh(e){return sy(Hl(e))}function f$(e,t,n){n===void 0&&(n=!1);const a=Lu(e),o=bh(e),l=yh(o);let r=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(r=fd(r)),[r,fd(r)]}function p$(e){const t=fd(e);return[b2(e),t,b2(t)]}function b2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const $m=["left","right"],Am=["right","left"],h$=["top","bottom"],v$=["bottom","top"];function m$(e,t,n){switch(e){case"top":case"bottom":return n?t?Am:$m:t?$m:Am;case"left":case"right":return t?h$:v$;default:return[]}}function g$(e,t,n,a){const o=Lu(e);let l=m$(Br(e),n==="start",a);return o&&(l=l.map(r=>r+"-"+o),t&&(l=l.concat(l.map(b2)))),l}function fd(e){const t=Br(e);return d$[t]+e.slice(t.length)}function y$(e){return{top:0,right:0,bottom:0,left:0,...e}}function iy(e){return typeof e!="number"?y$(e):{top:e,right:e,bottom:e,left:e}}function pd(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function Rm(e,t,n){let{reference:a,floating:o}=e;const l=Hl(t),r=bh(t),s=yh(r),u=Br(t),c=l==="y",d=a.x+a.width/2-o.width/2,f=a.y+a.height/2-o.height/2,h=a[s]/2-o[s]/2;let g;switch(u){case"top":g={x:d,y:a.y-o.height};break;case"bottom":g={x:d,y:a.y+a.height};break;case"right":g={x:a.x+a.width,y:f};break;case"left":g={x:a.x-o.width,y:f};break;default:g={x:a.x,y:a.y}}switch(Lu(t)){case"start":g[r]-=h*(n&&c?-1:1);break;case"end":g[r]+=h*(n&&c?-1:1);break}return g}async function uy(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=Iu(t,e),p=iy(g),m=s[h?f==="floating"?"reference":"floating":f],y=pd(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(m)))==null||n?m:m.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:o,width:r.floating.width,height:r.floating.height}:r.reference,w=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),C=await(l.isElement==null?void 0:l.isElement(w))?await(l.getScale==null?void 0:l.getScale(w))||{x:1,y:1}:{x:1,y:1},S=pd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:w,strategy:u}):b);return{top:(y.top-S.top+p.top)/C.y,bottom:(S.bottom-y.bottom+p.bottom)/C.y,left:(y.left-S.left+p.left)/C.x,right:(S.right-y.right+p.right)/C.x}}const b$=50,w$=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:uy},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=Rm(c,a,u),h=a,g=0;const p={};for(let v=0;v({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:r,elements:s,middlewareData:u}=t,{element:c,padding:d=0}=Iu(e,t)||{};if(c==null)return{};const f=iy(d),h={x:n,y:a},g=bh(o),p=yh(g),v=await r.getDimensions(c),m=g==="y",y=m?"top":"left",b=m?"bottom":"right",w=m?"clientHeight":"clientWidth",C=l.reference[p]+l.reference[g]-h[g]-l.floating[p],S=h[g]-l.reference[g],k=await(r.getOffsetParent==null?void 0:r.getOffsetParent(c));let T=k?k[w]:0;(!T||!await(r.isElement==null?void 0:r.isElement(k)))&&(T=s.floating[w]||l.floating[p]);const M=C/2-S/2,A=T/2-v[p]/2-1,O=Bs(f[y],A),I=Bs(f[b],A),L=O,z=T-v[p]-I,q=T/2-v[p]/2+M,U=y2(L,q,z),F=!u.arrow&&Lu(o)!=null&&q!==U&&l.reference[p]/2-(qq<=0)){var I,L;const q=(((I=l.flip)==null?void 0:I.index)||0)+1,U=T[q];if(U&&(!(f==="alignment"?b!==Hl(U):!1)||O.every(P=>Hl(P.placement)===b?P.overflows[0]>0:!0)))return{data:{index:q,overflows:O},reset:{placement:U}};let F=(L=O.filter(N=>N.overflows[0]<=0).sort((N,P)=>N.overflows[1]-P.overflows[1])[0])==null?void 0:L.placement;if(!F)switch(g){case"bestFit":{var z;const N=(z=O.filter(P=>{if(k){const B=Hl(P.placement);return B===b||B==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(B=>B>0).reduce((B,W)=>B+W,0)]).sort((P,B)=>P[1]-B[1])[0])==null?void 0:z[0];N&&(F=N);break}case"initialPlacement":F=s;break}if(o!==F)return{reset:{placement:F}}}return{}}}},S$=new Set(["left","top"]);async function x$(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),r=Br(n),s=Lu(n),u=Hl(n)==="y",c=S$.has(r)?-1:1,d=l&&u?-1:1,f=Iu(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:p}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof p=="number"&&(g=s==="end"?p*-1:p),u?{x:g*d,y:h*c}:{x:h*c,y:g*d}}const k$=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:r,middlewareData:s}=t,u=await x$(t,e);return r===((n=s.offset)==null?void 0:n.placement)&&(a=s.arrow)!=null&&a.alignmentOffset?{}:{x:o+u.x,y:l+u.y,data:{...u,placement:r}}}}},E$=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:r=!0,crossAxis:s=!1,limiter:u={fn:y=>{let{x:b,y:w}=y;return{x:b,y:w}}},...c}=Iu(e,t),d={x:n,y:a},f=await l.detectOverflow(t,c),h=Hl(Br(o)),g=sy(h);let p=d[g],v=d[h];if(r){const y=g==="y"?"top":"left",b=g==="y"?"bottom":"right",w=p+f[y],C=p-f[b];p=y2(w,p,C)}if(s){const y=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=v+f[y],C=v-f[b];v=y2(w,v,C)}const m=u.fn({...t,[g]:p,[h]:v});return{...m,data:{x:m.x-n,y:m.y-a,enabled:{[g]:r,[h]:s}}}}}};function ff(){return typeof window<"u"}function ei(e){return cy(e)?(e.nodeName||"").toLowerCase():"#document"}function Ia(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yo(e){var t;return(t=(cy(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cy(e){return ff()?e instanceof Node||e instanceof Ia(e).Node:!1}function ro(e){return ff()?e instanceof Element||e instanceof Ia(e).Element:!1}function kl(e){return ff()?e instanceof HTMLElement||e instanceof Ia(e).HTMLElement:!1}function Nm(e){return!ff()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ia(e).ShadowRoot}function Vu(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=so(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function T$(e){return/^(table|td|th)$/.test(ei(e))}function pf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const M$=/transform|translate|scale|rotate|perspective|filter/,O$=/paint|layout|strict|content/,sr=e=>!!e&&e!=="none";let r0;function wh(e){const t=ro(e)?so(e):e;return sr(t.transform)||sr(t.translate)||sr(t.scale)||sr(t.rotate)||sr(t.perspective)||!Ch()&&(sr(t.backdropFilter)||sr(t.filter))||M$.test(t.willChange||"")||O$.test(t.contain||"")}function $$(e){let t=Gl(e);for(;kl(t)&&!zs(t);){if(wh(t))return t;if(pf(t))return null;t=Gl(t)}return null}function Ch(){return r0==null&&(r0=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r0}function zs(e){return/^(html|body|#document)$/.test(ei(e))}function so(e){return Ia(e).getComputedStyle(e)}function hf(e){return ro(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gl(e){if(ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Nm(e)&&e.host||Yo(e);return Nm(t)?t.host:t}function dy(e){const t=Gl(e);return zs(t)?e.ownerDocument?e.ownerDocument.body:e.body:kl(t)&&Vu(t)?t:dy(t)}function ou(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=dy(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),r=Ia(o);if(l){const s=w2(r);return t.concat(r,r.visualViewport||[],Vu(o)?o:[],s&&n?ou(s):[])}else return t.concat(o,ou(o,[],n))}function w2(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function fy(e){const t=so(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=kl(e),l=o?e.offsetWidth:n,r=o?e.offsetHeight:a,s=dd(n)!==l||dd(a)!==r;return s&&(n=l,a=r),{width:n,height:a,$:s}}function _h(e){return ro(e)?e:e.contextElement}function ws(e){const t=_h(e);if(!kl(t))return zo(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=fy(t);let r=(l?dd(n.width):n.width)/a,s=(l?dd(n.height):n.height)/o;return(!r||!Number.isFinite(r))&&(r=1),(!s||!Number.isFinite(s))&&(s=1),{x:r,y:s}}const A$=zo(0);function py(e){const t=Ia(e);return!Ch()||!t.visualViewport?A$:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function R$(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ia(e)?!1:t}function zr(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=_h(e);let r=zo(1);t&&(a?ro(a)&&(r=ws(a)):r=ws(e));const s=R$(l,n,a)?py(l):zo(0);let u=(o.left+s.x)/r.x,c=(o.top+s.y)/r.y,d=o.width/r.x,f=o.height/r.y;if(l){const h=Ia(l),g=a&&ro(a)?Ia(a):a;let p=h,v=w2(p);for(;v&&a&&g!==p;){const m=ws(v),y=v.getBoundingClientRect(),b=so(v),w=y.left+(v.clientLeft+parseFloat(b.paddingLeft))*m.x,C=y.top+(v.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,c*=m.y,d*=m.x,f*=m.y,u+=w,c+=C,p=Ia(v),v=w2(p)}}return pd({width:d,height:f,x:u,y:c})}function vf(e,t){const n=hf(e).scrollLeft;return t?t.left+n:zr(Yo(e)).left+n}function hy(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-vf(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function N$(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",r=Yo(a),s=t?pf(t.floating):!1;if(a===r||s&&l)return n;let u={scrollLeft:0,scrollTop:0},c=zo(1);const d=zo(0),f=kl(a);if((f||!f&&!l)&&((ei(a)!=="body"||Vu(r))&&(u=hf(a)),f)){const g=zr(a);c=ws(a),d.x=g.x+a.clientLeft,d.y=g.y+a.clientTop}const h=r&&!f&&!l?hy(r,u):zo(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}}function P$(e){return Array.from(e.getClientRects())}function I$(e){const t=Yo(e),n=hf(e),a=e.ownerDocument.body,o=Mr(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),l=Mr(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let r=-n.scrollLeft+vf(e);const s=-n.scrollTop;return so(a).direction==="rtl"&&(r+=Mr(t.clientWidth,a.clientWidth)-o),{width:o,height:l,x:r,y:s}}const Pm=25;function L$(e,t){const n=Ia(e),a=Yo(e),o=n.visualViewport;let l=a.clientWidth,r=a.clientHeight,s=0,u=0;if(o){l=o.width,r=o.height;const d=Ch();(!d||d&&t==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const c=vf(a);if(c<=0){const d=a.ownerDocument,f=d.body,h=getComputedStyle(f),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,p=Math.abs(a.clientWidth-f.clientWidth-g);p<=Pm&&(l-=p)}else c<=Pm&&(l+=c);return{width:l,height:r,x:s,y:u}}function V$(e,t){const n=zr(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=kl(e)?ws(e):zo(1),r=e.clientWidth*l.x,s=e.clientHeight*l.y,u=o*l.x,c=a*l.y;return{width:r,height:s,x:u,y:c}}function Im(e,t,n){let a;if(t==="viewport")a=L$(e,n);else if(t==="document")a=I$(Yo(e));else if(ro(t))a=V$(t,n);else{const o=py(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return pd(a)}function vy(e,t){const n=Gl(e);return n===t||!ro(n)||zs(n)?!1:so(n).position==="fixed"||vy(n,t)}function B$(e,t){const n=t.get(e);if(n)return n;let a=ou(e,[],!1).filter(s=>ro(s)&&ei(s)!=="body"),o=null;const l=so(e).position==="fixed";let r=l?Gl(e):e;for(;ro(r)&&!zs(r);){const s=so(r),u=wh(r);!u&&s.position==="fixed"&&(o=null),(l?!u&&!o:!u&&s.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||Vu(r)&&!u&&vy(e,r))?a=a.filter(d=>d!==r):o=s,r=Gl(r)}return t.set(e,a),a}function z$(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const r=[...n==="clippingAncestors"?pf(t)?[]:B$(t,this._c):[].concat(n),a],s=Im(t,r[0],o);let u=s.top,c=s.right,d=s.bottom,f=s.left;for(let h=1;h{r(!1,1e-7)},1e3)}T===1&&!gy(c,e.getBoundingClientRect())&&r(),C=!1}try{n=new IntersectionObserver(S,{...w,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,w)}n.observe(e)}return r(!0),l}function q$(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=a,c=_h(e),d=o||l?[...c?ou(c):[],...t?ou(t):[]]:[];d.forEach(y=>{o&&y.addEventListener("scroll",n,{passive:!0}),l&&y.addEventListener("resize",n)});const f=c&&s?j$(c,n):null;let h=-1,g=null;r&&(g=new ResizeObserver(y=>{let[b]=y;b&&b.target===c&&g&&t&&(g.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var w;(w=g)==null||w.observe(t)})),n()}),c&&!u&&g.observe(c),t&&g.observe(t));let p,v=u?zr(e):null;u&&m();function m(){const y=zr(e);v&&!gy(v,y)&&n(),v=y,p=requestAnimationFrame(m)}return n(),()=>{var y;d.forEach(b=>{o&&b.removeEventListener("scroll",n),l&&b.removeEventListener("resize",n)}),f==null||f(),(y=g)==null||y.disconnect(),g=null,u&&cancelAnimationFrame(p)}}const U$=uy,Y$=k$,G$=E$,X$=_$,J$=C$,Z$=(e,t,n)=>{const a=new Map,o={platform:W$,...n},l={...o.platform,_c:a};return w$(e,t,{...o,platform:l})};function Q$(e){let t;function n(){if(e.value==null)return;const{selectionStart:o,selectionEnd:l,value:r}=e.value;o==null||l==null||(t={selectionStart:o,selectionEnd:l,value:r,beforeTxt:r.slice(0,Math.max(0,o)),afterTxt:r.slice(Math.max(0,l))})}function a(){if(e.value==null||t==null)return;const{value:o}=e.value,{beforeTxt:l,afterTxt:r,selectionStart:s}=t;if(l==null||r==null||s==null)return;let u=o.length;if(o.endsWith(r))u=o.length-r.length;else if(o.startsWith(l))u=l.length;else{const c=l[s-1],d=o.indexOf(c,s-1);d!==-1&&(u=d+1)}e.value.setSelectionRange(u,u)}return[n,a]}const eA="utils/vue/vnode";let Ja=function(e){return e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e}({});function C2(e){return Wt(e)&&e.type===He}function yy(e){return Wt(e)&&e.type===wn}function tA(e){return Wt(e)&&!C2(e)&&!yy(e)}const nA=e=>{if(!Wt(e))return ft(eA,"[getNormalizedProps] must be a VNode"),{};const t=e.props||{},n=(Wt(e.type)?e.type.props:void 0)||{},a={};return Object.keys(n).forEach(o=>{An(n[o],"default")&&(a[o]=n[o].default)}),Object.keys(t).forEach(o=>{a[Hp(o)]=t[o]}),a},Ra=e=>{const t=Ve(e)?e:[e],n=[];return t.forEach(a=>{var o;Ve(a)?n.push(...Ra(a)):Wt(a)&&((o=a.component)!=null&&o.subTree)?n.push(a,...Ra(a.component.subTree)):Wt(a)&&Ve(a.children)?n.push(...Ra(a.children)):Wt(a)&&a.shapeFlag===2?n.push(...Ra(a.type())):n.push(a)}),n},aA=(e,t,n)=>Ra(e.subTree).filter(a=>{var o;return Wt(a)&&((o=a.type)==null?void 0:o.name)===t&&!!a.component}).map(a=>a.component.uid).map(a=>n[a]).filter(a=>!!a),mf=(e,t)=>{const n=qt({}),a=qt([]),o=new WeakMap,l=c=>{n.value[c.uid]=c,Ec(n),mt(()=>{const d=c.getVnode().el,f=d.parentNode;if(!o.has(f)){o.set(f,[]);const h=f.insertBefore.bind(f);f.insertBefore=(g,p)=>(o.get(f).some(v=>g===v||p===v)&&Ec(n),h(g,p))}o.get(f).push(d)})},r=c=>{delete n.value[c.uid],Ec(n);const d=c.getVnode().el,f=d.parentNode,h=o.get(f),g=h.indexOf(d);h.splice(g,1)},s=()=>{a.value=aA(e,t,n.value)},u=c=>c.render();return{children:a,addChild:l,removeChild:r,ChildrenSorter:D({setup(c,{slots:d}){return()=>(s(),d.default?qe(u,{render:d.default}):null)}})}},On=yo({type:String,values:vo,required:!1}),by=Symbol("size"),wy=()=>{const e=Ne(by,{});return x(()=>i(e.size)||"")};function El(e,{disabled:t,beforeFocus:n,afterFocus:a,beforeBlur:o,afterBlur:l}={}){const{emit:r}=ht(),s=qt(),u=V(!1),c=h=>{const g=ct(n)?n(h):!1;i(t)||u.value||g||(u.value=!0,r("focus",h),a==null||a())},d=h=>{var p;const g=ct(o)?o(h):!1;i(t)||h.relatedTarget&&((p=s.value)!=null&&p.contains(h.relatedTarget))||g||(u.value=!1,r("blur",h),l==null||l())},f=h=>{var g,p;i(t)||Lr(h.target)||(g=s.value)!=null&&g.contains(document.activeElement)&&s.value!==document.activeElement||(p=e.value)==null||p.focus()};return fe([s,()=>i(t)],([h,g])=>{h&&(g?h.removeAttribute("tabindex"):h.setAttribute("tabindex","-1"))}),Vt(s,"focus",c,!0),Vt(s,"blur",d,!0),Vt(s,"click",f,!0),{isFocused:u,wrapperRef:s,handleFocus:c,handleBlur:d}}function Bu({afterComposition:e,emit:t}){const n=V(!1),a=s=>{t==null||t("compositionstart",s),n.value=!0},o=s=>{t==null||t("compositionupdate",s),n.value=!0},l=s=>{t==null||t("compositionend",s),n.value&&(n.value=!1,Ie(()=>e(s)))};return{isComposing:n,handleComposition:s=>{s.type==="compositionend"?l(s):o(s)},handleCompositionStart:a,handleCompositionUpdate:o,handleCompositionEnd:l}}const Cy=Symbol("emptyValuesContextKey"),oA="use-empty-values",lA=["",void 0,null],rA=void 0,Gr=Ce({emptyValues:Array,valueOnClear:{type:J([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=ct(e)?e():e,Ve(e)?e.every(t=>!t):!e)}}),zu=(e,t)=>{const n=ht()?Ne(Cy,V({})):V({}),a=x(()=>e.emptyValues||n.value.emptyValues||lA),o=x(()=>ct(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:ct(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:rA),l=r=>{let s=!0;return Ve(r)?s=a.value.some(u=>sn(r,u)):s=a.value.includes(r),s};return l(o.value)||ft(oA,"value-on-clear should be a value of empty-values"),{emptyValues:a,valueOnClear:o,isEmptyValue:l}},sA=Ce({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ia=e=>vl(sA,e),_y=e=>{const t=e.props,n=Ve(t)?Ns(t.map(a=>[a,{}])):t;e.setPropsDefaults=a=>{if(n){for(const[o,l]of Object.entries(a)){const r=n[o];if(An(n,o)){if(Qp(r)){n[o]={...r,default:l};continue}n[o]={type:r,default:l}}}e.props=n}}},rt=(e,t)=>{if(e.install=n=>{for(const a of[e,...Object.values(t??{})])n.component(a.name,a)},t)for(const[n,a]of Object.entries(t))e[n]=a;return _y(e),e},Sy=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),iA=(e,t)=>(e.install=n=>{n.directive(t,e)},e),ln=e=>(e.install=Yt,_y(e),e);var uA=D({__name:"teleport",props:Au,setup(e){return(t,n)=>t.disabled?oe(t.$slots,"default",{key:0}):(_(),ie(ZC,{key:1,to:t.to},[oe(t.$slots,"default")],8,["to"]))}}),cA=uA;const ti=rt(cA),Vm="ElAffix";var dA=D({name:Vm,__name:"affix",props:LM,emits:VM,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("affix"),r=qt(),s=qt(),u=qt(),{height:c}=zp(),{height:d,width:f,top:h,bottom:g,left:p,update:v}=M1(s,{windowScroll:!1}),m=M1(r),y=V(!1),b=V(0),w=V(0),C=x(()=>!a.teleported||!y.value),S=x(()=>({display:"flow-root",height:y.value?`${d.value}px`:"",width:y.value?`${f.value}px`:""})),k=x(()=>{if(!y.value)return{};const O=cn(a.offset);return{height:`${d.value}px`,width:`${f.value}px`,top:a.position==="top"?O:"",bottom:a.position==="bottom"?O:"",left:a.teleported?`${p.value}px`:"",transform:w.value?`translateY(${w.value}px)`:"",zIndex:a.zIndex}}),T=()=>{if(!u.value)return;b.value=u.value instanceof Window?document.documentElement.scrollTop:u.value.scrollTop||0;const{position:O,target:I,offset:L}=a,z=L+d.value;if(O==="top")if(I){const q=m.bottom.value-z;y.value=L>h.value&&m.bottom.value>0,w.value=q<0?q:0}else y.value=L>h.value;else if(I){const q=c.value-m.top.value-z;y.value=c.value-Lm.top.value,w.value=q<0?-q:0}else y.value=c.value-L{if(!y.value){v();return}y.value=!1,await Ie(),v(),y.value=!0},A=async()=>{v(),await Ie(),o("scroll",{scrollTop:b.value,fixed:y.value})};return fe(y,O=>o(yt,O)),mt(()=>{a.target?(r.value=document.querySelector(a.target)??void 0,r.value||on(Vm,`Target does not exist: ${a.target}`)):r.value=document.documentElement,u.value=rh(s.value,!0),v()}),wu(()=>{Ie(M)}),Mp(()=>{y.value=!1}),Vt(u,"scroll",A),ma(T),t({update:T,updateRoot:M}),(O,I)=>(_(),$("div",{ref_key:"root",ref:s,class:R(i(l).b()),style:We(S.value)},[Q(i(ti),{disabled:C.value,to:e.appendTo},{default:ae(()=>[E("div",{class:R({[i(l).m("fixed")]:y.value}),style:We(k.value)},[oe(O.$slots,"default")],6)]),_:3},8,["disabled","to"])],6))}}),fA=dA;const pA=rt(fA);/*! Element Plus Icons Vue v2.3.2 */var hA=D({name:"AddLocation",__name:"add-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M544 384h96a32 32 0 1 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0z"})]))}}),vA=hA,mA=D({name:"Aim",__name:"aim",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),gA=mA,yA=D({name:"AlarmClock",__name:"alarm-clock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 832a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"m292.288 824.576 55.424 32-48 83.136a32 32 0 1 1-55.424-32zm439.424 0-55.424 32 48 83.136a32 32 0 1 0 55.424-32zM512 512h160a32 32 0 1 1 0 64H480a32 32 0 0 1-32-32V320a32 32 0 0 1 64 0zM90.496 312.256A160 160 0 0 1 312.32 90.496l-46.848 46.848a96 96 0 0 0-128 128L90.56 312.256zm835.264 0A160 160 0 0 0 704 90.496l46.848 46.848a96 96 0 0 1 128 128z"})]))}}),bA=yA,wA=D({name:"Apple",__name:"apple",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M599.872 203.776a189.4 189.4 0 0 1 64.384-4.672l2.624.128c31.168 1.024 51.2 4.096 79.488 16.32 37.632 16.128 74.496 45.056 111.488 89.344 96.384 115.264 82.752 372.8-34.752 521.728-7.68 9.728-32 41.6-30.72 39.936a427 427 0 0 1-30.08 35.776c-31.232 32.576-65.28 49.216-110.08 50.048-31.36.64-53.568-5.312-84.288-18.752l-6.528-2.88c-20.992-9.216-30.592-11.904-47.296-11.904-18.112 0-28.608 2.88-51.136 12.672l-6.464 2.816c-28.416 12.224-48.32 18.048-76.16 19.2-74.112 2.752-116.928-38.08-180.672-132.16-96.64-142.08-132.608-349.312-55.04-486.4 46.272-81.92 129.92-133.632 220.672-135.04 32.832-.576 60.288 6.848 99.648 22.72 27.136 10.88 34.752 13.76 37.376 14.272 16.256-20.16 27.776-36.992 34.56-50.24 13.568-26.304 27.2-59.968 40.704-100.8a32 32 0 1 1 60.8 20.224c-12.608 37.888-25.408 70.4-38.528 97.664m-51.52 78.08c-14.528 17.792-31.808 37.376-51.904 58.816a32 32 0 1 1-46.72-43.776l12.288-13.248c-28.032-11.2-61.248-26.688-95.68-26.112-70.4 1.088-135.296 41.6-171.648 105.792C121.6 492.608 176 684.16 247.296 788.992c34.816 51.328 76.352 108.992 130.944 106.944 52.48-2.112 72.32-34.688 135.872-34.688s81.28 34.688 136.96 33.536c56.448-1.088 75.776-39.04 126.848-103.872 107.904-136.768 107.904-362.752 35.776-449.088-72.192-86.272-124.672-84.096-151.68-85.12-41.472-4.288-81.6 12.544-113.664 25.152"})]))}}),CA=wA,_A=D({name:"ArrowDownBold",__name:"arrow-down-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 338.752a64 64 0 0 1 90.496 0l316.8 316.8 316.8-316.8a64 64 0 0 1 90.496 90.496L557.248 791.296a64 64 0 0 1-90.496 0L104.704 429.248a64 64 0 0 1 0-90.496"})]))}}),SA=_A,xA=D({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),bo=xA,kA=D({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0"})]))}}),EA=kA,TA=D({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),jo=TA,MA=D({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0"})]))}}),OA=MA,$A=D({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Jn=$A,AA=D({name:"ArrowUpBold",__name:"arrow-up-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M104.704 685.248a64 64 0 0 0 90.496 0l316.8-316.8 316.8 316.8a64 64 0 0 0 90.496-90.496L557.248 232.704a64 64 0 0 0-90.496 0L104.704 594.752a64 64 0 0 0 0 90.496"})]))}}),RA=AA,NA=D({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Du=NA,PA=D({name:"Avatar",__name:"avatar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M628.736 528.896A416 416 0 0 1 928 928H96a415.87 415.87 0 0 1 299.264-399.104L512 704zM720 304a208 208 0 1 1-416 0 208 208 0 0 1 416 0"})]))}}),IA=PA,LA=D({name:"Back",__name:"back",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),xy=LA,VA=D({name:"Baseball",__name:"baseball",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 828.8a448 448 0 1 1 633.6-633.6 448 448 0 0 1-633.6 633.6m45.248-45.248a384 384 0 1 0 543.104-543.104 384 384 0 0 0-543.104 543.104"}),E("path",{fill:"currentColor",d:"M497.472 96.896c22.784 4.672 44.416 9.472 64.896 14.528a256.128 256.128 0 0 0 350.208 350.208c5.056 20.48 9.856 42.112 14.528 64.896A320.128 320.128 0 0 1 497.472 96.896M108.48 491.904a320.128 320.128 0 0 1 423.616 423.68c-23.04-3.648-44.992-7.424-65.728-11.52a256.128 256.128 0 0 0-346.496-346.432 1737 1737 0 0 1-11.392-65.728"})]))}}),BA=VA,zA=D({name:"Basketball",__name:"basketball",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M778.752 788.224a382.46 382.46 0 0 0 116.032-245.632 256.51 256.51 0 0 0-241.728-13.952 762.9 762.9 0 0 1 125.696 259.584m-55.04 44.224a699.65 699.65 0 0 0-125.056-269.632 256.13 256.13 0 0 0-56.064 331.968 382.7 382.7 0 0 0 181.12-62.336m-254.08 61.248A320.13 320.13 0 0 1 557.76 513.6a716 716 0 0 0-48.192-48.128 320.13 320.13 0 0 1-379.264 88.384 382.4 382.4 0 0 0 110.144 229.696 382.4 382.4 0 0 0 229.184 110.08zM129.28 481.088a256.13 256.13 0 0 0 331.072-56.448 699.65 699.65 0 0 0-268.8-124.352 382.66 382.66 0 0 0-62.272 180.8m106.56-235.84a762.9 762.9 0 0 1 258.688 125.056 256.51 256.51 0 0 0-13.44-241.088A382.46 382.46 0 0 0 235.84 245.248m318.08-114.944c40.576 89.536 37.76 193.92-8.448 281.344a780 780 0 0 1 66.176 66.112 320.83 320.83 0 0 1 282.112-8.128 382.4 382.4 0 0 0-110.144-229.12 382.4 382.4 0 0 0-229.632-110.208zM828.8 828.8a448 448 0 1 1-633.6-633.6 448 448 0 0 1 633.6 633.6"})]))}}),DA=zA,HA=D({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.13 320.13 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),FA=HA,KA=D({name:"Bell",__name:"bell",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a64 64 0 0 1 64 64v64H448v-64a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M256 768h512V448a256 256 0 1 0-512 0zm256-640a320 320 0 0 1 320 320v384H192V448a320 320 0 0 1 320-320"}),E("path",{fill:"currentColor",d:"M96 768h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32m352 128h128a64 64 0 0 1-128 0"})]))}}),WA=KA,jA=D({name:"Bicycle",__name:"bicycle",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M288 672h320q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M768 832a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"}),E("path",{fill:"currentColor",d:"M480 192a32 32 0 0 1 0-64h160a32 32 0 0 1 31.04 24.256l96 384a32 32 0 0 1-62.08 15.488L615.04 192zM96 384a32 32 0 0 1 0-64h128a32 32 0 0 1 30.336 21.888l64 192a32 32 0 1 1-60.672 20.224L200.96 384z"}),E("path",{fill:"currentColor",d:"m373.376 599.808-42.752-47.616 320-288 42.752 47.616z"})]))}}),qA=jA,UA=D({name:"BottomLeft",__name:"bottom-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h416a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V352a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 822.656a32 32 0 0 1-45.312-45.312l544-544a32 32 0 0 1 45.312 45.312z"})]))}}),YA=UA,GA=D({name:"BottomRight",__name:"bottom-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 768a32 32 0 1 0 0 64h448a32 32 0 0 0 32-32V352a32 32 0 0 0-64 0v416z"}),E("path",{fill:"currentColor",d:"M777.344 822.656a32 32 0 0 0 45.312-45.312l-544-544a32 32 0 0 0-45.312 45.312z"})]))}}),XA=GA,JA=D({name:"Bottom",__name:"bottom",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 805.888V168a32 32 0 1 0-64 0v637.888L246.656 557.952a30.72 30.72 0 0 0-45.312 0 35.52 35.52 0 0 0 0 48.064l288 306.048a30.72 30.72 0 0 0 45.312 0l288-306.048a35.52 35.52 0 0 0 0-48 30.72 30.72 0 0 0-45.312 0L544 805.824z"})]))}}),ZA=JA,QA=D({name:"Bowl",__name:"bowl",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M714.432 704a351.74 351.74 0 0 0 148.16-256H161.408a351.74 351.74 0 0 0 148.16 256zM288 766.592A415.68 415.68 0 0 1 96 416a32 32 0 0 1 32-32h768a32 32 0 0 1 32 32 415.68 415.68 0 0 1-192 350.592V832a64 64 0 0 1-64 64H352a64 64 0 0 1-64-64zM493.248 320h-90.496l254.4-254.4a32 32 0 1 1 45.248 45.248zm187.328 0h-128l269.696-155.712a32 32 0 0 1 32 55.424zM352 768v64h320v-64z"})]))}}),eR=QA,tR=D({name:"Box",__name:"box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M317.056 128 128 344.064V896h768V344.064L706.944 128zm-14.528-64h418.944a32 32 0 0 1 24.064 10.88l206.528 236.096A32 32 0 0 1 960 332.032V928a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V332.032a32 32 0 0 1 7.936-21.12L278.4 75.008A32 32 0 0 1 302.528 64"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64z"}),E("path",{fill:"currentColor",d:"M448 327.872V640h128V327.872L526.08 128h-28.16zM448 64h128l64 256v352a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V320z"})]))}}),nR=tR,aR=D({name:"Briefcase",__name:"briefcase",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 320V128h384v192h192v192H128V320zM128 576h768v320H128zm256-256h256.064V192H384z"})]))}}),oR=aR,lR=D({name:"BrushFilled",__name:"brush-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 704v160a96 96 0 0 1-192 0V704h-96a128 128 0 0 1-128-128h640a128 128 0 0 1-128 128zM192 512V128.064h640V512z"})]))}}),rR=lR,sR=D({name:"Brush",__name:"brush",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 448H128v192a64 64 0 0 0 64 64h192v192h256V704h192a64 64 0 0 0 64-64zm-770.752-64c0-47.552 5.248-90.24 15.552-128 14.72-54.016 42.496-107.392 83.2-160h417.28l-15.36 70.336L736 96h211.2c-24.832 42.88-41.92 96.256-51.2 160a664 664 0 0 0-6.144 128H960v256a128 128 0 0 1-128 128H704v160a32 32 0 0 1-32 32H352a32 32 0 0 1-32-32V768H192A128 128 0 0 1 64 640V384zm64 0h636.544c-2.048-45.824.256-91.584 6.848-137.216 4.48-30.848 10.688-59.776 18.688-86.784h-96.64l-221.12 141.248L561.92 160H256.512c-25.856 37.888-43.776 75.456-53.952 112.832-8.768 32.064-13.248 69.12-13.312 111.168"})]))}}),iR=sR,uR=D({name:"Burger",__name:"burger",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 512a32 32 0 0 0-32 32v64a32 32 0 0 0 30.08 32H864a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32zm736-58.56A96 96 0 0 1 960 544v64a96 96 0 0 1-51.968 85.312L855.36 833.6a96 96 0 0 1-89.856 62.272H258.496A96 96 0 0 1 168.64 833.6l-52.608-140.224A96 96 0 0 1 64 608v-64a96 96 0 0 1 64-90.56V448a384 384 0 1 1 768 5.44M832 448a320 320 0 0 0-640 0zM512 704H188.352l40.192 107.136a32 32 0 0 0 29.952 20.736h507.008a32 32 0 0 0 29.952-20.736L835.648 704z"})]))}}),cR=uR,dR=D({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),ky=dR,fR=D({name:"CameraFilled",__name:"camera-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h704a64 64 0 0 0 64-64V288a64 64 0 0 0-64-64H748.416l-46.464-92.672A64 64 0 0 0 644.736 96H379.328a64 64 0 0 0-57.216 35.392L275.776 224zm352 435.2a115.2 115.2 0 1 0 0-230.4 115.2 115.2 0 0 0 0 230.4m0 140.8a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),pR=fR,hR=D({name:"Camera",__name:"camera",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 256H128v576h768zm-199.424-64-32.064-64h-304.96l-32 64zM96 192h160l46.336-92.608A64 64 0 0 1 359.552 64h304.96a64 64 0 0 1 57.216 35.328L768.192 192H928a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32m416 512a160 160 0 1 0 0-320 160 160 0 0 0 0 320m0 64a224 224 0 1 1 0-448 224 224 0 0 1 0 448"})]))}}),vR=hR,mR=D({name:"CaretBottom",__name:"caret-bottom",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m192 384 320 384 320-384z"})]))}}),gR=mR,yR=D({name:"CaretLeft",__name:"caret-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M672 192 288 511.936 672 832z"})]))}}),bR=yR,wR=D({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Sh=wR,CR=D({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Ey=CR,_R=D({name:"Cellphone",__name:"cellphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128a64 64 0 0 0-64 64v640a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h512a128 128 0 0 1 128 128v640a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V192A128 128 0 0 1 256 64m128 128h256a32 32 0 1 1 0 64H384a32 32 0 0 1 0-64m128 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),SR=_R,xR=D({name:"ChatDotRound",__name:"chat-dot-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M512 563.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),kR=xR,ER=D({name:"ChatDotSquare",__name:"chat-dot-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M512 499.2a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m192 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4m-384 0a51.2 51.2 0 1 1 0-102.4 51.2 51.2 0 0 1 0 102.4"})]))}}),TR=ER,MR=D({name:"ChatLineRound",__name:"chat-line-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 135.296-45.12 23.68 11.84C388.096 849.536 448.576 864 512 864c211.84 0 384-166.784 384-352S723.84 160 512 160 128 326.784 128 512c0 69.12 24.96 139.264 70.848 199.232l22.08 28.8-46.272 115.584zm-45.248 82.56A32 32 0 0 1 89.6 896l58.368-145.92C94.72 680.32 64 596.864 64 512 64 299.904 256 96 512 96s448 203.904 448 416-192 416-448 416a461.06 461.06 0 0 1-206.912-48.384l-175.616 58.56z"}),E("path",{fill:"currentColor",d:"M352 576h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m32-192h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),OR=MR,$R=D({name:"ChatLineSquare",__name:"chat-line-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 826.88 273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"}),E("path",{fill:"currentColor",d:"M352 512h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m0-192h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),AR=$R,RR=D({name:"ChatRound",__name:"chat-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m174.72 855.68 130.048-43.392 23.424 11.392C382.4 849.984 444.352 864 512 864c223.744 0 384-159.872 384-352 0-192.832-159.104-352-384-352S128 319.168 128 512a341.12 341.12 0 0 0 69.248 204.288l21.632 28.8-44.16 110.528zm-45.248 82.56A32 32 0 0 1 89.6 896l56.512-141.248A405.12 405.12 0 0 1 64 512C64 299.904 235.648 96 512 96s448 203.904 448 416-173.44 416-448 416c-79.68 0-150.848-17.152-211.712-46.72l-170.88 56.96z"})]))}}),NR=RR,PR=D({name:"ChatSquare",__name:"chat-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.536 736H800a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64H224a64 64 0 0 0-64 64v570.88zM296 800 147.968 918.4A32 32 0 0 1 96 893.44V256a128 128 0 0 1 128-128h576a128 128 0 0 1 128 128v416a128 128 0 0 1-128 128z"})]))}}),IR=PR,LR=D({name:"Check",__name:"check",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),ni=LR,VR=D({name:"Checked",__name:"checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160.064v64H704zM311.616 537.28l-45.312 45.248L447.36 763.52l316.8-316.8-45.312-45.184L447.36 673.024zM384 192V96h256v96z"})]))}}),BR=VR,zR=D({name:"Cherry",__name:"cherry",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M261.056 449.6c13.824-69.696 34.88-128.96 63.36-177.728 23.744-40.832 61.12-88.64 112.256-143.872H320a32 32 0 0 1 0-64h384a32 32 0 1 1 0 64H554.752c14.912 39.168 41.344 86.592 79.552 141.76 47.36 68.48 84.8 106.752 106.304 114.304a224 224 0 1 1-84.992 14.784c-22.656-22.912-47.04-53.76-73.92-92.608-38.848-56.128-67.008-105.792-84.352-149.312-55.296 58.24-94.528 107.52-117.76 147.2-23.168 39.744-41.088 88.768-53.568 147.072a224.064 224.064 0 1 1-64.96-1.6M288 832a160 160 0 1 0 0-320 160 160 0 0 0 0 320m448-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320"})]))}}),DR=zR,HR=D({name:"Chicken",__name:"chicken",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M349.952 716.992 478.72 588.16a106.7 106.7 0 0 1-26.176-19.072 106.7 106.7 0 0 1-19.072-26.176L304.704 671.744c.768 3.072 1.472 6.144 2.048 9.216l2.048 31.936 31.872 1.984c3.136.64 6.208 1.28 9.28 2.112m57.344 33.152a128 128 0 1 1-216.32 114.432l-1.92-32-32-1.92a128 128 0 1 1 114.432-216.32L416.64 469.248c-2.432-101.44 58.112-239.104 149.056-330.048 107.328-107.328 231.296-85.504 316.8 0 85.44 85.44 107.328 209.408 0 316.8-91.008 90.88-228.672 151.424-330.112 149.056L407.296 750.08zm90.496-226.304c49.536 49.536 233.344-7.04 339.392-113.088 78.208-78.208 63.232-163.072 0-226.304-63.168-63.232-148.032-78.208-226.24 0C504.896 290.496 448.32 474.368 497.792 523.84M244.864 708.928a64 64 0 1 0-59.84 59.84l56.32-3.52zm8.064 127.68a64 64 0 1 0 59.84-59.84l-56.32 3.52z"})]))}}),FR=HR,KR=D({name:"ChromeFilled",__name:"chrome-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M938.67 512.01c0-44.59-6.82-87.6-19.54-128H682.67a212.37 212.37 0 0 1 42.67 128c.06 38.71-10.45 76.7-30.42 109.87l-182.91 316.8c235.65-.01 426.66-191.02 426.66-426.67"}),E("path",{fill:"currentColor",d:"M576.79 401.63a127.9 127.9 0 0 0-63.56-17.6c-22.36-.22-44.39 5.43-63.89 16.38s-35.79 26.82-47.25 46.02a128 128 0 0 0-2.16 127.44l1.24 2.13a127.9 127.9 0 0 0 46.36 46.61 127.9 127.9 0 0 0 63.38 17.44c22.29.2 44.24-5.43 63.68-16.33a127.94 127.94 0 0 0 47.16-45.79v-.01l1.11-1.92a127.98 127.98 0 0 0 .29-127.46 127.96 127.96 0 0 0-46.36-46.91"}),E("path",{fill:"currentColor",d:"M394.45 333.96A213.34 213.34 0 0 1 512 298.67h369.58A426.5 426.5 0 0 0 512 85.34a425.6 425.6 0 0 0-171.74 35.98 425.6 425.6 0 0 0-142.62 102.22l118.14 204.63a213.4 213.4 0 0 1 78.67-94.21m117.56 604.72H512zm-97.25-236.73a213.3 213.3 0 0 1-89.54-86.81L142.48 298.6c-36.35 62.81-57.13 135.68-57.13 213.42 0 203.81 142.93 374.22 333.95 416.55h.04l118.19-204.71a213.3 213.3 0 0 1-122.77-21.91"})]))}}),WR=KR,jR=D({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Ty=jR,qR=D({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),gf=qR,UR=D({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),yf=UR,YR=D({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),wo=YR,GR=D({name:"CirclePlusFilled",__name:"circle-plus-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-38.4 409.6H326.4a38.4 38.4 0 1 0 0 76.8h147.2v147.2a38.4 38.4 0 0 0 76.8 0V550.4h147.2a38.4 38.4 0 0 0 0-76.8H550.4V326.4a38.4 38.4 0 1 0-76.8 0z"})]))}}),XR=GR,JR=D({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ZR=JR,QR=D({name:"Clock",__name:"clock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),xh=QR,eN=D({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),tN=eN,nN=D({name:"Close",__name:"close",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Ba=nN,aN=D({name:"Cloudy",__name:"cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 831.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 831.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 381.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"})]))}}),oN=aN,lN=D({name:"CoffeeCup",__name:"coffee-cup",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 192a192 192 0 1 1-8 383.808A256.13 256.13 0 0 1 512 768H320A256 256 0 0 1 64 512V160a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v256a128 128 0 1 0 0-256M96 832h640a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-640v320a192 192 0 0 0 192 192h192a192 192 0 0 0 192-192V192z"})]))}}),rN=lN,sN=D({name:"Coffee",__name:"coffee",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M822.592 192h14.272a32 32 0 0 1 31.616 26.752l21.312 128A32 32 0 0 1 858.24 384h-49.344l-39.04 546.304A32 32 0 0 1 737.92 960H285.824a32 32 0 0 1-32-29.696L214.912 384H165.76a32 32 0 0 1-31.552-37.248l21.312-128A32 32 0 0 1 187.136 192h14.016l-6.72-93.696A32 32 0 0 1 226.368 64h571.008a32 32 0 0 1 31.936 34.304zm-64.128 0 4.544-64H260.736l4.544 64zm-548.16 128H820.48l-10.688-64H214.208l-10.688 64zm68.736 64 36.544 512H708.16l36.544-512z"})]))}}),iN=sN,uN=D({name:"Coin",__name:"coin",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m161.92 580.736 29.888 58.88C171.328 659.776 160 681.728 160 704c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 615.808 928 657.664 928 704c0 129.728-188.544 224-416 224S96 833.728 96 704c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"m161.92 388.736 29.888 58.88C171.328 467.84 160 489.792 160 512c0 82.304 155.328 160 352 160s352-77.696 352-160c0-22.272-11.392-44.16-31.808-64.32l30.464-58.432C903.936 423.808 928 465.664 928 512c0 129.728-188.544 224-416 224S96 641.728 96 512c0-46.592 24.32-88.576 65.92-123.264"}),E("path",{fill:"currentColor",d:"M512 544c-227.456 0-416-94.272-416-224S284.544 96 512 96s416 94.272 416 224-188.544 224-416 224m0-64c196.672 0 352-77.696 352-160S708.672 160 512 160s-352 77.696-352 160 155.328 160 352 160"})]))}}),cN=uN,dN=D({name:"ColdDrink",__name:"cold-drink",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 64a192 192 0 1 1-69.952 370.88L480 725.376V896h96a32 32 0 1 1 0 64H320a32 32 0 1 1 0-64h96V725.376L76.8 273.536a64 64 0 0 1-12.8-38.4v-10.688a32 32 0 0 1 32-32h71.808l-65.536-83.84a32 32 0 0 1 50.432-39.424l96.256 123.264h337.728A192.06 192.06 0 0 1 768 64M656.896 192.448H800a32 32 0 0 1 32 32v10.624a64 64 0 0 1-12.8 38.4l-80.448 107.2a128 128 0 1 0-81.92-188.16v-.064zm-357.888 64 129.472 165.76a32 32 0 0 1-50.432 39.36l-160.256-205.12H144l304 404.928 304-404.928z"})]))}}),fN=dN,pN=D({name:"CollectionTag",__name:"collection-tag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 128v698.88l196.032-156.864a96 96 0 0 1 119.936 0L768 826.816V128zm-32-64h576a32 32 0 0 1 32 32v797.44a32 32 0 0 1-51.968 24.96L531.968 720a32 32 0 0 0-39.936 0L243.968 918.4A32 32 0 0 1 192 893.44V96a32 32 0 0 1 32-32"})]))}}),hN=pN,vN=D({name:"Collection",__name:"collection",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 736h640V128H256a64 64 0 0 0-64 64zm64-672h608a32 32 0 0 1 32 32v672a32 32 0 0 1-32 32H160l-32 57.536V192A128 128 0 0 1 256 64"}),E("path",{fill:"currentColor",d:"M240 800a48 48 0 1 0 0 96h592v-96zm0-64h656v160a64 64 0 0 1-64 64H240a112 112 0 0 1 0-224m144-608v250.88l96-76.8 96 76.8V128zm-64-64h320v381.44a32 32 0 0 1-51.968 24.96L480 384l-108.032 86.4A32 32 0 0 1 320 445.44z"})]))}}),mN=vN,gN=D({name:"Comment",__name:"comment",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),yN=gN,bN=D({name:"Compass",__name:"compass",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M725.888 315.008C676.48 428.672 624 513.28 568.576 568.64c-55.424 55.424-139.968 107.904-253.568 157.312a12.8 12.8 0 0 1-16.896-16.832c49.536-113.728 102.016-198.272 157.312-253.632 55.36-55.296 139.904-107.776 253.632-157.312a12.8 12.8 0 0 1 16.832 16.832"})]))}}),wN=bN,CN=D({name:"Connection",__name:"connection",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v64H448a128 128 0 0 0-128 128v128a128 128 0 0 0 128 128h320a128 128 0 0 0 128-128V576a128 128 0 0 0-64-110.848V394.88c74.56 26.368 128 97.472 128 181.056v128a192 192 0 0 1-192 192H448a192 192 0 0 1-192-192V576a192 192 0 0 1 192-192z"}),E("path",{fill:"currentColor",d:"M384 640v-64h192a128 128 0 0 0 128-128V320a128 128 0 0 0-128-128H256a128 128 0 0 0-128 128v128a128 128 0 0 0 64 110.848v70.272A192.06 192.06 0 0 1 64 448V320a192 192 0 0 1 192-192h320a192 192 0 0 1 192 192v128a192 192 0 0 1-192 192z"})]))}}),_N=CN,SN=D({name:"Coordinate",__name:"coordinate",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 512h64v320h-64z"}),E("path",{fill:"currentColor",d:"M192 896h640a64 64 0 0 0-64-64H256a64 64 0 0 0-64 64m64-128h512a128 128 0 0 1 128 128v64H128v-64a128 128 0 0 1 128-128m256-256a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"})]))}}),xN=SN,kN=D({name:"CopyDocument",__name:"copy-document",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 832a128 128 0 0 1-128 128H192A128 128 0 0 1 64 832V384a128 128 0 0 1 128-128v64a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64z"}),E("path",{fill:"currentColor",d:"M384 128a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V192a64 64 0 0 0-64-64zm0-64h448a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H384a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64"})]))}}),EN=kN,TN=D({name:"Cpu",__name:"cpu",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 256a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h384a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h384a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128H320a128 128 0 0 1-128-128V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m-320 0a32 32 0 0 1 32 32v128h-64V96a32 32 0 0 1 32-32m160 896a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m160 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32m-320 0a32 32 0 0 1-32-32V800h64v128a32 32 0 0 1-32 32M64 512a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0-160a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m0 320a32 32 0 0 1 32-32h128v64H96a32 32 0 0 1-32-32m896-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0-160a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32m0 320a32 32 0 0 1-32 32H800v-64h128a32 32 0 0 1 32 32"})]))}}),MN=TN,ON=D({name:"CreditCard",__name:"credit-card",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 324.096c0-42.368-2.496-55.296-9.536-68.48a52.35 52.35 0 0 0-22.144-22.08c-13.12-7.04-26.048-9.536-68.416-9.536H228.096c-42.368 0-55.296 2.496-68.48 9.536a52.35 52.35 0 0 0-22.08 22.144c-7.04 13.12-9.536 26.048-9.536 68.416v375.808c0 42.368 2.496 55.296 9.536 68.48a52.35 52.35 0 0 0 22.144 22.08c13.12 7.04 26.048 9.536 68.416 9.536h567.808c42.368 0 55.296-2.496 68.48-9.536a52.35 52.35 0 0 0 22.08-22.144c7.04-13.12 9.536-26.048 9.536-68.416zm64 0v375.808c0 57.088-5.952 77.76-17.088 98.56-11.136 20.928-27.52 37.312-48.384 48.448S852.928 864 795.968 864H228.032c-57.088 0-77.76-5.952-98.56-17.088a116.3 116.3 0 0 1-48.448-48.384c-11.136-20.864-17.088-41.6-17.088-98.56V324.032c0-57.088 5.952-77.76 17.088-98.56 11.136-20.928 27.52-37.312 48.384-48.448s41.6-17.088 98.56-17.088H795.84c57.088 0 77.76 5.952 98.56 17.088 20.928 11.136 37.312 27.52 48.448 48.384s17.088 41.6 17.088 98.56z"}),E("path",{fill:"currentColor",d:"M64 320h896v64H64zm0 128h896v64H64zm128 192h256v64H192z"})]))}}),$N=ON,AN=D({name:"Crop",__name:"crop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768h672a32 32 0 1 1 0 64H224a32 32 0 0 1-32-32V96a32 32 0 0 1 64 0z"}),E("path",{fill:"currentColor",d:"M832 224v704a32 32 0 1 1-64 0V256H96a32 32 0 0 1 0-64h704a32 32 0 0 1 32 32"})]))}}),RN=AN,NN=D({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),yl=NN,PN=D({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),bl=PN,IN=D({name:"DCaret",__name:"d-caret",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),LN=IN,VN=D({name:"DataAnalysis",__name:"data-analysis",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m665.216 768 110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32l110.848-192H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32zM832 192H192v512h640zM352 448a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0v-64a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v128a32 32 0 0 1-64 0V416a32 32 0 0 1 32-32m160-64a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V352a32 32 0 0 1 32-32"})]))}}),BN=VN,zN=D({name:"DataBoard",__name:"data-board",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 128h960v64H32z"}),E("path",{fill:"currentColor",d:"M192 192v512h640V192zm-64-64h768v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M322.176 960H248.32l144.64-250.56 55.424 32zm453.888 0h-73.856L576 741.44l55.424-32z"})]))}}),DN=zN,HN=D({name:"DataLine",__name:"data-line",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M359.168 768H160a32 32 0 0 1-32-32V192H64a32 32 0 0 1 0-64h896a32 32 0 1 1 0 64h-64v544a32 32 0 0 1-32 32H665.216l110.848 192h-73.856L591.36 768H433.024L322.176 960H248.32zM832 192H192v512h640zM342.656 534.656a32 32 0 1 1-45.312-45.312L444.992 341.76l125.44 94.08L679.04 300.032a32 32 0 1 1 49.92 39.936L581.632 524.224 451.008 426.24 342.656 534.592z"})]))}}),FN=HN,KN=D({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),WN=KN,jN=D({name:"DeleteLocation",__name:"delete-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M384 384h256q32 0 32 32t-32 32H384q-32 0-32-32t32-32"})]))}}),qN=jN,UN=D({name:"Delete",__name:"delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),My=UN,YN=D({name:"Dessert",__name:"dessert",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 416v-48a144 144 0 0 1 168.64-141.888 224.128 224.128 0 0 1 430.72 0A144 144 0 0 1 896 368v48a384 384 0 0 1-352 382.72V896h-64v-97.28A384 384 0 0 1 128 416m287.104-32.064h193.792a143.81 143.81 0 0 1 58.88-132.736 160.064 160.064 0 0 0-311.552 0 143.81 143.81 0 0 1 58.88 132.8zm-72.896 0a72 72 0 1 0-140.48 0zm339.584 0h140.416a72 72 0 1 0-140.48 0zM512 736a320 320 0 0 0 318.4-288.064H193.6A320 320 0 0 0 512 736M384 896.064h256a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64"})]))}}),GN=YN,XN=D({name:"Discount",__name:"discount",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),JN=XN,ZN=D({name:"DishDot",__name:"dish-dot",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m384.064 274.56.064-50.688A128 128 0 0 1 512.128 96c70.528 0 127.68 57.152 127.68 127.68v50.752A448.19 448.19 0 0 1 955.392 768H68.544A448.19 448.19 0 0 1 384 274.56zM96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64m32-128h768a384 384 0 1 0-768 0m447.808-448v-32.32a63.68 63.68 0 0 0-63.68-63.68 64 64 0 0 0-64 63.936V256z"})]))}}),QN=ZN,eP=D({name:"Dish",__name:"dish",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 257.152V192h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64h-96v65.152A448 448 0 0 1 955.52 768H68.48A448 448 0 0 1 480 257.152M128 704h768a384 384 0 1 0-768 0M96 832h832a32 32 0 1 1 0 64H96a32 32 0 1 1 0-64"})]))}}),tP=eP,nP=D({name:"DocumentAdd",__name:"document-add",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m320 512V448h64v128h128v64H544v128h-64V640H352v-64z"})]))}}),aP=nP,oP=D({name:"DocumentChecked",__name:"document-checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m318.4 582.144 180.992-180.992L704.64 510.4 478.4 736.64 320 578.304l45.248-45.312z"})]))}}),lP=oP,rP=D({name:"DocumentCopy",__name:"document-copy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"})]))}}),sP=rP,iP=D({name:"DocumentDelete",__name:"document-delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m308.992 546.304-90.496-90.624 45.248-45.248 90.56 90.496 90.496-90.432 45.248 45.248-90.496 90.56 90.496 90.496-45.248 45.248-90.496-90.496-90.56 90.496-45.248-45.248z"})]))}}),uP=iP,cP=D({name:"DocumentRemove",__name:"document-remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M805.504 320 640 154.496V320zM832 384H576V128H192v768h640zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m192 512h320v64H352z"})]))}}),dP=cP,fP=D({name:"Document",__name:"document",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),Oy=fP,pP=D({name:"Download",__name:"download",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),hP=pP,vP=D({name:"Drizzling",__name:"drizzling",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M288 800h64v64h-64zm192 0h64v64h-64zm-96 96h64v64h-64zm192 0h64v64h-64zm96-96h64v64h-64z"})]))}}),mP=vP,gP=D({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),yP=gP,bP=D({name:"Edit",__name:"edit",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),E("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),wP=bP,CP=D({name:"ElemeFilled",__name:"eleme-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 64h672c61.824 0 112 50.176 112 112v672a112 112 0 0 1-112 112H176A112 112 0 0 1 64 848V176c0-61.824 50.176-112 112-112m150.528 173.568c-152.896 99.968-196.544 304.064-97.408 456.96a330.69 330.69 0 0 0 456.96 96.64c9.216-5.888 17.6-11.776 25.152-18.56a18.24 18.24 0 0 0 4.224-24.32L700.352 724.8a47.55 47.55 0 0 0-65.536-14.272A234.56 234.56 0 0 1 310.592 641.6C240 533.248 271.104 387.968 379.456 316.48a234.3 234.3 0 0 1 276.352 15.168c1.664.832 2.56 2.56 3.392 4.224 5.888 8.384 3.328 19.328-5.12 25.216L456.832 489.6a47.55 47.55 0 0 0-14.336 65.472l16 24.384c5.888 8.384 16.768 10.88 25.216 5.056l308.224-199.936a19.584 19.584 0 0 0 6.72-23.488v-.896c-4.992-9.216-10.048-17.6-15.104-26.88-99.968-151.168-304.064-194.88-456.96-95.744zM786.88 504.704l-62.208 40.32c-8.32 5.888-10.88 16.768-4.992 25.216L760 632.32c5.888 8.448 16.768 11.008 25.152 5.12l31.104-20.16a55.36 55.36 0 0 0 16-76.48l-20.224-31.04a19.52 19.52 0 0 0-25.152-5.12z"})]))}}),_P=CP,SP=D({name:"Eleme",__name:"eleme",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M300.032 188.8c174.72-113.28 408-63.36 522.24 109.44 5.76 10.56 11.52 20.16 17.28 30.72v.96a22.4 22.4 0 0 1-7.68 26.88l-352.32 228.48c-9.6 6.72-22.08 3.84-28.8-5.76l-18.24-27.84a54.336 54.336 0 0 1 16.32-74.88l225.6-146.88c9.6-6.72 12.48-19.2 5.76-28.8-.96-1.92-1.92-3.84-3.84-4.8a267.84 267.84 0 0 0-315.84-17.28c-123.84 81.6-159.36 247.68-78.72 371.52a268.096 268.096 0 0 0 370.56 78.72 54.336 54.336 0 0 1 74.88 16.32l17.28 26.88c5.76 9.6 3.84 21.12-4.8 27.84-8.64 7.68-18.24 14.4-28.8 21.12a377.92 377.92 0 0 1-522.24-110.4c-113.28-174.72-63.36-408 111.36-522.24m526.08 305.28a22.336 22.336 0 0 1 28.8 5.76l23.04 35.52a63.23 63.23 0 0 1-18.24 87.36l-35.52 23.04c-9.6 6.72-22.08 3.84-28.8-5.76l-46.08-71.04c-6.72-9.6-3.84-22.08 5.76-28.8z"})]))}}),xP=SP,kP=D({name:"ElementPlus",__name:"element-plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M839.7 734.7c0 33.3-17.9 41-17.9 41S519.7 949.8 499.2 960c-10.2 5.1-20.5 5.1-30.7 0 0 0-314.9-184.3-325.1-192-5.1-5.1-10.2-12.8-12.8-20.5V368.6c0-17.9 20.5-28.2 20.5-28.2L466 158.6q19.2-7.65 38.4 0s279 161.3 309.8 179.2c17.9 7.7 28.2 25.6 25.6 46.1-.1-5-.1 317.5-.1 350.8M714.2 371.2c-64-35.8-217.6-125.4-217.6-125.4-7.7-5.1-20.5-5.1-30.7 0L217.6 389.1s-17.9 10.2-17.9 23v297c0 5.1 5.1 12.8 7.7 17.9 7.7 5.1 256 148.5 256 148.5 7.7 5.1 17.9 5.1 25.6 0 15.4-7.7 250.9-145.9 250.9-145.9s12.8-5.1 12.8-30.7v-74.2l-276.5 169v-64c0-17.9 7.7-30.7 20.5-46.1L745 535c5.1-7.7 10.2-20.5 10.2-30.7v-66.6l-279 169v-69.1c0-15.4 5.1-30.7 17.9-38.4zM919 135.7c0-5.1-5.1-7.7-7.7-7.7h-58.9V66.6c0-5.1-5.1-5.1-10.2-5.1l-30.7 5.1c-5.1 0-5.1 2.6-5.1 5.1V128h-56.3c-5.1 0-5.1 5.1-7.7 5.1v38.4h69.1v64c0 5.1 5.1 5.1 10.2 5.1l30.7-5.1c5.1 0 5.1-2.6 5.1-5.1v-56.3h64z"})]))}}),EP=kP,TP=D({name:"Expand",__name:"expand",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192h768v128H128zm0 256h512v128H128zm0 256h768v128H128zm576-352 192 160-192 128z"})]))}}),MP=TP,OP=D({name:"Failed",__name:"failed",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m557.248 608 135.744-135.744-45.248-45.248-135.68 135.744-135.808-135.68-45.248 45.184L466.752 608l-135.68 135.68 45.184 45.312L512 653.248l135.744 135.744 45.248-45.248L557.312 608zM704 192h160v736H160V192h160v64h384zm-320 0V96h256v96z"})]))}}),$P=OP,AP=D({name:"Female",__name:"female",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 640a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M512 640q32 0 32 32v256q0 32-32 32t-32-32V672q0-32 32-32"}),E("path",{fill:"currentColor",d:"M352 800h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32"})]))}}),RP=AP,NP=D({name:"Files",__name:"files",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384v448h768V384zm-32-64h832a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32m64-128h704v64H160zm96-128h512v64H256z"})]))}}),PP=NP,IP=D({name:"Film",__name:"film",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),LP=IP,VP=D({name:"Filter",__name:"filter",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),BP=VP,zP=D({name:"Finished",__name:"finished",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M280.768 753.728 691.456 167.04a32 32 0 1 1 52.416 36.672L314.24 817.472a32 32 0 0 1-45.44 7.296l-230.4-172.8a32 32 0 0 1 38.4-51.2zM736 448a32 32 0 1 1 0-64h192a32 32 0 1 1 0 64zM608 640a32 32 0 0 1 0-64h319.936a32 32 0 1 1 0 64zM480 832a32 32 0 1 1 0-64h447.936a32 32 0 1 1 0 64z"})]))}}),DP=zP,HP=D({name:"FirstAidKit",__name:"first-aid-kit",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 256a64 64 0 0 0-64 64v448a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V320a64 64 0 0 0-64-64zm0-64h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M544 512h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96v-96a32 32 0 0 1 64 0zM352 128v64h320v-64zm-32-64h384a32 32 0 0 1 32 32v128a32 32 0 0 1-32 32H320a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"})]))}}),FP=HP,KP=D({name:"Flag",__name:"flag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 128h608L736 384l160 256H288v320h-96V64h96z"})]))}}),WP=KP,jP=D({name:"Fold",__name:"fold",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 192H128v128h768zm0 256H384v128h512zm0 256H128v128h768zM320 384 128 512l192 128z"})]))}}),qP=jP,UP=D({name:"FolderAdd",__name:"folder-add",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m384 416V416h64v128h128v64H544v128h-64V608H352v-64z"})]))}}),YP=UP,GP=D({name:"FolderChecked",__name:"folder-checked",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m414.08 502.144 180.992-180.992L736.32 494.4 510.08 720.64l-158.4-158.336 45.248-45.312z"})]))}}),XP=GP,JP=D({name:"FolderDelete",__name:"folder-delete",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m370.752 448-90.496-90.496 45.248-45.248L512 530.752l90.496-90.496 45.248 45.248L557.248 576l90.496 90.496-45.248 45.248L512 621.248l-90.496 90.496-45.248-45.248z"})]))}}),ZP=JP,QP=D({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),eI=QP,tI=D({name:"FolderRemove",__name:"folder-remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32m256 416h320v64H352z"})]))}}),nI=tI,aI=D({name:"Folder",__name:"folder",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 192v640h768V320H485.76L357.504 192zm-32-64h287.872l128.384 128H928a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32"})]))}}),oI=aI,lI=D({name:"Food",__name:"food",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 352.576V352a288 288 0 0 1 491.072-204.224 192 192 0 0 1 274.24 204.48 64 64 0 0 1 57.216 74.24C921.6 600.512 850.048 710.656 736 756.992V800a96 96 0 0 1-96 96H384a96 96 0 0 1-96-96v-43.008c-114.048-46.336-185.6-156.48-214.528-330.496A64 64 0 0 1 128 352.64zm64-.576h64a160 160 0 0 1 320 0h64a224 224 0 0 0-448 0m128 0h192a96 96 0 0 0-192 0m439.424 0h68.544A128.256 128.256 0 0 0 704 192c-15.36 0-29.952 2.688-43.52 7.616 11.328 18.176 20.672 37.76 27.84 58.304A64.128 64.128 0 0 1 759.424 352M672 768H352v32a32 32 0 0 0 32 32h256a32 32 0 0 0 32-32zm-342.528-64h365.056c101.504-32.64 165.76-124.928 192.896-288H136.576c27.136 163.072 91.392 255.36 192.896 288"})]))}}),rI=lI,sI=D({name:"Football",__name:"football",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-64a384 384 0 1 0 0-768 384 384 0 0 0 0 768"}),E("path",{fill:"currentColor",d:"M186.816 268.288c16-16.384 31.616-31.744 46.976-46.08 17.472 30.656 39.808 58.112 65.984 81.28l-32.512 56.448a386 386 0 0 1-80.448-91.648m653.696-5.312a385.9 385.9 0 0 1-83.776 96.96l-32.512-56.384a322.9 322.9 0 0 0 68.48-85.76c15.552 14.08 31.488 29.12 47.808 45.184M465.984 445.248l11.136-63.104a323.6 323.6 0 0 0 69.76 0l11.136 63.104a388 388 0 0 1-92.032 0m-62.72-12.8A381.8 381.8 0 0 1 320 396.544l32-55.424a320 320 0 0 0 62.464 27.712l-11.2 63.488zm300.8-35.84a381.8 381.8 0 0 1-83.328 35.84l-11.2-63.552A320 320 0 0 0 672 341.184l32 55.424zm-520.768 364.8a385.9 385.9 0 0 1 83.968-97.28l32.512 56.32c-26.88 23.936-49.856 52.352-67.52 84.032-16-13.44-32.32-27.712-48.96-43.072m657.536.128a1443 1443 0 0 1-49.024 43.072 321.4 321.4 0 0 0-67.584-84.16l32.512-56.32c33.216 27.456 61.696 60.352 84.096 97.408M465.92 578.752a388 388 0 0 1 92.032 0l-11.136 63.104a323.6 323.6 0 0 0-69.76 0zm-62.72 12.8 11.2 63.552a320 320 0 0 0-62.464 27.712L320 627.392a381.8 381.8 0 0 1 83.264-35.84zm300.8 35.84-32 55.424a318.3 318.3 0 0 0-62.528-27.712l11.2-63.488c29.44 8.64 57.28 20.736 83.264 35.776z"})]))}}),iI=sI,uI=D({name:"ForkSpoon",__name:"fork-spoon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.304V96a32 32 0 0 1 64 0v314.304a96 96 0 0 0 64-90.56V96a32 32 0 0 1 64 0v223.744a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.544a160 160 0 0 1-128-156.8V96a32 32 0 0 1 64 0v223.744a96 96 0 0 0 64 90.56M672 572.48C581.184 552.128 512 446.848 512 320c0-141.44 85.952-256 192-256s192 114.56 192 256c0 126.848-69.184 232.128-160 252.48V928a32 32 0 1 1-64 0zM704 512c66.048 0 128-82.56 128-192s-61.952-192-128-192-128 82.56-128 192 61.952 192 128 192"})]))}}),cI=uI,dI=D({name:"Fries",__name:"fries",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M608 224v-64a32 32 0 0 0-64 0v336h26.88A64 64 0 0 0 608 484.096zm101.12 160A64 64 0 0 0 672 395.904V384h64V224a32 32 0 1 0-64 0v160zm74.88 0a92.928 92.928 0 0 1 91.328 110.08l-60.672 323.584A96 96 0 0 1 720.32 896H303.68a96 96 0 0 1-94.336-78.336L148.672 494.08A92.928 92.928 0 0 1 240 384h-16V224a96 96 0 0 1 188.608-25.28A95.74 95.74 0 0 1 480 197.44V160a96 96 0 0 1 188.608-25.28A96 96 0 0 1 800 224v160zM670.784 512a128 128 0 0 1-99.904 48H453.12a128 128 0 0 1-99.84-48H352v-1.536a128 128 0 0 1-9.984-14.976L314.88 448H240a28.928 28.928 0 0 0-28.48 34.304L241.088 640h541.824l29.568-157.696A28.928 28.928 0 0 0 784 448h-74.88l-27.136 47.488A132 132 0 0 1 672 510.464V512zM480 288a32 32 0 0 0-64 0v196.096A64 64 0 0 0 453.12 496H480zm-128 96V224a32 32 0 0 0-64 0v160zh-37.12A64 64 0 0 1 352 395.904zm-98.88 320 19.072 101.888A32 32 0 0 0 303.68 832h416.64a32 32 0 0 0 31.488-26.112L770.88 704z"})]))}}),fI=dI,pI=D({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),$y=pI,hI=D({name:"GobletFull",__name:"goblet-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 320h512c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320m503.936 64H264.064a256.128 256.128 0 0 0 495.872 0M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4"})]))}}),vI=hI,mI=D({name:"GobletSquareFull",__name:"goblet-square-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 270.912c10.048 6.72 22.464 14.912 28.992 18.624a220.16 220.16 0 0 0 114.752 30.72c30.592 0 49.408-9.472 91.072-41.152l.64-.448c52.928-40.32 82.368-55.04 132.288-54.656 55.552.448 99.584 20.8 142.72 57.408l1.536 1.28V128H256zm.96 76.288C266.368 482.176 346.88 575.872 512 576c157.44.064 237.952-85.056 253.248-209.984a952 952 0 0 1-40.192-35.712c-32.704-27.776-63.36-41.92-101.888-42.24-31.552-.256-50.624 9.28-93.12 41.6l-.576.448c-52.096 39.616-81.024 54.208-129.792 54.208-54.784 0-100.48-13.376-142.784-37.056zM480 638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96z"})]))}}),gI=mI,yI=D({name:"GobletSquare",__name:"goblet-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.912V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.848C250.624 623.424 192 442.496 192 319.68V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v224c0 122.816-58.624 303.68-288 318.912M256 319.68c0 149.568 80 256.192 256 256.256C688.128 576 768 469.568 768 320V128H256z"})]))}}),bI=yI,wI=D({name:"Goblet",__name:"goblet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 638.4V896h96a32 32 0 1 1 0 64H384a32 32 0 1 1 0-64h96V638.4A320 320 0 0 1 192 320c0-85.632 21.312-170.944 64-256h512c42.688 64.32 64 149.632 64 256a320 320 0 0 1-288 318.4M256 320a256 256 0 1 0 512 0c0-78.592-12.608-142.4-36.928-192h-434.24C269.504 192.384 256 256.256 256 320"})]))}}),CI=wI,_I=D({name:"GoldMedal",__name:"gold-medal",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m772.13 452.84 53.86-351.81c1.32-10.01-1.17-18.68-7.49-26.02S804.35 64 795.01 64H228.99v-.01h-.06c-9.33 0-17.15 3.67-23.49 11.01s-8.83 16.01-7.49 26.02l53.87 351.89C213.54 505.73 193.59 568.09 192 640c2 90.67 33.17 166.17 93.5 226.5S421.33 957.99 512 960c90.67-2 166.17-33.17 226.5-93.5 60.33-60.34 91.49-135.83 93.5-226.5-1.59-71.94-21.56-134.32-59.87-187.16M640.01 128h117.02l-39.01 254.02c-20.75-10.64-40.74-19.73-59.94-27.28-5.92-3-11.95-5.8-18.08-8.41V128zM576 128v198.76c-13.18-2.58-26.74-4.43-40.67-5.55-8.07-.8-15.85-1.2-23.33-1.2-10.54 0-21.09.66-31.64 1.96a360 360 0 0 0-32.36 4.79V128zm-192 0h.04v218.3c-6.22 2.66-12.34 5.5-18.36 8.56-19.13 7.54-39.02 16.6-59.66 27.16L267.01 128zm308.99 692.99c-48 48-108.33 73-180.99 75.01-72.66-2.01-132.99-27.01-180.99-75.01S258.01 712.66 256 640c2.01-72.66 27.01-132.99 75.01-180.99 19.67-19.67 41.41-35.47 65.22-47.41 38.33-15.04 71.15-23.92 98.44-26.65 5.07-.41 10.2-.7 15.39-.88.63-.01 1.28-.03 1.91-.03.66 0 1.35.03 2.02.04 5.11.17 10.15.46 15.13.86 27.4 2.71 60.37 11.65 98.91 26.79 23.71 11.93 45.36 27.69 64.96 47.29 48 48 73 108.33 75.01 180.99-2.01 72.65-27.01 132.98-75.01 180.98"}),E("path",{fill:"currentColor",d:"M544 480H416v64h64v192h-64v64h192v-64h-64z"})]))}}),SI=_I,xI=D({name:"GoodsFilled",__name:"goods-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 352h640l64 544H128zm128 224h64V448h-64zm320 0h64V448h-64zM384 288h-64a192 192 0 1 1 384 0h-64a128 128 0 1 0-256 0"})]))}}),kI=xI,EI=D({name:"Goods",__name:"goods",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 288v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4h131.072a32 32 0 0 1 31.808 28.8l57.6 576a32 32 0 0 1-31.808 35.2H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320zm64 0h256v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4zm-64 64H217.92l-51.2 512h690.56l-51.264-512H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0z"})]))}}),TI=EI,MI=D({name:"Grape",__name:"grape",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 195.2a160 160 0 0 1 96 60.8 160 160 0 1 1 146.24 254.976 160 160 0 0 1-128 224 160 160 0 1 1-292.48 0 160 160 0 0 1-128-224A160 160 0 1 1 384 256a160 160 0 0 1 96-60.8V128h-64a32 32 0 0 1 0-64h192a32 32 0 0 1 0 64h-64zM512 448a96 96 0 1 0 0-192 96 96 0 0 0 0 192m-256 0a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128 224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192m128-224a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),OI=MI,$I=D({name:"Grid",__name:"grid",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 384v256H384V384zm64 0h192v256H704zm-64 512H384V704h256zm64 0V704h192v192zm-64-768v192H384V128zm64 0h192v192H704zM320 384v256H128V384zm0 512H128V704h192zm0-768v192H128V128z"})]))}}),AI=$I,RI=D({name:"Guide",__name:"guide",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 608h-64V416h64zm0 160v160a32 32 0 0 1-32 32H416a32 32 0 0 1-32-32V768h64v128h128V768zM384 608V416h64v192zm256-352h-64V128H448v128h-64V96a32 32 0 0 1 32-32h192a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"m220.8 256-71.232 80 71.168 80H768V256zm-14.4-64H800a32 32 0 0 1 32 32v224a32 32 0 0 1-32 32H206.4a32 32 0 0 1-23.936-10.752l-99.584-112a32 32 0 0 1 0-42.496l99.584-112A32 32 0 0 1 206.4 192m678.784 496-71.104 80H266.816V608h547.2zm-56.768-144H234.88a32 32 0 0 0-32 32v224a32 32 0 0 0 32 32h593.6a32 32 0 0 0 23.936-10.752l99.584-112a32 32 0 0 0 0-42.496l-99.584-112A32 32 0 0 0 828.48 544z"})]))}}),NI=RI,PI=D({name:"Handbag",__name:"handbag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M887.01 264.99c-6-5.99-13.67-8.99-23.01-8.99H704c-1.34-54.68-20.01-100.01-56-136s-81.32-54.66-136-56c-54.68 1.34-100.01 20.01-136 56s-54.66 81.32-56 136H160c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.67-8.99 23.01v640c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V288c0-9.35-2.99-17.02-8.99-23.01M421.5 165.5c24.32-24.34 54.49-36.84 90.5-37.5 35.99.68 66.16 13.18 90.5 37.5s36.84 54.49 37.5 90.5H384c.68-35.99 13.18-66.16 37.5-90.5M832 896H192V320h128v128h64V320h256v128h64V320h128z"})]))}}),II=PI,LI=D({name:"Headset",__name:"headset",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M896 529.152V512a384 384 0 1 0-768 0v17.152A128 128 0 0 1 320 640v128a128 128 0 1 1-256 0V512a448 448 0 1 1 896 0v256a128 128 0 1 1-256 0V640a128 128 0 0 1 192-110.848M896 640a64 64 0 0 0-128 0v128a64 64 0 0 0 128 0zm-768 0v128a64 64 0 0 0 128 0V640a64 64 0 1 0-128 0"})]))}}),VI=LI,BI=D({name:"HelpFilled",__name:"help-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M926.784 480H701.312A192.51 192.51 0 0 0 544 322.688V97.216A416.064 416.064 0 0 1 926.784 480m0 64A416.064 416.064 0 0 1 544 926.784V701.312A192.51 192.51 0 0 0 701.312 544zM97.28 544h225.472A192.51 192.51 0 0 0 480 701.312v225.472A416.064 416.064 0 0 1 97.216 544zm0-64A416.064 416.064 0 0 1 480 97.216v225.472A192.51 192.51 0 0 0 322.688 480H97.216z"})]))}}),zI=BI,DI=D({name:"Help",__name:"help",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m759.936 805.248-90.944-91.008A254.9 254.9 0 0 1 512 768a254.9 254.9 0 0 1-156.992-53.76l-90.944 91.008A382.46 382.46 0 0 0 512 896c94.528 0 181.12-34.176 247.936-90.752m45.312-45.312A382.46 382.46 0 0 0 896 512c0-94.528-34.176-181.12-90.752-247.936l-91.008 90.944C747.904 398.4 768 452.864 768 512s-20.096 113.6-53.76 156.992zm-45.312-541.184A382.46 382.46 0 0 0 512 128c-94.528 0-181.12 34.176-247.936 90.752l90.944 91.008A254.9 254.9 0 0 1 512 256c59.136 0 113.6 20.096 156.992 53.76zm-541.184 45.312A382.46 382.46 0 0 0 128 512c0 94.528 34.176 181.12 90.752 247.936l91.008-90.944A254.9 254.9 0 0 1 256 512c0-59.136 20.096-113.6 53.76-156.992zm417.28 394.496a194.6 194.6 0 0 0 22.528-22.528C686.912 602.56 704 559.232 704 512a191.23 191.23 0 0 0-67.968-146.56A191.3 191.3 0 0 0 512 320a191.23 191.23 0 0 0-146.56 67.968C337.088 421.44 320 464.768 320 512a191.23 191.23 0 0 0 67.968 146.56C421.44 686.912 464.768 704 512 704c47.296 0 90.56-17.088 124.032-45.44M512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),HI=DI,FI=D({name:"Hide",__name:"hide",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),E("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),Ay=FI,KI=D({name:"Histogram",__name:"histogram",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 896V128h192v768zm-288 0V448h192v448zm576 0V320h192v576z"})]))}}),WI=KI,jI=D({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),qI=jI,UI=D({name:"HotWater",__name:"hot-water",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M273.067 477.867h477.866V409.6H273.067zm0 68.266v51.2A187.733 187.733 0 0 0 460.8 785.067h102.4a187.733 187.733 0 0 0 187.733-187.734v-51.2zm-34.134-204.8h546.134a34.133 34.133 0 0 1 34.133 34.134v221.866a256 256 0 0 1-256 256H460.8a256 256 0 0 1-256-256V375.467a34.133 34.133 0 0 1 34.133-34.134M512 34.133a34.133 34.133 0 0 1 34.133 34.134v170.666a34.133 34.133 0 0 1-68.266 0V68.267A34.133 34.133 0 0 1 512 34.133M375.467 102.4a34.133 34.133 0 0 1 34.133 34.133v102.4a34.133 34.133 0 0 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.134-34.133m273.066 0a34.133 34.133 0 0 1 34.134 34.133v102.4a34.133 34.133 0 1 1-68.267 0v-102.4a34.133 34.133 0 0 1 34.133-34.133M170.667 921.668h682.666a34.133 34.133 0 1 1 0 68.267H170.667a34.133 34.133 0 1 1 0-68.267"})]))}}),YI=UI,GI=D({name:"House",__name:"house",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 413.952V896h640V413.952L512 147.328zM139.52 374.4l352-293.312a32 32 0 0 1 40.96 0l352 293.312A32 32 0 0 1 896 398.976V928a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V398.976a32 32 0 0 1 11.52-24.576"})]))}}),XI=GI,JI=D({name:"IceCreamRound",__name:"ice-cream-round",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m308.352 489.344 226.304 226.304a32 32 0 0 0 45.248 0L783.552 512A192 192 0 1 0 512 240.448L308.352 444.16a32 32 0 0 0 0 45.248zm135.744 226.304L308.352 851.392a96 96 0 0 1-135.744-135.744l135.744-135.744-45.248-45.248a96 96 0 0 1 0-135.808L466.752 195.2A256 256 0 0 1 828.8 557.248L625.152 760.96a96 96 0 0 1-135.808 0l-45.248-45.248zM398.848 670.4 353.6 625.152 217.856 760.896a32 32 0 0 0 45.248 45.248zm248.96-384.64a32 32 0 0 1 0 45.248L466.624 512a32 32 0 1 1-45.184-45.248l180.992-181.056a32 32 0 0 1 45.248 0zm90.496 90.496a32 32 0 0 1 0 45.248L557.248 602.496A32 32 0 1 1 512 557.248l180.992-180.992a32 32 0 0 1 45.312 0"})]))}}),ZI=JI,QI=D({name:"IceCreamSquare",__name:"ice-cream-square",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 640h256a32 32 0 0 0 32-32V160a32 32 0 0 0-32-32H352a32 32 0 0 0-32 32v448a32 32 0 0 0 32 32zm192 64v160a96 96 0 0 1-192 0V704h-64a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96h320a96 96 0 0 1 96 96v448a96 96 0 0 1-96 96zm-64 0h-64v160a32 32 0 1 0 64 0z"})]))}}),eL=QI,tL=D({name:"IceCream",__name:"ice-cream",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.64 448a208 208 0 0 1 193.536-191.552 224 224 0 0 1 445.248 15.488A208.13 208.13 0 0 1 894.784 448H896L548.8 983.68a32 32 0 0 1-53.248.704L128 448zm64.256 0h286.208a144 144 0 0 0-286.208 0m351.36 0h286.272a144 144 0 0 0-286.272 0m-294.848 64 271.808 396.608L778.24 512zM511.68 352.64a207.87 207.87 0 0 1 189.184-96.192 160 160 0 0 0-314.752 5.632c52.608 12.992 97.28 46.08 125.568 90.56"})]))}}),nL=tL,aL=D({name:"IceDrink",__name:"ice-drink",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 448v128h239.68l16.064-128zm-64 0H256.256l16.064 128H448zm64-255.36V384h247.744A256.13 256.13 0 0 0 512 192.64m-64 8.064A256.45 256.45 0 0 0 264.256 384H448zm64-72.064A320.13 320.13 0 0 1 825.472 384H896a32 32 0 1 1 0 64h-64v1.92l-56.96 454.016A64 64 0 0 1 711.552 960H312.448a64 64 0 0 1-63.488-56.064L192 449.92V448h-64a32 32 0 0 1 0-64h70.528A320.38 320.38 0 0 1 448 135.04V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H544a32 32 0 0 0-32 32zM743.68 640H280.32l32.128 256h399.104z"})]))}}),oL=aL,lL=D({name:"IceTea",__name:"ice-tea",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M197.696 259.648a320.128 320.128 0 0 1 628.608 0A96 96 0 0 1 896 352v64a96 96 0 0 1-71.616 92.864l-49.408 395.072A64 64 0 0 1 711.488 960H312.512a64 64 0 0 1-63.488-56.064l-49.408-395.072A96 96 0 0 1 128 416v-64a96 96 0 0 1 69.696-92.352M264.064 256h495.872a256.128 256.128 0 0 0-495.872 0m495.424 256H264.512l48 384h398.976zM224 448h576a32 32 0 0 0 32-32v-64a32 32 0 0 0-32-32H224a32 32 0 0 0-32 32v64a32 32 0 0 0 32 32m160 192h64v64h-64zm192 64h64v64h-64zm-128 64h64v64h-64zm64-192h64v64h-64z"})]))}}),rL=lL,sL=D({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Ds=sL,iL=D({name:"Iphone",__name:"iphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 768v96.064a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64V768zm0-64h576V160a64 64 0 0 0-64-64H288a64 64 0 0 0-64 64zm32 288a96 96 0 0 1-96-96V128a96 96 0 0 1 96-96h512a96 96 0 0 1 96 96v768a96 96 0 0 1-96 96zm304-144a48 48 0 1 1-96 0 48 48 0 0 1 96 0"})]))}}),uL=iL,cL=D({name:"Key",__name:"key",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 456.064V96a32 32 0 0 1 32-32.064L672 64a32 32 0 0 1 0 64H512v128h160a32 32 0 0 1 0 64H512v128a256 256 0 1 1-64 8.064M512 896a192 192 0 1 0 0-384 192 192 0 0 0 0 384"})]))}}),dL=cL,fL=D({name:"KnifeFork",__name:"knife-fork",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 410.56V96a32 32 0 0 1 64 0v314.56A96 96 0 0 0 384 320V96a32 32 0 0 1 64 0v224a160 160 0 0 1-128 156.8V928a32 32 0 1 1-64 0V476.8A160 160 0 0 1 128 320V96a32 32 0 0 1 64 0v224a96 96 0 0 0 64 90.56m384-250.24V544h126.72c-3.328-78.72-12.928-147.968-28.608-207.744-14.336-54.528-46.848-113.344-98.112-175.872zM640 608v320a32 32 0 1 1-64 0V64h64c85.312 89.472 138.688 174.848 160 256s32 177.152 32 288z"})]))}}),pL=fL,hL=D({name:"Lightning",__name:"lightning",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 671.36v64.128A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 736 734.016v-64.768a192 192 0 0 0 3.328-377.92l-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 91.968 70.464 167.36 160.256 175.232z"}),E("path",{fill:"currentColor",d:"M416 736a32 32 0 0 1-27.776-47.872l128-224a32 32 0 1 1 55.552 31.744L471.168 672H608a32 32 0 0 1 27.776 47.872l-128 224a32 32 0 1 1-55.68-31.744L552.96 736z"})]))}}),vL=hL,mL=D({name:"Link",__name:"link",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),gL=mL,yL=D({name:"List",__name:"list",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 192h160v736H160V192h160v64h384zM288 512h448v-64H288zm0 256h448v-64H288zm96-576V96h256v96z"})]))}}),bL=yL,wL=D({name:"Loading",__name:"loading",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),io=wL,CL=D({name:"LocationFilled",__name:"location-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 928c23.936 0 117.504-68.352 192.064-153.152C803.456 661.888 864 535.808 864 416c0-189.632-155.84-320-352-320S160 226.368 160 416c0 120.32 60.544 246.4 159.936 359.232C394.432 859.84 488 928 512 928m0-435.2a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 140.8a204.8 204.8 0 1 1 0-409.6 204.8 204.8 0 0 1 0 409.6"})]))}}),_L=CL,SL=D({name:"LocationInformation",__name:"location-information",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 896h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),xL=SL,kL=D({name:"Location",__name:"location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 512a96 96 0 1 0 0-192 96 96 0 0 0 0 192m0 64a160 160 0 1 1 0-320 160 160 0 0 1 0 320"})]))}}),EL=kL,TL=D({name:"Lock",__name:"lock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m192-160v-64a192 192 0 1 0-384 0v64zM512 64a256 256 0 0 1 256 256v128H256V320A256 256 0 0 1 512 64"})]))}}),ML=TL,OL=D({name:"Lollipop",__name:"lollipop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M513.28 448a64 64 0 1 1 76.544 49.728A96 96 0 0 0 768 448h64a160 160 0 0 1-320 0zm-126.976-29.696a256 256 0 1 0 43.52-180.48A256 256 0 0 1 832 448h-64a192 192 0 0 0-381.696-29.696m105.664 249.472L285.696 874.048a96 96 0 0 1-135.68-135.744l206.208-206.272a320 320 0 1 1 135.744 135.744m-54.464-36.032a322 322 0 0 1-45.248-45.248L195.2 783.552a32 32 0 1 0 45.248 45.248l197.056-197.12z"})]))}}),$L=OL,AL=D({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),RL=AL,NL=D({name:"Magnet",__name:"magnet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 320V192H704v320a192 192 0 1 1-384 0V192H192v128h128v64H192v128a320 320 0 0 0 640 0V384H704v-64zM640 512V128h256v384a384 384 0 1 1-768 0V128h256v384a128 128 0 1 0 256 0"})]))}}),PL=NL,IL=D({name:"Male",__name:"male",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M399.5 849.5a225 225 0 1 0 0-450 225 225 0 0 0 0 450m0 56.25a281.25 281.25 0 1 1 0-562.5 281.25 281.25 0 0 1 0 562.5m253.125-787.5h225q28.125 0 28.125 28.125T877.625 174.5h-225q-28.125 0-28.125-28.125t28.125-28.125"}),E("path",{fill:"currentColor",d:"M877.625 118.25q28.125 0 28.125 28.125v225q0 28.125-28.125 28.125T849.5 371.375v-225q0-28.125 28.125-28.125"}),E("path",{fill:"currentColor",d:"M604.813 458.9 565.1 419.131l292.613-292.668 39.825 39.824z"})]))}}),LL=IL,VL=D({name:"Management",__name:"management",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 128v288l96-96 96 96V128h128v768H320V128zm-448 0h128v768H128z"})]))}}),BL=VL,zL=D({name:"MapLocation",__name:"map-location",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M800 416a288 288 0 1 0-576 0c0 118.144 94.528 272.128 288 456.576C705.472 688.128 800 534.144 800 416M512 960C277.312 746.688 160 565.312 160 416a352 352 0 0 1 704 0c0 149.312-117.312 330.688-352 544"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256m345.6 192L960 960H672v-64H352v64H64l102.4-256zm-68.928 0H235.328l-76.8 192h706.944z"})]))}}),DL=zL,HL=D({name:"Medal",__name:"medal",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M576 128H448v200a286.7 286.7 0 0 1 64-8c19.52 0 40.832 2.688 64 8zm64 0v219.648c24.448 9.088 50.56 20.416 78.4 33.92L757.44 128zm-256 0H266.624l39.04 253.568c27.84-13.504 53.888-24.832 78.336-33.92zM229.312 64h565.376a32 32 0 0 1 31.616 36.864L768 480c-113.792-64-199.104-96-256-96s-142.208 32-256 96l-58.304-379.136A32 32 0 0 1 229.312 64"})]))}}),FL=HL,KL=D({name:"Memo",__name:"memo",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 320h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"}),E("path",{fill:"currentColor",d:"M887.01 72.99C881.01 67 873.34 64 864 64H160c-9.35 0-17.02 3-23.01 8.99C131 78.99 128 86.66 128 96v832c0 9.35 2.99 17.02 8.99 23.01S150.66 960 160 960h704c9.35 0 17.02-2.99 23.01-8.99S896 937.34 896 928V96c0-9.35-3-17.02-8.99-23.01M192 896V128h96v768zm640 0H352V128h480z"}),E("path",{fill:"currentColor",d:"M480 512h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32m0 192h192c21.33 0 32-10.67 32-32s-10.67-32-32-32H480c-21.33 0-32 10.67-32 32s10.67 32 32 32"})]))}}),WL=KL,jL=D({name:"Menu",__name:"menu",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),qL=jL,UL=D({name:"MessageBox",__name:"message-box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 384h448v64H288zm96-128h256v64H384zM131.456 512H384v128h256V512h252.544L721.856 192H302.144zM896 576H704v128H320V576H128v256h768zM275.776 128h472.448a32 32 0 0 1 28.608 17.664l179.84 359.552A32 32 0 0 1 960 519.552V864a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V519.552a32 32 0 0 1 3.392-14.336l179.776-359.552A32 32 0 0 1 275.776 128"})]))}}),YL=UL,GL=D({name:"Message",__name:"message",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 224v512a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V224zm0-64h768a64 64 0 0 1 64 64v512a128 128 0 0 1-128 128H192A128 128 0 0 1 64 736V224a64 64 0 0 1 64-64"}),E("path",{fill:"currentColor",d:"M904 224 656.512 506.88a192 192 0 0 1-289.024 0L120 224zm-698.944 0 210.56 240.704a128 128 0 0 0 192.704 0L818.944 224z"})]))}}),XL=GL,JL=D({name:"Mic",__name:"mic",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 704h160a64 64 0 0 0 64-64v-32h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-96h-96a32 32 0 0 1 0-64h96v-32a64 64 0 0 0-64-64H384a64 64 0 0 0-64 64v32h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v96h96a32 32 0 0 1 0 64h-96v32a64 64 0 0 0 64 64zm64 64v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768h-96a128 128 0 0 1-128-128V192A128 128 0 0 1 384 64h256a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128z"})]))}}),ZL=JL,QL=D({name:"Microphone",__name:"microphone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a128 128 0 0 0-128 128v256a128 128 0 1 0 256 0V256a128 128 0 0 0-128-128m0-64a192 192 0 0 1 192 192v256a192 192 0 1 1-384 0V256A192 192 0 0 1 512 64m-32 832v-64a288 288 0 0 1-288-288v-32a32 32 0 0 1 64 0v32a224 224 0 0 0 224 224h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64z"})]))}}),eV=QL,tV=D({name:"MilkTea",__name:"milk-tea",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M416 128V96a96 96 0 0 1 96-96h128a32 32 0 1 1 0 64H512a32 32 0 0 0-32 32v32h320a96 96 0 0 1 11.712 191.296l-39.68 581.056A64 64 0 0 1 708.224 960H315.776a64 64 0 0 1-63.872-59.648l-39.616-581.056A96 96 0 0 1 224 128zM276.48 320l39.296 576h392.448l4.8-70.784a224.064 224.064 0 0 1 30.016-439.808L747.52 320zM224 256h576a32 32 0 1 0 0-64H224a32 32 0 0 0 0 64m493.44 503.872 21.12-309.12a160 160 0 0 0-21.12 309.12"})]))}}),nV=tV,aV=D({name:"Minus",__name:"minus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Ry=aV,oV=D({name:"Money",__name:"money",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 640v192h640V384H768v-64h150.976c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H233.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096c-2.688-5.184-4.224-10.368-4.224-24.576V640z"}),E("path",{fill:"currentColor",d:"M768 192H128v448h640zm64-22.976v493.952c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 682.432 64 677.248 64 663.04V169.024c0-14.272 1.472-19.456 4.288-24.64a29.06 29.06 0 0 1 12.096-12.16C85.568 129.536 90.752 128 104.96 128h685.952c14.272 0 19.456 1.472 24.64 4.288a29.06 29.06 0 0 1 12.16 12.096c2.752 5.184 4.224 10.368 4.224 24.64z"}),E("path",{fill:"currentColor",d:"M448 576a160 160 0 1 1 0-320 160 160 0 0 1 0 320m0-64a96 96 0 1 0 0-192 96 96 0 0 0 0 192"})]))}}),lV=oV,rV=D({name:"Monitor",__name:"monitor",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 768v128h192a32 32 0 1 1 0 64H288a32 32 0 1 1 0-64h192V768H192A128 128 0 0 1 64 640V256a128 128 0 0 1 128-128h640a128 128 0 0 1 128 128v384a128 128 0 0 1-128 128zM192 192a64 64 0 0 0-64 64v384a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V256a64 64 0 0 0-64-64z"})]))}}),sV=rV,iV=D({name:"MoonNight",__name:"moon-night",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 512a448 448 0 0 1 215.872-383.296A384 384 0 0 0 213.76 640h188.8A448.3 448.3 0 0 1 384 512M171.136 704a448 448 0 0 1 636.992-575.296A384 384 0 0 0 499.328 704h-328.32z"}),E("path",{fill:"currentColor",d:"M32 640h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m128 128h384a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m160 127.68 224 .256a32 32 0 0 1 32 32V928a32 32 0 0 1-32 32l-224-.384a32 32 0 0 1-32-32v-.064a32 32 0 0 1 32-32z"})]))}}),uV=iV,cV=D({name:"Moon",__name:"moon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 391 391 0 0 0-17.408 16.384m181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),dV=cV,fV=D({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),_2=fV,pV=D({name:"More",__name:"more",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Ny=pV,hV=D({name:"MostlyCloudy",__name:"mostly-cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M737.216 357.952 704 349.824l-11.776-32a192.064 192.064 0 0 0-367.424 23.04l-8.96 39.04-39.04 8.96A192.064 192.064 0 0 0 320 768h368a207.81 207.81 0 0 0 207.808-208 208.32 208.32 0 0 0-158.592-202.048m15.168-62.208A272.32 272.32 0 0 1 959.744 560a271.81 271.81 0 0 1-271.552 272H320a256 256 0 0 1-57.536-505.536 256.128 256.128 0 0 1 489.92-30.72"})]))}}),vV=hV,mV=D({name:"Mouse",__name:"mouse",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M438.144 256c-68.352 0-92.736 4.672-117.76 18.112q-30.144 16.128-46.272 46.272C260.672 345.408 256 369.792 256 438.144v275.712c0 68.352 4.672 92.736 18.112 117.76q16.128 30.144 46.272 46.272C345.408 891.328 369.792 896 438.144 896h147.712c68.352 0 92.736-4.672 117.76-18.112q30.144-16.128 46.272-46.272C763.328 806.592 768 782.208 768 713.856V438.144c0-68.352-4.672-92.736-18.112-117.76a110.46 110.46 0 0 0-46.272-46.272C678.592 260.672 654.208 256 585.856 256zm0-64h147.712c85.568 0 116.608 8.96 147.904 25.6 31.36 16.768 55.872 41.344 72.576 72.64C823.104 321.536 832 352.576 832 438.08v275.84c0 85.504-8.96 116.544-25.6 147.84a174.46 174.46 0 0 1-72.64 72.576C702.464 951.104 671.424 960 585.92 960H438.08c-85.504 0-116.544-8.96-147.84-25.6a174.46 174.46 0 0 1-72.64-72.704c-16.768-31.296-25.664-62.336-25.664-147.84v-275.84c0-85.504 8.96-116.544 25.6-147.84a174.46 174.46 0 0 1 72.768-72.576c31.232-16.704 62.272-25.6 147.776-25.6z"}),E("path",{fill:"currentColor",d:"M512 320q32 0 32 32v128q0 32-32 32t-32-32V352q0-32 32-32m32-96a32 32 0 0 1-64 0v-64a32 32 0 0 0-32-32h-96a32 32 0 0 1 0-64h96a96 96 0 0 1 96 96z"})]))}}),gV=mV,yV=D({name:"Mug",__name:"mug",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M736 800V160H160v640a64 64 0 0 0 64 64h448a64 64 0 0 0 64-64m64-544h63.552a96 96 0 0 1 96 96v224a96 96 0 0 1-96 96H800v128a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V128a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 64v288h63.552a32 32 0 0 0 32-32V352a32 32 0 0 0-32-32z"})]))}}),bV=yV,wV=D({name:"MuteNotification",__name:"mute-notification",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m241.216 832 63.616-64H768V448c0-42.368-10.24-82.304-28.48-117.504l46.912-47.232C815.36 331.392 832 387.84 832 448v320h96a32 32 0 1 1 0 64zm-90.24 0H96a32 32 0 1 1 0-64h96V448a320.13 320.13 0 0 1 256-313.6V128a64 64 0 1 1 128 0v6.4a319.55 319.55 0 0 1 171.648 97.088l-45.184 45.44A256 256 0 0 0 256 448v278.336L151.04 832zM448 896h128a64 64 0 0 1-128 0"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),CV=wV,_V=D({name:"Mute",__name:"mute",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m412.16 592.128-45.44 45.44A191.23 191.23 0 0 1 320 512V256a192 192 0 1 1 384 0v44.352l-64 64V256a128 128 0 1 0-256 0v256c0 30.336 10.56 58.24 28.16 80.128m51.968 38.592A128 128 0 0 0 640 512v-57.152l64-64V512a192 192 0 0 1-287.68 166.528zM314.88 779.968l46.144-46.08A223 223 0 0 0 480 768h64a224 224 0 0 0 224-224v-32a32 32 0 1 1 64 0v32a288 288 0 0 1-288 288v64h64a32 32 0 1 1 0 64H416a32 32 0 1 1 0-64h64v-64c-61.44 0-118.4-19.2-165.12-52.032M266.752 737.6A286.98 286.98 0 0 1 192 544v-32a32 32 0 0 1 64 0v32c0 56.832 21.184 108.8 56.064 148.288z"}),E("path",{fill:"currentColor",d:"M150.72 859.072a32 32 0 0 1-45.44-45.056l704-708.544a32 32 0 0 1 45.44 45.056z"})]))}}),SV=_V,xV=D({name:"NoSmoking",__name:"no-smoking",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M440.256 576H256v128h56.256l-64 64H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32h280.256zm143.488 128H704V583.744L775.744 512H928a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H519.744zM768 576v128h128V576zm-29.696-207.552 45.248 45.248-497.856 497.856-45.248-45.248zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),kV=xV,EV=D({name:"Notebook",__name:"notebook",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M672 128h64v768h-64zM96 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32m0 192h128q32 0 32 32t-32 32H96q-32 0-32-32t32-32"})]))}}),TV=EV,MV=D({name:"Notification",__name:"notification",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128v64H256a64 64 0 0 0-64 64v512a64 64 0 0 0 64 64h512a64 64 0 0 0 64-64V512h64v256a128 128 0 0 1-128 128H256a128 128 0 0 1-128-128V256a128 128 0 0 1 128-128z"}),E("path",{fill:"currentColor",d:"M768 384a128 128 0 1 0 0-256 128 128 0 0 0 0 256m0 64a192 192 0 1 1 0-384 192 192 0 0 1 0 384"})]))}}),OV=MV,$V=D({name:"Odometer",__name:"odometer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M192 512a320 320 0 1 1 640 0 32 32 0 1 1-64 0 256 256 0 1 0-512 0 32 32 0 0 1-64 0"}),E("path",{fill:"currentColor",d:"M570.432 627.84A96 96 0 1 1 509.568 608l60.992-187.776A32 32 0 1 1 631.424 440l-60.992 187.776zM502.08 734.464a32 32 0 1 0 19.84-60.928 32 32 0 0 0-19.84 60.928"})]))}}),AV=$V,RV=D({name:"OfficeBuilding",__name:"office-building",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v704h384V128zm-32-64h448a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M256 256h256v64H256zm0 192h256v64H256zm0 192h256v64H256zm384-128h128v64H640zm0 128h128v64H640zM64 832h896v64H64z"}),E("path",{fill:"currentColor",d:"M640 384v448h192V384zm-32-64h256a32 32 0 0 1 32 32v512a32 32 0 0 1-32 32H608a32 32 0 0 1-32-32V352a32 32 0 0 1 32-32"})]))}}),NV=RV,PV=D({name:"Open",__name:"open",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M694.044 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),IV=PV,LV=D({name:"Operation",__name:"operation",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),VV=LV,BV=D({name:"Opportunity",__name:"opportunity",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 960v-64h192.064v64zm448-544a350.66 350.66 0 0 1-128.32 271.424C665.344 719.04 640 763.776 640 813.504V832H320v-14.336c0-48-19.392-95.36-57.216-124.992a351.55 351.55 0 0 1-128.448-344.256c25.344-136.448 133.888-248.128 269.76-276.48A352.384 352.384 0 0 1 832 416m-544 32c0-132.288 75.904-224 192-224v-64c-154.432 0-256 122.752-256 288z"})]))}}),zV=BV,DV=D({name:"Orange",__name:"orange",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 894.72a382.34 382.34 0 0 0 215.936-89.472L577.024 622.272c-10.24 6.016-21.248 10.688-33.024 13.696v258.688zm261.248-134.784A382.34 382.34 0 0 0 894.656 544H635.968c-3.008 11.776-7.68 22.848-13.696 33.024zM894.656 480a382.34 382.34 0 0 0-89.408-215.936L622.272 446.976c6.016 10.24 10.688 21.248 13.696 33.024zm-134.72-261.248A382.34 382.34 0 0 0 544 129.344v258.688c11.776 3.008 22.848 7.68 33.024 13.696zM480 129.344a382.34 382.34 0 0 0-215.936 89.408l182.912 182.976c10.24-6.016 21.248-10.688 33.024-13.696zm-261.248 134.72A382.34 382.34 0 0 0 129.344 480h258.688c3.008-11.776 7.68-22.848 13.696-33.024zM129.344 544a382.34 382.34 0 0 0 89.408 215.936l182.976-182.912A127.2 127.2 0 0 1 388.032 544zm134.72 261.248A382.34 382.34 0 0 0 480 894.656V635.968a127.2 127.2 0 0 1-33.024-13.696zM512 960a448 448 0 1 1 0-896 448 448 0 0 1 0 896m0-384a64 64 0 1 0 0-128 64 64 0 0 0 0 128"})]))}}),HV=DV,FV=D({name:"Paperclip",__name:"paperclip",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M602.496 240.448A192 192 0 1 1 874.048 512l-316.8 316.8A256 256 0 0 1 195.2 466.752L602.496 59.456l45.248 45.248L240.448 512A192 192 0 0 0 512 783.552l316.8-316.8a128 128 0 1 0-181.056-181.056L353.6 579.904a32 32 0 1 0 45.248 45.248l294.144-294.144 45.312 45.248L444.096 670.4a96 96 0 1 1-135.744-135.744z"})]))}}),KV=FV,WV=D({name:"PartlyCloudy",__name:"partly-cloudy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M598.4 895.872H328.192a256 256 0 0 1-34.496-510.528A352 352 0 1 1 598.4 895.872m-271.36-64h272.256a288 288 0 1 0-248.512-417.664L335.04 445.44l-34.816 3.584a192 192 0 0 0 26.88 382.848z"}),E("path",{fill:"currentColor",d:"M139.84 501.888a256 256 0 1 1 417.856-277.12c-17.728 2.176-38.208 8.448-61.504 18.816A192 192 0 1 0 189.12 460.48a6004 6004 0 0 0-49.28 41.408"})]))}}),jV=WV,qV=D({name:"Pear",__name:"pear",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M542.336 258.816a443 443 0 0 0-9.024 25.088 32 32 0 1 1-60.8-20.032l1.088-3.328a162.69 162.69 0 0 0-122.048 131.392l-17.088 102.72-20.736 15.36C256.192 552.704 224 610.88 224 672c0 120.576 126.4 224 288 224s288-103.424 288-224c0-61.12-32.192-119.296-89.728-161.92l-20.736-15.424-17.088-102.72a162.69 162.69 0 0 0-130.112-133.12m-40.128-66.56c7.936-15.552 16.576-30.08 25.92-43.776 23.296-33.92 49.408-59.776 78.528-77.12a32 32 0 1 1 32.704 55.04c-20.544 12.224-40.064 31.552-58.432 58.304a317 317 0 0 0-9.792 15.104 226.69 226.69 0 0 1 164.48 181.568l12.8 77.248C819.456 511.36 864 587.392 864 672c0 159.04-157.568 288-352 288S160 831.04 160 672c0-84.608 44.608-160.64 115.584-213.376l12.8-77.248a226.624 226.624 0 0 1 213.76-189.184z"})]))}}),UV=qV,YV=D({name:"PhoneFilled",__name:"phone-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M199.232 125.568 90.624 379.008a32 32 0 0 0 6.784 35.2l512.384 512.384a32 32 0 0 0 35.2 6.784l253.44-108.608a32 32 0 0 0 10.048-52.032L769.6 633.92a32 32 0 0 0-36.928-5.952l-130.176 65.088-271.488-271.552 65.024-130.176a32 32 0 0 0-5.952-36.928L251.2 115.52a32 32 0 0 0-51.968 10.048"})]))}}),GV=YV,XV=D({name:"Phone",__name:"phone",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M79.36 432.256 591.744 944.64a32 32 0 0 0 35.2 6.784l253.44-108.544a32 32 0 0 0 9.984-52.032l-153.856-153.92a32 32 0 0 0-36.928-6.016l-69.888 34.944L358.08 394.24l35.008-69.888a32 32 0 0 0-5.952-36.928L233.152 133.568a32 32 0 0 0-52.032 10.048L72.512 397.056a32 32 0 0 0 6.784 35.2zm60.48-29.952 81.536-190.08L325.568 316.48l-24.64 49.216-20.608 41.216 32.576 32.64 271.552 271.552 32.64 32.64 41.216-20.672 49.28-24.576 104.192 104.128-190.08 81.472zM512 320v-64a256 256 0 0 1 256 256h-64a192 192 0 0 0-192-192m0-192V64a448 448 0 0 1 448 448h-64a384 384 0 0 0-384-384"})]))}}),JV=XV,ZV=D({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Py=ZV,QV=D({name:"PictureRounded",__name:"picture-rounded",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 128a384 384 0 1 0 0 768 384 384 0 0 0 0-768m0-64a448 448 0 1 1 0 896 448 448 0 0 1 0-896"}),E("path",{fill:"currentColor",d:"M640 288q64 0 64 64t-64 64-64-64 64-64M214.656 790.656l-45.312-45.312 185.664-185.6a96 96 0 0 1 123.712-10.24l138.24 98.688a32 32 0 0 0 39.872-2.176L906.688 422.4l42.624 47.744L699.52 693.696a96 96 0 0 1-119.808 6.592l-138.24-98.752a32 32 0 0 0-41.152 3.456l-185.664 185.6z"})]))}}),eB=QV,tB=D({name:"Picture",__name:"picture",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 288q64 0 64 64t-64 64-64-64 64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472 122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888 49.92 39.936-215.808 269.824-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072-.64-.512a32 32 0 0 0-44.8 5.952z"})]))}}),nB=tB,aB=D({name:"PieChart",__name:"pie-chart",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 68.48v64.832A384.128 384.128 0 0 0 512 896a384.13 384.13 0 0 0 378.688-320h64.768A448.128 448.128 0 0 1 64 512 448.13 448.13 0 0 1 448 68.48"}),E("path",{fill:"currentColor",d:"M576 97.28V448h350.72A384.064 384.064 0 0 0 576 97.28M512 64V33.152A448 448 0 0 1 990.848 512H512z"})]))}}),oB=aB,lB=D({name:"Place",__name:"place",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512"}),E("path",{fill:"currentColor",d:"M512 512a32 32 0 0 1 32 32v256a32 32 0 1 1-64 0V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M384 649.088v64.96C269.76 732.352 192 771.904 192 800c0 37.696 139.904 96 320 96s320-58.304 320-96c0-28.16-77.76-67.648-192-85.952v-64.96C789.12 671.04 896 730.368 896 800c0 88.32-171.904 160-384 160s-384-71.68-384-160c0-69.696 106.88-128.96 256-150.912"})]))}}),rB=lB,sB=D({name:"Platform",__name:"platform",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M448 832v-64h128v64h192v64H256v-64zM128 704V128h768v576z"})]))}}),iB=sB,uB=D({name:"Plus",__name:"plus",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),kh=uB,cB=D({name:"Pointer",__name:"pointer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M511.552 128c-35.584 0-64.384 28.8-64.384 64.448v516.48L274.048 570.88a94.27 94.27 0 0 0-112.896-3.456 44.416 44.416 0 0 0-8.96 62.208L332.8 870.4A64 64 0 0 0 384 896h512V575.232a64 64 0 0 0-45.632-61.312l-205.952-61.76A96 96 0 0 1 576 360.192V192.448C576 156.8 547.2 128 511.552 128M359.04 556.8l24.128 19.2V192.448a128.448 128.448 0 1 1 256.832 0v167.744a32 32 0 0 0 22.784 30.656l206.016 61.76A128 128 0 0 1 960 575.232V896a64 64 0 0 1-64 64H384a128 128 0 0 1-102.4-51.2L101.056 668.032A108.416 108.416 0 0 1 128 512.512a158.27 158.27 0 0 1 185.984 8.32z"})]))}}),dB=cB,fB=D({name:"Position",__name:"position",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m249.6 417.088 319.744 43.072 39.168 310.272L845.12 178.88zm-129.024 47.168a32 32 0 0 1-7.68-61.44l777.792-311.04a32 32 0 0 1 41.6 41.6l-310.336 775.68a32 32 0 0 1-61.44-7.808L512 516.992z"})]))}}),pB=fB,hB=D({name:"Postcard",__name:"postcard",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 224a32 32 0 0 0-32 32v512a32 32 0 0 0 32 32h704a32 32 0 0 0 32-32V256a32 32 0 0 0-32-32zm0-64h704a96 96 0 0 1 96 96v512a96 96 0 0 1-96 96H160a96 96 0 0 1-96-96V256a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M704 320a64 64 0 1 1 0 128 64 64 0 0 1 0-128M288 448h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32m0 128h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),vB=hB,mB=D({name:"Pouring",__name:"pouring",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m739.328 291.328-35.2-6.592-12.8-33.408a192.064 192.064 0 0 0-365.952 23.232l-9.92 40.896-41.472 7.04a176.32 176.32 0 0 0-146.24 173.568c0 97.28 78.72 175.936 175.808 175.936h400a192 192 0 0 0 35.776-380.672M959.552 480a256 256 0 0 1-256 256h-400A239.81 239.81 0 0 1 63.744 496.192a240.32 240.32 0 0 1 199.488-236.8 256.128 256.128 0 0 1 487.872-30.976A256.064 256.064 0 0 1 959.552 480M224 800a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32m192 0a32 32 0 0 1 32 32v96a32 32 0 1 1-64 0v-96a32 32 0 0 1 32-32"})]))}}),gB=mB,yB=D({name:"Present",__name:"present",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V640H192v-64h288V320H192v576zm64 0h288V320H544v256h288v64H544zM128 256h768v672a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32z"}),E("path",{fill:"currentColor",d:"M96 256h832q32 0 32 32t-32 32H96q-32 0-32-32t32-32"}),E("path",{fill:"currentColor",d:"M416 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M608 256a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),bB=yB,wB=D({name:"PriceTag",__name:"price-tag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 318.336V896h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),E("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),CB=wB,_B=D({name:"Printer",__name:"printer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 768H105.024c-14.272 0-19.456-1.472-24.64-4.288a29.06 29.06 0 0 1-12.16-12.096C65.536 746.432 64 741.248 64 727.04V379.072c0-42.816 4.48-58.304 12.8-73.984 8.384-15.616 20.672-27.904 36.288-36.288 15.68-8.32 31.168-12.8 73.984-12.8H256V64h512v192h68.928c42.816 0 58.304 4.48 73.984 12.8 15.616 8.384 27.904 20.672 36.288 36.288 8.32 15.68 12.8 31.168 12.8 73.984v347.904c0 14.272-1.472 19.456-4.288 24.64a29.06 29.06 0 0 1-12.096 12.16c-5.184 2.752-10.368 4.224-24.64 4.224H768v192H256zm64-192v320h384V576zm-64 128V512h512v192h128V379.072c0-29.376-1.408-36.48-5.248-43.776a23.3 23.3 0 0 0-10.048-10.048c-7.232-3.84-14.4-5.248-43.776-5.248H187.072c-29.376 0-36.48 1.408-43.776 5.248a23.3 23.3 0 0 0-10.048 10.048c-3.84 7.232-5.248 14.4-5.248 43.776V704zm64-448h384V128H320zm-64 128h64v64h-64zm128 0h64v64h-64z"})]))}}),SB=_B,xB=D({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),kB=xB,EB=D({name:"QuartzWatch",__name:"quartz-watch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M422.02 602.01v-.03c-6.68-5.99-14.35-8.83-23.01-8.51q-13.005.48-22.5 10.02c-6.33 6.36-9.5 13.7-9.5 22.02s3 15.82 8.99 22.5c8.68 8.68 19.02 11.35 31.01 8s19.49-10.85 22.5-22.5.51-22.15-7.49-31.49zM384 512c0-9.35-3-17.02-8.99-23.01-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01m6.53-82.49c11.65 3.01 22.15.51 31.49-7.49h.04c5.99-6.68 8.83-14.34 8.51-23.01s-3.66-16.16-10.02-22.5c-6.36-6.33-13.7-9.5-22.02-9.5s-15.82 3-22.5 8.99c-8.68 8.69-11.35 19.02-8 31.01q5.025 17.985 22.5 22.5m242.94 0q17.505-4.545 22.02-22.02c3.01-11.65.51-22.15-7.49-31.49h.01c-6.68-5.99-14.18-8.99-22.5-8.99s-15.66 3.16-22.02 9.5q-9.54 9.51-10.02 22.5c-.32 8.66 2.52 16.33 8.51 23.01 9.32 8.02 19.82 10.52 31.49 7.49M512 640c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m183.01-151.01c-6-5.99-13.66-8.99-23.01-8.99s-17.02 3-23.01 8.99c-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.66 8.99 23.01 8.99s17.02-3 23.01-8.99c5.99-6 8.99-13.67 8.99-23.01 0-9.35-3-17.02-8.99-23.01"}),E("path",{fill:"currentColor",d:"M832 512c-2-90.67-33.17-166.17-93.5-226.5-20.43-20.42-42.6-37.49-66.5-51.23V64H352v170.26c-23.9 13.74-46.07 30.81-66.5 51.24-60.33 60.33-91.49 135.83-93.5 226.5 2 90.67 33.17 166.17 93.5 226.5 20.43 20.43 42.6 37.5 66.5 51.24V960h320V789.74c23.9-13.74 46.07-30.81 66.5-51.24 60.33-60.34 91.49-135.83 93.5-226.5M416 128h192v78.69c-29.85-9.03-61.85-13.93-96-14.69-34.15.75-66.15 5.65-96 14.68zm192 768H416v-78.68c29.85 9.03 61.85 13.93 96 14.68 34.15-.75 66.15-5.65 96-14.68zm-96-128c-72.66-2.01-132.99-27.01-180.99-75.01S258.01 584.66 256 512c2.01-72.66 27.01-132.99 75.01-180.99S439.34 258.01 512 256c72.66 2.01 132.99 27.01 180.99 75.01S765.99 439.34 768 512c-2.01 72.66-27.01 132.99-75.01 180.99S584.66 765.99 512 768"}),E("path",{fill:"currentColor",d:"M512 320c-9.35 0-17.02 3-23.01 8.99-5.99 6-8.99 13.66-8.99 23.01s3 17.02 8.99 23.01c6 5.99 13.67 8.99 23.01 8.99 9.35 0 17.02-3 23.01-8.99 5.99-6 8.99-13.66 8.99-23.01s-3-17.02-8.99-23.01c-6-5.99-13.66-8.99-23.01-8.99m112.99 273.5c-8.66-.32-16.33 2.52-23.01 8.51-7.98 9.32-10.48 19.82-7.49 31.49s10.49 19.17 22.5 22.5 22.35.66 31.01-8v.04c5.99-6.68 8.99-14.18 8.99-22.5s-3.16-15.66-9.5-22.02-13.84-9.7-22.5-10.02"})]))}}),TB=EB,MB=D({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592q0-64.416-42.24-101.376c-28.16-25.344-65.472-37.312-111.232-37.312m-12.672 406.208a54.27 54.27 0 0 0-38.72 14.784 49.4 49.4 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.85 54.85 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.97 51.97 0 0 0-15.488-38.016 55.94 55.94 0 0 0-39.424-14.784"})]))}}),Iy=MB,OB=D({name:"Rank",__name:"rank",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m186.496 544 41.408 41.344a32 32 0 1 1-45.248 45.312l-96-96a32 32 0 0 1 0-45.312l96-96a32 32 0 1 1 45.248 45.312L186.496 480h290.816V186.432l-41.472 41.472a32 32 0 1 1-45.248-45.184l96-96.128a32 32 0 0 1 45.312 0l96 96.064a32 32 0 0 1-45.248 45.184l-41.344-41.28V480H832l-41.344-41.344a32 32 0 0 1 45.248-45.312l96 96a32 32 0 0 1 0 45.312l-96 96a32 32 0 0 1-45.248-45.312L832 544H541.312v293.44l41.344-41.28a32 32 0 1 1 45.248 45.248l-96 96a32 32 0 0 1-45.312 0l-96-96a32 32 0 1 1 45.312-45.248l41.408 41.408V544z"})]))}}),$B=OB,AB=D({name:"ReadingLamp",__name:"reading-lamp",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 896h320q32 0 32 32t-32 32H352q-32 0-32-32t32-32m-44.672-768-99.52 448h608.384l-99.52-448zm-25.6-64h460.608a32 32 0 0 1 31.232 25.088l113.792 512A32 32 0 0 1 856.128 640H167.872a32 32 0 0 1-31.232-38.912l113.792-512A32 32 0 0 1 281.664 64z"}),E("path",{fill:"currentColor",d:"M672 576q32 0 32 32v128q0 32-32 32t-32-32V608q0-32 32-32m-192-.064h64V960h-64z"})]))}}),RB=AB,NB=D({name:"Reading",__name:"reading",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 863.36 384-54.848v-638.72L525.568 222.72a96 96 0 0 1-27.136 0L128 169.792v638.72zM137.024 106.432l370.432 52.928a32 32 0 0 0 9.088 0l370.432-52.928A64 64 0 0 1 960 169.792v638.72a64 64 0 0 1-54.976 63.36l-388.48 55.488a32 32 0 0 1-9.088 0l-388.48-55.488A64 64 0 0 1 64 808.512v-638.72a64 64 0 0 1 73.024-63.36"}),E("path",{fill:"currentColor",d:"M480 192h64v704h-64z"})]))}}),PB=NB,IB=D({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),Ly=IB,LB=D({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),Vy=LB,VB=D({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),BB=VB,zB=D({name:"Refrigerator",__name:"refrigerator",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 448h512V160a32 32 0 0 0-32-32H288a32 32 0 0 0-32 32zm0 64v352a32 32 0 0 0 32 32h448a32 32 0 0 0 32-32V512zm32-448h448a96 96 0 0 1 96 96v704a96 96 0 0 1-96 96H288a96 96 0 0 1-96-96V160a96 96 0 0 1 96-96m32 224h64v96h-64zm0 288h64v96h-64z"})]))}}),DB=zB,HB=D({name:"RemoveFilled",__name:"remove-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896M288 512a38.4 38.4 0 0 0 38.4 38.4h371.2a38.4 38.4 0 0 0 0-76.8H326.4A38.4 38.4 0 0 0 288 512"})]))}}),FB=HB,KB=D({name:"Remove",__name:"remove",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),WB=KB,jB=D({name:"Right",__name:"right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),qB=jB,UB=D({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),By=UB,YB=D({name:"School",__name:"school",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 128v704h576V128zm-32-64h640a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M64 832h896v64H64zm256-640h128v96H320z"}),E("path",{fill:"currentColor",d:"M384 832h256v-64a128 128 0 1 0-256 0zm128-256a192 192 0 0 1 192 192v128H320V768a192 192 0 0 1 192-192M320 384h128v96H320zm256-192h128v96H576zm0 192h128v96H576z"})]))}}),GB=YB,XB=D({name:"Scissor",__name:"scissor",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512.064 578.368-106.88 152.768a160 160 0 1 1-23.36-78.208L472.96 522.56 196.864 128.256a32 32 0 1 1 52.48-36.736l393.024 561.344a160 160 0 1 1-23.36 78.208l-106.88-152.704zm54.4-189.248 208.384-297.6a32 32 0 0 1 52.48 36.736l-221.76 316.672-39.04-55.808zm-376.32 425.856a96 96 0 1 0 110.144-157.248 96 96 0 0 0-110.08 157.248zm643.84 0a96 96 0 1 0-110.08-157.248 96 96 0 0 0 110.08 157.248"})]))}}),JB=XB,ZB=D({name:"Search",__name:"search",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),zy=ZB,QB=D({name:"Select",__name:"select",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M77.248 415.04a64 64 0 0 1 90.496 0l226.304 226.304L846.528 188.8a64 64 0 1 1 90.56 90.496l-543.04 543.04-316.8-316.8a64 64 0 0 1 0-90.496"})]))}}),ez=QB,tz=D({name:"Sell",__name:"sell",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 483.84L768 698.496V928a32 32 0 1 1-64 0V698.496l-73.344 73.344a32 32 0 1 1-45.248-45.248l128-128a32 32 0 0 1 45.248 0l128 128a32 32 0 1 1-45.248 45.248"})]))}}),nz=tz,az=D({name:"SemiSelect",__name:"semi-select",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 448h768q64 0 64 64t-64 64H128q-64 0-64-64t64-64"})]))}}),oz=az,lz=D({name:"Service",__name:"service",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M864 409.6a192 192 0 0 1-37.888 349.44A256.064 256.064 0 0 1 576 960h-96a32 32 0 1 1 0-64h96a192.06 192.06 0 0 0 181.12-128H736a32 32 0 0 1-32-32V416a32 32 0 0 1 32-32h32c10.368 0 20.544.832 30.528 2.432a288 288 0 0 0-573.056 0A193 193 0 0 1 256 384h32a32 32 0 0 1 32 32v320a32 32 0 0 1-32 32h-32a192 192 0 0 1-96-358.4 352 352 0 0 1 704 0M256 448a128 128 0 1 0 0 256zm640 128a128 128 0 0 0-128-128v256a128 128 0 0 0 128-128"})]))}}),rz=lz,sz=D({name:"SetUp",__name:"set-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 160a64 64 0 0 0-64 64v576a64 64 0 0 0 64 64h576a64 64 0 0 0 64-64V224a64 64 0 0 0-64-64zm0-64h576a128 128 0 0 1 128 128v576a128 128 0 0 1-128 128H224A128 128 0 0 1 96 800V224A128 128 0 0 1 224 96"}),E("path",{fill:"currentColor",d:"M384 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M480 320h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32m160 416a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"}),E("path",{fill:"currentColor",d:"M288 640h256q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),iz=sz,uz=D({name:"Setting",__name:"setting",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357 357 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a352 352 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357 357 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294 294 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293 293 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294 294 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288 288 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293 293 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a288 288 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"})]))}}),cz=uz,dz=D({name:"Share",__name:"share",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m679.872 348.8-301.76 188.608a127.8 127.8 0 0 1 5.12 52.16l279.936 104.96a128 128 0 1 1-22.464 59.904l-279.872-104.96a128 128 0 1 1-16.64-166.272l301.696-188.608a128 128 0 1 1 33.92 54.272z"})]))}}),fz=dz,pz=D({name:"Ship",__name:"ship",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 386.88V448h405.568a32 32 0 0 1 30.72 40.768l-76.48 267.968A192 192 0 0 1 687.168 896H336.832a192 192 0 0 1-184.64-139.264L75.648 488.768A32 32 0 0 1 106.368 448H448V117.888a32 32 0 0 1 47.36-28.096l13.888 7.616L512 96v2.88l231.68 126.4a32 32 0 0 1-2.048 57.216zm0-70.272 144.768-65.792L512 171.84zM512 512H148.864l18.24 64H856.96l18.24-64zM185.408 640l28.352 99.2A128 128 0 0 0 336.832 832h350.336a128 128 0 0 0 123.072-92.8l28.352-99.2z"})]))}}),hz=pz,vz=D({name:"Shop",__name:"shop",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 704h64v192H256V704h64v64h384zm188.544-152.192C894.528 559.616 896 567.616 896 576a96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0 96 96 0 1 1-192 0c0-8.384 1.408-16.384 3.392-24.192L192 128h640z"})]))}}),mz=vz,gz=D({name:"ShoppingBag",__name:"shopping-bag",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 320v96a32 32 0 0 1-32 32h-32V320H384v128h-32a32 32 0 0 1-32-32v-96H192v576h640V320zm-384-64a192 192 0 1 1 384 0h160a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32zm64 0h256a128 128 0 1 0-256 0"}),E("path",{fill:"currentColor",d:"M192 704h640v64H192z"})]))}}),yz=gz,bz=D({name:"ShoppingCartFull",__name:"shopping-cart-full",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"}),E("path",{fill:"currentColor",d:"M699.648 256 608 145.984 516.352 256zm-140.8-151.04a64 64 0 0 1 98.304 0L836.352 320H379.648z"})]))}}),wz=bz,Cz=D({name:"ShoppingCart",__name:"shopping-cart",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M432 928a48 48 0 1 1 0-96 48 48 0 0 1 0 96m320 0a48 48 0 1 1 0-96 48 48 0 0 1 0 96M96 128a32 32 0 0 1 0-64h160a32 32 0 0 1 31.36 25.728L320.64 256H928a32 32 0 0 1 31.296 38.72l-96 448A32 32 0 0 1 832 768H384a32 32 0 0 1-31.36-25.728L229.76 128zm314.24 576h395.904l82.304-384H333.44z"})]))}}),_z=Cz,Sz=D({name:"ShoppingTrolley",__name:"shopping-trolley",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M368 833c-13.3 0-24.5 4.5-33.5 13.5S321 866.7 321 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S415 893.3 415 880s-4.5-24.5-13.5-33.5S381.3 833 368 833m439-193c7.4 0 13.8-2.2 19.5-6.5S836 623.3 838 616l112-448c2-10-.2-19.2-6.5-27.5S929 128 919 128H96c-9.3 0-17 3-23 9s-9 13.7-9 23 3 17 9 23 13.7 9 23 9h96v576h672c9.3 0 17-3 23-9s9-13.7 9-23-3-17-9-23-13.7-9-23-9H256v-64zM256 192h622l-96 384H256zm432 641c-13.3 0-24.5 4.5-33.5 13.5S641 866.7 641 880s4.5 24.5 13.5 33.5 20.2 13.8 33.5 14.5c13.3-.7 24.5-5.5 33.5-14.5S735 893.3 735 880s-4.5-24.5-13.5-33.5S701.3 833 688 833"})]))}}),xz=Sz,kz=D({name:"Smoking",__name:"smoking",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 576v128h640V576zm-32-64h704a32 32 0 0 1 32 32v192a32 32 0 0 1-32 32H224a32 32 0 0 1-32-32V544a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 576h64v128h-64zM256 64h64v320h-64zM128 192h64v192h-64zM64 512h64v256H64z"})]))}}),Ez=kz,Tz=D({name:"Soccer",__name:"soccer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M418.496 871.04 152.256 604.8c-16.512 94.016-2.368 178.624 42.944 224 44.928 44.928 129.344 58.752 223.296 42.24m72.32-18.176a573.06 573.06 0 0 0 224.832-137.216 573.1 573.1 0 0 0 137.216-224.832L533.888 171.84a578.56 578.56 0 0 0-227.52 138.496A567.7 567.7 0 0 0 170.432 532.48zM871.04 418.496c16.512-93.952 2.688-178.368-42.24-223.296-44.544-44.544-128.704-58.048-222.592-41.536zM149.952 874.048c-112.96-112.96-88.832-408.96 111.168-608.96C461.056 65.152 760.96 36.928 874.048 149.952c113.024 113.024 86.784 411.008-113.152 610.944s-497.92 226.112-610.944 113.152m452.544-497.792 22.656-22.656a32 32 0 0 1 45.248 45.248l-22.656 22.656 45.248 45.248A32 32 0 1 1 647.744 512l-45.248-45.248L557.248 512l45.248 45.248a32 32 0 1 1-45.248 45.248L512 557.248l-45.248 45.248L512 647.744a32 32 0 1 1-45.248 45.248l-45.248-45.248-22.656 22.656a32 32 0 1 1-45.248-45.248l22.656-22.656-45.248-45.248A32 32 0 1 1 376.256 512l45.248 45.248L466.752 512l-45.248-45.248a32 32 0 1 1 45.248-45.248L512 466.752l45.248-45.248L512 376.256a32 32 0 0 1 45.248-45.248z"})]))}}),Mz=Tz,Oz=D({name:"SoldOut",__name:"sold-out",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 288h131.072a32 32 0 0 1 31.808 28.8L886.4 512h-64.384l-16-160H704v96a32 32 0 1 1-64 0v-96H384v96a32 32 0 0 1-64 0v-96H217.92l-51.2 512H512v64H131.328a32 32 0 0 1-31.808-35.2l57.6-576a32 32 0 0 1 31.808-28.8H320v-22.336C320 154.688 405.504 64 512 64s192 90.688 192 201.664v22.4zm-64 0v-22.336C640 189.248 582.272 128 512 128s-128 61.248-128 137.664v22.4h256zm201.408 476.16a32 32 0 1 1 45.248 45.184l-128 128a32 32 0 0 1-45.248 0l-128-128a32 32 0 1 1 45.248-45.248L704 837.504V608a32 32 0 1 1 64 0v229.504l73.408-73.408z"})]))}}),$z=Oz,Az=D({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Dy=Az,Rz=D({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Hy=Rz,Nz=D({name:"Sort",__name:"sort",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),Pz=Nz,Iz=D({name:"Stamp",__name:"stamp",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M624 475.968V640h144a128 128 0 0 1 128 128H128a128 128 0 0 1 128-128h144V475.968a192 192 0 1 1 224 0M128 896v-64h768v64z"})]))}}),Lz=Iz,Vz=D({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),xi=Vz,Bz=D({name:"Star",__name:"star",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),Fy=Bz,zz=D({name:"Stopwatch",__name:"stopwatch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),E("path",{fill:"currentColor",d:"M672 234.88c-39.168 174.464-80 298.624-122.688 372.48-64 110.848-202.624 30.848-138.624-80C453.376 453.44 540.48 355.968 672 234.816z"})]))}}),Dz=zz,Hz=D({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Eh=Hz,Fz=D({name:"Sugar",__name:"sugar",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m801.728 349.184 4.48 4.48a128 128 0 0 1 0 180.992L534.656 806.144a128 128 0 0 1-181.056 0l-4.48-4.48-19.392 109.696a64 64 0 0 1-108.288 34.176L78.464 802.56a64 64 0 0 1 34.176-108.288l109.76-19.328-4.544-4.544a128 128 0 0 1 0-181.056l271.488-271.488a128 128 0 0 1 181.056 0l4.48 4.48 19.392-109.504a64 64 0 0 1 108.352-34.048l142.592 143.04a64 64 0 0 1-34.24 108.16zm-548.8 198.72h447.168v2.24l60.8-60.8a63.8 63.8 0 0 0 18.752-44.416h-426.88l-89.664 89.728a64 64 0 0 0-10.24 13.248zm0 64q4.128 7.104 10.176 13.248l135.744 135.744a64 64 0 0 0 90.496 0L638.4 611.904zm490.048-230.976L625.152 263.104a64 64 0 0 0-90.496 0L416.768 380.928zM123.712 757.312l142.976 142.976 24.32-137.6a25.6 25.6 0 0 0-29.696-29.632zm633.6-633.344-24.32 137.472a25.6 25.6 0 0 0 29.632 29.632l137.28-24.064-142.656-143.04z"})]))}}),Kz=Fz,Wz=D({name:"SuitcaseLine",__name:"suitcase-line",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M922.5 229.5c-24.32-24.34-54.49-36.84-90.5-37.5H704v-64c-.68-17.98-7.02-32.98-19.01-44.99S658.01 64.66 640 64H384c-17.98.68-32.98 7.02-44.99 19.01S320.66 110 320 128v64H192c-35.99.68-66.16 13.18-90.5 37.5S64.66 283.99 64 320v448c.68 35.99 13.18 66.16 37.5 90.5s54.49 36.84 90.5 37.5h640c35.99-.68 66.16-13.18 90.5-37.5s36.84-54.49 37.5-90.5V320c-.68-35.99-13.18-66.16-37.5-90.5M384 128h256v64H384zM256 832h-64c-17.98-.68-32.98-7.02-44.99-19.01S128.66 786.01 128 768V448h128zm448 0H320V448h384zm192-64c-.68 17.98-7.02 32.98-19.01 44.99S850.01 831.34 832 832h-64V448h128zm0-384H128v-64c.69-17.98 7.02-32.98 19.01-44.99S173.99 256.66 192 256h640c17.98.69 32.98 7.02 44.99 19.01S895.34 301.99 896 320z"})]))}}),jz=Wz,qz=D({name:"Suitcase",__name:"suitcase",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 384h768v-64a64 64 0 0 0-64-64H192a64 64 0 0 0-64 64zm0 64v320a64 64 0 0 0 64 64h640a64 64 0 0 0 64-64V448zm64-256h640a128 128 0 0 1 128 128v448a128 128 0 0 1-128 128H192A128 128 0 0 1 64 768V320a128 128 0 0 1 128-128"}),E("path",{fill:"currentColor",d:"M384 128v64h256v-64zm0-64h256a64 64 0 0 1 64 64v64a64 64 0 0 1-64 64H384a64 64 0 0 1-64-64v-64a64 64 0 0 1 64-64"})]))}}),Uz=qz,Yz=D({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0m543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),Gz=Yz,Xz=D({name:"Sunrise",__name:"sunrise",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M32 768h960a32 32 0 1 1 0 64H32a32 32 0 1 1 0-64m129.408-96a352 352 0 0 1 701.184 0h-64.32a288 288 0 0 0-572.544 0zM512 128a32 32 0 0 1 32 32v96a32 32 0 0 1-64 0v-96a32 32 0 0 1 32-32m407.296 168.704a32 32 0 0 1 0 45.248l-67.84 67.84a32 32 0 1 1-45.248-45.248l67.84-67.84a32 32 0 0 1 45.248 0m-814.592 0a32 32 0 0 1 45.248 0l67.84 67.84a32 32 0 1 1-45.248 45.248l-67.84-67.84a32 32 0 0 1 0-45.248"})]))}}),Jz=Xz,Zz=D({name:"Sunset",__name:"sunset",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M82.56 640a448 448 0 1 1 858.88 0h-67.2a384 384 0 1 0-724.288 0zM32 704h960q32 0 32 32t-32 32H32q-32 0-32-32t32-32m256 128h448q32 0 32 32t-32 32H288q-32 0-32-32t32-32"})]))}}),Qz=Zz,eD=D({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128"}),E("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),tD=eD,nD=D({name:"SwitchFilled",__name:"switch-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M247.47 358.4v.04c.07 19.17 7.72 37.53 21.27 51.09s31.92 21.2 51.09 21.27c39.86 0 72.41-32.6 72.41-72.4s-32.6-72.36-72.41-72.36-72.36 32.55-72.36 72.36"}),E("path",{fill:"currentColor",d:"M492.38 128H324.7c-52.16 0-102.19 20.73-139.08 57.61a196.66 196.66 0 0 0-57.61 139.08V698.7c-.01 25.84 5.08 51.42 14.96 75.29s24.36 45.56 42.63 63.83 39.95 32.76 63.82 42.65a196.7 196.7 0 0 0 75.28 14.98h167.68c3.03 0 5.46-2.43 5.46-5.42V133.42c.6-2.99-1.83-5.42-5.46-5.42m-56.11 705.88H324.7c-17.76.13-35.36-3.33-51.75-10.18s-31.22-16.94-43.61-29.67c-25.3-25.35-39.81-59.1-39.81-95.32V324.69c-.13-17.75 3.33-35.35 10.17-51.74a131.7 131.7 0 0 1 29.64-43.62c25.39-25.3 59.14-39.81 95.36-39.81h111.57zm402.12-647.67a196.66 196.66 0 0 0-139.08-57.61H580.48c-3.03 0-4.82 2.43-4.82 4.82v757.16c-.6 2.99 1.79 5.42 5.42 5.42h118.23a196.7 196.7 0 0 0 139.08-57.61A196.66 196.66 0 0 0 896 699.31V325.29a196.7 196.7 0 0 0-57.61-139.08m-111.3 441.92c-42.83 0-77.82-34.99-77.82-77.82s34.98-77.82 77.82-77.82c42.83 0 77.82 34.99 77.82 77.82s-34.99 77.82-77.82 77.82"})]))}}),aD=nD,oD=D({name:"Switch",__name:"switch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M118.656 438.656a32 32 0 0 1 0-45.248L416 96l4.48-3.776A32 32 0 0 1 461.248 96l3.712 4.48a32.064 32.064 0 0 1-3.712 40.832L218.56 384H928a32 32 0 1 1 0 64H141.248a32 32 0 0 1-22.592-9.344M64 608a32 32 0 0 1 32-32h786.752a32 32 0 0 1 22.656 54.592L608 928l-4.48 3.776a32.064 32.064 0 0 1-40.832-49.024L805.632 640H96a32 32 0 0 1-32-32"})]))}}),lD=oD,rD=D({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),sD=rD,iD=D({name:"Ticket",__name:"ticket",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 832H64V640a128 128 0 1 0 0-256V192h576v160h64V192h256v192a128 128 0 1 0 0 256v192H704V672h-64zm0-416v192h64V416z"})]))}}),uD=iD,cD=D({name:"Tickets",__name:"tickets",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M192 128v768h640V128zm-32-64h704a32 32 0 0 1 32 32v832a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h192v64H320zm0 384h384v64H320z"})]))}}),dD=cD,fD=D({name:"Timer",__name:"timer",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),E("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),pD=fD,hD=D({name:"ToiletPaper",__name:"toilet-paper",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M595.2 128H320a192 192 0 0 0-192 192v576h384V352c0-90.496 32.448-171.2 83.2-224M736 64c123.712 0 224 128.96 224 288S859.712 640 736 640H576v320H64V320A256 256 0 0 1 320 64zM576 352v224h160c84.352 0 160-97.28 160-224s-75.648-224-160-224-160 97.28-160 224"}),E("path",{fill:"currentColor",d:"M736 448c-35.328 0-64-43.008-64-96s28.672-96 64-96 64 43.008 64 96-28.672 96-64 96"})]))}}),vD=hD,mD=D({name:"Tools",__name:"tools",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),gD=mD,yD=D({name:"TopLeft",__name:"top-left",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M256 256h416a32 32 0 1 0 0-64H224a32 32 0 0 0-32 32v448a32 32 0 0 0 64 0z"}),E("path",{fill:"currentColor",d:"M246.656 201.344a32 32 0 0 0-45.312 45.312l544 544a32 32 0 0 0 45.312-45.312z"})]))}}),bD=yD,wD=D({name:"TopRight",__name:"top-right",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M768 256H353.6a32 32 0 1 1 0-64H800a32 32 0 0 1 32 32v448a32 32 0 0 1-64 0z"}),E("path",{fill:"currentColor",d:"M777.344 201.344a32 32 0 0 1 45.312 45.312l-544 544a32 32 0 0 1-45.312-45.312z"})]))}}),CD=wD,_D=D({name:"Top",__name:"top",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M572.235 205.282v600.365a30.118 30.118 0 1 1-60.235 0V205.282L292.382 438.633a28.913 28.913 0 0 1-42.646 0 33.43 33.43 0 0 1 0-45.236l271.058-288.045a28.913 28.913 0 0 1 42.647 0L834.5 393.397a33.43 33.43 0 0 1 0 45.176 28.913 28.913 0 0 1-42.647 0l-219.618-233.23z"})]))}}),SD=_D,xD=D({name:"TrendCharts",__name:"trend-charts",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128 896V128h768v768zm291.712-327.296 128 102.4 180.16-201.792-47.744-42.624-139.84 156.608-128-102.4-180.16 201.792 47.744 42.624zM816 352a48 48 0 1 0-96 0 48 48 0 0 0 96 0"})]))}}),kD=xD,ED=D({name:"TrophyBase",__name:"trophy-base",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M918.4 201.6c-6.4-6.4-12.8-9.6-22.4-9.6H768V96c0-9.6-3.2-16-9.6-22.4S745.6 64 736 64H288c-9.6 0-16 3.2-22.4 9.6S256 86.4 256 96v96H128c-9.6 0-16 3.2-22.4 9.6S96 217.6 96 224c3.2 108.8 25.6 185.6 64 224 34.4 34.4 77.56 55.65 127.65 61.99 10.91 20.44 24.78 39.25 41.95 56.41 40.86 40.86 91 65.47 150.4 71.9V768h-96c-9.6 0-16 3.2-22.4 9.6S352 790.4 352 800s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h256c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6h-96V637.26c59.4-7.71 109.54-30.01 150.4-70.86 17.2-17.2 31.51-36.06 42.81-56.55 48.93-6.51 90.02-27.7 126.79-61.85 38.4-38.4 60.8-112 64-224 0-6.4-3.2-16-9.6-22.4M256 438.4c-19.2-6.4-35.2-19.2-51.2-35.2-22.4-22.4-35.2-70.4-41.6-147.2H256zm390.4 80C608 553.6 566.4 576 512 576s-99.2-19.2-134.4-57.6S320 438.4 320 384V128h384v256q0 81.6-57.6 134.4m172.8-115.2c-16 16-32 25.6-51.2 35.2V256h92.8c-6.4 76.8-19.2 124.8-41.6 147.2M768 896H256c-9.6 0-16 3.2-22.4 9.6S224 918.4 224 928s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6h512c9.6 0 16-3.2 22.4-9.6s9.6-12.8 9.6-22.4-3.2-16-9.6-22.4-12.8-9.6-22.4-9.6"})]))}}),TD=ED,MD=D({name:"Trophy",__name:"trophy",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M480 896V702.08A256.26 256.26 0 0 1 264.064 512h-32.64a96 96 0 0 1-91.968-68.416L93.632 290.88a76.8 76.8 0 0 1 73.6-98.88H256V96a32 32 0 0 1 32-32h448a32 32 0 0 1 32 32v96h88.768a76.8 76.8 0 0 1 73.6 98.88L884.48 443.52A96 96 0 0 1 792.576 512h-32.64A256.26 256.26 0 0 1 544 702.08V896h128a32 32 0 1 1 0 64H352a32 32 0 1 1 0-64zm224-448V128H320v320a192 192 0 1 0 384 0m64 0h24.576a32 32 0 0 0 30.656-22.784l45.824-152.768A12.8 12.8 0 0 0 856.768 256H768zm-512 0V256h-88.768a12.8 12.8 0 0 0-12.288 16.448l45.824 152.768A32 32 0 0 0 231.424 448z"})]))}}),OD=MD,$D=D({name:"TurnOff",__name:"turn-off",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M329.956 257.138a254.862 254.862 0 0 0 0 509.724h364.088a254.862 254.862 0 0 0 0-509.724zm0-72.818h364.088a327.68 327.68 0 1 1 0 655.36H329.956a327.68 327.68 0 1 1 0-655.36"}),E("path",{fill:"currentColor",d:"M329.956 621.227a109.227 109.227 0 1 0 0-218.454 109.227 109.227 0 0 0 0 218.454m0 72.817a182.044 182.044 0 1 1 0-364.088 182.044 182.044 0 0 1 0 364.088"})]))}}),AD=$D,RD=D({name:"Umbrella",__name:"umbrella",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M320 768a32 32 0 1 1 64 0 64 64 0 0 0 128 0V512H64a448 448 0 1 1 896 0H576v256a128 128 0 1 1-256 0m570.688-320a384.128 384.128 0 0 0-757.376 0z"})]))}}),ND=RD,PD=D({name:"Unlock",__name:"unlock",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M224 448a32 32 0 0 0-32 32v384a32 32 0 0 0 32 32h576a32 32 0 0 0 32-32V480a32 32 0 0 0-32-32zm0-64h576a96 96 0 0 1 96 96v384a96 96 0 0 1-96 96H224a96 96 0 0 1-96-96V480a96 96 0 0 1 96-96"}),E("path",{fill:"currentColor",d:"M512 544a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V576a32 32 0 0 1 32-32m178.304-295.296A192.064 192.064 0 0 0 320 320v64h352l96 38.4V448H256V320a256 256 0 0 1 493.76-95.104z"})]))}}),ID=PD,LD=D({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),VD=LD,BD=D({name:"Upload",__name:"upload",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-578.304V704h-64V247.296L237.248 490.048 192 444.8 508.8 128l316.8 316.8-45.312 45.248z"})]))}}),zD=BD,DD=D({name:"UserFilled",__name:"user-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"})]))}}),HD=DD,FD=D({name:"User",__name:"user",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 512a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m320 320v-96a96 96 0 0 0-96-96H288a96 96 0 0 0-96 96v96a32 32 0 1 1-64 0v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 1 1-64 0"})]))}}),KD=FD,WD=D({name:"Van",__name:"van",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M128.896 736H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32v96h164.544a32 32 0 0 1 31.616 27.136l54.144 352A32 32 0 0 1 922.688 736h-91.52a144 144 0 1 1-286.272 0H415.104a144 144 0 1 1-286.272 0zm23.36-64a143.872 143.872 0 0 1 239.488 0H568.32c17.088-25.6 42.24-45.376 71.744-55.808V256H128v416zm655.488 0h77.632l-19.648-128H704v64.896A144 144 0 0 1 807.744 672m48.128-192-14.72-96H704v96zM688 832a80 80 0 1 0 0-160 80 80 0 0 0 0 160m-416 0a80 80 0 1 0 0-160 80 80 0 0 0 0 160"})]))}}),jD=WD,qD=D({name:"VideoCameraFilled",__name:"video-camera-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m768 576 192-64v320l-192-64v96a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V480a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zM192 768v64h384v-64zm192-480a160 160 0 0 1 320 0 160 160 0 0 1-320 0m64 0a96 96 0 1 0 192.064-.064A96 96 0 0 0 448 288m-320 32a128 128 0 1 1 256.064.064A128 128 0 0 1 128 320m64 0a64 64 0 1 0 128 0 64 64 0 0 0-128 0"})]))}}),UD=qD,YD=D({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),GD=YD,XD=D({name:"VideoPause",__name:"video-pause",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-96-544q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32m192 0q32 0 32 32v256q0 32-32 32t-32-32V384q0-32 32-32"})]))}}),JD=XD,ZD=D({name:"VideoPlay",__name:"video-play",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m-48-247.616L668.608 512 464 375.616zm10.624-342.656 249.472 166.336a48 48 0 0 1 0 79.872L474.624 718.272A48 48 0 0 1 400 678.336V345.6a48 48 0 0 1 74.624-39.936z"})]))}}),QD=ZD,eH=D({name:"View",__name:"view",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),Ky=eH,tH=D({name:"WalletFilled",__name:"wallet-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M688 512a112 112 0 1 0 0 224h208v160H128V352h768v160zm32 160h-32a48 48 0 0 1 0-96h32a48 48 0 0 1 0 96m-80-544 128 160H384z"})]))}}),nH=tH,aH=D({name:"Wallet",__name:"wallet",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M640 288h-64V128H128v704h384v32a32 32 0 0 0 32 32H96a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h512a32 32 0 0 1 32 32z"}),E("path",{fill:"currentColor",d:"M128 320v512h768V320zm-32-64h832a32 32 0 0 1 32 32v576a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M704 640a64 64 0 1 1 0-128 64 64 0 0 1 0 128"})]))}}),oH=aH,lH=D({name:"WarnTriangleFilled",__name:"warn-triangle-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M928.99 755.83 574.6 203.25c-12.89-20.16-36.76-32.58-62.6-32.58s-49.71 12.43-62.6 32.58L95.01 755.83c-12.91 20.12-12.9 44.91.01 65.03 12.92 20.12 36.78 32.51 62.59 32.49h708.78c25.82.01 49.68-12.37 62.59-32.49s12.92-44.91.01-65.03M554.67 768h-85.33v-85.33h85.33zm0-426.67v298.66h-85.33V341.32z"})]))}}),rH=lH,sH=D({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Hu=sH,iH=D({name:"Warning",__name:"warning",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"})]))}}),uH=iH,cH=D({name:"Watch",__name:"watch",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M512 768a256 256 0 1 0 0-512 256 256 0 0 0 0 512m0 64a320 320 0 1 1 0-640 320 320 0 0 1 0 640"}),E("path",{fill:"currentColor",d:"M480 352a32 32 0 0 1 32 32v160a32 32 0 0 1-64 0V384a32 32 0 0 1 32-32"}),E("path",{fill:"currentColor",d:"M480 512h128q32 0 32 32t-32 32H480q-32 0-32-32t32-32m128-256V128H416v128h-64V64h320v192zM416 768v128h192V768h64v192H352V768z"})]))}}),dH=cH,fH=D({name:"Watermelon",__name:"watermelon",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m683.072 600.32-43.648 162.816-61.824-16.512 53.248-198.528L576 493.248l-158.4 158.4-45.248-45.248 158.4-158.4-55.616-55.616-198.528 53.248-16.512-61.824 162.816-43.648L282.752 200A384 384 0 0 0 824 741.248zm231.552 141.056a448 448 0 1 1-632-632z"})]))}}),pH=fH,hH=D({name:"WindPower",__name:"wind-power",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"M160 64q32 0 32 32v832q0 32-32 32t-32-32V96q0-32 32-32m416 354.624 128-11.584V168.96l-128-11.52v261.12zm-64 5.824V151.552L320 134.08V160h-64V64l616.704 56.064A96 96 0 0 1 960 215.68v144.64a96 96 0 0 1-87.296 95.616L256 512V224h64v217.92zm256-23.232 98.88-8.96A32 32 0 0 0 896 360.32V215.68a32 32 0 0 0-29.12-31.872l-98.88-8.96z"})]))}}),vH=hH,mH=D({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),Th=mH,gH=D({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(_(),$("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[E("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),Wy=gH;const yH=Object.freeze(Object.defineProperty({__proto__:null,AddLocation:vA,Aim:gA,AlarmClock:bA,Apple:CA,ArrowDown:bo,ArrowDownBold:SA,ArrowLeft:jo,ArrowLeftBold:EA,ArrowRight:Jn,ArrowRightBold:OA,ArrowUp:Du,ArrowUpBold:RA,Avatar:IA,Back:xy,Baseball:BA,Basketball:DA,Bell:WA,BellFilled:FA,Bicycle:qA,Bottom:ZA,BottomLeft:YA,BottomRight:XA,Bowl:eR,Box:nR,Briefcase:oR,Brush:iR,BrushFilled:rR,Burger:cR,Calendar:ky,Camera:vR,CameraFilled:pR,CaretBottom:gR,CaretLeft:bR,CaretRight:Sh,CaretTop:Ey,Cellphone:SR,ChatDotRound:kR,ChatDotSquare:TR,ChatLineRound:OR,ChatLineSquare:AR,ChatRound:NR,ChatSquare:IR,Check:ni,Checked:BR,Cherry:DR,Chicken:FR,ChromeFilled:WR,CircleCheck:gf,CircleCheckFilled:Ty,CircleClose:wo,CircleCloseFilled:yf,CirclePlus:ZR,CirclePlusFilled:XR,Clock:xh,Close:Ba,CloseBold:tN,Cloudy:oN,Coffee:iN,CoffeeCup:rN,Coin:cN,ColdDrink:fN,Collection:mN,CollectionTag:hN,Comment:yN,Compass:wN,Connection:_N,Coordinate:xN,CopyDocument:EN,Cpu:MN,CreditCard:$N,Crop:RN,DArrowLeft:yl,DArrowRight:bl,DCaret:LN,DataAnalysis:BN,DataBoard:DN,DataLine:FN,Delete:My,DeleteFilled:WN,DeleteLocation:qN,Dessert:GN,Discount:JN,Dish:tP,DishDot:QN,Document:Oy,DocumentAdd:aP,DocumentChecked:lP,DocumentCopy:sP,DocumentDelete:uP,DocumentRemove:dP,Download:hP,Drizzling:mP,Edit:wP,EditPen:yP,Eleme:xP,ElemeFilled:_P,ElementPlus:EP,Expand:MP,Failed:$P,Female:RP,Files:PP,Film:LP,Filter:BP,Finished:DP,FirstAidKit:FP,Flag:WP,Fold:qP,Folder:oI,FolderAdd:YP,FolderChecked:XP,FolderDelete:ZP,FolderOpened:eI,FolderRemove:nI,Food:rI,Football:iI,ForkSpoon:cI,Fries:fI,FullScreen:$y,Goblet:CI,GobletFull:vI,GobletSquare:bI,GobletSquareFull:gI,GoldMedal:SI,Goods:TI,GoodsFilled:kI,Grape:OI,Grid:AI,Guide:NI,Handbag:II,Headset:VI,Help:HI,HelpFilled:zI,Hide:Ay,Histogram:WI,HomeFilled:qI,HotWater:YI,House:XI,IceCream:nL,IceCreamRound:ZI,IceCreamSquare:eL,IceDrink:oL,IceTea:rL,InfoFilled:Ds,Iphone:uL,Key:dL,KnifeFork:pL,Lightning:vL,Link:gL,List:bL,Loading:io,Location:EL,LocationFilled:_L,LocationInformation:xL,Lock:ML,Lollipop:$L,MagicStick:RL,Magnet:PL,Male:LL,Management:BL,MapLocation:DL,Medal:FL,Memo:WL,Menu:qL,Message:XL,MessageBox:YL,Mic:ZL,Microphone:eV,MilkTea:nV,Minus:Ry,Money:lV,Monitor:sV,Moon:dV,MoonNight:uV,More:Ny,MoreFilled:_2,MostlyCloudy:vV,Mouse:gV,Mug:bV,Mute:SV,MuteNotification:CV,NoSmoking:kV,Notebook:TV,Notification:OV,Odometer:AV,OfficeBuilding:NV,Open:IV,Operation:VV,Opportunity:zV,Orange:HV,Paperclip:KV,PartlyCloudy:jV,Pear:UV,Phone:JV,PhoneFilled:GV,Picture:nB,PictureFilled:Py,PictureRounded:eB,PieChart:oB,Place:rB,Platform:iB,Plus:kh,Pointer:dB,Position:pB,Postcard:vB,Pouring:gB,Present:bB,PriceTag:CB,Printer:SB,Promotion:kB,QuartzWatch:TB,QuestionFilled:Iy,Rank:$B,Reading:PB,ReadingLamp:RB,Refresh:BB,RefreshLeft:Ly,RefreshRight:Vy,Refrigerator:DB,Remove:WB,RemoveFilled:FB,Right:qB,ScaleToOriginal:By,School:GB,Scissor:JB,Search:zy,Select:ez,Sell:nz,SemiSelect:oz,Service:rz,SetUp:iz,Setting:cz,Share:fz,Ship:hz,Shop:mz,ShoppingBag:yz,ShoppingCart:_z,ShoppingCartFull:wz,ShoppingTrolley:xz,Smoking:Ez,Soccer:Mz,SoldOut:$z,Sort:Pz,SortDown:Dy,SortUp:Hy,Stamp:Lz,Star:Fy,StarFilled:xi,Stopwatch:Dz,SuccessFilled:Eh,Sugar:Kz,Suitcase:Uz,SuitcaseLine:jz,Sunny:Gz,Sunrise:Jz,Sunset:Qz,Switch:lD,SwitchButton:tD,SwitchFilled:aD,TakeawayBox:sD,Ticket:uD,Tickets:dD,Timer:pD,ToiletPaper:vD,Tools:gD,Top:SD,TopLeft:bD,TopRight:CD,TrendCharts:kD,Trophy:OD,TrophyBase:TD,TurnOff:AD,Umbrella:ND,Unlock:ID,Upload:zD,UploadFilled:VD,User:KD,UserFilled:HD,Van:jD,VideoCamera:GD,VideoCameraFilled:UD,VideoPause:JD,VideoPlay:QD,View:Ky,Wallet:oH,WalletFilled:nH,WarnTriangleFilled:rH,Warning:uH,WarningFilled:Hu,Watch:dH,Watermelon:pH,WindPower:vH,ZoomIn:Th,ZoomOut:Wy},Symbol.toStringTag,{value:"Module"})),Ft=J([String,Object,Function]),jy={Close:Ba},Mh={Close:Ba,SuccessFilled:Eh,InfoFilled:Ds,WarningFilled:Hu,CircleCloseFilled:yf},Xl={primary:Ds,success:Eh,warning:Hu,error:yf,info:Ds},bf={validating:io,success:gf,error:wo},bH=["light","dark"],wH=Ce({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:tu(Xl),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:bH,default:"light"}}),CH={close:e=>e instanceof MouseEvent},_H=Ce({size:{type:J([Number,String])},color:{type:String}});var SH=D({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:_H,setup(e){const t=e,n=ve("icon"),a=x(()=>{const{size:o,color:l}=t,r=cn(o);return!r&&!l?{}:{fontSize:r,"--color":l}});return(o,l)=>(_(),$("i",pt({class:i(n).b(),style:a.value},o.$attrs),[oe(o.$slots,"default")],16))}}),xH=SH;const ze=rt(xH);var kH=D({name:"ElAlert",__name:"alert",props:wH,emits:CH,setup(e,{emit:t}){const{Close:n}=Mh,a=e,o=t,l=yn(),r=ve("alert"),s=V(!0),u=x(()=>Xl[a.type]),c=x(()=>{var h;if(a.description)return!0;const f=(h=l.default)==null?void 0:h.call(l);return f?Ra(f).some(g=>!yy(g)):!1}),d=f=>{s.value=!1,o("close",f)};return(f,h)=>(_(),ie(qn,{name:i(r).b("fade"),persisted:""},{default:ae(()=>[dt(E("div",{class:R([i(r).b(),i(r).m(e.type),i(r).is("center",e.center),i(r).is(e.effect)]),role:"alert"},[e.showIcon&&(f.$slots.icon||u.value)?(_(),ie(i(ze),{key:0,class:R([i(r).e("icon"),i(r).is("big",c.value)])},{default:ae(()=>[oe(f.$slots,"icon",{},()=>[(_(),ie(ut(u.value)))])]),_:3},8,["class"])):re("v-if",!0),E("div",{class:R(i(r).e("content"))},[e.title||f.$slots.title?(_(),$("span",{key:0,class:R([i(r).e("title"),{"with-description":c.value}])},[oe(f.$slots,"title",{},()=>[_t(_e(e.title),1)])],2)):re("v-if",!0),c.value?(_(),$("p",{key:1,class:R(i(r).e("description"))},[oe(f.$slots,"default",{},()=>[_t(_e(e.description),1)])],2)):re("v-if",!0),e.closable?(_(),$(He,{key:2},[e.closeText?(_(),$("div",{key:0,class:R([i(r).e("close-btn"),i(r).is("customed")]),onClick:d},_e(e.closeText),3)):(_(),ie(i(ze),{key:1,class:R(i(r).e("close-btn")),onClick:d},{default:ae(()=>[Q(i(n))]),_:1},8,["class"]))],64)):re("v-if",!0)],2)],2),[[At,s.value]])]),_:3},8,["name"]))}}),EH=kH;const TH=rt(EH),qy=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Uy=Ce({role:{type:String,values:qy,default:"tooltip"}}),Oh=Symbol("popper"),Yy=Symbol("popperContent");var MH=D({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=ve("popper"),{arrowRef:a,arrowStyle:o}=Ne(Yy,void 0);return Lt(()=>{a.value=void 0}),t({arrowRef:a}),(l,r)=>(_(),$("span",{ref_key:"arrowRef",ref:a,class:R(i(n).e("arrow")),style:We(i(o)),"data-popper-arrow":""},null,6))}}),OH=MH;const Gy=Ce({virtualRef:{type:J(Object)},virtualTriggering:Boolean,onMouseenter:{type:J(Function)},onMouseleave:{type:J(Function)},onClick:{type:J(Function)},onKeydown:{type:J(Function)},onFocus:{type:J(Function)},onBlur:{type:J(Function)},onContextmenu:{type:J(Function)},id:String,open:Boolean}),i0="ElOnlyChild",Xy=D({name:i0,setup(e,{slots:t,attrs:n}){var o;const a=c$(((o=Ne(oy))==null?void 0:o.setForwardRef)??Yt);return()=>{var u;const l=(u=t.default)==null?void 0:u.call(t,n);if(!l)return null;const[r,s]=Jy(l);return r?(s>1&&ft(i0,"requires exact only one valid child."),dt(Ho(r,n),[[a]])):(ft(i0,"no valid child node found"),null)}}});function Jy(e){if(!e)return[null,0];const t=e,n=t.filter(a=>a.type!==wn).length;for(const a of t){if(Mt(a))switch(a.type){case wn:continue;case Xs:case"svg":return[Bm(a),n];case He:return Jy(a.children);default:return[a,n]}return[Bm(a),n]}return[null,0]}function Bm(e){const t=ve("only-child");return Q("span",{class:t.e("content")},[e])}var $H=D({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:Gy,setup(e,{expose:t}){const n=e,{role:a,triggerRef:o}=Ne(Oh,void 0);u$(o);const l=x(()=>s.value?n.id:void 0),r=x(()=>{if(a&&a.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=x(()=>{if(a&&a.value!=="tooltip")return a.value}),u=x(()=>s.value?`${n.open}`:void 0);let c;const d=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return mt(()=>{fe(()=>n.virtualRef,f=>{f&&(o.value=Mn(f))},{immediate:!0}),fe(o,(f,h)=>{c==null||c(),c=void 0,_a(h)&&d.forEach(g=>{const p=n[g];p&&h.removeEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),_a(f)&&(d.forEach(g=>{const p=n[g];p&&f.addEventListener(g.slice(2).toLowerCase(),p,["onFocus","onBlur"].includes(g))}),Lr(f)&&(c=fe([l,r,s,u],g=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{Cn(g[v])?f.removeAttribute(p):f.setAttribute(p,g[v])})},{immediate:!0}))),_a(h)&&Lr(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(g=>h.removeAttribute(g))},{immediate:!0})}),Lt(()=>{if(c==null||c(),c=void 0,o.value&&_a(o.value)){const f=o.value;d.forEach(h=>{const g=n[h];g&&f.removeEventListener(h.slice(2).toLowerCase(),g,["onFocus","onBlur"].includes(h))}),o.value=void 0}}),t({triggerRef:o}),(f,h)=>e.virtualTriggering?re("v-if",!0):(_(),ie(i(Xy),pt({key:0},f.$attrs,{"aria-controls":l.value,"aria-describedby":r.value,"aria-expanded":u.value,"aria-haspopup":s.value}),{default:ae(()=>[oe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}}),AH=$H;const Zy=Ce({arrowOffset:{type:Number,default:5}}),RH=["fixed","absolute"],NH=Ce({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:J(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Uo,default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},strategy:{type:String,values:RH,default:"absolute"}}),Qy=Ce({...NH,...Zy,id:String,style:{type:J([String,Array,Object])},className:{type:J([String,Array,Object])},effect:{type:J(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:J([String,Array,Object])},popperStyle:{type:J([String,Array,Object])},referenceEl:{type:J(Object)},triggerTargetEl:{type:J(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ia(["ariaLabel"]),loop:Boolean}),PH={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},IH=Ce({size:{type:String,values:vo},disabled:Boolean}),LH=Ce({...IH,model:Object,rules:{type:J(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:J([Object,Boolean]),default:!0}}),VH={validate:(e,t,n)=>(Ve(e)||Ue(e))&&Dt(t)&&Ue(n)},Xr=Symbol("formContextKey"),qo=Symbol("formItemContextKey"),En=(e,t={})=>{const n=V(void 0),a=t.prop?n:W8("size"),o=t.global?n:wy(),l=t.form?{size:void 0}:Ne(Xr,void 0),r=t.formItem?{size:void 0}:Ne(qo,void 0);return x(()=>a.value||i(e)||(r==null?void 0:r.size)||(l==null?void 0:l.size)||o.value||"")},dn=e=>{const t=W8("disabled"),n=Ne(Xr,void 0);return x(()=>t.value??i(e)??(n==null?void 0:n.disabled)??!1)},Kn=()=>({form:Ne(Xr,void 0),formItem:Ne(qo,void 0)}),za=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:a})=>{n||(n=V(!1)),a||(a=V(!1));const o=ht(),l=()=>{let c=o==null?void 0:o.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},r=V();let s;const u=x(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return mt(()=>{s=fe([Bt(e,"id"),n],([c,d])=>{const f=c??(d?void 0:Un().value);f!==r.value&&(t!=null&&t.removeInputId&&!l()&&(r.value&&t.removeInputId(r.value),!(a!=null&&a.value)&&!d&&f&&t.addInputId(f)),r.value=f)},{immediate:!0})}),Gs(()=>{s&&s(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:u,inputId:r}},BH=["","error","validating","success"],zH=Ce({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:J([String,Array])},required:{type:Boolean,default:void 0},rules:{type:J([Object,Array])},error:String,validateStatus:{type:String,values:BH},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:vo}}),zm=e=>[...new Set(e)],mi=e=>Ve(e)?e[0]:e,la=e=>!e&&e!==0?[]:Ve(e)?e:[e],DH="ElForm";function HH(){const e=V([]),t=x(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const r=e.value.indexOf(l);return r===-1&&t.value==="0"&&ft(DH,`unexpected width ${l}`),r}function a(l,r){if(l&&r){const s=n(r);e.value.splice(s,1,l)}else l&&e.value.push(l)}function o(l){const r=n(l);r>-1&&e.value.splice(r,1)}return{autoLabelWidth:t,registerLabelWidth:a,deregisterLabelWidth:o}}const cc=(e,t)=>{const n=In(t).map(a=>Ve(a)?a.join("."):a);return n.length>0?e.filter(a=>a.propString&&n.includes(a.propString)):e},Qr="ElForm";var FH=D({name:Qr,__name:"form",props:LH,emits:VH,setup(e,{expose:t,emit:n}){const a=e,o=n,l=V(),r=Nt([]),s=new Map,u=En(),c=ve("form"),d=x(()=>{const{labelPosition:T,inline:M}=a;return[c.b(),c.m(u.value||"default"),{[c.m(`label-${T}`)]:T,[c.m("inline")]:M}]}),f=T=>cc(r,[T])[0],h=T=>{r.includes(T)||r.push(T),T.propString&&(s.has(T.propString)?T.setInitialValue(s.get(T.propString)):s.set(T.propString,Ro(T.fieldValue)))},g=(T,M)=>{if(M){s.delete(M);return}const A=r.indexOf(T);A>-1&&(r.splice(A,1),T.propString&&s.set(T.propString,Ro(T.getInitialValue())))},p=T=>{if(!a.model){ft(Qr,"model is required for setInitialValues to work.");return}if(!T){ft(Qr,"initModel is required for setInitialValues to work.");return}for(const M of s.keys())s.set(M,Ro(Wl(T,M).value));r.forEach(M=>{M.prop&&M.setInitialValue(Wl(T,M.prop).value)})},v=(T=[])=>{if(!a.model){ft(Qr,"model is required for resetFields to work.");return}cc(r,T).forEach(O=>O.resetField());const M=new Set(r.map(O=>O.propString).filter(Boolean)),A=T.length>0?In(T).map(O=>Ve(O)?O.join("."):O):[...s.keys()];for(const O of A)!M.has(O)&&s.has(O)&&(Wl(a.model,O).value=Ro(s.get(O)))},m=(T=[])=>{cc(r,T).forEach(M=>M.clearValidate())},y=x(()=>{const T=!!a.model;return T||ft(Qr,"model is required for validate to work."),T}),b=T=>{if(r.length===0)return[];const M=cc(r,T);return M.length?M:(ft(Qr,"please pass correct props!"),[])},w=async T=>S(void 0,T),C=async(T=[])=>{if(!y.value)return!1;const M=b(T);if(M.length===0)return!0;let A={};for(const O of M)try{await O.validate(""),O.validateState==="error"&&!O.error&&O.resetField()}catch(I){A={...A,...I}}return Object.keys(A).length===0?!0:Promise.reject(A)},S=async(T=[],M)=>{var I;let A=!1;const O=!ct(M);try{return A=await C(T),A===!0&&await(M==null?void 0:M(A)),A}catch(L){if(L instanceof Error)throw L;const z=L;return a.scrollToError&&l.value&&((I=l.value.querySelector(`.${c.b()}-item.is-error`))==null||I.scrollIntoView(a.scrollIntoViewOptions)),!A&&await(M==null?void 0:M(!1,z)),O&&Promise.reject(z)}},k=T=>{var A;const M=f(T);M&&((A=M.$el)==null||A.scrollIntoView(a.scrollIntoViewOptions))};return fe(()=>a.rules,()=>{a.validateOnRuleChange&&w().catch(T=>ft(T))},{deep:!0,flush:"post"}),bt(Xr,Nt({...Bn(a),emit:o,resetFields:v,clearValidate:m,validateField:S,getField:f,addField:h,removeField:g,setInitialValues:p,...HH()})),t({validate:w,validateField:S,resetFields:v,clearValidate:m,scrollToField:k,getField:f,fields:r,setInitialValues:p}),(T,M)=>(_(),$("form",{ref_key:"formRef",ref:l,class:R(d.value)},[oe(T.$slots,"default")],2))}}),KH=FH;const Dm="ElLabelWrap";var WH=D({name:Dm,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ne(Xr,void 0),a=Ne(qo);a||on(Dm,"usage: ");const o=ve("form"),l=V(),r=V(0),s=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const f=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},u=(d="update")=>{Ie(()=>{t.default&&e.isAutoWidth&&(d==="update"?r.value=s():d==="remove"&&(n==null||n.deregisterLabelWidth(r.value)))})},c=()=>u("update");return mt(()=>{c()}),Lt(()=>{u("remove")}),ho(()=>c()),fe(r,(d,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,f))}),en(x(()=>{var d;return((d=l.value)==null?void 0:d.firstElementChild)??null}),c),()=>{var f,h;if(!t)return null;const{isAutoWidth:d}=e;if(d){const g=n==null?void 0:n.autoLabelWidth,p=a==null?void 0:a.hasLabel,v={};if(p&&g&&g!=="auto"){const m=Math.max(0,Number.parseInt(g,10)-r.value),y=(a.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";m&&(v[y]=`${m}px`)}return Q("div",{ref:l,class:[o.be("item","label-wrap")],style:v},[(f=t.default)==null?void 0:f.call(t)])}else return Q(He,{ref:l},[(h=t.default)==null?void 0:h.call(t)])}}});function br(){return br=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vc(e,t,n){return qH()?Vc=Reflect.construct.bind():Vc=function(o,l,r){var s=[null];s.push.apply(s,l);var u=Function.bind.apply(o,s),c=new u;return r&&lu(c,r.prototype),c},Vc.apply(null,arguments)}function UH(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function x2(e){var t=typeof Map=="function"?new Map:void 0;return x2=function(a){if(a===null||!UH(a))return a;if(typeof a!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(a))return t.get(a);t.set(a,o)}function o(){return Vc(a,arguments,S2(this).constructor)}return o.prototype=Object.create(a.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),lu(o,a)},x2(e)}var YH=/%[sdj%]/g,GH=function(){};function k2(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var a=n.field;t[a]=t[a]||[],t[a].push(n)}),t}function Na(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a=l)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return r}return e}function XH(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Hn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||XH(t)&&typeof e=="string"&&!e)}function JH(e,t,n){var a=[],o=0,l=e.length;function r(s){a.push.apply(a,s||[]),o++,o===l&&n(a)}e.forEach(function(s){t(s,r)})}function Hm(e,t,n){var a=0,o=e.length;function l(r){if(r&&r.length){n(r);return}var s=a;a=a+1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},ki={integer:function(t){return ki.number(t)&&parseInt(t,10)===t},float:function(t){return ki.number(t)&&!ki.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ki.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(jm.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(aF())},hex:function(t){return typeof t=="string"&&!!t.match(jm.hex)}},oF=function(t,n,a,o,l){if(t.required&&n===void 0){eb(t,n,a,o,l);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?ki[s](n)||o.push(Na(l.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&o.push(Na(l.messages.types[s],t.fullField,t.type))},lF=function(t,n,a,o,l){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,h=typeof n=="number",g=typeof n=="string",p=Array.isArray(n);if(h?f="number":g?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),g&&(d=n.replace(c,"_").length),r?d!==t.len&&o.push(Na(l.messages[f].len,t.fullField,t.len)):s&&!u&&dt.max?o.push(Na(l.messages[f].max,t.fullField,t.max)):s&&u&&(dt.max)&&o.push(Na(l.messages[f].range,t.fullField,t.min,t.max))},es="enum",rF=function(t,n,a,o,l){t[es]=Array.isArray(t[es])?t[es]:[],t[es].indexOf(n)===-1&&o.push(Na(l.messages[es],t.fullField,t[es].join(", ")))},sF=function(t,n,a,o,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Na(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||o.push(Na(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Ut={required:eb,whitespace:nF,type:oF,range:lF,enum:rF,pattern:sF},iF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l,"string"),Hn(n,"string")||(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l),Ut.pattern(t,n,o,r,l),t.whitespace===!0&&Ut.whitespace(t,n,o,r,l))}a(r)},uF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},cF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},dF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},fF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),Hn(n)||Ut.type(t,n,o,r,l)}a(r)},pF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},hF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},vF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return a();Ut.required(t,n,o,r,l,"array"),n!=null&&(Ut.type(t,n,o,r,l),Ut.range(t,n,o,r,l))}a(r)},mF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut.type(t,n,o,r,l)}a(r)},gF="enum",yF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l),n!==void 0&&Ut[gF](t,n,o,r,l)}a(r)},bF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"string")&&!t.required)return a();Ut.required(t,n,o,r,l),Hn(n,"string")||Ut.pattern(t,n,o,r,l)}a(r)},wF=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n,"date")&&!t.required)return a();if(Ut.required(t,n,o,r,l),!Hn(n,"date")){var u;n instanceof Date?u=n:u=new Date(n),Ut.type(t,u,o,r,l),u&&Ut.range(t,u.getTime(),o,r,l)}}a(r)},CF=function(t,n,a,o,l){var r=[],s=Array.isArray(n)?"array":typeof n;Ut.required(t,n,o,r,l,s),a(r)},u0=function(t,n,a,o,l){var r=t.type,s=[],u=t.required||!t.required&&o.hasOwnProperty(t.field);if(u){if(Hn(n,r)&&!t.required)return a();Ut.required(t,n,o,s,l,r),Hn(n,r)||Ut.type(t,n,o,s,l)}a(s)},_F=function(t,n,a,o,l){var r=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Hn(n)&&!t.required)return a();Ut.required(t,n,o,r,l)}a(r)},Hi={string:iF,method:uF,number:cF,boolean:dF,regexp:fF,integer:pF,float:hF,array:vF,object:mF,enum:yF,pattern:bF,date:wF,url:u0,hex:u0,email:u0,required:CF,any:_F};function E2(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var T2=E2(),Fu=function(){function e(n){this.rules=null,this._messages=T2,this.define(n)}var t=e.prototype;return t.define=function(a){var o=this;if(!a)throw new Error("Cannot configure a schema with no rules");if(typeof a!="object"||Array.isArray(a))throw new Error("Rules must be an object");this.rules={},Object.keys(a).forEach(function(l){var r=a[l];o.rules[l]=Array.isArray(r)?r:[r]})},t.messages=function(a){return a&&(this._messages=Wm(E2(),a)),this._messages},t.validate=function(a,o,l){var r=this;o===void 0&&(o={}),l===void 0&&(l=function(){});var s=a,u=o,c=l;if(typeof u=="function"&&(c=u,u={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function d(v){var m=[],y={};function b(C){if(Array.isArray(C)){var S;m=(S=m).concat.apply(S,C)}else m.push(C)}for(var w=0;wn.labelPosition||(o==null?void 0:o.labelPosition)),y=x(()=>m.value==="top"?{}:{width:cn(n.labelWidth??(o==null?void 0:o.labelWidth))}),b=x(()=>{if(m.value==="top"||o!=null&&o.inline)return{};if(!n.label&&!n.labelWidth&&O)return{};const Y=cn(n.labelWidth??(o==null?void 0:o.labelWidth));return!n.label&&!a.label?{marginLeft:Y}:{}}),w=x(()=>[s.b(),s.m(r.value),s.is("error",d.value==="error"),s.is("validating",d.value==="validating"),s.is("success",d.value==="success"),s.is("required",U.value||n.required),s.is("no-asterisk",o==null?void 0:o.hideRequiredAsterisk),(o==null?void 0:o.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[s.m("feedback")]:o==null?void 0:o.statusIcon,[s.m(`label-${m.value}`)]:m.value}]),C=x(()=>Dt(n.inlineMessage)?n.inlineMessage:(o==null?void 0:o.inlineMessage)||!1),S=x(()=>[s.e("error"),{[s.em("error","inline")]:C.value}]),k=x(()=>n.prop?Ve(n.prop)?n.prop.join("."):n.prop:""),T=x(()=>!!(n.label||a.label)),M=x(()=>n.for??(c.value.length===1?c.value[0]:void 0)),A=x(()=>!M.value&&T.value),O=!!l,I=x(()=>{const Y=o==null?void 0:o.model;if(!(!Y||!n.prop))return Wl(Y,n.prop).value}),L=x(()=>{const{required:Y}=n,X=[];n.rules&&X.push(...In(n.rules));const H=o==null?void 0:o.rules;if(H&&n.prop){const Z=Wl(H,n.prop).value;Z&&X.push(...In(Z))}if(Y!==void 0){const Z=X.map((le,ce)=>[le,ce]).filter(([le])=>"required"in le);if(Z.length>0)for(const[le,ce]of Z)le.required!==Y&&(X[ce]={...le,required:Y});else X.push({required:Y})}return X}),z=x(()=>L.value.length>0),q=Y=>L.value.filter(X=>!X.trigger||!Y?!0:Ve(X.trigger)?X.trigger.includes(Y):X.trigger===Y).map(({trigger:X,...H})=>H),U=x(()=>L.value.some(Y=>Y.required)),F=x(()=>f.value==="error"&&n.showMessage&&((o==null?void 0:o.showMessage)??!0)),N=x(()=>`${n.label||""}${(o==null?void 0:o.labelSuffix)||""}`),P=Y=>{d.value=Y},B=Y=>{var Z;const{errors:X,fields:H}=Y;(!X||!H)&&console.error(Y),P("error"),h.value=X?((Z=X==null?void 0:X[0])==null?void 0:Z.message)??`${n.prop} is required`:"",o==null||o.emit("validate",n.prop,!1,h.value)},W=()=>{P("success"),o==null||o.emit("validate",n.prop,!0,"")},K=async Y=>{const X=k.value;return new Fu({[X]:Y}).validate({[X]:I.value},{firstFields:!0}).then(()=>(W(),!0)).catch(H=>(B(H),Promise.reject(H)))},j=async(Y,X)=>{if(v||!n.prop)return!1;const H=ct(X);if(!z.value)return X==null||X(!1),!1;const Z=q(Y);return Z.length===0?(X==null||X(!0),!0):(P("validating"),K(Z).then(()=>(X==null||X(!0),!0)).catch(le=>{const{fields:ce}=le;return X==null||X(!1,ce),H?!1:Promise.reject(ce)}))},G=()=>{P(""),h.value="",v=!1},ee=async()=>{const Y=o==null?void 0:o.model;if(!Y||!n.prop)return;const X=Wl(Y,n.prop);v=!0,X.value=Ro(p),await Ie(),G(),v=!1},te=Y=>{c.value.includes(Y)||c.value.push(Y)},ue=Y=>{c.value=c.value.filter(X=>X!==Y)},ne=Y=>{p=Ro(Y)},de=()=>p;fe(()=>n.error,Y=>{h.value=Y||"",P(Y?"error":"")},{immediate:!0}),fe(()=>n.validateStatus,Y=>P(Y||""));const se=Nt({...Bn(n),$el:g,size:r,validateMessage:h,validateState:d,labelId:u,inputIds:c,isGroup:A,hasLabel:T,fieldValue:I,addInputId:te,removeInputId:ue,resetField:ee,clearValidate:G,validate:j,propString:k,setInitialValue:ne,getInitialValue:de});return bt(qo,se),fe(k,(Y,X)=>{!o||!X||(o.removeField(se,X),Y&&(ne(I.value),o.addField(se)))}),mt(()=>{n.prop&&(ne(I.value),o==null||o.addField(se))}),Lt(()=>{o==null||o.removeField(se)}),t({size:r,validateMessage:h,validateState:d,validate:j,clearValidate:G,resetField:ee,setInitialValue:ne}),(Y,X)=>{var H;return _(),$("div",{ref_key:"formItemRef",ref:g,class:R(w.value),role:A.value?"group":void 0,"aria-labelledby":A.value?i(u):void 0},[Q(i(WH),{"is-auto-width":y.value.width==="auto","update-all":((H=i(o))==null?void 0:H.labelWidth)==="auto"},{default:ae(()=>[e.label||Y.$slots.label?(_(),ie(ut(M.value?"label":"div"),{key:0,id:i(u),for:M.value,class:R(i(s).e("label")),style:We(y.value)},{default:ae(()=>[oe(Y.$slots,"label",{label:N.value},()=>[_t(_e(N.value),1)])]),_:3},8,["id","for","class","style"])):re("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),E("div",{class:R(i(s).e("content")),style:We(b.value)},[oe(Y.$slots,"default"),Q(w6,{name:`${i(s).namespace.value}-zoom-in-top`},{default:ae(()=>[F.value?oe(Y.$slots,"error",{key:0,error:h.value},()=>[E("div",{class:R(S.value)},_e(h.value),3)]):re("v-if",!0)]),_:3},8,["name"])],6)],10,SF)}}}),tb=xF;const kF=rt(KH,{FormItem:tb}),EF=ln(tb),c0="focus-trap.focus-after-trapped",d0="focus-trap.focus-after-released",TF="focus-trap.focusout-prevented",qm={cancelable:!0,bubbles:!1},MF={cancelable:!0,bubbles:!1},Um="focusAfterTrapped",Ym="focusAfterReleased",nb=Symbol("elFocusTrap"),$h=V(),wf=V(0),Ah=V(0);let fc=0;const ab=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0||a===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},Gm=(e,t)=>{for(const n of e)if(!OF(n,t))return n},OF=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},$F=e=>{const t=ab(e);return[Gm(t,e),Gm(t.reverse(),e)]},AF=e=>e instanceof HTMLInputElement&&"select"in e,Il=(e,t)=>{if(e){const n=document.activeElement;$u(e,{preventScroll:!0}),Ah.value=window.performance.now(),e!==n&&AF(e)&&t&&e.select()}};function Xm(e,t){const n=[...e],a=e.indexOf(t);return a!==-1&&n.splice(a,1),n}const RF=()=>{let e=[];return{push:a=>{const o=e[0];o&&a!==o&&o.pause(),e=Xm(e,a),e.unshift(a)},remove:a=>{var o,l;e=Xm(e,a),(l=(o=e[0])==null?void 0:o.resume)==null||l.call(o)}}},NF=(e,t=!1)=>{const n=document.activeElement;for(const a of e)if(Il(a,t),document.activeElement!==n)return},Jm=RF(),PF=()=>wf.value>Ah.value,pc=()=>{$h.value="pointer",wf.value=window.performance.now()},Zm=()=>{$h.value="keyboard",wf.value=window.performance.now()},IF=()=>(mt(()=>{fc===0&&(document.addEventListener("mousedown",pc),document.addEventListener("touchstart",pc),document.addEventListener("keydown",Zm)),fc++}),Lt(()=>{fc--,fc<=0&&(document.removeEventListener("mousedown",pc),document.removeEventListener("touchstart",pc),document.removeEventListener("keydown",Zm))}),{focusReason:$h,lastUserFocusTimestamp:wf,lastAutomatedFocusTimestamp:Ah}),hc=e=>new CustomEvent(TF,{...MF,detail:e});var LF=D({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Um,Ym,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=V();let a,o;const{focusReason:l}=IF();o$(p=>{e.trapped&&!r.paused&&t("release-requested",p)});const r={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=p=>{if(!e.loop&&!e.trapped||r.paused)return;const{altKey:v,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:w}=p,{loop:C}=e,S=Kt(p)===we.tab&&!v&&!m&&!y,k=document.activeElement;if(S&&k){const T=b,[M,A]=$F(T);if(M&&A){if(!w&&k===A){const O=hc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),C&&Il(M,!0))}else if(w&&[M,T].includes(k)){const O=hc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||(p.preventDefault(),C&&Il(A,!0))}}else if(k===T){const O=hc({focusReason:l.value});t("focusout-prevented",O),O.defaultPrevented||p.preventDefault()}}};bt(nb,{focusTrapRef:n,onKeydown:s}),fe(()=>e.focusTrapEl,p=>{p&&(n.value=p)},{immediate:!0}),fe([n],([p],[v])=>{p&&(p.addEventListener("keydown",s),p.addEventListener("focusin",d),p.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",d),v.removeEventListener("focusout",f))});const u=p=>{t(Um,p)},c=p=>t(Ym,p),d=p=>{const v=i(n);if(!v)return;const m=p.target,y=p.relatedTarget,b=m&&v.contains(m);e.trapped||y&&v.contains(y)||(a=y),b&&t("focusin",p),!r.paused&&e.trapped&&(b?o=m:Il(o,!0))},f=p=>{const v=i(n);if(!(r.paused||!v))if(e.trapped){const m=p.relatedTarget;!Cn(m)&&!v.contains(m)&&setTimeout(()=>{if(!r.paused&&e.trapped){const y=hc({focusReason:l.value});t("focusout-prevented",y),y.defaultPrevented||Il(o,!0)}},0)}else{const m=p.target;m&&v.contains(m)||t("focusout",p)}};async function h(){await Ie();const p=i(n);if(p){Jm.push(r);const v=p.contains(document.activeElement)?a:document.activeElement;if(a=v,!p.contains(v)){const m=new Event(c0,qm);p.addEventListener(c0,u),p.dispatchEvent(m),m.defaultPrevented||Ie(()=>{let y=e.focusStartEl;Ue(y)||(Il(y),document.activeElement!==y&&(y="first")),y==="first"&&NF(ab(p),!0),(document.activeElement===v||y==="container")&&Il(p)})}}}function g(){const p=i(n);if(p){p.removeEventListener(c0,u);const v=new CustomEvent(d0,{...qm,detail:{focusReason:l.value}});p.addEventListener(d0,c),p.dispatchEvent(v),!v.defaultPrevented&&(l.value=="keyboard"||!PF()||p.contains(document.activeElement))&&Il(a??document.body),p.removeEventListener(d0,c),Jm.remove(r),a=null,o=null}}return mt(()=>{e.trapped&&h(),fe(()=>e.trapped,p=>{p?h():g()})}),Lt(()=>{e.trapped&&g(),n.value&&(n.value.removeEventListener("keydown",s),n.value.removeEventListener("focusin",d),n.value.removeEventListener("focusout",f),n.value=void 0),a=null,o=null}),{onKeydown:s}}}),$n=(e,t)=>{const n=e.__vccOpts||e;for(const[a,o]of t)n[a]=o;return n};function VF(e,t,n,a,o,l){return oe(e.$slots,"default",{handleKeydown:e.onKeydown})}var BF=$n(LF,[["render",VF]]),ai=BF;const zF=(e,t=[])=>{const{placement:n,strategy:a,popperOptions:o}=e,l={placement:n,strategy:a,...o,modifiers:[...HF(e),...t]};return FF(l,o==null?void 0:o.modifiers),l},DF=e=>{if(Rt)return Mn(e)};function HF(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:a}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:a}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function FF(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const KF=0,WF=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:a,role:o}=Ne(Oh,void 0),l=V(),r=x(()=>e.arrowOffset),s=x(()=>({name:"eventListeners",enabled:!!e.visible})),u=x(()=>{const b=i(l),w=i(r)??KF;return{name:"arrow",enabled:!rM(b),options:{element:b,padding:w}}}),c=x(()=>({onFirstUpdate:()=>{p()},...zF(e,[i(u),i(s)])})),d=x(()=>DF(e.referenceEl)||i(a)),{attributes:f,state:h,styles:g,update:p,forceUpdate:v,instanceRef:m}=e$(d,n,c);fe(m,b=>t.value=b,{flush:"sync"}),mt(()=>{fe(()=>{var b,w;return(w=(b=i(d))==null?void 0:b.getBoundingClientRect)==null?void 0:w.call(b)},()=>{p()})});let y;return fe(()=>e.visible,b=>{y==null||y(),y=void 0,b&&(y=en(n,p).stop)}),Lt(()=>{t.value=void 0,y==null||y(),y=void 0}),{attributes:f,arrowRef:l,contentRef:n,instanceRef:m,state:h,styles:g,role:o,forceUpdate:v,update:p}},jF=(e,{attributes:t,styles:n,role:a})=>{const{nextZIndex:o}=Pu(),l=ve("popper"),r=x(()=>i(t).popper),s=V(De(e.zIndex)?e.zIndex:o()),u=x(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),c=x(()=>[{zIndex:i(s)},i(n).popper,e.popperStyle||{}]),d=x(()=>a.value==="dialog"?"false":void 0),f=x(()=>i(n).arrow||{});return{ariaModal:d,arrowStyle:f,contentAttrs:r,contentClass:u,contentStyle:c,contentZIndex:s,updateZIndex:()=>{s.value=De(e.zIndex)?e.zIndex:o()}}},qF=(e,t)=>{const n=V(!1),a=V(),o=()=>{t("focus")},l=c=>{var d;((d=c.detail)==null?void 0:d.focusReason)!=="pointer"&&(a.value="first",t("blur"))},r=c=>{e.visible&&!n.value&&(c.target&&(a.value=c.target),n.value=!0)},s=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},u=()=>{n.value=!1,t("close")};return Lt(()=>{a.value=void 0}),{focusStartRef:a,trapped:n,onFocusAfterReleased:l,onFocusAfterTrapped:o,onFocusInTrap:r,onFocusoutPrevented:s,onReleaseRequested:u}};var UF=D({name:"ElPopperContent",__name:"content",props:Qy,emits:PH,setup(e,{expose:t,emit:n}){const a=n,o=e,{focusStartRef:l,trapped:r,onFocusAfterReleased:s,onFocusAfterTrapped:u,onFocusInTrap:c,onFocusoutPrevented:d,onReleaseRequested:f}=qF(o,a),{attributes:h,arrowRef:g,contentRef:p,styles:v,instanceRef:m,role:y,update:b}=WF(o),{ariaModal:w,arrowStyle:C,contentAttrs:S,contentClass:k,contentStyle:T,updateZIndex:M}=jF(o,{styles:v,attributes:h,role:y}),A=Ne(qo,void 0);bt(Yy,{arrowStyle:C,arrowRef:g}),A&&bt(qo,{...A,addInputId:Yt,removeInputId:Yt});let O;const I=(z=!0)=>{b(),z&&M()},L=()=>{I(!1),o.visible&&o.focusOnShow?r.value=!0:o.visible===!1&&(r.value=!1)};return mt(()=>{fe(()=>o.triggerTargetEl,(z,q)=>{O==null||O(),O=void 0;const U=i(z||p.value),F=i(q||p.value);_a(U)&&(O=fe([y,()=>o.ariaLabel,w,()=>o.id],N=>{["role","aria-label","aria-modal","id"].forEach((P,B)=>{Cn(N[B])?U.removeAttribute(P):U.setAttribute(P,N[B])})},{immediate:!0})),F!==U&&_a(F)&&["role","aria-label","aria-modal","id"].forEach(N=>{F.removeAttribute(N)})},{immediate:!0}),fe(()=>o.visible,L,{immediate:!0})}),Lt(()=>{O==null||O(),O=void 0,p.value=void 0}),t({popperContentRef:p,popperInstanceRef:m,updatePopper:I,contentStyle:T}),(z,q)=>(_(),$("div",pt({ref_key:"contentRef",ref:p},i(S),{style:i(T),class:i(k),tabindex:"-1",onMouseenter:q[0]||(q[0]=U=>z.$emit("mouseenter",U)),onMouseleave:q[1]||(q[1]=U=>z.$emit("mouseleave",U))}),[Q(i(ai),{loop:e.loop,trapped:i(r),"trap-on-focus-in":!0,"focus-trap-el":i(p),"focus-start-el":i(l),onFocusAfterTrapped:i(u),onFocusAfterReleased:i(s),onFocusin:i(c),onFocusoutPrevented:i(d),onReleaseRequested:i(f)},{default:ae(()=>[oe(z.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}}),YF=UF,GF=D({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:Uy,setup(e,{expose:t}){const n=e,a={triggerRef:V(),popperInstanceRef:V(),contentRef:V(),referenceRef:V(),role:x(()=>n.role)};return t(a),bt(Oh,a),(o,l)=>oe(o.$slots,"default")}}),XF=GF;const ob=rt(XF),Ht=Ce({...s$,...Qy,appendTo:{type:Au.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:J(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ia(["ariaLabel"])}),Do=Ce({...Gy,disabled:Boolean,trigger:{type:J([String,Array]),default:"hover"},triggerKeys:{type:J(Array),default:()=>[we.enter,we.numpadEnter,we.space]},focusOnTarget:Boolean}),{useModelToggleProps:JF,useModelToggleEmits:ZF,useModelToggle:QF}=JM("visible"),eK=Ce({...Uy,...JF,...Ht,...Do,...Zy,showArrow:{type:Boolean,default:!0}}),tK=[...ZF,"before-show","before-hide","show","hide","open","close"],Rh=Symbol("elTooltip"),M2=(e,t)=>Ve(e)?e.includes(t):e===t,ts=(e,t,n)=>a=>{M2(i(e),t)&&n(a)};var nK=D({name:"ElTooltipTrigger",__name:"trigger",props:Do,setup(e,{expose:t}){const n=e,a=ve("tooltip"),{controlled:o,id:l,open:r,onOpen:s,onClose:u,onToggle:c}=Ne(Rh,void 0),d=V(null),f=()=>{if(i(o)||n.disabled)return!0},h=Bt(n,"trigger"),g=Pn(f,ts(h,"hover",C=>{s(C),n.focusOnTarget&&C.target&&Ie(()=>{$u(C.target,{preventScroll:!0})})})),p=Pn(f,ts(h,"hover",u)),v=Pn(f,ts(h,"click",C=>{C.button===0&&c(C)})),m=Pn(f,ts(h,"focus",s)),y=Pn(f,ts(h,"focus",u)),b=Pn(f,ts(h,"contextmenu",C=>{C.preventDefault(),c(C)})),w=Pn(f,C=>{const S=Kt(C);n.triggerKeys.includes(S)&&(C.preventDefault(),c(C))});return t({triggerRef:d}),(C,S)=>(_(),ie(i(AH),{id:i(l),"virtual-ref":e.virtualRef,open:i(r),"virtual-triggering":e.virtualTriggering,class:R(i(a).e("trigger")),onBlur:i(y),onClick:i(v),onContextmenu:i(b),onFocus:i(m),onMouseenter:i(g),onMouseleave:i(p),onKeydown:i(w)},{default:ae(()=>[oe(C.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}}),aK=nK,oK=D({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Ht,setup(e,{expose:t}){const n=e,{selector:a}=ay(),o=ve("tooltip"),l=V(),r=$6(()=>{var P;return(P=l.value)==null?void 0:P.popperContentRef});let s;const{controlled:u,id:c,open:d,trigger:f,onClose:h,onOpen:g,onShow:p,onHide:v,onBeforeShow:m,onBeforeHide:y}=Ne(Rh,void 0),b=x(()=>n.transition||`${o.namespace.value}-fade-in-linear`),w=x(()=>n.persistent);Lt(()=>{s==null||s()});const C=x(()=>i(w)?!0:i(d)),S=x(()=>n.disabled?!1:i(d)),k=x(()=>n.appendTo||a.value),T=x(()=>n.style??{}),M=V(!0),A=()=>{v(),N()&&$u(document.body,{preventScroll:!0}),M.value=!0},O=()=>{if(i(u))return!0},I=Pn(O,()=>{n.enterable&&M2(i(f),"hover")&&g()}),L=Pn(O,()=>{M2(i(f),"hover")&&h()}),z=()=>{var P,B;(B=(P=l.value)==null?void 0:P.updatePopper)==null||B.call(P),m==null||m()},q=()=>{y==null||y()},U=()=>{p()},F=()=>{n.virtualTriggering||h()},N=P=>{var K;const B=(K=l.value)==null?void 0:K.popperContentRef,W=(P==null?void 0:P.relatedTarget)||document.activeElement;return B==null?void 0:B.contains(W)};return fe(()=>i(d),P=>{P?(M.value=!1,s=Bp(r,()=>{i(u)||la(i(f)).every(B=>B!=="hover"&&B!=="focus")&&h()},{detectIframe:!0})):s==null||s()},{flush:"post"}),t({contentRef:l,isFocusInsideContent:N}),(P,B)=>(_(),ie(i(ti),{disabled:!e.teleported,to:k.value},{default:ae(()=>[C.value||!M.value?(_(),ie(qn,{key:0,name:b.value,appear:!w.value,onAfterLeave:A,onBeforeEnter:z,onAfterEnter:U,onBeforeLeave:q,persisted:""},{default:ae(()=>[dt(Q(i(YF),pt({id:i(c),ref_key:"contentRef",ref:l},P.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":M.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:S.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:i(I),onMouseleave:i(L),onBlur:F,onClose:i(h)}),{default:ae(()=>[oe(P.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[At,S.value]])]),_:3},8,["name","appear"])):re("v-if",!0)]),_:3},8,["disabled","to"]))}}),lK=oK;const rK=["innerHTML"],sK={key:1};var iK=D({name:"ElTooltip",__name:"tooltip",props:eK,emits:tK,setup(e,{expose:t,emit:n}){const a=e,o=n;r$();const l=ve("tooltip"),r=Un(),s=V(),u=V(),c=()=>{var S;const C=i(s);C&&((S=C.popperInstanceRef)==null||S.update())},d=V(!1),f=V(),{show:h,hide:g,hasUpdateHandler:p}=QF({indicator:d,toggleReason:f}),{onOpen:v,onClose:m}=i$({showAfter:Bt(a,"showAfter"),hideAfter:Bt(a,"hideAfter"),autoClose:Bt(a,"autoClose"),open:h,close:g}),y=x(()=>Dt(a.visible)&&!p.value),b=x(()=>[l.b(),a.popperClass]);bt(Rh,{controlled:y,id:r,open:Rr(d),trigger:Bt(a,"trigger"),onOpen:v,onClose:m,onToggle:C=>{i(d)?m(C):v(C)},onShow:()=>{o("show",f.value)},onHide:()=>{o("hide",f.value)},onBeforeShow:()=>{o("before-show",f.value)},onBeforeHide:()=>{o("before-hide",f.value)},updatePopper:c}),fe(()=>a.disabled,C=>{C&&d.value&&(d.value=!1),!C&&Dt(a.visible)&&(d.value=a.visible)});const w=C=>{var S;return(S=u.value)==null?void 0:S.isFocusInsideContent(C)};return Mp(()=>d.value&&g()),Lt(()=>{f.value=void 0}),t({popperRef:s,contentRef:u,isFocusInsideContent:w,updatePopper:c,onOpen:v,onClose:m,hide:g}),(C,S)=>(_(),ie(i(ob),{ref_key:"popperRef",ref:s,role:e.role},{default:ae(()=>[Q(aK,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:ae(()=>[C.$slots.default?oe(C.$slots,"default",{key:0}):re("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),Q(lK,{ref_key:"contentRef",ref:u,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":b.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:ae(()=>[oe(C.$slots,"content",{},()=>[e.rawContent?(_(),$("span",{key:0,innerHTML:e.content},null,8,rK)):(_(),$("span",sK,_e(e.content),1))]),e.showArrow?(_(),ie(i(OH),{key:0})):re("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}}),uK=iK;const Fn=rt(uK),un=e=>e,Nh=Ce({id:{type:String,default:void 0},size:On,disabled:{type:Boolean,default:void 0},modelValue:{type:J([String,Number,Object]),default:""},modelModifiers:{type:J(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:J(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:J([Boolean,Object]),default:!1},autocomplete:{type:J(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:wo},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Ft},prefixIcon:{type:Ft},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:J([Object,Array,String]),default:()=>un({})},countGraphemes:{type:J(Function)},autofocus:Boolean,rows:{type:Number,default:2},...ia(["ariaLabel"]),inputmode:{type:J(String),default:void 0},name:String}),cK={[at]:e=>Ue(e),input:e=>Ue(e),change:(e,t)=>Ue(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:e=>e===void 0||e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Io(wo);let Qn;const dK={height:"0",visibility:"hidden",overflow:Zd()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},fK=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],Qm=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function pK(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),a=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:fK.map(l=>[l,t.getPropertyValue(l)]),paddingSize:a,borderSize:o,boxSizing:n}}function eg(e,t=1,n){var d;if(!Qn){Qn=document.createElement("textarea");let f=document.body;!Zd()&&e.parentNode&&(f=e.parentNode),f.appendChild(Qn)}const{paddingSize:a,borderSize:o,boxSizing:l,contextStyle:r}=pK(e);r.forEach(([f,h])=>Qn==null?void 0:Qn.style.setProperty(f,h)),Object.entries(dK).forEach(([f,h])=>Qn==null?void 0:Qn.style.setProperty(f,h,"important")),Qn.value=e.value||e.placeholder||"";let s=Qn.scrollHeight;const u={};l==="border-box"?s=s+o:l==="content-box"&&(s=s-a),Qn.value="";const c=Qn.scrollHeight-a;if(De(t)){let f=c*t;l==="border-box"&&(f=f+a+o),s=Math.max(f,s),u.minHeight=`${f}px`}if(De(n)){let f=c*n;l==="border-box"&&(f=f+a+o),s=Math.min(f,s)}return u.height=`${s}px`,(d=Qn.parentNode)==null||d.removeChild(Qn),Qn=void 0,u}const hK=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],vK=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role","inputmode"],tg="ElInput";var mK=D({name:tg,inheritAttrs:!1,__name:"input",props:Nh,emits:cK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=_l(),r=yn(),s=x(()=>[a.type==="textarea"?y.b():m.b(),m.m(p.value),m.is("disabled",v.value),m.is("exceed",te.value),{[m.b("group")]:r.prepend||r.append,[m.m("prefix")]:r.prefix||a.prefixIcon,[m.m("suffix")]:r.suffix||a.suffixIcon||a.clearable||a.showPassword,[m.bm("suffix","password-clear")]:K.value&&j.value,[m.b("hidden")]:a.type==="hidden"},l.class]),u=x(()=>[m.e("wrapper"),m.is("focus",I.value)]),c=uf(),d=x(()=>{var Te;return(Te=a.maxlength)==null?void 0:Te.toString()}),{form:f,formItem:h}=Kn(),{inputId:g}=za(a,{formItemContext:h}),p=En(),v=dn(),m=ve("input"),y=ve("textarea"),b=qt(),w=qt(),C=V(!1),S=V(!1),k=V(),T=qt(a.inputStyle),M=V(""),A=x(()=>b.value||w.value),{wrapperRef:O,isFocused:I,handleFocus:L,handleBlur:z}=El(A,{disabled:v,afterBlur(){var Te;a.validateEvent&&((Te=h==null?void 0:h.validate)==null||Te.call(h,"blur").catch(Ye=>ft(Ye)))}}),q=x(()=>(f==null?void 0:f.statusIcon)??!1),U=x(()=>(h==null?void 0:h.validateState)||""),F=x(()=>U.value&&bf[U.value]),N=x(()=>S.value?Ky:Ay),P=x(()=>[l.style]),B=x(()=>[a.inputStyle,T.value,{resize:a.resize}]),W=x(()=>Cn(a.modelValue)?"":String(a.modelValue)),K=x(()=>a.clearable&&!v.value&&!a.readonly&&!!W.value&&(I.value||C.value)),j=x(()=>a.showPassword&&!v.value&&!!W.value),G=x(()=>a.showWordLimit&&!!d.value&&(a.type==="text"||a.type==="textarea")&&!v.value&&!a.readonly&&!a.showPassword),ee=x(()=>a.countGraphemes&&a.showWordLimit?a.countGraphemes(W.value):W.value.length),te=x(()=>!!G.value&&ee.value>Number(d.value)),ue=x(()=>!!r.suffix||!!a.suffixIcon||K.value||a.showPassword||G.value||!!U.value&&q.value),ne=x(()=>!!Object.keys(a.modelModifiers).length),[de,se]=Q$(b);en(w,Te=>{if(H(),!G.value||a.resize!=="both"&&a.resize!=="horizontal")return;const{width:Ye}=Te[0].contentRect;k.value={right:`calc(100% - ${Ye+22-10}px)`}});const Y=()=>{const{type:Te,autosize:Ye}=a;if(!(!Rt||Te!=="textarea"||!w.value))if(Ye){const st=Mt(Ye)?Ye.minRows:void 0,Ke=Mt(Ye)?Ye.maxRows:void 0,et=eg(w.value,st,Ke);T.value={overflowY:"hidden",...et},Ie(()=>{w.value.offsetHeight,T.value=et})}else T.value={minHeight:eg(w.value).minHeight}},H=(Te=>{let Ye=!1;return()=>{var st;Ye||!a.autosize||((st=w.value)==null?void 0:st.offsetParent)!==null&&(setTimeout(Te),Ye=!0)}})(Y),Z=()=>{const Te=A.value,Ye=a.formatter?a.formatter(W.value):W.value;!Te||Te.value===Ye||a.type==="file"||(Te.value=Ye)},le=Te=>{const{trim:Ye,number:st}=a.modelModifiers;return Ye&&(Te=Te.trim()),st&&(Te=`${Qm(Te)}`),a.formatter&&a.parser&&(Te=a.parser(Te)),Te},ce=async Te=>{if(me.value)return;const{lazy:Ye}=a.modelModifiers;let{value:st}=Te.target,Ke=!1;if(Ye){o(Sn,st);return}if(st=le(st),a.countGraphemes&&d.value!=null){const et=Number(d.value),gt=a.countGraphemes(st),he=a.countGraphemes(M.value);if(gt>et&>>he)if(he>et)st=M.value,Ke=!0;else{const Le=M.value,pe=st;let Ee=0;for(;EeEe&&Pt>Ee&&Le[it-1]===pe[Pt-1];)it--,Pt--;const Xt=pe.slice(0,Ee),Oe=Le.slice(Ee,it),Fe=pe.slice(Ee,Pt),Je=pe.slice(Pt),hn=he-a.countGraphemes(Oe),zt=Math.max(0,et-hn);let Zt="";if(zt>0)if(typeof Intl<"u"&&"Segmenter"in Intl){const je=new Intl.Segmenter(void 0,{granularity:"grapheme"});for(const{segment:Ge}of je.segment(Fe)){const vt=Zt+Ge;if(a.countGraphemes(vt)>zt)break;Zt=vt}}else for(const je of Array.from(Fe)){const Ge=Zt+je;if(a.countGraphemes(Ge)>zt)break;Zt=Ge}st=Xt+Zt+Je,Ke=!0}}if(String(st)===W.value){if(a.formatter||Ke){const et=Te.target,gt=et.value,he=et.selectionStart,Le=et.selectionEnd;if(Z(),Ke&&A.value&&he!=null&&Le!=null){const pe=A.value.value,Ee=gt.slice(Math.max(0,Le));let it=Math.min(he,pe.length);Ee&&pe.endsWith(Ee)&&(it=pe.length-Ee.length),A.value.setSelectionRange(it,it)}}return}M.value=st,de(),o(at,st),o(Sn,st),await Ie(),(a.formatter&&a.parser||!ne.value)&&Z(),se()},ge=async Te=>{let{value:Ye}=Te.target;Ye=le(Ye),a.modelModifiers.lazy&&o(at,Ye),o(yt,Ye,Te),await Ie(),Z()},{isComposing:me,handleCompositionStart:$e,handleCompositionUpdate:Re,handleCompositionEnd:Ae}=Bu({emit:o,afterComposition:ce}),ye=()=>{S.value=!S.value},ke=()=>{var Te;return(Te=A.value)==null?void 0:Te.focus()},be=()=>{var Te;return(Te=A.value)==null?void 0:Te.blur()},Pe=Te=>{C.value=!1,o("mouseleave",Te)},Be=Te=>{C.value=!0,o("mouseenter",Te)},Qe=Te=>{o("keydown",Te)},tt=()=>{var Te;(Te=A.value)==null||Te.select()},nt=Te=>{o(at,""),o(yt,""),o("clear",Te),o(Sn,"")};return fe(()=>a.modelValue,()=>{var Te;Ie(()=>Y()),a.validateEvent&&((Te=h==null?void 0:h.validate)==null||Te.call(h,"change").catch(Ye=>ft(Ye)))}),fe(()=>W.value,Te=>{M.value=Te},{immediate:!0}),fe(W,Te=>{if(!A.value)return;const{trim:Ye,number:st}=a.modelModifiers,Ke=A.value.value,et=(st||a.type==="number")&&!/^0\d/.test(Ke)?`${Qm(Ke)}`:Ke;et!==Te&&(document.activeElement===A.value&&A.value.type!=="range"&&Ye&&et.trim()===Te||Z())}),fe(()=>a.type,async()=>{await Ie(),Z(),Y()}),mt(()=>{!a.formatter&&a.parser&&ft(tg,"If you set the parser, you also need to set the formatter."),Z(),Ie(Y)}),t({input:b,textarea:w,ref:A,textareaStyle:B,autosize:Bt(a,"autosize"),isComposing:me,passwordVisible:S,focus:ke,blur:be,select:tt,clear:nt,resizeTextarea:Y}),(Te,Ye)=>(_(),$("div",{class:R([s.value,{[i(m).bm("group","append")]:Te.$slots.append,[i(m).bm("group","prepend")]:Te.$slots.prepend}]),style:We(P.value),onMouseenter:Be,onMouseleave:Pe},[re(" input "),e.type!=="textarea"?(_(),$(He,{key:0},[re(" prepend slot "),Te.$slots.prepend?(_(),$("div",{key:0,class:R(i(m).be("group","prepend"))},[oe(Te.$slots,"prepend")],2)):re("v-if",!0),E("div",{ref_key:"wrapperRef",ref:O,class:R(u.value)},[re(" prefix slot "),Te.$slots.prefix||e.prefixIcon?(_(),$("span",{key:0,class:R(i(m).e("prefix"))},[E("span",{class:R(i(m).e("prefix-inner"))},[oe(Te.$slots,"prefix"),e.prefixIcon?(_(),ie(i(ze),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(_(),ie(ut(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0),E("input",pt({id:i(g),ref_key:"input",ref:b,class:i(m).e("inner")},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,type:e.showPassword?S.value?"text":"password":e.type,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ye[0]||(Ye[0]=(...st)=>i($e)&&i($e)(...st)),onCompositionupdate:Ye[1]||(Ye[1]=(...st)=>i(Re)&&i(Re)(...st)),onCompositionend:Ye[2]||(Ye[2]=(...st)=>i(Ae)&&i(Ae)(...st)),onInput:ce,onChange:ge,onKeydown:Qe}),null,16,hK),re(" suffix slot "),ue.value?(_(),$("span",{key:1,class:R(i(m).e("suffix"))},[E("span",{class:R(i(m).e("suffix-inner"))},[!K.value||!j.value||!G.value?(_(),$(He,{key:0},[oe(Te.$slots,"suffix"),e.suffixIcon?(_(),ie(i(ze),{key:0,class:R(i(m).e("icon"))},{default:ae(()=>[(_(),ie(ut(e.suffixIcon)))]),_:1},8,["class"])):re("v-if",!0)],64)):re("v-if",!0),K.value?(_(),ie(i(ze),{key:1,class:R([i(m).e("icon"),i(m).e("clear")]),onMousedown:Xe(i(Yt),["prevent"]),onClick:nt},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),j.value?(_(),ie(i(ze),{key:2,class:R([i(m).e("icon"),i(m).e("password")]),onClick:ye,onMousedown:Xe(i(Yt),["prevent"]),onMouseup:Xe(i(Yt),["prevent"])},{default:ae(()=>[oe(Te.$slots,"password-icon",{visible:S.value},()=>[(_(),ie(ut(N.value)))])]),_:3},8,["class","onMousedown","onMouseup"])):re("v-if",!0),G.value?(_(),$("span",{key:3,class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},[E("span",{class:R(i(m).e("count-inner"))},_e(ee.value)+" / "+_e(d.value),3)],2)):re("v-if",!0),U.value&&F.value&&q.value?(_(),ie(i(ze),{key:4,class:R([i(m).e("icon"),i(m).e("validateIcon"),i(m).is("loading",U.value==="validating")])},{default:ae(()=>[(_(),ie(ut(F.value)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)):re("v-if",!0)],2),re(" append slot "),Te.$slots.append?(_(),$("div",{key:1,class:R(i(m).be("group","append"))},[oe(Te.$slots,"append")],2)):re("v-if",!0)],64)):(_(),$(He,{key:1},[re(" textarea "),E("textarea",pt({id:i(g),ref_key:"textarea",ref:w,class:[i(y).e("inner"),i(m).is("focus",i(I)),i(y).is("clearable",e.clearable)]},i(c),{name:e.name,minlength:e.countGraphemes?void 0:e.minlength,maxlength:e.countGraphemes?void 0:d.value,tabindex:e.tabindex,disabled:i(v),readonly:e.readonly,autocomplete:e.autocomplete,style:B.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Ye[3]||(Ye[3]=(...st)=>i($e)&&i($e)(...st)),onCompositionupdate:Ye[4]||(Ye[4]=(...st)=>i(Re)&&i(Re)(...st)),onCompositionend:Ye[5]||(Ye[5]=(...st)=>i(Ae)&&i(Ae)(...st)),onInput:ce,onFocus:Ye[6]||(Ye[6]=(...st)=>i(L)&&i(L)(...st)),onBlur:Ye[7]||(Ye[7]=(...st)=>i(z)&&i(z)(...st)),onChange:ge,onKeydown:Qe}),null,16,vK),K.value?(_(),ie(i(ze),{key:0,class:R([i(y).e("icon"),i(y).e("clear")]),onMousedown:Xe(i(Yt),["prevent"]),onClick:nt},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0),G.value?(_(),$("span",{key:1,style:We(k.value),class:R([i(m).e("count"),i(m).is("outside",e.wordLimitPosition==="outside")])},_e(ee.value)+" / "+_e(d.value),7)):re("v-if",!0)],64))],38))}}),gK=mK;const jn=rt(gK),yK=Ce({...Nh,valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:J(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:J([Function,Array]),default:Yt},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:Boolean,hideLoading:Boolean,teleported:Ht.teleported,appendTo:Ht.appendTo,highlightFirstItem:Boolean,fitInputWidth:Boolean,loopNavigation:{type:Boolean,default:!0}}),bK={[at]:e=>Ue(e)||De(e),[Sn]:e=>Ue(e)||De(e),[yt]:e=>Ue(e)||De(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Mt(e)},wK=Ce({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:J([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...ia(["ariaLabel","ariaOrientation"])}),lb={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(De)},ns=4,rb={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},CK=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),_K=Ce({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),Ph=Symbol("scrollbarContextKey");function jl(e,t,n=.03){return e-t>n}const SK=Ce({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),xK="Thumb";var kK=D({__name:"thumb",props:_K,setup(e){const t=e,n=Ne(Ph),a=ve("scrollbar");n||on(xK,"can not inject scrollbar context");const o=V(),l=V(),r=V({}),s=V(!1);let u=!1,c=!1,d=0,f=0,h=Rt?document.onselectstart:null;const g=x(()=>rb[t.vertical?"vertical":"horizontal"]),p=x(()=>CK({size:t.size,move:t.move,bar:g.value})),v=x(()=>o.value[g.value.offset]**2/n.wrapElement[g.value.scrollSize]/t.ratio/l.value[g.value.offset]),m=M=>{var O;if(M.stopPropagation(),M.ctrlKey||[1,2].includes(M.button))return;(O=window.getSelection())==null||O.removeAllRanges(),b(M);const A=M.currentTarget;A&&(r.value[g.value.axis]=A[g.value.offset]-(M[g.value.client]-A.getBoundingClientRect()[g.value.direction]))},y=M=>{if(!l.value||!o.value||!n.wrapElement)return;const A=(Math.abs(M.target.getBoundingClientRect()[g.value.direction]-M[g.value.client])-l.value[g.value.offset]/2)*100*v.value/o.value[g.value.offset];n.wrapElement[g.value.scroll]=A*n.wrapElement[g.value.scrollSize]/100},b=M=>{M.stopImmediatePropagation(),u=!0,d=n.wrapElement.scrollHeight,f=n.wrapElement.scrollWidth,document.addEventListener("mousemove",w),document.addEventListener("mouseup",C),h=document.onselectstart,document.onselectstart=()=>!1},w=M=>{if(!o.value||!l.value||u===!1)return;const A=r.value[g.value.axis];if(!A)return;const O=((o.value.getBoundingClientRect()[g.value.direction]-M[g.value.client])*-1-(l.value[g.value.offset]-A))*100*v.value/o.value[g.value.offset];g.value.scroll==="scrollLeft"?n.wrapElement[g.value.scroll]=O*f/100:n.wrapElement[g.value.scroll]=O*d/100},C=()=>{u=!1,r.value[g.value.axis]=0,document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",C),T(),c&&(s.value=!1)},S=()=>{c=!1,s.value=!!t.size},k=()=>{c=!0,s.value=u};Lt(()=>{T(),document.removeEventListener("mouseup",C)});const T=()=>{document.onselectstart!==h&&(document.onselectstart=h)};return Vt(Bt(n,"scrollbarElement"),"mousemove",S),Vt(Bt(n,"scrollbarElement"),"mouseleave",k),(M,A)=>(_(),ie(qn,{name:i(a).b("fade"),persisted:""},{default:ae(()=>[dt(E("div",{ref_key:"instance",ref:o,class:R([i(a).e("bar"),i(a).is(g.value.key)]),onMousedown:y,onClick:A[0]||(A[0]=Xe(()=>{},["stop"]))},[E("div",{ref_key:"thumb",ref:l,class:R(i(a).e("thumb")),style:We(p.value),onMousedown:m},null,38)],34),[[At,e.always||s.value]])]),_:1},8,["name"]))}}),ng=kK,EK=D({__name:"bar",props:SK,setup(e,{expose:t}){const n=e,a=Ne(Ph),o=V(0),l=V(0),r=V(""),s=V(""),u=V(1),c=V(1);return t({handleScroll:h=>{if(h){const g=h.offsetHeight-ns,p=h.offsetWidth-ns;l.value=h.scrollTop*100/g*u.value,o.value=h.scrollLeft*100/p*c.value}},update:()=>{const h=a==null?void 0:a.wrapElement;if(!h)return;const g=h.offsetHeight-ns,p=h.offsetWidth-ns,v=g**2/h.scrollHeight,m=p**2/h.scrollWidth,y=Math.max(v,n.minSize),b=Math.max(m,n.minSize);u.value=v/(g-v)/(y/(g-y)),c.value=m/(p-m)/(b/(p-b)),s.value=y+ns(_(),$(He,null,[Q(ng,{move:o.value,ratio:c.value,size:r.value,always:e.always},null,8,["move","ratio","size","always"]),Q(ng,{move:l.value,ratio:u.value,size:s.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}}),TK=EK;const MK=["tabindex"],f0="ElScrollbar";var OK=D({name:f0,__name:"scrollbar",props:wK,emits:lb,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("scrollbar");let r,s,u,c=0,d=0,f="";const h={bottom:!1,top:!1,right:!1,left:!1},g=V(),p=V(),v=V(),m=V(),y=x(()=>{const L={},z=cn(a.height),q=cn(a.maxHeight);return z&&(L.height=z),q&&(L.maxHeight=q),[a.wrapStyle,L]}),b=x(()=>[a.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!a.native}]),w=x(()=>[l.e("view"),a.viewClass]),C=L=>h[L]??!1,S={top:"bottom",bottom:"top",left:"right",right:"left"},k=L=>{const z=S[f];if(!z)return;const q=L[f],U=L[z];q&&!h[f]&&(h[f]=!0),!U&&h[z]&&(h[z]=!1)},T=()=>{var L;if(p.value){(L=m.value)==null||L.handleScroll(p.value);const z=c,q=d;c=p.value.scrollTop,d=p.value.scrollLeft;const U={bottom:!jl(p.value.scrollHeight-a.distance,p.value.clientHeight+c),top:c<=a.distance&&z!==0,right:!jl(p.value.scrollWidth-a.distance,p.value.clientWidth+d)&&q!==d,left:d<=a.distance&&q!==0};if(o("scroll",{scrollTop:c,scrollLeft:d}),z!==c&&(f=c>z?"bottom":"top"),q!==d&&(f=d>q?"right":"left"),a.distance>0){if(C(f))return;k(U)}U[f]&&o("end-reached",f)}};function M(L,z){Mt(L)?p.value.scrollTo(L):De(L)&&De(z)&&p.value.scrollTo(L,z)}const A=L=>{if(!De(L)){ft(f0,"value must be a number");return}p.value.scrollTop=L},O=L=>{if(!De(L)){ft(f0,"value must be a number");return}p.value.scrollLeft=L},I=()=>{var L,z;(L=m.value)==null||L.update(),h[f]=!1,p.value&&((z=m.value)==null||z.handleScroll(p.value))};return fe(()=>a.noresize,L=>{L?(r==null||r(),s==null||s(),u==null||u()):({stop:r}=en(v,I),{stop:s}=en(p,I),u=Vt("resize",I))},{immediate:!0}),fe(()=>[a.maxHeight,a.height],()=>{a.native||Ie(()=>{I()})}),bt(Ph,Nt({scrollbarElement:g,wrapElement:p})),wu(()=>{p.value&&(p.value.scrollTop=c,p.value.scrollLeft=d)}),mt(()=>{a.native||Ie(()=>{I()})}),ho(()=>I()),t({wrapRef:p,update:I,scrollTo:M,setScrollTop:A,setScrollLeft:O,handleScroll:T}),(L,z)=>(_(),$("div",{ref_key:"scrollbarRef",ref:g,class:R(i(l).b())},[E("div",{ref_key:"wrapRef",ref:p,class:R(b.value),style:We(y.value),tabindex:e.tabindex,onScroll:T},[(_(),ie(ut(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:R(w.value),style:We(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:ae(()=>[oe(L.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,MK),e.native?re("v-if",!0):(_(),ie(TK,{key:0,ref_key:"barRef",ref:m,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}}),$K=OK;const uo=rt($K),AK=["aria-expanded","aria-owns"],RK={key:0},NK=["id","aria-selected","onClick"],ag="ElAutocomplete";var PK=D({name:ag,inheritAttrs:!1,__name:"autocomplete",props:yK,emits:bK,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const Y=jn.props??[];return vl(a,Ve(Y)?Y:Object.keys(Y))}),r=_l(),s=dn(),u=ve("autocomplete"),c=V(),d=V(),f=V(),h=V();let g=!1,p=!1;const v=V([]),m=V(-1),y=V(""),b=V(!1),w=V(!1),C=V(!1),S=Un(),k=x(()=>r.style),T=x(()=>(v.value.length>0||C.value)&&b.value),M=x(()=>!a.hideLoading&&C.value),A=x(()=>c.value?Array.from(c.value.$el.querySelectorAll("input")):[]),O=()=>{T.value&&(y.value=`${c.value.$el.offsetWidth}px`)},I=()=>{m.value=-1},L=async Y=>{if(w.value)return;const X=H=>{C.value=!1,!w.value&&(Ve(H)?(v.value=H,m.value=a.highlightFirstItem?0:-1):on(ag,"autocomplete suggestions must be an array"))};if(C.value=!0,Ve(a.fetchSuggestions))X(a.fetchSuggestions);else{const H=await a.fetchSuggestions(Y,X);Ve(H)&&X(H)}},z=_u(L,x(()=>a.debounce)),q=Y=>{const X=!!Y;if(o(Sn,Y),o(at,Y),w.value=!1,b.value||(b.value=X),!a.triggerOnFocus&&!Y){w.value=!0,v.value=[];return}z(Y)},U=Y=>{var X;s.value||(((X=Y.target)==null?void 0:X.tagName)!=="INPUT"||A.value.includes(document.activeElement))&&(b.value=!0)},F=Y=>{o(yt,Y)},N=Y=>{if(p)p=!1;else{b.value=!0,o("focus",Y);const X=a.modelValue??"";a.triggerOnFocus&&!g&&z(String(X))}},P=Y=>{setTimeout(()=>{var X;if((X=f.value)!=null&&X.isFocusInsideContent()){p=!0;return}b.value&&j(),o("blur",Y)})},B=()=>{b.value=!1,o(at,""),o("clear")},W=async()=>{var Y;(Y=c.value)!=null&&Y.isComposing||(T.value&&m.value>=0&&m.value{T.value&&(Y.preventDefault(),Y.stopPropagation(),j())},j=()=>{b.value=!1},G=()=>{var Y;(Y=c.value)==null||Y.focus()},ee=()=>{var Y;(Y=c.value)==null||Y.blur()},te=async Y=>{o(Sn,Y[a.valueKey]),o(at,Y[a.valueKey]),o("select",Y),v.value=[],m.value=-1},ue=Y=>{var me,$e;if(!T.value||C.value)return;if(Y<0){if(!a.loopNavigation){m.value=-1;return}Y=v.value.length-1}Y>=v.value.length&&(Y=a.loopNavigation?0:v.value.length-1);const[X,H]=ne(),Z=H[Y],le=X.scrollTop,{offsetTop:ce,scrollHeight:ge}=Z;ce+ge>le+X.clientHeight&&(X.scrollTop=ce+ge-X.clientHeight),ce{const Y=d.value.querySelector(`.${u.be("suggestion","wrap")}`);return[Y,Y.querySelectorAll(`.${u.be("suggestion","list")} li`)]},de=Bp(h,Y=>{var H;if((H=f.value)!=null&&H.isFocusInsideContent())return;const X=p;p=!1,T.value&&(X?P(new FocusEvent("blur",Y)):j())}),se=Y=>{switch(Kt(Y)){case we.up:Y.preventDefault(),ue(m.value-1);break;case we.down:Y.preventDefault(),ue(m.value+1);break;case we.enter:case we.numpadEnter:Y.preventDefault(),W();break;case we.tab:j();break;case we.esc:K(Y);break;case we.home:Y.preventDefault(),ue(0);break;case we.end:Y.preventDefault(),ue(v.value.length-1);break;case we.pageUp:Y.preventDefault(),ue(Math.max(0,m.value-10));break;case we.pageDown:Y.preventDefault(),ue(Math.min(v.value.length-1,m.value+10));break}};return Lt(()=>{de==null||de()}),mt(()=>{var X;const Y=(X=c.value)==null?void 0:X.ref;Y&&([{key:"role",value:"textbox"},{key:"aria-autocomplete",value:"list"},{key:"aria-controls",value:S.value},{key:"aria-activedescendant",value:`${S.value}-item-${m.value}`}].forEach(({key:H,value:Z})=>Y.setAttribute(H,Z)),g=Y.hasAttribute("readonly"))}),t({highlightedIndex:m,activated:b,loading:C,inputRef:c,popperRef:f,suggestions:v,handleSelect:te,handleKeyEnter:W,focus:G,blur:ee,close:j,highlight:ue,getData:L}),(Y,X)=>(_(),ie(i(Fn),{ref_key:"popperRef",ref:f,visible:T.value,placement:e.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[i(u).e("popper"),e.popperClass],"popper-style":e.popperStyle,teleported:e.teleported,"append-to":e.appendTo,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${i(u).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:O,onHide:I},{content:ae(()=>[E("div",{ref_key:"regionRef",ref:d,class:R([i(u).b("suggestion"),i(u).is("loading",M.value)]),style:We({[e.fitInputWidth?"width":"minWidth"]:y.value,outline:"none"}),role:"region"},[Y.$slots.header?(_(),$("div",{key:0,class:R(i(u).be("suggestion","header")),onClick:X[0]||(X[0]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"header")],2)):re("v-if",!0),Q(i(uo),{id:i(S),tag:"ul","wrap-class":i(u).be("suggestion","wrap"),"view-class":i(u).be("suggestion","list"),role:"listbox"},{default:ae(()=>[M.value?(_(),$("li",RK,[oe(Y.$slots,"loading",{},()=>[Q(i(ze),{class:R(i(u).is("loading"))},{default:ae(()=>[Q(i(io))]),_:1},8,["class"])])])):(_(!0),$(He,{key:1},Ct(v.value,(H,Z)=>(_(),$("li",{id:`${i(S)}-item-${Z}`,key:Z,class:R({highlighted:m.value===Z}),role:"option","aria-selected":m.value===Z,onClick:le=>te(H)},[oe(Y.$slots,"default",{item:H},()=>[_t(_e(H[e.valueKey]),1)])],10,NK))),128))]),_:3},8,["id","wrap-class","view-class"]),Y.$slots.footer?(_(),$("div",{key:1,class:R(i(u).be("suggestion","footer")),onClick:X[1]||(X[1]=Xe(()=>{},["stop"]))},[oe(Y.$slots,"footer")],2)):re("v-if",!0)],6)]),default:ae(()=>[E("div",{ref_key:"listboxRef",ref:h,class:R([i(u).b(),Y.$attrs.class]),style:We(k.value),role:"combobox","aria-haspopup":"listbox","aria-expanded":T.value,"aria-owns":i(S)},[Q(i(jn),pt({ref_key:"inputRef",ref:c},pt(l.value,Y.$attrs),{"model-value":e.modelValue,disabled:i(s),onInput:q,onChange:F,onFocus:N,onBlur:P,onClear:B,onKeydown:se,onMousedown:U}),ga({_:2},[Y.$slots.prepend?{name:"prepend",fn:ae(()=>[oe(Y.$slots,"prepend")]),key:"0"}:void 0,Y.$slots.append?{name:"append",fn:ae(()=>[oe(Y.$slots,"append")]),key:"1"}:void 0,Y.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Y.$slots,"prefix")]),key:"2"}:void 0,Y.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(Y.$slots,"suffix")]),key:"3"}:void 0]),1040,["model-value","disabled"])],14,AK)]),_:3},8,["visible","placement","popper-class","popper-style","teleported","append-to","transition"]))}}),IK=PK;const LK=rt(IK),VK=Ce({size:{type:[Number,String],values:vo,validator:e=>De(e)},shape:{type:String,values:["circle","square"]},icon:{type:Ft},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:J(String),default:"cover"}}),BK={error:e=>e instanceof Event},sb=Symbol("avatarGroupContextKey"),zK={size:{type:J([Number,String]),values:vo,validator:e=>De(e)},shape:{type:J(String),values:["circle","square"]},collapseAvatars:Boolean,collapseAvatarsTooltip:Boolean,maxCollapseAvatars:{type:Number,default:1},effect:{type:J(String),default:"light"},placement:{type:J(String),values:Uo,default:"top"},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,collapseClass:String,collapseStyle:{type:J([String,Array,Object])}},DK=["src","alt","srcset"];var HK=D({name:"ElAvatar",__name:"avatar",props:VK,emits:BK,setup(e,{emit:t}){const n=e,a=t,o=Ne(sb,void 0),l=ve("avatar"),r=V(!1),s=x(()=>n.size??(o==null?void 0:o.size)),u=x(()=>n.shape??(o==null?void 0:o.shape)??"circle"),c=x(()=>{const{icon:g}=n,p=[l.b()];return Ue(s.value)&&p.push(l.m(s.value)),g&&p.push(l.m("icon")),u.value&&p.push(l.m(u.value)),p}),d=x(()=>De(s.value)?l.cssVarBlock({size:cn(s.value)}):void 0),f=x(()=>({objectFit:n.fit}));fe(()=>[n.src,n.srcSet],()=>r.value=!1);function h(g){r.value=!0,a("error",g)}return(g,p)=>(_(),$("span",{class:R(c.value),style:We(d.value)},[(e.src||e.srcSet)&&!r.value?(_(),$("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:We(f.value),onError:h},null,44,DK)):e.icon?(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1})):oe(g.$slots,"default",{key:2})],6))}}),ib=HK,ub=D({name:"ElAvatarGroup",props:zK,setup(e,{slots:t}){const n=ve("avatar-group");return bt(sb,Nt({size:Bt(e,"size"),shape:Bt(e,"shape")})),()=>{var l;const a=Ra(((l=t.default)==null?void 0:l.call(t))??[]);let o=a;if(e.collapseAvatars&&a.length>e.maxCollapseAvatars){o=a.slice(0,e.maxCollapseAvatars);const r=a.slice(e.maxCollapseAvatars);o.push(Q(Fn,{popperClass:e.popperClass,popperStyle:e.popperStyle,placement:e.placement,effect:e.effect,disabled:!e.collapseAvatarsTooltip},{default:()=>Q(ib,{size:e.size,shape:e.shape,class:e.collapseClass,style:e.collapseStyle},{default:()=>[_t("+ "),r.length]}),content:()=>Q("div",{class:n.e("collapse-avatars")},[r.map((s,u)=>Wt(s)?Ho(s,{key:s.key??u}):s)])}))}return Q("div",{class:n.b()},[o])}}});const FK=rt(ib,{AvatarGroup:ub}),KK=ln(ub),WK={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},jK={click:e=>e instanceof MouseEvent},qK=(e,t,n)=>{const a=qt(),o=qt(),l=V(!1),r=()=>{a.value&&(l.value=a.value.scrollTop>=e.visibilityHeight)},s=u=>{var c;(c=a.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)};return Vt(o,"scroll",P6(r,300,!0)),mt(()=>{o.value=document,a.value=document.documentElement,e.target&&(a.value=document.querySelector(e.target)??void 0,a.value||on(n,`target does not exist: ${e.target}`),o.value=a.value),r()}),{visible:l,handleClick:s}},og="ElBacktop";var UK=D({name:og,__name:"backtop",props:WK,emits:jK,setup(e,{emit:t}){const n=e,a=t,o=ve("backtop"),{handleClick:l,visible:r}=qK(n,a,og),s=x(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(u,c)=>(_(),ie(qn,{name:`${i(o).namespace.value}-fade-in`},{default:ae(()=>[i(r)?(_(),$("div",{key:0,style:We(s.value),class:R(i(o).b()),onClick:c[0]||(c[0]=Xe((...d)=>i(l)&&i(l)(...d),["stop"]))},[oe(u.$slots,"default",{},()=>[Q(i(ze),{class:R(i(o).e("icon"))},{default:ae(()=>[Q(i(Ey))]),_:1},8,["class"])])],6)):re("v-if",!0)]),_:3},8,["name"]))}}),YK=UK;const GK=rt(YK),XK=Ce({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:J([String,Object,Array])},offset:{type:J(Array),default:()=>[0,0]},badgeClass:{type:String}});var JK=D({name:"ElBadge",__name:"badge",props:XK,setup(e,{expose:t}){const n=e,a=ve("badge"),o=x(()=>n.isDot?"":De(n.value)&&De(n.max)?n.max[{backgroundColor:n.color,marginRight:cn(-n.offset[0]),marginTop:cn(n.offset[1])},n.badgeStyle??{}]);return t({content:o}),(r,s)=>(_(),$("div",{class:R(i(a).b())},[oe(r.$slots,"default"),Q(qn,{name:`${i(a).namespace.value}-zoom-in-center`},{default:ae(()=>[!e.hidden&&(o.value||e.isDot||r.$slots.content)?(_(),$("sup",{key:0,class:R([i(a).e("content"),i(a).em("content",e.type),i(a).is("fixed",!!r.$slots.default),i(a).is("dot",e.isDot),i(a).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:We(l.value)},[oe(r.$slots,"content",{value:o.value},()=>[_t(_e(o.value),1)])],6)):re("v-if",!0)]),_:3},8,["name"])],2))}}),ZK=JK;const cb=rt(ZK),QK=Ce({separator:{type:String,default:"/"},separatorIcon:{type:Ft}}),db=Symbol("breadcrumbKey"),eW=Ce({to:{type:J([String,Object]),default:""},replace:Boolean}),tW=["aria-label"];var nW=D({name:"ElBreadcrumb",__name:"breadcrumb",props:QK,setup(e){const{t}=xt(),n=e,a=ve("breadcrumb"),o=V();return bt(db,n),mt(()=>{const l=o.value.querySelectorAll(`.${a.e("item")}`);l.length&&l[l.length-1].setAttribute("aria-current","page")}),(l,r)=>(_(),$("div",{ref_key:"breadcrumb",ref:o,class:R(i(a).b()),"aria-label":i(t)("el.breadcrumb.label"),role:"navigation"},[oe(l.$slots,"default")],10,tW))}}),aW=nW,oW=D({name:"ElBreadcrumbItem",__name:"breadcrumb-item",props:eW,setup(e){const t=e,n=ht(),a=Ne(db,void 0),o=ve("breadcrumb"),l=n.appContext.config.globalProperties.$router,r=()=>{!t.to||!l||(t.replace?l.replace(t.to):l.push(t.to))};return(s,u)=>{var c,d;return _(),$("span",{class:R(i(o).e("item"))},[E("span",{class:R([i(o).e("inner"),i(o).is("link",!!e.to)]),role:"link",onClick:r},[oe(s.$slots,"default")],2),(c=i(a))!=null&&c.separatorIcon?(_(),ie(i(ze),{key:0,class:R(i(o).e("separator"))},{default:ae(()=>[(_(),ie(ut(i(a).separatorIcon)))]),_:1},8,["class"])):(_(),$("span",{key:1,class:R(i(o).e("separator")),role:"presentation"},_e((d=i(a))==null?void 0:d.separator),3))],2)}}}),fb=oW;const lW=rt(aW,{BreadcrumbItem:fb}),rW=ln(fb),O2=["default","primary","success","warning","info","danger","text",""],sW=["button","submit","reset"],$2=Ce({size:On,disabled:{type:Boolean,default:void 0},type:{type:String,values:O2,default:""},icon:{type:Ft},nativeType:{type:String,values:sW,default:"button"},loading:Boolean,loadingIcon:{type:Ft,default:()=>io},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:J([String,Object]),default:"button"}}),iW={click:e=>e instanceof MouseEvent},pb=Symbol(),hd=V();function Tl(e,t=void 0){const n=ht()?Ne(pb,hd):hd;return e?x(()=>{var a;return((a=n.value)==null?void 0:a[e])??t}):n}function Cf(e,t){const n=Tl(),a=ve(e,x(()=>{var s;return((s=n.value)==null?void 0:s.namespace)||Bi})),o=xt(x(()=>{var s;return(s=n.value)==null?void 0:s.locale})),l=Pu(x(()=>{var s;return((s=n.value)==null?void 0:s.zIndex)||ly})),r=x(()=>{var s;return i(t)||((s=n.value)==null?void 0:s.size)||""});return Ih(x(()=>i(n)||{})),{ns:a,locale:o,zIndex:l,size:r}}const Ih=(e,t,n=!1)=>{const a=!!ht(),o=a?Tl():void 0,l=(t==null?void 0:t.provide)??(a?bt:void 0);if(!l){ft("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const r=x(()=>{const s=i(e);return o!=null&&o.value?uW(o.value,s):s});return l(pb,r),l(H8,x(()=>r.value.locale)),l(F8,x(()=>r.value.namespace)),l(ry,x(()=>r.value.zIndex)),l(by,{size:x(()=>r.value.size||"")}),l(Cy,x(()=>({emptyValues:r.value.emptyValues,valueOnClear:r.value.valueOnClear}))),(n||!hd.value)&&(hd.value=r.value),r},uW=(e,t)=>{const n=[...new Set([...tu(e),...tu(t)])],a={};for(const o of n)a[o]=t[o]!==void 0?t[o]:e[o];return a},cW=Ce({a11y:{type:Boolean,default:!0},locale:{type:J(Object)},size:On,button:{type:J(Object)},card:{type:J(Object)},dialog:{type:J(Object)},link:{type:J(Object)},experimentalFeatures:{type:J(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:J(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:J(Object)},...Gr}),na={placement:"top"},dW=D({name:"ElConfigProvider",props:cW,setup(e,{slots:t}){const n=Ih(e);return fe(()=>e.message,a=>{var o;Object.assign(na,((o=n==null?void 0:n.value)==null?void 0:o.message)??{},a??{})},{immediate:!0,deep:!0}),()=>oe(t,"default",{config:n==null?void 0:n.value})}}),fW=rt(dW),hb=Symbol("buttonGroupContextKey"),pW=(e,t)=>{Lo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},x(()=>e.type==="text"));const n=Ne(hb,void 0),a=Tl("button"),{form:o}=Kn(),l=En(x(()=>n==null?void 0:n.size)),r=dn(),s=V(),u=yn(),c=x(()=>{var b;return e.type||(n==null?void 0:n.type)||((b=a.value)==null?void 0:b.type)||""}),d=x(()=>{var b;return e.autoInsertSpace??((b=a.value)==null?void 0:b.autoInsertSpace)??!1}),f=x(()=>{var b;return e.plain??((b=a.value)==null?void 0:b.plain)??!1}),h=x(()=>{var b;return e.round??((b=a.value)==null?void 0:b.round)??!1}),g=x(()=>{var b;return e.text??((b=a.value)==null?void 0:b.text)??!1}),p=x(()=>{var b;return e.dashed??((b=a.value)==null?void 0:b.dashed)??!1}),v=x(()=>e.tag==="button"?{ariaDisabled:r.value||e.loading,disabled:r.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),m=x(()=>{var w;const b=(w=u.default)==null?void 0:w.call(u);if(d.value&&(b==null?void 0:b.length)===1){const C=b[0];if((C==null?void 0:C.type)===Xs){const S=C.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(S.trim())}}return!1});return{_disabled:r,_size:l,_type:c,_ref:s,_props:v,_plain:f,_round:h,_text:g,_dashed:p,shouldAddSpace:m,handleClick:b=>{if(r.value||e.loading){b.stopPropagation();return}e.nativeType==="reset"&&(o==null||o.resetFields()),t("click",b)}}};function Zn(e,t){hW(e)&&(e="100%");const n=vW(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function vc(e){return Math.min(1,Math.max(0,e))}function hW(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function vW(e){return typeof e=="string"&&e.indexOf("%")!==-1}function vb(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function mc(e){return Number(e)<=1?`${Number(e)*100}%`:e}function wr(e){return e.length===1?"0"+e:String(e)}function mW(e,t,n){return{r:Zn(e,255)*255,g:Zn(t,255)*255,b:Zn(n,255)*255}}function lg(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0,r=0;const s=(a+o)/2;if(a===o)r=0,l=0;else{const u=a-o;switch(r=s>.5?u/(2-a-o):u/(a+o),a){case e:l=(t-n)/u+(t1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function gW(e,t,n){let a,o,l;if(e=Zn(e,360),t=Zn(t,100),n=Zn(n,100),t===0)o=n,l=n,a=n;else{const r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;a=p0(s,r,e+1/3),o=p0(s,r,e),l=p0(s,r,e-1/3)}return{r:a*255,g:o*255,b:l*255}}function rg(e,t,n){e=Zn(e,255),t=Zn(t,255),n=Zn(n,255);const a=Math.max(e,t,n),o=Math.min(e,t,n);let l=0;const r=a,s=a-o,u=a===0?0:s/a;if(a===o)l=0;else{switch(a){case e:l=(t-n)/s+(t>16,g:(e&65280)>>8,b:e&255}}const A2={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function SW(e){let t={r:0,g:0,b:0},n=1,a=null,o=null,l=null,r=!1,s=!1;return typeof e=="string"&&(e=EW(e)),typeof e=="object"&&(Ma(e.r)&&Ma(e.g)&&Ma(e.b)?(t=mW(e.r,e.g,e.b),r=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Ma(e.h)&&Ma(e.s)&&Ma(e.v)?(a=mc(e.s),o=mc(e.v),t=yW(e.h,a,o),r=!0,s="hsv"):Ma(e.h)&&Ma(e.s)&&Ma(e.l)?(a=mc(e.s),l=mc(e.l),t=gW(e.h,a,l),r=!0,s="hsl"):Ma(e.c)&&Ma(e.m)&&Ma(e.y)&&Ma(e.k)&&(t=wW(e.c,e.m,e.y,e.k),r=!0,s="cmyk"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=vb(n),{ok:r,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}const xW="[-\\+]?\\d+%?",kW="[-\\+]?\\d*\\.\\d+%?",Fl="(?:"+kW+")|(?:"+xW+")",h0="[\\s|\\(]+("+Fl+")[,|\\s]+("+Fl+")[,|\\s]+("+Fl+")\\s*\\)?",gc="[\\s|\\(]+("+Fl+")[,|\\s]+("+Fl+")[,|\\s]+("+Fl+")[,|\\s]+("+Fl+")\\s*\\)?",Fa={CSS_UNIT:new RegExp(Fl),rgb:new RegExp("rgb"+h0),rgba:new RegExp("rgba"+gc),hsl:new RegExp("hsl"+h0),hsla:new RegExp("hsla"+gc),hsv:new RegExp("hsv"+h0),hsva:new RegExp("hsva"+gc),cmyk:new RegExp("cmyk"+gc),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function EW(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=!1;if(A2[e])e=A2[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let n=Fa.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Fa.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Fa.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Fa.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Fa.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Fa.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Fa.cmyk.exec(e),n?{c:n[1],m:n[2],y:n[3],k:n[4]}:(n=Fa.hex8.exec(e),n?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),a:ug(n[4]),format:t?"name":"hex8"}:(n=Fa.hex6.exec(e),n?{r:Oa(n[1]),g:Oa(n[2]),b:Oa(n[3]),format:t?"name":"hex"}:(n=Fa.hex4.exec(e),n?{r:Oa(n[1]+n[1]),g:Oa(n[2]+n[2]),b:Oa(n[3]+n[3]),a:ug(n[4]+n[4]),format:t?"name":"hex8"}:(n=Fa.hex3.exec(e),n?{r:Oa(n[1]+n[1]),g:Oa(n[2]+n[2]),b:Oa(n[3]+n[3]),format:t?"name":"hex"}:!1))))))))))}function Ma(e){return typeof e=="number"?!Number.isNaN(e):Fa.CSS_UNIT.test(e)}class mn{constructor(t="",n={}){if(t instanceof mn)return t;typeof t=="number"&&(t=_W(t)),this.originalInput=t;const a=SW(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=n.format??a.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=a.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3}getLuminance(){const t=this.toRgb();let n,a,o;const l=t.r/255,r=t.g/255,s=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),r<=.03928?a=r/12.92:a=Math.pow((r+.055)/1.055,2.4),s<=.03928?o=s/12.92:o=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*a+.0722*o}getAlpha(){return this.a}setAlpha(t){return this.a=vb(t),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:t}=this.toHsl();return t===0}toHsv(){const t=rg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}}toHsvString(){const t=rg(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?`hsv(${n}, ${a}%, ${o}%)`:`hsva(${n}, ${a}%, ${o}%, ${this.roundA})`}toHsl(){const t=lg(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}}toHslString(){const t=lg(this.r,this.g,this.b),n=Math.round(t.h*360),a=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?`hsl(${n}, ${a}%, ${o}%)`:`hsla(${n}, ${a}%, ${o}%, ${this.roundA})`}toHex(t=!1){return sg(this.r,this.g,this.b,t)}toHexString(t=!1){return"#"+this.toHex(t)}toHex8(t=!1){return bW(this.r,this.g,this.b,this.a,t)}toHex8String(t=!1){return"#"+this.toHex8(t)}toHexShortString(t=!1){return this.a===1?this.toHexString(t):this.toHex8String(t)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const t=Math.round(this.r),n=Math.round(this.g),a=Math.round(this.b);return this.a===1?`rgb(${t}, ${n}, ${a})`:`rgba(${t}, ${n}, ${a}, ${this.roundA})`}toPercentageRgb(){const t=n=>`${Math.round(Zn(n,255)*100)}%`;return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}}toPercentageRgbString(){const t=n=>Math.round(Zn(n,255)*100);return this.a===1?`rgb(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%)`:`rgba(${t(this.r)}%, ${t(this.g)}%, ${t(this.b)}%, ${this.roundA})`}toCmyk(){return{...ig(this.r,this.g,this.b)}}toCmykString(){const{c:t,m:n,y:a,k:o}=ig(this.r,this.g,this.b);return`cmyk(${t}, ${n}, ${a}, ${o})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const t="#"+sg(this.r,this.g,this.b,!1);for(const[n,a]of Object.entries(A2))if(t===a)return n;return!1}toString(t){const n=!!t;t=t??this.format;let a=!1;const o=this.a<1&&this.a>=0;return!n&&o&&(t.startsWith("hex")||t==="name")?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(a=this.toRgbString()),t==="prgb"&&(a=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(a=this.toHexString()),t==="hex3"&&(a=this.toHexString(!0)),t==="hex4"&&(a=this.toHex8String(!0)),t==="hex8"&&(a=this.toHex8String()),t==="name"&&(a=this.toName()),t==="hsl"&&(a=this.toHslString()),t==="hsv"&&(a=this.toHsvString()),t==="cmyk"&&(a=this.toCmykString()),a||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new mn(this.toString())}lighten(t=10){const n=this.toHsl();return n.l+=t/100,n.l=vc(n.l),new mn(n)}brighten(t=10){const n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new mn(n)}darken(t=10){const n=this.toHsl();return n.l-=t/100,n.l=vc(n.l),new mn(n)}tint(t=10){return this.mix("white",t)}shade(t=10){return this.mix("black",t)}desaturate(t=10){const n=this.toHsl();return n.s-=t/100,n.s=vc(n.s),new mn(n)}saturate(t=10){const n=this.toHsl();return n.s+=t/100,n.s=vc(n.s),new mn(n)}greyscale(){return this.desaturate(100)}spin(t){const n=this.toHsl(),a=(n.h+t)%360;return n.h=a<0?360+a:a,new mn(n)}mix(t,n=50){const a=this.toRgb(),o=new mn(t).toRgb(),l=n/100,r={r:(o.r-a.r)*l+a.r,g:(o.g-a.g)*l+a.g,b:(o.b-a.b)*l+a.b,a:(o.a-a.a)*l+a.a};return new mn(r)}analogous(t=6,n=30){const a=this.toHsl(),o=360/n,l=[this];for(a.h=(a.h-(o*t>>1)+720)%360;--t;)a.h=(a.h+o)%360,l.push(new mn(a));return l}complement(){const t=this.toHsl();return t.h=(t.h+180)%360,new mn(t)}monochromatic(t=6){const n=this.toHsv(),{h:a}=n,{s:o}=n;let{v:l}=n;const r=[],s=1/t;for(;t--;)r.push(new mn({h:a,s:o,v:l})),l=(l+s)%1;return r}splitcomplement(){const t=this.toHsl(),{h:n}=t;return[this,new mn({h:(n+72)%360,s:t.s,l:t.l}),new mn({h:(n+216)%360,s:t.s,l:t.l})]}onBackground(t){const n=this.toRgb(),a=new mn(t).toRgb(),o=n.a+a.a*(1-n.a);return new mn({r:(n.r*n.a+a.r*a.a*(1-n.a))/o,g:(n.g*n.a+a.g*a.a*(1-n.a))/o,b:(n.b*n.a+a.b*a.a*(1-n.a))/o,a:o})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(t){const n=this.toHsl(),{h:a}=n,o=[this],l=360/t;for(let r=1;r{let a={},o=e.color;if(o){const l=o.match(/var\((.*?)\)/);l&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const r=new mn(o),s=e.dark?r.tint(20).toString():ko(r,20);if(e.plain)a=n.cssVarBlock({"bg-color":e.dark?ko(r,90):r.tint(90).toString(),"text-color":o,"border-color":e.dark?ko(r,50):r.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),t.value&&(a[n.cssVarBlockName("disabled-bg-color")]=e.dark?ko(r,90):r.tint(90).toString(),a[n.cssVarBlockName("disabled-text-color")]=e.dark?ko(r,50):r.tint(50).toString(),a[n.cssVarBlockName("disabled-border-color")]=e.dark?ko(r,80):r.tint(80).toString());else if(e.link||e.text){const u=e.dark?ko(r,30):r.tint(30).toString();if(a=n.cssVarBlock({"text-color":o,"hover-text-color":u,"active-text-color":s}),e.link&&(a[n.cssVarBlockName("hover-link-text-color")]=u,a[n.cssVarBlockName("active-color")]=s),t.value){const c=e.dark?ko(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]="transparent",a[n.cssVarBlockName("disabled-text-color")]=c,a[n.cssVarBlockName("disabled-border-color")]="transparent"}}else{const u=e.dark?ko(r,30):r.tint(30).toString(),c=r.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(a=n.cssVarBlock({"bg-color":o,"text-color":c,"border-color":o,"hover-bg-color":u,"hover-text-color":c,"hover-border-color":u,"active-bg-color":s,"active-border-color":s}),t.value){const d=e.dark?ko(r,50):r.tint(50).toString();a[n.cssVarBlockName("disabled-bg-color")]=d,a[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,a[n.cssVarBlockName("disabled-border-color")]=d}}}return a})}var MW=D({name:"ElButton",__name:"button",props:$2,emits:iW,setup(e,{expose:t,emit:n}){const a=e,o=n,l=TW(a),r=ve("button"),{_ref:s,_size:u,_type:c,_disabled:d,_props:f,_plain:h,_round:g,_text:p,_dashed:v,shouldAddSpace:m,handleClick:y}=pW(a,o),b=x(()=>[r.b(),r.m(c.value),r.m(u.value),r.is("disabled",d.value),r.is("loading",a.loading),r.is("plain",h.value),r.is("round",g.value),r.is("circle",a.circle),r.is("text",p.value),r.is("dashed",v.value),r.is("link",a.link),r.is("has-bg",a.bg)]);return t({ref:s,size:u,type:c,disabled:d,shouldAddSpace:m}),(w,C)=>(_(),ie(ut(e.tag),pt({ref_key:"_ref",ref:s},i(f),{class:b.value,style:i(l),onClick:i(y)}),{default:ae(()=>[e.loading?(_(),$(He,{key:0},[w.$slots.loading?oe(w.$slots,"loading",{key:0}):(_(),ie(i(ze),{key:1,class:R(i(r).is("loading"))},{default:ae(()=>[(_(),ie(ut(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||w.$slots.icon?(_(),ie(i(ze),{key:1},{default:ae(()=>[e.icon?(_(),ie(ut(e.icon),{key:0})):oe(w.$slots,"icon",{key:1})]),_:3})):re("v-if",!0),w.$slots.default?(_(),$("span",{key:2,class:R({[i(r).em("text","expand")]:i(m)})},[oe(w.$slots,"default")],2)):re("v-if",!0)]),_:3},16,["class","style","onClick"]))}}),OW=MW;const $W={size:$2.size,type:$2.type,direction:{type:J(String),values:["horizontal","vertical"],default:"horizontal"}};var AW=D({name:"ElButtonGroup",__name:"button-group",props:$W,setup(e){const t=e;bt(hb,Nt({size:Bt(t,"size"),type:Bt(t,"type")}));const n=ve("button");return(a,o)=>(_(),$("div",{class:R([i(n).b("group"),i(n).bm("group",t.direction)])},[oe(a.$slots,"default")],2))}}),mb=AW;const Ln=rt(OW,{ButtonGroup:mb}),gb=ln(mb),RW=e=>Ve(e)&&e.length===2&&e.every(t=>$s(t)),NW=Ce({modelValue:{type:Date},range:{type:J(Array),validator:RW},controllerType:{type:String,values:["button","select"],default:"button"},formatter:{type:J(Function)}}),PW={[at]:e=>$s(e),[Sn]:e=>$s(e)},cg=["hours","minutes","seconds"],co="EP_PICKER_BASE",Lh="ElPopperOptions",yb=Symbol("commonPickerContextKey"),Dr="HH:mm:ss",ll="YYYY-MM-DD",IW={date:ll,dates:ll,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${ll} ${Dr}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:ll,datetimerange:`${ll} ${Dr}`};var Ml=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Pde(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var bb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){var n=1e3,a=6e4,o=36e5,l="millisecond",r="second",s="minute",u="hour",c="day",d="week",f="month",h="quarter",g="year",p="date",v="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var U=["th","st","nd","rd"],F=q%100;return"["+q+(U[(F-20)%10]||U[F]||U[0])+"]"}},w=function(q,U,F){var N=String(q);return!N||N.length>=U?q:""+Array(U+1-N.length).join(F)+q},C={s:w,z:function(q){var U=-q.utcOffset(),F=Math.abs(U),N=Math.floor(F/60),P=F%60;return(U<=0?"+":"-")+w(N,2,"0")+":"+w(P,2,"0")},m:function q(U,F){if(U.date()1)return q(W[0])}else{var K=U.name;k[K]=U,P=K}return!N&&P&&(S=P),P||!N&&S},O=function(q,U){if(M(q))return q.clone();var F=typeof U=="object"?U:{};return F.date=q,F.args=arguments,new L(F)},I=C;I.l=A,I.i=M,I.w=function(q,U){return O(q,{locale:U.$L,utc:U.$u,x:U.$x,$offset:U.$offset})};var L=function(){function q(F){this.$L=A(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var U=q.prototype;return U.parse=function(F){this.$d=function(N){var P=N.date,B=N.utc;if(P===null)return new Date(NaN);if(I.u(P))return new Date;if(P instanceof Date)return new Date(P);if(typeof P=="string"&&!/Z$/i.test(P)){var W=P.match(m);if(W){var K=W[2]-1||0,j=(W[7]||"0").substring(0,3);return B?new Date(Date.UTC(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,j)):new Date(W[1],K,W[3]||1,W[4]||0,W[5]||0,W[6]||0,j)}}return new Date(P)}(F),this.init()},U.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},U.$utils=function(){return I},U.isValid=function(){return this.$d.toString()!==v},U.isSame=function(F,N){var P=O(F);return this.startOf(N)<=P&&P<=this.endOf(N)},U.isAfter=function(F,N){return O(F)[e>0?e-1:void 0,e,eArray.from(Array.from({length:e}).keys()),wb=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),Cb=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dg=function(e,t){const n=$s(e),a=$s(t);return n&&a?e.getTime()===t.getTime():!n&&!a?e===t:!1},_b=function(e,t){const n=Ve(e),a=Ve(t);return n&&a?e.length!==t.length?!1:e.every((o,l)=>dg(o,t[l])):!n&&!a?dg(e,t):!1},fg=function(e,t,n){const a=ha(t)||t==="x"?lt(e).locale(n):lt(e,t).locale(n);return a.isValid()?a:void 0},pg=function(e,t,n){return ha(t)?e:t==="x"?+e:lt(e).locale(n).format(t)},m0=(e,t)=>{const n=[],a=t==null?void 0:t();for(let o=0;oVe(e)?e.map(t=>t.toDate()):e.toDate(),Vh=Ce({disabledHours:{type:J(Function)},disabledMinutes:{type:J(Function)},disabledSeconds:{type:J(Function)}}),Sb=Ce({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),Bh=Ce({automaticDropdown:{type:Boolean,default:!0},id:{type:J([Array,String])},name:{type:J([Array,String])},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:J([String,Object]),default:wo},editable:{type:Boolean,default:!0},saveOnBlur:{type:Boolean,default:!0},prefixIcon:{type:J([String,Object]),default:""},size:On,readonly:Boolean,disabled:{type:Boolean,default:void 0},placeholder:{type:String,default:""},popperOptions:{type:J(Object),default:()=>({})},modelValue:{type:J([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Vh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:J([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:J(String),values:Uo,default:"bottom"},fallbackPlacements:{type:J(Array),default:["bottom","top","right","left"]},...Gr,...ia(["ariaLabel"]),showNow:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean}),VW=Ce({id:{type:J(Array)},name:{type:J(Array)},modelValue:{type:J([Array,String])},startPlaceholder:String,endPlaceholder:String,disabled:Boolean}),xb=(e,t)=>{const{lang:n}=xt(),a=V(!1),o=V(!1),l=V(null),r=x(()=>{const{modelValue:p}=e;return!p||Ve(p)&&!p.filter(Boolean).length}),s=p=>{if(!_b(e.modelValue,p)){let v;Ve(p)?v=p.map(m=>pg(m,e.valueFormat,n.value)):p&&(v=pg(p,e.valueFormat,n.value)),t(at,p&&v,n.value)}},u=x(()=>{let p;if(r.value?c.value.getDefaultValue&&(p=c.value.getDefaultValue()):Ve(e.modelValue)?p=e.modelValue.map(v=>fg(v,e.valueFormat,n.value)):p=fg(e.modelValue??"",e.valueFormat,n.value),c.value.getRangeAvailableTime){const v=c.value.getRangeAvailableTime(p);sn(v,p)||(p=v,r.value||s(Bc(p)))}return Ve(p)&&p.some(v=>!v)&&(p=[]),p}),c=V({});return{parsedValue:u,pickerActualVisible:o,pickerOptions:c,pickerVisible:a,userInput:l,valueIsEmpty:r,emitInput:s,onCalendarChange:p=>{t("calendar-change",p)},onPanelChange:(p,v,m)=>{t("panel-change",p,v,m)},onPick:(p="",v=!1)=>{a.value=v;let m;Ve(p)?m=p.map(y=>y.toDate()):m=p&&p.toDate(),l.value=null,s(m)},onSetPickerOption:p=>{c.value[p[0]]=p[1],c.value.panelReady=!0}}},BW=["id","name","placeholder","value","disabled"],zW=["id","name","placeholder","value","disabled"];var DW=D({name:"PickerRangeTrigger",inheritAttrs:!1,__name:"picker-range-trigger",props:VW,emits:["mouseenter","mouseleave","click","touchstart","focus","blur","startInput","endInput","startChange","endChange"],setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Kn(),{inputId:r}=za(Nt({id:x(()=>{var M;return(M=a.id)==null?void 0:M[0]})}),{formItemContext:l}),s=uf(),u=ve("date"),c=ve("range"),d=V(),f=V(),{wrapperRef:h,isFocused:g}=El(d,{disabled:x(()=>a.disabled)}),p=M=>{o("click",M)},v=M=>{o("mouseenter",M)},m=M=>{o("mouseleave",M)},y=M=>{o("touchstart",M)},b=M=>{o("startInput",M)},w=M=>{o("endInput",M)},C=M=>{o("startChange",M)},S=M=>{o("endChange",M)};return t({focus:()=>{var M;(M=d.value)==null||M.focus()},blur:()=>{var M,A;(M=d.value)==null||M.blur(),(A=f.value)==null||A.blur()}}),(M,A)=>(_(),$("div",{ref_key:"wrapperRef",ref:h,class:R([i(u).is("active",i(g)),M.$attrs.class]),style:We(M.$attrs.style),onClick:p,onMouseenter:v,onMouseleave:m,onTouchstartPassive:y},[oe(M.$slots,"prefix"),E("input",pt(i(s),{id:i(r),ref_key:"inputRef",ref:d,name:M.name&&M.name[0],placeholder:M.startPlaceholder,value:M.modelValue&&M.modelValue[0],class:i(c).b("input"),disabled:M.disabled,onInput:b,onChange:C}),null,16,BW),oe(M.$slots,"range-separator"),E("input",pt(i(s),{id:M.id&&M.id[1],ref_key:"endInputRef",ref:f,name:M.name&&M.name[1],placeholder:M.endPlaceholder,value:M.modelValue&&M.modelValue[1],class:i(c).b("input"),disabled:M.disabled,onInput:w,onChange:S}),null,16,zW),oe(M.$slots,"suffix")],38))}}),HW=DW,FW=D({name:"Picker",__name:"picker",props:Bh,emits:[at,yt,"focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=_l(),r=ve("date"),s=ve("input"),u=ve("range"),{formItem:c}=Kn(),d=Ne(Lh,{}),f=zu(a,null),h=V(),g=V(),p=V(null);let v=!1;const m=dn(),y=xb(a,o),{parsedValue:b,pickerActualVisible:w,userInput:C,pickerVisible:S,pickerOptions:k,valueIsEmpty:T,emitInput:M,onPick:A,onSetPickerOption:O,onCalendarChange:I,onPanelChange:L}=y,{isFocused:z,handleFocus:q,handleBlur:U}=El(g,{disabled:m,beforeFocus(){return a.readonly},afterFocus(){a.automaticDropdown&&(S.value=!0)},beforeBlur(pe){var Ee;return!v&&((Ee=h.value)==null?void 0:Ee.isFocusInsideContent(pe))},afterBlur(){var pe,Ee;Y.value&&!a.saveOnBlur?T.value||(Ee=(pe=k.value).handleCancel)==null||Ee.call(pe):Be(),S.value=!1,v=!1,a.validateEvent&&(c==null||c.validate("blur").catch(it=>ft(it)))}}),F=V(!1),N=x(()=>[r.b("editor"),r.bm("editor",a.type),s.e("wrapper"),r.is("disabled",m.value),r.is("active",S.value),u.b("editor"),ke?u.bm("editor",ke.value):"",l.class]),P=x(()=>[s.e("icon"),u.e("close-icon"),ce.value?"":u.em("close-icon","hidden")]);fe(S,pe=>{pe?Ie(()=>{pe&&(p.value=a.modelValue)}):(C.value=null,Ie(()=>{B(a.modelValue)}))});const B=(pe,Ee)=>{(Ee||!_b(pe,p.value))&&(o(yt,pe),Ee&&(p.value=pe),a.validateEvent&&(c==null||c.validate("change").catch(it=>ft(it))))},W=pe=>{o("keydown",pe)},K=x(()=>g.value?Array.from(g.value.$el.querySelectorAll("input")):[]),j=(pe,Ee,it)=>{const Pt=K.value;Pt.length&&(!it||it==="min"?(Pt[0].setSelectionRange(pe,Ee),Pt[0].focus()):it==="max"&&(Pt[1].setSelectionRange(pe,Ee),Pt[1].focus()))},G=()=>{w.value=!0},ee=()=>{o("visible-change",!0)},te=()=>{w.value=!1,S.value=!1,o("visible-change",!1)},ue=()=>{S.value=!0},ne=()=>{S.value=!1},de=x(()=>{const pe=tt(b.value);return Ve(C.value)?[C.value[0]??(pe&&pe[0])??"",C.value[1]??(pe&&pe[1])??""]:C.value!==null?C.value:Y.value&&T.value&&!a.saveOnBlur||!Y.value&&T.value||!S.value&&T.value?"":pe?X.value||H.value||Z.value?pe.join(", "):pe:""}),se=x(()=>a.type.includes("time")),Y=x(()=>a.type.startsWith("time")),X=x(()=>a.type==="dates"),H=x(()=>a.type==="months"),Z=x(()=>a.type==="years"),le=x(()=>a.prefixIcon||(se.value?xh:ky)),ce=x(()=>a.clearable&&!m.value&&!a.readonly&&!T.value&&(F.value||z.value)),ge=pe=>{a.readonly||m.value||(ce.value&&(pe==null||pe.stopPropagation(),k.value.handleClear?k.value.handleClear():M(f.valueOnClear.value),B(f.valueOnClear.value,!0),te()),o("clear"))},me=async pe=>{var Ee;a.readonly||m.value||(((Ee=pe.target)==null?void 0:Ee.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},$e=()=>{a.readonly||m.value||!T.value&&a.clearable&&(F.value=!0)},Re=()=>{F.value=!1},Ae=pe=>{var Ee;a.readonly||m.value||(((Ee=pe.touches[0].target)==null?void 0:Ee.tagName)!=="INPUT"||z.value||!a.automaticDropdown)&&(S.value=!0)},ye=x(()=>a.type.includes("range")),ke=En(),be=x(()=>{var pe,Ee;return(Ee=(pe=i(h))==null?void 0:pe.popperRef)==null?void 0:Ee.contentRef}),Pe=Bp(g,pe=>{const Ee=i(be),it=Mn(g);Ee&&(pe.target===Ee||pe.composedPath().includes(Ee))||pe.target===it||it&&pe.composedPath().includes(it)||(S.value=!1)});Lt(()=>{Pe==null||Pe()});const Be=()=>{if(Y.value&&!a.saveOnBlur)return;const pe=Ve(C.value)&&C.value.every(Ee=>Ee==="");if(C.value&&!pe){const Ee=Qe(de.value);Ee&&(nt(Ee)&&M(Bc(Ee)),C.value=null)}(C.value===""||pe)&&(M(f.valueOnClear.value),B(f.valueOnClear.value,!0),C.value=null)},Qe=pe=>pe?k.value.parseUserInput(pe):null,tt=pe=>pe?Ve(pe)?pe.map(Ee=>Ee.format(a.format)):pe.format(a.format):null,nt=pe=>k.value.isValidValue(pe),Te=async pe=>{if(a.readonly||m.value)return;const Ee=Kt(pe);if(W(pe),Ee===we.esc){S.value===!0&&(S.value=!1,pe.preventDefault(),pe.stopPropagation());return}if(Ee===we.down&&(k.value.handleFocusPicker&&(pe.preventDefault(),pe.stopPropagation()),S.value===!1&&(S.value=!0,await Ie()),k.value.handleFocusPicker)){k.value.handleFocusPicker();return}if(Ee===we.tab){v=!0;return}if(Ee===we.enter||Ee===we.numpadEnter){S.value?(C.value===null||C.value===""||nt(Qe(de.value)))&&(Be(),S.value=!1):S.value=!0,pe.preventDefault(),pe.stopPropagation();return}if(C.value){pe.stopPropagation();return}k.value.handleKeydownInput&&k.value.handleKeydownInput(pe)},Ye=pe=>{C.value=pe,S.value||(S.value=!0)},st=pe=>{const Ee=pe.target;C.value?C.value=[Ee.value,C.value[1]]:C.value=[Ee.value,null]},Ke=pe=>{const Ee=pe.target;C.value?C.value=[C.value[0],Ee.value]:C.value=[null,Ee.value]},et=()=>{var Pt;const pe=C.value,Ee=Qe(pe&&pe[0]),it=i(b);if(Ee&&Ee.isValid()){C.value=[tt(Ee),((Pt=de.value)==null?void 0:Pt[1])||null];const Xt=[Ee,it&&(it[1]||null)];nt(Xt)&&(M(Bc(Xt)),C.value=null)}},gt=()=>{var Pt;const pe=i(C),Ee=Qe(pe&&pe[1]),it=i(b);if(Ee&&Ee.isValid()){C.value=[((Pt=i(de))==null?void 0:Pt[0])||null,tt(Ee)];const Xt=[it&&it[0],Ee];nt(Xt)&&(M(Bc(Xt)),C.value=null)}},he=()=>{var pe;(pe=g.value)==null||pe.focus()},Le=()=>{var pe;(pe=g.value)==null||pe.blur()};return bt(co,{props:a,emptyValues:f}),bt(yb,y),t({focus:he,blur:Le,handleOpen:ue,handleClose:ne,onPick:A}),(pe,Ee)=>(_(),ie(i(Fn),pt({ref_key:"refPopper",ref:h,visible:i(S),effect:"light",pure:"",trigger:"click"},pe.$attrs,{role:"dialog",teleported:"",transition:`${i(r).namespace.value}-zoom-in-top`,"popper-class":[`${i(r).namespace.value}-picker__popper`,pe.popperClass],"popper-style":pe.popperStyle,"popper-options":i(d),"fallback-placements":pe.fallbackPlacements,"gpu-acceleration":!1,placement:pe.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:G,onShow:ee,onHide:te}),{default:ae(()=>[ye.value?(_(),ie(HW,{key:1,id:pe.id,ref_key:"inputRef",ref:g,"model-value":de.value,name:pe.name,disabled:i(m),readonly:!pe.editable||pe.readonly,"start-placeholder":pe.startPlaceholder,"end-placeholder":pe.endPlaceholder,class:R(N.value),style:We(pe.$attrs.style),"aria-label":pe.ariaLabel,tabindex:pe.tabindex,autocomplete:"off",role:"combobox",onClick:me,onFocus:i(q),onBlur:i(U),onStartInput:st,onStartChange:et,onEndInput:Ke,onEndChange:gt,onMousedown:me,onMouseenter:$e,onMouseleave:Re,onTouchstartPassive:Ae,onKeydown:Te},{prefix:ae(()=>[le.value?(_(),ie(i(ze),{key:0,class:R([i(s).e("icon"),i(u).e("icon")])},{default:ae(()=>[(_(),ie(ut(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),"range-separator":ae(()=>[oe(pe.$slots,"range-separator",{},()=>[E("span",{class:R(i(u).b("separator"))},_e(pe.rangeSeparator),3)])]),suffix:ae(()=>[pe.clearIcon?(_(),ie(i(ze),{key:0,class:R(P.value),onMousedown:Xe(i(Yt),["prevent"]),onClick:ge},{default:ae(()=>[(_(),ie(ut(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:3},8,["id","model-value","name","disabled","readonly","start-placeholder","end-placeholder","class","style","aria-label","tabindex","onFocus","onBlur"])):(_(),ie(i(jn),{key:0,id:pe.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":de.value,name:pe.name,size:i(ke),disabled:i(m),placeholder:pe.placeholder,class:R([i(r).b("editor"),i(r).bm("editor",pe.type),i(r).is("focus",i(S)),pe.$attrs.class]),style:We(pe.$attrs.style),readonly:!pe.editable||pe.readonly||X.value||H.value||Z.value||pe.type==="week","aria-label":pe.ariaLabel,tabindex:pe.tabindex,"validate-event":!1,onInput:Ye,onFocus:i(q),onBlur:i(U),onKeydown:Te,onChange:Be,onMousedown:me,onMouseenter:$e,onMouseleave:Re,onTouchstartPassive:Ae,onClick:Ee[0]||(Ee[0]=Xe(()=>{},["stop"]))},{prefix:ae(()=>[le.value?(_(),ie(i(ze),{key:0,class:R(i(s).e("icon")),onMousedown:Xe(me,["prevent"]),onTouchstartPassive:Ae},{default:ae(()=>[(_(),ie(ut(le.value)))]),_:1},8,["class"])):re("v-if",!0)]),suffix:ae(()=>[ce.value&&pe.clearIcon?(_(),ie(i(ze),{key:0,class:R(`${i(s).e("icon")} clear-icon`),onMousedown:Xe(i(Yt),["prevent"]),onClick:ge},{default:ae(()=>[(_(),ie(ut(pe.clearIcon)))]),_:1},8,["class","onMousedown"])):re("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onFocus","onBlur"]))]),content:ae(()=>[oe(pe.$slots,"default",{visible:i(S),actualVisible:i(w),parsedValue:i(b),format:pe.format,dateFormat:pe.dateFormat,timeFormat:pe.timeFormat,unlinkPanels:pe.unlinkPanels,type:pe.type,defaultValue:pe.defaultValue,showNow:pe.showNow,showConfirm:pe.showConfirm,showFooter:pe.showFooter,showWeekNumber:pe.showWeekNumber,onPick:Ee[1]||(Ee[1]=(...it)=>i(A)&&i(A)(...it)),onSelectRange:j,onSetPickerOption:Ee[2]||(Ee[2]=(...it)=>i(O)&&i(O)(...it)),onCalendarChange:Ee[3]||(Ee[3]=(...it)=>i(I)&&i(I)(...it)),onClear:ge,onPanelChange:Ee[4]||(Ee[4]=(...it)=>i(L)&&i(L)(...it)),onMousedown:Ee[5]||(Ee[5]=Xe(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-style","popper-options","fallback-placements","placement"]))}}),kb=FW;const KW=Ce({...Sb,datetimeRole:String,parsedValue:{type:J(Object)}}),Eb=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(h=>{if(d[h]){let g;const p=d[h];switch(h){case"minute":g=p(f.hour(),s,c);break;case"second":g=p(f.hour(),f.minute(),s,c);break;default:g=p(s,c);break}if(g!=null&&g.length&&!g.includes(f[h]())){const v=u?0:g.length-1;f=f[h](g[v])}}}),f},o={};return{timePickerOptions:o,getAvailableTime:a,onSetOption:([r,s])=>{o[r]=s}}},g0=e=>{const t=(a,o)=>a||o,n=a=>a!==!0;return e.map(t).filter(n)},Tb=(e,t,n)=>({getHoursList:(r,s)=>m0(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>m0(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>m0(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),Mb=(e,t,n)=>{const{getHoursList:a,getMinutesList:o,getSecondsList:l}=Tb(e,t,n);return{getAvailableHours:(c,d)=>g0(a(c,d)),getAvailableMinutes:(c,d,f)=>g0(o(c,d,f)),getAvailableSeconds:(c,d,f,h)=>g0(l(c,d,f,h))}},Ob=(e,t)=>{const n=V(e.parsedValue);return fe(()=>e.visible,a=>{const o=Hv(t.modelValue),l=Hv(t.valueOnClear);if(a&&o===l){n.value=l;return}a||(n.value=e.parsedValue)}),n},WW=Ce({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...Vh}),jW=["onClick"],qW=["onMouseenter"];var UW=D({__name:"basic-time-spinner",props:WW,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:o,saveOnBlur:l}=Ne(co).props,r=t,s=ve("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=Tb(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const h={hours:!1,minutes:!1,seconds:!1},g=V(),p={hours:V(),minutes:V(),seconds:V()},v=x(()=>n.showSeconds?cg:cg.slice(0,2)),m=x(()=>{const{spinnerDate:K}=n;return{hours:K.hour(),minutes:K.minute(),seconds:K.second()}}),y=x(()=>{const{hours:K,minutes:j}=i(m),{role:G,spinnerDate:ee}=n,te=a?void 0:ee;return{hours:u(G,te),minutes:c(K,G,te),seconds:d(K,j,G,te)}}),b=x(()=>{const{hours:K,minutes:j,seconds:G}=i(m);return{hours:v0(K,23),minutes:v0(j,59),seconds:v0(G,59)}}),w=Ko(K=>{f=!1,k(K)},200),C=K=>{if(!n.amPmMode)return"";const j=n.amPmMode==="A";let G=K<12?" am":" pm";return j&&(G=G.toUpperCase()),G},S=K=>{let j=[0,0];const G=o||Dr,ee=G.indexOf("HH"),te=G.indexOf("mm"),ue=G.indexOf("ss");switch(K){case"hours":ee!==-1&&(j=[ee,ee+2]);break;case"minutes":te!==-1&&(j=[te,te+2]);break;case"seconds":ue!==-1&&(j=[ue,ue+2]);break}const[ne,de]=j;r("select-range",ne,de),g.value=K},k=K=>{A(K,i(m)[K])},T=()=>{k("hours"),k("minutes"),k("seconds")},M=K=>K.querySelector(`.${s.namespace.value}-scrollbar__wrap`),A=(K,j)=>{if(n.arrowControl)return;const G=i(p[K]);G&&G.$el&&(l||(h[K]=!0,Ua(()=>{h[K]=!1})),M(G.$el).scrollTop=Math.max(0,j*O(K)))},O=K=>{var G;const j=(G=i(p[K]))==null?void 0:G.$el.querySelector("li");return j&&Number.parseFloat(ol(j,"height"))||0},I=()=>{z(1)},L=()=>{z(-1)},z=K=>{g.value||S("hours");const j=g.value,G=i(m)[j],ee=q(j,G,K,g.value==="hours"?24:60);U(j,ee),A(j,ee),Ie(()=>S(j))},q=(K,j,G,ee)=>{let te=(j+G+ee)%ee;const ue=i(y)[K];for(;ue[te]&&te!==j;)te=(te+G+ee)%ee;return te},U=(K,j)=>{if(i(y)[K][j])return;const{hours:G,minutes:ee,seconds:te}=i(m);let ue;switch(K){case"hours":ue=n.spinnerDate.hour(j).minute(ee).second(te);break;case"minutes":ue=n.spinnerDate.hour(G).minute(j).second(te);break;case"seconds":ue=n.spinnerDate.hour(G).minute(ee).second(j);break}r(yt,ue)},F=(K,{value:j,disabled:G})=>{G||(U(K,j),S(K),A(K,j))},N=K=>{if(!l&&h[K])return;const j=i(p[K]);j&&(f=!0,w(K),U(K,Math.min(Math.round((M(j.$el).scrollTop-(P(K)*.5-10)/O(K)+3)/O(K)),K==="hours"?23:59)))},P=K=>i(p[K]).$el.offsetHeight,B=()=>{const K=j=>{const G=i(p[j]);G&&G.$el&&(M(G.$el).onscroll=()=>{N(j)})};K("hours"),K("minutes"),K("seconds")};mt(()=>{Ie(()=>{!n.arrowControl&&B(),T(),n.role==="start"&&S("hours")})});const W=(K,j)=>{p[j].value=K??void 0};return r("set-option",[`${n.role}_scrollDown`,z]),r("set-option",[`${n.role}_emitSelectRange`,S]),fe(()=>n.spinnerDate,()=>{f||T()}),(K,j)=>(_(),$("div",{class:R([i(s).b("spinner"),{"has-seconds":K.showSeconds}])},[K.arrowControl?re("v-if",!0):(_(!0),$(He,{key:0},Ct(v.value,G=>(_(),ie(i(uo),{key:G,ref_for:!0,ref:ee=>W(ee,G),class:R(i(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":i(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:ee=>S(G),onMousemove:ee=>k(G)},{default:ae(()=>[(_(!0),$(He,null,Ct(y.value[G],(ee,te)=>(_(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",te===m.value[G]),i(s).is("disabled",ee)]),onClick:ue=>F(G,{value:te,disabled:ee})},[G==="hours"?(_(),$(He,{key:0},[_t(_e(("0"+(K.amPmMode?te%12||12:te)).slice(-2))+_e(C(te)),1)],64)):(_(),$(He,{key:1},[_t(_e(("0"+te).slice(-2)),1)],64))],10,jW))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),K.arrowControl?(_(!0),$(He,{key:1},Ct(v.value,G=>(_(),$("div",{key:G,class:R([i(s).be("spinner","wrapper"),i(s).is("arrow")]),onMouseenter:ee=>S(G)},[dt((_(),ie(i(ze),{class:R(["arrow-up",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(Du))]),_:1},8,["class"])),[[i(ud),L]]),dt((_(),ie(i(ze),{class:R(["arrow-down",i(s).be("spinner","arrow")])},{default:ae(()=>[Q(i(bo))]),_:1},8,["class"])),[[i(ud),I]]),E("ul",{class:R(i(s).be("spinner","list"))},[(_(!0),$(He,null,Ct(b.value[G],(ee,te)=>(_(),$("li",{key:te,class:R([i(s).be("spinner","item"),i(s).is("active",ee===m.value[G]),i(s).is("disabled",y.value[G][ee])])},[i(De)(ee)?(_(),$(He,{key:0},[G==="hours"?(_(),$(He,{key:0},[_t(_e(("0"+(K.amPmMode?ee%12||12:ee)).slice(-2))+_e(C(ee)),1)],64)):(_(),$(He,{key:1},[_t(_e(("0"+ee).slice(-2)),1)],64))],64)):re("v-if",!0)],2))),128))],2)],42,qW))),128)):re("v-if",!0)],2))}}),R2=UW,YW=D({__name:"panel-time-pick",props:KW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=Ne(co),{arrowControl:l,disabledHours:r,disabledMinutes:s,disabledSeconds:u,defaultValue:c}=o.props,{getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}=Mb(r,s,u),g=ve("time"),{t:p,lang:v}=xt(),m=V([0,2]),y=Ob(n,{modelValue:x(()=>o.props.modelValue),valueOnClear:x(()=>o!=null&&o.emptyValues?o.emptyValues.valueOnClear.value:null)}),b=x(()=>kt(n.actualVisible)?`${g.namespace.value}-zoom-in-top`:""),w=x(()=>n.format.includes("ss")),C=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),S=P=>{const B=lt(P).locale(v.value),W=U(B);return B.isSame(W)},k=()=>{const P=y.value;a("pick",P,!1),Ie(()=>{y.value=P})},T=(P=!1,B=!1)=>{B||a("pick",n.parsedValue,P)},M=P=>{n.visible&&a("pick",U(P).millisecond(0),!0)},A=(P,B)=>{a("select-range",P,B),m.value=[P,B]},O=P=>{const B=n.format,W=B.indexOf("HH"),K=B.indexOf("mm"),j=B.indexOf("ss"),G=[],ee=[];W!==-1&&(G.push(W),ee.push("hours")),K!==-1&&(G.push(K),ee.push("minutes")),j!==-1&&w.value&&(G.push(j),ee.push("seconds"));const te=(G.indexOf(m.value[0])+P+G.length)%G.length;L.start_emitSelectRange(ee[te])},I=P=>{const B=Kt(P),{left:W,right:K,up:j,down:G}=we;if([W,K].includes(B)){O(B===W?-1:1),P.preventDefault();return}if([j,G].includes(B)){const ee=B===j?-1:1;L.start_scrollDown(ee),P.preventDefault();return}},{timePickerOptions:L,onSetOption:z,getAvailableTime:q}=Eb({getAvailableHours:d,getAvailableMinutes:f,getAvailableSeconds:h}),U=P=>q(P,n.datetimeRole||"",!0),F=P=>P?lt(P,n.format).locale(v.value):null,N=()=>lt(c).locale(v.value);return a("set-picker-option",["isValidValue",S]),a("set-picker-option",["parseUserInput",F]),a("set-picker-option",["handleKeydownInput",I]),a("set-picker-option",["getRangeAvailableTime",U]),a("set-picker-option",["getDefaultValue",N]),a("set-picker-option",["handleCancel",k]),(P,B)=>(_(),ie(qn,{name:b.value},{default:ae(()=>[P.actualVisible||P.visible?(_(),$("div",{key:0,class:R(i(g).b("panel"))},[E("div",{class:R([i(g).be("panel","content"),{"has-seconds":w.value}])},[Q(R2,{ref:"spinner",role:P.datetimeRole||"start","arrow-control":i(l),"show-seconds":w.value,"am-pm-mode":C.value,"spinner-date":P.parsedValue,"disabled-hours":i(r),"disabled-minutes":i(s),"disabled-seconds":i(u),onChange:M,onSetOption:i(z),onSelectRange:A},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),E("div",{class:R(i(g).be("panel","footer"))},[E("button",{type:"button",class:R([i(g).be("panel","btn"),"cancel"]),onClick:k},_e(i(p)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(g).be("panel","btn"),"confirm"]),onClick:B[0]||(B[0]=W=>T())},_e(i(p)("el.datepicker.confirm")),3)],2)],2)):re("v-if",!0)]),_:1},8,["name"]))}}),vd=YW;const GW=Ce({...Sb,parsedValue:{type:J(Array)}}),XW=["disabled"];var JW=D({__name:"panel-time-range",props:GW,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,a=t,o=(X,H)=>{const Z=[];for(let le=X;le<=H;le++)Z.push(le);return Z},{t:l,lang:r}=xt(),s=ve("time"),u=ve("picker"),c=Ne(co),{arrowControl:d,disabledHours:f,disabledMinutes:h,disabledSeconds:g,defaultValue:p}=c.props,v=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),m=x(()=>[s.be("range-picker","body"),s.be("panel","content"),s.is("arrow",d),S.value?"has-seconds":""]),y=x(()=>n.parsedValue[0]),b=x(()=>n.parsedValue[1]),w=Ob(n,{modelValue:x(()=>c.props.modelValue),valueOnClear:x(()=>c!=null&&c.emptyValues?c.emptyValues.valueOnClear.value:null)}),C=()=>{const X=w.value;a("pick",X,!1),Ie(()=>{w.value=X})},S=x(()=>n.format.includes("ss")),k=x(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=(X=!1)=>{a("pick",[y.value,b.value],X)},M=X=>{I(X.millisecond(0),b.value)},A=X=>{I(y.value,X.millisecond(0))},O=X=>{const H=X.map(le=>lt(le).locale(r.value)),Z=j(H);return H[0].isSame(Z[0])&&H[1].isSame(Z[1])},I=(X,H)=>{n.visible&&a("pick",[X,H],!0)},L=x(()=>y.value>b.value),z=V([0,2]),q=(X,H)=>{a("select-range",X,H,"min"),z.value=[X,H]},U=x(()=>S.value?11:8),F=(X,H)=>{a("select-range",X,H,"max");const Z=i(U);z.value=[X+Z,H+Z]},N=X=>{const H=S.value?[0,3,6,11,14,17]:[0,3,8,11],Z=["hours","minutes"].concat(S.value?["seconds"]:[]),le=(H.indexOf(z.value[0])+X+H.length)%H.length,ce=H.length/2;le{const H=Kt(X),{left:Z,right:le,up:ce,down:ge}=we;if([Z,le].includes(H)){N(H===Z?-1:1),X.preventDefault();return}if([ce,ge].includes(H)){const me=H===ce?-1:1;ue[`${z.value[0]{const Z=f?f(X):[],le=X==="start",ce=(H||(le?b.value:y.value)).hour();return o0(Z,le?o(ce+1,23):o(0,ce-1))},W=(X,H,Z)=>{const le=h?h(X,H):[],ce=H==="start",ge=Z||(ce?b.value:y.value);if(X!==ge.hour())return le;const me=ge.minute();return o0(le,ce?o(me+1,59):o(0,me-1))},K=(X,H,Z,le)=>{const ce=g?g(X,H,Z):[],ge=Z==="start",me=le||(ge?b.value:y.value),$e=me.hour(),Re=me.minute();if(X!==$e||H!==Re)return ce;const Ae=me.second();return o0(ce,ge?o(Ae+1,59):o(0,Ae-1))},j=([X,H])=>[ne(X,"start",!0,H),ne(H,"end",!1,X)],{getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}=Mb(B,W,K),{timePickerOptions:ue,getAvailableTime:ne,onSetOption:de}=Eb({getAvailableHours:G,getAvailableMinutes:ee,getAvailableSeconds:te}),se=X=>X?Ve(X)?X.map(H=>lt(H,n.format).locale(r.value)):lt(X,n.format).locale(r.value):null,Y=()=>{if(Ve(p))return p.map(H=>lt(H).locale(r.value));const X=lt(p).locale(r.value);return[X,X.add(60,"m")]};return a("set-picker-option",["parseUserInput",se]),a("set-picker-option",["isValidValue",O]),a("set-picker-option",["handleKeydownInput",P]),a("set-picker-option",["getDefaultValue",Y]),a("set-picker-option",["getRangeAvailableTime",j]),a("set-picker-option",["handleCancel",C]),(X,H)=>X.actualVisible?(_(),$("div",{key:0,class:R([i(s).b("range-picker"),i(u).b("panel")])},[E("div",{class:R(i(s).be("range-picker","content"))},[E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},_e(i(l)("el.datepicker.startTime")),3),E("div",{class:R(v.value)},[Q(R2,{ref:"minSpinner",role:"start","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":y.value,"disabled-hours":B,"disabled-minutes":W,"disabled-seconds":K,onChange:M,onSetOption:i(de),onSelectRange:q},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),E("div",{class:R(i(s).be("range-picker","cell"))},[E("div",{class:R(i(s).be("range-picker","header"))},_e(i(l)("el.datepicker.endTime")),3),E("div",{class:R(m.value)},[Q(R2,{ref:"maxSpinner",role:"end","show-seconds":S.value,"am-pm-mode":k.value,"arrow-control":i(d),"spinner-date":b.value,"disabled-hours":B,"disabled-minutes":W,"disabled-seconds":K,onChange:A,onSetOption:i(de),onSelectRange:F},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),E("div",{class:R(i(s).be("panel","footer"))},[E("button",{type:"button",class:R([i(s).be("panel","btn"),"cancel"]),onClick:H[0]||(H[0]=Z=>C())},_e(i(l)("el.datepicker.cancel")),3),E("button",{type:"button",class:R([i(s).be("panel","btn"),"confirm"]),disabled:L.value,onClick:H[1]||(H[1]=Z=>T())},_e(i(l)("el.datepicker.confirm")),11,XW)],2)],2)):re("v-if",!0)}}),ZW=JW,$b={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},a=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d/,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,u={},c=function(m){return(m=+m)+(m>68?1900:2e3)},d=function(m){return function(y){this[m]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var b=y.match(/([+-]|\d\d)/g),w=60*b[1]+(+b[2]||0);return w===0?0:b[0]==="+"?-w:w}(m)}],h=function(m){var y=u[m];return y&&(y.indexOf?y:y.s.concat(y.f))},g=function(m,y){var b,w=u.meridiem;if(w){for(var C=1;C<=24;C+=1)if(m.indexOf(w(C,0,y))>-1){b=C>12;break}}else b=m===(y?"pm":"PM");return b},p={A:[s,function(m){this.afternoon=g(m,!1)}],a:[s,function(m){this.afternoon=g(m,!0)}],Q:[o,function(m){this.month=3*(m-1)+1}],S:[o,function(m){this.milliseconds=100*+m}],SS:[l,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[l,d("day")],Do:[s,function(m){var y=u.ordinal,b=m.match(/\d+/);if(this.day=b[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===m&&(this.day=w)}],w:[r,d("week")],ww:[l,d("week")],M:[r,d("month")],MM:[l,d("month")],MMM:[s,function(m){var y=h("months"),b=(h("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],MMMM:[s,function(m){var y=h("months").indexOf(m)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[l,function(m){this.year=c(m)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function v(m){var y,b;y=m,b=u&&u.formats;for(var w=(m=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(O,I,L){var z=L&&L.toUpperCase();return I||b[L]||n[L]||b[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,U,F){return U||F.slice(1)})})).match(a),C=w.length,S=0;S-1)return new Date((P==="X"?1e3:1)*N);var K=v(P)(N),j=K.year,G=K.month,ee=K.day,te=K.hours,ue=K.minutes,ne=K.seconds,de=K.milliseconds,se=K.zone,Y=K.week,X=new Date,H=ee||(j||G?1:X.getDate()),Z=j||X.getFullYear(),le=0;j&&!G||(le=G>0?G-1:X.getMonth());var ce,ge=te||0,me=ue||0,$e=ne||0,Re=de||0;return se?new Date(Date.UTC(Z,le,H,ge,me,$e,Re+60*se.offset*1e3)):B?new Date(Date.UTC(Z,le,H,ge,me,$e,Re)):(ce=new Date(Z,le,H,ge,me,$e,Re),Y&&(ce=W(ce).week(Y).toDate()),ce)}catch{return new Date("")}}(k,A,T,b),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),L&&k!=this.format(A)&&(this.$d=new Date("")),u={}}else if(A instanceof Array)for(var q=A.length,U=1;U<=q;U+=1){M[1]=A[U-1];var F=b.apply(this,M);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}U===q&&(this.$d=new Date(""))}else C.call(this,S)}}})})($b);var QW=$b.exports;const zh=Ol(QW);lt.extend(zh);var ej=D({name:"ElTimePicker",install:null,props:{...Bh,isRange:Boolean},emits:[at],setup(e,t){const n=V(),[a,o]=e.isRange?["timerange",ZW]:["time",vd],l=r=>t.emit(at,r);return bt(Lh,e.popperOptions),t.expose({focus:()=>{var r;(r=n.value)==null||r.focus()},blur:()=>{var r;(r=n.value)==null||r.blur()},handleOpen:()=>{var r;(r=n.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=n.value)==null||r.handleClose()}}),()=>{const r=e.format??Dr;return Q(kb,pt(e,{ref:n,type:a,format:r,"onUpdate:modelValue":l}),{default:s=>Q(o,s,null)})}}});const tj=rt(ej),wl=Ce({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:vo},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),nj={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},aj=["aria-label"],oj=["aria-label"];var lj=D({name:"ElTag",__name:"tag",props:wl,emits:nj,setup(e,{emit:t}){const n=e,a=t,o=En(),{t:l}=xt(),r=ve("tag"),s=x(()=>{const{type:f,hit:h,effect:g,closable:p,round:v}=n;return[r.b(),r.is("closable",p),r.m(f||"primary"),r.m(o.value),r.m(g),r.is("hit",h),r.is("round",v)]}),u=f=>{a("close",f)},c=f=>{a("click",f)},d=f=>{var h,g,p;(p=(g=(h=f==null?void 0:f.component)==null?void 0:h.subTree)==null?void 0:g.component)!=null&&p.bum&&(f.component.subTree.component.bum=null)};return(f,h)=>e.disableTransitions?(_(),$("span",{key:0,class:R(s.value),style:We({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(_(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Xe(u,["stop"])},[Q(i(ze),null,{default:ae(()=>[Q(i(Ba))]),_:1})],10,aj)):re("v-if",!0)],6)):(_(),ie(qn,{key:1,name:`${i(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:d},{default:ae(()=>[E("span",{class:R(s.value),style:We({backgroundColor:e.color}),onClick:c},[E("span",{class:R(i(r).e("content"))},[oe(f.$slots,"default")],2),e.closable?(_(),$("button",{key:0,"aria-label":i(l)("el.tag.close"),class:R(i(r).e("close")),type:"button",onClick:Xe(u,["stop"])},[Q(i(ze),null,{default:ae(()=>[Q(i(Ba))]),_:1})],10,oj)):re("v-if",!0)],6)]),_:3},8,["name"]))}}),rj=lj;const dl=rt(rj),Ab=Symbol("ElSelectGroup"),Ku=Symbol("ElSelect"),md={label:"label",value:"value",disabled:"disabled",options:"options"};function Wu(e){const t=V({...md,...e.props});let n={...e.props};return fe(()=>e.props,s=>{sn(s,n)||(t.value={...md,...s},n={...s})},{deep:!0}),{aliasProps:t,getLabel:s=>_n(s,t.value.label),getValue:s=>_n(s,t.value.value),getDisabled:s=>_n(s,t.value.disabled),getOptions:s=>_n(s,t.value.options)}}const Rb=Ce({name:String,id:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:On,effect:{type:J(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:J(Function)},filterMethod:{type:J(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Ft,default:wo},fitInputWidth:Boolean,suffixIcon:{type:Ft,default:bo},tagType:{...wl.type,default:"info"},tagEffect:{...wl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:J(String),values:Uo,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,options:{type:J(Array)},props:{type:J(Object),default:()=>md},...Gr,...ia(["ariaLabel"])});lb.scroll;const N2="ElOption",sj=Ce({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean});function ij(e,t){const n=Ne(Ku);n||on(N2,"usage: ");const a=Ne(Ab,{disabled:!1}),o=x(()=>d(In(n.props.modelValue),e.value)),l=x(()=>{if(n.props.multiple){const g=In(n.props.modelValue??[]);return!o.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),r=x(()=>e.label??(Mt(e.value)?"":e.value)),s=x(()=>e.value||e.label||""),u=x(()=>e.disabled||t.groupDisabled||l.value),c=ht(),d=(g=[],p)=>{if(Mt(e.value)){const v=n.props.valueKey;return g&&g.some(m=>jt(_n(m,v))===_n(p,v))}else return g&&g.includes(p)},f=()=>{u.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},h=g=>{t.visible=new RegExp(oh(g),"i").test(String(r.value))||e.created};return fe(()=>r.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),fe(()=>e.value,(g,p)=>{const{remote:v,valueKey:m}=n.props;if((v?g!==p:!sn(g,p))&&(n.onOptionDestroy(p,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(m&&Mt(g)&&Mt(p)&&g[m]===p[m])return;n.setSelected()}}),fe(()=>a.disabled,()=>{t.groupDisabled=a.disabled},{immediate:!0}),{select:n,currentLabel:r,currentValue:s,itemSelected:o,isDisabled:u,hoverItem:f,updateOption:h}}var uj=D({name:N2,componentName:N2,props:sj,setup(e){const t=ve("select"),n=Un(),a=x(()=>[t.be("dropdown","item"),t.is("disabled",i(s)),t.is("selected",i(r)),t.is("hovering",i(h))]),o=Nt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:r,isDisabled:s,select:u,hoverItem:c,updateOption:d}=ij(e,o),{visible:f,hover:h}=Bn(o),g=ht().proxy;u.onOptionCreate(g),Lt(()=>{const m=g.value;Ie(()=>{const{selected:y}=u.states,b=y.some(w=>w.value===g.value);u.states.cachedOptions.get(m)===g&&!b&&u.states.cachedOptions.delete(m)}),u.onOptionDestroy(m,g)});function p(){s.value||u.handleOptionSelect(g)}return{ns:t,id:n,containerKls:a,currentLabel:l,itemSelected:r,isDisabled:s,select:u,visible:f,hover:h,states:o,hoverItem:c,handleMousedown:m=>{let y=m.target;const b=m.currentTarget;for(;y&&y!==b;){if(Lr(y))return;y=y.parentElement}m.preventDefault()},updateOption:d,selectOptionClick:p}}});const cj=["id","aria-disabled","aria-selected"];function dj(e,t,n,a,o,l){return dt((_(),$("li",{id:e.id,class:R(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Xe((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{},()=>[E("span",null,_e(e.currentLabel),1)])],42,cj)),[[At,e.visible]])}var Dh=$n(uj,[["render",dj]]),fj=D({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=ve("select"),n=V(),a=ht(),o=V([]);bt(Ab,Nt({...Bn(e)}));const l=x(()=>o.value.some(c=>c.visible===!0)),r=c=>{var d;return c.type.name==="ElOption"&&!!((d=c.component)!=null&&d.proxy)},s=c=>{const d=In(c),f=[];return d.forEach(h=>{var g;Wt(h)&&(r(h)?f.push(h.component.proxy):Ve(h.children)&&h.children.length?f.push(...s(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...s(h.component.subTree)))}),f},u=()=>{o.value=s(a.subTree)};return mt(()=>{u()}),Su(n,u,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:t}}});function pj(e,t,n,a,o,l){return dt((_(),$("ul",{ref:"groupRef",class:R(e.ns.be("group","wrap"))},[E("li",{class:R(e.ns.be("group","title"))},_e(e.label),3),E("li",null,[E("ul",{class:R(e.ns.b("group"))},[oe(e.$slots,"default")],2)])],2)),[[At,e.visible]])}var Hh=$n(fj,[["render",pj]]),hj=D({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ne(Ku),t=ve("select"),n=x(()=>e.props.popperClass),a=x(()=>e.props.multiple),o=x(()=>e.props.fitInputWidth),l=V("");function r(){var u;const s=(u=e.selectRef)==null?void 0:u.offsetWidth;s?l.value=`${s-O6}px`:l.value=""}return mt(()=>{r(),en(e.selectRef,r)}),{ns:t,minWidth:l,popperClass:n,isMultiple:a,isFitInputWidth:o}}});function vj(e,t,n,a,o,l){return _(),$("div",{class:R([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:We({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(_(),$("div",{key:0,class:R(e.ns.be("dropdown","header"))},[oe(e.$slots,"header")],2)):re("v-if",!0),oe(e.$slots,"default"),e.$slots.footer?(_(),$("div",{key:1,class:R(e.ns.be("dropdown","footer"))},[oe(e.$slots,"footer")],2)):re("v-if",!0)],6)}var mj=$n(hj,[["render",vj]]);const gj=(e,t)=>{const{t:n}=xt(),a=yn(),o=Un(),l=ve("select"),r=ve("input"),s=Nt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),u=V(),c=V(),d=V(),f=V(),h=V(),g=V(),p=V(),v=V(),m=V(),y=V(),b=V(),w=V(!1),C=V(),S=V(!1),{form:k,formItem:T}=Kn(),{inputId:M}=za(e,{formItemContext:T}),{valueOnClear:A,isEmptyValue:O}=zu(e),{isComposing:I,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q}=Bu({afterComposition:Se=>Ye(Se)}),U=dn(),{wrapperRef:F,isFocused:N,handleBlur:P}=El(h,{disabled:U,afterFocus(){e.automaticDropdown&&!w.value&&(w.value=!0,s.menuVisibleOnFocus=!0)},beforeBlur(Se){var Ze,Et;return((Ze=d.value)==null?void 0:Ze.isFocusInsideContent(Se))||((Et=f.value)==null?void 0:Et.isFocusInsideContent(Se))},afterBlur(){var Se;w.value=!1,s.menuVisibleOnFocus=!1,e.validateEvent&&((Se=T==null?void 0:T.validate)==null||Se.call(T,"blur").catch(Ze=>ft(Ze)))}}),B=x(()=>Ve(e.modelValue)?e.modelValue.length>0:!O(e.modelValue)),W=x(()=>(k==null?void 0:k.statusIcon)??!1),K=x(()=>e.clearable&&!U.value&&B.value&&(N.value||s.inputHovering)),j=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=x(()=>l.is("reverse",!!(j.value&&w.value))),ee=x(()=>(T==null?void 0:T.validateState)||""),te=x(()=>ee.value&&bf[ee.value]),ue=x(()=>e.remote?e.debounce:0),ne=x(()=>e.remote&&!s.inputValue&&s.options.size===0),de=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&s.inputValue&&s.options.size>0&&se.value===0?e.noMatchText||n("el.select.noMatch"):s.options.size===0?e.noDataText||n("el.select.noData"):null),se=x(()=>Y.value.filter(Se=>Se.visible).length),Y=x(()=>{const Se=Array.from(s.options.values()),Ze=[];return s.optionValues.forEach(Et=>{const Qt=Se.findIndex(kn=>kn.value===Et);Qt>-1&&Ze.push(Se[Qt])}),Ze.length>=Se.length?Ze:Se}),X=x(()=>Array.from(s.cachedOptions.values())),H=x(()=>{const Se=Y.value.filter(Ze=>!Ze.created).some(Ze=>Ze.currentLabel===s.inputValue);return e.filterable&&e.allowCreate&&s.inputValue!==""&&!Se}),Z=()=>{e.filterable&&ct(e.filterMethod)||e.filterable&&e.remote&&ct(e.remoteMethod)||Y.value.forEach(Se=>{var Ze;(Ze=Se.updateOption)==null||Ze.call(Se,s.inputValue)})},le=En(),ce=x(()=>["small"].includes(le.value)?"small":"default"),ge=x({get(){return w.value&&(e.loading||!ne.value||e.remote&&!!a.empty)&&(!S.value||!ha(s.previousQuery)||s.options.size>0)},set(Se){w.value=Se}}),me=x(()=>{if(e.multiple&&!kt(e.modelValue))return In(e.modelValue).length===0&&!s.inputValue;const Se=Ve(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||kt(Se)?!s.inputValue:!0}),$e=x(()=>{const Se=e.placeholder??n("el.select.placeholder");return e.multiple||!B.value?Se:s.selectedLabel}),Re=x(()=>ld?null:"mouseenter");fe(()=>e.modelValue,(Se,Ze)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(s.inputValue="",Ae("")),ke(),!sn(Se,Ze)&&e.validateEvent&&(T==null||T.validate("change").catch(Et=>ft(Et)))},{flush:"post",deep:!0}),fe(()=>w.value,Se=>{Se?Ae(s.inputValue):(s.inputValue="",s.previousQuery=null,s.isBeforeHide=!0,s.menuVisibleOnFocus=!1)}),fe(()=>s.options.entries(),()=>{Rt&&(ke(),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value&&ye())},{flush:"post"}),fe([()=>s.hoveringIndex,Y],([Se])=>{De(Se)&&Se>-1?C.value=Y.value[Se]||{}:C.value={},Y.value.forEach(Ze=>{Ze.hover=C.value===Ze})}),ma(()=>{s.isBeforeHide||Z()});const Ae=Se=>{s.previousQuery===Se||I.value||(s.previousQuery=Se,e.filterable&&ct(e.filterMethod)?e.filterMethod(Se):e.filterable&&e.remote&&ct(e.remoteMethod)&&e.remoteMethod(Se),e.defaultFirstOption&&(e.filterable||e.remote)&&se.value?Ie(ye):Ie(Pe))},ye=()=>{const Se=Y.value.filter(Qt=>Qt.visible&&!Qt.disabled&&!Qt.states.groupDisabled),Ze=Se.find(Qt=>Qt.created),Et=Se[0];s.hoveringIndex=Ee(Y.value.map(Qt=>Qt.value),Ze||Et)},ke=()=>{if(e.multiple)s.selectedLabel="";else{const Ze=be(Ve(e.modelValue)?e.modelValue[0]:e.modelValue);s.selectedLabel=Ze.currentLabel,s.selected=[Ze];return}const Se=[];kt(e.modelValue)||In(e.modelValue).forEach(Ze=>{Se.push(be(Ze))}),s.selected=Se},be=Se=>{let Ze;const Et=Q0(Se);for(let Qt=s.cachedOptions.size-1;Qt>=0;Qt--){const kn=X.value[Qt];if(Et?_n(kn.value,e.valueKey)===_n(Se,e.valueKey):kn.value===Se){Ze={index:Y.value.filter(zn=>!zn.created).indexOf(kn),value:Se,currentLabel:kn.currentLabel,get isDisabled(){return kn.isDisabled}};break}}return Ze||{index:-1,value:Se,currentLabel:Et?Se.label:Se??""}},Pe=()=>{const Se=s.selected.length;if(Se>0){const Ze=s.selected[Se-1];s.hoveringIndex=Y.value.findIndex(Et=>Nn(Ze)===Nn(Et))}else s.hoveringIndex=-1},Be=()=>{s.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},Qe=()=>{s.collapseItemWidth=y.value.getBoundingClientRect().width},tt=()=>{var Se,Ze;(Ze=(Se=d.value)==null?void 0:Se.updatePopper)==null||Ze.call(Se)},nt=()=>{var Se,Ze;(Ze=(Se=f.value)==null?void 0:Se.updatePopper)==null||Ze.call(Se)},Te=()=>{s.inputValue.length>0&&!w.value&&(w.value=!0),Ae(s.inputValue)},Ye=Se=>{if(s.inputValue=Se.target.value,e.remote)S.value=!0,st();else return Te()},st=_u(()=>{Te(),S.value=!1},ue),Ke=Se=>{sn(e.modelValue,Se)||t(yt,Se)},et=Se=>b8(Se,Ze=>{const Et=s.cachedOptions.get(Ze);return!(Et!=null&&Et.disabled)&&!(Et!=null&&Et.states.groupDisabled)}),gt=Se=>{const Ze=Kt(Se);if(e.multiple&&Ze!==we.delete&&Se.target.value.length<=0){const Et=In(e.modelValue).slice(),Qt=et(Et);if(Qt<0)return;const kn=Et[Qt];Et.splice(Qt,1),t(at,Et),Ke(Et),t("remove-tag",kn)}},he=(Se,Ze)=>{const Et=s.selected.indexOf(Ze);if(Et>-1&&!U.value){const Qt=In(e.modelValue).slice();Qt.splice(Et,1),t(at,Qt),Ke(Qt),t("remove-tag",Ze.value)}Se.stopPropagation(),Je()},Le=Se=>{Se.stopPropagation();const Ze=e.multiple?[]:A.value;if(e.multiple)for(const Et of s.selected)Et.isDisabled&&Ze.push(Et.value);t(at,Ze),Ke(Ze),s.hoveringIndex=-1,w.value=!1,t("clear"),Je()},pe=Se=>{if(e.multiple){const Ze=In(e.modelValue??[]).slice(),Et=Ee(Ze,Se);Et>-1?Ze.splice(Et,1):(e.multipleLimit<=0||Ze.length{it(Se)})},Ee=(Se,Ze)=>kt(Ze)?-1:Mt(Ze.value)?Se.findIndex(Et=>sn(_n(Et,e.valueKey),Nn(Ze))):Se.indexOf(Ze.value),it=Se=>{var Qt,kn,zn,Xo,si;const Ze=Ve(Se)?Se[Se.length-1]:Se;let Et=null;if(!Cn(Ze==null?void 0:Ze.value)){const tr=Y.value.filter(Jr=>Jr.value===Ze.value);tr.length>0&&(Et=tr[0].$el)}if(d.value&&Et){const tr=(Xo=(zn=(kn=(Qt=d.value)==null?void 0:Qt.popperRef)==null?void 0:kn.contentRef)==null?void 0:zn.querySelector)==null?void 0:Xo.call(zn,`.${l.be("dropdown","wrap")}`);tr&&sh(tr,Et)}(si=b.value)==null||si.handleScroll()},Pt=Se=>{s.options.set(Se.value,Se),s.cachedOptions.set(Se.value,Se)},Xt=(Se,Ze)=>{s.options.get(Se)===Ze&&s.options.delete(Se)},Oe=x(()=>{var Se,Ze;return(Ze=(Se=d.value)==null?void 0:Se.popperRef)==null?void 0:Ze.contentRef}),Fe=()=>{s.isBeforeHide=!1,Ie(()=>{var Se;(Se=b.value)==null||Se.update(),it(s.selected)})},Je=()=>{var Se;(Se=h.value)==null||Se.focus()},hn=()=>{var Se;if(w.value){w.value=!1,Ie(()=>{var Ze;return(Ze=h.value)==null?void 0:Ze.blur()});return}(Se=h.value)==null||Se.blur()},zt=Se=>{Le(Se)},Zt=Se=>{if(w.value=!1,N.value){const Ze=new FocusEvent("blur",Se);Ie(()=>P(Ze))}},je=()=>{s.inputValue.length>0?s.inputValue="":w.value=!1},Ge=Se=>{var Ze;U.value||e.filterable&&w.value&&Se&&!((Ze=p.value)!=null&&Ze.contains(Se.target))||(ld&&(s.inputHovering=!0),s.menuVisibleOnFocus?s.menuVisibleOnFocus=!1:w.value=!w.value)},vt=()=>{if(!w.value)Ge();else{const Se=Y.value[s.hoveringIndex];Se&&!Se.isDisabled&&pe(Se)}},Nn=Se=>Mt(Se.value)?_n(Se.value,e.valueKey):Se.value,So=x(()=>Y.value.filter(Se=>Se.visible).every(Se=>Se.isDisabled)),Xa=x(()=>e.multiple?e.collapseTags?s.selected.slice(0,e.maxCollapseTags):s.selected:[]),Qu=x(()=>e.multiple?e.collapseTags?s.selected.slice(e.maxCollapseTags):[]:[]),er=Se=>{if(!w.value){w.value=!0;return}if(!(s.options.size===0||se.value===0||I.value)&&!So.value){Se==="next"?(s.hoveringIndex++,s.hoveringIndex===s.options.size&&(s.hoveringIndex=0)):Se==="prev"&&(s.hoveringIndex--,s.hoveringIndex<0&&(s.hoveringIndex=s.options.size-1));const Ze=Y.value[s.hoveringIndex];(Ze.isDisabled||!Ze.visible)&&er(Se),Ie(()=>it(C.value))}},ec=(Se,Ze,Et,Qt)=>{for(let kn=Ze;kn>=0&&kn{const Et=s.options.size;if(Et===0)return;const Qt=gr(Se,0,Et-1),kn=Y.value,zn=Ze==="up"?-1:1,Xo=ec(kn,Qt,zn,Et)??ec(kn,Qt-zn,-zn,Et);Xo!=null&&(s.hoveringIndex=Xo,Ie(()=>it(C.value)))},Bf=Se=>{const Ze=Kt(Se);let Et=!0;switch(Ze){case we.up:er("prev");break;case we.down:er("next");break;case we.enter:case we.numpadEnter:I.value||vt();break;case we.esc:je();break;case we.backspace:Et=!1,gt(Se);return;case we.home:if(!w.value)return;Go(0,"down");break;case we.end:if(!w.value)return;Go(s.options.size-1,"up");break;case we.pageUp:if(!w.value)return;Go(s.hoveringIndex-10,"up");break;case we.pageDown:if(!w.value)return;Go(s.hoveringIndex+10,"down");break;default:Et=!1;break}Et&&(Se.preventDefault(),Se.stopPropagation())},zf=()=>{if(!c.value)return 0;const Se=window.getComputedStyle(c.value);return Number.parseFloat(Se.gap||"6px")},Df=x(()=>{const Se=zf(),Ze=e.filterable?Se+Xd:0;return{maxWidth:`${y.value&&e.maxCollapseTags===1?s.selectionWidth-s.collapseItemWidth-Se-Ze:s.selectionWidth-Ze}px`}}),Hf=x(()=>({maxWidth:`${s.selectionWidth}px`})),Ff=Se=>{t("popup-scroll",Se)};en(c,Be),en(F,tt),en(m,nt),en(y,Qe);let $l;return fe(()=>ge.value,Se=>{Se?$l=en(v,tt).stop:($l==null||$l(),$l=void 0),t("visible-change",Se)}),mt(()=>{ke()}),{inputId:M,contentId:o,nsSelect:l,nsInput:r,states:s,isFocused:N,expanded:w,optionsArray:Y,hoverOption:C,selectSize:le,filteredOptionsCount:se,updateTooltip:tt,updateTagTooltip:nt,debouncedOnInputChange:st,onInput:Ye,deletePrevTag:gt,deleteTag:he,deleteSelected:Le,handleOptionSelect:pe,scrollToOption:it,hasModelValue:B,shouldShowPlaceholder:me,currentPlaceholder:$e,mouseEnterEventName:Re,needStatusIcon:W,showClearBtn:K,iconComponent:j,iconReverse:G,validateState:ee,validateIcon:te,showNewOption:H,updateOptions:Z,collapseTagSize:ce,setSelected:ke,selectDisabled:U,emptyText:de,handleCompositionStart:L,handleCompositionUpdate:z,handleCompositionEnd:q,handleKeydown:Bf,onOptionCreate:Pt,onOptionDestroy:Xt,handleMenuEnter:Fe,focus:Je,blur:hn,handleClearClick:zt,handleClickOutside:Zt,handleEsc:je,toggleMenu:Ge,selectOption:vt,getValueKey:Nn,navigateOptions:er,dropdownMenuVisible:ge,showTagList:Xa,collapseTagList:Qu,popupScroll:Ff,getOption:be,tagStyle:Df,collapseTagStyle:Hf,popperRef:Oe,inputRef:h,tooltipRef:d,tagTooltipRef:f,prefixRef:g,suffixRef:p,selectRef:u,wrapperRef:F,selectionRef:c,scrollbarRef:b,menuRef:v,tagMenuRef:m,collapseItemRef:y}};var yj=D({name:"ElOptions",setup(e,{slots:t}){const n=Ne(Ku);let a=[];return()=>{var s,u;const o=(s=t.default)==null?void 0:s.call(t),l=[];function r(c){Ve(c)&&c.forEach(d=>{var h,g,p,v;const f=(h=(d==null?void 0:d.type)||{})==null?void 0:h.name;f==="ElOptionGroup"?r(!Ue(d.children)&&!Ve(d.children)&&ct((g=d.children)==null?void 0:g.default)?(p=d.children)==null?void 0:p.default():d.children):f==="ElOption"?l.push((v=d.props)==null?void 0:v.value):Ve(d.children)&&r(d.children)})}return o.length&&r((u=o[0])==null?void 0:u.children),sn(l,a)||(a=l,n&&(n.states.optionValues=l)),o}}});const hg="ElSelect",ru=new WeakMap,bj=e=>(...t)=>{var o,l;const n=t[0];if(!n||n.includes('Slot "default" invoked outside of the render function')&&((o=t[2])!=null&&o.includes("ElTreeSelect")))return;const a=(l=ru.get(e))==null?void 0:l.originalWarnHandler;if(a){a(...t);return}console.warn(...t)},wj=e=>{let t=ru.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:bj(e),count:0},ru.set(e,t)),t};var Cj=D({name:hg,componentName:hg,components:{ElSelectMenu:mj,ElOption:Dh,ElOptions:yj,ElOptionGroup:Hh,ElTag:dl,ElScrollbar:uo,ElTooltip:Fn,ElIcon:ze},directives:{ClickOutside:Yl},props:Rb,emits:[at,yt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const a=ht(),o=wj(a.appContext);o.count+=1,a.appContext.config.warnHandler=o.handler;const l=x(()=>{const{modelValue:b,multiple:w}=e,C=w?[]:void 0;return Ve(b)?w?b:C:w?C:b}),r=Nt({...Bn(e),modelValue:l}),s=gj(r,t),{calculatorRef:u,inputStyle:c}=ah(),{getLabel:d,getValue:f,getOptions:h,getDisabled:g}=Wu(e),p=b=>({label:d(b),value:f(b),disabled:g(b)}),v=b=>b.reduce((w,C)=>(w.push(C),C.children&&C.children.length>0&&w.push(...v(C.children)),w),[]),m=b=>{Ra(b||[]).forEach(w=>{var C;if(Mt(w)&&(w.type.name==="ElOption"||w.type.name==="ElTree")){const S=w.type.name;if(S==="ElTree")v(((C=w.props)==null?void 0:C.data)||[]).forEach(k=>{k.currentLabel=k.label??(Mt(k.value)?"":k.value),s.onOptionCreate(k)});else if(S==="ElOption"){const k={...w.props};k.currentLabel=k.label??(Mt(k.value)?"":k.value),s.onOptionCreate(k)}}})};fe(()=>{var b;return[e.persistent||s.expanded.value||!n.default||(b=n.default)==null?void 0:b.call(n),l.value]},()=>{var b;e.persistent||s.expanded.value||n.default&&(s.states.options.clear(),m((b=n.default)==null?void 0:b.call(n)))},{immediate:!0}),bt(Ku,Nt({props:r,states:s.states,selectRef:s.selectRef,optionsArray:s.optionsArray,setSelected:s.setSelected,handleOptionSelect:s.handleOptionSelect,onOptionCreate:s.onOptionCreate,onOptionDestroy:s.onOptionDestroy}));const y=x(()=>e.multiple?s.states.selected.map(b=>b.currentLabel):s.states.selectedLabel);return Lt(()=>{const b=ru.get(a.appContext);b&&(b.count-=1,b.count<=0&&(a.appContext.config.warnHandler=b.originalWarnHandler,ru.delete(a.appContext)))}),{...s,modelValue:l,selectedLabel:y,calculatorRef:u,inputStyle:c,getLabel:d,getValue:f,getOptions:h,getDisabled:g,getOptionProps:p}}});const _j=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],Sj=["textContent"],xj={key:1};function kj(e,t,n,a,o,l){const r=$t("el-tag"),s=$t("el-tooltip"),u=$t("el-icon"),c=$t("el-option"),d=$t("el-option-group"),f=$t("el-options"),h=$t("el-scrollbar"),g=$t("el-select-menu"),p=Ap("click-outside");return dt((_(),$("div",pt({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[Oi(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:ae(()=>{var v;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Xe((...m)=>e.toggleMenu&&e.toggleMenu(...m),["prevent"]))},[e.$slots.prefix?(_(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var m,y,b,w,C,S,k,T,M,A,O,I,L;return[(_(!0),$(He,null,Ct(e.showTagList,z=>(_(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:We(e.tagStyle),onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[_t(_e(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(_(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((m=e.tagTooltip)==null?void 0:m.fallbackPlacements)??["bottom","top","right","left"],effect:((y=e.tagTooltip)==null?void 0:y.effect)??e.effect,placement:((b=e.tagTooltip)==null?void 0:b.placement)??"bottom","popper-class":((w=e.tagTooltip)==null?void 0:w.popperClass)??e.popperClass,"popper-style":((C=e.tagTooltip)==null?void 0:C.popperStyle)??e.popperStyle,teleported:((S=e.tagTooltip)==null?void 0:S.teleported)??e.teleported,"append-to":((k=e.tagTooltip)==null?void 0:k.appendTo)??e.appendTo,"popper-options":((T=e.tagTooltip)==null?void 0:T.popperOptions)??e.popperOptions,transition:(M=e.tagTooltip)==null?void 0:M.transition,"show-after":(A=e.tagTooltip)==null?void 0:A.showAfter,"hide-after":(O=e.tagTooltip)==null?void 0:O.hideAfter,"auto-close":(I=e.tagTooltip)==null?void 0:I.autoClose,offset:(L=e.tagTooltip)==null?void 0:L.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:We(e.collapseTagStyle)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+_e(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),$(He,null,Ct(e.collapseTagList,z=>(_(),$("div",{key:e.getValueKey(z),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!z.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:q=>e.deleteTag(q,z)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:z.index,label:z.currentLabel,value:z.value},()=>[_t(_e(z.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:We(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...m)=>e.handleKeydown&&e.handleKeydown(...m)),onCompositionstart:t[1]||(t[1]=(...m)=>e.handleCompositionStart&&e.handleCompositionStart(...m)),onCompositionupdate:t[2]||(t[2]=(...m)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...m)),onCompositionend:t[3]||(t[3]=(...m)=>e.handleCompositionEnd&&e.handleCompositionEnd(...m)),onInput:t[4]||(t[4]=(...m)=>e.onInput&&e.onInput(...m)),onChange:t[5]||(t[5]=Xe(()=>{},["stop"])),onClick:t[6]||(t[6]=Xe((...m)=>e.toggleMenu&&e.toggleMenu(...m),["stop"]))},null,46,_j),e.filterable?(_(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:_e(e.states.inputValue)},null,10,Sj)):re("v-if",!0)],2),e.shouldShowPlaceholder?(_(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,_e(e.currentPlaceholder),1)]):(_(),$("span",xj,_e(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(_(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(_(),ie(ut(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(g,{ref:"menuRef"},{default:ae(()=>[e.$slots.header?(_(),$("div",{key:0,class:R(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)):re("v-if",!0),dt(Q(h,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:R([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:ae(()=>[e.showNewOption?(_(),ie(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):re("v-if",!0),Q(f,null,{default:ae(()=>[oe(e.$slots,"default",{},()=>[(_(!0),$(He,null,Ct(e.options,(v,m)=>{var y;return _(),$(He,{key:m},[(y=e.getOptions(v))!=null&&y.length?(_(),ie(d,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:ae(()=>[(_(!0),$(He,null,Ct(e.getOptions(v),b=>(_(),ie(c,pt({key:e.getValue(b)},{ref_for:!0},e.getOptionProps(b)),null,16))),128))]),_:2},1032,["label","disabled"])):(_(),ie(c,pt({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[At,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(_(),$("div",{key:1,class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(_(),$("div",{key:2,class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,_e(e.emptyText),1)])],2)):re("v-if",!0),e.$slots.footer?(_(),$("div",{key:3,class:R(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)):re("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[p,e.handleClickOutside,e.popperRef]])}var Ej=$n(Cj,[["render",kj]]);const Jl=rt(Ej,{Option:Dh,OptionGroup:Hh}),gd=ln(Dh),Tj=ln(Hh),Mj=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return ql(t).map((a,o)=>n-(t-o-1))},Oj=e=>ql(e.daysInMonth()).map((t,n)=>n+1),$j=e=>ql(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),Aj=Ce({selectedDay:{type:J(Object)},range:{type:J(Array)},date:{type:J(Object),required:!0},hideHeader:{type:Boolean}}),Rj={pick:e=>Mt(e)};var Nb={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a,o){var l=a.prototype,r=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,h,g,p,v){var m=f.name?f:f.$locale(),y=r(m[h]),b=r(m[g]),w=y||b.map(function(S){return S.slice(0,p)});if(!v)return w;var C=m.weekStart;return w.map(function(S,k){return w[(k+(C||0))%7]})},u=function(){return o.Ls[o.locale()]},c=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,v,m){return v||m.slice(1)})}(f.formats[h.toUpperCase()])},d=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):s(f,"months")},monthsShort:function(h){return h?h.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):s(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return c(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};l.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=u();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(h){return c(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},o.months=function(){return s(u(),"months")},o.monthsShort=function(){return s(u(),"monthsShort","months",3)},o.weekdays=function(f){return s(u(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(u(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(u(),"weekdaysMin","weekdays",2,f)}}})})(Nb);var Nj=Nb.exports;const Pb=Ol(Nj),Pj=(e,t)=>{lt.extend(Pb);const n=lt.localeData().firstDayOfWeek(),{t:a,lang:o}=xt(),l=lt().locale(o.value),r=x(()=>!!e.range&&!!e.range.length),s=x(()=>{let h=[];if(r.value){const[g,p]=e.range,v=ql(p.date()-g.date()+1).map(b=>({text:g.date()+b,type:"current"}));let m=v.length%7;m=m===0?0:7-m;const y=ql(m).map((b,w)=>({text:w+1,type:"next"}));h=v.concat(y)}else{const g=e.date.startOf("month").day(),p=Mj(e.date,(g-n+7)%7).map(y=>({text:y,type:"prev"})),v=Oj(e.date).map(y=>({text:y,type:"current"}));h=[...p,...v];const m=ql(7-(h.length%7||7)).map((y,b)=>({text:b+1,type:"next"}));h=h.concat(m)}return $j(h)}),u=x(()=>{const h=n;return h===0?Qf.map(g=>a(`el.datepicker.weeks.${g}`)):Qf.slice(h).concat(Qf.slice(0,h)).map(g=>a(`el.datepicker.weeks.${g}`))}),c=(h,g)=>{switch(g){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:l,isInRange:r,rows:s,weekDays:u,getFormattedDate:c,handlePickDay:({text:h,type:g})=>{t("pick",c(h,g))},getSlotData:({text:h,type:g})=>{const p=c(h,g);return{isSelected:p.isSame(e.selectedDay),type:`${g}-month`,day:p.format(ll),date:p.toDate()}}}},Ij={key:0},Lj=["onClick"];var Vj=D({name:"DateTable",__name:"date-table",props:Aj,emits:Rj,setup(e,{expose:t,emit:n}){const a=e,{isInRange:o,now:l,rows:r,weekDays:s,getFormattedDate:u,handlePickDay:c,getSlotData:d}=Pj(a,n),f=ve("calendar-table"),h=ve("calendar-day"),g=({text:p,type:v})=>{const m=[v];if(v==="current"){const y=u(p,v);y.isSame(a.selectedDay,"day")&&m.push(h.is("selected")),y.isSame(l,"day")&&m.push(h.is("today"))}return m};return t({getFormattedDate:u}),(p,v)=>(_(),$("table",{class:R([i(f).b(),i(f).is("range",i(o))]),cellspacing:"0",cellpadding:"0"},[e.hideHeader?re("v-if",!0):(_(),$("thead",Ij,[E("tr",null,[(_(!0),$(He,null,Ct(i(s),m=>(_(),$("th",{key:m,scope:"col"},_e(m),1))),128))])])),E("tbody",null,[(_(!0),$(He,null,Ct(i(r),(m,y)=>(_(),$("tr",{key:y,class:R({[i(f).e("row")]:!0,[i(f).em("row","hide-border")]:y===0&&e.hideHeader})},[(_(!0),$(He,null,Ct(m,(b,w)=>(_(),$("td",{key:w,class:R(g(b)),onClick:C=>i(c)(b)},[E("div",{class:R(i(h).b())},[oe(p.$slots,"date-cell",{data:i(d)(b)},()=>[E("span",null,_e(b.text),1)])],2)],10,Lj))),128))],2))),128))])],2))}}),vg=Vj;const Bj=(e,t)=>{const n=e.endOf("month"),a=t.startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[o.startOf("week"),t]]},zj=(e,t)=>{const n=e.endOf("month"),a=e.add(1,"month").startOf("month"),o=n.isSame(a,"week")?a.add(1,"week"):a,l=o.endOf("month"),r=t.startOf("month"),s=l.isSame(r,"week")?r.add(1,"week"):r;return[[e,n],[o.startOf("week"),l],[s.startOf("week"),t]]},Dj=(e,t,n)=>{const{lang:a}=xt(),o=V(),l=lt().locale(a.value),r=x({get(){return e.modelValue?u.value:o.value},set(y){if(!y)return;o.value=y;const b=y.toDate();t(Sn,b),t(at,b)}}),s=x(()=>{if(!e.range||!Ve(e.range)||e.range.length!==2||e.range.some(w=>!$s(w)))return[];const[y,b]=e.range.map(w=>lt(w).locale(a.value));return y.isAfter(b)?(ft(n,"end time should be greater than start time"),[]):y.isSame(b,"month")?g(y,b):y.add(1,"month").month()!==b.month()?(ft(n,"start time and end time interval must not exceed two months"),[]):g(y,b)}),u=x(()=>e.modelValue?lt(e.modelValue).locale(a.value):r.value||(s.value.length?s.value[0][0]:l)),c=x(()=>u.value.subtract(1,"month").date(1)),d=x(()=>u.value.add(1,"month").date(1)),f=x(()=>u.value.subtract(1,"year").date(1)),h=x(()=>u.value.add(1,"year").date(1)),g=(y,b)=>{const w=y.startOf("week"),C=b.endOf("week"),S=w.get("month"),k=C.get("month");return S===k?[[w,C]]:(S+1)%12===k?Bj(w,C):S+2===k||(S+1)%11===k?zj(w,C):(ft(n,"start time and end time interval must not exceed two months"),[])},p=y=>{r.value=y},v=y=>{const b={"prev-month":c.value,"next-month":d.value,"prev-year":f.value,"next-year":h.value,today:l}[y];b.isSame(u.value,"day")||p(b)};return{calculateValidatedDateRange:g,date:u,realSelectedDay:r,pickDay:p,selectDate:v,validatedRange:s,handleDateChange:y=>{y==="today"?v("today"):p(y)}}},Hj=Ce({date:{type:J(Object),required:!0},formatter:{type:J(Function)}}),Fj={"date-change":e=>Mt(e)||Ue(e)};var Kj=D({name:"SelectController",__name:"select-controller",props:Hj,emits:Fj,setup(e,{emit:t}){const n=e,a=t,o=ve("calendar-select"),{t:l,lang:r}=xt(),s=Array.from({length:12},(p,v)=>{const m=v+1;return{value:m,label:ct(n.formatter)?n.formatter(m,"month"):m}}),u=x(()=>n.date.year()),c=x(()=>n.date.month()+1),d=x(()=>{const p=[];for(let v=-10;v<10;v++){const m=u.value+v;if(m>0){const y=ct(n.formatter)?n.formatter(m,"year"):m;p.push({value:m,label:y})}}return p}),f=p=>{a("date-change",lt(new Date(p,c.value-1,1)).locale(r.value))},h=p=>{a("date-change",lt(new Date(u.value,p-1,1)).locale(r.value))},g=()=>{a("date-change","today")};return(p,v)=>(_(),$(He,null,[Q(i(Jl),{"model-value":u.value,size:"small",class:R(i(o).e("year")),"validate-event":!1,options:d.value,onChange:f},null,8,["model-value","class","options"]),Q(i(Jl),{"model-value":c.value,size:"small",class:R(i(o).e("month")),"validate-event":!1,options:i(s),onChange:h},null,8,["model-value","class","options"]),Q(i(Ln),{size:"small",onClick:g},{default:ae(()=>[_t(_e(i(l)("el.datepicker.today")),1)]),_:1})],64))}}),Wj=Kj;const mg="ElCalendar";var jj=D({name:mg,__name:"calendar",props:NW,emits:PW,setup(e,{expose:t,emit:n}){const a=ve("calendar"),{calculateValidatedDateRange:o,date:l,pickDay:r,realSelectedDay:s,selectDate:u,validatedRange:c,handleDateChange:d}=Dj(e,n,mg),{t:f}=xt(),h=x(()=>{const g=`el.datepicker.month${l.value.format("M")}`;return`${l.value.year()} ${f("el.datepicker.year")} ${f(g)}`});return t({selectedDay:s,pickDay:r,selectDate:u,calculateValidatedDateRange:o}),(g,p)=>(_(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("header"))},[oe(g.$slots,"header",{date:h.value},()=>[E("div",{class:R(i(a).e("title"))},_e(h.value),3),i(c).length===0&&e.controllerType==="button"?(_(),$("div",{key:0,class:R(i(a).e("button-group"))},[Q(i(gb),null,{default:ae(()=>[Q(i(Ln),{size:"small",onClick:p[0]||(p[0]=v=>i(u)("prev-month"))},{default:ae(()=>[_t(_e(i(f)("el.datepicker.prevMonth")),1)]),_:1}),Q(i(Ln),{size:"small",onClick:p[1]||(p[1]=v=>i(u)("today"))},{default:ae(()=>[_t(_e(i(f)("el.datepicker.today")),1)]),_:1}),Q(i(Ln),{size:"small",onClick:p[2]||(p[2]=v=>i(u)("next-month"))},{default:ae(()=>[_t(_e(i(f)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):i(c).length===0&&e.controllerType==="select"?(_(),$("div",{key:1,class:R(i(a).e("select-controller"))},[Q(Wj,{date:i(l),formatter:e.formatter,onDateChange:i(d)},null,8,["date","formatter","onDateChange"])],2)):re("v-if",!0)])],2),i(c).length===0?(_(),$("div",{key:0,class:R(i(a).e("body"))},[Q(vg,{date:i(l),"selected-day":i(s),onPick:i(r)},ga({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(v=>[oe(g.$slots,"date-cell",il(ul(v)))]),key:"0"}:void 0]),1032,["date","selected-day","onPick"])],2)):(_(),$("div",{key:1,class:R(i(a).e("body"))},[(_(!0),$(He,null,Ct(i(c),(v,m)=>(_(),ie(vg,{key:m,date:v[0],"selected-day":i(s),range:v,"hide-header":m!==0,onPick:i(r)},ga({_:2},[g.$slots["date-cell"]?{name:"date-cell",fn:ae(y=>[oe(g.$slots,"date-cell",pt({ref_for:!0},y))]),key:"0"}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}}),qj=jj;const Uj=rt(qj),Yj=Ce({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:J([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var Gj=D({name:"ElCard",__name:"card",props:Yj,setup(e){const t=Tl("card"),n=ve("card");return(a,o)=>{var l;return _(),$("div",{class:R([i(n).b(),i(n).is(`${e.shadow||((l=i(t))==null?void 0:l.shadow)||"always"}-shadow`)])},[a.$slots.header||e.header?(_(),$("div",{key:0,class:R([i(n).e("header"),e.headerClass])},[oe(a.$slots,"header",{},()=>[_t(_e(e.header),1)])],2)):re("v-if",!0),E("div",{class:R([i(n).e("body"),e.bodyClass]),style:We(e.bodyStyle)},[oe(a.$slots,"default")],6),a.$slots.footer||e.footer?(_(),$("div",{key:1,class:R([i(n).e("footer"),e.footerClass])},[oe(a.$slots,"footer",{},()=>[_t(_e(e.footer),1)])],2)):re("v-if",!0)],2)}}}),Xj=Gj;const Jj=rt(Xj),Zj=Ce({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),Qj={change:(e,t)=>[e,t].every(De)},Ib=Symbol("carouselContextKey"),su="ElCarouselItem",eq=Ce({name:{type:String,default:""},label:{type:[String,Number],default:""}}),gg=300,tq=(e,t,n)=>{const{children:a,addChild:o,removeChild:l,ChildrenSorter:r}=mf(ht(),su),s=yn(),u=V(-1),c=V(null),d=V(!1),f=V(),h=V(0),g=V(!0),p=x(()=>e.arrow!=="never"&&!i(y)),v=x(()=>a.value.some(te=>te.props.label.toString().length>0)),m=x(()=>e.type==="card"),y=x(()=>e.direction==="vertical"),b=x(()=>e.height!=="auto"?{height:e.height}:{height:`${h.value}px`,overflow:"hidden"}),w=Dl(te=>{A(te)},gg,{trailing:!0}),C=Dl(te=>{N(te)},gg),S=te=>g.value?u.value<=1?te<=1:te>1:!0;function k(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>M(),e.interval))}const M=()=>{u.valuese.props.name===te);de.length>0&&(te=a.value.indexOf(de[0]))}if(te=Number(te),Number.isNaN(te)||te!==Math.floor(te)){ft(n,"index must be integer.");return}const ue=a.value.length,ne=u.value;te<0?u.value=e.loop?ue-1:0:te>=ue?u.value=e.loop?0:ue-1:u.value=te,ne===u.value&&O(ne),W()}function O(te){a.value.forEach((ue,ne)=>{ue.translateItem(ne,u.value,te)})}function I(te,ue){var ge,me,$e,Re;const ne=i(a),de=ne.length;if(de===0||!te.states.inStage)return!1;const se=ue+1,Y=ue-1,X=de-1,H=ne[X].states.active,Z=ne[0].states.active,le=(me=(ge=ne[se])==null?void 0:ge.states)==null?void 0:me.active,ce=(Re=($e=ne[Y])==null?void 0:$e.states)==null?void 0:Re.active;return ue===X&&Z||le?"left":ue===0&&H||ce?"right":!1}function L(){d.value=!0,e.pauseOnHover&&k()}function z(){d.value=!1,T()}function q(te){i(y)||a.value.forEach((ue,ne)=>{te===I(ue,ne)&&(ue.states.hover=!0)})}function U(){i(y)||a.value.forEach(te=>{te.states.hover=!1})}function F(te){u.value=te}function N(te){e.trigger==="hover"&&te!==u.value&&(u.value=te)}function P(){A(u.value-1)}function B(){A(u.value+1)}function W(){k(),(!e.pauseOnHover||!d.value)&&T()}function K(te){e.height==="auto"&&(h.value=te)}function j(){var ne;const te=(ne=s.default)==null?void 0:ne.call(s);if(!te)return null;const ue=Ra(te).filter(de=>Wt(de)&&de.type.name===su);return(ue==null?void 0:ue.length)===2&&e.loop&&!m.value?(g.value=!0,ue):(g.value=!1,null)}fe(()=>u.value,(te,ue)=>{O(ue),g.value&&(te=te%2,ue=ue%2),ue>-1&&t(yt,te,ue)});const G=x({get:()=>g.value?u.value%2:u.value,set:te=>u.value=te});fe(()=>e.autoplay,te=>{te?T():k()}),fe(()=>e.loop,()=>{A(u.value)}),fe(()=>e.interval,()=>{W()});const ee=qt();return mt(()=>{fe(()=>a.value,()=>{a.value.length>0&&A(e.initialIndex)},{immediate:!0}),ee.value=en(f.value,()=>{O()}),T()}),Lt(()=>{k(),f.value&&ee.value&&ee.value.stop()}),bt(Ib,{root:f,isCardType:m,isVertical:y,items:a,loop:e.loop,cardScale:e.cardScale,addItem:o,removeItem:l,setActiveItem:A,setContainerHeight:K}),{root:f,activeIndex:u,exposeActiveIndex:G,arrowDisplay:p,hasLabel:v,hover:d,isCardType:m,items:a,isVertical:y,containerStyle:b,isItemsTwoLength:g,handleButtonEnter:q,handleButtonLeave:U,handleIndicatorClick:F,handleMouseEnter:L,handleMouseLeave:z,setActiveItem:A,prev:P,next:B,PlaceholderItem:j,isTwoLengthShow:S,ItemsSorter:r,throttledArrowClick:w,throttledIndicatorHover:C}},nq=["aria-label"],aq=["aria-label"],oq=["onMouseenter","onClick"],lq=["aria-label"],rq={key:0},sq={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},yg="ElCarousel";var iq=D({name:yg,__name:"carousel",props:Zj,emits:Qj,setup(e,{expose:t,emit:n}){const a=e,{root:o,activeIndex:l,exposeActiveIndex:r,arrowDisplay:s,hasLabel:u,hover:c,isCardType:d,items:f,isVertical:h,containerStyle:g,handleButtonEnter:p,handleButtonLeave:v,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:w,prev:C,next:S,PlaceholderItem:k,isTwoLengthShow:T,ItemsSorter:M,throttledArrowClick:A,throttledIndicatorHover:O}=tq(a,n,yg),I=ve("carousel"),{t:L}=xt(),z=x(()=>{const N=[I.b(),I.m(a.direction)];return i(d)&&N.push(I.m("card")),N.push(I.is("vertical-outside",i(h)&&a.indicatorPosition==="outside")),N}),q=x(()=>{const N=[I.e("indicators"),I.em("indicators",a.direction)];return i(u)&&N.push(I.em("indicators","labels")),a.indicatorPosition==="outside"&&N.push(I.em("indicators","outside")),i(h)&&N.push(I.em("indicators","right")),N});function U(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.add(P)}function F(N){if(!a.motionBlur)return;const P=i(h)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;N.currentTarget.classList.remove(P)}return t({activeIndex:r,setActiveItem:w,prev:C,next:S}),(N,P)=>(_(),$("div",{ref_key:"root",ref:o,class:R(z.value),onMouseenter:P[6]||(P[6]=Xe((...B)=>i(y)&&i(y)(...B),["stop"])),onMouseleave:P[7]||(P[7]=Xe((...B)=>i(b)&&i(b)(...B),["stop"]))},[i(s)?(_(),ie(qn,{key:0,name:"carousel-arrow-left",persisted:""},{default:ae(()=>[dt(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","left")]),"aria-label":i(L)("el.carousel.leftArrow"),onMouseenter:P[0]||(P[0]=B=>i(p)("left")),onMouseleave:P[1]||(P[1]=(...B)=>i(v)&&i(v)(...B)),onClick:P[2]||(P[2]=Xe(B=>i(A)(i(l)-1),["stop"]))},[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})],42,nq),[[At,(e.arrow==="always"||i(c))&&(e.loop||i(l)>0)]])]),_:1})):re("v-if",!0),i(s)?(_(),ie(qn,{key:1,name:"carousel-arrow-right",persisted:""},{default:ae(()=>[dt(E("button",{type:"button",class:R([i(I).e("arrow"),i(I).em("arrow","right")]),"aria-label":i(L)("el.carousel.rightArrow"),onMouseenter:P[3]||(P[3]=B=>i(p)("right")),onMouseleave:P[4]||(P[4]=(...B)=>i(v)&&i(v)(...B)),onClick:P[5]||(P[5]=Xe(B=>i(A)(i(l)+1),["stop"]))},[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})],42,aq),[[At,(e.arrow==="always"||i(c))&&(e.loop||i(l)[e.indicatorPosition!=="none"?(_(),$("ul",{key:0,class:R(q.value)},[(_(!0),$(He,null,Ct(i(f),(B,W)=>dt((_(),$("li",{key:W,class:R([i(I).e("indicator"),i(I).em("indicator",e.direction),i(I).is("active",W===i(l))]),onMouseenter:K=>i(O)(W),onClick:Xe(K=>i(m)(W),["stop"])},[E("button",{class:R(i(I).e("button")),"aria-label":i(L)("el.carousel.indicator",{index:W+1})},[i(u)?(_(),$("span",rq,_e(B.props.label),1)):re("v-if",!0)],10,lq)],42,oq)),[[At,i(T)(W)]])),128))],2)):re("v-if",!0)]),_:1}),e.motionBlur?(_(),$("svg",sq,[...P[8]||(P[8]=[E("defs",null,[E("filter",{id:"elCarouselHorizontal"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),E("filter",{id:"elCarouselVertical"},[E("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):re("v-if",!0)],34))}}),uq=iq;const cq=e=>{const t=Ne(Ib),n=ht();t||ft(su,"usage: "),n||ft(su,"compositional hook can only be invoked inside setups");const a=V(),o=V(!1),l=V(0),r=V(1),s=V(!1),u=V(!1),c=V(!1),d=V(!1),{isCardType:f,isVertical:h,cardScale:g}=t;function p(C,S,k){const T=k-1,M=S-1,A=S+1,O=k/2;return S===0&&C===T?-1:S===T&&C===0?k:C=O?k+1:C>A&&C-S>=O?-2:C}function v(C,S){var T,M;const k=i(h)?((T=t.root.value)==null?void 0:T.offsetHeight)||0:((M=t.root.value)==null?void 0:M.offsetWidth)||0;return c.value?k*((2-g)*(C-S)+1)/4:C{const T=i(f),M=t.items.value.length??NaN,A=C===S;!T&&!kt(k)&&(d.value=A||C===k),!A&&M>2&&t.loop&&(C=p(C,S,M));const O=i(h);s.value=A,T?(c.value=Math.round(Math.abs(C-S))<=1,l.value=v(C,S),r.value=i(s)?1:g):l.value=m(C,S,O),u.value=!0,A&&a.value&&t.setContainerHeight(a.value.offsetHeight)};function b(){if(t&&i(f)){const C=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(C)}}const w={props:e,states:Nt({hover:o,translate:l,scale:r,active:s,ready:u,inStage:c,animating:d}),uid:n.uid,getVnode:()=>n.vnode,translateItem:y};return t.addItem(w),Lt(()=>{t.removeItem(w)}),{carouselItemRef:a,active:s,animating:d,hover:o,inStage:c,isVertical:h,translate:l,isCardType:f,scale:r,ready:u,handleItemClick:b}};var dq=D({name:su,__name:"carousel-item",props:eq,setup(e){const t=e,n=ve("carousel"),{carouselItemRef:a,active:o,animating:l,hover:r,inStage:s,isVertical:u,translate:c,isCardType:d,scale:f,ready:h,handleItemClick:g}=cq(t),p=x(()=>[n.e("item"),n.is("active",o.value),n.is("in-stage",s.value),n.is("hover",r.value),n.is("animating",l.value),{[n.em("item","card")]:d.value,[n.em("item","card-vertical")]:d.value&&u.value}]),v=x(()=>({transform:[`${`translate${i(u)?"Y":"X"}`}(${i(c)}px)`,`scale(${i(f)})`].join(" ")}));return(m,y)=>dt((_(),$("div",{ref_key:"carouselItemRef",ref:a,class:R(p.value),style:We(v.value),onClick:y[0]||(y[0]=(...b)=>i(g)&&i(g)(...b))},[i(d)?dt((_(),$("div",{key:0,class:R(i(n).e("mask"))},null,2)),[[At,!i(o)]]):re("v-if",!0),oe(m.$slots,"default")],6)),[[At,i(h)]])}}),Lb=dq;const fq=rt(uq,{CarouselItem:Lb}),pq=ln(Lb),Vb=Ce({modelValue:{type:J([Number,String,Array,Object])},options:{type:J(Array),default:()=>[]},props:{type:J(Object),default:()=>({})}}),hq={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:Yt,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500,checkOnClickNode:!1,checkOnClickLeaf:!0,showPrefix:!0},vq=Ce({...Vb,border:{type:Boolean,default:!0},renderLabel:{type:Function}}),bg=e=>!0,mq={[at]:bg,[yt]:bg,close:()=>!0,"expand-change":e=>e},gq=e=>x(()=>({...hq,...e.props})),Bb={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:{type:Boolean,default:void 0},checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:On,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ia(["ariaControls"])},zb={[at]:e=>Ue(e)||De(e)||Dt(e),change:e=>Ue(e)||De(e)||Dt(e)},oi=Symbol("checkboxGroupContextKey"),yq=Ce({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:On,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Db},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ia(["ariaLabel"])}),bq={[at]:e=>Ve(e),change:e=>Ve(e)},Db={label:"label",value:"value",disabled:"disabled"},wq=({model:e,isChecked:t})=>{const n=Ne(oi,void 0),a=Ne(Xr,void 0),o=x(()=>{var s,u;const l=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!kt(l)&&e.value.length>=l&&!t.value||!kt(r)&&e.value.length<=r&&t.value});return{isDisabled:dn(x(()=>{var l;return n===void 0?(a==null?void 0:a.disabled)??o.value:((l=n.disabled)==null?void 0:l.value)||o.value})),isLimitDisabled:o}},Cq=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:o,isLabeledByFormItem:l})=>{const r=Ne(oi,void 0),{formItem:s}=Kn(),{emit:u}=ht();function c(p){return[!0,e.trueValue,e.trueLabel].includes(p)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(p,v){u(yt,c(p),v)}function f(p){if(n.value)return;const v=p.target;u(yt,c(v.checked),p)}async function h(p){n.value||!a.value&&!o.value&&l.value&&(p.composedPath().some(v=>v.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Ie(),d(t.value,p)))}const g=x(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{g.value&&(s==null||s.validate("change").catch(p=>ft(p)))}),{handleChange:f,onClickRoot:h}},_q=e=>{const t=V(!1),{emit:n,vnode:a}=ht(),o=Ne(oi,void 0),l=x(()=>kt(o)===!1),r=V(!1),s=x(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=x({get(){var c;return l.value?(c=o==null?void 0:o.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;l.value&&Ve(c)?(r.value=((d=o==null?void 0:o.max)==null?void 0:d.value)!==void 0&&c.length>(o==null?void 0:o.max.value)&&c.length>u.value.length,r.value===!1&&((f=o==null?void 0:o.changeEvent)==null||f.call(o,c))):(n(at,c),t.value=c)}});return{model:u,isGroup:l,isLimitExceeded:r}},Sq=(e,t,{model:n})=>{const a=Ne(oi,void 0),o=V(!1),l=x(()=>Sa(e.value)?e.label:e.value),r=x(()=>{const s=n.value;return Dt(s)?s:Ve(s)?Mt(l.value)?s.map(jt).some(u=>sn(u,l.value)):s.map(jt).includes(l.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:En(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:o,checkboxSize:En(x(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:x(()=>!!t.default||!Sa(l.value)),actualValue:l}},Hb=(e,t)=>{const{formItem:n}=Kn(),{model:a,isGroup:o,isLimitExceeded:l}=_q(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=Sq(e,t,{model:a}),{isDisabled:h}=wq({model:a,isChecked:s}),{inputId:g,isLabeledByFormItem:p}=za(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:o}),{handleChange:v,onClickRoot:m}=Cq(e,{model:a,isLimitExceeded:l,hasOwnLabel:d,isDisabled:h,isLabeledByFormItem:p});return(()=>{function b(){Ve(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),Lo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>o.value&&Sa(e.value))),Lo({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.trueLabel)),Lo({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},x(()=>!!e.falseLabel)),{inputId:g,isLabeledByFormItem:p,isChecked:s,isDisabled:h,isFocused:r,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,model:a,actualValue:f,handleChange:v,onClickRoot:m}},xq=["id","indeterminate","name","tabindex","disabled"];var kq=D({name:"ElCheckbox",__name:"checkbox",props:Bb,emits:zb,setup(e){const t=e,{inputId:n,isLabeledByFormItem:a,isChecked:o,isDisabled:l,isFocused:r,checkboxSize:s,hasOwnLabel:u,model:c,actualValue:d,handleChange:f,onClickRoot:h}=Hb(t,yn()),g=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:d.value}),p=ve("checkbox"),v=x(()=>[p.b(),p.m(s.value),p.is("disabled",l.value),p.is("bordered",t.border),p.is("checked",o.value)]),m=x(()=>[p.e("input"),p.is("disabled",l.value),p.is("checked",o.value),p.is("indeterminate",t.indeterminate),p.is("focus",r.value)]);return(y,b)=>(_(),ie(ut(!i(u)&&i(a)?"span":"label"),{for:!i(u)&&i(a)?null:i(n),class:R(v.value),"aria-controls":e.indeterminate?e.ariaControls:null,"aria-checked":e.indeterminate?"mixed":void 0,"aria-label":e.ariaLabel,onClick:i(h)},{default:ae(()=>[E("span",{class:R(m.value)},[dt(E("input",pt({id:i(n),"onUpdate:modelValue":b[0]||(b[0]=w=>Gt(c)?c.value=w:null),class:i(p).e("original"),type:"checkbox",indeterminate:e.indeterminate,name:e.name,tabindex:e.tabindex,disabled:i(l)},g.value,{onChange:b[1]||(b[1]=(...w)=>i(f)&&i(f)(...w)),onFocus:b[2]||(b[2]=w=>r.value=!0),onBlur:b[3]||(b[3]=w=>r.value=!1),onClick:b[4]||(b[4]=Xe(()=>{},["stop"]))}),null,16,xq),[[S6,i(c)]]),E("span",{class:R(i(p).e("inner"))},null,2)],2),i(u)?(_(),$("span",{key:0,class:R(i(p).e("label"))},[oe(y.$slots,"default"),y.$slots.default?re("v-if",!0):(_(),$(He,{key:0},[_t(_e(e.label),1)],64))],2)):re("v-if",!0)]),_:3},8,["for","class","aria-controls","aria-checked","aria-label","onClick"]))}}),Fb=kq;const Eq=["name","tabindex","disabled"];var Tq=D({name:"ElCheckboxButton",__name:"checkbox-button",props:Bb,emits:zb,setup(e){const t=e,{isFocused:n,isChecked:a,isDisabled:o,checkboxButtonSize:l,model:r,actualValue:s,handleChange:u}=Hb(t,yn()),c=x(()=>t.trueValue||t.falseValue||t.trueLabel||t.falseLabel?{"true-value":t.trueValue??t.trueLabel??!0,"false-value":t.falseValue??t.falseLabel??!1}:{value:s.value}),d=Ne(oi,void 0),f=ve("checkbox"),h=x(()=>{var v,m;const p=((v=d==null?void 0:d.fill)==null?void 0:v.value)??"";return{backgroundColor:p,borderColor:p,color:((m=d==null?void 0:d.textColor)==null?void 0:m.value)??"",boxShadow:p?`-1px 0 0 0 ${p}`:void 0}}),g=x(()=>[f.b("button"),f.bm("button",l.value),f.is("disabled",o.value),f.is("checked",a.value),f.is("focus",n.value)]);return(p,v)=>(_(),$("label",{class:R(g.value)},[dt(E("input",pt({"onUpdate:modelValue":v[0]||(v[0]=m=>Gt(r)?r.value=m:null),class:i(f).be("button","original"),type:"checkbox",name:e.name,tabindex:e.tabindex,disabled:i(o)},c.value,{onChange:v[1]||(v[1]=(...m)=>i(u)&&i(u)(...m)),onFocus:v[2]||(v[2]=m=>n.value=!0),onBlur:v[3]||(v[3]=m=>n.value=!1),onClick:v[4]||(v[4]=Xe(()=>{},["stop"]))}),null,16,Eq),[[S6,i(r)]]),p.$slots.default||e.label?(_(),$("span",{key:0,class:R(i(f).be("button","inner")),style:We(i(a)?h.value:void 0)},[oe(p.$slots,"default",{},()=>[_t(_e(e.label),1)])],6)):re("v-if",!0)],2))}}),Fh=Tq,Mq=D({name:"ElCheckboxGroup",__name:"checkbox-group",props:yq,emits:bq,setup(e,{emit:t}){const n=e,a=t,o=ve("checkbox"),l=dn(),{formItem:r}=Kn(),{inputId:s,isLabeledByFormItem:u}=za(n,{formItemContext:r}),c=async p=>{a(at,p),await Ie(),a(yt,p)},d=x({get(){return n.modelValue},set(p){c(p)}}),f=x(()=>({...Db,...n.props})),h=p=>{const{label:v,value:m,disabled:y}=f.value,b={label:p[v],value:p[m],disabled:p[y]};return{...Mu(p,[v,m,y]),...b}},g=x(()=>n.type==="button"?Fh:Fb);return bt(oi,{...vl(Bn(n),["size","min","max","validateEvent","fill","textColor"]),disabled:l,modelValue:d,changeEvent:c}),fe(()=>n.modelValue,(p,v)=>{n.validateEvent&&!sn(p,v)&&(r==null||r.validate("change").catch(m=>ft(m)))}),(p,v)=>{var m;return _(),ie(ut(e.tag),{id:i(s),class:R(i(o).b("group")),role:"group","aria-label":i(u)?void 0:e.ariaLabel||"checkbox-group","aria-labelledby":i(u)?(m=i(r))==null?void 0:m.labelId:void 0},{default:ae(()=>[oe(p.$slots,"default",{},()=>[(_(!0),$(He,null,Ct(e.options,(y,b)=>(_(),ie(ut(g.value),pt({key:b},{ref_for:!0},h(y)),null,16))),128))])]),_:3},8,["id","class","aria-label","aria-labelledby"])}}}),Kb=Mq;const fo=rt(Fb,{CheckboxButton:Fh,CheckboxGroup:Kb}),Oq=ln(Fh),Kh=ln(Kb),Wb=Ce({modelValue:{type:[String,Number,Boolean],default:void 0},size:On,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),$q=Ce({...Wb,border:Boolean}),jb={[at]:e=>Ue(e)||De(e)||Dt(e),[yt]:e=>Ue(e)||De(e)||Dt(e)},qb=Symbol("radioGroupKey"),Aq=Ce({...Wb}),Ub={label:"label",value:"value",disabled:"disabled"},Rq=Ce({id:{type:String,default:void 0},size:On,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>Ub},type:{type:String,values:["radio","button"],default:"radio"},...ia(["ariaLabel"])}),Nq=jb,Yb=(e,t)=>{const n=V(),a=Ne(qb,void 0),o=x(()=>!!a),l=x(()=>Sa(e.value)?e.label:e.value),r=x({get(){return o.value?a.modelValue:e.modelValue},set(f){o.value?a.changeEvent(f):t&&t(at,f),n.value.checked=e.modelValue===l.value}}),s=En(x(()=>a==null?void 0:a.size)),u=dn(x(()=>a==null?void 0:a.disabled)),c=V(!1),d=x(()=>u.value||o.value&&r.value!==l.value?-1:0);return Lo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},x(()=>o.value&&Sa(e.value))),{radioRef:n,isGroup:o,radioGroup:a,focus:c,size:s,disabled:u,tabIndex:d,modelValue:r,actualValue:l}},Pq=["value","name","disabled","checked"];var Iq=D({name:"ElRadio",__name:"radio",props:$q,emits:jb,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),{radioRef:l,radioGroup:r,focus:s,size:u,disabled:c,modelValue:d,actualValue:f}=Yb(n,a);function h(){Ie(()=>a(yt,d.value))}return(g,p)=>{var v;return _(),$("label",{class:R([i(o).b(),i(o).is("disabled",i(c)),i(o).is("focus",i(s)),i(o).is("bordered",e.border),i(o).is("checked",i(d)===i(f)),i(o).m(i(u))])},[E("span",{class:R([i(o).e("input"),i(o).is("disabled",i(c)),i(o).is("checked",i(d)===i(f))])},[dt(E("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":p[0]||(p[0]=m=>Gt(d)?d.value=m:null),class:R(i(o).e("original")),value:i(f),name:e.name||((v=i(r))==null?void 0:v.name),disabled:i(c),checked:i(d)===i(f),type:"radio",onFocus:p[1]||(p[1]=m=>s.value=!0),onBlur:p[2]||(p[2]=m=>s.value=!1),onChange:h,onClick:p[3]||(p[3]=Xe(()=>{},["stop"]))},null,42,Pq),[[x6,i(d)]]),E("span",{class:R(i(o).e("inner"))},null,2)],2),E("span",{class:R(i(o).e("label")),onKeydown:p[4]||(p[4]=Xe(()=>{},["stop"]))},[oe(g.$slots,"default",{},()=>[_t(_e(e.label),1)])],34)],2)}}}),Gb=Iq;const Lq=["value","name","disabled"];var Vq=D({name:"ElRadioButton",__name:"radio-button",props:Aq,setup(e){const t=e,n=ve("radio"),{radioRef:a,focus:o,size:l,disabled:r,modelValue:s,radioGroup:u,actualValue:c}=Yb(t),d=x(()=>({backgroundColor:(u==null?void 0:u.fill)||"",borderColor:(u==null?void 0:u.fill)||"",boxShadow:u!=null&&u.fill?`-1px 0 0 0 ${u.fill}`:"",color:(u==null?void 0:u.textColor)||""}));return(f,h)=>{var g;return _(),$("label",{class:R([i(n).b("button"),i(n).is("active",i(s)===i(c)),i(n).is("disabled",i(r)),i(n).is("focus",i(o)),i(n).bm("button",i(l))])},[dt(E("input",{ref_key:"radioRef",ref:a,"onUpdate:modelValue":h[0]||(h[0]=p=>Gt(s)?s.value=p:null),class:R(i(n).be("button","original-radio")),value:i(c),type:"radio",name:e.name||((g=i(u))==null?void 0:g.name),disabled:i(r),onFocus:h[1]||(h[1]=p=>o.value=!0),onBlur:h[2]||(h[2]=p=>o.value=!1),onClick:h[3]||(h[3]=Xe(()=>{},["stop"]))},null,42,Lq),[[x6,i(s)]]),E("span",{class:R(i(n).be("button","inner")),style:We(i(s)===i(c)?d.value:{}),onKeydown:h[4]||(h[4]=Xe(()=>{},["stop"]))},[oe(f.$slots,"default",{},()=>[_t(_e(e.label),1)])],38)],2)}}}),Wh=Vq;const Bq=["id","aria-label","aria-labelledby"];var zq=D({name:"ElRadioGroup",__name:"radio-group",props:Rq,emits:Nq,setup(e,{emit:t}){const n=e,a=t,o=ve("radio"),l=Un(),r=V(),{formItem:s}=Kn(),{inputId:u,isLabeledByFormItem:c}=za(n,{formItemContext:s}),d=v=>{a(at,v),Ie(()=>a(yt,v))};mt(()=>{const v=r.value.querySelectorAll("[type=radio]"),m=v[0];!Array.from(v).some(y=>y.checked)&&m&&(m.tabIndex=0)});const f=x(()=>n.name||l.value),h=x(()=>({...Ub,...n.props})),g=v=>{const{label:m,value:y,disabled:b}=h.value,w={label:v[m],value:v[y],disabled:v[b]};return{...Mu(v,[m,y,b]),...w}},p=x(()=>n.type==="button"?Wh:Gb);return bt(qb,Nt({...Bn(n),changeEvent:d,name:f})),fe(()=>n.modelValue,(v,m)=>{n.validateEvent&&!sn(v,m)&&(s==null||s.validate("change").catch(y=>ft(y)))}),(v,m)=>(_(),$("div",{id:i(u),ref_key:"radioGroupRef",ref:r,class:R(i(o).b("group")),role:"radiogroup","aria-label":i(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":i(c)?i(s).labelId:void 0},[oe(v.$slots,"default",{},()=>[(_(!0),$(He,null,Ct(e.options,(y,b)=>(_(),ie(ut(p.value),pt({key:b},{ref_for:!0},g(y)),null,16))),128))])],10,Bq))}}),Xb=zq;const Jb=rt(Gb,{RadioButton:Wh,RadioGroup:Xb}),Dq=ln(Xb),Hq=ln(Wh),_f=Symbol();function Fq(e){return!!(Ve(e)?e.every(({type:t})=>t===wn):(e==null?void 0:e.type)===wn)}var Kq=D({name:"NodeContent",props:{node:{type:Object,required:!0}},setup(e){const t=ve("cascader-node"),{renderLabelFn:n}=Ne(_f),{node:a}=e,{data:o,label:l}=a,r=()=>{const s=n==null?void 0:n({node:a,data:o});return Fq(s)?l:s??l};return()=>Q("span",{class:t.e("label")},[r()])}});const Wq=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"];var jq=D({name:"ElCascaderNode",__name:"node",props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=e,a=t,o=Ne(_f),l=ve("cascader-node"),r=x(()=>o.isHoverMenu),s=x(()=>o.config.multiple),u=x(()=>o.config.checkStrictly),c=x(()=>o.config.showPrefix),d=x(()=>{var A;return(A=o.checkedNodes[0])==null?void 0:A.uid}),f=x(()=>n.node.isDisabled),h=x(()=>n.node.isLeaf),g=x(()=>u.value&&!h.value||!f.value),p=x(()=>m(o.expandingNode)),v=x(()=>u.value&&o.checkedNodes.some(m)),m=A=>{var L;const{level:O,uid:I}=n.node;return((L=A==null?void 0:A.pathNodes[O-1])==null?void 0:L.uid)===I},y=()=>{p.value||o.expandNode(n.node)},b=A=>{const{node:O}=n;A!==O.checked&&o.handleCheckChange(O,A)},w=()=>{o.lazyLoad(n.node,()=>{h.value||y()})},C=A=>{r.value&&(S(),!h.value&&a("expand",A))},S=()=>{const{node:A}=n;!g.value||A.loading||(A.loaded?y():w())},k=()=>{h.value&&!f.value&&!u.value&&!s.value?M(!0):(o.config.checkOnClickNode&&(s.value||u.value)||h.value&&o.config.checkOnClickLeaf)&&!f.value?T(!n.node.checked):r.value||S()},T=A=>{u.value?(b(A),n.node.loaded&&y()):M(A)},M=A=>{n.node.loaded?(b(A),!u.value&&y()):w()};return(A,O)=>(_(),$("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!h.value,"aria-owns":h.value?void 0:e.menuId,"aria-expanded":p.value,tabindex:g.value?-1:void 0,class:R([i(l).b(),i(l).is("selectable",u.value),i(l).is("active",e.node.checked),i(l).is("disabled",!g.value),p.value&&"in-active-path",v.value&&"in-checked-path"]),onMouseenter:C,onFocus:C,onClick:k},[re(" prefix "),s.value&&c.value?(_(),ie(i(fo),{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:f.value,onClick:O[0]||(O[0]=Xe(()=>{},["stop"])),"onUpdate:modelValue":T},null,8,["model-value","indeterminate","disabled"])):u.value&&c.value?(_(),ie(i(Jb),{key:1,"model-value":d.value,label:e.node.uid,disabled:f.value,"onUpdate:modelValue":T,onClick:O[1]||(O[1]=Xe(()=>{},["stop"]))},{default:ae(()=>[re(` + Add an empty element to avoid render label, + do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485 + `),O[2]||(O[2]=E("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):h.value&&e.node.checked?(_(),ie(i(ze),{key:2,class:R(i(l).e("prefix"))},{default:ae(()=>[Q(i(ni))]),_:1},8,["class"])):re("v-if",!0),re(" content "),Q(i(Kq),{node:e.node},null,8,["node"]),re(" postfix "),h.value?re("v-if",!0):(_(),$(He,{key:3},[e.node.loading?(_(),ie(i(ze),{key:0,class:R([i(l).is("loading"),i(l).e("postfix")])},{default:ae(()=>[Q(i(io))]),_:1},8,["class"])):(_(),ie(i(ze),{key:1,class:R(["arrow-right",i(l).e("postfix")])},{default:ae(()=>[Q(i(Jn))]),_:1},8,["class"]))],64))],42,Wq))}}),qq=jq,Uq=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=e,n=ht(),a=ve("cascader-menu"),{t:o}=xt(),l=Un();let r,s;const u=Ne(_f),c=V(),d=x(()=>!t.nodes.length),f=x(()=>!u.initialLoaded),h=x(()=>`${l.value}-${t.index}`),g=y=>{r=y.target},p=y=>{var b;if(!(!u.isHoverMenu||!r||!c.value))if(r.contains(y.target)){v();const w=n.vnode.el,{left:C}=w.getBoundingClientRect(),{offsetWidth:S,offsetHeight:k}=w,T=y.clientX-C,M=r.offsetTop,A=M+r.offsetHeight,O=((b=w.querySelector(`.${a.e("wrap")}`))==null?void 0:b.scrollTop)||0;c.value.innerHTML=` + + + `}else s||(s=window.setTimeout(m,u.config.hoverThreshold))},v=()=>{s&&(clearTimeout(s),s=void 0)},m=()=>{c.value&&(c.value.innerHTML="",v())};return(y,b)=>(_(),ie(i(uo),{key:h.value,tag:"ul",role:"menu",class:R(i(a).b()),"wrap-class":i(a).e("wrap"),"view-class":[i(a).e("list"),i(a).is("empty",d.value)],onMousemove:p,onMouseleave:m},{default:ae(()=>{var w;return[(_(!0),$(He,null,Ct(e.nodes,C=>(_(),ie(qq,{key:C.uid,node:C,"menu-id":h.value,onExpand:g},null,8,["node","menu-id"]))),128)),f.value?(_(),$("div",{key:0,class:R(i(a).e("empty-text"))},[Q(i(ze),{size:"14",class:R(i(a).is("loading"))},{default:ae(()=>[Q(i(io))]),_:1},8,["class"]),_t(" "+_e(i(o)("el.cascader.loading")),1)],2)):d.value?(_(),$("div",{key:1,class:R(i(a).e("empty-text"))},[oe(y.$slots,"empty",{},()=>[_t(_e(i(o)("el.cascader.noData")),1)])],2)):(w=i(u))!=null&&w.isHoverMenu?(_(),$(He,{key:2},[re(" eslint-disable vue/html-self-closing "),(_(),$("svg",{ref_key:"hoverZone",ref:c,class:R(i(a).e("hover-zone"))},null,2))],2112)):re("v-if",!0),re(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}),Yq=Uq;let Gq=0;const Xq=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var P2=class I2{constructor(t,n,a,o=!1){this.data=t,this.config=n,this.parent=a,this.root=o,this.uid=Gq++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:l,label:r,children:s}=n,u=t[s],c=Xq(this);this.level=o?0:a?a.level+1:1,this.value=t[l],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new I2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!ha(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:o,checkStrictly:l}=a;return(ct(o)?o(t,this):!!t[o])||!l&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:o}=this,{lazy:l,leaf:r}=n,s=ct(r)?r(t,this):t[r];return kt(s)?l&&!o?!1:!(Ve(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,o=new I2(t,this.config,this);return Ve(n)?n.push(t):this.childrenData=[t],a.push(o),o}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(o=>!o.isDisabled),a=n.length?n.every(o=>o.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((o,l)=>o+(l.checked?1:l.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(o=>!o.isDisabled).every(o=>o.loaded&&o.checked)&&t,this.indeterminate=this.loaded&&a!==n&&a>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:a}=this.config;n||!a?this.checked=t:(this.broadcast(t),this.setCheckState(t),this.emit())}};const L2=(e,t)=>e.reduce((n,a)=>(a.isLeaf?n.push(a):(!t&&n.push(a),n=n.concat(L2(a.children,t))),n),[]);var wg=class{constructor(e,t){this.config=t;const n=(e||[]).map(a=>new P2(a,this.config));this.nodes=n,this.allNodes=L2(n,!1),this.leafNodes=L2(n,!0)}getNodes(){return this.nodes}getFlattedNodes(e){return e?this.leafNodes:this.allNodes}appendNode(e,t){const n=t?t.appendChild(e):new P2(e,this.config);t||this.nodes.push(n),this.appendAllNodesAndLeafNodes(n)}appendNodes(e,t){e.length>0?e.forEach(n=>this.appendNode(n,t)):t&&t.isLeaf&&this.leafNodes.push(t)}appendAllNodesAndLeafNodes(e){this.allNodes.push(e),e.isLeaf&&this.leafNodes.push(e),e.children&&e.children.forEach(t=>{this.appendAllNodesAndLeafNodes(t)})}getNodeByValue(e,t=!1){return Sa(e)?null:this.getFlattedNodes(t).find(n=>sn(n.value,e)||sn(n.pathValues,e))||null}getSameNode(e){return e&&this.getFlattedNodes(!1).find(({value:t,level:n})=>sn(e.value,t)&&e.level===n)||null}};const Cg=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},Jq=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():x8(e)&&e.click()},Zq=(e,t)=>{const n=t.slice(0),a=n.map(l=>l.uid),o=e.reduce((l,r)=>{const s=a.indexOf(r.uid);return s>-1&&(l.push(r),n.splice(s,1),a.splice(s,1)),l},[]);return o.push(...n),o};var Qq=D({name:"ElCascaderPanel",__name:"index",props:vq,emits:mq,setup(e,{expose:t,emit:n}){const a=e,o=n;let l=!1;const r=ve("cascader"),s=gq(a),u=yn();let c;const d=V(!0),f=V(!1),h=V([]),g=V(),p=V([]),v=V(),m=V([]),y=x(()=>s.value.expandTrigger==="hover"),b=x(()=>a.renderLabel||u.default),w=()=>{const{options:N}=a,P=s.value;l=!1,c=new wg(N,P),p.value=[c.getNodes()],P.lazy&&ha(a.options)?(d.value=!1,C(void 0,B=>{B&&(c=new wg(B,P),p.value=[c.getNodes()]),d.value=!0,L(!1,!0)})):L(!1,!0)},C=(N,P)=>{const B=s.value;N=N||new P2({},B,void 0,!0),N.loading=!0;const W=j=>{const G=N,ee=G.root?null:G;G.loading=!1,G.loaded=!0,G.childrenData=G.childrenData||[],j&&(c==null||c.appendNodes(j,ee)),j&&(P==null||P(j)),N.level===0&&(f.value=!0)},K=()=>{N.loading=!1,N.loaded=!1,N.level===0&&(d.value=!0)};B.lazyLoad(N,W,K)},S=(N,P)=>{var j;const{level:B}=N,W=p.value.slice(0,B);let K;N.isLeaf?K=N.pathNodes[B-2]:(K=N,W.push(N.children)),((j=v.value)==null?void 0:j.uid)!==(K==null?void 0:K.uid)&&(v.value=N,p.value=W,!P&&o("expand-change",(N==null?void 0:N.pathValues)||[]))},k=(N,P,B=!0)=>{const{checkStrictly:W,multiple:K}=s.value,j=m.value[0];l=!0,!K&&(j==null||j.doCheck(!1)),N.doCheck(P),I(),B&&!K&&!W&&o("close"),!B&&!K&&T(N)},T=N=>{N&&(N=N.parent,T(N),N&&S(N))},M=N=>c==null?void 0:c.getFlattedNodes(N),A=N=>{var P;return(P=M(N))==null?void 0:P.filter(({checked:B})=>B!==!1)},O=()=>{m.value.forEach(N=>N.doCheck(!1)),I(),p.value=p.value.slice(0,1),v.value=void 0,o("expand-change",[])},I=()=>{const{checkStrictly:N,multiple:P}=s.value,B=m.value,W=Zq(B,A(!N)),K=W.map(j=>j.valueByOption);m.value=W,g.value=P?K:K[0]??null},L=(N=!1,P=!1)=>{const{modelValue:B}=a,{lazy:W,multiple:K,checkStrictly:j}=s.value,G=!j;if(!(!d.value||l||!P&&sn(B,g.value)))if(W&&!N){const ee=zm(oM(la(B))).map(te=>c==null?void 0:c.getNodeByValue(te)).filter(te=>!!te&&!te.loaded&&!te.loading);ee.length?ee.forEach(te=>{C(te,()=>L(!1,P))}):L(!0,P)}else z(zm((K?la(B):[B]).map(ee=>c==null?void 0:c.getNodeByValue(ee,G))),P),g.value=Ro(B??void 0)},z=(N,P=!0)=>{const{checkStrictly:B}=s.value,W=m.value,K=N.filter(ee=>!!ee&&(B||ee.isLeaf)),j=c==null?void 0:c.getSameNode(v.value),G=P&&j||K[0];G?G.pathNodes.forEach(ee=>S(ee,!0)):v.value=void 0,W.forEach(ee=>ee.doCheck(!1)),Nt(K).forEach(ee=>ee.doCheck(!0)),m.value=K,Ie(q)},q=()=>{Rt&&h.value.forEach(N=>{const P=N==null?void 0:N.$el;if(P){const B=P.querySelector(`.${r.namespace.value}-scrollbar__wrap`);let W=P.querySelector(`.${r.b("node")}.in-active-path`);if(!W){const K=P.querySelectorAll(`.${r.b("node")}.${r.is("active")}`);W=K[K.length-1]}sh(B,W)}})},U=N=>{var W,K;const P=N.target,B=Kt(N);switch(B){case we.up:case we.down:N.preventDefault(),Ac(k8(P,B===we.up?-1:1,`.${r.b("node")}[tabindex="-1"]`));break;case we.left:{N.preventDefault();const j=(W=h.value[Cg(P)-1])==null?void 0:W.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);Ac(j);break}case we.right:{N.preventDefault();const j=(K=h.value[Cg(P)+1])==null?void 0:K.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);Ac(j);break}case we.enter:case we.numpadEnter:Jq(P);break}};bt(_f,Nt({config:s,expandingNode:v,checkedNodes:m,isHoverMenu:y,initialLoaded:d,renderLabelFn:b,lazyLoad:C,expandNode:S,handleCheckChange:k})),fe(s,(N,P)=>{sn(N,P)||w()},{immediate:!0}),fe(()=>a.options,w,{deep:!0}),fe(()=>a.modelValue,()=>{l=!1,L()},{deep:!0}),fe(()=>g.value,N=>{sn(N,a.modelValue)||(o(at,N),o(yt,N))});const F=()=>{f.value||w()};return Op(()=>h.value=[]),mt(()=>!ha(a.modelValue)&&L()),t({menuList:h,menus:p,checkedNodes:m,handleKeyDown:U,handleCheckChange:k,getFlattedNodes:M,getCheckedNodes:A,clearCheckedNodes:O,calculateCheckedValue:I,scrollToExpandingNode:q,loadLazyRootNodes:F}),(N,P)=>(_(),$("div",{class:R([i(r).b("panel"),i(r).is("bordered",e.border)]),onKeydown:U},[(_(!0),$(He,null,Ct(p.value,(B,W)=>(_(),ie(Yq,{key:W,ref_for:!0,ref:K=>h.value[W]=K,index:W,nodes:[...B]},{empty:ae(()=>[oe(N.$slots,"empty")]),_:3},8,["index","nodes"]))),128))],34))}}),eU=Qq;const Zb=rt(eU),tU=Ce({...Vb,size:On,placeholder:String,disabled:{type:Boolean,default:void 0},clearable:Boolean,clearIcon:{type:Ft,default:wo},filterable:Boolean,filterMethod:{type:J(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:Boolean,maxCollapseTagsTooltipHeight:{type:[String,Number]},debounce:{type:Number,default:300},beforeFilter:{type:J(Function),default:()=>!0},placement:{type:J(String),values:Uo,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,teleported:Ht.teleported,effect:{type:J(String),default:"light"},tagType:{...wl.type,default:"info"},tagEffect:{...wl.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},showCheckedStrategy:{type:String,values:["parent","child"],default:"child"},checkOnClickNode:Boolean,showPrefix:{type:Boolean,default:!0},...Gr}),_g=e=>!0,nU={[at]:_g,[yt]:_g,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>Dt(e),expandChange:e=>!!e,removeTag:e=>!!e},aU=["placeholder"],oU=["onClick"];var lU=D({name:"ElCascader",__name:"cascader",props:tU,emits:nU,setup(e,{expose:t,emit:n}){const a={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:Oe})=>{const{modifiersData:Fe,placement:Je}=Oe;["right","left","bottom","top"].includes(Je)||Fe.arrow&&(Fe.arrow.x=35)},requires:["arrow"]}]},o=e,l=n,r=_l(),s=yn();let u=0,c=0;const d=ve("cascader"),f=ve("input"),h={small:7,default:11,large:15},{t:g}=xt(),{formItem:p}=Kn(),v=dn(),{valueOnClear:m}=zu(o),{isComposing:y,handleComposition:b}=Bu({afterComposition(Oe){var Je;const Fe=(Je=Oe.target)==null?void 0:Je.value;Ee(Fe)}}),w=V(),C=V(),S=V(),k=V(),T=V(),M=V(),A=V(!1),O=V(!1),I=V(!1),L=V(""),z=V(""),q=V([]),U=V([]),F=x(()=>o.props.multiple?o.collapseTags?q.value.slice(0,o.maxCollapseTags):q.value:[]),N=x(()=>o.props.multiple?o.collapseTags?q.value.slice(o.maxCollapseTags):[]:[]),P=x(()=>r.style),B=x(()=>o.placeholder??g("el.cascader.placeholder")),W=x(()=>z.value||q.value.length>0||y.value?"":B.value),K=En(),j=x(()=>K.value==="small"?"small":"default"),G=x(()=>!!o.props.multiple),ee=x(()=>!o.filterable||G.value),te=x(()=>G.value?z.value:L.value),ue=x(()=>{var Oe;return((Oe=T.value)==null?void 0:Oe.checkedNodes)||[]}),{wrapperRef:ne,isFocused:de,handleBlur:se}=El(S,{disabled:v,beforeBlur(Oe){var Fe,Je;return((Fe=w.value)==null?void 0:Fe.isFocusInsideContent(Oe))||((Je=C.value)==null?void 0:Je.isFocusInsideContent(Oe))},afterBlur(){var Oe;o.validateEvent&&((Oe=p==null?void 0:p.validate)==null||Oe.call(p,"blur").catch(Fe=>ft(Fe)))}}),Y=x(()=>!o.clearable||v.value||I.value||!O.value&&!de.value?!1:!!ue.value.length),X=x(()=>{const{showAllLevels:Oe,separator:Fe}=o,Je=ue.value;return Je.length?G.value?"":Je[0].calcText(Oe,Fe):""}),H=x(()=>(p==null?void 0:p.validateState)||""),Z=x({get(){return Ro(o.modelValue)},set(Oe){const Fe=Oe??m.value;l(at,Fe),l(yt,Fe),o.validateEvent&&(p==null||p.validate("change").catch(Je=>ft(Je)))}}),le=x(()=>[d.b(),d.m(K.value),d.is("disabled",v.value),r.class]),ce=x(()=>[f.e("icon"),"icon-arrow-down",d.is("reverse",A.value)]),ge=x(()=>d.is("focus",de.value)),me=x(()=>{var Oe,Fe;return(Fe=(Oe=w.value)==null?void 0:Oe.popperRef)==null?void 0:Fe.contentRef}),$e=Oe=>{de.value&&se(new FocusEvent("blur",Oe)),Re(!1)},Re=Oe=>{var Fe,Je;v.value||(Oe=Oe??!A.value,Oe!==A.value&&(A.value=Oe,(Je=(Fe=S.value)==null?void 0:Fe.input)==null||Je.setAttribute("aria-expanded",`${Oe}`),Oe?(Ae(),T.value&&Ie(T.value.scrollToExpandingNode)):o.filterable&&et(),l("visibleChange",Oe)))},Ae=()=>{Ie(()=>{var Oe;(Oe=w.value)==null||Oe.updatePopper()})},ye=()=>{I.value=!1},ke=Oe=>{const{showAllLevels:Fe,separator:Je}=o;return{node:Oe,key:Oe.uid,text:Oe.calcText(Fe,Je),hitState:!1,closable:!v.value&&!Oe.isDisabled}},be=Oe=>{var Je;const Fe=Oe.node;Fe.doCheck(!1),(Je=T.value)==null||Je.calculateCheckedValue(),l("removeTag",Fe.valueByOption)},Pe=()=>{switch(o.showCheckedStrategy){case"child":return ue.value;case"parent":{const Oe=Te(!1),Fe=Oe.map(Je=>Je.value);return Oe.filter(Je=>!Je.parent||!Fe.includes(Je.parent.value))}default:return[]}},Be=()=>{if(!G.value)return;const Oe=Pe(),Fe=[];Oe.forEach(Je=>Fe.push(ke(Je))),q.value=Fe},Qe=()=>{var zt,Zt;const{filterMethod:Oe,showAllLevels:Fe,separator:Je}=o,hn=(Zt=(zt=T.value)==null?void 0:zt.getFlattedNodes(!o.props.checkStrictly))==null?void 0:Zt.filter(je=>je.isDisabled?!1:(je.calcText(Fe,Je),Oe(je,te.value)));G.value&&q.value.forEach(je=>{je.hitState=!1}),I.value=!0,U.value=hn,Ae()},tt=()=>{var Fe;let Oe;I.value&&M.value?Oe=M.value.$el.querySelector(`.${d.e("suggestion-item")}`):Oe=(Fe=T.value)==null?void 0:Fe.$el.querySelector(`.${d.b("node")}[tabindex="-1"]`),Oe&&(Oe.focus(),!I.value&&Oe.getAttribute("aria-haspopup")==="true"&&Oe.click())},nt=()=>{var hn,zt,Zt;const Oe=(hn=S.value)==null?void 0:hn.input,Fe=k.value,Je=(zt=M.value)==null?void 0:zt.$el;if(!(!Rt||!Oe)){if(Je){const je=Je.querySelector(`.${d.e("suggestion-list")}`);je.style.minWidth=`${Oe.offsetWidth}px`}if(Fe){const{offsetHeight:je}=Fe,Ge=q.value.length>0?`${Math.max(je,u)-2}px`:`${u}px`;if(Oe.style.height=Ge,s.prefix){const vt=(Zt=S.value)==null?void 0:Zt.$el.querySelector(`.${f.e("prefix")}`);let Nn=0;vt&&(Nn=vt.offsetWidth,Nn>0&&(Nn+=h[K.value||"default"])),Fe.style.left=`${Nn}px`}else Fe.style.left="0";Ae()}}},Te=Oe=>{var Fe;return(Fe=T.value)==null?void 0:Fe.getCheckedNodes(Oe)},Ye=Oe=>{Ae(),l("expandChange",Oe)},st=Oe=>{if(!y.value)switch(Kt(Oe)){case we.enter:case we.numpadEnter:Re();break;case we.down:Re(!0),Ie(tt),Oe.preventDefault();break;case we.esc:A.value===!0&&(Oe.preventDefault(),Oe.stopPropagation(),Re(!1));break;case we.tab:Re(!1);break}},Ke=()=>{var Oe;(Oe=T.value)==null||Oe.clearCheckedNodes(),!A.value&&o.filterable&&et(),Re(!1),l("clear")},et=()=>{const{value:Oe}=X;L.value=Oe,z.value=Oe},gt=Oe=>{var Je,hn;const{checked:Fe}=Oe;G.value?(Je=T.value)==null||Je.handleCheckChange(Oe,!Fe,!1):(!Fe&&((hn=T.value)==null||hn.handleCheckChange(Oe,!0,!1)),Re(!1))},he=Oe=>{const Fe=Oe.target,Je=Kt(Oe);switch(Je){case we.up:case we.down:Oe.preventDefault(),Ac(k8(Fe,Je===we.up?-1:1,`.${d.e("suggestion-item")}[tabindex="-1"]`));break;case we.enter:case we.numpadEnter:Fe.click();break}},Le=()=>{const Oe=q.value[q.value.length-1];c=z.value?0:c+1,!(!Oe||!c||o.collapseTags&&q.value.length>1)&&(Oe.hitState?be(Oe):Oe.hitState=!0)},pe=_u(()=>{const{value:Oe}=te;if(!Oe)return;const Fe=o.beforeFilter(Oe);As(Fe)?Fe.then(Qe).catch(()=>{}):Fe!==!1?Qe():ye()},x(()=>o.debounce)),Ee=(Oe,Fe)=>{if(!A.value&&Re(!0),!(Fe!=null&&Fe.isComposing))if(Oe)pe();else{const Je=o.beforeFilter("");As(Je)&&Je.catch(()=>{}),ye()}},it=Oe=>Number.parseFloat(FS(f.cssVarName("input-height"),Oe).value)-2,Pt=()=>{var Oe;(Oe=S.value)==null||Oe.focus()},Xt=()=>{var Oe;(Oe=S.value)==null||Oe.blur()};return fe(I,Ae),fe([ue,v,()=>o.collapseTags,()=>o.maxCollapseTags],Be),fe(q,()=>{Ie(()=>nt())}),fe(K,async()=>{await Ie();const Oe=S.value.input;u=it(Oe)||u,nt()}),fe(X,et,{immediate:!0}),fe(()=>A.value,Oe=>{var Fe;Oe&&o.props.lazy&&o.props.lazyLoad&&((Fe=T.value)==null||Fe.loadLazyRootNodes())}),mt(()=>{const Oe=S.value.input,Fe=it(Oe);u=Oe.offsetHeight||Fe,en(Oe,nt)}),t({getCheckedNodes:Te,cascaderPanelRef:T,togglePopperVisible:Re,contentRef:me,presentText:X,focus:Pt,blur:Xt}),(Oe,Fe)=>(_(),ie(i(Fn),{ref_key:"tooltipRef",ref:w,visible:A.value,teleported:e.teleported,"popper-class":[i(d).e("dropdown"),e.popperClass],"popper-style":e.popperStyle,"popper-options":a,"fallback-placements":e.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:e.placement,transition:`${i(d).namespace.value}-zoom-in-top`,effect:e.effect,pure:"",persistent:e.persistent,onHide:ye},{default:ae(()=>[dt((_(),$("div",{ref_key:"wrapperRef",ref:ne,class:R(le.value),style:We(P.value),onClick:Fe[8]||(Fe[8]=()=>Re(ee.value?void 0:!0)),onKeydown:st,onMouseenter:Fe[9]||(Fe[9]=Je=>O.value=!0),onMouseleave:Fe[10]||(Fe[10]=Je=>O.value=!1)},[Q(i(jn),{ref_key:"inputRef",ref:S,modelValue:L.value,"onUpdate:modelValue":Fe[1]||(Fe[1]=Je=>L.value=Je),placeholder:W.value,readonly:ee.value,disabled:i(v),"validate-event":!1,size:i(K),class:R(ge.value),tabindex:G.value&&e.filterable&&!i(v)?-1:void 0,onCompositionstart:i(b),onCompositionupdate:i(b),onCompositionend:i(b),onInput:Ee},ga({suffix:ae(()=>[Y.value?(_(),ie(i(ze),{key:"clear",class:R([i(f).e("icon"),"icon-circle-close"]),onClick:Xe(Ke,["stop"])},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class"])):(_(),ie(i(ze),{key:"arrow-down",class:R(ce.value),onClick:Fe[0]||(Fe[0]=Xe(Je=>Re(),["stop"]))},{default:ae(()=>[Q(i(bo))]),_:1},8,["class"]))]),_:2},[Oe.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(Oe.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),G.value?(_(),$("div",{key:0,ref_key:"tagWrapper",ref:k,class:R([i(d).e("tags"),i(d).is("validate",!!H.value)])},[oe(Oe.$slots,"tag",{data:q.value,deleteTag:be},()=>[(_(!0),$(He,null,Ct(F.value,Je=>(_(),ie(i(dl),{key:Je.key,type:e.tagType,size:j.value,effect:e.tagEffect,hit:Je.hitState,closable:Je.closable,"disable-transitions":"",onClose:hn=>be(Je)},{default:ae(()=>[E("span",null,_e(Je.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128))]),e.collapseTags&&q.value.length>e.maxCollapseTags?(_(),ie(i(Fn),{key:0,ref_key:"tagTooltipRef",ref:C,disabled:A.value||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom","popper-class":e.popperClass,"popper-style":e.popperStyle,effect:e.effect,persistent:e.persistent},{default:ae(()=>[Q(i(dl),{closable:!1,size:j.value,type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[E("span",{class:R(i(d).e("tags-text"))}," + "+_e(q.value.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect"])]),content:ae(()=>[Q(i(uo),{"max-height":e.maxCollapseTagsTooltipHeight},{default:ae(()=>[E("div",{class:R(i(d).e("collapse-tags"))},[(_(!0),$(He,null,Ct(N.value,(Je,hn)=>(_(),$("div",{key:hn,class:R(i(d).e("collapse-tag"))},[(_(),ie(i(dl),{key:Je.key,class:"in-tooltip",type:e.tagType,size:j.value,effect:e.tagEffect,hit:Je.hitState,closable:Je.closable,"disable-transitions":"",onClose:zt=>be(Je)},{default:ae(()=>[E("span",null,_e(Je.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:1},8,["max-height"])]),_:1},8,["disabled","popper-class","popper-style","effect","persistent"])):re("v-if",!0),e.filterable&&!i(v)?dt((_(),$("input",{key:1,"onUpdate:modelValue":Fe[2]||(Fe[2]=Je=>z.value=Je),type:"text",class:R(i(d).e("search-input")),placeholder:X.value?"":B.value,onInput:Fe[3]||(Fe[3]=Je=>Ee(z.value,Je)),onClick:Fe[4]||(Fe[4]=Xe(Je=>Re(!0),["stop"])),onKeydown:rn(Le,["delete"]),onCompositionstart:Fe[5]||(Fe[5]=(...Je)=>i(b)&&i(b)(...Je)),onCompositionupdate:Fe[6]||(Fe[6]=(...Je)=>i(b)&&i(b)(...Je)),onCompositionend:Fe[7]||(Fe[7]=(...Je)=>i(b)&&i(b)(...Je))},null,42,aU)),[[_6,z.value]]):re("v-if",!0)],2)):re("v-if",!0)],38)),[[i(Yl),$e,me.value]])]),content:ae(()=>[Oe.$slots.header?(_(),$("div",{key:0,class:R(i(d).e("header")),onClick:Fe[11]||(Fe[11]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"header")],2)):re("v-if",!0),dt(Q(i(Zb),{ref_key:"cascaderPanelRef",ref:T,modelValue:Z.value,"onUpdate:modelValue":Fe[12]||(Fe[12]=Je=>Z.value=Je),options:e.options,props:o.props,border:!1,"render-label":Oe.$slots.default,onExpandChange:Ye,onClose:Fe[13]||(Fe[13]=Je=>Oe.$nextTick(()=>Re(!1)))},{empty:ae(()=>[oe(Oe.$slots,"empty")]),_:3},8,["modelValue","options","props","render-label"]),[[At,!I.value]]),e.filterable?dt((_(),ie(i(uo),{key:1,ref_key:"suggestionPanel",ref:M,tag:"ul",class:R(i(d).e("suggestion-panel")),"view-class":i(d).e("suggestion-list"),onKeydown:he},{default:ae(()=>[U.value.length?(_(!0),$(He,{key:0},Ct(U.value,Je=>(_(),$("li",{key:Je.uid,class:R([i(d).e("suggestion-item"),i(d).is("checked",Je.checked)]),tabindex:-1,onClick:hn=>gt(Je)},[oe(Oe.$slots,"suggestion-item",{item:Je},()=>[E("span",null,_e(Je.text),1),Je.checked?(_(),ie(i(ze),{key:0},{default:ae(()=>[Q(i(ni))]),_:1})):re("v-if",!0)])],10,oU))),128)):oe(Oe.$slots,"empty",{key:1},()=>[E("li",{class:R(i(d).e("empty-text"))},_e(i(g)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[At,I.value]]):re("v-if",!0),Oe.$slots.footer?(_(),$("div",{key:2,class:R(i(d).e("footer")),onClick:Fe[14]||(Fe[14]=Xe(()=>{},["stop"]))},[oe(Oe.$slots,"footer")],2)):re("v-if",!0)]),_:3},8,["visible","teleported","popper-class","popper-style","fallback-placements","placement","transition","effect","persistent"]))}}),rU=lU;const sU=rt(rU),iU=Ce({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),uU={"update:checked":e=>Dt(e),[yt]:e=>Dt(e)};var cU=D({name:"ElCheckTag",__name:"check-tag",props:iU,emits:uU,setup(e,{emit:t}){const n=e,a=t,o=ve("check-tag"),l=x(()=>[o.b(),o.is("checked",n.checked),o.is("disabled",n.disabled),o.m(n.type||"primary")]),r=()=>{if(n.disabled)return;const s=!n.checked;a(yt,s),a("update:checked",s)};return(s,u)=>(_(),$("span",{class:R(l.value),onClick:r},[oe(s.$slots,"default")],2))}}),dU=cU;const fU=rt(dU),pU=Ce({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:J([Number,Object]),default:()=>un({})},sm:{type:J([Number,Object]),default:()=>un({})},md:{type:J([Number,Object]),default:()=>un({})},lg:{type:J([Number,Object]),default:()=>un({})},xl:{type:J([Number,Object]),default:()=>un({})}}),hU=["start","center","end","space-around","space-between","space-evenly"],vU=["top","middle","bottom"],mU=Ce({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:hU,default:"start"},align:{type:String,values:vU}}),Qb=Symbol("rowContextKey");var gU=D({name:"ElRow",__name:"row",props:mU,setup(e){const t=e,n=ve("row");bt(Qb,{gutter:x(()=>t.gutter)});const a=x(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l}),o=x(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(l,r)=>(_(),ie(ut(e.tag),{class:R(o.value),style:We(a.value)},{default:ae(()=>[oe(l.$slots,"default")]),_:3},8,["class","style"]))}}),yU=gU;const bU=rt(yU);var wU=D({name:"ElCol",__name:"col",props:pU,setup(e){const t=e,{gutter:n}=Ne(Qb,{gutter:x(()=>0)}),a=ve("col"),o=x(()=>{const r={};return n.value&&(r.paddingLeft=r.paddingRight=`${n.value/2}px`),r}),l=x(()=>{const r=[];return["span","offset","pull","push"].forEach(s=>{const u=t[s];De(u)&&(s==="span"?r.push(a.b(`${t[s]}`)):u>0&&r.push(a.b(`${s}-${t[s]}`)))}),["xs","sm","md","lg","xl"].forEach(s=>{De(t[s])?r.push(a.b(`${s}-${t[s]}`)):Mt(t[s])&&Object.entries(t[s]).forEach(([u,c])=>{r.push(u!=="span"?a.b(`${s}-${u}-${c}`):a.b(`${s}-${c}`))})}),n.value&&r.push(a.is("guttered")),[a.b(),r]});return(r,s)=>(_(),ie(ut(e.tag),{class:R(l.value),style:We(o.value)},{default:ae(()=>[oe(r.$slots,"default")]),_:3},8,["class","style"]))}}),CU=wU;const _U=rt(CU),Sg=e=>De(e)||Ue(e)||Ve(e),SU=Ce({accordion:Boolean,modelValue:{type:J([Array,String,Number]),default:()=>un([])},expandIconPosition:{type:J([String]),default:"right"},beforeCollapse:{type:J(Function)}}),xU={[at]:Sg,[yt]:Sg},ew=Symbol("collapseContextKey"),kU=Ce({title:{type:String,default:""},name:{type:J([String,Number]),default:void 0},icon:{type:Ft,default:Jn},disabled:Boolean});var EU=D({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=ve("collapse-transition"),n=o=>{o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom},a={beforeEnter(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.style.height&&(o.dataset.elExistsHeight=o.style.height),o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0},enter(o){requestAnimationFrame(()=>{o.dataset.oldOverflow=o.style.overflow,o.dataset.elExistsHeight?o.style.maxHeight=o.dataset.elExistsHeight:o.scrollHeight!==0?o.style.maxHeight=`${o.scrollHeight}px`:o.style.maxHeight=0,o.style.paddingTop=o.dataset.oldPaddingTop,o.style.paddingBottom=o.dataset.oldPaddingBottom,o.style.overflow="hidden"})},afterEnter(o){o.style.maxHeight="",o.style.overflow=o.dataset.oldOverflow},enterCancelled(o){n(o)},beforeLeave(o){o.dataset||(o.dataset={}),o.dataset.oldPaddingTop=o.style.paddingTop,o.dataset.oldPaddingBottom=o.style.paddingBottom,o.dataset.oldOverflow=o.style.overflow,o.style.maxHeight=`${o.scrollHeight}px`,o.style.overflow="hidden"},leave(o){o.scrollHeight!==0&&(o.style.maxHeight=0,o.style.paddingTop=0,o.style.paddingBottom=0)},afterLeave(o){n(o)},leaveCancelled(o){n(o)}};return(o,l)=>(_(),ie(qn,pt({name:i(t).b()},s_(a)),{default:ae(()=>[oe(o.$slots,"default")]),_:3},16,["name"]))}}),TU=EU;const Sf=rt(TU),xg="ElCollapse",MU=(e,t)=>{const n=V(In(e.modelValue)),a=r=>{n.value=r;const s=e.accordion?n.value[0]:n.value;t(at,s),t(yt,s)},o=r=>{if(e.accordion)a([n.value[0]===r?"":r]);else{const s=[...n.value],u=s.indexOf(r);u>-1?s.splice(u,1):s.push(r),a(s)}},l=async r=>{const{beforeCollapse:s}=e;if(!s){o(r);return}const u=s(r);[As(u),Dt(u)].includes(!0)||on(xg,"beforeCollapse must return type `Promise` or `boolean`"),As(u)?u.then(c=>{c!==!1&&o(r)}).catch(c=>{ft(xg,`some error occurred: ${c}`)}):u&&o(r)};return fe(()=>e.modelValue,()=>n.value=In(e.modelValue),{deep:!0}),bt(ew,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:a}},OU=e=>{const t=ve("collapse");return{rootKls:x(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var $U=D({name:"ElCollapse",__name:"collapse",props:SU,emits:xU,setup(e,{expose:t,emit:n}){const a=e,{activeNames:o,setActiveNames:l}=MU(a,n),{rootKls:r}=OU(a);return t({activeNames:o,setActiveNames:l}),(s,u)=>(_(),$("div",{class:R(i(r))},[oe(s.$slots,"default")],2))}}),AU=$U;const RU=e=>{const t=Ne(ew),{namespace:n}=ve("collapse"),a=V(!1),o=V(!1),l=gh(),r=x(()=>l.current++),s=x(()=>e.name??`${n.value}-id-${l.prefix}-${i(r)}`),u=x(()=>t==null?void 0:t.activeNames.value.includes(i(s)));return{focusing:a,id:r,isActive:u,handleFocus:()=>{setTimeout(()=>{o.value?o.value=!1:a.value=!0},50)},handleHeaderClick:h=>{var g;e.disabled||(g=h.target)!=null&&g.closest("input, textarea, select")||(t==null||t.handleItemClick(i(s)),a.value=!1,o.value=!0)},handleEnterClick:h=>{var g;(g=h.target)!=null&&g.closest("input, textarea, select")||(h.preventDefault(),t==null||t.handleItemClick(i(s)))}}},NU=(e,{focusing:t,isActive:n,id:a})=>{const o=ve("collapse"),l=x(()=>[o.b("item"),o.is("active",i(n)),o.is("disabled",e.disabled)]),r=x(()=>[o.be("item","header"),o.is("active",i(n)),{focusing:i(t)&&!e.disabled}]),s=x(()=>[o.be("item","arrow"),o.is("active",i(n))]);return{itemTitleKls:x(()=>[o.be("item","title")]),arrowKls:s,headKls:r,rootKls:l,itemWrapperKls:x(()=>o.be("item","wrap")),itemContentKls:x(()=>o.be("item","content")),scopedContentId:x(()=>o.b(`content-${i(a)}`)),scopedHeadId:x(()=>o.b(`head-${i(a)}`))}},PU=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],IU=["id","aria-hidden","aria-labelledby"];var LU=D({name:"ElCollapseItem",__name:"collapse-item",props:kU,setup(e,{expose:t}){const n=e,{focusing:a,id:o,isActive:l,handleFocus:r,handleHeaderClick:s,handleEnterClick:u}=RU(n),{arrowKls:c,headKls:d,rootKls:f,itemTitleKls:h,itemWrapperKls:g,itemContentKls:p,scopedContentId:v,scopedHeadId:m}=NU(n,{focusing:a,isActive:l,id:o});return t({isActive:l}),(y,b)=>(_(),$("div",{class:R(i(f))},[E("div",{id:i(m),class:R(i(d)),"aria-expanded":i(l),"aria-controls":i(v),"aria-describedby":i(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:b[0]||(b[0]=(...w)=>i(s)&&i(s)(...w)),onKeydown:b[1]||(b[1]=rn(Xe((...w)=>i(u)&&i(u)(...w),["stop"]),["space","enter"])),onFocus:b[2]||(b[2]=(...w)=>i(r)&&i(r)(...w)),onBlur:b[3]||(b[3]=w=>a.value=!1)},[E("span",{class:R(i(h))},[oe(y.$slots,"title",{isActive:i(l)},()=>[_t(_e(e.title),1)])],2),oe(y.$slots,"icon",{isActive:i(l)},()=>[Q(i(ze),{class:R(i(c))},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class"])])],42,PU),Q(i(Sf),null,{default:ae(()=>[dt(E("div",{id:i(v),role:"region",class:R(i(g)),"aria-hidden":!i(l),"aria-labelledby":i(m)},[E("div",{class:R(i(p))},[oe(y.$slots,"default")],2)],10,IU),[[At,i(l)]])]),_:3})],2))}}),tw=LU;const VU=rt(AU,{CollapseItem:tw}),BU=ln(tw),nw=Ce({modelValue:{type:J(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:J(String)},disabled:Boolean,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},hueSliderClass:{type:J([String,Array,Object])},hueSliderStyle:{type:J([String,Array,Object])}}),zU={[at]:e=>Ue(e)||Cn(e)},aw=Symbol("colorCommonPickerKey"),ow=Symbol("colorPickerPanelContextKey"),lw=Ce({color:{type:J(Object),required:!0},vertical:Boolean,disabled:Boolean}),DU=lw,kg=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},V2=(e,t)=>Math.abs(kg(e)-kg(t)),rw=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};let y0=!1;function B2(e,t){if(!Rt)return;const n=function(l){var r;(r=t.drag)==null||r.call(t,l)},a=function(l){var r;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",a),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",a),document.onselectstart=null,document.ondragstart=null,y0=!1,(r=t.end)==null||r.call(t,l)},o=function(l){var r;y0||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",a),document.addEventListener("touchmove",n),document.addEventListener("touchend",a),y0=!0,(r=t.start)==null||r.call(t,l))};e.addEventListener("mousedown",o),e.addEventListener("touchstart",o,{passive:!1})}const sw=(e,{key:t,minValue:n,maxValue:a})=>{const o=ht(),l=qt(),r=qt(),s=x(()=>e.color.get(t));function u(h){var g;e.disabled||(h.target!==l.value&&c(h),(g=l.value)==null||g.focus())}function c(h){if(!r.value||!l.value||e.disabled)return;const g=o.vnode.el.getBoundingClientRect(),{clientX:p,clientY:v}=rw(h);let m;if(e.vertical){let y=v-g.top;y=Math.max(l.value.offsetHeight/2,y),y=Math.min(y,g.height-l.value.offsetHeight/2),m=Math.round((y-l.value.offsetHeight/2)/(g.height-l.value.offsetHeight)*a)}else{let y=p-g.left;y=Math.max(l.value.offsetWidth/2,y),y=Math.min(y,g.width-l.value.offsetWidth/2),m=Math.round((y-l.value.offsetWidth/2)/(g.width-l.value.offsetWidth)*a)}e.color.set(t,m)}function d(h){if(e.disabled)return;const{shiftKey:g}=h,p=Kt(h),v=g?10:1,m=t==="hue"?-1:1;let y=!0;switch(p){case we.left:case we.down:f(-v*m);break;case we.right:case we.up:f(v*m);break;case we.home:e.color.set(t,t==="hue"?a:n);break;case we.end:e.color.set(t,t==="hue"?n:a);break;case we.pageDown:f(-4*m);break;case we.pageUp:f(4*m);break;default:y=!1;break}y&&h.preventDefault()}function f(h){let g=s.value+h;g=ga?a:g,e.color.set(t,g)}return{thumb:l,bar:r,currentValue:s,handleDrag:c,handleClick:u,handleKeydown:d}},iw=(e,{namespace:t,maxValue:n,bar:a,thumb:o,currentValue:l,handleDrag:r,getBackground:s})=>{const u=ht(),c=ve(t),d=V(0),f=V(0),h=V();function g(){if(!o.value||e.vertical)return 0;const w=u.vnode.el,C=l.value;return w?Math.round(C*(w.offsetWidth-o.value.offsetWidth/2)/n):0}function p(){if(!o.value)return 0;const w=u.vnode.el;if(!e.vertical)return 0;const C=l.value;return w?Math.round(C*(w.offsetHeight-o.value.offsetHeight/2)/n):0}function v(){d.value=g(),f.value=p(),h.value=s==null?void 0:s()}mt(()=>{if(!a.value||!o.value)return;const w={drag:C=>{r(C)},end:C=>{r(C)}};B2(a.value,w),B2(o.value,w),v()}),fe(l,()=>v()),fe(()=>e.color.value,()=>v());const m=x(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),y=x(()=>c.e("bar")),b=x(()=>c.e("thumb"));return{rootKls:m,barKls:y,barStyle:x(()=>({background:h.value})),thumbKls:b,thumbStyle:x(()=>({left:cn(d.value),top:cn(f.value)})),thumbLeft:d,thumbTop:f,update:v}},HU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Eg=0,b0=100;var FU=D({name:"ElColorAlphaSlider",__name:"alpha-slider",props:lw,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=sw(n,{key:"alpha",minValue:Eg,maxValue:b0}),{rootKls:c,barKls:d,barStyle:f,thumbKls:h,thumbStyle:g,update:p}=iw(n,{namespace:"color-alpha-slider",maxValue:b0,currentValue:a,bar:o,thumb:l,handleDrag:r,getBackground:b}),{t:v}=xt(),m=x(()=>v("el.colorpicker.alphaLabel")),y=x(()=>v("el.colorpicker.alphaDescription",{alpha:a.value,color:n.color.value}));function b(){if(n.color&&n.color.value){const{r:w,g:C,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${w}, ${C}, ${S}, 0) 0%, rgba(${w}, ${C}, ${S}, 1) 100%)`}return""}return t({update:p,bar:o,thumb:l}),(w,C)=>(_(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),style:We(i(f)),onClick:C[0]||(C[0]=(...S)=>i(s)&&i(s)(...S))},null,6),E("div",{ref_key:"thumb",ref:l,class:R(i(h)),style:We(i(g)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Eg,"aria-valuemax":b0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:C[1]||(C[1]=(...S)=>i(u)&&i(u)(...S))},null,46,HU)],2))}}),KU=FU;const WU=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],Tg=0,w0=360;var jU=D({name:"ElColorHueSlider",__name:"hue-slider",props:DU,setup(e,{expose:t}){const n=e,{currentValue:a,bar:o,thumb:l,handleDrag:r,handleClick:s,handleKeydown:u}=sw(n,{key:"hue",minValue:Tg,maxValue:w0}),{rootKls:c,barKls:d,thumbKls:f,thumbStyle:h,thumbTop:g,update:p}=iw(n,{namespace:"color-hue-slider",maxValue:w0,currentValue:a,bar:o,thumb:l,handleDrag:r}),{t:v}=xt(),m=x(()=>v("el.colorpicker.hueLabel")),y=x(()=>v("el.colorpicker.hueDescription",{hue:a.value,color:n.color.value}));return t({bar:o,thumb:l,thumbTop:g,update:p}),(b,w)=>(_(),$("div",{class:R(i(c))},[E("div",{ref_key:"bar",ref:o,class:R(i(d)),onClick:w[0]||(w[0]=(...C)=>i(s)&&i(s)(...C))},null,2),E("div",{ref_key:"thumb",ref:l,class:R(i(f)),style:We(i(h)),"aria-label":m.value,"aria-valuenow":i(a),"aria-valuetext":y.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":Tg,"aria-valuemax":w0,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:w[1]||(w[1]=(...C)=>i(u)&&i(u)(...C))},null,46,WU)],2))}}),qU=jU;const UU=Ce({colors:{type:J(Array),required:!0},color:{type:J(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var yd=class{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this._tiny=new mn,this._isValid=!1,this.enableAlpha=!1,this.format="",this.value="";for(const t in e)An(e,t)&&(this[t]=e[t]);e.value?this.fromString(e.value):this.doOnChange()}set(e,t){if(arguments.length===1&&typeof e=="object"){for(const n in e)An(e,n)&&this.set(n,e[n]);return}this[`_${e}`]=t,this._isValid=!0,this.doOnChange()}get(e){return["hue","saturation","value","alpha"].includes(e)?Math.round(this[`_${e}`]):this[`_${e}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(e){const t=new mn(e);if(this._isValid=t.isValid,t.isValid){const{h:n,s:a,v:o,a:l}=t.toHsv();this._hue=n,this._saturation=a*100,this._value=o*100,this._alpha=l*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(e){const t=new mn({h:e._hue,s:e._saturation/100,v:e._value/100,a:e._alpha/100});return this._tiny.equals(t)}doOnChange(){const{_hue:e,_saturation:t,_value:n,_alpha:a,format:o,enableAlpha:l}=this;let r=o||(l?"rgb":"hex");o==="hex"&&l&&(r="hex8"),this._tiny=new mn({h:e,s:t/100,v:n/100,a:a/100}),this.value=this._isValid?this._tiny.toString(r):""}};const YU=e=>{const{currentColor:t}=Ne(ow),n=V(o(e.colors,e.color));fe(()=>t.value,l=>{const r=new yd({value:l,enableAlpha:e.enableAlpha});n.value.forEach(s=>{s.selected=r.compare(s)})}),ma(()=>{n.value=o(e.colors,e.color)});function a(l){e.color.fromString(e.colors[l])}function o(l,r){return l.map(s=>{const u=new yd({value:s,enableAlpha:e.enableAlpha});return u.selected=u.compare(r),u})}return{rgbaColors:n,handleSelect:a}},GU=e=>{const t=ve("color-predefine"),n=x(()=>[t.b(),t.is("disabled",e.disabled)]),a=x(()=>t.e("colors"));function o(l){return[t.e("color-selector"),t.is("alpha",l.get("alpha")<100),{selected:l.selected}]}return{rootKls:n,colorsKls:a,colorSelectorKls:o}},XU=["disabled","aria-label","onClick"];var JU=D({name:"ElColorPredefine",__name:"predefine",props:UU,setup(e){const t=e,{rgbaColors:n,handleSelect:a}=YU(t),{rootKls:o,colorsKls:l,colorSelectorKls:r}=GU(t),{t:s}=xt(),u=c=>s("el.colorpicker.predefineDescription",{value:c});return(c,d)=>(_(),$("div",{class:R(i(o))},[E("div",{class:R(i(l))},[(_(!0),$(He,null,Ct(i(n),(f,h)=>(_(),$("button",{key:e.colors[h],type:"button",disabled:e.disabled,"aria-label":u(f.value),class:R(i(r)(f)),onClick:g=>i(a)(h)},[E("div",{style:We({backgroundColor:f.value})},null,4)],10,XU))),128))],2)],2))}}),ZU=JU;const QU=Ce({color:{type:J(Object),required:!0},disabled:Boolean}),eY=e=>{const t=ht(),n=V(),a=V(0),o=V(0),l=V("hsl(0, 100%, 50%)"),r=x(()=>e.color.get("saturation")),s=x(()=>e.color.get("value")),u=x(()=>e.color.get("hue"));function c(p){var v;e.disabled||(p.target!==n.value&&d(p),(v=n.value)==null||v.focus({preventScroll:!0}))}function d(p){if(e.disabled)return;const v=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=rw(p);let b=m-v.left,w=y-v.top;b=Math.max(0,b),b=Math.min(b,v.width),w=Math.max(0,w),w=Math.min(w,v.height),o.value=b,a.value=w,e.color.set({saturation:b/v.width*100,value:100-w/v.height*100})}function f(p){if(e.disabled)return;const{shiftKey:v}=p,m=Kt(p),y=v?10:1;let b=!0;switch(m){case we.left:h(-y);break;case we.right:h(y);break;case we.up:g(y);break;case we.down:g(-y);break;default:b=!1;break}b&&p.preventDefault()}function h(p){let v=r.value+p;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function g(p){let v=s.value+p;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:a,cursorLeft:o,background:l,saturation:r,brightness:s,hue:u,handleClick:c,handleDrag:d,handleKeydown:f}},tY=(e,{cursorTop:t,cursorLeft:n,background:a,handleDrag:o})=>{const l=ht(),r=ve("color-svpanel");function s(){const u=e.color.get("saturation"),c=e.color.get("value"),{clientWidth:d,clientHeight:f}=l.vnode.el;n.value=u*d/100,t.value=(100-c)*f/100,a.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}return mt(()=>{B2(l.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),s()}),fe([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>s()),{rootKls:x(()=>r.b()),cursorKls:x(()=>r.e("cursor")),rootStyle:x(()=>({backgroundColor:a.value})),cursorStyle:x(()=>({top:cn(t.value),left:cn(n.value)})),update:s}},nY=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var aY=D({name:"ElSvPanel",__name:"sv-panel",props:QU,setup(e,{expose:t}){const n=e,{cursorRef:a,cursorTop:o,cursorLeft:l,background:r,saturation:s,brightness:u,handleClick:c,handleDrag:d,handleKeydown:f}=eY(n),{rootKls:h,cursorKls:g,rootStyle:p,cursorStyle:v,update:m}=tY(n,{cursorTop:o,cursorLeft:l,background:r,handleDrag:d}),{t:y}=xt(),b=x(()=>y("el.colorpicker.svLabel")),w=x(()=>y("el.colorpicker.svDescription",{saturation:s.value,brightness:u.value,color:n.color.value}));return t({update:m}),(C,S)=>(_(),$("div",{class:R(i(h)),style:We(i(p)),onClick:S[1]||(S[1]=(...k)=>i(c)&&i(c)(...k))},[E("div",{ref_key:"cursorRef",ref:a,class:R(i(g)),style:We(i(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":b.value,"aria-valuenow":`${i(s)},${i(u)}`,"aria-valuetext":w.value,onKeydown:S[0]||(S[0]=(...k)=>i(f)&&i(f)(...k))},null,46,nY)],6))}}),oY=aY;const uw=(e,t)=>{const n=Nt(new yd({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return fe(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(at,n.value)}),{color:n}};var lY=D({name:"ElColorPickerPanel",__name:"color-picker-panel",props:nw,emits:zU,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("color-picker-panel"),{formItem:r}=Kn(),s=dn(),u=V(),c=V(),d=V(),f=V(),h=V(""),{color:g}=Ne(aw,()=>uw(a,o),!0);function p(){g.fromString(h.value),g.value!==h.value&&(h.value=g.value)}function v(){var y;a.validateEvent&&((y=r==null?void 0:r.validate)==null||y.call(r,"blur").catch(b=>ft(b)))}function m(){var y,b,w;(y=u.value)==null||y.update(),(b=c.value)==null||b.update(),(w=d.value)==null||w.update()}return mt(()=>{a.modelValue&&(h.value=g.value),Ie(m)}),fe(()=>a.modelValue,y=>{y!==g.value&&(y?g.fromString(y):g.clear())}),fe(()=>g.value,y=>{o(at,y),h.value=y,a.validateEvent&&(r==null||r.validate("change").catch(b=>ft(b)))}),bt(ow,{currentColor:x(()=>g.value)}),t({color:g,inputRef:f,update:m}),(y,b)=>(_(),$("div",{class:R([i(l).b(),i(l).is("disabled",i(s)),i(l).is("border",e.border)]),onFocusout:v},[E("div",{class:R(i(l).e("wrapper"))},[Q(qU,{ref_key:"hueRef",ref:u,color:i(g),vertical:"",disabled:i(s),class:R(["hue-slider",e.hueSliderClass]),style:We(e.hueSliderStyle)},null,8,["color","disabled","class","style"]),Q(oY,{ref_key:"svRef",ref:c,color:i(g),disabled:i(s)},null,8,["color","disabled"])],2),e.showAlpha?(_(),ie(KU,{key:0,ref_key:"alphaRef",ref:d,color:i(g),disabled:i(s)},null,8,["color","disabled"])):re("v-if",!0),e.predefine?(_(),ie(ZU,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:i(g),colors:e.predefine,disabled:i(s)},null,8,["enable-alpha","color","colors","disabled"])):re("v-if",!0),E("div",{class:R(i(l).e("footer"))},[Q(i(jn),{ref_key:"inputRef",ref:f,modelValue:h.value,"onUpdate:modelValue":b[0]||(b[0]=w=>h.value=w),"validate-event":!1,size:"small",disabled:i(s),onChange:p},null,8,["modelValue","disabled"]),oe(y.$slots,"footer")],2)],34))}}),rY=lY;const cw=rt(rY),sY=Ce({persistent:{type:Boolean,default:!0},modelValue:{type:J(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:J(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:On,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Ht.teleported,appendTo:Ht.appendTo,predefine:{type:J(Array)},validateEvent:{type:Boolean,default:!0},...Gr,...ia(["ariaLabel"])}),iY={[at]:e=>Ue(e)||Cn(e),[yt]:e=>Ue(e)||Cn(e),activeChange:e=>Ue(e)||Cn(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},uY=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var cY=D({name:"ElColorPicker",__name:"color-picker",props:sY,emits:iY,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("color"),{formItem:s}=Kn(),u=En(),c=dn(),{valueOnClear:d,isEmptyValue:f}=zu(a,null),h=uw(a,o),{inputId:g,isLabeledByFormItem:p}=za(a,{formItemContext:s}),v=V(),m=V(),y=V(),b=V(!1),w=V(!1);let C=!0;const{isFocused:S,handleFocus:k,handleBlur:T}=El(m,{disabled:c,beforeBlur(Y){var X;return(X=v.value)==null?void 0:X.isFocusInsideContent(Y)},afterBlur(){var Y;F(!1),W(),a.validateEvent&&((Y=s==null?void 0:s.validate)==null||Y.call(s,"blur").catch(X=>ft(X)))}}),M=MS(()=>{var Y;return((Y=y.value)==null?void 0:Y.color)??h.color}),A=x(()=>vl(a,Object.keys(nw))),O=x(()=>!a.modelValue&&!w.value?"transparent":U(M,a.showAlpha)),I=x(()=>!a.modelValue&&!w.value?"":M.value),L=x(()=>p.value?void 0:a.ariaLabel||l("el.colorpicker.defaultLabel")),z=x(()=>p.value?s==null?void 0:s.labelId:void 0),q=x(()=>[r.b("picker"),r.is("disabled",c.value),r.bm("picker",u.value),r.is("focused",S.value)]);function U(Y,X){const{r:H,g:Z,b:le,a:ce}=Y.toRgb();return X?`rgba(${H}, ${Z}, ${le}, ${ce})`:`rgb(${H}, ${Z}, ${le})`}function F(Y){b.value=Y}const N=Ko(F,100,{leading:!0});function P(){c.value||F(!0)}function B(){N(!1),W()}function W(){Ie(()=>{a.modelValue?M.fromString(a.modelValue):(M.value="",Ie(()=>{w.value=!1}))})}function K(){c.value||(b.value&&W(),N(!b.value))}function j(){const Y=f(M.value)?d.value:M.value;o(at,Y),o(yt,Y),a.validateEvent&&(s==null||s.validate("change").catch(X=>ft(X))),N(!1),Ie(()=>{const X=new yd({enableAlpha:a.showAlpha,format:a.colorFormat||"",value:a.modelValue});M.compare(X)||W()})}function G(){N(!1),o(at,d.value),o(yt,d.value),a.modelValue!==d.value&&a.validateEvent&&(s==null||s.validate("change").catch(Y=>ft(Y))),W(),o("clear")}function ee(){var Y,X;(X=(Y=y==null?void 0:y.value)==null?void 0:Y.inputRef)==null||X.focus()}function te(){b.value&&(B(),S.value&&de())}function ue(Y){Y.preventDefault(),Y.stopPropagation(),F(!1),W()}function ne(Y){switch(Kt(Y)){case we.enter:case we.numpadEnter:case we.space:Y.preventDefault(),Y.stopPropagation(),P();break;case we.esc:ue(Y);break}}function de(){m.value.focus()}function se(){m.value.blur()}return fe(()=>I.value,Y=>{C&&o("activeChange",Y),C=!0}),fe(()=>M.value,()=>{!a.modelValue&&!w.value&&(w.value=!0)}),fe(()=>a.modelValue,Y=>{Y?Y&&Y!==M.value&&(C=!1,M.fromString(Y)):w.value=!1}),fe(()=>b.value,()=>{y.value&&Ie(y.value.update)}),bt(aw,h),t({color:M,show:P,hide:B,focus:de,blur:se}),(Y,X)=>(_(),ie(i(Fn),{ref_key:"popper",ref:v,visible:b.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[i(r).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${i(r).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:ee,onHide:X[2]||(X[2]=H=>F(!1))},{content:ae(()=>[dt((_(),ie(i(cw),pt({ref_key:"pickerPanelRef",ref:y},A.value,{border:!1,"validate-event":!1,onKeydown:rn(ue,["esc"])}),{footer:ae(()=>[E("div",null,[e.clearable?(_(),ie(i(Ln),{key:0,class:R(i(r).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:ae(()=>[_t(_e(i(l)("el.colorpicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),Q(i(Ln),{plain:"",size:"small",class:R(i(r).be("footer","btn")),onClick:j},{default:ae(()=>[_t(_e(i(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[i(Yl),te,m.value]])]),default:ae(()=>[E("div",pt({id:i(g),ref_key:"triggerRef",ref:m},Y.$attrs,{class:q.value,role:"button","aria-label":L.value,"aria-labelledby":z.value,"aria-description":i(l)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":i(c),tabindex:i(c)?void 0:e.tabindex,onKeydown:ne,onFocus:X[0]||(X[0]=(...H)=>i(k)&&i(k)(...H)),onBlur:X[1]||(X[1]=(...H)=>i(T)&&i(T)(...H))}),[E("div",{class:R(i(r).be("picker","trigger")),onClick:K},[E("span",{class:R([i(r).be("picker","color"),i(r).is("alpha",e.showAlpha)])},[E("span",{class:R(i(r).be("picker","color-inner")),style:We({backgroundColor:O.value})},[dt(Q(i(ze),{class:R([i(r).be("picker","icon"),i(r).is("icon-arrow-down")])},{default:ae(()=>[Q(i(bo))]),_:1},8,["class"]),[[At,e.modelValue||w.value]]),dt(Q(i(ze),{class:R([i(r).be("picker","empty"),i(r).is("icon-close")])},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class"]),[[At,!e.modelValue&&!w.value]])],6)],2)],2)],16,uY)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}}),dY=cY;const fY=rt(dY);var pY=D({name:"ElContainer",__name:"container",props:{direction:{type:String,required:!1}},setup(e){const t=e,n=yn(),a=ve("container"),o=x(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(l=>{const r=l.type.name;return r==="ElHeader"||r==="ElFooter"}):!1);return(l,r)=>(_(),$("section",{class:R([i(a).b(),i(a).is("vertical",o.value)])},[oe(l.$slots,"default")],2))}}),hY=pY,vY=D({name:"ElAside",__name:"aside",props:{width:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("aside"),a=x(()=>t.width?n.cssVarBlock({width:t.width}):{});return(o,l)=>(_(),$("aside",{class:R(i(n).b()),style:We(a.value)},[oe(o.$slots,"default")],6))}}),dw=vY,mY=D({name:"ElFooter",__name:"footer",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("footer"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(_(),$("footer",{class:R(i(n).b()),style:We(a.value)},[oe(o.$slots,"default")],6))}}),fw=mY,gY=D({name:"ElHeader",__name:"header",props:{height:{type:[String,null],required:!1,default:null}},setup(e){const t=e,n=ve("header"),a=x(()=>t.height?n.cssVarBlock({height:t.height}):{});return(o,l)=>(_(),$("header",{class:R(i(n).b()),style:We(a.value)},[oe(o.$slots,"default")],6))}}),pw=gY,yY=D({name:"ElMain",__name:"main",setup(e){const t=ve("main");return(n,a)=>(_(),$("main",{class:R(i(t).b())},[oe(n.$slots,"default")],2))}}),hw=yY;const bY=rt(hY,{Aside:dw,Footer:fw,Header:pw,Main:hw}),wY=ln(dw),CY=ln(fw),_Y=ln(pw),SY=ln(hw),xY=Ce({valueFormat:String,dateFormat:String,timeFormat:String,disabled:{type:Boolean,default:void 0},modelValue:{type:J([Date,Array,String,Number]),default:""},defaultValue:{type:J([Date,Array])},defaultTime:{type:J([Date,Array])},isRange:Boolean,...Vh,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,unlinkPanels:Boolean,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:Boolean,showWeekNumber:Boolean,type:{type:J(String),default:"date"},clearable:{type:Boolean,default:!0},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0}}),jh=Symbol("rootPickerContextKey"),ju="ElIsDefaultFormat",kY=["date","dates","year","years","month","months","week","range"],qh=Ce({cellClassName:{type:J(Function)},disabledDate:{type:J(Function)},date:{type:J(Object),required:!0},minDate:{type:J(Object)},maxDate:{type:J(Object)},parsedValue:{type:J([Object,Array])},rangeState:{type:J(Object),default:()=>({endDate:null,selecting:!1})},disabled:Boolean}),vw=Ce({type:{type:J(String),required:!0,values:ES},dateFormat:String,timeFormat:String,showNow:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},showWeekNumber:Boolean,border:Boolean,disabled:Boolean,editable:{type:Boolean,default:!0}}),Uh=Ce({unlinkPanels:Boolean,visible:{type:Boolean,default:!0},showConfirm:Boolean,showFooter:{type:Boolean,default:!0},border:Boolean,disabled:Boolean,parsedValue:{type:J(Array)}}),Yh=e=>({type:String,values:kY,default:e}),EY=Ce({...vw,parsedValue:{type:J([Object,Array])},visible:{type:Boolean,default:!0},format:{type:String,default:""}}),iu=e=>{if(!Ve(e))return!1;const[t,n]=e;return lt.isDayjs(t)&<.isDayjs(n)&<(t).isValid()&<(n).isValid()&&t.isSameOrBefore(n)},xf=(e,{lang:t,step:n=1,unit:a,unlinkPanels:o})=>{let l;if(Ve(e)){let[r,s]=e.map(u=>lt(u).locale(t));return o||(s=r.add(n,a)),[r,s]}else e?l=lt(e):l=lt();return l=l.locale(t),[l,l.add(n,a)]},TY=(e,t,{columnIndexOffset:n,startDate:a,nextEndDate:o,now:l,unit:r,relativeDateGetter:s,setCellMetadata:u,setRowMetadata:c})=>{for(let d=0;d{const o=lt().locale(a).startOf("month").month(n).year(t).hour(e.hour()).minute(e.minute()).second(e.second());return ql(o.daysInMonth()).map(l=>o.add(l,"day").toDate())},Hs=(e,t,n,a,o)=>{const l=lt().year(t).month(n).startOf("month").hour(e.hour()).minute(e.minute()).second(e.second()),r=bd(e,t,n,a).find(s=>!(o!=null&&o(s)));return r?lt(r).locale(a):l.locale(a)},wd=(e,t,n)=>{const a=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const o=e.month();if(!bd(e,a,o,t).every(n))return Hs(e,a,o,t,n);for(let l=0;l<12;l++)if(!bd(e,a,l,t).every(n))return Hs(e,a,l,t,n);return e},Fs=(e,t,n,a)=>{if(Ve(e))return e.map(o=>Fs(o,t,n,a));if(Ue(e)){const o=a!=null&&a.value?lt(e):lt(e,t);if(!o.isValid())return o}return lt(e,t).locale(n)},MY=Ce({...qh,showWeekNumber:Boolean,selectionMode:Yh("date")}),OY=["changerange","pick","select"],Cd=(e="")=>["normal","today"].includes(e),$Y=(e,t)=>{const{lang:n}=xt(),a=V(),o=V(),l=V(),r=V(),s=V([[],[],[],[],[],[]]);let u=!1;const c=e.date.$locale().weekStart||7,d=e.date.locale("en").localeData().weekdaysShort().map(B=>B.toLowerCase()),f=x(()=>c>3?7-c:-c),h=x(()=>{const B=e.date.startOf("month");return B.subtract(B.day()||7,"day")}),g=x(()=>d.concat(d).slice(c,c+7)),p=x(()=>sd(i(C)).some(B=>B.isCurrent)),v=x(()=>{const B=e.date.startOf("month");return{startOfMonthDay:B.day()||7,dateCountOfMonth:B.daysInMonth(),dateCountOfLastMonth:B.subtract(1,"month").daysInMonth()}}),m=x(()=>e.selectionMode==="dates"?la(e.parsedValue):[]),y=(B,{count:W,rowIndex:K,columnIndex:j})=>{const{startOfMonthDay:G,dateCountOfMonth:ee,dateCountOfLastMonth:te}=i(v),ue=i(f);if(K>=0&&K<=1){const ne=G+ue<0?7+G+ue:G+ue;if(j+K*7>=ne)return B.text=W,!0;B.text=te-(ne-j%7)+1+K*7,B.type="prev-month"}else return W<=ee?B.text=W:(B.text=W-ee,B.type="next-month"),!0;return!1},b=(B,{columnIndex:W,rowIndex:K},j)=>{const{disabledDate:G,cellClassName:ee}=e,te=i(m),ue=y(B,{count:j,rowIndex:K,columnIndex:W}),ne=B.dayjs.toDate();return B.selected=te.find(de=>de.isSame(B.dayjs,"day")),B.isSelected=!!B.selected,B.isCurrent=k(B),B.disabled=G==null?void 0:G(ne),B.customClass=ee==null?void 0:ee(ne),ue},w=B=>{if(e.selectionMode==="week"){const[W,K]=e.showWeekNumber?[1,7]:[0,6],j=P(B[W+1]);B[W].inRange=j,B[W].start=j,B[K].inRange=j,B[K].end=j}},C=x(()=>{const{minDate:B,maxDate:W,rangeState:K,showWeekNumber:j}=e,G=i(f),ee=i(s),te="day";let ue=1;if(TY({row:6,column:7},ee,{startDate:B,columnIndexOffset:j?1:0,nextEndDate:K.endDate||W||K.selecting&&B||null,now:lt().locale(i(n)).startOf(te),unit:te,relativeDateGetter:ne=>i(h).add(ne-G,te),setCellMetadata:(...ne)=>{b(...ne,ue)&&(ue+=1)},setRowMetadata:w}),j)for(let ne=0;ne<6;ne++)ee[ne][1].dayjs&&(ee[ne][0]={type:"week",text:ee[ne][1].dayjs.week()});return ee});fe(()=>e.date,async()=>{var B;(B=i(a))!=null&&B.contains(document.activeElement)&&(await Ie(),await S())});const S=async()=>{var B;return(B=i(o))==null?void 0:B.focus()},k=B=>e.selectionMode==="date"&&Cd(B.type)&&T(B,e.parsedValue),T=(B,W)=>W?lt(W).locale(i(n)).isSame(e.date.date(Number(B.text)),"day"):!1,M=(B,W)=>{const K=i(v).startOfMonthDay,j=i(f),G=K+j<0?7+K+j:K+j,ee=B*7+(W-(e.showWeekNumber?1:0));return e.date.startOf("month").subtract(G,"day").add(ee,"day")},A=B=>{var G;if(!e.rangeState.selecting)return;let W=B.target;if(W.tagName==="SPAN"&&(W=(G=W.parentNode)==null?void 0:G.parentNode),W.tagName==="DIV"&&(W=W.parentNode),W.tagName!=="TD")return;const K=W.parentNode.rowIndex-1,j=W.cellIndex;i(C)[K][j].disabled||(K!==i(l)||j!==i(r))&&(l.value=K,r.value=j,t("changerange",{selecting:!0,endDate:M(K,j)}))},O=B=>!i(p)&&(B==null?void 0:B.text)===1&&Cd(B.type)||B.isCurrent,I=B=>{u||i(p)||e.selectionMode!=="date"||N(B,!0)},L=B=>{B.target.closest("td")&&(u=!0)},z=B=>{B.target.closest("td")&&(u=!1)},q=B=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:B,maxDate:null}),t("select",!0)):(B>=e.minDate?t("pick",{minDate:e.minDate,maxDate:B}):t("pick",{minDate:B,maxDate:e.minDate}),t("select",!1))},U=B=>{const W=B.week(),K=`${B.year()}w${W}`;t("pick",{year:B.year(),week:W,value:K,date:B.startOf("week")})},F=(B,W)=>{t("pick",W?la(e.parsedValue).filter(K=>(K==null?void 0:K.valueOf())!==B.valueOf()):la(e.parsedValue).concat([B]))},N=(B,W=!1)=>{if(e.disabled)return;const K=B.target.closest("td");if(!K)return;const j=K.parentNode.rowIndex-1,G=K.cellIndex,ee=i(C)[j][G];if(ee.disabled||ee.type==="week")return;const te=M(j,G);switch(e.selectionMode){case"range":q(te);break;case"date":t("pick",te,W);break;case"week":U(te);break;case"dates":F(te,!!ee.selected);break}},P=B=>{if(e.selectionMode!=="week")return!1;let W=e.date.startOf("day");if(B.type==="prev-month"&&(W=W.subtract(1,"month")),B.type==="next-month"&&(W=W.add(1,"month")),W=W.date(Number.parseInt(B.text,10)),e.parsedValue&&!Ve(e.parsedValue)){const K=(e.parsedValue.day()-c+7)%7-1;return e.parsedValue.subtract(K,"day").isSame(W,"day")}return!1};return{WEEKS:g,rows:C,tbodyRef:a,currentCellRef:o,focus:S,isCurrent:k,isWeekActive:P,isSelectedCell:O,handlePickDate:N,handleMouseUp:z,handleMouseDown:L,handleMouseMove:A,handleFocus:I}},AY=(e,{isCurrent:t,isWeekActive:n})=>{const a=ve("date-table"),{t:o}=xt(),l=x(()=>[a.b(),a.is("week-mode",e.selectionMode==="week"&&!e.disabled)]),r=x(()=>o("el.datepicker.dateTablePrompt")),s=c=>{const d=[];return Cd(c.type)&&!c.disabled?(d.push("available"),c.type==="today"&&d.push("today")):d.push(c.type),t(c)&&d.push("current"),c.inRange&&(Cd(c.type)||e.selectionMode==="week")&&(d.push("in-range"),c.start&&d.push("start-date"),c.end&&d.push("end-date")),(c.disabled||e.disabled)&&d.push("disabled"),c.selected&&d.push("selected"),c.customClass&&d.push(c.customClass),d.join(" ")},u=c=>[a.e("row"),{current:n(c)}];return{tableKls:l,tableLabel:r,weekHeaderClass:a.e("week-header"),getCellClasses:s,getRowKls:u,t:o}},RY=Ce({cell:{type:J(Object)}});var Gh=D({name:"ElDatePickerCell",props:RY,setup(e){const t=ve("date-table-cell"),{slots:n}=Ne(jh);return()=>{const{cell:a}=e;return oe(n,"default",{...a},()=>[Q("div",{class:t.b()},[Q("span",{class:t.e("text")},[(a==null?void 0:a.renderText)??(a==null?void 0:a.text)])])])}}});const NY=["aria-label"],PY=["aria-label"],IY=["aria-current","aria-selected","tabindex","aria-disabled"];var LY=D({__name:"basic-date-table",props:MY,emits:OY,setup(e,{expose:t,emit:n}){const a=e,{WEEKS:o,rows:l,tbodyRef:r,currentCellRef:s,focus:u,isCurrent:c,isWeekActive:d,isSelectedCell:f,handlePickDate:h,handleMouseUp:g,handleMouseDown:p,handleMouseMove:v,handleFocus:m}=$Y(a,n),{tableLabel:y,tableKls:b,getCellClasses:w,getRowKls:C,weekHeaderClass:S,t:k}=AY(a,{isCurrent:c,isWeekActive:d});let T=!1;return Lt(()=>{T=!0}),t({focus:u}),(M,A)=>(_(),$("table",{"aria-label":i(y),class:R(i(b)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:A[1]||(A[1]=(...O)=>i(h)&&i(h)(...O)),onMousemove:A[2]||(A[2]=(...O)=>i(v)&&i(v)(...O)),onMousedown:A[3]||(A[3]=(...O)=>i(p)&&i(p)(...O)),onMouseup:A[4]||(A[4]=(...O)=>i(g)&&i(g)(...O))},[E("tbody",{ref_key:"tbodyRef",ref:r},[E("tr",null,[M.showWeekNumber?(_(),$("th",{key:0,scope:"col",class:R(i(S))},null,2)):re("v-if",!0),(_(!0),$(He,null,Ct(i(o),(O,I)=>(_(),$("th",{key:I,"aria-label":i(k)("el.datepicker.weeksFull."+O),scope:"col"},_e(i(k)("el.datepicker.weeks."+O)),9,PY))),128))]),(_(!0),$(He,null,Ct(i(l),(O,I)=>(_(),$("tr",{key:I,class:R(i(C)(M.showWeekNumber?O[2]:O[1]))},[(_(!0),$(He,null,Ct(O,(L,z)=>(_(),$("td",{key:`${I}.${z}`,ref_for:!0,ref:q=>!i(T)&&i(f)(L)&&(s.value=q),class:R(i(w)(L)),"aria-current":L.isCurrent?"date":void 0,"aria-selected":L.isCurrent,tabindex:M.disabled?void 0:i(f)(L)?0:-1,"aria-disabled":M.disabled,onFocus:A[0]||(A[0]=(...q)=>i(m)&&i(m)(...q))},[Q(i(Gh),{cell:L},null,8,["cell"])],42,IY))),128))],2))),128))],512)],42,NY))}}),z2=LY;const VY=Ce({...qh,selectionMode:Yh("month")}),BY=["aria-label"],zY=["aria-selected","aria-label","tabindex","onKeydown"];var DY=D({__name:"basic-month-table",props:VY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("month-table"),{t:r,lang:s}=xt(),u=V(),c=V(),d=V(a.date.locale("en").localeData().monthsShort().map(C=>C.toLowerCase())),f=V([[],[],[]]),h=V(),g=V(),p=x(()=>{var k,T,M;const C=f.value,S=lt().locale(s.value).startOf("month");for(let A=0;A<3;A++){const O=C[A];for(let I=0;I<4;I++){const L=O[I]||(O[I]={row:A,column:I,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0});L.type="normal";const z=A*4+I,q=a.date.startOf("year").month(z),U=a.rangeState.endDate||a.maxDate||a.rangeState.selecting&&a.minDate||null;L.inRange=!!(a.minDate&&q.isSameOrAfter(a.minDate,"month")&&U&&q.isSameOrBefore(U,"month"))||!!(a.minDate&&q.isSameOrBefore(a.minDate,"month")&&U&&q.isSameOrAfter(U,"month")),(k=a.minDate)!=null&&k.isSameOrAfter(U)?(L.start=!!(U&&q.isSame(U,"month")),L.end=a.minDate&&q.isSame(a.minDate,"month")):(L.start=!!(a.minDate&&q.isSame(a.minDate,"month")),L.end=!!(U&&q.isSame(U,"month"))),S.isSame(q)&&(L.type="today");const F=q.toDate();L.text=z,L.disabled=((T=a.disabledDate)==null?void 0:T.call(a,F))||!1,L.date=F,L.customClass=(M=a.cellClassName)==null?void 0:M.call(a,F),L.dayjs=q,L.timestamp=q.valueOf(),L.isSelected=y(L)}}return C}),v=()=>{var C;(C=c.value)==null||C.focus()},m=C=>{const S={},k=a.date.year(),T=new Date,M=C.text;return S.disabled=a.disabled||(a.disabledDate?bd(a.date,k,M,s.value).every(a.disabledDate):!1),S.current=la(a.parsedValue).some(A=>lt.isDayjs(A)&&A.year()===k&&A.month()===M),S.today=T.getFullYear()===k&&T.getMonth()===M,C.customClass&&(S[C.customClass]=!0),C.inRange&&(S["in-range"]=!0,C.start&&(S["start-date"]=!0),C.end&&(S["end-date"]=!0)),S},y=C=>{const S=a.date.year(),k=C.text;return la(a.date).some(T=>T.year()===S&&T.month()===k)},b=C=>{var M;if(!a.rangeState.selecting)return;let S=C.target;if(S.tagName==="SPAN"&&(S=(M=S.parentNode)==null?void 0:M.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const k=S.parentNode.rowIndex,T=S.cellIndex;p.value[k][T].disabled||(k!==h.value||T!==g.value)&&(h.value=k,g.value=T,o("changerange",{selecting:!0,endDate:a.date.startOf("year").month(k*4+T)}))},w=C=>{var A;if(a.disabled)return;const S=(A=C.target)==null?void 0:A.closest("td");if((S==null?void 0:S.tagName)!=="TD"||Vo(S,"disabled"))return;const k=S.cellIndex,T=S.parentNode.rowIndex*4+k,M=a.date.startOf("year").month(T);if(a.selectionMode==="months"){if(C.type==="keydown"){o("pick",la(a.parsedValue),!1);return}const O=Hs(a.date,a.date.year(),T,s.value,a.disabledDate);o("pick",Vo(S,"current")?la(a.parsedValue).filter(I=>(I==null?void 0:I.year())!==O.year()||(I==null?void 0:I.month())!==O.month()):la(a.parsedValue).concat([lt(O)]))}else a.selectionMode==="range"?a.rangeState.selecting?(a.minDate&&M>=a.minDate?o("pick",{minDate:a.minDate,maxDate:M}):o("pick",{minDate:M,maxDate:a.minDate}),o("select",!1)):(o("pick",{minDate:M,maxDate:null}),o("select",!0)):o("pick",T)};return fe(()=>a.date,async()=>{var C,S;(C=u.value)!=null&&C.contains(document.activeElement)&&(await Ie(),(S=c.value)==null||S.focus())}),t({focus:v}),(C,S)=>(_(),$("table",{role:"grid","aria-label":i(r)("el.datepicker.monthTablePrompt"),class:R(i(l).b()),onClick:w,onMousemove:b},[E("tbody",{ref_key:"tbodyRef",ref:u},[(_(!0),$(He,null,Ct(p.value,(k,T)=>(_(),$("tr",{key:T},[(_(!0),$(He,null,Ct(k,(M,A)=>(_(),$("td",{key:A,ref_for:!0,ref:O=>M.isSelected&&(c.value=O),class:R(m(M)),"aria-selected":!!M.isSelected,"aria-label":i(r)(`el.datepicker.month${+M.text+1}`),tabindex:M.isSelected?0:-1,onKeydown:[rn(Xe(w,["prevent","stop"]),["space"]),rn(Xe(w,["prevent","stop"]),["enter"])]},[Q(i(Gh),{cell:{...M,renderText:i(r)("el.datepicker.months."+d.value[M.text])}},null,8,["cell"])],42,zY))),128))]))),128))],512)],42,BY))}}),uu=DY;const HY=Ce({...qh,selectionMode:Yh("year")}),FY=["aria-label"],KY=["aria-selected","aria-label","tabindex","onKeydown"];var WY=D({__name:"basic-year-table",props:HY,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const a=(S,k)=>{const T=lt(String(S)).locale(k).startOf("year");return ql(T.endOf("year").dayOfYear()).map(M=>T.add(M,"day").toDate())},o=e,l=n,r=ve("year-table"),{t:s,lang:u}=xt(),c=V(),d=V(),f=x(()=>Math.floor(o.date.year()/10)*10),h=V([[],[],[]]),g=V(),p=V(),v=x(()=>{var T,M,A;const S=h.value,k=lt().locale(u.value).startOf("year");for(let O=0;O<3;O++){const I=S[O];for(let L=0;L<4&&!(O*4+L>=10);L++){let z=I[L];z||(z={row:O,column:L,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1,isSelected:!1,customClass:void 0,date:void 0,dayjs:void 0,isCurrent:void 0,selected:void 0,renderText:void 0,timestamp:void 0}),z.type="normal";const q=O*4+L+f.value,U=lt().year(q),F=o.rangeState.endDate||o.maxDate||o.rangeState.selecting&&o.minDate||null;z.inRange=!!(o.minDate&&U.isSameOrAfter(o.minDate,"year")&&F&&U.isSameOrBefore(F,"year"))||!!(o.minDate&&U.isSameOrBefore(o.minDate,"year")&&F&&U.isSameOrAfter(F,"year")),(T=o.minDate)!=null&&T.isSameOrAfter(F)?(z.start=!!(F&&U.isSame(F,"year")),z.end=!!(o.minDate&&U.isSame(o.minDate,"year"))):(z.start=!!(o.minDate&&U.isSame(o.minDate,"year")),z.end=!!(F&&U.isSame(F,"year"))),k.isSame(U)&&(z.type="today"),z.text=q;const N=U.toDate();z.disabled=((M=o.disabledDate)==null?void 0:M.call(o,N))||!1,z.date=N,z.customClass=(A=o.cellClassName)==null?void 0:A.call(o,N),z.dayjs=U,z.timestamp=U.valueOf(),z.isSelected=b(z),I[L]=z}}return S}),m=()=>{var S;(S=d.value)==null||S.focus()},y=S=>{const k={},T=lt().locale(u.value),M=S.text;return k.disabled=o.disabled||(o.disabledDate?a(M,u.value).every(o.disabledDate):!1),k.today=T.year()===M,k.current=la(o.parsedValue).some(A=>A.year()===M),S.customClass&&(k[S.customClass]=!0),S.inRange&&(k["in-range"]=!0,S.start&&(k["start-date"]=!0),S.end&&(k["end-date"]=!0)),k},b=S=>{const k=S.text;return la(o.date).some(T=>T.year()===k)},w=S=>{var O;if(o.disabled)return;const k=(O=S.target)==null?void 0:O.closest("td");if(!k||!k.textContent||Vo(k,"disabled"))return;const T=k.cellIndex,M=k.parentNode.rowIndex*4+T+f.value,A=lt().year(M);if(o.selectionMode==="range")o.rangeState.selecting?(o.minDate&&A>=o.minDate?l("pick",{minDate:o.minDate,maxDate:A}):l("pick",{minDate:A,maxDate:o.minDate}),l("select",!1)):(l("pick",{minDate:A,maxDate:null}),l("select",!0));else if(o.selectionMode==="years"){if(S.type==="keydown"){l("pick",la(o.parsedValue),!1);return}const I=wd(A.startOf("year"),u.value,o.disabledDate);l("pick",Vo(k,"current")?la(o.parsedValue).filter(L=>(L==null?void 0:L.year())!==M):la(o.parsedValue).concat([I]))}else l("pick",M)},C=S=>{var A;if(!o.rangeState.selecting)return;const k=(A=S.target)==null?void 0:A.closest("td");if(!k)return;const T=k.parentNode.rowIndex,M=k.cellIndex;v.value[T][M].disabled||(T!==g.value||M!==p.value)&&(g.value=T,p.value=M,l("changerange",{selecting:!0,endDate:lt().year(f.value).add(T*4+M,"year")}))};return fe(()=>o.date,async()=>{var S,k;(S=c.value)!=null&&S.contains(document.activeElement)&&(await Ie(),(k=d.value)==null||k.focus())}),t({focus:m}),(S,k)=>(_(),$("table",{role:"grid","aria-label":i(s)("el.datepicker.yearTablePrompt"),class:R(i(r).b()),onClick:w,onMousemove:C},[E("tbody",{ref_key:"tbodyRef",ref:c},[(_(!0),$(He,null,Ct(v.value,(T,M)=>(_(),$("tr",{key:M},[(_(!0),$(He,null,Ct(T,(A,O)=>(_(),$("td",{key:`${M}_${O}`,ref_for:!0,ref:I=>A.isSelected&&(d.value=I),class:R(["available",y(A)]),"aria-selected":A.isSelected,"aria-label":String(A.text),tabindex:A.isSelected?0:-1,onKeydown:[rn(Xe(w,["prevent","stop"]),["space"]),rn(Xe(w,["prevent","stop"]),["enter"])]},[Q(i(Gh),{cell:A},null,8,["cell"])],42,KY))),128))]))),128))],512)],42,FY))}}),cu=WY;const jY=["disabled","onClick"],qY=["aria-label","disabled"],UY=["aria-label","disabled"],YY=["tabindex","aria-disabled"],GY=["tabindex","aria-disabled"],XY=["aria-label","disabled"],JY=["aria-label","disabled"];var ZY=D({__name:"panel-date-pick",props:EY,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=(he,Le,pe)=>!0,a=e,o=t,l=ve("picker-panel"),r=ve("date-picker"),s=_l(),u=yn(),{t:c,lang:d}=xt(),f=Ne(co),h=Ne(ju,void 0),{shortcuts:g,disabledDate:p,cellClassName:v,defaultTime:m}=f.props,y=Bt(f.props,"defaultValue"),b=V(),w=V(lt().locale(d.value)),C=V(!1);let S=!1;const k=x(()=>lt(m).locale(d.value)),T=x(()=>w.value.month()),M=x(()=>w.value.year()),A=V([]),O=V(null),I=V(null),L=he=>A.value.length>0?n(he,A.value,a.format||Dr):!0,z=he=>m&&!$e.value&&!C.value&&!S?k.value.year(he.year()).month(he.month()).date(he.date()):se.value?he.millisecond(0):he.startOf("day"),q=(he,...Le)=>{he?Ve(he)?o("pick",he.map(z),...Le):o("pick",z(he),...Le):o("pick",he,...Le),O.value=null,I.value=null,C.value=!1,S=!1},U=async(he,Le)=>{if(K.value==="date"&<.isDayjs(he)){const pe=mi(a.parsedValue);let Ee=pe?pe.year(he.year()).month(he.month()).date(he.date()):he;L(Ee),w.value=Ee,q(Ee,se.value||Le)}else K.value==="week"?q(he.date):K.value==="dates"&&q(he,!0)},F=he=>{const Le=he?"add":"subtract";w.value=w.value[Le](1,"month"),gt("month")},N=he=>{const Le=w.value,pe=he?"add":"subtract";w.value=P.value==="year"?Le[pe](10,"year"):Le[pe](1,"year"),gt("year")},P=V("date"),B=x(()=>{const he=c("el.datepicker.year");if(P.value==="year"){const Le=Math.floor(M.value/10)*10;return he?`${Le} ${he} - ${Le+9} ${he}`:`${Le} - ${Le+9}`}return`${M.value} ${he}`}),W=he=>{const Le=ct(he.value)?he.value():he.value;if(Le){S=!0,q(lt(Le).locale(d.value));return}he.onClick&&he.onClick({attrs:s,slots:u,emit:o})},K=x(()=>{const{type:he}=a;return["week","month","months","year","years","dates"].includes(he)?he:"date"}),j=x(()=>K.value==="dates"||K.value==="months"||K.value==="years"),G=x(()=>K.value==="date"?P.value:K.value),ee=x(()=>!!g.length),te=async(he,Le)=>{K.value==="month"?(w.value=Hs(w.value,w.value.year(),he,d.value,p),q(w.value,!1)):K.value==="months"?q(he,Le??!0):(w.value=Hs(w.value,w.value.year(),he,d.value,p),P.value="date",["month","year","date","week"].includes(K.value)&&(q(w.value,!0),await Ie(),Ye())),gt("month")},ue=async(he,Le)=>{K.value==="year"?(w.value=wd(w.value.startOf("year").year(he),d.value,p),q(w.value,!1)):K.value==="years"?q(he,Le??!0):(w.value=wd(w.value.year(he),d.value,p),P.value="month",["month","year","date","week"].includes(K.value)&&(q(w.value,!0),await Ie(),Ye())),gt("year")},ne=dn(),de=async he=>{ne.value||(P.value=he,await Ie(),Ye())},se=x(()=>a.type==="datetime"||a.type==="datetimerange"),Y=x(()=>{const he=se.value||K.value==="dates",Le=K.value==="years",pe=K.value==="months",Ee=P.value==="date",it=P.value==="year",Pt=P.value==="month";return he&&Ee||Le&&it||pe&&Pt}),X=x(()=>!j.value&&a.showNow||a.showConfirm),H=x(()=>p?a.parsedValue?Ve(a.parsedValue)?p(a.parsedValue[0].toDate()):p(a.parsedValue.toDate()):!0:!1),Z=()=>{if(j.value)q(a.parsedValue);else{let he=mi(a.parsedValue);if(!he){const Le=lt(m).locale(d.value),pe=Te();he=Le.year(pe.year()).month(pe.month()).date(pe.date())}w.value=he,q(he)}},le=x(()=>p?p(lt().locale(d.value).toDate()):!1),ce=()=>{const he=lt().locale(d.value).toDate();C.value=!0,(!p||!p(he))&&L(he)&&(w.value=lt().locale(d.value),q(w.value))},ge=x(()=>a.timeFormat||Cb(a.format)||Dr),me=x(()=>a.dateFormat||wb(a.format)||ll),$e=x(()=>{if(I.value)return I.value;if(!(!a.parsedValue&&!y.value))return(mi(a.parsedValue)||w.value).format(ge.value)}),Re=x(()=>{if(O.value)return O.value;if(!(!a.parsedValue&&!y.value))return(mi(a.parsedValue)||w.value).format(me.value)}),Ae=V(!1),ye=()=>{Ae.value=!0},ke=()=>{Ae.value=!1},be=he=>({hour:he.hour(),minute:he.minute(),second:he.second(),year:he.year(),month:he.month(),date:he.date()}),Pe=(he,Le,pe)=>{const{hour:Ee,minute:it,second:Pt}=be(he),Xt=mi(a.parsedValue);w.value=Xt?Xt.hour(Ee).minute(it).second(Pt):he,q(w.value,!0),pe||(Ae.value=Le)},Be=he=>{const Le=lt(he,ge.value).locale(d.value);if(Le.isValid()&&L(Le)){const{year:pe,month:Ee,date:it}=be(w.value);w.value=Le.year(pe).month(Ee).date(it),I.value=null,Ae.value=!1,q(w.value,!0)}},Qe=he=>{const Le=Fs(he,me.value,d.value,h);if(Le.isValid()){if(p&&p(Le.toDate()))return;const{hour:pe,minute:Ee,second:it}=be(w.value);w.value=Le.hour(pe).minute(Ee).second(it),O.value=null,q(w.value,!0)}},tt=he=>lt.isDayjs(he)&&he.isValid()&&(p?!p(he.toDate()):!0),nt=he=>Fs(he,a.format,d.value,h),Te=()=>{const he=lt(y.value).locale(d.value);if(!y.value){const Le=k.value;return lt().hour(Le.hour()).minute(Le.minute()).second(Le.second()).locale(d.value)}return he},Ye=()=>{var he;["week","month","year","date"].includes(K.value)&&((he=b.value)==null||he.focus())},st=()=>{Ye(),K.value==="week"&&et(we.down)},Ke=he=>{const Le=Kt(he);[we.up,we.down,we.left,we.right,we.home,we.end,we.pageUp,we.pageDown].includes(Le)&&(et(Le),he.stopPropagation(),he.preventDefault()),[we.enter,we.space,we.numpadEnter].includes(Le)&&O.value===null&&I.value===null&&(he.preventDefault(),q(w.value,!1))},et=he=>{const{up:Le,down:pe,left:Ee,right:it,home:Pt,end:Xt,pageUp:Oe,pageDown:Fe}=we,Je={year:{[Le]:-4,[pe]:4,[Ee]:-1,[it]:1,offset:(zt,Zt)=>zt.setFullYear(zt.getFullYear()+Zt)},month:{[Le]:-4,[pe]:4,[Ee]:-1,[it]:1,offset:(zt,Zt)=>zt.setMonth(zt.getMonth()+Zt)},week:{[Le]:-1,[pe]:1,[Ee]:-1,[it]:1,offset:(zt,Zt)=>zt.setDate(zt.getDate()+Zt*7)},date:{[Le]:-7,[pe]:7,[Ee]:-1,[it]:1,[Pt]:zt=>-zt.getDay(),[Xt]:zt=>-zt.getDay()+6,[Oe]:zt=>-new Date(zt.getFullYear(),zt.getMonth(),0).getDate(),[Fe]:zt=>new Date(zt.getFullYear(),zt.getMonth()+1,0).getDate(),offset:(zt,Zt)=>zt.setDate(zt.getDate()+Zt)}},hn=w.value.toDate();for(;Math.abs(w.value.diff(hn,"year",!0))<1;){const zt=Je[G.value];if(!zt)return;if(zt.offset(hn,ct(zt[he])?zt[he](hn):zt[he]??0),p&&p(hn))break;const Zt=lt(hn).locale(d.value);w.value=Zt,o("pick",Zt,!0);break}},gt=he=>{o("panel-change",w.value.toDate(),he,P.value)};return fe(()=>K.value,he=>{if(["month","year"].includes(he)){P.value=he;return}else if(he==="years"){P.value="year";return}else if(he==="months"){P.value="month";return}P.value="date"},{immediate:!0}),fe(()=>y.value,he=>{he&&(w.value=Te())},{immediate:!0}),fe(()=>a.parsedValue,he=>{if(he){if(j.value||Ve(he))return;w.value=he}else w.value=Te()},{immediate:!0}),o("set-picker-option",["isValidValue",tt]),o("set-picker-option",["parseUserInput",nt]),o("set-picker-option",["handleFocusPicker",st]),(he,Le)=>(_(),$("div",{class:R([i(l).b(),i(r).b(),i(l).is("border",he.border),i(l).is("disabled",i(ne)),{"has-sidebar":he.$slots.sidebar||ee.value,"has-time":se.value}])},[E("div",{class:R(i(l).e("body-wrapper"))},[oe(he.$slots,"sidebar",{class:R(i(l).e("sidebar"))}),ee.value?(_(),$("div",{key:0,class:R(i(l).e("sidebar"))},[(_(!0),$(He,null,Ct(i(g),(pe,Ee)=>(_(),$("button",{key:Ee,type:"button",disabled:i(ne),class:R(i(l).e("shortcut")),onClick:it=>W(pe)},_e(pe.text),11,jY))),128))],2)):re("v-if",!0),E("div",{class:R(i(l).e("body"))},[se.value?(_(),$("div",{key:0,class:R(i(r).e("time-header"))},[E("span",{class:R(i(r).e("editor-wrap"))},[Q(i(jn),{placeholder:i(c)("el.datepicker.selectDate"),"model-value":Re.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onInput:Le[0]||(Le[0]=pe=>O.value=pe),onChange:Qe},null,8,["placeholder","model-value","disabled","readonly"])],2),dt((_(),$("span",{class:R(i(r).e("editor-wrap"))},[Q(i(jn),{placeholder:i(c)("el.datepicker.selectTime"),"model-value":$e.value,size:"small","validate-event":!1,disabled:i(ne),readonly:!he.editable,onFocus:ye,onInput:Le[1]||(Le[1]=pe=>I.value=pe),onChange:Be},null,8,["placeholder","model-value","disabled","readonly"]),Q(i(vd),{visible:Ae.value,format:ge.value,"parsed-value":w.value,onPick:Pe},null,8,["visible","format","parsed-value"])],2)),[[i(Yl),ke]])],2)):re("v-if",!0),dt(E("div",{class:R([i(r).e("header"),(P.value==="year"||P.value==="month")&&i(r).em("header","bordered")])},[E("span",{class:R(i(r).e("prev-btn"))},[E("button",{type:"button","aria-label":i(c)("el.datepicker.prevYear"),class:R(["d-arrow-left",i(l).e("icon-btn")]),disabled:i(ne),onClick:Le[2]||(Le[2]=pe=>N(!1))},[oe(he.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,qY),dt(E("button",{type:"button","aria-label":i(c)("el.datepicker.prevMonth"),class:R([i(l).e("icon-btn"),"arrow-left"]),disabled:i(ne),onClick:Le[3]||(Le[3]=pe=>F(!1))},[oe(he.$slots,"prev-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})])],10,UY),[[At,P.value==="date"]])],2),E("span",{role:"button",class:R(i(r).e("header-label")),"aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,onKeydown:Le[4]||(Le[4]=rn(pe=>de("year"),["enter"])),onClick:Le[5]||(Le[5]=pe=>de("year"))},_e(B.value),43,YY),dt(E("span",{role:"button","aria-live":"polite",tabindex:he.disabled?void 0:0,"aria-disabled":he.disabled,class:R([i(r).e("header-label"),{active:P.value==="month"}]),onKeydown:Le[6]||(Le[6]=rn(pe=>de("month"),["enter"])),onClick:Le[7]||(Le[7]=pe=>de("month"))},_e(i(c)(`el.datepicker.month${T.value+1}`)),43,GY),[[At,P.value==="date"]]),E("span",{class:R(i(r).e("next-btn"))},[dt(E("button",{type:"button","aria-label":i(c)("el.datepicker.nextMonth"),class:R([i(l).e("icon-btn"),"arrow-right"]),disabled:i(ne),onClick:Le[8]||(Le[8]=pe=>F(!0))},[oe(he.$slots,"next-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})])],10,XY),[[At,P.value==="date"]]),E("button",{type:"button","aria-label":i(c)("el.datepicker.nextYear"),class:R([i(l).e("icon-btn"),"d-arrow-right"]),disabled:i(ne),onClick:Le[9]||(Le[9]=pe=>N(!0))},[oe(he.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,JY)],2)],2),[[At,P.value!=="time"]]),E("div",{class:R(i(l).e("content")),onKeydown:Ke},[P.value==="date"?(_(),ie(z2,{key:0,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),"show-week-number":he.showWeekNumber,onPick:U},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name","show-week-number"])):re("v-if",!0),P.value==="year"?(_(),ie(cu,{key:1,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"disabled-date":i(p),disabled:i(ne),"parsed-value":he.parsedValue,"cell-class-name":i(v),onPick:ue},null,8,["selection-mode","date","disabled-date","disabled","parsed-value","cell-class-name"])):re("v-if",!0),P.value==="month"?(_(),ie(uu,{key:2,ref_key:"currentViewRef",ref:b,"selection-mode":K.value,date:w.value,"parsed-value":he.parsedValue,"disabled-date":i(p),disabled:i(ne),"cell-class-name":i(v),onPick:te},null,8,["selection-mode","date","parsed-value","disabled-date","disabled","cell-class-name"])):re("v-if",!0)],34)],2)],2),he.showFooter&&Y.value&&X.value?(_(),$("div",{key:0,class:R(i(l).e("footer"))},[dt(Q(i(Ln),{text:"",size:"small",class:R(i(l).e("link-btn")),disabled:le.value,onClick:ce},{default:ae(()=>[_t(_e(i(c)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[At,!j.value&&he.showNow]]),he.showConfirm?(_(),ie(i(Ln),{key:0,plain:"",size:"small",class:R(i(l).e("link-btn")),disabled:H.value,onClick:Z},{default:ae(()=>[_t(_e(i(c)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),QY=ZY;const eG=Ce({...vw,...Uh}),tG=e=>{const{emit:t}=ht(),n=_l(),a=yn();return l=>{const r=ct(l.value)?l.value():l.value;if(r){t("pick",[lt(r[0]).locale(e.value),lt(r[1]).locale(e.value)]);return}l.onClick&&l.onClick({attrs:n,slots:a,emit:t})}},Xh=(e,{defaultValue:t,defaultTime:n,leftDate:a,rightDate:o,step:l,unit:r,sortDates:s})=>{const{emit:u}=ht(),{pickerNs:c}=Ne(jh),d=ve("date-range-picker"),{t:f,lang:h}=xt(),g=tG(h),p=V(),v=V(),m=V({endDate:null,selecting:!1}),y=k=>{m.value=k},b=(k=!1)=>{const T=i(p),M=i(v);iu([T,M])&&u("pick",[T,M],k)},w=k=>{m.value.selecting=k,k||(m.value.endDate=null)},C=k=>{if(Ve(k)&&k.length===2){const[T,M]=k;p.value=T,a.value=T,v.value=M,s(i(p),i(v))}else S()},S=()=>{let[k,T]=xf(i(t),{lang:i(h),step:l,unit:r,unlinkPanels:e.unlinkPanels});const M=O=>O.diff(O.startOf("d"),"ms"),A=i(n);if(A){let O=0,I=0;if(Ve(A)){const[L,z]=A.map(lt);O=M(L),I=M(z)}else{const L=M(lt(A));O=L,I=L}k=k.startOf("d").add(O,"ms"),T=T.startOf("d").add(I,"ms")}p.value=void 0,v.value=void 0,a.value=k,o.value=T};return fe(t,k=>{k&&S()},{immediate:!0}),fe(()=>e.parsedValue,k=>{(!(k!=null&&k.length)||!sn(k,[p.value,v.value]))&&C(k)},{immediate:!0}),fe(()=>e.visible,()=>{e.visible&&C(e.parsedValue)},{immediate:!0}),{minDate:p,maxDate:v,rangeState:m,lang:h,ppNs:c,drpNs:d,handleChangeRange:y,handleRangeConfirm:b,handleShortcutClick:g,onSelect:w,parseValue:C,t:f}},nG=(e,t,n,a)=>{const o=V("date"),l=V(),r=V("date"),s=V(),{disabledDate:u}=Ne(co).props,{t:c,lang:d}=xt(),f=x(()=>n.value.year()),h=x(()=>n.value.month()),g=x(()=>a.value.year()),p=x(()=>a.value.month());function v(S,k){const T=c("el.datepicker.year");if(S.value==="year"){const M=Math.floor(k.value/10)*10;return T?`${M} ${T} - ${M+9} ${T}`:`${M} - ${M+9}`}return`${k.value} ${T}`}function m(S){S==null||S.focus()}async function y(S,k){if(e.disabled)return;const T=S==="left"?o:r,M=S==="left"?l:s;T.value=k,await Ie(),m(M.value)}async function b(S,k,T){if(e.disabled)return;const M=k==="left",A=M?n:a,O=M?a:n,I=M?o:r,L=M?l:s;S==="year"&&(A.value=wd(A.value.year(T),d.value,u)),S==="month"&&(A.value=Hs(A.value,A.value.year(),T,d.value,u)),e.unlinkPanels||(O.value=k==="left"?A.value.add(1,"month"):A.value.subtract(1,"month")),I.value=S==="year"?"month":"date",await Ie(),m(L.value),w(S)}function w(S){t("panel-change",[n.value.toDate(),a.value.toDate()],S)}function C(S,k,T){const M=T?"add":"subtract";return S==="year"?k[M](10,"year"):k[M](1,"year")}return{leftCurrentView:o,rightCurrentView:r,leftCurrentViewRef:l,rightCurrentViewRef:s,leftYear:f,rightYear:g,leftMonth:h,rightMonth:p,leftYearLabel:x(()=>v(o,f)),rightYearLabel:x(()=>v(r,g)),showLeftPicker:S=>y("left",S),showRightPicker:S=>y("right",S),handleLeftYearPick:S=>b("year","left",S),handleRightYearPick:S=>b("year","right",S),handleLeftMonthPick:S=>b("month","left",S),handleRightMonthPick:S=>b("month","right",S),handlePanelChange:w,adjustDateByView:C}},aG=["disabled","onClick"],oG=["aria-label","disabled"],lG=["aria-label","disabled"],rG=["disabled","aria-label"],sG=["disabled","aria-label"],iG=["tabindex","aria-disabled"],uG=["tabindex","aria-disabled"],cG=["disabled","aria-label"],dG=["disabled","aria-label"],fG=["aria-label","disabled"],pG=["disabled","aria-label"],hG=["tabindex","aria-disabled"],vG=["tabindex","aria-disabled"],yc="month";var mG=D({__name:"panel-date-range",props:eG,emits:["pick","set-picker-option","calendar-change","panel-change","clear"],setup(e,{emit:t}){const n=e,a=t,o=Ne(co),l=Ne(ju,void 0),{disabledDate:r,cellClassName:s,defaultTime:u,clearable:c}=o.props,d=Bt(o.props,"format"),f=Bt(o.props,"shortcuts"),h=Bt(o.props,"defaultValue"),{lang:g}=xt(),p=V(lt().locale(g.value)),v=V(lt().locale(g.value).add(1,yc)),{minDate:m,maxDate:y,rangeState:b,ppNs:w,drpNs:C,handleChangeRange:S,handleRangeConfirm:k,handleShortcutClick:T,onSelect:M,parseValue:A,t:O}=Xh(n,{defaultValue:h,defaultTime:u,leftDate:p,rightDate:v,unit:yc,sortDates:Zt});fe(()=>n.visible,je=>{!je&&b.value.selecting&&(A(n.parsedValue),M(!1))});const I=V({min:null,max:null}),L=V({min:null,max:null}),{leftCurrentView:z,rightCurrentView:q,leftCurrentViewRef:U,rightCurrentViewRef:F,leftYear:N,rightYear:P,leftMonth:B,rightMonth:W,leftYearLabel:K,rightYearLabel:j,showLeftPicker:G,showRightPicker:ee,handleLeftYearPick:te,handleRightYearPick:ue,handleLeftMonthPick:ne,handleRightMonthPick:de,handlePanelChange:se,adjustDateByView:Y}=nG(n,a,p,v),X=x(()=>!!f.value.length),H=x(()=>I.value.min!==null?I.value.min:m.value?m.value.format(me.value):""),Z=x(()=>I.value.max!==null?I.value.max:y.value||m.value?(y.value||m.value).format(me.value):""),le=x(()=>L.value.min!==null?L.value.min:m.value?m.value.format(ge.value):""),ce=x(()=>L.value.max!==null?L.value.max:y.value||m.value?(y.value||m.value).format(ge.value):""),ge=x(()=>n.timeFormat||Cb(d.value||"")||Dr),me=x(()=>n.dateFormat||wb(d.value||"")||ll),$e=je=>iu(je)&&(r?!r(je[0].toDate())&&!r(je[1].toDate()):!0),Re=()=>{p.value=Y(z.value,p.value,!1),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("year")},Ae=()=>{p.value=p.value.subtract(1,"month"),n.unlinkPanels||(v.value=p.value.add(1,"month")),se("month")},ye=()=>{n.unlinkPanels?v.value=Y(q.value,v.value,!0):(p.value=Y(q.value,p.value,!0),v.value=p.value.add(1,"month")),se("year")},ke=()=>{n.unlinkPanels?v.value=v.value.add(1,"month"):(p.value=p.value.add(1,"month"),v.value=p.value.add(1,"month")),se("month")},be=()=>{p.value=Y(z.value,p.value,!0),se("year")},Pe=()=>{p.value=p.value.add(1,"month"),se("month")},Be=()=>{v.value=Y(q.value,v.value,!1),se("year")},Qe=()=>{v.value=v.value.subtract(1,"month"),se("month")},tt=x(()=>{const je=(B.value+1)%12,Ge=B.value+1>=12?1:0;return n.unlinkPanels&&new Date(N.value+Ge,je)n.unlinkPanels&&P.value*12+W.value-(N.value*12+B.value+1)>=12),Te=dn(),Ye=x(()=>!(m.value&&y.value&&!b.value.selecting&&iu([m.value,y.value])&&!Te.value)),st=x(()=>n.type==="datetime"||n.type==="datetimerange"),Ke=(je,Ge)=>{if(je)return u?lt(u[Ge]||u).locale(g.value).year(je.year()).month(je.month()).date(je.date()):je},et=(je,Ge=!0)=>{const vt=je.minDate,Nn=je.maxDate,So=Ke(vt,0),Xa=Ke(Nn,1);y.value===Xa&&m.value===So||(a("calendar-change",[vt.toDate(),Nn&&Nn.toDate()]),y.value=Xa,m.value=So,!st.value&&Ge&&(Ge=!So||!Xa),k(Ge))},gt=V(!1),he=V(!1),Le=()=>{gt.value=!1},pe=()=>{he.value=!1},Ee=(je,Ge)=>{I.value[Ge]=je;const vt=lt(je,me.value).locale(g.value);if(vt.isValid()){if(r&&r(vt.toDate()))return;Ge==="min"?(p.value=vt,m.value=(m.value||p.value).year(vt.year()).month(vt.month()).date(vt.date()),!n.unlinkPanels&&(!y.value||y.value.isBefore(m.value))&&(v.value=vt.add(1,"month"),y.value=m.value.add(1,"month"))):(v.value=vt,y.value=(y.value||v.value).year(vt.year()).month(vt.month()).date(vt.date()),!n.unlinkPanels&&(!m.value||m.value.isAfter(y.value))&&(p.value=vt.subtract(1,"month"),m.value=y.value.subtract(1,"month"))),Zt(m.value,y.value),k(!0)}},it=(je,Ge)=>{I.value[Ge]=null},Pt=(je,Ge)=>{L.value[Ge]=je;const vt=lt(je,ge.value).locale(g.value);vt.isValid()&&(Ge==="min"?(gt.value=!0,m.value=(m.value||p.value).hour(vt.hour()).minute(vt.minute()).second(vt.second()),p.value=m.value):(he.value=!0,y.value=(y.value||v.value).hour(vt.hour()).minute(vt.minute()).second(vt.second()),v.value=y.value))},Xt=(je,Ge)=>{L.value[Ge]=null,Ge==="min"?(p.value=m.value,gt.value=!1,(!y.value||y.value.isBefore(m.value))&&(y.value=m.value)):(v.value=y.value,he.value=!1,y.value&&y.value.isBefore(m.value)&&(m.value=y.value)),k(!0)},Oe=(je,Ge,vt)=>{L.value.min||(je&&(m.value=(m.value||p.value).hour(je.hour()).minute(je.minute()).second(je.second())),vt||(gt.value=Ge),(!y.value||y.value.isBefore(m.value))&&(y.value=m.value,v.value=je,Ie(()=>{A(n.parsedValue)})),k(!0))},Fe=(je,Ge,vt)=>{L.value.max||(je&&(y.value=(y.value||v.value).hour(je.hour()).minute(je.minute()).second(je.second())),vt||(he.value=Ge),y.value&&y.value.isBefore(m.value)&&(m.value=y.value),k(!0))},Je=()=>{hn(),a("clear")},hn=()=>{let je=null;o!=null&&o.emptyValues&&(je=o.emptyValues.valueOnClear.value),p.value=xf(i(h),{lang:i(g),unit:"month",unlinkPanels:n.unlinkPanels})[0],v.value=p.value.add(1,"month"),y.value=void 0,m.value=void 0,k(!0),a("pick",je)},zt=je=>Fs(je,d.value||"",g.value,l);function Zt(je,Ge){if(n.unlinkPanels&&Ge){const vt=(je==null?void 0:je.year())||0,Nn=(je==null?void 0:je.month())||0,So=Ge.year(),Xa=Ge.month();v.value=vt===So&&Nn===Xa?Ge.add(1,yc):Ge}else v.value=p.value.add(1,yc),Ge&&(v.value=v.value.hour(Ge.hour()).minute(Ge.minute()).second(Ge.second()))}return a("set-picker-option",["isValidValue",$e]),a("set-picker-option",["parseUserInput",zt]),a("set-picker-option",["handleClear",hn]),(je,Ge)=>(_(),$("div",{class:R([i(w).b(),i(C).b(),i(w).is("border",je.border),i(w).is("disabled",i(Te)),{"has-sidebar":je.$slots.sidebar||X.value,"has-time":st.value}])},[E("div",{class:R(i(w).e("body-wrapper"))},[oe(je.$slots,"sidebar",{class:R(i(w).e("sidebar"))}),X.value?(_(),$("div",{key:0,class:R(i(w).e("sidebar"))},[(_(!0),$(He,null,Ct(f.value,(vt,Nn)=>(_(),$("button",{key:Nn,type:"button",disabled:i(Te),class:R(i(w).e("shortcut")),onClick:So=>i(T)(vt)},_e(vt.text),11,aG))),128))],2)):re("v-if",!0),E("div",{class:R(i(w).e("body"))},[st.value?(_(),$("div",{key:0,class:R(i(C).e("time-header"))},[E("span",{class:R(i(C).e("editors-wrap"))},[E("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.startDate"),class:R(i(C).e("editor")),"model-value":H.value,"validate-event":!1,readonly:!je.editable,onInput:Ge[0]||(Ge[0]=vt=>Ee(vt,"min")),onChange:Ge[1]||(Ge[1]=vt=>it(vt,"min"))},null,8,["disabled","placeholder","class","model-value","readonly"])],2),dt((_(),$("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.startTime"),"model-value":le.value,"validate-event":!1,readonly:!je.editable,onFocus:Ge[2]||(Ge[2]=vt=>gt.value=!0),onInput:Ge[3]||(Ge[3]=vt=>Pt(vt,"min")),onChange:Ge[4]||(Ge[4]=vt=>Xt(vt,"min"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(vd),{visible:gt.value,format:ge.value,"datetime-role":"start","parsed-value":i(m)||p.value,onPick:Oe},null,8,["visible","format","parsed-value"])],2)),[[i(Yl),Le]])],2),E("span",null,[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})]),E("span",{class:R([i(C).e("editors-wrap"),"is-right"])},[E("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.endDate"),"model-value":Z.value,readonly:!i(m)||!je.editable,"validate-event":!1,onInput:Ge[5]||(Ge[5]=vt=>Ee(vt,"max")),onChange:Ge[6]||(Ge[6]=vt=>it(vt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),dt((_(),$("span",{class:R(i(C).e("time-picker-wrap"))},[Q(i(jn),{size:"small",class:R(i(C).e("editor")),disabled:i(b).selecting||i(Te),placeholder:i(O)("el.datepicker.endTime"),"model-value":ce.value,readonly:!i(m)||!je.editable,"validate-event":!1,onFocus:Ge[7]||(Ge[7]=vt=>i(m)&&(he.value=!0)),onInput:Ge[8]||(Ge[8]=vt=>Pt(vt,"max")),onChange:Ge[9]||(Ge[9]=vt=>Xt(vt,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),Q(i(vd),{"datetime-role":"end",visible:he.value,format:ge.value,"parsed-value":i(y)||v.value,onPick:Fe},null,8,["visible","format","parsed-value"])],2)),[[i(Yl),pe]])],2)],2)):re("v-if",!0),E("div",{class:R([[i(w).e("content"),i(C).e("content")],"is-left"])},[E("div",{class:R(i(C).e("header"))},[E("button",{type:"button",class:R([i(w).e("icon-btn"),"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),disabled:i(Te),onClick:Re},[oe(je.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,oG),dt(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),disabled:i(Te),onClick:Ae},[oe(je.$slots,"prev-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})])],10,lG),[[At,i(z)==="date"]]),je.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!nt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Te))],"d-arrow-right"]),"aria-label":i(O)("el.datepicker.nextYear"),onClick:be},[oe(je.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,rG)):re("v-if",!0),je.unlinkPanels&&i(z)==="date"?(_(),$("button",{key:1,type:"button",disabled:!tt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!tt.value||i(Te))],"arrow-right"]),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:Pe},[oe(je.$slots,"next-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})])],10,sG)):re("v-if",!0),E("div",null,[E("span",{role:"button",class:R(i(C).e("header-label")),"aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,onKeydown:Ge[10]||(Ge[10]=rn(vt=>i(G)("year"),["enter"])),onClick:Ge[11]||(Ge[11]=vt=>i(G)("year"))},_e(i(K)),43,iG),dt(E("span",{role:"button","aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,class:R([i(C).e("header-label"),{active:i(z)==="month"}]),onKeydown:Ge[12]||(Ge[12]=rn(vt=>i(G)("month"),["enter"])),onClick:Ge[13]||(Ge[13]=vt=>i(G)("month"))},_e(i(O)(`el.datepicker.month${p.value.month()+1}`)),43,uG),[[At,i(z)==="date"]])])],2),i(z)==="date"?(_(),ie(z2,{key:0,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"range",date:p.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":je.showWeekNumber,disabled:i(Te),onChangerange:i(S),onPick:et,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(z)==="year"?(_(),ie(cu,{key:1,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"year",date:p.value,"disabled-date":i(r),"parsed-value":je.parsedValue,disabled:i(Te),onPick:i(te)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(z)==="month"?(_(),ie(uu,{key:2,ref_key:"leftCurrentViewRef",ref:U,"selection-mode":"month",date:p.value,"parsed-value":je.parsedValue,"disabled-date":i(r),disabled:i(Te),onPick:i(ne)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2),E("div",{class:R([[i(w).e("content"),i(C).e("content")],"is-right"])},[E("div",{class:R(i(C).e("header"))},[je.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!nt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!nt.value||i(Te))],"d-arrow-left"]),"aria-label":i(O)("el.datepicker.prevYear"),onClick:Be},[oe(je.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,cG)):re("v-if",!0),je.unlinkPanels&&i(q)==="date"?(_(),$("button",{key:1,type:"button",disabled:!tt.value||i(Te),class:R([[i(w).e("icon-btn"),i(w).is("disabled",!tt.value||i(Te))],"arrow-left"]),"aria-label":i(O)("el.datepicker.prevMonth"),onClick:Qe},[oe(je.$slots,"prev-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})])],10,dG)):re("v-if",!0),E("button",{type:"button","aria-label":i(O)("el.datepicker.nextYear"),class:R([i(w).e("icon-btn"),"d-arrow-right"]),disabled:i(Te),onClick:ye},[oe(je.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,fG),dt(E("button",{type:"button",class:R([i(w).e("icon-btn"),"arrow-right"]),disabled:i(Te),"aria-label":i(O)("el.datepicker.nextMonth"),onClick:ke},[oe(je.$slots,"next-month",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})])],10,pG),[[At,i(q)==="date"]]),E("div",null,[E("span",{role:"button",class:R(i(C).e("header-label")),"aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,onKeydown:Ge[14]||(Ge[14]=rn(vt=>i(ee)("year"),["enter"])),onClick:Ge[15]||(Ge[15]=vt=>i(ee)("year"))},_e(i(j)),43,hG),dt(E("span",{role:"button","aria-live":"polite",tabindex:je.disabled?void 0:0,"aria-disabled":je.disabled,class:R([i(C).e("header-label"),{active:i(q)==="month"}]),onKeydown:Ge[16]||(Ge[16]=rn(vt=>i(ee)("month"),["enter"])),onClick:Ge[17]||(Ge[17]=vt=>i(ee)("month"))},_e(i(O)(`el.datepicker.month${v.value.month()+1}`)),43,vG),[[At,i(q)==="date"]])])],2),i(q)==="date"?(_(),ie(z2,{key:0,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"range",date:v.value,"min-date":i(m),"max-date":i(y),"range-state":i(b),"disabled-date":i(r),"cell-class-name":i(s),"show-week-number":je.showWeekNumber,disabled:i(Te),onChangerange:i(S),onPick:et,onSelect:i(M)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","show-week-number","disabled","onChangerange","onSelect"])):re("v-if",!0),i(q)==="year"?(_(),ie(cu,{key:1,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"year",date:v.value,"disabled-date":i(r),"parsed-value":je.parsedValue,disabled:i(Te),onPick:i(ue)},null,8,["date","disabled-date","parsed-value","disabled","onPick"])):re("v-if",!0),i(q)==="month"?(_(),ie(uu,{key:2,ref_key:"rightCurrentViewRef",ref:F,"selection-mode":"month",date:v.value,"parsed-value":je.parsedValue,"disabled-date":i(r),disabled:i(Te),onPick:i(de)},null,8,["date","parsed-value","disabled-date","disabled","onPick"])):re("v-if",!0)],2)],2)],2),je.showFooter&&st.value&&(je.showConfirm||i(c))?(_(),$("div",{key:0,class:R(i(w).e("footer"))},[i(c)?(_(),ie(i(Ln),{key:0,text:"",size:"small",class:R(i(w).e("link-btn")),onClick:Je},{default:ae(()=>[_t(_e(i(O)("el.datepicker.clear")),1)]),_:1},8,["class"])):re("v-if",!0),je.showConfirm?(_(),ie(i(Ln),{key:1,plain:"",size:"small",class:R(i(w).e("link-btn")),disabled:Ye.value,onClick:Ge[18]||(Ge[18]=vt=>i(k)(!1))},{default:ae(()=>[_t(_e(i(O)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])):re("v-if",!0)],2)):re("v-if",!0)],2))}}),gG=mG;const yG=Ce({...Uh}),bG=["pick","set-picker-option","calendar-change"],wG=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:a}=xt();return{leftPrevYear:()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},leftNextYear:()=>{t.value=t.value.add(1,"year")},rightPrevYear:()=>{n.value=n.value.subtract(1,"year")},leftLabel:x(()=>`${t.value.year()} ${a("el.datepicker.year")}`),rightLabel:x(()=>`${n.value.year()} ${a("el.datepicker.year")}`),leftYear:x(()=>t.value.year()),rightYear:x(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year())}},CG=["disabled","onClick"],_G=["disabled"],SG=["disabled"],xG=["disabled"],kG=["disabled"],bc="year";var EG=D({name:"DatePickerMonthRange",__name:"panel-month-range",props:yG,emits:bG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),l=Ne(co),r=Ne(ju,void 0),{shortcuts:s,disabledDate:u,cellClassName:c}=l.props,d=Bt(l.props,"format"),f=Bt(l.props,"defaultValue"),h=V(lt().locale(o.value)),g=V(lt().locale(o.value).add(1,bc)),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:S,onSelect:k,parseValue:T}=Xh(n,{defaultValue:f,leftDate:h,rightDate:g,unit:bc,sortDates:K}),M=x(()=>!!s.length),{leftPrevYear:A,rightNextYear:O,leftNextYear:I,rightPrevYear:L,leftLabel:z,rightLabel:q,leftYear:U,rightYear:F}=wG({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:h,rightDate:g}),N=x(()=>n.unlinkPanels&&F.value>U.value+1),P=(G,ee=!0)=>{const te=G.minDate,ue=G.maxDate;v.value===ue&&p.value===te||(a("calendar-change",[te.toDate(),ue&&ue.toDate()]),v.value=ue,p.value=te,ee&&C())},B=()=>{let G=null;l!=null&&l.emptyValues&&(G=l.emptyValues.valueOnClear.value),h.value=xf(i(f),{lang:i(o),unit:"year",unlinkPanels:n.unlinkPanels})[0],g.value=h.value.add(1,"year"),a("pick",G)},W=G=>Fs(G,d.value,o.value,r);function K(G,ee){n.unlinkPanels&&ee?g.value=((G==null?void 0:G.year())||0)===ee.year()?ee.add(1,bc):ee:g.value=h.value.add(1,bc)}const j=dn();return fe(()=>n.visible,G=>{!G&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",iu]),a("set-picker-option",["parseUserInput",W]),a("set-picker-option",["handleClear",B]),(G,ee)=>(_(),$("div",{class:R([i(y).b(),i(b).b(),i(y).is("border",G.border),i(y).is("disabled",i(j)),{"has-sidebar":!!G.$slots.sidebar||M.value}])},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(G.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),M.value?(_(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(_(!0),$(He,null,Ct(i(s),(te,ue)=>(_(),$("button",{key:ue,type:"button",class:R(i(y).e("shortcut")),disabled:i(j),onClick:ne=>i(S)(te)},_e(te.text),11,CG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-left"])},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-left"]),disabled:i(j),onClick:ee[0]||(ee[0]=(...te)=>i(A)&&i(A)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,_G),G.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-right"]),onClick:ee[1]||(ee[1]=(...te)=>i(I)&&i(I)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,SG)):re("v-if",!0),E("div",null,_e(i(z)),1)],2),Q(uu,{"selection-mode":"range",date:h.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R([[i(y).e("content"),i(b).e("content")],"is-right"])},[E("div",{class:R(i(b).e("header"))},[G.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!N.value||i(j),class:R([[i(y).e("icon-btn"),i(y).is("disabled",!N.value||i(j))],"d-arrow-left"]),onClick:ee[2]||(ee[2]=(...te)=>i(L)&&i(L)(...te))},[oe(G.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,xG)):re("v-if",!0),E("button",{type:"button",class:R([i(y).e("icon-btn"),"d-arrow-right"]),disabled:i(j),onClick:ee[3]||(ee[3]=(...te)=>i(O)&&i(O)(...te))},[oe(G.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,kG),E("div",null,_e(i(q)),1)],2),Q(uu,{"selection-mode":"range",date:g.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(u),disabled:i(j),"cell-class-name":i(c),onChangerange:i(w),onPick:P,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),TG=EG;const MG=Ce({...Uh}),OG=["pick","set-picker-option","calendar-change"],$G=({unlinkPanels:e,leftDate:t,rightDate:n})=>({leftPrevYear:()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},rightNextYear:()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},leftNextYear:()=>{t.value=t.value.add(10,"year")},rightPrevYear:()=>{n.value=n.value.subtract(10,"year")},leftLabel:x(()=>{const s=Math.floor(t.value.year()/10)*10;return`${s}-${s+9}`}),rightLabel:x(()=>{const s=Math.floor(n.value.year()/10)*10;return`${s}-${s+9}`}),leftYear:x(()=>Math.floor(t.value.year()/10)*10+9),rightYear:x(()=>Math.floor(n.value.year()/10)*10)}),AG=["disabled","onClick"],RG=["disabled"],NG=["disabled"],PG=["disabled"],IG=["disabled"],as=10,gi="year";var LG=D({name:"DatePickerYearRange",__name:"panel-year-range",props:MG,emits:OG,setup(e,{emit:t}){const n=e,a=t,{lang:o}=xt(),l=V(lt().locale(o.value)),r=V(lt().locale(o.value).add(as,gi)),s=Ne(ju,void 0),u=Ne(co),{shortcuts:c,disabledDate:d,cellClassName:f}=u.props,h=Bt(u.props,"format"),g=Bt(u.props,"defaultValue"),{minDate:p,maxDate:v,rangeState:m,ppNs:y,drpNs:b,handleChangeRange:w,handleRangeConfirm:C,handleShortcutClick:S,onSelect:k,parseValue:T}=Xh(n,{defaultValue:g,leftDate:l,rightDate:r,step:as,unit:gi,sortDates:ue}),{leftPrevYear:M,rightNextYear:A,leftNextYear:O,rightPrevYear:I,leftLabel:L,rightLabel:z,leftYear:q,rightYear:U}=$G({unlinkPanels:Bt(n,"unlinkPanels"),leftDate:l,rightDate:r}),F=dn(),N=x(()=>!!c.length),P=x(()=>[y.b(),b.b(),y.is("border",n.border),y.is("disabled",F.value),{"has-sidebar":!!yn().sidebar||N.value}]),B=x(()=>({content:[y.e("content"),b.e("content"),"is-left"],arrowLeftBtn:[y.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),y.is("disabled",!K.value||F.value),"d-arrow-right"]})),W=x(()=>({content:[y.e("content"),b.e("content"),"is-right"],arrowLeftBtn:[y.e("icon-btn"),y.is("disabled",!K.value||F.value),"d-arrow-left"],arrowRightBtn:[y.e("icon-btn"),"d-arrow-right"]})),K=x(()=>n.unlinkPanels&&U.value>q.value+1),j=(ne,de=!0)=>{const se=ne.minDate,Y=ne.maxDate;v.value===Y&&p.value===se||(a("calendar-change",[se.toDate(),Y&&Y.toDate()]),v.value=Y,p.value=se,de&&C())},G=ne=>Fs(ne,h.value,o.value,s),ee=ne=>iu(ne)&&(d?!d(ne[0].toDate())&&!d(ne[1].toDate()):!0),te=()=>{let ne=null;u!=null&&u.emptyValues&&(ne=u.emptyValues.valueOnClear.value);const de=xf(i(g),{lang:i(o),step:as,unit:gi,unlinkPanels:n.unlinkPanels});l.value=de[0],r.value=de[1],a("pick",ne)};function ue(ne,de){if(n.unlinkPanels&&de){const se=(ne==null?void 0:ne.year())||0,Y=de.year();r.value=se+as>Y?de.add(as,gi):de}else r.value=l.value.add(as,gi)}return fe(()=>n.visible,ne=>{!ne&&m.value.selecting&&(T(n.parsedValue),k(!1))}),a("set-picker-option",["isValidValue",ee]),a("set-picker-option",["parseUserInput",G]),a("set-picker-option",["handleClear",te]),(ne,de)=>(_(),$("div",{class:R(P.value)},[E("div",{class:R(i(y).e("body-wrapper"))},[oe(ne.$slots,"sidebar",{class:R(i(y).e("sidebar"))}),N.value?(_(),$("div",{key:0,class:R(i(y).e("sidebar"))},[(_(!0),$(He,null,Ct(i(c),(se,Y)=>(_(),$("button",{key:Y,type:"button",class:R(i(y).e("shortcut")),disabled:i(F),onClick:X=>i(S)(se)},_e(se.text),11,AG))),128))],2)):re("v-if",!0),E("div",{class:R(i(y).e("body"))},[E("div",{class:R(B.value.content)},[E("div",{class:R(i(b).e("header"))},[E("button",{type:"button",class:R(B.value.arrowLeftBtn),disabled:i(F),onClick:de[0]||(de[0]=(...se)=>i(M)&&i(M)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,RG),ne.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!K.value||i(F),class:R(B.value.arrowRightBtn),onClick:de[1]||(de[1]=(...se)=>i(O)&&i(O)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,NG)):re("v-if",!0),E("div",null,_e(i(L)),1)],2),Q(cu,{"selection-mode":"range",date:l.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2),E("div",{class:R(W.value.content)},[E("div",{class:R(i(b).e("header"))},[ne.unlinkPanels?(_(),$("button",{key:0,type:"button",disabled:!K.value||i(F),class:R(W.value.arrowLeftBtn),onClick:de[2]||(de[2]=(...se)=>i(I)&&i(I)(...se))},[oe(ne.$slots,"prev-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(yl))]),_:1})])],10,PG)):re("v-if",!0),E("button",{type:"button",class:R(W.value.arrowRightBtn),disabled:i(F),onClick:de[3]||(de[3]=(...se)=>i(A)&&i(A)(...se))},[oe(ne.$slots,"next-year",{},()=>[Q(i(ze),null,{default:ae(()=>[Q(i(bl))]),_:1})])],10,IG),E("div",null,_e(i(z)),1)],2),Q(cu,{"selection-mode":"range",date:r.value,"min-date":i(p),"max-date":i(v),"range-state":i(m),"disabled-date":i(d),disabled:i(F),"cell-class-name":i(f),onChangerange:i(w),onPick:j,onSelect:i(k)},null,8,["date","min-date","max-date","range-state","disabled-date","disabled","cell-class-name","onChangerange","onSelect"])],2)],2)],2)],2))}}),VG=LG;const BG=function(e){switch(e){case"daterange":case"datetimerange":return gG;case"monthrange":return TG;case"yearrange":return VG;default:return QY}};var mw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){var o=a.prototype,l=o.format;o.format=function(r){var s=this,u=this.$locale();if(!this.isValid())return l.bind(this)(r);var c=this.$utils(),d=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return u.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return u.ordinal(s.week(),"W");case"w":case"ww":return c.s(s.week(),f==="w"?1:2,"0");case"W":case"WW":return c.s(s.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return c.s(String(s.$H===0?24:s.$H),f==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return f}});return l.bind(this)(d)}}})})(mw);var zG=mw.exports;const DG=Ol(zG);var gw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){var n="week",a="year";return function(o,l,r){var s=l.prototype;s.week=function(u){if(u===void 0&&(u=null),u!==null)return this.add(7*(u-this.week()),"day");var c=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=r(this).startOf(a).add(1,a).date(c),f=r(this).endOf(n);if(d.isBefore(f))return 1}var h=r(this).startOf(a).date(c).startOf(n).subtract(1,"millisecond"),g=this.diff(h,n,!0);return g<0?r(this).startOf("week").week():Math.ceil(g)},s.weeks=function(u){return u===void 0&&(u=null),this.week(u)}}})})(gw);var HG=gw.exports;const FG=Ol(HG);var yw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){a.prototype.weekYear=function(){var o=this.month(),l=this.week(),r=this.year();return l===1&&o===11?r+1:o===0&&l>=52?r-1:r}}})})(yw);var KG=yw.exports;const WG=Ol(KG);var bw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a,o){a.prototype.dayOfYear=function(l){var r=Math.round((o(this).startOf("day")-o(this).startOf("year"))/864e5)+1;return l==null?r:this.add(l-r,"day")}}})})(bw);var jG=bw.exports;const qG=Ol(jG);var ww={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){a.prototype.isSameOrAfter=function(o,l){return this.isSame(o,l)||this.isAfter(o,l)}}})})(ww);var UG=ww.exports;const YG=Ol(UG);var Cw={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(Ml,function(){return function(n,a){a.prototype.isSameOrBefore=function(o,l){return this.isSame(o,l)||this.isBefore(o,l)}}})})(Cw);var GG=Cw.exports;const XG=Ol(GG);function JG(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}lt.extend(Pb);lt.extend(DG);lt.extend(zh);lt.extend(FG);lt.extend(WG);lt.extend(qG);lt.extend(YG);lt.extend(XG);var ZG=D({name:"ElDatePickerPanel",install:null,inheritAttrs:!1,props:xY,emits:[at,"calendar-change","panel-change","visible-change","clear"],setup(e,{slots:t,emit:n,attrs:a}){const o=ve("picker-panel");kt(Ne(co,void 0))&&bt(co,{props:Nt({...Bn(e)})}),bt(jh,{slots:t,pickerNs:o});const{parsedValue:l,onCalendarChange:r,onPanelChange:s,onSetPickerOption:u,onPick:c}=Ne(yb,()=>xb(e,n),!0);return()=>Q(BG(e.type),pt(Mu(a,"onPick"),e,{parsedValue:l.value,"onSet-picker-option":u,"onCalendar-change":r,"onPanel-change":s,onClear:()=>n("clear"),onPick:c}),JG(t)?t:{default:()=>[t]})}});const _w=rt(ZG),QG=Ce({...Bh,type:{type:J(String),default:"date"}});function eX(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}var tX=D({name:"ElDatePicker",install:null,props:QG,emits:[at],setup(e,{expose:t,emit:n,slots:a}){bt(ju,x(()=>!e.format)),bt(Lh,Nt(Bt(e,"popperOptions")));const o=V();t({focus:()=>{var r;(r=o.value)==null||r.focus()},blur:()=>{var r;(r=o.value)==null||r.blur()},handleOpen:()=>{var r;(r=o.value)==null||r.handleOpen()},handleClose:()=>{var r;(r=o.value)==null||r.handleClose()}});const l=r=>{n(at,r)};return()=>{const r=e.format??(IW[e.type]||ll);return Q(kb,pt(e,{format:r,type:e.type,ref:o,"onUpdate:modelValue":l}),{default:s=>Q(_w,pt({disabled:e.disabled,editable:e.editable,border:!1},s),eX(a)?a:{default:()=>[a]}),"range-separator":a["range-separator"]})}}});const nX=rt(tX),aX=Ce({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:On,title:{type:String,default:""},extra:{type:String,default:""},labelWidth:{type:[String,Number]}}),Sw="ElDescriptionsItem",oX=Ce({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number]},align:{type:String,values:k1,default:"left"},labelAlign:{type:String,values:k1},className:{type:String,default:""},labelClassName:{type:String,default:""}}),xw=D({name:Sw,props:oX}),Jh=Symbol("elDescriptions"),lX=Ce({row:{type:J(Array),default:()=>[]}});var yi=D({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Ne(Jh,{})}},render(){var v;const e=nA(this.cell),t=(((v=this.cell)==null?void 0:v.dirs)||[]).map(m=>{const{dir:y,arg:b,modifiers:w,value:C}=m;return[y,C,b,w]}),{border:n,direction:a}=this.descriptions,o=a==="vertical",l=()=>{var m,y,b;return((b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.label)==null?void 0:b.call(y))||e.label},r=()=>{var m,y,b;return(b=(y=(m=this.cell)==null?void 0:m.children)==null?void 0:y.default)==null?void 0:b.call(y)},s=e.span,u=e.rowspan,c=e.align?`is-${e.align}`:"",d=e.labelAlign?`is-${e.labelAlign}`:c,f=e.className,h=e.labelClassName,g={width:cn(this.type==="label"?e.labelWidth??this.descriptions.labelWidth??e.width:e.width),minWidth:cn(e.minWidth)},p=ve("descriptions");switch(this.type){case"label":return dt(qe(this.tag,{style:g,class:[p.e("cell"),p.e("label"),p.is("bordered-label",n),p.is("vertical-label",o),d,h],colSpan:o?s:1,rowspan:o?1:u},l()),t);case"content":return dt(qe(this.tag,{style:g,class:[p.e("cell"),p.e("content"),p.is("bordered-content",n),p.is("vertical-content",o),c,f],colSpan:o?s:s*2-1,rowspan:o?u*2-1:u},r()),t);default:{const m=l(),y={},b=cn(e.labelWidth??this.descriptions.labelWidth);return b&&(y.width=b,y.display="inline-block"),dt(qe("td",{style:g,class:[p.e("cell"),c],colSpan:s,rowspan:u},[Cn(m)?void 0:qe("span",{style:y,class:[p.e("label"),h]},m),qe("span",{class:[p.e("content"),f]},r())]),t)}}}});const rX={key:1};var sX=D({name:"ElDescriptionsRow",__name:"descriptions-row",props:lX,setup(e){const t=Ne(Jh,{});return(n,a)=>i(t).direction==="vertical"?(_(),$(He,{key:0},[E("tr",null,[(_(!0),$(He,null,Ct(e.row,(o,l)=>(_(),ie(i(yi),{key:`tr1-${l}`,cell:o,tag:"th",type:"label"},null,8,["cell"]))),128))]),E("tr",null,[(_(!0),$(He,null,Ct(e.row,(o,l)=>(_(),ie(i(yi),{key:`tr2-${l}`,cell:o,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(_(),$("tr",rX,[(_(!0),$(He,null,Ct(e.row,(o,l)=>(_(),$(He,{key:`tr3-${l}`},[i(t).border?(_(),$(He,{key:0},[Q(i(yi),{cell:o,tag:"td",type:"label"},null,8,["cell"]),Q(i(yi),{cell:o,tag:"td",type:"content"},null,8,["cell"])],64)):(_(),ie(i(yi),{key:1,cell:o,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}}),iX=sX,uX=D({name:"ElDescriptions",__name:"description",props:aX,setup(e){const t=e,n=ve("descriptions"),a=En(),o=yn();bt(Jh,t);const l=x(()=>[n.b(),n.m(a.value)]),r=(u,c,d,f=!1)=>(u.props||(u.props={}),c>d&&(u.props.span=d),f&&(u.props.span=c),u),s=()=>{if(!o.default)return[];const u=Ra(o.default()).filter(p=>{var v;return((v=p==null?void 0:p.type)==null?void 0:v.name)===Sw}),c=[];let d=[],f=t.column,h=0;const g=[];return u.forEach((p,v)=>{var w,C,S;const m=((w=p.props)==null?void 0:w.span)||1,y=((C=p.props)==null?void 0:C.rowspan)||1,b=c.length;if(g[b]||(g[b]=0),y>1)for(let k=1;k0&&(f-=g[b],g[b]=0),vf?f:m),v===u.length-1){const k=t.column-h%t.column;d.push(r(p,k,f,!0)),c.push(d);return}m(_(),$("div",{class:R(l.value)},[e.title||e.extra||u.$slots.title||u.$slots.extra?(_(),$("div",{key:0,class:R(i(n).e("header"))},[E("div",{class:R(i(n).e("title"))},[oe(u.$slots,"title",{},()=>[_t(_e(e.title),1)])],2),E("div",{class:R(i(n).e("extra"))},[oe(u.$slots,"extra",{},()=>[_t(_e(e.extra),1)])],2)],2)):re("v-if",!0),E("div",{class:R(i(n).e("body"))},[E("table",{class:R([i(n).e("table"),i(n).is("bordered",e.border)])},[E("tbody",null,[(_(!0),$(He,null,Ct(s(),(d,f)=>(_(),ie(iX,{key:f,row:d},null,8,["row"]))),128))])],2)],2)],2))}}),cX=uX;const dX=rt(cX,{DescriptionsItem:xw}),fX=ln(xw),kw=Ce({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Ft},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),pX={close:()=>!0},Ew=Ce({...kw,appendToBody:Boolean,appendTo:{type:Au.to.type,default:"body"},beforeClose:{type:J(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:J([String,Object]),default:void 0}}),Tw={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[at]:e=>Dt(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},hX=Ce({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:J([String,Array,Object])},zIndex:{type:J([String,Number])}}),vX={click:e=>e instanceof MouseEvent},mX="overlay";var gX=D({name:"ElOverlay",props:hX,emits:vX,setup(e,{slots:t,emit:n}){const a=ve(mX),o=u=>{n("click",u)},{onClick:l,onMousedown:r,onMouseup:s}=mh(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[a.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:r,onMouseup:s},[oe(t,"default")],Ja.STYLE|Ja.CLASS|Ja.PROPS,["onClick","onMouseup","onMousedown"]):qe("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[oe(t,"default")])}});const Zh=gX,Mw=Symbol("dialogInjectionKey"),C0="dialog-fade",yX="ElDialog",Ow=(e,t)=>{const n=ht().emit,{nextZIndex:a}=Pu();let o="";const l=Un(),r=Un(),s=V(!1),u=V(!1),c=V(!1),d=V(e.zIndex??a()),f=V(!1);let h,g;const p=Tl(),v=x(()=>{var j;return((j=p.value)==null?void 0:j.namespace)??Bi}),m=x(()=>{var j;return(j=p.value)==null?void 0:j.dialog}),y=x(()=>{const j={},G=`--${v.value}-dialog`;if(!e.fullscreen){e.top&&(j[`${G}-margin-top`]=e.top);const ee=cn(e.width);ee&&(j[`${G}-width`]=ee)}return j}),b=x(()=>{var j;return(e.draggable??((j=m.value)==null?void 0:j.draggable)??!1)&&!e.fullscreen}),w=x(()=>{var j;return e.alignCenter??((j=m.value)==null?void 0:j.alignCenter)??!1}),C=x(()=>{var j;return e.overflow??((j=m.value)==null?void 0:j.overflow)??!1}),S=x(()=>e.modalPenetrable&&!e.modal&&!e.fullscreen),k=x(()=>w.value?{display:"flex"}:{}),T=x(()=>{var ee;const j=e.transition??((ee=m.value)==null?void 0:ee.transition)??C0,G={name:j,onAfterEnter:M,onBeforeLeave:O,onAfterLeave:A};if(Mt(j)){const te={...j},ue=(ne,de)=>se=>{Ve(ne)?ne.forEach(Y=>{ct(Y)&&Y(se)}):ct(ne)&&ne(se),de()};return te.onAfterEnter=ue(te.onAfterEnter,M),te.onBeforeLeave=ue(te.onBeforeLeave,O),te.onAfterLeave=ue(te.onAfterLeave,A),te.name||(te.name=C0,ft(yX,`transition.name is missing when using object syntax, fallback to '${C0}'`)),te}return G});function M(){n("opened")}function A(){n("closed"),n(at,!1),e.destroyOnClose&&(c.value=!1),f.value=!1}function O(){f.value=!0,n("close")}function I(){g==null||g(),h==null||h(),e.openDelay&&e.openDelay>0?{stop:h}=Os(()=>U(),e.openDelay):U()}function L(){h==null||h(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=Os(()=>F(),e.closeDelay):F()}function z(){function j(G){G||(u.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(j):L()}function q(){e.closeOnClickModal&&z()}function U(){Rt&&(s.value=!0)}function F(){s.value=!1}function N(){n("openAutoFocus")}function P(){n("closeAutoFocus")}function B(j){var G;((G=j.detail)==null?void 0:G.focusReason)==="pointer"&&j.preventDefault()}e.lockScroll&&cf(s);function W(){e.closeOnPressEscape&&z()}function K(){!s.value||!S.value||e.zIndex!==void 0||(d.value=a())}return fe(()=>e.zIndex,()=>{d.value=e.zIndex??a()}),fe(()=>e.modelValue,j=>{j?(u.value=!1,f.value=!1,I(),c.value=!0,d.value=e.zIndex??a(),Ie(()=>{n("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):s.value&&L()}),fe(()=>e.fullscreen,j=>{t.value&&(j?(o=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=o)}),mt(()=>{e.modelValue&&(s.value=!0,c.value=!0,I())}),{afterEnter:M,afterLeave:A,beforeLeave:O,handleClose:z,onModalClick:q,close:L,doClose:F,onOpenAutoFocus:N,onCloseAutoFocus:P,onCloseRequested:W,onFocusoutPrevented:B,bringToFront:K,titleId:l,bodyId:r,closed:u,style:y,overlayDialogStyle:k,rendered:c,visible:s,zIndex:d,transitionConfig:T,_draggable:b,_alignCenter:w,_overflow:C,closing:f,penetrable:S}},Qh=(...e)=>t=>{e.forEach(n=>{n.value=t})},bX=["aria-level"],wX=["aria-label"],CX=["id"];var _X=D({name:"ElDialogContent",__name:"dialog-content",props:kw,emits:pX,setup(e,{expose:t}){const{t:n}=xt(),{Close:a}=jy,o=e,{dialogRef:l,headerRef:r,bodyId:s,ns:u,style:c}=Ne(Mw),{focusTrapRef:d}=Ne(nb),f=Qh(d,l),h=x(()=>!!o.draggable),{resetPosition:g,updatePosition:p,isDragging:v}=D8(l,r,h,x(()=>!!o.overflow)),m=x(()=>[u.b(),u.is("fullscreen",o.fullscreen),u.is("draggable",h.value),u.is("dragging",v.value),u.is("align-center",!!o.alignCenter),{[u.m("center")]:o.center}]);return t({resetPosition:g,updatePosition:p}),(y,b)=>(_(),$("div",{ref:i(f),class:R(m.value),style:We(i(c)),tabindex:"-1"},[E("header",{ref_key:"headerRef",ref:r,class:R([i(u).e("header"),e.headerClass,{"show-close":e.showClose}])},[oe(y.$slots,"header",{},()=>[E("span",{role:"heading","aria-level":e.ariaLevel,class:R(i(u).e("title"))},_e(e.title),11,bX)]),e.showClose?(_(),$("button",{key:0,"aria-label":i(n)("el.dialog.close"),class:R(i(u).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=w=>y.$emit("close"))},[Q(i(ze),{class:R(i(u).e("close"))},{default:ae(()=>[(_(),ie(ut(e.closeIcon||i(a))))]),_:1},8,["class"])],10,wX)):re("v-if",!0)],2),E("div",{id:i(s),class:R([i(u).e("body"),e.bodyClass])},[oe(y.$slots,"default")],10,CX),y.$slots.footer?(_(),$("footer",{key:0,class:R([i(u).e("footer"),e.footerClass])},[oe(y.$slots,"footer")],2)):re("v-if",!0)],6))}}),SX=_X;const xX=["aria-label","aria-labelledby","aria-describedby"];var kX=D({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:Ew,emits:Tw,setup(e,{expose:t}){const n=e,a=yn();Lo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},x(()=>!!a.title));const o=ve("dialog"),l=V(),r=V(),s=V(),{visible:u,titleId:c,bodyId:d,style:f,overlayDialogStyle:h,rendered:g,transitionConfig:p,zIndex:v,_draggable:m,_alignCenter:y,_overflow:b,penetrable:w,handleClose:C,onModalClick:S,onOpenAutoFocus:k,onCloseAutoFocus:T,onCloseRequested:M,onFocusoutPrevented:A,bringToFront:O,closing:I}=Ow(n,l);bt(Mw,{dialogRef:l,headerRef:r,bodyId:d,ns:o,rendered:g,style:f});const L=mh(S);return t({visible:u,dialogContentRef:s,resetPosition:()=>{var q;(q=s.value)==null||q.resetPosition()},handleClose:C}),(q,U)=>(_(),ie(i(ti),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(qn,pt(i(p),{persisted:""}),{default:ae(()=>[dt(Q(i(Zh),{"custom-mask-event":"",mask:e.modal,"overlay-class":[e.modalClass??"",`${i(o).namespace.value}-modal-dialog`,i(o).is("penetrable",i(w))],"z-index":i(v)},{default:ae(()=>[E("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(c),"aria-describedby":i(d),class:R([`${i(o).namespace.value}-overlay-dialog`,i(o).is("closing",i(I))]),style:We(i(h)),onClick:U[0]||(U[0]=(...F)=>i(L).onClick&&i(L).onClick(...F)),onMousedown:U[1]||(U[1]=(...F)=>i(L).onMousedown&&i(L).onMousedown(...F)),onMouseup:U[2]||(U[2]=(...F)=>i(L).onMouseup&&i(L).onMouseup(...F))},[Q(i(ai),{loop:"",trapped:i(u),"focus-start-el":"container",onFocusAfterTrapped:i(k),onFocusAfterReleased:i(T),onFocusoutPrevented:i(A),onReleaseRequested:i(M)},{default:ae(()=>[i(g)?(_(),ie(SX,pt({key:0,ref_key:"dialogContentRef",ref:s},q.$attrs,{center:e.center,"align-center":i(y),"close-icon":e.closeIcon,draggable:i(m),overflow:i(b),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:i(C),onMousedown:i(O)}),ga({header:ae(()=>[q.$slots.title?oe(q.$slots,"title",{key:1}):oe(q.$slots,"header",{key:0,close:i(C),titleId:i(c),titleClass:i(o).e("title")})]),default:ae(()=>[oe(q.$slots,"default")]),_:2},[q.$slots.footer?{name:"footer",fn:ae(()=>[oe(q.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose","onMousedown"])):re("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,xX)]),_:3},8,["mask","overlay-class","z-index"]),[[At,i(u)]])]),_:3},16)]),_:3},8,["to","disabled"]))}}),EX=kX;const TX=rt(EX),MX=Ce({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:J(String),default:"solid"}});var OX=D({name:"ElDivider",__name:"divider",props:MX,setup(e){const t=e,n=ve("divider"),a=x(()=>n.cssVar({"border-style":t.borderStyle}));return(o,l)=>(_(),$("div",{class:R([i(n).b(),i(n).m(e.direction)]),style:We(a.value),role:"separator"},[o.$slots.default&&e.direction!=="vertical"?(_(),$("div",{key:0,class:R([i(n).e("text"),i(n).is(e.contentPosition)])},[oe(o.$slots,"default")],2)):re("v-if",!0)],6))}}),$X=OX;const $w=rt($X),AX=Ce({...Ew,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},resizable:Boolean,size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),RX={...Tw,"resize-start":(e,t)=>e instanceof MouseEvent&&typeof t=="number",resize:(e,t)=>e instanceof MouseEvent&&typeof t=="number","resize-end":(e,t)=>e instanceof MouseEvent&&typeof t=="number"};function NX(e,t,n){const{width:a,height:o}=zp(),l=x(()=>["ltr","rtl"].includes(e.direction)),r=x(()=>["ltr","ttb"].includes(e.direction)?1:-1),s=x(()=>l.value?a.value:o.value),u=x(()=>R6(c.value+r.value*d.value,4,s.value)),c=V(0),d=V(0),f=V(!1),h=V(!1);let g=[],p=[];const v=()=>{var S;const C=(S=t.value)==null?void 0:S.closest('[aria-modal="true"]');return C?l.value?C.offsetWidth:C.offsetHeight:100};fe(()=>[e.size,e.resizable],()=>{h.value=!1,c.value=0,d.value=0,b()});const m=C=>{e.resizable&&(h.value||(c.value=v(),h.value=!0),g=[C.pageX,C.pageY],f.value=!0,n("resize-start",C,c.value),p.push(Vt(window,"mouseup",b),Vt(window,"mousemove",y)))},y=C=>{const{pageX:S,pageY:k}=C,T=S-g[0],M=k-g[1];d.value=l.value?T:M,n("resize",C,u.value)},b=C=>{f.value&&(g=[],c.value=u.value,d.value=0,f.value=!1,p.forEach(S=>S==null?void 0:S()),p=[],C&&n("resize-end",C,c.value))},w=Vt(t,"mousedown",m);return Lt(()=>{w(),b()}),{size:x(()=>h.value?`${u.value}px`:cn(e.size)),isResizing:f,isHorizontal:l}}const PX=["aria-label","aria-labelledby","aria-describedby"],IX=["id","aria-level"],LX=["aria-label"],VX=["id"];var BX=D({name:"ElDrawer",inheritAttrs:!1,__name:"drawer",props:AX,emits:RX,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn();Lo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},x(()=>!!l.title));const r=V(),s=V(),u=V(),c=ve("drawer"),{t:d}=xt(),{afterEnter:f,afterLeave:h,beforeLeave:g,visible:p,rendered:v,titleId:m,bodyId:y,zIndex:b,onModalClick:w,onOpenAutoFocus:C,onCloseAutoFocus:S,onFocusoutPrevented:k,onCloseRequested:T,handleClose:M}=Ow(a,r),{isHorizontal:A,size:O,isResizing:I}=NX(a,u,o),L=x(()=>a.modalPenetrable&&!a.modal);return t({handleClose:M,afterEnter:f,afterLeave:h}),(z,q)=>(_(),ie(i(ti),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:ae(()=>[Q(qn,{name:i(c).b("fade"),onAfterEnter:i(f),onAfterLeave:i(h),onBeforeLeave:i(g),persisted:""},{default:ae(()=>[dt(Q(i(Zh),{mask:e.modal,"overlay-class":[i(c).is("drawer"),e.modalClass??"",`${i(c).namespace.value}-modal-drawer`,i(c).is("penetrable",L.value)],"z-index":i(b),onClick:i(w)},{default:ae(()=>[Q(i(ai),{loop:"",trapped:i(p),"focus-trap-el":r.value,"focus-start-el":s.value,onFocusAfterTrapped:i(C),onFocusAfterReleased:i(S),onFocusoutPrevented:i(k),onReleaseRequested:i(T)},{default:ae(()=>[E("div",pt({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:i(m),"aria-describedby":i(y)},z.$attrs,{class:[i(c).b(),e.direction,i(p)&&"open",i(c).is("dragging",i(I))],style:{[i(A)?"width":"height"]:i(O)},role:"dialog",onClick:q[1]||(q[1]=Xe(()=>{},["stop"]))}),[E("span",{ref_key:"focusStartRef",ref:s,class:R(i(c).e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(_(),$("header",{key:0,class:R([i(c).e("header"),e.headerClass])},[z.$slots.title?oe(z.$slots,"title",{key:1},()=>[re(" DEPRECATED SLOT ")]):oe(z.$slots,"header",{key:0,close:i(M),titleId:i(m),titleClass:i(c).e("title")},()=>[E("span",{id:i(m),role:"heading","aria-level":e.headerAriaLevel,class:R(i(c).e("title"))},_e(e.title),11,IX)]),e.showClose?(_(),$("button",{key:2,"aria-label":i(d)("el.drawer.close"),class:R(i(c).e("close-btn")),type:"button",onClick:q[0]||(q[0]=(...U)=>i(M)&&i(M)(...U))},[Q(i(ze),{class:R(i(c).e("close"))},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class"])],10,LX)):re("v-if",!0)],2)):re("v-if",!0),i(v)?(_(),$("div",{key:1,id:i(y),class:R([i(c).e("body"),e.bodyClass])},[oe(z.$slots,"default")],10,VX)):re("v-if",!0),z.$slots.footer?(_(),$("div",{key:2,class:R([i(c).e("footer"),e.footerClass])},[oe(z.$slots,"footer")],2)):re("v-if",!0),e.resizable?(_(),$("div",{key:3,ref_key:"draggerRef",ref:u,style:We({zIndex:i(b)}),class:R(i(c).e("dragger"))},null,6)):re("v-if",!0)],16,PX)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[At,i(p)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}}),zX=BX;const DX=rt(zX),zc=Ce({trigger:{...Do.trigger,type:J([String,Array])},triggerKeys:{type:J(Array),default:()=>[we.enter,we.numpadEnter,we.space,we.down]},virtualTriggering:Do.virtualTriggering,virtualRef:Do.virtualRef,effect:{...Ht.effect,default:"light"},type:{type:J(String)},placement:{type:J(String),default:"bottom"},popperOptions:{type:J(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:J([Number,String]),default:0},maxHeight:{type:J([Number,String]),default:""},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,disabled:Boolean,role:{type:String,values:qy,default:"menu"},buttonProps:{type:J(Object)},teleported:Ht.teleported,appendTo:Ht.appendTo,persistent:{type:Boolean,default:!0}}),Aw=Ce({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Ft}}),HX=Ce({onKeydown:{type:J(Function)}}),kf=Symbol("elDropdown"),Rw="elDropdown";var FX=D({inheritAttrs:!1});function KX(e,t,n,a,o,l){return oe(e.$slots,"default")}var WX=$n(FX,[["render",KX]]),jX=D({name:"ElCollectionItem",inheritAttrs:!1});function qX(e,t,n,a,o,l){return oe(e.$slots,"default")}var UX=$n(jX,[["render",qX]]);const Nw="data-el-collection-item",YX=e=>{const t=`El${e}Collection`,n=`${t}Item`,a=Symbol(t),o=Symbol(n);return{COLLECTION_INJECTION_KEY:a,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:Object.assign({},WX,{name:t,setup(){const l=V(),r=new Map;bt(a,{itemMap:r,getItems:()=>{const u=i(l);if(!u)return[];const c=Array.from(u.querySelectorAll(`[${Nw}]`));return[...r.values()].sort((d,f)=>c.indexOf(d.ref)-c.indexOf(f.ref))},collectionRef:l})}}),ElCollectionItem:Object.assign({},UX,{name:n,setup(l,{attrs:r}){const s=V(),u=Ne(a,void 0);bt(o,{collectionItemRef:s}),mt(()=>{const c=i(s);c&&u.itemMap.set(c,{ref:c,...r})}),Lt(()=>{const c=i(s);u.itemMap.delete(c)})}})}},GX=Ce({style:{type:J([String,Array,Object])},currentTabId:{type:J(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:J(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:XX,ElCollectionItem:JX,COLLECTION_INJECTION_KEY:Pw,COLLECTION_ITEM_INJECTION_KEY:ZX}=YX("RovingFocusGroup"),ev=Symbol("elRovingFocusGroup"),Iw=Symbol("elRovingFocusGroupItem"),QX={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},eJ=(e,t)=>e,tJ=(e,t,n)=>{const a=eJ(Kt(e));return QX[a]},nJ=(e,t)=>e.map((n,a)=>e[(a+t)%e.length]),Mg=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},Og="currentTabIdChange",$g="rovingFocusGroup.entryFocus",aJ={bubbles:!1,cancelable:!0};var oJ=D({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:GX,emits:[Og,"entryFocus"],setup(e,{emit:t}){const n=V((e.currentTabId||e.defaultCurrentTabId)??null),a=V(!1),o=V(!1),l=V(),{getItems:r}=Ne(Pw,void 0),s=x(()=>[{outline:"none"},e.style]),u=v=>{t(Og,v)},c=()=>{a.value=!0},d=Pn(v=>{var m;(m=e.onMousedown)==null||m.call(e,v)},()=>{o.value=!0}),f=Pn(v=>{var m;(m=e.onFocus)==null||m.call(e,v)},v=>{const m=!i(o),{target:y,currentTarget:b}=v;if(y===b&&m&&!i(a)){const w=new Event($g,aJ);if(b==null||b.dispatchEvent(w),!w.defaultPrevented){const C=r().filter(S=>S.focusable);Mg([C.find(S=>S.active),C.find(S=>S.id===i(n)),...C].filter(Boolean).map(S=>S.ref))}}o.value=!1}),h=Pn(v=>{var m;(m=e.onBlur)==null||m.call(e,v)},()=>{a.value=!1}),g=(...v)=>{t("entryFocus",...v)},p=v=>{const m=tJ(v);if(m){v.preventDefault();let y=r().filter(b=>b.focusable).map(b=>b.ref);switch(m){case"last":y.reverse();break;case"prev":case"next":{m==="prev"&&y.reverse();const b=y.indexOf(v.currentTarget);y=e.loop?nJ(y,b+1):y.slice(b+1);break}}Ie(()=>{Mg(y)})}};bt(ev,{currentTabbedId:Rr(n),loop:Bt(e,"loop"),tabIndex:x(()=>i(a)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:s,orientation:Bt(e,"orientation"),dir:Bt(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:h,onFocus:f,onMousedown:d,onKeydown:p}),fe(()=>e.currentTabId,v=>{n.value=v??null}),Vt(l,$g,g)}});function lJ(e,t,n,a,o,l){return oe(e.$slots,"default")}var rJ=$n(oJ,[["render",lJ]]),sJ=D({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:XX,ElRovingFocusGroupImpl:rJ}});function iJ(e,t,n,a,o,l){const r=$t("el-roving-focus-group-impl"),s=$t("el-focus-group-collection");return _(),ie(s,null,{default:ae(()=>[Q(r,il(ul(e.$attrs)),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16)]),_:3})}var uJ=$n(sJ,[["render",iJ]]),cJ=D({components:{ElRovingFocusCollectionItem:JX},props:{focusable:{type:Boolean,default:!0},active:Boolean},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,onItemFocus:a,onItemShiftTab:o,onKeydown:l}=Ne(ev,void 0),r=Un(),s=V(),u=Pn(h=>{t("mousedown",h)},h=>{e.focusable?a(i(r)):h.preventDefault()}),c=Pn(h=>{t("focus",h)},()=>{a(i(r))}),d=Pn(h=>{t("keydown",h)},h=>{const{shiftKey:g,target:p,currentTarget:v}=h;if(Kt(h)===we.tab&&g){o();return}p===v&&l(h)}),f=x(()=>n.value===i(r));return bt(Iw,{rovingFocusGroupItemRef:s,tabIndex:x(()=>i(f)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:d}),{id:r,handleKeydown:d,handleFocus:c,handleMousedown:u}}});function dJ(e,t,n,a,o,l){const r=$t("el-roving-focus-collection-item");return _(),ie(r,{id:e.id,focusable:e.focusable,active:e.active},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var fJ=$n(cJ,[["render",dJ]]),pJ=uJ;const{ButtonGroup:hJ}=Ln;var vJ=D({name:"ElDropdown",components:{ElButton:Ln,ElButtonGroup:hJ,ElScrollbar:uo,ElTooltip:Fn,ElRovingFocusGroup:pJ,ElOnlyChild:Xy,ElIcon:ze,ArrowDown:bo},props:zc,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=ht(),a=ve("dropdown"),{t:o}=xt(),l=V(),r=V(),s=V(),u=V(),c=V(null),d=V(null),f=V(!1),h=x(()=>({maxHeight:cn(e.maxHeight)})),g=x(()=>[a.m(C.value)]),p=x(()=>In(e.trigger)),v=Un().value,m=x(()=>e.id||v);function y(){var z;(z=s.value)==null||z.onClose(void 0,0)}function b(){var z;(z=s.value)==null||z.onClose()}function w(){var z;(z=s.value)==null||z.onOpen()}const C=En();function S(...z){t("command",...z)}function k(){}function T(){const z=i(u);p.value.includes("hover")&&(z==null||z.focus({preventScroll:!0})),d.value=null}function M(z){d.value=z}function A(){t("visible-change",!0)}function O(z){var q;f.value=(z==null?void 0:z.type)==="keydown",(q=u.value)==null||q.focus()}function I(){t("visible-change",!1)}return bt(kf,{contentRef:u,role:x(()=>e.role),triggerId:m,isUsingKeyboard:f,onItemEnter:k,onItemLeave:T,handleClose:b}),bt(Rw,{instance:n,dropdownSize:C,handleClick:y,commandHandler:S,trigger:Bt(e,"trigger"),hideOnClick:Bt(e,"hideOnClick")}),{t:o,ns:a,scrollbar:c,wrapStyle:h,dropdownTriggerKls:g,dropdownSize:C,triggerId:m,currentTabId:d,handleCurrentTabIdChange:M,handlerMainButtonClick:z=>{t("click",z)},handleClose:b,handleOpen:w,handleBeforeShowTooltip:A,handleShowTooltip:O,handleBeforeHideTooltip:I,popperRef:s,contentRef:u,triggeringElementRef:l,referenceElementRef:r}}});function mJ(e,t,n,a,o,l){const r=$t("el-roving-focus-group"),s=$t("el-scrollbar"),u=$t("el-only-child"),c=$t("el-tooltip"),d=$t("el-button"),f=$t("arrow-down"),h=$t("el-icon"),g=$t("el-button-group");return _(),$("div",{class:R([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(c,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"popper-style":e.popperStyle,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-arrow":e.showArrow,"show-after":e.trigger==="hover"?e.showTimeout:0,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"virtual-ref":e.virtualRef??e.triggeringElementRef,"virtual-triggering":e.virtualTriggering||e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,"append-to":e.appendTo,pure:"","focus-on-target":"",persistent:e.persistent,onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},ga({content:ae(()=>[Q(s,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:ae(()=>[Q(r,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange},{default:ae(()=>[oe(e.$slots,"dropdown")]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:ae(()=>[Q(u,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:ae(()=>[oe(e.$slots,"default")]),_:3},8,["id","tabindex"])]),key:"0"}]),1032,["role","effect","popper-options","placement","popper-class","popper-style","trigger","trigger-keys","trigger-target-el","show-arrow","show-after","hide-after","virtual-ref","virtual-triggering","disabled","transition","teleported","append-to","persistent","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(_(),ie(g,{key:0},{default:ae(()=>[Q(d,pt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:ae(()=>[oe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(d,pt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:ae(()=>[Q(h,{class:R(e.ns.e("icon"))},{default:ae(()=>[Q(f)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):re("v-if",!0)],2)}var gJ=$n(vJ,[["render",mJ]]),yJ=D({name:"DropdownItemImpl",components:{ElIcon:ze},props:Aw,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=ve("dropdown"),{role:a}=Ne(kf,void 0),{collectionItemRef:o}=Ne(ZX,void 0),{rovingFocusGroupItemRef:l,tabIndex:r,handleFocus:s,handleKeydown:u,handleMousedown:c}=Ne(Iw,void 0),d=Qh(o,l),f=x(()=>a.value==="menu"?"menuitem":a.value==="navigation"?"link":"button"),h=Pn(g=>{const p=Kt(g);if([we.enter,we.numpadEnter,we.space].includes(p))return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:d,dataset:{[Nw]:""},role:f,tabIndex:r,handleFocus:s,handleKeydown:h,handleMousedown:c}}});const bJ=["aria-disabled","tabindex","role"];function wJ(e,t,n,a,o,l){const r=$t("el-icon");return _(),$(He,null,[e.divided?(_(),$("li",{key:0,role:"separator",class:R(e.ns.bem("menu","item","divided"))},null,2)):re("v-if",!0),E("li",pt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=Xe((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon||e.$slots.icon?(_(),ie(r,{key:0},{default:ae(()=>[oe(e.$slots,"icon",{},()=>[(_(),ie(ut(e.icon)))])]),_:3})):re("v-if",!0),oe(e.$slots,"default")],16,bJ)],64)}var CJ=$n(yJ,[["render",wJ]]);const Lw=()=>{const e=Ne(Rw,{});return{elDropdown:e,_elDropdownSize:x(()=>e==null?void 0:e.dropdownSize)}};var _J=D({name:"ElDropdownItem",components:{ElRovingFocusItem:fJ,ElDropdownItemImpl:CJ},inheritAttrs:!1,props:Aw,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:a}=Lw(),o=ht(),{onItemEnter:l,onItemLeave:r}=Ne(kf,void 0),s=Pn(c=>(t("pointermove",c),c.defaultPrevented),sm(c=>{if(e.disabled){r(c);return}const d=c.currentTarget;d===document.activeElement||d.contains(document.activeElement)||(l(c),c.defaultPrevented||d==null||d.focus({preventScroll:!0}))})),u=Pn(c=>(t("pointerleave",c),c.defaultPrevented),sm(r));return{handleClick:Pn(c=>{if(!e.disabled)return t("click",c),c.type!=="keydown"&&c.defaultPrevented},c=>{var d,f,h;if(e.disabled){c.stopImmediatePropagation();return}(d=a==null?void 0:a.hideOnClick)!=null&&d.value&&((f=a.handleClick)==null||f.call(a)),(h=a.commandHandler)==null||h.call(a,e.command,o,c)}),handlePointerMove:s,handlePointerLeave:u,propsAndAttrs:x(()=>({...e,...n}))}}});function SJ(e,t,n,a,o,l){const r=$t("el-dropdown-item-impl"),s=$t("el-roving-focus-item");return _(),ie(s,{focusable:!e.disabled},{default:ae(()=>[Q(r,pt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),ga({default:ae(()=>[oe(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:ae(()=>[oe(e.$slots,"icon")]),key:"0"}:void 0]),1040,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])}var Vw=$n(_J,[["render",SJ]]),xJ=D({name:"ElDropdownMenu",props:HX,setup(e){const t=ve("dropdown"),{_elDropdownSize:n}=Lw(),a=n.value,{contentRef:o,role:l,triggerId:r,isUsingKeyboard:s,handleClose:u}=Ne(kf,void 0),{rovingFocusGroupRef:c,rovingFocusGroupRootStyle:d,onBlur:f,onFocus:h,onKeydown:g,onMousedown:p}=Ne(ev,void 0),{collectionRef:v}=Ne(Pw,void 0),m=x(()=>[t.b("menu"),t.bm("menu",a==null?void 0:a.value)]),y=Qh(o,c,v),b=Pn(C=>{var S;(S=e.onKeydown)==null||S.call(e,C)},C=>{const{currentTarget:S,target:k}=C,T=Kt(C);if(S.contains(k),we.tab===T)return u();g(C)});function w(C){s.value&&h(C)}return{size:a,rovingFocusGroupRootStyle:d,dropdownKls:m,role:l,triggerId:r,dropdownListWrapperRef:y,handleKeydown:b,onBlur:f,handleFocus:w,onMousedown:p}}});const kJ=["role","aria-labelledby"];function EJ(e,t,n,a,o,l){return _(),$("ul",{ref:e.dropdownListWrapperRef,class:R(e.dropdownKls),style:We(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onFocusin:t[0]||(t[0]=(...r)=>e.handleFocus&&e.handleFocus(...r)),onFocusout:t[1]||(t[1]=(...r)=>e.onBlur&&e.onBlur(...r)),onKeydown:t[2]||(t[2]=Xe((...r)=>e.handleKeydown&&e.handleKeydown(...r),["self"])),onMousedown:t[3]||(t[3]=Xe((...r)=>e.onMousedown&&e.onMousedown(...r),["self"]))},[oe(e.$slots,"default")],46,kJ)}var Bw=$n(xJ,[["render",EJ]]);const TJ=rt(gJ,{DropdownItem:Vw,DropdownMenu:Bw}),MJ=ln(Vw),OJ=ln(Bw),$J=Ce({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),AJ={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},RJ=["id"],NJ=["stop-color"],PJ=["stop-color"],IJ=["id"],LJ=["stop-color"],VJ=["stop-color"],BJ=["id"],zJ={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},DJ={transform:"translate(-1268.000000, -535.000000)"},HJ={transform:"translate(1268.000000, 535.000000)"},FJ=["fill"],KJ=["fill"],WJ={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},jJ=["fill"],qJ=["fill"],UJ=["fill"],YJ=["fill"],GJ=["fill"],XJ={transform:"translate(53.000000, 45.000000)"},JJ=["fill","xlink:href"],ZJ=["fill","mask"],QJ=["fill"];var eZ=D({name:"ImgEmpty",__name:"img-empty",setup(e){const t=ve("empty"),n=Un();return(a,o)=>(_(),$("svg",AJ,[E("defs",null,[E("linearGradient",{id:`linearGradient-1-${i(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,NJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,PJ)],8,RJ),E("linearGradient",{id:`linearGradient-2-${i(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,LJ),E("stop",{"stop-color":`var(${i(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,VJ)],8,IJ),E("rect",{id:`path-3-${i(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,BJ)]),E("g",zJ,[E("g",DJ,[E("g",HJ,[E("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${i(t).cssVarBlockName("fill-color-3")})`},null,8,FJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,KJ),E("g",WJ,[E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,jJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,qJ),E("rect",{fill:`url(#linearGradient-1-${i(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,UJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,YJ)]),E("rect",{fill:`url(#linearGradient-2-${i(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,GJ),E("g",XJ,[E("use",{fill:`var(${i(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${i(n)}`},null,8,JJ),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${i(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,ZJ)]),E("polygon",{fill:`var(${i(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,QJ)])])])]))}}),tZ=eZ;const nZ=["src"],aZ={key:1};var oZ=D({name:"ElEmpty",__name:"empty",props:$J,setup(e){const t=e,{t:n}=xt(),a=ve("empty"),o=x(()=>t.description||n("el.table.emptyText")),l=x(()=>({width:cn(t.imageSize)}));return(r,s)=>(_(),$("div",{class:R(i(a).b())},[E("div",{class:R(i(a).e("image")),style:We(l.value)},[e.image?(_(),$("img",{key:0,src:e.image,ondragstart:"return false"},null,8,nZ)):oe(r.$slots,"image",{key:1},()=>[Q(tZ)])],6),E("div",{class:R(i(a).e("description"))},[r.$slots.description?oe(r.$slots,"description",{key:0}):(_(),$("p",aZ,_e(o.value),1))],2),r.$slots.default?(_(),$("div",{key:0,class:R(i(a).e("bottom"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),lZ=oZ;const zw=rt(lZ),rZ=Ce({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:J([String,Object])},previewSrcList:{type:J(Array),default:()=>un([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),sZ={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>De(e),close:()=>!0,show:()=>!0},iZ=Ce({urlList:{type:J(Array),default:()=>un([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:J(String)}}),uZ={close:()=>!0,error:e=>e instanceof Event,switch:e=>De(e),rotate:e=>De(e)},cZ=["src","crossorigin"];var dZ=D({name:"ElImageViewer",__name:"image-viewer",props:iZ,emits:uZ,setup(e,{expose:t,emit:n}){const a={CONTAIN:{name:"contain",icon:Io($y)},ORIGINAL:{name:"original",icon:Io(By)}},o=e,l=n;let r;const{t:s}=xt(),u=ve("image-viewer"),{nextZIndex:c}=Pu(),d=V(),f=V(),h=vC(),g=x(()=>{const{scale:se,minScale:Y,maxScale:X}=o;return R6(se,Y,X)}),p=V(!0),v=V(!1),m=V(!1),y=V(o.initialIndex),b=qt(a.CONTAIN),w=V({scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),C=V(o.zIndex??c());cf(m,{ns:u});const S=x(()=>{const{urlList:se}=o;return se.length<=1}),k=x(()=>y.value===0),T=x(()=>y.value===o.urlList.length-1),M=x(()=>o.urlList[y.value]),A=x(()=>[u.e("btn"),u.e("prev"),u.is("disabled",!o.infinite&&k.value)]),O=x(()=>[u.e("btn"),u.e("next"),u.is("disabled",!o.infinite&&T.value)]),I=x(()=>{const{scale:se,deg:Y,offsetX:X,offsetY:H,enableTransition:Z}=w.value;let le=X/se,ce=H/se;const ge=Y*Math.PI/180,me=Math.cos(ge),$e=Math.sin(ge);le=le*me+ce*$e,ce=ce*me-X/se*$e;const Re={transform:`scale(${se}) rotate(${Y}deg) translate(${le}px, ${ce}px)`,transition:Z?"transform .3s":""};return b.value.name===a.CONTAIN.name&&(Re.maxWidth=Re.maxHeight="100%"),Re}),L=x(()=>`${y.value+1} / ${o.urlList.length}`);function z(){U(),r==null||r(),m.value=!1,l("close")}function q(){const se=Dl(X=>{switch(Kt(X)){case we.esc:o.closeOnPressEscape&&z();break;case we.space:K();break;case we.left:G();break;case we.up:te("zoomIn");break;case we.right:ee();break;case we.down:te("zoomOut");break}}),Y=Dl(X=>{te((X.deltaY||X.deltaX)<0?"zoomIn":"zoomOut",{zoomRate:o.zoomRate,enableTransition:!1})});h.run(()=>{Vt(document,"keydown",se),Vt(d,"wheel",Y)})}function U(){h.stop()}function F(){p.value=!1}function N(se){v.value=!0,p.value=!1,l("error",se),se.target.alt=s("el.image.error")}function P(se){if(p.value||se.button!==0||!d.value)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,H=se.pageX,Z=se.pageY,le=Dl(me=>{w.value={...w.value,offsetX:Y+me.pageX-H,offsetY:X+me.pageY-Z}}),ce=Vt(document,"mousemove",le),ge=Vt(document,"mouseup",()=>{ce(),ge()});se.preventDefault()}function B(se){if(p.value||!d.value||se.touches.length!==1)return;w.value.enableTransition=!1;const{offsetX:Y,offsetY:X}=w.value,{pageX:H,pageY:Z}=se.touches[0],le=Dl(me=>{const $e=me.touches[0];w.value={...w.value,offsetX:Y+$e.pageX-H,offsetY:X+$e.pageY-Z}}),ce=Vt(document,"touchmove",le),ge=Vt(document,"touchend",()=>{ce(),ge()});se.preventDefault()}function W(){w.value={scale:g.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function K(){if(p.value||v.value)return;const se=tu(a),Y=Object.values(a),X=b.value.name;b.value=a[se[(Y.findIndex(H=>H.name===X)+1)%se.length]],W()}function j(se){v.value=!1;const Y=o.urlList.length;y.value=(se+Y)%Y}function G(){k.value&&!o.infinite||j(y.value-1)}function ee(){T.value&&!o.infinite||j(y.value+1)}function te(se,Y={}){if(p.value||v.value)return;const{minScale:X,maxScale:H}=o,{zoomRate:Z,rotateDeg:le,enableTransition:ce}={zoomRate:o.zoomRate,rotateDeg:90,enableTransition:!0,...Y};switch(se){case"zoomOut":w.value.scale>X&&(w.value.scale=Number.parseFloat((w.value.scale/Z).toFixed(3)));break;case"zoomIn":w.value.scale0)return se.preventDefault(),!1}}return fe(()=>g.value,se=>{w.value.scale=se}),fe(M,()=>{Ie(()=>{var se;(se=f.value)!=null&&se.complete||(p.value=!0)})}),fe(y,se=>{W(),l("switch",se)}),mt(()=>{m.value=!0,q(),r=Vt("wheel",de,{passive:!1})}),t({setActiveItem:j}),(se,Y)=>(_(),ie(i(ti),{to:"body",disabled:!e.teleported},{default:ae(()=>[Q(qn,{name:"viewer-fade",appear:""},{default:ae(()=>[E("div",{ref_key:"wrapper",ref:d,tabindex:-1,class:R(i(u).e("wrapper")),style:We({zIndex:C.value})},[Q(i(ai),{loop:"",trapped:"","focus-trap-el":d.value,"focus-start-el":"container",onFocusoutPrevented:ue,onReleaseRequested:ne},{default:ae(()=>[E("div",{class:R(i(u).e("mask")),onClick:Y[0]||(Y[0]=Xe(X=>e.hideOnClickModal&&z(),["self"]))},null,2),re(" CLOSE "),E("span",{class:R([i(u).e("btn"),i(u).e("close")]),onClick:z},[Q(i(ze),null,{default:ae(()=>[Q(i(Ba))]),_:1})],2),re(" ARROW "),S.value?re("v-if",!0):(_(),$(He,{key:0},[E("span",{class:R(A.value),onClick:G},[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1})],2),E("span",{class:R(O.value),onClick:ee},[Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})],2)],64)),se.$slots.progress||e.showProgress?(_(),$("div",{key:1,class:R([i(u).e("btn"),i(u).e("progress")])},[oe(se.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},()=>[_t(_e(L.value),1)])],2)):re("v-if",!0),re(" ACTIONS "),E("div",{class:R([i(u).e("btn"),i(u).e("actions")])},[E("div",{class:R(i(u).e("actions__inner"))},[oe(se.$slots,"toolbar",{actions:te,prev:G,next:ee,reset:K,activeIndex:y.value,setActiveItem:j},()=>[Q(i(ze),{onClick:Y[1]||(Y[1]=X=>te("zoomOut"))},{default:ae(()=>[Q(i(Wy))]),_:1}),Q(i(ze),{onClick:Y[2]||(Y[2]=X=>te("zoomIn"))},{default:ae(()=>[Q(i(Th))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(ze),{onClick:K},{default:ae(()=>[(_(),ie(ut(b.value.icon)))]),_:1}),E("i",{class:R(i(u).e("actions__divider"))},null,2),Q(i(ze),{onClick:Y[3]||(Y[3]=X=>te("anticlockwise"))},{default:ae(()=>[Q(i(Ly))]),_:1}),Q(i(ze),{onClick:Y[4]||(Y[4]=X=>te("clockwise"))},{default:ae(()=>[Q(i(Vy))]),_:1})])],2)],2),re(" CANVAS "),E("div",{class:R(i(u).e("canvas"))},[v.value&&se.$slots["viewer-error"]?oe(se.$slots,"viewer-error",{key:0,activeIndex:y.value,src:M.value}):(_(),$("img",{ref_key:"imgRef",ref:f,key:M.value,src:M.value,style:We(I.value),class:R(i(u).e("img")),crossorigin:e.crossorigin,onLoad:F,onError:N,onMousedown:P,onTouchstart:B},null,46,cZ))],2),oe(se.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}}),fZ=dZ;const Dw=rt(fZ),pZ=["src","loading","crossorigin"],hZ={key:0};var vZ=D({name:"ElImage",inheritAttrs:!1,__name:"image",props:rZ,emits:sZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("image"),s=_l(),u=x(()=>Ns(Object.entries(s).filter(([N])=>/^(data-|on[A-Z])/i.test(N)||["id","style"].includes(N)))),c=uf({excludeListeners:!0,excludeKeys:x(()=>Object.keys(u.value))}),d=V(),f=V(!1),h=V(!0),g=V(!1),p=V(),v=V(),m=Rt&&"loading"in HTMLImageElement.prototype;let y;const b=x(()=>[r.e("inner"),C.value&&r.e("preview"),h.value&&r.is("loading")]),w=x(()=>{const{fit:N}=a;return Rt&&N?{objectFit:N}:{}}),C=x(()=>{const{previewSrcList:N}=a;return Ve(N)&&N.length>0}),S=x(()=>{const{previewSrcList:N,initialIndex:P}=a;let B=P;return P>N.length-1&&(B=0),B}),k=x(()=>a.loading==="eager"?!1:!m&&a.loading==="lazy"||a.lazy),T=()=>{Rt&&(h.value=!0,f.value=!1,d.value=a.src)};function M(N){h.value=!1,f.value=!1,o("load",N)}function A(N){h.value=!1,f.value=!0,o("error",N)}function O(N){N&&(T(),z())}const I=P6(O,200,!0);async function L(){if(!Rt)return;await Ie();const{scrollContainer:N}=a;if(_a(N))v.value=N;else if(Ue(N)&&N!=="")v.value=document.querySelector(N)??void 0;else if(p.value){const B=rh(p.value);v.value=Ou(B)?void 0:B}const{stop:P}=WS(p,([B])=>{I(B.isIntersecting)},{root:v});y=P}function z(){!Rt||!I||(y==null||y(),v.value=void 0,y=void 0)}function q(){C.value&&(g.value=!0,o("show"))}function U(){g.value=!1,o("close")}function F(N){o("switch",N)}return fe(()=>a.src,()=>{k.value?(h.value=!0,f.value=!1,z(),L()):T()}),mt(()=>{k.value?L():T()}),t({showPreview:q}),(N,P)=>(_(),$("div",pt({ref_key:"container",ref:p},u.value,{class:[i(r).b(),N.$attrs.class]}),[f.value?oe(N.$slots,"error",{key:0},()=>[E("div",{class:R(i(r).e("error"))},_e(i(l)("el.image.error")),3)]):(_(),$(He,{key:1},[d.value!==void 0?(_(),$("img",pt({key:0},i(c),{src:d.value,loading:e.loading,style:w.value,class:b.value,crossorigin:e.crossorigin,onClick:q,onLoad:M,onError:A}),null,16,pZ)):re("v-if",!0),h.value?(_(),$("div",{key:1,class:R(i(r).e("wrapper"))},[oe(N.$slots,"placeholder",{},()=>[E("div",{class:R(i(r).e("placeholder"))},null,2)])],2)):re("v-if",!0)],64)),C.value?(_(),$(He,{key:2},[g.value?(_(),ie(i(Dw),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:U,onSwitch:F},ga({toolbar:ae(B=>[oe(N.$slots,"toolbar",il(ul(B)))]),default:ae(()=>[N.$slots.viewer?(_(),$("div",hZ,[oe(N.$slots,"viewer")])):re("v-if",!0)]),_:2},[N.$slots.progress?{name:"progress",fn:ae(B=>[oe(N.$slots,"progress",il(ul(B)))]),key:"0"}:void 0,N.$slots["viewer-error"]?{name:"viewer-error",fn:ae(B=>[oe(N.$slots,"viewer-error",il(ul(B)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):re("v-if",!0)],64)):re("v-if",!0)],16))}}),mZ=vZ;const gZ=rt(mZ),yZ=Ce({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:On,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:J([String,Number,null]),validator:e=>e===null||De(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...ia(["ariaLabel"]),inputmode:{type:J(String),default:void 0},align:{type:J(String),default:"center"},disabledScientific:Boolean}),bZ={[yt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Sn]:e=>De(e)||Cn(e),[at]:e=>De(e)||Cn(e)},wZ=["aria-label"],CZ=["aria-label"];var _Z=D({name:"ElInputNumber",__name:"input-number",props:yZ,emits:bZ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("input-number"),s=V(),u=Nt({currentValue:a.modelValue,userInput:null}),{formItem:c}=Kn(),d=x(()=>De(a.modelValue)&&a.modelValue<=a.min),f=x(()=>De(a.modelValue)&&a.modelValue>=a.max),h=x(()=>{const N=b(a.step);return kt(a.precision)?Math.max(b(a.modelValue),N):(N>a.precision&&ft("InputNumber","precision should not be less than the decimal places of step"),a.precision)}),g=x(()=>a.controls&&a.controlsPosition==="right"),p=En(),v=dn(),m=x(()=>{if(u.userInput!==null)return u.userInput;let N=u.currentValue;if(Cn(N))return"";if(De(N)){if(Number.isNaN(N))return"";kt(a.precision)||(N=N.toFixed(a.precision))}return N}),y=(N,P)=>{if(kt(P)&&(P=h.value),P===0)return Math.round(N);let B=String(N);const W=B.indexOf(".");if(W===-1||!B.replace(".","").split("")[W+P])return N;const K=B.length;return B.charAt(K-1)==="5"&&(B=`${B.slice(0,Math.max(0,K-1))}6`),Number.parseFloat(Number(B).toFixed(P))},b=N=>{if(Cn(N))return 0;const P=N.toString(),B=P.indexOf(".");let W=0;return B!==-1&&(W=P.length-B-1),W},w=(N,P=1)=>De(N)?N>=Number.MAX_SAFE_INTEGER&&P===1?(ft("InputNumber","The value has reached the maximum safe integer limit."),N):N<=Number.MIN_SAFE_INTEGER&&P===-1?(ft("InputNumber","The value has reached the minimum safe integer limit."),N):y(N+a.step*P):u.currentValue,C=N=>{const P=Kt(N),B=E8(N);if(a.disabledScientific&&["e","E"].includes(B)){N.preventDefault();return}switch(P){case we.up:N.preventDefault(),S();break;case we.down:N.preventDefault(),k();break}},S=()=>{a.readonly||v.value||f.value||(M(w(Number(m.value)||0)),o(Sn,u.currentValue),U())},k=()=>{a.readonly||v.value||d.value||(M(w(Number(m.value)||0,-1)),o(Sn,u.currentValue),U())},T=(N,P)=>{const{max:B,min:W,step:K,precision:j,stepStrictly:G,valueOnClear:ee}=a;BB||teB?B:W,P&&o(at,te)),te},M=(N,P=!0)=>{var K;const B=u.currentValue,W=T(N);if(!P){o(at,W);return}u.userInput=null,!(B===W&&N)&&(o(at,W),B!==W&&o(yt,W,B),a.validateEvent&&((K=c==null?void 0:c.validate)==null||K.call(c,"change").catch(j=>ft(j))),u.currentValue=W)},A=N=>{u.userInput=N;const P=N===""?null:Number(N);o(Sn,P),M(P,!1)},O=N=>{const P=N!==""?Number(N):"";(De(P)&&!Number.isNaN(P)||N==="")&&M(P),U(),u.userInput=null},I=()=>{var N,P;(P=(N=s.value)==null?void 0:N.focus)==null||P.call(N)},L=()=>{var N,P;(P=(N=s.value)==null?void 0:N.blur)==null||P.call(N)},z=N=>{o("focus",N)},q=N=>{var P,B;u.userInput=null,u.currentValue===null&&((P=s.value)!=null&&P.input)&&(s.value.input.value=""),o("blur",N),a.validateEvent&&((B=c==null?void 0:c.validate)==null||B.call(c,"blur").catch(W=>ft(W)))},U=()=>{u.currentValue!==a.modelValue&&(u.currentValue=a.modelValue)},F=N=>{document.activeElement===N.target&&N.preventDefault()};return fe(()=>a.modelValue,(N,P)=>{const B=T(N,!0);u.userInput===null&&B!==P&&(u.currentValue=B)},{immediate:!0}),fe(()=>a.precision,()=>{u.currentValue=T(a.modelValue)}),mt(()=>{var K;const{min:N,max:P,modelValue:B}=a,W=(K=s.value)==null?void 0:K.input;if(W.setAttribute("role","spinbutton"),Number.isFinite(P)?W.setAttribute("aria-valuemax",String(P)):W.removeAttribute("aria-valuemax"),Number.isFinite(N)?W.setAttribute("aria-valuemin",String(N)):W.removeAttribute("aria-valuemin"),W.setAttribute("aria-valuenow",u.currentValue||u.currentValue===0?String(u.currentValue):""),W.setAttribute("aria-disabled",String(v.value)),!De(B)&&B!=null){let j=Number(B);Number.isNaN(j)&&(j=null),o(at,j)}W.addEventListener("wheel",F,{passive:!1})}),ho(()=>{var N,P;(P=(N=s.value)==null?void 0:N.input)==null||P.setAttribute("aria-valuenow",`${u.currentValue??""}`)}),t({focus:I,blur:L}),(N,P)=>(_(),$("div",{class:R([i(r).b(),i(r).m(i(p)),i(r).is("disabled",i(v)),i(r).is("without-controls",!e.controls),i(r).is("controls-right",g.value),i(r).is(e.align,!!e.align)]),onDragstart:P[0]||(P[0]=Xe(()=>{},["prevent"]))},[e.controls?dt((_(),$("span",{key:0,role:"button","aria-label":i(l)("el.inputNumber.decrease"),class:R([i(r).e("decrease"),i(r).is("disabled",d.value)]),onKeydown:rn(k,["enter"])},[oe(N.$slots,"decrease-icon",{},()=>[Q(i(ze),null,{default:ae(()=>[g.value?(_(),ie(i(bo),{key:0})):(_(),ie(i(Ry),{key:1}))]),_:1})])],42,wZ)),[[i(ud),k]]):re("v-if",!0),e.controls?dt((_(),$("span",{key:1,role:"button","aria-label":i(l)("el.inputNumber.increase"),class:R([i(r).e("increase"),i(r).is("disabled",f.value)]),onKeydown:rn(S,["enter"])},[oe(N.$slots,"increase-icon",{},()=>[Q(i(ze),null,{default:ae(()=>[g.value?(_(),ie(i(Du),{key:0})):(_(),ie(i(kh),{key:1}))]),_:1})])],42,CZ)),[[i(ud),S]]):re("v-if",!0),Q(i(jn),{id:e.id,ref_key:"input",ref:s,type:"number",step:e.step,"model-value":m.value,placeholder:e.placeholder,readonly:e.readonly,disabled:i(v),size:i(p),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:C,onBlur:q,onFocus:z,onInput:A,onChange:O},ga({_:2},[N.$slots.prefix?{name:"prefix",fn:ae(()=>[oe(N.$slots,"prefix")]),key:"0"}:void 0,N.$slots.suffix?{name:"suffix",fn:ae(()=>[oe(N.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}}),SZ=_Z;const Hw=rt(SZ),xZ=Ce({modelValue:{type:J(Array)},max:Number,tagType:{...wl.type,default:"info"},tagEffect:wl.effect,effect:{type:J(String),default:"light"},trigger:{type:J(String),default:we.enter},draggable:Boolean,delimiter:{type:[String,RegExp],default:""},size:On,clearable:Boolean,clearIcon:{type:Ft,default:wo},disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},readonly:Boolean,autofocus:Boolean,id:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},placeholder:String,autocomplete:{type:J(String),default:"off"},saveOnBlur:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},ariaLabel:String}),kZ={[at]:e=>Ve(e)||kt(e),[yt]:e=>Ve(e)||kt(e),[Sn]:e=>Ue(e),"add-tag":e=>Ue(e)||Ve(e),"remove-tag":(e,t)=>Ue(e)&&De(t),"drag-tag":(e,t,n)=>De(e)&&De(t)&&Ue(n),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0};function EZ({wrapperRef:e,handleDragged:t,afterDragged:n}){const a=ve("input-tag"),o=qt(),l=V(!1);let r,s,u,c;function d(p){return`.${a.e("inner")} .${a.namespace.value}-tag:nth-child(${p+1})`}function f(p,v){r=v,s=e.value.querySelector(d(v)),s&&(s.style.opacity="0.5"),p.dataTransfer.effectAllowed="move"}function h(p,v){if(u=v,p.preventDefault(),p.dataTransfer.dropEffect="move",kt(r)||r===v){l.value=!1;return}const m=e.value.querySelector(d(v)).getBoundingClientRect(),y=r+1!==v,b=r-1!==v,w=p.clientX-m.left,C=y?b?.5:1:-1,S=b?y?.5:0:1;w<=m.width*C?c="before":w>m.width*S?c="after":c=void 0;const k=e.value.querySelector(`.${a.e("inner")}`),T=k.getBoundingClientRect(),M=Number.parseFloat(ol(k,"gap"))/2,A=m.top-T.top;let O=-9999;if(c==="before")O=Math.max(m.left-T.left-M,Math.floor(-M/2));else if(c==="after"){const I=m.right-T.left;O=I+(T.width===I?Math.floor(M/2):M)}z8(o.value,{top:`${A}px`,left:`${O}px`}),l.value=!!c}function g(p){p.preventDefault(),s&&(s.style.opacity=""),c&&!kt(r)&&!kt(u)&&r!==u&&t(r,u,c),l.value=!1,r=void 0,s=null,u=void 0,c=void 0,n==null||n()}return{dropIndicatorRef:o,showDropIndicator:l,handleDragStart:f,handleDragOver:h,handleDragEnd:g}}function TZ(){const e=V(!1);return{hovering:e,handleMouseEnter:()=>{e.value=!0},handleMouseLeave:()=>{e.value=!1}}}function MZ({props:e,emit:t,formItem:n}){const a=dn(),o=En(),l=qt(),r=V(),s=V(),u=x(()=>["small"].includes(o.value)?"small":"default"),c=x(()=>{var F;return(F=e.modelValue)!=null&&F.length?void 0:e.placeholder}),d=x(()=>!(e.readonly||a.value)),f=x(()=>{var F;return kt(e.max)?!1:(((F=e.modelValue)==null?void 0:F.length)??0)>=e.max}),h=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(0,e.maxCollapseTags):e.modelValue}),g=x(()=>{var F;return e.collapseTags?(F=e.modelValue)==null?void 0:F.slice(e.maxCollapseTags):[]}),p=F=>{const N=[...e.modelValue??[],...In(F)];t(at,N),t(yt,N),t("add-tag",F),r.value=void 0},v=F=>{var B;const N=F.split(e.delimiter),P=N.length>1?N.map(W=>W.trim()).filter(Boolean):[];if(e.max){const W=e.max-(((B=e.modelValue)==null?void 0:B.length)??0);P.splice(W)}return P.length===1?P[0]:P},m=F=>{var G;const N=(G=F.clipboardData)==null?void 0:G.getData("text");if(e.readonly||f.value||!e.delimiter||!N)return;const{selectionStart:P=0,selectionEnd:B=0,value:W}=F.target,K=W.slice(0,P)+N+W.slice(B),j=v(K);j.length&&(p(j),t(Sn,K),F.preventDefault())},y=F=>{if(f.value){r.value=void 0;return}if(!L.value){if(e.delimiter&&r.value){const N=v(r.value);N.length&&p(N)}t(Sn,F.target.value)}},b=F=>{var N;if(!L.value)switch(Kt(F)){case e.trigger:F.preventDefault(),F.stopPropagation(),C();break;case we.numpadEnter:e.trigger===we.enter&&(F.preventDefault(),F.stopPropagation(),C());break;case we.backspace:!r.value&&((N=e.modelValue)!=null&&N.length)&&(F.preventDefault(),F.stopPropagation(),S(e.modelValue.length-1));break}},w=F=>{if(!(L.value||!L6()))switch(Kt(F)){case we.space:e.trigger===we.space&&(F.preventDefault(),F.stopPropagation(),C());break}},C=()=>{var N;const F=(N=r.value)==null?void 0:N.trim();!F||f.value||p(F)},S=F=>{const N=(e.modelValue??[]).slice(),[P]=N.splice(F,1);t(at,N),t(yt,N),t("remove-tag",P,F)},k=()=>{r.value=void 0,t(at,void 0),t(yt,void 0),t("clear")},T=(F,N,P)=>{const B=(e.modelValue??[]).slice(),[W]=B.splice(F,1),K=N>F&&P==="before"?-1:N{var F;(F=l.value)==null||F.focus()},A=()=>{var F;(F=l.value)==null||F.blur()},{wrapperRef:O,isFocused:I}=El(l,{disabled:a,beforeBlur(F){var N;return(N=s.value)==null?void 0:N.isFocusInsideContent(F)},afterBlur(){var F;e.saveOnBlur?C():r.value=void 0,e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,"blur").catch(N=>ft(N)))}}),{isComposing:L,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U}=Bu({afterComposition:y});return fe(()=>e.modelValue,()=>{var F;e.validateEvent&&((F=n==null?void 0:n.validate)==null||F.call(n,yt).catch(N=>ft(N)))}),{inputRef:l,wrapperRef:O,tagTooltipRef:s,isFocused:I,isComposing:L,inputValue:r,size:o,tagSize:u,placeholder:c,closable:d,disabled:a,inputLimit:f,showTagList:h,collapseTagList:g,handleDragged:T,handlePaste:m,handleInput:y,handleKeydown:b,handleKeyup:w,handleAddTag:C,handleRemoveTag:S,handleClear:k,handleCompositionStart:z,handleCompositionUpdate:q,handleCompositionEnd:U,focus:M,blur:A}}function OZ({props:e,isFocused:t,hovering:n,disabled:a,inputValue:o,size:l,validateState:r,validateIcon:s,needStatusIcon:u}){const c=_l(),d=yn(),f=ve("input-tag"),h=ve("input"),g=V(),p=V(),v=x(()=>[f.b(),f.is("focused",t.value),f.is("hovering",n.value),f.is("disabled",a.value),f.m(l.value),f.e("wrapper"),c.class]),m=x(()=>[c.style]),y=x(()=>{var A,O;return[f.e("inner"),f.is("draggable",e.draggable),f.is("left-space",!((A=e.modelValue)!=null&&A.length)&&!d.prefix),f.is("right-space",!((O=e.modelValue)!=null&&O.length)&&!w.value)]}),b=x(()=>{var A;return e.clearable&&!a.value&&!e.readonly&&(((A=e.modelValue)==null?void 0:A.length)||o.value)&&(t.value||n.value)}),w=x(()=>d.suffix||b.value||r.value&&s.value&&u.value),C=Nt({innerWidth:0,collapseItemWidth:0}),S=()=>{if(!p.value)return 0;const A=window.getComputedStyle(p.value);return Number.parseFloat(A.gap||"6px")},k=()=>{C.innerWidth=Number.parseFloat(window.getComputedStyle(p.value).width)},T=()=>{C.collapseItemWidth=g.value.getBoundingClientRect().width},M=x(()=>{if(!e.collapseTags)return{};const A=S(),O=A+Xd,I=g.value&&e.maxCollapseTags===1?C.innerWidth-C.collapseItemWidth-A-O:C.innerWidth-O;return{maxWidth:`${Math.max(I,0)}px`}});return en(p,k),en(g,T),{ns:f,nsInput:h,containerKls:v,containerStyle:m,innerKls:y,showClear:b,showSuffix:w,tagStyle:M,collapseItemRef:g,innerRef:p}}const $Z=["id","minlength","maxlength","disabled","readonly","autocomplete","tabindex","placeholder","autofocus","ariaLabel"],AZ=["textContent"];var RZ=D({name:"ElInputTag",inheritAttrs:!1,__name:"input-tag",props:xZ,emits:kZ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=uf(),r=yn(),{form:s,formItem:u}=Kn(),{inputId:c}=za(a,{formItemContext:u}),d=x(()=>(s==null?void 0:s.statusIcon)??!1),f=x(()=>(u==null?void 0:u.validateState)||""),h=x(()=>f.value&&bf[f.value]),{inputRef:g,wrapperRef:p,tagTooltipRef:v,isFocused:m,inputValue:y,size:b,tagSize:w,placeholder:C,closable:S,disabled:k,showTagList:T,collapseTagList:M,handleDragged:A,handlePaste:O,handleInput:I,handleKeydown:L,handleKeyup:z,handleRemoveTag:q,handleClear:U,handleCompositionStart:F,handleCompositionUpdate:N,handleCompositionEnd:P,focus:B,blur:W}=MZ({props:a,emit:o,formItem:u}),{hovering:K,handleMouseEnter:j,handleMouseLeave:G}=TZ(),{calculatorRef:ee,inputStyle:te}=ah(),{dropIndicatorRef:ue,showDropIndicator:ne,handleDragStart:de,handleDragOver:se,handleDragEnd:Y}=EZ({wrapperRef:p,handleDragged:A,afterDragged:B}),{ns:X,nsInput:H,containerKls:Z,containerStyle:le,innerKls:ce,showClear:ge,showSuffix:me,tagStyle:$e,collapseItemRef:Re,innerRef:Ae}=OZ({props:a,hovering:K,isFocused:m,inputValue:y,disabled:k,size:b,validateState:f,validateIcon:h,needStatusIcon:d});return t({focus:B,blur:W}),(ye,ke)=>(_(),$("div",{ref_key:"wrapperRef",ref:p,class:R(i(Z)),style:We(i(le)),onMouseenter:ke[9]||(ke[9]=(...be)=>i(j)&&i(j)(...be)),onMouseleave:ke[10]||(ke[10]=(...be)=>i(G)&&i(G)(...be))},[i(r).prefix?(_(),$("div",{key:0,class:R(i(X).e("prefix"))},[oe(ye.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref_key:"innerRef",ref:Ae,class:R(i(ce))},[(_(!0),$(He,null,Ct(i(T),(be,Pe)=>(_(),ie(i(dl),{key:Pe,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,draggable:i(S)&&e.draggable,style:We(i($e)),"disable-transitions":"",onClose:Be=>i(q)(Pe),onDragstart:Be=>i(de)(Be,Pe),onDragover:Be=>i(se)(Be,Pe),onDragend:i(Y),onDrop:ke[0]||(ke[0]=Xe(()=>{},["stop"]))},{default:ae(()=>[oe(ye.$slots,"tag",{value:be,index:Pe},()=>[_t(_e(be),1)])]),_:2},1032,["size","closable","type","effect","draggable","style","onClose","onDragstart","onDragover","onDragend"]))),128)),e.collapseTags&&e.modelValue&&e.modelValue.length>e.maxCollapseTags?(_(),ie(i(Fn),{key:0,ref_key:"tagTooltipRef",ref:v,disabled:!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom"},{default:ae(()=>[E("div",{ref_key:"collapseItemRef",ref:Re,class:R(i(X).e("collapse-tag"))},[Q(i(dl),{closable:!1,size:i(w),type:e.tagType,effect:e.tagEffect,"disable-transitions":""},{default:ae(()=>[_t(" + "+_e(e.modelValue.length-e.maxCollapseTags),1)]),_:1},8,["size","type","effect"])],2)]),content:ae(()=>[E("div",{class:R(i(X).e("input-tag-list"))},[(_(!0),$(He,null,Ct(i(M),(be,Pe)=>(_(),ie(i(dl),{key:Pe,size:i(w),closable:i(S),type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:Be=>i(q)(Pe+e.maxCollapseTags)},{default:ae(()=>[oe(ye.$slots,"tag",{value:be,index:Pe+e.maxCollapseTags},()=>[_t(_e(be),1)])]),_:2},1032,["size","closable","type","effect","onClose"]))),128))],2)]),_:3},8,["disabled","effect"])):re("v-if",!0),E("div",{class:R(i(X).e("input-wrapper"))},[dt(E("input",pt({id:i(c),ref_key:"inputRef",ref:g,"onUpdate:modelValue":ke[1]||(ke[1]=be=>Gt(y)?y.value=be:null)},i(l),{type:"text",minlength:e.minlength,maxlength:e.maxlength,disabled:i(k),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,placeholder:i(C),autofocus:e.autofocus,ariaLabel:e.ariaLabel,class:i(X).e("input"),style:i(te),onCompositionstart:ke[2]||(ke[2]=(...be)=>i(F)&&i(F)(...be)),onCompositionupdate:ke[3]||(ke[3]=(...be)=>i(N)&&i(N)(...be)),onCompositionend:ke[4]||(ke[4]=(...be)=>i(P)&&i(P)(...be)),onPaste:ke[5]||(ke[5]=(...be)=>i(O)&&i(O)(...be)),onInput:ke[6]||(ke[6]=(...be)=>i(I)&&i(I)(...be)),onKeydown:ke[7]||(ke[7]=(...be)=>i(L)&&i(L)(...be)),onKeyup:ke[8]||(ke[8]=(...be)=>i(z)&&i(z)(...be))}),null,16,$Z),[[_6,i(y)]]),E("span",{ref_key:"calculatorRef",ref:ee,"aria-hidden":"true",class:R(i(X).e("input-calculator")),textContent:_e(i(y))},null,10,AZ)],2),dt(E("div",{ref_key:"dropIndicatorRef",ref:ue,class:R(i(X).e("drop-indicator"))},null,2),[[At,i(ne)]])],2),i(me)?(_(),$("div",{key:1,class:R(i(X).e("suffix"))},[oe(ye.$slots,"suffix"),i(ge)?(_(),ie(i(ze),{key:0,class:R([i(X).e("icon"),i(X).e("clear")]),onMousedown:Xe(i(Yt),["prevent"]),onClick:i(U)},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onMousedown","onClick"])):re("v-if",!0),f.value&&h.value&&d.value?(_(),ie(i(ze),{key:1,class:R([i(H).e("icon"),i(H).e("validateIcon"),i(H).is("loading",f.value==="validating")])},{default:ae(()=>[(_(),ie(ut(h.value)))]),_:1},8,["class"])):re("v-if",!0)],2)):re("v-if",!0)],38))}}),NZ=RZ;const PZ=rt(NZ),IZ=Ce({type:{type:String,values:["primary","success","warning","info","danger","default"],default:void 0},underline:{type:[Boolean,String],values:[!0,!1,"always","never","hover"],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:Ft}}),LZ={click:e=>e instanceof MouseEvent},VZ=["href","target"];var BZ=D({name:"ElLink",__name:"link",props:IZ,emits:LZ,setup(e,{emit:t}){const n=e,a=t,o=Tl("link");Lo({scope:"el-link",from:"The underline option (boolean)",replacement:"'always' | 'hover' | 'never'",version:"3.0.0",ref:"https://element-plus.org/en-US/component/link.html#underline"},x(()=>Dt(n.underline)));const l=ve("link"),r=x(()=>{var c;return[l.b(),l.m(n.type??((c=o.value)==null?void 0:c.type)??"default"),l.is("disabled",n.disabled),l.is("underline",s.value==="always"),l.is("hover-underline",s.value==="hover"&&!n.disabled)]}),s=x(()=>{var c;return Dt(n.underline)?n.underline?"hover":"never":n.underline??((c=o.value)==null?void 0:c.underline)??"hover"});function u(c){n.disabled||a("click",c)}return(c,d)=>(_(),$("a",{class:R(r.value),href:e.disabled||!e.href?void 0:e.href,target:e.disabled||!e.href?void 0:e.target,onClick:u},[e.icon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1})):re("v-if",!0),c.$slots.default?(_(),$("span",{key:1,class:R(i(l).e("inner"))},[oe(c.$slots,"default")],2)):re("v-if",!0),c.$slots.icon?oe(c.$slots,"icon",{key:2}):re("v-if",!0)],10,VZ))}}),zZ=BZ;const DZ=rt(zZ),tv="rootMenu",_d="subMenu:";function Fw(e,t){const n=x(()=>{let a=e.parent;const o=[t.value];for(;a.type.name!=="ElMenu";)a.props.index&&o.unshift(a.props.index),a=a.parent;return o});return{parentMenu:x(()=>{let a=e.parent;for(;a&&!["ElMenu","ElSubMenu"].includes(a.type.name);)a=a.parent;return a}),indexPath:n}}function HZ(e){return x(()=>{const t=e.backgroundColor;return t?new mn(t).shade(20).toString():""})}const Kw=(e,t)=>{const n=ve("menu");return x(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":HZ(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},FZ=Ce({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Ft},expandOpenIcon:{type:Ft},collapseCloseIcon:{type:Ft},collapseOpenIcon:{type:Ft}}),_0="ElSubMenu";var nv=D({name:_0,props:FZ,setup(e,{slots:t,expose:n}){const a=ht(),{indexPath:o,parentMenu:l}=Fw(a,x(()=>e.index)),r=ve("menu"),s=ve("sub-menu"),u=Ne(tv);u||on(_0,"can not inject root menu");const c=Ne(`${_d}${l.value.uid}`);c||on(_0,"can not inject sub menu");const d=V({}),f=V({});let h;const g=V(!1),p=V(),v=V(),m=x(()=>c.level===0),y=x(()=>M.value==="horizontal"&&m.value?"bottom-start":"right-start"),b=x(()=>M.value==="horizontal"&&m.value||M.value==="vertical"&&!u.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?k.value?e.expandOpenIcon:e.expandCloseIcon:bo:e.collapseCloseIcon&&e.collapseOpenIcon?k.value?e.collapseOpenIcon:e.collapseCloseIcon:Jn),w=x(()=>{const j=e.teleported;return kt(j)?m.value:j}),C=x(()=>u.props.collapse?`${r.namespace.value}-zoom-in-left`:`${r.namespace.value}-zoom-in-top`),S=x(()=>M.value==="horizontal"&&m.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),k=x(()=>u.openedMenus.includes(e.index)),T=x(()=>[...Object.values(d.value),...Object.values(f.value)].some(({active:j})=>j)),M=x(()=>u.props.mode),A=x(()=>u.props.persistent),O=Nt({index:e.index,indexPath:o,active:T}),I=Kw(u.props,c.level+1),L=x(()=>e.popperOffset??u.props.popperOffset),z=x(()=>e.popperClass??u.props.popperClass),q=x(()=>e.popperStyle??u.props.popperStyle),U=x(()=>e.showTimeout??u.props.showTimeout),F=x(()=>e.hideTimeout??u.props.hideTimeout),N=()=>{var j,G,ee;return(ee=(G=(j=v.value)==null?void 0:j.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:ee.destroy()},P=j=>{j||N()},B=()=>{u.props.menuTrigger==="hover"&&u.props.mode==="horizontal"||u.props.collapse&&u.props.mode==="vertical"||e.disabled||u.handleSubMenuClick({index:e.index,indexPath:o.value,active:T.value})},W=(j,G=U.value)=>{var ee;if(j.type!=="focus"){if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,h==null||h(),{stop:h}=Os(()=>{u.openMenu(e.index,o.value)},G),w.value&&((ee=l.value.vnode.el)==null||ee.dispatchEvent(new MouseEvent("mouseenter"))),j.type==="mouseenter"&&j.target&&Ie(()=>{$u(j.target,{preventScroll:!0})})}},K=(j=!1)=>{var G;if(u.props.menuTrigger==="click"&&u.props.mode==="horizontal"||!u.props.collapse&&u.props.mode==="vertical"){c.mouseInChild.value=!1;return}h==null||h(),c.mouseInChild.value=!1,{stop:h}=Os(()=>!g.value&&u.closeMenu(e.index,o.value),F.value),w.value&&j&&((G=c.handleMouseleave)==null||G.call(c,!0))};fe(()=>u.props.collapse,j=>P(!!j));{const j=ee=>{f.value[ee.index]=ee},G=ee=>{delete f.value[ee.index]};bt(`${_d}${a.uid}`,{addSubMenu:j,removeSubMenu:G,handleMouseleave:K,mouseInChild:g,level:c.level+1})}return n({opened:k}),mt(()=>{u.addSubMenu(O),c.addSubMenu(O)}),Lt(()=>{c.removeSubMenu(O),u.removeSubMenu(O)}),()=>{var ee;const j=[(ee=t.title)==null?void 0:ee.call(t),qe(ze,{class:s.e("icon-arrow"),style:{transform:k.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&u.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ue(b.value)?qe(a.appContext.components[b.value]):qe(b.value)})],G=u.isMenuPopup?qe(Fn,{ref:v,visible:k.value,effect:"light",pure:!0,offset:L.value,showArrow:!1,persistent:A.value,popperClass:z.value,popperStyle:q.value,placement:y.value,teleported:w.value,fallbackPlacements:S.value,transition:C.value,gpuAcceleration:!1},{content:()=>{var te;return qe("div",{class:[r.m(M.value),r.m("popup-container"),z.value],onMouseenter:ue=>W(ue,100),onMouseleave:()=>K(!0),onFocus:ue=>W(ue,100)},[qe("ul",{class:[r.b(),r.m("popup"),r.m(`popup-${y.value}`)],style:I.value},[(te=t.default)==null?void 0:te.call(t)])])},default:()=>qe("div",{class:s.e("title"),onClick:B},j)}):qe(He,{},[qe("div",{class:s.e("title"),ref:p,onClick:B},j),qe(Sf,{},{default:()=>{var te;return dt(qe("ul",{role:"menu",class:[r.b(),r.m("inline")],style:I.value},[(te=t.default)==null?void 0:te.call(t)]),[[At,k.value]])}})]);return qe("li",{class:[s.b(),s.is("active",T.value),s.is("opened",k.value),s.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:k.value,onMouseenter:W,onMouseleave:()=>K(),onFocus:W},[G])}}}),KZ=class{constructor(e,t){this.parent=e,this.domNode=t,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(e){e===this.subMenuItems.length?e=0:e<0&&(e=this.subMenuItems.length-1),this.subMenuItems[e].focus(),this.subIndex=e}addListeners(){const e=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,t=>{t.addEventListener("keydown",n=>{const a=Kt(n);let o=!1;switch(a){case we.down:this.gotoSubIndex(this.subIndex+1),o=!0;break;case we.up:this.gotoSubIndex(this.subIndex-1),o=!0;break;case we.tab:$c(e,"mouseleave");break;case we.enter:case we.numpadEnter:case we.space:o=!0,n.currentTarget.click();break}return o&&(n.preventDefault(),n.stopPropagation()),!1})})}},WZ=class{constructor(e,t){this.domNode=e,this.submenu=null,this.submenu=null,this.init(t)}init(e){this.domNode.setAttribute("tabindex","0");const t=this.domNode.querySelector(`.${e}-menu`);t&&(this.submenu=new KZ(this,t)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",e=>{const t=Kt(e);let n=!1;switch(t){case we.down:$c(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break;case we.up:$c(e.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break;case we.tab:$c(e.currentTarget,"mouseleave");break;case we.enter:case we.numpadEnter:case we.space:n=!0,e.currentTarget.click();break}n&&e.preventDefault()})}},jZ=class{constructor(e,t){this.domNode=e,this.init(t)}init(e){const t=this.domNode.childNodes;Array.from(t).forEach(n=>{n.nodeType===1&&new WZ(n,e)})}},qZ=D({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=ve("menu"),n={onBeforeEnter:a=>a.style.opacity="0.2",onEnter(a,o){Ka(a,`${t.namespace.value}-opacity-transition`),a.style.opacity="1",o()},onAfterEnter(a){sa(a,`${t.namespace.value}-opacity-transition`),a.style.opacity=""},onBeforeLeave(a){a.dataset||(a.dataset={}),Vo(a,t.m("collapse"))?(sa(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),Ka(a,t.m("collapse"))):(Ka(a,t.m("collapse")),a.dataset.oldOverflow=a.style.overflow,a.dataset.scrollWidth=a.clientWidth.toString(),sa(a,t.m("collapse"))),a.style.width=`${a.scrollWidth}px`,a.style.overflow="hidden"},onLeave(a){Ka(a,"horizontal-collapse-transition"),a.style.width=`${a.dataset.scrollWidth}px`}};return(a,o)=>(_(),ie(qn,pt({mode:"out-in"},n),{default:ae(()=>[oe(a.$slots,"default")]),_:3},16))}}),UZ=qZ;const YZ=Ce({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:J(Array),default:()=>un([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Ft,default:()=>Ny},popperEffect:{type:J(String),default:"dark"},popperClass:String,popperStyle:{type:J([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),S0=e=>Ve(e)&&e.every(t=>Ue(t)),GZ={close:(e,t)=>Ue(e)&&S0(t),open:(e,t)=>Ue(e)&&S0(t),select:(e,t,n,a)=>Ue(e)&&S0(t)&&Mt(n)&&(kt(a)||a instanceof Promise)},Ag=64;var XZ=D({name:"ElMenu",props:YZ,emits:GZ,setup(e,{emit:t,slots:n,expose:a}){const o=ht(),l=o.appContext.config.globalProperties.$router,r=V(),s=V(),u=ve("menu"),c=ve("sub-menu");let d=Ag;const f=V(-1),h=V(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),g=V(e.defaultActive),p=V({}),v=V({}),m=x(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),y=()=>{const N=g.value&&p.value[g.value];!N||e.mode==="horizontal"||e.collapse||N.indexPath.forEach(P=>{const B=v.value[P];B&&b(P,B.indexPath)})},b=(N,P)=>{h.value.includes(N)||(e.uniqueOpened&&(h.value=h.value.filter(B=>P.includes(B))),h.value.push(N),t("open",N,P))},w=N=>{const P=h.value.indexOf(N);P!==-1&&h.value.splice(P,1)},C=(N,P)=>{w(N),t("close",N,P)},S=({index:N,indexPath:P})=>{h.value.includes(N)?C(N,P):b(N,P)},k=N=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:P,indexPath:B}=N;if(!(Cn(P)||Cn(B)))if(e.router&&l){const W=N.route||P,K=l.push(W).then(j=>(j||(g.value=P),j));t("select",P,B,{index:P,indexPath:B,route:W},K)}else g.value=P,t("select",P,B,{index:P,indexPath:B})},T=N=>{var B;const P=p.value;g.value=((B=P[N]||g.value&&P[g.value]||P[e.defaultActive])==null?void 0:B.index)??N},M=N=>{const P=getComputedStyle(N),B=Number.parseInt(P.marginLeft,10),W=Number.parseInt(P.marginRight,10);return N.offsetWidth+B+W||0},A=()=>{if(!r.value)return-1;const N=Array.from(r.value.childNodes).filter(ee=>ee.nodeName!=="#comment"&&(ee.nodeName!=="#text"||ee.nodeValue)),P=getComputedStyle(r.value),B=Number.parseInt(P.paddingLeft,10),W=Number.parseInt(P.paddingRight,10),K=r.value.clientWidth-B-W;let j=0,G=0;return N.forEach((ee,te)=>{j+=M(ee),j<=K-d&&(G=te+1)}),G===N.length?-1:G},O=N=>v.value[N].indexPath,I=(N,P=33.34)=>{let B;return()=>{B&&clearTimeout(B),B=setTimeout(()=>{N()},P)}};let L=!0;const z=()=>{const N=Mn(s);if(N&&(d=M(N)||Ag),f.value===A())return;const P=()=>{f.value=-1,Ie(()=>{f.value=A()})};L?P():I(P)(),L=!1};fe(()=>e.defaultActive,N=>{p.value[N]||(g.value=""),T(N)}),fe(()=>e.collapse,N=>{N&&(h.value=[])}),fe(p.value,y);let q;ma(()=>{e.mode==="horizontal"&&e.ellipsis?q=en(r,z).stop:q==null||q()});const U=V(!1);{const N=K=>{v.value[K.index]=K},P=K=>{delete v.value[K.index]};bt(tv,Nt({props:e,openedMenus:h,items:p,subMenus:v,activeIndex:g,isMenuPopup:m,addMenuItem:K=>{p.value[K.index]=K},removeMenuItem:K=>{delete p.value[K.index]},addSubMenu:N,removeSubMenu:P,openMenu:b,closeMenu:C,handleMenuItemClick:k,handleSubMenuClick:S})),bt(`${_d}${o.uid}`,{addSubMenu:N,removeSubMenu:P,mouseInChild:U,level:0})}mt(()=>{e.mode==="horizontal"&&new jZ(o.vnode.el,u.namespace.value)}),a({open:P=>{const{indexPath:B}=v.value[P];B.forEach(W=>b(W,B))},close:w,updateActiveIndex:T,handleResize:z});const F=Kw(e,0);return()=>{var K;let N=((K=n.default)==null?void 0:K.call(n))??[];const P=[];if(e.mode==="horizontal"&&r.value){const j=Ra(N).filter(te=>(te==null?void 0:te.shapeFlag)!==8),G=f.value===-1?j:j.slice(0,f.value),ee=f.value===-1?[]:j.slice(f.value);ee!=null&&ee.length&&e.ellipsis&&(N=G,P.push(qe(nv,{ref:s,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>qe(ze,{class:c.e("icon-more")},{default:()=>qe(e.ellipsisIcon)}),default:()=>ee})))}const B=e.closeOnClickOutside?[[Yl,()=>{h.value.length&&(U.value||(h.value.forEach(j=>t("close",j,O(j))),h.value=[]))}]]:[],W=dt(qe("ul",{key:String(e.collapse),role:"menubar",ref:r,style:F.value,class:{[u.b()]:!0,[u.m(e.mode)]:!0,[u.m("collapse")]:e.collapse}},[...N,...P]),B);return e.collapseTransition&&e.mode==="vertical"?qe(UZ,()=>W):W}}});const JZ=Ce({index:{type:J([String,null]),default:null},route:{type:J([String,Object])},disabled:Boolean}),ZZ={click:e=>Ue(e.index)&&Ve(e.indexPath)},QZ={title:String},wc="ElMenuItem";var eQ=D({name:wc,__name:"menu-item",props:JZ,emits:ZZ,setup(e,{expose:t,emit:n}){const a=e,o=n;Sa(a.index)&&ft(wc,'Missing required prop: "index"');const l=ht(),r=Ne(tv),s=ve("menu"),u=ve("menu-item");r||on(wc,"can not inject root menu");const{parentMenu:c,indexPath:d}=Fw(l,Bt(a,"index")),f=Ne(`${_d}${c.value.uid}`);f||on(wc,"can not inject sub menu");const h=x(()=>a.index===r.activeIndex),g=Nt({index:a.index,indexPath:d,active:h}),p=()=>{a.disabled||(r.handleMenuItemClick({index:a.index,indexPath:d.value,route:a.route}),o("click",g))};return mt(()=>{f.addSubMenu(g),r.addMenuItem(g)}),Lt(()=>{f.removeSubMenu(g),r.removeMenuItem(g)}),t({parentMenu:c,rootMenu:r,active:h,nsMenu:s,nsMenuItem:u,handleClick:p}),(v,m)=>(_(),$("li",{class:R([i(u).b(),i(u).is("active",h.value),i(u).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:p},[i(c).type.name==="ElMenu"&&i(r).props.collapse&&v.$slots.title?(_(),ie(i(Fn),{key:0,effect:i(r).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":i(r).props.popperClass,"popper-style":i(r).props.popperStyle,persistent:i(r).props.persistent,"focus-on-target":""},{content:ae(()=>[oe(v.$slots,"title")]),default:ae(()=>[E("div",{class:R(i(s).be("tooltip","trigger"))},[oe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(_(),$(He,{key:1},[oe(v.$slots,"default"),oe(v.$slots,"title")],64))],2))}}),Ww=eQ,tQ=D({name:"ElMenuItemGroup",__name:"menu-item-group",props:QZ,setup(e){const t=ve("menu-item-group");return(n,a)=>(_(),$("li",{class:R(i(t).b())},[E("div",{class:R(i(t).e("title"))},[n.$slots.title?oe(n.$slots,"title",{key:1}):(_(),$(He,{key:0},[_t(_e(e.title),1)],64))],2),E("ul",null,[oe(n.$slots,"default")])],2))}}),jw=tQ;const nQ=rt(XZ,{MenuItem:Ww,MenuItemGroup:jw,SubMenu:nv}),aQ=ln(Ww),oQ=ln(jw),lQ=ln(nv),rQ=Ce({icon:{type:Ft,default:()=>xy},title:String,content:{type:String,default:""}}),sQ={back:()=>!0},iQ=["aria-label"];var uQ=D({name:"ElPageHeader",__name:"page-header",props:rQ,emits:sQ,setup(e,{emit:t}){const n=t,{t:a}=xt(),o=ve("page-header");function l(){n("back")}return(r,s)=>(_(),$("div",{class:R([i(o).b(),i(o).is("contentful",!!r.$slots.default),{[i(o).m("has-breadcrumb")]:!!r.$slots.breadcrumb,[i(o).m("has-extra")]:!!r.$slots.extra}])},[r.$slots.breadcrumb?(_(),$("div",{key:0,class:R(i(o).e("breadcrumb"))},[oe(r.$slots,"breadcrumb")],2)):re("v-if",!0),E("div",{class:R(i(o).e("header"))},[E("div",{class:R(i(o).e("left"))},[E("div",{class:R(i(o).e("back")),role:"button",tabindex:"0",onClick:l},[e.icon||r.$slots.icon?(_(),$("div",{key:0,"aria-label":e.title||i(a)("el.pageHeader.title"),class:R(i(o).e("icon"))},[oe(r.$slots,"icon",{},()=>[e.icon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1})):re("v-if",!0)])],10,iQ)):re("v-if",!0),E("div",{class:R(i(o).e("title"))},[oe(r.$slots,"title",{},()=>[_t(_e(e.title||i(a)("el.pageHeader.title")),1)])],2)],2),Q(i($w),{direction:"vertical"}),E("div",{class:R(i(o).e("content"))},[oe(r.$slots,"content",{},()=>[_t(_e(e.content),1)])],2)],2),r.$slots.extra?(_(),$("div",{key:0,class:R(i(o).e("extra"))},[oe(r.$slots,"extra")],2)):re("v-if",!0)],2),r.$slots.default?(_(),$("div",{key:1,class:R(i(o).e("main"))},[oe(r.$slots,"default")],2)):re("v-if",!0)],2))}}),cQ=uQ;const dQ=rt(cQ),qw=Symbol("elPaginationKey"),fQ=Ce({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Ft}}),pQ={click:e=>e instanceof MouseEvent},hQ=["disabled","aria-label","aria-disabled"],vQ={key:0};var mQ=D({name:"ElPaginationPrev",__name:"prev",props:fQ,emits:pQ,setup(e){const t=e,{t:n}=xt(),a=x(()=>t.disabled||t.currentPage<=1);return(o,l)=>(_(),$("button",{type:"button",class:"btn-prev",disabled:a.value,"aria-label":o.prevText||i(n)("el.pagination.prev"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.prevText?(_(),$("span",vQ,_e(o.prevText),1)):(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(o.prevIcon)))]),_:1}))],8,hQ))}}),gQ=mQ;const yQ=Ce({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Ft}}),bQ=["disabled","aria-label","aria-disabled"],wQ={key:0};var CQ=D({name:"ElPaginationNext",__name:"next",props:yQ,emits:["click"],setup(e){const t=e,{t:n}=xt(),a=x(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(o,l)=>(_(),$("button",{type:"button",class:"btn-next",disabled:a.value,"aria-label":o.nextText||i(n)("el.pagination.next"),"aria-disabled":a.value,onClick:l[0]||(l[0]=r=>o.$emit("click",r))},[o.nextText?(_(),$("span",wQ,_e(o.nextText),1)):(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(o.nextIcon)))]),_:1}))],8,bQ))}}),_Q=CQ;const av=()=>Ne(qw,{}),SQ=Ce({pageSize:{type:Number,required:!0},pageSizes:{type:J(Array),default:()=>un([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:J([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:vo},appendSizeTo:String});var xQ=D({name:"ElPaginationSizes",__name:"sizes",props:SQ,emits:["page-size-change"],setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),l=ve("pagination"),r=av(),s=V(n.pageSize);fe(()=>n.pageSizes,(d,f)=>{sn(d,f)||Ve(d)&&a("page-size-change",d.includes(n.pageSize)?n.pageSize:n.pageSizes[0])}),fe(()=>n.pageSize,d=>{s.value=d});const u=x(()=>n.pageSizes);function c(d){var f;d!==s.value&&(s.value=d,(f=r.handleSizeChange)==null||f.call(r,Number(d)))}return(d,f)=>(_(),$("span",{class:R(i(l).e("sizes"))},[Q(i(Jl),{"model-value":s.value,disabled:d.disabled,"popper-class":d.popperClass,"popper-style":d.popperStyle,size:d.size,teleported:d.teleported,"validate-event":!1,"append-to":d.appendSizeTo,onChange:c},{default:ae(()=>[(_(!0),$(He,null,Ct(u.value,h=>(_(),ie(i(gd),{key:h,value:h,label:h+i(o)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}}),kQ=xQ;const EQ=Ce({size:{type:String,values:vo}}),TQ=["disabled"];var MQ=D({name:"ElPaginationJumper",__name:"jumper",props:EQ,setup(e){const{t}=xt(),n=ve("pagination"),{pageCount:a,disabled:o,currentPage:l,changeEvent:r}=av(),s=V(),u=x(()=>s.value??(l==null?void 0:l.value));function c(f){s.value=f?+f:""}function d(f){f=Math.trunc(+f),r==null||r(f),s.value=void 0}return(f,h)=>(_(),$("span",{class:R(i(n).e("jump")),disabled:i(o)},[E("span",{class:R([i(n).e("goto")])},_e(i(t)("el.pagination.goto")),3),Q(i(jn),{size:f.size,class:R([i(n).e("editor"),i(n).is("in-pagination")]),min:1,max:i(a),disabled:i(o),"model-value":u.value,"validate-event":!1,"aria-label":i(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:d},null,8,["size","class","max","disabled","model-value","aria-label"]),E("span",{class:R([i(n).e("classifier")])},_e(i(t)("el.pagination.pageClassifier")),3)],10,TQ))}}),OQ=MQ;const $Q=Ce({total:{type:Number,default:1e3}}),AQ=["disabled"];var RQ=D({name:"ElPaginationTotal",__name:"total",props:$Q,setup(e){const{t}=xt(),n=ve("pagination"),{disabled:a}=av();return(o,l)=>(_(),$("span",{class:R(i(n).e("total")),disabled:i(a)},_e(i(t)("el.pagination.total",{total:o.total})),11,AQ))}}),NQ=RQ;const PQ=Ce({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),IQ=["aria-current","aria-label","tabindex"],LQ=["tabindex","aria-label"],VQ=["aria-current","aria-label","tabindex"],BQ=["tabindex","aria-label"],zQ=["aria-current","aria-label","tabindex"];var DQ=D({name:"ElPaginationPager",__name:"pager",props:PQ,emits:[yt],setup(e,{emit:t}){const n=e,a=t,o=ve("pager"),l=ve("icon"),{t:r}=xt(),s=V(!1),u=V(!1),c=V(!1),d=V(!1),f=V(!1),h=V(!1),g=x(()=>{const S=n.pagerCount,k=(S-1)/2,T=Number(n.currentPage),M=Number(n.pageCount);let A=!1,O=!1;M>S&&(T>S-k&&(A=!0),T["more","btn-quickprev",l.b(),o.is("disabled",n.disabled)]),v=x(()=>["more","btn-quicknext",l.b(),o.is("disabled",n.disabled)]),m=x(()=>n.disabled?-1:0);fe(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,k,T])=>{const M=(k-1)/2;let A=!1,O=!1;S>k&&(A=T>k-M,O=TM&&(T=M)),T!==A&&a(yt,T)}return(S,k)=>(_(),$("ul",{class:R(i(o).b()),onClick:C,onKeyup:rn(w,["enter"])},[S.pageCount>0?(_(),$("li",{key:0,class:R([[i(o).is("active",S.currentPage===1),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":i(r)("el.pagination.currentPage",{pager:1}),tabindex:m.value}," 1 ",10,IQ)):re("v-if",!0),s.value?(_(),$("li",{key:1,class:R(p.value),tabindex:m.value,"aria-label":i(r)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:k[0]||(k[0]=T=>y(!0)),onMouseleave:k[1]||(k[1]=T=>c.value=!1),onFocus:k[2]||(k[2]=T=>b(!0)),onBlur:k[3]||(k[3]=T=>f.value=!1)},[(c.value||f.value)&&!S.disabled?(_(),ie(i(yl),{key:0})):(_(),ie(i(_2),{key:1}))],42,LQ)):re("v-if",!0),(_(!0),$(He,null,Ct(g.value,T=>(_(),$("li",{key:T,class:R([[i(o).is("active",S.currentPage===T),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===T,"aria-label":i(r)("el.pagination.currentPage",{pager:T}),tabindex:m.value},_e(T),11,VQ))),128)),u.value?(_(),$("li",{key:2,class:R(v.value),tabindex:m.value,"aria-label":i(r)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:k[4]||(k[4]=T=>y()),onMouseleave:k[5]||(k[5]=T=>d.value=!1),onFocus:k[6]||(k[6]=T=>b()),onBlur:k[7]||(k[7]=T=>h.value=!1)},[(d.value||h.value)&&!S.disabled?(_(),ie(i(bl),{key:0})):(_(),ie(i(_2),{key:1}))],42,BQ)):re("v-if",!0),S.pageCount>1?(_(),$("li",{key:3,class:R([[i(o).is("active",S.currentPage===S.pageCount),i(o).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":i(r)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:m.value},_e(S.pageCount),11,zQ)):re("v-if",!0)],34))}}),HQ=DQ;const ua=e=>typeof e!="number",FQ=Ce({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>De(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:J(Array),default:()=>un([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Ft,default:()=>jo},nextText:{type:String,default:""},nextIcon:{type:Ft,default:()=>Jn},teleported:{type:Boolean,default:!0},small:Boolean,size:On,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),KQ={"update:current-page":e=>De(e),"update:page-size":e=>De(e),"size-change":e=>De(e),change:(e,t)=>De(e)&&De(t),"current-change":e=>De(e),"prev-click":e=>De(e),"next-click":e=>De(e)},Rg="ElPagination";var WQ=D({name:Rg,props:FQ,emits:KQ,setup(e,{emit:t,slots:n}){const{t:a}=xt(),o=ve("pagination"),l=ht().vnode.props||{},r=wy(),s=x(()=>e.small?"small":e.size??r.value);Lo({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},x(()=>!!e.small));const u="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,c="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,d=x(()=>{if(ua(e.total)&&ua(e.pageCount)||!ua(e.currentPage)&&!u)return!1;if(e.layout.includes("sizes")){if(ua(e.pageCount)){if(!ua(e.total)&&!ua(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),f=V(ua(e.defaultPageSize)?10:e.defaultPageSize),h=V(ua(e.defaultCurrentPage)?1:e.defaultCurrentPage),g=x({get(){return ua(e.pageSize)?f.value:e.pageSize},set(S){ua(e.pageSize)&&(f.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),p=x(()=>{let S=0;return ua(e.pageCount)?ua(e.total)||(S=Math.max(1,Math.ceil(e.total/g.value))):S=e.pageCount,S}),v=x({get(){return ua(e.currentPage)?h.value:e.currentPage},set(S){let k=S;S<1?k=1:S>p.value&&(k=p.value),ua(e.currentPage)&&(h.value=k),u&&(t("update:current-page",k),t("current-change",k))}});fe(p,S=>{v.value>S&&(v.value=S)}),fe([v,g],S=>{t(yt,...S)},{flush:"post"});function m(S){v.value=S}function y(S){g.value=S;const k=p.value;v.value>k&&(v.value=k)}function b(){e.disabled||(v.value-=1,t("prev-click",v.value))}function w(){e.disabled||(v.value+=1,t("next-click",v.value))}function C(S,k){S&&(S.props||(S.props={}),S.props.class=[S.props.class,k].join(" "))}return bt(qw,{pageCount:p,disabled:x(()=>e.disabled),currentPage:v,changeEvent:m,handleSizeChange:y}),()=>{var I;if(!d.value)return ft(Rg,a("el.pagination.deprecationWarning")),null;if(!e.layout||e.hideOnSinglePage&&p.value<=1)return null;const S=[],k=[],T=qe("div",{class:o.e("rightwrapper")},k),M={prev:qe(gQ,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:b}),jumper:qe(OQ,{size:s.value}),pager:qe(HQ,{currentPage:v.value,pageCount:p.value,pagerCount:e.pagerCount,onChange:m,disabled:e.disabled}),next:qe(_Q,{disabled:e.disabled,currentPage:v.value,pageCount:p.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:w}),sizes:qe(kQ,{pageSize:g.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:s.value,appendSizeTo:e.appendSizeTo}),slot:((I=n==null?void 0:n.default)==null?void 0:I.call(n))??null,total:qe(NQ,{total:ua(e.total)?0:e.total})},A=e.layout.split(",").map(L=>L.trim());let O=!1;return A.forEach(L=>{if(L==="->"){O=!0;return}O?k.push(M[L]):S.push(M[L])}),C(S[0],o.is("first")),C(S[S.length-1],o.is("last")),O&&k.length>0&&(C(k[0],o.is("first")),C(k[k.length-1],o.is("last")),S.push(T)),qe("div",{class:[o.b(),o.is("background",e.background),o.m(s.value)]},S)}}});const jQ=rt(WQ),qQ=Ce({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:O2,default:"primary"},cancelButtonType:{type:String,values:O2,default:"text"},icon:{type:Ft,default:()=>Iy},iconColor:{type:String,default:"#f90"},hideIcon:Boolean,hideAfter:{type:Number,default:200},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,persistent:Ht.persistent,width:{type:[String,Number],default:150},virtualTriggering:Do.virtualTriggering,virtualRef:Do.virtualRef}),UQ={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent};var YQ=D({name:"ElPopconfirm",__name:"popconfirm",props:qQ,emits:UQ,setup(e,{expose:t,emit:n}){const a=e,o=n,{t:l}=xt(),r=ve("popconfirm"),s=V(),u=V(),c=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),d=()=>{var y,b;(b=(y=u.value)==null?void 0:y.focus)==null||b.call(y)},f=()=>{var y,b;(b=(y=s.value)==null?void 0:y.onClose)==null||b.call(y)},h=x(()=>({width:cn(a.width)})),g=y=>{o("confirm",y),f()},p=y=>{o("cancel",y),f()},v=x(()=>a.confirmButtonText||l("el.popconfirm.confirmButtonText")),m=x(()=>a.cancelButtonText||l("el.popconfirm.cancelButtonText"));return t({popperRef:c,hide:f}),(y,b)=>(_(),ie(i(Fn),pt({ref_key:"tooltipRef",ref:s,trigger:"click",effect:e.effect},y.$attrs,{"virtual-triggering":e.virtualTriggering,"virtual-ref":e.virtualRef,"popper-class":`${i(r).namespace.value}-popover`,"popper-style":h.value,teleported:e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":e.hideAfter,persistent:e.persistent,loop:"",onShow:d}),{content:ae(()=>[E("div",{ref_key:"rootRef",ref:u,tabindex:"-1",class:R(i(r).b())},[E("div",{class:R(i(r).e("main"))},[!e.hideIcon&&e.icon?(_(),ie(i(ze),{key:0,class:R(i(r).e("icon")),style:We({color:e.iconColor})},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class","style"])):re("v-if",!0),_t(" "+_e(e.title),1)],2),E("div",{class:R(i(r).e("action"))},[oe(y.$slots,"actions",{confirm:g,cancel:p},()=>[Q(i(Ln),{size:"small",type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",onClick:p},{default:ae(()=>[_t(_e(m.value),1)]),_:1},8,["type","text"]),Q(i(Ln),{size:"small",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",onClick:g},{default:ae(()=>[_t(_e(v.value),1)]),_:1},8,["type","text"])])],2)],2)]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["effect","virtual-triggering","virtual-ref","popper-class","popper-style","teleported","hide-after","persistent"]))}}),GQ=YQ;const XQ=rt(GQ),JQ=Ce({trigger:Do.trigger,triggerKeys:Do.triggerKeys,placement:zc.placement,disabled:Do.disabled,visible:Ht.visible,transition:Ht.transition,popperOptions:zc.popperOptions,tabindex:zc.tabindex,content:Ht.content,popperStyle:Ht.popperStyle,popperClass:Ht.popperClass,enterable:{...Ht.enterable,default:!0},effect:{...Ht.effect,default:"light"},teleported:Ht.teleported,appendTo:Ht.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),ZQ={"update:visible":e=>Dt(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},QQ="onUpdate:visible";var eee=D({name:"ElPopover",__name:"popover",props:JQ,emits:ZQ,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>a[QQ]),r=ve("popover"),s=V(),u=x(()=>{var y;return(y=i(s))==null?void 0:y.popperRef}),c=x(()=>[{width:cn(a.width)},a.popperStyle]),d=x(()=>[r.b(),a.popperClass,{[r.m("plain")]:!!a.content}]),f=x(()=>a.transition===`${r.namespace.value}-fade-in-linear`),h=()=>{var y;(y=s.value)==null||y.hide()},g=()=>{o("before-enter")},p=()=>{o("before-leave")},v=()=>{o("after-enter")},m=()=>{o("update:visible",!1),o("after-leave")};return t({popperRef:u,hide:h}),(y,b)=>(_(),ie(i(Fn),pt({ref_key:"tooltipRef",ref:s},y.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":d.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":f.value,"onUpdate:visible":l.value,onBeforeShow:g,onBeforeHide:p,onShow:v,onHide:m}),{content:ae(()=>[e.title?(_(),$("div",{key:0,class:R(i(r).e("title")),role:"title"},_e(e.title),3)):re("v-if",!0),oe(y.$slots,"default",{hide:h},()=>[_t(_e(e.content),1)])]),default:ae(()=>[y.$slots.reference?oe(y.$slots,"reference",{key:0}):re("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}}),tee=eee;const Ng=(e,t)=>{var a;const n=(a=t.arg||t.value)==null?void 0:a.popperRef;n&&(n.triggerRef=e)};var nee={mounted(e,t){Ng(e,t)},updated(e,t){Ng(e,t)}};const aee="popover",Uw=iA(nee,aee),oee=rt(tee,{directive:Uw}),lee=Ce({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:J(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:J([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:J(Function),default:e=>`${e}%`}}),ree=["aria-valuenow"],see={viewBox:"0 0 100 100"},iee=["d","stroke","stroke-linecap","stroke-width"],uee=["d","stroke","opacity","stroke-linecap","stroke-width"],cee={key:0};var dee=D({name:"ElProgress",__name:"progress",props:lee,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,a=ve("progress"),o=x(()=>{const w={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},C=b(n.percentage);return C.includes("gradient")?w.background=C:w.backgroundColor=C,w}),l=x(()=>(n.strokeWidth/n.width*100).toFixed(1)),r=x(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),s=x(()=>{const w=r.value,C=n.type==="dashboard";return` + M 50 50 + m 0 ${C?"":"-"}${w} + a ${w} ${w} 0 1 1 0 ${C?"-":""}${w*2} + a ${w} ${w} 0 1 1 0 ${C?"":"-"}${w*2} + `}),u=x(()=>2*Math.PI*r.value),c=x(()=>n.type==="dashboard"?.75:1),d=x(()=>`${-1*u.value*(1-c.value)/2}px`),f=x(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),h=x(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),g=x(()=>{let w;return n.color?w=b(n.percentage):w=t[n.status]||t.default,w}),p=x(()=>n.status==="warning"?Hu:n.type==="line"?n.status==="success"?gf:wo:n.status==="success"?ni:Ba),v=x(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),m=x(()=>n.format(n.percentage));function y(w){const C=100/w.length;return w.map((S,k)=>Ue(S)?{color:S,percentage:(k+1)*C}:S).sort((S,k)=>S.percentage-k.percentage)}const b=w=>{var S;const{color:C}=n;if(ct(C))return C(w);if(Ue(C))return C;{const k=y(C);for(const T of k)if(T.percentage>w)return T.color;return(S=k[k.length-1])==null?void 0:S.color}};return(w,C)=>(_(),$("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(_(),$("div",{key:0,class:R(i(a).b("bar"))},[E("div",{class:R(i(a).be("bar","outer")),style:We({height:`${e.strokeWidth}px`})},[E("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:We(o.value)},[(e.showText||w.$slots.default)&&e.textInside?(_(),$("div",{key:0,class:R(i(a).be("bar","innerText"))},[oe(w.$slots,"default",{percentage:e.percentage},()=>[E("span",null,_e(m.value),1)])],2)):re("v-if",!0)],6)],6)],2)):(_(),$("div",{key:1,class:R(i(a).b("circle")),style:We({height:`${e.width}px`,width:`${e.width}px`})},[(_(),$("svg",see,[E("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:We(f.value)},null,14,iee),E("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:g.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:We(h.value)},null,14,uee)]))],6)),(e.showText||w.$slots.default)&&!e.textInside?(_(),$("div",{key:2,class:R(i(a).e("text")),style:We({fontSize:`${v.value}px`})},[oe(w.$slots,"default",{percentage:e.percentage},()=>[e.status?(_(),ie(i(ze),{key:1},{default:ae(()=>[(_(),ie(ut(p.value)))]),_:1})):(_(),$("span",cee,_e(m.value),1))])],6)):re("v-if",!0)],10,ree))}}),fee=dee;const Yw=rt(fee),pee=Ce({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:J([Array,Object]),default:()=>un(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[xi,xi,xi]},voidIcon:{type:Ft,default:()=>Fy},disabledVoidIcon:{type:Ft,default:()=>xi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>un(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:On,clearable:Boolean,...ia(["ariaLabel"])}),hee={[yt]:e=>De(e),[at]:e=>De(e)},vee=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],mee=["onMousemove","onClick"];var gee=D({name:"ElRate",__name:"rate",props:pee,emits:hee,setup(e,{expose:t,emit:n}){function a(P,B){const W=j=>Mt(j),K=B[Object.keys(B).map(j=>+j).filter(j=>{const G=B[j];return W(G)&&G.excluded?Pj-G)[0]];return W(K)&&K.value||K}const o=e,l=n,r=Ne(qo,void 0),s=En(),u=ve("rate"),{inputId:c,isLabeledByFormItem:d}=za(o,{formItemContext:r}),f=V(gr(o.modelValue,0,o.max)),h=V(-1),g=V(!0),p=V([]),v=x(()=>p.value.map(P=>P.$el.clientWidth)),m=x(()=>[u.b(),u.m(s.value)]),y=dn(),b=x(()=>u.cssVarBlock({"void-color":o.voidColor,"disabled-void-color":o.disabledVoidColor,"fill-color":k.value})),w=x(()=>{let P="";return o.showScore?P=o.scoreTemplate.replace(/\{\s*value\s*\}/,y.value?`${o.modelValue}`:`${f.value}`):o.showText&&(P=o.texts[Math.ceil(f.value)-1]),P}),C=x(()=>o.modelValue*100-Math.floor(o.modelValue)*100),S=x(()=>Ve(o.colors)?{[o.lowThreshold]:o.colors[0],[o.highThreshold]:{value:o.colors[1],excluded:!0},[o.max]:o.colors[2]}:o.colors),k=x(()=>{const P=a(f.value,S.value);return Mt(P)?"":P}),T=x(()=>{let P="";return y.value?P=`${C.value}%`:o.allowHalf&&(P="50%"),{color:k.value,width:P}}),M=x(()=>{let P=Ve(o.icons)?[...o.icons]:{...o.icons};return P=Io(P),Ve(P)?{[o.lowThreshold]:P[0],[o.highThreshold]:{value:P[1],excluded:!0},[o.max]:P[2]}:P}),A=x(()=>a(o.modelValue,M.value)),O=x(()=>y.value?Ue(o.disabledVoidIcon)?o.disabledVoidIcon:Io(o.disabledVoidIcon):Ue(o.voidIcon)?o.voidIcon:Io(o.voidIcon)),I=x(()=>a(f.value,M.value));function L(P){const B=y.value&&C.value>0&&P-1o.modelValue,W=o.allowHalf&&g.value&&P-.5<=f.value&&P>f.value;return B||W}function z(P){o.clearable&&P===o.modelValue&&(P=0),l(at,P),o.modelValue!==P&&l(yt,P)}function q(P){y.value||(o.allowHalf&&g.value?z(f.value):z(P))}function U(P){if(y.value)return;const B=Kt(P),W=o.allowHalf?.5:1;let K=f.value;switch(B){case we.up:case we.right:K+=W;break;case we.left:case we.down:K-=W;break}if(K=gr(K,0,o.max),K!==f.value)return P.stopPropagation(),P.preventDefault(),l(at,K),l(yt,K),K}function F(P,B){y.value||(o.allowHalf&&B?(g.value=B.offsetX*2<=v.value[P-1],f.value=g.value?P-.5:P):f.value=P,h.value=P)}function N(){y.value||(o.allowHalf&&(g.value=o.modelValue!==Math.floor(o.modelValue)),f.value=gr(o.modelValue,0,o.max),h.value=-1)}return fe(()=>o.modelValue,P=>{f.value=gr(P,0,o.max),g.value=o.modelValue!==Math.floor(o.modelValue)}),o.modelValue||l(at,0),t({setCurrentValue:F,resetCurrentValue:N}),(P,B)=>{var W;return _(),$("div",{id:i(c),class:R([m.value,i(u).is("disabled",i(y))]),role:"slider","aria-label":i(d)?void 0:e.ariaLabel||"rating","aria-labelledby":i(d)?(W=i(r))==null?void 0:W.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":w.value||void 0,"aria-valuemin":"0","aria-valuemax":e.max,style:We(b.value),tabindex:i(y)?void 0:0,"aria-disabled":i(y),onKeydown:U},[(_(!0),$(He,null,Ct(e.max,(K,j)=>(_(),$("span",{key:j,class:R(i(u).e("item")),onMousemove:G=>F(K,G),onMouseleave:N,onClick:G=>q(K)},[Q(i(ze),{ref_for:!0,ref_key:"iconRefs",ref:p,class:R([i(u).e("icon"),{hover:h.value===K},i(u).is("active",K<=f.value),i(u).is("focus-visible",K===Math.ceil(f.value||1))])},{default:ae(()=>[dt((_(),ie(ut(I.value),null,null,512)),[[At,!L(K)&&K<=f.value]]),dt((_(),ie(ut(O.value),null,null,512)),[[At,!L(K)&&K>f.value]]),dt((_(),ie(ut(O.value),{class:R([i(u).em("decimal","box")])},null,8,["class"])),[[At,L(K)]]),dt(Q(i(ze),{style:We(T.value),class:R([i(u).e("icon"),i(u).e("decimal")])},{default:ae(()=>[(_(),ie(ut(A.value)))]),_:1},8,["style","class"]),[[At,L(K)]])]),_:2},1032,["class"])],42,mee))),128)),e.showText||e.showScore?(_(),$("span",{key:0,class:R(i(u).e("text")),style:We({color:e.textColor})},_e(w.value),7)):re("v-if",!0)],46,vee)}}}),yee=gee;const bee=rt(yee),hr={primary:"icon-primary",success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},Pg={[hr.primary]:Ds,[hr.success]:Ty,[hr.warning]:Hu,[hr.error]:yf,[hr.info]:Ds},wee=Ce({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["primary","success","warning","info","error"],default:"info"}});var Cee=D({name:"ElResult",__name:"result",props:wee,setup(e){const t=e,n=ve("result"),a=x(()=>{const o=t.icon,l=o&&hr[o]?hr[o]:"icon-info";return{class:l,component:Pg[l]||Pg["icon-info"]}});return(o,l)=>(_(),$("div",{class:R(i(n).b())},[E("div",{class:R(i(n).e("icon"))},[oe(o.$slots,"icon",{},()=>[a.value.component?(_(),ie(ut(a.value.component),{key:0,class:R(a.value.class)},null,8,["class"])):re("v-if",!0)])],2),e.title||o.$slots.title?(_(),$("div",{key:0,class:R(i(n).e("title"))},[oe(o.$slots,"title",{},()=>[E("p",null,_e(e.title),1)])],2)):re("v-if",!0),e.subTitle||o.$slots["sub-title"]?(_(),$("div",{key:1,class:R(i(n).e("subtitle"))},[oe(o.$slots,"sub-title",{},()=>[E("p",null,_e(e.subTitle),1)])],2)):re("v-if",!0),o.$slots.extra?(_(),$("div",{key:2,class:R(i(n).e("extra"))},[oe(o.$slots,"extra")],2)):re("v-if",!0)],2))}}),_ee=Cee;const See=rt(_ee),D2=50,Sd="itemRendered",xd="scroll",fs="forward",kd="backward",Wa="auto",Ef="smart",du="start",No="center",fu="end",Ks="horizontal",Gw="vertical",xee="ltr",Cs="rtl",pu="negative",ov="positive-ascending",lv="positive-descending",kee={[Ks]:"left",[Gw]:"top"},Eee=20,H2=yo({type:J([Number,Function]),required:!0}),F2=yo({type:Number}),K2=yo({type:Number,default:2}),Tee=yo({type:String,values:["ltr","rtl"],default:"ltr"}),W2=yo({type:Number,default:0}),Ed=yo({type:Number,required:!0}),Xw=yo({type:String,values:["horizontal","vertical"],default:Gw}),Jw=Ce({className:{type:String,default:""},containerElement:{type:J([String,Object]),default:"div"},data:{type:J(Array),default:()=>un([])},direction:Tee,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},innerProps:{type:J(Object),default:()=>({})},style:{type:J([Object,String,Array])},useIsScrolling:Boolean,width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),Zw=Ce({cache:K2,estimatedItemSize:F2,layout:Xw,initScrollOffset:W2,total:Ed,itemSize:H2,...Jw}),j2={type:Number,default:6},Qw={type:Number,default:0},e5={type:Number,default:2},Or=Ce({columnCache:K2,columnWidth:H2,estimatedColumnWidth:F2,estimatedRowHeight:F2,initScrollLeft:W2,initScrollTop:W2,itemKey:{type:J(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:K2,rowHeight:H2,totalColumn:Ed,totalRow:Ed,hScrollbarSize:j2,vScrollbarSize:j2,scrollbarStartGap:Qw,scrollbarEndGap:e5,role:String,...Jw}),t5=Ce({alwaysOn:Boolean,class:String,layout:Xw,total:Ed,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:j2,startGap:Qw,endGap:e5,visible:Boolean}),Cr=(e,t)=>ee===xee||e===Cs||e===Ks,Ig=e=>e===Cs;let os=null;function Td(e=!1){if(os===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const a=document.createElement("div"),o=a.style;return o.width="100px",o.height="100px",t.appendChild(a),document.body.appendChild(t),t.scrollLeft>0?os=lv:(t.scrollLeft=1,t.scrollLeft===0?os=pu:os=ov),document.body.removeChild(t),os}return os}function Mee({move:e,size:t,bar:n},a){const o={},l=`translate${n.axis}(${e}px)`;return o[n.size]=t,o.transform=l,a==="horizontal"?o.height="100%":o.width="100%",o}var Lg=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Oee(e,t){return!!(e===t||Lg(e)&&Lg(t))}function $ee(e,t){if(e.length!==t.length)return!1;for(var n=0;n{const e=ht().proxy.$props;return x(()=>{const t=(n,a,o)=>({});return e.perfMode?of(t):Aee(t)})},a5=({atEndEdge:e,atStartEdge:t,layout:n},a)=>{let o,l=0;const r=u=>u<0&&t.value||u>0&&e.value;return{hasReachedEdge:r,onWheel:u=>{ml(o);let{deltaX:c,deltaY:d}=u;u.shiftKey&&d!==0&&(c=d,d=0);const f=n.value===Ks?c:d;r(f)||(l+=f,!Zd()&&f!==0&&u.preventDefault(),o=Ua(()=>{a(l),l=0}))}}},q2=D({name:"ElVirtualScrollBar",props:t5,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=x(()=>e.startGap+e.endGap),a=ve("virtual-scrollbar"),o=ve("scrollbar"),l=V(),r=V();let s=null,u=null;const c=Nt({isDragging:!1,traveled:0}),d=x(()=>rb[e.layout]),f=x(()=>e.clientSize-i(n)),h=x(()=>({position:"absolute",width:`${Ks===e.layout?f.value:e.scrollbarSize}px`,height:`${Ks===e.layout?e.scrollbarSize:f.value}px`,[kee[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),g=x(()=>{const k=e.ratio;if(k>=100)return Number.POSITIVE_INFINITY;if(k>=50)return k*f.value/100;const T=f.value/3;return Math.floor(Math.min(Math.max(k*f.value/100,Eee),T))}),p=x(()=>{if(!Number.isFinite(g.value))return{display:"none"};const k=`${g.value}px`;return Mee({bar:d.value,size:k,move:c.traveled},e.layout)}),v=x(()=>Math.ceil(e.clientSize-g.value-i(n))),m=()=>{window.addEventListener("mousemove",C),window.addEventListener("mouseup",w);const k=i(r);k&&(u=document.onselectstart,document.onselectstart=()=>!1,k.addEventListener("touchmove",C,{passive:!0}),k.addEventListener("touchend",w))},y=()=>{window.removeEventListener("mousemove",C),window.removeEventListener("mouseup",w),document.onselectstart=u,u=null;const k=i(r);k&&(k.removeEventListener("touchmove",C),k.removeEventListener("touchend",w))},b=k=>{k.stopImmediatePropagation(),!(k.ctrlKey||[1,2].includes(k.button))&&(c.isDragging=!0,c[d.value.axis]=k.currentTarget[d.value.offset]-(k[d.value.client]-k.currentTarget.getBoundingClientRect()[d.value.direction]),t("start-move"),m())},w=()=>{c.isDragging=!1,c[d.value.axis]=0,t("stop-move"),y()},C=k=>{const{isDragging:T}=c;if(!T||!r.value||!l.value)return;const M=c[d.value.axis];if(!M)return;ml(s);const A=(l.value.getBoundingClientRect()[d.value.direction]-k[d.value.client])*-1-(r.value[d.value.offset]-M);s=Ua(()=>{c.traveled=Math.max(0,Math.min(A,v.value)),t("scroll",A,v.value)})},S=k=>{const T=Math.abs(k.target.getBoundingClientRect()[d.value.direction]-k[d.value.client])-r.value[d.value.offset]/2;c.traveled=Math.max(0,Math.min(T,v.value)),t("scroll",T,v.value)};return fe(()=>e.scrollFrom,k=>{c.isDragging||(c.traveled=Math.ceil(k*v.value))}),Lt(()=>{y()}),()=>qe("div",{role:"presentation",ref:l,class:[a.b(),e.class,(e.alwaysOn||c.isDragging)&&"always-on"],style:h.value,onMousedown:Xe(S,["stop","prevent"]),onTouchstartPrevent:b},qe("div",{ref:r,class:o.e("thumb"),style:p.value,onMousedown:b},[]))}}),o5=({name:e,getOffset:t,getItemSize:n,getItemOffset:a,getEstimatedTotalSize:o,getStartIndexForOffset:l,getStopIndexForStartIndex:r,initCache:s,clearCache:u,validateProps:c})=>D({name:e??"ElVirtualList",props:Zw,emits:[Sd,xd],setup(d,{emit:f,expose:h}){c(d);const g=ht(),p=ve("vl"),v=V(s(d,g)),m=n5(),y=V(),b=V(),w=V(),C=V({isScrolling:!1,scrollDir:"forward",scrollOffset:De(d.initScrollOffset)?d.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:d.scrollbarAlwaysOn}),S=x(()=>{const{total:G,cache:ee}=d,{isScrolling:te,scrollDir:ue,scrollOffset:ne}=i(C);if(G===0)return[0,0,0,0];const de=l(d,ne,i(v)),se=r(d,de,ne,i(v)),Y=!te||ue===kd?Math.max(1,ee):1,X=!te||ue===fs?Math.max(1,ee):1;return[Math.max(0,de-Y),Math.max(0,Math.min(G-1,se+X)),de,se]}),k=x(()=>o(d,i(v))),T=x(()=>hu(d.layout)),M=x(()=>[{position:"relative",[`overflow-${T.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:d.direction,height:De(d.height)?`${d.height}px`:d.height,width:De(d.width)?`${d.width}px`:d.width},d.style]),A=x(()=>{const G=i(k),ee=i(T);return{height:ee?"100%":`${G}px`,pointerEvents:i(C).isScrolling?"none":void 0,width:ee?`${G}px`:"100%",margin:0,boxSizing:"border-box"}}),O=x(()=>T.value?d.width:d.height),{onWheel:I}=a5({atStartEdge:x(()=>C.value.scrollOffset<=0),atEndEdge:x(()=>C.value.scrollOffset>=k.value),layout:x(()=>d.layout)},G=>{var ee,te;(te=(ee=w.value).onMouseUp)==null||te.call(ee),N(Math.min(C.value.scrollOffset+G,k.value-O.value))});Vt(y,"wheel",I,{passive:!1});const L=()=>{const{total:G}=d;if(G>0){const[ne,de,se,Y]=i(S);f(Sd,ne,de,se,Y)}const{scrollDir:ee,scrollOffset:te,updateRequested:ue}=i(C);f(xd,ee,te,ue)},z=G=>{const{clientHeight:ee,scrollHeight:te,scrollTop:ue}=G.currentTarget,ne=i(C);if(ne.scrollOffset===ue)return;const de=Math.max(0,Math.min(ue,te-ee));C.value={...ne,isScrolling:!0,scrollDir:Cr(ne.scrollOffset,de),scrollOffset:de,updateRequested:!1},Ie(W)},q=G=>{const{clientWidth:ee,scrollLeft:te,scrollWidth:ue}=G.currentTarget,ne=i(C);if(ne.scrollOffset===te)return;const{direction:de}=d;let se=te;if(de===Cs)switch(Td()){case pu:se=-te;break;case lv:se=ue-ee-te;break}se=Math.max(0,Math.min(se,ue-ee)),C.value={...ne,isScrolling:!0,scrollDir:Cr(ne.scrollOffset,se),scrollOffset:se,updateRequested:!1},Ie(W)},U=G=>{i(T)?q(G):z(G),L()},F=(G,ee)=>{const te=(k.value-O.value)/ee*G;N(Math.min(k.value-O.value,te))},N=G=>{G=Math.max(G,0),G!==i(C).scrollOffset&&(C.value={...i(C),scrollOffset:G,scrollDir:Cr(i(C).scrollOffset,G),updateRequested:!0},Ie(W))},P=(G,ee=Wa)=>{const{scrollOffset:te}=i(C);G=Math.max(0,Math.min(G,d.total-1)),N(t(d,G,ee,te,i(v)))},B=G=>{const{direction:ee,itemSize:te,layout:ue}=d,ne=m.value(u&&te,u&&ue,u&&ee);let de;if(An(ne,String(G)))de=ne[G];else{const se=a(d,G,i(v)),Y=n(d,G,i(v)),X=i(T),H=ee===Cs,Z=X?se:0;ne[G]=de={position:"absolute",left:H?void 0:`${Z}px`,right:H?`${Z}px`:void 0,top:X?0:`${se}px`,height:X?"100%":`${Y}px`,width:X?`${Y}px`:"100%"}}return de},W=()=>{C.value.isScrolling=!1,Ie(()=>{m.value(-1,null,null)})},K=()=>{const G=y.value;G&&(G.scrollTop=0)};mt(()=>{if(!Rt)return;const{initScrollOffset:G}=d,ee=i(y);De(G)&&ee&&(i(T)?ee.scrollLeft=G:ee.scrollTop=G),L()}),ho(()=>{const{direction:G,layout:ee}=d,{scrollOffset:te,updateRequested:ue}=i(C),ne=i(y);if(ue&&ne)if(ee===Ks)if(G===Cs)switch(Td()){case pu:ne.scrollLeft=-te;break;case ov:ne.scrollLeft=te;break;default:{const{clientWidth:de,scrollWidth:se}=ne;ne.scrollLeft=se-de-te;break}}else ne.scrollLeft=te;else ne.scrollTop=te}),wu(()=>{i(y).scrollTop=i(C).scrollOffset});const j={ns:p,clientSize:O,estimatedTotalSize:k,windowStyle:M,windowRef:y,innerRef:b,innerStyle:A,itemsToRender:S,scrollbarRef:w,states:C,getItemStyle:B,onScroll:U,onScrollbarScroll:F,onWheel:I,scrollTo:N,scrollToItem:P,resetScrollTop:K};return h({windowRef:y,innerRef:b,getItemStyleCache:m,scrollTo:N,scrollToItem:P,resetScrollTop:K,states:C}),j},render(d){var W;const{$slots:f,className:h,clientSize:g,containerElement:p,data:v,getItemStyle:m,innerElement:y,itemsToRender:b,innerStyle:w,layout:C,total:S,onScroll:k,onScrollbarScroll:T,states:M,useIsScrolling:A,windowStyle:O,ns:I}=d,[L,z]=b,q=ut(p),U=ut(y),F=[];if(S>0)for(let K=L;K<=z;K++)F.push(qe(He,{key:K},(W=f.default)==null?void 0:W.call(f,{data:v,index:K,isScrolling:A?M.isScrolling:void 0,style:m(K)})));const N=[qe(U,pt(d.innerProps,{style:w,ref:"innerRef"}),Ue(U)?F:{default:()=>F})],P=qe(q2,{ref:"scrollbarRef",clientSize:g,layout:C,onScroll:T,ratio:g*100/this.estimatedTotalSize,scrollFrom:M.scrollOffset/(this.estimatedTotalSize-g),total:S,alwaysOn:M.scrollbarAlwaysOn}),B=qe(q,{class:[I.e("window"),h],style:O,onScroll:k,ref:"windowRef",key:0},Ue(q)?[N]:{default:()=>[N]});return qe("div",{key:0,class:[I.e("wrapper"),M.scrollbarAlwaysOn?"always-on":""]},[B,P])}}),l5=o5({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:a,width:o},l,r,s)=>{const u=hu(a)?o:e;Ue(u)&&on("[ElVirtualList]",` + You should set + width/height + to number when your layout is + horizontal/vertical + `);const c=Math.max(0,t*n-u),d=Math.min(c,l*n),f=Math.max(0,(l+1)*n-u);switch(r===Ef&&(s>=f-u&&s<=d+u?r=Wa:r=No),r){case du:return d;case fu:return f;case No:{const h=Math.round(f+(d-f)/2);return hc+Math.floor(u/2)?c:h}case Wa:default:return s>=f&&s<=d?s:sMath.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:o},l,r)=>{const s=l*n,u=hu(a)?o:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,l+c-1))},initCache(){},clearCache:!0,validateProps(){}}),Ree="ElDynamicSizeList",ps=(e,t,n)=>{const{itemSize:a}=e,{items:o,lastVisitedIndex:l}=n;if(t>l){let r=0;if(l>=0){const s=o[l];r=s.offset+s.size}for(let s=l+1;s<=t;s++){const u=a(s);o[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return o[t]},Nee=(e,t,n)=>{const{items:a,lastVisitedIndex:o}=t;return(o>0?a[o].offset:0)>=n?r5(e,t,0,o,n):Pee(e,t,Math.max(0,o),n)},r5=(e,t,n,a,o)=>{for(;n<=a;){const l=n+Math.floor((a-n)/2),r=ps(e,l,t).offset;if(r===o)return l;ro&&(a=l-1)}return Math.max(0,n-1)},Pee=(e,t,n,a)=>{const{total:o}=e;let l=1;for(;n{let o=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},Iee=o5({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>ps(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:Vg,getOffset:(e,t,n,a,o)=>{const{height:l,layout:r,width:s}=e,u=hu(r)?s:l,c=ps(e,t,o),d=Vg(e,o),f=Math.max(0,Math.min(d-u,c.offset)),h=Math.max(0,c.offset-u+c.size);switch(n===Ef&&(a>=h-u&&a<=f+u?n=Wa:n=No),n){case du:return f;case fu:return h;case No:return Math.round(h+(f-h)/2);case Wa:default:return a>=h&&a<=f?a:aNee(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:o,total:l,layout:r,width:s}=e,u=hu(r)?s:o,c=ps(e,t,a),d=n+u;let f=c.offset+c.size,h=t;for(;h{var l,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(l=t.exposed)==null||l.getItemStyleCache(-1),o&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&on(Ree,` + itemSize is required as function, but the given value was ${typeof e} + `)}}),Lee=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},o)=>{let l=null,r=0,s=0;const u=(d,f)=>{const h=d<0&&t.value||d>0&&e.value,g=f<0&&a.value||f>0&&n.value;return h||g};return{hasReachedEdge:u,onWheel:d=>{ml(l);let f=d.deltaX,h=d.deltaY;if(Math.abs(f)>Math.abs(h)?h=0:f=0,d.shiftKey&&h!==0&&(f=h,h=0),u(f,h)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=h,d.preventDefault(),l=Ua(()=>{o(r,s),r=0,s=0})}}},Vee=(e,t,n,a,o,l,r)=>{const s=V(0),u=V(0);let c,d=0,f=0;const h=p=>{ml(c),s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,d=0,f=0},g=p=>{p.preventDefault(),ml(c),d+=s.value-p.touches[0].clientX,f+=u.value-p.touches[0].clientY,s.value=p.touches[0].clientX,u.value=p.touches[0].clientY,c=Ua(()=>{const v=a.value-i(l),m=o.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,v),scrollTop:Math.min(t.value.scrollTop+f,m)}),d=0,f=0})};return Vt(e,"touchstart",h,{passive:!0}),Vt(e,"touchmove",g,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:h,handleTouchMove:g}},s5=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:o,getEstimatedTotalHeight:l,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:g,validateProps:p})=>D({name:e??"ElVirtualList",props:Or,emits:[Sd,xd],setup(v,{emit:m,expose:y,slots:b}){const w=ve("vl");p(v);const C=ht(),S=V(h(v,C));g==null||g(C,S);const k=V(),T=V(),M=V(),A=V(),O=V({isScrolling:!1,scrollLeft:De(v.initScrollLeft)?v.initScrollLeft:0,scrollTop:De(v.initScrollTop)?v.initScrollTop:0,updateRequested:!1,xAxisScrollDir:fs,yAxisScrollDir:fs}),I=n5(),L=x(()=>Number.parseInt(`${v.height}`,10)),z=x(()=>Number.parseInt(`${v.width}`,10)),q=x(()=>{const{totalColumn:ye,totalRow:ke,columnCache:be}=v,{isScrolling:Pe,xAxisScrollDir:Be,scrollLeft:Qe}=i(O);if(ye===0||ke===0)return[0,0,0,0];const tt=a(v,Qe,i(S)),nt=o(v,tt,Qe,i(S)),Te=!Pe||Be===kd?Math.max(1,be):1,Ye=!Pe||Be===fs?Math.max(1,be):1;return[Math.max(0,tt-Te),Math.max(0,Math.min(ye-1,nt+Ye)),tt,nt]}),U=x(()=>{const{totalColumn:ye,totalRow:ke,rowCache:be}=v,{isScrolling:Pe,yAxisScrollDir:Be,scrollTop:Qe}=i(O);if(ye===0||ke===0)return[0,0,0,0];const tt=d(v,Qe,i(S)),nt=f(v,tt,Qe,i(S)),Te=!Pe||Be===kd?Math.max(1,be):1,Ye=!Pe||Be===fs?Math.max(1,be):1;return[Math.max(0,tt-Te),Math.max(0,Math.min(ke-1,nt+Ye)),tt,nt]}),F=x(()=>l(v,i(S))),N=x(()=>r(v,i(S))),P=x(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:v.direction,height:De(v.height)?`${v.height}px`:v.height,width:De(v.width)?`${v.width}px`:v.width},v.style??{}]),B=x(()=>{const ye=`${i(N)}px`;return{height:`${i(F)}px`,pointerEvents:i(O).isScrolling?"none":void 0,width:ye,margin:0,boxSizing:"border-box"}}),W=()=>{const{totalColumn:ye,totalRow:ke}=v;if(ye>0&&ke>0){const[nt,Te,Ye,st]=i(q),[Ke,et,gt,he]=i(U);m(Sd,{columnCacheStart:nt,columnCacheEnd:Te,rowCacheStart:Ke,rowCacheEnd:et,columnVisibleStart:Ye,columnVisibleEnd:st,rowVisibleStart:gt,rowVisibleEnd:he})}const{scrollLeft:be,scrollTop:Pe,updateRequested:Be,xAxisScrollDir:Qe,yAxisScrollDir:tt}=i(O);m(xd,{xAxisScrollDir:Qe,scrollLeft:be,yAxisScrollDir:tt,scrollTop:Pe,updateRequested:Be})},K=ye=>{const{clientHeight:ke,clientWidth:be,scrollHeight:Pe,scrollLeft:Be,scrollTop:Qe,scrollWidth:tt}=ye.currentTarget,nt=i(O);if(nt.scrollTop===Qe&&nt.scrollLeft===Be)return;let Te=Be;if(Ig(v.direction))switch(Td()){case pu:Te=-Be;break;case lv:Te=tt-be-Be;break}O.value={...nt,isScrolling:!0,scrollLeft:Te,scrollTop:Math.max(0,Math.min(Qe,Pe-ke)),updateRequested:!0,xAxisScrollDir:Cr(nt.scrollLeft,Te),yAxisScrollDir:Cr(nt.scrollTop,Qe)},Ie(()=>H()),Z(),W()},j=(ye,ke)=>{const be=i(L),Pe=(F.value-be)/ke*ye;te({scrollTop:Math.min(F.value-be,Pe)})},G=(ye,ke)=>{const be=i(z),Pe=(N.value-be)/ke*ye;te({scrollLeft:Math.min(N.value-be,Pe)})},{onWheel:ee}=Lee({atXStartEdge:x(()=>O.value.scrollLeft<=0),atXEndEdge:x(()=>O.value.scrollLeft>=N.value-i(z)),atYStartEdge:x(()=>O.value.scrollTop<=0),atYEndEdge:x(()=>O.value.scrollTop>=F.value-i(L))},(ye,ke)=>{var Be,Qe,tt,nt;(Qe=(Be=T.value)==null?void 0:Be.onMouseUp)==null||Qe.call(Be),(nt=(tt=M.value)==null?void 0:tt.onMouseUp)==null||nt.call(tt);const be=i(z),Pe=i(L);te({scrollLeft:Math.min(O.value.scrollLeft+ye,N.value-be),scrollTop:Math.min(O.value.scrollTop+ke,F.value-Pe)})});Vt(k,"wheel",ee,{passive:!1});const te=({scrollLeft:ye=O.value.scrollLeft,scrollTop:ke=O.value.scrollTop})=>{ye=Math.max(ye,0),ke=Math.max(ke,0);const be=i(O);ke===be.scrollTop&&ye===be.scrollLeft||(O.value={...be,xAxisScrollDir:Cr(be.scrollLeft,ye),yAxisScrollDir:Cr(be.scrollTop,ke),scrollLeft:ye,scrollTop:ke,updateRequested:!0},Ie(()=>H()),Z(),W())},{touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se}=Vee(k,O,te,N,F,z,L),Y=(ye=0,ke=0,be=Wa)=>{const Pe=i(O);ke=Math.max(0,Math.min(ke,v.totalColumn-1)),ye=Math.max(0,Math.min(ye,v.totalRow-1));const Be=K8(w.namespace.value),Qe=i(S),tt=l(v,Qe),nt=r(v,Qe);te({scrollLeft:s(v,ke,be,Pe.scrollLeft,Qe,nt>v.width?Be:0),scrollTop:u(v,ye,be,Pe.scrollTop,Qe,tt>v.height?Be:0)})},X=(ye,ke)=>{const{columnWidth:be,direction:Pe,rowHeight:Be}=v,Qe=I.value(t&&be,t&&Be,t&&Pe),tt=`${ye},${ke}`;if(An(Qe,tt))return Qe[tt];{const[,nt]=n(v,ke,i(S)),Te=i(S),Ye=Ig(Pe),[st,Ke]=c(v,ye,Te),[et]=n(v,ke,Te);return Qe[tt]={position:"absolute",left:Ye?void 0:`${nt}px`,right:Ye?`${nt}px`:void 0,top:`${Ke}px`,height:`${st}px`,width:`${et}px`},Qe[tt]}},H=()=>{O.value.isScrolling=!1,Ie(()=>{I.value(-1,null,null)})};mt(()=>{if(!Rt)return;const{initScrollLeft:ye,initScrollTop:ke}=v,be=i(k);be&&(De(ye)&&(be.scrollLeft=ye),De(ke)&&(be.scrollTop=ke)),W()});const Z=()=>{const{direction:ye}=v,{scrollLeft:ke,scrollTop:be,updateRequested:Pe}=i(O),Be=i(k);if(Pe&&Be){if(ye===Cs)switch(Td()){case pu:Be.scrollLeft=-ke;break;case ov:Be.scrollLeft=ke;break;default:{const{clientWidth:Qe,scrollWidth:tt}=Be;Be.scrollLeft=tt-Qe-ke;break}}else Be.scrollLeft=Math.max(0,ke);Be.scrollTop=Math.max(0,be)}},{resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge}=C.proxy;y({windowRef:k,innerRef:A,getItemStyleCache:I,touchStartX:ue,touchStartY:ne,handleTouchStart:de,handleTouchMove:se,scrollTo:te,scrollToItem:Y,states:O,resetAfterColumnIndex:le,resetAfterRowIndex:ce,resetAfter:ge});const me=()=>{const{scrollbarAlwaysOn:ye,scrollbarStartGap:ke,scrollbarEndGap:be,totalColumn:Pe,totalRow:Be}=v,Qe=i(z),tt=i(L),nt=i(N),Te=i(F),{scrollLeft:Ye,scrollTop:st}=i(O);return{horizontalScrollbar:qe(q2,{ref:T,alwaysOn:ye,startGap:ke,endGap:be,class:w.e("horizontal"),clientSize:Qe,layout:"horizontal",onScroll:G,ratio:Qe*100/nt,scrollFrom:Ye/(nt-Qe),total:Be,visible:!0}),verticalScrollbar:qe(q2,{ref:M,alwaysOn:ye,startGap:ke,endGap:be,class:w.e("vertical"),clientSize:tt,layout:"vertical",onScroll:j,ratio:tt*100/Te,scrollFrom:st/(Te-tt),total:Pe,visible:!0})}},$e=()=>{var st;const[ye,ke]=i(q),[be,Pe]=i(U),{data:Be,totalColumn:Qe,totalRow:tt,useIsScrolling:nt,itemKey:Te}=v,Ye=[];if(tt>0&&Qe>0)for(let Ke=be;Ke<=Pe;Ke++)for(let et=ye;et<=ke;et++){const gt=Te({columnIndex:et,data:Be,rowIndex:Ke});Ye.push(qe(He,{key:gt},(st=b.default)==null?void 0:st.call(b,{columnIndex:et,data:Be,isScrolling:nt?i(O).isScrolling:void 0,style:X(Ke,et),rowIndex:Ke})))}return Ye},Re=()=>{const ye=ut(v.innerElement),ke=$e();return[qe(ye,pt(v.innerProps,{style:i(B),ref:A}),Ue(ye)?ke:{default:()=>ke})]};return()=>{const ye=ut(v.containerElement),{horizontalScrollbar:ke,verticalScrollbar:be}=me(),Pe=Re();return qe("div",{key:0,class:w.e("wrapper"),role:v.role},[qe(ye,{class:v.className,style:i(P),onScroll:K,ref:k},Ue(ye)?Pe:{default:()=>Pe}),ke,be])}}}),Bg="ElFixedSizeGrid",Bee=s5({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},a,o,l,r,s)=>{n=Number(n);const u=Math.max(0,e*t-n),c=Math.min(u,a*t),d=Math.max(0,a*t-n+s+t);switch(o==="smart"&&(l>=d-n&&l<=c+n?o=Wa:o=No),o){case du:return c;case fu:return d;case No:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(n/2)?u:f}case Wa:default:return l>=d&&l<=c?l:d>c||l{t=Number(t);const u=Math.max(0,n*e-t),c=Math.min(u,a*e),d=Math.max(0,a*e-t+s+e);switch(o===Ef&&(l>=d-t&&l<=c+t?o=Wa:o=No),o){case du:return c;case fu:return d;case No:{const f=Math.round(d+(c-d)/2);return fu+Math.floor(t/2)?u:f}case Wa:default:return l>=d&&l<=c?l:d>c||lMath.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},a,o)=>{const l=a*e,r=Math.ceil((n+o-l)/e);return Math.max(0,Math.min(t-1,a+r-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{De(e)||on(Bg,` + "columnWidth" must be passed as number, + instead ${typeof e} was given. + `),De(t)||on(Bg,` + "columnWidth" must be passed as number, + instead ${typeof t} was given. + `)}}),{max:Md,min:i5,floor:u5}=Math,zg="ElDynamicSizeGrid",zee={column:"columnWidth",row:"rowHeight"},U2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},tl=(e,t,n,a)=>{const[o,l,r]=[n[a],e[zee[a]],n[U2[a]]];if(t>r){let s=0;if(r>=0){const u=o[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=l(u);o[u]={offset:s,size:c},s+=c}n[U2[a]]=t}return o[t]},c5=(e,t,n,a,o,l)=>{for(;n<=a;){const r=n+u5((a-n)/2),s=tl(e,r,t,l).offset;if(s===o)return r;s{const l=o==="column"?e.totalColumn:e.totalRow;let r=1;for(;n{const[o,l]=[t[a],t[U2[a]]];return(l>0?o[l].offset:0)>=n?c5(e,t,0,l,n,a):Dee(e,t,Md(0,l),n,a)},d5=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let o=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];o=r.offset+r.size}const l=(e-n-1)*t;return o+l},f5=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let o=0;if(a>e&&(a=e-1),a>=0){const r=t[a];o=r.offset+r.size}const l=(e-a-1)*n;return o+l},Hee={column:f5,row:d5},Hg=(e,t,n,a,o,l,r)=>{const[s,u]=[l==="row"?e.height:e.width,Hee[l]],c=tl(e,t,o,l),d=Md(0,i5(u(e,o)-s,c.offset)),f=Md(0,c.offset-s+r+c.size);switch(n===Ef&&(a>=f-s&&a<=d+s?n=Wa:n=No),n){case du:return d;case fu:return f;case No:return Math.round(f+(d-f)/2);case Wa:default:return a>=f&&a<=d?a:f>d||a{const a=tl(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=tl(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,o,l)=>Hg(e,t,n,a,o,"column",l),getRowOffset:(e,t,n,a,o,l)=>Hg(e,t,n,a,o,"row",l),getColumnStartIndexForOffset:(e,t,n)=>Dg(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const o=tl(e,t,a,"column"),l=n+e.width;let r=o.offset+o.size,s=t;for(;sDg(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:o,height:l}=e,r=tl(e,t,a,"row"),s=n+l;let u=r.size+r.offset,c=t;for(;c{const n=({columnIndex:l,rowIndex:r},s)=>{var u,c;s=kt(s)?!0:s,De(l)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,l-1)),De(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(l,r)=>{n({columnIndex:l},r)},o=(l,r)=>{n({rowIndex:l},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:o,resetAfter:n})},initCache:({estimatedColumnWidth:e=D2,estimatedRowHeight:t=D2})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{ct(e)||on(zg,` + "columnWidth" must be passed as function, + instead ${typeof e} was given. + `),ct(t)||on(zg,` + "rowHeight" must be passed as function, + instead ${typeof t} was given. + `)}}),rv=Symbol("ElSelectV2Injection"),Kee=Ce({allowCreate:Boolean,autocomplete:{type:J(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:Ft,default:wo},effect:{type:J(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:J(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:{type:Boolean,default:void 0},estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:{type:J(Function)},height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:J([Array,String,Number,Boolean,Object]),default:void 0},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:{type:J(Function)},reserveKeyword:{type:Boolean,default:!0},options:{type:J(Array),required:!0},placeholder:{type:String},teleported:Ht.teleported,persistent:{type:Boolean,default:!0},popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},size:On,props:{type:J(Object),default:()=>md},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},offset:{type:Number,default:12},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},placement:{type:J(String),values:Uo,default:"bottom-start"},fallbackPlacements:{type:J(Array),default:["bottom-start","top-start","right","left"]},tagType:{...wl.type,default:"info"},tagEffect:{...wl.effect,default:"light"},tabindex:{type:[String,Number],default:0},appendTo:Ht.appendTo,fitInputWidth:{type:[Boolean,Number],default:!0,validator(e){return Dt(e)||De(e)}},suffixIcon:{type:Ft,default:bo},...Gr,...ia(["ariaLabel"])}),Wee=Ce({data:Array,disabled:Boolean,hovering:Boolean,item:{type:J(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),jee={[at]:e=>!0,[yt]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},qee={hover:e=>De(e),select:(e,t)=>!0};var Uee=D({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:ve("select")}}});function Yee(e,t,n,a,o,l){return _(),$("div",{class:R(e.ns.be("group","title")),style:We({...e.style,lineHeight:`${e.height}px`})},_e(e.item.label),7)}var Gee=$n(Uee,[["render",Yee]]);function Xee(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}var Jee=D({props:Wee,emits:qee,setup(e,{emit:t}){const n=Ne(rv),a=ve("select"),{hoverItem:o,selectOptionClick:l}=Xee(e,{emit:t}),{getLabel:r}=Wu(n.props),s=n.contentId;return{ns:a,contentId:s,hoverItem:o,handleMousedown:c=>{let d=c.target;const f=c.currentTarget;for(;d&&d!==f;){if(Lr(d))return;d=d.parentElement}c.preventDefault()},selectOptionClick:l,getLabel:r}}});const Zee=["id","aria-selected","aria-disabled"];function Qee(e,t,n,a,o,l){return _(),$("li",{id:`${e.contentId}-${e.index}`,role:"option","aria-selected":e.selected,"aria-disabled":e.disabled||void 0,style:We(e.style),class:R([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMousemove:t[0]||(t[0]=(...r)=>e.hoverItem&&e.hoverItem(...r)),onMousedown:t[1]||(t[1]=(...r)=>e.handleMousedown&&e.handleMousedown(...r)),onClick:t[2]||(t[2]=Xe((...r)=>e.selectOptionClick&&e.selectOptionClick(...r),["stop"]))},[oe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[E("span",null,_e(e.getLabel(e.item)),1)])],46,Zee)}var ete=$n(Jee,[["render",Qee]]);const tte={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number,id:String,ariaLabel:String};var nte=D({name:"ElSelectDropdown",props:tte,setup(e,{slots:t,expose:n}){const a=Ne(rv),o=ve("select"),{getLabel:l,getValue:r,getDisabled:s}=Wu(a.props),u=V([]),c=V(),d=x(()=>e.data.length);fe(()=>d.value,()=>{var O,I;(I=(O=a.tooltipRef.value)==null?void 0:O.updatePopper)==null||I.call(O)});const f=x(()=>kt(a.props.estimatedOptionHeight)),h=x(()=>f.value?{itemSize:a.props.itemHeight}:{estimatedSize:a.props.estimatedOptionHeight,itemSize:O=>u.value[O]}),g=(O=[],I)=>{const{props:{valueKey:L}}=a;return Mt(I)?O&&O.some(z=>jt(_n(z,L))===_n(I,L)):O.includes(I)},p=(O,I)=>{if(Mt(I)){const{valueKey:L}=a.props;return _n(O,L)===_n(I,L)}else return O===I},v=(O,I)=>a.props.multiple?g(O,r(I)):p(O,r(I)),m=(O,I)=>{const{disabled:L,multiple:z,multipleLimit:q}=a.props;return L||!I&&(z?q>0&&O.length>=q:!1)},y=O=>e.hoveringIndex===O;n({listRef:c,isSized:f,isItemDisabled:m,isItemHovering:y,isItemSelected:v,scrollToItem:O=>{const I=c.value;I&&I.scrollToItem(O)},resetScrollTop:()=>{const O=c.value;O&&O.resetScrollTop()}});const C=O=>{const{index:I,data:L,style:z}=O,q=i(f),{itemSize:U,estimatedSize:F}=i(h),{modelValue:N}=a.props,{onSelect:P,onHover:B}=a,W=L[I];if(W.type==="Group")return Q(Gee,{item:W,style:z,height:q?U:F},null);const K=v(N,W),j=m(N,K),G=y(I);return Q(ete,pt(O,{selected:K,disabled:s(W)||j,created:!!W.created,hovering:G,item:W,onSelect:P,onHover:B}),{default:ee=>{var te;return((te=t.default)==null?void 0:te.call(t,ee))||Q("span",null,[l(W)])}})},{onKeyboardNavigate:S,onKeyboardSelect:k}=a,T=()=>{S("forward")},M=()=>{S("backward")},A=O=>{const I=Kt(O),{tab:L,esc:z,down:q,up:U,enter:F,numpadEnter:N}=we;switch([z,q,U,F,N].includes(I)&&(O.preventDefault(),O.stopPropagation()),I){case L:case z:break;case q:T();break;case U:M();break;case F:case N:k();break}};return()=>{var N,P,B,W;const{data:O,width:I}=e,{height:L,multiple:z,scrollbarAlwaysOn:q}=a.props,U=x(()=>ld?!0:q),F=i(f)?l5:Iee;return Q("div",{class:[o.b("dropdown"),o.is("multiple",z)],style:{width:`${I}px`}},[(N=t.header)==null?void 0:N.call(t),((P=t.loading)==null?void 0:P.call(t))||((B=t.empty)==null?void 0:B.call(t))||Q(F,pt({ref:c},i(h),{className:o.be("dropdown","list"),scrollbarAlwaysOn:U.value,data:O,height:L,width:I,total:O.length,innerElement:"ul",innerProps:{id:e.id,role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},onKeydown:A}),{default:K=>Q(C,K,null)}),(W=t.footer)==null?void 0:W.call(t)])}}});function ate(e,t){const{aliasProps:n,getLabel:a,getValue:o}=Wu(e),l=V(0),r=V(),s=x(()=>e.allowCreate&&e.filterable);fe(()=>e.options,g=>{const p=new Set(g.map(v=>a(v)));t.createdOptions=t.createdOptions.filter(v=>!p.has(a(v)))});function u(g){const p=v=>a(v)===g;return e.options&&e.options.some(p)||t.createdOptions.some(p)}function c(g){s.value&&(e.multiple&&g.created?l.value++:r.value=g)}function d(g){if(s.value)if(g&&g.length>0){if(u(g)){t.createdOptions=t.createdOptions.filter(v=>a(v)!==t.previousQuery);return}const p={[n.value.value]:g,[n.value.label]:g,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=l.value?t.createdOptions[l.value]=p:t.createdOptions.push(p)}else if(e.multiple)t.createdOptions.length=l.value;else{const p=r.value;t.createdOptions.length=0,p&&p.created&&t.createdOptions.push(p)}}function f(g){if(!s.value||!g||!g.created||g.created&&e.reserveKeyword&&t.inputValue===a(g))return;const p=t.createdOptions.findIndex(v=>o(v)===o(g));~p&&(t.createdOptions.splice(p,1),l.value--)}function h(){s.value&&(t.createdOptions.length=0,l.value=0)}return{createNewOption:d,removeNewOption:f,selectNewOption:c,clearAllNewOption:h}}const ote=(e,t)=>{const{t:n}=xt(),a=yn(),o=ve("select"),l=ve("input"),{form:r,formItem:s}=Kn(),{inputId:u}=za(e,{formItemContext:s}),{aliasProps:c,getLabel:d,getValue:f,getDisabled:h,getOptions:g}=Wu(e),{valueOnClear:p,isEmptyValue:v}=zu(e),m=Nt({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),y=V(-1),b=V(!1),w=V(),C=V(),S=V(),k=V(),T=V(),M=V(),A=V(),O=V(),I=V(),L=V(),{isComposing:z,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}=Bu({afterComposition:xe=>Qt(xe)}),N=dn(),{wrapperRef:P,isFocused:B,handleBlur:W}=El(T,{disabled:N,afterFocus(){e.automaticDropdown&&!ee.value&&(ee.value=!0,m.menuVisibleOnFocus=!0)},beforeBlur(xe){var ot,wt;return((ot=S.value)==null?void 0:ot.isFocusInsideContent(xe))||((wt=k.value)==null?void 0:wt.isFocusInsideContent(xe))},afterBlur(){var xe;ee.value=!1,m.menuVisibleOnFocus=!1,e.validateEvent&&((xe=s==null?void 0:s.validate)==null||xe.call(s,"blur").catch(ot=>ft(ot)))}}),K=x(()=>$e("")),j=x(()=>e.loading?!1:e.options.length>0||m.createdOptions.length>0),G=V([]),ee=V(!1),te=x(()=>(r==null?void 0:r.statusIcon)??!1),ue=x(()=>{const xe=G.value.length*e.itemHeight;return xe>e.height?e.height:xe}),ne=x(()=>e.multiple?Ve(e.modelValue)&&e.modelValue.length>0:!v(e.modelValue)),de=x(()=>e.clearable&&!N.value&&ne.value&&(B.value||m.inputHovering)),se=x(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Y=x(()=>se.value&&o.is("reverse",ee.value)),X=x(()=>(s==null?void 0:s.validateState)||""),H=x(()=>{if(X.value)return bf[X.value]}),Z=x(()=>e.remote?e.debounce:0),le=x(()=>e.remote&&!m.inputValue&&!j.value),ce=x(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&m.inputValue&&j.value&&G.value.length===0?e.noMatchText||n("el.select.noMatch"):j.value?null:e.noDataText||n("el.select.noData")),ge=x(()=>e.filterable&&ct(e.filterMethod)),me=x(()=>e.filterable&&e.remote&&ct(e.remoteMethod)),$e=xe=>{const ot=new RegExp(oh(xe),"i"),wt=St=>ge.value||me.value?!0:xe?ot.test(d(St)||""):!0;return e.loading?[]:[...m.createdOptions,...e.options].reduce((St,Wn)=>{const wa=g(Wn);if(Ve(wa)){const ui=wa.filter(wt);ui.length>0&&St.push({label:d(Wn),type:"Group"},...ui)}else(e.remote||wt(Wn))&&St.push(Wn);return St},[])},Re=()=>{G.value=$e(m.inputValue)},Ae=x(()=>{const xe=new Map;return K.value.forEach((ot,wt)=>{xe.set(Ge(f(ot)),{option:ot,index:wt})}),xe}),ye=x(()=>{const xe=new Map;return G.value.forEach((ot,wt)=>{xe.set(Ge(f(ot)),{option:ot,index:wt})}),xe}),ke=x(()=>G.value.every(xe=>h(xe))),be=En(),Pe=x(()=>be.value==="small"?"small":"default"),Be=()=>{var ot;if(De(e.fitInputWidth)){y.value=e.fitInputWidth;return}const xe=((ot=w.value)==null?void 0:ot.offsetWidth)||200;!e.fitInputWidth&&j.value?Ie(()=>{y.value=Math.max(xe,Qe())}):y.value=xe},Qe=()=>{var wa,ui;const xe=document.createElement("canvas").getContext("2d"),ot=o.be("dropdown","item"),wt=(((ui=(wa=O.value)==null?void 0:wa.listRef)==null?void 0:ui.innerRef)||document).querySelector(`.${ot}`);if(wt===null||xe===null)return 0;const St=getComputedStyle(wt),Wn=Number.parseFloat(St.paddingLeft)+Number.parseFloat(St.paddingRight);return xe.font=`bold ${St.font.replace(new RegExp(`\\b${St.fontWeight}\\b`),"")}`,G.value.reduce((eC,tC)=>{const nC=xe.measureText(d(tC));return Math.max(nC.width,eC)},0)+Wn},tt=()=>{if(!C.value)return 0;const xe=window.getComputedStyle(C.value);return Number.parseFloat(xe.gap||"6px")},nt=x(()=>{const xe=tt(),ot=e.filterable?xe+Xd:0;return{maxWidth:`${L.value&&e.maxCollapseTags===1?m.selectionWidth-m.collapseItemWidth-xe-ot:m.selectionWidth-ot}px`}}),Te=x(()=>({maxWidth:`${m.selectionWidth}px`})),Ye=x(()=>Ve(e.modelValue)?e.modelValue.length===0&&!m.inputValue:e.filterable?!m.inputValue:!0),st=x(()=>{const xe=e.placeholder??n("el.select.placeholder");return e.multiple||!ne.value?xe:m.selectedLabel}),Ke=x(()=>{var xe,ot;return(ot=(xe=S.value)==null?void 0:xe.popperRef)==null?void 0:ot.contentRef}),et=x(()=>{if(e.multiple){const xe=e.modelValue.length;if(xe>0&&ye.value.has(e.modelValue[xe-1])){const{index:ot}=ye.value.get(e.modelValue[xe-1]);return ot}}else if(!v(e.modelValue)&&ye.value.has(e.modelValue)){const{index:xe}=ye.value.get(e.modelValue);return xe}return-1}),gt=x({get(){return ee.value&&(e.loading||!le.value||e.remote&&!!a.empty)&&(!b.value||!ha(m.previousQuery)||j.value)},set(xe){ee.value=xe}}),he=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(0,e.maxCollapseTags):m.cachedOptions:[]),Le=x(()=>e.multiple?e.collapseTags?m.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:pe,removeNewOption:Ee,selectNewOption:it,clearAllNewOption:Pt}=ate(e,m),Xt=xe=>{var ot;N.value||e.filterable&&ee.value&&xe&&!((ot=A.value)!=null&&ot.contains(xe.target))||(m.menuVisibleOnFocus?m.menuVisibleOnFocus=!1:ee.value=!ee.value)},Oe=()=>{m.inputValue.length>0&&!ee.value&&(ee.value=!0),pe(m.inputValue),Ie(()=>{Je(m.inputValue)})},Fe=_u(()=>{Oe(),b.value=!1},Z),Je=xe=>{m.previousQuery===xe||z.value||(m.previousQuery=xe,e.filterable&&ct(e.filterMethod)?e.filterMethod(xe):e.filterable&&e.remote&&ct(e.remoteMethod)&&e.remoteMethod(xe),e.defaultFirstOption&&(e.filterable||e.remote)&&G.value.length?Ie(hn):Ie(Et))},hn=()=>{const xe=G.value.filter(St=>!St.disabled&&St.type!=="Group"),ot=xe.find(St=>St.created),wt=xe[0];m.hoveringIndex=je(G.value,ot||wt)},zt=xe=>{sn(e.modelValue,xe)||t(yt,xe)},Zt=xe=>{t(at,xe),zt(xe),m.previousValue=e.multiple?String(xe):xe,Ie(()=>{if(e.multiple&&Ve(e.modelValue)){const ot=m.cachedOptions.slice(),wt=e.modelValue.map(St=>si(St,ot));sn(m.cachedOptions,wt)||(m.cachedOptions=wt)}else Jr(!0)})},je=(xe=[],ot)=>{if(!Mt(ot))return xe.indexOf(ot);const wt=e.valueKey;let St=-1;return xe.some((Wn,wa)=>_n(Wn,wt)===_n(ot,wt)?(St=wa,!0):!1),St},Ge=xe=>Mt(xe)?_n(xe,e.valueKey):xe,vt=()=>{Be()},Nn=()=>{m.selectionWidth=Number.parseFloat(window.getComputedStyle(C.value).width)},So=()=>{m.collapseItemWidth=L.value.getBoundingClientRect().width},Xa=()=>{var xe,ot;(ot=(xe=S.value)==null?void 0:xe.updatePopper)==null||ot.call(xe)},Qu=()=>{var xe,ot;(ot=(xe=k.value)==null?void 0:xe.updatePopper)==null||ot.call(xe)},er=xe=>{const ot=f(xe);if(e.multiple){let wt=e.modelValue.slice();const St=je(wt,ot);St>-1?(wt=[...wt.slice(0,St),...wt.slice(St+1)],m.cachedOptions.splice(St,1),Ee(xe)):(e.multipleLimit<=0||wt.length{let wt=e.modelValue.slice();const St=je(wt,f(ot));St>-1&&!N.value&&(wt=[...e.modelValue.slice(0,St),...e.modelValue.slice(St+1)],m.cachedOptions.splice(St,1),Zt(wt),t("remove-tag",f(ot)),Ee(ot)),xe.stopPropagation(),Go()},Go=()=>{var xe;(xe=T.value)==null||xe.focus()},Bf=()=>{var xe;if(ee.value){ee.value=!1,Ie(()=>{var ot;return(ot=T.value)==null?void 0:ot.blur()});return}(xe=T.value)==null||xe.blur()},zf=()=>{m.inputValue.length>0?m.inputValue="":ee.value=!1},Df=xe=>b8(xe,ot=>!m.cachedOptions.some(wt=>f(wt)===ot&&h(wt))),Hf=xe=>{const ot=Kt(xe);if(e.multiple&&ot!==we.delete&&m.inputValue.length===0){xe.preventDefault();const wt=e.modelValue.slice(),St=Df(wt);if(St<0)return;const Wn=wt[St];wt.splice(St,1);const wa=m.cachedOptions[St];m.cachedOptions.splice(St,1),Ee(wa),Zt(wt),t("remove-tag",Wn)}},Ff=()=>{let xe;Ve(e.modelValue)?xe=[]:xe=p.value,m.selectedLabel="",ee.value=!1,Zt(xe),t("clear"),Pt(),Go()},$l=(xe,ot=void 0)=>{const wt=G.value;if(!["forward","backward"].includes(xe)||N.value||wt.length<=0||ke.value||z.value)return;if(!ee.value)return Xt();kt(ot)&&(ot=m.hoveringIndex);let St=-1;xe==="forward"?(St=ot+1,St>=wt.length&&(St=0)):xe==="backward"&&(St=ot-1,(St<0||St>=wt.length)&&(St=wt.length-1));const Wn=wt[St];if(h(Wn)||Wn.type==="Group")return $l(xe,St);m.hoveringIndex=St,Xo(St)},Se=()=>{if(ee.value)~m.hoveringIndex&&G.value[m.hoveringIndex]&&er(G.value[m.hoveringIndex]);else return Xt()},Ze=xe=>{m.hoveringIndex=xe??-1},Et=()=>{if(!e.multiple)m.hoveringIndex=G.value.findIndex(xe=>Ge(f(xe))===Ge(e.modelValue));else{const xe=e.modelValue.length;if(xe>0){const ot=e.modelValue[xe-1];m.hoveringIndex=G.value.findIndex(wt=>Ge(ot)===Ge(f(wt)))}else m.hoveringIndex=-1}},Qt=xe=>{if(m.inputValue=xe.target.value,e.remote)b.value=!0,Fe();else return Oe()},kn=xe=>{ee.value=!1,B.value&&W(new FocusEvent("blur",xe))},zn=()=>(m.isBeforeHide=!1,Ie(()=>{~et.value&&Xo(et.value)})),Xo=xe=>{O.value.scrollToItem(xe)},si=(xe,ot)=>{const wt=Ge(xe);if(Ae.value.has(wt)){const{option:St}=Ae.value.get(wt);return St}if(ot&&ot.length){const St=ot.find(Wn=>Ge(f(Wn))===wt);if(St)return St}return{[c.value.value]:xe,[c.value.label]:xe}},tr=xe=>{var ot;return((ot=Ae.value.get(f(xe)))==null?void 0:ot.index)??-1},Jr=(xe=!1)=>{if(e.multiple)if(e.modelValue.length>0){const ot=m.cachedOptions.slice();m.cachedOptions.length=0,m.previousValue=e.modelValue.toString();for(const wt of e.modelValue){const St=si(wt,ot);m.cachedOptions.push(St)}}else m.cachedOptions=[],m.previousValue=void 0;else if(ne.value){m.previousValue=e.modelValue;const ot=G.value,wt=ot.findIndex(St=>Ge(f(St))===Ge(e.modelValue));~wt?m.selectedLabel=d(ot[wt]):(!m.selectedLabel||xe)&&(m.selectedLabel=Ge(e.modelValue))}else m.selectedLabel="",m.previousValue=void 0;Pt(),Be()};fe(()=>e.fitInputWidth,()=>{Be()}),fe(ee,xe=>{xe?(e.persistent||Be(),Je("")):(m.inputValue="",m.previousQuery=null,m.isBeforeHide=!0,m.menuVisibleOnFocus=!1,pe(""))}),fe(()=>e.modelValue,(xe,ot)=>{var wt;(!xe||Ve(xe)&&xe.length===0||e.multiple&&!sn(xe.toString(),m.previousValue)||!e.multiple&&Ge(xe)!==Ge(m.previousValue))&&Jr(!0),!sn(xe,ot)&&e.validateEvent&&((wt=s==null?void 0:s.validate)==null||wt.call(s,"change").catch(St=>ft(St)))},{deep:!0}),fe(()=>e.options,()=>{const xe=T.value;(!xe||xe&&document.activeElement!==xe)&&Jr()},{deep:!0,flush:"post"}),fe(()=>G.value,()=>(Be(),O.value&&Ie(O.value.resetScrollTop))),ma(()=>{m.isBeforeHide||Re()}),ma(()=>{const{valueKey:xe,options:ot}=e,wt=new Map;for(const St of ot){const Wn=f(St);let wa=Wn;if(Mt(wa)&&(wa=_n(Wn,xe)),wt.get(wa)){ft("ElSelectV2","The option values you provided seem to be duplicated, which may cause some problems, please check.");break}else wt.set(wa,!0)}}),mt(()=>{Jr()}),en(w,vt),en(C,Nn),en(P,Xa),en(I,Qu),en(L,So);let ii;return fe(()=>gt.value,xe=>{xe?ii=en(O,Xa).stop:(ii==null||ii(),ii=void 0),t("visible-change",xe)}),{inputId:u,collapseTagSize:Pe,currentPlaceholder:st,expanded:ee,emptyText:ce,popupHeight:ue,debounce:Z,allOptions:K,allOptionsValueMap:Ae,filteredOptions:G,iconComponent:se,iconReverse:Y,tagStyle:nt,collapseTagStyle:Te,popperSize:y,dropdownMenuVisible:gt,hasModelValue:ne,shouldShowPlaceholder:Ye,selectDisabled:N,selectSize:be,needStatusIcon:te,showClearBtn:de,states:m,isFocused:B,nsSelect:o,nsInput:l,inputRef:T,menuRef:O,tagMenuRef:I,tooltipRef:S,tagTooltipRef:k,selectRef:w,wrapperRef:P,selectionRef:C,prefixRef:M,suffixRef:A,collapseItemRef:L,popperRef:Ke,validateState:X,validateIcon:H,showTagList:he,collapseTagList:Le,debouncedOnInputChange:Fe,deleteTag:ec,getLabel:d,getValue:f,getDisabled:h,getValueKey:Ge,getIndex:tr,handleClear:Ff,handleClickOutside:kn,handleDel:Hf,handleEsc:zf,focus:Go,blur:Bf,handleMenuEnter:zn,handleResize:vt,resetSelectionWidth:Nn,updateTooltip:Xa,updateTagTooltip:Qu,updateOptions:Re,toggleMenu:Xt,scrollTo:Xo,onInput:Qt,onKeyboardNavigate:$l,onKeyboardSelect:Se,onSelect:er,onHover:Ze,handleCompositionStart:q,handleCompositionEnd:U,handleCompositionUpdate:F}};var lte=D({name:"ElSelectV2",components:{ElSelectMenu:nte,ElTag:dl,ElTooltip:Fn,ElIcon:ze},directives:{ClickOutside:Yl},props:Kee,emits:jee,setup(e,{emit:t}){const n=x(()=>{const{modelValue:u,multiple:c}=e,d=c?[]:void 0;return Ve(u)?c?u:d:c?d:u}),a=ote(Nt({...Bn(e),modelValue:n}),t),{calculatorRef:o,inputStyle:l}=ah(),r=Un();bt(rv,{props:Nt({...Bn(e),height:a.popupHeight,modelValue:n}),expanded:a.expanded,tooltipRef:a.tooltipRef,contentId:r,onSelect:a.onSelect,onHover:a.onHover,onKeyboardNavigate:a.onKeyboardNavigate,onKeyboardSelect:a.onKeyboardSelect});const s=x(()=>e.multiple?a.states.cachedOptions.map(u=>a.getLabel(u)):a.states.selectedLabel);return{...a,modelValue:n,selectedLabel:s,calculatorRef:o,inputStyle:l,contentId:r,BORDER_HORIZONTAL_WIDTH:O6}}});const rte=["id","value","autocomplete","tabindex","aria-expanded","aria-label","disabled","aria-controls","aria-activedescendant","readonly","name"],ste=["textContent"],ite={key:1};function ute(e,t,n,a,o,l){const r=$t("el-tag"),s=$t("el-tooltip"),u=$t("el-icon"),c=$t("el-select-menu"),d=Ap("click-outside");return dt((_(),$("div",{ref:"selectRef",class:R([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:t[15]||(t[15]=f=>e.states.inputHovering=!0),onMouseleave:t[16]||(t[16]=f=>e.states.inputHovering=!1)},[Q(s,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[14]||(t[14]=f=>e.states.isBeforeHide=!1)},{default:ae(()=>{var f;return[E("div",{ref:"wrapperRef",class:R([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[11]||(t[11]=Xe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent"]))},[e.$slots.prefix?(_(),$("div",{key:0,ref:"prefixRef",class:R(e.nsSelect.e("prefix"))},[oe(e.$slots,"prefix")],2)):re("v-if",!0),E("div",{ref:"selectionRef",class:R([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?oe(e.$slots,"tag",{key:0,data:e.states.cachedOptions,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var h,g,p,v,m,y,b,w,C,S,k,T,M;return[(_(!0),$(He,null,Ct(e.showTagList,A=>(_(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:We(e.tagStyle),onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[_t(_e(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.cachedOptions.length>e.maxCollapseTags?(_(),ie(s,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":((h=e.tagTooltip)==null?void 0:h.fallbackPlacements)??["bottom","top","right","left"],effect:((g=e.tagTooltip)==null?void 0:g.effect)??e.effect,placement:((p=e.tagTooltip)==null?void 0:p.placement)??"bottom","popper-class":((v=e.tagTooltip)==null?void 0:v.popperClass)??e.popperClass,"popper-style":((m=e.tagTooltip)==null?void 0:m.popperStyle)??e.popperStyle,teleported:((y=e.tagTooltip)==null?void 0:y.teleported)??e.teleported,"append-to":((b=e.tagTooltip)==null?void 0:b.appendTo)??e.appendTo,"popper-options":((w=e.tagTooltip)==null?void 0:w.popperOptions)??e.popperOptions,transition:(C=e.tagTooltip)==null?void 0:C.transition,"show-after":(S=e.tagTooltip)==null?void 0:S.showAfter,"hide-after":(k=e.tagTooltip)==null?void 0:k.hideAfter,"auto-close":(T=e.tagTooltip)==null?void 0:T.autoClose,offset:(M=e.tagTooltip)==null?void 0:M.offset},{default:ae(()=>[E("div",{ref:"collapseItemRef",class:R(e.nsSelect.e("selected-item"))},[Q(r,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:We(e.collapseTagStyle),"disable-transitions":""},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))}," + "+_e(e.states.cachedOptions.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:ae(()=>[E("div",{ref:"tagMenuRef",class:R(e.nsSelect.e("selection"))},[(_(!0),$(He,null,Ct(e.collapseTagList,A=>(_(),$("div",{key:e.getValueKey(e.getValue(A)),class:R(e.nsSelect.e("selected-item"))},[Q(r,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(A),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:O=>e.deleteTag(O,A)},{default:ae(()=>[E("span",{class:R(e.nsSelect.e("tags-text"))},[oe(e.$slots,"label",{index:e.getIndex(A),label:e.getLabel(A),value:e.getValue(A)},()=>[_t(_e(e.getLabel(A)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):re("v-if",!0)]}):re("v-if",!0),E("div",{class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[E("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,style:We(e.inputStyle),autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-autocomplete":"none","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:R([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox","aria-controls":e.contentId,"aria-activedescendant":e.states.hoveringIndex>=0?`${e.contentId}-${e.states.hoveringIndex}`:"",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:t[0]||(t[0]=(...h)=>e.onInput&&e.onInput(...h)),onChange:t[1]||(t[1]=Xe(()=>{},["stop"])),onCompositionstart:t[2]||(t[2]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[3]||(t[3]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[4]||(t[4]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onKeydown:[t[5]||(t[5]=rn(Xe(h=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),t[6]||(t[6]=rn(Xe(h=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),t[7]||(t[7]=rn(Xe((...h)=>e.onKeyboardSelect&&e.onKeyboardSelect(...h),["stop","prevent"]),["enter"])),t[8]||(t[8]=rn(Xe((...h)=>e.handleEsc&&e.handleEsc(...h),["stop","prevent"]),["esc"])),t[9]||(t[9]=rn(Xe((...h)=>e.handleDel&&e.handleDel(...h),["stop"]),["delete"]))],onClick:t[10]||(t[10]=Xe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,rte),e.filterable?(_(),$("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:R(e.nsSelect.e("input-calculator")),textContent:_e(e.states.inputValue)},null,10,ste)):re("v-if",!0)],2),e.shouldShowPlaceholder?(_(),$("div",{key:1,class:R([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?oe(e.$slots,"label",{key:0,index:((f=e.allOptionsValueMap.get(e.modelValue))==null?void 0:f.index)??-1,label:e.currentPlaceholder,value:e.modelValue},()=>[E("span",null,_e(e.currentPlaceholder),1)]):(_(),$("span",ite,_e(e.currentPlaceholder),1))],2)):re("v-if",!0)],2),E("div",{ref:"suffixRef",class:R(e.nsSelect.e("suffix"))},[e.iconComponent?dt((_(),ie(u,{key:0,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])),[[At,!e.showClearBtn]]):re("v-if",!0),e.showClearBtn&&e.clearIcon?(_(),ie(u,{key:1,class:R([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:Xe(e.handleClear,["prevent","stop"])},{default:ae(()=>[(_(),ie(ut(e.clearIcon)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(_(),ie(u,{key:2,class:R([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:ae(()=>[(_(),ie(ut(e.validateIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],2)]}),content:ae(()=>[Q(c,{id:e.contentId,ref:"menuRef",data:e.filteredOptions,width:e.popperSize-e.BORDER_HORIZONTAL_WIDTH,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn,"aria-label":e.ariaLabel},ga({default:ae(f=>[oe(e.$slots,"default",il(ul(f)))]),_:2},[e.$slots.header?{name:"header",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","header")),onClick:t[12]||(t[12]=Xe(()=>{},["stop"]))},[oe(e.$slots,"header")],2)]),key:"0"}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","loading"))},[oe(e.$slots,"loading")],2)]),key:"1"}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","empty"))},[oe(e.$slots,"empty",{},()=>[E("span",null,_e(e.emptyText),1)])],2)]),key:"2"}:void 0,e.$slots.footer?{name:"footer",fn:ae(()=>[E("div",{class:R(e.nsSelect.be("dropdown","footer")),onClick:t[13]||(t[13]=Xe(()=>{},["stop"]))},[oe(e.$slots,"footer")],2)]),key:"3"}:void 0]),1032,["id","data","width","hovering-index","scrollbar-always-on","aria-label"])]),_:3},8,["visible","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","placement","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],34)),[[d,e.handleClickOutside,e.popperRef]])}var cte=$n(lte,[["render",ute]]);const dte=rt(cte),fte=Ce({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:J([Number,Object])}}),pte=Ce({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}});var hte=D({name:"ElSkeletonItem",__name:"skeleton-item",props:pte,setup(e){const t=ve("skeleton");return(n,a)=>(_(),$("div",{class:R([i(t).e("item"),i(t).e(e.variant)])},[e.variant==="image"?(_(),ie(i(Py),{key:0})):re("v-if",!0)],2))}}),Od=hte,vte=D({name:"ElSkeleton",__name:"skeleton",props:fte,setup(e,{expose:t}){const n=e,a=ve("skeleton"),o=n$(Bt(n,"loading"),n.throttle);return t({uiLoading:o}),(l,r)=>i(o)?(_(),$("div",pt({key:0,class:[i(a).b(),i(a).is("animated",e.animated)]},l.$attrs),[(_(!0),$(He,null,Ct(e.count,s=>(_(),$(He,{key:s},[i(o)?oe(l.$slots,"template",{key:s},()=>[Q(Od,{class:R(i(a).is("first")),variant:"p"},null,8,["class"]),(_(!0),$(He,null,Ct(e.rows,u=>(_(),ie(Od,{key:u,class:R([i(a).e("paragraph"),i(a).is("last",u===e.rows&&e.rows>1)]),variant:"p"},null,8,["class"]))),128))]):re("v-if",!0)],64))),128))],16)):oe(l.$slots,"default",il(pt({key:1},l.$attrs)))}}),mte=vte;const gte=rt(mte,{SkeletonItem:Od}),yte=ln(Od),p5=Symbol("sliderContextKey"),bte=Ce({modelValue:{type:J([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:J([Number,String]),default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:On,inputSize:On,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:J(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:J(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Uo,default:"top"},marks:{type:J(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...ia(["ariaLabel"])}),x0=e=>De(e)||Ve(e)&&e.every(De),wte={[at]:x0,[Sn]:x0,[yt]:x0},Cte=(e,t,n)=>{const a=V();return mt(async()=>{e.range?(Ve(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!De(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Vt(window,"resize",n),await Ie(),n()}),{sliderWrapper:a}},_te=e=>{const t=x(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,a)=>n-a).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]);return ma(()=>{if(e.step==="mark"&&!e.marks&&ft("ElSlider","marks prop must be provided when step is mark"),e.marks){const n=Object.keys(e.marks),a=t.value.map(l=>l.point),o=n.filter(l=>{const r=Number.parseFloat(l);return Number.isNaN(r)||!a.includes(r)});o.length>0&&ft("ElSlider",`Some marks keys are invalid (not a number or out of [min, max]): [${o.map(l=>`'${l}'`).join(", ")}] and will be ignored.`)}}),t},Ste=(e,t,n)=>{const{formItem:a}=Kn(),o=qt(),l=V(),r=V(),s={firstButton:l,secondButton:r},u=dn(),c=x(()=>Math.min(t.firstValue,t.secondValue)),d=x(()=>Math.max(t.firstValue,t.secondValue)),f=x(()=>e.range?`${100*(d.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),h=x(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=x(()=>e.vertical?{height:e.height}:{}),p=x(()=>e.vertical?{height:f.value,bottom:h.value}:{width:f.value,left:h.value}),v=()=>{o.value&&(t.sliderSize=o.value.getBoundingClientRect()[e.vertical?"height":"width"])},m=I=>{const L=e.min+I*(e.max-e.min)/100;if(!e.range)return l;let z;return Math.abs(c.value-L)t.secondValue?"firstButton":"secondButton",s[z]},y=I=>{const L=m(I);return L.value.setPosition(I),L},b=I=>{t.firstValue=I??e.min,C(e.range?[c.value,d.value]:I??e.min)},w=I=>{t.secondValue=I,e.range&&C([c.value,d.value])},C=I=>{n(at,I),n(Sn,I)},S=async()=>{await Ie(),n(yt,e.range?[c.value,d.value]:e.modelValue)},k=I=>{var z,q,U,F;if(u.value||t.dragging)return;v();let L=0;if(e.vertical){const N=((q=(z=I.touches)==null?void 0:z.item(0))==null?void 0:q.clientY)??I.clientY;L=(o.value.getBoundingClientRect().bottom-N)/t.sliderSize*100}else L=((((F=(U=I.touches)==null?void 0:U.item(0))==null?void 0:F.clientX)??I.clientX)-o.value.getBoundingClientRect().left)/t.sliderSize*100;if(!(L<0||L>100))return y(L)};return{elFormItem:a,slider:o,firstButton:l,secondButton:r,sliderDisabled:u,minValue:c,maxValue:d,runwayStyle:g,barStyle:p,resetSize:v,setPosition:y,emitChange:S,onSliderWrapperPrevent:I=>{var L,z;((L=s.firstButton.value)!=null&&L.dragging||(z=s.secondButton.value)!=null&&z.dragging)&&I.preventDefault()},onSliderClick:I=>{k(I)&&S()},onSliderDown:async I=>{const L=k(I);L&&(await Ie(),L.value.onButtonDown(I))},onSliderMarkerDown:I=>{u.value||t.dragging||y(I)&&S()},setFirstValue:b,setSecondValue:w}},xte=(e,t,n,a)=>({stops:x(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step==="mark"||e.step===0)return e.step===0&&ft("ElSlider","step should not be 0."),[];const r=Math.ceil((e.max-e.min)/e.step),s=100*e.step/(e.max-e.min),u=Array.from({length:r-1}).map((c,d)=>(d+1)*s);return e.range?u.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(a.value-e.min)/(e.max-e.min)):u.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:r=>e.vertical?{bottom:`${r}%`}:{left:`${r}%`}}),kte=(e,t,n,a,o,l)=>{const r=c=>{o(at,c),o(Sn,c)},s=()=>e.range?![n.value,a.value].every((c,d)=>c===t.oldValue[d]):e.modelValue!==t.oldValue,u=()=>{var d,f;e.min>e.max&&on("Slider","min should not be greater than max.");const c=e.modelValue;e.range&&Ve(c)?c[1]e.max?r([e.max,e.max]):c[0]e.max?r([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],s()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(h=>ft(h))),t.oldValue=c.slice())):!e.range&&De(c)&&!Number.isNaN(c)&&(ce.max?r(e.max):(t.firstValue=c,s()&&(e.validateEvent&&((f=l==null?void 0:l.validate)==null||f.call(l,"change").catch(h=>ft(h))),t.oldValue=c)))};u(),fe(()=>t.dragging,c=>{c||u()}),fe(()=>e.modelValue,(c,d)=>{t.dragging||Ve(c)&&Ve(d)&&c.every((f,h)=>f===d[h])&&t.firstValue===c[0]&&t.secondValue===c[1]||u()},{deep:!0}),fe(()=>[e.min,e.max],()=>{u()})},Ete=(e,t,n)=>{const a=V(),o=V(!1),l=x(()=>t.value instanceof Function);return{tooltip:a,tooltipVisible:o,formatValue:x(()=>l.value&&t.value(e.modelValue)||e.modelValue),displayTooltip:Ko(()=>{n.value&&(o.value=!0)},50),hideTooltip:Ko(()=>{n.value&&(o.value=!1)},50)}},Tte=(e,t,n)=>{const{disabled:a,min:o,max:l,step:r,showTooltip:s,persistent:u,precision:c,sliderSize:d,formatTooltip:f,emitChange:h,resetSize:g,updateDragging:p,markList:v}=Ne(p5),{tooltip:m,tooltipVisible:y,formatValue:b,displayTooltip:w,hideTooltip:C}=Ete(e,f,s),S=V(),k=x(()=>`${(e.modelValue-o.value)/(l.value-o.value)*100}%`),T=x(()=>e.vertical?{bottom:k.value}:{left:k.value}),M=x(()=>r.value==="mark"&&v.value.length>0),A=()=>{t.hovering=!0,w()},O=()=>{t.hovering=!1,t.dragging||C()},I=ue=>{a.value||(ue.preventDefault(),j(ue),window.addEventListener("mousemove",G),window.addEventListener("touchmove",G),window.addEventListener("mouseup",ee),window.addEventListener("touchend",ee),window.addEventListener("contextmenu",ee),S.value.focus())},L=ue=>{a.value||(t.newPosition=Number.parseFloat(k.value)+ue/(l.value-o.value)*100,te(t.newPosition),h())},z=ue=>{if(a.value||!v.value.length)return;const ne=e.modelValue,de=Number.EPSILON,se=Math.abs(ue);let Y;if(ue>0){const X=v.value.findIndex(H=>H.point>ne+de);if(X!==-1){const H=Math.min(X+se-1,v.value.length-1);Y=v.value[H].point}}else{let X=-1;for(let H=v.value.length-1;H>=0;H--)if(v.value[H].point{M.value?z(-1):De(r.value)&&L(-r.value)},U=()=>{M.value?z(1):De(r.value)&&L(r.value)},F=()=>{M.value?z(-4):De(r.value)&&L(-r.value*4)},N=()=>{M.value?z(4):De(r.value)&&L(r.value*4)},P=()=>{a.value||(te(0),h())},B=()=>{a.value||(te(100),h())},W=ue=>{const ne=Kt(ue);let de=!0;switch(ne){case we.left:case we.down:q();break;case we.right:case we.up:U();break;case we.home:P();break;case we.end:B();break;case we.pageDown:F();break;case we.pageUp:N();break;default:de=!1;break}de&&ue.preventDefault()},K=ue=>{let ne,de;return ue.type.startsWith("touch")?(de=ue.touches[0].clientY,ne=ue.touches[0].clientX):(de=ue.clientY,ne=ue.clientX),{clientX:ne,clientY:de}},j=ue=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:de}=K(ue);e.vertical?t.startY=de:t.startX=ne,t.startPosition=Number.parseFloat(k.value),t.newPosition=t.startPosition},G=ue=>{if(t.dragging){t.isClick=!1,w(),g();let ne;const{clientX:de,clientY:se}=K(ue);e.vertical?(t.currentY=se,ne=(t.startY-t.currentY)/d.value*100):(t.currentX=de,ne=(t.currentX-t.startX)/d.value*100),t.newPosition=t.startPosition+ne,te(t.newPosition)}},ee=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||C(),t.isClick||te(t.newPosition),h()},0),window.removeEventListener("mousemove",G),window.removeEventListener("touchmove",G),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),window.removeEventListener("contextmenu",ee))},te=async ue=>{if(ue===null||Number.isNaN(+ue))return;ue=gr(ue,0,100);let ne;if(r.value==="mark")v.value.length===0?ne=ue<=50?o.value:l.value:ne=v.value.reduce((de,se)=>Math.abs(se.position-ue)t.dragging,ue=>{p(ue)}),Vt(S,"touchstart",I,{passive:!1}),{disabled:a,button:S,tooltip:m,tooltipVisible:y,showTooltip:s,persistent:u,wrapperStyle:T,formatValue:b,handleMouseEnter:A,handleMouseLeave:O,onButtonDown:I,onKeyDown:W,setPosition:te}},Mte=Ce({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Uo,default:"top"}}),Ote={[at]:e=>De(e)},$te=["tabindex"];var Ate=D({name:"ElSliderButton",__name:"button",props:Mte,emits:Ote,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),r=Nt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:a.modelValue}),s=x(()=>f.value?h.value:!1),{disabled:u,button:c,tooltip:d,showTooltip:f,persistent:h,tooltipVisible:g,wrapperStyle:p,formatValue:v,handleMouseEnter:m,handleMouseLeave:y,onButtonDown:b,onKeyDown:w,setPosition:C}=Tte(a,r,o),{hovering:S,dragging:k}=Bn(r);return t({onButtonDown:b,onKeyDown:w,setPosition:C,hovering:S,dragging:k}),(T,M)=>(_(),$("div",{ref_key:"button",ref:c,class:R([i(l).e("button-wrapper"),{hover:i(S),dragging:i(k)}]),style:We(i(p)),tabindex:i(u)?void 0:0,onMouseenter:M[0]||(M[0]=(...A)=>i(m)&&i(m)(...A)),onMouseleave:M[1]||(M[1]=(...A)=>i(y)&&i(y)(...A)),onMousedown:M[2]||(M[2]=(...A)=>i(b)&&i(b)(...A)),onFocus:M[3]||(M[3]=(...A)=>i(m)&&i(m)(...A)),onBlur:M[4]||(M[4]=(...A)=>i(y)&&i(y)(...A)),onKeydown:M[5]||(M[5]=(...A)=>i(w)&&i(w)(...A))},[Q(i(Fn),{ref_key:"tooltip",ref:d,visible:i(g),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!i(f),persistent:s.value},{content:ae(()=>[E("span",null,_e(i(v)),1)]),default:ae(()=>[E("div",{class:R([i(l).e("button"),{hover:i(S),dragging:i(k)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,$te))}}),Fg=Ate;const Rte=Ce({mark:{type:J([String,Object]),default:void 0}});var Nte=D({name:"ElSliderMarker",props:Rte,setup(e){const t=ve("slider"),n=x(()=>Ue(e.mark)?e.mark:e.mark.label),a=x(()=>Ue(e.mark)?void 0:e.mark.style);return()=>qe("div",{class:t.e("marks-text"),style:a.value},n.value)}});const Pte=["id","role","aria-label","aria-labelledby"],Ite={key:1};var Lte=D({name:"ElSlider",__name:"slider",props:bte,emits:wte,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("slider"),{t:r}=xt(),s=Nt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:u,slider:c,firstButton:d,secondButton:f,sliderDisabled:h,minValue:g,maxValue:p,runwayStyle:v,barStyle:m,resetSize:y,emitChange:b,onSliderWrapperPrevent:w,onSliderClick:C,onSliderDown:S,onSliderMarkerDown:k,setFirstValue:T,setSecondValue:M}=Ste(a,s,o),{stops:A,getStopStyle:O}=xte(a,s,g,p),{inputId:I,isLabeledByFormItem:L}=za(a,{formItemContext:u}),z=En(),q=x(()=>a.inputSize||z.value),U=x(()=>a.showInput&&!a.range&&a.step!=="mark"),F=x(()=>a.ariaLabel||r("el.slider.defaultLabel",{min:a.min,max:a.max})),N=x(()=>a.range?a.rangeStartLabel||r("el.slider.defaultRangeStartLabel"):F.value),P=x(()=>a.formatValueText?a.formatValueText(ue.value):`${ue.value}`),B=x(()=>a.rangeEndLabel||r("el.slider.defaultRangeEndLabel")),W=x(()=>a.formatValueText?a.formatValueText(ne.value):`${ne.value}`),K=x(()=>[l.b(),l.m(z.value),l.is("vertical",a.vertical),{[l.m("with-input")]:U.value}]),j=_te(a);kte(a,s,g,p,o,u);const G=x(()=>De(a.step)?a.step:1),ee=x(()=>{const Y=De(a.step)?a.step:1,X=[a.min,a.max,Y].map(H=>{const Z=`${H}`.split(".")[1];return Z?Z.length:0});return Math.max.apply(null,X)}),{sliderWrapper:te}=Cte(a,s,y),{firstValue:ue,secondValue:ne,sliderSize:de}=Bn(s),se=Y=>{s.dragging=Y};return Vt(te,"touchstart",w,{passive:!1}),Vt(te,"touchmove",w,{passive:!1}),bt(p5,{...Bn(a),sliderSize:de,disabled:h,precision:ee,markList:j,emitChange:b,resetSize:y,updateDragging:se}),t({onSliderClick:C}),(Y,X)=>{var H,Z;return _(),$("div",{id:Y.range?i(I):void 0,ref_key:"sliderWrapper",ref:te,class:R(K.value),role:Y.range?"group":void 0,"aria-label":Y.range&&!i(L)?F.value:void 0,"aria-labelledby":Y.range&&i(L)?(H=i(u))==null?void 0:H.labelId:void 0},[E("div",{ref_key:"slider",ref:c,class:R([i(l).e("runway"),{"show-input":U.value},i(l).is("disabled",i(h))]),style:We(i(v)),onMousedown:X[0]||(X[0]=(...le)=>i(S)&&i(S)(...le)),onTouchstartPassive:X[1]||(X[1]=(...le)=>i(S)&&i(S)(...le))},[E("div",{class:R(i(l).e("bar")),style:We(i(m))},null,6),Q(Fg,{id:Y.range?void 0:i(I),ref_key:"firstButton",ref:d,"model-value":i(ue),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":Y.range||!i(L)?N.value:void 0,"aria-labelledby":!Y.range&&i(L)?(Z=i(u))==null?void 0:Z.labelId:void 0,"aria-valuemin":Y.min,"aria-valuemax":Y.range?i(ne):Y.max,"aria-valuenow":i(ue),"aria-valuetext":P.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),Y.range?(_(),ie(Fg,{key:0,ref_key:"secondButton",ref:f,"model-value":i(ne),vertical:Y.vertical,"tooltip-class":Y.tooltipClass,placement:Y.placement,role:"slider","aria-label":B.value,"aria-valuemin":i(ue),"aria-valuemax":Y.max,"aria-valuenow":i(ne),"aria-valuetext":W.value,"aria-orientation":Y.vertical?"vertical":"horizontal","aria-disabled":i(h),"onUpdate:modelValue":i(M)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):re("v-if",!0),Y.showStops?(_(),$("div",Ite,[(_(!0),$(He,null,Ct(i(A),(le,ce)=>(_(),$("div",{key:ce,class:R(i(l).e("stop")),style:We(i(O)(le))},null,6))),128))])):re("v-if",!0),i(j).length>0?(_(),$(He,{key:2},[E("div",null,[(_(!0),$(He,null,Ct(i(j),(le,ce)=>(_(),$("div",{key:ce,style:We(i(O)(le.position)),class:R([i(l).e("stop"),i(l).e("marks-stop")])},null,6))),128))]),E("div",{class:R(i(l).e("marks"))},[(_(!0),$(He,null,Ct(i(j),(le,ce)=>(_(),ie(i(Nte),{key:ce,mark:le.mark,style:We(i(O)(le.position)),onMousedown:Xe(ge=>i(k)(le.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):re("v-if",!0)],38),U.value?(_(),ie(i(Hw),{key:0,ref:"input","model-value":i(ue),class:R(i(l).e("input")),step:G.value,disabled:i(h),controls:Y.showInputControls,min:Y.min,max:Y.max,precision:ee.value,size:q.value,"onUpdate:modelValue":i(T),onChange:i(b)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):re("v-if",!0)],10,Pte)}}}),Vte=Lte;const Bte=rt(Vte),zte=Ce({prefixCls:{type:String}}),Kg=D({name:"ElSpaceItem",props:zte,setup(e,{slots:t}){const n=ve("space"),a=x(()=>`${e.prefixCls||n.b()}__item`);return()=>qe("div",{class:a.value},oe(t,"default"))}}),Wg={small:8,default:12,large:16};function Dte(e){const t=ve("space"),n=x(()=>[t.b(),t.m(e.direction),e.class]),a=V(0),o=V(0),l=x(()=>[e.wrap||e.fill?{flexWrap:"wrap"}:{},{alignItems:e.alignment},{rowGap:`${o.value}px`,columnGap:`${a.value}px`},e.style]),r=x(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return ma(()=>{const{size:s="small",wrap:u,direction:c,fill:d}=e;if(Ve(s)){const[f=0,h=0]=s;a.value=f,o.value=h}else{let f;De(s)?f=s:f=Wg[s||"small"]||Wg.small,(u||d)&&c==="horizontal"?a.value=o.value=f:c==="horizontal"?(a.value=f,o.value=0):(o.value=f,a.value=0)}}),{classes:n,containerStyle:l,itemStyle:r}}const Hte=Ce({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:J([String,Object,Array]),default:""},style:{type:J([String,Array,Object]),default:""},alignment:{type:J(String),default:"center"},prefixCls:{type:String},spacer:{type:J([Object,String,Number,Array]),default:null,validator:e=>Wt(e)||De(e)||Ue(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:vo,validator:e=>De(e)||Ve(e)&&e.length===2&&e.every(De)}}),Fte=D({name:"ElSpace",props:Hte,setup(e,{slots:t}){const{classes:n,containerStyle:a,itemStyle:o}=Dte(e);function l(r,s="",u=[]){const{prefixCls:c}=e;return r.forEach((d,f)=>{C2(d)?Ve(d.children)&&d.children.forEach((h,g)=>{C2(h)&&Ve(h.children)?l(h.children,`${s+g}-`,u):Wt(h)&&(h==null?void 0:h.type)===wn?u.push(h):u.push(Q(Kg,{style:o.value,prefixCls:c,key:`nested-${s+g}`},{default:()=>[h]},Ja.PROPS|Ja.STYLE,["style","prefixCls"]))}):tA(d)&&u.push(Q(Kg,{style:o.value,prefixCls:c,key:`LoopKey${s+f}`},{default:()=>[d]},Ja.PROPS|Ja.STYLE,["style","prefixCls"]))}),u}return()=>{const{spacer:r,direction:s}=e,u=oe(t,"default",{key:0},()=>[]);if((u.children??[]).length===0)return null;if(Ve(u.children)){let c=l(u.children);if(r){const d=c.length-1;c=c.reduce((f,h,g)=>{const p=[...f,h];return g!==d&&p.push(Q("span",{style:[o.value,s==="vertical"?"width: 100%":null],key:g},[Wt(r)?r:_t(r,Ja.TEXT)],Ja.STYLE)),p},[])}return Q("div",{class:n.value,style:a.value},c,Ja.STYLE|Ja.CLASS)}return u.children}}}),Kte=rt(Fte),Wte=Ce({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:J([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:J([String,Object,Array])}});var jte=D({name:"ElStatistic",__name:"statistic",props:Wte,setup(e,{expose:t}){const n=e,a=ve("statistic"),o=x(()=>{const{value:l,formatter:r,precision:s,decimalSeparator:u,groupSeparator:c}=n;if(ct(r))return r(l);if(!De(l)||Number.isNaN(l))return l;let[d,f=""]=String(l).split(".");return f=f.padEnd(s,"0").slice(0,s>0?s:0),d=d.replace(/\B(?=(\d{3})+(?!\d))/g,c),[d,f].join(f?u:"")});return t({displayValue:o}),(l,r)=>(_(),$("div",{class:R(i(a).b())},[l.$slots.title||e.title?(_(),$("div",{key:0,class:R(i(a).e("head"))},[oe(l.$slots,"title",{},()=>[_t(_e(e.title),1)])],2)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[l.$slots.prefix||e.prefix?(_(),$("div",{key:0,class:R(i(a).e("prefix"))},[oe(l.$slots,"prefix",{},()=>[E("span",null,_e(e.prefix),1)])],2)):re("v-if",!0),E("span",{class:R(i(a).e("number")),style:We(e.valueStyle)},_e(o.value),7),l.$slots.suffix||e.suffix?(_(),$("div",{key:1,class:R(i(a).e("suffix"))},[oe(l.$slots,"suffix",{},()=>[E("span",null,_e(e.suffix),1)])],2)):re("v-if",!0)],2)],2))}}),qte=jte;const h5=rt(qte),Ute=Ce({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:J([Number,Object]),default:0},valueStyle:{type:J([String,Object,Array])}}),Yte={finish:()=>!0,[yt]:e=>De(e)},Gte=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],jg=e=>De(e)?new Date(e).getTime():e.valueOf(),qg=(e,t)=>{let n=e;return Gte.reduce((a,[o,l])=>{const r=new RegExp(`${o}+(?![^\\[\\]]*\\])`,"g");if(r.test(a)){const s=Math.floor(n/l);return n-=s*l,a.replace(r,u=>String(s).padStart(u.length,"0"))}return a},t).replace(/\[([^\]]*)]/g,"$1")};var Xte=D({name:"ElCountdown",__name:"countdown",props:Ute,emits:Yte,setup(e,{expose:t,emit:n}){const a=e,o=n;let l;const r=V(0),s=x(()=>qg(r.value,a.format)),u=f=>qg(f,a.format),c=()=>{l&&(ml(l),l=void 0)},d=()=>{const f=jg(a.value),h=()=>{let g=f-Date.now();o(yt,g),g<=0?(g=0,c(),o("finish")):l=Ua(h),r.value=g};l=Ua(h)};return mt(()=>{r.value=jg(a.value)-Date.now(),fe(()=>[a.value,a.format],()=>{c(),d()},{immediate:!0})}),Lt(()=>{c()}),t({displayValue:s}),(f,h)=>(_(),ie(i(h5),{value:r.value,title:e.title,prefix:e.prefix,suffix:e.suffix,"value-style":e.valueStyle,formatter:u},ga({_:2},[Ct(f.$slots,(g,p)=>({name:p,fn:ae(()=>[oe(f.$slots,p)])}))]),1032,["value","title","prefix","suffix","value-style"]))}}),Jte=Xte;const Zte=rt(Jte),Qte=Ce({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),ene={[yt]:(e,t)=>[e,t].every(De)},v5="ElSteps",tne=Ce({title:{type:String,default:""},icon:{type:Ft},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}});var nne=D({name:"ElSteps",__name:"steps",props:Qte,emits:ene,setup(e,{emit:t}){const n=e,a=t,o=ve("steps"),{children:l,addChild:r,removeChild:s,ChildrenSorter:u}=mf(ht(),"ElStep");return fe(l,()=>{l.value.forEach((c,d)=>{c.setIndex(d)})}),bt(v5,{props:n,steps:l,addStep:r,removeStep:s}),fe(()=>n.active,(c,d)=>{a(yt,c,d)}),(c,d)=>(_(),$("div",{class:R([i(o).b(),i(o).m(e.simple?"simple":e.direction)])},[oe(c.$slots,"default"),Q(i(u))],2))}}),ane=nne,one=D({name:"ElStep",__name:"item",props:tne,setup(e){const t=e,n=ve("step"),a=V(-1),o=V({}),l=V(""),r=Ne(v5),s=ht();let u=0,c=0;mt(()=>{fe([()=>r.props.active,()=>r.props.processStatus,()=>r.props.finishStatus],([M],[A])=>{c=A||0,u=M-c,k(M)},{immediate:!0})});const d=x(()=>t.status||l.value),f=x(()=>{const M=r.steps.value[a.value-1];return M?M.internalStatus.value:"wait"}),h=x(()=>r.props.alignCenter),g=x(()=>r.props.direction==="vertical"),p=x(()=>r.props.simple),v=x(()=>r.steps.value.length),m=x(()=>{var M;return((M=r.steps.value[v.value-1])==null?void 0:M.uid)===s.uid}),y=x(()=>p.value?"":r.props.space),b=x(()=>[n.b(),n.is(p.value?"simple":r.props.direction),n.is("flex",m.value&&!y.value&&!h.value),n.is("center",h.value&&!g.value&&!p.value)]),w=x(()=>{const M={flexBasis:De(y.value)?`${y.value}px`:y.value?y.value:`${100/(v.value-(h.value?0:1))}%`};return g.value||m.value&&(M.maxWidth=`${100/v.value}%`),M}),C=M=>{a.value=M},S=M=>{const A=M==="wait",O={transitionDelay:`${Math.abs(u)===1?0:u>0?(a.value+1-c)*150:-(a.value+1-r.props.active)*150}ms`},I=M===r.props.processStatus||A?0:100;O.borderWidth=I&&!p.value?"1px":0,O[r.props.direction==="vertical"?"height":"width"]=`${I}%`,o.value=O},k=M=>{M>a.value?l.value=r.props.finishStatus:M===a.value&&f.value!=="error"?l.value=r.props.processStatus:l.value="wait";const A=r.steps.value[a.value-1];A&&A.calcProgress(l.value)},T={uid:s.uid,getVnode:()=>s.vnode,currentStatus:d,internalStatus:l,setIndex:C,calcProgress:S};return r.addStep(T),Lt(()=>{r.removeStep(T)}),(M,A)=>(_(),$("div",{style:We(w.value),class:R(b.value)},[re(" icon & line "),E("div",{class:R([i(n).e("head"),i(n).is(d.value)])},[p.value?re("v-if",!0):(_(),$("div",{key:0,class:R(i(n).e("line"))},[E("i",{class:R(i(n).e("line-inner")),style:We(o.value)},null,6)],2)),E("div",{class:R([i(n).e("icon"),i(n).is(e.icon||M.$slots.icon?"icon":"text")])},[oe(M.$slots,"icon",{},()=>[e.icon?(_(),ie(i(ze),{key:0,class:R(i(n).e("icon-inner"))},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class"])):d.value==="success"?(_(),ie(i(ze),{key:1,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(ni))]),_:1},8,["class"])):d.value==="error"?(_(),ie(i(ze),{key:2,class:R([i(n).e("icon-inner"),i(n).is("status")])},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class"])):p.value?re("v-if",!0):(_(),$("div",{key:3,class:R(i(n).e("icon-inner"))},_e(a.value+1),3))])],2)],2),re(" title & description "),E("div",{class:R(i(n).e("main"))},[E("div",{class:R([i(n).e("title"),i(n).is(d.value)])},[oe(M.$slots,"title",{},()=>[_t(_e(e.title),1)])],2),p.value?(_(),$("div",{key:0,class:R(i(n).e("arrow"))},null,2)):(_(),$("div",{key:1,class:R([i(n).e("description"),i(n).is(d.value)])},[oe(M.$slots,"description",{},()=>[_t(_e(e.description),1)])],2))],2)],6))}}),m5=one;const lne=rt(ane,{Step:m5}),rne=ln(m5),g5=e=>["",...vo].includes(e),sne=Ce({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:g5},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Ft},activeActionIcon:{type:Ft},activeIcon:{type:Ft},inactiveIcon:{type:Ft},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:J(Function)},id:String,tabindex:{type:[String,Number]},...ia(["ariaLabel"])}),ine={[at]:e=>Dt(e)||Ue(e)||De(e),[yt]:e=>Dt(e)||Ue(e)||De(e),[Sn]:e=>Dt(e)||Ue(e)||De(e)},une=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],cne=["aria-hidden"],dne={key:1},fne={key:1},pne=["aria-hidden"],k0="ElSwitch";var hne=D({name:k0,__name:"switch",props:sne,emits:ine,setup(e,{expose:t,emit:n}){const a=e,o=n,{formItem:l}=Kn(),r=En(),s=ve("switch"),{inputId:u}=za(a,{formItemContext:l}),c=dn(x(()=>{if(a.loading)return!0})),d=V(a.modelValue!==!1),f=qt(),h=x(()=>[s.b(),s.m(r.value),s.is("disabled",c.value),s.is("checked",y.value)]),g=x(()=>[s.e("label"),s.em("label","left"),s.is("active",!y.value)]),p=x(()=>[s.e("label"),s.em("label","right"),s.is("active",y.value)]),v=x(()=>({width:cn(a.width)}));fe(()=>a.modelValue,()=>{d.value=!0});const m=x(()=>d.value?a.modelValue:!1),y=x(()=>m.value===a.activeValue);[a.activeValue,a.inactiveValue].includes(m.value)||(o(at,a.inactiveValue),o(yt,a.inactiveValue),o(Sn,a.inactiveValue)),fe(y,S=>{var k;f.value.checked=S,a.validateEvent&&((k=l==null?void 0:l.validate)==null||k.call(l,"change").catch(T=>ft(T)))});const b=()=>{const S=y.value?a.inactiveValue:a.activeValue;o(at,S),o(yt,S),o(Sn,S),Ie(()=>{f.value.checked=y.value})},w=()=>{if(c.value)return;const{beforeChange:S}=a;if(!S){b();return}const k=S();[As(k),Dt(k)].includes(!0)||on(k0,"beforeChange must return type `Promise` or `boolean`"),As(k)?k.then(T=>{T&&b()}).catch(T=>{ft(k0,`some error occurred: ${T}`)}):k&&b()},C=()=>{var S,k;(k=(S=f.value)==null?void 0:S.focus)==null||k.call(S)};return mt(()=>{f.value.checked=y.value}),t({focus:C,checked:y}),(S,k)=>(_(),$("div",{class:R(h.value),onClick:Xe(w,["prevent"])},[E("input",{id:i(u),ref_key:"input",ref:f,class:R(i(s).e("input")),type:"checkbox",role:"switch","aria-checked":y.value,"aria-disabled":i(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:i(c),tabindex:e.tabindex,onChange:b,onKeydown:rn(w,["enter"])},null,42,une),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||S.$slots.inactive)?(_(),$("span",{key:0,class:R(g.value)},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(_(),$("span",{key:1,"aria-hidden":y.value},_e(e.inactiveText),9,cne)):re("v-if",!0)])],2)):re("v-if",!0),E("span",{class:R(i(s).e("core")),style:We(v.value)},[e.inlinePrompt?(_(),$("div",{key:0,class:R(i(s).e("inner"))},[y.value?(_(),$("div",{key:1,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"active",{},()=>[e.activeIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(_(),$("span",fne,_e(e.activeText),1)):re("v-if",!0)])],2)):(_(),$("div",{key:0,class:R(i(s).e("inner-wrapper"))},[oe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.inactiveIcon)))]),_:1})):re("v-if",!0),!e.inactiveIcon&&e.inactiveText?(_(),$("span",dne,_e(e.inactiveText),1)):re("v-if",!0)])],2))],2)):re("v-if",!0),E("div",{class:R(i(s).e("action"))},[e.loading?(_(),ie(i(ze),{key:0,class:R(i(s).is("loading"))},{default:ae(()=>[Q(i(io))]),_:1},8,["class"])):y.value?oe(S.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.activeActionIcon)))]),_:1})):re("v-if",!0)]):y.value?re("v-if",!0):oe(S.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.inactiveActionIcon)))]),_:1})):re("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||S.$slots.active)?(_(),$("span",{key:1,class:R(p.value)},[oe(S.$slots,"active",{},()=>[e.activeIcon?(_(),ie(i(ze),{key:0},{default:ae(()=>[(_(),ie(ut(e.activeIcon)))]),_:1})):re("v-if",!0),!e.activeIcon&&e.activeText?(_(),$("span",{key:1,"aria-hidden":!y.value},_e(e.activeText),9,pne)):re("v-if",!0)])],2)):re("v-if",!0)],2))}}),vne=hne;const mne=rt(vne),E0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},gne=function(e,t,n,a,o){if(!t&&!a&&(!o||Ve(o)&&!o.length))return e;Ue(n)?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const l=a?null:function(s,u){return o?w8(In(o),c=>Ue(c)?_n(s,c):c(s,u,e)):(t!=="$key"&&Mt(s)&&"$value"in s&&(s=s.$value),[Mt(s)?t?_n(s,t):null:s])},r=function(s,u){var c,d,f,h,g;if(a)return a(s.value,u.value);for(let p=0,v=((c=s.key)==null?void 0:c.length)??0;p((g=u.key)==null?void 0:g[p]))return 1}return 0};return e.map((s,u)=>({value:s,index:u,key:l?l(s,u):null})).sort((s,u)=>{let c=r(s,u);return c||(c=s.index-u.index),c*+n}).map(s=>s.value)},y5=function(e,t){let n=null;return e.columns.forEach(a=>{a.id===t&&(n=a)}),n},yne=function(e,t){let n=null;for(let a=0;a{if(!e)throw new Error("Row is required when get row identity");if(Ue(t)){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let a=e;for(const o of n)a=a[o];return`${a}`}else if(ct(t))return t.call(null,e);return""},_s=function(e,t,n=!1,a="children"){const o=e||[],l={};return o.forEach((r,s)=>{if(l[Yn(r,t)]={row:r,index:s},n){const u=r[a];Ve(u)&&Object.assign(l,_s(u,t,!0,a))}}),l};function bne(e,t){const n={};let a;for(a in e)n[a]=e[a];for(a in t)if(An(t,a)){const o=t[a];kt(o)||(n[a]=o)}return n}function sv(e){return e===""||kt(e)||(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function b5(e){return e===""||kt(e)||(e=sv(e),Number.isNaN(e)&&(e=80)),e}function wne(e){return De(e)?e:Ue(e)?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function Cne(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function $d(e,t,n,a,o,l,r){let s=l??0,u=!1;const d=(()=>{if(!r)return e.indexOf(t);const v=Yn(t,r);return e.findIndex(m=>Yn(m,r)===v)})(),f=d!==-1,h=o==null?void 0:o.call(null,t,s),g=v=>{v==="add"?e.push(t):e.splice(d,1),u=!0},p=v=>{let m=0;const y=(a==null?void 0:a.children)&&v[a.children];return y&&Ve(y)&&(m+=y.length,y.forEach(b=>{m+=p(b)})),m};return(!o||h)&&(Dt(n)?n&&!f?g("add"):!n&&f&&g("remove"):g(f?"remove":"add")),!(a!=null&&a.checkStrictly)&&(a!=null&&a.children)&&Ve(t[a.children])&&t[a.children].forEach(v=>{const m=$d(e,v,n??!f,a,o,s+1,r);s+=p(v)+1,m&&(u=m)}),u}function _ne(e,t,n="children",a="hasChildren",o=!1){const l=s=>!(Ve(s)&&s.length);function r(s,u,c){t(s,u,c),u.forEach(d=>{if(d[a]&&o){t(d,null,c+1);return}const f=d[n];l(f)||r(d,f,c+1)})}e.forEach(s=>{if(s[a]&&o){t(s,null,0);return}const u=s[n];l(u)||r(s,u,0)})}const Sne=(e,t,n,a)=>{const o={strategy:"fixed",...e.popperOptions},l=ct(a==null?void 0:a.tooltipFormatter)?a.tooltipFormatter({row:n,column:a,cellValue:Wl(n,a.property).value}):void 0;return Wt(l)?{slotContent:l,content:null,...e,popperOptions:o}:{slotContent:null,content:l??t,...e,popperOptions:o}};let fn=null;function xne(e,t,n,a,o,l){var g;const r=Sne(e,t,n,a),s={...r,slotContent:void 0};if((fn==null?void 0:fn.trigger)===o){const p=(g=fn.vm)==null?void 0:g.component;C8(p==null?void 0:p.props,s),p&&r.slotContent&&(p.slots.content=()=>[r.slotContent]);return}fn==null||fn();const u=l==null?void 0:l.refs.tableWrapper,c=u==null?void 0:u.dataset.prefix,d=Q(Fn,{virtualTriggering:!0,virtualRef:o,appendTo:u,placement:"top",transition:"none",offset:0,hideAfter:0,...s},r.slotContent?{content:()=>r.slotContent}:void 0);d.appContext={...l.appContext,...l};const f=document.createElement("div");Ul(d,f),d.component.exposed.onOpen();const h=u==null?void 0:u.querySelector(`.${c}-scrollbar__wrap`);fn=()=>{var v,m;(m=(v=d.component)==null?void 0:v.exposed)!=null&&m.onClose&&d.component.exposed.onClose(),Ul(null,f);const p=fn;h==null||h.removeEventListener("scroll",p),p.trigger=void 0,p.vm=void 0,fn=null},fn.trigger=o??void 0,fn.vm=d,h==null||h.addEventListener("scroll",fn)}function w5(e){return e.children?w8(e.children,w5):[e]}function Yg(e,t){return e+t.colSpan}const C5=(e,t,n,a)=>{let o=0,l=e;const r=n.states.columns.value;if(a){const u=w5(a[e]);o=r.slice(0,r.indexOf(u[0])).reduce(Yg,0),l=o+u.reduce(Yg,0)-1}else o=e;let s;switch(t){case"left":l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right");break;default:l=r.length-n.states.rightFixedLeafColumnsLength.value&&(s="right")}return s?{direction:s,start:o,after:l}:{}},iv=(e,t,n,a,o,l=0)=>{const r=[],{direction:s,start:u,after:c}=C5(t,n,a,o);if(s){const d=s==="left";r.push(`${e}-fixed-column--${s}`),d&&c+l===a.states.fixedLeafColumnsLength.value-1?r.push("is-last-column"):!d&&u-l===a.states.columns.value.length-a.states.rightFixedLeafColumnsLength.value&&r.push("is-first-column")}return r};function Gg(e,t){return e+(sf(t.realWidth)||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const uv=(e,t,n,a)=>{const{direction:o,start:l=0,after:r=0}=C5(e,t,n,a);if(!o)return;const s={},u=o==="left",c=n.states.columns.value;return u?s.left=c.slice(0,l).reduce(Gg,0):s.right=c.slice(r+1).reverse().reduce(Gg,0),s},Ws=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function _5(e){return e.some(t=>Wt(t)?!(t.type===wn||t.type===He&&!_5(t.children)):!0)?e:null}function kne(e){const t=ht(),n=V(!1),a=V([]),o=(c,d)=>{const f=t.store.states.rowExpandable.value;return(f==null?void 0:f(c,d))??!0};return{updateExpandRows:()=>{const c=e.data.value||[],d=e.rowKey.value;if(n.value)a.value=t.store.states.rowExpandable.value?c.filter(o):c.slice();else if(d){const f=_s(a.value,d);a.value=c.filter((h,g)=>!!f[Yn(h,d)]&&o(h,g))}else a.value=[]},toggleRowExpansion:(c,d)=>{const f=(e.data.value||[]).indexOf(c);f>-1&&!o(c,f)||$d(a.value,c,d,void 0,void 0,void 0,e.rowKey.value)&&t.emit("expand-change",c,a.value.slice())},setExpandRowKeys:c=>{t.store.assertRowKey();const d=e.data.value||[],f=e.rowKey.value,h=_s(d,f);a.value=c.reduce((g,p)=>{const v=h[p];return v&&o(v.row,v.index)&&g.push(v.row),g},[])},isRowExpanded:c=>{const d=e.rowKey.value;return d?!!_s(a.value,d)[Yn(c,d)]:a.value.includes(c)},states:{expandRows:a,defaultExpandAll:n}}}function Ene(e){const t=ht(),n=V(null),a=V(null),o=c=>{t.store.assertRowKey(),n.value=c,r(c)},l=()=>{n.value=null},r=c=>{const{data:d,rowKey:f}=e,h=a.value;let g=null;f.value&&(g=(i(d)||[]).find(p=>Yn(p,f.value)===c)??null),a.value=g??null,t.emit("current-change",a.value,h)};return{setCurrentRowKey:o,restoreCurrentRowKey:l,setCurrentRowByKey:r,updateCurrentRow:c=>{const d=a.value;if(c&&c!==d){a.value=c,t.emit("current-change",a.value,d);return}!c&&d&&(a.value=null,t.emit("current-change",null,d))},updateCurrentRowData:()=>{const c=e.rowKey.value,d=e.data.value||[],f=a.value;f&&!d.includes(f)?c?r(Yn(f,c)):(a.value=null,t.emit("current-change",null,f)):n.value&&(r(n.value),l())},states:{_currentRowKey:n,currentRow:a}}}function Tne(e){const t=V([]),n=V({}),a=V(16),o=V(!1),l=V({}),r=V("hasChildren"),s=V("children"),u=V(!1),c=ht(),d=x(()=>e.rowKey.value?h(e.data.value||[]):{}),f=x(()=>{const C=e.rowKey.value,S=Object.keys(l.value),k={};return S.length&&S.forEach(T=>{if(l.value[T].length){const M={children:[]};l.value[T].forEach(A=>{const O=Yn(A,C);M.children.push(O),A[r.value]&&!k[O]&&(k[O]={children:[]})}),k[T]=M}}),k}),h=C=>{const S=e.rowKey.value,k={};return _ne(C,(T,M,A)=>{const O=Yn(T,S);Ve(M)?k[O]={children:M.map(I=>Yn(I,S)),level:A}:o.value&&(k[O]={children:[],lazy:!0,level:A})},s.value,r.value,o.value),k},g=(C=!1,S)=>{var O,I;S||(S=(O=c.store)==null?void 0:O.states.defaultExpandAll.value);const k=d.value,T=f.value,M=Object.keys(k),A={};if(M.length){const L=i(n),z=[],q=(F,N)=>{if(C)return t.value?S||t.value.includes(N):!!(S||F!=null&&F.expanded);{const P=S||t.value&&t.value.includes(N);return!!(F!=null&&F.expanded||P)}};M.forEach(F=>{const N=L[F],P={...k[F]};if(P.expanded=q(N,F),P.lazy){const{loaded:B=!1,loading:W=!1}=N||{};P.loaded=!!B,P.loading=!!W,z.push(F)}A[F]=P});const U=Object.keys(T);o.value&&U.length&&z.length&&U.forEach(F=>{var B;const N=L[F],P=T[F].children;if(z.includes(F)){if(((B=A[F].children)==null?void 0:B.length)!==0)throw new Error("[ElTable]children must be an empty array.");A[F].children=P}else{const{loaded:W=!1,loading:K=!1}=N||{};A[F]={lazy:!0,loaded:!!W,loading:!!K,expanded:q(N,F),children:P,level:void 0}}})}n.value=A,(I=c.store)==null||I.updateTableScrollY()};fe(()=>t.value,()=>{g(!0)},{deep:!0}),fe(()=>d.value,()=>{g()}),fe(()=>f.value,()=>{g()});const p=C=>{t.value=C,g()},v=C=>o.value&&C&&"loaded"in C&&!C.loaded,m=(C,S)=>{c.store.assertRowKey();const k=e.rowKey.value,T=Yn(C,k),M=T&&n.value[T];if(T&&M&&"expanded"in M){const A=M.expanded;S=kt(S)?!M.expanded:S,n.value[T].expanded=S,A!==S&&c.emit("expand-change",C,S),S&&v(M)&&b(C,T,M),c.store.updateTableScrollY()}},y=C=>{c.store.assertRowKey();const S=e.rowKey.value,k=Yn(C,S),T=n.value[k];v(T)?b(C,k,T):m(C,void 0)},b=(C,S,k)=>{const{load:T}=c.props;T&&!n.value[S].loaded&&(n.value[S].loading=!0,T(C,k,M=>{if(!Ve(M))throw new TypeError("[ElTable] data must be an array");n.value[S].loading=!1,n.value[S].loaded=!0,n.value[S].expanded=!0,M.length&&(l.value[S]=M),c.emit("expand-change",C,!0)}))};return{loadData:b,loadOrToggle:y,toggleTreeExpansion:m,updateTreeExpandKeys:p,updateTreeData:g,updateKeyChildren:(C,S)=>{const{lazy:k,rowKey:T}=c.props;if(k){if(!T)throw new Error("[Table] rowKey is required in updateKeyChild");l.value[C]&&(l.value[C]=S)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:a,lazy:o,lazyTreeNodeMap:l,lazyColumnIdentifier:r,childrenColumnName:s,checkStrictly:u}}}const Mne=(e,t)=>{const n=t.sortingColumn;return!n||Ue(n.sortable)?e:gne(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Dc=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Dc(n.children)):t.push(n)}),t};function One(){var st;const e=ht(),{size:t}=Bn((st=e.proxy)==null?void 0:st.$props),n=V(null),a=V([]),o=V([]),l=V(!1),r=V([]),s=V([]),u=V([]),c=V([]),d=V([]),f=V([]),h=V([]),g=V([]),p=[],v=V(0),m=V(0),y=V(0),b=V(!1),w=V([]),C=V(!1),S=V(!1),k=V(null),T=V(null),M=V({}),A=V(null),O=V(null),I=V(null),L=V(null),z=V(null),q=x(()=>n.value?_s(w.value,n.value):void 0);fe(a,()=>{var Ke;e.state&&(P(!1),e.props.tableLayout==="auto"&&((Ke=e.refs.tableHeaderRef)==null||Ke.updateFixedColumnStyle()))},{deep:!0});const U=()=>{if(!n.value)throw new Error("[ElTable] prop row-key is required")},F=Ke=>{var et;(et=Ke.children)==null||et.forEach(gt=>{gt.fixed=Ke.fixed,F(gt)})},N=()=>{r.value.forEach(Ee=>{F(Ee)}),c.value=r.value.filter(Ee=>[!0,"left"].includes(Ee.fixed));const Ke=r.value.find(Ee=>Ee.type==="selection");let et;Ke&&Ke.fixed!=="right"&&!c.value.includes(Ke)&&r.value.indexOf(Ke)===0&&c.value.length&&(c.value.unshift(Ke),et=!0),d.value=r.value.filter(Ee=>Ee.fixed==="right");const gt=r.value.filter(Ee=>(et?Ee.type!=="selection":!0)&&!Ee.fixed);s.value=Array.from(c.value).concat(gt).concat(d.value);const he=Dc(gt),Le=Dc(c.value),pe=Dc(d.value);v.value=he.length,m.value=Le.length,y.value=pe.length,u.value=Array.from(Le).concat(he).concat(pe),l.value=c.value.length>0||d.value.length>0},P=(Ke,et=!1)=>{Ke&&N(),et?e.state.doLayout():e.state.debouncedUpdateLayout()},B=Ke=>q.value?!!q.value[Yn(Ke,n.value)]:w.value.includes(Ke),W=()=>{b.value=!1;const Ke=w.value;w.value=[],Ke.length&&e.emit("selection-change",[])},K=()=>{var et,gt;let Ke;if(n.value){Ke=[];const he=(gt=(et=e==null?void 0:e.store)==null?void 0:et.states)==null?void 0:gt.childrenColumnName.value,Le=_s(a.value,n.value,!0,he);for(const pe in q.value)An(q.value,pe)&&!Le[pe]&&Ke.push(q.value[pe].row)}else Ke=w.value.filter(he=>!a.value.includes(he));if(Ke.length){const he=w.value.filter(Le=>!Ke.includes(Le));w.value=he,e.emit("selection-change",he.slice())}},j=()=>(w.value||[]).slice(),G=(Ke,et,gt=!0,he=!1)=>{var pe,Ee,it,Pt;const Le={children:(Ee=(pe=e==null?void 0:e.store)==null?void 0:pe.states)==null?void 0:Ee.childrenColumnName.value,checkStrictly:(Pt=(it=e==null?void 0:e.store)==null?void 0:it.states)==null?void 0:Pt.checkStrictly.value};if($d(w.value,Ke,et,Le,he?void 0:k.value,a.value.indexOf(Ke),n.value)){const Xt=(w.value||[]).slice();gt&&e.emit("select",Xt,Ke),e.emit("selection-change",Xt)}},ee=()=>{var Ee,it;const Ke=S.value?!b.value:!(b.value||w.value.length);b.value=Ke;let et=!1,gt=0;const he=(it=(Ee=e==null?void 0:e.store)==null?void 0:Ee.states)==null?void 0:it.rowKey.value,{childrenColumnName:Le}=e.store.states,pe={children:Le.value,checkStrictly:!1};a.value.forEach((Pt,Xt)=>{const Oe=Xt+gt;$d(w.value,Pt,Ke,pe,k.value,Oe,he)&&(et=!0),gt+=ue(Yn(Pt,he))}),et&&e.emit("selection-change",w.value?w.value.slice():[]),e.emit("select-all",(w.value||[]).slice())},te=()=>{var pe;if(((pe=a.value)==null?void 0:pe.length)===0){b.value=!1;return}const{childrenColumnName:Ke}=e.store.states;let et=0,gt=0;const he=Ee=>{var it;for(const Pt of Ee){const Xt=k.value&&k.value.call(null,Pt,et);if(B(Pt))gt++;else if(!k.value||Xt)return!1;if(et++,(it=Pt[Ke.value])!=null&&it.length&&!he(Pt[Ke.value]))return!1}return!0},Le=he(a.value||[]);b.value=gt===0?!1:Le},ue=Ke=>{var Le;if(!e||!e.store)return 0;const{treeData:et}=e.store.states;let gt=0;const he=(Le=et.value[Ke])==null?void 0:Le.children;return he&&(gt+=he.length,he.forEach(pe=>{gt+=ue(pe)})),gt},ne=(Ke,et)=>{const gt={};return In(Ke).forEach(he=>{M.value[he.id]=et,gt[he.columnKey||he.id]=et}),gt},de=(Ke,et,gt)=>{O.value&&O.value!==Ke&&(O.value.order=null),O.value=Ke,I.value=et,L.value=gt},se=()=>{let Ke=i(o);Object.keys(M.value).forEach(et=>{const gt=M.value[et];if(!gt||gt.length===0)return;const he=y5({columns:u.value},et);he&&he.filterMethod&&(Ke=Ke.filter(Le=>gt.some(pe=>he.filterMethod.call(null,pe,Le,he))))}),A.value=Ke},Y=()=>{a.value=Mne(A.value??[],{sortingColumn:O.value,sortProp:I.value,sortOrder:L.value})},X=(Ke=void 0)=>{Ke!=null&&Ke.filter||se(),Y()},H=Ke=>{const{tableHeaderRef:et}=e.refs;if(!et)return;const gt=Object.assign({},et.filterPanels),he=Object.keys(gt);if(he.length)if(Ue(Ke)&&(Ke=[Ke]),Ve(Ke)){const Le=Ke.map(pe=>yne({columns:u.value},pe));he.forEach(pe=>{const Ee=Le.find(it=>it.id===pe);Ee&&(Ee.filteredValue=[])}),e.store.commit("filterChange",{column:Le,values:[],silent:!0,multi:!0})}else he.forEach(Le=>{const pe=u.value.find(Ee=>Ee.id===Le);pe&&(pe.filteredValue=[])}),M.value={},e.store.commit("filterChange",{column:{},values:[],silent:!0})},Z=()=>{O.value&&(de(null,null,null),e.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:le,toggleRowExpansion:ce,updateExpandRows:ge,states:me,isRowExpanded:$e}=kne({data:a,rowKey:n}),{updateTreeExpandKeys:Re,toggleTreeExpansion:Ae,updateTreeData:ye,updateKeyChildren:ke,loadOrToggle:be,states:Pe}=Tne({data:a,rowKey:n}),{updateCurrentRowData:Be,updateCurrentRow:Qe,setCurrentRowKey:tt,states:nt}=Ene({data:a,rowKey:n});return{assertRowKey:U,updateColumns:N,scheduleLayout:P,isSelected:B,clearSelection:W,cleanSelection:K,getSelectionRows:j,toggleRowSelection:G,_toggleAllSelection:ee,toggleAllSelection:null,updateAllSelected:te,updateFilters:ne,updateCurrentRow:Qe,updateSort:de,execFilter:se,execSort:Y,execQuery:X,clearFilter:H,clearSort:Z,toggleRowExpansion:ce,setExpandRowKeysAdapter:Ke=>{le(Ke),Re(Ke)},setCurrentRowKey:tt,toggleRowExpansionAdapter:(Ke,et)=>{u.value.some(({type:gt})=>gt==="expand")?ce(Ke,et):Ae(Ke,et)},isRowExpanded:$e,updateExpandRows:ge,updateCurrentRowData:Be,loadOrToggle:be,updateTreeData:ye,updateKeyChildren:ke,states:{tableSize:t,rowKey:n,data:a,_data:o,isComplex:l,_columns:r,originColumns:s,columns:u,fixedColumns:c,rightFixedColumns:d,leafColumns:f,fixedLeafColumns:h,rightFixedLeafColumns:g,updateOrderFns:p,leafColumnsLength:v,fixedLeafColumnsLength:m,rightFixedLeafColumnsLength:y,isAllSelected:b,selection:w,reserveSelection:C,selectOnIndeterminate:S,selectable:k,rowExpandable:T,filters:M,filteredData:A,sortingColumn:O,sortProp:I,sortOrder:L,hoverRow:z,...me,...Pe,...nt}}}function Y2(e,t){return e.map(n=>{var a;return n.id===t.id?t:((a=n.children)!=null&&a.length&&(n.children=Y2(n.children,t)),n)})}function G2(e){e.forEach(t=>{var n,a;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(a=t.children)!=null&&a.length&&G2(t.children)}),e.sort((t,n)=>t.no-n.no)}function $ne(){const e=ht(),t=One(),n=ve("table"),{t:a}=xt();return{ns:n,t:a,...t,mutations:{setData(s,u){const c=i(s._data)!==u;s.data.value=u,s._data.value=u,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),i(s.reserveSelection)?e.store.assertRowKey():c?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(s,u,c,d){var g;const f=i(s._columns);let h=[];c?(c&&!c.children&&(c.children=[]),(g=c.children)==null||g.push(u),h=Y2(f,c)):(f.push(u),h=f),G2(h),s._columns.value=h,s.updateOrderFns.push(d),u.type==="selection"&&(s.selectable.value=u.selectable,s.reserveSelection.value=u.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(s,u){var c;((c=u.getColumnIndex)==null?void 0:c.call(u))!==u.no&&(G2(s._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(s,u,c,d){var g;const f=i(s._columns)||[];if(c)(g=c.children)==null||g.splice(c.children.findIndex(p=>p.id===u.id),1),Ie(()=>{var p;((p=c.children)==null?void 0:p.length)===0&&delete c.children}),s._columns.value=Y2(f,c);else{const p=f.indexOf(u);p>-1&&(f.splice(p,1),s._columns.value=f)}const h=s.updateOrderFns.indexOf(d);h>-1&&s.updateOrderFns.splice(h,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(s,u){const{prop:c,order:d,init:f}=u;if(c){const h=i(s.columns).find(g=>g.property===c);h&&(h.order=d,e.store.updateSort(h,c,d),e.store.commit("changeSortCondition",{init:f}))}},changeSortCondition(s,u){const{sortingColumn:c,sortProp:d,sortOrder:f}=s,h=i(c),g=i(d),p=i(f);sf(p)&&(s.sortingColumn.value=null,s.sortProp.value=null),e.store.execQuery({filter:!0}),(!u||!(u.silent||u.init))&&e.emit("sort-change",{column:h,prop:g,order:p}),e.store.updateTableScrollY()},filterChange(s,u){const{column:c,values:d,silent:f}=u,h=e.store.updateFilters(c,d);e.store.execQuery(),f||e.emit("filter-change",h),e.store.updateTableScrollY()},toggleAllSelection(){var s,u;(u=(s=e.store).toggleAllSelection)==null||u.call(s)},rowSelectedChanged(s,u){e.store.toggleRowSelection(u),e.store.updateAllSelected()},setHoverRow(s,u){s.hoverRow.value=u},setCurrentRow(s,u){e.store.updateCurrentRow(u)}},commit:function(s,...u){const c=e.store.mutations;if(c[s])c[s].apply(e,[e.store.states,...u]);else throw new Error(`Action not found: ${s}`)},updateTableScrollY:function(){Ie(()=>e.layout.updateScrollY.apply(e.layout))}}}const cv={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",rowExpandable:"rowExpandable",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Ane(e,t){if(!e)throw new Error("Table is required.");const n=$ne();return n.toggleAllSelection=Ko(n._toggleAllSelection,10),Object.keys(cv).forEach(a=>{S5(x5(t,a),a,n)}),Rne(n,t),n}function Rne(e,t){Object.keys(cv).forEach(n=>{fe(()=>x5(t,n),a=>{S5(a,n,e)})})}function S5(e,t,n){let a=e,o=cv[t];Mt(o)&&(a=a||o.default,o=o.key),n.states[o].value=a}function x5(e,t){if(t.includes(".")){const n=t.split(".");let a=e;return n.forEach(o=>{a=a[o]}),a}else return e[t]}var Nne=class{constructor(e){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=V(null),this.scrollX=V(!1),this.scrollY=V(!1),this.bodyWidth=V(null),this.fixedWidth=V(null),this.rightFixedWidth=V(null),this.gutterWidth=0;for(const t in e)An(e,t)&&(Gt(this[t])?this[t].value=e[t]:this[t]=e[t]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){const e=this.height.value;if(sf(e))return!1;const t=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(t!=null&&t.wrapRef)){let n=!0;const a=this.scrollY.value;return n=t.wrapRef.scrollHeight>t.wrapRef.clientHeight,this.scrollY.value=n,a!==n}return!1}setHeight(e,t="height"){if(!Rt)return;const n=this.table.vnode.el;if(e=wne(e),this.height.value=Number(e),!n&&(e||e===0)){Ie(()=>this.setHeight(e,t));return}n&&De(e)?(n.style[t]=`${e}px`,this.updateElsHeight()):n&&Ue(e)&&(n.style[t]=e,this.updateElsHeight())}setMaxHeight(e){this.setHeight(e,"max-height")}getFlattenColumns(){const e=[];return this.table.store.states.columns.value.forEach(t=>{t.isColumnGroup?e.push.apply(e,t.columns):e.push(t)}),e}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(e){if(!e)return!0;let t=e;for(;t.tagName!=="DIV";){if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}updateColumnsWidth(){var s;if(!Rt)return;const e=this.fit,t=(s=this.table.vnode.el)==null?void 0:s.clientWidth;let n=0;const a=this.getFlattenColumns(),o=a.filter(u=>!De(u.width));if(a.forEach(u=>{De(u.width)&&u.realWidth&&(u.realWidth=null)}),o.length>0&&e){if(a.forEach(u=>{n+=Number(u.width||u.minWidth||80)}),n<=t){this.scrollX.value=!1;const u=t-n;if(o.length===1)o[0].realWidth=Number(o[0].minWidth||80)+u;else{const c=u/o.reduce((f,h)=>f+Number(h.minWidth||80),0);let d=0;o.forEach((f,h)=>{if(h===0)return;const g=Math.floor(Number(f.minWidth||80)*c);d+=g,f.realWidth=Number(f.minWidth||80)+g}),o[0].realWidth=Number(o[0].minWidth||80)+u-d}}else this.scrollX.value=!0,o.forEach(u=>{u.realWidth=Number(u.minWidth)});this.bodyWidth.value=Math.max(n,t),this.table.state.resizeState.value.width=this.bodyWidth.value}else a.forEach(u=>{!u.width&&!u.minWidth?u.realWidth=80:u.realWidth=Number(u.width||u.minWidth),n+=u.realWidth}),this.scrollX.value=n>t,this.bodyWidth.value=n;const l=this.store.states.fixedColumns.value;if(l.length>0){let u=0;l.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.fixedWidth.value=u}const r=this.store.states.rightFixedColumns.value;if(r.length>0){let u=0;r.forEach(c=>{u+=Number(c.realWidth||c.width)}),this.rightFixedWidth.value=u}this.notifyObservers("columns")}addObserver(e){this.observers.push(e)}removeObserver(e){const t=this.observers.indexOf(e);t!==-1&&this.observers.splice(t,1)}notifyObservers(e){this.observers.forEach(t=>{var n,a;switch(e){case"columns":(n=t.state)==null||n.onColumnsChange(this);break;case"scrollable":(a=t.state)==null||a.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${e}.`)}})}};const Co=Symbol("ElTable"),k5=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,k5(n.children))):t.push(n)}),t},E5=e=>{let t=1;const n=(o,l)=>{if(l&&(o.level=l.level+1,t{n(s,o),r+=s.colSpan}),o.colSpan=r}else o.colSpan=1};e.forEach(o=>{o.level=1,n(o,void 0)});const a=[];for(let o=0;o{o.children?(o.rowSpan=1,o.children.forEach(l=>l.isSubColumn=!0)):o.rowSpan=t-o.level+1,a[o.level-1].push(o)}),a};function Pne(e){const t=Ne(Co),n=x(()=>E5(e.store.states.originColumns.value));return{isGroup:x(()=>{const l=n.value.length>1;return l&&t&&(t.state.isGroup.value=!0),l}),toggleAllSelection:l=>{l.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Ine=D({name:"ElTableFilterPanel",components:{ElCheckbox:fo,ElCheckboxGroup:Kh,ElScrollbar:uo,ElTooltip:Fn,ElIcon:ze,ArrowDown:bo,ArrowUp:Du},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:Ht.appendTo},setup(e){const t=ht(),{t:n}=xt(),a=ve("table-filter"),o=t==null?void 0:t.parent;e.column&&!o.filterPanels.value[e.column.id]&&(o.filterPanels.value[e.column.id]=t);const l=V(null),r=V(null),s=V(0),u=x(()=>e.column&&e.column.filters),c=x(()=>e.column&&e.column.filterClassName?`${a.b()} ${e.column.filterClassName}`:a.b()),d=x({get:()=>{var T;return(((T=e.column)==null?void 0:T.filteredValue)||[])[0]},set:T=>{f.value&&(Sa(T)?f.value.splice(0,1):f.value.splice(0,1,T))}}),f=x({get(){return e.column?e.column.filteredValue||[]:[]},set(T){var M;e.column&&((M=e.upDataColumn)==null||M.call(e,"filteredValue",T))}}),h=x(()=>e.column?e.column.filterMultiple:!0),g=T=>T.value===d.value,p=()=>{var T;(T=l.value)==null||T.onClose()},v=()=>{b(f.value),p()},m=()=>{f.value=[],b(f.value),p()},y=(T,M)=>{d.value=T,s.value=M,Sa(T)?b([]):b(f.value),p()},b=T=>{var M,A;(M=e.store)==null||M.commit("filterChange",{column:e.column,values:T}),(A=e.store)==null||A.updateAllSelected()},w=()=>{var T,M;(T=r.value)==null||T.focus(),!h.value&&S(),e.column&&((M=e.upDataColumn)==null||M.call(e,"filterOpened",!0))},C=()=>{var T;e.column&&((T=e.upDataColumn)==null||T.call(e,"filterOpened",!1))},S=()=>{if(Sa(d)){s.value=0;return}const T=(u.value||[]).findIndex(M=>M.value===d.value);s.value=T>=0?T+1:0};return{multiple:h,filterClassName:c,filteredValue:f,filterValue:d,filters:u,handleConfirm:v,handleReset:m,handleSelect:y,isPropAbsent:Sa,isActive:g,t:n,ns:a,tooltipRef:l,rootRef:r,checkedIndex:s,handleShowTooltip:w,handleHideTooltip:C,handleKeydown:T=>{var L,z;const M=Kt(T),A=(u.value?u.value.length:0)+1;let O=s.value,I=!0;switch(M){case we.down:case we.right:O=(O+1)%A;break;case we.up:case we.left:O=(O-1+A)%A;break;case we.tab:p(),I=!1;break;case we.enter:case we.space:if(O===0)y(null,0);else{const q=(u.value||[])[O-1];q.value&&y(q.value,O)}break;default:I=!1;break}I&&T.preventDefault(),s.value=O,(z=(L=r.value)==null?void 0:L.querySelector(`.${a.e("list-item")}:nth-child(${O+1})`))==null||z.focus()}}}});const Lne=["disabled"],Vne=["tabindex","aria-checked"],Bne=["tabindex","aria-checked","onClick"],zne=["aria-label"];function Dne(e,t,n,a,o,l){const r=$t("el-checkbox"),s=$t("el-checkbox-group"),u=$t("el-scrollbar"),c=$t("arrow-up"),d=$t("arrow-down"),f=$t("el-icon"),h=$t("el-tooltip");return _(),ie(h,{ref:"tooltipRef",offset:0,placement:e.placement,"show-arrow":!1,trigger:"click",role:"dialog",teleported:"",effect:"light",pure:"",loop:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo,onShow:e.handleShowTooltip,onHide:e.handleHideTooltip},{content:ae(()=>[e.multiple?(_(),$("div",{key:0,ref:"rootRef",tabindex:"-1",class:R(e.ns.e("multiple"))},[E("div",{class:R(e.ns.e("content"))},[Q(u,{"wrap-class":e.ns.e("wrap")},{default:ae(()=>[Q(s,{modelValue:e.filteredValue,"onUpdate:modelValue":t[0]||(t[0]=g=>e.filteredValue=g),class:R(e.ns.e("checkbox-group"))},{default:ae(()=>[(_(!0),$(He,null,Ct(e.filters,g=>(_(),ie(r,{key:g.value,value:g.value},{default:ae(()=>[_t(_e(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),E("div",{class:R(e.ns.e("bottom"))},[E("button",{class:R(e.ns.is("disabled",e.filteredValue.length===0)),disabled:e.filteredValue.length===0,type:"button",onClick:t[1]||(t[1]=(...g)=>e.handleConfirm&&e.handleConfirm(...g))},_e(e.t("el.table.confirmFilter")),11,Lne),E("button",{type:"button",onClick:t[2]||(t[2]=(...g)=>e.handleReset&&e.handleReset(...g))},_e(e.t("el.table.resetFilter")),1)],2)],2)):(_(),$("ul",{key:1,ref:"rootRef",tabindex:"-1",role:"radiogroup",class:R(e.ns.e("list")),onKeydown:t[4]||(t[4]=(...g)=>e.handleKeydown&&e.handleKeydown(...g))},[E("li",{role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isPropAbsent(e.filterValue))]),tabindex:e.checkedIndex===0?0:-1,"aria-checked":e.isPropAbsent(e.filterValue),onClick:t[3]||(t[3]=g=>e.handleSelect(null,0))},_e(e.t("el.table.clearFilter")),11,Vne),(_(!0),$(He,null,Ct(e.filters,(g,p)=>(_(),$("li",{key:g.value,role:"radio",class:R([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),tabindex:e.checkedIndex===p+1?0:-1,"aria-checked":e.isActive(g),onClick:v=>e.handleSelect(g.value,p+1)},_e(g.text),11,Bne))),128))],34))]),default:ae(()=>{var g;return[E("button",{type:"button",class:R(`${e.ns.namespace.value}-table__column-filter-trigger`),"aria-label":e.t("el.table.filterLabel",{column:((g=e.column)==null?void 0:g.label)||""})},[Q(f,null,{default:ae(()=>[oe(e.$slots,"filter-icon",{},()=>{var p;return[(p=e.column)!=null&&p.filterOpened?(_(),ie(c,{key:0})):(_(),ie(d,{key:1}))]})]),_:3})],10,zne)]}),_:3},8,["placement","popper-class","append-to","onShow","onHide"])}var Hne=$n(Ine,[["render",Dne]]);function dv(e){const t=ht();Ud(()=>{n.value.addObserver(t)}),mt(()=>{a(n.value),o(n.value)}),ho(()=>{a(n.value),o(n.value)}),Gs(()=>{n.value.removeObserver(t)});const n=x(()=>{const l=e.layout;if(!l)throw new Error("Can not find table layout.");return l}),a=l=>{var c;const r=((c=e.vnode.el)==null?void 0:c.querySelectorAll("colgroup > col"))||[];if(!r.length)return;const s=l.getFlattenColumns(),u={};s.forEach(d=>{u[d.id]=d});for(let d=0,f=r.length;d{var u,c;const r=((u=e.vnode.el)==null?void 0:u.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let d=0,f=r.length;d{v.stopPropagation()},l=(v,m)=>{!m.filters&&m.sortable?p(v,m,!1):m.filterable&&!m.sortable&&o(v),a==null||a.emit("header-click",m,v)},r=(v,m)=>{a==null||a.emit("header-contextmenu",m,v)},s=V(null),u=V(!1),c=V(),d=(v,m)=>{var y,b,w;if(Rt&&!(m.children&&m.children.length>0)&&s.value&&e.border&&s.value.id===m.id){u.value=!0;const C=a;t("set-drag-visible",!0);const S=(y=C==null?void 0:C.vnode.el)==null?void 0:y.getBoundingClientRect().left,k=(w=(b=n==null?void 0:n.vnode)==null?void 0:b.el)==null?void 0:w.querySelector(`th.${m.id}`),T=k.getBoundingClientRect(),M=T.left-S+30;Ka(k,"noclick"),c.value={startMouseLeft:v.clientX,startLeft:T.right-S,startColumnLeft:T.left-S,tableLeft:S};const A=C==null?void 0:C.refs.resizeProxy;A.style.left=`${c.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const O=L=>{const z=L.clientX-c.value.startMouseLeft,q=c.value.startLeft+z;A.style.left=`${Math.max(M,q)}px`},I=()=>{if(u.value){const{startColumnLeft:L,startLeft:z}=c.value;m.width=m.realWidth=Number.parseInt(A.style.left,10)-L,C==null||C.emit("header-dragend",m.width,z-L,m,v),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",u.value=!1,s.value=null,c.value=void 0,t("set-drag-visible",!1)}document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",I),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{sa(k,"noclick")},0)};document.addEventListener("mousemove",O),document.addEventListener("mouseup",I)}},f=(v,m)=>{var A;if(!e.border||m.children&&m.children.length>0)return;const y=v.target,b=_a(y)?y.closest("th"):null;if(!b)return;const w=Vo(b,"is-sortable");if(w){const O=u.value?"col-resize":"";b.style.cursor=O;const I=b.querySelector(".caret-wrapper");I&&(I.style.cursor=O)}if(!m.resizable||u.value){s.value=null;return}const C=b.getBoundingClientRect(),S=((A=b.parentNode)==null?void 0:A.lastElementChild)===b,k=e.allowDragLastColumn||!S,T=C.width>12&&C.right-v.clientX<8&&k,M=T?"col-resize":"";document.body.style.cursor=M,s.value=T?m:null,w&&(b.style.cursor=M)},h=()=>{!Rt||u.value||(document.body.style.cursor="")},g=({order:v,sortOrders:m})=>{if(v==="")return m[0];const y=m.indexOf(v||null);return m[y>m.length-2?0:y+1]},p=(v,m,y)=>{var A;v.stopPropagation();const b=m.order===y?null:y||g(m),w=(A=v.target)==null?void 0:A.closest("th");if(w&&Vo(w,"noclick")){sa(w,"noclick");return}if(!m.sortable)return;const C=v.currentTarget;if(["ascending","descending"].some(O=>Vo(C,O)&&!m.sortOrders.includes(O)))return;const S=e.store.states;let k=S.sortProp.value,T;const M=S.sortingColumn.value;(M!==m||M===m&&sf(M.order))&&(M&&(M.order=null),S.sortingColumn.value=m,k=m.property),b?T=m.order=b:T=m.order=null,S.sortProp.value=k,S.sortOrder.value=T,a==null||a.store.commit("changeSortCondition")};return{handleHeaderClick:l,handleHeaderContextMenu:r,handleMouseDown:d,handleMouseMove:f,handleMouseOut:h,handleSortClick:p,handleFilterClick:o}}function Kne(e){const t=Ne(Co),n=ve("table");return{getHeaderRowStyle:s=>{const u=t==null?void 0:t.props.headerRowStyle;return ct(u)?u.call(null,{rowIndex:s}):u},getHeaderRowClass:s=>{const u=[],c=t==null?void 0:t.props.headerRowClassName;return Ue(c)?u.push(c):ct(c)&&u.push(c.call(null,{rowIndex:s})),u.join(" ")},getHeaderCellStyle:(s,u,c,d)=>{let f=(t==null?void 0:t.props.headerCellStyle)??{};ct(f)&&(f=f.call(null,{rowIndex:s,columnIndex:u,row:c,column:d}));const h=uv(u,d.fixed,e.store,c);return Ws(h,"left"),Ws(h,"right"),Object.assign({},f,h)},getHeaderCellClass:(s,u,c,d)=>{const f=iv(n.b(),u,d.fixed,e.store,c),h=[d.id,d.order,d.headerAlign,d.className,d.labelClassName,...f];d.children||h.push("is-leaf"),d.sortable&&h.push("is-sortable");const g=t==null?void 0:t.props.headerCellClassName;return Ue(g)?h.push(g):ct(g)&&h.push(g.call(null,{rowIndex:s,columnIndex:u,row:c,column:d})),h.push(n.e("cell")),h.filter(p=>!!p).join(" ")}}}var Wne=D({name:"ElTableHeader",components:{ElCheckbox:fo},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String},allowDragLastColumn:{type:Boolean}},setup(e,{emit:t}){const n=ht(),a=Ne(Co),o=ve("table"),l=V({}),{onColumnsChange:r,onScrollableChange:s}=dv(a),u=(a==null?void 0:a.props.tableLayout)==="auto",c=Nt(new Map),d=V();let f;const h=()=>{f=setTimeout(()=>{c.size>0&&(c.forEach((L,z)=>{const q=d.value.querySelector(`.${z.replace(/\s/g,".")}`);q&&(L.width=q.getBoundingClientRect().width||L.width)}),c.clear())})};fe(c,h),Lt(()=>{f&&(clearTimeout(f),f=void 0)}),mt(async()=>{await Ie(),await Ie();const{prop:L,order:z}=e.defaultSort;a==null||a.store.commit("sort",{prop:L,order:z,init:!0}),h()});const{handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w}=Fne(e,t),{getHeaderRowStyle:C,getHeaderRowClass:S,getHeaderCellStyle:k,getHeaderCellClass:T}=Kne(e),{isGroup:M,toggleAllSelection:A,columnRows:O}=Pne(e),{t:I}=xt();return n.state={onColumnsChange:r,onScrollableChange:s},n.filterPanels=l,{ns:o,t:I,filterPanels:l,onColumnsChange:r,onScrollableChange:s,columnRows:O,getHeaderRowClass:S,getHeaderRowStyle:C,getHeaderCellClass:T,getHeaderCellStyle:k,handleHeaderClick:g,handleHeaderContextMenu:p,handleMouseDown:v,handleMouseMove:m,handleMouseOut:y,handleSortClick:b,handleFilterClick:w,isGroup:M,toggleAllSelection:A,saveIndexSelection:c,isTableLayoutAuto:u,theadRef:d,updateFixedColumnStyle:h}},render(){const{ns:e,t,isGroup:n,columnRows:a,getHeaderCellStyle:o,getHeaderCellClass:l,getHeaderRowClass:r,getHeaderRowStyle:s,handleHeaderClick:u,handleHeaderContextMenu:c,handleMouseDown:d,handleMouseMove:f,handleSortClick:h,handleMouseOut:g,store:p,$parent:v,saveIndexSelection:m,isTableLayoutAuto:y}=this;let b=1;return qe("thead",{ref:"theadRef",class:e.is("group",n)},a.map((w,C)=>qe("tr",{class:r(C),key:C,style:s(C)},w.map((S,k)=>{S.rowSpan>b&&(b=S.rowSpan);const T=l(C,k,w,S);return y&&S.fixed&&m.set(T,S),qe("th",{class:T,colspan:S.colSpan,key:`${S.id}-thead`,rowspan:S.rowSpan,scope:S.colSpan>1?"colgroup":"col",ariaSort:S.sortable?S.order:void 0,style:o(C,k,w,S),onClick:M=>{var A;(A=M.currentTarget)!=null&&A.classList.contains("noclick")||u(M,S)},onContextmenu:M=>c(M,S),onMousedown:M=>d(M,S),onMousemove:M=>f(M,S),onMouseout:g},[qe("div",{class:["cell",S.filteredValue&&S.filteredValue.length>0?"highlight":""]},[S.renderHeader?S.renderHeader({column:S,$index:k,store:p,_self:v}):S.label,S.sortable&&qe("button",{type:"button",class:"caret-wrapper","aria-label":t("el.table.sortLabel",{column:S.label||""}),onClick:M=>h(M,S)},[qe("i",{onClick:M=>h(M,S,"ascending"),class:"sort-caret ascending"}),qe("i",{onClick:M=>h(M,S,"descending"),class:"sort-caret descending"})]),S.filterable&&qe(Hne,{store:p,placement:S.filterPlacement||"bottom-start",appendTo:v==null?void 0:v.appendFilterPanelTo,column:S,upDataColumn:(M,A)=>{S[M]=A}},{"filter-icon":()=>S.renderFilterIcon?S.renderFilterIcon({filterOpened:S.filterOpened}):null})])])}))))}});function jne(e){const t=Ne(Co),n=V(""),a=V(qe("div")),o=(p,v,m)=>{var S,k;const y=t,b=E0(p);let w=null;const C=(S=y==null?void 0:y.vnode.el)==null?void 0:S.dataset.prefix;b&&(w=Ug({columns:((k=e.store)==null?void 0:k.states.columns.value)??[]},b,C),w&&(y==null||y.emit(`cell-${m}`,v,w,b,p))),y==null||y.emit(`row-${m}`,v,w,p)},l=(p,v)=>{o(p,v,"dblclick")},r=(p,v)=>{var m;(m=e.store)==null||m.commit("setCurrentRow",v),o(p,v,"click")},s=(p,v)=>{o(p,v,"contextmenu")},u=Ko(p=>{var v;(v=e.store)==null||v.commit("setHoverRow",p)},30),c=Ko(()=>{var p;(p=e.store)==null||p.commit("setHoverRow",null)},30),d=p=>{const v=window.getComputedStyle(p,null);return{left:Number.parseInt(v.paddingLeft,10)||0,right:Number.parseInt(v.paddingRight,10)||0,top:Number.parseInt(v.paddingTop,10)||0,bottom:Number.parseInt(v.paddingBottom,10)||0}},f=(p,v,m)=>{var b;let y=(b=v==null?void 0:v.target)==null?void 0:b.parentNode;for(;p>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)m(y,"hover-row hover-fixed-row"),p--};return{handleDoubleClick:l,handleClick:r,handleContextMenu:s,handleMouseEnter:u,handleMouseLeave:c,handleCellMouseEnter:(p,v,m)=>{var N,P,B;if(!t)return;const y=t,b=E0(p),w=(N=y==null?void 0:y.vnode.el)==null?void 0:N.dataset.prefix;let C=null;if(b){if(C=Ug({columns:((P=e.store)==null?void 0:P.states.columns.value)??[]},b,w),!C)return;b.rowSpan>1&&f(b.rowSpan,p,Ka);const W=y.hoverState={cell:b,column:C,row:v};y==null||y.emit("cell-mouse-enter",W.row,W.column,W.cell,p)}if(!m){(fn==null?void 0:fn.trigger)===b&&(fn==null||fn());return}const S=p.target.querySelector(".cell");if(!(Vo(S,`${w}-tooltip`)&&S.childNodes.length&&((B=S.textContent)!=null&&B.trim())))return;const k=document.createRange();k.setStart(S,0),k.setEnd(S,S.childNodes.length);const{width:T,height:M}=k.getBoundingClientRect(),{width:A,height:O}=S.getBoundingClientRect(),{top:I,left:L,right:z,bottom:q}=d(S),U=L+z,F=I+q;jl(T+U,A)||jl(M+F,O)||jl(S.scrollWidth,A)?xne(m,((b==null?void 0:b.innerText)||(b==null?void 0:b.textContent))??"",v,C,b,y):(fn==null?void 0:fn.trigger)===b&&(fn==null||fn())},handleCellMouseLeave:p=>{const v=E0(p);if(!v)return;v.rowSpan>1&&f(v.rowSpan,p,sa);const m=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",m==null?void 0:m.row,m==null?void 0:m.column,m==null?void 0:m.cell,p)},tooltipContent:n,tooltipTrigger:a}}function qne(e){const t=Ne(Co),n=ve("table");return{getRowStyle:(c,d)=>{const f=t==null?void 0:t.props.rowStyle;return ct(f)?f.call(null,{row:c,rowIndex:d}):f||null},getRowClass:(c,d,f)=>{var p;const h=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&c===((p=e.store)==null?void 0:p.states.currentRow.value)&&h.push("current-row"),e.stripe&&f%2===1&&h.push(n.em("row","striped"));const g=t==null?void 0:t.props.rowClassName;return Ue(g)?h.push(g):ct(g)&&h.push(g.call(null,{row:c,rowIndex:d})),h},getCellStyle:(c,d,f,h)=>{const g=t==null?void 0:t.props.cellStyle;let p=g??{};ct(g)&&(p=g.call(null,{rowIndex:c,columnIndex:d,row:f,column:h}));const v=uv(d,e==null?void 0:e.fixed,e.store);return Ws(v,"left"),Ws(v,"right"),Object.assign({},p,v)},getCellClass:(c,d,f,h,g)=>{const p=iv(n.b(),d,e==null?void 0:e.fixed,e.store,void 0,g),v=[h.id,h.align,h.className,...p],m=t==null?void 0:t.props.cellClassName;return Ue(m)?v.push(m):ct(m)&&v.push(m.call(null,{rowIndex:c,columnIndex:d,row:f,column:h})),v.push(n.e("cell")),v.filter(y=>!!y).join(" ")},getSpan:(c,d,f,h)=>{let g=1,p=1;const v=t==null?void 0:t.props.spanMethod;if(ct(v)){const m=v({row:c,column:d,rowIndex:f,columnIndex:h});Ve(m)?(g=m[0],p=m[1]):Mt(m)&&(g=m.rowspan,p=m.colspan)}return{rowspan:g,colspan:p}},getColspanRealWidth:(c,d,f)=>{if(d<1)return c[f].realWidth;const h=c.map(({realWidth:g,width:p})=>g||p).slice(f,f+d);return Number(h.reduce((g,p)=>Number(g)+Number(p),-1))}}}const Une=["colspan","rowspan"];var Yne=D({name:"TableTdWrapper",__name:"td-wrapper",props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(_(),$("td",{colspan:e.colspan,rowspan:e.rowspan},[oe(t.$slots,"default")],8,Une))}}),Gne=Yne;function Xne(e){const t=Ne(Co),n=ve("table"),{handleDoubleClick:a,handleClick:o,handleContextMenu:l,handleMouseEnter:r,handleMouseLeave:s,handleCellMouseEnter:u,handleCellMouseLeave:c,tooltipContent:d,tooltipTrigger:f}=jne(e),{getRowStyle:h,getRowClass:g,getCellStyle:p,getCellClass:v,getSpan:m,getColspanRealWidth:y}=qne(e);let b=-1;const w=x(()=>{var M;return(M=e.store)==null?void 0:M.states.columns.value.findIndex(({type:A})=>A==="default")}),C=(M,A)=>{var I;const O=(I=t==null?void 0:t.props)==null?void 0:I.rowKey;return O?Yn(M,O):A},S=(M,A,O,I=!1)=>{const{tooltipEffect:L,tooltipOptions:z,store:q}=e,{indent:U,columns:F}=q.states,N=[];let P=!0;return O&&(N.push(n.em("row",`level-${O.level}`)),P=!!O.display),A===0&&(b=-1),e.stripe&&P&&b++,N.push(...g(M,A,b)),qe("tr",{style:[P?null:{display:"none"},h(M,A)],class:N,key:C(M,A),onDblclick:B=>a(B,M),onClick:B=>o(B,M),onContextmenu:B=>l(B,M),onMouseenter:()=>r(A),onMouseleave:s},F.value.map((B,W)=>{const{rowspan:K,colspan:j}=m(M,B,A,W);if(!K||!j)return null;const G=Object.assign({},B);G.realWidth=y(F.value,j,W);const ee={store:q,_self:e.context||t,column:G,row:M,$index:A,cellIndex:W,expanded:I};W===w.value&&O&&(ee.treeNode={indent:O.level&&O.level*U.value,level:O.level},Dt(O.expanded)&&(ee.treeNode.expanded=O.expanded,"loading"in O&&(ee.treeNode.loading=O.loading),"noLazyChildren"in O&&(ee.treeNode.noLazyChildren=O.noLazyChildren)));const te=`${C(M,A)},${W}`,ue=G.columnKey||G.rawColumnKey||"",ne=B.showOverflowTooltip&&C8({effect:L},z,B.showOverflowTooltip);return qe(Gne,{style:p(A,W,M,B),class:v(A,W,M,B,j-1),key:`${ue}${te}`,rowspan:K,colspan:j,onMouseenter:de=>u(de,M,ne),onMouseleave:c},{default:()=>k(W,B,ee)})}))},k=(M,A,O)=>A.renderCell(O);return{wrappedRowRender:(M,A)=>{const O=e.store,{isRowExpanded:I,assertRowKey:L}=O,{treeData:z,lazyTreeNodeMap:q,childrenColumnName:U,rowKey:F}=O.states,N=O.states.columns.value;if(N.some(({type:P})=>P==="expand")){const P=I(M),B=S(M,A,void 0,P),W=t==null?void 0:t.renderExpanded;if(!W)return console.error("[Element Error]renderExpanded is required."),B;const K=[[B]];return(t.props.preserveExpandedContent||P)&&K[0].push(qe("tr",{key:`expanded-row__${B.key}`,style:{display:P?"":"none"}},[qe("td",{colspan:N.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[W({row:M,$index:A,store:O,expanded:P})])])),K}else if(Object.keys(z.value).length){L();const P=Yn(M,F.value);let B=z.value[P],W=null;B&&(W={expanded:B.expanded,level:B.level,display:!0,noLazyChildren:void 0,loading:void 0},Dt(B.lazy)&&(W&&Dt(B.loaded)&&B.loaded&&(W.noLazyChildren=!(B.children&&B.children.length)),W.loading=B.loading));const K=[S(M,A,W??void 0)];if(B){let j=0;const G=(ee,te)=>{ee&&ee.length&&te&&ee.forEach(ue=>{const ne={display:te.display&&te.expanded,level:te.level+1,expanded:!1,noLazyChildren:!1,loading:!1},de=Yn(ue,F.value);if(Sa(de))throw new Error("For nested data item, row-key is required.");B={...z.value[de]},B&&(ne.expanded=B.expanded,B.level=B.level||ne.level,B.display=!!(B.expanded&&ne.display),Dt(B.lazy)&&(Dt(B.loaded)&&B.loaded&&(ne.noLazyChildren=!(B.children&&B.children.length)),ne.loading=B.loading)),j++,K.push(S(ue,A+j,ne)),B&&G(q.value[de]||ue[U.value],B)})};B.display=!0,G(q.value[P]||M[U.value],B)}return K}else return S(M,A,void 0)},tooltipContent:d,tooltipTrigger:f}}const Jne={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Zne=D({name:"ElTableBody",props:Jne,setup(e){var d;const t=ht(),n=Ne(Co),a=ve("table"),{wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}=Xne(e),{onColumnsChange:s,onScrollableChange:u}=dv(n),c=[];return fe((d=e.store)==null?void 0:d.states.hoverRow,(f,h)=>{var y,b;const g=t==null?void 0:t.vnode.el,p=Array.from((g==null?void 0:g.children)||[]).filter(w=>w==null?void 0:w.classList.contains(`${a.e("row")}`));let v=f;const m=(y=p[v])==null?void 0:y.childNodes;if(m!=null&&m.length){let w=0;Array.from(m).reduce((C,S,k)=>{var T,M;return((T=m[k])==null?void 0:T.colSpan)>1&&(w=(M=m[k])==null?void 0:M.colSpan),S.nodeName!=="TD"&&w===0&&C.push(k),w>0&&w--,C},[]).forEach(C=>{var S;for(v=f;v>0;){const k=(S=p[v-1])==null?void 0:S.childNodes;if(k[C]&&k[C].nodeName==="TD"&&k[C].rowSpan>1){Ka(k[C],"hover-cell"),c.push(k[C]);break}v--}})}else c.forEach(w=>sa(w,"hover-cell")),c.length=0;!((b=e.store)!=null&&b.states.isComplex.value)||!Rt||Ua(()=>{const w=p[h],C=p[f];w&&!w.classList.contains("hover-fixed-row")&&sa(w,"hover-row"),C&&Ka(C,"hover-row")})}),Gs(()=>{fn==null||fn()}),{ns:a,onColumnsChange:s,onScrollableChange:u,wrappedRowRender:o,tooltipContent:l,tooltipTrigger:r}},render(){const{wrappedRowRender:e,store:t}=this;return qe("tbody",{tabIndex:-1},[((t==null?void 0:t.states.data.value)||[]).reduce((n,a)=>n.concat(e(a,n.length)),[])])}});function Qne(){var t;const e=(t=Ne(Co))==null?void 0:t.store;return{leftFixedLeafCount:x(()=>(e==null?void 0:e.states.fixedLeafColumnsLength.value)??0),rightFixedLeafCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columnsCount:x(()=>(e==null?void 0:e.states.columns.value.length)??0),leftFixedCount:x(()=>(e==null?void 0:e.states.fixedColumns.value.length)??0),rightFixedCount:x(()=>(e==null?void 0:e.states.rightFixedColumns.value.length)??0),columns:x(()=>(e==null?void 0:e.states.columns.value)??[])}}function eae(e){const{columns:t}=Qne(),n=ve("table");return{getCellClasses:(l,r)=>{const s=l[r],u=[n.e("cell"),s.id,s.align,s.labelClassName,...iv(n.b(),r,s.fixed,e.store)];return s.className&&u.push(s.className),s.children||u.push(n.is("leaf")),u},getCellStyles:(l,r)=>{const s=uv(r,l.fixed,e.store);return Ws(s,"left"),Ws(s,"right"),s},columns:t}}var tae=D({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const t=Ne(Co),n=ve("table"),{getCellClasses:a,getCellStyles:o,columns:l}=eae(e),{onScrollableChange:r,onColumnsChange:s}=dv(t);return{ns:n,onScrollableChange:r,onColumnsChange:s,getCellClasses:a,getCellStyles:o,columns:l}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:a,sumText:o}=this,l=this.store.states.data.value;let r=[];return a?r=a({columns:e,data:l}):e.forEach((s,u)=>{if(u===0){r[u]=o;return}const c=l.map(g=>Number(g[s.property])),d=[];let f=!0;c.forEach(g=>{if(!Number.isNaN(+g)){f=!1;const p=`${g}`.split(".")[1];d.push(p?p.length:0)}});const h=Math.max.apply(null,d);f?r[u]="":r[u]=c.reduce((g,p)=>{const v=Number(p);return Number.isNaN(+v)?g:Number.parseFloat((g+p).toFixed(Math.min(h,20)))},0)}),qe(qe("tfoot",[qe("tr",{},[...e.map((s,u)=>qe("td",{key:u,colspan:s.colSpan,rowspan:s.rowSpan,class:n(e,u),style:t(s,u)},[qe("div",{class:["cell",s.labelClassName]},[r[u]])]))])]))}});function nae(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,g=!0)=>{e.toggleRowSelection(f,h,!1,g),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function aae(e,t,n,a){const o=V(!1),l=V(null),r=V(!1),s=U=>{r.value=U},u=V({width:null,height:null,headerHeight:null}),c=V(!1),d={display:"inline-block",verticalAlign:"middle"},f=V(),h=V(0),g=V(0),p=V(0),v=V(0),m=V(0);fe(()=>e.height,U=>{t.setHeight(U??null)},{immediate:!0}),fe(()=>e.maxHeight,U=>{t.setMaxHeight(U??null)},{immediate:!0}),fe(()=>[e.currentRowKey,n.states.rowKey],([U,F])=>{!i(F)||!i(U)||n.setCurrentRowKey(`${U}`)},{immediate:!0}),fe(()=>e.data,U=>{a.store.commit("setData",U)},{immediate:!0,deep:!0}),ma(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{a.store.commit("setHoverRow",null),a.hoverState&&(a.hoverState=null)},b=(U,F)=>{const{pixelX:N,pixelY:P}=F;Math.abs(N)>=Math.abs(P)&&(a.refs.bodyWrapper.scrollLeft+=F.pixelX/5)},w=x(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),C=x(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{w.value&&t.updateElsHeight(),t.updateColumnsWidth(),!(typeof window>"u")&&requestAnimationFrame(A)};mt(async()=>{await Ie(),n.updateColumns(),O(),requestAnimationFrame(S);const U=a.vnode.el,F=a.refs.headerWrapper;e.flexible&&U&&U.parentElement&&(U.parentElement.style.minWidth="0"),u.value={width:f.value=U.offsetWidth,height:U.offsetHeight,headerHeight:e.showHeader&&F?F.offsetHeight:null},n.states.columns.value.forEach(N=>{N.filteredValue&&N.filteredValue.length&&a.store.commit("filterChange",{column:N,values:N.filteredValue,silent:!0})}),a.$ready=!0});const k=(U,F)=>{if(!U)return;const N=Array.from(U.classList).filter(P=>!P.startsWith("is-scrolling-"));N.push(t.scrollX.value?F:"is-scrolling-none"),U.className=N.join(" ")},T=U=>{const{tableWrapper:F}=a.refs;k(F,U)},M=U=>{const{tableWrapper:F}=a.refs;return!!(F&&F.classList.contains(U))},A=function(){if(!a.refs.scrollBarRef)return;if(!t.scrollX.value){const K="is-scrolling-none";M(K)||T(K);return}const U=a.refs.scrollBarRef.wrapRef;if(!U)return;const{scrollLeft:F,offsetWidth:N,scrollWidth:P}=U,{headerWrapper:B,footerWrapper:W}=a.refs;B&&(B.scrollLeft=F),W&&(W.scrollLeft=F),F>=P-N-1?T("is-scrolling-right"):T(F===0?"is-scrolling-left":"is-scrolling-middle")},O=()=>{a.refs.scrollBarRef&&(a.refs.scrollBarRef.wrapRef&&Vt(a.refs.scrollBarRef.wrapRef,"scroll",A,{passive:!0}),e.fit?en(a.vnode.el,I):Vt(window,"resize",I),en(a.refs.tableInnerWrapper,()=>{var U,F;I(),(F=(U=a.refs)==null?void 0:U.scrollBarRef)==null||F.update()}))},I=()=>{var G,ee,te,ue;const U=a.vnode.el;if(!a.$ready||!U)return;let F=!1;const{width:N,height:P,headerHeight:B}=u.value,W=f.value=U.offsetWidth;N!==W&&(F=!0);const K=U.offsetHeight;(e.height||w.value)&&P!==K&&(F=!0);const j=e.tableLayout==="fixed"?a.refs.headerWrapper:(G=a.refs.tableHeaderRef)==null?void 0:G.$el;e.showHeader&&(j==null?void 0:j.offsetHeight)!==B&&(F=!0),h.value=((ee=a.refs.tableWrapper)==null?void 0:ee.scrollHeight)||0,p.value=(j==null?void 0:j.scrollHeight)||0,v.value=((te=a.refs.footerWrapper)==null?void 0:te.offsetHeight)||0,m.value=((ue=a.refs.appendWrapper)==null?void 0:ue.offsetHeight)||0,g.value=h.value-p.value-v.value-m.value,F&&(u.value={width:W,height:K,headerHeight:e.showHeader&&(j==null?void 0:j.offsetHeight)||0},S())},L=En(),z=x(()=>{const{bodyWidth:U,scrollY:F,gutterWidth:N}=t;return U.value?`${U.value-(F.value?N:0)}px`:""}),q=x(()=>e.maxHeight?"fixed":e.tableLayout);return{isHidden:o,renderExpanded:l,setDragVisible:s,isGroup:c,handleMouseLeave:y,handleHeaderFooterMousewheel:b,tableSize:L,emptyBlockStyle:x(()=>{if(e.data&&e.data.length)return;let U="100%";e.height&&g.value&&(U=`${g.value}px`);const F=f.value;return{width:F?`${F}px`:"",height:U}}),resizeProxyVisible:r,bodyWidth:z,resizeState:u,doLayout:S,tableBodyStyles:C,tableLayout:q,scrollbarViewStyle:d,scrollbarStyle:x(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${p.value+v.value}px)`}:{maxHeight:`${+e.maxHeight-p.value-v.value}px`}:{})}}function oae(e){let t;const n=()=>{const a=e.vnode.el.querySelector(".hidden-columns"),o={childList:!0,subtree:!0},l=e.store.states.updateOrderFns;t=new MutationObserver(()=>{l.forEach(r=>r())}),t.observe(a,o)};mt(()=>{n()}),Gs(()=>{t==null||t.disconnect()})}var lae={data:{type:Array,default:()=>[]},size:On,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,rowExpandable:{type:Function},defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:[String,Object,Array],default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0},allowDragLastColumn:{type:Boolean,default:!0},preserveExpandedContent:Boolean,nativeScrollbar:Boolean};function T5(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(({width:o})=>kt(o))&&(n=[]);const a=o=>{const l={key:`${e.tableLayout}_${o.id}`,style:{},name:void 0};return t?l.style={width:`${o.width}px`}:l.name=o.id,l};return qe("colgroup",{},n.map(o=>qe("col",a(o))))}T5.props=["columns","tableLayout"];const rae=()=>{const e=V(),t=(l,r)=>{const s=e.value;s&&s.scrollTo(l,r)},n=(l,r)=>{const s=e.value;s&&De(r)&&["Top","Left"].includes(l)&&s[`setScroll${l}`](r)};return{scrollBarRef:e,scrollTo:t,setScrollTop:l=>n("Top",l),setScrollLeft:l=>n("Left",l)}};let sae=1;var iae=D({name:"ElTable",directives:{Mousewheel:PM},components:{TableHeader:Wne,TableBody:Zne,TableFooter:tae,ElScrollbar:uo,hColgroup:T5},props:lae,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change","scroll"],setup(e){const{t}=xt(),n=ve("table"),a=Tl("table"),o=ht();bt(Co,o);const l=Ane(o,e);o.store=l;const r=new Nne({store:o.store,table:o,fit:e.fit,showHeader:e.showHeader});o.layout=r;const s=x(()=>(l.states.data.value||[]).length===0),{setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,sort:m,updateKeyChildren:y}=nae(l),{isHidden:b,renderExpanded:w,setDragVisible:C,isGroup:S,handleMouseLeave:k,handleHeaderFooterMousewheel:T,tableSize:M,emptyBlockStyle:A,resizeProxyVisible:O,bodyWidth:I,resizeState:L,doLayout:z,tableBodyStyles:q,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N}=aae(e,r,l,o),{scrollBarRef:P,scrollTo:B,setScrollLeft:W,setScrollTop:K}=rae(),j=Ko(z,50),G=`${n.namespace.value}-table_${sae++}`;o.tableId=G,o.state={isGroup:S,resizeState:L,doLayout:z,debouncedUpdateLayout:j};const ee=x(()=>e.sumText??t("el.table.sumText")),te=x(()=>e.emptyText??t("el.table.emptyText")),ue=x(()=>{var se;return e.tooltipEffect??((se=a.value)==null?void 0:se.tooltipEffect)}),ne=x(()=>{var se;return e.tooltipOptions??((se=a.value)==null?void 0:se.tooltipOptions)}),de=x(()=>E5(l.states.originColumns.value)[0]);return oae(o),Lt(()=>{j.cancel()}),{ns:n,layout:r,store:l,columns:de,handleHeaderFooterMousewheel:T,handleMouseLeave:k,tableId:G,tableSize:M,isHidden:b,isEmpty:s,renderExpanded:w,resizeProxyVisible:O,resizeState:L,isGroup:S,bodyWidth:I,tableBodyStyles:q,emptyBlockStyle:A,debouncedUpdateLayout:j,setCurrentRow:u,getSelectionRows:c,toggleRowSelection:d,clearSelection:f,clearFilter:h,toggleAllSelection:g,toggleRowExpansion:p,clearSort:v,doLayout:z,sort:m,updateKeyChildren:y,t,setDragVisible:C,context:o,computedSumText:ee,computedEmptyText:te,computedTooltipEffect:ue,computedTooltipOptions:ne,tableLayout:U,scrollbarViewStyle:F,scrollbarStyle:N,scrollBarRef:P,scrollTo:B,setScrollLeft:W,setScrollTop:K,allowDragLastColumn:e.allowDragLastColumn}}});const uae=["data-prefix"],cae={ref:"hiddenColumns",class:"hidden-columns"};function dae(e,t,n,a,o,l){const r=$t("hColgroup"),s=$t("table-header"),u=$t("table-body"),c=$t("table-footer"),d=$t("el-scrollbar"),f=Ap("mousewheel");return _(),$("div",{ref:"tableWrapper",class:R([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:We(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:t[1]||(t[1]=(...h)=>e.handleMouseLeave&&e.handleMouseLeave(...h))},[E("div",{ref:"tableInnerWrapper",class:R(e.ns.e("inner-wrapper"))},[E("div",cae,[oe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?dt((_(),$("div",{key:0,ref:"headerWrapper",class:R(e.ns.e("header-wrapper"))},[E("table",{ref:"tableHeader",class:R(e.ns.e("header")),style:We(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(s,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,"allow-drag-last-column":e.allowDragLastColumn,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","allow-drag-last-column","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),E("div",{ref:"bodyWrapper",class:R(e.ns.e("body-wrapper"))},[Q(d,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex,native:e.nativeScrollbar,onScroll:t[0]||(t[0]=h=>e.$emit("scroll",h))},{default:ae(()=>[E("table",{ref:"tableBody",class:R(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:We({width:e.bodyWidth,tableLayout:e.tableLayout})},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(_(),ie(s,{key:0,ref:"tableHeaderRef",class:R(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):re("v-if",!0),Q(u,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.computedTooltipEffect,"tooltip-options":e.computedTooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(_(),ie(c,{key:1,class:R(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):re("v-if",!0)],6),e.isEmpty?(_(),$("div",{key:0,ref:"emptyBlock",style:We(e.emptyBlockStyle),class:R(e.ns.e("empty-block"))},[E("span",{class:R(e.ns.e("empty-text"))},[oe(e.$slots,"empty",{},()=>[_t(_e(e.computedEmptyText),1)])],2)],6)):re("v-if",!0),e.$slots.append?(_(),$("div",{key:1,ref:"appendWrapper",class:R(e.ns.e("append-wrapper"))},[oe(e.$slots,"append")],2)):re("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex","native"])],2),e.showSummary&&e.tableLayout==="fixed"?dt((_(),$("div",{key:1,ref:"footerWrapper",class:R(e.ns.e("footer-wrapper"))},[E("table",{class:R(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:We(e.tableBodyStyles)},[Q(r,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),Q(c,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[At,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):re("v-if",!0),e.border||e.isGroup?(_(),$("div",{key:2,class:R(e.ns.e("border-left-patch"))},null,2)):re("v-if",!0)],2),dt(E("div",{ref:"resizeProxy",class:R(e.ns.e("column-resize-proxy"))},null,2),[[At,e.resizeProxyVisible]])],46,uae)}var fae=$n(iae,[["render",dae]]);const pae={selection:"table-column--selection",expand:"table__expand-column"},hae={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},vae=e=>pae[e]||"",mae={selection:{renderHeader({store:e}){function t(){return e.states.data.value&&e.states.data.value.length===0}return qe(fo,{disabled:t(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection??void 0,modelValue:e.states.isAllSelected.value,ariaLabel:e.t("el.table.selectAllLabel")})},renderCell({row:e,column:t,store:n,$index:a}){return qe(fo,{disabled:t.selectable?!t.selectable.call(null,e,a):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:o=>o.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:n.t("el.table.selectRowLabel")})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const a=e.index;return De(a)?n=t+a:ct(a)&&(n=a(t)),qe("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({column:e,row:t,store:n,expanded:a,$index:o}){var c,d;const{ns:l}=n,r=[l.e("expand-icon")];!e.renderExpand&&a&&r.push(l.em("expand-icon","expanded"));const s=function(f){f.stopPropagation(),n.toggleRowExpansion(t)},u=((d=(c=n.states.rowExpandable).value)==null?void 0:d.call(c,t,o))??!0;return u||r.push(l.is("disabled")),qe("button",{type:"button",disabled:!u,"aria-label":n.t(a?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":a,class:r,onClick:s},{default:()=>e.renderExpand?[e.renderExpand({expanded:a,expandable:u})]:[qe(ze,null,{default:()=>[qe(Jn)]})]})},sortable:!1,resizable:!1}};function gae({row:e,column:t,$index:n}){var l;const a=t.property,o=a&&Wl(e,a).value;return t&&t.formatter?t.formatter(e,t,o,n):((l=o==null?void 0:o.toString)==null?void 0:l.call(o))||""}function yae({row:e,treeNode:t,store:n},a=!1){const{ns:o}=n;if(!t)return a?[qe("span",{class:o.e("placeholder")})]:null;const l=[],r=function(s){s.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&l.push(qe("span",{class:o.e("indent"),style:{"padding-left":`${t.indent}px`}})),Dt(t.expanded)&&!t.noLazyChildren){const s=[o.e("expand-icon"),t.expanded?o.em("expand-icon","expanded"):""];let u=Jn;t.loading&&(u=io),l.push(qe("button",{type:"button","aria-label":n.t(t.expanded?"el.table.collapseRowLabel":"el.table.expandRowLabel"),"aria-expanded":t.expanded,class:s,onClick:r},{default:()=>[qe(ze,{class:o.is("loading",t.loading)},{default:()=>[qe(u)]})]}))}else l.push(qe("span",{class:o.e("placeholder")}));return l}function Xg(e,t){return e.reduce((n,a)=>(n[a]=a,n),t)}function bae(e,t){const n=ht();return{registerComplexWatchers:()=>{const l=["fixed"],r={realWidth:"width",realMinWidth:"minWidth"},s=Xg(l,r);Object.keys(s).forEach(u=>{const c=r[u];An(t,c)&&fe(()=>t[c],d=>{let f=d;c==="width"&&u==="realWidth"&&(f=sv(d)),c==="minWidth"&&u==="realMinWidth"&&(f=b5(d)),n.columnConfig.value[c]=f,n.columnConfig.value[u]=f;const h=c==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const l=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip","tooltipFormatter","resizable"],r=["showOverflowTooltip"],s={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},u=Xg(l,s);Object.keys(u).forEach(d=>{const f=s[d];An(t,f)&&fe(()=>t[f],h=>{n.columnConfig.value[d]=h,(d==="filters"||d==="filterMethod")&&(n.columnConfig.value.filterable=!!(n.columnConfig.value.filters||n.columnConfig.value.filterMethod))})}),r.forEach(d=>{An(e.value.props,d)&&fe(()=>e.value.props[d],f=>{n.columnConfig.value.type!=="selection"&&kt(t[d])&&(n.columnConfig.value[d]=f)})});const c=Tl("table");c.value&&An(c.value,"showOverflowTooltip")&&fe(()=>{var d;return(d=c.value)==null?void 0:d.showOverflowTooltip},d=>{n.columnConfig.value.type!=="selection"&&(!kt(t.showOverflowTooltip)||!kt(e.value.props.showOverflowTooltip)||(n.columnConfig.value.showOverflowTooltip=d))})}}}function wae(e,t,n){const a=ht(),o=V(""),l=V(!1),r=V(),s=V(),u=ve("table");ma(()=>{r.value=e.align?`is-${e.align}`:null,r.value}),ma(()=>{s.value=e.headerAlign?`is-${e.headerAlign}`:r.value,s.value});const c=x(()=>{let C=a.vnode.vParent||a.parent;for(;C&&!C.tableId&&!C.columnId;)C=C.vnode.vParent||C.parent;return C}),d=x(()=>{const{store:C}=a.parent;if(!C)return!1;const{treeData:S}=C.states,k=S.value;return k&&Object.keys(k).length>0}),f=V(sv(e.width)),h=V(b5(e.minWidth)),g=C=>(f.value&&(C.width=f.value),h.value&&(C.minWidth=h.value),!f.value&&h.value&&(C.width=void 0),C.minWidth||(C.minWidth=80),C.realWidth=Number(kt(C.width)?C.minWidth:C.width),C),p=C=>{const S=C.type,k=mae[S]||{};Object.keys(k).forEach(M=>{const A=k[M];M!=="className"&&!kt(A)&&(C[M]=A)});const T=vae(S);if(T){const M=`${i(u.namespace)}-${T}`;C.className=C.className?`${C.className} ${M}`:M}return C},v=C=>{Ve(C)?C.forEach(k=>S(k)):S(C);function S(k){var T;((T=k==null?void 0:k.type)==null?void 0:T.name)==="ElTableColumn"&&(k.vParent=a)}};return{columnId:o,realAlign:r,isSubColumn:l,realHeaderAlign:s,columnOrTableParent:c,setColumnWidth:g,setColumnForcedProps:p,setColumnRenders:C=>{e.renderHeader?ft("TableColumn","Comparing to render-header, scoped-slot header is easier to use. We recommend users to use scoped-slot header."):C.type!=="selection"&&(C.renderHeader=k=>{if(a.columnConfig.value.label,t.header){const T=t.header(k);if(_5(T))return qe(He,T)}return _t(C.label)}),t["filter-icon"]&&(C.renderFilterIcon=k=>oe(t,"filter-icon",k)),t.expand&&(C.renderExpand=k=>oe(t,"expand",k));let S=C.renderCell;return C.type==="expand"?(C.renderCell=k=>qe("div",{class:"cell"},[S(k)]),n.value.renderExpanded=k=>t.default?t.default(k):t.default):(S=S||gae,C.renderCell=k=>{let T=null;if(t.default){const L=t.default(k);T=L.some(z=>z.type!==wn)?L:S(k)}else T=S(k);const{columns:M}=n.value.store.states,A=M.value.findIndex(L=>L.type==="default"),O=yae(k,d.value&&k.cellIndex===A),I={class:"cell",style:{}};return C.showOverflowTooltip&&(I.class=`${I.class} ${i(u.namespace)}-tooltip`,I.style={width:`${(k.column.realWidth||Number(k.column.width))-1}px`}),v(T),qe("div",I,[O,T])}),C},getPropsData:(...C)=>C.reduce((S,k)=>(Ve(k)&&k.forEach(T=>{S[T]=e[T]}),S),{}),getColumnElIndex:(C,S)=>Array.prototype.indexOf.call(C,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",a.columnConfig.value)}}}var Cae={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},tooltipFormatter:Function,fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let _ae=1;var Sae=D({name:"ElTableColumn",components:{ElCheckbox:fo},props:Cae,setup(e,{slots:t}){const n=ht(),a=Tl("table"),o=V({}),l=x(()=>{let C=n.parent;for(;C&&!C.tableId;)C=C.parent;return C}),{registerNormalWatchers:r,registerComplexWatchers:s}=bae(l,e),{columnId:u,isSubColumn:c,realHeaderAlign:d,columnOrTableParent:f,setColumnWidth:h,setColumnForcedProps:g,setColumnRenders:p,getPropsData:v,getColumnElIndex:m,realAlign:y,updateColumnOrder:b}=wae(e,t,l),w=f.value;u.value=`${"tableId"in w&&w.tableId||"columnId"in w&&w.columnId}_column_${_ae++}`,Ud(()=>{var O,I;c.value=l.value!==w;const C=e.type||"default",S=e.sortable===""?!0:e.sortable,k=C==="selection"?!1:kt(e.showOverflowTooltip)?w.props.showOverflowTooltip??((O=a.value)==null?void 0:O.showOverflowTooltip):e.showOverflowTooltip,T=kt(e.tooltipFormatter)?w.props.tooltipFormatter??((I=a.value)==null?void 0:I.tooltipFormatter):e.tooltipFormatter,M={...hae[C],id:u.value,type:C,property:e.prop||e.property,align:y,headerAlign:d,showOverflowTooltip:k,tooltipFormatter:T,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:S,index:e.index,rawColumnKey:n.vnode.key};let A=v(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);A=bne(M,A),A=Cne(p,h,g)(A),o.value=A,r(),s()}),mt(()=>{var T,M;const C=f.value,S=c.value?(T=C.vnode.el)==null?void 0:T.children:(M=C.refs.hiddenColumns)==null?void 0:M.children,k=()=>m(S||[],n.vnode.el);o.value.getColumnIndex=k,k()>-1&&l.value.store.commit("insertColumn",o.value,c.value?"columnConfig"in C&&C.columnConfig.value:null,b)}),Lt(()=>{const C=o.value.getColumnIndex;(C?C():-1)>-1&&l.value.store.commit("removeColumn",o.value,c.value?"columnConfig"in w&&w.columnConfig.value:null,b)}),n.columnId=u.value,n.columnConfig=o},render(){var e,t,n;try{const a=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),o=[];if(Ve(a))for(const l of a)((n=l.type)==null?void 0:n.name)==="ElTableColumn"||l.shapeFlag&2?o.push(l):l.type===He&&Ve(l.children)&&l.children.forEach(r=>{(r==null?void 0:r.patchFlag)!==1024&&!Ue(r==null?void 0:r.children)&&o.push(r)});return qe("div",o)}catch{return qe("div",[])}}}),M5=Sae;const xae=rt(fae,{TableColumn:M5}),kae=ln(M5);let Po=function(e){return e.ASC="asc",e.DESC="desc",e}({}),Ad=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({}),Eae=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const X2={[Po.ASC]:Po.DESC,[Po.DESC]:Po.ASC},vu=Symbol("placeholder"),O5=String,qu={type:J(Array),required:!0},fv={type:J(Array)},$5={...fv,required:!0},Tae=String,Jg={type:J(Array),default:()=>un([])},vr={type:Number,required:!0},A5={type:J([String,Number,Symbol]),default:"id"},Zg={type:J(Object)},_r=Ce({class:String,columns:qu,columnsStyles:{type:J(Object),required:!0},depth:Number,expandColumnKey:Tae,estimatedRowHeight:{...Or.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:J(Function)},onRowHover:{type:J(Function)},onRowHeightChange:{type:J(Function)},rowData:{type:J(Object),required:!0},rowEventHandlers:{type:J(Object)},rowIndex:{type:Number,required:!0},rowKey:A5,style:{type:J(Object)}}),T0={type:Number,required:!0},pv=Ce({class:String,columns:qu,fixedHeaderData:{type:J(Array)},headerData:{type:J(Array),required:!0},headerHeight:{type:J([Number,Array]),default:50},rowWidth:T0,rowHeight:{type:Number,default:50},height:T0,width:T0}),Hc=Ce({columns:qu,data:$5,fixedData:fv,estimatedRowHeight:_r.estimatedRowHeight,width:vr,height:vr,headerWidth:vr,headerHeight:pv.headerHeight,bodyWidth:vr,rowHeight:vr,cache:Zw.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Or.scrollbarAlwaysOn,scrollbarStartGap:Or.scrollbarStartGap,scrollbarEndGap:Or.scrollbarEndGap,class:O5,style:Zg,containerStyle:Zg,getRowHeight:{type:J(Function),required:!0},rowKey:_r.rowKey,onRowsRendered:{type:J(Function)},onScroll:{type:J(Function)}}),Mae=Ce({cache:Hc.cache,estimatedRowHeight:_r.estimatedRowHeight,rowKey:A5,headerClass:{type:J([String,Function])},headerProps:{type:J([Object,Function])},headerCellProps:{type:J([Object,Function])},headerHeight:pv.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:J([String,Function])},rowProps:{type:J([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:J([Object,Function])},columns:qu,data:$5,dataGetter:{type:J(Function)},fixedData:fv,expandColumnKey:_r.expandColumnKey,expandedRowKeys:Jg,defaultExpandedRowKeys:Jg,class:O5,fixed:Boolean,style:{type:J(Object)},width:vr,height:vr,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Or.hScrollbarSize,vScrollbarSize:Or.vScrollbarSize,scrollbarAlwaysOn:t5.alwaysOn,sortBy:{type:J(Object),default:()=>({})},sortState:{type:J(Object),default:void 0},onColumnSort:{type:J(Function)},onExpandedRowsChange:{type:J(Function)},onEndReached:{type:J(Function)},onRowExpand:_r.onRowExpand,onScroll:Hc.onScroll,onRowsRendered:Hc.onRowsRendered,rowEventHandlers:_r.rowEventHandlers}),Oae=(e,t,n)=>{const a={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow??0,flexShrink:e.flexShrink??1}},o={...e.style??{},...a,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(o.maxWidth=e.maxWidth),e.minWidth&&(o.minWidth=e.minWidth)),o};function $ae(e,t,n){const a=x(()=>i(t).map((m,y)=>({...m,key:m.key??m.dataKey??y}))),o=x(()=>i(a).filter(m=>!m.hidden)),l=x(()=>i(o).filter(m=>m.fixed==="left"||m.fixed===!0)),r=x(()=>i(o).filter(m=>m.fixed==="right")),s=x(()=>i(o).filter(m=>!m.fixed)),u=x(()=>{const m=[];return i(l).forEach(y=>{m.push({...y,placeholderSign:vu})}),i(s).forEach(y=>{m.push(y)}),i(r).forEach(y=>{m.push({...y,placeholderSign:vu})}),m}),c=x(()=>i(l).length||i(r).length),d=x(()=>i(a).reduce((m,y)=>(m[y.key]=Oae(y,i(n),e.fixed),m),{})),f=x(()=>i(o).reduce((m,y)=>m+y.width,0)),h=m=>i(a).find(y=>y.key===m),g=m=>i(d)[m],p=(m,y)=>{m.width=y};function v(m){var S;const{key:y}=m.currentTarget.dataset;if(!y)return;const{sortState:b,sortBy:w}=e;let C=Po.ASC;Mt(b)?C=X2[b[y]]:C=X2[w.order],(S=e.onColumnSort)==null||S.call(e,{column:h(y),key:y,order:C})}return{columns:a,columnsStyles:d,columnsTotalWidth:f,fixedColumnsOnLeft:l,fixedColumnsOnRight:r,hasFixedColumns:c,mainColumns:u,normalColumns:s,visibleColumns:o,getColumn:h,getColumnStyle:g,updateColumnWidth:p,onColumnSorted:v}}const Aae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:o})=>{const l=V({scrollLeft:0,scrollTop:0});function r(g){var v,m,y;const{scrollTop:p}=g;(v=t.value)==null||v.scrollTo(g),(m=n.value)==null||m.scrollToTop(p),(y=a.value)==null||y.scrollToTop(p)}function s(g){l.value=g,r(g)}function u(g){l.value.scrollTop=g,r(i(l))}function c(g){var p,v;l.value.scrollLeft=g,(v=(p=t.value)==null?void 0:p.scrollTo)==null||v.call(p,i(l))}function d(g){var p;s(g),(p=e.onScroll)==null||p.call(e,g)}function f({scrollTop:g}){const{scrollTop:p}=i(l);g!==p&&u(g)}function h(g,p="auto"){var v;(v=t.value)==null||v.scrollToRow(g,p)}return fe(()=>i(l).scrollTop,(g,p)=>{g>p&&o()}),{scrollPos:l,scrollTo:s,scrollToLeft:c,scrollToTop:u,scrollToRow:h,onScroll:d,onVerticalScroll:f}},Rae=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:o,ns:l,isScrolling:r})=>{const s=ht(),{emit:u}=s,c=qt(!1),d=V(e.defaultExpandedRowKeys||[]),f=V(-1),h=qt(null),g=V({}),p=V({}),v=qt({}),m=qt({}),y=qt({}),b=x(()=>De(e.estimatedRowHeight));function w(O){var I;(I=e.onRowsRendered)==null||I.call(e,O),O.rowCacheEnd>i(f)&&(f.value=O.rowCacheEnd)}function C({hovered:O,rowKey:I}){r.value||o.vnode.el.querySelectorAll(`[rowkey="${String(I)}"]`).forEach(L=>{O?L.classList.add(l.is("hovered")):L.classList.remove(l.is("hovered"))})}function S({expanded:O,rowData:I,rowIndex:L,rowKey:z}){var F,N;const q=[...i(d)],U=q.indexOf(z);O?U===-1&&q.push(z):U>-1&&q.splice(U,1),d.value=q,u("update:expandedRowKeys",q),(F=e.onRowExpand)==null||F.call(e,{expanded:O,rowData:I,rowIndex:L,rowKey:z}),(N=e.onExpandedRowsChange)==null||N.call(e,q),o.vnode.el.querySelector(`.${l.is("hovered")}[rowkey="${String(z)}"]`)&&Ie(()=>C({hovered:!0,rowKey:z}))}const k=Ko(()=>{var O,I,L,z;c.value=!0,g.value={...i(g),...i(p)},T(i(h),!1),p.value={},h.value=null,(O=t.value)==null||O.forceUpdate(),(I=n.value)==null||I.forceUpdate(),(L=a.value)==null||L.forceUpdate(),(z=s.proxy)==null||z.$forceUpdate(),c.value=!1},0);function T(O,I=!1){i(b)&&[t,n,a].forEach(L=>{const z=i(L);z&&z.resetAfterRowIndex(O,I)})}function M(O,I,L){const z=i(h);(z===null||z>L)&&(h.value=L),p.value[O]=I}function A({rowKey:O,height:I,rowIndex:L},z){z?z===Eae.RIGHT?y.value[O]=I:v.value[O]=I:m.value[O]=I;const q=Math.max(...[v,y,m].map(U=>U.value[O]||0));i(g)[O]!==q&&(M(O,q,L),k())}return{expandedRowKeys:d,lastRenderedRowIndex:f,isDynamic:b,isResetting:c,rowHeights:g,resetAfterIndex:T,onRowExpanded:S,onRowHovered:C,onRowsRendered:w,onRowHeightChange:A}},Nae=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:a})=>{const o=V({}),l=x(()=>{const s={},{data:u,rowKey:c}=e,d=i(t);if(!d||!d.length)return u;const f=[],h=new Set;d.forEach(p=>h.add(p));let g=u.slice();for(g.forEach(p=>s[p[c]]=0);g.length>0;){const p=g.shift();f.push(p),h.has(p[c])&&Ve(p.children)&&p.children.length>0&&(g=[...p.children,...g],p.children.forEach(v=>s[v[c]]=s[p[c]]+1))}return o.value=s,f}),r=x(()=>{const{data:s,expandColumnKey:u}=e;return u?i(l):s});return fe(r,(s,u)=>{s!==u&&(n.value=-1,a(0,!0))}),{data:r,depthMap:o}},Pae=(e,t)=>e+t,Fc=e=>Ve(e)?e.reduce(Pae,0):e,Hr=(e,t,n={})=>ct(e)?e(t):e??n,Kl=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=cn(e[t])}),e),R5=e=>Wt(e)?t=>qe(e,t):e,Iae=(e,{columnsTotalWidth:t,rowsHeight:n,fixedColumnsOnLeft:a,fixedColumnsOnRight:o})=>{const l=x(()=>{const{fixed:v,width:m,vScrollbarSize:y}=e,b=m-y;return v?Math.max(Math.round(i(t)),b):b}),r=x(()=>{const{height:v=0,maxHeight:m=0,footerHeight:y,hScrollbarSize:b}=e;if(m>0){const w=i(h),C=i(n),S=i(f)+w+C+b;return Math.min(S,m-y)}return v-y}),s=x(()=>{const{maxHeight:v}=e,m=i(r);if(De(v)&&v>0)return m;const y=i(n)+i(f)+i(h);return Math.min(m,y)}),u=v=>v.width,c=x(()=>Fc(i(a).map(u))),d=x(()=>Fc(i(o).map(u))),f=x(()=>Fc(e.headerHeight)),h=x(()=>{var v;return(((v=e.fixedData)==null?void 0:v.length)||0)*e.rowHeight}),g=x(()=>i(r)-i(f)-i(h)),p=x(()=>{const{style:v={},height:m,width:y}=e;return Kl({...v,height:m,width:y})});return{bodyWidth:l,fixedTableHeight:s,mainTableHeight:r,leftTableWidth:c,rightTableWidth:d,windowHeight:g,footerHeight:x(()=>Kl({height:e.footerHeight})),emptyStyle:x(()=>({top:cn(i(f)),bottom:cn(e.footerHeight),width:cn(e.width)})),rootStyle:p,headerHeight:f}};function Lae(e){const t=V(),n=V(),a=V(),{columns:o,columnsStyles:l,columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,hasFixedColumns:c,mainColumns:d,onColumnSorted:f}=$ae(e,Bt(e,"columns"),Bt(e,"fixed")),{scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y,scrollPos:b}=Aae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,onMaybeEndReached:Z}),w=ve("table-v2"),C=ht(),S=qt(!1),{expandedRowKeys:k,lastRenderedRowIndex:T,isDynamic:M,isResetting:A,rowHeights:O,resetAfterIndex:I,onRowExpanded:L,onRowHeightChange:z,onRowHovered:q,onRowsRendered:U}=Rae(e,{mainTableRef:t,leftTableRef:n,rightTableRef:a,tableInstance:C,ns:w,isScrolling:S}),{data:F,depthMap:N}=Nae(e,{expandedRowKeys:k,lastRenderedRowIndex:T,resetAfterIndex:I}),P=x(()=>{const{estimatedRowHeight:le,rowHeight:ce}=e,ge=i(F);return De(le)?Object.values(i(O)).reduce((me,$e)=>me+$e,0):ge.length*ce}),{bodyWidth:B,fixedTableHeight:W,mainTableHeight:K,leftTableWidth:j,rightTableWidth:G,windowHeight:ee,footerHeight:te,emptyStyle:ue,rootStyle:ne,headerHeight:de}=Iae(e,{columnsTotalWidth:r,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,rowsHeight:P}),se=V(),Y=x(()=>{const le=i(F).length===0;return Ve(e.fixedData)?e.fixedData.length===0&&le:le});function X(le){const{estimatedRowHeight:ce,rowHeight:ge,rowKey:me}=e;return ce?i(O)[i(F)[le][me]]||ce:ge}const H=V(!1);function Z(){const{onEndReached:le}=e;if(!le)return;const{scrollTop:ce}=i(b),ge=i(P),me=ge-(ce+i(ee))+e.hScrollbarSize;!H.value&&i(T)>=0&&ge<=ce+i(K)-i(de)?(H.value=!0,le(me)):H.value=!1}return fe(()=>i(P),()=>H.value=!1),fe(()=>e.expandedRowKeys,le=>k.value=le,{deep:!0}),{columns:o,containerRef:se,mainTableRef:t,leftTableRef:n,rightTableRef:a,isDynamic:M,isResetting:A,isScrolling:S,hasFixedColumns:c,columnsStyles:l,columnsTotalWidth:r,data:F,expandedRowKeys:k,depthMap:N,fixedColumnsOnLeft:s,fixedColumnsOnRight:u,mainColumns:d,bodyWidth:B,emptyStyle:ue,rootStyle:ne,footerHeight:te,mainTableHeight:K,fixedTableHeight:W,leftTableWidth:j,rightTableWidth:G,showEmpty:Y,getRowHeight:X,onColumnSorted:f,onRowHovered:q,onRowExpanded:L,onRowsRendered:U,onRowHeightChange:z,scrollTo:h,scrollToLeft:g,scrollToTop:p,scrollToRow:v,onScroll:m,onVerticalScroll:y}}const hv=Symbol("tableV2"),N5="tableV2GridScrollLeft",Vae=D({name:"ElTableV2Header",props:pv,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),o=Ne(N5),l=V(),r=x(()=>Kl({width:e.width,height:e.height})),s=x(()=>Kl({width:e.rowWidth,height:e.height})),u=x(()=>In(i(e.headerHeight))),c=h=>{const g=i(l);Ie(()=>{g!=null&&g.scroll&&g.scroll({left:h})})},d=()=>{const h=a.e("fixed-header-row"),{columns:g,fixedHeaderData:p,rowHeight:v}=e;return p==null?void 0:p.map((m,y)=>{var w;const b=Kl({height:v,width:"100%"});return(w=t.fixed)==null?void 0:w.call(t,{class:h,columns:g,rowData:m,rowIndex:-(y+1),style:b})})},f=()=>{const h=a.e("dynamic-header-row"),{columns:g}=e;return i(u).map((p,v)=>{var y;const m=Kl({width:"100%",height:p});return(y=t.dynamic)==null?void 0:y.call(t,{class:h,columns:g,headerIndex:v,style:m})})};return ho(()=>{o!=null&&o.value&&c(o.value)}),n({scrollToLeft:c}),()=>{if(!(e.height<=0))return Q("div",{ref:l,class:e.class,style:i(r),role:"rowgroup"},[Q("div",{style:i(s),class:a.e("header")},[f(),d()])])}}}),Bae="ElTableV2Grid",zae=e=>{const t=V(),n=V(),a=V(0),o=x(()=>{const{data:m,rowHeight:y,estimatedRowHeight:b}=e;if(!b)return m.length*y}),l=x(()=>{const{fixedData:m,rowHeight:y}=e;return((m==null?void 0:m.length)||0)*y}),r=x(()=>Fc(e.headerHeight)),s=x(()=>{const{height:m}=e;return Math.max(0,m-i(r)-i(l))}),u=x(()=>i(r)+i(l)>0),c=({data:m,rowIndex:y})=>m[y][e.rowKey];function d({rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w}){var C;(C=e.onRowsRendered)==null||C.call(e,{rowCacheStart:m,rowCacheEnd:y,rowVisibleStart:b,rowVisibleEnd:w})}function f(m,y){var b;(b=n.value)==null||b.resetAfterRowIndex(m,y)}function h(m,y){const b=i(t),w=i(n);Mt(m)?(b==null||b.scrollToLeft(m.scrollLeft),a.value=m.scrollLeft,w==null||w.scrollTo(m)):(b==null||b.scrollToLeft(m),a.value=m,w==null||w.scrollTo({scrollLeft:m,scrollTop:y}))}function g(m){var y;(y=i(n))==null||y.scrollTo({scrollTop:m})}function p(m,y){const b=i(n);if(!b)return;const w=a.value;b.scrollToItem(m,0,y),w&&h({scrollLeft:w})}function v(){var m,y;(m=i(n))==null||m.$forceUpdate(),(y=i(t))==null||y.$forceUpdate()}return fe(()=>e.bodyWidth,()=>{var m;De(e.estimatedRowHeight)&&((m=n.value)==null||m.resetAfter({columnIndex:0},!1))}),{bodyRef:n,forceUpdate:v,fixedRowHeight:l,gridHeight:s,hasHeader:u,headerHeight:r,headerRef:t,totalHeight:o,itemKey:c,onItemRendered:d,resetAfterRowIndex:f,scrollTo:h,scrollToTop:g,scrollToRow:p,scrollLeft:a}},vv=D({name:Bae,props:Hc,setup(e,{slots:t,expose:n}){const{ns:a}=Ne(hv),{bodyRef:o,fixedRowHeight:l,gridHeight:r,hasHeader:s,headerRef:u,headerHeight:c,totalHeight:d,forceUpdate:f,itemKey:h,onItemRendered:g,resetAfterRowIndex:p,scrollTo:v,scrollToTop:m,scrollToRow:y,scrollLeft:b}=zae(e);bt(N5,b),wu(async()=>{var S;await Ie();const C=(S=o.value)==null?void 0:S.states.scrollTop;C&&m(Math.round(C)+1)}),n({forceUpdate:f,totalHeight:d,scrollTo:v,scrollToTop:m,scrollToRow:y,resetAfterRowIndex:p});const w=()=>e.bodyWidth;return()=>{const{cache:C,columns:S,data:k,fixedData:T,useIsScrolling:M,scrollbarAlwaysOn:A,scrollbarEndGap:O,scrollbarStartGap:I,style:L,rowHeight:z,bodyWidth:q,estimatedRowHeight:U,headerWidth:F,height:N,width:P,getRowHeight:B,onScroll:W}=e,K=De(U),j=K?Fee:Bee,G=i(c);return Q("div",{role:"table",class:[a.e("table"),e.class],style:L},[Q(j,{ref:o,data:k,useIsScrolling:M,itemKey:h,columnCache:0,columnWidth:K?w:q,totalColumn:1,totalRow:k.length,rowCache:C,rowHeight:K?B:z,width:P,height:i(r),class:a.e("body"),role:"rowgroup",scrollbarStartGap:I,scrollbarEndGap:O,scrollbarAlwaysOn:A,onScroll:W,onItemRendered:g,perfMode:!1},{default:ee=>{var ue;const te=k[ee.rowIndex];return(ue=t.row)==null?void 0:ue.call(t,{...ee,columns:S,rowData:te})}}),i(s)&&Q(Vae,{ref:u,class:a.e("header-wrapper"),columns:S,headerData:k,headerHeight:e.headerHeight,fixedHeaderData:T,rowWidth:F,rowHeight:z,width:P,height:Math.min(G+i(l),N)},{dynamic:t.header,fixed:t.row})])}}});function Dae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Hae=(e,{slots:t})=>{const{mainTableRef:n,...a}=e;return Q(vv,pt({ref:n},a),Dae(t)?t:{default:()=>[t]})};function Fae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Kae=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...a}=e;return Q(vv,pt({ref:n},a),Fae(t)?t:{default:()=>[t]})};function Wae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const jae=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...a}=e;return Q(vv,pt({ref:n},a),Wae(t)?t:{default:()=>[t]})},qae=e=>{const{isScrolling:t}=Ne(hv),n=V(!1),a=V(),o=x(()=>De(e.estimatedRowHeight)&&e.rowIndex>=0),l=(u=!1)=>{const c=i(a);if(!c)return;const{columns:d,onRowHeightChange:f,rowKey:h,rowIndex:g,style:p}=e,{height:v}=c.getBoundingClientRect();n.value=!0,Ie(()=>{if(u||v!==Number.parseInt(p.height)){const m=d[0],y=(m==null?void 0:m.placeholderSign)===vu;f==null||f({rowKey:h,height:v,rowIndex:g},m&&!y&&m.fixed)}})},r=x(()=>{const{rowData:u,rowIndex:c,rowKey:d,onRowHover:f}=e,h=e.rowEventHandlers||{},g={};return Object.entries(h).forEach(([p,v])=>{ct(v)&&(g[p]=m=>{v({event:m,rowData:u,rowIndex:c,rowKey:d})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:p,hovered:v})=>{const m=g[p];g[p]=y=>{f({event:y,hovered:v,rowData:u,rowIndex:c,rowKey:d}),m==null||m(y)}}),g}),s=u=>{const{onRowExpand:c,rowData:d,rowIndex:f,rowKey:h}=e;c==null||c({expanded:u,rowData:d,rowIndex:f,rowKey:h})};return mt(()=>{i(o)&&l(!0)}),{isScrolling:t,measurable:o,measured:n,rowRef:a,eventHandlers:r,onExpand:s}},Uae=D({name:"ElTableV2TableRow",props:_r,setup(e,{expose:t,slots:n,attrs:a}){const{eventHandlers:o,isScrolling:l,measurable:r,measured:s,rowRef:u,onExpand:c}=qae(e);return t({onExpand:c}),()=>{const{columns:d,columnsStyles:f,expandColumnKey:h,depth:g,rowData:p,rowIndex:v,style:m}=e;let y=d.map((b,w)=>{const C=Ve(p.children)&&p.children.length>0&&b.key===h;return n.cell({column:b,columns:d,columnIndex:w,depth:g,style:f[b.key],rowData:p,rowIndex:v,isScrolling:i(l),expandIconProps:C?{rowData:p,rowIndex:v,onExpand:c}:void 0})});if(n.row&&(y=n.row({cells:y.map(b=>Ve(b)&&b.length===1?b[0]:b),style:m,columns:d,depth:g,rowData:p,rowIndex:v,isScrolling:i(l)})),i(r)){const{height:b,...w}=m||{},C=i(s);return Q("div",pt({ref:u,class:e.class,style:C?m:w,role:"row"},a,i(o)),[y])}return Q("div",pt(a,{ref:u,class:e.class,style:m,role:"row"},i(o)),[y])}}});function Yae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Gae=(e,{slots:t})=>{const{columns:n,columnsStyles:a,depthMap:o,expandColumnKey:l,expandedRowKeys:r,estimatedRowHeight:s,hasFixedColumns:u,rowData:c,rowIndex:d,style:f,isScrolling:h,rowProps:g,rowClass:p,rowKey:v,rowEventHandlers:m,ns:y,onRowHovered:b,onRowExpanded:w}=e,C=Hr(p,{columns:n,rowData:c,rowIndex:d},""),S=Hr(g,{columns:n,rowData:c,rowIndex:d}),k=c[v],T=o[k]||0,M=!!l,A=d<0,O=[y.e("row"),C,y.is("expanded",M&&r.includes(k)),y.is("fixed",!T&&A),y.is("customized",!!t.row),{[y.e(`row-depth-${T}`)]:M&&d>=0}],I=u?b:void 0,L={...S,columns:n,columnsStyles:a,class:O,depth:T,expandColumnKey:l,estimatedRowHeight:A?void 0:s,isScrolling:h,rowIndex:d,rowData:c,rowKey:k,rowEventHandlers:m,style:f};return Q(Uae,pt(L,{onRowExpand:w,onMouseenter:U=>{I==null||I({hovered:!0,rowKey:k,event:U,rowData:c,rowIndex:d})},onMouseleave:U=>{I==null||I({hovered:!1,rowKey:k,event:U,rowData:c,rowIndex:d})},rowkey:k}),Yae(t)?t:{default:()=>[t]})},mv=(e,{slots:t})=>{var r;const{cellData:n,style:a}=e,o=((r=n==null?void 0:n.toString)==null?void 0:r.call(n))||"",l=oe(t,"default",e,()=>[o]);return Q("div",{class:e.class,title:o,style:a},[l])};mv.displayName="ElTableV2Cell";mv.inheritAttrs=!1;const P5=e=>{const{expanded:t,expandable:n,onExpand:a,style:o,size:l,ariaLabel:r}=e;return Q("button",pt({onClick:n?()=>a(!t):void 0,ariaLabel:r,ariaExpanded:t,class:e.class},{type:"button"}),[Q(ze,{size:l,style:o},{default:()=>[Q(Jn,null,null)]})])};P5.inheritAttrs=!1;const J2=({columns:e,column:t,columnIndex:n,depth:a,expandIconProps:o,isScrolling:l,rowData:r,rowIndex:s,style:u,expandedRowKeys:c,ns:d,t:f,cellProps:h,expandColumnKey:g,indentSize:p,iconSize:v,rowKey:m},{slots:y})=>{const b=Kl(u);if(t.placeholderSign===vu)return Q("div",{class:d.em("row-cell","placeholder"),style:b},null);const{cellRenderer:w,dataKey:C,dataGetter:S}=t,k=ct(S)?S({columns:e,column:t,columnIndex:n,rowData:r,rowIndex:s}):_n(r,C??""),T=Hr(h,{cellData:k,columns:e,column:t,columnIndex:n,rowIndex:s,rowData:r}),M={class:d.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:k,isScrolling:l,rowData:r,rowIndex:s},A=R5(w),O=A?A(M):oe(y,"default",M,()=>[Q(mv,M,null)]),I=[d.e("row-cell"),t.class,t.align===Ad.CENTER&&d.is("align-center"),t.align===Ad.RIGHT&&d.is("align-right")],L=s>=0&&g&&t.key===g,z=s>=0&&c.includes(r[m]);let q;const U=`margin-inline-start: ${a*p}px;`;return L&&(Mt(o)?q=Q(P5,pt(o,{class:[d.e("expand-icon"),d.is("expanded",z)],size:v,expanded:z,ariaLabel:f(z?"el.table.collapseRowLabel":"el.table.expandRowLabel"),style:U,expandable:!0}),null):q=Q("div",{style:[U,`width: ${v}px; height: ${v}px;`].join(" ")},null)),Q("div",pt({class:I,style:b},T,{role:"cell"}),[q,O])};J2.inheritAttrs=!1;const Xae=Ce({class:String,columns:qu,columnsStyles:{type:J(Object),required:!0},headerIndex:Number,style:{type:J(Object)}}),Jae=D({name:"ElTableV2HeaderRow",props:Xae,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:a,headerIndex:o,style:l}=e;let r=n.map((s,u)=>t.cell({columns:n,column:s,columnIndex:u,headerIndex:o,style:a[s.key]}));return t.header&&(r=t.header({cells:r.map(s=>Ve(s)&&s.length===1?s[0]:s),columns:n,headerIndex:o})),Q("div",{class:e.class,style:l,role:"row"},[r])}}});function Zae(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const Qae=({columns:e,columnsStyles:t,headerIndex:n,style:a,headerClass:o,headerProps:l,ns:r},{slots:s})=>{const u={columns:e,headerIndex:n},c=[r.e("header-row"),Hr(o,u,""),r.is("customized",!!s.header)];return Q(Jae,{...Hr(l,u),columnsStyles:t,class:c,columns:e,headerIndex:n,style:a},Zae(s)?s:{default:()=>[s]})},gv=(e,{slots:t})=>oe(t,"default",e,()=>{var n,a;return[Q("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(a=e.column)==null?void 0:a.title])]});gv.displayName="ElTableV2HeaderCell";gv.inheritAttrs=!1;const eoe=e=>{const{sortOrder:t}=e;return Q("button",{type:"button","aria-label":e.ariaLabel,class:e.class},[Q(ze,{size:14},{default:()=>[t===Po.ASC?Q(Hy,null,null):Q(Dy,null,null)]})])},Qg=(e,{slots:t})=>{const{column:n,ns:a,t:o,style:l,onColumnSorted:r}=e,s=Kl(l);if(n.placeholderSign===vu)return Q("div",{class:a.em("header-row-cell","placeholder"),style:s},null);const{headerCellRenderer:u,headerClass:c,sortable:d}=n,f={...e,class:a.e("header-cell-text")},h=R5(u),g=h?h(f):oe(t,"default",f,()=>[Q(gv,f,null)]),{sortBy:p,sortState:v,headerCellProps:m}=e;let y,b,w;if(v){const S=v[n.key];y=!!X2[S],b=y?S:Po.ASC}else y=n.key===p.key,b=y?p.order:Po.ASC;b===Po.ASC?w="ascending":b===Po.DESC?w="descending":w=void 0;const C=[a.e("header-cell"),Hr(c,e,""),n.align===Ad.CENTER&&a.is("align-center"),n.align===Ad.RIGHT&&a.is("align-right"),d&&a.is("sortable")];return Q("div",pt({...Hr(m,e),onClick:n.sortable?r:void 0,ariaSort:d?w:void 0,class:C,style:s,"data-key":n.key},{role:"columnheader"}),[g,d&&Q(eoe,{class:[a.e("sort-icon"),y&&a.is("sorting")],sortOrder:b,ariaLabel:o("el.table.sortLabel",{column:n.title||""})},null)])},I5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};I5.displayName="ElTableV2Footer";const L5=(e,{slots:t})=>{const n=oe(t,"default",{},()=>[Q(zw,null,null)]);return Q("div",{class:e.class,style:e.style},[n])};L5.displayName="ElTableV2Empty";const V5=(e,{slots:t})=>{var n;return Q("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};V5.displayName="ElTableV2Overlay";function bi(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wt(e)}const toe=D({name:"ElTableV2",props:Mae,slots:Object,setup(e,{slots:t,expose:n}){const a=ve("table-v2"),{t:o}=xt(),{columnsStyles:l,fixedColumnsOnLeft:r,fixedColumnsOnRight:s,mainColumns:u,mainTableHeight:c,fixedTableHeight:d,leftTableWidth:f,rightTableWidth:h,data:g,depthMap:p,expandedRowKeys:v,hasFixedColumns:m,mainTableRef:y,leftTableRef:b,rightTableRef:w,isDynamic:C,isResetting:S,isScrolling:k,bodyWidth:T,emptyStyle:M,rootStyle:A,footerHeight:O,showEmpty:I,scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U,getRowHeight:F,onColumnSorted:N,onRowHeightChange:P,onRowHovered:B,onRowExpanded:W,onRowsRendered:K,onScroll:j,onVerticalScroll:G}=Lae(e);return n({scrollTo:L,scrollToLeft:z,scrollToTop:q,scrollToRow:U}),bt(hv,{ns:a,isResetting:S,isScrolling:k}),()=>{const{cache:ee,cellProps:te,estimatedRowHeight:ue,expandColumnKey:ne,fixedData:de,headerHeight:se,headerClass:Y,headerProps:X,headerCellProps:H,sortBy:Z,sortState:le,rowHeight:ce,rowClass:ge,rowEventHandlers:me,rowKey:$e,rowProps:Re,scrollbarAlwaysOn:Ae,indentSize:ye,iconSize:ke,useIsScrolling:be,vScrollbarSize:Pe,width:Be}=e,Qe=i(g),tt={cache:ee,class:a.e("main"),columns:i(u),data:Qe,fixedData:de,estimatedRowHeight:ue,bodyWidth:i(T),headerHeight:se,headerWidth:i(T),height:i(c),mainTableRef:y,rowKey:$e,rowHeight:ce,scrollbarAlwaysOn:Ae,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:Be,getRowHeight:F,onRowsRendered:K,onScroll:j},nt=i(f),Te=i(d),Ye={cache:ee,class:a.e("left"),columns:i(r),data:Qe,fixedData:de,estimatedRowHeight:ue,leftTableRef:b,rowHeight:ce,bodyWidth:nt,headerWidth:nt,headerHeight:se,height:Te,rowKey:$e,scrollbarAlwaysOn:Ae,scrollbarStartGap:2,scrollbarEndGap:Pe,useIsScrolling:be,width:nt,getRowHeight:F,onScroll:G},st=i(h),Ke={cache:ee,class:a.e("right"),columns:i(s),data:Qe,fixedData:de,estimatedRowHeight:ue,rightTableRef:w,rowHeight:ce,bodyWidth:st,headerWidth:st,headerHeight:se,height:Te,rowKey:$e,scrollbarAlwaysOn:Ae,scrollbarStartGap:2,scrollbarEndGap:Pe,width:st,style:`${a.cssVarName("table-scrollbar-size")}: ${Pe}px`,useIsScrolling:be,getRowHeight:F,onScroll:G},et=i(l),gt={ns:a,depthMap:i(p),columnsStyles:et,expandColumnKey:ne,expandedRowKeys:i(v),estimatedRowHeight:ue,hasFixedColumns:i(m),rowProps:Re,rowClass:ge,rowKey:$e,rowEventHandlers:me,onRowHovered:B,onRowExpanded:W,onRowHeightChange:P},he={cellProps:te,expandColumnKey:ne,indentSize:ye,iconSize:ke,rowKey:$e,expandedRowKeys:i(v),ns:a,t:o},Le={ns:a,headerClass:Y,headerProps:X,columnsStyles:et},pe={ns:a,t:o,sortBy:Z,sortState:le,headerCellProps:H,onColumnSorted:N},Ee={row:Xt=>Q(Gae,pt(Xt,gt),{row:t.row,cell:Oe=>{let Fe;return t.cell?Q(J2,pt(Oe,he,{style:et[Oe.column.key]}),bi(Fe=t.cell(Oe))?Fe:{default:()=>[Fe]}):Q(J2,pt(Oe,he,{style:et[Oe.column.key]}),null)}}),header:Xt=>Q(Qae,pt(Xt,Le),{header:t.header,cell:Oe=>{let Fe;return t["header-cell"]?Q(Qg,pt(Oe,pe,{style:et[Oe.column.key]}),bi(Fe=t["header-cell"](Oe))?Fe:{default:()=>[Fe]}):Q(Qg,pt(Oe,pe,{style:et[Oe.column.key]}),null)}})},it=[e.class,a.b(),a.e("root"),a.is("dynamic",i(C))],Pt={class:a.e("footer"),style:i(O)};return Q("div",{class:it,style:i(A)},[Q(Hae,tt,bi(Ee)?Ee:{default:()=>[Ee]}),Q(Kae,Ye,bi(Ee)?Ee:{default:()=>[Ee]}),Q(jae,Ke,bi(Ee)?Ee:{default:()=>[Ee]}),t.footer&&Q(I5,Pt,{default:t.footer}),i(I)&&Q(L5,{class:a.e("empty"),style:i(M)},{default:t.empty}),t.overlay&&Q(V5,{class:a.e("overlay")},{default:t.overlay})])}}}),noe=Ce({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:J(Function)}}),aoe=e=>{const t=V(),n=V(0),a=V(0);let o;return mt(()=>{o=en(t,([l])=>{const{width:r,height:s}=l.contentRect,{paddingLeft:u,paddingRight:c,paddingTop:d,paddingBottom:f}=getComputedStyle(l.target),h=Number.parseInt(u)||0,g=Number.parseInt(c)||0,p=Number.parseInt(d)||0,v=Number.parseInt(f)||0;n.value=r-h-g,a.value=s-p-v}).stop}),Lt(()=>{o==null||o()}),fe([n,a],([l,r])=>{var s;(s=e.onResize)==null||s.call(e,{width:l,height:r})}),{sizer:t,width:n,height:a}},ooe=D({name:"ElAutoResizer",props:noe,setup(e,{slots:t}){const n=ve("auto-resizer"),{height:a,width:o,sizer:l}=aoe(e),r={width:"100%",height:"100%"};return()=>{var s;return Q("div",{ref:l,class:n.b(),style:r},[(s=t.default)==null?void 0:s.call(t,{height:a.value,width:o.value})])}}}),loe=rt(toe),roe=rt(ooe),Tf=Symbol("tabsRootContextKey"),soe=Ce({tabs:{type:J(Array),default:()=>un([])},tabRefs:{type:J(Object),default:()=>un({})}}),e4="ElTabBar";var ioe=D({name:e4,__name:"tab-bar",props:soe,setup(e,{expose:t}){const n=e,a=Ne(Tf);a||on(e4,"");const o=ve("tabs"),l=V(),r=V(),s=x(()=>{var g;return kt(a.props.defaultValue)||!!((g=r.value)!=null&&g.transform)}),u=()=>{let g=0,p=0;const v=["top","bottom"].includes(a.props.tabPosition)?"width":"height",m=v==="width"?"x":"y",y=m==="x"?"left":"top";return n.tabs.every(b=>{if(kt(b.paneName))return!1;const w=n.tabRefs[b.paneName];if(!w)return!1;if(!b.active)return!0;g=w[`offset${l0(y)}`],p=w[`client${l0(v)}`];const C=window.getComputedStyle(w);return v==="width"&&(p-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),g+=Number.parseFloat(C.paddingLeft)),!1}),{[v]:`${p}px`,transform:`translate${l0(m)}(${g}px)`}},c=()=>r.value=u(),d=[],f=()=>{d.forEach(g=>g.stop()),d.length=0,Object.values(n.tabRefs).forEach(g=>{d.push(en(g,c))})};fe(()=>n.tabs,async()=>{await Ie(),c(),f()},{immediate:!0});const h=en(l,()=>c());return Lt(()=>{d.forEach(g=>g.stop()),d.length=0,h.stop()}),t({ref:l,update:c}),(g,p)=>s.value?(_(),$("div",{key:0,ref_key:"barRef",ref:l,class:R([i(o).e("active-bar"),i(o).is(i(a).props.tabPosition)]),style:We(r.value)},null,6)):re("v-if",!0)}}),uoe=ioe;const coe=Ce({panes:{type:J(Array),default:()=>un([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),doe={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},t4="ElTabNav",foe=D({name:t4,props:coe,emits:doe,setup(e,{expose:t,emit:n}){const a=Ne(Tf);a||on(t4,"");const o=ve("tabs"),l=KS(),r=jS(),s=V(),u=V(),c=V(),d=V({}),f=V(),h=V(!1),g=V(0),p=V(!1),v=V(!0),m=V(!1),y=qt(),b=x(()=>["top","bottom"].includes(a.props.tabPosition)),w=x(()=>b.value?"width":"height"),C=x(()=>{const j=w.value==="width"?"X":"Y";return{transition:m.value?"none":void 0,transform:`translate${j}(-${g.value}px)`}}),{width:S,height:k}=Z0(s),{width:T,height:M}=Z0(u,{width:0,height:0},{box:"border-box"}),A=x(()=>b.value?S.value:k.value),O=x(()=>b.value?T.value:M.value),{onWheel:I}=a5({atStartEdge:x(()=>g.value<=0),atEndEdge:x(()=>O.value-g.value<=A.value),layout:x(()=>b.value?"horizontal":"vertical")},j=>{g.value=gr(g.value+j,0,O.value-A.value)}),L=j=>{m.value=!0,I(j),Ua(()=>{m.value=!1})},z=()=>{if(!s.value)return;const j=s.value.getBoundingClientRect()[w.value],G=g.value;G&&(g.value=G>j?G-j:0)},q=()=>{if(!s.value||!u.value)return;const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;jl(j-ee,G)&&(g.value=j-ee>G*2?ee+G:j-G)},U=async()=>{const j=u.value;if(!h.value||!c.value||!s.value||!j)return;await Ie();const G=d.value[e.currentName];if(!G)return;const ee=s.value,te=G.getBoundingClientRect(),ue=ee.getBoundingClientRect(),ne=ue.left+1,de=ue.right-1,se=j.getBoundingClientRect(),Y=b.value?se.width-ue.width:se.height-ue.height,X=g.value;let H=X;b.value?(te.leftde&&(H=X+te.right-de)):(te.topue.bottom&&(H=X+(te.bottom-ue.bottom))),H=Math.max(H,0),g.value=Math.min(H,Y)},F=()=>{var te;if(!u.value||!s.value)return;e.stretch&&((te=f.value)==null||te.update());const j=u.value.getBoundingClientRect()[w.value],G=s.value.getBoundingClientRect()[w.value],ee=g.value;G0&&(g.value=0))},N=j=>{const G=Kt(j);let ee=0;switch(G){case we.left:case we.up:ee=-1;break;case we.right:case we.down:ee=1;break;default:return}const te=Array.from(j.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let ue=te.indexOf(j.target)+ee;ue<0?ue=te.length-1:ue>=te.length&&(ue=0),te[ue].focus({preventScroll:!0}),te[ue].click(),P()},P=()=>{v.value&&(p.value=!0)},B=()=>p.value=!1,W=(j,G)=>{d.value[G]=j},K=async()=>{var j;await Ie(),(j=d.value[e.currentName])==null||j.focus({preventScroll:!0})};return fe(l,j=>{j==="hidden"?v.value=!1:j==="visible"&&setTimeout(()=>v.value=!0,50)}),fe(r,j=>{j?setTimeout(()=>v.value=!0,50):v.value=!1}),en(c,()=>{Ua(F)}),mt(()=>setTimeout(()=>U(),0)),ho(()=>F()),t({scrollToActiveTab:U,removeFocus:B,focusActiveTab:K,tabListRef:u,tabBarRef:f,scheduleRender:()=>Ec(y)}),()=>{const j=h.value?[Q("span",{class:[o.e("nav-prev"),o.is("disabled",!h.value.prev)],onClick:z},[Q(ze,null,{default:()=>[Q(jo,null,null)]})]),Q("span",{class:[o.e("nav-next"),o.is("disabled",!h.value.next)],onClick:q},[Q(ze,null,{default:()=>[Q(Jn,null,null)]})])]:null,G=e.panes.map((ee,te)=>{var Z,le;const ue=ee.uid,ne=ee.props.disabled,de=ee.props.name??ee.index??`${te}`,se=!ne&&(ee.isClosable||ee.props.closable!==!1&&e.editable);ee.index=`${te}`;const Y=se?Q(ze,{class:"is-icon-close",onClick:ce=>n("tabRemove",ee,ce)},{default:()=>[Q(Ba,null,null)]}):null,X=((le=(Z=ee.slots).label)==null?void 0:le.call(Z))||ee.props.label,H=!ne&&ee.active?e.tabindex??a.props.tabindex:-1;return Q("div",{ref:ce=>W(ce,de),class:[o.e("item"),o.is(a.props.tabPosition),o.is("active",ee.active),o.is("disabled",ne),o.is("closable",se),o.is("focus",p.value)],id:`tab-${de}`,key:`tab-${ue}`,"aria-controls":`pane-${de}`,role:"tab","aria-selected":ee.active,tabindex:H,onFocus:()=>P(),onBlur:()=>B(),onClick:ce=>{B(),n("tabClick",ee,de,ce)},onKeydown:ce=>{const ge=Kt(ce);se&&(ge===we.delete||ge===we.backspace)&&n("tabRemove",ee,ce)}},[X,Y])});return y.value,Q("div",{ref:c,class:[o.e("nav-wrap"),o.is("scrollable",!!h.value),o.is(a.props.tabPosition)]},[j,Q("div",{class:o.e("nav-scroll"),ref:s},[e.panes.length>0?Q("div",{class:[o.e("nav"),o.is(a.props.tabPosition),o.is("stretch",e.stretch&&["top","bottom"].includes(a.props.tabPosition))],ref:u,style:C.value,role:"tablist",onKeydown:N,onWheel:L},[e.type?null:Q(uoe,{ref:f,tabs:[...e.panes],tabRefs:d.value},null),G]):null])])}}}),poe=Ce({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:J(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),M0=e=>Ue(e)||De(e),hoe={[at]:e=>M0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>M0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>M0(e),tabAdd:()=>!0},voe=D({name:"ElTabs",props:poe,emits:hoe,setup(e,{emit:t,slots:n,expose:a}){const o=ve("tabs"),l=x(()=>["left","right"].includes(e.tabPosition)),{children:r,addChild:s,removeChild:u,ChildrenSorter:c}=mf(ht(),"ElTabPane"),d=V(),f=V((kt(e.modelValue)?e.defaultValue:e.modelValue)??"0"),h=async(b,w=!1)=>{var C,S,k,T;if(!(f.value===b||kt(b)))try{let M;if(e.beforeLeave){const A=e.beforeLeave(b,f.value);M=A instanceof Promise?await A:A}else M=!0;if(M!==!1){const A=(C=r.value.find(O=>O.paneName===f.value))==null?void 0:C.isFocusInsidePane();f.value=b,w&&(t(at,b),t("tabChange",b)),(k=(S=d.value)==null?void 0:S.removeFocus)==null||k.call(S),A&&((T=d.value)==null||T.focusActiveTab())}}catch{}},g=(b,w,C)=>{b.props.disabled||(t("tabClick",b,C),h(w,!0))},p=(b,w)=>{b.props.disabled||kt(b.props.name)||(w.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},v=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const w=Kt(b);[we.enter,we.numpadEnter].includes(w)&&v()},y=b=>{const w=b.el.firstChild,C=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;w!==C&&w.before(C)};return fe(()=>e.modelValue,b=>h(b)),fe(f,async()=>{var b;await Ie(),(b=d.value)==null||b.scrollToActiveTab()}),bt(Tf,{props:e,currentName:f,registerPane:s,unregisterPane:u,nav$:d}),a({currentName:f,get tabNavRef(){return Mu(d.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],w=e.editable||e.addable?Q("div",{class:[o.e("new-tab"),l.value&&o.e("new-tab-vertical")],tabindex:e.tabindex,onClick:v,onKeydown:m},[b?oe(n,"add-icon"):Q(ze,{class:o.is("icon-plus")},{default:()=>[Q(kh,null,null)]})]):null,C=()=>Q(foe,{ref:d,currentName:f.value,editable:e.editable,type:e.type,panes:r.value,stretch:e.stretch,onTabClick:g,onTabRemove:p},null),S=Q("div",{class:[o.e("header"),l.value&&o.e("header-vertical"),o.is(e.tabPosition)]},[Q(c,null,{default:C,$stable:!0}),w]),k=Q("div",{class:o.e("content")},[oe(n,"default")]);return Q("div",{class:[o.b(),o.m(e.tabPosition),{[o.m("card")]:e.type==="card",[o.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[k,S])}}}),moe=Ce({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),goe=["id","aria-hidden","aria-labelledby"],n4="ElTabPane";var yoe=D({name:n4,__name:"tab-pane",props:moe,setup(e){const t=e,n=ht(),a=yn(),o=Ne(Tf);o||on(n4,"usage: ");const l=ve("tab-pane"),r=V(),s=V(),u=x(()=>t.closable??o.props.closable),c=x(()=>o.currentName.value===(t.name??s.value)),d=V(c.value),f=x(()=>t.name??s.value),h=x(()=>!t.lazy||d.value||c.value),g=()=>{var v;return(v=r.value)==null?void 0:v.contains(document.activeElement)};fe(c,v=>{v&&(d.value=!0)});const p=Nt({uid:n.uid,getVnode:()=>n.vnode,slots:a,props:t,paneName:f,active:c,index:s,isClosable:u,isFocusInsidePane:g});return o.registerPane(p),Lt(()=>{o.unregisterPane(p)}),Op(()=>{var v;a.label&&((v=o.nav$.value)==null||v.scheduleRender())}),(v,m)=>h.value?dt((_(),$("div",{key:0,id:`pane-${f.value}`,ref_key:"paneRef",ref:r,class:R(i(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${f.value}`},[oe(v.$slots,"default")],10,goe)),[[At,c.value]]):re("v-if",!0)}}),B5=yoe;const boe=rt(voe,{TabPane:B5}),woe=ln(B5),Coe=Ce({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:vo,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}});var _oe=D({name:"ElText",__name:"text",props:Coe,setup(e){const t=e,n=V(),a=En(),o=ve("text"),l=x(()=>[o.b(),o.m(t.type),o.m(a.value),o.is("truncated",t.truncated),o.is("line-clamp",!kt(t.lineClamp))]),r=()=>{var c,d,f,h,g,p,v;if(_l().title)return;let s=!1;const u=((c=n.value)==null?void 0:c.textContent)||"";if(t.truncated){const m=(d=n.value)==null?void 0:d.offsetWidth,y=(f=n.value)==null?void 0:f.scrollWidth;m&&y&&y>m&&(s=!0)}else if(!kt(t.lineClamp)){const m=(h=n.value)==null?void 0:h.offsetHeight,y=(g=n.value)==null?void 0:g.scrollHeight;m&&y&&y>m&&(s=!0)}s?(p=n.value)==null||p.setAttribute("title",u):(v=n.value)==null||v.removeAttribute("title")};return mt(r),ho(r),(s,u)=>(_(),ie(ut(e.tag),{ref_key:"textRef",ref:n,class:R(l.value),style:We({"-webkit-line-clamp":e.lineClamp})},{default:ae(()=>[oe(s.$slots,"default")]),_:3},8,["class","style"]))}}),Soe=_oe;const yv=rt(Soe),Z2="00:30",xoe=Ce({format:{type:String,default:"HH:mm"},modelValue:{type:J(String)},disabled:{type:Boolean,default:void 0},editable:{type:Boolean,default:!0},effect:{type:J(String),default:"light"},clearable:{type:Boolean,default:!0},size:On,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:Z2},minTime:{type:J(String)},maxTime:{type:J(String)},includeEndTime:Boolean,name:String,prefixIcon:{type:J([String,Object]),default:()=>xh},clearIcon:{type:J([String,Object]),default:()=>wo},popperClass:{type:String,default:""},popperStyle:{type:J([String,Object])},...Gr}),rl=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const a=Number.parseInt(t[1],10),o=e.toUpperCase();return o.includes("AM")&&n===12?n=0:o.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:a}}return null},O0=(e,t)=>{const n=rl(e);if(!n)return-1;const a=rl(t);if(!a)return-1;const o=n.minutes+n.hours*60,l=a.minutes+a.hours*60;return o===l?0:o>l?1:-1},a4=e=>`${e}`.padStart(2,"0"),us=e=>`${a4(e.hours)}:${a4(e.minutes)}`,koe=(e,t)=>{const n=rl(e);if(!n)return"";const a=rl(t);if(!a)return"";const o={hours:n.hours,minutes:n.minutes};return o.minutes+=a.minutes,o.hours+=a.hours,o.hours+=Math.floor(o.minutes/60),o.minutes=o.minutes%60,us(o)};var Eoe=D({name:"ElTimeSelect",__name:"time-select",props:xoe,emits:[yt,"blur","focus","clear",at],setup(e,{expose:t}){lt.extend(zh);const{Option:n}=Jl,a=e,o=ve("input"),l=V(),r=dn(),{lang:s}=xt(),u=x(()=>a.modelValue),c=x(()=>{const y=rl(a.start);return y?us(y):null}),d=x(()=>{const y=rl(a.end);return y?us(y):null}),f=x(()=>{const y=rl(a.minTime||"");return y?us(y):null}),h=x(()=>{const y=rl(a.maxTime||"");return y?us(y):null}),g=x(()=>{const y=rl(a.step),b=!y||y.hours<0||y.minutes<0||Number.isNaN(y.hours)||Number.isNaN(y.minutes)||y.hours===0&&y.minutes===0;return b&&ft("ElTimeSelect",`invalid step, fallback to default step (${Z2}).`),b?Z2:us(y)}),p=x(()=>{var w;const y=[],b=(C,S)=>{y.push({value:C,rawValue:S,disabled:O0(S,f.value||"-1:-1")<=0||O0(S,h.value||"100:100")>=0})};if(a.start&&a.end&&a.step){let C=c.value,S;for(;C&&d.value&&O0(C,d.value)<=0;)S=lt(C,"HH:mm").locale(s.value).format(a.format),b(S,C),C=koe(C,g.value);a.includeEndTime&&d.value&&((w=y[y.length-1])==null?void 0:w.rawValue)!==d.value&&b(lt(d.value,"HH:mm").locale(s.value).format(a.format),d.value)}return y});return t({blur:()=>{var y,b;(b=(y=l.value)==null?void 0:y.blur)==null||b.call(y)},focus:()=>{var y,b;(b=(y=l.value)==null?void 0:y.focus)==null||b.call(y)}}),(y,b)=>(_(),ie(i(Jl),{ref_key:"select",ref:l,name:e.name,"model-value":u.value,disabled:i(r),clearable:e.clearable,"clear-icon":e.clearIcon,size:e.size,effect:e.effect,placeholder:e.placeholder,"default-first-option":"",filterable:e.editable,"empty-values":e.emptyValues,"value-on-clear":e.valueOnClear,"popper-class":e.popperClass,"popper-style":e.popperStyle,"onUpdate:modelValue":b[0]||(b[0]=w=>y.$emit(i(at),w)),onChange:b[1]||(b[1]=w=>y.$emit(i(yt),w)),onBlur:b[2]||(b[2]=w=>y.$emit("blur",w)),onFocus:b[3]||(b[3]=w=>y.$emit("focus",w)),onClear:b[4]||(b[4]=()=>y.$emit("clear"))},{prefix:ae(()=>[e.prefixIcon?(_(),ie(i(ze),{key:0,class:R(i(o).e("prefix-icon"))},{default:ae(()=>[(_(),ie(ut(e.prefixIcon)))]),_:1},8,["class"])):re("v-if",!0)]),default:ae(()=>[(_(!0),$(He,null,Ct(p.value,w=>(_(),ie(i(n),{key:w.value,label:w.value,value:w.value,disabled:w.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["name","model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","popper-class","popper-style"]))}}),Toe=Eoe;const Moe=rt(Toe),z5="timeline",Ooe=Ce({mode:{type:String,values:["start","alternate","alternate-reverse","end"],default:"start"},reverse:Boolean}),$oe=D({name:"ElTimeline",props:Ooe,setup(e,{slots:t}){const n=ve("timeline");bt(z5,{props:e,slots:t});const a=x(()=>[n.b(),n.is(e.mode)]);return()=>{var l;const o=Ra(((l=t.default)==null?void 0:l.call(t))??[]);return qe("ul",{class:a.value},e.reverse?o.reverse():o)}}}),Aoe=Ce({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:Ft},hollow:Boolean});var Roe=D({name:"ElTimelineItem",__name:"timeline-item",props:Aoe,setup(e){const t=e,{props:n}=Ne(z5),a=ve("timeline-item"),o=x(()=>[a.e("node"),a.em("node",t.size||""),a.em("node",t.type||""),a.is("hollow",t.hollow)]),l=x(()=>[a.b(),{[a.e("center")]:t.center},a.is(n.mode)]);return(r,s)=>(_(),$("li",{class:R(l.value)},[E("div",{class:R(i(a).e("tail"))},null,2),r.$slots.dot?re("v-if",!0):(_(),$("div",{key:0,class:R(o.value),style:We({backgroundColor:e.color})},[e.icon?(_(),ie(i(ze),{key:0,class:R(i(a).e("icon"))},{default:ae(()=>[(_(),ie(ut(e.icon)))]),_:1},8,["class"])):re("v-if",!0)],6)),r.$slots.dot?(_(),$("div",{key:1,class:R(i(a).e("dot"))},[oe(r.$slots,"dot")],2)):re("v-if",!0),E("div",{class:R(i(a).e("wrapper"))},[!e.hideTimestamp&&e.placement==="top"?(_(),$("div",{key:0,class:R([i(a).e("timestamp"),i(a).is("top")])},_e(e.timestamp),3)):re("v-if",!0),E("div",{class:R(i(a).e("content"))},[oe(r.$slots,"default")],2),!e.hideTimestamp&&e.placement==="bottom"?(_(),$("div",{key:1,class:R([i(a).e("timestamp"),i(a).is("bottom")])},_e(e.timestamp),3)):re("v-if",!0)],2)],2))}}),D5=Roe;const Noe=rt($oe,{TimelineItem:D5}),Poe=ln(D5),H5="left-check-change",F5="right-check-change",cs=Ce({data:{type:J(Array),default:()=>[]},titles:{type:J(Array),default:()=>[]},buttonTexts:{type:J(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:J(Function)},leftDefaultChecked:{type:J(Array),default:()=>[]},rightDefaultChecked:{type:J(Array),default:()=>[]},renderContent:{type:J(Function)},modelValue:{type:J(Array),default:()=>[]},format:{type:J(Object),default:()=>({})},filterable:Boolean,props:{type:J(Object),default:()=>un({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Q2=(e,t)=>[e,t].every(Ve)||Ve(e)&&Cn(t),Ioe={[yt]:(e,t,n)=>[e,n].every(Ve)&&["left","right"].includes(t),[at]:e=>Ve(e),[H5]:Q2,[F5]:Q2},Uu=e=>{const t={label:"label",key:"key",disabled:"disabled"};return x(()=>({...t,...e.props}))},Loe=(e,t)=>({onSourceCheckedChange:(o,l)=>{e.leftChecked=o,l&&t(H5,o,l)},onTargetCheckedChange:(o,l)=>{e.rightChecked=o,l&&t(F5,o,l)}}),Voe=e=>{const t=Uu(e),n=x(()=>e.data.reduce((a,o)=>(a[o[t.value.key]]=o,a),{}));return{sourceData:x(()=>e.data.filter(a=>!e.modelValue.includes(a[t.value.key]))),targetData:x(()=>e.targetOrder==="original"?e.data.filter(a=>e.modelValue.includes(a[t.value.key])):e.modelValue.reduce((a,o)=>{const l=n.value[o];return l&&a.push(l),a},[]))}},Boe=(e,t,n)=>{const a=Uu(e),o=(s,u,c)=>{n(at,s),n(yt,s,u,c)};return{addToLeft:()=>{const s=e.modelValue.slice();t.rightChecked.forEach(u=>{const c=s.indexOf(u);c>-1&&s.splice(c,1)}),o(s,"left",t.rightChecked)},addToRight:()=>{let s=e.modelValue.slice();const u=e.data.filter(c=>{const d=c[a.value.key];return t.leftChecked.includes(d)&&!e.modelValue.includes(d)}).map(c=>c[a.value.key]);s=e.targetOrder==="unshift"?u.concat(s):s.concat(u),e.targetOrder==="original"&&(s=e.data.filter(c=>s.includes(c[a.value.key])).map(c=>c[a.value.key])),o(s,"right",t.leftChecked)}}},ep="checked-change",zoe=Ce({data:cs.data,optionRender:{type:J(Function)},placeholder:String,title:String,filterable:Boolean,format:cs.format,filterMethod:cs.filterMethod,defaultChecked:cs.leftDefaultChecked,props:cs.props}),Doe={[ep]:Q2},Hoe=(e,t,n)=>{const a=Uu(e),o=x(()=>e.data.filter(d=>ct(e.filterMethod)?e.filterMethod(t.query,d):String(d[a.value.label]||d[a.value.key]).toLowerCase().includes(t.query.toLowerCase()))),l=x(()=>o.value.filter(d=>!d[a.value.disabled])),r=x(()=>{const d=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:g}=e.format;return h&&g?d>0?g.replace(/\${checked}/g,d.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${d}/${f}`}),s=x(()=>{const d=t.checked.length;return d>0&&d{const d=l.value.map(f=>f[a.value.key]);t.allChecked=d.length>0&&d.every(f=>t.checked.includes(f))},c=d=>{t.checked=d?l.value.map(f=>f[a.value.key]):[]};return fe(()=>t.checked,(d,f)=>{u(),t.checkChangeByUser?n(ep,d,d.concat(f).filter(h=>!d.includes(h)||!f.includes(h))):(n(ep,d),t.checkChangeByUser=!0)}),fe(l,()=>{u()}),fe(()=>e.data,()=>{const d=[],f=o.value.map(h=>h[a.value.key]);t.checked.forEach(h=>{f.includes(h)&&d.push(h)}),t.checkChangeByUser=!1,t.checked=d}),fe(()=>e.defaultChecked,(d,f)=>{if(f&&d.length===f.length&&d.every(p=>f.includes(p)))return;const h=[],g=l.value.map(p=>p[a.value.key]);d.forEach(p=>{g.includes(p)&&h.push(p)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:o,checkableData:l,checkedSummary:r,isIndeterminate:s,updateAllChecked:u,handleAllCheckedChange:c}};var Foe=D({name:"ElTransferPanel",__name:"transfer-panel",props:zoe,emits:Doe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),r=({option:C})=>C,{t:s}=xt(),u=ve("transfer"),c=Nt({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),d=Uu(a),{filteredData:f,checkedSummary:h,isIndeterminate:g,handleAllCheckedChange:p}=Hoe(a,c,o),v=x(()=>!ha(c.query)&&ha(f.value)),m=x(()=>!ha(l.default()[0].children)),{checked:y,allChecked:b,query:w}=Bn(c);return t({query:w}),(C,S)=>(_(),$("div",{class:R(i(u).b("panel"))},[E("p",{class:R(i(u).be("panel","header"))},[Q(i(fo),{modelValue:i(b),"onUpdate:modelValue":S[0]||(S[0]=k=>Gt(b)?b.value=k:null),indeterminate:i(g),"validate-event":!1,onChange:i(p)},{default:ae(()=>[E("span",{class:R(i(u).be("panel","header-title"))},_e(e.title),3),E("span",{class:R(i(u).be("panel","header-count"))},_e(i(h)),3)]),_:1},8,["modelValue","indeterminate","onChange"])],2),E("div",{class:R([i(u).be("panel","body"),i(u).is("with-footer",m.value)])},[e.filterable?(_(),ie(i(jn),{key:0,modelValue:i(w),"onUpdate:modelValue":S[1]||(S[1]=k=>Gt(w)?w.value=k:null),class:R(i(u).be("panel","filter")),size:"default",placeholder:e.placeholder,"prefix-icon":i(zy),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):re("v-if",!0),dt(Q(i(Kh),{modelValue:i(y),"onUpdate:modelValue":S[2]||(S[2]=k=>Gt(y)?y.value=k:null),"validate-event":!1,class:R([i(u).is("filterable",e.filterable),i(u).be("panel","list")])},{default:ae(()=>[(_(!0),$(He,null,Ct(i(f),k=>(_(),ie(i(fo),{key:k[i(d).key],class:R(i(u).be("panel","item")),value:k[i(d).key],disabled:k[i(d).disabled],"validate-event":!1},{default:ae(()=>{var T;return[Q(r,{option:(T=e.optionRender)==null?void 0:T.call(e,k)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[At,!v.value&&!i(ha)(e.data)]]),dt(E("div",{class:R(i(u).be("panel","empty"))},[oe(C.$slots,"empty",{},()=>[_t(_e(v.value?i(s)("el.transfer.noMatch"):i(s)("el.transfer.noData")),1)])],2),[[At,v.value||i(ha)(e.data)]])],2),m.value?(_(),$("p",{key:0,class:R(i(u).be("panel","footer"))},[oe(C.$slots,"default")],2)):re("v-if",!0)],2))}}),o4=Foe;const Koe={key:0},Woe={key:0};var joe=D({name:"ElTransfer",__name:"transfer",props:cs,emits:Ioe,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),{t:r}=xt(),s=ve("transfer"),{formItem:u}=Kn(),c=Nt({leftChecked:[],rightChecked:[]}),d=Uu(a),{sourceData:f,targetData:h}=Voe(a),{onSourceCheckedChange:g,onTargetCheckedChange:p}=Loe(c,o),{addToLeft:v,addToRight:m}=Boe(a,c,o),y=V(),b=V(),w=A=>{switch(A){case"left":y.value.query="";break;case"right":b.value.query="";break}},C=x(()=>a.buttonTexts.length===2),S=x(()=>a.titles[0]||r("el.transfer.titles.0")),k=x(()=>a.titles[1]||r("el.transfer.titles.1")),T=x(()=>a.filterPlaceholder||r("el.transfer.filterPlaceholder"));fe(()=>a.modelValue,()=>{var A;a.validateEvent&&((A=u==null?void 0:u.validate)==null||A.call(u,"change").catch(O=>ft(O)))});const M=x(()=>A=>{var I;if(a.renderContent)return a.renderContent(qe,A);const O=(((I=l.default)==null?void 0:I.call(l,{option:A}))||[]).filter(L=>L.type!==wn);return O.length?O:qe("span",A[d.value.label]||A[d.value.key])});return t({clearQuery:w,leftPanel:y,rightPanel:b}),(A,O)=>(_(),$("div",{class:R(i(s).b())},[Q(o4,{ref_key:"leftPanel",ref:y,data:i(f),"option-render":M.value,placeholder:T.value,title:S.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,"default-checked":e.leftDefaultChecked,props:a.props,onCheckedChange:i(g)},{empty:ae(()=>[oe(A.$slots,"left-empty")]),default:ae(()=>[oe(A.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),E("div",{class:R(i(s).e("buttons"))},[Q(i(Ln),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",C.value)]),disabled:i(ha)(c.rightChecked),onClick:i(v)},{default:ae(()=>[Q(i(ze),null,{default:ae(()=>[Q(i(jo))]),_:1}),i(kt)(e.buttonTexts[0])?re("v-if",!0):(_(),$("span",Koe,_e(e.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),Q(i(Ln),{type:"primary",class:R([i(s).e("button"),i(s).is("with-texts",C.value)]),disabled:i(ha)(c.leftChecked),onClick:i(m)},{default:ae(()=>[i(kt)(e.buttonTexts[1])?re("v-if",!0):(_(),$("span",Woe,_e(e.buttonTexts[1]),1)),Q(i(ze),null,{default:ae(()=>[Q(i(Jn))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),Q(o4,{ref_key:"rightPanel",ref:b,data:i(h),"option-render":M.value,placeholder:T.value,filterable:e.filterable,format:e.format,"filter-method":e.filterMethod,title:k.value,"default-checked":e.rightDefaultChecked,props:a.props,onCheckedChange:i(p)},{empty:ae(()=>[oe(A.$slots,"right-empty")]),default:ae(()=>[oe(A.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}}),qoe=joe;const Uoe=rt(qoe),bv="RootTree",K5="NodeInstance",l4="TreeNodeMap",W5=Ce({data:{type:J(Array),default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},checkDescendants:Boolean,autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:{type:Array},defaultExpandedKeys:{type:Array},currentNodeKey:{type:[String,Number]},renderContent:{type:J(Function)},showCheckbox:Boolean,draggable:Boolean,allowDrag:{type:J(Function)},allowDrop:{type:J(Function)},props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:Boolean,highlightCurrent:Boolean,load:{type:Function},filterNodeMethod:{type:Function},accordion:Boolean,indent:{type:Number,default:18},icon:{type:Ft}}),Yoe={"check-change":(e,t,n)=>e&&Dt(t)&&Dt(n),"current-change":(e,t)=>!0,"node-click":(e,t,n,a)=>e&&t&&a instanceof Event,"node-contextmenu":(e,t,n,a)=>e instanceof Event&&t&&n,"node-collapse":(e,t,n)=>e&&t,"node-expand":(e,t,n)=>e&&t,check:(e,t)=>e&&t,"node-drag-start":(e,t)=>e&&t,"node-drag-end":(e,t,n,a)=>e&&a,"node-drop":(e,t,n,a)=>e&&t&&a,"node-drag-leave":(e,t,n)=>e&&t&&n,"node-drag-enter":(e,t,n)=>e&&t&&n,"node-drag-over":(e,t,n)=>e&&t&&n},Ss="$treeNodeId",r4=function(e,t){!t||t[Ss]||Object.defineProperty(t,Ss,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},wv=(e,t)=>t==null?void 0:t[e||Ss],tp=(e,t,n)=>{const a=e.value.currentNode;n();const o=e.value.currentNode;a!==o&&t("current-change",o?o.data:null,o)},j5=e=>{let t=!0,n=!0,a=!0,o=!0;for(let l=0,r=e.length;l{n.canFocus=t,np(n.childNodes,t)})};let Goe=0;var ap=class Kc{constructor(t){this.isLeafByUser=void 0,this.isLeaf=void 0,this.isEffectivelyChecked=!1,this.id=Goe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)An(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){var l;const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const r=Cc(this,"isLeaf");Dt(r)&&(this.isLeafByUser=r)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Ve(this.data)||r4(this,this.data),!this.data)return;const a=t.defaultExpandedKeys,o=t.key;o&&!Cn(this.key)&&a&&a.includes(this.key)&&this.expand(null,t.autoExpandParent),o&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode&&(t.currentNode.isCurrent=!1),t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),(this.level===1||((l=this.parent)==null?void 0:l.expanded)===!0)&&(this.canFocus=!0)}setData(t){Ve(t)||r4(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Ve(this.data)?n=this.data:n=Cc(this,"children")||[];for(let a=0,o=n.length;a-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(a=>a===t||n&&a.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,a){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof Kc)){if(!a){const o=this.getChildren(!0);o!=null&&o.includes(t.data)||(kt(n)||n<0?o==null||o.push(t.data):o==null||o.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Nt(new Kc(t)),t instanceof Kc&&t.initialize()}t.level=this.level+1,kt(n)||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let a;n&&(a=this.childNodes.indexOf(n)),this.insertChild(t,a)}insertAfter(t,n){let a;n&&(a=this.childNodes.indexOf(n),a!==-1&&(a+=1)),this.insertChild(t,a)}removeChild(t){const n=this.getChildren()||[],a=n.indexOf(t.data);a>-1&&n.splice(a,1);const o=this.childNodes.indexOf(t);o>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(o,1)),this.updateLeafState()}removeChildByData(t){const n=this.childNodes.find(a=>a.data===t);n&&this.removeChild(n)}expand(t,n){const a=()=>{if(n){let o=this.parent;for(;o&&o.level>0;)o.expanded=!0,o=o.parent}this.expanded=!0,t&&t(),np(this.childNodes,!0)};this.shouldLoadData()?this.loadData(o=>{Ve(o)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Ei(this),a())}):a()}doCreateChildren(t,n={}){t.forEach(a=>{this.insertChild(Object.assign({data:a},n),void 0,!0)})}collapse(){this.expanded=!1,np(this.childNodes,!1)}shouldLoadData(){return!!(this.store.lazy===!0&&this.store.load&&!this.loaded)}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0,this.isEffectivelyChecked=this.isLeaf&&this.disabled;return}this.isLeaf=!1}setChecked(t,n,a,o){if(this.indeterminate=t==="half",this.checked=t===!0,this.isEffectivelyChecked=!this.childNodes.length&&(this.disabled||this.checked),this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const r=()=>{if(n){const s=this.childNodes;for(let f=0,h=s.length;f{r(),Ei(this)},{checked:t!==!1});return}else r()}const l=this.parent;!l||l.level===0||a||Ei(l)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const a=this.store.props;let o="children";return a&&(o=a.children||"children"),kt(n[o])&&(n[o]=null),t&&!n[o]&&(n[o]=[]),n[o]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(l=>l.data),a={},o=[];t.forEach((l,r)=>{const s=l[Ss];s&&n.some(u=>(u==null?void 0:u[Ss])===s)?a[s]={index:r,data:l}:o.push({index:r,data:l})}),this.store.lazy||n.forEach(l=>{a[l==null?void 0:l[Ss]]||this.removeChildByData(l)}),o.forEach(({index:l,data:r})=>{this.insertChild({data:r},l)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const a=l=>{this.childNodes=[],this.doCreateChildren(l,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,l)},o=()=>{this.loading=!1};this.store.load(this,a,o)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const a=n.shift();n.unshift(...a.childNodes),t(a)}}reInitChecked(){this.store.checkStrictly||Ei(this)}},Xoe=class{constructor(e){this.lazy=!1,this.checkStrictly=!1,this.autoExpandParent=!1,this.defaultExpandAll=!1,this.checkDescendants=!1,this.currentNode=null,this.currentNodeKey=null;for(const t in e)An(e,t)&&(this[t]=e[t]);this.nodesMap={}}initialize(){if(this.root=new ap({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,t=>{this.root.doCreateChildren(t),this._initDefaultCheckedNodes()},Yt)}else this._initDefaultCheckedNodes()}filter(e){const t=this.filterNodeMethod,n=this.lazy,a=async function(o){const l=o.root?o.root.childNodes:o.childNodes;for(const[r,s]of l.entries())s.visible=!!(t!=null&&t.call(s,e,s.data,s)),r%80===0&&r>0&&await Ie(),await a(s);if(!o.visible&&l.length){let r=!0;r=!l.some(s=>s.visible),o.root?o.root.visible=r===!1:o.visible=r===!1}e&&o.visible&&!o.isLeaf&&(!n||o.loaded)&&o.expand()};a(this)}setData(e){e!==this.root.data?(this.nodesMap={},this.root.setData(e),this._initDefaultCheckedNodes(),this.setCurrentNodeKey(this.currentNodeKey)):this.root.updateChildren()}getNode(e){if(e instanceof ap)return e;const t=Mt(e)?wv(this.key,e):e;return this.nodesMap[t]||null}insertBefore(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertBefore({data:e},n)}insertAfter(e,t){var a;const n=this.getNode(t);(a=n.parent)==null||a.insertAfter({data:e},n)}remove(e){const t=this.getNode(e);t&&t.parent&&(t===this.currentNode&&(this.currentNode=null),t.parent.removeChild(t))}append(e,t){const n=Sa(t)?this.root:this.getNode(t);n&&n.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],t=this.nodesMap;e.forEach(n=>{const a=t[n];a&&a.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){const t=this.defaultCheckedKeys||[];!Cn(e.key)&&t.includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const t=this.key;if(!(!e||!e.data))if(!t)this.nodesMap[e.id]=e;else{const n=e.key;Cn(n)||(this.nodesMap[n]=e)}}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(t=>{this.deregisterNode(t)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,t=!1){const n=[],a=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(l=>{(l.checked||t&&l.indeterminate)&&(!e||e&&l.isLeaf)&&n.push(l.data),a(l)})};return a(this),n}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(t=>(t||{})[this.key])}getHalfCheckedNodes(){const e=[],t=function(n){(n.root?n.root.childNodes:n.childNodes).forEach(a=>{a.indeterminate&&e.push(a.data),t(a)})};return t(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],t=this.nodesMap;for(const n in t)An(t,n)&&e.push(t[n]);return e}updateChildren(e,t){const n=this.nodesMap[e];if(!n)return;const a=n.childNodes;for(let o=a.length-1;o>=0;o--){const l=a[o];this.remove(l.data)}for(let o=0,l=t.length;os.level-u.level),o=Object.create(null),l=Object.keys(n);a.forEach(s=>s.setChecked(!1,!1));const r=s=>{s.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&r(u)})};for(let s=0,u=a.length;s{g.isLeaf||g.setChecked(!1,!1,!0),f(g)}),h.reInitChecked()};f(c)}}}setCheckedNodes(e,t=!1){const n=this.key,a={};e.forEach(o=>{a[(o||{})[n]]=!0}),this._setCheckedKeys(n,t,a)}setCheckedKeys(e,t=!1){this.defaultCheckedKeys=e;const n=this.key,a={};e.forEach(o=>{a[o]=!0}),this._setCheckedKeys(n,t,a)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(t=>{const n=this.getNode(t);n&&n.expand(null,this.autoExpandParent)})}setChecked(e,t,n){const a=this.getNode(e);a&&a.setChecked(!!t,n)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const t=this.currentNode;t&&(t.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,t=!0){var o;const n=e[this.key],a=this.nodesMap[n];this.setCurrentNode(a),t&&this.currentNode&&this.currentNode.level>1&&((o=this.currentNode.parent)==null||o.expand(null,!0))}setCurrentNodeKey(e,t=!0){var a;if(this.currentNodeKey=e,Sa(e)){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const n=this.getNode(e);n&&(this.setCurrentNode(n),t&&this.currentNode&&this.currentNode.level>1&&((a=this.currentNode.parent)==null||a.expand(null,!0)))}};function q5(e){const t=Ne(l4,null);let n={treeNodeExpand:a=>{var o;e.node!==a&&((o=e.node)==null||o.collapse())},children:new Set};return t&&t.children.add(n),Lt(()=>{t&&t.children.delete(n),n=null}),bt(l4,n),{broadcastExpanded:a=>{if(e.accordion)for(const o of n.children)o.treeNodeExpand(a)}}}const U5=Symbol("dragEvents");function Joe({props:e,ctx:t,el$:n,dropIndicator$:a,store:o}){const l=ve("tree"),r=V({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return bt(U5,{treeNodeDragStart:({event:d,treeNode:f})=>{if(d.dataTransfer){if(ct(e.allowDrag)&&!e.allowDrag(f.node))return d.preventDefault(),!1;d.dataTransfer.effectAllowed="move";try{d.dataTransfer.setData("text/plain","")}catch{}r.value.draggingNode=f,t.emit("node-drag-start",f.node,d)}},treeNodeDragOver:({event:d,treeNode:f})=>{if(!d.dataTransfer)return;const h=f,g=r.value.dropNode;g&&g.node.id!==h.node.id&&sa(g.$el,l.is("drop-inner"));const p=r.value.draggingNode;if(!p||!h)return;let v=!0,m=!0,y=!0,b=!0;ct(e.allowDrop)&&(v=e.allowDrop(p.node,h.node,"prev"),b=m=e.allowDrop(p.node,h.node,"inner"),y=e.allowDrop(p.node,h.node,"next")),d.dataTransfer.dropEffect=m||v||y?"move":"none",(v||m||y)&&(g==null?void 0:g.node.id)!==h.node.id&&(g&&t.emit("node-drag-leave",p.node,g.node,d),t.emit("node-drag-enter",p.node,h.node,d)),v||m||y?r.value.dropNode=h:r.value.dropNode=null,h.node.nextSibling===p.node&&(y=!1),h.node.previousSibling===p.node&&(v=!1),h.node.contains(p.node,!1)&&(m=!1),(p.node===h.node||p.node.contains(h.node))&&(v=!1,m=!1,y=!1);const w=h.$el,C=w.querySelector(`.${l.be("node","content")}`).getBoundingClientRect(),S=n.value.getBoundingClientRect(),k=n.value.scrollTop;let T;const M=v?m?.25:y?.45:1:Number.NEGATIVE_INFINITY,A=y?m?.75:v?.55:0:Number.POSITIVE_INFINITY;let O=-9999;const I=d.clientY-C.top;IC.height*A?T="after":m?T="inner":T="none";const L=w.querySelector(`.${l.be("node","expand-icon")}`).getBoundingClientRect(),z=a.value;T==="before"?O=L.top-S.top+k:T==="after"&&(O=L.bottom-S.top+k),z.style.top=`${O}px`,z.style.left=`${L.right-S.left}px`,T==="inner"?Ka(w,l.is("drop-inner")):sa(w,l.is("drop-inner")),r.value.showDropIndicator=T==="before"||T==="after",r.value.allowDrop=r.value.showDropIndicator||b,r.value.dropType=T,t.emit("node-drag-over",p.node,h.node,d)},treeNodeDragEnd:d=>{var p,v;const{draggingNode:f,dropType:h,dropNode:g}=r.value;if(d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move"),f!=null&&f.node.data&&g){const m={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?(p=g.node.parent)==null||p.insertBefore(m,g.node):h==="after"?(v=g.node.parent)==null||v.insertAfter(m,g.node):h==="inner"&&g.node.insertChild(m),h!=="none"&&(o.value.registerNode(m),o.value.key&&f.node.eachNode(y=>{var b;(b=o.value.nodesMap[y.data[o.value.key]])==null||b.setChecked(y.checked,!o.value.checkStrictly)})),sa(g.$el,l.is("drop-inner")),t.emit("node-drag-end",f.node,g.node,h,d),h!=="none"&&t.emit("node-drop",f.node,g.node,h,d)}f&&!g&&t.emit("node-drag-end",f.node,null,h,d),r.value.showDropIndicator=!1,r.value.draggingNode=null,r.value.dropNode=null,r.value.allowDrop=!0}}),{dragState:r}}var Zoe=D({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=ve("tree"),n=Ne(K5),a=Ne(bv);return()=>{const o=e.node,{data:l,store:r}=o;return e.renderContent?e.renderContent(qe,{_self:n,node:o,data:l,store:r}):oe(a.ctx.slots,"default",{node:o,data:l},()=>[qe(yv,{tag:"span",truncated:!0,class:t.be("node","label")},()=>[o.label])])}}}),Qoe=Zoe,ele=D({name:"ElTreeNode",components:{ElCollapseTransition:Sf,ElCheckbox:fo,NodeContent:Qoe,ElIcon:ze,Loading:io},props:{node:{type:ap,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:Boolean},emits:["node-expand"],setup(e,t){const n=ve("tree"),{broadcastExpanded:a}=q5(e),o=Ne(bv),l=V(!1),r=V(!1),s=V(),u=V(),c=V(),d=Ne(U5),f=ht();bt(K5,f),o||ft("Tree","Can not find node's tree."),e.node.expanded&&(l.value=!0,r.value=!0);const h=o.props.props.children||"children";fe(()=>{var O;const A=(O=e.node.data)==null?void 0:O[h];return A&&[...A]},()=>{e.node.updateChildren()}),fe(()=>e.node.indeterminate,A=>{v(e.node.checked,A)}),fe(()=>e.node.checked,A=>{v(A,e.node.indeterminate)}),fe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),fe(()=>e.node.expanded,A=>{Ie(()=>l.value=A),A&&(r.value=!0)});const g=A=>o.props.nodeKey?wv(o.props.nodeKey,A.data):A.id,p=A=>{const O=e.props.class;if(!O)return{};let I;if(ct(O)){const{data:L}=A;I=O(L,A)}else I=O;return Ue(I)?{[I]:!0}:I},v=(A,O)=>{(s.value!==A||u.value!==O)&&o.ctx.emit("check-change",e.node.data,A,O),s.value=A,u.value=O},m=A=>{tp(o.store,o.ctx.emit,()=>{var O;if((O=o==null?void 0:o.props)!=null&&O.nodeKey){const I=g(e.node);o.store.value.setCurrentNodeKey(I)}else o.store.value.setCurrentNode(e.node)}),o.currentNode.value=e.node,o.props.expandOnClickNode&&b(),(o.props.checkOnClickNode||e.node.isLeaf&&o.props.checkOnClickLeaf&&e.showCheckbox)&&!e.node.disabled&&w(!e.node.checked),o.ctx.emit("node-click",e.node.data,e.node,f,A)},y=A=>{var O;(O=o.instance.vnode.props)!=null&&O.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),o.ctx.emit("node-contextmenu",A,e.node.data,e.node,f)},b=()=>{e.node.isLeaf||(l.value?(o.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},w=A=>{const O=o==null?void 0:o.props.checkStrictly,I=e.node.childNodes;!O&&I.length&&(A=I.some(L=>!L.isEffectivelyChecked)),e.node.setChecked(A,!O),Ie(()=>{const L=o.store.value;o.ctx.emit("check",e.node.data,{checkedNodes:L.getCheckedNodes(),checkedKeys:L.getCheckedKeys(),halfCheckedNodes:L.getHalfCheckedNodes(),halfCheckedKeys:L.getHalfCheckedKeys()})})};return{ns:n,node$:c,tree:o,expanded:l,childNodeRendered:r,oldChecked:s,oldIndeterminate:u,getNodeKey:g,getNodeClass:p,handleSelectChange:v,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:w,handleChildNodeExpand:(A,O,I)=>{a(O),o.ctx.emit("node-expand",A,O,I)},handleDragStart:A=>{o.props.draggable&&d.treeNodeDragStart({event:A,treeNode:e})},handleDragOver:A=>{A.preventDefault(),o.props.draggable&&d.treeNodeDragOver({event:A,treeNode:{$el:c.value,node:e.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{o.props.draggable&&d.treeNodeDragEnd(A)},CaretRight:Sh}}});const tle=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],nle=["aria-expanded"];function ale(e,t,n,a,o,l){const r=$t("el-icon"),s=$t("el-checkbox"),u=$t("loading"),c=$t("node-content"),d=$t("el-tree-node"),f=$t("el-collapse-transition");return dt((_(),$("div",{ref:"node$",class:R([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:t[2]||(t[2]=Xe((...h)=>e.handleClick&&e.handleClick(...h),["stop"])),onContextmenu:t[3]||(t[3]=(...h)=>e.handleContextMenu&&e.handleContextMenu(...h)),onDragstart:t[4]||(t[4]=Xe((...h)=>e.handleDragStart&&e.handleDragStart(...h),["stop"])),onDragover:t[5]||(t[5]=Xe((...h)=>e.handleDragOver&&e.handleDragOver(...h),["stop"])),onDragend:t[6]||(t[6]=Xe((...h)=>e.handleDragEnd&&e.handleDragEnd(...h),["stop"])),onDrop:t[7]||(t[7]=Xe((...h)=>e.handleDrop&&e.handleDrop(...h),["stop"]))},[E("div",{class:R(e.ns.be("node","content")),style:We({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(_(),ie(r,{key:0,class:R([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:Xe(e.handleExpandIconClick,["stop"])},{default:ae(()=>[(_(),ie(ut(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):re("v-if",!0),e.showCheckbox?(_(),ie(s,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:t[0]||(t[0]=Xe(()=>{},["stop"])),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):re("v-if",!0),e.node.loading?(_(),ie(r,{key:2,class:R([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:ae(()=>[Q(u)]),_:1},8,["class"])):re("v-if",!0),Q(c,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),Q(f,null,{default:ae(()=>[!e.renderAfterExpand||e.childNodeRendered?dt((_(),$("div",{key:0,class:R(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded,onClick:t[1]||(t[1]=Xe(()=>{},["stop"]))},[(_(!0),$(He,null,Ct(e.node.childNodes,h=>(_(),ie(d,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,nle)),[[At,e.expanded]]):re("v-if",!0)]),_:1})],42,tle)),[[At,e.node.visible]])}var ole=$n(ele,[["render",ale]]);function lle({el$:e},t){const n=ve("tree");mt(()=>{l()}),ho(()=>{var r;(r=e.value)==null||r.querySelectorAll("input[type=checkbox]").forEach(s=>{s.setAttribute("tabindex","-1")})});function a(r,s){var c,d;const u=t.value.getNode(r[s].dataset.key);return u.canFocus&&u.visible&&(((c=u.parent)==null?void 0:c.expanded)||((d=u.parent)==null?void 0:d.level)===0)}Vt(e,"keydown",r=>{const s=r.target;if(!s.className.includes(n.b("node")))return;const u=Kt(r),c=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),d=c.indexOf(s);let f;if([we.up,we.down].includes(u)){if(r.preventDefault(),u===we.up){f=d===-1?0:d!==0?d-1:c.length-1;const g=f;for(;!a(c,f);){if(f--,f===g){f=-1;break}f<0&&(f=c.length-1)}}else{f=d===-1?0:d=c.length&&(f=0)}}f!==-1&&c[f].focus()}[we.left,we.right].includes(u)&&(r.preventDefault(),s.click());const h=s.querySelector('[type="checkbox"]');[we.enter,we.numpadEnter,we.space].includes(u)&&h&&(r.preventDefault(),h.click())});const l=()=>{var u;if(!e.value)return;const r=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));Array.from(e.value.querySelectorAll("input[type=checkbox]")).forEach(c=>{c.setAttribute("tabindex","-1")});const s=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(s.length){s[0].setAttribute("tabindex","0");return}(u=r[0])==null||u.setAttribute("tabindex","0")}}var rle=D({name:"ElTree",components:{ElTreeNode:ole},props:W5,emits:Yoe,setup(e,t){const{t:n}=xt(),a=ve("tree"),o=V(new Xoe({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));o.value.initialize();const l=V(o.value.root),r=V(null),s=V(null),u=V(null),{broadcastExpanded:c}=q5(e),{dragState:d}=Joe({props:e,ctx:t,el$:s,dropIndicator$:u,store:o});lle({el$:s},o);const f=ht(),h=x(()=>{let W=f==null?void 0:f.parent;for(;W;){if(W.type.name==="ElTreeSelect")return!0;W=W.parent}return!1}),g=x(()=>{const{childNodes:W}=l.value;return(!W||W.length===0||W.every(({visible:K})=>!K))&&!h.value});fe(()=>e.currentNodeKey,W=>{o.value.setCurrentNodeKey(W??null)}),fe(()=>e.defaultCheckedKeys,(W,K)=>{sn(W,K)||o.value.setDefaultCheckedKey(W??[])}),fe(()=>e.defaultExpandedKeys,W=>{o.value.setDefaultExpandedKeys(W??[])}),fe(()=>e.data,W=>{o.value.setData(W)},{deep:!0}),fe(()=>e.checkStrictly,W=>{o.value.checkStrictly=W});const p=W=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(W)},v=W=>e.nodeKey?wv(e.nodeKey,W.data):W.id,m=W=>{if(!e.nodeKey)throw new Error(`[Tree] nodeKey is required in ${W}`)},y=W=>{m("getNodePath");const K=o.value.getNode(W);if(!K)return[];const j=[K.data];let G=K.parent;for(;G&&G!==l.value;)j.push(G.data),G=G.parent;return j.reverse()},b=(W,K)=>o.value.getCheckedNodes(W,K),w=W=>o.value.getCheckedKeys(W),C=()=>{const W=o.value.getCurrentNode();return W?W.data:null},S=()=>{m("getCurrentKey");const W=C();return W?W[e.nodeKey]:null},k=(W,K)=>{m("setCheckedNodes"),o.value.setCheckedNodes(W,K)},T=(W,K)=>{m("setCheckedKeys"),o.value.setCheckedKeys(W,K)},M=(W,K,j)=>{o.value.setChecked(W,K,j)},A=()=>o.value.getHalfCheckedNodes(),O=()=>o.value.getHalfCheckedKeys(),I=(W,K=!0)=>{m("setCurrentNode"),tp(o,t.emit,()=>{c(W),o.value.setUserCurrentNode(W,K)})},L=(W=null,K=!0)=>{m("setCurrentKey"),tp(o,t.emit,()=>{c(),o.value.setCurrentNodeKey(W,K)})},z=W=>o.value.getNode(W),q=W=>{o.value.remove(W)},U=(W,K)=>{o.value.append(W,K)},F=(W,K)=>{o.value.insertBefore(W,K)},N=(W,K)=>{o.value.insertAfter(W,K)},P=(W,K,j)=>{c(K),t.emit("node-expand",W,K,j)},B=(W,K)=>{m("updateKeyChildren"),o.value.updateChildren(W,K)};return bt(bv,{ctx:t,props:e,store:o,root:l,currentNode:r,instance:f}),bt(qo,void 0),{ns:a,store:o,root:l,currentNode:r,dragState:d,el$:s,dropIndicator$:u,isEmpty:g,filter:p,getNodeKey:v,getNodePath:y,getCheckedNodes:b,getCheckedKeys:w,getCurrentNode:C,getCurrentKey:S,setCheckedNodes:k,setCheckedKeys:T,setChecked:M,getHalfCheckedNodes:A,getHalfCheckedKeys:O,setCurrentNode:I,setCurrentKey:L,t:n,getNode:z,remove:q,append:U,insertBefore:F,insertAfter:N,handleNodeExpand:P,updateKeyChildren:B}}});function sle(e,t,n,a,o,l){const r=$t("el-tree-node");return _(),$("div",{ref:"el$",class:R([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(_(!0),$(He,null,Ct(e.root.childNodes,s=>(_(),ie(r,{key:e.getNodeKey(s),node:s,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(_(),$("div",{key:0,class:R(e.ns.e("empty-block"))},[oe(e.$slots,"empty",{},()=>[E("span",{class:R(e.ns.e("empty-text"))},_e(e.emptyText??e.t("el.tree.emptyText")),3)])],2)):re("v-if",!0),dt(E("div",{ref:"dropIndicator$",class:R(e.ns.e("drop-indicator"))},null,2),[[At,e.dragState.showDropIndicator]])],2)}var ile=$n(rle,[["render",sle]]);const Cv=rt(ile),ule=(e,{attrs:t,emit:n},{select:a,tree:o,key:l})=>{const r=ve("tree-select");fe(()=>e.data,()=>{e.filterable&&Ie(()=>{var u,c;(c=o.value)==null||c.filter((u=a.value)==null?void 0:u.states.inputValue)})},{flush:"post"});const s=u=>{var d,f;const c=u.at(-1);if(c.expanded&&c.childNodes.at(-1))s([c.childNodes.at(-1)]);else{(f=(d=o.value.el$)==null?void 0:d.querySelector(`[data-key="${u.at(-1).key}"]`))==null||f.focus({preventScroll:!0});return}};return mt(()=>{Vt(()=>{var u;return(u=a.value)==null?void 0:u.$el},"keydown",async u=>{const c=Kt(u),{dropdownMenuVisible:d}=a.value;[we.down,we.up].includes(c)&&d&&(await Ie(),setTimeout(()=>{var f,h,g;if(we.up===c){const p=o.value.store.root.childNodes;s(p);return}(g=(h=(f=a.value.optionsArray[a.value.states.hoveringIndex].$el)==null?void 0:f.parentNode)==null?void 0:h.parentNode)==null||g.focus({preventScroll:!0})}))},{capture:!0})}),{...vl(Bn(e),Object.keys(Jl.props)),...t,class:x(()=>t.class),style:x(()=>t.style),"onUpdate:modelValue":u=>n(at,u),valueKey:l,popperClass:x(()=>{const u=[r.e("popper")];return e.popperClass&&u.push(e.popperClass),u.join(" ")}),filterMethod:(u="")=>{var c;e.filterMethod?e.filterMethod(u):e.remoteMethod?e.remoteMethod(u):(c=o.value)==null||c.filter(u)}}},cle=D({extends:gd,setup(e,t){const n=gd.setup(e,t);delete n.selectOptionClick;const a=ht().proxy;return Ie(()=>{n.select.states.cachedOptions.get(a.value)||n.select.onOptionCreate(a)}),fe(()=>t.attrs.visible,o=>{Ie(()=>{n.states.visible=o})},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function op(e){return e||e===0}function _v(e){return Ve(e)&&e.length}function ls(e){return Ve(e)?e:op(e)?[e]:[]}function Wc(e,t,n,a,o){for(let l=0;l{fe([()=>e.modelValue,l],()=>{e.showCheckbox&&Ie(()=>{const p=l.value;p&&!sn(p.getCheckedKeys(),ls(e.modelValue))&&p.setCheckedKeys(ls(e.modelValue))})},{immediate:!0,deep:!0});const s=x(()=>({value:r.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),u=(p,v)=>{var y;const m=s.value[p];return ct(m)?m(v,(y=l.value)==null?void 0:y.getNode(u("value",v))):v[m]},c=ls(e.modelValue).map(p=>Wc(e.data||[],v=>u("value",v)===p,v=>u("children",v),(v,m,y,b)=>b&&u("value",b))).filter(p=>op(p)),d=x(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const p=[];return jc(e.data.concat(e.cacheData),v=>{const m=u("value",v);p.push({value:m,currentLabel:u("label",v),isDisabled:u("disabled",v)})},v=>u("children",v)),p}),f=()=>{var p;return(p=l.value)==null?void 0:p.getCheckedKeys().filter(v=>{var y;const m=(y=l.value)==null?void 0:y.getNode(v);return!Cn(m)&&ha(m.childNodes)})},h=p=>{sn(e.modelValue,p)||a(yt,p)};function g(p){a(at,p),h(p)}return{...vl(Bn(e),Object.keys(Cv.props)),...t,nodeKey:r,expandOnClickNode:x(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:x(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(c):c),renderContent:(p,{node:v,data:m,store:y})=>p(cle,{value:u("value",m),label:u("label",m),disabled:u("disabled",m),visible:v.visible},e.renderContent?()=>e.renderContent(p,{node:v,data:m,store:y}):n.default?()=>n.default({node:v,data:m,store:y}):void 0),filterNodeMethod:(p,v,m)=>e.filterNodeMethod?e.filterNodeMethod(p,v,m):p?new RegExp(oh(p),"i").test(u("label",v)||""):!0,onNodeClick:(p,v,m)=>{var y,b,w;if((y=t.onNodeClick)==null||y.call(t,p,v,m),!(e.showCheckbox&&e.checkOnClickNode))if(!e.showCheckbox&&(e.checkStrictly||v.isLeaf)){if(!u("disabled",p)){const C=(b=o.value)==null?void 0:b.states.options.get(u("value",p));(w=o.value)==null||w.handleOptionSelect(C)}}else e.expandOnClickNode&&m.proxy.handleExpandIconClick()},onCheck:(p,v)=>{var S;if(!e.showCheckbox)return;const m=u("value",p),y={};jc([l.value.store.root],k=>y[k.key]=k,k=>k.childNodes);const b=v.checkedKeys,w=e.multiple?ls(e.modelValue).filter(k=>!(k in y)&&!b.includes(k)):[],C=w.concat(b);if(e.checkStrictly)g(e.multiple?C:C.includes(m)?m:void 0);else if(e.multiple){const k=f();g(w.concat(k))}else{const k=Wc([p],A=>!_v(u("children",A))&&!u("disabled",A),A=>u("children",A)),T=k?u("value",k):void 0,M=op(e.modelValue)&&!!Wc([p],A=>u("value",A)===e.modelValue,A=>u("children",A));g(T===e.modelValue||M?void 0:T)}Ie(()=>{var T;const k=ls(e.modelValue);l.value.setCheckedKeys(k),(T=t.onCheck)==null||T.call(t,p,{checkedKeys:l.value.getCheckedKeys(),checkedNodes:l.value.getCheckedNodes(),halfCheckedKeys:l.value.getHalfCheckedKeys(),halfCheckedNodes:l.value.getHalfCheckedNodes()})}),(S=o.value)==null||S.focus()},onNodeExpand:(p,v,m)=>{var y;(y=t.onNodeExpand)==null||y.call(t,p,v,m),Ie(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&v.checked){const b={},w=l.value.getCheckedKeys();jc([l.value.store.root],k=>b[k.key]=k,k=>k.childNodes);const C=ls(e.modelValue).filter(k=>!(k in b)&&!w.includes(k)),S=f();g(C.concat(S))}})},cacheOptions:d}};var fle=D({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Ne(Ku);return fe(()=>e.data,()=>{var a;e.data.forEach(o=>{t.states.cachedOptions.has(o.value)||t.states.cachedOptions.set(o.value,o)});const n=((a=t.selectRef)==null?void 0:a.querySelectorAll("input"))||[];Rt&&!Array.from(n).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}}),ple=D({name:"ElTreeSelect",inheritAttrs:!1,props:{...Rb,...W5,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:a,emit:o,attrs:l}=t,r={...l,onChange:void 0},s=V(),u=V(),c=x(()=>e.nodeKey||e.valueKey||"value"),d=ule(e,{attrs:l,emit:o},{select:s,tree:u,key:c}),{cacheOptions:f,...h}=dle(e,{attrs:r,slots:n,emit:o},{select:s,tree:u,key:c}),g=Nt({});return a(g),mt(()=>{Object.assign(g,{...vl(u.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...vl(s.value,["focus","blur","selectedLabel"]),treeRef:u.value,selectRef:s.value})}),()=>qe(Jl,Nt({...d,ref:p=>s.value=p}),{...n,default:()=>[qe(fle,{data:f.value}),qe(Cv,Nt({...h,ref:p=>u.value=p}))]})}}),hle=ple;const vle=rt(hle),Sv=Symbol(),mle={key:-1,level:-1,data:{}};let sl=function(e){return e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e.CLASS="",e}({}),s4=function(e){return e.ADD="add",e.DELETE="delete",e}({});const Y5={type:Number,default:26},gle=Ce({data:{type:J(Array),default:()=>un([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:J(Object),default:()=>un({children:sl.CHILDREN,label:sl.LABEL,disabled:sl.DISABLED,value:sl.KEY,class:sl.CLASS})},highlightCurrent:Boolean,showCheckbox:Boolean,defaultCheckedKeys:{type:J(Array),default:()=>un([])},checkStrictly:Boolean,defaultExpandedKeys:{type:J(Array),default:()=>un([])},indent:{type:Number,default:16},itemSize:Y5,icon:{type:Ft},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkOnClickLeaf:{type:Boolean,default:!0},currentNodeKey:{type:J([String,Number])},accordion:Boolean,filterMethod:{type:J(Function)},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:Boolean}),yle=Ce({node:{type:J(Object),default:()=>un(mle)},expanded:Boolean,checked:Boolean,indeterminate:Boolean,showCheckbox:Boolean,disabled:Boolean,current:Boolean,hiddenExpandIcon:Boolean,itemSize:Y5}),ble=Ce({node:{type:J(Object),required:!0}}),G5="node-click",X5="node-drop",J5="node-expand",Z5="node-collapse",Q5="current-change",e9="check",t9="check-change",n9="node-contextmenu",wle={[G5]:(e,t,n)=>e&&t&&n,[X5]:(e,t,n)=>e&&t&&n,[J5]:(e,t)=>e&&t,[Z5]:(e,t)=>e&&t,[Q5]:(e,t)=>e&&t,[e9]:(e,t)=>e&&t,[t9]:(e,t)=>e&&Dt(t),[n9]:(e,t,n)=>e&&t&&n},Cle={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&Dt(t)};function _le(e,t){const n=V(new Set),a=V(new Set),{emit:o}=ht();fe([()=>t.value,()=>e.defaultCheckedKeys],()=>Ie(()=>{b(e.defaultCheckedKeys)}),{immediate:!0});const l=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:w,maxLevel:C}=t.value,S=n.value,k=new Set;for(let T=C;T>=1;--T){const M=w.get(T);M&&M.forEach(A=>{const O=A.children;let I=!A.isLeaf||A.disabled||S.has(A.key);if(O){let L=!0,z=!1;for(const q of O){const U=q.key;if(q.isEffectivelyChecked||(I=!1),S.has(U))z=!0;else if(k.has(U)){L=!1,z=!0;break}else L=!1}L?S.add(A.key):z?(k.add(A.key),S.delete(A.key)):(S.delete(A.key),k.delete(A.key))}A.isEffectivelyChecked=I})}a.value=k},r=w=>n.value.has(w.key),s=w=>a.value.has(w.key),u=(w,C,S=!0,k=!0)=>{const T=n.value,M=w.children;!e.checkStrictly&&S&&(M!=null&&M.length)&&(C=M.some(O=>!O.isEffectivelyChecked));const A=(O,I)=>{T[I?s4.ADD:s4.DELETE](O.key);const L=O.children;!e.checkStrictly&&L&&L.forEach(z=>{(!z.disabled||z.children)&&A(z,I)})};A(w,C),k&&l(),S&&c(w,C)},c=(w,C)=>{const{checkedNodes:S,checkedKeys:k}=p(),{halfCheckedNodes:T,halfCheckedKeys:M}=v();o(e9,w.data,{checkedKeys:k,checkedNodes:S,halfCheckedKeys:M,halfCheckedNodes:T}),o(t9,w.data,C)};function d(w=!1){return p(w).checkedKeys}function f(w=!1){return p(w).checkedNodes}function h(){return v().halfCheckedKeys}function g(){return v().halfCheckedNodes}function p(w=!1){const C=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:k}=t.value;n.value.forEach(T=>{const M=k.get(T);M&&(!w||w&&M.isLeaf)&&(S.push(T),C.push(M.data))})}return{checkedKeys:S,checkedNodes:C}}function v(){const w=[],C=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;a.value.forEach(k=>{const T=S.get(k);T&&(C.push(k),w.push(T.data))})}return{halfCheckedNodes:w,halfCheckedKeys:C}}function m(w){n.value.clear(),a.value.clear(),Ie(()=>{b(w)})}function y(w,C){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(w);S&&u(S,C,!1)}}function b(w){if(t!=null&&t.value){const{treeNodeMap:C}=t.value;if(e.showCheckbox&&C&&(w==null?void 0:w.length)>0){for(const S of w){const k=C.get(S);k&&!r(k)&&u(k,!0,!1,!1)}l()}}}return{updateCheckedKeys:l,toggleCheckbox:u,isChecked:r,isIndeterminate:s,getCheckedKeys:d,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:g,setChecked:y,setCheckedKeys:m}}function Sle(e,t){const n=V(new Set([])),a=V(new Set([])),o=x(()=>ct(e.filterMethod));function l(s){var v;if(!o.value)return;const u=new Set,c=a.value,d=n.value,f=[],h=((v=t.value)==null?void 0:v.treeNodes)||[],g=e.filterMethod;d.clear();function p(m){m.forEach(y=>{f.push(y),g!=null&&g(s,y.data,y)?f.forEach(w=>{u.add(w.key),w.expanded=!0}):(y.expanded=!1,y.isLeaf&&d.add(y.key));const b=y.children;if(b&&p(b),!y.isLeaf){if(!u.has(y.key))d.add(y.key);else if(b){let w=!0;for(const C of b)if(!d.has(C.key)){w=!1;break}w?c.add(y.key):c.delete(y.key)}}f.pop()})}return p(h),u}function r(s){return a.value.has(s.key)}return{hiddenExpandIconKeySet:a,hiddenNodeKeySet:n,doFilter:l,isForceHiddenExpandIcon:r}}function xle(e,t){const n=V(new Set),a=V(),o=qt(),l=V(),{isIndeterminate:r,isChecked:s,toggleCheckbox:u,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p}=_le(e,o),{doFilter:v,hiddenNodeKeySet:m,isForceHiddenExpandIcon:y}=Sle(e,o),b=x(()=>{var X;return((X=e.props)==null?void 0:X.value)||sl.KEY}),w=x(()=>{var X;return((X=e.props)==null?void 0:X.children)||sl.CHILDREN}),C=x(()=>{var X;return((X=e.props)==null?void 0:X.disabled)||sl.DISABLED}),S=x(()=>{var X;return((X=e.props)==null?void 0:X.label)||sl.LABEL}),k=x(()=>{var ge;const X=n.value,H=m.value,Z=[],le=((ge=o.value)==null?void 0:ge.treeNodes)||[],ce=[];for(let me=le.length-1;me>=0;--me)ce.push(le[me]);for(;ce.length;){const me=ce.pop();if(!H.has(me.key)&&(Z.push(me),me.children&&X.has(me.key)))for(let $e=me.children.length-1;$e>=0;--$e)ce.push(me.children[$e])}return Z}),T=x(()=>k.value.length>0);function M(X){const H=new Map,Z=new Map;let le=1;function ce(me,$e=1,Re=void 0){var ye;const Ae=[];for(const ke of me){const be=I(ke),Pe={level:$e,key:be,data:ke};Pe.label=z(ke),Pe.parent=Re;const Be=O(ke);Pe.disabled=L(ke),Pe.isLeaf=!Be||Be.length===0,Pe.expanded=n.value.has(be),Be&&Be.length&&(Pe.children=ce(Be,$e+1,Pe)),Ae.push(Pe),H.set(be,Pe),Z.has($e)||Z.set($e,[]),(ye=Z.get($e))==null||ye.push(Pe)}return $e>le&&(le=$e),Ae}const ge=ce(X);return{treeNodeMap:H,levelTreeNodeMap:Z,maxLevel:le,treeNodes:ge}}function A(X){const H=v(X);H&&(n.value=H)}function O(X){return X[w.value]}function I(X){return X?X[b.value]:""}function L(X){return X[C.value]}function z(X){return X[S.value]}function q(X){n.value.has(X.key)?K(X):W(X)}function U(X){const H=new Set,Z=o.value.treeNodeMap;n.value.forEach(le=>{const ce=Z.get(le);ce&&(ce.expanded=!1)}),X.forEach(le=>{let ce=Z.get(le);for(;ce&&!H.has(ce.key);)H.add(ce.key),ce.expanded=!0,ce=ce.parent}),n.value=H}function F(X,H){t(G5,X.data,X,H),P(X),e.expandOnClickNode&&q(X),e.showCheckbox&&(e.checkOnClickNode||X.isLeaf&&e.checkOnClickLeaf)&&!X.disabled&&u(X,!s(X),!0)}function N(X,H){t(X5,X.data,X,H)}function P(X){G(X)||(a.value=X.key,t(Q5,X.data,X))}function B(X,H){u(X,H)}function W(X){const H=n.value;if(o.value&&e.accordion){const{treeNodeMap:le}=o.value;H.forEach(ce=>{const ge=le.get(ce);X&&X.level===(ge==null?void 0:ge.level)&&(H.delete(ce),ge.expanded=!1)})}H.add(X.key);const Z=de(X.key);Z&&(Z.expanded=!0,t(J5,Z.data,Z))}function K(X){n.value.delete(X.key);const H=de(X.key);H&&(H.expanded=!1,t(Z5,H.data,H))}function j(X){return!!X.disabled}function G(X){const H=a.value;return H!==void 0&&H===X.key}function ee(){var X,H;if(a.value)return(H=(X=o.value)==null?void 0:X.treeNodeMap.get(a.value))==null?void 0:H.data}function te(){return a.value}function ue(X){a.value=X}function ne(X){o.value=M(X)}function de(X){var Z;const H=Mt(X)?I(X):X;return(Z=o.value)==null?void 0:Z.treeNodeMap.get(H)}function se(X,H="auto"){const Z=de(X);Z&&l.value&&l.value.scrollToItem(k.value.indexOf(Z),H)}function Y(X){var H;(H=l.value)==null||H.scrollTo(X)}return fe(()=>e.currentNodeKey,X=>{a.value=X},{immediate:!0}),fe(()=>e.defaultExpandedKeys,X=>{U(X||[])}),fe(()=>e.data,X=>{ne(X),U(e.defaultExpandedKeys||[])},{immediate:!0}),{tree:o,flattenTree:k,isNotEmpty:T,listRef:l,getKey:I,getChildren:O,toggleExpand:q,toggleCheckbox:u,isChecked:s,isIndeterminate:r,isDisabled:j,isCurrent:G,isForceHiddenExpandIcon:y,handleNodeClick:F,handleNodeDrop:N,handleNodeCheck:B,getCurrentNode:ee,getCurrentKey:te,setCurrentKey:ue,getCheckedKeys:c,getCheckedNodes:d,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:g,setCheckedKeys:p,filter:A,setData:ne,getNode:de,expandNode:W,collapseNode:K,setExpandedKeys:U,scrollToNode:se,scrollTo:Y}}var kle=D({name:"ElTreeNodeContent",props:ble,setup(e){const t=Ne(Sv),n=ve("tree");return()=>{const a=e.node,{data:o}=a;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:a,data:o}):qe(yv,{tag:"span",truncated:!0,class:n.be("node","label")},()=>[a==null?void 0:a.label])}}});const Ele=["aria-expanded","aria-disabled","aria-checked","data-key"];var Tle=D({name:"ElTreeNode",__name:"tree-node",props:yle,emits:Cle,setup(e,{emit:t}){const n=e,a=t,o=Ne(Sv),l=ve("tree"),r=x(()=>(o==null?void 0:o.props.indent)??16),s=x(()=>(o==null?void 0:o.props.icon)??Sh),u=p=>{var y;const v=(y=o==null?void 0:o.props.props)==null?void 0:y.class;if(!v)return{};let m;if(ct(v)){const{data:b}=p;m=v(b,p)}else m=v;return Ue(m)?{[m]:!0}:m},c=p=>{a("click",n.node,p)},d=p=>{a("drop",n.node,p)},f=()=>{a("toggle",n.node)},h=p=>{a("check",n.node,p)},g=p=>{var v,m,y,b;(y=(m=(v=o==null?void 0:o.instance)==null?void 0:v.vnode)==null?void 0:m.props)!=null&&y.onNodeContextmenu&&(p.stopPropagation(),p.preventDefault()),o==null||o.ctx.emit(n9,p,(b=n.node)==null?void 0:b.data,n.node)};return(p,v)=>{var m,y,b;return _(),$("div",{ref:"node$",class:R([i(l).b("node"),i(l).is("expanded",e.expanded),i(l).is("current",e.current),i(l).is("focusable",!e.disabled),i(l).is("checked",!e.disabled&&e.checked),u(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.disabled,"aria-checked":e.checked,"data-key":(m=e.node)==null?void 0:m.key,onClick:Xe(c,["stop"]),onContextmenu:g,onDragover:v[1]||(v[1]=Xe(()=>{},["prevent"])),onDragenter:v[2]||(v[2]=Xe(()=>{},["prevent"])),onDrop:Xe(d,["stop"])},[E("div",{class:R(i(l).be("node","content")),style:We({paddingLeft:`${(e.node.level-1)*r.value}px`,height:e.itemSize+"px"})},[s.value?(_(),ie(i(ze),{key:0,class:R([i(l).is("leaf",!!((y=e.node)!=null&&y.isLeaf)),i(l).is("hidden",e.hiddenExpandIcon),{expanded:!((b=e.node)!=null&&b.isLeaf)&&e.expanded},i(l).be("node","expand-icon")]),onClick:Xe(f,["stop"])},{default:ae(()=>[(_(),ie(ut(s.value)))]),_:1},8,["class"])):re("v-if",!0),e.showCheckbox?(_(),ie(i(fo),{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,onChange:h,onClick:v[0]||(v[0]=Xe(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):re("v-if",!0),Q(i(kle),{node:{...e.node,expanded:e.expanded}},null,8,["node"])],6)],42,Ele)}}}),Mle=Tle,Ole=D({name:"ElTreeV2",__name:"tree",props:gle,emits:wle,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),r=x(()=>a.itemSize);bt(Sv,{ctx:{emit:o,slots:l},props:a,instance:ht()}),bt(qo,void 0);const{t:s}=xt(),u=ve("tree"),{flattenTree:c,isNotEmpty:d,listRef:f,toggleExpand:h,isIndeterminate:g,isChecked:p,isDisabled:v,isCurrent:m,isForceHiddenExpandIcon:y,handleNodeClick:b,handleNodeDrop:w,handleNodeCheck:C,toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:W,scrollToNode:K,scrollTo:j}=xle(a,o);return t({toggleCheckbox:S,getCurrentNode:k,getCurrentKey:T,setCurrentKey:M,getCheckedKeys:A,getCheckedNodes:O,getHalfCheckedKeys:I,getHalfCheckedNodes:L,setChecked:z,setCheckedKeys:q,filter:U,setData:F,getNode:N,expandNode:P,collapseNode:B,setExpandedKeys:W,scrollToNode:K,scrollTo:j}),(G,ee)=>(_(),$("div",{class:R([i(u).b(),{[i(u).m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[i(d)?(_(),ie(i(l5),{key:0,ref_key:"listRef",ref:f,"class-name":i(u).b("virtual-list"),data:i(c),total:i(c).length,height:e.height,"item-size":r.value,"perf-mode":e.perfMode,"scrollbar-always-on":e.scrollbarAlwaysOn},{default:ae(({data:te,index:ue,style:ne})=>[(_(),ie(Mle,{key:te[ue].key,style:We(ne),node:te[ue],expanded:te[ue].expanded,"show-checkbox":e.showCheckbox,checked:i(p)(te[ue]),indeterminate:i(g)(te[ue]),"item-size":r.value,disabled:i(v)(te[ue]),current:i(m)(te[ue]),"hidden-expand-icon":i(y)(te[ue]),onClick:i(b),onToggle:i(h),onCheck:i(C),onDrop:i(w)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode","scrollbar-always-on"])):(_(),$("div",{key:1,class:R(i(u).e("empty-block"))},[oe(G.$slots,"empty",{},()=>[E("span",{class:R(i(u).e("empty-text"))},_e(e.emptyText??i(s)("el.tree.emptyText")),3)])],2))],2))}}),$le=Ole;const Ale=rt($le),Rle="ElUpload";var Nle=class extends Error{constructor(e,t,n,a){super(e),this.name="UploadAjaxError",this.status=t,this.method=n,this.url=a}};function i4(e,t,n){let a;return n.response?a=`${n.response.error||n.response}`:n.responseText?a=`${n.responseText}`:a=`fail to ${t.method} ${e} ${n.status}`,new Nle(a,n.status,t.method,e)}function Ple(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Ile=e=>{typeof XMLHttpRequest>"u"&&on(Rle,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const r=l;r.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(r)});const a=new FormData;if(e.data)for(const[l,r]of Object.entries(e.data))Ve(r)?r.length===2&&r[0]instanceof Blob&&Ue(r[1])?a.append(l,r[0],r[1]):r.forEach(s=>{a.append(l,s)}):a.append(l,r);a.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(i4(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(i4(n,e,t));e.onSuccess(Ple(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const o=e.headers||{};if(o instanceof Headers)o.forEach((l,r)=>t.setRequestHeader(r,l));else for(const[l,r]of Object.entries(o))Cn(r)||t.setRequestHeader(l,String(r));return t.send(a),t},a9=["text","picture","picture-card"];let Lle=1;const lp=()=>Date.now()+Lle++,o9=Ce({action:{type:String,default:"#"},headers:{type:J(Object)},method:{type:String,default:"post"},data:{type:J([Object,Function,Promise]),default:()=>un({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:J(Array),default:()=>un([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:a9,default:"text"},httpRequest:{type:J(Function),default:Ile},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),Vle=Ce({...o9,beforeUpload:{type:J(Function),default:Yt},beforeRemove:{type:J(Function)},onRemove:{type:J(Function),default:Yt},onChange:{type:J(Function),default:Yt},onPreview:{type:J(Function),default:Yt},onSuccess:{type:J(Function),default:Yt},onProgress:{type:J(Function),default:Yt},onError:{type:J(Function),default:Yt},onExceed:{type:J(Function),default:Yt},crossorigin:{type:J(String)}}),l9=Symbol("uploadContextKey"),Ble=Ce({files:{type:J(Array),default:()=>un([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:J(Function),default:Yt},listType:{type:String,values:a9,default:"text"},crossorigin:{type:J(String)}}),zle={remove:e=>!!e},Dle=Ce({...o9,beforeUpload:{type:J(Function),default:Yt},onRemove:{type:J(Function),default:Yt},onStart:{type:J(Function),default:Yt},onSuccess:{type:J(Function),default:Yt},onProgress:{type:J(Function),default:Yt},onError:{type:J(Function),default:Yt},onExceed:{type:J(Function),default:Yt}}),Hle=Ce({disabled:{type:Boolean,default:void 0},directory:Boolean}),Fle={file:e=>Ve(e)},Kle=["tabindex","aria-disabled","onKeydown"],Wle=["src","crossorigin"],jle=["onClick"],qle=["title"],Ule=["onClick"],Yle=["onClick"];var Gle=D({name:"ElUploadList",__name:"upload-list",props:Ble,emits:zle,setup(e,{emit:t}){const n=e,a=t,{t:o}=xt(),l=ve("upload"),r=ve("icon"),s=ve("list"),u=dn(),c=V(!1),d=x(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",u.value)]),f=h=>{a("remove",h)};return(h,g)=>(_(),ie(w6,{tag:"ul",class:R(d.value),name:i(s).b()},{default:ae(()=>[(_(!0),$(He,null,Ct(e.files,(p,v)=>(_(),$("li",{key:p.uid||p.name,class:R([i(l).be("list","item"),i(l).is(p.status),{focusing:c.value}]),tabindex:i(u)?void 0:0,"aria-disabled":i(u),role:"button",onKeydown:rn(m=>!i(u)&&f(p),["delete"]),onFocus:g[0]||(g[0]=m=>c.value=!0),onBlur:g[1]||(g[1]=m=>c.value=!1),onClick:g[2]||(g[2]=m=>c.value=!1)},[oe(h.$slots,"default",{file:p,index:v},()=>[e.listType==="picture"||p.status!=="uploading"&&e.listType==="picture-card"?(_(),$("img",{key:0,class:R(i(l).be("list","item-thumbnail")),src:p.url,crossorigin:e.crossorigin,alt:""},null,10,Wle)):re("v-if",!0),p.status==="uploading"||e.listType!=="picture-card"?(_(),$("div",{key:1,class:R(i(l).be("list","item-info"))},[E("a",{class:R(i(l).be("list","item-name")),onClick:Xe(m=>e.handlePreview(p),["prevent"])},[Q(i(ze),{class:R(i(r).m("document"))},{default:ae(()=>[Q(i(Oy))]),_:1},8,["class"]),E("span",{class:R(i(l).be("list","item-file-name")),title:p.name},_e(p.name),11,qle)],10,jle),p.status==="uploading"?(_(),ie(i(Yw),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(p.percentage),style:We(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):re("v-if",!0)],2)):re("v-if",!0),E("label",{class:R(i(l).be("list","item-status-label"))},[e.listType==="text"?(_(),ie(i(ze),{key:0,class:R([i(r).m("upload-success"),i(r).m("circle-check")])},{default:ae(()=>[Q(i(gf))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(_(),ie(i(ze),{key:1,class:R([i(r).m("upload-success"),i(r).m("check")])},{default:ae(()=>[Q(i(ni))]),_:1},8,["class"])):re("v-if",!0)],2),i(u)?re("v-if",!0):(_(),ie(i(ze),{key:2,class:R(i(r).m("close")),"aria-label":i(o)("el.upload.delete"),role:"button",tabindex:"0",onClick:m=>f(p),onKeydown:rn(Xe(m=>f(p),["prevent"]),["enter","space"])},{default:ae(()=>[Q(i(Ba))]),_:1},8,["class","aria-label","onClick","onKeydown"])),i(u)?re("v-if",!0):(_(),$("i",{key:3,class:R(i(r).m("close-tip"))},_e(i(o)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(_(),$("span",{key:4,class:R(i(l).be("list","item-actions"))},[E("span",{class:R(i(l).be("list","item-preview")),onClick:m=>e.handlePreview(p)},[Q(i(ze),{class:R(i(r).m("zoom-in"))},{default:ae(()=>[Q(i(Th))]),_:1},8,["class"])],10,Ule),i(u)?re("v-if",!0):(_(),$("span",{key:0,class:R(i(l).be("list","item-delete")),onClick:m=>f(p)},[Q(i(ze),{class:R(i(r).m("delete"))},{default:ae(()=>[Q(i(My))]),_:1},8,["class"])],10,Yle))],2)):re("v-if",!0)])],42,Kle))),128)),oe(h.$slots,"append")]),_:3},8,["class","name"]))}}),u4=Gle;const c4="ElUploadDrag";var Xle=D({name:c4,__name:"upload-dragger",props:Hle,emits:Fle,setup(e,{emit:t}){const n=e,a=t;Ne(l9)||on(c4,"usage: ");const o=ve("upload"),l=V(!1),r=dn(),s=h=>new Promise((g,p)=>h.file(g,p)),u=async h=>{try{if(h.isFile){const g=await s(h);return g.isDirectory=!1,[g]}if(h.isDirectory){const g=h.createReader(),p=()=>new Promise((b,w)=>g.readEntries(b,w)),v=[];let m=await p();for(;m.length>0;)v.push(...m),m=await p();const y=v.map(b=>u(b).catch(()=>[]));return sd(await Promise.all(y))}}catch{return[]}return[]},c=async h=>{if(r.value)return;l.value=!1,h.stopPropagation();const g=Array.from(h.dataTransfer.files),p=h.dataTransfer.items||[];if(n.directory){const v=Array.from(p).map(m=>{var y;return(y=m==null?void 0:m.webkitGetAsEntry)==null?void 0:y.call(m)}).filter(m=>m);a("file",sd(await Promise.all(v.map(u))));return}g.forEach((v,m)=>{var b,w;const y=(w=(b=p[m])==null?void 0:b.webkitGetAsEntry)==null?void 0:w.call(b);y&&(v.isDirectory=y.isDirectory)}),a("file",g)},d=()=>{r.value||(l.value=!0)},f=h=>{h.currentTarget.contains(h.relatedTarget)||(l.value=!1)};return(h,g)=>(_(),$("div",{class:R([i(o).b("dragger"),i(o).is("dragover",l.value)]),onDrop:Xe(c,["prevent"]),onDragover:Xe(d,["prevent"]),onDragleave:Xe(f,["prevent"])},[oe(h.$slots,"default")],34))}}),Jle=Xle;const Zle=["tabindex","aria-disabled","onKeydown"],Qle=["name","disabled","multiple","accept","webkitdirectory"];var ere=D({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:Dle,setup(e,{expose:t}){const n=e,a=ve("upload"),o=dn(),l=qt({}),r=qt(),s=v=>{if(v.length===0)return;const{autoUpload:m,limit:y,fileList:b,multiple:w,onStart:C,onExceed:S}=n;if(y&&b.length+v.length>y){S(v,b);return}w||(v=v.slice(0,1));for(const k of v){const T=k;T.uid=lp(),C(T),m&&u(T)}},u=async v=>{if(r.value.value="",!n.beforeUpload)return d(v);let m,y={};try{const w=n.data,C=n.beforeUpload(v);y=Q0(n.data)?Ro(n.data):n.data,m=await C,Q0(n.data)&&sn(w,y)&&(y=Ro(n.data))}catch{m=!1}if(m===!1){n.onRemove(v);return}let b=v;m instanceof Blob&&(m instanceof File?b=m:b=new File([m],v.name,{type:v.type})),d(Object.assign(b,{uid:v.uid}),y)},c=async(v,m)=>ct(v)?v(m):v,d=async(v,m)=>{const{headers:y,data:b,method:w,withCredentials:C,name:S,action:k,onProgress:T,onSuccess:M,onError:A,httpRequest:O}=n;try{m=await c(m??b,v)}catch{n.onRemove(v);return}const{uid:I}=v,L={headers:y||{},withCredentials:C,file:v,data:m,method:w,filename:S,action:k,onProgress:q=>{T(q,v)},onSuccess:q=>{M(q,v),delete l.value[I]},onError:q=>{A(q,v),delete l.value[I]}},z=O(L);l.value[I]=z,z instanceof Promise&&z.then(L.onSuccess,L.onError)},f=v=>{const m=v.target.files;m&&s(Array.from(m))},h=()=>{o.value||(r.value.value="",r.value.click())},g=()=>{h()};return t({abort:v=>{I8(l.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:u}),(v,m)=>(_(),$("div",{class:R([i(a).b(),i(a).m(e.listType),i(a).is("drag",e.drag),i(a).is("disabled",i(o))]),tabindex:i(o)?void 0:0,"aria-disabled":i(o),role:"button",onClick:h,onKeydown:rn(Xe(g,["self"]),["enter","space"])},[e.drag?(_(),ie(Jle,{key:0,disabled:i(o),directory:e.directory,onFile:s},{default:ae(()=>[oe(v.$slots,"default")]),_:3},8,["disabled","directory"])):oe(v.$slots,"default",{key:1}),E("input",{ref_key:"inputRef",ref:r,class:R(i(a).e("input")),name:e.name,disabled:i(o),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:f,onClick:m[0]||(m[0]=Xe(()=>{},["stop"]))},null,42,Qle)],42,Zle))}}),d4=ere;const f4="ElUpload",p4=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},tre=(e,t)=>{const n=I6(e,"fileList",void 0,{passive:!0}),a=p=>n.value.find(v=>v.uid===p.uid);function o(p){var v;(v=t.value)==null||v.abort(p)}function l(p=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!p.includes(v.status))}function r(p){n.value=n.value.filter(v=>v.uid!==p.uid)}const s=p=>{Ie(()=>e.onChange(p,n.value))},u=(p,v)=>{const m=a(v);m&&(console.error(p),m.status="fail",r(m),e.onError(p,m,n.value),s(m))},c=(p,v)=>{const m=a(v);m&&(e.onProgress(p,m,n.value),m.status="uploading",m.percentage=Math.round(p.percent))},d=(p,v)=>{const m=a(v);m&&(m.status="success",m.response=p,e.onSuccess(p,m,n.value),s(m))},f=p=>{Cn(p.uid)&&(p.uid=lp());const v={name:p.name,percentage:0,status:"ready",size:p.size,raw:p,uid:p.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(p)}catch(m){ft(f4,m.message),e.onError(m,v,n.value)}n.value=[...n.value,v],s(v)},h=async p=>{const v=p instanceof File?a(p):p;v||on(f4,"file to be removed not found");const m=y=>{o(y),r(y),e.onRemove(y,n.value),p4(y)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&m(v):m(v)};function g(){n.value.filter(({status:p})=>p==="ready").forEach(({raw:p})=>{var v;return p&&((v=t.value)==null?void 0:v.upload(p))})}return fe(()=>e.listType,p=>{p!=="picture-card"&&p!=="picture"||(n.value=n.value.map(v=>{const{raw:m,url:y}=v;if(!y&&m)try{v.url=URL.createObjectURL(m)}catch(b){e.onError(b,v,n.value)}return v}))}),fe(n,p=>{for(const v of p)v.uid||(v.uid=lp()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:o,clearFiles:l,handleError:u,handleProgress:c,handleStart:f,handleSuccess:d,handleRemove:h,submit:g,revokeFileObjectURL:p4}};var nre=D({name:"ElUpload",__name:"upload",props:Vle,setup(e,{expose:t}){const n=e,a=dn(),o=qt(),{abort:l,submit:r,clearFiles:s,uploadFiles:u,handleStart:c,handleError:d,handleRemove:f,handleSuccess:h,handleProgress:g,revokeFileObjectURL:p}=tre(n,o),v=x(()=>n.listType==="picture-card"),m=x(()=>({...n,fileList:u.value,onStart:c,onProgress:g,onSuccess:h,onError:d,onRemove:f}));return Lt(()=>{u.value.forEach(p)}),bt(l9,{accept:Bt(n,"accept")}),t({abort:l,submit:r,clearFiles:s,handleStart:c,handleRemove:f}),(y,b)=>(_(),$("div",null,[v.value&&e.showFileList?(_(),ie(u4,{key:0,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ga({append:ae(()=>[Q(d4,pt({ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:C})=>[oe(y.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0),!v.value||v.value&&!e.showFileList?(_(),ie(d4,pt({key:1,ref_key:"uploadRef",ref:o},m.value),{default:ae(()=>[y.$slots.trigger?oe(y.$slots,"trigger",{key:0}):re("v-if",!0),!y.$slots.trigger&&y.$slots.default?oe(y.$slots,"default",{key:1}):re("v-if",!0)]),_:3},16)):re("v-if",!0),y.$slots.trigger?oe(y.$slots,"default",{key:2}):re("v-if",!0),oe(y.$slots,"tip"),!v.value&&e.showFileList?(_(),ie(u4,{key:3,disabled:i(a),"list-type":e.listType,files:i(u),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:i(f)},ga({_:2},[y.$slots.file?{name:"default",fn:ae(({file:w,index:C})=>[oe(y.$slots,"file",{file:w,index:C})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):re("v-if",!0)]))}}),are=nre;const ore=rt(are),lre=Ce({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:J([String,Array]),default:"Element Plus"},font:{type:J(Object)},gap:{type:J(Array),default:()=>[100,100]},offset:{type:J(Array)}});function rre(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function sre(e){return Object.keys(e).map(t=>`${rre(t)}: ${e[t]};`).join(" ")}function ire(){return window.devicePixelRatio||1}const ure=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},cre={left:[0,.5],start:[0,.5],center:[.5,0],right:[1,-.5],end:[1,-.5]};function $0(e,t,n=1){const a=document.createElement("canvas"),o=a.getContext("2d"),l=e*n,r=t*n;return a.setAttribute("width",`${l}px`),a.setAttribute("height",`${r}px`),o.save(),[o,a,l,r]}function dre(){function e(t,n,a,o,l,r,s,u,c){const[d,f,h,g]=$0(o,l,a);let p=0;if(t instanceof HTMLImageElement)d.drawImage(t,0,0,h,g);else{const{color:j,fontSize:G,fontStyle:ee,fontWeight:te,fontFamily:ue,textAlign:ne,textBaseline:de}=r,se=Number(G)*a;d.font=`${ee} normal ${te} ${se}px/${l}px ${ue}`,d.fillStyle=j,d.textAlign=ne,d.textBaseline=de;const Y=Ve(t)?t:[t];if(de!=="top"&&Y[0]){const X=d.measureText(Y[0]);d.textBaseline="top";const H=d.measureText(Y[0]);p=X.actualBoundingBoxAscent-H.actualBoundingBoxAscent}Y==null||Y.forEach((X,H)=>{const[Z,le]=cre[ne];d.fillText(X??"",h*Z+c*le,H*(se+r.fontGap*a))})}const v=Math.PI/180*Number(n),m=Math.max(o,l),[y,b,w]=$0(m,m,a);y.translate(w/2,w/2),y.rotate(v),h>0&&g>0&&y.drawImage(f,-h/2,-g/2);function C(j,G){return[j*Math.cos(v)-G*Math.sin(v),j*Math.sin(v)+G*Math.cos(v)]}let S=0,k=0,T=0,M=0;const A=h/2,O=g/2;[[0-A,0-O],[0+A,0-O],[0+A,0+O],[0-A,0+O]].forEach(([j,G])=>{const[ee,te]=C(j,G);S=Math.min(S,ee),k=Math.max(k,ee),T=Math.min(T,te),M=Math.max(M,te)});const I=S+w/2,L=T+w/2,z=k-S,q=M-T,U=s*a,F=u*a,N=(z+U)*2,P=q+F,[B,W]=$0(N,P);function K(j=0,G=0){B.drawImage(b,I,L,z,q,j,G+p,z,q)}return K(),K(z+U,-q/2-F/2),K(z+U,+q/2+F/2),[W.toDataURL(),N/a,P/a]}return e}var fre=D({name:"ElWatermark",__name:"watermark",props:lre,setup(e){const t={position:"relative"},n=e,a=x(()=>{var I;return((I=n.font)==null?void 0:I.fontGap)??3}),o=x(()=>{var I;return((I=n.font)==null?void 0:I.color)??"rgba(0,0,0,.15)"}),l=x(()=>{var I;return((I=n.font)==null?void 0:I.fontSize)??16}),r=x(()=>{var I;return((I=n.font)==null?void 0:I.fontWeight)??"normal"}),s=x(()=>{var I;return((I=n.font)==null?void 0:I.fontStyle)??"normal"}),u=x(()=>{var I;return((I=n.font)==null?void 0:I.fontFamily)??"sans-serif"}),c=x(()=>{var I;return((I=n.font)==null?void 0:I.textAlign)??"center"}),d=x(()=>{var I;return((I=n.font)==null?void 0:I.textBaseline)??"hanging"}),f=x(()=>n.gap[0]),h=x(()=>n.gap[1]),g=x(()=>f.value/2),p=x(()=>h.value/2),v=x(()=>{var I;return((I=n.offset)==null?void 0:I[0])??g.value}),m=x(()=>{var I;return((I=n.offset)==null?void 0:I[1])??p.value}),y=()=>{const I={zIndex:n.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let L=v.value-g.value,z=m.value-p.value;return L>0&&(I.left=`${L}px`,I.width=`calc(100% - ${L}px)`,L=0),z>0&&(I.top=`${z}px`,I.height=`calc(100% - ${z}px)`,z=0),I.backgroundPosition=`${L}px ${z}px`,I},b=qt(null),w=qt(),C=V(!1),S=()=>{w.value&&(w.value.remove(),w.value=void 0)},k=(I,L)=>{var z;b.value&&w.value&&(C.value=!0,w.value.setAttribute("style",sre({...y(),backgroundImage:`url('${I}')`,backgroundSize:`${Math.floor(L)}px`})),(z=b.value)==null||z.append(w.value),setTimeout(()=>{C.value=!1}))},T=I=>{let L=120,z=64,q=0;const{image:U,content:F,width:N,height:P,rotate:B}=n;if(!U&&I.measureText){I.font=`${Number(l.value)}px ${u.value}`;const W=Ve(F)?F:[F];let K=0,j=0;W.forEach(ee=>{const{width:te,fontBoundingBoxAscent:ue,fontBoundingBoxDescent:ne,actualBoundingBoxAscent:de,actualBoundingBoxDescent:se}=I.measureText(ee),Y=kt(ue)?de+se:ue+ne;te>K&&(K=Math.ceil(te)),Y>j&&(j=Math.ceil(Y))}),L=K,z=j*W.length+(W.length-1)*a.value;const G=Math.PI/180*Number(B);q=Math.ceil(Math.abs(Math.sin(G)*z)/2),L+=q}return[N??L,P??z,q]},M=dre(),A=()=>{const I=document.createElement("canvas").getContext("2d"),L=n.image,z=n.content,q=n.rotate;if(I){w.value||(w.value=document.createElement("div"));const U=ire(),[F,N,P]=T(I),B=W=>{const[K,j]=M(W||"",q,U,F,N,{color:o.value,fontSize:l.value,fontStyle:s.value,fontWeight:r.value,fontFamily:u.value,fontGap:a.value,textAlign:c.value,textBaseline:d.value},f.value,h.value,P);k(K,j)};if(L){const W=new Image;W.onload=()=>{B(W)},W.onerror=()=>{B(z)},W.crossOrigin="anonymous",W.referrerPolicy="no-referrer",W.src=L}else B(z)}};return mt(()=>{A()}),fe(()=>n,()=>{A()},{deep:!0,flush:"post"}),Lt(()=>{S()}),Su(b,I=>{C.value||I.forEach(L=>{ure(L,w.value)&&(S(),A())})},{attributes:!0,subtree:!0,childList:!0}),(I,L)=>(_(),$("div",{ref_key:"containerRef",ref:b,style:We([t])},[oe(I.$slots,"default")],4))}}),pre=fre;const hre=rt(pre),vre=["absolute","fixed"],mre=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],xv=Ce({placement:{type:J(String),values:mre,default:"bottom"},reference:{type:J(Object),default:null},strategy:{type:J(String),values:vre,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),gre={close:()=>!0},yre=Ce({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:Ft},placement:xv.placement,contentStyle:{type:J([Object])},mask:{type:J([Boolean,Object]),default:!0},gap:{type:J(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:J([Boolean,Object]),default:()=>({block:"center"})},type:{type:J(String)},appendTo:{type:Au.to.type,default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),bre={[at]:e=>Dt(e),"update:current":e=>De(e),close:e=>De(e),finish:()=>!0,change:e=>De(e)},wre=Ce({target:{type:J([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:Ft},showArrow:{type:Boolean,default:void 0},placement:xv.placement,mask:{type:J([Boolean,Object]),default:void 0},contentStyle:{type:J([Object])},prevButtonProps:{type:J(Object)},nextButtonProps:{type:J(Object)},scrollIntoViewOptions:{type:J([Boolean,Object]),default:void 0},type:{type:J(String)}}),Cre={close:()=>!0},_re=(e,t,n,a,o)=>{const l=V(null),r=()=>{let d;return Ue(e.value)?d=document.querySelector(e.value):ct(e.value)?d=e.value():d=e.value,d},s=()=>{const d=r();if(!d||!t.value){l.value=null;return}Sre(d)||d.scrollIntoView(o.value);const{left:f,top:h,width:g,height:p}=d.getBoundingClientRect();l.value={left:f,top:h,width:g,height:p,radius:0}};mt(()=>{fe([t,e],()=>{s()},{immediate:!0}),window.addEventListener("resize",s)}),Lt(()=>{window.removeEventListener("resize",s)});const u=d=>(Ve(n.value.offset)?n.value.offset[d]:n.value.offset)??6,c=x(()=>{var g;if(!l.value)return l.value;const d=u(0),f=u(1),h=((g=n.value)==null?void 0:g.radius)||2;return{left:l.value.left-d,top:l.value.top-f,width:l.value.width+d*2,height:l.value.height+f*2,radius:h}});return{mergedPosInfo:c,triggerTarget:x(()=>{const d=r();return!a.value||!d||!window.DOMRect?d||void 0:{getBoundingClientRect(){var f,h,g,p;return window.DOMRect.fromRect({width:((f=c.value)==null?void 0:f.width)||0,height:((h=c.value)==null?void 0:h.height)||0,x:((g=c.value)==null?void 0:g.left)||0,y:((p=c.value)==null?void 0:p.top)||0})}}})}},Mf=Symbol("ElTour");function Sre(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:a,right:o,bottom:l,left:r}=e.getBoundingClientRect();return a>=0&&r>=0&&o<=t&&l<=n}const xre=(e,t,n,a,o,l,r,s)=>{const u=V(),c=V(),d=V({}),f={x:u,y:c,placement:a,strategy:o,middlewareData:d},h=x(()=>{const y=[Y$(i(l)),X$(),G$(),kre()];return i(s)&&i(n)&&y.push(J$({element:i(n)})),y}),g=async()=>{if(!Rt)return;const y=i(e),b=i(t);if(!y||!b)return;const w=await Z$(y,b,{placement:i(a),strategy:i(o),middleware:i(h)});tu(f).forEach(C=>{f[C].value=w[C]})},p=x(()=>{if(!i(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:i(r)};const{overflow:y}=i(d);return{position:i(o),zIndex:i(r),top:i(c)!=null?`${i(c)}px`:"",left:i(u)!=null?`${i(u)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),v=x(()=>{if(!i(s))return{};const{arrow:y}=i(d);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let m;return mt(()=>{const y=i(e),b=i(t);y&&b&&(m=q$(y,b,g)),ma(()=>{g()})}),Lt(()=>{m&&m()}),{update:g,contentStyle:p,arrowStyle:v}},kre=()=>({name:"overflow",async fn(e){const t=await U$(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Ere=Ce({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:J(Object)},targetAreaClickable:{type:Boolean,default:!0}}),Tre={style:{width:"100%",height:"100%"}},Mre=["d"];var Ore=D({name:"ElTourMask",inheritAttrs:!1,__name:"mask",props:Ere,setup(e){const t=e,{ns:n}=Ne(Mf),a=x(()=>{var d;return((d=t.pos)==null?void 0:d.radius)??2}),o=x(()=>{const d=a.value,f=`a${d},${d} 0 0 1`;return{topRight:`${f} ${d},${d}`,bottomRight:`${f} ${-d},${d}`,bottomLeft:`${f} ${-d},${-d}`,topLeft:`${f} ${d},${-d}`}}),{width:l,height:r}=zp(),s=x(()=>{const d=l.value,f=r.value,h=o.value,g=`M${d},0 L0,0 L0,${f} L${d},${f} L${d},0 Z`,p=a.value;return t.pos?`${g} M${t.pos.left+p},${t.pos.top} h${t.pos.width-p*2} ${h.topRight} v${t.pos.height-p*2} ${h.bottomRight} h${-t.pos.width+p*2} ${h.bottomLeft} v${-t.pos.height+p*2} ${h.topLeft} z`:g}),u=x(()=>({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:t.zIndex,pointerEvents:t.pos&&t.targetAreaClickable?"none":"auto"})),c=x(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return cf(Bt(t,"visible"),{ns:n}),(d,f)=>e.visible?(_(),$("div",pt({key:0,class:i(n).e("mask"),style:u.value},d.$attrs),[(_(),$("svg",Tre,[E("path",{class:R(i(n).e("hollow")),style:We(c.value),d:s.value},null,14,Mre)]))],16)):re("v-if",!0)}}),$re=Ore;const Are=["data-side"];var Rre=D({name:"ElTourContent",__name:"content",props:xv,emits:gre,setup(e,{emit:t}){const n=e,a=t,o=V(n.placement),l=V(n.strategy),r=V(null),s=V(null);fe(()=>n.placement,()=>{o.value=n.placement});const{contentStyle:u,arrowStyle:c}=xre(Bt(n,"reference"),r,s,o,l,Bt(n,"offset"),Bt(n,"zIndex"),Bt(n,"showArrow")),d=x(()=>o.value.split("-")[0]),{ns:f}=Ne(Mf),h=()=>{a("close")},g=p=>{p.detail.focusReason==="pointer"&&p.preventDefault()};return(p,v)=>(_(),$("div",{ref_key:"contentRef",ref:r,style:We(i(u)),class:R(i(f).e("content")),"data-side":d.value,tabindex:"-1"},[Q(i(ai),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":r.value||void 0,onReleaseRequested:h,onFocusoutPrevented:g},{default:ae(()=>[oe(p.$slots,"default")]),_:3},8,["focus-trap-el"]),e.showArrow?(_(),$("span",{key:0,ref_key:"arrowRef",ref:s,style:We(i(c)),class:R(i(f).e("arrow"))},null,6)):re("v-if",!0)],14,Are))}}),Nre=Rre,Pre=D({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let a=0;return()=>{var u,c;const o=(u=t.default)==null?void 0:u.call(t),l=[];let r=0;function s(d){Ve(d)&&d.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(l.push(f),r+=1)})}return o.length&&s(Ra((c=o[0])==null?void 0:c.children)),a!==r&&(a=r,n("update-total",r)),l.length?l[e.current]:null}}}),Ire=D({name:"ElTour",inheritAttrs:!1,__name:"tour",props:yre,emits:bre,setup(e,{emit:t}){const n=e,a=t,o=ve("tour"),l=V(0),r=V(),s=I6(n,"current",a,{passive:!0}),u=x(()=>{var O;return(O=r.value)==null?void 0:O.target}),c=x(()=>[o.b(),y.value==="primary"?o.m("primary"):""]),d=x(()=>{var O;return((O=r.value)==null?void 0:O.placement)||n.placement}),f=x(()=>{var O;return((O=r.value)==null?void 0:O.contentStyle)??n.contentStyle}),h=x(()=>{var O;return((O=r.value)==null?void 0:O.mask)??n.mask}),g=x(()=>!!h.value&&n.modelValue),p=x(()=>Dt(h.value)?void 0:h.value),v=x(()=>{var O;return!!u.value&&(((O=r.value)==null?void 0:O.showArrow)??n.showArrow)}),m=x(()=>{var O;return((O=r.value)==null?void 0:O.scrollIntoViewOptions)??n.scrollIntoViewOptions}),y=x(()=>{var O;return((O=r.value)==null?void 0:O.type)??n.type}),{nextZIndex:b}=Pu(),w=b(),C=x(()=>n.zIndex??w),{mergedPosInfo:S,triggerTarget:k}=_re(u,Bt(n,"modelValue"),Bt(n,"gap"),h,m);fe(()=>n.modelValue,O=>{O||(s.value=0)});const T=()=>{n.closeOnPressEscape&&(a(at,!1),a("close",s.value))},M=O=>{l.value=O},A=yn();return bt(Mf,{currentStep:r,current:s,total:l,showClose:Bt(n,"showClose"),closeIcon:Bt(n,"closeIcon"),mergedType:y,ns:o,slots:A,updateModelValue(O){a(at,O)},onClose(){a("close",s.value)},onFinish(){a("finish")},onChange(){a(yt,s.value)}}),(O,I)=>(_(),$(He,null,[Q(i(ti),{to:e.appendTo},{default:ae(()=>{var L,z;return[E("div",pt({class:c.value},O.$attrs),[Q($re,{visible:g.value,fill:(L=p.value)==null?void 0:L.color,style:We((z=p.value)==null?void 0:z.style),pos:i(S),"z-index":C.value,"target-area-clickable":e.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),e.modelValue?(_(),ie(Nre,{key:i(s),reference:i(k),placement:d.value,"show-arrow":v.value,"z-index":C.value,style:We(f.value),onClose:T},{default:ae(()=>[Q(i(Pre),{current:i(s),onUpdateTotal:M},{default:ae(()=>[oe(O.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):re("v-if",!0)],16)]}),_:3},8,["to"]),re(" just for IDE "),re("v-if",!0)],64))}}),Lre=Ire;const Vre=["aria-label"];var Bre=D({name:"ElTourStep",__name:"step",props:wre,emits:Cre,setup(e,{emit:t}){const n=e,a=t,{Close:o}=jy,{t:l}=xt(),{currentStep:r,current:s,total:u,showClose:c,closeIcon:d,mergedType:f,ns:h,slots:g,updateModelValue:p,onClose:v,onFinish:m,onChange:y}=Ne(Mf);fe(n,O=>{r.value=O},{immediate:!0});const b=x(()=>n.showClose??c.value),w=x(()=>n.closeIcon??d.value??o),C=O=>{if(O)return Mu(O,["children","onClick"])},S=()=>{var O,I;s.value-=1,(O=n.prevButtonProps)!=null&&O.onClick&&((I=n.prevButtonProps)==null||I.onClick()),y()},k=()=>{var O;s.value>=u.value-1?T():s.value+=1,(O=n.nextButtonProps)!=null&&O.onClick&&n.nextButtonProps.onClick(),y()},T=()=>{M(),m()},M=()=>{p(!1),v(),a("close")},A=O=>{var I;if(!((I=O.target)!=null&&I.isContentEditable))switch(Kt(O)){case we.left:O.preventDefault(),s.value>0&&S();break;case we.right:O.preventDefault(),k();break}};return mt(()=>{window.addEventListener("keydown",A)}),Lt(()=>{window.removeEventListener("keydown",A)}),(O,I)=>(_(),$(He,null,[b.value?(_(),$("button",{key:0,"aria-label":i(l)("el.tour.close"),class:R(i(h).e("closebtn")),type:"button",onClick:M},[Q(i(ze),{class:R(i(h).e("close"))},{default:ae(()=>[(_(),ie(ut(w.value)))]),_:1},8,["class"])],10,Vre)):re("v-if",!0),E("header",{class:R([i(h).e("header"),{"show-close":i(c)}])},[oe(O.$slots,"header",{},()=>[E("span",{role:"heading",class:R(i(h).e("title"))},_e(e.title),3)])],2),E("div",{class:R(i(h).e("body"))},[oe(O.$slots,"default",{},()=>[E("span",null,_e(e.description),1)])],2),E("footer",{class:R(i(h).e("footer"))},[E("div",{class:R(i(h).b("indicators"))},[i(g).indicators?(_(),ie(ut(i(g).indicators),{key:0,current:i(s),total:i(u)},null,8,["current","total"])):(_(!0),$(He,{key:1},Ct(i(u),(L,z)=>(_(),$("span",{key:L,class:R([i(h).b("indicator"),i(h).is("active",z===i(s))])},null,2))),128))],2),E("div",{class:R(i(h).b("buttons"))},[i(s)>0?(_(),ie(i(Ln),pt({key:0,size:"small",type:i(f)},C(e.prevButtonProps),{onClick:S}),{default:ae(()=>{var L;return[_t(_e(((L=e.prevButtonProps)==null?void 0:L.children)??i(l)("el.tour.previous")),1)]}),_:1},16,["type"])):re("v-if",!0),i(s)<=i(u)-1?(_(),ie(i(Ln),pt({key:1,size:"small",type:i(f)==="primary"?"default":"primary"},C(e.nextButtonProps),{onClick:k}),{default:ae(()=>{var L;return[_t(_e(((L=e.nextButtonProps)==null?void 0:L.children)??(i(s)===i(u)-1?i(l)("el.tour.finish"):i(l)("el.tour.next"))),1)]}),_:1},16,["type"])):re("v-if",!0)],2)],2)],64))}}),r9=Bre;const zre=rt(Lre,{TourStep:r9}),Dre=ln(r9),Hre=Ce({container:{type:J([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:J(String),default:"default"},direction:{type:J(String),default:"vertical"},selectScrollTop:Boolean}),Fre={change:e=>Ue(e),click:(e,t)=>e instanceof MouseEvent&&(Ue(t)||kt(t))},_c=e=>{if(!Rt||e==="")return null;if(Ue(e))try{return document.querySelector(e)}catch{return null}return e};function Kre(e){let t=0;const n=(...a)=>{t&&ml(t),t=Ua(()=>{e(...a),t=0})};return n.cancel=()=>{ml(t),t=0},n}const s9=Symbol("anchor");var Wre=D({name:"ElAnchor",__name:"anchor",props:Hre,emits:Fre,setup(e,{expose:t,emit:n}){const a=e,o=n,l=yn(),r=V(""),s=V({}),u=V(null),c=V(null),d=V(),f={};let h=!1,g=0;const p=ve("anchor"),v=x(()=>[p.b(),a.type==="underline"?p.m("underline"):"",p.m(a.direction)]),m=L=>{f[L.href]=L.el},y=L=>{delete f[L]},b=L=>{r.value!==L&&(r.value=L,o(yt,L))};let w=null,C="";const S=L=>{if(!d.value)return;const z=_c(L);if(!z)return;if(w){if(C===L)return;w()}C=L,h=!0;const q=hm(z,d.value),U=V2(z,q),F=q.scrollHeight-q.clientHeight,N=Math.min(U-a.offset,F);w=YM(d.value,g,N,a.duration,()=>{setTimeout(()=>{h=!1,C=""},20)})},k=L=>{L&&(b(L),S(L))},T=(L,z)=>{o("click",L,z),k(z)},M=Kre(()=>{d.value&&(g=vm(d.value));const L=A();h||kt(L)||b(L)}),A=()=>{if(!d.value)return;const L=vm(d.value),z=[];for(const q of Object.keys(f)){const U=_c(q);if(!U)continue;const F=V2(U,hm(U,d.value));z.push({top:F-a.offset-a.bound,href:q})}z.sort((q,U)=>q.top-U.top);for(let q=0;qL))return U.href}},O=()=>{const L=_c(a.container);!L||Ou(L)?d.value=window:d.value=L};Vt(d,"scroll",M);const I=()=>{Ie(()=>{if(!u.value||!c.value||!r.value){s.value={};return}const L=f[r.value];if(!L){s.value={};return}const z=u.value.getBoundingClientRect(),q=c.value.getBoundingClientRect(),U=L.getBoundingClientRect();a.direction==="horizontal"?s.value={left:`${U.left-z.left}px`,width:`${U.width}px`,opacity:1}:s.value={top:`${U.top-z.top+(U.height-q.height)/2}px`,opacity:1}})};return fe(r,I),fe(()=>{var L;return(L=l.default)==null?void 0:L.call(l)},I),mt(()=>{O();const L=decodeURIComponent(window.location.hash);_c(L)?k(L):M()}),fe(()=>a.container,()=>{O()}),bt(s9,{ns:p,direction:a.direction,currentAnchor:r,addLink:m,removeLink:y,handleClick:T}),t({scrollTo:k}),(L,z)=>(_(),$("div",{ref_key:"anchorRef",ref:u,class:R(v.value)},[e.marker?(_(),$("div",{key:0,ref_key:"markerRef",ref:c,class:R(i(p).e("marker")),style:We(s.value)},null,6)):re("v-if",!0),E("div",{class:R(i(p).e("list"))},[oe(L.$slots,"default")],2)],2))}}),jre=Wre;const qre=Ce({title:String,href:String}),Ure=["href"];var Yre=D({name:"ElAnchorLink",__name:"anchor-link",props:qre,setup(e){const t=e,n=V(null),{ns:a,direction:o,currentAnchor:l,addLink:r,removeLink:s,handleClick:u}=Ne(s9),c=x(()=>[a.e("link"),a.is("active",l.value===t.href)]),d=f=>{u(f,t.href)};return fe(()=>t.href,(f,h)=>{Ie(()=>{h&&s(h),f&&r({href:f,el:n.value})})}),mt(()=>{const{href:f}=t;f&&r({href:f,el:n.value})}),Lt(()=>{const{href:f}=t;f&&s(f)}),(f,h)=>(_(),$("div",{class:R(i(a).e("item"))},[E("a",{ref_key:"linkRef",ref:n,class:R(c.value),href:e.href,onClick:d},[oe(f.$slots,"default",{},()=>[_t(_e(e.title),1)])],10,Ure),f.$slots["sub-link"]&&i(o)==="vertical"?(_(),$("div",{key:0,class:R(i(a).e("list"))},[oe(f.$slots,"sub-link")],2)):re("v-if",!0)],2))}}),i9=Yre;const Gre=rt(jre,{AnchorLink:i9}),Xre=ln(i9),u9={label:"label",value:"value",disabled:"disabled"},Jre=Ce({direction:{type:J(String),default:"horizontal"},options:{type:J(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:J(Object),default:()=>u9},block:Boolean,size:On,disabled:{type:Boolean,default:void 0},validateEvent:{type:Boolean,default:!0},id:String,name:String,...ia(["ariaLabel"])}),Zre={[at]:e=>Ue(e)||De(e)||Dt(e),[yt]:e=>Ue(e)||De(e)||Dt(e)},Qre=["id","aria-label","aria-labelledby"],ese=["name","disabled","checked","onChange"];var tse=D({name:"ElSegmented",__name:"segmented",props:Jre,emits:Zre,setup(e,{emit:t}){const n=e,a=t,o=ve("segmented"),l=Un(),r=En(),s=dn(),{formItem:u}=Kn(),{inputId:c,isLabeledByFormItem:d}=za(n,{formItemContext:u}),f=V(null),h=zS(),g=Nt({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),p=(I,L)=>{const z=m(L);a(at,z),a(yt,z),I.target.checked=z===n.modelValue},v=x(()=>({...u9,...n.props})),m=I=>Mt(I)?I[v.value.value]:I,y=I=>Mt(I)?I[v.value.label]:I,b=I=>!!(s.value||Mt(I)&&I[v.value.disabled]),w=I=>n.modelValue===m(I),C=I=>n.options.find(L=>m(L)===I),S=I=>[o.e("item"),o.is("selected",w(I)),o.is("disabled",b(I))],k=()=>{if(!f.value)return;const I=f.value.querySelector(".is-selected"),L=f.value.querySelector(".is-selected input");if(!I||!L){g.width=0,g.height=0,g.translateX=0,g.translateY=0,g.focusVisible=!1;return}g.isInit=!0,n.direction==="vertical"?(g.height=I.offsetHeight,g.translateY=I.offsetTop):(g.width=I.offsetWidth,g.translateX=I.offsetLeft);try{g.focusVisible=L.matches(":focus-visible")}catch{}},T=x(()=>[o.b(),o.m(r.value),o.is("block",n.block)]),M=x(()=>({width:n.direction==="vertical"?"100%":`${g.width}px`,height:n.direction==="vertical"?`${g.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${g.translateY}px)`:`translateX(${g.translateX}px)`,display:g.isInit?"block":"none"})),A=x(()=>[o.e("item-selected"),o.is("disabled",b(C(n.modelValue))),o.is("focus-visible",g.focusVisible)]),O=x(()=>n.name||l.value);return en(f,k),fe(h,k),fe(()=>n.modelValue,()=>{var I;k(),n.validateEvent&&((I=u==null?void 0:u.validate)==null||I.call(u,"change").catch(L=>ft(L)))},{flush:"post"}),(I,L)=>e.options.length?(_(),$("div",{key:0,id:i(c),ref_key:"segmentedRef",ref:f,class:R(T.value),role:"radiogroup","aria-label":i(d)?void 0:e.ariaLabel||"segmented","aria-labelledby":i(d)?i(u).labelId:void 0},[E("div",{class:R([i(o).e("group"),i(o).m(e.direction)])},[E("div",{style:We(M.value),class:R(A.value)},null,6),(_(!0),$(He,null,Ct(e.options,(z,q)=>(_(),$("label",{key:q,class:R(S(z))},[E("input",{class:R(i(o).e("item-input")),type:"radio",name:O.value,disabled:b(z),checked:w(z),onChange:U=>p(U,z)},null,42,ese),E("div",{class:R(i(o).e("item-label"))},[oe(I.$slots,"default",{item:z},()=>[_t(_e(y(z)),1)])],2)],2))),128))],2)],10,Qre)):re("v-if",!0)}}),nse=tse;const ase=rt(nse),ose=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value||"").toLowerCase().includes(n)},lse=(e,t,n)=>{const{selectionEnd:a}=e;if(a===null)return;const o=e.value,l=In(t);let r=-1,s;for(let u=a-1;u>=0;--u){const c=o[u];if(r===-1&&(c===n||c===` +`||c==="\r")){r=u;continue}if(l.includes(c)){const d=r===-1?a:r;s={pattern:o.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},rse=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,o=t.useSelectionEnd?a:n,l=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),l.forEach(h=>{if(c&&h==="lineHeight")if(u.boxSizing==="border-box"){const g=Number.parseInt(u.height),p=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),v=p+Number.parseInt(u.lineHeight);g>v?s.lineHeight=`${g-p}px`:g===v?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[h]=u[h]}),Zd()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,o)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,o))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},sse=Ce({...Nh,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Ue(e)?e.length===1:e.every(t=>Ue(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>ose,validator:e=>e===!1?!0:ct(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ht.popperClass,popperStyle:Ht.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>c9}}),ise={[at]:e=>Ue(e),"whole-remove":(e,t)=>Ue(e)&&Ue(t),input:e=>Ue(e),search:(e,t)=>Ue(e)&&Ue(t),select:(e,t)=>Mt(e)&&Ue(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},c9={value:"value",label:"label",disabled:"disabled"},use=Ce({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),cse={select:e=>Ue(e.value)},dse=["id","aria-disabled","aria-selected","onMousemove","onClick"];var fse=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:use,emits:cse,setup(e,{expose:t,emit:n}){const a=e,o=n,l=ve("mention"),{t:r}=xt(),s=V(-1),u=V(),c=V(),d=V(),f=(C,S)=>[l.be("dropdown","item"),l.is("hovering",s.value===S),l.is("disabled",C.disabled||a.disabled)],h=C=>{C.disabled||a.disabled||o("select",C)},g=C=>{s.value=C},p=x(()=>a.disabled||a.options.every(C=>C.disabled)),v=x(()=>a.options[s.value]),m=()=>{!v.value||v.value.disabled||a.disabled||o("select",v.value)},y=C=>{const{options:S}=a;if(S.length===0||p.value)return;C==="next"?(s.value++,s.value===S.length&&(s.value=0)):C==="prev"&&(s.value--,s.value<0&&(s.value=S.length-1));const k=S[s.value];if(k.disabled){y(C);return}Ie(()=>b(k))},b=C=>{var M,A,O,I;const{options:S}=a,k=S.findIndex(L=>L.value===C.value),T=(M=c.value)==null?void 0:M[k];if(T){const L=(O=(A=d.value)==null?void 0:A.querySelector)==null?void 0:O.call(A,`.${l.be("dropdown","wrap")}`);L&&sh(L,T)}(I=u.value)==null||I.handleScroll()};return fe(()=>a.options,()=>{p.value||a.options.length===0?s.value=-1:s.value=a.options.findIndex(C=>!C.disabled)},{immediate:!0}),t({hoveringIndex:s,navigateOptions:y,selectHoverOption:m,hoverOption:v}),(C,S)=>(_(),$("div",{ref_key:"dropdownRef",ref:d,class:R(i(l).b("dropdown"))},[C.$slots.header?(_(),$("div",{key:0,class:R(i(l).be("dropdown","header"))},[oe(C.$slots,"header")],2)):re("v-if",!0),dt(Q(i(uo),{id:e.contentId,ref_key:"scrollbarRef",ref:u,tag:"ul","wrap-class":i(l).be("dropdown","wrap"),"view-class":i(l).be("dropdown","list"),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:ae(()=>[(_(!0),$(He,null,Ct(e.options,(k,T)=>(_(),$("li",{id:`${e.contentId}-${T}`,ref_for:!0,ref_key:"optionRefs",ref:c,key:T,class:R(f(k,T)),role:"option","aria-disabled":k.disabled||e.disabled||void 0,"aria-selected":s.value===T,onMousemove:M=>g(T),onClick:Xe(M=>h(k),["stop"])},[oe(C.$slots,"label",{item:k,index:T},()=>[E("span",null,_e(k.label??k.value),1)])],42,dse))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[At,e.options.length>0&&!e.loading]]),e.loading?(_(),$("div",{key:1,class:R(i(l).be("dropdown","loading"))},[oe(C.$slots,"loading",{},()=>[_t(_e(i(r)("el.mention.loading")),1)])],2)):re("v-if",!0),C.$slots.footer?(_(),$("div",{key:2,class:R(i(l).be("dropdown","footer"))},[oe(C.$slots,"footer")],2)):re("v-if",!0)],2))}}),pse=fse,hse=D({name:"ElMention",inheritAttrs:!1,__name:"mention",props:sse,emits:ise,setup(e,{expose:t,emit:n}){const a=e,o=n,l=x(()=>{const N=jn.props??[];return vl(a,Ve(N)?N:Object.keys(N))}),r=ve("mention"),s=dn(),u=Un(),c=V(),d=V(),f=V(),h=V(!1),g=V(),p=V(),v=x(()=>a.showArrow?a.placement:`${a.placement}-start`),m=x(()=>a.showArrow?["bottom","top"]:["bottom-start","top-start"]),y=x(()=>({...c9,...a.props})),b=N=>{const P={label:N[y.value.label],value:N[y.value.value],disabled:N[y.value.disabled]};return{...N,...P}},w=x(()=>a.options.map(b)),C=x(()=>{const{filterOption:N}=a;return!p.value||!N?w.value:w.value.filter(P=>N(p.value.pattern,P))}),S=x(()=>h.value&&(!!C.value.length||a.loading)),k=x(()=>{var N;return`${u.value}-${(N=f.value)==null?void 0:N.hoveringIndex}`}),T=N=>{o(at,N),o(Sn,N),q()},M=N=>{var B,W,K,j;if((B=c.value)!=null&&B.isComposing)return;const P=Kt(N);switch(P){case we.left:case we.right:q();break;case we.up:case we.down:if(!h.value)return;N.preventDefault(),(W=f.value)==null||W.navigateOptions(P===we.up?"prev":"next");break;case we.enter:case we.numpadEnter:if(!h.value){a.type!=="textarea"&&q();return}N.preventDefault(),(K=f.value)!=null&&K.hoverOption?(j=f.value)==null||j.selectHoverOption():h.value=!1;break;case we.esc:if(!h.value)return;N.preventDefault(),h.value=!1;break;case we.backspace:if(a.whole&&p.value){const{splitIndex:G,selectionEnd:ee,pattern:te,prefixIndex:ue,prefix:ne}=p.value,de=z();if(!de)return;const se=de.value,Y=w.value.find(X=>X.value===te);if((ct(a.checkIsWhole)?a.checkIsWhole(te,ne):Y)&&G!==-1&&G+1===ee){N.preventDefault();const X=se.slice(0,ue)+se.slice(G+1);o(at,X),o(Sn,X),o("whole-remove",te,ne);const H=ue;Ie(()=>{de.selectionStart=H,de.selectionEnd=H,F()})}}}},{wrapperRef:A}=El(c,{disabled:s,afterFocus(){q()},beforeBlur(N){var P;return(P=d.value)==null?void 0:P.isFocusInsideContent(N)},afterBlur(){h.value=!1}}),O=()=>{q()},I=N=>a.options.find(P=>N.value===P[y.value.value]),L=N=>{if(!p.value)return;const P=z();if(!P)return;const B=P.value,{split:W}=a,K=B.slice(p.value.end),j=K.startsWith(W),G=`${N.value}${j?"":W}`,ee=B.slice(0,p.value.start)+G+K;o(at,ee),o(Sn,ee),o("select",I(N),p.value.prefix);const te=p.value.start+G.length+(j?1:0);Ie(()=>{P.selectionStart=te,P.selectionEnd=te,P.focus(),F()})},z=()=>{var N,P;return a.type==="textarea"?(N=c.value)==null?void 0:N.textarea:(P=c.value)==null?void 0:P.input},q=()=>{setTimeout(()=>{U(),F(),Ie(()=>{var N;return(N=d.value)==null?void 0:N.updatePopper()})},0)},U=()=>{const N=z();if(!N)return;const P=rse(N),B=N.getBoundingClientRect(),W=A.value.getBoundingClientRect();g.value={position:"absolute",width:0,height:`${P.height}px`,left:`${P.left+B.left-W.left}px`,top:`${P.top+B.top-W.top}px`}},F=()=>{const N=z();if(document.activeElement!==N){h.value=!1;return}const{prefix:P,split:B}=a;if(p.value=lse(N,P,B),p.value&&p.value.splitIndex===-1){h.value=!0,o("search",p.value.pattern,p.value.prefix);return}h.value=!1};return t({input:c,tooltip:d,dropdownVisible:S}),(N,P)=>(_(),$("div",{ref_key:"wrapperRef",ref:A,class:R(i(r).b())},[Q(i(jn),pt(pt(l.value,N.$attrs),{ref_key:"elInputRef",ref:c,"model-value":e.modelValue,disabled:i(s),role:S.value?"combobox":void 0,"aria-activedescendant":S.value?k.value||"":void 0,"aria-controls":S.value?i(u):void 0,"aria-expanded":S.value||void 0,"aria-label":e.ariaLabel,"aria-autocomplete":S.value?"none":void 0,"aria-haspopup":S.value?"listbox":void 0,onInput:T,onKeydown:M,onMousedown:O}),ga({_:2},[Ct(N.$slots,(B,W)=>({name:W,fn:ae(K=>[oe(N.$slots,W,il(ul(K)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),Q(i(Fn),{ref_key:"tooltipRef",ref:d,visible:S.value,"popper-class":[i(r).e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,placement:v.value,"fallback-placements":m.value,effect:"light",pure:"",offset:e.offset,"show-arrow":e.showArrow},{default:ae(()=>[E("div",{style:We(g.value)},null,4)]),content:ae(()=>[Q(pse,{ref_key:"dropdownRef",ref:f,options:C.value,disabled:i(s),loading:e.loading,"content-id":i(u),"aria-label":e.ariaLabel,onSelect:L,onClick:P[0]||(P[0]=Xe(B=>{var W;return(W=c.value)==null?void 0:W.focus()},["stop"]))},ga({_:2},[Ct(N.$slots,(B,W)=>({name:W,fn:ae(K=>[oe(N.$slots,W,il(ul(K)))])}))]),1032,["options","disabled","loading","content-id","aria-label"])]),_:3},8,["visible","popper-class","popper-style","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}}),vse=hse;const mse=rt(vse),gse=Ce({layout:{type:String,default:"horizontal",values:["horizontal","vertical"]},lazy:Boolean}),yse={resizeStart:(e,t)=>!0,resize:(e,t)=>!0,resizeEnd:(e,t)=>!0,collapse:(e,t,n)=>!0},bse=Ce({min:{type:[String,Number]},max:{type:[String,Number]},size:{type:[String,Number]},resizable:{type:Boolean,default:!0},collapsible:Boolean}),wse={"update:size":e=>typeof e=="number"||typeof e=="string"};function Cse(e){const t=V(),{width:n,height:a}=Z0(t);return{containerEl:t,containerSize:x(()=>e.value==="horizontal"?n.value:a.value)}}function kv(e){return Number(e.slice(0,-1))/100}function Ev(e){return Number(e.slice(0,-2))}function Tv(e){return Ue(e)&&e.endsWith("%")}function Mv(e){return Ue(e)&&e.endsWith("px")}function _se(e,t){const n=x(()=>e.value.map(r=>r.size)),a=x(()=>e.value.length),o=V([]);fe([n,a,t],()=>{var c;let r=[],s=0;for(let d=0;dd+(f||0),0);if(u>1||!s){const d=1/u;r=r.map(f=>f===void 0?0:f*d)}else{const d=(1-u)/s;r=r.map(f=>f===void 0?d:f)}o.value=r});const l=r=>r*t.value;return{percentSizes:o,pxSizes:x(()=>o.value.map(l))}}function Sse(e,t,n,a){const o=m=>m*t.value||0;function l(m,y){return Tv(m)?o(kv(m)):Mv(m)?Ev(m):m??y}const r=V(0),s=V(null);let u=[],c=Yt;const d=x(()=>e.value.map(m=>[m.min,m.max]));fe(a,()=>{if(r.value){const m=new MouseEvent("mouseup",{bubbles:!0});window.dispatchEvent(m)}});const f=m=>{r.value=0,s.value={index:m,confirmed:!1},u=n.value},h=(m,y)=>{var I;let b=null;if((!s.value||!s.value.confirmed)&&y!==0){if(y>0)b=m,s.value={index:m,confirmed:!0};else for(let L=m;L>=0;L-=1)if(u[L]>0){b=L,s.value={index:L,confirmed:!0};break}}const w=b??((I=s.value)==null?void 0:I.index)??m,C=[...u],S=w+1,k=l(d.value[w][0],0),T=l(d.value[S][0],0),M=l(d.value[w][1],t.value||0),A=l(d.value[S][1],t.value||0);let O=y;C[w]+OM&&(O=M-C[w]),C[S]-O>A&&(O=C[S]-A),C[w]+=O,C[S]-=O,r.value=O,c=()=>{e.value.forEach((L,z)=>{L.size=C[z]}),c=Yt},a.value||c()},g=()=>{a.value&&c(),r.value=0,s.value=null,u=[]},p=[];return{lazyOffset:r,onMoveStart:f,onMoving:h,onMoveEnd:g,movingIndex:s,onCollapse:(m,y)=>{p.length||p.push(...n.value);const b=n.value,w=y==="start"?m:m+1,C=y==="start"?m+1:m,S=b[w],k=b[C];if(S!==0&&k!==0)b[w]=0,b[C]+=S,p[m]=S;else{const T=S+k,M=p[m],A=T-M;b[C]=M,b[w]=A}e.value.forEach((T,M)=>{T.size=b[M]})}}}const d9=Symbol("splitterRootContextKey");var xse=D({name:"ElSplitter",__name:"splitter",props:gse,emits:yse,setup(e,{emit:t}){const n=ve("splitter"),a=t,o=e,l=Bt(o,"layout"),r=Bt(o,"lazy"),{containerEl:s,containerSize:u}=Cse(l),{removeChild:c,children:d,addChild:f,ChildrenSorter:h}=mf(ht(),"ElSplitterPanel");fe(d,()=>{m.value=null,d.value.forEach((O,I)=>{O.setIndex(I)})});const{percentSizes:g,pxSizes:p}=_se(d,u),{lazyOffset:v,movingIndex:m,onMoveStart:y,onMoving:b,onMoveEnd:w,onCollapse:C}=Sse(d,u,p,r),S=x(()=>({[n.cssVarBlockName("bar-offset")]:r.value?`${v.value}px`:void 0}));return bt(d9,Nt({panels:d,percentSizes:g,pxSizes:p,layout:l,lazy:r,movingIndex:m,containerSize:u,onMoveStart:O=>{y(O),a("resizeStart",O,p.value)},onMoving:(O,I)=>{b(O,I),r.value||a("resize",O,p.value)},onMoveEnd:async O=>{w(),await Ie(),a("resizeEnd",O,p.value)},onCollapse:(O,I)=>{C(O,I),a("collapse",O,I,p.value)},registerPanel:f,unregisterPanel:c})),(O,I)=>(_(),$("div",{ref_key:"containerEl",ref:s,class:R([i(n).b(),i(n).e(l.value)]),style:We(S.value)},[oe(O.$slots,"default"),Q(i(h)),re(" Prevent iframe touch events from breaking "),i(m)?(_(),$("div",{key:0,class:R([i(n).e("mask"),i(n).e(`mask-${l.value}`)])},null,2)):re("v-if",!0)],6))}}),kse=xse;function Ese(e){return e&&Mt(e)?e:{start:!!e,end:!!e}}function h4(e,t,n,a){return!!(e!=null&&e.collapsible.end&&t>0||n!=null&&n.collapsible.start&&a===0&&t>0)}var Tse=D({name:"ElSplitterBar",__name:"split-bar",props:{index:{type:Number,required:!0},layout:{type:String,values:["horizontal","vertical"],default:"horizontal"},resizable:{type:Boolean,default:!0},lazy:Boolean,startCollapsible:Boolean,endCollapsible:Boolean},emits:["moveStart","moving","moveEnd","collapse"],setup(e,{emit:t}){const n=ve("splitter-bar"),a=e,o=t,l=x(()=>a.layout==="horizontal"),r=x(()=>l.value?{width:0}:{height:0}),s=x(()=>({width:l.value?"16px":"100%",height:l.value?"100%":"16px",cursor:a.resizable?l.value?"ew-resize":"ns-resize":"auto",touchAction:"none"})),u=x(()=>{const b=n.e("dragger");return{[`${b}-horizontal`]:l.value,[`${b}-vertical`]:!l.value,[`${b}-active`]:!!c.value}}),c=V(null),d=b=>{a.resizable&&(c.value=[b.pageX,b.pageY],o("moveStart",a.index),window.addEventListener("mouseup",p),window.addEventListener("mousemove",h))},f=b=>{if(a.resizable&&b.touches.length===1){b.preventDefault();const w=b.touches[0];c.value=[w.pageX,w.pageY],o("moveStart",a.index),window.addEventListener("touchend",v),window.addEventListener("touchmove",g)}},h=b=>{const{pageX:w,pageY:C}=b,S=w-c.value[0],k=C-c.value[1],T=l.value?S:k;o("moving",a.index,T)},g=b=>{if(b.touches.length===1){b.preventDefault();const w=b.touches[0],C=w.pageX-c.value[0],S=w.pageY-c.value[1],k=l.value?C:S;o("moving",a.index,k)}},p=()=>{c.value=null,window.removeEventListener("mouseup",p),window.removeEventListener("mousemove",h),o("moveEnd",a.index)},v=()=>{c.value=null,window.removeEventListener("touchend",v),window.removeEventListener("touchmove",g),o("moveEnd",a.index)},m=x(()=>l.value?jo:Du),y=x(()=>l.value?Jn:bo);return(b,w)=>(_(),$("div",{class:R([i(n).b()]),style:We(r.value)},[e.startCollapsible?(_(),$("div",{key:0,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-start`)]),onClick:w[0]||(w[0]=C=>o("collapse",e.index,"start"))},[oe(b.$slots,"start-collapsible",{},()=>[(_(),ie(ut(m.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0),E("div",{class:R([i(n).e("dragger"),u.value,i(n).is("disabled",!e.resizable),i(n).is("lazy",e.resizable&&e.lazy)]),style:We(s.value),onMousedown:d,onTouchstart:f},null,38),e.endCollapsible?(_(),$("div",{key:1,class:R([i(n).e("collapse-icon"),i(n).e(`${e.layout}-collapse-icon-end`)]),onClick:w[1]||(w[1]=C=>o("collapse",e.index,"end"))},[oe(b.$slots,"end-collapsible",{},()=>[(_(),ie(ut(y.value),{style:{width:"12px",height:"12px"}}))])],2)):re("v-if",!0)],6))}}),Mse=Tse;const v4="ElSplitterPanel";var Ose=D({name:v4,__name:"split-panel",props:bse,emits:wse,setup(e,{expose:t,emit:n}){const a=ve("splitter-panel"),o=e,l=n,r=Ne(d9);r||on(v4,"usage: ");const{panels:s,layout:u,lazy:c,containerSize:d,pxSizes:f}=Bn(r),{registerPanel:h,unregisterPanel:g,onCollapse:p,onMoveEnd:v,onMoveStart:m,onMoving:y}=r,b=V(),w=ht(),C=w.uid,S=V(0),k=x(()=>s.value[S.value]),T=P=>{S.value=P},M=x(()=>k.value?f.value[S.value]??0:0),A=x(()=>k.value?f.value[S.value+1]??0:0),O=x(()=>k.value?s.value[S.value+1]:null),I=x(()=>{var P;return O.value?o.resizable&&((P=O.value)==null?void 0:P.resizable)&&(M.value!==0||!o.min)&&(A.value!==0||!O.value.min):!1}),L=x(()=>k.value?S.value!==s.value.length-1:!1),z=x(()=>h4(k.value,M.value,O.value,A.value)),q=x(()=>h4(O.value,A.value,k.value,M.value));function U(P){return Tv(P)?kv(P)*d.value||0:Mv(P)?Ev(P):P??0}let F=!1;fe(()=>o.size,()=>{if(!F&&k.value){if(!d.value){k.value.size=o.size;return}const P=U(o.size),B=U(o.max),W=U(o.min),K=Math.min(Math.max(P,W||0),B||P);K!==P&&l("update:size",K),k.value.size=K}}),fe(()=>{var P;return(P=k.value)==null?void 0:P.size},P=>{P!==o.size&&(F=!0,l("update:size",P),Ie(()=>F=!1))}),fe(()=>o.resizable,P=>{k.value&&(k.value.resizable=P)});const N=Nt({uid:C,getVnode:()=>w.vnode,setIndex:T,...o,collapsible:x(()=>Ese(o.collapsible))});return h(N),Lt(()=>g(N)),t({splitterPanelRef:b}),(P,B)=>(_(),$(He,null,[E("div",pt({ref_key:"panelEl",ref:b,class:[i(a).b()],style:{flexBasis:`${M.value}px`}},P.$attrs),[oe(P.$slots,"default")],16),L.value?(_(),ie(Mse,{key:0,index:S.value,layout:i(u),lazy:i(c),resizable:I.value,"start-collapsible":z.value,"end-collapsible":q.value,onMoveStart:i(m),onMoving:i(y),onMoveEnd:i(v),onCollapse:i(p)},{"start-collapsible":ae(()=>[oe(P.$slots,"start-collapsible")]),"end-collapsible":ae(()=>[oe(P.$slots,"end-collapsible")]),_:3},8,["index","layout","lazy","resizable","start-collapsible","end-collapsible","onMoveStart","onMoving","onMoveEnd","onCollapse"])):re("v-if",!0)],64))}}),f9=Ose;const $se=rt(kse,{SplitPanel:f9}),Ase=ln(f9),Rse="2.13.7",Nse=(e=[])=>({version:Rse,install:(n,a)=>{n[E1]||(n[E1]=!0,e.forEach(o=>n.use(o)),a&&Ih(a,n,!0))}}),$a="ElInfiniteScroll",Pse=50,Ise=200,Lse=0,Vse={delay:{type:Number,default:Ise},distance:{type:Number,default:Lse},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},Ov=(e,t)=>Object.entries(Vse).reduce((n,[a,o])=>{const{type:l,default:r}=o,s=e.getAttribute(`infinite-scroll-${a}`);let u=t[s]??s??r;return u=u==="false"?!1:u,u=l(u),n[a]=Number.isNaN(u)?r:u,n},{}),p9=e=>{const{observer:t}=e[$a];t&&(t.disconnect(),delete e[$a].observer)},Bse=(e,t)=>{const{container:n,containerEl:a,instance:o,observer:l,lastScrollTop:r}=e[$a],{disabled:s,distance:u}=Ov(e,o),{clientHeight:c,scrollHeight:d,scrollTop:f}=a,h=f-r;if(e[$a].lastScrollTop=f,l||s||h<0)return;let g=!1;if(n===e)g=d-(c+f)<=u;else{const{clientTop:p,scrollHeight:v}=e,m=V2(e,a);g=f+c>=m+p+v-u}g&&t.call(o)};function A0(e,t){const{containerEl:n,instance:a}=e[$a],{disabled:o}=Ov(e,a);o||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(a):p9(e))}const zse={async mounted(e,t){const{instance:n,value:a}=t;Lo({scope:$a,from:"the directive v-infinite-scroll",replacement:"the el-scrollbar infinite scroll",version:"3.0.0",ref:"https://element-plus.org/en-US/component/scrollbar#infinite-scroll"},!0),ct(a)||on($a,"'v-infinite-scroll' binding value must be a function"),await Ie();const{delay:o,immediate:l}=Ov(e,n),r=rh(e,!0),s=r===window?document.documentElement:r,u=Dl(Bse.bind(null,e,a),o);if(r){if(e[$a]={instance:n,container:r,containerEl:s,delay:o,cb:a,onScroll:u,lastScrollTop:s.scrollTop},l){const c=new MutationObserver(Dl(A0.bind(null,e,a),Pse));e[$a].observer=c,c.observe(e,{childList:!0,subtree:!0}),A0(e,a)}r.addEventListener("scroll",u)}},unmounted(e){if(!e[$a])return;const{container:t,onScroll:n}=e[$a];t==null||t.removeEventListener("scroll",n),p9(e)},async updated(e){if(!e[$a])await Ie();else{const{containerEl:t,cb:n,observer:a}=e[$a];t.clientHeight&&a&&A0(e,n)}}},rp=zse;rp.install=e=>{e.directive("InfiniteScroll",rp)};const Dse=rp;function Hse(e,t){let n;const a=V(!1),o=Nt({...e,originalPosition:"",originalOverflow:"",visible:!1});function l(h){o.text=h}function r(){const h=o.parent,g=f.ns;if(!h.vLoadingAddClassList){let p=h.getAttribute("loading-number");p=Number.parseInt(p)-1,p?h.setAttribute("loading-number",p.toString()):(sa(h,g.bm("parent","relative")),h.removeAttribute("loading-number")),sa(h,g.bm("parent","hidden"))}s(),d.unmount()}function s(){var h,g;(g=(h=f.$el)==null?void 0:h.parentNode)==null||g.removeChild(f.$el)}function u(){var h;e.beforeClose&&!e.beforeClose()||(a.value=!0,clearTimeout(n),n=setTimeout(c,400),o.visible=!1,(h=e.closed)==null||h.call(e))}function c(){if(!a.value)return;const h=o.parent;a.value=!1,h.vLoadingAddClassList=void 0,r()}const d=M6(D({name:"ElLoading",setup(h,{expose:g}){const{ns:p,zIndex:v}=Cf("loading");return g({ns:p,zIndex:v}),()=>{const m=o.spinner||o.svg,y=qe("svg",{class:"circular",viewBox:o.svgViewBox?o.svgViewBox:"0 0 50 50",...m?{innerHTML:m}:{}},[qe("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),b=o.text?qe("p",{class:p.b("text")},[o.text]):void 0;return qe(qn,{name:p.b("fade"),onAfterLeave:c},{default:ae(()=>[dt(Q("div",{style:{backgroundColor:o.background||""},class:[p.b("mask"),o.customClass,p.is("fullscreen",o.fullscreen)]},[qe("div",{class:p.b("spinner")},[y,b])]),[[At,o.visible]])])})}}}));Object.assign(d._context,t??{});const f=d.mount(document.createElement("div"));return{...Bn(o),setText:l,removeElLoadingChild:s,close:u,handleAfterLeave:c,vm:f,get $el(){return f.$el}}}let Sc;const xs=function(e={},t){if(!Rt)return;const n=Fse(e);if(n.fullscreen&&Sc)return Sc;const a=Hse({...n,closed:()=>{var l;(l=n.closed)==null||l.call(n),n.fullscreen&&(Sc=void 0)}},t??xs._context);Kse(n,n.parent,a),m4(n,n.parent,a),n.parent.vLoadingAddClassList=()=>m4(n,n.parent,a);let o=n.parent.getAttribute("loading-number");return o?o=`${Number.parseInt(o)+1}`:o="1",n.parent.setAttribute("loading-number",o),n.parent.appendChild(a.$el),Ie(()=>a.visible.value=n.visible),n.fullscreen&&(Sc=a),a},Fse=e=>{let t;return Ue(e.target)?t=document.querySelector(e.target)??document.body:t=e.target||document.body,{parent:t===document.body||e.body?document.body:t,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:t===document.body&&(e.fullscreen??!0),lock:e.lock??!1,customClass:e.customClass||"",visible:e.visible??!0,beforeClose:e.beforeClose,closed:e.closed,target:t}},Kse=async(e,t,n)=>{const{nextZIndex:a}=n.vm.zIndex||n.vm._.exposed.zIndex,o={};if(e.fullscreen)n.originalPosition.value=ol(document.body,"position"),n.originalOverflow.value=ol(document.body,"overflow"),o.zIndex=a();else if(e.parent===document.body){n.originalPosition.value=ol(document.body,"position"),await Ie();for(const l of["top","left"]){const r=l==="top"?"scrollTop":"scrollLeft";o[l]=`${e.target.getBoundingClientRect()[l]+document.body[r]+document.documentElement[r]-Number.parseInt(ol(document.body,`margin-${l}`),10)}px`}for(const l of["height","width"])o[l]=`${e.target.getBoundingClientRect()[l]}px`}else n.originalPosition.value=ol(t,"position");for(const[l,r]of Object.entries(o))n.$el.style[l]=r},m4=(e,t,n)=>{const a=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?sa(t,a.bm("parent","relative")):Ka(t,a.bm("parent","relative")),e.fullscreen&&e.lock?Ka(t,a.bm("parent","hidden")):sa(t,a.bm("parent","hidden"))};xs._context=null;const Ti=Symbol("ElLoading"),cr=e=>`element-loading-${XS(e)}`,g4=(e,t)=>{const n=t.instance,a=c=>Mt(t.value)?t.value[c]:void 0,o=c=>V(Ue(c)&&(n==null?void 0:n[c])||c),l=c=>o(a(c)||e.getAttribute(cr(c))),r=a("fullscreen")??t.modifiers.fullscreen,s={text:l("text"),svg:l("svg"),svgViewBox:l("svgViewBox"),spinner:l("spinner"),background:l("background"),customClass:l("customClass"),fullscreen:r,target:a("target")??(r?void 0:e),body:a("body")??t.modifiers.body,lock:a("lock")??t.modifiers.lock},u=xs(s);u._context=Fi._context,e[Ti]={options:s,instance:u}},Wse=(e,t)=>{for(const n of Object.keys(e))Gt(e[n])&&(e[n].value=t[n])},Fi={mounted(e,t){t.value&&g4(e,t)},updated(e,t){const n=e[Ti];if(!t.value){n==null||n.instance.close(),e[Ti]=null;return}n?Wse(n.options,Mt(t.value)?t.value:{text:e.getAttribute(cr("text")),svg:e.getAttribute(cr("svg")),svgViewBox:e.getAttribute(cr("svgViewBox")),spinner:e.getAttribute(cr("spinner")),background:e.getAttribute(cr("background")),customClass:e.getAttribute(cr("customClass"))}):g4(e,t)},unmounted(e){var t;(t=e[Ti])==null||t.instance.close(),e[Ti]=null}};Fi._context=null;const jse={install(e){xs._context=e._context,Fi._context=e._context,e.directive("loading",Fi),e.config.globalProperties.$loading=xs},directive:Fi,service:xs},h9=["primary","success","info","warning","error"],v9=["top","top-left","top-right","bottom","bottom-left","bottom-right"],ks="top",ea=un({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:Rt?document.body:void 0}),qse=Ce({customClass:{type:String,default:ea.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ea.dangerouslyUseHTMLString},duration:{type:Number,default:ea.duration},icon:{type:Ft,default:ea.icon},id:{type:String,default:ea.id},message:{type:J([String,Object,Function]),default:ea.message},onClose:{type:J(Function),default:ea.onClose},showClose:{type:Boolean,default:ea.showClose},type:{type:String,values:h9,default:ea.type},plain:{type:Boolean,default:ea.plain},offset:{type:Number,default:ea.offset},placement:{type:String,values:v9,default:ea.placement},zIndex:{type:Number,default:ea.zIndex},grouping:{type:Boolean,default:ea.grouping},repeatNum:{type:Number,default:ea.repeatNum}}),Use={destroy:()=>!0},ao=Fd({}),Yse=e=>(ao[e]||(ao[e]=Fd([])),ao[e]),Gse=(e,t)=>{const n=ao[t]||[],a=n.findIndex(r=>r.id===e),o=n[a];let l;return a>0&&(l=n[a-1]),{current:o,prev:l}},Xse=(e,t)=>{const{prev:n}=Gse(e,t);return n?n.vm.exposed.bottom.value:0},Jse=(e,t,n)=>(ao[n]||[]).findIndex(a=>a.id===e)>0?16:t,Zse=["id"],Qse=["innerHTML"];var eie=D({name:"ElMessage",__name:"message",props:qse,emits:Use,setup(e,{expose:t,emit:n}){const{Close:a}=Mh,o=e,l=n,r=V(!1),{ns:s,zIndex:u}=Cf("message"),{currentZIndex:c,nextZIndex:d}=u,f=V(),h=V(!1),g=V(0);let p;const v=x(()=>o.type?o.type==="error"?"danger":o.type:"info"),m=x(()=>{const z=o.type;return{[s.bm("icon",z)]:z&&Xl[z]}}),y=x(()=>o.icon||Xl[o.type]||""),b=x(()=>o.placement||ks),w=x(()=>Xse(o.id,b.value)),C=x(()=>Math.max(Jse(o.id,o.offset,b.value)+w.value,o.offset)),S=x(()=>g.value+C.value),k=x(()=>b.value.includes("left")?s.is("left"):b.value.includes("right")?s.is("right"):s.is("center")),T=x(()=>b.value.startsWith("top")?"top":"bottom"),M=x(()=>({[T.value]:`${C.value}px`,zIndex:c.value}));function A(){o.duration!==0&&({stop:p}=Os(()=>{I()},o.duration))}function O(){p==null||p()}function I(){h.value=!1,Ie(()=>{var z;r.value||((z=o.onClose)==null||z.call(o),l("destroy"))})}function L(z){Kt(z)===we.esc&&I()}return mt(()=>{A(),d(),h.value=!0}),fe(()=>o.repeatNum,()=>{O(),A()}),Vt(document,"keydown",L),en(f,()=>{g.value=f.value.getBoundingClientRect().height}),t({visible:h,bottom:S,close:I}),(z,q)=>(_(),ie(qn,{name:i(s).b("fade"),onBeforeEnter:q[0]||(q[0]=U=>r.value=!0),onBeforeLeave:e.onClose,onAfterLeave:q[1]||(q[1]=U=>z.$emit("destroy")),persisted:""},{default:ae(()=>[dt(E("div",{id:e.id,ref_key:"messageRef",ref:f,class:R([i(s).b(),{[i(s).m(e.type)]:e.type},i(s).is("closable",e.showClose),i(s).is("plain",e.plain),i(s).is("bottom",T.value==="bottom"),k.value,e.customClass]),style:We(M.value),role:"alert",onMouseenter:O,onMouseleave:A},[e.repeatNum>1?(_(),ie(i(cb),{key:0,value:e.repeatNum,type:v.value,class:R(i(s).e("badge"))},null,8,["value","type","class"])):re("v-if",!0),y.value?(_(),ie(i(ze),{key:1,class:R([i(s).e("icon"),m.value])},{default:ae(()=>[(_(),ie(ut(y.value)))]),_:1},8,["class"])):re("v-if",!0),oe(z.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),$(He,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{class:R(i(s).e("content")),innerHTML:e.message},null,10,Qse)],2112)):(_(),$("p",{key:0,class:R(i(s).e("content"))},_e(e.message),3))]),e.showClose?(_(),ie(i(ze),{key:2,class:R(i(s).e("closeBtn")),onClick:Xe(I,["stop"])},{default:ae(()=>[Q(i(a))]),_:1},8,["class"])):re("v-if",!0)],46,Zse),[[At,h.value]])]),_:3},8,["name","onBeforeLeave"]))}}),tie=eie;let nie=1;const aie=e=>{if(!e.appendTo)e.appendTo=document.body;else if(Ue(e.appendTo)){let t=document.querySelector(e.appendTo);_a(t)||(ft("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body),e.appendTo=t}},oie=e=>{!e.placement&&Ue(na.placement)&&na.placement&&(e.placement=na.placement),e.placement||(e.placement=ks),v9.includes(e.placement)||(ft("ElMessage",`Invalid placement: ${e.placement}. Falling back to '${ks}'.`),e.placement=ks)},m9=e=>{const t=!e||Ue(e)||Wt(e)||ct(e)?{message:e}:e,n={...ea,...t};return aie(n),oie(n),Dt(na.grouping)&&!n.grouping&&(n.grouping=na.grouping),De(na.duration)&&n.duration===3e3&&(n.duration=na.duration),De(na.offset)&&n.offset===16&&(n.offset=na.offset),Dt(na.showClose)&&!n.showClose&&(n.showClose=na.showClose),Dt(na.plain)&&!n.plain&&(n.plain=na.plain),n},lie=e=>{const t=ao[e.props.placement||ks],n=t.indexOf(e);if(n===-1)return;t.splice(n,1);const{handler:a}=e;a.close()},rie=({appendTo:e,...t},n)=>{const a=`message_${nie++}`,o=t.onClose,l=document.createElement("div"),r={...t,id:a,onClose:()=>{o==null||o(),lie(c)},onDestroy:()=>{Ul(null,l)}},s=Q(tie,r,ct(r.message)||Wt(r.message)?{default:ct(r.message)?r.message:()=>r.message}:null);s.appContext=n||Fr._context,Ul(s,l),e.appendChild(l.firstElementChild);const u=s.component,c={id:a,vnode:s,vm:u,handler:{close:()=>{u.exposed.close()}},props:s.component.props};return c},Fr=(e={},t)=>{if(!Rt)return{close:()=>{}};const n=m9(e),a=Yse(n.placement||ks);if(n.grouping&&a.length){const l=a.find(({vnode:r})=>{var s;return((s=r.props)==null?void 0:s.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(De(na.max)&&a.length>=na.max)return{close:()=>{}};const o=rie(n,t);return a.push(o),o.handler};h9.forEach(e=>{Fr[e]=(t={},n)=>Fr({...m9(t),type:e},n)});function sie(e){for(const t in ao)if(An(ao,t)){const n=[...ao[t]];for(const a of n)(!e||e===a.props.type)&&a.handler.close()}}function iie(e){ao[e]&&[...ao[e]].forEach(t=>t.handler.close())}Fr.closeAll=sie;Fr.closeAllByPlacement=iie;Fr._context=null;const g9=Sy(Fr,"$message");var uie=D({name:"ElMessageBox",directives:{TrapFocus:TM},components:{ElButton:Ln,ElFocusTrap:ai,ElInput:jn,ElOverlay:Zh,ElIcon:ze,...Mh},inheritAttrs:!1,props:{buttonSize:{type:String,validator:g5},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:a,ns:o,size:l}=Cf("message-box",x(()=>e.buttonSize)),{t:r}=n,{nextZIndex:s}=a,u=V(!1),c=Nt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Io(io),cancelButtonLoadingIcon:Io(io),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:s()}),d=x(()=>{const U=c.type;return{[o.bm("icon",U)]:U&&Xl[U]}}),f=Un(),h=Un(),g=x(()=>{const U=c.type;return c.icon||U&&Xl[U]||""}),p=x(()=>!!c.message),v=V(),m=V(),y=V(),b=V(),w=V(),C=x(()=>c.confirmButtonClass);fe(()=>c.inputValue,async U=>{await Ie(),e.boxType==="prompt"&&U&&I()},{immediate:!0}),fe(()=>u.value,U=>{var F;U&&(e.boxType!=="prompt"&&(c.autofocus?y.value=((F=w.value)==null?void 0:F.$el)??v.value:y.value=v.value),c.zIndex=s()),e.boxType==="prompt"&&(U?Ie().then(()=>{b.value&&b.value.$el&&(c.autofocus?y.value=L()??v.value:y.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const{isDragging:S}=D8(v,m,x(()=>e.draggable),x(()=>e.overflow));mt(async()=>{await Ie(),e.closeOnHashChange&&window.addEventListener("hashchange",k)}),Lt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",k)});function k(){u.value&&(u.value=!1,Ie(()=>{c.action&&t("action",c.action)}))}const T=()=>{e.closeOnClickModal&&O(c.distinguishCancelAndClose?"close":"cancel")},M=mh(T),A=U=>{var F;if(c.inputType!=="textarea"&&!((F=b.value)!=null&&F.isComposing))return U.preventDefault(),O("confirm")},O=U=>{var F;e.boxType==="prompt"&&U==="confirm"&&!I()||(c.action=U,c.beforeClose?(F=c.beforeClose)==null||F.call(c,U,c,k):k())},I=()=>{if(e.boxType==="prompt"){const U=c.inputPattern;if(U&&!U.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;const F=c.inputValidator;if(ct(F)){const N=F(c.inputValue);if(N===!1)return c.editorErrorMessage=c.inputErrorMessage||r("el.messagebox.error"),c.validateError=!0,!1;if(Ue(N))return c.editorErrorMessage=N,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},L=()=>{var F;const U=(F=b.value)==null?void 0:F.$refs;return(U==null?void 0:U.input)??(U==null?void 0:U.textarea)},z=()=>{O("close")},q=()=>{e.closeOnPressEscape&&z()};return e.lockScroll&&cf(u,{ns:o}),{...Bn(c),ns:o,overlayEvent:M,visible:u,hasMessage:p,typeClass:d,contentId:f,inputId:h,btnSize:l,iconComponent:g,confirmButtonClasses:C,rootRef:v,focusStartRef:y,headerRef:m,inputRef:b,isDragging:S,confirmRef:w,doClose:k,handleClose:z,onCloseRequested:q,handleWrapperClick:T,handleInputEnter:A,handleAction:O,t:r}}});const cie=["aria-label","aria-describedby"],die=["aria-label"],fie=["id"];function pie(e,t,n,a,o,l){const r=$t("el-icon"),s=$t("el-input"),u=$t("el-button"),c=$t("el-focus-trap"),d=$t("el-overlay");return _(),ie(qn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:ae(()=>[dt(Q(d,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:ae(()=>[E("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:R(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[Q(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:ae(()=>[E("div",{ref:"rootRef",class:R([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:We(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Xe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(_(),$("div",{key:0,ref:"headerRef",class:R([e.ns.e("header"),{"show-close":e.showClose}])},[E("div",{class:R(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),E("span",null,_e(e.title),1)],2),e.showClose?(_(),$("button",{key:0,type:"button",class:R(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=rn(Xe(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[Q(r,{class:R(e.ns.e("close"))},{default:ae(()=>[(_(),ie(ut(e.closeIcon||"close")))]),_:1},8,["class"])],42,die)):re("v-if",!0)],2)):re("v-if",!0),E("div",{id:e.contentId,class:R(e.ns.e("content"))},[E("div",{class:R(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),ie(r,{key:0,class:R([e.ns.e("status"),e.typeClass])},{default:ae(()=>[(_(),ie(ut(e.iconComponent)))]),_:1},8,["class"])):re("v-if",!0),e.hasMessage?(_(),$("div",{key:1,class:R(e.ns.e("message"))},[oe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),ie(ut(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),ie(ut(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:_e(e.message)},null,8,["for","textContent"]))])],2)):re("v-if",!0)],2),dt(E("div",{class:R(e.ns.e("input"))},[Q(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:R({invalid:e.validateError}),onKeydown:rn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),E("div",{class:R(e.ns.e("errormsg")),style:We({visibility:e.editorErrorMessage?"visible":"hidden"})},_e(e.editorErrorMessage),7)],2),[[At,e.showInput]])],10,fie),E("div",{class:R(e.ns.e("btns"))},[e.showCancelButton?(_(),ie(u,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:R([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=rn(Xe(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:ae(()=>[_t(_e(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):re("v-if",!0),dt(Q(u,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:R([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=rn(Xe(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:ae(()=>[_t(_e(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[At,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,cie)]),_:3},8,["z-index","overlay-class","mask"]),[[At,e.visible]])]),_:3})}var hie=$n(uie,[["render",pie]]);const mu=new Map,vie=e=>{let t=document.body;return e.appendTo&&(Ue(e.appendTo)&&(t=document.querySelector(e.appendTo)),_a(e.appendTo)&&(t=e.appendTo),_a(t)||(ft("ElMessageBox","the appendTo option is not an HTMLElement. Falling back to document.body."),t=document.body)),t},mie=(e,t,n=null)=>{const a=Q(hie,e,ct(e.message)||Wt(e.message)?{default:ct(e.message)?e.message:()=>e.message}:null);return a.appContext=n,Ul(a,t),vie(e).appendChild(t.firstElementChild),a.component},gie=()=>document.createElement("div"),yie=(e,t)=>{const n=gie();e.onVanish=()=>{Ul(null,n),mu.delete(o)},e.onAction=l=>{const r=mu.get(o);let s;e.showInput?s={value:o.inputValue,action:l}:s=l,e.callback?e.callback(s,a.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?r.reject("close"):r.reject("cancel"):r.resolve(s)};const a=mie(e,n,t),o=a.proxy;for(const l in e)An(e,l)&&!An(o.$props,l)&&(l==="closeIcon"&&Mt(e[l])?o[l]=Io(e[l]):o[l]=e[l]);return o.visible=!0,o};function li(e,t=null){if(!Rt)return Promise.reject();let n;return Ue(e)||Wt(e)?e={message:e}:n=e.callback,new Promise((a,o)=>{const l=yie(e,t??li._context);mu.set(l,{options:e,callback:n,resolve:a,reject:o})})}const bie=["alert","confirm","prompt"],wie={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};bie.forEach(e=>{li[e]=Cie(e)});function Cie(e){return(t,n,a,o)=>{let l="";return Mt(n)?(a=n,l=""):kt(n)?l="":l=n,li(Object.assign({title:l,message:t,type:"",...wie[e]},a,{boxType:e}),o)}}li.close=()=>{mu.forEach((e,t)=>{t.doClose()}),mu.clear()};li._context=null;const Ll=li;Ll.install=e=>{Ll._context=e._context,e.config.globalProperties.$msgbox=Ll,e.config.globalProperties.$messageBox=Ll,e.config.globalProperties.$alert=Ll.alert,e.config.globalProperties.$confirm=Ll.confirm,e.config.globalProperties.$prompt=Ll.prompt};const _ie=Ll,y9=["primary","success","info","warning","error"],Sie=Ce({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:Ft},id:{type:String,default:""},message:{type:J([String,Object,Function]),default:""},offset:{type:Number,default:0},onClick:{type:J(Function),default:()=>{}},onClose:{type:J(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...y9,""],default:""},zIndex:Number,closeIcon:{type:Ft,default:Ba}}),xie={destroy:()=>!0},kie=["id"],Eie=["textContent"],Tie={key:0},Mie=["innerHTML"];var Oie=D({name:"ElNotification",__name:"notification",props:Sie,emits:xie,setup(e,{expose:t}){const n=e,{ns:a,zIndex:o}=Cf("notification"),{nextZIndex:l,currentZIndex:r}=o,s=V(!1);let u;const c=x(()=>{const b=n.type;return b&&Xl[n.type]?a.m(b):""}),d=x(()=>n.type&&Xl[n.type]||n.icon),f=x(()=>n.position.endsWith("right")?"right":"left"),h=x(()=>n.position.startsWith("top")?"top":"bottom"),g=x(()=>({[h.value]:`${n.offset}px`,zIndex:n.zIndex??r.value}));function p(){n.duration>0&&({stop:u}=Os(()=>{s.value&&m()},n.duration))}function v(){u==null||u()}function m(){s.value=!1}function y(b){switch(Kt(b)){case we.delete:case we.backspace:v();break;case we.esc:s.value&&m();break;default:p();break}}return mt(()=>{p(),l(),s.value=!0}),Vt(document,"keydown",y),t({visible:s,close:m}),(b,w)=>(_(),ie(qn,{name:i(a).b("fade"),onBeforeLeave:e.onClose,onAfterLeave:w[1]||(w[1]=C=>b.$emit("destroy")),persisted:""},{default:ae(()=>[dt(E("div",{id:e.id,class:R([i(a).b(),e.customClass,f.value]),style:We(g.value),role:"alert",onMouseenter:v,onMouseleave:p,onClick:w[0]||(w[0]=(...C)=>e.onClick&&e.onClick(...C))},[d.value?(_(),ie(i(ze),{key:0,class:R([i(a).e("icon"),c.value])},{default:ae(()=>[(_(),ie(ut(d.value)))]),_:1},8,["class"])):re("v-if",!0),E("div",{class:R(i(a).e("group"))},[E("h2",{class:R(i(a).e("title")),textContent:_e(e.title)},null,10,Eie),dt(E("div",{class:R(i(a).e("content")),style:We(e.title?void 0:{margin:0})},[oe(b.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),$(He,{key:1},[re(" Caution here, message could've been compromised, never use user's input as message "),E("p",{innerHTML:e.message},null,8,Mie)],2112)):(_(),$("p",Tie,_e(e.message),1))])],6),[[At,e.message]]),e.showClose?(_(),ie(i(ze),{key:0,class:R(i(a).e("closeBtn")),onClick:Xe(m,["stop"])},{default:ae(()=>[(_(),ie(ut(e.closeIcon)))]),_:1},8,["class"])):re("v-if",!0)],2)],46,kie),[[At,s.value]])]),_:3},8,["name","onBeforeLeave"]))}}),$ie=Oie;const js={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Rd=16;let Aie=1;const Kr=function(e={},t){if(!Rt)return{close:()=>{}};(Ue(e)||Wt(e))&&(e={message:e});const n=e.position||"top-right";let a=e.offset||0;js[n].forEach(({vm:d})=>{var f;a+=(((f=d.el)==null?void 0:f.offsetHeight)||0)+Rd}),a+=Rd;const o=`notification_${Aie++}`,l=e.onClose,r={...e,offset:a,id:o,onClose:()=>{Rie(o,n,l)}};let s=document.body;_a(e.appendTo)?s=e.appendTo:Ue(e.appendTo)&&(s=document.querySelector(e.appendTo)),_a(s)||(ft("ElNotification","the appendTo option is not an HTMLElement. Falling back to document.body."),s=document.body);const u=document.createElement("div"),c=Q($ie,r,ct(r.message)?r.message:Wt(r.message)?()=>r.message:null);return c.appContext=kt(t)?Kr._context:t,c.props.onDestroy=()=>{Ul(null,u)},Ul(c,u),js[n].push({vm:c}),s.appendChild(u.firstElementChild),{close:()=>{c.component.exposed.visible.value=!1}}};y9.forEach(e=>{Kr[e]=(t={},n)=>((Ue(t)||Wt(t))&&(t={message:t}),Kr({...t,type:e},n))});function Rie(e,t,n){const a=js[t],o=a.findIndex(({vm:c})=>{var d;return((d=c.component)==null?void 0:d.props.id)===e});if(o===-1)return;const{vm:l}=a[o];if(!l)return;n==null||n(l);const r=l.el.offsetHeight,s=t.split("-")[0];a.splice(o,1);const u=a.length;if(!(u<1))for(let c=o;c{t.component.exposed.visible.value=!1})}function Pie(e="top-right"){var n,a,o,l;let t=((o=(a=(n=js[e][0])==null?void 0:n.vm.component)==null?void 0:a.props)==null?void 0:o.offset)||0;for(const{vm:r}of js[e])r.component.props.offset=t,t+=(((l=r.el)==null?void 0:l.offsetHeight)||0)+Rd}Kr.closeAll=Nie;Kr.updateOffsets=Pie;Kr._context=null;const Iie=Sy(Kr,"$notify");var Lie=[pA,TH,LK,roe,FK,KK,GK,cb,lW,rW,Ln,gb,Uj,Jj,fq,pq,sU,Zb,fU,fo,Oq,Kh,_U,VU,BU,Sf,cw,fY,fW,bY,wY,CY,_Y,SY,nX,_w,dX,fX,TX,$w,DX,TJ,MJ,OJ,zw,kF,EF,ze,gZ,Dw,jn,Hw,PZ,DZ,nQ,aQ,oQ,lQ,dQ,jQ,XQ,oee,ob,Yw,Jb,Hq,Dq,bee,See,bU,uo,Jl,gd,Tj,dte,gte,yte,Bte,Kte,h5,Zte,lne,rne,mne,xae,kae,loe,boe,woe,dl,yv,tj,Moe,Noe,Poe,Fn,Uoe,Cv,vle,Ale,ore,hre,zre,Dre,Gre,Xre,ase,mse,$se,Ase],Vie=[Dse,jse,g9,_ie,Iie,Uw],$v=Nse([...Lie,...Vie]);$v.install;$v.version;var Bie=$v;const zie={__name:"App",setup(e){return mt(()=>{const t=localStorage.getItem("theme");t?document.documentElement.classList.toggle("dark",t==="dark"):window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches&&document.documentElement.classList.add("dark")}),(t,n)=>{const a=$t("router-view");return _(),ie(a)}}},Die="modulepreload",Hie=function(e){return"/"+e},y4={},ir=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const r=document.querySelector("meta[property=csp-nonce]"),s=(r==null?void 0:r.nonce)||(r==null?void 0:r.getAttribute("nonce"));o=Promise.allSettled(n.map(u=>{if(u=Hie(u),u in y4)return;y4[u]=!0;const c=u.endsWith(".css"),d=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${d}`))return;const f=document.createElement("link");if(f.rel=c?"stylesheet":Die,c||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),c)return new Promise((h,g)=>{f.addEventListener("load",h),f.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${u}`)))})}))}function l(r){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=r,window.dispatchEvent(s),!s.defaultPrevented)throw r}return o.then(r=>{for(const s of r||[])s.status==="rejected"&&l(s.reason);return t().catch(l)})};/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const ds=typeof document<"u";function b9(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Fie(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&b9(e.default)}const nn=Object.assign;function R0(e,t){const n={};for(const a in t){const o=t[a];n[a]=po(o)?o.map(e):e(o)}return n}const Ki=()=>{},po=Array.isArray;function b4(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const w9=/#/g,Kie=/&/g,Wie=/\//g,jie=/=/g,qie=/\?/g,C9=/\+/g,Uie=/%5B/g,Yie=/%5D/g,_9=/%5E/g,Gie=/%60/g,S9=/%7B/g,Xie=/%7C/g,x9=/%7D/g,Jie=/%20/g;function Av(e){return e==null?"":encodeURI(""+e).replace(Xie,"|").replace(Uie,"[").replace(Yie,"]")}function Zie(e){return Av(e).replace(S9,"{").replace(x9,"}").replace(_9,"^")}function sp(e){return Av(e).replace(C9,"%2B").replace(Jie,"+").replace(w9,"%23").replace(Kie,"%26").replace(Gie,"`").replace(S9,"{").replace(x9,"}").replace(_9,"^")}function Qie(e){return sp(e).replace(jie,"%3D")}function eue(e){return Av(e).replace(w9,"%23").replace(qie,"%3F")}function tue(e){return eue(e).replace(Wie,"%2F")}function gu(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const nue=/\/$/,aue=e=>e.replace(nue,"");function N0(e,t,n="/"){let a,o={},l="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),l=t.slice(u,s>0?s:t.length),o=e(l.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=sue(a??t,n),{fullPath:a+l+r,path:a,query:o,hash:gu(r)}}function oue(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function w4(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function lue(e,t,n){const a=t.matched.length-1,o=n.matched.length-1;return a>-1&&a===o&&qs(t.matched[a],n.matched[o])&&k9(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function qs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function k9(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!rue(e[n],t[n]))return!1;return!0}function rue(e,t){return po(e)?C4(e,t):po(t)?C4(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function C4(e,t){return po(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function sue(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),o=a[a.length-1];(o===".."||o===".")&&a.push("");let l=n.length-1,r,s;for(r=0;r1&&l--;else break;return n.slice(0,l).join("/")+"/"+a.slice(r).join("/")}const Rl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let ip=function(e){return e.pop="pop",e.push="push",e}({}),P0=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function iue(e){if(!e)if(ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),aue(e)}const uue=/^[^#]+#/;function cue(e,t){return e.replace(uue,"#")+t}function due(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const Of=()=>({left:window.scrollX,top:window.scrollY});function fue(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=due(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function _4(e,t){return(history.state?history.state.position-t:-1)+e}const up=new Map;function pue(e,t){up.set(e,t)}function hue(e){const t=up.get(e);return up.delete(e),t}function vue(e){return typeof e=="string"||e&&typeof e=="object"}function E9(e){return typeof e=="string"||typeof e=="symbol"}let Tn=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const T9=Symbol("");Tn.MATCHER_NOT_FOUND+"",Tn.NAVIGATION_GUARD_REDIRECT+"",Tn.NAVIGATION_ABORTED+"",Tn.NAVIGATION_CANCELLED+"",Tn.NAVIGATION_DUPLICATED+"";function Us(e,t){return nn(new Error,{type:e,[T9]:!0},t)}function Zo(e,t){return e instanceof Error&&T9 in e&&(t==null||!!(e.type&t))}const mue=["params","query","hash"];function gue(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of mue)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function yue(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let a=0;ao&&sp(o)):[a&&sp(a)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function bue(e){const t={};for(const n in e){const a=e[n];a!==void 0&&(t[n]=po(a)?a.map(o=>o==null?null:""+o):a==null?a:""+a)}return t}const wue=Symbol(""),x4=Symbol(""),$f=Symbol(""),Rv=Symbol(""),cp=Symbol("");function wi(){let e=[];function t(a){return e.push(a),()=>{const o=e.indexOf(a);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bl(e,t,n,a,o,l=r=>r()){const r=a&&(a.enterCallbacks[o]=a.enterCallbacks[o]||[]);return()=>new Promise((s,u)=>{const c=h=>{h===!1?u(Us(Tn.NAVIGATION_ABORTED,{from:n,to:t})):h instanceof Error?u(h):vue(h)?u(Us(Tn.NAVIGATION_GUARD_REDIRECT,{from:t,to:h})):(r&&a.enterCallbacks[o]===r&&typeof h=="function"&&r.push(h),s())},d=l(()=>e.call(a&&a.instances[o],t,n,c));let f=Promise.resolve(d);e.length<3&&(f=f.then(c)),f.catch(h=>u(h))})}function I0(e,t,n,a,o=l=>l()){const l=[];for(const r of e)for(const s in r.components){let u=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(b9(u)){const c=(u.__vccOpts||u)[t];c&&l.push(Bl(c,n,a,r,s,o))}else{let c=u();l.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${s}" at "${r.path}"`);const f=Fie(d)?d.default:d;r.mods[s]=d,r.components[s]=f;const h=(f.__vccOpts||f)[t];return h&&Bl(h,n,a,r,s,o)()}))}}return l}function Cue(e,t){const n=[],a=[],o=[],l=Math.max(t.matched.length,e.matched.length);for(let r=0;rqs(c,s))?a.push(s):n.push(s));const u=e.matched[r];u&&(t.matched.find(c=>qs(c,u))||o.push(u))}return[n,a,o]}/*! + * vue-router v4.6.4 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let _ue=()=>location.protocol+"//"+location.host;function M9(e,t){const{pathname:n,search:a,hash:o}=t,l=e.indexOf("#");if(l>-1){let r=o.includes(e.slice(l))?e.slice(l).length:1,s=o.slice(r);return s[0]!=="/"&&(s="/"+s),w4(s,"")}return w4(n,e)+a+o}function Sue(e,t,n,a){let o=[],l=[],r=null;const s=({state:h})=>{const g=M9(e,location),p=n.value,v=t.value;let m=0;if(h){if(n.value=g,t.value=h,r&&r===p){r=null;return}m=v?h.position-v.position:0}else a(g);o.forEach(y=>{y(n.value,p,{delta:m,type:ip.pop,direction:m?m>0?P0.forward:P0.back:P0.unknown})})};function u(){r=n.value}function c(h){o.push(h);const g=()=>{const p=o.indexOf(h);p>-1&&o.splice(p,1)};return l.push(g),g}function d(){if(document.visibilityState==="hidden"){const{history:h}=window;if(!h.state)return;h.replaceState(nn({},h.state,{scroll:Of()}),"")}}function f(){for(const h of l)h();l=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function k4(e,t,n,a=!1,o=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:o?Of():null}}function xue(e){const{history:t,location:n}=window,a={value:M9(e,n)},o={value:t.state};o.value||l(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(u,c,d){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:_ue()+e+u;try{t[d?"replaceState":"pushState"](c,"",h),o.value=c}catch(g){console.error(g),n[d?"replace":"assign"](h)}}function r(u,c){l(u,nn({},t.state,k4(o.value.back,u,o.value.forward,!0),c,{position:o.value.position}),!0),a.value=u}function s(u,c){const d=nn({},o.value,t.state,{forward:u,scroll:Of()});l(d.current,d,!0),l(u,nn({},k4(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:o,push:s,replace:r}}function kue(e){e=iue(e);const t=xue(e),n=Sue(e,t.state,t.location,t.replace);function a(l,r=!0){r||n.pauseListeners(),history.go(l)}const o=nn({location:"",base:e,go:a,createHref:cue.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let Sr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Dn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Dn||{});const Eue={type:Sr.Static,value:""},Tue=/[a-zA-Z0-9_]/;function Mue(e){if(!e)return[[]];if(e==="/")return[[Eue]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${c}": ${g}`)}let n=Dn.Static,a=n;const o=[];let l;function r(){l&&o.push(l),l=[]}let s=0,u,c="",d="";function f(){c&&(n===Dn.Static?l.push({type:Sr.Static,value:c}):n===Dn.Param||n===Dn.ParamRegExp||n===Dn.ParamRegExpEnd?(l.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:Sr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=u}for(;st.length?t.length===1&&t[0]===fa.Static+fa.Segment?1:-1:0}function O9(e,t){let n=0;const a=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const Nue={strict:!1,end:!0,sensitive:!1};function Pue(e,t,n){const a=Aue(Mue(e.path),n),o=nn(a,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function Iue(e,t){const n=[],a=new Map;t=b4(Nue,t);function o(f){return a.get(f)}function l(f,h,g){const p=!g,v=O4(f);v.aliasOf=g&&g.record;const m=b4(t,f),y=[v];if("alias"in f){const C=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of C)y.push(O4(nn({},v,{components:g?g.record.components:v.components,path:S,aliasOf:g?g.record:v})))}let b,w;for(const C of y){const{path:S}=C;if(h&&S[0]!=="/"){const k=h.record.path,T=k[k.length-1]==="/"?"":"/";C.path=h.record.path+(S&&T+S)}if(b=Pue(C,h,m),g?g.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&f.name&&!$4(b)&&r(f.name)),$9(b)&&u(b),v.children){const k=v.children;for(let T=0;T{r(w)}:Ki}function r(f){if(E9(f)){const h=a.get(f);h&&(a.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&a.delete(f.record.name),f.children.forEach(r),f.alias.forEach(r))}}function s(){return n}function u(f){const h=Bue(f,n);n.splice(h,0,f),f.record.name&&!$4(f)&&a.set(f.record.name,f)}function c(f,h){let g,p={},v,m;if("name"in f&&f.name){if(g=a.get(f.name),!g)throw Us(Tn.MATCHER_NOT_FOUND,{location:f});m=g.record.name,p=nn(M4(h.params,g.keys.filter(w=>!w.optional).concat(g.parent?g.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),f.params&&M4(f.params,g.keys.map(w=>w.name))),v=g.stringify(p)}else if(f.path!=null)v=f.path,g=n.find(w=>w.re.test(v)),g&&(p=g.parse(v),m=g.record.name);else{if(g=h.name?a.get(h.name):n.find(w=>w.re.test(h.path)),!g)throw Us(Tn.MATCHER_NOT_FOUND,{location:f,currentLocation:h});m=g.record.name,p=nn({},h.params,f.params),v=g.stringify(p)}const y=[];let b=g;for(;b;)y.unshift(b.record),b=b.parent;return{name:m,path:v,params:p,matched:y,meta:Vue(y)}}e.forEach(f=>l(f));function d(){n.length=0,a.clear()}return{addRoute:l,resolve:c,removeRoute:r,clearRoutes:d,getRoutes:s,getRecordMatcher:o}}function M4(e,t){const n={};for(const a of t)a in e&&(n[a]=e[a]);return n}function O4(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Lue(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Lue(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const a in e.components)t[a]=typeof n=="object"?n[a]:n;return t}function $4(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Vue(e){return e.reduce((t,n)=>nn(t,n.meta),{})}function Bue(e,t){let n=0,a=t.length;for(;n!==a;){const l=n+a>>1;O9(e,t[l])<0?a=l:n=l+1}const o=zue(e);return o&&(a=t.lastIndexOf(o,a-1)),a}function zue(e){let t=e;for(;t=t.parent;)if($9(t)&&O9(e,t)===0)return t}function $9({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function A4(e){const t=Ne($f),n=Ne(Rv),a=x(()=>{const u=i(e.to);return t.resolve(u)}),o=x(()=>{const{matched:u}=a.value,{length:c}=u,d=u[c-1],f=n.matched;if(!d||!f.length)return-1;const h=f.findIndex(qs.bind(null,d));if(h>-1)return h;const g=R4(u[c-2]);return c>1&&R4(d)===g&&f[f.length-1].path!==g?f.findIndex(qs.bind(null,u[c-2])):h}),l=x(()=>o.value>-1&&Wue(n.params,a.value.params)),r=x(()=>o.value>-1&&o.value===n.matched.length-1&&k9(n.params,a.value.params));function s(u={}){if(Kue(u)){const c=t[i(e.replace)?"replace":"push"](i(e.to)).catch(Ki);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:a,href:x(()=>a.value.href),isActive:l,isExactActive:r,navigate:s}}function Due(e){return e.length===1?e[0]:e}const Hue=D({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"},viewTransition:Boolean},useLink:A4,setup(e,{slots:t}){const n=Nt(A4(e)),{options:a}=Ne($f),o=x(()=>({[N4(e.activeClass,a.linkActiveClass,"router-link-active")]:n.isActive,[N4(e.exactActiveClass,a.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&Due(t.default(n));return e.custom?l:qe("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},l)}}}),Fue=Hue;function Kue(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 Wue(e,t){for(const n in t){const a=t[n],o=e[n];if(typeof a=="string"){if(a!==o)return!1}else if(!po(o)||o.length!==a.length||a.some((l,r)=>l.valueOf()!==o[r].valueOf()))return!1}return!0}function R4(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const N4=(e,t,n)=>e??t??n,jue=D({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const a=Ne(cp),o=x(()=>e.route||a.value),l=Ne(x4,0),r=x(()=>{let c=i(l);const{matched:d}=o.value;let f;for(;(f=d[c])&&!f.components;)c++;return c}),s=x(()=>o.value.matched[r.value]);bt(x4,x(()=>r.value+1)),bt(wue,s),bt(cp,o);const u=V();return fe(()=>[u.value,s.value,e.name],([c,d,f],[h,g,p])=>{d&&(d.instances[f]=c,g&&g!==d&&c&&c===h&&(d.leaveGuards.size||(d.leaveGuards=g.leaveGuards),d.updateGuards.size||(d.updateGuards=g.updateGuards))),c&&d&&(!g||!qs(d,g)||!h)&&(d.enterCallbacks[f]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,f=s.value,h=f&&f.components[d];if(!h)return P4(n.default,{Component:h,route:c});const g=f.props[d],p=g?g===!0?c.params:typeof g=="function"?g(c):g:null,m=qe(h,nn({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[d]=null)},ref:u}));return P4(n.default,{Component:m,route:c})||m}}});function P4(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const que=jue;function Uue(e){const t=Iue(e.routes,e),n=e.parseQuery||yue,a=e.stringifyQuery||S4,o=e.history,l=wi(),r=wi(),s=wi(),u=qt(Rl);let c=Rl;ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=R0.bind(null,ne=>""+ne),f=R0.bind(null,tue),h=R0.bind(null,gu);function g(ne,de){let se,Y;return E9(ne)?(se=t.getRecordMatcher(ne),Y=de):Y=ne,t.addRoute(Y,se)}function p(ne){const de=t.getRecordMatcher(ne);de&&t.removeRoute(de)}function v(){return t.getRoutes().map(ne=>ne.record)}function m(ne){return!!t.getRecordMatcher(ne)}function y(ne,de){if(de=nn({},de||u.value),typeof ne=="string"){const le=N0(n,ne,de.path),ce=t.resolve({path:le.path},de),ge=o.createHref(le.fullPath);return nn(le,ce,{params:h(ce.params),hash:gu(le.hash),redirectedFrom:void 0,href:ge})}let se;if(ne.path!=null)se=nn({},ne,{path:N0(n,ne.path,de.path).path});else{const le=nn({},ne.params);for(const ce in le)le[ce]==null&&delete le[ce];se=nn({},ne,{params:f(le)}),de.params=f(de.params)}const Y=t.resolve(se,de),X=ne.hash||"";Y.params=d(h(Y.params));const H=oue(a,nn({},ne,{hash:Zie(X),path:Y.path})),Z=o.createHref(H);return nn({fullPath:H,hash:X,query:a===S4?bue(ne.query):ne.query||{}},Y,{redirectedFrom:void 0,href:Z})}function b(ne){return typeof ne=="string"?N0(n,ne,u.value.path):nn({},ne)}function w(ne,de){if(c!==ne)return Us(Tn.NAVIGATION_CANCELLED,{from:de,to:ne})}function C(ne){return T(ne)}function S(ne){return C(nn(b(ne),{replace:!0}))}function k(ne,de){const se=ne.matched[ne.matched.length-1];if(se&&se.redirect){const{redirect:Y}=se;let X=typeof Y=="function"?Y(ne,de):Y;return typeof X=="string"&&(X=X.includes("?")||X.includes("#")?X=b(X):{path:X},X.params={}),nn({query:ne.query,hash:ne.hash,params:X.path!=null?{}:ne.params},X)}}function T(ne,de){const se=c=y(ne),Y=u.value,X=ne.state,H=ne.force,Z=ne.replace===!0,le=k(se,Y);if(le)return T(nn(b(le),{state:typeof le=="object"?nn({},X,le.state):X,force:H,replace:Z}),de||se);const ce=se;ce.redirectedFrom=de;let ge;return!H&&lue(a,Y,se)&&(ge=Us(Tn.NAVIGATION_DUPLICATED,{to:ce,from:Y}),K(Y,Y,!0,!1)),(ge?Promise.resolve(ge):O(ce,Y)).catch(me=>Zo(me)?Zo(me,Tn.NAVIGATION_GUARD_REDIRECT)?me:W(me):P(me,ce,Y)).then(me=>{if(me){if(Zo(me,Tn.NAVIGATION_GUARD_REDIRECT))return T(nn({replace:Z},b(me.to),{state:typeof me.to=="object"?nn({},X,me.to.state):X,force:H}),de||ce)}else me=L(ce,Y,!0,Z,X);return I(ce,Y,me),me})}function M(ne,de){const se=w(ne,de);return se?Promise.reject(se):Promise.resolve()}function A(ne){const de=ee.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(ne):ne()}function O(ne,de){let se;const[Y,X,H]=Cue(ne,de);se=I0(Y.reverse(),"beforeRouteLeave",ne,de);for(const le of Y)le.leaveGuards.forEach(ce=>{se.push(Bl(ce,ne,de))});const Z=M.bind(null,ne,de);return se.push(Z),ue(se).then(()=>{se=[];for(const le of l.list())se.push(Bl(le,ne,de));return se.push(Z),ue(se)}).then(()=>{se=I0(X,"beforeRouteUpdate",ne,de);for(const le of X)le.updateGuards.forEach(ce=>{se.push(Bl(ce,ne,de))});return se.push(Z),ue(se)}).then(()=>{se=[];for(const le of H)if(le.beforeEnter)if(po(le.beforeEnter))for(const ce of le.beforeEnter)se.push(Bl(ce,ne,de));else se.push(Bl(le.beforeEnter,ne,de));return se.push(Z),ue(se)}).then(()=>(ne.matched.forEach(le=>le.enterCallbacks={}),se=I0(H,"beforeRouteEnter",ne,de,A),se.push(Z),ue(se))).then(()=>{se=[];for(const le of r.list())se.push(Bl(le,ne,de));return se.push(Z),ue(se)}).catch(le=>Zo(le,Tn.NAVIGATION_CANCELLED)?le:Promise.reject(le))}function I(ne,de,se){s.list().forEach(Y=>A(()=>Y(ne,de,se)))}function L(ne,de,se,Y,X){const H=w(ne,de);if(H)return H;const Z=de===Rl,le=ds?history.state:{};se&&(Y||Z?o.replace(ne.fullPath,nn({scroll:Z&&le&&le.scroll},X)):o.push(ne.fullPath,X)),u.value=ne,K(ne,de,se,Z),W()}let z;function q(){z||(z=o.listen((ne,de,se)=>{if(!te.listening)return;const Y=y(ne),X=k(Y,te.currentRoute.value);if(X){T(nn(X,{replace:!0,force:!0}),Y).catch(Ki);return}c=Y;const H=u.value;ds&&pue(_4(H.fullPath,se.delta),Of()),O(Y,H).catch(Z=>Zo(Z,Tn.NAVIGATION_ABORTED|Tn.NAVIGATION_CANCELLED)?Z:Zo(Z,Tn.NAVIGATION_GUARD_REDIRECT)?(T(nn(b(Z.to),{force:!0}),Y).then(le=>{Zo(le,Tn.NAVIGATION_ABORTED|Tn.NAVIGATION_DUPLICATED)&&!se.delta&&se.type===ip.pop&&o.go(-1,!1)}).catch(Ki),Promise.reject()):(se.delta&&o.go(-se.delta,!1),P(Z,Y,H))).then(Z=>{Z=Z||L(Y,H,!1),Z&&(se.delta&&!Zo(Z,Tn.NAVIGATION_CANCELLED)?o.go(-se.delta,!1):se.type===ip.pop&&Zo(Z,Tn.NAVIGATION_ABORTED|Tn.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),I(Y,H,Z)}).catch(Ki)}))}let U=wi(),F=wi(),N;function P(ne,de,se){W(ne);const Y=F.list();return Y.length?Y.forEach(X=>X(ne,de,se)):console.error(ne),Promise.reject(ne)}function B(){return N&&u.value!==Rl?Promise.resolve():new Promise((ne,de)=>{U.add([ne,de])})}function W(ne){return N||(N=!ne,q(),U.list().forEach(([de,se])=>ne?se(ne):de()),U.reset()),ne}function K(ne,de,se,Y){const{scrollBehavior:X}=e;if(!ds||!X)return Promise.resolve();const H=!se&&hue(_4(ne.fullPath,0))||(Y||!se)&&history.state&&history.state.scroll||null;return Ie().then(()=>X(ne,de,H)).then(Z=>Z&&fue(Z)).catch(Z=>P(Z,ne,de))}const j=ne=>o.go(ne);let G;const ee=new Set,te={currentRoute:u,listening:!0,addRoute:g,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:v,resolve:y,options:e,push:C,replace:S,go:j,back:()=>j(-1),forward:()=>j(1),beforeEach:l.add,beforeResolve:r.add,afterEach:s.add,onError:F.add,isReady:B,install(ne){ne.component("RouterLink",Fue),ne.component("RouterView",que),ne.config.globalProperties.$router=te,Object.defineProperty(ne.config.globalProperties,"$route",{enumerable:!0,get:()=>i(u)}),ds&&!G&&u.value===Rl&&(G=!0,C(o.location).catch(Y=>{}));const de={};for(const Y in Rl)Object.defineProperty(de,Y,{get:()=>u.value[Y],enumerable:!0});ne.provide($f,te),ne.provide(Rv,Fd(de)),ne.provide(cp,u);const se=ne.unmount;ee.add(ne),ne.unmount=function(){ee.delete(ne),ee.size<1&&(c=Rl,z&&z(),z=null,u.value=Rl,G=!1,N=!1),se()}}};function ue(ne){return ne.reduce((de,se)=>de.then(()=>A(se)),Promise.resolve())}return te}function Ide(){return Ne($f)}function Lde(e){return Ne(Rv)}function A9(e,t){return function(){return e.apply(t,arguments)}}const{toString:Yue}=Object.prototype,{getPrototypeOf:Af}=Object,{iterator:Rf,toStringTag:R9}=Symbol,Nf=(e=>t=>{const n=Yue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),_o=e=>(e=e.toLowerCase(),t=>Nf(t)===e),Pf=e=>t=>typeof t===e,{isArray:ri}=Array,Ys=Pf("undefined");function Yu(e){return e!==null&&!Ys(e)&&e.constructor!==null&&!Ys(e.constructor)&&Ea(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const N9=_o("ArrayBuffer");function Gue(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&N9(e.buffer),t}const Xue=Pf("string"),Ea=Pf("function"),P9=Pf("number"),Gu=e=>e!==null&&typeof e=="object",Jue=e=>e===!0||e===!1,qc=e=>{if(Nf(e)!=="object")return!1;const t=Af(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(R9 in e)&&!(Rf in e)},Zue=e=>{if(!Gu(e)||Yu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Que=_o("Date"),ece=_o("File"),tce=e=>!!(e&&typeof e.uri<"u"),nce=e=>e&&typeof e.getParts<"u",ace=_o("Blob"),oce=_o("FileList"),lce=e=>Gu(e)&&Ea(e.pipe);function rce(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const I4=rce(),L4=typeof I4.FormData<"u"?I4.FormData:void 0,sce=e=>{if(!e)return!1;if(L4&&e instanceof L4)return!0;const t=Af(e);if(!t||t===Object.prototype||!Ea(e.append))return!1;const n=Nf(e);return n==="formdata"||n==="object"&&Ea(e.toString)&&e.toString()==="[object FormData]"},ice=_o("URLSearchParams"),[uce,cce,dce,fce]=["ReadableStream","Request","Response","Headers"].map(_o),pce=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),ri(e))for(a=0,o=e.length;a0;)if(o=n[a],t===o.toLowerCase())return o;return null}const xr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,L9=e=>!Ys(e)&&e!==xr;function dp(){const{caseless:e,skipUndefined:t}=L9(this)&&this||{},n={},a=(o,l)=>{if(l==="__proto__"||l==="constructor"||l==="prototype")return;const r=e&&I9(n,l)||l;qc(n[r])&&qc(o)?n[r]=dp(n[r],o):qc(o)?n[r]=dp({},o):ri(o)?n[r]=o.slice():(!t||!Ys(o))&&(n[r]=o)};for(let o=0,l=arguments.length;o(Xu(t,(o,l)=>{n&&Ea(o)?Object.defineProperty(e,l,{value:A9(o,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,l,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:a}),e),vce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),mce=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},gce=(e,t,n,a)=>{let o,l,r;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),l=o.length;l-- >0;)r=o[l],(!a||a(r,e,t))&&!s[r]&&(t[r]=e[r],s[r]=!0);e=n!==!1&&Af(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},yce=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},bce=e=>{if(!e)return null;if(ri(e))return e;let t=e.length;if(!P9(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},wce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Af(Uint8Array)),Cce=(e,t)=>{const a=(e&&e[Rf]).call(e);let o;for(;(o=a.next())&&!o.done;){const l=o.value;t.call(e,l[0],l[1])}},_ce=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},Sce=_o("HTMLFormElement"),xce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),V4=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kce=_o("RegExp"),V9=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};Xu(n,(o,l)=>{let r;(r=t(o,l,e))!==!1&&(a[l]=r||o)}),Object.defineProperties(e,a)},Ece=e=>{V9(e,(t,n)=>{if(Ea(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(Ea(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Tce=(e,t)=>{const n={},a=o=>{o.forEach(l=>{n[l]=!0})};return ri(e)?a(e):a(String(e).split(t)),n},Mce=()=>{},Oce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function $ce(e){return!!(e&&Ea(e.append)&&e[R9]==="FormData"&&e[Rf])}const Ace=e=>{const t=new Array(10),n=(a,o)=>{if(Gu(a)){if(t.indexOf(a)>=0)return;if(Yu(a))return a;if(!("toJSON"in a)){t[o]=a;const l=ri(a)?[]:{};return Xu(a,(r,s)=>{const u=n(r,o+1);!Ys(u)&&(l[s]=u)}),t[o]=void 0,l}}return a};return n(e,0)},Rce=_o("AsyncFunction"),Nce=e=>e&&(Gu(e)||Ea(e))&&Ea(e.then)&&Ea(e.catch),B9=((e,t)=>e?setImmediate:t?((n,a)=>(xr.addEventListener("message",({source:o,data:l})=>{o===xr&&l===n&&a.length&&a.shift()()},!1),o=>{a.push(o),xr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ea(xr.postMessage)),Pce=typeof queueMicrotask<"u"?queueMicrotask.bind(xr):typeof process<"u"&&process.nextTick||B9,Ice=e=>e!=null&&Ea(e[Rf]),Me={isArray:ri,isArrayBuffer:N9,isBuffer:Yu,isFormData:sce,isArrayBufferView:Gue,isString:Xue,isNumber:P9,isBoolean:Jue,isObject:Gu,isPlainObject:qc,isEmptyObject:Zue,isReadableStream:uce,isRequest:cce,isResponse:dce,isHeaders:fce,isUndefined:Ys,isDate:Que,isFile:ece,isReactNativeBlob:tce,isReactNative:nce,isBlob:ace,isRegExp:kce,isFunction:Ea,isStream:lce,isURLSearchParams:ice,isTypedArray:wce,isFileList:oce,forEach:Xu,merge:dp,extend:hce,trim:pce,stripBOM:vce,inherits:mce,toFlatObject:gce,kindOf:Nf,kindOfTest:_o,endsWith:yce,toArray:bce,forEachEntry:Cce,matchAll:_ce,isHTMLForm:Sce,hasOwnProperty:V4,hasOwnProp:V4,reduceDescriptors:V9,freezeMethods:Ece,toObjectSet:Tce,toCamelCase:xce,noop:Mce,toFiniteNumber:Oce,findKey:I9,global:xr,isContextDefined:L9,isSpecCompliantForm:$ce,toJSONObject:Ace,isAsyncFn:Rce,isThenable:Nce,setImmediate:B9,asap:Pce,isIterable:Ice};let Ot=class z9 extends Error{static from(t,n,a,o,l,r){const s=new z9(t.message,n||t.code,a,o,l);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),r&&Object.assign(s,r),s}constructor(t,n,a,o,l){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),a&&(this.config=a),o&&(this.request=o),l&&(this.response=l,this.status=l.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Me.toJSONObject(this.config),code:this.code,status:this.status}}};Ot.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Ot.ERR_BAD_OPTION="ERR_BAD_OPTION";Ot.ECONNABORTED="ECONNABORTED";Ot.ETIMEDOUT="ETIMEDOUT";Ot.ERR_NETWORK="ERR_NETWORK";Ot.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Ot.ERR_DEPRECATED="ERR_DEPRECATED";Ot.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Ot.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Ot.ERR_CANCELED="ERR_CANCELED";Ot.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Ot.ERR_INVALID_URL="ERR_INVALID_URL";Ot.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const Lce=null;function fp(e){return Me.isPlainObject(e)||Me.isArray(e)}function D9(e){return Me.endsWith(e,"[]")?e.slice(0,-2):e}function L0(e,t,n){return e?e.concat(t).map(function(o,l){return o=D9(o),!n&&l?"["+o+"]":o}).join(n?".":""):t}function Vce(e){return Me.isArray(e)&&!e.some(fp)}const Bce=Me.toFlatObject(Me,{},null,function(t){return/^is[A-Z]/.test(t)});function If(e,t,n){if(!Me.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Me.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,y){return!Me.isUndefined(y[m])});const a=n.metaTokens,o=n.visitor||f,l=n.dots,r=n.indexes,s=n.Blob||typeof Blob<"u"&&Blob,u=n.maxDepth===void 0?100:n.maxDepth,c=s&&Me.isSpecCompliantForm(t);if(!Me.isFunction(o))throw new TypeError("visitor must be a function");function d(v){if(v===null)return"";if(Me.isDate(v))return v.toISOString();if(Me.isBoolean(v))return v.toString();if(!c&&Me.isBlob(v))throw new Ot("Blob is not supported. Use a Buffer instead.");return Me.isArrayBuffer(v)||Me.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,m,y){let b=v;if(Me.isReactNative(t)&&Me.isReactNativeBlob(v))return t.append(L0(y,m,l),d(v)),!1;if(v&&!y&&typeof v=="object"){if(Me.endsWith(m,"{}"))m=a?m:m.slice(0,-2),v=JSON.stringify(v);else if(Me.isArray(v)&&Vce(v)||(Me.isFileList(v)||Me.endsWith(m,"[]"))&&(b=Me.toArray(v)))return m=D9(m),b.forEach(function(C,S){!(Me.isUndefined(C)||C===null)&&t.append(r===!0?L0([m],S,l):r===null?m:m+"[]",d(C))}),!1}return fp(v)?!0:(t.append(L0(y,m,l),d(v)),!1)}const h=[],g=Object.assign(Bce,{defaultVisitor:f,convertValue:d,isVisitable:fp});function p(v,m,y=0){if(!Me.isUndefined(v)){if(y>u)throw new Ot("Object is too deeply nested ("+y+" levels). Max depth: "+u,Ot.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+m.join("."));h.push(v),Me.forEach(v,function(w,C){(!(Me.isUndefined(w)||w===null)&&o.call(t,w,Me.isString(C)?C.trim():C,m,g))===!0&&p(w,m?m.concat(C):[C],y+1)}),h.pop()}}if(!Me.isObject(e))throw new TypeError("data must be an object");return p(e),t}function B4(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(a){return t[a]})}function Nv(e,t){this._pairs=[],e&&If(e,this,t)}const H9=Nv.prototype;H9.append=function(t,n){this._pairs.push([t,n])};H9.toString=function(t){const n=t?function(a){return t.call(this,a,B4)}:B4;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function F9(e,t,n){if(!t)return e;const a=n&&n.encode||zce,o=Me.isFunction(n)?{serialize:n}:n,l=o&&o.serialize;let r;if(l?r=l(t,o):r=Me.isURLSearchParams(t)?t.toString():new Nv(t,o).toString(a),r){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}class z4{constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Me.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Pv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Dce=typeof URLSearchParams<"u"?URLSearchParams:Nv,Hce=typeof FormData<"u"?FormData:null,Fce=typeof Blob<"u"?Blob:null,Kce={isBrowser:!0,classes:{URLSearchParams:Dce,FormData:Hce,Blob:Fce},protocols:["http","https","file","blob","url","data"]},Iv=typeof window<"u"&&typeof document<"u",pp=typeof navigator=="object"&&navigator||void 0,Wce=Iv&&(!pp||["ReactNative","NativeScript","NS"].indexOf(pp.product)<0),jce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",qce=Iv&&window.location.href||"http://localhost",Uce=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Iv,hasStandardBrowserEnv:Wce,hasStandardBrowserWebWorkerEnv:jce,navigator:pp,origin:qce},Symbol.toStringTag,{value:"Module"})),ra={...Uce,...Kce};function Yce(e,t){return If(e,new ra.classes.URLSearchParams,{visitor:function(n,a,o,l){return ra.isNode&&Me.isBuffer(n)?(this.append(a,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)},...t})}function Gce(e){return Me.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Xce(e){const t={},n=Object.keys(e);let a;const o=n.length;let l;for(a=0;a=n.length;return r=!r&&Me.isArray(o)?o.length:r,u?(Me.hasOwnProp(o,r)?o[r]=Me.isArray(o[r])?o[r].concat(a):[o[r],a]:o[r]=a,!s):((!o[r]||!Me.isObject(o[r]))&&(o[r]=[]),t(n,a,o[r],l)&&Me.isArray(o[r])&&(o[r]=Xce(o[r])),!s)}if(Me.isFormData(e)&&Me.isFunction(e.entries)){const n={};return Me.forEachEntry(e,(a,o)=>{t(Gce(a),o,n,0)}),n}return null}const rs=(e,t)=>e!=null&&Me.hasOwnProp(e,t)?e[t]:void 0;function Jce(e,t,n){if(Me.isString(e))try{return(t||JSON.parse)(e),Me.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const Ju={transitional:Pv,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,l=Me.isObject(t);if(l&&Me.isHTMLForm(t)&&(t=new FormData(t)),Me.isFormData(t))return o?JSON.stringify(K9(t)):t;if(Me.isArrayBuffer(t)||Me.isBuffer(t)||Me.isStream(t)||Me.isFile(t)||Me.isBlob(t)||Me.isReadableStream(t))return t;if(Me.isArrayBufferView(t))return t.buffer;if(Me.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){const u=rs(this,"formSerializer");if(a.indexOf("application/x-www-form-urlencoded")>-1)return Yce(t,u).toString();if((s=Me.isFileList(t))||a.indexOf("multipart/form-data")>-1){const c=rs(this,"env"),d=c&&c.FormData;return If(s?{"files[]":t}:t,d&&new d,u)}}return l||o?(n.setContentType("application/json",!1),Jce(t)):t}],transformResponse:[function(t){const n=rs(this,"transitional")||Ju.transitional,a=n&&n.forcedJSONParsing,o=rs(this,"responseType"),l=o==="json";if(Me.isResponse(t)||Me.isReadableStream(t))return t;if(t&&Me.isString(t)&&(a&&!o||l)){const s=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,rs(this,"parseReviver"))}catch(u){if(s)throw u.name==="SyntaxError"?Ot.from(u,Ot.ERR_BAD_RESPONSE,this,null,rs(this,"response")):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ra.classes.FormData,Blob:ra.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Me.forEach(["delete","get","head","post","put","patch"],e=>{Ju.headers[e]={}});const Zce=Me.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Qce=e=>{const t={};let n,a,o;return e&&e.split(` +`).forEach(function(r){o=r.indexOf(":"),n=r.substring(0,o).trim().toLowerCase(),a=r.substring(o+1).trim(),!(!n||t[n]&&Zce[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},D4=Symbol("internals"),ede=/[^\x09\x20-\x7E\x80-\xFF]/g;function tde(e){let t=0,n=e.length;for(;tt;){const a=e.charCodeAt(n-1);if(a!==9&&a!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}function Ci(e){return e&&String(e).trim().toLowerCase()}function nde(e){return tde(e.replace(ede,""))}function Uc(e){return e===!1||e==null?e:Me.isArray(e)?e.map(Uc):nde(String(e))}function ade(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const ode=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function V0(e,t,n,a,o){if(Me.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!Me.isString(t)){if(Me.isString(a))return t.indexOf(a)!==-1;if(Me.isRegExp(a))return a.test(t)}}function lde(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function rde(e,t){const n=Me.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,l,r){return this[a].call(this,t,o,l,r)},configurable:!0})})}let Ta=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function l(s,u,c){const d=Ci(u);if(!d)throw new Error("header name must be a non-empty string");const f=Me.findKey(o,d);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||u]=Uc(s))}const r=(s,u)=>Me.forEach(s,(c,d)=>l(c,d,u));if(Me.isPlainObject(t)||t instanceof this.constructor)r(t,n);else if(Me.isString(t)&&(t=t.trim())&&!ode(t))r(Qce(t),n);else if(Me.isObject(t)&&Me.isIterable(t)){let s={},u,c;for(const d of t){if(!Me.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[c=d[0]]=(u=s[c])?Me.isArray(u)?[...u,d[1]]:[u,d[1]]:d[1]}r(s,n)}else t!=null&&l(n,t,a);return this}get(t,n){if(t=Ci(t),t){const a=Me.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return ade(o);if(Me.isFunction(n))return n.call(this,o,a);if(Me.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ci(t),t){const a=Me.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||V0(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function l(r){if(r=Ci(r),r){const s=Me.findKey(a,r);s&&(!n||V0(a,a[s],s,n))&&(delete a[s],o=!0)}}return Me.isArray(t)?t.forEach(l):l(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const l=n[a];(!t||V0(this,this[l],l,t,!0))&&(delete this[l],o=!0)}return o}normalize(t){const n=this,a={};return Me.forEach(this,(o,l)=>{const r=Me.findKey(a,l);if(r){n[r]=Uc(o),delete n[l];return}const s=t?lde(l):String(l).trim();s!==l&&delete n[l],n[s]=Uc(o),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Me.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&Me.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[D4]=this[D4]={accessors:{}}).accessors,o=this.prototype;function l(r){const s=Ci(r);a[s]||(rde(o,r),a[s]=!0)}return Me.isArray(t)?t.forEach(l):l(t),this}};Ta.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Me.reduceDescriptors(Ta.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});Me.freezeMethods(Ta);function B0(e,t){const n=this||Ju,a=t||n,o=Ta.from(a.headers);let l=a.data;return Me.forEach(e,function(s){l=s.call(n,l,o.normalize(),t?t.status:void 0)}),o.normalize(),l}function W9(e){return!!(e&&e.__CANCEL__)}let Zu=class extends Ot{constructor(t,n,a){super(t??"canceled",Ot.ERR_CANCELED,n,a),this.name="CanceledError",this.__CANCEL__=!0}};function j9(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new Ot("Request failed with status code "+n.status,[Ot.ERR_BAD_REQUEST,Ot.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function sde(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function ide(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,l=0,r;return t=t!==void 0?t:1e3,function(u){const c=Date.now(),d=a[l];r||(r=c),n[o]=u,a[o]=c;let f=l,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===l&&(l=(l+1)%e),c-r{n=d,o=null,l&&(clearTimeout(l),l=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=a?r(c,d):(o=c,l||(l=setTimeout(()=>{l=null,r(o)},a-f)))},()=>o&&r(o)]}const Nd=(e,t,n=3)=>{let a=0;const o=ide(50,250);return ude(l=>{const r=l.loaded,s=l.lengthComputable?l.total:void 0,u=s!=null?Math.min(r,s):r,c=Math.max(0,u-a),d=o(c);a=Math.max(a,u);const f={loaded:u,total:s,progress:s?u/s:void 0,bytes:c,rate:d||void 0,estimated:d&&s?(s-u)/d:void 0,event:l,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},H4=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},F4=e=>(...t)=>Me.asap(()=>e(...t)),cde=ra.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ra.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ra.origin),ra.navigator&&/(msie|trident)/i.test(ra.navigator.userAgent)):()=>!0,dde=ra.hasStandardBrowserEnv?{write(e,t,n,a,o,l,r){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Me.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Me.isString(a)&&s.push(`path=${a}`),Me.isString(o)&&s.push(`domain=${o}`),l===!0&&s.push("secure"),Me.isString(r)&&s.push(`SameSite=${r}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function fde(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function pde(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function q9(e,t,n){let a=!fde(t);return e&&(a||n===!1)?pde(e,t):t}const K4=e=>e instanceof Ta?{...e}:e;function Wr(e,t){t=t||{};const n={};function a(c,d,f,h){return Me.isPlainObject(c)&&Me.isPlainObject(d)?Me.merge.call({caseless:h},c,d):Me.isPlainObject(d)?Me.merge({},d):Me.isArray(d)?d.slice():d}function o(c,d,f,h){if(Me.isUndefined(d)){if(!Me.isUndefined(c))return a(void 0,c,f,h)}else return a(c,d,f,h)}function l(c,d){if(!Me.isUndefined(d))return a(void 0,d)}function r(c,d){if(Me.isUndefined(d)){if(!Me.isUndefined(c))return a(void 0,c)}else return a(void 0,d)}function s(c,d,f){if(Me.hasOwnProp(t,f))return a(c,d);if(Me.hasOwnProp(e,f))return a(void 0,c)}const u={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:s,headers:(c,d,f)=>o(K4(c),K4(d),f,!0)};return Me.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=Me.hasOwnProp(u,d)?u[d]:o,h=Me.hasOwnProp(e,d)?e[d]:void 0,g=Me.hasOwnProp(t,d)?t[d]:void 0,p=f(h,g,d);Me.isUndefined(p)&&f!==s||(n[d]=p)}),n}const U9=e=>{const t=Wr({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:l,headers:r,auth:s}=t;if(t.headers=r=Ta.from(r),t.url=F9(q9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&r.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Me.isFormData(n)){if(ra.hasStandardBrowserEnv||ra.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if(Me.isFunction(n.getHeaders)){const u=n.getHeaders(),c=["content-type","content-length"];Object.entries(u).forEach(([d,f])=>{c.includes(d.toLowerCase())&&r.set(d,f)})}}if(ra.hasStandardBrowserEnv&&(Me.isFunction(a)&&(a=a(t)),a===!0||a==null&&cde(t.url))){const c=o&&l&&dde.read(l);c&&r.set(o,c)}return t},hde=typeof XMLHttpRequest<"u",vde=hde&&function(e){return new Promise(function(n,a){const o=U9(e);let l=o.data;const r=Ta.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:c}=o,d,f,h,g,p;function v(){g&&g(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let m=new XMLHttpRequest;m.open(o.method.toUpperCase(),o.url,!0),m.timeout=o.timeout;function y(){if(!m)return;const w=Ta.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:w,config:e,request:m};j9(function(T){n(T),v()},function(T){a(T),v()},S),m=null}"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(y)},m.onabort=function(){m&&(a(new Ot("Request aborted",Ot.ECONNABORTED,e,m)),m=null)},m.onerror=function(C){const S=C&&C.message?C.message:"Network Error",k=new Ot(S,Ot.ERR_NETWORK,e,m);k.event=C||null,a(k),m=null},m.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||Pv;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),a(new Ot(C,S.clarifyTimeoutError?Ot.ETIMEDOUT:Ot.ECONNABORTED,e,m)),m=null},l===void 0&&r.setContentType(null),"setRequestHeader"in m&&Me.forEach(r.toJSON(),function(C,S){m.setRequestHeader(S,C)}),Me.isUndefined(o.withCredentials)||(m.withCredentials=!!o.withCredentials),s&&s!=="json"&&(m.responseType=o.responseType),c&&([h,p]=Nd(c,!0),m.addEventListener("progress",h)),u&&m.upload&&([f,g]=Nd(u),m.upload.addEventListener("progress",f),m.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(d=w=>{m&&(a(!w||w.type?new Zu(null,e,m):w),m.abort(),m=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const b=sde(o.url);if(b&&ra.protocols.indexOf(b)===-1){a(new Ot("Unsupported protocol "+b+":",Ot.ERR_BAD_REQUEST,e));return}m.send(l||null)})},mde=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const l=function(c){if(!o){o=!0,s();const d=c instanceof Error?c:this.reason;a.abort(d instanceof Ot?d:new Zu(d instanceof Error?d.message:d))}};let r=t&&setTimeout(()=>{r=null,l(new Ot(`timeout of ${t}ms exceeded`,Ot.ETIMEDOUT))},t);const s=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(l):c.removeEventListener("abort",l)}),e=null)};e.forEach(c=>c.addEventListener("abort",l));const{signal:u}=a;return u.unsubscribe=()=>Me.asap(s),u}},gde=function*(e,t){let n=e.byteLength;if(n{const o=yde(e,t);let l=0,r,s=u=>{r||(r=!0,a&&a(u))};return new ReadableStream({async pull(u){try{const{done:c,value:d}=await o.next();if(c){s(),u.close();return}let f=d.byteLength;if(n){let h=l+=f;n(h)}u.enqueue(new Uint8Array(d))}catch(c){throw s(c),c}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},j4=64*1024,{isFunction:xc}=Me,wde=(({Request:e,Response:t})=>({Request:e,Response:t}))(Me.global),{ReadableStream:q4,TextEncoder:U4}=Me.global,Y4=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cde=e=>{e=Me.merge.call({skipUndefined:!0},wde,e);const{fetch:t,Request:n,Response:a}=e,o=t?xc(t):typeof fetch=="function",l=xc(n),r=xc(a);if(!o)return!1;const s=o&&xc(q4),u=o&&(typeof U4=="function"?(p=>v=>p.encode(v))(new U4):async p=>new Uint8Array(await new n(p).arrayBuffer())),c=l&&s&&Y4(()=>{let p=!1;const v=new n(ra.origin,{body:new q4,method:"POST",get duplex(){return p=!0,"half"}}),m=v.headers.has("Content-Type");return v.body!=null&&v.body.cancel(),p&&!m}),d=r&&s&&Y4(()=>Me.isReadableStream(new a("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(v,m)=>{let y=v&&v[p];if(y)return y.call(v);throw new Ot(`Response type '${p}' is not supported`,Ot.ERR_NOT_SUPPORT,m)})});const h=async p=>{if(p==null)return 0;if(Me.isBlob(p))return p.size;if(Me.isSpecCompliantForm(p))return(await new n(ra.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(Me.isArrayBufferView(p)||Me.isArrayBuffer(p))return p.byteLength;if(Me.isURLSearchParams(p)&&(p=p+""),Me.isString(p))return(await u(p)).byteLength},g=async(p,v)=>{const m=Me.toFiniteNumber(p.getContentLength());return m??h(v)};return async p=>{let{url:v,method:m,data:y,signal:b,cancelToken:w,timeout:C,onDownloadProgress:S,onUploadProgress:k,responseType:T,headers:M,withCredentials:A="same-origin",fetchOptions:O}=U9(p),I=t||fetch;T=T?(T+"").toLowerCase():"text";let L=mde([b,w&&w.toAbortSignal()],C),z=null;const q=L&&L.unsubscribe&&(()=>{L.unsubscribe()});let U;try{if(k&&c&&m!=="get"&&m!=="head"&&(U=await g(M,y))!==0){let K=new n(v,{method:"POST",body:y,duplex:"half"}),j;if(Me.isFormData(y)&&(j=K.headers.get("content-type"))&&M.setContentType(j),K.body){const[G,ee]=H4(U,Nd(F4(k)));y=W4(K.body,j4,G,ee)}}Me.isString(A)||(A=A?"include":"omit");const F=l&&"credentials"in n.prototype;if(Me.isFormData(y)){const K=M.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&M.delete("content-type")}const N={...O,signal:L,method:m.toUpperCase(),headers:M.normalize().toJSON(),body:y,duplex:"half",credentials:F?A:void 0};z=l&&new n(v,N);let P=await(l?I(z,O):I(v,N));const B=d&&(T==="stream"||T==="response");if(d&&(S||B&&q)){const K={};["status","statusText","headers"].forEach(te=>{K[te]=P[te]});const j=Me.toFiniteNumber(P.headers.get("content-length")),[G,ee]=S&&H4(j,Nd(F4(S),!0))||[];P=new a(W4(P.body,j4,G,()=>{ee&&ee(),q&&q()}),K)}T=T||"text";let W=await f[Me.findKey(f,T)||"text"](P,p);return!B&&q&&q(),await new Promise((K,j)=>{j9(K,j,{data:W,headers:Ta.from(P.headers),status:P.status,statusText:P.statusText,config:p,request:z})})}catch(F){throw q&&q(),F&&F.name==="TypeError"&&/Load failed|fetch/i.test(F.message)?Object.assign(new Ot("Network Error",Ot.ERR_NETWORK,p,z,F&&F.response),{cause:F.cause||F}):Ot.from(F,F&&F.code,p,z,F&&F.response)}}},_de=new Map,Y9=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,l=[a,o,n];let r=l.length,s=r,u,c,d=_de;for(;s--;)u=l[s],c=d.get(u),c===void 0&&d.set(u,c=s?new Map:Cde(t)),d=c;return c};Y9();const Lv={http:Lce,xhr:vde,fetch:{get:Y9}};Me.forEach(Lv,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const G4=e=>`- ${e}`,Sde=e=>Me.isFunction(e)||e===null||e===!1;function xde(e,t){e=Me.isArray(e)?e:[e];const{length:n}=e;let a,o;const l={};for(let r=0;r`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=n?r.length>1?`since : +`+r.map(G4).join(` +`):" "+G4(r[0]):"as no adapter specified";throw new Ot("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const G9={getAdapter:xde,adapters:Lv};function z0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Zu(null,e)}function X4(e){return z0(e),e.headers=Ta.from(e.headers),e.data=B0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),G9.getAdapter(e.adapter||Ju.adapter,e)(e).then(function(a){return z0(e),a.data=B0.call(e,e.transformResponse,a),a.headers=Ta.from(a.headers),a},function(a){return W9(a)||(z0(e),a&&a.response&&(a.response.data=B0.call(e,e.transformResponse,a.response),a.response.headers=Ta.from(a.response.headers))),Promise.reject(a)})}const X9="1.15.1",Lf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Lf[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const J4={};Lf.transitional=function(t,n,a){function o(l,r){return"[Axios v"+X9+"] Transitional option '"+l+"'"+r+(a?". "+a:"")}return(l,r,s)=>{if(t===!1)throw new Ot(o(r," has been removed"+(n?" in "+n:"")),Ot.ERR_DEPRECATED);return n&&!J4[r]&&(J4[r]=!0,console.warn(o(r," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,r,s):!0}};Lf.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function kde(e,t,n){if(typeof e!="object")throw new Ot("options must be an object",Ot.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const l=a[o],r=t[l];if(r){const s=e[l],u=s===void 0||r(s,l,e);if(u!==!0)throw new Ot("option "+l+" must be "+u,Ot.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Ot("Unknown option "+l,Ot.ERR_BAD_OPTION)}}const Yc={assertOptions:kde,validators:Lf},Ha=Yc.validators;let $r=class{constructor(t){this.defaults=t||{},this.interceptors={request:new z4,response:new z4}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const l=(()=>{if(!o.stack)return"";const r=o.stack.indexOf(` +`);return r===-1?"":o.stack.slice(r+1)})();try{if(!a.stack)a.stack=l;else if(l){const r=l.indexOf(` +`),s=r===-1?-1:l.indexOf(` +`,r+1),u=s===-1?"":l.slice(s+1);String(a.stack).endsWith(u)||(a.stack+=` +`+l)}}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Wr(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:l}=n;a!==void 0&&Yc.assertOptions(a,{silentJSONParsing:Ha.transitional(Ha.boolean),forcedJSONParsing:Ha.transitional(Ha.boolean),clarifyTimeoutError:Ha.transitional(Ha.boolean),legacyInterceptorReqResOrdering:Ha.transitional(Ha.boolean)},!1),o!=null&&(Me.isFunction(o)?n.paramsSerializer={serialize:o}:Yc.assertOptions(o,{encode:Ha.function,serialize:Ha.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Yc.assertOptions(n,{baseUrl:Ha.spelling("baseURL"),withXsrfToken:Ha.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let r=l&&Me.merge(l.common,l[n.method]);l&&Me.forEach(["delete","get","head","post","put","patch","common"],p=>{delete l[p]}),n.headers=Ta.concat(r,l);const s=[];let u=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;u=u&&v.synchronous;const m=n.transitional||Pv;m&&m.legacyInterceptorReqResOrdering?s.unshift(v.fulfilled,v.rejected):s.push(v.fulfilled,v.rejected)});const c=[];this.interceptors.response.forEach(function(v){c.push(v.fulfilled,v.rejected)});let d,f=0,h;if(!u){const p=[X4.bind(this),void 0];for(p.unshift(...s),p.push(...c),h=p.length,d=Promise.resolve(n);f{if(!a._listeners)return;let l=a._listeners.length;for(;l-- >0;)a._listeners[l](o);a._listeners=null}),this.promise.then=o=>{let l;const r=new Promise(s=>{a.subscribe(s),l=s}).then(o);return r.cancel=function(){a.unsubscribe(l)},r},t(function(l,r,s){a.reason||(a.reason=new Zu(l,r,s),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new J9(function(o){t=o}),cancel:t}}};function Tde(e){return function(n){return e.apply(null,n)}}function Mde(e){return Me.isObject(e)&&e.isAxiosError===!0}const hp={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(hp).forEach(([e,t])=>{hp[t]=e});function Z9(e){const t=new $r(e),n=A9($r.prototype.request,t);return Me.extend(n,$r.prototype,t,{allOwnKeys:!0}),Me.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Z9(Wr(e,o))},n}const Rn=Z9(Ju);Rn.Axios=$r;Rn.CanceledError=Zu;Rn.CancelToken=Ede;Rn.isCancel=W9;Rn.VERSION=X9;Rn.toFormData=If;Rn.AxiosError=Ot;Rn.Cancel=Rn.CanceledError;Rn.all=function(t){return Promise.all(t)};Rn.spread=Tde;Rn.isAxiosError=Mde;Rn.mergeConfig=Wr;Rn.AxiosHeaders=Ta;Rn.formToJSON=e=>K9(Me.isHTMLForm(e)?new FormData(e):e);Rn.getAdapter=G9.getAdapter;Rn.HttpStatusCode=hp;Rn.default=Rn;const{Axios:Dde,AxiosError:Hde,CanceledError:Fde,isCancel:Kde,CancelToken:Wde,VERSION:jde,all:qde,Cancel:Ude,isAxiosError:Yde,spread:Gde,toFormData:Xde,AxiosHeaders:Jde,HttpStatusCode:Zde,formToJSON:Qde,getAdapter:efe,mergeConfig:tfe}=Rn,Jt=Rn.create({baseURL:"/api",timeout:3e4,withCredentials:!0});Jt.interceptors.response.use(e=>e,e=>{var n,a,o;const t=((a=(n=e.response)==null?void 0:n.data)==null?void 0:a.error)||e.message||"请求失败";return((o=e.response)==null?void 0:o.status)===401?(Rde(),window.location.href="/login",Promise.reject(e)):(g9.error(t),Promise.reject(e))});let Ode=1e4;const $de=()=>Jt.get("/auth/me").then(e=>(e.data&&typeof e.data.ui_refresh_interval=="number"&&(Ode=e.data.ui_refresh_interval),e)),nfe=e=>Jt.post("/auth/login",e),afe=()=>Jt.post("/auth/guest"),ofe=()=>Jt.post("/auth/logout"),lfe=e=>Jt.get("/machines",{params:e}),rfe=e=>Jt.get(`/machines/${e}`),sfe=e=>Jt.post("/machines",e),ife=(e,t)=>Jt.put(`/machines/${e}`,t),ufe=e=>Jt.delete(`/machines/${e}`),cfe=(e,t)=>Jt.post(`/machines/${e}/ssh-info`,t),dfe=(e,t)=>Jt.post(`/machines/${e}/sync-ssh`,t),ffe=e=>Jt.get(`/machines/${e}/offline-logs`),pfe=e=>Jt.get(`/machines/${e}/services`),hfe=()=>Jt.get("/services"),vfe=(e,t)=>Jt.post(`/machines/${e}/services`,t),mfe=(e,t)=>Jt.put(`/services/${e}`,t),gfe=e=>Jt.delete(`/services/${e}`),yfe=()=>Jt.get("/relationships"),bfe=e=>Jt.post("/relationships",e),wfe=(e,t)=>Jt.put(`/relationships/${e}`,t),Cfe=e=>Jt.delete(`/relationships/${e}`),_fe=e=>Jt.get("/logs",{params:e}),Sfe=()=>Jt.get("/export",{responseType:"blob"}),xfe=e=>Jt.post("/import",e,{headers:{"Content-Type":"multipart/form-data"}}),kfe=()=>Jt.get("/pve/hosts"),Efe=e=>Jt.post("/pve/hosts",e),Tfe=(e,t)=>Jt.put(`/pve/hosts/${e}`,t),Mfe=e=>Jt.delete(`/pve/hosts/${e}`),Ofe=e=>Jt.get(`/pve/hosts/${e}/status`),$fe=e=>Jt.get(`/pve/hosts/${e}/vms`),Afe=e=>Jt.get(`/machines/${e}/vm-status`),Rfe=e=>Jt.post(`/machines/${e}/vm-start`),Nfe=e=>Jt.post(`/machines/${e}/vm-stop`),Ade=[{path:"/login",name:"Login",component:()=>ir(()=>import("./Login-DsgAjqqn.js"),__vite__mapDeps([0,1,2])),meta:{public:!0,guestOnly:!0}},{path:"/",component:()=>ir(()=>import("./MainLayout-BpAm6i02.js"),__vite__mapDeps([3,1,4])),children:[{path:"",redirect:"/machines"},{path:"machines",name:"MachineList",component:()=>ir(()=>import("./MachineList-MzBh9r6c.js"),__vite__mapDeps([5,1,6])),meta:{public:!0}},{path:"machines/:id",name:"MachineDetail",component:()=>ir(()=>import("./MachineDetail-CV5DfGMb.js"),__vite__mapDeps([7,1,8])),meta:{public:!0}},{path:"topology",name:"Topology",component:()=>ir(()=>import("./Topology-D7ycfmKq.js"),__vite__mapDeps([9,1,10])),meta:{admin:!0}},{path:"logs",name:"Logs",component:()=>ir(()=>import("./Logs-B37lkquY.js"),__vite__mapDeps([11,1,12])),meta:{admin:!0}},{path:"pve-hosts",name:"PVEHosts",component:()=>ir(()=>import("./PVEHosts-DdWF4BUY.js"),__vite__mapDeps([13,1,14])),meta:{admin:!0}}]}],Q9=Uue({history:kue(),routes:Ade});let vp=!1,mr={is_admin:!1};Q9.beforeEach(async(e,t,n)=>{if(!vp){try{const{data:a}=await $de();mr=a}catch{mr={is_admin:!1}}vp=!0}if(e.name==="MachineDetail"&&!mr.is_admin)return n("/machines");if(e.meta.admin&&!mr.is_admin)return n("/login?redirect="+encodeURIComponent(e.fullPath));if(e.meta.guestOnly&&mr.is_admin)return n("/");n()});function Rde(){vp=!1}function Pfe(e){mr=e}function Ife(){return mr}const Vf=M6(zie);for(const[e,t]of Object.entries(yH))Vf.component(e,t);Vf.use(Bie);Vf.use(Q9);Vf.mount("#app");export{My as $,ut as A,Gz as B,dV as C,tD as D,g9 as E,ofe as F,Ife as G,Rde as H,$de as I,Ode as J,Gs as K,lfe as L,kh as M,He as N,Ct as O,xfe as P,kfe as Q,zy as R,We as S,ife as T,sfe as U,Sfe as V,rfe as W,pfe as X,QD as Y,JD as Z,wP as _,E as a,BB as a0,Lde as a1,ffe as a2,yfe as a3,Afe as a4,jo as a5,pD as a6,qB as a7,Xe as a8,_ie as a9,ufe as aa,cfe as ab,dfe as ac,Cfe as ad,mfe as ae,vfe as af,wfe as ag,bfe as ah,Rfe as ai,Nfe as aj,gfe as ak,Pde as al,Ol as am,Ml as an,hfe as ao,Nde as ap,_fe as aq,dt as ar,Ap as as,Ofe as at,Ky as au,io as av,$fe as aw,Mfe as ax,Tfe as ay,Efe as az,Q as b,$ as c,$t as d,i as e,KD as f,rn as g,_t as h,nfe as i,afe as j,mt as k,ML as l,ie as m,re as n,_ as o,R as p,x as q,V as r,Pfe as s,_e as t,Ide as u,sV as v,ae as w,fz as x,Oy as y,MN as z}; diff --git a/web/dist/index.html b/web/dist/index.html index f10be5d..3203862 100644 --- a/web/dist/index.html +++ b/web/dist/index.html @@ -5,7 +5,7 @@ 局域网机器管理后台 - + diff --git a/web/src/views/MachineDetail.vue b/web/src/views/MachineDetail.vue index f25dfd5..5fd77cc 100644 --- a/web/src/views/MachineDetail.vue +++ b/web/src/views/MachineDetail.vue @@ -21,11 +21,11 @@
- - {{ vmStatusInfo.status === 'running' ? '🟢 VM运行中' : vmStatusInfo.status === 'stopped' ? '🔴 VM已停止' : '⏳ VM检测中' }} + + {{ vmStatusInfo._error ? 'VM检测失败' : vmStatusInfo.status === 'running' ? 'VM运行中' : vmStatusInfo.status === 'stopped' ? 'VM已停止' : 'VM检测中' }} - 启动 - 关闭 + 启动 + 关闭 编辑 删除
@@ -502,7 +502,7 @@ async function loadVMStatus() { const res = await fetchVMStatus(machineId) vmStatusInfo.value = res.data } catch (e) { - vmStatusInfo.value = {} + vmStatusInfo.value = { _error: true } } } diff --git a/web/src/views/PVEHosts.vue b/web/src/views/PVEHosts.vue index bd2eea1..23140ef 100644 --- a/web/src/views/PVEHosts.vue +++ b/web/src/views/PVEHosts.vue @@ -71,7 +71,8 @@ - + +
正在获取虚拟机列表... @@ -104,6 +105,7 @@ const editing = ref({ name: '', hostname: '', port: 8006, node_name: 'pve', user const vmDialogVisible = ref(false) const vmLoading = ref(false) const vmList = ref([]) +const vmError = ref('') const selectedHost = ref(null) const hostStatus = ref({}) @@ -114,10 +116,8 @@ onMounted(() => { async function load() { const res = await fetchPVEHosts() hosts.value = res.data - // 检测每个节点的连接状态 - for (const h of hosts.value) { - checkHostStatus(h.id) - } + // 并行检测每个节点的连接状态 + await Promise.all(hosts.value.map(h => checkHostStatus(h.id))) } async function checkHostStatus(id) { @@ -177,11 +177,12 @@ async function openVMList(host) { vmDialogVisible.value = true vmLoading.value = true vmList.value = [] + vmError.value = '' try { const res = await fetchPVEHostVMs(host.id) vmList.value = res.data || [] } catch (e) { - ElMessage.error('获取虚拟机列表失败') + vmError.value = '获取虚拟机列表失败,请检查节点连接状态' } vmLoading.value = false }