@ctrl/dom 0.1.13 → 0.1.15

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.
Files changed (34) hide show
  1. package/dist/aria/_chunks/{roles-list--7uYUGyR.cjs → roles-list-C57tqF4n.cjs} +2 -2
  2. package/dist/aria/_chunks/roles-list-DEwbBc_c.js +4 -0
  3. package/dist/aria/index.cjs +1 -1
  4. package/dist/aria/index.js +1 -1
  5. package/dist/aria/internal.cjs +1 -1
  6. package/dist/aria/internal.js +1 -1
  7. package/dist/aria/types/forms.d.ts +6 -13
  8. package/dist/bridge/internal.js +1 -1
  9. package/dist/dom/_chunks/src-C4oa-U7z.js +49 -0
  10. package/dist/dom/index.js +1 -1
  11. package/dist/dom/internal.js +1 -1
  12. package/dist/dom/types/collections/HTMLCollection.d.ts +10 -5
  13. package/dist/dom/types/events/Event.d.ts +16 -3
  14. package/dist/dom/types/events/EventTarget.d.ts +3 -3
  15. package/dist/dom/types/events/UIEvents.d.ts +10 -1
  16. package/dist/dom/types/events/activation.d.ts +2 -0
  17. package/dist/dom/types/events/dispatch.d.ts +1 -6
  18. package/dist/dom/types/events/listeners.d.ts +36 -18
  19. package/dist/dom/types/html/forms/HTMLInputElement.d.ts +1 -3
  20. package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +0 -4
  21. package/dist/dom/types/html/forms/HTMLTextAreaElement.d.ts +0 -4
  22. package/dist/dom/types/html/forms/form-associated.d.ts +17 -9
  23. package/dist/dom/types/html/forms/user-validity.d.ts +5 -6
  24. package/dist/dom/types/html/reflect.d.ts +1 -0
  25. package/dist/dom/types/internal.d.ts +1 -1
  26. package/dist/dom/types/keys.d.ts +2 -0
  27. package/dist/dom/types/nodes/Document.d.ts +12 -1
  28. package/dist/dom/types/nodes/Element.d.ts +2 -7
  29. package/dist/dom/types/nodes/Node.d.ts +4 -1
  30. package/dist/dom/types/nodes/attributes.d.ts +23 -1
  31. package/dist/dom/types/nodes/tree.d.ts +6 -0
  32. package/package.json +1 -1
  33. package/dist/aria/_chunks/roles-list-b_Z0ZWwY.js +0 -4
  34. package/dist/dom/_chunks/src-BHNEJboS.js +0 -49
package/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Cr as AbstractRange,hs as AnimationEvent,Wa as Attr,Zt as Audio,gs as BeforeUnloadEvent,$a as CDATASection,t as CSS,di as CSSConditionRule,fi as CSSContainerRule,pi as CSSFontFaceRule,mi as CSSGroupingRule,hi as CSSImportRule,gi as CSSKeyframeRule,_i as CSSKeyframesRule,vi as CSSLayerBlockRule,yi as CSSLayerStatementRule,bi as CSSMediaRule,xi as CSSNamespaceRule,Si as CSSNestedDeclarations,Ci as CSSPageRule,wi as CSSPropertyRule,Ti as CSSRule,Ei as CSSRuleList,Di as CSSScopeRule,Oi as CSSStartingStyleRule,Yi as CSSStyleDeclaration,ki as CSSStyleRule,Ai as CSSStyleSheet,ji as CSSSupportsRule,eo as CharacterData,cr as Clipboard,js as ClipboardEvent,lr as ClipboardItem,_s as CloseEvent,Or as CommandEvent,to as Comment,Ms as CompositionEvent,ba as CustomElementRegistry,vs as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,ja as DOMMatrix,Ma as DOMMatrixReadOnly,pr as DOMParser,Na as DOMPoint,Pa as DOMPointReadOnly,Fa as DOMRect,Ia as DOMRectList,La as DOMRectReadOnly,Ga as DOMStringMap,Ka as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Qa as DocumentFragment,Za as DocumentType,Ns as DragEvent,Ea as Element,Xn as ElementInternals,ys as ErrorEvent,qs as Event,rs as EventTarget,et as FileList,A as FileReader,Ps as FocusEvent,F as FormData,bs as FormDataEvent,rn as HTMLAnchorElement,in as HTMLAreaElement,Qt as HTMLAudioElement,an as HTMLBRElement,on as HTMLBaseElement,sn as HTMLBodyElement,G as HTMLButtonElement,cn as HTMLCanvasElement,io as HTMLCollection,ln as HTMLDListElement,un as HTMLDataElement,R as HTMLDataListElement,Yt as HTMLDetailsElement,Xt as HTMLDialogElement,dn as HTMLDirectoryElement,fn as HTMLDivElement,Zn as HTMLElement,pn as HTMLEmbedElement,H as HTMLFieldSetElement,mn as HTMLFontElement,ta as HTMLFormControlsCollection,L as HTMLFormElement,hn as HTMLFrameElement,gn as HTMLFrameSetElement,_n as HTMLHRElement,vn as HTMLHeadElement,yn as HTMLHeadingElement,bn as HTMLHtmlElement,xn as HTMLIFrameElement,Sn as HTMLImageElement,Q as HTMLInputElement,Cn as HTMLLIElement,W as HTMLLabelElement,U as HTMLLegendElement,Ut as HTMLLinkElement,wn as HTMLMapElement,Tn as HTMLMarqueeElement,$t as HTMLMediaElement,En as HTMLMenuElement,Dn as HTMLMetaElement,z as HTMLMeterElement,On as HTMLModElement,kn as HTMLOListElement,An as HTMLObjectElement,K as HTMLOptGroupElement,q as HTMLOptionElement,na as HTMLOptionsCollection,B as HTMLOutputElement,jn as HTMLParagraphElement,Mn as HTMLParamElement,Nn as HTMLPictureElement,Pn as HTMLPreElement,V as HTMLProgressElement,Fn as HTMLQuoteElement,Wt as HTMLScriptElement,X as HTMLSelectElement,qt as HTMLSlotElement,In as HTMLSourceElement,Ln as HTMLSpanElement,Gt as HTMLStyleElement,Rn as HTMLTableCaptionElement,zn as HTMLTableCellElement,Bn as HTMLTableColElement,Vn as HTMLTableElement,Hn as HTMLTableRowElement,Un as HTMLTableSectionElement,Jt as HTMLTemplateElement,Z as HTMLTextAreaElement,Wn as HTMLTimeElement,Kt as HTMLTitleElement,Gn as HTMLTrackElement,Kn as HTMLUListElement,qn as HTMLUnknownElement,en as HTMLVideoElement,xs as HashChangeEvent,dr as History,Jn as Image,Fs as InputEvent,O as IntersectionObserver,Is as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,Ss as MessageEvent,Ls as MouseEvent,w as MutationObserver,Io as MutationRecord,Ha as NamedNodeMap,ur as Navigator,do as Node,br as NodeFilter,xr as NodeIterator,Lo as NodeList,J as Option,Cs as PageTransitionEvent,Rs as PointerEvent,ws as PopStateEvent,no as ProcessingInstruction,Ts as ProgressEvent,Es as PromiseRejectionEvent,ra as RadioNodeList,wr as Range,k as ResizeObserver,rt as SVGAElement,it as SVGAnimatedString,at as SVGCircleElement,ot as SVGClipPathElement,st as SVGDefsElement,ct as SVGDescElement,lt as SVGElement,ut as SVGEllipseElement,dt as SVGFilterElement,ft as SVGForeignObjectElement,pt as SVGGElement,mt as SVGGeometryElement,ht as SVGGradientElement,gt as SVGGraphicsElement,_t as SVGImageElement,vt as SVGLineElement,yt as SVGLinearGradientElement,bt as SVGMarkerElement,xt as SVGMaskElement,St as SVGMetadataElement,Ct as SVGPathElement,wt as SVGPatternElement,Tt as SVGPolygonElement,Et as SVGPolylineElement,Dt as SVGRadialGradientElement,Ot as SVGRectElement,kt as SVGSVGElement,At as SVGScriptElement,jt as SVGStopElement,Mt as SVGStyleElement,Nt as SVGSwitchElement,Pt as SVGSymbolElement,Ft as SVGTSpanElement,It as SVGTextContentElement,Lt as SVGTextElement,Rt as SVGTextPathElement,zt as SVGTextPositioningElement,Bt as SVGTitleElement,Vt as SVGUseElement,Ht as SVGViewElement,or as Screen,yr as Selection,qa as ShadowRoot,Tr as StaticRange,ar as Storage,Ds as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Os as SubmitEvent,ro as Text,zs as TextEvent,nn as TimeRanges,ks as ToggleEvent,Bs as Touch,Vs as TouchEvent,Hs as TouchList,As as TransitionEvent,Sr as TreeWalker,Us as UIEvent,ea as ValidityState,sr as VisualViewport,Ws as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,ds as currentDocument,fs as currentWindow,ps as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ms as setCurrentWindow}from"./_chunks/src-BHNEJboS.js";
1
+ export{Cr as AbstractRange,ds as AnimationEvent,Wa as Attr,Zt as Audio,fs as BeforeUnloadEvent,$a as CDATASection,t as CSS,di as CSSConditionRule,fi as CSSContainerRule,pi as CSSFontFaceRule,mi as CSSGroupingRule,hi as CSSImportRule,gi as CSSKeyframeRule,_i as CSSKeyframesRule,vi as CSSLayerBlockRule,yi as CSSLayerStatementRule,bi as CSSMediaRule,xi as CSSNamespaceRule,Si as CSSNestedDeclarations,Ci as CSSPageRule,wi as CSSPropertyRule,Ti as CSSRule,Ei as CSSRuleList,Di as CSSScopeRule,Oi as CSSStartingStyleRule,Yi as CSSStyleDeclaration,ki as CSSStyleRule,Ai as CSSStyleSheet,ji as CSSSupportsRule,eo as CharacterData,cr as Clipboard,Ds as ClipboardEvent,lr as ClipboardItem,ps as CloseEvent,Or as CommandEvent,to as Comment,Os as CompositionEvent,ba as CustomElementRegistry,ms as CustomEvent,Yn as CustomStateSet,hr as DOMImplementation,ja as DOMMatrix,Ma as DOMMatrixReadOnly,pr as DOMParser,Na as DOMPoint,Pa as DOMPointReadOnly,Fa as DOMRect,Ia as DOMRectList,La as DOMRectReadOnly,Ga as DOMStringMap,Ka as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,gr as Document,gr as HTMLDocument,Qa as DocumentFragment,Za as DocumentType,ks as DragEvent,Ea as Element,Xn as ElementInternals,hs as ErrorEvent,Ks as Event,$o as EventTarget,et as FileList,A as FileReader,As as FocusEvent,F as FormData,gs as FormDataEvent,rn as HTMLAnchorElement,in as HTMLAreaElement,Qt as HTMLAudioElement,an as HTMLBRElement,on as HTMLBaseElement,sn as HTMLBodyElement,G as HTMLButtonElement,cn as HTMLCanvasElement,io as HTMLCollection,ln as HTMLDListElement,un as HTMLDataElement,R as HTMLDataListElement,Yt as HTMLDetailsElement,Xt as HTMLDialogElement,dn as HTMLDirectoryElement,fn as HTMLDivElement,Zn as HTMLElement,pn as HTMLEmbedElement,H as HTMLFieldSetElement,mn as HTMLFontElement,ta as HTMLFormControlsCollection,L as HTMLFormElement,hn as HTMLFrameElement,gn as HTMLFrameSetElement,_n as HTMLHRElement,vn as HTMLHeadElement,yn as HTMLHeadingElement,bn as HTMLHtmlElement,xn as HTMLIFrameElement,Sn as HTMLImageElement,Q as HTMLInputElement,Cn as HTMLLIElement,W as HTMLLabelElement,U as HTMLLegendElement,Ut as HTMLLinkElement,wn as HTMLMapElement,Tn as HTMLMarqueeElement,$t as HTMLMediaElement,En as HTMLMenuElement,Dn as HTMLMetaElement,z as HTMLMeterElement,On as HTMLModElement,kn as HTMLOListElement,An as HTMLObjectElement,K as HTMLOptGroupElement,q as HTMLOptionElement,na as HTMLOptionsCollection,B as HTMLOutputElement,jn as HTMLParagraphElement,Mn as HTMLParamElement,Nn as HTMLPictureElement,Pn as HTMLPreElement,V as HTMLProgressElement,Fn as HTMLQuoteElement,Wt as HTMLScriptElement,X as HTMLSelectElement,qt as HTMLSlotElement,In as HTMLSourceElement,Ln as HTMLSpanElement,Gt as HTMLStyleElement,Rn as HTMLTableCaptionElement,zn as HTMLTableCellElement,Bn as HTMLTableColElement,Vn as HTMLTableElement,Hn as HTMLTableRowElement,Un as HTMLTableSectionElement,Jt as HTMLTemplateElement,Z as HTMLTextAreaElement,Wn as HTMLTimeElement,Kt as HTMLTitleElement,Gn as HTMLTrackElement,Kn as HTMLUListElement,qn as HTMLUnknownElement,en as HTMLVideoElement,_s as HashChangeEvent,dr as History,Jn as Image,js as InputEvent,O as IntersectionObserver,Ms as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,vs as MessageEvent,Ns as MouseEvent,w as MutationObserver,No as MutationRecord,Ha as NamedNodeMap,ur as Navigator,do as Node,br as NodeFilter,xr as NodeIterator,Po as NodeList,J as Option,ys as PageTransitionEvent,Ps as PointerEvent,bs as PopStateEvent,no as ProcessingInstruction,xs as ProgressEvent,Ss as PromiseRejectionEvent,ra as RadioNodeList,wr as Range,k as ResizeObserver,rt as SVGAElement,it as SVGAnimatedString,at as SVGCircleElement,ot as SVGClipPathElement,st as SVGDefsElement,ct as SVGDescElement,lt as SVGElement,ut as SVGEllipseElement,dt as SVGFilterElement,ft as SVGForeignObjectElement,pt as SVGGElement,mt as SVGGeometryElement,ht as SVGGradientElement,gt as SVGGraphicsElement,_t as SVGImageElement,vt as SVGLineElement,yt as SVGLinearGradientElement,bt as SVGMarkerElement,xt as SVGMaskElement,St as SVGMetadataElement,Ct as SVGPathElement,wt as SVGPatternElement,Tt as SVGPolygonElement,Et as SVGPolylineElement,Dt as SVGRadialGradientElement,Ot as SVGRectElement,kt as SVGSVGElement,At as SVGScriptElement,jt as SVGStopElement,Mt as SVGStyleElement,Nt as SVGSwitchElement,Pt as SVGSymbolElement,Ft as SVGTSpanElement,It as SVGTextContentElement,Lt as SVGTextElement,Rt as SVGTextPathElement,zt as SVGTextPositioningElement,Bt as SVGTitleElement,Vt as SVGUseElement,Ht as SVGViewElement,or as Screen,yr as Selection,qa as ShadowRoot,Tr as StaticRange,ar as Storage,Cs as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,ws as SubmitEvent,ro as Text,Fs as TextEvent,nn as TimeRanges,Ts as ToggleEvent,Is as Touch,Ls as TouchEvent,Rs as TouchList,Es as TransitionEvent,Sr as TreeWalker,zs as UIEvent,ea as ValidityState,sr as VisualViewport,Bs as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,ss as currentDocument,cs as currentWindow,ls as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,us as setCurrentWindow}from"./_chunks/src-C4oa-U7z.js";
@@ -1 +1 @@
1
- import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$o as o,$r as s,$s as c,$u as ee,Aa as te,Ac as ne,Ad as re,Af as ie,Al as ae,Ao as oe,Ar as se,Au as l,Ba as ce,Bc as le,Bd as ue,Bf as de,Bi as fe,Bl as pe,Bo as me,Br as he,Bu as ge,C as _e,Ca as ve,Cc as ye,Cd as u,Cf as be,Cl as xe,Co as Se,Cu as Ce,Da as we,Dc as Te,Dd as Ee,Df as De,Dl as Oe,Do as ke,Dr as Ae,Du as je,Ec as Me,Ed as Ne,Ef as Pe,El as d,Eo as f,Er as p,Eu as m,Fc as h,Fd as g,Ff as _,Fi as v,Fl as y,Fo as Fe,Fr as Ie,Fu as Le,Gc as Re,Gd as ze,Gf as Be,Gi as Ve,Gl as He,Go as Ue,Gr as We,Gs as Ge,Gu as Ke,Hc as qe,Hd as Je,Hf as Ye,Hi as Xe,Hl as Ze,Ho as Qe,Hr as $e,Hu as et,I as tt,Ic as nt,Id as rt,If as it,Ii as at,Il as ot,Ir as st,Iu as ct,Ja as lt,Jc as ut,Jd as dt,Ji as ft,Jl as pt,Jo as mt,Jr as ht,Js as gt,Ju as b,Kc as _t,Kd as vt,Kf as yt,Ki as bt,Kl as xt,Ko as St,Kr as Ct,Ks as wt,Ku as Tt,Lc as Et,Ld as Dt,Lf as Ot,Li as kt,Ll as At,Lo as jt,Lr as Mt,Lu as Nt,Mc as Pt,Md as x,Mf as Ft,Ml as It,Mo as Lt,Mr as Rt,Mu as zt,Nc as Bt,Nd as S,Nf as Vt,Nl as C,No as Ht,Nr as Ut,Nu as Wt,Oa as Gt,Oc as Kt,Od as qt,Of as Jt,Ol as Yt,Oo as Xt,Ou as Zt,Pc as Qt,Pd as $t,Pf as en,Pl as tn,Po as nn,Pr as rn,Pu as an,Qc as on,Qd as sn,Qi as cn,Ql as ln,Qn as un,Qo as dn,Qr as fn,Qs as pn,Qu as mn,Ra as hn,Rc as gn,Rd as _n,Rf as vn,Ri as yn,Rl as bn,Ro as xn,Rr as Sn,Ru as Cn,S as wn,Sa as Tn,Sc as En,Sd as Dn,Sf as On,Sl as kn,So as An,Su as jn,Ta as Mn,Tc as Nn,Td as Pn,Tf as Fn,Tl as In,To as Ln,Tu as Rn,Ua as zn,Uc as Bn,Ud as Vn,Uf as Hn,Ui as Un,Ul as Wn,Uo as Gn,Ur as Kn,Uu as qn,Va as Jn,Vc as Yn,Vd as Xn,Vf as Zn,Vi as Qn,Vl as $n,Vo as er,Vr as tr,Vu as nr,Wc as rr,Wd as ir,Wf as ar,Wi as or,Wl as sr,Wo as cr,Wr as lr,Wu as ur,Xa as dr,Xc as fr,Xd as w,Xi as pr,Xl as mr,Xo as hr,Xr as gr,Xs as _r,Xu as vr,Y as yr,Ya as br,Yc as T,Yd as E,Yl as xr,Yo as Sr,Yr as Cr,Ys as wr,Yu as D,Zc as Tr,Zd as Er,Zi as Dr,Zl as Or,Zo as kr,Zr as Ar,Zs as jr,Zu as O,_ as Mr,_a as k,_c as Nr,_d as Pr,_f as Fr,_l as Ir,_o as Lr,_u as Rr,a as zr,aa as Br,ac as Vr,ad as Hr,af as Ur,ai as Wr,al as Gr,ao as Kr,as as qr,au as Jr,b as Yr,bc as Xr,bd as Zr,bf as Qr,bl as $r,bo as ei,bu as ti,c as ni,ca as ri,cc as ii,cd as ai,cf as oi,ci as si,cl as A,co as ci,cs as li,cu as ui,d as di,da as fi,dc as pi,dd as j,df as mi,dl as hi,du as gi,ec as _i,ed as vi,ef as yi,ei as bi,el as xi,er as Si,es as Ci,eu as wi,f as Ti,fa as Ei,fc as Di,fd as Oi,ff as ki,fl as Ai,fo as ji,fu as Mi,g as Ni,ga as Pi,gc as Fi,gd as Ii,gf as Li,gl as Ri,go as zi,gu as Bi,h as Vi,ha as Hi,hc as Ui,hd as Wi,hf as Gi,hl as Ki,ho as qi,hu as Ji,i as Yi,ia as Xi,ic as Zi,id as Qi,if as $i,ii as ea,il as ta,io as na,ir as ra,is as ia,iu as aa,jc as oa,jd as sa,jf as ca,jl as la,jo as ua,jr as da,ju as fa,ka as pa,kc as ma,kd as M,kf as ha,kl as ga,ko as _a,kr as va,ku as ya,l as ba,la as xa,lc as Sa,ld as Ca,lf as wa,ll as Ta,lo as Ea,ls as Da,lu as Oa,m as N,ma as P,mc as ka,md as Aa,mf as ja,ml as Ma,mo as Na,mu as Pa,n as Fa,nc as Ia,nd as La,nf as Ra,ni as za,nl as Ba,ns as Va,nu as Ha,o as Ua,oa as Wa,oc as Ga,od as Ka,of as qa,ol as Ja,oo as Ya,os as Xa,ou as Za,p as Qa,pa as $a,pc as eo,pd as to,pf as no,pl as ro,po as io,pu as ao,qc as F,qd as oo,qi as so,ql as co,qo as lo,qr as uo,qu as fo,r as po,rc as I,rd as mo,rf as ho,ri as go,rl as _o,rr as L,ru as vo,s as yo,sa as bo,sc as xo,sd as So,sf as Co,si as wo,sl as To,so as Eo,ss as Do,su as Oo,tc as ko,td as Ao,tf as jo,ti as Mo,tl as No,tr as R,ts as Po,tt as z,tu as Fo,u as Io,ua as Lo,uc as Ro,ud as zo,uf as Bo,ui as Vo,ul as Ho,uo as Uo,us as Wo,uu as Go,v as Ko,va as B,vc as qo,vd as Jo,vf as Yo,vl as Xo,vo as Zo,vr as Qo,vu as $o,wa as es,wc as ts,wd as ns,wf as rs,wl as is,wo as as,wu as os,x as ss,xa as cs,xc as ls,xd as us,xf as ds,xl as fs,xo as V,xu as ps,y as ms,ya as H,yc as hs,yd as gs,yf as _s,yl as vs,yo as ys,yu as bs,za as xs,zc as Ss,zd as Cs,zf as ws,zi as Ts,zl as Es,zo as Ds,zr as Os,zu as ks}from"./_chunks/src-BHNEJboS.js";import{constants as As,createContext as js,runInContext as Ms}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=L();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(R.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let Ns=null;function ownObjectCreateMaps(){if(W===null)return;let e=Ns??=Ms(`(prototypes) => prototypes.map((p) => Object.create(p))`,js(As.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=G;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=E();return q.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=E();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=E()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[C]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let J=null;function setNodeDescriber(e){J=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(J!==null)try{let t=J(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=w();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[C]??e}function isTypingType(e){return k(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===V.input?isTypingType(P(t))&&N(t):t.tag===V.textarea?N(t):rn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&B(P(t))}function hasUIValue(e){let t=implOf(e);return t.tag===V.textarea||t.tag===V.input&&H(P(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;return e[u]??e.value}return t.tag===V.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===V.input){let t=r.node,i=P(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[S]++,t[x]=a,t[T]=!0,t[M]=!0,t[u]=a===n?null:n,t[I]=a===``&&n!==``&&i!==5&&!k(i);let o=n.length;t[O]>o&&(t[O]=o),t[D]>o&&(t[D]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[S]++,e[l]=n,e[T]=!0,e[M]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[u]=null,e[I]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[O],n),end:Math.min(t[D],n),direction:t[b]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==V.input&&i.tag!==V.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[O]=s,a[D]=c,a[b]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[S]++,n.node[A]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[F]=!0;let i=yr(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===V.input&&n.node._setCheckedness(t,!0)}const Ps=R.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===Ps||typeof n!=`function`||tt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{_r as $_proto__,jr as $aboutBase,pn as $active,c as $assocGen,_i as $attr,ko as $attributes,Ia as $availableToElementInternals,I as $badInput,Zi as $baseFor,Vr as $baseOverride,Ga as $baseURL,xo as $baseVersion,ii as $block,Sa as $byCtor,Ro as $byName,pi as $cache,Di as $callback,eo as $checked,ka as $checkedSet,Ui as $childNodes,Fi as $childWindows,Nr as $children,qo as $classList,hs as $clipboard,Xr as $clonable,ls as $closed,En as $coll,ye as $compiled,ts as $compiledFor,Nn as $condition,Me as $constructed,Te as $constructingEntryList,Kt as $contentType,ma as $controlsCache,ne as $controlsDoc,oa as $controlsVersion,Pt as $cookieJar,Bt as $cookies,Qt as $css,h as $current,nt as $customElements,Et as $customValidity,gn as $cx,Ss as $data,le as $dataset,Yn as $declarative,qe as $defaultNamespace,Bn as $defaultValueOverride,rr as $delegatesFocus,Re as $derived,_t as $devicePixelRatio,F as $dirtiness,ut as $dirtyChecked,T as $dirtyValue,fr as $disabled,Tr as $disallowModification,on as $doc,t as $dropEffect,xi as $ec,No as $effectAllowed,Ba as $el,_o as $elements,ta as $entries,Gr as $eo,Ja as $error,To as $file,A as $files,Ta as $fill,Ho as $filter,hi as $firingSubmissionEvents,Ai as $focused,ro as $forLabels,Ma as $form,Ki as $forms,Ri as $frameCallbacks,Ir as $frameElement,Xo as $frameId,vs as $frameTask,$r as $frameTime,fs as $generation,kn as $globalObject,xe as $hasTransients,is as $height,In as $history,d as $home,Oe as $host,Yt as $href,ga as $id,ae as $idleCallbacks,la as $idleId,It as $ids,C as $impl,tn as $implementation,y as $indeterminate,ot as $index,At as $indexed,bn as $inflight,Es as $info,pe as $innerHeight,$n as $innerWidth,Ze as $is2D,Wn as $isHTML,sr as $items,He as $keyText,xt as $kind,co as $labels,pt as $layerName,xr as $list,mr as $listeners,Or as $localStorage,ln as $location,i as $lockedForReset,wi as $m,Fo as $matches,Ha as $media,vo as $mediaQueryLists,aa as $mode,Jr as $name,Za as $names,Oo as $namespaces,ui as $navigator,Oa as $nodes,Go as $onchange,gi as $options,Mi as $owner,ao as $ownerNode,Pa as $ownerRule,Ji as $parent,Bi as $parentRule,Rr as $parentWindow,$o as $pastNames,bs as $pointerBeforeReference,ti as $preApplied,ps as $preChecked,jn as $preCheckedRadio,Ce as $preIndeterminate,os as $prefix,Rn as $prelude,m as $presentationStyle,je as $pseudo,Zt as $queries,ya as $ranges,l as $rawValue,fa as $readonly,zt as $readyState,Wt as $rebuildVersion,an as $record,Le as $records,ct as $rects,Nt as $reference,Cn as $result,ks as $root,ge as $rules,nr as $running,et as $runningFrame,qn as $sc,ur as $screen,Ke as $scrollRestoration,Tt as $scrollX,fo as $scrollY,b as $selDir,D as $selEnd,vr as $selSet,O as $selStart,mn as $selectedOptions,ee as $selectedness,vi as $selection,Ao as $selector,La as $serializable,mo as $sessionStorage,Qi as $settled,Hr as $shadowRoot,Ka as $shed,So as $sheet,ai as $sheets,Ca as $slotAssignment,zo as $so,j as $states,Oi as $style,to as $styleVersion,Aa as $supportsText,Wi as $systemId,Ii as $target,Pr as $targets,Jo as $tasks,gs as $timers,Zr as $title,us as $type,Dn as $types,u as $uiValue,ns as $updating,Pn as $updatingSelectedContent,Ne as $uri,Ee as $url,qt as $userActivation,M as $userEdited,re as $userValidity,sa as $validity,x as $value,S as $version,$t as $visualViewport,g as $w,rt as $whatToShow,Dt as $whenDefined,_n as $width,Cs as $window,ue as $writeBuffer,Xn as $x,Je as $xhr,Vn as $y,ir as $z,$i as ATTRIBUTE_NODE,Po as AttrRecord,Ur as CDATA_SECTION_NODE,qa as COMMENT_NODE,Xe as COMPAT,Un as COMPAT_PROFILES,or as DEFAULT_COMPAT,Co as DOCUMENT_FRAGMENT_NODE,oi as DOCUMENT_NODE,wa as DOCUMENT_POSITION_CONTAINED_BY,Bo as DOCUMENT_POSITION_CONTAINS,mi as DOCUMENT_POSITION_DISCONNECTED,ki as DOCUMENT_POSITION_FOLLOWING,no as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,ja as DOCUMENT_POSITION_PRECEDING,Gi as DOCUMENT_TYPE_NODE,pr as DeclBlock,Li as ELEMENT_NODE,Fr as ENTITY_NODE,Yo as ENTITY_REFERENCE_NODE,gt as EventState,Y as FAILURE_CHANNEL,_s as F_ADOPT_HOOK,Qr as F_ARIA_ATTRS,ds as F_ATTR_HOOK,On as F_CE_CUSTOM,be as F_CHILDREN_HOOK,rs as F_CHILD_LIST,Fn as F_CONNECTED,Pe as F_CONNECT_HOOK,De as F_CONTENTEDITABLE_ATTR,Jt as F_CUSTOM,ha as F_DATA_ATTRS,ie as F_FACE,ca as F_HAS_SHADOW,Ft as F_HAS_STYLE_ATTR,Vt as F_HTML,en as F_INERT_ATTR,_ as F_MO_REGISTERED,it as F_SHADOW_ROOT,Ot as F_TABINDEX_ATTR,cs as GLOBAL_EVENT_HANDLER_EVENTS,na as HTMLCollection,vn as HTML_NS,$a as INPUT_TYPE_NAMES,ws as MATHML_NS,de as NOTATION_NODE,kt as NodeCache,Va as NodeImpl,jt as NodeList,Zn as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,Ye as SVG_NS,V as T,Hn as TEXT_NODE,ze as VirtualClock,vt as VirtualTimeout,Tn as WINDOW_EVENT_HANDLER_EVENTS,ar as XLINK_NS,Be as XMLNS_NS,yt as XML_NS,fn as adoptedStyleSheetsOf,as as ariaAttr,Ln as asciiLowercase,qi as assignManually,zi as assignedElements,Lr as assignedNodes,Zo as assignedSlot,we as attachShadowRoot,f as attr,un as attrAssociatedElement,a as attrAssociatedElements,zn as attrNode,oo as canSkipZeroDelayWait,captureInterfaceBaseline,Qe as childAt,ke as classTokens,clearUIValue,dt as clockNow,w as clockStats,Eo as closest,p as compareBoundaryPoints,Gn as compareTreeOrder,Ve as compatExposes,Sn as computedDisplay,Os as computedValue,he as computedVisibility,va as constructEntryList,Fa as controlValue,Qo as createEvent,z as createFileList,s as createLinkSheet,tr as currentStyleVersion,se as defaultButton,bt as deferredCompatMembers,me as derivedCache,describeCall,describeNode,ia as dispatch,Ts as dispatchTrusted,Kr as ensureCollectionIndexGetters,xn as ensureIndexGetters,wo as evaluateMediaQueryList,cn as faceState,ys as findFlattenedSlottables,ei as findSlot,fe as fireAnEvent,Qn as fireSyntheticPointerEvent,cr as firstElementChild,Er as foreignImmediatesPending,Br as formOwner,Xt as getAttribute,Mt as getComputedStyle,getComputedStyleOverride,qr as getCurrentEvent,Gt as getElementsByClassName,pa as getElementsByTagName,te as getElementsByTagNameNS,ve as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,_a as hasAttr,$e as hasAuthorStyles,Si as hasExplicitAttrElements,Ge as hasListeners,po as hasReadonlyAttribute,hasUIValue,so as hiddenGlobals,da as implicitSubmission,Ds as indexGetterTable,Ue as indexOf,Yi as inputChecked,zr as inputIndeterminate,P as inputType,Hi as inputTypeFromAttr,ji as inspectNode,sn as installClock,es as installEventHandlers,Wa as isActuallyDisabled,oe as isAsciiWhitespace,Ua as isAutofilled,yo as isChecked,n as isClockTimer,ni as isDefault,ba as isDisabled,Kn as isDisplayNone,lr as isDisplayNoneInclusive,isEditable as isEditableControl,Io as isEnabled,r as isFACE,di as isInRange,St as isInclusiveAncestor,Ti as isIndeterminate,Qa as isInvalid,bo as isLabelable,ri as isListed,N as isMutable,Pi as isNumericType,Vi as isOptional,Ni as isOutOfRange,Mr as isPlaceholderShown,Ko as isReadOnly,ms as isReadWrite,Yr as isRequired,xa as isResettable,Rt as isSubmitButton,Lo as isSubmittable,ss as isTextControl,k as isTextualType,wn as isValid,hn as isValidDoctypeName,xs as isValidElementLocalName,ce as isValidNamespacePrefix,We as isVisibilityHidden,fi as labeledControl,Ei as labelsFor,lo as lastElementChild,Xi as listOfOptions,v as matchMediaText,ci as matches,si as mediaEnvironment,mt as nextElementInTree,Sr as nextElementSibling,hr as nextInTree,kr as nextSkippingChildren,yn as nodeCache,Xa as nodeGetTheParent,Ae as nodeLength,Fe as notifyMutationObservers,_e as optionSelected,Dr as parseDeclBlock,dr as parseFragment,at as parseMediaQueryList,er as peekDerivedCache,Ct as pointerEvents,uo as pointerEventsNone,ua as prefixFlag,dn as previousElementSibling,o as previousInTree,ht as pseudoContent,Ea as querySelector,Uo as querySelectorAll,quote,Mo as registerOwnerSheet,wt as removeAllEventListeners,Lt as removeAttribute,za as removeOwnerSheet,io as replaceData,Da as reportException,ft as resolveCompat,restoreInterfaces,Do as retarget,lt as serializeChildren,br as serializeNode,go as setAdoptedStyleSheets,li as setAssignedSlotLookup,Ht as setAttribute,setCheckedFromUI,Cr as setComputedColorMode,Mn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ut as setNotImplementedHandler,setOptionSelectedFromUI,wr as setTrusted,setUISelection,setUIValue,Wo as setUncaughtExceptionHandler,yi as skipIdleTime,jo as skipZeroDelayWait,spanChannel,nn as splitOnAsciiWhitespace,Na as splitText,Ie as styleElementRemoved,bi as styleElementSheet,st as styleElementUpdated,ea as styleSheetsOf,gr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,An as tagId,Se as tagName,tracePromise,traceSync,tracing,ra as trackGlobalTimers,Ci as treeRoot,Ar as uaDisplay,Wr as unregisterOwnerSheet,Jn as validateAndExtract,H as valueMode,Ra as virtualDate,ho as virtualPerformance,Vo as windowHooks,L as windowInterfaces,Ya as withNamedProperties};
1
+ import{$ as e,$c as t,$d as n,$i as r,$l as i,$n as a,$r as o,$s as s,$u as c,Aa as ee,Ac as te,Ad as l,Af as ne,Al as re,Ao as ie,Ar as ae,Au as u,Ba as oe,Bc as se,Bd as ce,Bf as le,Bi as ue,Bl as de,Bo as fe,Br as pe,Bu as me,C as he,Ca as ge,Cc as _e,Cd as ve,Cf as ye,Cl as be,Co as xe,Cu as Se,Da as Ce,Dc as we,Dd as Te,Df as Ee,Dl as De,Do as Oe,Dr as ke,Du as Ae,Ec as je,Ed as Me,Ef as Ne,El as Pe,Eo as d,Er as f,Eu as p,Fc as m,Fd as h,Ff as g,Fi as _,Fl as v,Fo as y,Fr as Fe,Fu as Ie,Gc as Le,Gd as Re,Gf as ze,Gi as Be,Gl as Ve,Go as He,Gr as Ue,Gs as We,Gu as Ge,Hc as Ke,Hd as qe,Hf as Je,Hi as Ye,Hl as Xe,Ho as Ze,Hr as Qe,Hs as $e,Hu as et,I as tt,Ic as nt,Id as rt,If as it,Ii as at,Il as ot,Io as st,Ir as ct,Iu as lt,Ja as ut,Jc as b,Jd as dt,Ji as ft,Jl as pt,Jo as mt,Jr as ht,Js as gt,Ju as x,Kc as S,Kd as _t,Kf as vt,Ki as yt,Kl as bt,Ko as xt,Kr as St,Ku as Ct,Lc as wt,Ld as Tt,Lf as Et,Li as Dt,Ll as Ot,Lo as kt,Lr as At,Lu as jt,Mc as Mt,Md as Nt,Mf as Pt,Ml as C,Mo as Ft,Mr as It,Mu as Lt,Nc as Rt,Nd as w,Nf as zt,Nl as Bt,Nr as Vt,Nu as Ht,Oa as Ut,Oc as Wt,Od as Gt,Of as Kt,Ol as qt,Oo as Jt,Ou as Yt,Pc as Xt,Pd as T,Pf as Zt,Pl as Qt,Po as $t,Pr as en,Pu as tn,Qc as nn,Qd as rn,Qi as an,Ql as on,Qn as sn,Qo as cn,Qr as ln,Qs as un,Qu as dn,Ra as fn,Rc as pn,Rd as mn,Rf as hn,Ri as gn,Rl as _n,Ro as vn,Rr as yn,Ru as bn,S as xn,Sa as Sn,Sc as Cn,Sd as wn,Sf as Tn,Sl as En,So as Dn,Su as On,Ta as kn,Tc as An,Td as jn,Tf as Mn,Tl as Nn,To as Pn,Tu as Fn,Ua as In,Uc as Ln,Ud as Rn,Uf as zn,Ui as Bn,Ul as Vn,Uo as Hn,Ur as Un,Us as Wn,Uu as Gn,Va as Kn,Vc as qn,Vd as Jn,Vf as Yn,Vi as Xn,Vl as Zn,Vo as Qn,Vr as $n,Vs as E,Vu as er,Wc as tr,Wd as nr,Wf as rr,Wi as ir,Wl as ar,Wo as or,Wr as sr,Ws as cr,Wu as lr,Xa as ur,Xc as dr,Xd as D,Xi as fr,Xl as pr,Xo as mr,Xr as hr,Xs as gr,Xu as _r,Y as vr,Ya as yr,Yc as br,Yd as xr,Yl as Sr,Yo as Cr,Yr as wr,Ys as Tr,Yu as O,Zc as Er,Zd as k,Zi as Dr,Zl as Or,Zo as kr,Zr as Ar,Zs as jr,Zu as A,_ as Mr,_a as j,_c as Nr,_d as Pr,_f as Fr,_l as Ir,_o as Lr,_u as Rr,a as zr,aa as Br,ac as Vr,ad as Hr,af as Ur,ai as Wr,al as Gr,ao as Kr,as as qr,au as Jr,b as Yr,bc as Xr,bd as Zr,bf as Qr,bl as $r,bo as ei,bu as ti,c as ni,ca as ri,cc as ii,cd as ai,cf as oi,ci as si,cl as ci,co as li,cu as ui,d as di,da as fi,dc as M,dd as pi,df as mi,dl as hi,du as gi,ec as _i,ed as vi,ef as yi,ei as bi,el as xi,er as Si,es as Ci,eu as wi,f as Ti,fa as Ei,fc as Di,fd as Oi,ff as ki,fl as Ai,fo as ji,fu as Mi,g as Ni,ga as Pi,gc as Fi,gd as Ii,gf as Li,gl as Ri,go as zi,gu as Bi,h as Vi,ha as Hi,hc as Ui,hd as Wi,hf as Gi,hl as Ki,ho as qi,hu as Ji,i as Yi,ia as Xi,ic as Zi,id as Qi,if as $i,ii as ea,il as ta,io as na,ir as ra,is as ia,iu as aa,jc as oa,jd as sa,jf as ca,jl as la,jo as ua,jr as da,ju as fa,ka as pa,kc as ma,kd as ha,kf as ga,kl as _a,ko as va,kr as ya,ku as ba,l as xa,la as Sa,lc as Ca,ld as wa,lf as Ta,ll as Ea,lo as Da,lu as Oa,m as N,ma as P,mc as ka,md as Aa,mf as ja,ml as Ma,mo as Na,mu as Pa,n as Fa,nc as F,nd as Ia,nf as La,ni as Ra,nl as za,ns as Ba,nu as Va,o as Ha,oa as Ua,oc as Wa,od as Ga,of as Ka,ol as qa,oo as Ja,os as Ya,ou as Xa,p as Za,pa as Qa,pc as $a,pd as eo,pf as to,pl as no,po as ro,pu as io,qc as ao,qd as oo,qf as so,qi as co,ql as lo,qo as uo,qr as fo,qs as po,qu as mo,r as ho,rc as go,rd as _o,rf as vo,ri as yo,rl as bo,rr as I,rs as xo,ru as So,s as Co,sa as wo,sc as To,sd as Eo,sf as Do,si as Oo,sl as L,so as ko,su as Ao,tc as jo,td as Mo,tf as No,ti as Po,tl as Fo,tr as R,ts as Io,tt as z,tu as Lo,u as Ro,ua as zo,uc as Bo,ud as Vo,uf as Ho,ui as Uo,ul as Wo,uo as Go,uu as Ko,v as qo,va as B,vc as Jo,vd as Yo,vf as Xo,vl as Zo,vo as Qo,vr as $o,vu as es,wa as ts,wc as ns,wd as V,wf as rs,wl as is,wo as as,wu as os,x as ss,xa as cs,xc as ls,xd as us,xf as ds,xl as fs,xo as ps,xu as ms,y as hs,ya as H,yc as gs,yd as _s,yf as vs,yl as ys,yo as bs,yu as xs,za as Ss,zc as Cs,zd as ws,zf as Ts,zi as Es,zl as Ds,zo as Os,zr as ks,zu as As}from"./_chunks/src-C4oa-U7z.js";import{constants as js,createContext as Ms,runInContext as Ns}from"node:vm";import*as U from"node:diagnostics_channel";let W=null;function targets(){let e=/* @__PURE__ */ new Set,t=I();for(let n in t){let r=t[n];if(r===null||typeof r!=`object`&&typeof r!=`function`)continue;e.add(r);let i=r.prototype;typeof r==`function`&&typeof i==`object`&&i&&e.add(i)}return e.add(R.prototype),[...e]}function snapshot(e){let t=Reflect.ownKeys(e),n=Array(t.length);for(let r=0;r<t.length;r++){let i=t[r];n[r]=isArrayIndex(i)?null:Object.getOwnPropertyDescriptor(e,i)}return{target:e,keys:t,descriptors:n,keySet:null}}let G=null;function captureInterfaceBaseline(){if(W===null){W=[],G=/* @__PURE__ */ new WeakSet;for(let e of targets())W.push(snapshot(e)),G.add(e);ownObjectCreateMaps()}}let Ps=null;function ownObjectCreateMaps(){if(W===null)return;let e=Ps??=Ns(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ms(js.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<W.length;e++){let n=W[e].target;typeof n!=`function`&&t.push(n)}e(t)}function configurableDescriptor(e){return typeof e==`object`&&e&&e.configurable!==!0?{...e,configurable:!0}:e}function guardInterfaceDefinitions(e){let t=G;if(t===null)return;let n=e.Object,r=e.Reflect,i=n.defineProperty,a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):r)},defineProperties(e,n){if(!t.has(e)||typeof n!=`object`||!n)return a(e,n);let r={};for(let e of Reflect.ownKeys(n))Object.getOwnPropertyDescriptor(n,e)?.enumerable&&(r[e]=configurableDescriptor(n[e]));return a(e,r)},reflectDefineProperty(e,n,r){return o(e,n,t.has(e)?configurableDescriptor(r):r)}};Object.defineProperty(s.reflectDefineProperty,"name",{value:`defineProperty`}),Object.defineProperty(n,"defineProperty",{value:s.defineProperty,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(n,"defineProperties",{value:s.defineProperties,writable:!0,configurable:!0,enumerable:!1}),Object.defineProperty(r,"defineProperty",{value:s.reflectDefineProperty,writable:!0,configurable:!0,enumerable:!1})}function isArrayIndex(e){if(typeof e!=`string`||e===``||e.length>10)return!1;let t=Number(e);return t>>>0===t&&t!==4294967295&&String(t)===e}function sameDescriptor(e,t){return e.value===t.value&&e.get===t.get&&e.set===t.set&&e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable}function restoreInterfaces(){if(W===null)return 0;let e=0;for(let t=0;t<W.length;t++){let n=W[t],r=n.target,i=Reflect.ownKeys(r);for(let t=0;t<i.length;t++){let a=i[t];a===n.keys[t]||(n.keySet??=new Set(n.keys)).has(a)||isArrayIndex(a)||Reflect.deleteProperty(r,a)&&e++}for(let t=0;t<n.keys.length;t++){let i=n.keys[t],a=n.descriptors[t];if(a===null)continue;let o=Object.getOwnPropertyDescriptor(r,i);if(!(o!==void 0&&sameDescriptor(o,a)))try{Object.defineProperty(r,i,a),e++}catch{}}}return ownObjectCreateMaps(),e}const K=`ctrl-dom:span`,q=typeof U.tracingChannel==`function`?U.tracingChannel(K):null;function spanChannel(){return q}function tracing(){return q!==null&&q.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=D();return q.traceSync(e=>{try{return n(e)}finally{recordSkipped(e,i)}},r,void 0,r)}function tracePromise(e,t,n){let r={op:e,description:t,data:{},async:!0},i=D();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=D()-t;n>0&&(e.data[`clock.skipped_ms`]=Math.round(n))}function describeCall(e,t){let n=`${e}(`;for(let e=0;e<t.length&&(t[e]!==void 0||e!==t.length-1);e++)if(n+=(e>0?`, `:``)+describeValue(t[e],0),n.length>160)return`${n.slice(0,159)}…)`;return`${n})`}function describeValue(e,t){if(typeof e==`string`)return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e);if(typeof e==`function`)return e.name?`${e.name}()`:`fn`;if(e instanceof RegExp||typeof e!=`object`||!e)return String(e);if(e[C]!==void 0)return describeNode(e);if(Array.isArray(e))return t>0?`[…]`:`[${e.slice(0,3).map(e=>describeValue(e,t+1)).join(`, `)}${e.length>3?`, …`:``}]`;if(t>0)return`{…}`;let n=Object.entries(e).slice(0,4);return n.length===0?`{}`:`{ ${n.map(([e,n])=>`${e}: ${describeValue(n,t+1)}`).join(`, `)} }`}let J=null;function setNodeDescriber(e){J=e}function describeNode(e){let t=e;if(t.nodeType===9)return`document`;if(t.nodeType!==1||typeof t.localName!=`string`)return t.nodeType===3?`#text`:`node`;if(J!==null)try{let t=J(e);if(t)return t}catch{}if(t.localName===`body`||t.localName===`html`)return`<${t.localName}>`;let n=t.getAttribute?.(`aria-label`)||t.textContent?.trim().replace(/\s+/g,` `)||t.getAttribute?.(`placeholder`)||t.getAttribute?.(`name`)||``;return n===``?`<${t.localName}>`:`<${t.localName} ${quote(n)}>`}function quote(e){return JSON.stringify(e.length>40?`${e.slice(0,39)}…`:e)}const Y=`sentry-tests:failure`;let X=null;function setFailureSnapshot(e){X=e}function subscribeTestFailures(e){let t=U.channel(Y),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=k();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),X!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:X(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}function implOf(e){return e[C]??e}function isTypingType(e){return j(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===E.input?isTypingType(P(t))&&N(t):t.tag===E.textarea?N(t):en(t)}function supportsSelection(e){let t=implOf(e);return t.tag===E.textarea||t.tag===E.input&&B(P(t))}function hasUIValue(e){let t=implOf(e);return t.tag===E.textarea||t.tag===E.input&&H(P(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===E.input){let e=t.node;return e[V]??e.value}return t.tag===E.textarea?t.node.value:``}function setUIValue(t,n){let r=implOf(t);if(r.tag===E.input){let t=r.node,i=P(r);if(H(i)!==0)return;let a=e(i,n,r);r.doc[T]++,t[w]=a,t[b]=!0,t[l]=!0,t[V]=a===n?null:n,t[F]=a===``&&n!==``&&i!==5&&!j(i);let o=n.length;t[A]>o&&(t[A]=o),t[O]>o&&(t[O]=o)}else if(r.tag===E.textarea){let e=r.node;r.doc[T]++,e[u]=n,e[b]=!0,e[l]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===E.input){let e=t.node;e[V]=null,e[F]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[A],n),end:Math.min(t[O],n),direction:t[x]}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==E.input&&i.tag!==E.textarea)return;let a=i.node,o=getUIValue(e).length,s=Math.max(0,Math.min(t,n)),c=Math.max(t,n);c>o&&(c=o),s>c&&(s=c),a[A]=s,a[O]=c,a[x]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===E.input&&P(n)===17&&(n.doc[T]++,n.node[L]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==E.option)return;let r=n.node;r._setSelectedness(t),r[S]=!0;let i=vr(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===E.input&&n.node._setCheckedness(t,!0)}const Fs=R.prototype.getComputedStyle;let Z=null,Q=null,$=null;function getComputedStyleOverride(e){let t=e.doc.defaultView;if(t==null)return null;let n=t.getComputedStyle;if(n===Fs||typeof n!=`function`||tt.has(n))return null;if(Q?.deref()===n&&Z?.deref()===t){let e=$.deref();if(e!==void 0)return e}let r=n.bind(t);return Z=new WeakRef(t),Q=new WeakRef(n),$=new WeakRef(r),r}export{Tr as $_proto__,gr as $aboutBase,jr as $active,un as $assocGen,s as $attr,_i as $attributes,jo as $availableToElementInternals,F as $badInput,go as $baseFor,Zi as $baseOverride,Vr as $baseURL,Wa as $baseVersion,To as $block,ii as $byCtor,Ca as $byName,Bo as $cache,M as $callback,Di as $checked,$a as $checkedSet,ka as $childNodes,Ui as $childWindows,Fi as $children,Nr as $classList,Jo as $clipboard,gs as $clonable,Xr as $closed,ls as $coll,Cn as $compiled,_e as $compiledFor,ns as $condition,An as $constructed,je as $constructingEntryList,we as $contentType,Wt as $controlsCache,ma as $controlsDoc,te as $controlsVersion,oa as $cookieJar,Mt as $cookies,Rt as $css,Xt as $current,m as $customElements,nt as $customValidity,wt as $cx,pn as $data,Cs as $dataset,se as $declarative,qn as $defaultNamespace,Ke as $defaultValueOverride,Ln as $delegatesFocus,tr as $derived,Le as $devicePixelRatio,S as $dirtiness,ao as $dirtyChecked,b as $dirtyValue,br as $disabled,dr as $disallowModification,Er as $doc,nn as $dropEffect,t as $ec,xi as $effectAllowed,Fo as $el,za as $elements,bo as $entries,ta as $eo,Gr as $error,qa as $file,L as $files,ci as $fill,Ea as $filter,Wo as $firingSubmissionEvents,hi as $focused,Ai as $forLabels,no as $form,Ma as $forms,Ki as $frameCallbacks,Ri as $frameElement,Ir as $frameId,Zo as $frameTask,ys as $frameTime,$r as $generation,fs as $globalObject,En as $hasTransients,be as $height,is as $history,Nn as $home,Pe as $host,De as $href,qt as $id,_a as $idleCallbacks,re as $idleId,la as $ids,C as $impl,Bt as $implementation,Qt as $indeterminate,v as $index,ot as $indexed,Ot as $inflight,_n as $info,Ds as $innerHeight,de as $innerWidth,Zn as $is2D,Xe as $isHTML,Vn as $items,ar as $keyText,Ve as $kind,bt as $labels,lo as $layerName,pt as $list,Sr as $listeners,pr as $localStorage,Or as $location,on as $lockedForReset,i as $m,wi as $matches,Lo as $media,Va as $mediaQueryLists,So as $mode,aa as $name,Jr as $names,Xa as $namespaces,Ao as $navigator,ui as $nodes,Oa as $onchange,Ko as $options,gi as $owner,Mi as $ownerNode,io as $ownerRule,Pa as $parent,Ji as $parentRule,Bi as $parentWindow,Rr as $pastNames,es as $pointerBeforeReference,xs as $preApplied,ti as $preChecked,ms as $preCheckedRadio,On as $preIndeterminate,Se as $prefix,os as $prelude,Fn as $presentationStyle,p as $pseudo,Ae as $queries,Yt as $radios,ba as $ranges,u as $rawValue,fa as $readonly,Lt as $readyState,Ht as $rebuildVersion,tn as $record,Ie as $records,lt as $rects,jt as $reference,bn as $result,As as $root,me as $rules,er as $running,et as $runningFrame,Gn as $sc,lr as $screen,Ge as $scrollRestoration,Ct as $scrollX,mo as $scrollY,x as $selDir,O as $selEnd,_r as $selSet,A as $selStart,dn as $selectedOptions,c as $selectedness,vi as $selection,Mo as $selector,Ia as $serializable,_o as $sessionStorage,Qi as $settled,Hr as $shadowRoot,Ga as $shed,Eo as $sheet,ai as $sheets,wa as $slotAssignment,Vo as $so,pi as $states,Oi as $style,eo as $styleVersion,Aa as $supportsText,Wi as $systemId,Ii as $target,Pr as $targets,Yo as $tasks,_s as $timers,Zr as $title,us as $treeVersion,wn as $type,ve as $types,V as $uiValue,jn as $updating,Me as $updatingSelectedContent,Te as $uri,Gt as $url,ha as $userActivation,l as $userEdited,sa as $userValidity,Nt as $validity,w as $value,T as $version,h as $visualViewport,rt as $w,Tt as $whatToShow,mn as $whenDefined,ws as $width,ce as $window,Jn as $writeBuffer,qe as $x,Rn as $xhr,nr as $y,Re as $z,Ur as ATTRIBUTE_NODE,kr as AttrRecord,Ka as CDATA_SECTION_NODE,Do as COMMENT_NODE,Ye as COMPAT,Bn as COMPAT_PROFILES,ir as DEFAULT_COMPAT,oi as DOCUMENT_FRAGMENT_NODE,Ta as DOCUMENT_NODE,Ho as DOCUMENT_POSITION_CONTAINED_BY,mi as DOCUMENT_POSITION_CONTAINS,ki as DOCUMENT_POSITION_DISCONNECTED,to as DOCUMENT_POSITION_FOLLOWING,ja as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Gi as DOCUMENT_POSITION_PRECEDING,Li as DOCUMENT_TYPE_NODE,fr as DeclBlock,Fr as ELEMENT_NODE,Xo as ENTITY_NODE,vs as ENTITY_REFERENCE_NODE,po as EventState,Y as FAILURE_CHANNEL,Qr as F_ADOPT_HOOK,ds as F_ARIA_ATTRS,Tn as F_ATTR_HOOK,ye as F_CE_CUSTOM,rs as F_CHILDREN_HOOK,Mn as F_CHILD_LIST,Ne as F_CONNECTED,Ee as F_CONNECT_HOOK,Kt as F_CONTENTEDITABLE_ATTR,ga as F_CUSTOM,ne as F_DATA_ATTRS,ca as F_FACE,Pt as F_HAS_SHADOW,zt as F_HAS_STYLE_ATTR,Zt as F_HTML,g as F_INERT_ATTR,it as F_MO_REGISTERED,Et as F_SHADOW_ROOT,hn as F_TABINDEX_ATTR,cs as GLOBAL_EVENT_HANDLER_EVENTS,na as HTMLCollection,Ts as HTML_NS,Qa as INPUT_TYPE_NAMES,le as MATHML_NS,Yn as NOTATION_NODE,Dt as NodeCache,cn as NodeImpl,$t as NodeList,Je as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,zn as SVG_NS,E as T,rr as TEXT_NODE,_t as VirtualClock,oo as VirtualTimeout,Sn as WINDOW_EVENT_HANDLER_EVENTS,ze as XLINK_NS,vt as XMLNS_NS,so as XML_NS,ln as adoptedStyleSheetsOf,ps as ariaAttr,Dn as asciiLowercase,qi as assignManually,zi as assignedElements,Lr as assignedNodes,Qo as assignedSlot,Ce as attachShadowRoot,xe as attr,sn as attrAssociatedElement,a as attrAssociatedElements,In as attrNode,dt as canSkipZeroDelayWait,captureInterfaceBaseline,Os as childAt,as as classTokens,clearUIValue,xr as clockNow,k as clockStats,ko as closest,f as compareBoundaryPoints,Be as compatExposes,yn as computedDisplay,ks as computedValue,pe as computedVisibility,ya as constructEntryList,Fa as controlValue,$o as createEvent,z as createFileList,o as createLinkSheet,$n as currentStyleVersion,ae as defaultButton,yt as deferredCompatMembers,kt as derivedCache,describeCall,describeNode,Ci as dispatch,Es as dispatchTrusted,Kr as ensureCollectionIndexGetters,y as ensureIndexGetters,Oo as evaluateMediaQueryList,an as faceState,bs as findFlattenedSlottables,ei as findSlot,ue as fireAnEvent,Xn as fireSyntheticPointerEvent,fe as firstElementChild,rn as foreignImmediatesPending,Br as formOwner,Pn as getAttribute,At as getComputedStyle,getComputedStyleOverride,Io as getCurrentEvent,Ut as getElementsByClassName,pa as getElementsByTagName,ee as getElementsByTagNameNS,ge as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,d as hasAttr,Qe as hasAuthorStyles,Si as hasExplicitAttrElements,cr as hasListeners,ho as hasReadonlyAttribute,hasUIValue,co as hiddenGlobals,da as implicitSubmission,st as indexGetterTable,Qn as indexOf,Yi as inputChecked,zr as inputIndeterminate,P as inputType,Hi as inputTypeFromAttr,ji as inspectNode,n as installClock,ts as installEventHandlers,Ua as isActuallyDisabled,Oe as isAsciiWhitespace,Ha as isAutofilled,Co as isChecked,yi as isClockTimer,ni as isDefault,xa as isDisabled,Un as isDisplayNone,sr as isDisplayNoneInclusive,isEditable as isEditableControl,Ro as isEnabled,r as isFACE,di as isInRange,Ze as isInclusiveAncestor,Ti as isIndeterminate,Za as isInvalid,wo as isLabelable,ri as isListed,N as isMutable,Pi as isNumericType,Vi as isOptional,Ni as isOutOfRange,Mr as isPlaceholderShown,qo as isReadOnly,hs as isReadWrite,Yr as isRequired,Sa as isResettable,It as isSubmitButton,zo as isSubmittable,ss as isTextControl,j as isTextualType,xn as isValid,fn as isValidDoctypeName,Ss as isValidElementLocalName,oe as isValidNamespacePrefix,Ue as isVisibilityHidden,fi as labeledControl,Ei as labelsFor,Hn as lastElementChild,Xi as listOfOptions,_ as matchMediaText,li as matches,si as mediaEnvironment,or as nextElementInTree,He as nextElementSibling,xt as nextInTree,uo as nextSkippingChildren,gn as nodeCache,Ba as nodeGetTheParent,ke as nodeLength,Ft as notifyMutationObservers,he as optionSelected,Dr as parseDeclBlock,ur as parseFragment,at as parseMediaQueryList,vn as peekDerivedCache,St as pointerEvents,fo as pointerEventsNone,Jt as prefixFlag,mt as previousElementSibling,Cr as previousInTree,ht as pseudoContent,Da as querySelector,Go as querySelectorAll,quote,Po as registerOwnerSheet,We as removeAllEventListeners,va as removeAttribute,Ra as removeOwnerSheet,ro as replaceData,qr as reportException,ft as resolveCompat,restoreInterfaces,xo as retarget,ut as serializeChildren,yr as serializeNode,yo as setAdoptedStyleSheets,ia as setAssignedSlotLookup,ie as setAttribute,setCheckedFromUI,wr as setComputedColorMode,kn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Vt as setNotImplementedHandler,setOptionSelectedFromUI,gt as setTrusted,setUISelection,setUIValue,Ya as setUncaughtExceptionHandler,No as skipIdleTime,La as skipZeroDelayWait,spanChannel,ua as splitOnAsciiWhitespace,Na as splitText,Fe as styleElementRemoved,bi as styleElementSheet,ct as styleElementUpdated,ea as styleSheetsOf,hr as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,$e as tagId,Wn as tagName,tracePromise,traceSync,tracing,ra as trackGlobalTimers,mr as treeRoot,Ar as uaDisplay,Wr as unregisterOwnerSheet,Kn as validateAndExtract,H as valueMode,vo as virtualDate,$i as virtualPerformance,Uo as windowHooks,I as windowInterfaces,Ja as withNamedProperties};
@@ -9,10 +9,12 @@ export declare class CollectionState {
9
9
  /** true: only element children of root; false: descendants matching `filter`. */
10
10
  childrenOnly: boolean;
11
11
  filter: ElementFilter | null;
12
+ /** Members depend only on the tree and tag names: stamped with Document[$treeVersion]. */
13
+ structural: boolean;
12
14
  items: Element[];
13
15
  doc: Document | null;
14
16
  version: number;
15
- constructor(root: NodeImpl, childrenOnly: boolean, filter: ElementFilter | null);
17
+ constructor(root: NodeImpl, childrenOnly: boolean, filter: ElementFilter | null, structural: boolean);
16
18
  /** nodes/derived.ts: release the (stale) members once a node was removed from the document. */
17
19
  _dropSnapshot(): void;
18
20
  }
@@ -21,8 +23,8 @@ export declare class HTMLCollection {
21
23
  /** Free for subclasses that override `_snapshot()` (not used by the base class). */
22
24
  [$items]: Element[] | null;
23
25
  [$version]: number;
24
- /** @internal Use the static factories or a subclass. */
25
- constructor(root: NodeImpl, childrenOnly?: boolean, filter?: ElementFilter | null);
26
+ /** @internal Use the static factories or a subclass. `structural`: see the module comment. */
27
+ constructor(root: NodeImpl, childrenOnly?: boolean, filter?: ElementFilter | null, structural?: boolean);
26
28
  /**
27
29
  * @internal Collection state (prototype accessor, so it is not an own property name).
28
30
  * TODO(html): html/collection.ts and html/forms/collections.ts could read `this[$coll]`.
@@ -32,8 +34,11 @@ export declare class HTMLCollection {
32
34
  get _rootImpl(): NodeImpl;
33
35
  /** @internal Element children of `root` (ParentNode.children). */
34
36
  static _childrenOf(root: NodeImpl): HTMLCollection;
35
- /** @internal Descendant elements of `root` matching `filter`, in tree order. */
36
- static _descendants(root: NodeImpl, filter: ElementFilter | null): HTMLCollection;
37
+ /**
38
+ * @internal Descendant elements of `root` matching `filter`, in tree order; `structural` when
39
+ * `filter` reads only tag names and namespaces.
40
+ */
41
+ static _descendants(root: NodeImpl, structural: boolean, filter: ElementFilter | null): HTMLCollection;
37
42
  /**
38
43
  * @internal Fill `out` with the members in tree order. Subclasses override this for custom
39
44
  * membership; it runs only when the document changed since the last snapshot.
@@ -68,6 +68,16 @@ export declare class Event {
68
68
  readonly CAPTURING_PHASE: 1;
69
69
  readonly AT_TARGET: 2;
70
70
  readonly BUBBLING_PHASE: 3;
71
+ /**
72
+ * https://dom.spec.whatwg.org/#dom-event-istrusted — [LegacyUnforgeable], so an own enumerable
73
+ * property of every instance. A class field (an in-object data property) rather than the
74
+ * accessor WebIDL prescribes: `Object.defineProperty(this, "isTrusted", accessor)` is a C++
75
+ * runtime path costing ~50 ns, 40-60% of constructing a MouseEvent/KeyboardEvent and more than
76
+ * happy-dom spends on the whole event (docs/deviations.md, Events). Readers see the same
77
+ * value, `Object.keys` and pretty-format output are identical; the flag in `_s` stays the
78
+ * source of truth for dispatch, and `setTrusted` keeps the two in step.
79
+ */
80
+ readonly isTrusted: boolean;
71
81
  /** @internal The per-event state record (non-enumerable prototype accessor). */
72
82
  get _s(): EventState;
73
83
  /** https://dom.spec.whatwg.org/#dom-event-event */
@@ -81,7 +91,6 @@ export declare class Event {
81
91
  get bubbles(): boolean;
82
92
  get cancelable(): boolean;
83
93
  get composed(): boolean;
84
- readonly isTrusted: boolean;
85
94
  /** https://dom.spec.whatwg.org/#dom-event-timestamp — ms since the time origin (performance.now()). */
86
95
  get timeStamp(): number;
87
96
  get defaultPrevented(): boolean;
@@ -105,8 +114,12 @@ export declare class Event {
105
114
  /** https://dom.spec.whatwg.org/#set-the-canceled-flag */
106
115
  export declare function setCanceledFlag(s: EventState): void;
107
116
  /** https://dom.spec.whatwg.org/#concept-event-initialize */
108
- export declare function initializeEvent(s: EventState, type: string, bubbles: boolean, cancelable: boolean): void;
109
- /** @internal Mark an event as trusted (dispatched by the user agent). */
117
+ export declare function initializeEvent(event: Event, type: string, bubbles: boolean, cancelable: boolean): void;
118
+ /**
119
+ * @internal Set an event's isTrusted: true for events the user agent fires, false again when
120
+ * script dispatches one (https://dom.spec.whatwg.org/#dom-eventtarget-dispatchevent step 2).
121
+ * The flag is what dispatch reads; the own property is what script reads.
122
+ */
110
123
  export declare function setTrusted(event: Event, trusted?: boolean): void;
111
124
  /** Name used in subclass constructor errors. */
112
125
  export declare function setToStringTag(ctor: {
@@ -1,14 +1,14 @@
1
1
  import { Event } from "./Event.js";
2
2
  import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEventListenerObject } from "../webidl.js";
3
- import { type ListenerMap } from "./listeners.js";
3
+ import { type ListenerSlots } from "./listeners.js";
4
4
  import { $listeners } from "../keys.js";
5
5
  export declare class EventTarget {
6
- /** @internal Event type → listener list, or null when there are no listeners (see listeners.ts). */
6
+ /** @internal Event type id → first listener, or null when there are no listeners (see listeners.ts). */
7
7
  /**
8
8
  * Added on first addEventListener (absent otherwise): most nodes never get a listener (React
9
9
  * delegates to its root container), and an always-initialized field cost every node a slot.
10
10
  */
11
- [$listeners]?: ListenerMap | null;
11
+ [$listeners]?: ListenerSlots | null;
12
12
  /** https://dom.spec.whatwg.org/#dom-eventtarget-eventtarget */
13
13
  constructor();
14
14
  /** https://dom.spec.whatwg.org/#dom-eventtarget-addeventlistener */
@@ -3,7 +3,15 @@ import type { EventTarget } from "./EventTarget.js";
3
3
  import type { EventInit } from "../webidl.js";
4
4
  import type { Window } from "../window/Window.js";
5
5
  import type { DataTransfer } from "./DataTransfer.js";
6
- export declare function requireArgs(given: number, needed: number, iface: string): void;
6
+ /**
7
+ * The interface a message names: a constructor (`new.target`) whose `name` is read only when an
8
+ * error is actually thrown. `Function.prototype.name` is a native accessor (~8 ns a read), and
9
+ * the subclass constructors used to read it several times per event to pass names down.
10
+ */
11
+ type Iface = string | {
12
+ readonly name: string;
13
+ };
14
+ export declare function requireArgs(given: number, needed: number, iface: Iface): void;
7
15
  /** Window detection without importing the Window class (avoids an import cycle). */
8
16
  export declare function isWindow(v: unknown): v is Window;
9
17
  export interface UIEventInit extends EventInit {
@@ -306,3 +314,4 @@ export declare class ClipboardEvent extends Event {
306
314
  constructor(type: string, eventInitDict?: ClipboardEventInit | null);
307
315
  get clipboardData(): DataTransfer | null;
308
316
  }
317
+ export {};
@@ -1,4 +1,6 @@
1
1
  import type { Event } from "./Event.js";
2
+ /** Whether an element with tag id `tag` can have activation behavior (the dispatch algorithm's gate). */
3
+ export declare function mayHaveActivationBehavior(tag: number): boolean;
2
4
  export interface ActivationTarget {
3
5
  readonly _hasActivationBehavior?: boolean;
4
6
  _activationBehavior?(event: Event): void;
@@ -21,12 +21,7 @@ export declare function setPostDispatchHook(fn: ((event: Event, target: EventTar
21
21
  * https://dom.spec.whatwg.org/#slotable-assigned-slot
22
22
  */
23
23
  export declare function setAssignedSlotLookup(fn: ((impl: NodeImpl) => EventTarget | null) | null): void;
24
- /**
25
- * "Get the parent" for nodes and shadow roots.
26
- * https://dom.spec.whatwg.org/#get-the-parent (Node: assigned slot or parent; ShadowRoot:
27
- * null for non-composed events whose path starts inside it, otherwise its host).
28
- * `Node._getTheParent` delegates here; Document/Window override it themselves.
29
- */
24
+ /** `Node._getTheParent` delegates here (the dispatch algorithm itself inlines it). */
30
25
  export declare function nodeGetTheParent(node: NodeLike, event: Event): EventTarget | null;
31
26
  /** https://dom.spec.whatwg.org/#retarget */
32
27
  export declare function retarget(a: EventTarget | null, b: EventTarget): EventTarget | null;
@@ -1,32 +1,47 @@
1
1
  import type { AddEventListenerOptions, EventListenerOptions, EventListenerOrEventListenerObject } from "../webidl.js";
2
2
  import type { EventTarget } from "./EventTarget.js";
3
+ export declare const LISTENER_CAPTURE = 1;
4
+ export declare const LISTENER_ONCE = 2;
5
+ export declare const LISTENER_PASSIVE = 4;
6
+ export declare const LISTENER_REMOVED = 8;
7
+ /** A listener's signal and the abort algorithm registered on it, kept so removal can unregister it. */
8
+ declare class AbortBinding {
9
+ signal: AbortSignal;
10
+ onAbort: () => void;
11
+ constructor(signal: AbortSignal, onAbort: () => void);
12
+ }
13
+ /** The seq the next added listener gets: inner invoke stops at listeners at or past it. */
14
+ export declare function listenerSeqLimit(): number;
15
+ /**
16
+ * The booleans pack into `flags` and the signal state lives out of line: a React root holds 142
17
+ * of these and none has a signal.
18
+ */
3
19
  export declare class Listener {
4
20
  callback: EventListenerOrEventListenerObject;
5
- capture: boolean;
6
- once: boolean;
7
- passive: boolean;
8
- removed: boolean;
9
- signal: AbortSignal | null;
10
- /** The abort algorithm registered on `signal`, kept so removal can unregister it. */
11
- onAbort: (() => void) | null;
12
- constructor(callback: EventListenerOrEventListenerObject, capture: boolean, once: boolean, passive: boolean, signal: AbortSignal | null);
13
- }
14
- export declare class ListenerList {
15
- items: Listener[];
16
- /** Number of in-progress invocations iterating `items` (nested dispatches can stack). */
17
- iterating: number;
18
- constructor();
21
+ /** LISTENER_* bits. */
22
+ flags: number;
23
+ /** The next listener of the same type on the same target, in insertion order. */
24
+ next: Listener | null;
25
+ seq: number;
26
+ /** Null unless added with a signal. */
27
+ abort: AbortBinding | null;
28
+ constructor(callback: EventListenerOrEventListenerObject, flags: number);
19
29
  }
20
- export type ListenerMap = Map<string, ListenerList>;
30
+ /** Indexed by type id; a hole or undefined means no listener of that type. */
31
+ export type ListenerSlots = (Listener | undefined)[];
32
+ /** `type`'s id, or -1 when nothing has ever listened for it (so no target has a listener). */
33
+ export declare function typeIdOf(type: string): number;
34
+ /** The first listener for type id `id` (-1 included) on a target whose slots are `slots`. */
35
+ export declare function firstListener(slots: ListenerSlots, id: number): Listener | undefined;
21
36
  /** https://dom.spec.whatwg.org/#concept-flatten-options */
22
37
  export declare function flattenCapture(options: boolean | EventListenerOptions | undefined | null): boolean;
23
38
  /**
24
39
  * https://dom.spec.whatwg.org/#add-an-event-listener
25
40
  *
26
41
  * The most-called DOM entry point in component suites: React adds 142 listeners to every root
27
- * container, so each render() in a test makes 142 calls. It is our top function by self time in
28
- * Base UI's interaction tests and still only 0.2% of their CPU (~0.2 µs a call; bench/README.md
29
- * "Where real suites spend their time").
42
+ * container, so each render() in a test makes 142 calls. It was our top function by self time in
43
+ * Base UI's interaction tests at 0.2% of their CPU (bench/README.md "Where real suites spend their
44
+ * time") before the type-id layout; `dom/react-root-listeners` replays React's calls.
30
45
  */
31
46
  export declare function addEventListener(target: EventTarget, type: string, callback: EventListenerOrEventListenerObject | null | undefined, options: boolean | AddEventListenerOptions | undefined | null): void;
32
47
  /** https://dom.spec.whatwg.org/#dom-eventtarget-removeeventlistener */
@@ -37,3 +52,6 @@ export declare function removeListener(target: EventTarget, type: string, listen
37
52
  export declare function removeAllEventListeners(target: EventTarget): void;
38
53
  /** Whether `target` has at least one listener for `type` (internal fast check for other areas). */
39
54
  export declare function hasListeners(target: EventTarget, type: string): boolean;
55
+ /** Whether `target` has any listener at all. */
56
+ export declare function hasAnyListener(target: EventTarget): boolean;
57
+ export {};
@@ -5,7 +5,6 @@ import type { Element } from "../../nodes/Element.js";
5
5
  import type { Event } from "../../events/Event.js";
6
6
  import { LabelsNodeList } from "./collections.js";
7
7
  import { FileList } from "../../window/FileList.js";
8
- import type { EventTarget } from "../../events/EventTarget.js";
9
8
  import { $badInput, $checked, $checkedSet, $customValidity, $dirtyChecked, $dirtyValue, $files, $indeterminate, $labels, $preApplied, $preChecked, $preCheckedRadio, $preIndeterminate, $selDir, $selEnd, $selStart, $uiValue, $userEdited, $userValidity, $validity, $value } from "../../keys.js";
10
9
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
11
10
  /** https://html.spec.whatwg.org/#value-sanitization-algorithm for each type. */
@@ -49,8 +48,6 @@ export declare class HTMLInputElement extends HTMLElement {
49
48
  [$userValidity]: boolean;
50
49
  /** @internal Use Document.createElement. */
51
50
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
52
- /** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
53
- _getTheParent(event: Event): EventTarget | null;
54
51
  /** https://html.spec.whatwg.org/#dom-input-type */
55
52
  get type(): string;
56
53
  set type(value: string);
@@ -160,6 +157,7 @@ export declare class HTMLInputElement extends HTMLElement {
160
157
  _typeChange(oldType: number, newType: number): void;
161
158
  /** Insertion steps (connected case): radio group rule on insertion. */
162
159
  _connectedSteps(): void;
160
+ _disconnectedSteps(): void;
163
161
  /** https://html.spec.whatwg.org/#the-input-element:concept-node-clone-ext */
164
162
  _cloningSteps(copy: Element): void;
165
163
  /**
@@ -6,8 +6,6 @@ import { HTMLCollection } from "../../collections/HTMLCollection.js";
6
6
  import { HTMLOptionsCollection, LabelsNodeList } from "./collections.js";
7
7
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
8
8
  import { $customValidity, $labels, $options, $selectedOptions, $settled, $updatingSelectedContent, $userValidity, $validity } from "../../keys.js";
9
- import type { Event } from "../../events/Event.js";
10
- import type { EventTarget } from "../../events/EventTarget.js";
11
9
  export declare class HTMLSelectElement extends HTMLElement {
12
10
  [$customValidity]: string;
13
11
  [$validity]: ValidityState | null;
@@ -25,8 +23,6 @@ export declare class HTMLSelectElement extends HTMLElement {
25
23
  [$userValidity]: boolean;
26
24
  /** @internal Use Document.createElement. */
27
25
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
28
- /** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
29
- _getTheParent(event: Event): EventTarget | null;
30
26
  _ensureSettled(): void;
31
27
  _cloningSteps(copy: Element): void;
32
28
  _connectedSteps(): void;
@@ -4,8 +4,6 @@ import type { Element } from "../../nodes/Element.js";
4
4
  import { LabelsNodeList } from "./collections.js";
5
5
  import { type ConstraintValidation, type ValidityState } from "./validation.js";
6
6
  import { $customValidity, $dirtyValue, $labels, $rawValue, $selDir, $selEnd, $selStart, $userEdited, $userValidity, $validity } from "../../keys.js";
7
- import type { Event } from "../../events/Event.js";
8
- import type { EventTarget } from "../../events/EventTarget.js";
9
7
  export declare class HTMLTextAreaElement extends HTMLElement {
10
8
  /** Raw value while the dirty value flag is set. */
11
9
  [$rawValue]: string;
@@ -23,8 +21,6 @@ export declare class HTMLTextAreaElement extends HTMLElement {
23
21
  [$userValidity]: boolean;
24
22
  /** @internal Use Document.createElement. */
25
23
  constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
26
- /** Sets user validity when a `change` event is dispatched at this control (forms/user-validity.ts). */
27
- _getTheParent(event: Event): EventTarget | null;
28
24
  get type(): string;
29
25
  /** https://html.spec.whatwg.org/#dom-textarea-defaultvalue — the child text content. */
30
26
  get defaultValue(): string;
@@ -25,9 +25,8 @@ export declare function parserAssociateForm(el: NodeImpl, form: NodeImpl): void;
25
25
  export declare function clearParserAssociation(el: NodeImpl): void;
26
26
  /**
27
27
  * The subtree holding every element whose form owner is `form` (https://html.spec.whatwg.org/#form-owner).
28
- * Outside its descendants only the parser's form element pointer or, for listed elements, a
29
- * `form` attribute naming the form's ID associates an element with it, so without those the
30
- * form's own subtree suffices: O(form) instead of a walk of the whole tree.
28
+ * Outside it only the parser's form element pointer or, for listed elements, a `form` attribute
29
+ * naming the form's ID can associate an element, so without either the form itself is enough.
31
30
  */
32
31
  export declare function formOwnerScope(form: NodeImpl, listed: boolean): NodeImpl;
33
32
  /** All listed elements (excluding image buttons) whose form owner is `form`, in tree order: form.elements. */
@@ -49,9 +48,18 @@ export declare function isActuallyDisabled(el: NodeImpl): boolean;
49
48
  export declare function hasDatalistAncestor(el: NodeImpl): boolean;
50
49
  /** https://html.spec.whatwg.org/#labeled-control */
51
50
  export declare function labeledControl(label: NodeImpl): NodeImpl | null;
52
- /** HTMLLabelElement: a connected `label` has `for` attribute value `forValue` (Document[$forLabels]). */
53
- export declare function addForLabel(label: NodeImpl, forValue: string): void;
54
- /** HTMLLabelElement: `label` was disconnected, or its `for` attribute changed from `forValue`. */
55
- export declare function removeForLabel(label: NodeImpl, forValue: string): void;
56
- /** Label elements whose labeled control is `el`, in tree order. https://html.spec.whatwg.org/#dom-lfe-labels */
57
- export declare function labelsFor(el: NodeImpl, out: NodeImpl[]): NodeImpl[];
51
+ /**
52
+ * Per-document indexes of connected elements by a string key (Document[$forLabels] by `for`
53
+ * value, Document[$radios] by name), each list in no particular order. Kept by the elements'
54
+ * connected, disconnected and attribute change steps.
55
+ */
56
+ export declare function indexAdd(index: Map<string, NodeImpl[]>, key: string, el: NodeImpl): void;
57
+ export declare function indexRemove(index: Map<string, NodeImpl[]>, key: string, el: NodeImpl): void;
58
+ /**
59
+ * Label elements whose labeled control is `el`, in tree order. https://html.spec.whatwg.org/#dom-lfe-labels
60
+ *
61
+ * A label names `el` by `for` (only when `el` has an ID), or is an ancestor without `for` whose
62
+ * first labelable descendant is `el`. The ancestors are O(depth) and the document indexes its
63
+ * connected labels by `for`, so only a detached control with an ID walks its tree.
64
+ */
65
+ export declare function labelsFor(el: NodeImpl): NodeImpl[];
@@ -1,18 +1,17 @@
1
1
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
2
- import type { Event } from "../../events/Event.js";
3
2
  import { $userValidity } from "../../keys.js";
4
3
  /** A control with a user validity flag (input, textarea, select). */
5
4
  export interface UserValidityHolder {
6
5
  [$userValidity]: boolean;
7
6
  }
8
7
  /**
9
- * Called from the controls' `_getTheParent` (the event dispatch algorithm calls it on the
10
- * target first, https://dom.spec.whatwg.org/#concept-event-dispatch step 6.8, before any
11
- * listener runs, so `change` listeners already see the new state). `pathLength` is 1 only for
12
- * that first call: a `change` dispatched at an `<option>` reaches its `<select>` as a parent and
8
+ * Called by the event dispatch algorithm (events/dispatch.ts) with the target of a `change`
9
+ * event, while building the path (https://dom.spec.whatwg.org/#concept-event-dispatch step
10
+ * 6.8) and so before any listener runs: `change` listeners already see the new state. Only the
11
+ * target counts: a `change` dispatched at an `<option>` reaches its `<select>` as a parent and
13
12
  * must not set the select's flag.
14
13
  */
15
- export declare function noteChangeDispatch(el: UserValidityHolder, event: Event): void;
14
+ export declare function noteChangeDispatch(target: NodeImpl): void;
16
15
  /** Whether `el` is an input, textarea or select whose user validity is true. */
17
16
  export declare function hasUserValidity(el: NodeImpl): boolean;
18
17
  /** https://html.spec.whatwg.org/#concept-form-submit step 6.3: set user validity of the form's submittable controls. */
@@ -10,6 +10,7 @@ type Wrapper = {
10
10
  export declare function contentAttr(el: NodeImpl, localName: string): string | null;
11
11
  /** https://dom.spec.whatwg.org/#concept-element-attributes-set-value (null namespace). */
12
12
  export declare function setContentAttr(el: NodeImpl, localName: string, value: string): void;
13
+ /** https://dom.spec.whatwg.org/#concept-element-attributes-remove-by-namespace (null namespace). */
13
14
  export declare function removeContentAttr(el: NodeImpl, localName: string): void;
14
15
  export declare function defineAccessor(C: Ctor, name: string, get: (this: Wrapper) => unknown, set?: (this: Wrapper, v: any) => void): void;
15
16
  /**
@@ -5,7 +5,7 @@ import type { NodeImpl as NodeImplType } from "./nodes/NodeImpl.js";
5
5
  export { NodeCache, nodeCache } from "./nodes/cache.js";
6
6
  export { derivedCache, peekDerivedCache } from "./nodes/derived.js";
7
7
  export { T, tagId, tagName } from "./nodes/tags.js";
8
- export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, compareTreeOrder, } from "./nodes/traverse.js";
8
+ export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, } from "./nodes/traverse.js";
9
9
  export { attr, ariaAttr, prefixFlag, hasAttr, getAttribute, setAttribute, removeAttribute, classTokens, asciiLowercase, splitOnAsciiWhitespace, isAsciiWhitespace, } from "./nodes/attributes.js";
10
10
  export { matches, closest, querySelector, querySelectorAll } from "./selectors/index.js";
11
11
  export { serializeChildren, serializeNode } from "./serializer/index.js";
@@ -139,6 +139,7 @@ export declare const $prelude: unique symbol;
139
139
  export declare const $presentationStyle: unique symbol;
140
140
  export declare const $pseudo: unique symbol;
141
141
  export declare const $queries: unique symbol;
142
+ export declare const $radios: unique symbol;
142
143
  export declare const $ranges: unique symbol;
143
144
  export declare const $rawValue: unique symbol;
144
145
  export declare const $readonly: unique symbol;
@@ -185,6 +186,7 @@ export declare const $targets: unique symbol;
185
186
  export declare const $tasks: unique symbol;
186
187
  export declare const $timers: unique symbol;
187
188
  export declare const $title: unique symbol;
189
+ export declare const $treeVersion: unique symbol;
188
190
  export declare const $type: unique symbol;
189
191
  export declare const $types: unique symbol;
190
192
  export declare const $uiValue: unique symbol;
@@ -14,12 +14,17 @@ import type { Window } from "../window/Window.js";
14
14
  import type { NodeList } from "../collections/NodeList.js";
15
15
  import type { ElementCreationOptions } from "../webidl.js";
16
16
  import type { Event } from "../events/Event.js";
17
- import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $contentType, $css, $derived, $doc, $focused, $forLabels, $forms, $ids, $implementation, $isHTML, $mode, $ranges, $selection, $styleVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
17
+ import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $contentType, $css, $derived, $doc, $focused, $forLabels, $forms, $ids, $implementation, $isHTML, $mode, $radios, $ranges, $selection, $styleVersion, $treeVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
18
18
  export declare class Document extends Node {
19
19
  /** Browsing context's window, or null for documents created via DOMImplementation / new Document(). */
20
20
  [$window]: Window | null;
21
21
  /** Bumped on every tree, attribute and character-data mutation of nodes owned by this document. */
22
22
  [$version]: number;
23
+ /**
24
+ * Bumped by tree mutations only (nodes/tree.ts), not attribute, character data or form state
25
+ * changes: stamps live collections whose members depend only on the tree and tag names.
26
+ */
27
+ [$treeVersion]: number;
23
28
  /** Bumped when author style sheets change (src/css). */
24
29
  [$styleVersion]: number;
25
30
  /** Connected elements by id. A value is an array only when several connected elements share an id. */
@@ -51,6 +56,12 @@ export declare class Document extends Node {
51
56
  * an ID without walking the tree.
52
57
  */
53
58
  [$forLabels]: Map<string, NodeImpl[]> | null;
59
+ /**
60
+ * Connected radio buttons with a non-empty name, by name, each list in no particular order, or
61
+ * null before the first (html/forms/HTMLInputElement.ts). A radio's group is looked up here
62
+ * instead of walking the tree.
63
+ */
64
+ [$radios]: Map<string, NodeImpl[]> | null;
54
65
  /** document.forms (named-properties proxy), created on first read. */
55
66
  [$forms]: HTMLCollection | null;
56
67
  /** https://html.spec.whatwg.org/#concept-document-about-base-url (about:blank / about:srcdoc documents of nested browsing contexts). */
@@ -111,12 +111,6 @@ export declare class Element extends Node {
111
111
  scrollTo(_x?: unknown, _y?: number): void;
112
112
  scrollBy(_x?: unknown, _y?: number): void;
113
113
  scrollIntoView(_arg?: unknown): void;
114
- /**
115
- * Activation behavior (events/activation.ts): none unless a subclass overrides it. Defined here
116
- * so dispatch reading it on every click's path is a prototype hit, not (on a <form>) a named
117
- * property lookup through the form's controls.
118
- */
119
- get _hasActivationBehavior(): boolean;
120
114
  /** Runs when this element becomes connected. Only called when F_CONNECT_HOOK is set. */
121
115
  _connectedSteps(): void;
122
116
  /** Runs when this element becomes disconnected. Only called when F_CONNECT_HOOK is set. */
@@ -139,7 +133,8 @@ export interface Element extends ParentNode, ChildNode, NonDocumentTypeChildNode
139
133
  }
140
134
  /** https://dom.spec.whatwg.org/#concept-attach-a-shadow-root */
141
135
  export declare function attachShadowRoot(element: Element, mode: "open" | "closed", clonable: boolean, serializable: boolean, delegatesFocus: boolean, slotAssignment: "named" | "manual"): ShadowRoot;
142
- export declare function cachedCollection(root: NodeImpl, key: string, filter: ((el: NodeImpl) => boolean) | null): HTMLCollection;
136
+ /** `structural`: `filter` reads only tag names and namespaces (HTMLCollection's module comment). */
137
+ export declare function cachedCollection(root: NodeImpl, key: string, structural: boolean, filter: ((el: NodeImpl) => boolean) | null): HTMLCollection;
143
138
  /** https://dom.spec.whatwg.org/#concept-getelementsbytagname */
144
139
  export declare function getElementsByTagName(root: NodeImpl, qualifiedName: string): HTMLCollection;
145
140
  /** https://dom.spec.whatwg.org/#concept-getelementsbytagnamens */
@@ -97,7 +97,10 @@ export declare abstract class Node extends EventTarget {
97
97
  appendChild<T extends Node>(node: T): T;
98
98
  replaceChild<T extends Node>(node: Node, child: T): T;
99
99
  removeChild<T extends Node>(child: T): T;
100
- /** https://dom.spec.whatwg.org/#get-the-parent */
100
+ /**
101
+ * https://dom.spec.whatwg.org/#get-the-parent — the dispatch algorithm inlines this for every
102
+ * node but a Document (events/dispatch.ts), so no other Node subclass may override it.
103
+ */
101
104
  _getTheParent(event: Event): import("../events/EventTarget.js").EventTarget | null;
102
105
  /** @internal Used by textContent/innerHTML setters. */
103
106
  _replaceAll(node: Node | null): void;