vite-plugin-vue-devtools 9.0.0-rc.2 → 9.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/assets/{Checkbox-Df0MfFZd.js → Checkbox-CsgLgOjf.js} +1 -1
- package/client/assets/InspectorState-CXPxKmUf.js +1 -0
- package/client/assets/{InspectorTree-HaWX0rBG.js → InspectorTree-BgcS7_BF.js} +1 -1
- package/client/assets/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-By717ouR.js +1 -0
- package/client/assets/_plugin-vue_export-helper-CdLdzBIA.js +5 -0
- package/client/assets/browser-agent-rpc-CS80Sphv-UZooJqNf.js +1 -0
- package/client/assets/{components-CA_f0zn5.js → components--Uqqnist.js} +2 -2
- package/client/assets/custom-inspector-DikTGJYk.js +1 -0
- package/client/assets/graph-DT4Zl2Ge.js +1 -0
- package/client/assets/index-Ctr1uf78.js +3 -0
- package/client/assets/{index-DeVPR5Sm.css → index-DcsWnsBC.css} +1 -1
- package/client/assets/{overview-DlhcQzcv.js → overview-CBnqLe5W.js} +1 -1
- package/client/assets/pages-BnEiKDB1.js +1 -0
- package/client/assets/pages-DbPYAwAA.css +1 -0
- package/client/assets/{plugins-JeK_HZgb.js → plugins-D7N7tBMP.js} +1 -1
- package/client/assets/settings-DVRsqvUy.js +1 -0
- package/client/assets/splitpanes.esm-Cr-PYWE3.js +1 -0
- package/client/assets/timeline-B66GLhYW.css +1 -0
- package/client/assets/timeline-DemFeH2V.js +1 -0
- package/client/index.html +3 -3
- package/dist/client.d.mts +1 -3
- package/dist/client.mjs +1 -1
- package/dist/dirs.d.mts +1 -3
- package/dist/index.d.mts +0 -4
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
- package/client/assets/InspectorState-BTXZM1WH.js +0 -1
- package/client/assets/RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-D7DaT_pj.js +0 -1
- package/client/assets/_plugin-vue_export-helper-CVBmTk-L.js +0 -5
- package/client/assets/browser-agent-rpc-BXhoSh1z-DrvKG05N.js +0 -1
- package/client/assets/custom-inspector-ChrPOy08.js +0 -1
- package/client/assets/graph-DjbM7QDq.js +0 -1
- package/client/assets/index-gOL3pdjp.js +0 -3
- package/client/assets/pages-CFl2Pj99.js +0 -1
- package/client/assets/pages-CybqUBzQ.css +0 -1
- package/client/assets/settings-D4iX_P4F.js +0 -1
- package/client/assets/splitpanes.esm-DyLKHMh-.js +0 -1
- package/client/assets/timeline-JU58z8qA.css +0 -1
- package/client/assets/timeline-eZr84BKr.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,D as t,Dt as n,Et as r,I as i,J as a,K as o,M as s,T as c,W as l,Y as u,b as d,d as f,et as p,f as m,h,i as g,j as _,l as v,m as y,nt as b,ot as x,p as S,rt as ee,v as te,wt as C,y as w,z as ne}from"./_plugin-vue_export-helper-CdLdzBIA.js";import{n as T}from"./RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-By717ouR.js";import{n as E,t as D}from"./splitpanes.esm-Cr-PYWE3.js";import{d as O,f as re,i as k,p as A}from"./index-Ctr1uf78.js";import{t as j}from"./InspectorTree-BgcS7_BF.js";import{t as ie}from"./component-tree-C3C12cZe.js";var M=8,N=16,P=7.2,F=172,I=76;function ae(e,t,n){let r=new Set(e.nodes.map(e=>e.id)),i=new Map(e.nodes.map(e=>[e.id,e.id])),a=new Map(e.nodes.map(e=>[e.id,0])),o=new Map(e.nodes.map(e=>[e.id,0]));function s(e){let t=i.get(e)??e;if(t===e)return t;let n=s(t);return i.set(e,n),n}function c(e,t){let n=s(e),r=s(t);n!==r&&i.set(r,n)}for(let t of e.relationships)r.has(t.from)&&r.has(t.to)&&(c(t.from,t.to),o.set(t.from,(o.get(t.from)??0)+1),a.set(t.to,(a.get(t.to)??0)+1));let l=new Map,u=[];for(let t of e.nodes){let e=s(t.id);if(l.has(e))continue;let n=l.size;l.set(e,n),u.push({id:n,nodeCount:0,relationshipCount:0})}let d=oe(u,t,n),f=e.nodes.map(e=>{let r=l.get(s(e.id))??0,i=(a.get(e.id)??0)+(o.get(e.id)??0),c=Math.min(N,M+Math.sqrt(i+1)*3),f=d.get(r)??{x:t/2,y:n/2},p=B(e.id)%360*(Math.PI/180),m=18+B(`${e.id}:distance`)%54,h=u[r];return h&&(h.nodeCount+=1),{id:e.id,type:e.type,label:e.label,group:r,incoming:a.get(e.id)??0,labelWidth:L(R(e)),outgoing:o.get(e.id)??0,radius:c,x:f.x+Math.cos(p)*m,y:f.y+Math.sin(p)*m}});return{groups:u,links:e.relationships.map(e=>{if(!r.has(e.from)||!r.has(e.to))return;let t=l.get(s(e.from))??0,n=u[t];return n&&(n.relationshipCount+=1),{...e,group:t,source:e.from,target:e.to,value:1}}).filter(e=>e!==void 0),nodes:f}}function oe(e,t,n){let r=new Map;if(!e.length)return r;let i=Math.ceil(Math.sqrt(e.length)),a=Math.ceil(e.length/i),o=Math.min(170,Math.max(78,t*.12)),s=Math.min(128,Math.max(76,n*.16)),c=Math.max(1,t-o*2),l=Math.max(1,n-s*2);return e.forEach((e,t)=>{let n=t%i,u=Math.floor(t/i);r.set(e.id,{x:o+c*(n+.5)/i,y:s+l*(u+.5)/a})}),r}function se(e){return e.length<=22?e:`${e.slice(0,12)}...${e.slice(-7)}`}function L(e){return Math.min(F,Math.max(I,se(e).length*P+22))}function R(e){let t=z(e.type);return new Set([e.type,t,`component render`,`reactive.property`,`render/effect`,`watch callback`]).has(e.label)?t:e.label}function z(e){switch(e){case`ref`:return`Anonymous Ref`;case`computed`:return`Anonymous Computed`;case`reactive`:return`Reactive Property`;case`watch`:return`Anonymous Watch`;case`render`:return`Anonymous Render`;case`effect`:return`Anonymous Effect`;default:return`Unknown`}}function B(e){let t=0;for(let n=0;n<e.length;n+=1)t=Math.imul(31,t)+e.charCodeAt(n);return Math.abs(t)}var ce=[`ref`,`reactive`,`computed`,`watch`,`effect`,`render`,`unknown`];function V(e){switch(e){case`ref`:return`#21a67a`;case`computed`:return`#3b82d6`;case`reactive`:return`#d79822`;case`render`:return`#f97316`;case`watch`:return`#0f766e`;case`effect`:return`#d84f45`;default:return`#94a3b8`}}function H(e){switch(e){case`ref`:return`Ref`;case`computed`:return`Computed`;case`reactive`:return`Reactive`;case`render`:return`Render Effect`;case`watch`:return`Watch`;case`effect`:return`Effect`;default:return`Unknown`}}function le(e){return e.trim().toLowerCase()}function ue(e,t){return!t||[e.id,e.label,H(e.type),de(e),...Object.values(e.data).map(e=>String(e))].some(e=>e.toLowerCase().includes(t))}function de(e){if(!e)return``;let t=e.data;if(!t)return``;let n=t.value??t.cb??t.instanceName;if(n==null)return``;if(typeof n==`string`)return n;try{return JSON.stringify(n)}catch{return String(n)}}function fe(){return{nodeIds:new Set,orderedNodeIds:[],orderedRelationshipIds:[],relationshipIds:new Set}}function pe(e){let t=new Map;for(let n of e){let e=t.get(n.from)??[];e.push(n),t.set(n.from,e)}return t}function me(e,t){let n=new Set(t.map(e=>e.to));return new Set(e.filter(e=>!n.has(e.id)).map(e=>e.id))}function he(e,t){let n=new Set([e]),r=[e];for(let e of r)for(let i of t.get(e)??[])n.has(i.to)||(n.add(i.to),r.push(i.to));return n.delete(e),n}function ge(e,t,n){if(!e||!t)return fe();let r=new Map,i=new Set([e]),a=[e];for(let e of a){if(i.has(t))break;for(let o of n.get(e)??[])if(!i.has(o.to)&&(i.add(o.to),r.set(o.to,o),a.push(o.to),o.to===t))break}let o=[t],s=[];if(i.has(t)){let n=t;for(;n!==e;){let e=r.get(n);s.push(e.id),o.push(e.from),n=e.from}}else o.push(e);return o.reverse(),s.reverse(),{nodeIds:new Set(o),orderedNodeIds:o,relationshipIds:new Set(s),orderedRelationshipIds:s}}var _e={class:`shrink-0 bg-base px-2`},ve={class:`min-w-0 flex items-center gap-2 py-2`},ye={key:0,class:`group relative min-w-0 flex flex-1 items-center justify-between gap-2 overflow-hidden rounded-1 border border-primary-100 px-3 py-0.75 color-base dark:border-gray-700`},be={key:1,class:`min-w-0 flex flex-1 items-center gap-2`},xe={class:`relative min-w-0 flex-1`},Se={key:0,class:`min-w-0 w-full overflow-hidden rounded-1 border border-base px-2 py-1 color-base flex items-center gap-1.5`},Ce={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},we=[`value`],Te={key:2,class:`absolute left-0 right-0 top-[calc(100%+4px)] z-50 max-h-58 overflow-auto rounded-1 border border-base bg-base p-1 shadow`},Ee=[`onMousedown`],De={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Oe={class:`shrink-0 color-muted text-3`},ke={key:0,class:`px-2 py-2 color-muted text-3 italic`},Ae={class:`relative min-w-0 flex-1`},je={key:0,class:`min-w-0 w-full overflow-hidden rounded-1 border border-base px-2 py-1 color-base flex items-center gap-1.5`},Me={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Ne=[`value`],Pe={key:2,class:`absolute left-0 right-0 top-[calc(100%+4px)] z-50 max-h-58 overflow-auto rounded-1 border border-base bg-base p-1 shadow`},Fe=[`onMousedown`],Ie={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Le={class:`shrink-0 color-muted text-3`},Re={key:0,class:`px-2 py-2 color-muted text-3 italic`},ze=[`aria-pressed`],Be=[`aria-expanded`],Ve={class:`mb-1 flex items-center justify-between gap-2`},He={class:`w-14 shrink-0 text-right color-muted font-state-field text-3`},Ue=[`title`],We=[`checked`,`onChange`],Ge={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Ke={class:`w-10 shrink-0 text-right color-muted text-3`},qe=220,Je=d({__name:`ReactivityGraphToolbar`,props:c({graph:{},filteredGraph:{}},{search:{required:!0},searchModifiers:{},activeTypes:{required:!0},activeTypesModifiers:{},pathSelectorOpen:{type:Boolean,required:!0},pathSelectorOpenModifiers:{},pathStartId:{required:!0},pathStartIdModifiers:{},pathEndId:{required:!0},pathEndIdModifiers:{},selectedNodeId:{},selectedNodeIdModifiers:{}}),emits:[`update:search`,`update:activeTypes`,`update:pathSelectorOpen`,`update:pathStartId`,`update:pathEndId`,`update:selectedNodeId`],setup(e){let t=e,a=ee(t,`filteredGraph`),c=l(e,`search`),d=l(e,`activeTypes`),g=l(e,`pathSelectorOpen`),b=l(e,`pathStartId`),S=l(e,`pathEndId`),te=l(e,`selectedNodeId`),T=p(),E=p(``),D=p(``),j=p(!1),ie,M=f(()=>{let e=new Map;for(let t of ce)e.set(t,0);for(let n of t.graph.nodes)e.set(n.type,(e.get(n.type)??0)+1);return e}),N=f(()=>new Map(t.graph.nodes.map(e=>[e.id,e]))),P=f(()=>[...a.value.nodes].sort((e,t)=>tt(e.id).localeCompare(tt(t.id)))),F=f(()=>me(a.value.nodes,a.value.relationships)),I=f(()=>pe(a.value.relationships)),ae=f(()=>et(E.value,S.value,F.value)),oe=f(()=>b.value?he(b.value,I.value):new Set),se=f(()=>et(D.value,b.value,oe.value)),L=f(()=>!!b.value&&!!S.value);function z(e){return e.target instanceof HTMLInputElement?e.target.value:``}function B(e){return d.value.has(e)}function de(e){let t=new Set(d.value);t.has(e)?t.delete(e):t.add(e),d.value=t,W()}function fe(){d.value=new Set(ce),W()}function ge(){d.value=new Set,W()}function Je(){ie&&=(clearTimeout(ie),void 0)}function Ye(){Je(),j.value=!0}function U(e){if(e instanceof FocusEvent){let t=e.currentTarget,n=e.relatedTarget;if(t instanceof Node&&n instanceof Node&&t.contains(n))return}Je(),ie=setTimeout(()=>{j.value=!1,ie=void 0},qe)}function Xe(){c.value=``,g.value=!0,T.value=`start`}function W(){g.value=!1,T.value=void 0,b.value=``,S.value=``,E.value=``,D.value=``}function Ze(e,t){e===`start`?(E.value=t,t&&t===tt(b.value)||(G(),E.value=t)):(D.value=t,t&&t===tt(S.value)||($e(),D.value=t))}function Qe(e,t){e===`start`?(b.value!==t&&$e(),b.value=t,E.value=tt(t),T.value=S.value?void 0:`end`):(S.value=t,D.value=tt(t),T.value=b.value?void 0:`start`),b.value&&S.value&&(te.value=void 0)}function G(){b.value=``,E.value=``,$e(),T.value=`start`}function $e(){S.value=``,D.value=``,T.value=`end`}function et(e,t,n){let r=le(e);return P.value.filter(e=>e.id===t||n&&!n.has(e.id)?!1:ue(e,r)).slice(0,8)}function tt(e){let t=N.value.get(e);return t?`${R(t)} (${H(t.type)})`:``}function nt(e){let t=N.value.get(e);return t?R(t):``}function rt(e){let t=N.value.get(e);return V(t?t.type:`unknown`)}return o(g,e=>{e||W()}),_(Je),(e,o)=>{let l=ne(`tooltip`);return s(),h(`div`,_e,[m(`div`,ve,[g.value?(s(),h(`div`,be,[m(`div`,xe,[b.value?(s(),h(`div`,Se,[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:rt(b.value)})},null,4),m(`span`,Ce,n(nt(b.value)),1),u((s(),h(`button`,{class:`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center op70 hover:bg-active hover:color-base hover:op100`,type:`button`,"aria-label":`Clear path start`,onClick:G},[w(k,{icon:`i-carbon-clean`,class:`text-5.5`})])),[[l,`Clear start`,void 0,{top:!0}]])])):(s(),h(`input`,{key:1,class:`min-w-0 w-full rounded-1 border border-base bg-transparent px-3 py-1 outline-none font-state-field text-3.5 color-base placeholder-color-gray-500 dark:placeholder-gray-300`,placeholder:`Start`,type:`search`,value:E.value,onFocus:o[2]||=e=>T.value=`start`,onInput:o[3]||=e=>Ze(`start`,z(e)),onKeydown:re(W,[`esc`])},null,40,we)),!b.value&&T.value===`start`?(s(),h(`div`,Te,[(s(!0),h(v,null,i(ae.value,e=>(s(),h(`button`,{key:e.id,class:`min-w-0 w-full rounded-1 border-0 bg-transparent px-2 py-1.5 text-left color-base flex items-center gap-1.5 hover:bg-active`,type:`button`,onMousedown:A(t=>Qe(`start`,e.id),[`prevent`])},[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(V)(e.type)})},null,4),m(`span`,De,n(x(R)(e)),1),m(`span`,Oe,n(x(H)(e.type)),1)],40,Ee))),128)),ae.value.length?y(``,!0):(s(),h(`div`,ke,` No matching nodes `))])):y(``,!0)]),w(k,{icon:`i-carbon-arrow-right`,class:`shrink-0 color-muted text-5`}),m(`div`,Ae,[S.value?(s(),h(`div`,je,[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:rt(S.value)})},null,4),m(`span`,Me,n(nt(S.value)),1),u((s(),h(`button`,{class:`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center op70 hover:bg-active hover:color-base hover:op100`,type:`button`,"aria-label":`Clear path end`,onClick:$e},[w(k,{icon:`i-carbon-clean`,class:`text-5.5`})])),[[l,`Clear end`,void 0,{top:!0}]])])):(s(),h(`input`,{key:1,class:`min-w-0 w-full rounded-1 border border-base bg-transparent px-3 py-1 outline-none font-state-field text-3.5 color-base placeholder-color-gray-500 dark:placeholder-gray-300`,placeholder:`End`,type:`search`,value:D.value,onFocus:o[4]||=e=>T.value=`end`,onInput:o[5]||=e=>Ze(`end`,z(e)),onKeydown:re(W,[`esc`])},null,40,Ne)),!S.value&&T.value===`end`?(s(),h(`div`,Pe,[(s(!0),h(v,null,i(se.value,e=>(s(),h(`button`,{key:e.id,class:`min-w-0 w-full rounded-1 border-0 bg-transparent px-2 py-1.5 text-left color-base flex items-center gap-1.5 hover:bg-active`,type:`button`,onMousedown:A(t=>Qe(`end`,e.id),[`prevent`])},[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(V)(e.type)})},null,4),m(`span`,Ie,n(x(R)(e)),1),m(`span`,Le,n(x(H)(e.type)),1)],40,Fe))),128)),se.value.length?y(``,!0):(s(),h(`div`,Re,n(b.value?`No matching nodes`:`Select a start node to get end nodes`),1))])):y(``,!0)])])):(s(),h(`label`,ye,[w(k,{icon:`i-carbon-search`,class:`shrink-0 color-muted text-4`}),u(m(`input`,{"onUpdate:modelValue":o[0]||=e=>c.value=e,class:`min-w-0 w-full border-0 bg-transparent p-0 outline-none text-3.5 color-inherit placeholder-color-gray-500 dark:placeholder-gray-300`,placeholder:`Search graph...`,type:`search`},null,512),[[O,c.value]]),c.value?u((s(),h(`button`,{key:0,class:`h-6 w-6 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Clear search`,onClick:o[1]||=e=>c.value=``},[w(k,{icon:`i-carbon-close`,class:`text-3.5`})])),[[l,`Clear search`,void 0,{top:!0}]]):y(``,!0)])),g.value?u((s(),h(`button`,{key:3,class:`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Close path selector`,onClick:W},[w(k,{icon:`i-carbon-close`,class:`text-5`})])),[[l,`Close path selector`,void 0,{top:!0}]]):u((s(),h(`button`,{key:2,class:C([`h-7 w-7 shrink-0 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,g.value||L.value?`bg-active color-active`:``]),type:`button`,"aria-label":`Graph path selector`,"aria-pressed":g.value||L.value,onClick:o[6]||=e=>g.value?W():Xe()},[w(k,{icon:`i-ri-route-line`,class:`text-5.5`})],10,ze)),[[l,g.value?`Clear path selector`:`Graph path selector`,void 0,{top:!0}]]),m(`div`,{class:`relative shrink-0`,onFocusin:Ye,onFocusout:U,onMouseenter:Ye,onMouseleave:U},[u((s(),h(`button`,{class:C([`h-7 w-7 rounded-1 border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,j.value?`bg-active color-base`:``]),type:`button`,"aria-label":`Filter reactivity types`,"aria-haspopup":`menu`,"aria-expanded":j.value},[w(k,{icon:`i-carbon-filter`,class:`text-4`})],10,Be)),[[l,`Filter reactivity types`,void 0,{top:!0}]]),m(`div`,{class:C([`absolute right-0 top-[calc(100%+4px)] z-50 w-62 rounded-1 border border-base bg-base p-2 shadow transition-opacity`,j.value?`pointer-events-auto op-100`:`pointer-events-none op-0`]),role:`menu`},[m(`div`,Ve,[o[7]||=m(`span`,{class:`color-muted text-3`},`Filter type`,-1),m(`span`,He,n(a.value.nodes.length)+` / `+n(t.graph.nodes.length),1)]),(s(!0),h(v,null,i(x(ce),e=>(s(),h(`label`,{key:e,class:C([`h-7 rounded-1 px-2 color-base flex items-center gap-1.5 select-none hover:bg-active`,B(e)?``:`op45 grayscale`]),title:x(H)(e)},[m(`input`,{class:`h-3.5 w-3.5 accent-emerald-600`,type:`checkbox`,checked:B(e),onChange:t=>de(e)},null,40,We),m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(V)(e)})},null,4),m(`span`,Ge,n(x(H)(e)),1),m(`span`,Ke,n(M.value.get(e)??0),1)],10,Ue))),128)),m(`div`,{class:`mt-1 flex items-center gap-1 border-t border-base pt-1`},[m(`button`,{class:`h-7 flex-1 rounded-1 border border-base bg-transparent px-2 color-muted text-3 hover:bg-active hover:color-base`,type:`button`,onClick:fe},` Select all `),m(`button`,{class:`h-7 flex-1 rounded-1 border border-base bg-transparent px-2 color-muted text-3 hover:bg-active hover:color-base`,type:`button`,onClick:ge},` Clear `)])],2)],32)])])}}});function Ye(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return U(this.cover(t,n),t,n,e)}function U(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,a=e._root,o={data:r},s=e._x0,c=e._y0,l=e._x1,u=e._y1,d,f,p,m,h,g,_,v;if(!a)return e._root=o,e;for(;a.length;)if((h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f,i=a,!(a=a[_=g<<1|h]))return i[_]=o,e;if(p=+e._x.call(null,a.data),m=+e._y.call(null,a.data),t===p&&n===m)return o.next=a,i?i[_]=o:e._root=o,e;do i=i?i[_]=[,,,,]:e._root=[,,,,],(h=t>=(d=(s+l)/2))?s=d:l=d,(g=n>=(f=(c+u)/2))?c=f:u=f;while((_=g<<1|h)==(v=(m>=f)<<1|p>=d));return i[v]=a,i[_]=o,e}function Xe(e){var t,n,r=e.length,i,a,o=Array(r),s=Array(r),c=1/0,l=1/0,u=-1/0,d=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(a=+this._y.call(null,t))||(o[n]=i,s[n]=a,i<c&&(c=i),i>u&&(u=i),a<l&&(l=a),a>d&&(d=a));if(c>u||l>d)return this;for(this.cover(c,l).cover(u,d),n=0;n<r;++n)U(this,o[n],s[n],e[n]);return this}function W(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,a=(r=Math.floor(t))+1;else{for(var o=i-n||1,s=this._root,c,l;n>e||e>=i||r>t||t>=a;)switch(l=(t<r)<<1|e<n,c=[,,,,],c[l]=s,s=c,o*=2,l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o}this._root&&this._root.length&&(this._root=s)}return this._x0=n,this._y0=r,this._x1=i,this._y1=a,this}function Ze(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Qe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function G(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function $e(e,t,n){var r,i=this._x0,a=this._y0,o,s,c,l,u=this._x1,d=this._y1,f=[],p=this._root,m,h;for(p&&f.push(new G(p,i,a,u,d)),n==null?n=1/0:(i=e-n,a=t-n,u=e+n,d=t+n,n*=n);m=f.pop();)if(!(!(p=m.node)||(o=m.x0)>u||(s=m.y0)>d||(c=m.x1)<i||(l=m.y1)<a)){if(p.length){var g=(o+c)/2,_=(s+l)/2;f.push(new G(p[3],g,_,c,l),new G(p[2],o,_,g,l),new G(p[1],g,s,c,_),new G(p[0],o,s,g,_)),(h=(t>=_)<<1|e>=g)&&(m=f[f.length-1],f[f.length-1]=f[f.length-1-h],f[f.length-1-h]=m)}else{var v=e-+this._x.call(null,p.data),y=t-+this._y.call(null,p.data),b=v*v+y*y;if(b<n){var x=Math.sqrt(n=b);i=e-x,a=t-x,u=e+x,d=t+x,r=p.data}}}return r}function et(e){if(isNaN(u=+this._x.call(null,e))||isNaN(d=+this._y.call(null,e)))return this;var t,n=this._root,r,i,a,o=this._x0,s=this._y0,c=this._x1,l=this._y1,u,d,f,p,m,h,g,_;if(!n)return this;if(n.length)for(;;){if((m=u>=(f=(o+c)/2))?o=f:c=f,(h=d>=(p=(s+l)/2))?s=p:l=p,t=n,!(n=n[g=h<<1|m]))return this;if(!n.length)break;(t[g+1&3]||t[g+2&3]||t[g+3&3])&&(r=t,_=g)}for(;n.data!==e;)if(i=n,!(n=n.next))return this;return(a=n.next)&&delete n.next,i?(a?i.next=a:delete i.next,this):t?(a?t[g]=a:delete t[g],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(r?r[_]=n:this._root=n),this):(this._root=a,this)}function tt(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function nt(){return this._root}function rt(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function it(e){var t=[],n,r=this._root,i,a,o,s,c;for(r&&t.push(new G(r,this._x0,this._y0,this._x1,this._y1));n=t.pop();)if(!e(r=n.node,a=n.x0,o=n.y0,s=n.x1,c=n.y1)&&r.length){var l=(a+s)/2,u=(o+c)/2;(i=r[3])&&t.push(new G(i,l,u,s,c)),(i=r[2])&&t.push(new G(i,a,u,l,c)),(i=r[1])&&t.push(new G(i,l,o,s,u)),(i=r[0])&&t.push(new G(i,a,o,l,u))}return this}function at(e){var t=[],n=[],r;for(this._root&&t.push(new G(this._root,this._x0,this._y0,this._x1,this._y1));r=t.pop();){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,c=r.x1,l=r.y1,u=(o+c)/2,d=(s+l)/2;(a=i[0])&&t.push(new G(a,o,s,u,d)),(a=i[1])&&t.push(new G(a,u,s,c,d)),(a=i[2])&&t.push(new G(a,o,d,u,l)),(a=i[3])&&t.push(new G(a,u,d,c,l))}n.push(r)}for(;r=n.pop();)e(r.node,r.x0,r.y0,r.x1,r.y1);return this}function ot(e){return e[0]}function st(e){return arguments.length?(this._x=e,this):this._x}function ct(e){return e[1]}function lt(e){return arguments.length?(this._y=e,this):this._y}function ut(e,t,n){var r=new dt(t??ot,n??ct,NaN,NaN,NaN,NaN);return e==null?r:r.addAll(e)}function dt(e,t,n,r,i,a){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=a,this._root=void 0}function ft(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var K=ut.prototype=dt.prototype;K.copy=function(){var e=new dt(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,n,r;if(!t)return e;if(!t.length)return e._root=ft(t),e;for(n=[{source:t,target:e._root=[,,,,]}];t=n.pop();)for(var i=0;i<4;++i)(r=t.source[i])&&(r.length?n.push({source:r,target:t.target[i]=[,,,,]}):t.target[i]=ft(r));return e},K.add=Ye,K.addAll=Xe,K.cover=W,K.data=Ze,K.extent=Qe,K.find=$e,K.remove=et,K.removeAll=tt,K.root=nt,K.size=rt,K.visit=it,K.visitAfter=at,K.x=st,K.y=lt;var pt={value:()=>{}};function mt(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new ht(n)}function ht(e){this._=e}function gt(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}ht.prototype=mt.prototype={constructor:ht,on:function(e,t){var n=this._,r=gt(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=_t(n[i],e.name)))return i}else{if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=vt(n[i],e.name,t);else if(t==null)for(i in n)n[i]=vt(n[i],e.name,null);return this}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ht(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function _t(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function vt(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=pt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var yt=0,bt=0,xt=0,St=1e3,Ct,wt,Tt=0,Et=0,Dt=0,Ot=typeof performance==`object`&&performance.now?performance:Date,kt=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function At(){return Et||=(kt(jt),Ot.now()+Dt)}function jt(){Et=0}function Mt(){this._call=this._time=this._next=null}Mt.prototype=Nt.prototype={constructor:Mt,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?At():+n)+(t==null?0:+t),!this._next&&wt!==this&&(wt?wt._next=this:Ct=this,wt=this),this._call=e,this._time=n,Rt()},stop:function(){this._call&&(this._call=null,this._time=1/0,Rt())}};function Nt(e,t,n){var r=new Mt;return r.restart(e,t,n),r}function Pt(){At(),++yt;for(var e=Ct,t;e;)(t=Et-e._time)>=0&&e._call.call(void 0,t),e=e._next;--yt}function Ft(){Et=(Tt=Ot.now())+Dt,yt=bt=0;try{Pt()}finally{yt=0,Lt(),Et=0}}function It(){var e=Ot.now(),t=e-Tt;t>St&&(Dt-=t,Tt=e)}function Lt(){for(var e,t=Ct,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Ct=n);wt=e,Rt(r)}function Rt(e){yt||(bt&&=clearTimeout(bt),e-Et>24?(e<1/0&&(bt=setTimeout(Ft,e-Ot.now()-Dt)),xt&&=clearInterval(xt)):(xt||=(Tt=Ot.now(),setInterval(It,St)),yt=1,kt(Ft)))}function zt(e,t,n){var r=new Mt;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}function q(e){return function(){return e}}function Bt(e){return(e()-.5)*1e-6}function Vt(e){return e.x+e.vx}function Ht(e){return e.y+e.vy}function Ut(e){var t,n,r,i=1,a=1;typeof e!=`function`&&(e=q(e==null?1:+e));function o(){for(var e,o=t.length,c,l,u,d,f,p,m=0;m<a;++m)for(c=ut(t,Vt,Ht).visitAfter(s),e=0;e<o;++e)l=t[e],f=n[l.index],p=f*f,u=l.x+l.vx,d=l.y+l.vy,c.visit(h);function h(e,t,n,a,o){var s=e.data,c=e.r,m=f+c;if(s){if(s.index>l.index){var h=u-s.x-s.vx,g=d-s.y-s.vy,_=h*h+g*g;_<m*m&&(h===0&&(h=Bt(r),_+=h*h),g===0&&(g=Bt(r),_+=g*g),_=(m-(_=Math.sqrt(_)))/_*i,l.vx+=(h*=_)*(m=(c*=c)/(p+c)),l.vy+=(g*=_)*m,s.vx-=h*(m=1-m),s.vy-=g*m)}}else return t>u+m||a<u-m||n>d+m||o<d-m}}function s(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function c(){if(t){var r,i=t.length,a;for(n=Array(i),r=0;r<i;++r)a=t[r],n[a.index]=+e(a,r,t)}}return o.initialize=function(e,n){t=e,r=n,c()},o.iterations=function(e){return arguments.length?(a=+e,o):a},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),c(),o):e},o}function Wt(e){return e.index}function Gt(e,t){var n=e.get(t);if(!n)throw Error(`node not found: `+t);return n}function Kt(e){var t=Wt,n=d,r,i=q(30),a,o,s,c,l,u=1;e??=[];function d(e){return 1/Math.min(s[e.source.index],s[e.target.index])}function f(t){for(var n=0,i=e.length;n<u;++n)for(var o=0,s,d,f,p,m,h,g;o<i;++o)s=e[o],d=s.source,f=s.target,p=f.x+f.vx-d.x-d.vx||Bt(l),m=f.y+f.vy-d.y-d.vy||Bt(l),h=Math.sqrt(p*p+m*m),h=(h-a[o])/h*t*r[o],p*=h,m*=h,f.vx-=p*(g=c[o]),f.vy-=m*g,d.vx+=p*(g=1-g),d.vy+=m*g}function p(){if(o){var n,i=o.length,l=e.length,u=new Map(o.map((e,n)=>[t(e,n,o),e])),d;for(n=0,s=Array(i);n<l;++n)d=e[n],d.index=n,typeof d.source!=`object`&&(d.source=Gt(u,d.source)),typeof d.target!=`object`&&(d.target=Gt(u,d.target)),s[d.source.index]=(s[d.source.index]||0)+1,s[d.target.index]=(s[d.target.index]||0)+1;for(n=0,c=Array(l);n<l;++n)d=e[n],c[n]=s[d.source.index]/(s[d.source.index]+s[d.target.index]);r=Array(l),m(),a=Array(l),h()}}function m(){if(o)for(var t=0,i=e.length;t<i;++t)r[t]=+n(e[t],t,e)}function h(){if(o)for(var t=0,n=e.length;t<n;++t)a[t]=+i(e[t],t,e)}return f.initialize=function(e,t){o=e,l=t,p()},f.links=function(t){return arguments.length?(e=t,p(),f):e},f.id=function(e){return arguments.length?(t=e,f):t},f.iterations=function(e){return arguments.length?(u=+e,f):u},f.strength=function(e){return arguments.length?(n=typeof e==`function`?e:q(+e),m(),f):n},f.distance=function(e){return arguments.length?(i=typeof e==`function`?e:q(+e),h(),f):i},f}var qt=1664525,Jt=1013904223,Yt=4294967296;function Xt(){let e=1;return()=>(e=(qt*e+Jt)%Yt)/Yt}function Zt(e){return e.x}function Qt(e){return e.y}var $t=10,en=Math.PI*(3-Math.sqrt(5));function tn(e){var t,n=1,r=.001,i=1-r**(1/300),a=0,o=.6,s=new Map,c=Nt(d),l=mt(`tick`,`end`),u=Xt();e??=[];function d(){f(),l.call(`tick`,t),n<r&&(c.stop(),l.call(`end`,t))}function f(r){var c,l=e.length,u;r===void 0&&(r=1);for(var d=0;d<r;++d)for(n+=(a-n)*i,s.forEach(function(e){e(n)}),c=0;c<l;++c)u=e[c],u.fx==null?u.x+=u.vx*=o:(u.x=u.fx,u.vx=0),u.fy==null?u.y+=u.vy*=o:(u.y=u.fy,u.vy=0);return t}function p(){for(var t=0,n=e.length,r;t<n;++t){if(r=e[t],r.index=t,r.fx!=null&&(r.x=r.fx),r.fy!=null&&(r.y=r.fy),isNaN(r.x)||isNaN(r.y)){var i=$t*Math.sqrt(.5+t),a=t*en;r.x=i*Math.cos(a),r.y=i*Math.sin(a)}(isNaN(r.vx)||isNaN(r.vy))&&(r.vx=r.vy=0)}}function m(t){return t.initialize&&t.initialize(e,u),t}return p(),t={tick:f,restart:function(){return c.restart(d),t},stop:function(){return c.stop(),t},nodes:function(n){return arguments.length?(e=n,p(),s.forEach(m),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(a=+e,t):a},velocityDecay:function(e){return arguments.length?(o=1-e,t):1-o},randomSource:function(e){return arguments.length?(u=e,s.forEach(m),t):u},force:function(e,n){return arguments.length>1?(n==null?s.delete(e):s.set(e,m(n)),t):s.get(e)},find:function(t,n,r){var i=0,a=e.length,o,s,c,l,u;for(r==null?r=1/0:r*=r,i=0;i<a;++i)l=e[i],o=t-l.x,s=n-l.y,c=o*o+s*s,c<r&&(u=l,r=c);return u},on:function(e,n){return arguments.length>1?(l.on(e,n),t):l.on(e)}}}function nn(){var e,t,n,r,i=q(-30),a,o=1,s=1/0,c=.81;function l(n){var i,a=e.length,o=ut(e,Zt,Qt).visitAfter(d);for(r=n,i=0;i<a;++i)t=e[i],o.visit(f)}function u(){if(e){var t,n=e.length,r;for(a=Array(n),t=0;t<n;++t)r=e[t],a[r.index]=+i(r,t,e)}}function d(e){var t=0,n,r,i=0,o,s,c;if(e.length){for(o=s=c=0;c<4;++c)(n=e[c])&&(r=Math.abs(n.value))&&(t+=n.value,i+=r,o+=r*n.x,s+=r*n.y);e.x=o/i,e.y=s/i}else{n=e,n.x=n.data.x,n.y=n.data.y;do t+=a[n.data.index];while(n=n.next)}e.value=t}function f(e,i,l,u){if(!e.value)return!0;var d=e.x-t.x,f=e.y-t.y,p=u-i,m=d*d+f*f;if(p*p/c<m)return m<s&&(d===0&&(d=Bt(n),m+=d*d),f===0&&(f=Bt(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)),t.vx+=d*e.value*r/m,t.vy+=f*e.value*r/m),!0;if(!(e.length||m>=s)){(e.data!==t||e.next)&&(d===0&&(d=Bt(n),m+=d*d),f===0&&(f=Bt(n),m+=f*f),m<o&&(m=Math.sqrt(o*m)));do e.data!==t&&(p=a[e.data.index]*r/m,t.vx+=d*p,t.vy+=f*p);while(e=e.next)}}return l.initialize=function(t,r){e=t,n=r,u()},l.strength=function(e){return arguments.length?(i=typeof e==`function`?e:q(+e),u(),l):i},l.distanceMin=function(e){return arguments.length?(o=e*e,l):Math.sqrt(o)},l.distanceMax=function(e){return arguments.length?(s=e*e,l):Math.sqrt(s)},l.theta=function(e){return arguments.length?(c=e*e,l):Math.sqrt(c)},l}function rn(e){var t=q(.1),n,r,i;typeof e!=`function`&&(e=q(e==null?0:+e));function a(e){for(var t=0,a=n.length,o;t<a;++t)o=n[t],o.vx+=(i[t]-o.x)*r[t]*e}function o(){if(n){var a,o=n.length;for(r=Array(o),i=Array(o),a=0;a<o;++a)r[a]=isNaN(i[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return a.initialize=function(e){n=e,o()},a.strength=function(e){return arguments.length?(t=typeof e==`function`?e:q(+e),o(),a):t},a.x=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),o(),a):e},a}function an(e){var t=q(.1),n,r,i;typeof e!=`function`&&(e=q(e==null?0:+e));function a(e){for(var t=0,a=n.length,o;t<a;++t)o=n[t],o.vy+=(i[t]-o.y)*r[t]*e}function o(){if(n){var a,o=n.length;for(r=Array(o),i=Array(o),a=0;a<o;++a)r[a]=isNaN(i[a]=+e(n[a],a,n))?0:+t(n[a],a,n)}}return a.initialize=function(e){n=e,o()},a.strength=function(e){return arguments.length?(t=typeof e==`function`?e:q(+e),o(),a):t},a.y=function(t){return arguments.length?(e=typeof t==`function`?t:q(+t),o(),a):e},a}var on=`http://www.w3.org/1999/xhtml`,sn={svg:`http://www.w3.org/2000/svg`,xhtml:on,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function cn(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),sn.hasOwnProperty(t)?{space:sn[t],local:e}:e}function ln(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===on&&t.documentElement.namespaceURI===on?t.createElement(e):t.createElementNS(n,e)}}function un(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function dn(e){var t=cn(e);return(t.local?un:ln)(t)}function fn(){}function pn(e){return e==null?fn:function(){return this.querySelector(e)}}function mn(e){typeof e!=`function`&&(e=pn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new J(r,this._parents)}function hn(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function gn(){return[]}function _n(e){return e==null?gn:function(){return this.querySelectorAll(e)}}function vn(e){return function(){return hn(e.apply(this,arguments))}}function yn(e){e=typeof e==`function`?vn(e):_n(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new J(r,i)}function bn(e){return function(){return this.matches(e)}}function xn(e){return function(t){return t.matches(e)}}var Sn=Array.prototype.find;function Cn(e){return function(){return Sn.call(this.children,e)}}function wn(){return this.firstElementChild}function Tn(e){return this.select(e==null?wn:Cn(typeof e==`function`?e:xn(e)))}var En=Array.prototype.filter;function Dn(){return Array.from(this.children)}function On(e){return function(){return En.call(this.children,e)}}function kn(e){return this.selectAll(e==null?Dn:On(typeof e==`function`?e:xn(e)))}function An(e){typeof e!=`function`&&(e=bn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new J(r,this._parents)}function jn(e){return Array(e.length)}function Mn(){return new J(this._enter||this._groups.map(jn),this._parents)}function Nn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nn.prototype={constructor:Nn,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pn(e){return function(){return e}}function Fn(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Nn(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function In(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Nn(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Ln(e){return e.__data__}function Rn(e,t){if(!arguments.length)return Array.from(this,Ln);var n=t?In:Fn,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Pn(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=zn(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new J(o,r),o._enter=s,o._exit=c,o}function zn(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Bn(){return new J(this._exit||this._groups.map(jn),this._parents)}function Vn(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Hn(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new J(s,this._parents)}function Un(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Wn(e){e||=Gn;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new J(i,this._parents).order()}function Gn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Kn(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function qn(){return Array.from(this)}function Jn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Yn(){let e=0;for(let t of this)++e;return e}function Xn(){return!this.node()}function Zn(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Qn(e){return function(){this.removeAttribute(e)}}function $n(e){return function(){this.removeAttributeNS(e.space,e.local)}}function er(e,t){return function(){this.setAttribute(e,t)}}function tr(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function nr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function rr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function ir(e,t){var n=cn(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?$n:Qn:typeof t==`function`?n.local?rr:nr:n.local?tr:er)(n,t))}function ar(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function or(e){return function(){this.style.removeProperty(e)}}function sr(e,t,n){return function(){this.style.setProperty(e,t,n)}}function cr(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function lr(e,t,n){return arguments.length>1?this.each((t==null?or:typeof t==`function`?cr:sr)(e,t,n??``)):ur(this.node(),e)}function ur(e,t){return e.style.getPropertyValue(t)||ar(e).getComputedStyle(e,null).getPropertyValue(t)}function dr(e){return function(){delete this[e]}}function fr(e,t){return function(){this[e]=t}}function pr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function mr(e,t){return arguments.length>1?this.each((t==null?dr:typeof t==`function`?pr:fr)(e,t)):this.node()[e]}function hr(e){return e.trim().split(/^|\s+/)}function gr(e){return e.classList||new _r(e)}function _r(e){this._node=e,this._names=hr(e.getAttribute(`class`)||``)}_r.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function vr(e,t){for(var n=gr(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function yr(e,t){for(var n=gr(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function br(e){return function(){vr(this,e)}}function xr(e){return function(){yr(this,e)}}function Sr(e,t){return function(){(t.apply(this,arguments)?vr:yr)(this,e)}}function Cr(e,t){var n=hr(e+``);if(arguments.length<2){for(var r=gr(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Sr:t?br:xr)(n,t))}function wr(){this.textContent=``}function Tr(e){return function(){this.textContent=e}}function Er(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function Dr(e){return arguments.length?this.each(e==null?wr:(typeof e==`function`?Er:Tr)(e)):this.node().textContent}function Or(){this.innerHTML=``}function kr(e){return function(){this.innerHTML=e}}function Ar(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function jr(e){return arguments.length?this.each(e==null?Or:(typeof e==`function`?Ar:kr)(e)):this.node().innerHTML}function Mr(){this.nextSibling&&this.parentNode.appendChild(this)}function Nr(){return this.each(Mr)}function Pr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fr(){return this.each(Pr)}function Ir(e){var t=typeof e==`function`?e:dn(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Lr(){return null}function Rr(e,t){var n=typeof e==`function`?e:dn(e),r=t==null?Lr:typeof t==`function`?t:pn(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function zr(){var e=this.parentNode;e&&e.removeChild(this)}function Br(){return this.each(zr)}function Vr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Ur(e){return this.select(e?Hr:Vr)}function Wr(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Gr(e){return function(t){e.call(this,t,this.__data__)}}function Kr(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function qr(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Jr(e,t,n){return function(){var r=this.__on,i,a=Gr(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Yr(e,t,n){var r=Kr(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}}else{for(s=t?Jr:qr,i=0;i<a;++i)this.each(s(r[i],t,n));return this}}function Xr(e,t,n){var r=ar(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Zr(e,t){return function(){return Xr(this,e,t)}}function Qr(e,t){return function(){return Xr(this,e,t.apply(this,arguments))}}function $r(e,t){return this.each((typeof t==`function`?Qr:Zr)(e,t))}function*ei(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var ti=[null];function J(e,t){this._groups=e,this._parents=t}function ni(){return new J([[document.documentElement]],ti)}function ri(){return this}J.prototype=ni.prototype={constructor:J,select:mn,selectAll:yn,selectChild:Tn,selectChildren:kn,filter:An,data:Rn,enter:Mn,exit:Bn,join:Vn,merge:Hn,selection:ri,order:Un,sort:Wn,call:Kn,nodes:qn,node:Jn,size:Yn,empty:Xn,each:Zn,attr:ir,style:lr,property:mr,classed:Cr,text:Dr,html:jr,raise:Nr,lower:Fr,append:Ir,insert:Rr,remove:Br,clone:Ur,datum:Wr,on:Yr,dispatch:$r,[Symbol.iterator]:ei};function Y(e){return typeof e==`string`?new J([[document.querySelector(e)]],[document.documentElement]):new J([[e]],ti)}var ii=0;function ai(){return new oi}function oi(){this._=`@`+(++ii).toString(36)}oi.prototype=ai.prototype={constructor:oi,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function si(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ci(e,t){if(e=si(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var li={capture:!0,passive:!1};function ui(e){e.preventDefault(),e.stopImmediatePropagation()}function di(e){var t=e.document.documentElement,n=Y(e).on(`dragstart.drag`,ui,li);`onselectstart`in t?n.on(`selectstart.drag`,ui,li):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function fi(e,t){var n=e.document.documentElement,r=Y(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,ui,li),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function pi(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function mi(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hi(){}var gi=.7,_i=1/gi,vi=`\\s*([+-]?\\d+)\\s*`,yi=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,X=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,bi=/^#([0-9a-f]{3,8})$/,xi=RegExp(`^rgb\\(${vi},${vi},${vi}\\)$`),Si=RegExp(`^rgb\\(${X},${X},${X}\\)$`),Ci=RegExp(`^rgba\\(${vi},${vi},${vi},${yi}\\)$`),wi=RegExp(`^rgba\\(${X},${X},${X},${yi}\\)$`),Ti=RegExp(`^hsl\\(${yi},${X},${X}\\)$`),Ei=RegExp(`^hsla\\(${yi},${X},${X},${yi}\\)$`),Di={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};pi(hi,Mi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Oi,formatHex:Oi,formatHex8:ki,formatHsl:Ai,formatRgb:ji,toString:ji});function Oi(){return this.rgb().formatHex()}function ki(){return this.rgb().formatHex8()}function Ai(){return Wi(this).formatHsl()}function ji(){return this.rgb().formatRgb()}function Mi(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=bi.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ni(t):n===3?new Z(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Pi(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Pi(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=xi.exec(e))?new Z(t[1],t[2],t[3],1):(t=Si.exec(e))?new Z(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ci.exec(e))?Pi(t[1],t[2],t[3],t[4]):(t=wi.exec(e))?Pi(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ti.exec(e))?Ui(t[1],t[2]/100,t[3]/100,1):(t=Ei.exec(e))?Ui(t[1],t[2]/100,t[3]/100,t[4]):Di.hasOwnProperty(e)?Ni(Di[e]):e===`transparent`?new Z(NaN,NaN,NaN,0):null}function Ni(e){return new Z(e>>16&255,e>>8&255,e&255,1)}function Pi(e,t,n,r){return r<=0&&(e=t=n=NaN),new Z(e,t,n,r)}function Fi(e){return e instanceof hi||(e=Mi(e)),e?(e=e.rgb(),new Z(e.r,e.g,e.b,e.opacity)):new Z}function Ii(e,t,n,r){return arguments.length===1?Fi(e):new Z(e,t,n,r??1)}function Z(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}pi(Z,Ii,mi(hi,{brighter(e){return e=e==null?_i:_i**+e,new Z(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gi:gi**+e,new Z(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Z(Vi(this.r),Vi(this.g),Vi(this.b),Bi(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:Li,formatHex:Li,formatHex8:Ri,formatRgb:zi,toString:zi}));function Li(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}`}function Ri(){return`#${Hi(this.r)}${Hi(this.g)}${Hi(this.b)}${Hi((isNaN(this.opacity)?1:this.opacity)*255)}`}function zi(){let e=Bi(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Vi(this.r)}, ${Vi(this.g)}, ${Vi(this.b)}${e===1?`)`:`, ${e})`}`}function Bi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Hi(e){return e=Vi(e),(e<16?`0`:``)+e.toString(16)}function Ui(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Q(e,t,n,r)}function Wi(e){if(e instanceof Q)return new Q(e.h,e.s,e.l,e.opacity);if(e instanceof hi||(e=Mi(e)),!e)return new Q;if(e instanceof Q)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Q(o,s,c,e.opacity)}function Gi(e,t,n,r){return arguments.length===1?Wi(e):new Q(e,t,n,r??1)}function Q(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}pi(Q,Gi,mi(hi,{brighter(e){return e=e==null?_i:_i**+e,new Q(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gi:gi**+e,new Q(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Z(Ji(e>=240?e-240:e+120,i,r),Ji(e,i,r),Ji(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Q(Ki(this.h),qi(this.s),qi(this.l),Bi(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(){let e=Bi(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ki(this.h)}, ${qi(this.s)*100}%, ${qi(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ki(e){return e=(e||0)%360,e<0?e+360:e}function qi(e){return Math.max(0,Math.min(1,e||0))}function Ji(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Yi=e=>()=>e;function Xi(e,t){return function(n){return e+n*t}}function Zi(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Qi(e){return(e=+e)==1?$i:function(t,n){return n-t?Zi(t,n,e):Yi(isNaN(t)?n:t)}}function $i(e,t){var n=t-e;return n?Xi(e,n):Yi(isNaN(e)?t:e)}var ea=(function e(t){var n=Qi(t);function r(e,t){var r=n((e=Ii(e)).r,(t=Ii(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=$i(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function ta(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var na=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ra=new RegExp(na.source,`g`);function ia(e){return function(){return e}}function aa(e){return function(t){return e(t)+``}}function oa(e,t){var n=na.lastIndex=ra.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=na.exec(e))&&(i=ra.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:ta(r,i)})),n=ra.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?aa(c[0].x):ia(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var sa=180/Math.PI,ca={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function la(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*sa,skewX:Math.atan(c)*sa,scaleX:o,scaleY:s}}var ua;function da(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ca:la(t.a,t.b,t.c,t.d,t.e,t.f)}function fa(e){return e==null||(ua||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),ua.setAttribute(`transform`,e),!(e=ua.transform.baseVal.consolidate()))?ca:(e=e.matrix,la(e.a,e.b,e.c,e.d,e.e,e.f))}function pa(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:ta(e,i)},{i:c-2,x:ta(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:ta(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:ta(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:ta(e,n)},{i:s-2,x:ta(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ma=pa(da,`px, `,`px)`,`deg)`),ha=pa(fa,`, `,`)`,`)`),ga=1e-12;function _a(e){return((e=Math.exp(e))+1/e)/2}function va(e){return((e=Math.exp(e))-1/e)/2}function ya(e){return((e=Math.exp(2*e))-1)/(e+1)}var ba=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<ga)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=_a(y),c=s/(n*g)*(i*ya(t*r+y)-va(y));return[a+c*d,o+c*f,s*i/_a(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),xa=mt(`start`,`end`,`cancel`,`interrupt`),Sa=[];function Ca(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Ea(e,n,{name:t,index:r,group:i,on:xa,tween:Sa,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function wa(e,t){var n=$(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Ta(e,t){var n=$(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function $(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Ea(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Nt(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return zt(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(zt(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Da(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n)(r=n[o]).name===t?(i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]):a=!1;a&&delete e.__transition}}function Oa(e){return this.each(function(){Da(this,e)})}function ka(e,t){var n,r;return function(){var i=Ta(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Aa(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Ta(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function ja(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=$(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?ka:Aa)(n,e,t))}function Ma(e,t,n){var r=e._id;return e.each(function(){var e=Ta(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return $(e,r).value[t]}}function Na(e,t){var n;return(typeof t==`number`?ta:t instanceof Mi?ea:(n=Mi(t))?(t=n,ea):oa)(e,t)}function Pa(e){return function(){this.removeAttribute(e)}}function Fa(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ia(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function La(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Ra(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function za(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ba(e,t){var n=cn(e),r=n===`transform`?ha:Na;return this.attrTween(e,typeof t==`function`?(n.local?za:Ra)(n,r,Ma(this,`attr.`+e,t)):t==null?(n.local?Fa:Pa)(n):(n.local?La:Ia)(n,r,t))}function Va(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ha(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Ua(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ha(e,i)),n}return i._value=t,i}function Wa(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Va(e,i)),n}return i._value=t,i}function Ga(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=cn(e);return this.tween(n,(r.local?Ua:Wa)(r,t))}function Ka(e,t){return function(){wa(this,e).delay=+t.apply(this,arguments)}}function qa(e,t){return t=+t,function(){wa(this,e).delay=t}}function Ja(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ka:qa)(t,e)):$(this.node(),t).delay}function Ya(e,t){return function(){Ta(this,e).duration=+t.apply(this,arguments)}}function Xa(e,t){return t=+t,function(){Ta(this,e).duration=t}}function Za(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Ya:Xa)(t,e)):$(this.node(),t).duration}function Qa(e,t){if(typeof t!=`function`)throw Error();return function(){Ta(this,e).ease=t}}function $a(e){var t=this._id;return arguments.length?this.each(Qa(t,e)):$(this.node(),t).ease}function eo(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Ta(this,e).ease=n}}function to(e){if(typeof e!=`function`)throw Error();return this.each(eo(this._id,e))}function no(e){typeof e!=`function`&&(e=bn(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Mo(r,this._parents,this._name,this._id)}function ro(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Mo(o,this._parents,this._name,this._id)}function io(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function ao(e,t,n){var r,i,a=io(t)?wa:Ta;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function oo(e,t){var n=this._id;return arguments.length<2?$(this.node(),n).on.on(e):this.each(ao(n,e,t))}function so(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function co(){return this.on(`end.remove`,so(this._id))}function lo(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=pn(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Ca(l[f],t,n,f,l,$(u,n)));return new Mo(a,this._parents,t,n)}function uo(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=_n(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=$(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Ca(p,t,n,h,f,m);a.push(f),o.push(u)}return new Mo(a,o,t,n)}var fo=ni.prototype.constructor;function po(){return new fo(this._groups,this._parents)}function mo(e,t){var n,r,i;return function(){var a=ur(this,e),o=(this.style.removeProperty(e),ur(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function ho(e){return function(){this.style.removeProperty(e)}}function go(e,t,n){var r,i=n+``,a;return function(){var o=ur(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function _o(e,t,n){var r,i,a;return function(){var o=ur(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),ur(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function vo(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Ta(this,e),l=c.on,u=c.value[a]==null?s||=ho(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function yo(e,t,n){var r=(e+=``)==`transform`?ma:Na;return t==null?this.styleTween(e,mo(e,r)).on(`end.style.`+e,ho(e)):typeof t==`function`?this.styleTween(e,_o(e,r,Ma(this,`style.`+e,t))).each(vo(this._id,e)):this.styleTween(e,go(e,r,t),n).on(`end.style.`+e,null)}function bo(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function xo(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&bo(e,a,n)),r}return a._value=t,a}function So(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,xo(e,t,n??``))}function Co(e){return function(){this.textContent=e}}function wo(e){return function(){var t=e(this);this.textContent=t??``}}function To(e){return this.tween(`text`,typeof e==`function`?wo(Ma(this,`text`,e)):Co(e==null?``:e+``))}function Eo(e){return function(t){this.textContent=e.call(this,t)}}function Do(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Eo(r)),t}return r._value=e,r}function Oo(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Do(e))}function ko(){for(var e=this._name,t=this._id,n=No(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=$(c,t);Ca(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Mo(r,this._parents,e,n)}function Ao(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Ta(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var jo=0;function Mo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function No(){return++jo}var Po=ni.prototype;Mo.prototype={constructor:Mo,select:lo,selectAll:uo,selectChild:Po.selectChild,selectChildren:Po.selectChildren,filter:no,merge:ro,selection:po,transition:ko,call:Po.call,nodes:Po.nodes,node:Po.node,size:Po.size,empty:Po.empty,each:Po.each,on:oo,attr:Ba,attrTween:Ga,style:yo,styleTween:So,text:To,textTween:Oo,remove:co,tween:ja,delay:Ja,duration:Za,ease:$a,easeVarying:to,end:Ao,[Symbol.iterator]:Po[Symbol.iterator]};function Fo(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Io={time:null,delay:0,duration:250,ease:Fo};function Lo(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Ro(e){var t,n;e instanceof Mo?(t=e._id,e=e._name):(t=No(),(n=Io).time=At(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Ca(c,e,t,l,o,n||Lo(c,t));return new Mo(r,this._parents,e,t)}ni.prototype.interrupt=Oa,ni.prototype.transition=Ro;var zo=e=>()=>e;function Bo(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Vo(e,t,n){this.k=e,this.x=t,this.y=n}Vo.prototype={constructor:Vo,scale:function(e){return e===1?this:new Vo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Vo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var Ho=new Vo(1,0,0);Uo.prototype=Vo.prototype;function Uo(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ho;return e.__zoom}function Wo(e){e.stopImmediatePropagation()}function Go(e){e.preventDefault(),e.stopImmediatePropagation()}function Ko(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function qo(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Jo(){return this.__zoom||Ho}function Yo(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Xo(){return navigator.maxTouchPoints||`ontouchstart`in this}function Zo(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Qo(){var e=Ko,t=qo,n=Zo,r=Yo,i=Xo,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ba,l=mt(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,Jo).on(`wheel.zoom`,te,{passive:!1}).on(`mousedown.zoom`,C).on(`dblclick.zoom`,w).filter(i).on(`touchstart.zoom`,ne).on(`touchmove.zoom`,T).on(`touchend.zoom touchcancel.zoom`,E).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,Jo),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(Ho.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new Vo(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new Vo(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new Vo(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new ee(e,t)}function ee(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}ee.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=Y(this.that).datum();l.call(e,this.that,new Bo(e,{sourceEvent:this.sourceEvent,target:_,transform:this.that.__zoom,dispatch:l}),t)}};function te(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=ci(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Da(this),s.start();Go(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function C(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=Y(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=ci(t,i),l=t.clientX,u=t.clientY;di(t.view),Wo(t),a.mouse=[c,this.__zoom.invert(c)],Da(this),a.start();function d(e){if(Go(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=ci(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),fi(e.view,a.moved),Go(e),a.event(e).end()}}function w(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=ci(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);Go(r),s>0?Y(this).transition().duration(s).call(x,d,c,r):Y(this).call(_.transform,d,c,r)}}function ne(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(Wo(t),s=0;s<i;++s)c=r[s],l=ci(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Da(this),a.start())}}function T(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(Go(e),s=0;s<a;++s)c=i[s],l=ci(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function E(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(Wo(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=ci(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=Y(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:zo(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:zo(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:zo(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:zo([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var $o=[`height`,`viewBox`,`width`],es=[`id`],ts=[`fill`],ns=[`transform`],rs=[`cx`,`cy`,`fill`,`fill-opacity`,`r`,`stroke`,`stroke-opacity`],is=[`stroke`,`stroke-opacity`,`stroke-width`,`marker-end`,`x1`,`x2`,`y1`,`y2`],as=[`stroke`,`marker-end`,`x1`,`x2`,`y1`,`y2`],os=[`opacity`,`aria-label`,`transform`,`onClick`,`onKeydown`,`onPointercancel`,`onPointerdown`,`onPointermove`,`onPointerup`],ss=[`fill`,`r`,`stroke`,`stroke-opacity`,`stroke-width`],cs={key:0,class:`pointer-events-none`},ls=[`fill`,`fill-opacity`,`stroke`,`stroke-opacity`,`width`,`x`],us=[`fill`,`text-anchor`,`x`],ds=[`fill`,`text-anchor`,`x`],fs={class:`absolute bottom-3 left-3 z-30 grid grid-cols-2 gap-x-3 gap-y-1.5 border border-base bg-glass px-3 py-2 shadow`},ps={class:`truncate`},ms={class:`absolute bottom-3 right-3 z-30 flex flex-col items-end gap-2`},hs={class:`w-28 flex items-center justify-between gap-0.5 rounded-full border border-base bg-glass p-1 shadow`},gs=[`disabled`],_s={class:`font-state-field h-8 w-8 rounded-full bg-active color-muted flex items-center justify-center text-3.5`},vs=[`disabled`],ys={class:`w-28 flex items-center justify-between gap-0.5 rounded-full border border-base bg-glass p-1 shadow`},bs=680,xs=460,Ss=34,Cs=1,ws=6,Ts=d({__name:`ReactivityGraphCanvas`,props:c({graph:{},path:{},pathSelectorOpen:{type:Boolean}},{selectedNodeId:{},selectedNodeIdModifiers:{},dependencyDepth:{required:!0},dependencyDepthModifiers:{}}),emits:c([`select`],[`update:selectedNodeId`,`update:dependencyDepth`]),setup(a,{emit:c}){let d=a,g=l(a,`selectedNodeId`),S=l(a,`dependencyDepth`),T=c,E=ee(d,`graph`),D=ee(d,`pathSelectorOpen`),O=f(()=>!!d.path),j=f(()=>d.path??fe());function ie(e){T(`select`,e)}let M=[`#13966f`,`#3b82d6`,`#c58119`,`#d84f45`,`#0891b2`,`#db2777`,`#7c3aed`,`#64748b`],N=p(),P=p(),F=p(960),I=p(640),L=p({x:0,y:0,k:1}),z=p(0),B=b([]),le=b([]),ue=f(()=>new Map(B.value.map(e=>[e.id,e]))),de=b([]),pe,me,he,ge,_e=f(()=>[E.value.nodes.map(e=>`${e.id}:${e.type}:${e.label}`).join(`|`),E.value.relationships.map(e=>`${e.id}:${e.from}:${e.to}`).join(`|`)].join(`::`)),ve=f(()=>({links:le.value,nodes:B.value,version:z.value})),ye=f(()=>{if(!O.value)return[];let e=j.value.relationshipIds;return ve.value.links.filter(t=>e.has(t.id))}),be=f(()=>{let e=oe(de.value,F.value,I.value);return de.value.map(t=>{let n=e.get(t.id)??{x:F.value/2,y:I.value/2};return{...t,color:it(t.id),radius:Math.max(86,Math.min(210,56+Math.sqrt(t.nodeCount)*34)),x:n.x,y:n.y}})}),xe=f(()=>`translate(${L.value.x} ${L.value.y}) scale(${L.value.k})`),Se=f(()=>`${Math.round(L.value.k*100)}%`),Ce=f(()=>B.value.find(e=>e.id===g.value)),we=f(()=>Ce.value?de.value.find(e=>e.id===Ce.value?.group):void 0),Te=f(()=>{if(!g.value)return Oe();let e=ke(g.value,`dependencies`,S.value),t=ke(g.value,`subscribers`,S.value),n=new Set([g.value,...e.nodeIds,...t.nodeIds]);return{dependencyNodeIds:e.nodeIds,nodeIds:n,relationshipIds:new Set([...e.relationshipIds,...t.relationshipIds]),subscriberNodeIds:t.nodeIds}}),Ee=f(()=>O.value?j.value.relationshipIds:Te.value.relationshipIds),De=f(()=>O.value?j.value.nodeIds:Te.value.nodeIds);function Oe(){return{dependencyNodeIds:new Set,nodeIds:new Set,relationshipIds:new Set,subscriberNodeIds:new Set}}function ke(e,t,n){let r=new Set,i=new Set,a=new Set([e]),o=new Set([e]);for(let e=0;e<n&&o.size;e+=1){let e=new Set;for(let n of le.value){let s=t===`dependencies`?n.from:n.to,c=t===`dependencies`?n.to:n.from;o.has(c)&&(i.add(n.id),r.add(s),a.has(s)||(a.add(s),e.add(s)))}o=e}return{nodeIds:r,relationshipIds:i}}function Ae(e){S.value=Math.min(ws,Math.max(Cs,e))}function je(e){Ae(S.value+e)}function Me(){me?.stop();let e=ae(E.value,F.value,I.value);if(B.value=e.nodes,le.value=e.links,de.value=e.groups,z.value+=1,g.value&&!e.nodes.some(e=>e.id===g.value)&&(g.value=void 0),g.value||D.value||O.value||(g.value=nt(e.nodes)?.id),!e.nodes.length){me=void 0;return}let t=oe(e.groups,F.value,I.value);me=tn(e.nodes).force(`link`,Kt(e.links).id(e=>e.id).distance(e=>e.group===we.value?.id?92:112).strength(.58)).force(`charge`,nn().strength(e=>-260-e.radius*14)).force(`collide`,Ut().radius(e=>e.radius+Qe(e))).force(`x`,rn(e=>t.get(e.group)?.x??F.value/2).strength(.085)).force(`y`,an(e=>t.get(e.group)?.y??I.value/2).strength(.085)).alpha(.95).alphaDecay(.022).on(`tick`,()=>{z.value+=1})}function Ne(){me&&me.force(`collide`,Ut().radius(e=>e.radius+Qe(e))).alpha(.32).restart()}function Pe(){P.value&&(he=Qo().scaleExtent([.32,2.6]).filter(e=>{let t=e.target;return e.type===`mousedown`&&t?.closest(`[data-graph-node]`)?!1:(!e.ctrlKey||e.type===`wheel`)&&!e.button}).on(`zoom`,e=>{L.value={k:e.transform.k,x:e.transform.x,y:e.transform.y}}),Y(P.value).call(he),t(Fe))}function Fe(){if(!P.value||!he)return;let e=Le();if(!e){Y(P.value).call(he.transform,Ho);return}let t=Math.max(1,e.maxX-e.minX),n=Math.max(1,e.maxY-e.minY),r=Math.min(1.45,Math.max(.42,Math.min((F.value-96)/t,(I.value-96)/n))),i=(e.minX+e.maxX)/2,a=(e.minY+e.maxY)/2,o=Ho.translate(F.value/2,I.value/2).scale(r).translate(-i,-a);Y(P.value).call(he.transform,o)}function Ie(e){P.value&&he&&Y(P.value).call(he.scaleBy,e)}function Le(){let e=B.value;if(!e.length)return;let t=1/0,n=1/0,r=-1/0,i=-1/0;for(let a of e){let e=a.x??F.value/2,o=a.y??I.value/2;t=Math.min(t,e-a.radius-72),n=Math.min(n,o-a.radius-32),r=Math.max(r,e+a.radius+142),i=Math.max(i,o+a.radius+32)}return{minX:t,minY:n,maxX:r,maxY:i}}function Re(e,t){e.stopPropagation(),ie(t.id),ge=t.id,t.fx=t.x,t.fy=t.y,me?.alphaTarget(.28).restart(),e.currentTarget.setPointerCapture(e.pointerId)}function ze(e,t){if(ge!==t.id)return;let n=Ve(e);t.fx=n.x,t.fy=n.y,z.value+=1}function Be(e,t){ge===t.id&&(ge=void 0,t.fx=null,t.fy=null,me?.alphaTarget(0),e.currentTarget.releasePointerCapture(e.pointerId))}function Ve(e){if(!P.value)return{x:e.offsetX,y:e.offsetY};let t=P.value.createSVGPoint();t.x=e.clientX,t.y=e.clientY;let n=P.value.getScreenCTM(),r=n?t.matrixTransform(n.inverse()):t;return{x:(r.x-L.value.x)/L.value.k,y:(r.y-L.value.y)/L.value.k}}function He(e){return We(e.source)}function Ue(e){return We(e.target)}function We(e){if(typeof e==`object`)return e;if(e!=null)return ue.value.get(String(e))}function Ge(e){return Ye(e,`source`).x}function Ke(e){return Ye(e,`source`).y}function qe(e){return Ye(e,`target`).x}function Je(e){return Ye(e,`target`).y}function Ye(e,t){let n=He(e),r=Ue(e);if(!n||!r)return{x:F.value/2,y:I.value/2};let i=n.x??F.value/2,a=n.y??I.value/2,o=r.x??F.value/2,s=r.y??I.value/2,c=o-i,l=s-a,u=Math.hypot(c,l)||1,d=c/u,f=l/u;if(t===`source`){let e=n.radius+2;return{x:i+d*e,y:a+f*e}}let p=r.radius+6;return{x:o-d*p,y:s-f*p}}function U(e){return O.value?Ee.value.has(e.id):!g.value||Ee.value.has(e.id)}function Xe(e){return O.value?De.value.has(e.id):!g.value||De.value.has(e.id)}function W(e){return O.value&&De.value.has(e.id)}function Ze(e){return O.value?De.value.has(e.id):g.value?e.id===g.value||De.value.has(e.id):rt(e)>=4}function Qe(e){return Ze(e)?44+e.labelWidth*.16:20}function G(e){let t=F.value/2;return(e.x??t)>t?`left`:`right`}function $e(e){let t=e.radius+8;return G(e)===`left`?-e.labelWidth-t:t}function et(e){return G(e)===`left`?$e(e)+e.labelWidth-10:$e(e)+10}function tt(e){return G(e)===`left`?`end`:`start`}function nt(e){return[...e].sort((e,t)=>rt(t)-rt(e)).at(0)}function rt(e){let t=Math.min(e.incoming,e.outgoing)*2,n=e.type===`computed`?2:+(e.type===`watch`||e.type===`effect`);return e.incoming+e.outgoing+t+n}function it(e){return M[e%M.length]}function at(e){return O.value||g.value?U(e)?it(e.group):`#888888`:it(e.group)}function ot(e){return O.value?U(e)?.9:.08:g.value?U(e)?.72:.12:.42}function st(e){return O.value?U(e)?2.8:1:U(e)?1.8:1.1}function ct(e){return`url(#${(g.value||O.value)&&!U(e)?`reactivity-arrow-muted`:`reactivity-arrow-${e.group%M.length}`})`}function lt(e){return O.value?Xe(e)?1:.18:g.value?Xe(e)?1:.28:1}function ut(e){return e.id===g.value||W(e)?`#111827`:`#ffffff`}function dt(e){return e.id===g.value||W(e)?.72:.92}function ft(e){return e.id===g.value||W(e)?3:1.5}return e(()=>{N.value&&(pe=new ResizeObserver(([e])=>{F.value=Math.max(bs,e.contentRect.width),I.value=Math.max(xs,e.contentRect.height)}),pe.observe(N.value)),Pe()}),o([_e,F,I],()=>{Me(),t(Fe)},{immediate:!0}),o([g,S,()=>d.path],Ne),_(()=>{pe?.disconnect(),me?.stop()}),(e,t)=>{let a=ne(`tooltip`);return s(),h(`div`,{ref_key:`container`,ref:N,class:`relative h-full min-w-0 overflow-hidden bg-subtle bg-dots select-none`},[(s(),h(`svg`,{ref_key:`svg`,ref:P,class:`h-full w-full touch-none`,role:`img`,"aria-label":`Vue reactivity dependency graph`,height:I.value,viewBox:`0 0 ${F.value} ${I.value}`,width:F.value},[m(`defs`,null,[t[4]||=m(`marker`,{id:`reactivity-arrow-muted`,markerHeight:`10`,markerUnits:`userSpaceOnUse`,markerWidth:`10`,orient:`auto`,refX:`8`,refY:`0`,viewBox:`0 -5 10 10`},[m(`path`,{d:`M 0 -4 L 9 0 L 0 4 z`,fill:`#888888`,opacity:`0.42`})],-1),(s(),h(v,null,i(M,(e,t)=>m(`marker`,{id:`reactivity-arrow-${t}`,key:`arrow-${t}`,markerHeight:`10`,markerUnits:`userSpaceOnUse`,markerWidth:`10`,orient:`auto`,refX:`8`,refY:`0`,viewBox:`0 -5 10 10`},[m(`path`,{d:`M 0 -4 L 9 0 L 0 4 z`,fill:it(t),opacity:`0.82`},null,8,ts)],8,es)),64))]),m(`g`,{transform:xe.value},[(s(!0),h(v,null,i(be.value,e=>(s(),h(`circle`,{key:`group-${e.id}`,cx:e.x,cy:e.y,fill:e.color,"fill-opacity":we.value&&we.value.id!==e.id?.025:.07,r:e.radius,stroke:e.color,"stroke-opacity":we.value&&we.value.id!==e.id?.08:.18,"stroke-dasharray":`5 6`,"stroke-width":`1`},null,8,rs))),128)),(s(!0),h(v,null,i(ve.value.links,e=>(s(),h(`line`,{key:e.id,stroke:at(e),"stroke-linecap":`round`,"stroke-opacity":ot(e),"stroke-width":st(e),"marker-end":ct(e),x1:Ge(e),x2:qe(e),y1:Ke(e),y2:Je(e)},null,8,is))),128)),(s(!0),h(v,null,i(ye.value,e=>(s(),h(`line`,{key:`path-${e.id}`,class:`pointer-events-none`,stroke:at(e),"stroke-linecap":`round`,"stroke-opacity":`0.96`,"stroke-width":`3.4`,"marker-end":ct(e),x1:Ge(e),x2:qe(e),y1:Ke(e),y2:Je(e)},null,8,as))),128)),(s(!0),h(v,null,i(ve.value.nodes,e=>(s(),h(`g`,{key:e.id,"data-graph-node":``,class:`cursor-grab outline-none active:cursor-grabbing`,opacity:lt(e),role:`button`,tabindex:`0`,"aria-label":`Select ${x(R)(e)} graph node`,transform:`translate(${e.x??F.value/2} ${e.y??I.value/2})`,onClick:A(t=>ie(e.id),[`stop`]),onKeydown:re(A(t=>ie(e.id),[`prevent`]),[`enter`]),onPointercancel:t=>Be(t,e),onPointerdown:t=>Re(t,e),onPointermove:t=>ze(t,e),onPointerup:t=>Be(t,e)},[m(`circle`,{fill:x(V)(e.type),r:e.radius,stroke:ut(e),"stroke-opacity":dt(e),"stroke-width":ft(e),class:`dark:stroke-#f8fafc`},null,8,ss),Ze(e)?(s(),h(`g`,cs,[m(`rect`,{fill:e.id===g.value?`#f8fafc`:`#111827`,"fill-opacity":e.id===g.value?.96:.9,height:Ss,rx:`5`,stroke:it(e.group),"stroke-opacity":e.id===g.value?.82:.34,"stroke-width":`1`,width:e.labelWidth,x:$e(e),y:`-17`},null,8,ls),m(`text`,{class:`font-state-field text-3 font-700`,"dominant-baseline":`middle`,fill:e.id===g.value?`#111827`:`#f8fafc`,"text-anchor":tt(e),x:et(e),y:`-5`},n(x(se)(x(R)(e))),9,us),m(`text`,{class:`text-2.25 font-800`,"dominant-baseline":`middle`,fill:e.id===g.value?`#475569`:`#94a3b8`,"text-anchor":tt(e),x:et(e),y:`9`},n(x(H)(e.type)),9,ds)])):y(``,!0),m(`title`,null,n(x(R)(e))+` - `+n(x(H)(e.type)),1)],40,os))),128))],8,ns)],8,$o)),m(`div`,fs,[(s(!0),h(v,null,i(x(ce),e=>(s(),h(`div`,{key:e,class:`font-state-field min-w-23 flex items-center gap-1.5 color-base text-3.5`},[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(V)(e)})},null,4),m(`span`,ps,n(x(H)(e)),1)]))),128))]),m(`div`,ms,[u((s(),h(`div`,hs,[u((s(),h(`button`,{class:C([`h-8 w-8 rounded-full border-0 bg-transparent color-base flex items-center justify-center hover:bg-active`,S.value<=Cs?`op35`:``]),type:`button`,"aria-label":`Decrease relationship depth`,disabled:S.value<=Cs,onClick:t[0]||=A(e=>je(-1),[`stop`])},[w(k,{icon:`i-carbon-subtract`,class:`text-4`})],10,gs)),[[a,`Decrease relationship depth`,void 0,{top:!0}]]),m(`span`,_s,n(S.value),1),u((s(),h(`button`,{class:C([`h-8 w-8 rounded-full border-0 bg-transparent color-base flex items-center justify-center hover:bg-active`,S.value>=ws?`op35`:``]),type:`button`,"aria-label":`Increase relationship depth`,disabled:S.value>=ws,onClick:t[1]||=A(e=>je(1),[`stop`])},[w(k,{icon:`i-carbon-add`,class:`text-4`})],10,vs)),[[a,`Increase relationship depth`,void 0,{top:!0}]])])),[[a,`Relationship depth`,void 0,{top:!0}]]),m(`div`,ys,[u((s(),h(`button`,{class:`h-8 w-8 rounded-full border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Zoom out`,onClick:t[2]||=A(e=>Ie(.82),[`stop`])},[w(k,{icon:`i-carbon-zoom-out`,class:`text-4`})])),[[a,`Zoom out`,void 0,{top:!0}]]),u((s(),h(`button`,{class:`h-8 min-w-10 rounded-full border-0 bg-transparent px-1.5 color-muted text-3 hover:bg-active hover:color-base`,type:`button`,"aria-label":`Fit graph`,onClick:A(Fe,[`stop`])},[te(n(Se.value),1)])),[[a,`Fit graph`,void 0,{top:!0}]]),u((s(),h(`button`,{class:`h-8 w-8 rounded-full border-0 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Zoom in`,onClick:t[3]||=A(e=>Ie(1.18),[`stop`])},[w(k,{icon:`i-carbon-zoom-in`,class:`text-4`})])),[[a,`Zoom in`,void 0,{top:!0}]])])])],512)}}}),Es={class:`h-full min-w-0 overflow-auto p-3`},Ds={key:0},Os={key:0,class:`grid gap-0.5`},ks=[`onClick`],As={class:`w-4 shrink-0 text-right color-muted font-state-field text-3`},js={class:`min-w-0 flex-1 truncate font-state-field text-3.5`},Ms={key:0,class:`color-muted`},Ns={class:`shrink-0 color-muted text-3`},Ps={key:0,class:`h-7 color-muted flex items-center justify-center`},Fs={key:1,class:`h-28 flex items-center justify-center color-muted text-3.5 italic`},Is={class:`pb-4`},Ls={class:`grid gap-0.5`},Rs={class:`state-key shrink-0 overflow-hidden text-ellipsis whitespace-nowrap op70`},zs={class:`border-t border-base pt-4`},Bs={class:`overflow-x-auto pb-2`},Vs=[`height`,`width`],Hs=[`d`],Us=[`onClick`],Ws={class:`min-w-0 flex items-center gap-1.5`},Gs={class:`truncate font-state-field text-3.5`},Ks={key:1,class:`h-28 flex items-center justify-center color-muted text-3.5 italic`},qs={key:2,class:`m-0 color-muted text-3 leading-5`},Js=20,Ys=d({__name:`ReactivityGraphDetails`,props:{graph:{},filteredGraph:{},selectedNodeId:{},dependencyDepth:{},path:{}},emits:[`select`],setup(e,{emit:t}){let a=e,o=t,c=ee(a,`selectedNodeId`),l=ee(a,`dependencyDepth`),d=ee(a,`filteredGraph`),p=f(()=>a.filteredGraph.nodes),g=f(()=>a.filteredGraph.relationships),_=f(()=>!!a.path),b=f(()=>a.path??fe());function S(e){o(`select`,e)}let T={width:180,height:30,padding:4,columnGap:52,canvasPadding:16,dot:16},E=f(()=>new Map(a.graph.nodes.map(e=>[e.id,e]))),D=f(()=>b.value.orderedNodeIds.map(e=>E.value.get(e)).filter(e=>e!==void 0)),O=f(()=>{let e=new Map(d.value.relationships.map(e=>[e.id,e]));return b.value.orderedRelationshipIds.map(t=>e.get(t)).filter(e=>e!==void 0)}),re=f(()=>new Map(p.value.map(e=>[e.id,e]))),A=f(()=>p.value.find(e=>e.id===c.value)),j=f(()=>c.value&&E.value.has(c.value)?L(E.value.get(c.value)):[]),ie=f(()=>F(`dependency`)),M=f(()=>F(`subscriber`)),N=f(()=>I());function P(e){return e?T.height*e+T.padding*(e+1):0}function F(e){let t=[],n=new Map,r=c.value;if(!r)return{depthById:n,layers:t};let i=new Set([r]),a=new Set([r]),o=0;for(let r=1;r<=l.value&&a.size;r+=1){let s=[],c=new Set;for(let t of g.value){let n=e===`dependency`?t.from:t.to,r=e===`dependency`?t.to:t.from;if(a.has(r)&&!(i.has(n)||c.has(n))&&re.value.has(n)&&(s.push(n),c.add(n),o+s.length>=Js))break}let l=s.slice(0,Js-o).map(e=>re.value.get(e)).filter(e=>e!==void 0);if(!l.length)break;for(let e of l)i.add(e.id),n.set(e.id,r);if(t.push(l),o+=l.length,a=new Set(l.map(e=>e.id)),o>=Js)break}return{depthById:n,layers:t}}function I(){let e=c.value;if(!e)return{centerX:T.canvasPadding+T.dot/2,centerY:T.dot/2,height:T.dot,links:[],nodes:[],width:T.canvasPadding*2+T.dot};let t=ie.value.layers,n=ie.value.depthById,r=M.value.layers,i=M.value.depthById,a=T.width+T.columnGap,o=T.canvasPadding+r.length*a+T.dot/2,s=T.canvasPadding*2+r.length*a+T.dot+t.length*a,l=Math.max(T.dot,...r.map(e=>P(e.length)),...t.map(e=>P(e.length))),u=l/2,d=[],f=[],p=new Map;r.forEach((e,t)=>{let n=t+1,r=P(e.length),i=(l-r)/2+T.padding,s=o-T.dot/2-T.columnGap-T.width-t*a;e.forEach((e,r)=>{let a=i+r*(T.height+T.padding)+T.height/2,o={depth:n,node:e,side:`subscriber`,x:s,y:a};d.push(o),t===0&&f.push(a),p.set(e.id,{node:o,x:s,y:a})})}),t.forEach((e,t)=>{let n=t+1,r=P(e.length),i=(l-r)/2+T.padding,s=o+T.dot/2+T.columnGap+t*a;e.forEach((e,r)=>{let a=i+r*(T.height+T.padding)+T.height/2,o={depth:n,node:e,side:`dependency`,x:s,y:a};d.push(o),t===0&&f.push(a),p.set(e.id,{node:o,x:s,y:a})})}),f.length&&(u=(Math.min(...f)+Math.max(...f))/2),p.set(e,{x:o,y:u});let m=[];for(let t of g.value){let r=n.get(t.from),a=t.to===e?0:n.get(t.to);if(r!==void 0&&a!==void 0&&r===a+1){let e=p.get(t.to),n=p.get(t.from);e&&n&&m.push({id:`dependency:${t.id}`,path:se(oe(e),e.y,n.x,n.y)})}let o=i.get(t.to),s=t.from===e?0:i.get(t.from);if(o!==void 0&&s!==void 0&&o===s+1){let e=p.get(t.to),n=p.get(t.from);e&&n&&m.push({id:`subscriber:${t.id}`,path:se(oe(e),e.y,ae(n),n.y)})}}return{centerX:o,centerY:u,height:l,links:m,nodes:d,width:s}}function ae(e){return e.node?e.x:e.x-T.dot/2}function oe(e){return e.node?e.x+T.width:e.x+T.dot/2}function se(e,t,n,r){let i=(e+n)/2;return`M ${e} ${t} C ${i} ${t} ${i} ${r} ${n} ${r}`}function L(e){let t=de(e);return[{key:`key`,value:z(R(e)),valueClass:`string-state-type`},{key:`type`,value:z(H(e.type)),valueClass:`string-state-type`},{key:`value`,value:t||`undefined`,valueClass:t?B(t):`null-state-type`}]}function z(e){return JSON.stringify(e)}function B(e){return e===`null`||e===`undefined`?`null-state-type`:e===`true`||e===`false`?`boolean-state-type`:e.startsWith(`"`)?`string-state-type`:/^-?\d/.test(e)||e.startsWith(`Symbol(`)?`literal-state-type`:`state-value`}function ce(e){let t=de(e);return t?t.length>28?`${t.slice(0,27)}...`:t:``}return(e,t)=>{let a=ne(`tooltip`);return s(),h(`aside`,Es,[_.value?(s(),h(`section`,Ds,[D.value.length?(s(),h(`div`,Os,[(s(!0),h(v,null,i(D.value,(e,t)=>(s(),h(v,{key:e.id},[m(`button`,{class:`min-w-0 rounded-1 border border-base bg-base px-2 py-1.5 text-left color-base flex items-center gap-2 hover:bg-active`,type:`button`,onClick:t=>S(e.id)},[m(`span`,As,n(t+1),1),m(`span`,{class:`h-2.5 w-2.5 shrink-0 rounded-full`,style:r({background:x(V)(e.type)})},null,4),u((s(),h(`span`,js,[m(`span`,null,n(x(R)(e)),1),ce(e)?(s(),h(`span`,Ms,` (`+n(ce(e))+`) `,1)):y(``,!0)])),[[a,x(de)(e),void 0,{top:!0}]]),m(`span`,Ns,n(x(H)(e.type)),1)],8,ks),t<O.value.length?(s(),h(`div`,Ps,[w(k,{icon:`i-carbon-arrow-down`,class:`text-4`})])):y(``,!0)],64))),128))])):(s(),h(`div`,Fs,` No relationship path found `))])):A.value?(s(),h(v,{key:1},[m(`section`,Is,[t[1]||=m(`h2`,{class:`mb-2 color-muted font-state-field text-3.5`},`Info`,-1),m(`div`,Ls,[(s(!0),h(v,null,i(j.value,e=>(s(),h(`div`,{key:e.key,class:`font-state-field min-w-0 flex items-center text-3.5`},[m(`span`,Rs,n(e.key),1),t[0]||=m(`span`,{class:`colon mx-1 shrink-0`},`:`,-1),u((s(),h(`span`,{class:C([`min-w-0 flex-1 overflow-hidden text-ellipsis whitespace-nowrap`,e.valueClass])},[te(n(e.value),1)],2)),[[a,e.value,void 0,{top:!0}]])]))),128))])]),m(`section`,zs,[t[2]||=m(`h2`,{class:`mb-2 color-muted font-state-field text-3.5`},`Relationships`,-1),m(`div`,Bs,[N.value.nodes.length?(s(),h(`div`,{key:0,class:`relative select-none`,style:r({width:`${N.value.width}px`,height:`${N.value.height}px`})},[(s(),h(`svg`,{"pointer-events-none":``,class:`absolute left-0 top-0 z-10`,height:N.value.height,width:N.value.width},[m(`g`,null,[(s(!0),h(v,null,i(N.value.links,e=>(s(),h(`path`,{key:e.id,d:e.path,fill:`none`,stroke:`#888888`,"stroke-opacity":`0.34`},null,8,Hs))),128))])],8,Vs)),m(`div`,{class:`absolute z-20 box-border rounded-full bg-base`,style:r({top:`${N.value.centerY-T.dot/2}px`,left:`${N.value.centerX-T.dot/2}px`,width:`${T.dot}px`,height:`${T.dot}px`,border:`3px solid ${A.value?x(V)(A.value.type):x(V)(`unknown`)}`})},null,4),(s(!0),h(v,null,i(N.value.nodes,e=>u((s(),h(`button`,{key:`${e.side}:${e.depth}:${e.node.id}`,class:`absolute z-20 min-w-0 block rounded-1 border border-base bg-base px-2 py-1 text-left color-base hover:bg-active`,type:`button`,style:r({left:`${e.x}px`,top:`${e.y-T.height/2}px`,width:`${T.width}px`,height:`${T.height}px`,overflow:`hidden`}),onClick:t=>S(e.node.id)},[m(`span`,Ws,[m(`span`,{class:`h-2.3 w-2.3 shrink-0 rounded-full`,style:r({background:x(V)(e.node.type)})},null,4),m(`span`,Gs,n(x(R)(e.node)),1)])],12,Us)),[[a,`${x(R)(e.node)} - ${x(H)(e.node.type)}`,void 0,{top:!0}]])),128))],4)):(s(),h(`div`,Ks,` No data `))])])],64)):(s(),h(`p`,qs,` Select a node to inspect its dependencies and subscribers. `))])}}}),Xs={class:`h-full min-h-0 flex flex-col bg-base`},Zs=d({__name:`ReactivityGraph`,props:{graph:{}},setup(e){let t=e,n=p(),r=p(1),i=p(``),o=p(new Set(ce)),c=p(!1),l=p(``),u=p(``),d=f(()=>{let e=le(i.value),n=o.value,r=t.graph.nodes.filter(t=>n.has(t.type)&&ue(t,e)),a=new Set(r.map(e=>e.id));return{nodes:r,relationships:t.graph.relationships.filter(e=>a.has(e.from)&&a.has(e.to))}}),m=f(()=>pe(d.value.relationships)),g=f(()=>!!l.value&&!!u.value),_=f(()=>g.value?ge(l.value,u.value,m.value):fe());function v(e){c.value=!1,l.value=``,u.value=``,n.value=e}return(t,f)=>(s(),h(`div`,Xs,[w(Je,{search:i.value,"onUpdate:search":f[0]||=e=>i.value=e,"active-types":o.value,"onUpdate:activeTypes":f[1]||=e=>o.value=e,"path-selector-open":c.value,"onUpdate:pathSelectorOpen":f[2]||=e=>c.value=e,"path-start-id":l.value,"onUpdate:pathStartId":f[3]||=e=>l.value=e,"path-end-id":u.value,"onUpdate:pathEndId":f[4]||=e=>u.value=e,"selected-node-id":n.value,"onUpdate:selectedNodeId":f[5]||=e=>n.value=e,graph:e.graph,"filtered-graph":d.value},null,8,[`search`,`active-types`,`path-selector-open`,`path-start-id`,`path-end-id`,`selected-node-id`,`graph`,`filtered-graph`]),w(x(E),{class:`min-h-0 flex-1 overflow-hidden`},{default:a(()=>[w(x(D),{class:`h-full min-h-0`,"min-size":`30`,size:`53.333`},{default:a(()=>[w(Ts,{"selected-node-id":n.value,"onUpdate:selectedNodeId":f[6]||=e=>n.value=e,"dependency-depth":r.value,"onUpdate:dependencyDepth":f[7]||=e=>r.value=e,graph:d.value,path:g.value?_.value:void 0,"path-selector-open":c.value,onSelect:v},null,8,[`selected-node-id`,`dependency-depth`,`graph`,`path`,`path-selector-open`])]),_:1}),w(x(D),{class:`h-full min-h-0`,"min-size":`24`,size:`46.667`},{default:a(()=>[w(Ys,{graph:e.graph,"filtered-graph":d.value,"selected-node-id":n.value,"dependency-depth":r.value,path:g.value?_.value:void 0,onSelect:v},null,8,[`graph`,`filtered-graph`,`selected-node-id`,`dependency-depth`,`path`])]),_:1})]),_:1})]))}}),Qs={class:`h-full min-h-0 flex flex-col`},$s={key:0,class:`max-h-38 shrink-0 border-b border-base`},ec={class:`min-h-0 flex-1`},tc={key:1,class:`h-full min-h-0 flex items-center justify-center bg-subtle p-6`},nc={class:`m-0 max-w-78 text-center color-muted text-3.5 leading-5`},rc=d({__name:`graph`,setup(r){let{apps:i,cancelComponentInspection:o,componentInspecting:c,components:l,componentState:u,componentStateLoading:d,error:v,highlightComponent:b,inspectComponentInPage:ee,reactivityGraphEnabled:te,selectComponent:C,selectedComponent:ne,selectedComponentId:O,unhighlightComponent:re}=g(),k=p(),A=p(!1),M=p(``),N,P=f(()=>ie(l.value,M.value)),F=f(()=>u.value?.reactivityGraph),I=f(()=>te.value?ne.value?d.value?`Loading reactivity graph...`:`No data`:`Select a component to inspect its reactivity graph.`:`Reactivity Graph requires Vue 3.6 or later.`),ae=f(()=>[{icon:`i-carbon-select-window`,tooltip:c.value?`Cancel selecting component`:`Select component in the page`,ariaLabel:`Select component in the page`,active:c.value,pressed:c.value,rounded:`full`,run:se}]);async function oe(e){C(e),await t()}async function se(){if(c.value){await o();return}let e=await ee();e&&(M.value=``,C(e.componentId),await t())}function L(e){ae.value[e]?.run()}function R(e){z(e.target)||(e.key.toLowerCase()===`s`&&(e.ctrlKey||e.metaKey)?(e.preventDefault(),se()):e.key===`Escape`&&c.value&&(e.preventDefault(),o()))}function z(e){if(!(e instanceof HTMLElement))return!1;let t=e.tagName.toLowerCase();return t===`input`||t===`textarea`||e.isContentEditable}return e(()=>{N=new ResizeObserver(([e])=>{A.value=e.contentRect.width<760}),k.value&&N.observe(k.value),window.addEventListener(`keydown`,R)}),_(()=>{N?.disconnect(),window.removeEventListener(`keydown`,R),c.value&&o(),re()}),(e,t)=>(s(),h(`section`,{ref_key:`container`,ref:k,class:`h-full min-h-0`},[w(x(E),{class:`h-full min-h-0 overflow-hidden`,horizontal:A.value},{default:a(()=>[w(x(D),{class:`h-full min-h-0`,"min-size":`16`,size:A.value?34:18},{default:a(()=>[m(`div`,Qs,[x(i).length>1?(s(),h(`div`,$s,[w(T)])):y(``,!0),m(`div`,ec,[w(j,{filter:M.value,"onUpdate:filter":t[0]||=e=>M.value=e,actions:ae.value,"component-labels":``,"default-expand-depth":99,"empty-text":x(v)??`No components`,nodes:P.value,"no-matching-text":`No matching components`,placeholder:`Find components...`,"selected-node-id":x(O),"state-key":`reactivity-graph-components`,"refresh-visible":!1,onAction:L,onHover:t[1]||=e=>void x(b)(e),onLeave:t[2]||=()=>void x(re)(),onSelect:t[3]||=e=>void oe(e)},null,8,[`filter`,`actions`,`empty-text`,`nodes`,`selected-node-id`])])])]),_:1},8,[`size`]),w(x(D),{class:`h-full min-h-0`,"min-size":`32`},{default:a(()=>[x(te)&&F.value?.nodes.length?(s(),S(Zs,{key:0,graph:F.value},null,8,[`graph`])):(s(),h(`div`,tc,[m(`p`,nc,n(I.value),1)]))]),_:1})]),_:1},8,[`horizontal`])],512))}});export{rc as default};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./overview-CBnqLe5W.js","./_plugin-vue_export-helper-CdLdzBIA.js","./nanoid-Cya-tyvy.js","./components--Uqqnist.js","./RecycleScroller.vue_vue_type_script_setup_true_lang-C7mZBLYi-By717ouR.js","./InspectorState-CXPxKmUf.js","./Checkbox-CsgLgOjf.js","./InspectorTree-BgcS7_BF.js","./InspectorTree-CyiZHbQn.css","./splitpanes.esm-Cr-PYWE3.js","./component-tree-C3C12cZe.js","./components-BzB47Xnc.css","./pages-BnEiKDB1.js","./pages-DbPYAwAA.css","./timeline-DemFeH2V.js","./timeline-B66GLhYW.css","./custom-inspector-DikTGJYk.js","./plugins-D7N7tBMP.js","./plugins-OIsWSXcW.css","./graph-DT4Zl2Ge.js","./settings-DVRsqvUy.js","./settings-cOj3bqKq.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{$ as e,A as t,C as n,Ct as r,D as i,Dt as a,E as o,Et as s,F as c,I as l,J as u,K as d,L as f,M as p,N as m,P as h,R as g,S as _,St as v,Tt as y,X as b,Y as x,Z as S,_t as C,a as w,at as T,b as E,bt as ee,ct as te,d as D,dt as O,et as k,f as A,ft as ne,g as re,gt as ie,h as j,ht as ae,i as oe,j as se,l as M,lt as ce,m as N,mt as le,n as ue,nt as de,o as P,ot as F,p as fe,pt as pe,q as me,r as he,rt as ge,st as _e,t as ve,tt as ye,u as be,ut as xe,v as Se,vt as Ce,w as we,wt as I,x as Te,xt as Ee,y as De,yt as Oe,z as ke}from"./_plugin-vue_export-helper-CdLdzBIA.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ae=void 0,je=typeof window<`u`&&window.trustedTypes;if(je)try{Ae=je.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Me=Ae?e=>Ae.createHTML(e):e=>e,Ne=`http://www.w3.org/2000/svg`,Pe=`http://www.w3.org/1998/Math/MathML`,L=typeof document<`u`?document:null,Fe=L&&L.createElement(`template`),Ie={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?L.createElementNS(Ne,e):t===`mathml`?L.createElementNS(Pe,e):n?L.createElement(e,{is:n}):L.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>L.createTextNode(e),createComment:e=>L.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>L.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{Fe.innerHTML=Me(r===`svg`?`<svg>${e}</svg>`:r===`mathml`?`<math>${e}</math>`:e);let i=Fe.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Le=Symbol(`_vtc`);function Re(e,t,n){let r=e[Le];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var ze=Symbol(`_vod`),Be=Symbol(`_vsh`),Ve=Symbol(``),He=/(?:^|;)\s*display\s*:/;function Ue(e,t,n){let r=e.style,i=Oe(n),a=!1;if(n&&!i){if(t){if(Oe(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??Ge(r,t,``)}else for(let e in t)n[e]??Ge(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?Ge(r,i,``):Ye(e,i,!Oe(t)&&t?t[i]:void 0,o)||Ge(r,i,o)}}else if(i){if(t!==n){let e=r[Ve];e&&(n+=`;`+e),r.cssText=n,a=He.test(n)}}else t&&e.removeAttribute(`style`);ze in e&&(i&&t===n||(e[ze]=a?r.display:``),e[Be]&&(r.display=`none`))}var We=/\s*!important$/;function Ge(e,t,n){if(pe(n))n.forEach(n=>Ge(e,t,n));else if(n??=``,t.startsWith(`--`))We.test(n)?e.setProperty(t,n.replace(We,``),`important`):e.setProperty(t,n);else{let r=Je(e,t);We.test(n)?e.setProperty(xe(r),n.replace(We,``),`important`):e[r]=n}}var Ke=[`Webkit`,`Moz`,`ms`],qe={};function Je(e,t){let n=qe[t];if(n)return n;let r=_e(t);if(r!==`filter`&&r in e)return qe[t]=r;r=te(r);for(let n=0;n<Ke.length;n++){let i=Ke[n]+r;if(i in e)return qe[t]=i}return t}function Ye(e,t,n,r){return e.tagName===`TEXTAREA`&&(t===`width`||t===`height`)&&Oe(r)&&n===r}var Xe=`http://www.w3.org/1999/xlink`;function Ze(e,t,n,r,i,a=Ce(t)){r&&t.startsWith(`xlink:`)?n==null?e.removeAttributeNS(Xe,t.slice(6,t.length)):e.setAttributeNS(Xe,t,n):n==null||a&&!O(n)?e.removeAttribute(t):e.setAttribute(t,a?``:ee(n)?String(n):n)}function Qe(e,t,n,r,i){if(t===`innerHTML`||t===`textContent`){n!=null&&(e[t]=t===`innerHTML`?Me(n):n);return}let a=e.tagName;if(t===`value`&&a!==`PROGRESS`&&!a.includes(`-`)){let r=a===`OPTION`?e.getAttribute(`value`)||``:e.value,i=n==null?e.type===`checkbox`?`on`:``:String(n);r===i&&`_value`in e||(e.value=i),n??e.removeAttribute(t),e._value=n;return}let o=!1;if(n===``||n==null){let r=typeof e[t];r===`boolean`?n=O(n):n==null&&r===`string`?(n=``,o=!0):r===`number`&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(i||t)}function $e(e,t,n,r){e.addEventListener(t,n,r)}function et(e,t,n,r){e.removeEventListener(t,n,r)}var tt=Symbol(`_vei`);function nt(e,t,n,r,i=null){let a=e[tt]||(e[tt]={}),o=a[t];if(r&&o)o.value=r;else{let[n,s]=at(t);r?$e(e,n,a[t]=lt(r,i),s):o&&(et(e,n,o,s),a[t]=void 0)}}var rt=/(Once|Passive|Capture)$/,it=/^on:?(?:Once|Passive|Capture)$/;function at(e){let t,n;for(;(n=e.match(rt))&&!it.test(e);)t||={},e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===`:`?e.slice(3):xe(e.slice(2)),t]}var ot=0,st=Promise.resolve(),ct=()=>ot||=(st.then(()=>ot=0),Date.now());function lt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(pe(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;n<i.length&&!e._stopped;n++){let e=i[n];e&&be(e,t,5,a)}}else be(r,t,5,[e])};return n.value=e,n.attached=ct(),n}var ut=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,dt=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?Re(e,r,o):t===`style`?Ue(e,n,r):ie(t)?ae(t)||nt(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):ft(e,t,r,o))?(Qe(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||Ze(e,t,r,o,a,t!==`value`)):e._isVueCE&&(pt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Oe(r)))?Qe(e,_e(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ze(e,t,r,o))};function ft(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&ut(t)&&le(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`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return ut(t)&&Oe(n)?!1:t in e}function pt(e,t){let n=e._def.props;if(!n)return!1;let r=_e(t);return Array.isArray(n)?n.some(e=>_e(e)===r):Object.keys(n).some(e=>_e(e)===r)}var mt=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return pe(t)?e=>ne(t,e):t};function ht(e){e.target.composing=!0}function gt(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var R=Symbol(`_assign`),_t=Symbol(`_initialValue`);function vt(e,t,n){return t&&(e=e.trim()),n&&(e=r(e)),e}var yt={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[_t]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[_t]=e.defaultValue.replace(/\r\n?/g,`
|
|
3
|
+
`))),e[R]=mt(i);let a=r||i.props&&i.props.type===`number`;$e(e,t?`change`:`input`,t=>{t.target.composing||e[R](vt(e.value,n,a))}),(n||a)&&$e(e,`change`,()=>{e.value=vt(e.value,n,a)}),t||($e(e,`compositionstart`,ht),$e(e,`compositionend`,gt),$e(e,`change`,gt))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[_t];delete e[_t],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[R](vt(e.value,n,r)):e.value=i},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:i,trim:a,number:o}},s){if(e[R]=mt(s),e.composing)return;let c=(o||e.type===`number`)&&!/^0\d/.test(e.value)?r(e.value):e.value,l=t??``;if(c===l)return;let u=e.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===e&&e.type!==`range`&&(i&&t===n||a&&e.value.trim()===l)||(e.value=l)}},bt={deep:!0,created(e,t,n){e[R]=mt(n),$e(e,`change`,()=>{let t=e._modelValue,n=Tt(e),r=e.checked,i=e[R];if(pe(t)){let e=v(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(C(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(Et(e,r))})},mounted:xt,beforeUpdate(e,t,n){e[R]=mt(n),xt(e,t,n)}};function xt(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(pe(t))i=v(t,r.props.value)>-1;else if(C(t))i=t.has(r.props.value);else{if(t===n)return;i=Ee(t,Et(e,!0))}e.checked!==i&&(e.checked=i)}var St={deep:!0,created(e,{value:t,modifiers:{number:n}},a){e._modelValue=t,$e(e,`change`,()=>{let t=Array.prototype.filter.call(e.options,e=>e.selected).map(e=>n?r(Tt(e)):Tt(e)),a=e.multiple,o=a?C(e._modelValue)?new Set(t):t:t[0],s=e._pendingValue=[a,a?pe(o)?t.slice():t:o];try{e[R](o)}finally{i(()=>{e._pendingValue===s&&(e._pendingValue=void 0)})}}),e[R]=mt(a)},mounted(e,{value:t}){wt(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[R]=mt(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,n&&n[0]===e.multiple&&Ct(t,n[1],n[0])||wt(e,t)}};function Ct(e,t,n){if(!n||pe(e))return Ee(e,t);if(C(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function wt(e,t){let n=e.multiple,r=pe(t);if(!n||r||C(t)){for(let i=0,a=e.options.length;i<a;i++){let a=e.options[i],o=Tt(a);if(n){if(r){let e=typeof o;a.selected=e===`string`||e===`number`?t.some(e=>String(e)===String(o)):v(t,o)>-1}else a.selected=t.has(o)}else if(Ee(Tt(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Tt(e){return`_value`in e?e._value:e.value}function Et(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var Dt=[`ctrl`,`shift`,`alt`,`meta`],Ot={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)=>Dt.some(n=>e[`${n}Key`]&&!t.includes(n))},kt=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e<t.length;e++){let r=Ot[t[e]];if(r&&r(n,t))return}return e(n,...r)}))},At={esc:`escape`,space:` `,up:`arrow-up`,left:`arrow-left`,right:`arrow-right`,down:`arrow-down`,delete:`backspace`},jt=(e,t)=>{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=xe(n.key);if(t.some(e=>e===r||At[e]===r))return e(n)}))},Mt=ce({patchProp:dt},Ie),Nt;function Pt(){return Nt||=re(Mt)}var Ft=((...e)=>{let t=Pt().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Lt(e);if(!r)return;let i=t._component;le(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,It(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function It(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Lt(e){return Oe(e)?document.querySelector(e):e}var Rt=[`top`,`right`,`bottom`,`left`],zt=[`start`,`end`],Bt=Rt.reduce((e,t)=>e.concat(t,t+`-`+zt[0],t+`-`+zt[1]),[]),Vt=Math.min,Ht=Math.max,Ut={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Wt(e,t,n){return Ht(e,Vt(t,n))}function Gt(e,t){return typeof e==`function`?e(t):e}function z(e){return e.split(`-`)[0]}function B(e){return e.split(`-`)[1]}function Kt(e){return e===`x`?`y`:`x`}function qt(e){return e===`y`?`height`:`width`}function V(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function Jt(e){return Kt(V(e))}function Yt(e,t,n){n===void 0&&(n=!1);let r=B(e),i=Jt(e),a=qt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=an(o)),[o,an(o)]}function Xt(e){let t=an(e);return[Zt(e),t,Zt(t)]}function Zt(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var Qt=[`left`,`right`],$t=[`right`,`left`],en=[`top`,`bottom`],tn=[`bottom`,`top`];function nn(e,t,n){switch(e){case`top`:case`bottom`:return n?t?$t:Qt:t?Qt:$t;case`left`:case`right`:return t?en:tn;default:return[]}}function rn(e,t,n,r){let i=B(e),a=nn(z(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Zt)))),a}function an(e){let t=z(e);return Ut[t]+e.slice(t.length)}function on(e){return{top:0,right:0,bottom:0,left:0,...e}}function sn(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:on(e)}function cn(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ln(e,t,n){let{reference:r,floating:i}=e,a=V(t),o=Jt(t),s=qt(o),c=z(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(B(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}async function un(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Gt(t,e),p=sn(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=cn(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=cn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var dn=50,fn=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:un},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ln(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<dn&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=ln(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},pn=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=Gt(e,t)||{};if(l==null)return{};let d=sn(u),f={x:n,y:r},p=Jt(i),m=qt(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;C&&await(o.isElement==null?void 0:o.isElement(S))||(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Vt(d[_],T),ee=Vt(d[v],T),te=E,D=C-h[m]-ee,O=C/2-h[m]/2+w,k=Wt(te,O,D),A=!c.arrow&&B(i)!=null&&O!==k&&a.reference[m]/2-(O<te?E:ee)-h[m]/2<0,ne=A?O<te?O-te:O-D:0;return{[p]:f[p]+ne,data:{[p]:k,centerOffset:O-k-ne,...A&&{alignmentOffset:ne}},reset:A}}});function mn(e,t,n){return(e?[...n.filter(t=>B(t)===e),...n.filter(t=>B(t)!==e)]:n.filter(e=>z(e)===e)).filter(n=>!e||B(n)===e||(t?Zt(n)!==n:!1))}var hn=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:n,middlewareData:r,placement:i,platform:a,elements:o}=t,{crossAxis:s=!1,alignment:c,allowedPlacements:l=Bt,autoAlignment:u=!0,...d}=Gt(e,t),f=c!==void 0||l===Bt?mn(c||null,u,l):l,p=await a.detectOverflow(t,d),m=r.autoPlacement?.index||0,h=f[m];if(h==null)return{};let g=Yt(h,n,await(a.isRTL==null?void 0:a.isRTL(o.floating)));if(i!==h)return{reset:{placement:f[0]}};let _=[p[z(h)],p[g[0]],p[g[1]]],v=[...r.autoPlacement?.overflows||[],{placement:h,overflows:_}],y=f[m+1];if(y)return{data:{index:m+1,overflows:v},reset:{placement:y}};let b=v.map(e=>{let t=B(e.placement);return[e.placement,t&&s?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),x=b.filter(e=>e[2].slice(0,B(e[0])?2:3).every(e=>e<=0))[0]?.[0]||b[0][0];return x===i?{}:{data:{index:m+1,overflows:v},reset:{placement:x}}}}},gn=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Gt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=z(r),_=V(o),v=z(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[an(o)]:Xt(o)),x=p!==`none`;!d&&x&&b.push(...rn(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Yt(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===V(t)||T.every(e=>V(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=V(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},_n=new Set([`left`,`top`]);async function vn(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=z(n),s=B(n),c=V(n)===`y`,l=_n.has(o)?-1:1,u=a&&c?-1:1,d=Gt(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var yn=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await vn(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},bn=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Gt(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=V(z(i)),p=Kt(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=Wt(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=Wt(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},xn=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=Gt(e,t),u=await o.detectOverflow(t,l),d=z(i),f=B(i),p=V(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=Vt(h-u[g],v),x=Vt(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Ht(u.left,0),t=Ht(u.right,0),n=Ht(u.top,0),r=Ht(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Ht(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Ht(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function H(e){return e.ownerDocument?.defaultView||window}function U(e){return H(e).getComputedStyle(e)}var Sn=Math.min,Cn=Math.max,wn=Math.round;function Tn(e){let t=U(e),n=parseFloat(t.width),r=parseFloat(t.height),i=e.offsetWidth,a=e.offsetHeight,o=wn(n)!==i||wn(r)!==a;return o&&(n=i,r=a),{width:n,height:r,fallback:o}}function En(e){return An(e)?(e.nodeName||``).toLowerCase():``}var Dn;function On(){if(Dn)return Dn;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Dn=e.brands.map((e=>e.brand+`/`+e.version)).join(` `),Dn):navigator.userAgent}function W(e){return e instanceof H(e).HTMLElement}function kn(e){return e instanceof H(e).Element}function An(e){return e instanceof H(e).Node}function jn(e){return typeof ShadowRoot>`u`?!1:e instanceof H(e).ShadowRoot||e instanceof ShadowRoot}function Mn(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=U(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&![`inline`,`contents`].includes(i)}function Nn(e){return[`table`,`td`,`th`].includes(En(e))}function Pn(e){let t=/firefox/i.test(On()),n=U(e),r=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!==`none`||n.perspective!==`none`||!!r&&r!==`none`||t&&n.willChange===`filter`||t&&!!n.filter&&n.filter!==`none`||[`transform`,`perspective`].some((e=>n.willChange.includes(e)))||[`paint`,`layout`,`strict`,`content`].some((e=>{let t=n.contain;return t!=null&&t.includes(e)}))}function Fn(){return!/^((?!chrome|android).)*safari/i.test(On())}function In(e){return[`html`,`body`,`#document`].includes(En(e))}function Ln(e){return kn(e)?e:e.contextElement}var Rn={x:1,y:1};function zn(e){let t=Ln(e);if(!W(t))return Rn;let n=t.getBoundingClientRect(),{width:r,height:i,fallback:a}=Tn(t),o=(a?wn(n.width):n.width)/r,s=(a?wn(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}function Bn(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Ln(e),o=Rn;t&&(r?kn(r)&&(o=zn(r)):o=zn(e));let s=a?H(a):window,c=!Fn()&&n,l=(i.left+(c&&s.visualViewport?.offsetLeft||0))/o.x,u=(i.top+(c&&s.visualViewport?.offsetTop||0))/o.y,d=i.width/o.x,f=i.height/o.y;if(a){let e=H(a),t=r&&kn(r)?H(r):r,n=e.frameElement;for(;n&&r&&t!==e;){let e=zn(n),t=n.getBoundingClientRect(),r=getComputedStyle(n);t.x+=(n.clientLeft+parseFloat(r.paddingLeft))*e.x,t.y+=(n.clientTop+parseFloat(r.paddingTop))*e.y,l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=t.x,u+=t.y,n=H(n).frameElement}}return{width:d,height:f,top:u,right:l+d,bottom:u+f,left:l,x:l,y:u}}function Vn(e){return((An(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hn(e){return kn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Un(e){return Bn(Vn(e)).left+Hn(e).scrollLeft}function Wn(e){if(En(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||jn(e)&&e.host||Vn(e);return jn(t)?t.host:t}function Gn(e){let t=Wn(e);return In(t)?t.ownerDocument.body:W(t)&&Mn(t)?t:Gn(t)}function Kn(e,t){t===void 0&&(t=[]);let n=Gn(e),r=n===e.ownerDocument?.body,i=H(n);return r?t.concat(i,i.visualViewport||[],Mn(n)?n:[]):t.concat(n,Kn(n))}function qn(e,t,n){return t===`viewport`?cn(function(e,t){let n=H(e),r=Vn(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Fn();(e||!e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s,y:c}}(e,n)):kn(t)?cn(function(e,t){let n=Bn(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=W(e)?zn(e):{x:1,y:1};return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}(t,n)):cn(function(e){let t=Vn(e),n=Hn(e),r=e.ownerDocument.body,i=Cn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Cn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+Un(e),s=-n.scrollTop;return U(r).direction===`rtl`&&(o+=Cn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}(Vn(e)))}function Jn(e){return W(e)&&U(e).position!==`fixed`?e.offsetParent:null}function Yn(e){let t=H(e),n=Jn(e);for(;n&&Nn(n)&&U(n).position===`static`;)n=Jn(n);return n&&(En(n)===`html`||En(n)===`body`&&U(n).position===`static`&&!Pn(n))?t:n||function(e){let t=Wn(e);for(;W(t)&&!In(t);){if(Pn(t))return t;t=Wn(t)}return null}(e)||t}function Xn(e,t,n){let r=W(t),i=Vn(t),a=Bn(e,!0,n===`fixed`,t),o={scrollLeft:0,scrollTop:0},s={x:0,y:0};if(r||!r&&n!==`fixed`){if((En(t)!==`body`||Mn(i))&&(o=Hn(t)),W(t)){let e=Bn(t,!0);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=Un(i))}return{x:a.left+o.scrollLeft-s.x,y:a.top+o.scrollTop-s.y,width:a.width,height:a.height}}var Zn={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?function(e,t){let n=t.get(e);if(n)return n;let r=Kn(e).filter((e=>kn(e)&&En(e)!==`body`)),i=null,a=U(e).position===`fixed`,o=a?Wn(e):e;for(;kn(o)&&!In(o);){let e=U(o),t=Pn(o);(a?t||i:t||e.position!==`static`||!i||![`absolute`,`fixed`].includes(i.position))?i=e:r=r.filter((e=>e!==o)),o=Wn(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],o=a[0],s=a.reduce(((e,n)=>{let r=qn(t,n,i);return e.top=Cn(r.top,e.top),e.right=Sn(r.right,e.right),e.bottom=Sn(r.bottom,e.bottom),e.left=Cn(r.left,e.left),e}),qn(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:r}=e,i=W(n),a=Vn(n);if(n===a)return t;let o={scrollLeft:0,scrollTop:0},s={x:1,y:1},c={x:0,y:0};if((i||!i&&r!==`fixed`)&&((En(n)!==`body`||Mn(a))&&(o=Hn(n)),W(n))){let e=Bn(n);s=zn(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+c.x,y:t.y*s.y-o.scrollTop*s.y+c.y}},isElement:kn,getDimensions:function(e){return W(e)?Tn(e):e.getBoundingClientRect()},getOffsetParent:Yn,getDocumentElement:Vn,getScale:zn,async getElementRects(e){let{reference:t,floating:n,strategy:r}=e,i=this.getOffsetParent||Yn,a=this.getDimensions;return{reference:Xn(t,await i(n),r),floating:{x:0,y:0,...await a(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>U(e).direction===`rtl`},Qn=(e,t,n)=>{let r=new Map,i={platform:Zn,...n},a={...i.platform,_c:r};return fn(e,t,{...i,platform:a})},G={disabled:!1,distance:5,skidding:0,container:`body`,boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:`absolute`,preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:`top`,triggers:[`hover`,`focus`,`touch`],hideTriggers:e=>[...e,`click`],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:`...`},dropdown:{placement:`bottom`,triggers:[`click`],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:`dropdown`,triggers:[`hover`,`focus`],popperTriggers:[`hover`],delay:{show:0,hide:400}}}};function $n(e,t){let n=G.themes[e]||{},r;do r=n[t],typeof r>`u`?n.$extend?n=G.themes[n.$extend]||{}:(n=null,r=G[t]):n=null;while(n);return r}function er(e){let t=[e],n=G.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=G.themes[n.$extend]||{}):n=null;while(n);return t.map(e=>`v-popper--theme-${e}`)}function tr(e){let t=[e],n=G.themes[e]||{};do n.$extend?(t.push(n.$extend),n=G.themes[n.$extend]||{}):n=null;while(n);return t}var nr=!1;if(typeof window<`u`){nr=!1;try{let e=Object.defineProperty({},"passive",{get(){nr=!0}});window.addEventListener(`test`,null,e)}catch{}}var rr=!1;typeof window<`u`&&typeof navigator<`u`&&(rr=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var ir=[`auto`,`top`,`bottom`,`left`,`right`].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),ar={hover:`mouseenter`,focus:`focus`,click:`click`,touch:`touchstart`,pointer:`pointerdown`},or={hover:`mouseleave`,focus:`blur`,click:`click`,touch:`touchend`,pointer:`pointerup`};function sr(e,t){let n=e.indexOf(t);n!==-1&&e.splice(n,1)}function cr(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}var K=[],lr=null,ur={};function dr(e){let t=ur[e];return t||=ur[e]=[],t}var fr=function(){};typeof window<`u`&&(fr=window.Element);function q(e){return function(t){return $n(t.theme,e)}}var pr=`__floating-vue__popper`,mr=()=>E({name:`VPopper`,provide(){return{[pr]:{parentPopper:this}}},inject:{[pr]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:q(`disabled`)},positioningDisabled:{type:Boolean,default:q(`positioningDisabled`)},placement:{type:String,default:q(`placement`),validator:e=>ir.includes(e)},delay:{type:[String,Number,Object],default:q(`delay`)},distance:{type:[Number,String],default:q(`distance`)},skidding:{type:[Number,String],default:q(`skidding`)},triggers:{type:Array,default:q(`triggers`)},showTriggers:{type:[Array,Function],default:q(`showTriggers`)},hideTriggers:{type:[Array,Function],default:q(`hideTriggers`)},popperTriggers:{type:Array,default:q(`popperTriggers`)},popperShowTriggers:{type:[Array,Function],default:q(`popperShowTriggers`)},popperHideTriggers:{type:[Array,Function],default:q(`popperHideTriggers`)},container:{type:[String,Object,fr,Boolean],default:q(`container`)},boundary:{type:[String,fr],default:q(`boundary`)},strategy:{type:String,validator:e=>[`absolute`,`fixed`].includes(e),default:q(`strategy`)},autoHide:{type:[Boolean,Function],default:q(`autoHide`)},handleResize:{type:Boolean,default:q(`handleResize`)},instantMove:{type:Boolean,default:q(`instantMove`)},eagerMount:{type:Boolean,default:q(`eagerMount`)},popperClass:{type:[String,Array,Object],default:q(`popperClass`)},computeTransformOrigin:{type:Boolean,default:q(`computeTransformOrigin`)},autoMinSize:{type:Boolean,default:q(`autoMinSize`)},autoSize:{type:[Boolean,String],default:q(`autoSize`)},autoMaxSize:{type:Boolean,default:q(`autoMaxSize`)},autoBoundaryMaxSize:{type:Boolean,default:q(`autoBoundaryMaxSize`)},preventOverflow:{type:Boolean,default:q(`preventOverflow`)},overflowPadding:{type:[Number,String],default:q(`overflowPadding`)},arrowPadding:{type:[Number,String],default:q(`arrowPadding`)},arrowOverflow:{type:Boolean,default:q(`arrowOverflow`)},flip:{type:Boolean,default:q(`flip`)},shift:{type:Boolean,default:q(`shift`)},shiftCrossAxis:{type:Boolean,default:q(`shiftCrossAxis`)},noAutoFocus:{type:Boolean,default:q(`noAutoFocus`)},disposeTimeout:{type:Number,default:q(`disposeTimeout`)}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:``,strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join(`_`)}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId==null?this.randomId:this.ariaId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide==`function`?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){return this[pr]?.parentPopper},hasPopperShowTriggerHover(){return this.popperTriggers?.includes(`hover`)||this.popperShowTriggers?.includes(`hover`)}},watch:{shown:`$_autoShowHide`,disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:`$_refreshListeners`,deep:!0},positioningDisabled:`$_refreshListeners`,...[`placement`,`distance`,`skidding`,`boundary`,`strategy`,`overflowPadding`,`arrowPadding`,`preventOverflow`,`shift`,`shiftCrossAxis`,`flip`].reduce((e,t)=>(e[t]=`$_computePosition`,e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var r;(r=this.parentPopper)!=null&&r.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit(`show`),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit(`update:shown`,!0))},hide({event:e=null,skipDelay:t=!1}={}){if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}this.parentPopper?.lockedChild===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit(`hide`),this.$emit(`update:shown`,!1)}},init(){this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode?.call(this)??this.$el,this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(`.v-popper__inner`),this.$_arrowNode=this.$_popperNode.querySelector(`.v-popper__arrow-container`),this.$_swapTargetAttrs(`title`,`data-original-title`),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs(`data-original-title`,`title`))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit(`resize`))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;let e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(yn({mainAxis:this.distance,crossAxis:this.skidding}));let t=this.placement.startsWith(`auto`);if(t?e.middleware.push(hn({alignment:this.placement.split(`-`)[1]??``})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(bn({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(gn({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(pn({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:`arrowOverflow`,fn:({placement:e,rects:t,middlewareData:n})=>{let r,{centerOffset:i}=n.arrow;return r=e.startsWith(`top`)||e.startsWith(`bottom`)?Math.abs(i)>t.reference.width/2:Math.abs(i)>t.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){let t=this.autoSize?this.autoSize:this.autoMinSize?`min`:null;e.middleware.push({name:`autoSize`,fn:({rects:e,placement:n,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let a,o;return n.startsWith(`top`)||n.startsWith(`bottom`)?a=e.reference.width:o=e.reference.height,this.$_innerNode.style[t===`min`?`minWidth`:t===`max`?`maxWidth`:`width`]=a==null?null:`${a}px`,this.$_innerNode.style[t===`min`?`minHeight`:t===`max`?`maxHeight`:`height`]=o==null?null:`${o}px`,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(xn({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:e,availableHeight:t})=>{this.$_innerNode.style.maxWidth=e==null?null:`${e}px`,this.$_innerNode.style.maxHeight=t==null?null:`${t}px`}})));let n=await Qn(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),lr&&this.instantMove&&lr.instantMove&&lr!==this.parentPopper?(lr.$_applyHide(!0),this.$_applyShow(!0)):t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay(`show`))},$_scheduleHide(e,t=!1){this.shownChildren.size>0?this.pendingHide=!0:(this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(lr=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay(`hide`)))},$_computeDelay(e){let t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await cr(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Kn(this.$_referenceNode),...Kn(this.$_popperNode)],`scroll`,()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){let e=this.$_referenceNode.getBoundingClientRect(),t=this.$_popperNode.querySelector(`.v-popper__wrapper`),n=t.parentNode.getBoundingClientRect(),r=e.x+e.width/2-(n.left+t.offsetLeft),i=e.y+e.height/2-(n.top+t.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":``});let e=this.showGroup;if(e){let t;for(let n=0;n<K.length;n++)t=K[n],t.showGroup!==e&&(t.hide(),t.$emit(`close-group`))}K.push(this),document.body.classList.add(`v-popper--some-open`);for(let e of tr(this.theme))dr(e).push(this),document.body.classList.add(`v-popper--some-open--${e}`);this.$emit(`apply-show`),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await cr(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,sr(K,this),K.length===0&&document.body.classList.remove(`v-popper--some-open`);for(let e of tr(this.theme)){let t=dr(e);sr(t,this),t.length===0&&document.body.classList.remove(`v-popper--some-open--${e}`)}lr===this&&(lr=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);let t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners(`scroll`),this.$emit(`apply-hide`),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await cr(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e==`string`?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw Error(`No container for popover: `+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){let e=e=>{this.isShown&&!this.$_hideInProgress||(e.usedByTooltip=!0,!this.$_preventShow&&this.show({event:e}))};this.$_registerTriggerListeners(this.$_targetNodes,ar,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],ar,this.popperTriggers,this.popperShowTriggers,e);let t=e=>{e.usedByTooltip||this.hide({event:e})};this.$_registerTriggerListeners(this.$_targetNodes,or,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],or,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(e=>e.addEventListener(t,n,nr?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,r,i){let a=n;r!=null&&(a=typeof r==`function`?r(a):r),a.forEach(n=>{let r=t[n];r&&this.$_registerEventListeners(e,r,i)})},$_removeEventListeners(e){let t=[];this.$_events.forEach(n=>{let{targetNodes:r,eventType:i,handler:a}=n;!e||e===i?r.forEach(e=>e.removeEventListener(i,a)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit(`close-directive`):this.$emit(`auto-hide`),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(let n of this.$_targetNodes){let r=n.getAttribute(e);r&&(n.removeAttribute(e),n.setAttribute(t,r))}},$_applyAttrsToTarget(e){for(let t of this.$_targetNodes)for(let n in e){let r=e[n];r==null?t.removeAttribute(n):t.setAttribute(n,r)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){let e=this.$_referenceNode.getBoundingClientRect();if(Cr>=e.left&&Cr<=e.right&&wr>=e.top&&wr<=e.bottom){let e=this.$_popperNode.getBoundingClientRect(),t=Cr-xr,n=wr-Sr,r=e.left+e.width/2-xr+(e.top+e.height/2)-Sr+e.width+e.height,i=xr+t*r,a=Sr+n*r;return Tr(xr,Sr,i,a,e.left,e.top,e.left,e.bottom)||Tr(xr,Sr,i,a,e.left,e.top,e.right,e.top)||Tr(xr,Sr,i,a,e.right,e.top,e.right,e.bottom)||Tr(xr,Sr,i,a,e.left,e.bottom,e.right,e.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<`u`&&typeof window<`u`){if(rr){let e=!nr||{passive:!0,capture:!0};document.addEventListener(`touchstart`,e=>hr(e,!0),e),document.addEventListener(`touchend`,e=>gr(e,!0),e)}else window.addEventListener(`mousedown`,e=>hr(e,!1),!0),window.addEventListener(`click`,e=>gr(e,!1),!0);window.addEventListener(`resize`,br)}function hr(e,t){if(G.autoHideOnMousedown)_r(e,t);else for(let t=0;t<K.length;t++){let n=K[t];try{n.mouseDownContains=n.popperNode().contains(e.target)}catch{}}}function gr(e,t){G.autoHideOnMousedown||_r(e,t)}function _r(e,t){let n={};for(let r=K.length-1;r>=0;r--){let i=K[r];try{let r=i.containsGlobalTarget=i.mouseDownContains||i.popperNode().contains(e.target);i.pendingHide=!1,requestAnimationFrame(()=>{if(i.pendingHide=!1,!n[i.randomId]&&vr(i,r,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let e=i.parentPopper;for(;e;)n[e.randomId]=!0,e=e.parentPopper;return}let a=i.parentPopper;for(;a&&vr(a,a.containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch{}}}function vr(e,t,n){return n.closeAllPopover||n.closePopover&&t||yr(e,n)&&!t}function yr(e,t){if(typeof e.autoHide==`function`){let n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function br(){for(let e=0;e<K.length;e++)K[e].$_computePosition()}var xr=0,Sr=0,Cr=0,wr=0;typeof window<`u`&&window.addEventListener(`mousemove`,e=>{xr=Cr,Sr=wr,Cr=e.clientX,wr=e.clientY},nr?{passive:!0}:void 0);function Tr(e,t,n,r,i,a,o,s){let c=((o-i)*(t-a)-(s-a)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t)),l=((n-e)*(t-a)-(r-t)*(e-i))/((s-a)*(n-e)-(o-i)*(r-t));return c>=0&&c<=1&&l>=0&&l<=1}var Er={extends:mr()},Dr=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};function Or(e,t,n,r,i,a){return p(),j(`div`,{ref:`reference`,class:I([`v-popper`,{"v-popper--shown":e.slotData.isShown}])},[f(e.$slots,`default`,y(_(e.slotData)))],2)}var kr=Dr(Er,[[`render`,Or]]);function Ar(){var e=window.navigator.userAgent,t=e.indexOf(`MSIE `);if(t>0)return parseInt(e.substring(t+5,e.indexOf(`.`,t)),10);if(e.indexOf(`Trident/`)>0){var n=e.indexOf(`rv:`);return parseInt(e.substring(n+3,e.indexOf(`.`,n)),10)}var r=e.indexOf(`Edge/`);return r>0?parseInt(e.substring(r+5,e.indexOf(`.`,r)),10):-1}var jr;function Mr(){Mr.init||(Mr.init=!0,jr=Ar()!==-1)}var Nr={name:`ResizeObserver`,props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:[`notify`],mounted(){Mr(),i(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});let e=document.createElement(`object`);this._resizeObject=e,e.setAttribute(`aria-hidden`,`true`),e.setAttribute(`tabindex`,-1),e.onload=this.addResizeHandlers,e.type=`text/html`,jr&&this.$el.appendChild(e),e.data=`about:blank`,jr||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit(`notify`,{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener(`resize`,this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!jr&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener(`resize`,this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},Pr=b(`data-v-b329ee4c`);c(`data-v-b329ee4c`);var Fr={class:`resize-observer`,tabindex:`-1`};m(),Nr.render=Pr((e,t,n,r,i,a)=>(p(),fe(`div`,Fr))),Nr.__scopeId=`data-v-b329ee4c`,Nr.__file=`src/components/ResizeObserver.vue`;var Ir=(e=`theme`)=>({computed:{themeClass(){return er(this[e])}}}),Lr=E({name:`VPopperContent`,components:{ResizeObserver:Nr},mixins:[Ir()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:[`hide`,`resize`],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Rr=[`id`,`aria-hidden`,`tabindex`,`data-popper-placement`],zr={ref:`inner`,class:`v-popper__inner`},Br=[A(`div`,{class:`v-popper__arrow-outer`},null,-1),A(`div`,{class:`v-popper__arrow-inner`},null,-1)];function Vr(e,t,n,r,i,a){let o=g(`ResizeObserver`);return p(),j(`div`,{id:e.popperId,ref:`popover`,class:I([`v-popper__popper`,[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:s(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?`false`:`true`,tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||=jt(t=>e.autoHide&&e.$emit(`hide`),[`esc`])},[A(`div`,{class:`v-popper__backdrop`,onClick:t[0]||=t=>e.autoHide&&e.$emit(`hide`)}),A(`div`,{class:`v-popper__wrapper`,style:s(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[A(`div`,zr,[e.mounted?(p(),j(M,{key:0},[A(`div`,null,[f(e.$slots,`default`)]),e.handleResize?(p(),fe(o,{key:0,onNotify:t[1]||=t=>e.$emit(`resize`,t)})):N(``,!0)],64)):N(``,!0)],512),A(`div`,{ref:`arrow`,class:`v-popper__arrow-container`,style:s(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Br,4)],4)],46,Rr)}var Hr=Dr(Lr,[[`render`,Vr]]),Ur={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},Wr=function(){};typeof window<`u`&&(Wr=window.Element);var Gr=E({name:`VPopperWrapper`,components:{Popper:kr,PopperContent:Hr},mixins:[Ur,Ir(`finalTheme`)],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Wr,Boolean],default:void 0},boundary:{type:[String,Wr],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Kr(e,t,n,r,i,a){let s=g(`PopperContent`),c=g(`Popper`);return p(),fe(c,o({ref:`popper`},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||=()=>e.$emit(`show`),onHide:t[1]||=()=>e.$emit(`hide`),"onUpdate:shown":t[2]||=t=>e.$emit(`update:shown`,t),onApplyShow:t[3]||=()=>e.$emit(`apply-show`),onApplyHide:t[4]||=()=>e.$emit(`apply-hide`),onCloseGroup:t[5]||=()=>e.$emit(`close-group`),onCloseDirective:t[6]||=()=>e.$emit(`close-directive`),onAutoHide:t[7]||=()=>e.$emit(`auto-hide`),onResize:t[8]||=()=>e.$emit(`resize`)}),{default:u(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:a,show:o,hide:c,handleResize:l,onResize:d,classes:p,result:m})=>[f(e.$slots,`default`,{shown:n,show:o,hide:c}),De(s,{ref:`popperContent`,"popper-id":t,theme:e.finalTheme,shown:n,mounted:r,"skip-transition":i,"auto-hide":a,"handle-resize":l,classes:p,result:m,onHide:c,onResize:d},{default:u(()=>[f(e.$slots,`popper`,{shown:n,hide:c})]),_:2},1032,[`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:3},16,[`theme`,`target-nodes`,`popper-node`,`class`])}var qr=Dr(Gr,[[`render`,Kr]]),Jr={...qr,name:`VDropdown`,vPopperTheme:`dropdown`};({...qr}),{...qr};var Yr=E({name:`VTooltipDirective`,components:{Popper:mr(),PopperContent:Hr},mixins:[Ur],inheritAttrs:!1,props:{theme:{type:String,default:`tooltip`},html:{type:Boolean,default:e=>$n(e.theme,`html`)},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>$n(e.theme,`loadingContent`)},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content==`function`},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content==`function`&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;let e=++this.$_fetchId,t=this.content(this);t.then?t.then(t=>this.onResult(e,t)):this.onResult(e,t)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Xr=[`innerHTML`],Zr=[`textContent`];function Qr(e,t,n,r,i,s){let c=g(`PopperContent`),l=g(`Popper`);return p(),fe(l,o({ref:`popper`},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:u(({popperId:t,isShown:n,shouldMountContent:r,skipTransition:i,autoHide:o,hide:s,handleResize:l,onResize:d,classes:f,result:m})=>[De(c,{ref:`popperContent`,class:I({"v-popper--tooltip-loading":e.loading}),"popper-id":t,theme:e.theme,shown:n,mounted:r,"skip-transition":i,"auto-hide":o,"handle-resize":l,classes:f,result:m,onHide:s,onResize:d},{default:u(()=>[e.html?(p(),j(`div`,{key:0,innerHTML:e.finalContent},null,8,Xr)):(p(),j(`div`,{key:1,textContent:a(e.finalContent)},null,8,Zr))]),_:2},1032,[`class`,`popper-id`,`theme`,`shown`,`mounted`,`skip-transition`,`auto-hide`,`handle-resize`,`classes`,`result`,`onHide`,`onResize`])]),_:1},16,[`theme`,`target-nodes`,`popper-node`,`onApplyShow`,`onApplyHide`])}var $r=Dr(Yr,[[`render`,Qr]]),ei=`v-popper--has-tooltip`;function ti(e,t){let n=e.placement;if(!n&&t)for(let e of ir)t[e]&&(n=e);return n||=$n(e.theme||`tooltip`,`placement`),n}function ni(e,t,n){let r,i=typeof t;return r=i===`string`?{content:t}:t&&i===`object`?t:{content:!1},r.placement=ti(r,n),r.targetNodes=()=>[e],r.referenceNode=()=>e,r}var ri,ii,ai=0;function oi(){if(ri)return;ii=k([]),ri=Ft({name:`VTooltipDirectiveApp`,setup(){return{directives:ii}},render(){return this.directives.map(e=>n($r,{...e.options,shown:e.shown||e.options.shown,key:e.id}))},devtools:{hide:!0}});let e=document.createElement(`div`);document.body.appendChild(e),ri.mount(e)}function si(e,t,n){oi();let r=k(ni(e,t,n)),i=k(!1),a={id:ai++,options:r,shown:i};return ii.value.push(a),e.classList&&e.classList.add(ei),e.$_popper={options:r,item:a,show(){i.value=!0},hide(){i.value=!1}}}function ci(e){if(e.$_popper){let t=ii.value.indexOf(e.$_popper.item);t!==-1&&ii.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(ei)}function li(e,{value:t,modifiers:n}){let r=ni(e,t,n);if(!r.content||$n(r.theme||`tooltip`,`disabled`))ci(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=r):i=si(e,t,n),typeof t.shown<`u`&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var ui={beforeMount:li,updated:li,beforeUnmount(e){ci(e)}},di=Jr,fi=e=>e.startsWith(`/`);function pi(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function mi(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&pi(e.default)}var J=Object.assign;function hi(e,t){let n={};for(let r in t){let i=t[r];n[r]=Y(i)?i.map(e):e(i)}return n}var gi=()=>{},Y=Array.isArray;function _i(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var vi=Symbol(``);function yi(e,t){return J(Error(),{type:e,[vi]:!0},t)}function bi(e,t){return e instanceof Error&&vi in e&&(t==null||!!(e.type&t))}var xi=Symbol(``),Si=Symbol(``),Ci=Symbol(``),wi=Symbol(``),Ti=Symbol(``),Ei=Symbol(``);function Di(){return we(Ci)}function Oi(e){return we(wi)}var ki=typeof document<`u`,Ai=/#/g,ji=/&/g,Mi=/\//g,Ni=/=/g,Pi=/\?/g,Fi=/\+/g,Ii=/%5B/g,Li=/%5D/g,Ri=/%5E/g,zi=/%60/g,Bi=/%7B/g,Vi=/%7C/g,Hi=/%7D/g,Ui=/%20/g;function Wi(e){return e==null?``:encodeURI(``+e).replace(Vi,`|`).replace(Ii,`[`).replace(Li,`]`)}function Gi(e){return Wi(e).replace(Bi,`{`).replace(Hi,`}`).replace(Ri,`^`)}function Ki(e){return Wi(e).replace(Fi,`%2B`).replace(Ui,`+`).replace(Ai,`%23`).replace(ji,`%26`).replace(zi,"`").replace(Bi,`{`).replace(Hi,`}`).replace(Ri,`^`)}function qi(e){return Ki(e).replace(Ni,`%3D`)}function Ji(e){return Wi(e).replace(Ai,`%23`).replace(Pi,`%3F`)}function Yi(e){return Ji(e).replace(Mi,`%2F`)}function Xi(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var Zi=/\/$/,Qi=e=>e.replace(Zi,``);function $i(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=oa(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:Xi(o)}}function ea(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function ta(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&na(t.matched[r],n.matched[i])&&ra(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function na(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ra(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!ia(e[n],t[n]))return!1;return!0}function ia(e,t){return Y(e)?aa(e,t):Y(t)?aa(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function aa(e,t){return Y(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function oa(e,t){if(fi(e))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`){if(s===`..`)a>1&&a--;else break}return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var X={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function sa(e){if(!e){if(ki){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`}return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),Qi(e)}var ca=/^[^#]+#/;function la(e,t){return e.replace(ca,`#`)+t}function ua(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var da=()=>history.scrollRestoration===`manual`?{left:window.scrollX,top:window.scrollY}:null;function fa(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=ua(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function pa(e,t){return(history.state?history.state.position-t:-1)+e}var ma=new Map;function ha(e){ma.set(e,da())}function ga(e){let t=ma.get(e);return ma.delete(e),t}function _a(e){return typeof e==`string`||e&&typeof e==`object`}function va(e){return typeof e==`string`||typeof e==`symbol`}function ya(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Fi,` `),i=r.indexOf(`=`),a=Xi(i<0?r:r.slice(0,i)),o=i<0?null:Xi(r.slice(i+1));if(a in t){let e=t[a];Y(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function ba(e){let t=``;for(let n in e){let r=e[n];n=qi(n),r==null?r!==void 0&&(t+=(t.length?`&`:``)+n):(Y(r)?r.map(e=>e&&Ki(e)):[r&&Ki(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function xa(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Y(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function Sa(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ca(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(yi(4,{from:n,to:t})):e instanceof Error?c(e):_a(e)?c(yi(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function wa(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(t===`beforeRouteEnter`||o.instances[e]){if(pi(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Ca(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=mi(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Ca(c,n,r,o,e,i)()}))}}}return a}function Ta(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>na(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>na(e,s))||i.push(s))}return[n,r,i]}function Ea(e=``){let t=[],n=[[``,{}]],r=0;e=sa(e);function i(e,t={}){r++,r!==n.length&&n.splice(r),n.push([e,t])}function a(e,n,{direction:r,delta:i}){let a={direction:r,delta:i,type:`pop`};for(let r of t)r(e,n,a)}let o={location:``,state:{},base:e,createHref:la.bind(null,e),replace(e,t){n.splice(r--,1),i(e,t)},push(e,t){i(e,t)},listen(e){return t.push(e),()=>{let n=t.indexOf(e);n>-1&&t.splice(n,1)}},destroy(){t=[],n=[[``,{}]],r=0},go(e,t=!0){let i=this.location,o=e<0?`back`:`forward`;r=Math.max(0,Math.min(r+e,n.length-1)),t&&a(this.location,i,{direction:o,delta:e})}};return Object.defineProperty(o,"location",{enumerable:!0,get:()=>n[r][0]}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>n[r][1]}),o}var Da={type:0,value:``},Oa=/[a-zA-Z0-9_]/;function ka(e){if(!e)return[[]];if(e===`/`)return[[Da]];if(!fi(e))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;)switch(c=e[s++],n){case 0:c===`\\`?(r=n,n=4):c===`/`?(l&&d(),o()):c===`:`?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:c===`(`?n=2:Oa.test(c)?f():(d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case 2:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=3:u+=c;break;case 3:d(),n=0,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`)}return n===2&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var Aa=`[^/]+?`,ja={sensitive:!1,strict:!1,start:!0,end:!0},Ma=/[.+*?^${}()[\]/\\]/g;function Na(e,t){let n=J({},ja,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[90];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=40+(n.sensitive?.25:0);if(o.type===0)r||(i+=`/`),i+=o.value.replace(Ma,`\\$&`),s+=40;else if(o.type===1){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||Aa;if(u!==Aa){s+=10;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=20,c&&(s+=-8),n&&(s+=-20),u===`.*`&&(s+=-50)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=.7000000000000001}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){r&&n.endsWith(`/`)||(n+=`/`),r=!1;for(let e of i)if(e.type===0)n+=e.value;else if(e.type===1){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Y(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Y(c)?c.join(`/`):c;if(!l){if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`)}n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function Pa(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function Fa(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=Pa(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(Ia(r))return 1;if(Ia(i))return-1}return i.length-r.length}function Ia(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var La={strict:!1,end:!0,sensitive:!1};function Ra(e,t,n){let r=J(Na(ka(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function za(e,t){let n=[],r=new Map;t=_i(La,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=Va(e);s.aliasOf=r&&r.record;let l=_i(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(Va(J({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&!fi(u)){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=Ra(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!Ua(d)&&o(e.name)),qa(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:gi}function o(e){if(va(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=Ga(e,n);n.splice(t,0,e),e.record.name&&!Ua(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw yi(1,{location:e});s=i.record.name,a=J(Ba(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Ba(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw yi(1,{location:e,currentLocation:t});s=i.record.name,a=J({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:Wa(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function Ba(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function Va(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Ha(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 Ha(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function Ua(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Wa(e){return e.reduce((e,t)=>J(e,t.meta),{})}function Ga(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;Fa(e,t[i])<0?r=i:n=i+1}let i=Ka(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function Ka(e){let t=e;for(;t=t.parent;)if(qa(t)&&Fa(e,t)===0)return t}function qa({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Ja(e){let t=we(Ci),n=we(wi),r=D(()=>{let n=F(e.to);return t.resolve(n)}),i=D(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(na.bind(null,i));if(o>-1)return o;let s=$a(e[t-2]);return t>1&&$a(i)===s&&a[a.length-1].path!==s?a.findIndex(na.bind(null,e[t-2])):o}),a=D(()=>i.value>-1&&Qa(n.params,r.value.params)),o=D(()=>i.value>-1&&i.value===n.matched.length-1&&ra(n.params,r.value.params));function s(n={}){if(Za(n)){let n=t[F(e.replace)?`replace`:`push`](F(e.to)).catch(gi);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:D(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function Ya(e){return e.length===1?e[0]:e}var Xa=E({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:Ja,setup(t,{slots:r}){let i=e(Ja(t)),{options:a}=we(Ci),o=D(()=>({[eo(t.activeClass,a.linkActiveClass,`router-link-active`)]:i.isActive,[eo(t.exactActiveClass,a.linkExactActiveClass,`router-link-exact-active`)]:i.isExactActive}));return()=>{let e=r.default&&Ya(r.default(i));return t.custom?e:n(`a`,{"aria-current":i.isExactActive?t.ariaCurrentValue:null,href:i.href,onClick:i.navigate,class:o.value},e)}}});function Za(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){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Qa(e,t){for(let n in t){let r=t[n],i=e[n];if(Y(r)){if(!Y(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}else if(r!==i)return!1}return!0}function $a(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var eo=(e,t,n)=>e??t??n,to=E({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){let a=we(Ti),o=D(()=>e.route||a.value),s=we(Si,0),c=D(()=>{let e=F(s),{matched:t}=o.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),l=D(()=>o.value.matched[c.value]);h(Si,D(()=>c.value+1)),h(xi,l),h(Ti,o);let u=new Set;h(Ei,u);let f=k(),p=X,{app:m}=Te().appContext;return d(()=>[f.value,l.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&na(t,i)&&r||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let a=o.value,s=e.name,c=l.value,d=c&&c.components[s];if(!d)return no(r.default,{Component:d,route:a});let h=c.props[s],g=h?h===!0?a.params:typeof h==`function`?h(a):h:null,_=e=>{e.component.isUnmounted&&(c.instances[s]=null)},v=e=>i(()=>{if(p===a||o.value!==a||e.el.getRootNode()!==m._container.getRootNode())return;let t=p;p=a;for(let e of u)e(a,t)}),y=n(d,J({},g,t,{onVnodeUnmounted:_,onVnodeMounted:v,onVnodeUpdated:v,ref:f}));return no(r.default,{Component:y,route:a})||y}}});function no(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var ro=to;function io(e){let t=e.matcher||za(e.routes,e),n=e.parseQuery||ya,r=e.stringifyQuery||ba,a=e.history,o=Sa(),s=Sa(),c=Sa(),l=de(X),u=de(0),d=X;ki&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let f=hi.bind(null,e=>``+e),p=hi.bind(null,Yi),m=hi.bind(null,Xi);function h(e,n){let r,i;va(e)?(r=t.getRecordMatcher(e),i=n):i=e;let a=t.addRoute(i,r);return u.value++,()=>{a(),u.value++}}function g(e){let n=t.getRecordMatcher(e);n&&(t.removeRoute(n),u.value++)}function _(){t.clearRoutes(),u.value++}function v(){return t.getRoutes().map(e=>e.record)}function y(e){return!!t.getRecordMatcher(e)}function b(e,i){if(u.value,typeof e==`string`){i||=e.startsWith(`/`)?X:l.value;let r=$i(n,e,i.path),o=t.resolve({path:r.path},i),s=a.createHref(r.fullPath);return J(r,o,{params:m(o.params),redirectedFrom:void 0,href:s})}i=J({},i||(e.path!=null&&e.path.startsWith(`/`)&&!(`name`in e&&e.name)?X:l.value));let o;if(e.path!=null)o=J({},e,{path:$i(n,e.path,i.path).path});else{let t=J({},e.params);for(let e in t)t[e]??delete t[e];o=J({},e,{params:p(t)}),i.params=p(i.params)}let s=t.resolve(o,i),c=e.hash||``;s.params=f(m(s.params));let d=ea(r,J({},e,{hash:Gi(c),path:s.path})),h=a.createHref(d);return J({fullPath:d,hash:c,query:r===ba?xa(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function x(e){return typeof e==`string`?$i(n,e,l.value.path):J({},e)}function S(e,t){if(d!==e)return yi(8,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(J(x(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=x(i):{path:i},i.params={}),J({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=d=b(e),i=l.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,i);if(c)return E(J(x(c),{state:typeof c==`object`?J({},a,c.state):a,force:o,replace:s}),t||n);let u=n;u.redirectedFrom=t;let f;return!o&&ta(r,i,n)&&(f=yi(16,{to:u,from:i}),M(i,i,!0,!1)),(f?Promise.resolve(f):D(u,i)).catch(e=>bi(e)?bi(e,2)?e:se(e):ae(e,u,i)).then(e=>{if(e){if(bi(e,2))return E(J({replace:s},x(e.to),{state:typeof e.to==`object`?J({},a,e.to.state):a,force:o}),t||u)}else e=k(u,i,!0,s,a);return O(u,i,e),e})}function ee(e,t){let n=S(e,t);return n?Promise.reject(n):Promise.resolve()}function te(e){let t=le.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function D(e,t){let n,[r,i,a]=Ta(e,t);n=wa(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Ca(r,e,t))});let c=ee.bind(null,e,t);return n.push(c),P(n).then(()=>{n=[];for(let r of o.list())n.push(Ca(r,e,t));return n.push(c),P(n)}).then(()=>{n=wa(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Ca(r,e,t))});return n.push(c),P(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter){if(Y(r.beforeEnter))for(let i of r.beforeEnter)n.push(Ca(i,e,t));else n.push(Ca(r.beforeEnter,e,t))}return n.push(c),P(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=wa(a,`beforeRouteEnter`,e,t,te),n.push(c),P(n))).then(()=>{n=[];for(let r of s.list())n.push(Ca(r,e,t));return n.push(c),P(n)}).catch(e=>bi(e,8)?e:Promise.reject(e))}function O(e,t,n){c.list().forEach(r=>te(()=>r(e,t,n)))}function k(e,t,n,r,i){let o=S(e,t);if(o)return o;let s=t===X,c=ki?history.state:{};n&&(r||s?a.replace(e.fullPath,J({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),l.value=e,M(e,t,n,s),se()}let A;function ne(){A||=a.listen((e,t,n)=>{if(!ue.listening)return;let r=b(e),i=T(r,ue.currentRoute.value);if(i){E(J(i,{replace:!0,force:!0}),r).catch(gi);return}d=r;let o=l.value;ki&&n.delta&&ha(pa(o.fullPath,n.delta)),D(r,o).catch(e=>bi(e,12)?e:bi(e,2)?(E(J(x(e.to),{force:!0}),r).then(e=>{bi(e,20)&&!n.delta&&n.type===`pop`&&a.go(-1,!1)}).catch(gi),Promise.reject()):(n.delta&&a.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=k(r,o,!1),e&&(n.delta&&!bi(e,8)?a.go(-n.delta,!1):n.type===`pop`&&bi(e,20)&&a.go(-1,!1)),O(r,o,e)}).catch(gi)})}let re=Sa(),ie=Sa(),j;function ae(e,t,n){se(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function oe(){return j&&l.value!==X?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function se(e){return j||(j=!e,ne(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function M(t,n,r,a){let{scrollBehavior:o}=e;if(!ki||!o)return Promise.resolve();let s=!r&&ga(pa(t.fullPath,0))||(a||!r)&&history.state&&history.state.scroll||null;return i().then(()=>o(t,n,s)).then(e=>t===l.value&&e&&fa(e)).catch(e=>t===l.value&&ae(e,t,n))}let ce=e=>a.go(e),N,le=new Set,ue={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:_,hasRoute:y,getRoutes:v,resolve:b,options:e,push:C,replace:w,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:o.add,beforeResolve:s.add,afterEach:c.add,onError:ie.add,isReady:oe,install(e){e.component(`RouterLink`,Xa),e.component(`RouterView`,ro),e.config.globalProperties.$router=ue,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>F(l)}),ki&&!N&&l.value===X&&(N=!0,C(a.location).catch(e=>{}));let t={};for(let e in X)Object.defineProperty(t,e,{get:()=>l.value[e],enumerable:!0});e.provide(Ci,ue),e.provide(wi,ye(t)),e.provide(Ti,l);let n=e.unmount;le.add(e),e.unmount=function(){le.delete(e),le.size<1&&(d=X,A&&A(),A=null,l.value=X,N=!1,j=!1),n()}}};function P(e){return e.reduce((e,t)=>e.then(()=>te(t)),Promise.resolve())}return ue}function ao(e){return Array.isArray?Array.isArray(e):mo(e)===`[object Array]`}function oo(e){if(typeof e==`string`)return e;if(typeof e==`bigint`)return e.toString();let t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function so(e){return e==null?``:oo(e)}function Z(e){return typeof e==`string`}function co(e){return typeof e==`number`}function lo(e){return e===!0||e===!1||fo(e)&&mo(e)==`[object Boolean]`}function uo(e){return typeof e==`object`}function fo(e){return uo(e)&&e!==null}function Q(e){return e!=null}function po(e){return!e.trim().length}function mo(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var ho=`Extended search is not available`,go=`Logical search is not available`,_o=`Token search is not available`,vo=`Incorrect 'index' type`,yo=`Invalid doc index: must be a non-negative integer within the bounds of the docs array`,bo=e=>`Invalid value for key ${e}`,xo=e=>`Pattern length exceeds max of ${e}.`,So=e=>`Missing ${e} property in key`,Co=e=>`Property 'weight' in key '${e}' must be a positive integer`,wo=`Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.`,To=Object.prototype.hasOwnProperty,Eo=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let n=Do(e);this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Do(e){let t=null,n=null,r=null,i=1,a=null;if(Z(e)||ao(e))r=e,t=Oo(e),n=ko(e);else{if(!To.call(e,`name`))throw Error(So(`name`));let o=e.name;if(r=o,To.call(e,`weight`)&&e.weight!==void 0&&(i=e.weight,i<=0))throw Error(Co(ko(o)));t=Oo(o),n=ko(o),a=e.getFn??null}return{path:t,id:n,weight:i,src:r,getFn:a}}function Oo(e){return ao(e)?e:e.split(`.`)}function ko(e){return ao(e)?e.join(`.`):e}function Ao(e,t){let n=[],r=!1,i=(e,t,a,o)=>{if(Q(e)){if(!t[a])n.push(o===void 0?e:{v:e,i:o});else{let s=e[t[a]];if(!Q(s))return;if(a===t.length-1&&(Z(s)||co(s)||lo(s)||typeof s==`bigint`))n.push(o===void 0?so(s):{v:so(s),i:o});else if(ao(s)){r=!0;for(let e=0,n=s.length;e<n;e+=1)i(s[e],t,a+1,e)}else t.length&&i(s,t,a+1,o)}}};return i(e,Z(t)?t.split(`.`):t,0),r?n:n[0]}var jo={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Mo={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},No={location:0,threshold:.6,distance:100},Po={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:`any`,getFn:Ao,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},$=Object.freeze({...Mo,...jo,...No,...Po});function Fo(e){return e>=9&&e<=13||e===32||e===160}function Io(e=1,t=3){let n=new Map,r=10**t;return{get(t){let i=0,a=!1;for(let e=0;e<t.length;e++)Fo(t.charCodeAt(e))?a=!1:a||=(i++,!0);if(i===0&&(i=1),n.has(i))return n.get(i);let o=Math.round(r/i**(.5*e))/r;return n.set(i,o),o},clear(){n.clear()}}}var Lo=class{constructor({getFn:e=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){this.norm=Io(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;let e=this.docs.length;this.records=Array(e);let t=0;if(Z(this.docs[0]))for(let n=0;n<e;n++){let e=this._createStringRecord(this.docs[n],n);e&&(this.records[t++]=e)}else for(let n=0;n<e;n++)this.records[t++]=this._createObjectRecord(this.docs[n],n);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw Error(yo);if(Z(e)){let n=this._createStringRecord(e,t);return n&&this.records.push(n),n}let n=this._createObjectRecord(e,t);return this.records.push(n),n}removeAt(e){if(!Number.isInteger(e)||e<0)throw Error(yo);for(let t=0,n=this.records.length;t<n;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,n=this.records.length;t<n;t+=1)this.records[t].i>e&&--this.records[t].i}removeAll(e){let t=new Set;for(let n of e)Number.isInteger(n)&&n>=0&&t.add(n);if(t.size===0)return;this.records=this.records.filter(e=>!t.has(e.i));let n=Array.from(t).sort((e,t)=>e-t);for(let e of this.records){let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e.i?t=i+1:r=i}e.i-=t}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!Q(e)||po(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){let n={i:t,$:{}};for(let t=0,r=this.keys.length;t<r;t++){let r=this.keys[t],i=r.getFn?r.getFn(e):this.getFn(e,r.path);if(Q(i)){if(ao(i)){let e=[];for(let t=0,n=i.length;t<n;t+=1){let n=i[t];if(Q(n)){if(Z(n)){if(!po(n)){let r={v:n,i:t,n:this.norm.get(n)};e.push(r)}}else if(Q(n.v)){let t=Z(n.v)?n.v:so(n.v);if(!po(t)){let r={v:t,i:n.i,n:this.norm.get(t)};e.push(r)}}}}n.$[t]=e}else if(Z(i)&&!po(i)){let e={v:i,n:this.norm.get(i)};n.$[t]=e}}}return n}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Ro(e,t,{getFn:n=$.getFn,fieldNormWeight:r=$.fieldNormWeight}={}){let i=new Lo({getFn:n,fieldNormWeight:r});return i.setKeys(e.map(Do)),i.setSources(t),i.create(),i}function zo(e,{getFn:t=$.getFn,fieldNormWeight:n=$.fieldNormWeight}={}){let{keys:r,records:i}=e,a=new Lo({getFn:t,fieldNormWeight:n});return a.setKeys(r),a.setIndexRecords(i),a}function Bo(e=[],t=$.minMatchCharLength){let n=[],r=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&r===-1?r=a:!o&&r!==-1&&(i=a-1,i-r+1>=t&&n.push([r,i]),r=-1)}return e[a-1]&&a-r>=t&&n.push([r,a-1]),n}function Vo(e,t,n,{location:r=$.location,distance:i=$.distance,threshold:a=$.threshold,findAllMatches:o=$.findAllMatches,minMatchCharLength:s=$.minMatchCharLength,includeMatches:c=$.includeMatches,ignoreLocation:l=$.ignoreLocation}={}){if(t.length>32)throw Error(xo(32));let u=t.length,d=e.length,f=Math.max(0,Math.min(r,d)),p=a,m=f,h=(e,t)=>{let n=e/u;if(l)return n;let r=Math.abs(f-t);return i?n+r/i:r?1:n},g=s>1||c,_=g?Array(d):[],v;for(;(v=e.indexOf(t,m))>-1;){let e=h(0,v);if(p=Math.min(e,p),m=v+u,g){let e=0;for(;e<u;)_[v+e]=1,e+=1}}m=-1;let y=[],b=1,x=0,S=u+d,C=1<<u-1;for(let t=0;t<u;t+=1){let r=0,i=S;for(;r<i;)h(t,f+i)<=p?r=i:S=i,i=Math.floor((S-r)/2+r);S=i;let a=Math.max(1,f-i+1),s=o?d:Math.min(f+i,d)+u,c=Array(s+2);c[s+1]=(1<<t)-1;for(let r=s;r>=a;--r){let i=r-1,o=n[e[i]];if(c[r]=(c[r+1]<<1|1)&o,t&&(c[r]|=(y[r+1]|y[r])<<1|1|y[r+1]),c[r]&C&&(b=h(t,i),b<=p)){if(p=b,m=i,x=t,m<=f)break;a=Math.max(1,2*f-m)}}if(h(t+1,f)>p)break;y=c}if(g&&m>=0){let t=Math.min(d-1,m+u-1+x);for(let r=m;r<=t;r+=1)n[e[r]]&&(_[r]=1)}let w={isMatch:m>=0,score:Math.max(.001,b)};if(g){let e=Bo(_,s);e.length?c&&(w.indices=e):w.isMatch=!1}return w}function Ho(e){let t={};for(let n=0,r=e.length;n<r;n+=1){let i=e.charAt(n);t[i]=(t[i]||0)|1<<r-n-1}return t}function Uo(e){if(e.length<=1)return e;e.sort((e,t)=>e[0]-t[0]||e[1]-t[1]);let t=[e[0]];for(let n=1,r=e.length;n<r;n+=1){let r=t[t.length-1],i=e[n];i[0]<=r[1]+1?r[1]=Math.max(r[1],i[1]):t.push(i)}return t}var Wo={ł:`l`,Ł:`L`,đ:`d`,Đ:`D`,ø:`o`,Ø:`O`,ħ:`h`,Ħ:`H`,ŧ:`t`,Ŧ:`T`,ı:`i`,ß:`ss`},Go=RegExp(`[`+Object.keys(Wo).join(``)+`]`,`g`),Ko=typeof String.prototype.normalize==`function`?e=>e.normalize(`NFD`).replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,``).replace(Go,e=>Wo[e]):e=>e,qo=class{constructor(e,{location:t=$.location,threshold:n=$.threshold,distance:r=$.distance,includeMatches:i=$.includeMatches,findAllMatches:a=$.findAllMatches,minMatchCharLength:o=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:c=$.ignoreDiacritics,ignoreLocation:l=$.ignoreLocation}={}){if(this.options={location:t,threshold:n,distance:r,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:c,ignoreLocation:l},e=s?e:e.toLowerCase(),e=c?Ko(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let u=(e,t)=>{this.chunks.push({pattern:e,alphabet:Ho(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,n=d-t;for(;e<n;)u(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;u(this.pattern.substr(e),e)}}else u(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:n,includeMatches:r}=this.options;if(e=t?e:e.toLowerCase(),e=n?Ko(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};let t={isMatch:!0,score:0};return r&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,ignoreLocation:l}=this.options,u=[],d=0,f=!1;this.chunks.forEach(({pattern:t,alphabet:n,startIndex:p})=>{let{isMatch:m,score:h,indices:g}=Vo(e,t,n,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:c,includeMatches:r,ignoreLocation:l});m&&(f=!0),d+=h,m&&g&&u.push(...g)});let p={isMatch:f,score:f?d/this.chunks.length:1};return f&&r&&(p.indices=Uo(u)),p}},Jo=[];function Yo(...e){Jo.push(...e)}function Xo(e,t){for(let n=0,r=Jo.length;n<r;n+=1){let r=Jo[n];if(r.condition(e,t))return new r(e,t)}return new qo(e,t)}var Zo={AND:`$and`,OR:`$or`},Qo={PATH:`$path`,PATTERN:`$val`},$o=e=>!!(e[Zo.AND]||e[Zo.OR]),es=e=>!!e[Qo.PATH],ts=e=>!ao(e)&&uo(e)&&!$o(e),ns=e=>({[Zo.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function rs(e,t,{auto:n=!0}={}){let r=e=>{if(Z(e)){let r={keyId:null,pattern:e};return n&&(r.searcher=Xo(e,t)),r}let i=Object.keys(e),a=es(e);if(!a&&i.length>1&&!$o(e))return r(ns(e));if(ts(e)){let r=a?e[Qo.PATH]:i[0],o=a?e[Qo.PATTERN]:e[r];if(!Z(o))throw Error(bo(r));let s={keyId:ko(r),pattern:o};return n&&(s.searcher=Xo(o,t)),s}let o={children:[],operator:i[0]};return i.forEach(t=>{let n=e[t];ao(n)&&n.forEach(e=>{o.children.push(r(e))})}),o};return $o(e)||(e=ns(e)),r(e)}function is(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){let n=1;return e.forEach(({key:e,norm:r,score:i})=>{let a=e?e.weight:null;n*=(i===0&&a?2**-52:i)**+((a||1)*(t?1:r))}),n}function as(e,{ignoreFieldNorm:t=$.ignoreFieldNorm}){e.forEach(e=>{e.score=is(e.matches,{ignoreFieldNorm:t})})}var os=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){let t=this.heap;for(;e>0;){let n=e-1>>1;if(this.comparator(t[e],t[n])<=0)break;let r=t[e];t[e]=t[n],t[n]=r,e=n}}_sinkDown(e){let t=this.heap,n=t.length,r=e;do{e=r;let i=2*e+1,a=2*e+2;if(i<n&&this.comparator(t[i],t[r])>0&&(r=i),a<n&&this.comparator(t[a],t[r])>0&&(r=a),r!==e){let n=t[e];t[e]=t[r],t[r]=n}}while(r!==e)}};function ss(e){let t=[];return e.matches.forEach(e=>{if(!Q(e.indices)||!e.indices.length)return;let n={indices:e.indices,value:e.value};e.key&&(n.key=e.key.id),e.idx>-1&&(n.refIndex=e.idx),t.push(n)}),t}function cs(e,t,{includeMatches:n=$.includeMatches,includeScore:r=$.includeScore}={}){return e.map(e=>{let{idx:i}=e,a={item:t[i],refIndex:i};return n&&(a.matches=ss(e)),r&&(a.score=e.score),a})}var ls=/[\p{L}\p{M}\p{N}_]+/gu,us=new WeakSet;function ds(e){us.has(e)||(us.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function fs(e){if(typeof e==`function`){let t=!1;return n=>{let r=e(n);if(!t&&(t=!0,!Array.isArray(r)||r.some(e=>typeof e!=`string`)))throw Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(r)?`array containing non-strings`:typeof r}.`);return r}}return e instanceof RegExp?(e.global||ds(e),t=>t.match(e)||[]):e=>e.match(ls)||[]}function ps({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:n}={}){let r=fs(n);return{tokenize(n){return e||(n=n.toLowerCase()),t&&(n=Ko(n)),r(n)}}}function ms(e,t,n,r){let i=r.tokenize(t);if(!i.length)return;e.fieldCount++,e.docFieldCount.set(n,(e.docFieldCount.get(n)||0)+1);let a=new Set(i),o=e.docTermFieldHits.get(n);o||(o=new Map,e.docTermFieldHits.set(n,o));for(let t of a)o.set(t,(o.get(t)||0)+1),e.df.set(t,(e.df.get(t)||0)+1)}function hs(e,t,n,r){let{i,v:a,$:o}=t;if(a!==void 0)ms(e,a,i,r);else if(o)for(let t=0;t<n;t++){let n=o[t];if(n){if(Array.isArray(n))for(let t of n)ms(e,t.v,i,r);else ms(e,n.v,i,r)}}}function gs(e,t,n){let r={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(let i of e)hs(r,i,t,n);return r}function _s(e,t,n,r){hs(e,t,n,r)}function vs(e,t){let n=e.docFieldCount.get(t);if(n===void 0)return;e.fieldCount-=n,e.docFieldCount.delete(t);let r=e.docTermFieldHits.get(t);if(r){for(let[t,n]of r){let r=(e.df.get(t)||0)-n;r<=0?e.df.delete(t):e.df.set(t,r)}e.docTermFieldHits.delete(t)}}function ys(e,t){if(t.length===0)return;let n=Array.from(new Set(t)).sort((e,t)=>e-t);for(let t of n)vs(e,t);let r=e=>{let t=0,r=n.length;for(;t<r;){let i=t+r>>>1;n[i]<e?t=i+1:r=i}return e-t},i=n[0],a=new Map;for(let[t,n]of e.docFieldCount)a.set(t>i?r(t):t,n);e.docFieldCount=a;let o=new Map;for(let[t,n]of e.docTermFieldHits)o.set(t>i?r(t):t,n);e.docTermFieldHits=o}var bs=class{constructor(e,t,n){if(this.options={...$,...t},this.options.useExtendedSearch)throw Error(ho);if(this.options.useTokenSearch)throw Error(_o);this._keyStore=new Eo(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,n),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;let t=Xo(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Lo))throw Error(vo);if(this._myIndex=t||Ro(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){let e=ps({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=gs(this._myIndex.records,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}add(e){if(!Q(e))return;this._docs.push(e);let t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){let e=ps({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});_s(this._invertedIndex,t,this._myIndex.keys.length,e)}this._invalidateSearcherCache()}remove(e=()=>!1){let t=[],n=[];for(let r=0,i=this._docs.length;r<i;r+=1)e(this._docs[r],r)&&(t.push(this._docs[r]),n.push(r));if(n.length){this._invertedIndex&&ys(this._invertedIndex,n);let e=new Set(n);this._docs=this._docs.filter((t,n)=>!e.has(n)),this._myIndex.removeAll(n),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw Error(yo);this._invertedIndex&&ys(this._invertedIndex,[e]);let t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){let{limit:n=-1}=t||{},{includeMatches:r,includeScore:i,shouldSort:a,sortFn:o,ignoreFieldNorm:s}=this.options;if(Z(e)&&!e.trim()){let e=this._docs.map((e,t)=>({item:e,refIndex:t}));return co(n)&&n>-1&&(e=e.slice(0,n)),e}let c=a&&co(n)&&n>0&&Z(e),l=o,u=(e,t)=>l(e,t)||e.idx-t.idx,d;if(c){let t=new os(n,u);Z(this._docs[0])?this._searchStringList(e,{heap:t,ignoreFieldNorm:s}):this._searchObjectList(e,{heap:t,ignoreFieldNorm:s}),d=t.extractSorted()}else d=Z(e)?Z(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),as(d,{ignoreFieldNorm:s}),a&&d.sort(Z(e)?u:l),co(n)&&n>-1&&(d=d.slice(0,n));return cs(d,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=t?null:[];return a.forEach(({v:e,i:a,n:s})=>{if(!Q(e))return;let c=r.searchIn(e);if(c.isMatch){let r={score:c.score,value:e,norm:s,indices:c.indices};i&&(r.matchedMask=c.matchedMask,r.matchedTerms=c.matchedTerms,r.termCount=c.termCount);let l=[r];if(!i||this._coversAllTokens(l)){let r={item:e,idx:a,matches:l};t?(r.score=is(r.matches,{ignoreFieldNorm:n}),t.insert(r)):o.push(r)}}}),o}_searchLogical(e){throw Error(go)}_searchObjectList(e,{heap:t,ignoreFieldNorm:n}={}){let r=this._getSearcher(e),i=this.options.useTokenSearch&&this.options.tokenMatch===`all`,{records:a}=this._myIndex,o=this._normalizedKeys(),s=t?null:[];return a.forEach(({$:e,i:a})=>{if(!Q(e))return;let c=[],l=!1,u=!1;if(o.forEach((t,n)=>{let i=this._findMatches({key:t,value:e[n],searcher:r});i.length?(c.push(...i),i[0].hasInverse&&(u=!0)):l=!0}),!(u&&l)&&c.length&&(!i||this._coversAllTokens(c))){let r={idx:a,item:e,matches:c};t?(r.score=is(r.matches,{ignoreFieldNorm:n}),t.insert(r)):s.push(r)}}),s}_findMatches({key:e,value:t,searcher:n}){if(!Q(t))return[];let r=[];if(ao(t))t.forEach(({v:t,i,n:a})=>{if(!Q(t))return;let o=n.searchIn(t);if(o.isMatch){let n={score:o.score,key:e,value:t,idx:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(n.matchedMask=o.matchedMask,n.matchedTerms=o.matchedTerms,n.termCount=o.termCount),r.push(n)}});else{let{v:i,n:a}=t,o=n.searchIn(i);if(o.isMatch){let t={score:o.score,key:e,value:i,norm:a,indices:o.indices,hasInverse:o.hasInverse};o.termCount!==void 0&&(t.matchedMask=o.matchedMask,t.matchedTerms=o.matchedTerms,t.termCount=o.termCount),r.push(t)}}return r}_coversAllTokens(e){let t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let n=0;for(let t=0;t<e.length;t++)n|=e[t].matchedMask||0;return n===2**t-1}let n=new Set;for(let t=0;t<e.length;t++){let r=e[t].matchedTerms;if(r)for(let e of r)n.add(e)}return n.size===t}};bs.version=`7.5.0`,bs.createIndex=Ro,bs.parseIndex=zo,bs.config=$,bs.match=function(e,t,n){if(n&&n.useTokenSearch)throw Error(wo);return Xo(e,{...$,...n}).searchIn(t)},bs.parseQuery=rs,bs.use=function(...e){e.forEach(e=>Yo(e))};var xs=bs,Ss=[[`Application API`,`application`],[`Composition API: Setup`,`composition-api-setup`],[`Composition API: Lifecycle Hooks`,`composition-api-lifecycle`],[`Composition API: Dependency Injection`,`composition-api-dependency-injection`],[`Reactivity API: Core`,`reactivity-core`],[`Reactivity API: Utilities`,`reactivity-utilities`],[`Reactivity API: Advanced`,`reactivity-advanced`],[`Built-in Directives`,`built-in-directives`],[`Built-in Components`,`built-in-components`],[`Built-in Special Elements`,`built-in-special-elements`],[`Built-in Special Attributes`,`built-in-special-attributes`],[`Single-File Component: script setup`,`sfc-script-setup`],[`Single-File Component: CSS Features`,`sfc-css-features`],[`Render Function APIs`,`render-function`],[`Server-Side Rendering API`,`ssr`],[`TypeScript Utility Types`,`utility-types`],[`Custom Renderer API`,`custom-renderer`]];function Cs(){return Ss.map(([e,t])=>({id:`documentation:vue:${t}`,title:e,description:`vuejs.org/api/${t}`,group:`Documentation`,icon:ws(t),keywords:[`vue`,`docs`,`api`,t],action:()=>{window.open(`https://vuejs.org/api/${t}.html`,`_blank`,`noopener,noreferrer`)}}))}function ws(e){return e===`utility-types`?`i-carbon-language`:e===`ssr`||e===`custom-renderer`?`i-carbon-server-proxy`:e.includes(`css`)?`i-carbon-color-palette`:`i-logos-vue`}function Ts(e){let t=Di(),{clearTimelineEvents:n,inspectComponentInPage:r,timelineRecording:i,toggleTimelineRecording:a}=oe();return D(()=>[...e.tabs.value.flatMap(e=>e.path?[{id:`navigate:${e.id}`,title:`Open ${e.title}`,description:e.description,group:`Navigation`,icon:e.icon,keywords:[`tab`,e.id],action:async()=>{await t.push(e.path)}}]:[]),{id:`components:inspect`,title:`Inspect Component`,description:`Select a component from the page`,group:`Actions`,icon:`i-carbon-select-window`,keywords:[`locator`,`picker`],action:async()=>{await r()}},{id:`timeline:toggle-recording`,title:i.value?`Stop Timeline Recording`:`Start Timeline Recording`,group:`Actions`,icon:i.value?`i-carbon-stop-filled`:`i-carbon-play-filled`,keywords:[`timeline`,`record`],action:a},{id:`timeline:clear`,title:`Clear Timeline`,group:`Actions`,icon:`i-carbon-trash-can`,keywords:[`timeline`,`events`],action:n},{id:`documentation:vue`,title:`Vue Documentation`,group:`Documentation`,icon:`i-logos-vue`,keywords:[`docs`,`guide`,`api`],action:Cs}])}function Es(e,t){let n=t.trim().toLowerCase().split(/\s+/).filter(Boolean);return n.length?new xs(e,{keys:[{name:`title`,weight:.55},{name:`keywords`,weight:.2},{name:`description`,weight:.15},{name:`group`,weight:.1}],threshold:.38,ignoreLocation:!0}).search(n.join(` `)).map(({item:e})=>e):[...e]}function Ds(e){let n=k(),r=k(),a=k(``),o=k(0),s=k(),c=k(),l=k([]),u=D(()=>l.value[l.value.length-1]?.commands??T(e)),f=D(()=>Es(u.value,a.value)),p=D(()=>l.value.length>0),m=D(()=>l.value.map(e=>e.parent.title)),h=D(()=>{let e=new Map;for(let t of f.value){let n=e.get(t.group)??[];n.push(t),e.set(t.group,n)}return[...e]}),g=D(()=>{let e=f.value[o.value];return e?Os(e.id):void 0});d([a,()=>T(e)],()=>{o.value=0}),t(()=>{window.addEventListener(`keydown`,b,{capture:!0})}),se(()=>{window.removeEventListener(`keydown`,b,{capture:!0}),n.value?.open&&n.value.close()});async function _(){a.value=``,o.value=0,c.value=void 0,l.value=[],n.value?.open||n.value?.showModal(),await i(),r.value?.focus()}function v(){s.value||n.value?.open&&n.value.close()}function y(){n.value?.open?v():_()}function b(e){if(e.key.toLowerCase()===`k`&&!e.shiftKey&&(e.metaKey||e.ctrlKey||e.altKey))e.preventDefault(),e.stopPropagation(),y();else if(n.value?.open){if(e.key===`ArrowDown`||e.key===`ArrowUp`)e.preventDefault(),x(e.key===`ArrowDown`?1:-1);else if(e.key===`Enter`){let t=f.value[o.value];if(!t)return;e.preventDefault(),S(t)}}}function x(e){let t=f.value.length;t&&(o.value=(o.value+e+t)%t,i(()=>{n.value?.querySelector(`[data-command-index="${o.value}"]`)?.scrollIntoView({block:`nearest`})}))}async function S(e){if(!s.value){s.value=e.id,c.value=void 0;try{let t=await e.action();if(s.value=void 0,t){l.value=[...l.value,{parent:e,commands:t}],a.value=``,o.value=0,await i(),r.value?.focus();return}v()}catch(e){c.value=e instanceof Error?e.message:String(e),s.value=void 0}}}function C(e){e.preventDefault(),p.value?E():v()}function w(e){e.target===n.value&&v()}function E(){p.value&&!s.value&&(l.value=l.value.slice(0,-1),a.value=``,o.value=0,c.value=void 0,i(()=>r.value?.focus()))}return{activeDescendant:g,nested:p,commandElementId:Os,commandError:c,commandPath:m,dialog:n,filteredCommands:f,groupedCommands:h,goBack:E,onCancel:C,onDialogClick:w,runCommand:S,runningCommandId:s,search:a,searchInput:r,selectedIndex:o}}function Os(e){return`command-palette-${e.replace(/[^a-z0-9_-]/gi,`-`)}`}var ks={class:`max-h-[min(70vh,38rem)] flex flex-col`},As={class:`border-b border-base px-4 py-3 flex items-center gap-3`},js={key:1,class:`i-carbon-search shrink-0 text-lg color-muted`,"aria-hidden":`true`},Ms=[`aria-activedescendant`],Ns={key:0,class:`border-b border-base px-4 py-2 text-xs color-muted flex items-center gap-1`},Ps={class:`color-base`},Fs={id:`command-palette-list`,class:`min-h-30 flex-auto overflow-auto p-2`,role:`listbox`},Is={class:`m-0 px-2 py-1 text-11px font-600 tracking-wide color-muted uppercase`},Ls=[`id`,`data-command-index`,`aria-busy`,`aria-selected`,`onClick`,`onPointerenter`],Rs={class:`min-w-0 flex-auto`},zs={class:`block truncate`},Bs={key:0,class:`block truncate text-xs color-muted`},Vs={key:0,class:`i-carbon-circle-dash shrink-0 animate-spin color-muted`,"aria-label":`Running`},Hs={key:1,class:`i-carbon-return shrink-0 color-muted`,"aria-hidden":`true`},Us={key:1,class:`min-h-28 color-muted flex items-center justify-center`},Ws={key:1,class:`border-t border-base bg-red-500/8 px-4 py-2 text-sm text-red-600 dark:text-red-300`,role:`alert`},Gs=ve(E({__name:`CommandPalette`,props:{commands:{}},setup(e){let{activeDescendant:t,nested:n,commandElementId:r,commandError:i,commandPath:o,dialog:s,filteredCommands:c,groupedCommands:u,goBack:d,onCancel:f,onDialogClick:m,runCommand:h,runningCommandId:g,search:_,searchInput:v,selectedIndex:y}=Ds(ge(e,`commands`));return(e,b)=>(p(),j(`dialog`,{ref_key:`dialog`,ref:s,class:`command-palette max-h-[min(70vh,38rem)] max-w-[calc(100vw-2rem)] w-160 overflow-hidden border border-base rounded-2 bg-base p-0 color-base shadow-2xl`,"aria-label":`Vue DevTools command palette`,onCancel:b[2]||=(...e)=>F(f)&&F(f)(...e),onClick:b[3]||=(...e)=>F(m)&&F(m)(...e)},[A(`div`,ks,[A(`div`,As,[F(n)?(p(),j(`button`,{key:0,class:`h-7 w-7 shrink-0 border-0 rounded-1 bg-transparent color-muted flex items-center justify-center hover:bg-active hover:color-base`,type:`button`,"aria-label":`Back to previous commands`,onClick:b[0]||=(...e)=>F(d)&&F(d)(...e)},[...b[4]||=[A(`span`,{class:`i-carbon-arrow-left`,"aria-hidden":`true`},null,-1)]])):(p(),j(`span`,js)),x(A(`input`,{ref_key:`searchInput`,ref:v,"onUpdate:modelValue":b[1]||=e=>S(_)?_.value=e:null,class:`min-w-0 flex-auto border-0 bg-transparent color-base text-base outline-none`,type:`search`,role:`combobox`,"aria-autocomplete":`list`,"aria-controls":`command-palette-list`,"aria-activedescendant":F(t),"aria-expanded":`true`,placeholder:`Type a command...`},null,8,Ms),[[yt,F(_)]]),b[5]||=A(`kbd`,{class:`rounded-1 border border-base bg-active px-1.5 py-0.5 text-xs color-muted`},` Esc `,-1)]),F(n)?(p(),j(`div`,Ns,[b[7]||=A(`span`,null,`Commands`,-1),(p(!0),j(M,null,l(F(o),e=>(p(),j(M,{key:e},[b[6]||=A(`span`,{"aria-hidden":`true`},`/`,-1),A(`span`,Ps,a(e),1)],64))),128))])):N(``,!0),A(`div`,Fs,[F(c).length?(p(!0),j(M,{key:0},l(F(u),([e,t])=>(p(),j(`section`,{key:e,class:`mb-2 last:mb-0`},[A(`h2`,Is,a(e),1),(p(!0),j(M,null,l(t,e=>(p(),j(`button`,{id:F(r)(e.id),key:e.id,class:I([`w-full border-0 rounded-1 bg-transparent px-2 py-2 color-base flex items-center gap-3 text-left hover:bg-active`,F(c).indexOf(e)===F(y)?`bg-active`:``]),"data-command-index":F(c).indexOf(e),role:`option`,type:`button`,"aria-busy":F(g)===e.id,"aria-selected":F(c).indexOf(e)===F(y),onClick:t=>F(h)(e),onPointerenter:t=>y.value=F(c).indexOf(e)},[A(`span`,{class:I([e.icon,`shrink-0 text-lg`]),"aria-hidden":`true`},null,2),A(`span`,Rs,[A(`span`,zs,a(e.title),1),e.description?(p(),j(`span`,Bs,a(e.description),1)):N(``,!0)]),F(g)===e.id?(p(),j(`span`,Vs)):(p(),j(`span`,Hs))],42,Ls))),128))]))),128)):(p(),j(`div`,Us,` No matching commands `))]),F(i)?(p(),j(`div`,Ws,a(F(i)),1)):N(``,!0),b[8]||=A(`footer`,{class:`border-t border-base px-4 py-2 text-xs color-muted flex items-center gap-3`},[A(`span`,null,[A(`kbd`,null,`↑`),A(`kbd`,null,`↓`),Se(` Navigate`)]),A(`span`,null,[A(`kbd`,null,`Enter`),Se(` Run`)]),A(`span`,null,[A(`kbd`,null,`Esc`),Se(` Close`)])],-1)])],544))}}),[[`__scopeId`,`data-v-3eab9098`]]),Ks=`vite-devtools-color-scheme`;function qs(){let e=k(!1),n,r;function i(t,n={}){e.value=t===`dark`,document.documentElement.classList.toggle(`dark`,e.value),document.documentElement.classList.toggle(`light`,!e.value),n.persist&&Xs(t)}function a(e){i(e?`dark`:`light`,{persist:!0})}function o(){i(Js())}function s(){Ys()||Zs()||o()}function c(e){e.key===Ks&&o()}return t(()=>{o(),n=window.matchMedia(`(prefers-color-scheme: dark)`),n.addEventListener(`change`,s),window.addEventListener(`storage`,c),r=$s(o)}),se(()=>{n?.removeEventListener(`change`,s),window.removeEventListener(`storage`,c),r?.disconnect()}),{dark:e,setDarkMode:a,syncColorMode:o}}function Js(){return Ys()??Zs()??Qs()}function Ys(){try{let e=window.localStorage.getItem(Ks);return tc(e)?e:void 0}catch{return}}function Xs(e){try{window.localStorage.setItem(Ks,e)}catch{}}function Zs(){let e=ec();if(e)for(let t of[e.documentElement,e.body]){if(!t)continue;if(t.classList.contains(`dark`))return`dark`;if(t.classList.contains(`light`))return`light`;let e=t.getAttribute(`data-theme`);if(tc(e))return e}}function Qs(){return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function $s(e){let t=ec();if(!t||typeof MutationObserver>`u`)return;let n=new MutationObserver(e);for(let e of[t.documentElement,t.body])e&&n.observe(e,{attributes:!0,attributeFilter:[`class`,`data-theme`]});return n}function ec(){if(window.parent!==window)try{return window.parent.document}catch{return}}function tc(e){return e===`dark`||e===`light`}var nc={class:`bg-base color-base`},rc={class:`flex gap-2 border-b border-base px-3 py-2`},ic={class:`flex gap-2 px-3 py-2`},ac=[`value`],oc=E({__name:`DockingPanel`,setup(e){let{apps:t,selectApp:n,selectedAppId:r}=oe(),{dark:i,setDarkMode:o}=qs(),{settings:s}=w(),c=D({get:()=>s.expandSidebar,set:e=>{s.expandSidebar=e}}),d=D({get:()=>r.value??``,set:e=>{e&&n(e)}});function f(){window.location.reload()}return(e,n)=>(p(),j(`div`,nc,[A(`div`,rc,[A(`button`,{class:`settings-button text-primary-700 dark:text-primary-300`,type:`button`,onClick:n[0]||=e=>F(o)(!F(i))},[A(`span`,{class:I(F(i)?`i-carbon-moon`:`i-carbon-sun`),"aria-hidden":`true`},null,2),Se(` `+a(F(i)?`Dark`:`Light`),1)]),A(`button`,{class:`settings-button text-primary-700 dark:text-primary-300`,type:`button`,onClick:n[1]||=e=>c.value=!c.value},[A(`span`,{class:I(c.value?`i-carbon-side-panel-close`:`i-carbon-side-panel-open`),"aria-hidden":`true`},null,2),Se(` `+a(c.value?`Minimize Sidebar`:`Expand Sidebar`),1)]),De(F(Xa),{class:`settings-button settings-button-primary no-underline`,to:`/settings`},{default:u(()=>[...n[3]||=[A(`span`,{class:`i-carbon-settings-adjust`,"aria-hidden":`true`},null,-1),Se(` Settings `,-1)]]),_:1})]),A(`div`,ic,[F(t).length>1?x((p(),j(`select`,{key:0,"onUpdate:modelValue":n[2]||=e=>d.value=e,class:`settings-select min-w-44`,"aria-label":`Toggle app`},[(p(!0),j(M,null,l(F(t),e=>(p(),j(`option`,{key:e.id,value:e.id},a(e.name)+a(e.version?` (${e.version})`:``),9,ac))),128))],512)),[[St,d.value]]):N(``,!0),A(`button`,{class:`settings-button`,type:`button`,onClick:f},[...n[4]||=[A(`span`,{class:`i-carbon-renew`,"aria-hidden":`true`},null,-1),Se(` Refresh Page `,-1)]])])]))}}),sc=`custom-ic-`,cc=/^(?:baseline|outline|round|sharp|twotone)-/;function lc(e){return!!e&&e.startsWith(`i-`)}function uc(e){return!!e&&/^(?:https?:|data:image\/|blob:)/.test(e)}function dc(e){if(!e||lc(e)||uc(e))return;let t=e.trim();if(t)return(t.startsWith(sc)?t.slice(10):t).replace(cc,``).replace(/-/g,`_`)}var fc=[`src`,`alt`,`title`],pc=[`title`],mc=[`title`],hc=E({inheritAttrs:!1,__name:`DevtoolsIcon`,props:{icon:{default:void 0},fallback:{default:`i-carbon-play`},title:{default:void 0}},setup(e){let t=e,n=D(()=>t.icon||t.fallback),r=D(()=>uc(n.value)?n.value:void 0),i=D(()=>dc(n.value)),s=D(()=>{if(!(r.value||i.value))return lc(n.value)?n.value:t.fallback});return(t,n)=>r.value?(p(),j(`img`,o({key:0},t.$attrs,{src:r.value,alt:e.title??``,title:e.title,"aria-hidden":`true`}),null,16,fc)):i.value?(p(),j(`span`,o({key:1},t.$attrs,{class:`material-icons`,title:e.title,"aria-hidden":`true`}),a(i.value),17,pc)):(p(),j(`span`,o({key:2},t.$attrs,{class:s.value,title:e.title,"aria-hidden":`true`}),null,16,mc))}}),gc=E({__name:`TabIcon`,props:{icon:{}},setup(e){return(t,n)=>(p(),fe(hc,{class:`tab-icon`,icon:e.icon,fallback:`i-carbon-bring-forward`},null,8,[`icon`]))}}),_c=[`href`,`aria-label`,`aria-current`,`onClick`],vc={key:0,class:`min-w-0 truncate text-3.5 font-500`},yc=E({__name:`SideNavItem`,props:{tab:{},active:{type:Boolean},expanded:{type:Boolean}},setup(e){let t=e,n=D(()=>({content:t.tab.title,disabled:t.expanded})),r=D(()=>t.tab.path??`/${t.tab.id}`);return(t,i)=>{let o=ke(`tooltip`);return p(),fe(F(Xa),{to:r.value,custom:``},{default:u(({href:t,navigate:r})=>[x((p(),j(`a`,{class:I([`side-nav-item no-underline`,{"side-nav-item-active":e.active,"side-nav-item-expanded":e.expanded}]),href:t,"aria-label":e.tab.title,"aria-current":e.active?`page`:void 0,onClick:r},[De(gc,{icon:e.tab.icon},null,8,[`icon`]),e.expanded?(p(),j(`span`,vc,a(e.tab.title),1)):N(``,!0)],10,_c)),[[o,n.value,void 0,{right:!0}]])]),_:1},8,[`to`])}}}),bc={class:`side-nav`},xc={class:`side-nav-brand`},Sc={key:0,class:`min-w-0 truncate text-lg font-650`},Cc={key:1,class:`flex-auto`},wc={key:2,class:`i-carbon-overflow-menu-vertical color-muted text-4`,"aria-hidden":`true`},Tc=E({__name:`SideNav`,props:{activeTab:{},tabs:{},systemTabs:{},connected:{type:Boolean}},setup(e){let{settings:t}=w(),n=D(()=>t.expandSidebar),r=D(()=>t.scrollableSidebar);return(t,i)=>{let a=ke(`tooltip`);return p(),j(`aside`,bc,[A(`div`,xc,[De(F(di),{class:`h-full w-full`,placement:`left-start`,distance:6,skidding:5,triggers:[`click`]},{popper:u(()=>[De(oc)]),default:u(()=>[x((p(),j(`button`,{class:I([`relative h-10 w-full box-border select-none flex items-center justify-center gap-2 border-0 bg-transparent p-2 color-muted hover:bg-active hover:color-base`,n.value?`rounded pl-2.5`:`rounded-xl`]),type:`button`,"aria-label":`DevTools menu`},[i[0]||=A(`span`,{class:`i-logos-vue h-6 w-6 shrink-0`,"aria-hidden":`true`},null,-1),n.value?(p(),j(`span`,Sc,` DevTools `)):N(``,!0),n.value?(p(),j(`span`,Cc)):N(``,!0),n.value?(p(),j(`span`,wc)):N(``,!0),A(`span`,{class:I([`absolute bottom-2 right-2 h-2 w-2 rounded-full`,e.connected?`bg-emerald-500`:`bg-amber-500`])},null,2)],2)),[[a,{content:`DevTools menu`,disabled:n.value},void 0,{right:!0}]])]),_:1})]),A(`nav`,{class:I([`no-scrollbar min-h-0 box-border flex flex-auto flex-col overflow-x-hidden py-2`,[n.value?`items-stretch px-1.5`:`items-center px-1.5`,r.value?`overflow-y-auto`:`overflow-y-hidden`]]),"aria-label":`Devtools panels`},[(p(!0),j(M,null,l(e.tabs,t=>(p(),fe(yc,{key:t.id,tab:t,active:e.activeTab===t.id,expanded:n.value},null,8,[`tab`,`active`,`expanded`]))),128))],2),A(`div`,{class:I([`w-full box-border shrink-0 border-t border-base bg-subtle flex flex-col p-1`,n.value?`items-stretch`:`items-center`])},[(p(!0),j(M,null,l(e.systemTabs,t=>(p(),fe(yc,{key:t.id,tab:t,active:e.activeTab===t.id,expanded:n.value},null,8,[`tab`,`active`,`expanded`]))),128))],2)])}}}),Ec=[{id:`overview`,title:`Overview`,icon:`i-carbon-information`,order:-100,description:`Detected Vue apps and runtime status`,path:`/overview`},{id:`components`,title:`Components`,icon:`i-carbon-assembly-cluster`,order:-90,description:`Component tree snapshot for the active app`,path:`/components`},{id:`pages`,title:`Pages`,icon:`i-carbon-tree-view-alt`,order:-80,description:`Page and route records`,path:`/pages`},{id:`graph`,title:`Reactivity Graph`,icon:`i-carbon-network-4`,order:-85,description:`Dependency graph and relationships`,path:`/graph`},{id:`timeline`,title:`Timeline`,icon:`i-carbon-roadmap`,order:-70,description:`Runtime events emitted by the current host`,path:`/timeline`},{id:`plugins`,title:`Plugins`,icon:`i-carbon-plug`,order:-30,description:`Devtools plugin compatibility surface`,path:`/plugins`},{id:`settings`,title:`Settings`,icon:`i-carbon-settings-adjust`,order:100,description:`Client preferences and host status`,path:`/settings`}],Dc=new Set(Ec.map(e=>e.id));function Oc(e,t){let n=t.find(e=>e.packageName===`vue-router`);return e.find(e=>kc(e.id)&&e.pluginId===n?.id)??e.find(e=>kc(e.id))}function kc(e){return e.startsWith(`router-inspector`)}function Ac(e){return Dc.has(e.id)}function jc(e,t){return Dc.has(e.id)||e.packageName!=null&&Dc.has(e.packageName)?!0:t.some(t=>t.pluginId===e.id&&Ac(t))}function Mc(e,t){let n=t.find(t=>t.id===e);return n?.label||n?.packageName||e||`unknown plugin`}function Nc(){let{inspectors:e,plugins:t,reactivityGraphEnabled:n}=oe(),{settings:r}=w(),i=D(()=>Oc(e.value,t.value)),a=D(()=>{let r=e.value.filter(e=>(!kc(e.id)||e.id===i.value?.id)&&!Ac(e));return[...Ec.flatMap(e=>Fc(e,{reactivityGraphEnabled:n.value})),...r.map((e,n)=>Ic(e,n,t.value))].sort((e,t)=>e.order-t.order||e.title.localeCompare(t.title))}),o=D(()=>a.value.filter(e=>e.id!==`settings`));return{categorizedTabs:D(()=>Rc(o.value,r.tabSettings)),configurableTabs:o,tabs:a}}function Pc(e){let{categorizedTabs:t,tabs:n}=Nc();return{tabs:n,mainTabs:D(()=>t.value.flatMap(([e,t])=>e.hidden?[]:t.filter(e=>!e.hidden))),systemTabs:D(()=>n.value.filter(e=>e.id===`settings`)),activeTabMeta:D(()=>n.value.find(t=>t.id===e.value)??n.value[0])}}function Fc(e,t){return e.id===`graph`&&!t.reactivityGraphEnabled?[]:[e]}function Ic(e,t,n){return kc(e.id)?{id:`router`,title:`Router`,icon:`i-ri-route-line`,order:-50,description:`Vue Router custom inspector data`,path:Lc(e.id)}:e.id===`pinia`?{id:`pinia`,title:`Pinia`,icon:`i-logos-pinia`,order:-40,description:`Pinia store custom inspector data`,path:Lc(e.id)}:{id:`inspector:${e.id}`,title:e.label,icon:e.icon??`i-carbon-plug`,order:-35+t/100,description:`Custom inspector from ${Mc(e.pluginId,n)}`,path:Lc(e.id)}}function Lc(e){return`/inspectors/${encodeURIComponent(e)}`}function Rc(e,t){let n=new Map([`pinned`,`app`,`modules`,`advanced`].map(e=>[e,[]]));for(let r of e){let e=t.pinnedTabs.includes(r.id)?`pinned`:zc(r),i=t.hiddenTabCategories.includes(e)||t.hiddenTabs.includes(r.id);n.get(e)?.push({...r,hidden:i})}return(n.get(`pinned`)??[]).sort((e,n)=>t.pinnedTabs.indexOf(e.id)-t.pinnedTabs.indexOf(n.id)),Array.from(n.entries()).map(([e,n])=>[{name:e,hidden:t.hiddenTabCategories.includes(e)||n.length>0&&n.every(e=>e.hidden)},n])}function zc(e){return[`overview`,`components`,`graph`,`pages`,`timeline`].includes(e.id)?`app`:`modules`}var Bc={class:`min-w-0 min-h-0 overflow-hidden`},Vc=E({__name:`App`,setup(e){let n=Oi(),{connected:r}=oe(),{settings:i}=w(),a=D(()=>i.expandSidebar);qs();let o=D(()=>{if(n.name===`custom-inspector`){let e=n.params.inspectorId;return e===`pinia`?`pinia`:typeof e==`string`&&kc(e)?`router`:typeof e==`string`?`inspector:${e}`:`components`}let e=n.meta.tabId;return typeof e==`string`?e:`components`}),{mainTabs:s,systemTabs:c}=Pc(o),l=Ts({tabs:D(()=>[...s.value,...c.value])});return t(()=>{ue()}),se(()=>{he()}),me(()=>{document.documentElement.style.fontSize=`${i.scale*15}px`,document.documentElement.classList.toggle(`reduce-motion`,i.reduceMotion)}),(e,t)=>(p(),j(`main`,{class:I([`h-full bg-base color-base grid`,a.value?`grid-cols-[250px_1fr]`:`grid-cols-[52px_1fr]`])},[De(Tc,{"active-tab":o.value,tabs:F(s),"system-tabs":F(c),connected:F(r)},null,8,[`active-tab`,`tabs`,`system-tabs`,`connected`]),A(`div`,Bc,[De(F(ro))]),De(Gs,{commands:F(l)},null,8,[`commands`])],2))}}),Hc=io({history:Ea(),routes:[{path:`/`,redirect:`/components`},{path:`/overview`,component:()=>P(()=>import(`./overview-CBnqLe5W.js`),__vite__mapDeps([0,1,2]),import.meta.url),meta:{tabId:`overview`}},{path:`/components`,component:()=>P(()=>import(`./components--Uqqnist.js`),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11]),import.meta.url),meta:{tabId:`components`}},{path:`/pages`,component:()=>P(()=>import(`./pages-BnEiKDB1.js`),__vite__mapDeps([12,1,2,9,13]),import.meta.url),meta:{tabId:`pages`}},{path:`/timeline`,component:()=>P(()=>import(`./timeline-DemFeH2V.js`),__vite__mapDeps([14,1,2,4,9,15]),import.meta.url),meta:{tabId:`timeline`}},{path:`/inspectors/:inspectorId`,name:`custom-inspector`,component:()=>P(()=>import(`./custom-inspector-DikTGJYk.js`),__vite__mapDeps([16,1,2,4,5,6,7,8,9]),import.meta.url)},{path:`/plugins`,component:()=>P(()=>import(`./plugins-D7N7tBMP.js`),__vite__mapDeps([17,1,2,9,6,18]),import.meta.url),meta:{tabId:`plugins`}},{path:`/graph`,component:()=>P(()=>import(`./graph-DT4Zl2Ge.js`),__vite__mapDeps([19,1,2,4,9,7,8,10]),import.meta.url),meta:{tabId:`graph`}},{path:`/settings`,component:()=>P(()=>import(`./settings-DVRsqvUy.js`),__vite__mapDeps([20,1,2,6,21]),import.meta.url),meta:{tabId:`settings`}},{path:`/:pathMatch(.*)*`,redirect:`/components`}]});Ft({render:()=>n(Vc),devtools:{hide:!0}}).directive(`tooltip`,ui).use(Hc).mount(`#app`);export{qs as a,di as c,yt as d,jt as f,hc as i,bt as l,jc as n,Oi as o,kt as p,gc as r,Di as s,Nc as t,St as u};
|