import{r as y,af as C,ag as Q,ah as g,d as R,ai as Z,b as w,aj as J,ak as X,p as Y,al as G,am as ee,an as F,ao as _,ap as $,aq as te,ar as ae,as as A,o as q,at as le,ab as D,au as ne,av as b,aw as re,ax as L,ay as z,az as oe,v as ue,i as P,h as B,w as k,U as N,g as x,Q as M,T as O,c as V,j as se,aA as ie,F as ce,V as de,W as ve}from"./D9Jh96F5.js";function j(t){return[t.screenX,t.screenY]}function fe(){let t=y([-1,-1]);return{wasMoved(r){let n=j(r);return t.value[0]===n[0]&&t.value[1]===n[1]?!1:(t.value=n,!0)},update(r){t.value=j(r)}}}function pe({container:t,accept:r,walk:n,enabled:o}){C(()=>{let u=t.value;if(!u||o!==void 0&&!o.value)return;let l=Q(t);if(!l)return;let e=Object.assign(i=>r(i),{acceptNode:r}),d=l.createTreeWalker(u,NodeFilter.SHOW_ELEMENT,e,!1);for(;d.nextNode();)n(d.currentNode)})}function me(t){throw new Error("Unexpected object: "+t)}var S=(t=>(t[t.First=0]="First",t[t.Previous=1]="Previous",t[t.Next=2]="Next",t[t.Last=3]="Last",t[t.Specific=4]="Specific",t[t.Nothing=5]="Nothing",t))(S||{});function be(t,r){let n=r.resolveItems();if(n.length<=0)return null;let o=r.resolveActiveIndex(),u=o??-1;switch(t.focus){case 0:{for(let l=0;l