@ctrl/dom 0.1.11 → 0.1.13

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 (50) hide show
  1. package/dist/aria/_chunks/roles-list--7uYUGyR.cjs +4 -0
  2. package/dist/aria/_chunks/roles-list-b_Z0ZWwY.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 +8 -2
  8. package/dist/bridge/internal.js +1 -1
  9. package/dist/dom/_chunks/src-BHNEJboS.js +49 -0
  10. package/dist/dom/index.js +1 -1
  11. package/dist/dom/internal.js +1 -1
  12. package/dist/dom/types/css/CSSStyleDeclaration.d.ts +2 -1
  13. package/dist/dom/types/css/cascade.d.ts +70 -4
  14. package/dist/dom/types/css/cssom.d.ts +22 -3
  15. package/dist/dom/types/css/declarations.d.ts +36 -13
  16. package/dist/dom/types/css/shorthands.d.ts +2 -0
  17. package/dist/dom/types/css/stylesheets.d.ts +0 -2
  18. package/dist/dom/types/css/values.d.ts +14 -0
  19. package/dist/dom/types/html/forms/HTMLLabelElement.d.ts +6 -0
  20. package/dist/dom/types/html/forms/form-associated.d.ts +11 -0
  21. package/dist/dom/types/internal.d.ts +2 -2
  22. package/dist/dom/types/keys.d.ts +2 -0
  23. package/dist/dom/types/nodes/Document.d.ts +8 -2
  24. package/dist/dom/types/nodes/Element.d.ts +6 -0
  25. package/dist/dom/types/nodes/attributes.d.ts +5 -1
  26. package/dist/dom/types/nodes/constants.d.ts +9 -0
  27. package/dist/dom/types/nodes/traverse.d.ts +2 -0
  28. package/dist/dom/types/observers/queue.d.ts +10 -0
  29. package/dist/dom/types/window/Window.d.ts +8 -2
  30. package/dist/dom/types/window/clock.d.ts +47 -5
  31. package/dist/react/_chunks/pure-D7Z4g4oF.js +1 -0
  32. package/dist/react/_chunks/pure-DOgNQrwu.cjs +1 -0
  33. package/dist/react/index.cjs +1 -1
  34. package/dist/react/index.js +1 -1
  35. package/dist/react/pure.cjs +1 -1
  36. package/dist/react/pure.js +1 -1
  37. package/dist/user-event/index.cjs +15 -15
  38. package/dist/user-event/index.js +15 -15
  39. package/dist/user-event/types/ctrl-dom.d.ts +6 -0
  40. package/dist/user-event/types/event/createEvent.d.ts +143 -2
  41. package/dist/user-event/types/utils/misc/wait.d.ts +1 -1
  42. package/dist/vitest-environment/index.js +1 -1
  43. package/dist/vitest-environment/plugin.js +1 -1
  44. package/dist/vitest-environment/types/index.d.ts +8 -0
  45. package/package.json +1 -1
  46. package/dist/aria/_chunks/roles-list-B0OTIKQA.js +0 -4
  47. package/dist/aria/_chunks/roles-list-CkmykU-H.cjs +0 -4
  48. package/dist/dom/_chunks/src-C8w0qc4Q.js +0 -49
  49. package/dist/react/_chunks/pure-C0WlxYhN.js +0 -1
  50. package/dist/react/_chunks/pure-DABEr3FU.cjs +0 -1
package/dist/dom/index.js CHANGED
@@ -1 +1 @@
1
- export{Cr as AbstractRange,ms as AnimationEvent,Wa as Attr,Zt as Audio,hs 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,As as ClipboardEvent,lr as ClipboardItem,gs as CloseEvent,Or as CommandEvent,to as Comment,js as CompositionEvent,ba as CustomElementRegistry,_s 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,Ms as DragEvent,Ea as Element,Xn as ElementInternals,vs as ErrorEvent,Ks as Event,ns as EventTarget,et as FileList,A as FileReader,Ns as FocusEvent,F as FormData,ys 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,bs as HashChangeEvent,dr as History,Jn as Image,Ps as InputEvent,O as IntersectionObserver,Fs as KeyboardEvent,fr as Location,nt as MathMLElement,tn as MediaError,Mi as MediaList,oi as MediaQueryList,li as MediaQueryListEvent,xs as MessageEvent,Is 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,Ss as PageTransitionEvent,Ls as PointerEvent,Cs as PopStateEvent,no as ProcessingInstruction,ws as ProgressEvent,Ts 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,Es as StorageEvent,Ni as StyleSheet,Pi as StyleSheetList,Ds as SubmitEvent,ro as Text,Rs as TextEvent,nn as TimeRanges,Os as ToggleEvent,zs as Touch,Bs as TouchEvent,Vs as TouchList,ks as TransitionEvent,Sr as TreeWalker,Hs as UIEvent,ea as ValidityState,sr as VisualViewport,Us as WheelEvent,tr as Window,_r as XMLDocument,j as XMLHttpRequest,M as XMLHttpRequestEventTarget,N as XMLHttpRequestUpload,mr as XMLSerializer,nr as createWindow,us as currentDocument,ds as currentWindow,fs as currentWindowOrNull,Lr as getComputedStyle,P as installGlobals,ps as setCurrentWindow}from"./_chunks/src-C8w0qc4Q.js";
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 +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 l,Af as re,Al as ie,Ao as ae,Ar as oe,Au as se,Ba as ce,Bc as le,Bd as ue,Bi as de,Bl as fe,Bo as pe,Br as me,Bu as he,C as ge,Ca as _e,Cc as ve,Cd as ye,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 u,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 b,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gs as He,Gu as x,Hc as Ue,Hd as We,Hi as Ge,Hl as Ke,Ho as qe,Hr as Je,Hu as Ye,I as Xe,Ic as Ze,Id as Qe,If as $e,Ii as et,Il as tt,Ir as nt,Iu as rt,Ja as it,Jc as S,Jd as at,Ji as ot,Jl as st,Jo as ct,Jr as lt,Js as ut,Ju as C,Kc as w,Kd as T,Ki as dt,Kl as ft,Ko as pt,Kr as mt,Ku as E,Lc as ht,Ld as gt,Lf as _t,Li as vt,Ll as yt,Lo as bt,Lr as xt,Lu as St,Mc as Ct,Md as wt,Mf as Tt,Ml as Et,Mo as Dt,Mr as Ot,Mu as kt,Nc as At,Nd as jt,Nf as Mt,Nl as Nt,No as Pt,Nr as Ft,Nu as It,Oa as Lt,Oc as Rt,Od as zt,Of as Bt,Ol as Vt,Oo as Ht,Ou as D,Pc as Ut,Pd as Wt,Pf as Gt,Pl as Kt,Po as qt,Pr as Jt,Pu as Yt,Qc as Xt,Qd as Zt,Qi as Qt,Ql as $t,Qn as en,Qo as tn,Qr as nn,Qs as rn,Qu as an,Ra as on,Rc as sn,Rd as cn,Ri as ln,Rl as un,Ro as dn,Rr as fn,Ru as pn,S as mn,Sa as hn,Sc as gn,Sd as _n,Sf as vn,Sl as yn,So as bn,Su as xn,Ta as Sn,Tc as Cn,Td as wn,Tf as Tn,Tl as En,To as Dn,Tu as On,Ua as kn,Uc as An,Ud as jn,Ui as Mn,Ul as Nn,Uo as Pn,Ur as Fn,Uu as In,Va as Ln,Vc as Rn,Vd as zn,Vi as Bn,Vl as Vn,Vo as Hn,Vr as Un,Vu as Wn,Wc as Gn,Wd as Kn,Wi as qn,Wl as Jn,Wo as Yn,Wr as Xn,Ws as Zn,Wu as Qn,Xa as $n,Xc as er,Xd as tr,Xi as nr,Xl as rr,Xo as ir,Xr as ar,Xs as or,Xu as sr,Y as cr,Ya as lr,Yc as ur,Yd as dr,Yl as fr,Yo as pr,Yr as mr,Ys as hr,Yu as gr,Zc as _r,Zd as vr,Zi as yr,Zl as br,Zo as xr,Zr as Sr,Zs as Cr,Zu as wr,_ as Tr,_a as O,_c as Er,_d as Dr,_f as Or,_l as kr,_o as Ar,_u as jr,a as Mr,aa as Nr,ac as Pr,ad as Fr,af as Ir,ai as Lr,al as Rr,ao as zr,as as Br,au as Vr,b as Hr,bc as Ur,bd as k,bf as Wr,bl as Gr,bo as Kr,bu as qr,c as Jr,ca as Yr,cc as Xr,cd as Zr,cf as Qr,ci as $r,cl as ei,co as ti,cs as ni,cu as ri,d as ii,da as ai,dc as oi,dd as si,df as ci,dl as li,du as ui,ec as A,ed as di,ef as fi,ei as pi,el as mi,er as hi,es as gi,eu as _i,f as vi,fa as yi,fc as bi,fd as xi,ff as Si,fl as Ci,fo as wi,fu as Ti,g as Ei,ga as Di,gc as Oi,gd as ki,gf as Ai,gl as ji,go as Mi,gu as Ni,h as Pi,ha as Fi,hc as Ii,hd as Li,hf as Ri,hl as zi,ho as Bi,hu as Vi,i as Hi,ia as Ui,ic as Wi,id as Gi,if as Ki,ii as qi,il as Ji,io as Yi,ir as Xi,is as Zi,iu as Qi,jc as $i,jd as ea,jf as ta,jl as j,jo as na,jr as ra,ju as ia,ka as aa,kc as oa,kd as M,kf as sa,kl as ca,ko as la,kr as ua,ku as da,l as fa,la as pa,lc as ma,ld as ha,lf as ga,ll as _a,lo as va,ls as ya,lu as ba,m as N,ma as P,mc as xa,md as Sa,mf as Ca,ml as wa,mo as Ta,mu as Ea,n as Da,nc as F,nd as Oa,nf as ka,ni as Aa,nl as ja,nu as Ma,o as Na,oa as Pa,oc as Fa,od as Ia,of as La,ol as Ra,oo as za,os as Ba,ou as Va,p as Ha,pa as Ua,pc as Wa,pd as Ga,pf as Ka,pl as qa,po as Ja,pu as Ya,qc as Xa,qd as Za,qi as Qa,ql as $a,qo as eo,qr as to,qs as no,qu as ro,r as io,rc as ao,rd as oo,rf as so,ri as co,rl as lo,rr as I,rs as uo,ru as fo,s as po,sa as mo,sc as ho,sd as go,sf as _o,si as vo,sl as L,so as yo,ss as bo,su as xo,tc as So,td as Co,tf as wo,ti as To,tl as Eo,tr as R,ts as Do,tt as z,tu as Oo,u as ko,ua as Ao,uc as jo,ud as Mo,uf as No,ui as Po,ul as Fo,uo as Io,uu as Lo,v as Ro,va as B,vc as zo,vd as Bo,vf as Vo,vl as Ho,vo as Uo,vr as Wo,vu as Go,wa as Ko,wc as qo,wd as Jo,wf as Yo,wl as Xo,wo as Zo,wu as Qo,x as $o,xa as es,xc as ts,xd as ns,xf as rs,xl as is,xo as V,xu as as,y as os,ya as H,yc as ss,yd as cs,yf as ls,yl as us,yo as ds,yu as fs,za as ps,zc as ms,zd as hs,zi as gs,zl as _s,zo as vs,zr as ys,zu as bs}from"./_chunks/src-C8w0qc4Q.js";import{constants as xs,createContext as Ss,runInContext as Cs}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 ws=null;function ownObjectCreateMaps(){if(W===null)return;let e=ws??=Cs(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ss(xs.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=b();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=b();return q.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=b()-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[j]!==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=T();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[j]??e}function isTypingType(e){return O(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):Jt(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[k]??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[l]++,t[M]=a,t[S]=!0,t[u]=!0,t[k]=a===n?null:n,t[F]=a===``&&n!==``&&i!==5&&!O(i);let o=n.length;t[C]>o&&(t[C]=o),t[E]>o&&(t[E]=o)}else if(r.tag===V.textarea){let e=r.node;r.doc[l]++,e[D]=n,e[S]=!0,e[u]=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===V.input){let e=t.node;e[k]=null,e[F]=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[C],n),end:Math.min(t[E],n),direction:t[x]}}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[C]=s,a[E]=c,a[x]=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===V.input&&P(n)===17&&(n.doc[l]++,n.node[L]=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==V.option)return;let r=n.node;r._setSelectedness(t),r[w]=!0;let i=cr(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 Ts=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===Ts||typeof n!=`function`||Xe.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{hr as $_proto__,or as $aboutBase,Cr as $active,rn as $assocGen,c as $attr,A as $attributes,So as $availableToElementInternals,F as $badInput,ao as $baseFor,Wi as $baseOverride,Pr as $baseURL,Fa as $baseVersion,ho as $block,Xr as $byCtor,ma as $byName,jo as $cache,oi as $callback,bi as $checked,Wa as $checkedSet,xa as $childNodes,Ii as $childWindows,Oi as $children,Er as $classList,zo as $clipboard,ss as $clonable,Ur as $closed,ts as $coll,gn as $compiled,ve as $compiledFor,qo as $condition,Cn as $constructed,Me as $constructingEntryList,Te as $contentType,Rt as $controlsCache,oa as $controlsDoc,ne as $controlsVersion,$i as $cookieJar,Ct as $cookies,At as $css,Ut as $current,m as $customElements,Ze as $customValidity,ht as $cx,sn as $data,ms as $dataset,le as $declarative,Rn as $defaultNamespace,Ue as $defaultValueOverride,An as $delegatesFocus,Gn as $derived,Le as $devicePixelRatio,w as $dirtiness,Xa as $dirtyChecked,S as $dirtyValue,ur as $disabled,er as $disallowModification,_r as $doc,Xt as $dropEffect,t as $ec,mi as $effectAllowed,Eo as $el,ja as $elements,lo as $entries,Ji as $eo,Rr as $error,Ra as $file,L as $files,ei as $fill,_a as $filter,Fo as $firingSubmissionEvents,li as $focused,Ci as $form,qa as $forms,wa as $frameCallbacks,zi as $frameElement,ji as $frameId,kr as $frameTask,Ho as $frameTime,us as $generation,Gr as $globalObject,is as $hasTransients,yn as $height,xe as $history,Xo as $home,En as $host,Pe as $href,Oe as $id,Vt as $idleCallbacks,ca as $idleId,ie as $ids,j as $impl,Et as $implementation,Nt as $indeterminate,Kt as $index,v as $indexed,tt as $inflight,yt as $info,un as $innerHeight,_s as $innerWidth,fe as $is2D,Vn as $isHTML,Ke as $items,Nn as $keyText,Jn as $kind,ze as $labels,ft as $layerName,$a as $list,st as $listeners,fr as $localStorage,rr as $location,br as $lockedForReset,$t as $m,i as $matches,_i as $media,Oo as $mediaQueryLists,Ma as $mode,fo as $name,Qi as $names,Vr as $namespaces,Va as $navigator,xo as $nodes,ri as $onchange,ba as $options,Lo as $owner,ui as $ownerNode,Ti as $ownerRule,Ya as $parent,Ea as $parentRule,Vi as $parentWindow,Ni as $pastNames,jr as $pointerBeforeReference,Go as $preApplied,fs as $preChecked,qr as $preCheckedRadio,as as $preIndeterminate,xn as $prefix,Ce as $prelude,Qo as $presentationStyle,On as $pseudo,p as $queries,je as $ranges,D as $rawValue,da as $readonly,se as $readyState,ia as $record,kt as $records,It as $rects,Yt as $reference,Ie as $result,rt as $root,St as $rules,pn as $running,bs as $runningFrame,he as $sc,Wn as $screen,Ye as $scrollRestoration,In as $scrollX,Qn as $scrollY,x as $selDir,E as $selEnd,ro as $selSet,C as $selStart,gr as $selectedOptions,sr as $selectedness,wr as $selection,an as $selector,ee as $serializable,di as $sessionStorage,Co as $settled,Oa as $shadowRoot,oo as $shed,Gi as $sheet,Fr as $sheets,Ia as $slotAssignment,go as $so,Zr as $states,ha as $style,Mo as $styleVersion,si as $supportsText,xi as $systemId,Ga as $target,Sa as $targets,Li as $tasks,ki as $timers,Dr as $title,Bo as $type,cs as $types,k as $uiValue,ns as $updating,_n as $updatingSelectedContent,ye as $uri,Jo as $url,wn as $userActivation,u as $userEdited,Ee as $userValidity,zt as $validity,M as $value,l as $version,ea as $visualViewport,wt as $w,jt as $whatToShow,Wt as $whenDefined,h as $width,Qe as $window,gt as $writeBuffer,cn as $x,hs as $xhr,ue as $y,zn as $z,Zt as ATTRIBUTE_NODE,gi as AttrRecord,n as CDATA_SECTION_NODE,fi as COMMENT_NODE,Ge as COMPAT,Mn as COMPAT_PROFILES,qn as DEFAULT_COMPAT,wo as DOCUMENT_FRAGMENT_NODE,ka as DOCUMENT_NODE,so as DOCUMENT_POSITION_CONTAINED_BY,Ki as DOCUMENT_POSITION_CONTAINS,Ir as DOCUMENT_POSITION_DISCONNECTED,La as DOCUMENT_POSITION_FOLLOWING,_o as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Qr as DOCUMENT_POSITION_PRECEDING,ga as DOCUMENT_TYPE_NODE,nr as DeclBlock,No as ELEMENT_NODE,ci as ENTITY_NODE,Si as ENTITY_REFERENCE_NODE,no as EventState,Y as FAILURE_CHANNEL,Ka as F_ADOPT_HOOK,Ca as F_ARIA_ATTRS,Ri as F_ATTR_HOOK,Ai as F_CE_CUSTOM,Or as F_CHILDREN_HOOK,Vo as F_CHILD_LIST,ls as F_CONNECTED,Wr as F_CONNECT_HOOK,rs as F_CUSTOM,vn as F_DATA_ATTRS,be as F_FACE,Yo as F_HAS_SHADOW,Tn as F_HAS_STYLE_ATTR,Ne as F_HTML,De as F_MO_REGISTERED,Bt as F_SHADOW_ROOT,es as GLOBAL_EVENT_HANDLER_EVENTS,Yi as HTMLCollection,sa as HTML_NS,Ua as INPUT_TYPE_NAMES,re as MATHML_NS,ta as NOTATION_NODE,vt as NodeCache,Do as NodeImpl,bt as NodeList,Tt as PROCESSING_INSTRUCTION_NODE,K as SPAN_CHANNEL,Mt as SVG_NS,V as T,Gt as TEXT_NODE,We as VirtualClock,jn as VirtualTimeout,hn as WINDOW_EVENT_HANDLER_EVENTS,g as XLINK_NS,$e as XMLNS_NS,_t as XML_NS,nn as adoptedStyleSheetsOf,Zo as ariaAttr,Dn as asciiLowercase,Bi as assignManually,Mi as assignedElements,Ar as assignedNodes,Uo as assignedSlot,we as attachShadowRoot,d as attr,en as attrAssociatedElement,a as attrAssociatedElements,kn as attrNode,captureInterfaceBaseline,qe as childAt,ke as classTokens,clearUIValue,Kn as clockNow,T as clockStats,yo as closest,f as compareBoundaryPoints,Re as compatExposes,fn as computedDisplay,ys as computedValue,me as computedVisibility,ua as constructEntryList,Da as controlValue,Wo as createEvent,z as createFileList,s as createLinkSheet,Un as currentStyleVersion,oe as defaultButton,dt as deferredCompatMembers,pe as derivedCache,describeCall,describeNode,uo as dispatch,gs as dispatchTrusted,zr as ensureCollectionIndexGetters,dn as ensureIndexGetters,vo as evaluateMediaQueryList,Qt as faceState,ds as findFlattenedSlottables,Kr as findSlot,de as fireAnEvent,Bn as fireSyntheticPointerEvent,Pn as firstElementChild,Za as foreignImmediatesPending,Nr as formOwner,Ht as getAttribute,xt as getComputedStyle,getComputedStyleOverride,Zi as getCurrentEvent,Lt as getElementsByClassName,aa as getElementsByTagName,te as getElementsByTagNameNS,_e as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,la as hasAttr,Je as hasAuthorStyles,hi as hasExplicitAttrElements,Zn as hasListeners,io as hasReadonlyAttribute,hasUIValue,Qa as hiddenGlobals,ra as implicitSubmission,vs as indexGetterTable,Yn as indexOf,Hi as inputChecked,Mr as inputIndeterminate,P as inputType,Fi as inputTypeFromAttr,wi as inspectNode,at as installClock,Ko as installEventHandlers,Pa as isActuallyDisabled,ae as isAsciiWhitespace,Na as isAutofilled,po as isChecked,Jr as isDefault,fa as isDisabled,Fn as isDisplayNone,Xn as isDisplayNoneInclusive,isEditable as isEditableControl,ko as isEnabled,r as isFACE,ii as isInRange,Be as isInclusiveAncestor,vi as isIndeterminate,Ha as isInvalid,mo as isLabelable,Yr as isListed,N as isMutable,Di as isNumericType,Pi as isOptional,Ei as isOutOfRange,Tr as isPlaceholderShown,Ro as isReadOnly,os as isReadWrite,Hr as isRequired,pa as isResettable,Ot as isSubmitButton,Ao as isSubmittable,$o as isTextControl,O as isTextualType,mn as isValid,on as isValidDoctypeName,ps as isValidElementLocalName,ce as isValidNamespacePrefix,Ve as isVisibilityHidden,ai as labeledControl,yi as labelsFor,pt as lastElementChild,Ui as listOfOptions,_ as matchMediaText,ti as matches,$r as mediaEnvironment,eo as nextElementInTree,ct as nextElementSibling,pr as nextInTree,ir as nextSkippingChildren,ln as nodeCache,Br as nodeGetTheParent,Ae as nodeLength,y as notifyMutationObservers,ge as optionSelected,yr as parseDeclBlock,$n as parseFragment,et as parseMediaQueryList,Hn as peekDerivedCache,mt as pointerEvents,to as pointerEventsNone,na as prefixFlag,xr as previousElementSibling,tn as previousInTree,lt as pseudoContent,va as querySelector,Io as querySelectorAll,quote,To as registerOwnerSheet,He as removeAllEventListeners,Dt as removeAttribute,Aa as removeOwnerSheet,Ja as replaceData,ni as reportException,ot as resolveCompat,restoreInterfaces,Ba as retarget,it as serializeChildren,lr as serializeNode,co as setAdoptedStyleSheets,bo as setAssignedSlotLookup,Pt as setAttribute,setCheckedFromUI,mr as setComputedColorMode,Sn as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ft as setNotImplementedHandler,setOptionSelectedFromUI,ut as setTrusted,setUISelection,setUIValue,ya as setUncaughtExceptionHandler,dr as skipIdleTime,spanChannel,qt as splitOnAsciiWhitespace,Ta as splitText,Fe as styleElementRemoved,pi as styleElementSheet,nt as styleElementUpdated,qi as styleSheetsOf,ar as styledDisplay,subscribeTestFailures,supportsSelection,B as supportsSelectionType,bn as tagId,Se as tagName,tracePromise,traceSync,tracing,Xi as trackGlobalTimers,o as treeRoot,Sr as uaDisplay,Lr as unregisterOwnerSheet,Ln as validateAndExtract,H as valueMode,tr as virtualDate,vr as virtualPerformance,Po as windowHooks,I as windowInterfaces,za as withNamedProperties};
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};
@@ -28,7 +28,8 @@ export declare class CSSStyleDeclaration {
28
28
  * interaction tests (floating-ui writes positions on every render) spend ~0.5 s of 72.5 s CPU
29
29
  * in inline-style writes (bench/README.md "Where real suites spend their time"). Appended
30
30
  * declarations, as in React's one-property-at-a-time mount, are serialized onto the previous
31
- * text (DeclBlock.serialize()); a value changed in place re-serializes the whole block.
31
+ * text (DeclBlock.serialize()), and a value changed in place is spliced into it unless shorthand
32
+ * grouping could change (DeclBlock.put()).
32
33
  * Serializing when the attribute is read, as Blink does, would save more, but every attribute
33
34
  * read path (getAttribute, attribute iteration, serialization, MutationObserver old values)
34
35
  * would then have to check for a stale style attribute.
@@ -1,12 +1,16 @@
1
1
  import type { Document } from "../nodes/Document.js";
2
2
  import type { NodeImpl } from "../nodes/NodeImpl.js";
3
- import { type CompiledSelector, type StateDeps } from "../selectors/internal.js";
3
+ import { type CompiledSelector, type CompiledSelectorList, type StateDeps } from "../selectors/internal.js";
4
+ import { CSSStyleRule, CSSStyleSheet, type CSSRule } from "./cssom.js";
4
5
  import { DeclBlock } from "./declarations.js";
6
+ import { type MediaEnvironment } from "./media.js";
5
7
  import { type RootStyles } from "./stylesheets.js";
6
8
  export declare class IndexedRule {
7
9
  sel: CompiledSelector;
8
10
  specificity: number;
9
- /** Position in cascade order (tree order of rules across sheets). */
11
+ /** Its sheet's position in cascade order (owner sheets in tree order, then adopted ones). */
12
+ sheetIndex: number;
13
+ /** When it was indexed: within a sheet, later rules have higher orders (rules appended later too). */
10
14
  order: number;
11
15
  /** Layer rank: higher wins for normal declarations; unlayered rules have the highest rank. */
12
16
  layer: number;
@@ -17,7 +21,7 @@ export declare class IndexedRule {
17
21
  h1: number;
18
22
  h2: number;
19
23
  h3: number;
20
- constructor(sel: CompiledSelector, order: number, block: DeclBlock, layerNode: LayerNode);
24
+ constructor(sel: CompiledSelector, sheetIndex: number, order: number, block: DeclBlock, layerNode: LayerNode);
21
25
  }
22
26
  /** The rules that share one subject key. */
23
27
  export declare class Bucket {
@@ -40,7 +44,11 @@ export declare class RuleBuckets {
40
44
  */
41
45
  quirks: boolean;
42
46
  constructor(quirks: boolean);
43
- add(r: IndexedRule): void;
47
+ /**
48
+ * `fresh`: add to a copy of the rule's bucket, as extendIndex does. Ancestor-filter survivor
49
+ * lists are cached per bucket object (Survivors), so a bucket that gains a rule must be a new one.
50
+ */
51
+ add(r: IndexedRule, fresh?: boolean): void;
44
52
  }
45
53
  declare class LayerNode {
46
54
  name: string;
@@ -55,8 +63,50 @@ export declare class RuleIndex {
55
63
  /** Any rule depends on state outside Document._version (:hover, :focus, :checked, ...). */
56
64
  volatile: boolean;
57
65
  styleVersion: number;
66
+ /** The builder, kept to index rules appended later (extendIndex). */
67
+ builder: IndexBuilder | null;
68
+ /** The tree's sheets in cascade order, as indexed. */
69
+ sheets: IndexedSheet[];
58
70
  constructor(styleVersion: number, quirks?: boolean);
59
71
  }
72
+ /** A sheet as a rule index last saw it. */
73
+ declare class IndexedSheet {
74
+ sheet: CSSStyleSheet;
75
+ /** `$version` and rule count when last indexed. */
76
+ version: number;
77
+ rules: number;
78
+ /** Its rules are in the index (not disabled, media matching). */
79
+ applied: boolean;
80
+ constructor(sheet: CSSStyleSheet, applied: boolean);
81
+ }
82
+ declare class IndexBuilder {
83
+ index: RuleIndex;
84
+ env: MediaEnvironment;
85
+ /** The sheet being indexed (IndexedRule.sheetIndex) and the next rule's order. */
86
+ sheetIndex: number;
87
+ order: number;
88
+ root: LayerNode;
89
+ anon: number;
90
+ all: IndexedRule[];
91
+ /** Adding rules to a finished index (extend): buckets that gain a rule are copied. */
92
+ extending: boolean;
93
+ constructor(index: RuleIndex, env: MediaEnvironment);
94
+ layer(parent: LayerNode, name: string): LayerNode;
95
+ /** Indexes a sheet's rules; false when the sheet does not apply (disabled, media not matching). */
96
+ sheet(sheet: CSSStyleSheet): boolean;
97
+ rules(rules: CSSRule[], layer: LayerNode, parentStyle: CSSStyleRule | null): void;
98
+ style(rule: CSSStyleRule, block: DeclBlock, layer: LayerNode): void;
99
+ /** Indexes a style rule's selectors with its declarations. */
100
+ add(compiled: CompiledSelectorList | null, block: DeclBlock, layer: LayerNode): void;
101
+ /**
102
+ * Indexes a sheet's top-level rules from `from` on (from 0: a new sheet, checked like sheet())
103
+ * into an index finish() already ranked. They hold no layers (appendableRule), so the layer
104
+ * ranks stand. Returns false for a sheet that does not apply.
105
+ */
106
+ extend(sheet: CSSStyleSheet, from: number): boolean;
107
+ /** Post-order ranks: sub-layers before their parent's own rules; unlayered (root) last. */
108
+ finish(): void;
109
+ }
60
110
  /**
61
111
  * Validates the document's style state (adopted-sheet mutations, viewport changes for media
62
112
  * rules) and returns the current `_styleVersion`.
@@ -71,6 +121,22 @@ export declare function ruleIndexFor(rs: RootStyles, doc: Document, styleVersion
71
121
  * `!important` (see uaDisplayImportant).
72
122
  */
73
123
  export declare function uaDisplay(el: NodeImpl): string;
124
+ /**
125
+ * UA style sheet subset for properties other than display
126
+ * (https://html.spec.whatwg.org/#rendering — phrasing content, links, headings, tables).
127
+ * Adapted from the HTML Standard, © WHATWG (Apple, Google, Mozilla, Microsoft), licensed under
128
+ * CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).
129
+ * Rules tested against every element must not use volatile pseudo-classes (:dir(),
130
+ * :focus-visible, ...): testing one marks the style record volatile and disables its cache.
131
+ * The bidi rules are applied on read instead (uaDirection).
132
+ */
133
+ export declare const UA_CSS = "\na[href], area[href] { color: rgb(0, 0, 238); text-decoration: underline; cursor: pointer; }\nb, strong, th, h1, h2, h3, h4, h5, h6, optgroup { font-weight: bold; }\ni, em, cite, var, dfn, address { font-style: italic; }\nh1 { font-size: 2em; } h2 { font-size: 1.5em; } h3 { font-size: 1.17em; } h5 { font-size: 0.83em; } h6 { font-size: 0.67em; }\nsmall { font-size: smaller; } big { font-size: larger; }\nsub { vertical-align: sub; font-size: smaller; } sup { vertical-align: super; font-size: smaller; }\ncode, kbd, samp, tt, pre, listing, xmp, plaintext { font-family: monospace; }\npre, listing, xmp, plaintext { white-space: pre; }\ntextarea { white-space: pre-wrap; }\nu, ins { text-decoration: underline; }\ns, strike, del { text-decoration: line-through; }\nmark { background-color: yellow; color: black; }\ncenter, th, caption { text-align: center; }\ntable { box-sizing: border-box; border-spacing: 2px; border-collapse: separate; }\nbutton, select, meter, progress { box-sizing: border-box; }\nol { list-style-type: decimal; } ul, menu, dir { list-style-type: disc; }\nnobr { white-space: nowrap; }\ncolgroup[hidden], col[hidden], thead[hidden], tbody[hidden], tfoot[hidden], tr[hidden] { visibility: collapse; }\n";
134
+ /**
135
+ * UA_CSS as [selector list, declarations] pairs, split on `}`, `{`, `;` and `:` instead of going
136
+ * through the CSS parser: the sheet has no strings, comments, nesting or at-rules, and its values
137
+ * are written already normalized (test/css/cascade.test.ts checks both against the parser).
138
+ */
139
+ export declare function uaRules(): Array<[selector: string, block: DeclBlock]>;
74
140
  export declare const PSEUDO_NONE = 0;
75
141
  export declare const PSEUDO_BEFORE = 1;
76
142
  export declare const PSEUDO_AFTER = 2;
@@ -5,7 +5,7 @@ import { DeclBlock } from "./declarations.js";
5
5
  import { CSSStyleDeclaration, type DeclarationOwnerRule } from "./CSSStyleDeclaration.js";
6
6
  import { type MediaQuery } from "./media.js";
7
7
  import { type CompiledSelectorList } from "../selectors/internal.js";
8
- import { $block, $compiled, $compiledFor, $condition, $constructed, $defaultNamespace, $disabled, $disallowModification, $doc, $href, $indexed, $keyText, $layerName, $list, $matches, $media, $name, $names, $namespaces, $owner, $ownerNode, $ownerRule, $parent, $prefix, $prelude, $queries, $rules, $selector, $sheet, $sheets, $style, $supportsText, $title, $uri, $version } from "../keys.js";
8
+ import { $block, $compiled, $compiledFor, $condition, $constructed, $defaultNamespace, $disabled, $disallowModification, $doc, $href, $indexed, $keyText, $layerName, $list, $matches, $media, $name, $names, $namespaces, $owner, $ownerNode, $ownerRule, $parent, $prefix, $prelude, $queries, $rebuildVersion, $rules, $selector, $sheet, $sheets, $style, $supportsText, $title, $uri, $version } from "../keys.js";
9
9
  /** https://drafts.csswg.org/cssom/#the-cssrulelist-interface — live view over a rule array. */
10
10
  export declare class CSSRuleList {
11
11
  [$rules]: CSSRule[];
@@ -13,8 +13,12 @@ export declare class CSSRuleList {
13
13
  constructor(rules: CSSRule[]);
14
14
  /** @internal Swap the backing array (replaceSync). */
15
15
  _setRules(rules: CSSRule[]): void;
16
- /** @internal Re-sync own indexed properties after the backing array changed. */
17
- _sync(): void;
16
+ /**
17
+ * @internal Re-sync own indexed properties after the backing array changed from index `from`
18
+ * on: emotion appends every rule through `insertRule(rule, sheet.cssRules.length)`, and
19
+ * re-syncing from 0 made a sheet of n rules cost O(n²).
20
+ */
21
+ _sync(from?: number): void;
18
22
  get length(): number;
19
23
  item(index: number): CSSRule | null;
20
24
  [Symbol.iterator](): IterableIterator<CSSRule>;
@@ -100,10 +104,18 @@ export declare class CSSStyleSheet extends StyleSheet {
100
104
  [$defaultNamespace]: string | null | undefined;
101
105
  /** Bumped on every change (rule index cache key). */
102
106
  [$version]: number;
107
+ /**
108
+ * `$version` at the last change other than appending a rule a rule index can add to itself
109
+ * (see appendableRule): cascade.ts extends its index over rules appended since, and rebuilds it
110
+ * after any other change.
111
+ */
112
+ [$rebuildVersion]: number;
103
113
  constructor(options?: CSSStyleSheetInit);
104
114
  /** @internal Create a non-constructed sheet for a <style>/<link> owner. */
105
115
  static _forOwner(owner: Element, text: string, media: string, href: string | null): CSSStyleSheet;
106
116
  _changed(): void;
117
+ /** _changed() for a rule inserted at `index`: an appended appendableRule leaves $rebuildVersion. */
118
+ _inserted(rule: CSSRule, index: number): void;
107
119
  /** Replaces all rules from stylesheet text (no @import fetching). */
108
120
  _setText(text: string): void;
109
121
  _registerNamespace(rule: CSSNamespaceRule): void;
@@ -349,6 +361,13 @@ export declare class CSSKeyframesRule extends CSSRule {
349
361
  _findIndex(select: string): number;
350
362
  get cssText(): string;
351
363
  }
364
+ /**
365
+ * Whether a rule appended at the end of a sheet can be added to a rule index already built over
366
+ * the sheet by indexing just the rule (cascade.ts extendIndex): anything but layers, @import and
367
+ * @namespace, which change the order or meaning of the rules already indexed, also nested in
368
+ * style rules, @media and @supports.
369
+ */
370
+ export declare function appendableRule(rule: CSSRule): boolean;
352
371
  /** https://drafts.csswg.org/cssom/#parse-a-css-rule + CSSOM rule construction. */
353
372
  export declare function createRule(raw: RawRule, parent: CSSRule | null, sheet: CSSStyleSheet | null, nested: boolean, inKeyframes: boolean): CSSRule | null;
354
373
  export interface CSSRuleList {
@@ -8,23 +8,36 @@ export declare class DeclBlock {
8
8
  /** Set by put()/removeOne() when they change the block (setProperty's "updated" flag). */
9
9
  dirty: boolean;
10
10
  /**
11
- * Set whenever `names` changes (not when only a value does), so the CSSStyleDeclaration's
12
- * indexed properties are re-synced only then: most style writes update a value in place.
11
+ * How many leading names are unchanged since the CSSStyleDeclaration last synced its indexed
12
+ * properties (it sets this after syncing): appends keep the prefix, so only new indices are
13
+ * written, and most style writes update a value in place and sync nothing.
13
14
  */
14
- namesChanged: boolean;
15
+ namesSynced: number;
15
16
  /**
16
17
  * The last serialization and how many leading declarations it covers, or -1 once a declaration
17
18
  * was changed in place, moved or removed since. Declarations appended after it are serialized
18
- * onto its end (see serialize()).
19
+ * onto its end (see serialize()), and a value changed in place is spliced into it (put()).
19
20
  */
20
21
  serialized: string;
21
22
  serializedCount: number;
23
+ /**
24
+ * Shorthand families (shorthandFamily bits) of the declarations `serialized` covers, or -1 when
25
+ * not computed yet (only an append with shorthand longhands needs them).
26
+ */
27
+ serializedFamilies: number;
28
+ /** Whether `serialized` has every declaration on its own, in order (no shorthand grouped). */
29
+ serializedPlain: boolean;
22
30
  constructor();
23
31
  get length(): number;
24
- indexOf(name: string): number;
32
+ indexOf(name: string, from?: number): number;
25
33
  clear(): void;
26
34
  /** Low-level set: update in place, or append. */
27
35
  put(name: string, value: string, important: boolean): void;
36
+ /**
37
+ * Replaces declaration `i`'s text in a plain `serialized` (declarations joined by one space,
38
+ * each `name: value;` or `name: value !important;`), before its value is overwritten.
39
+ */
40
+ spliceSerialized(i: number, value: string, important: boolean): void;
28
41
  /** Low-level set used while parsing a block: a later declaration moves to the end, but never overrides an important one with a normal one. */
29
42
  putParsed(name: string, value: string, important: boolean): void;
30
43
  /** Removes `name`; returns true if it was present. */
@@ -51,17 +64,27 @@ export declare class DeclBlock {
51
64
  * React writes inline styles one property at a time on mount, and every write serializes the
52
65
  * block into the style attribute (CSSStyleDeclaration._changed), so an element with N inline
53
66
  * properties serialized N(N+1)/2 declarations. When the only changes since the last call are
54
- * appended declarations, the result is the previous text followed by them: the shorthand loop
55
- * regroups earlier longhands only once every longhand of a shorthand is present, so an
56
- * appended longhand that completes an expanded shorthand falls back to the full algorithm.
67
+ * appended declarations, the result is the previous text followed by the appended declarations
68
+ * serialized on their own. The shorthand loop can only group declarations of one shorthand
69
+ * family, so that holds unless an appended longhand shares a family with an earlier
70
+ * declaration; then the whole block is serialized again.
57
71
  * bench dom/inline-style-mount (8 properties on 500 elements): 1.18 → 0.80 ms, allocation
58
- * 3.8 → 2.0 MB per iteration (Node 26.12, 11 paired samples).
72
+ * 3.8 → 2.0 MB per iteration; dom/inline-style-shorthand-mount (Base UI's visually hidden
73
+ * input, with border/padding/margin): 3.0 → 1.5 ms, 7.2 → 2.9 MB (Node 26.12, 11 paired
74
+ * samples each).
59
75
  */
60
76
  serialize(): string;
61
- /** Whether every longhand of one of `shorthands` is declared (whatever their priorities). */
62
- completesShorthand(shorthands: string[]): boolean;
63
- /** https://drafts.csswg.org/cssom/#serialize-a-css-declaration-block over the whole block (no cache). */
64
- serializeAll(): string;
77
+ /**
78
+ * serialize() after appends only: extends `serialized` with the declarations from `from` on,
79
+ * unless one of them shares a shorthand family with an earlier declaration (returns false).
80
+ */
81
+ serializeAppended(from: number): boolean;
82
+ /**
83
+ * https://drafts.csswg.org/cssom/#serialize-a-css-declaration-block over the declarations from
84
+ * `from` on, as if they were the whole block (no cache). serialize() passes a `from` past 0 only
85
+ * when no shorthand family has declarations on both sides of it.
86
+ */
87
+ serializeAll(from?: number): string;
65
88
  }
66
89
  /** Parses a style attribute / declaration list into a fresh block. */
67
90
  export declare function parseDeclBlock(text: string): DeclBlock;
@@ -1,6 +1,8 @@
1
1
  import { type Comp } from "./values.js";
2
2
  /** Expanded shorthand → longhands (in serialization order). */
3
3
  export declare const SHORTHANDS: Map<string, string[]>;
4
+ /** The bit of the expanded-shorthand family `longhand` belongs to, 0 if none. */
5
+ export declare function shorthandFamily(longhand: string): number;
4
6
  export declare function isExpandedShorthand(name: string): boolean;
5
7
  export declare function longhandsOf(name: string): string[] | undefined;
6
8
  /** Shorthands that contain `longhand`, in preferred (largest-first) order. */
@@ -68,8 +68,6 @@ export declare function rootStylesFor(root: NodeImpl, create: boolean): RootStyl
68
68
  export declare function treeTop(n: NodeImpl): NodeImpl;
69
69
  /** Is `top` a tree root whose sheets apply (a document, or a shadow root)? */
70
70
  export declare function isStyleRoot(top: NodeImpl): boolean;
71
- /** Negative if a precedes b in tree order. */
72
- export declare function compareTreeOrder(a: NodeImpl, b: NodeImpl): number;
73
71
  /** Registers a new owner sheet (from a connected <style>/<link>) with its tree. */
74
72
  export declare function registerOwnerSheet(owner: NodeImpl, sheet: CSSStyleSheet): void;
75
73
  /** Removes an owner sheet (element disconnected, emptied or retyped). */
@@ -83,6 +83,20 @@ export declare function containsVar(value: string): boolean;
83
83
  * custom property).
84
84
  */
85
85
  export declare function normalizeLonghand(name: string, value: string): string | null;
86
+ /**
87
+ * normalizeLonghand's memo misses for the values React and floating-ui write most: one canonical
88
+ * number, percentage or dimension (`12px`, `0.5`, `-50%`) or one lowercase ASCII keyword
89
+ * (`absolute`, `inline-block`), checked against the property's grammar the way
90
+ * normalizeComponent does, without tokenizing the value. A canonical number is one formatNumber
91
+ * prints back unchanged: no `+`, no leading or trailing zeros, at most 15 digits, not below 1e-6
92
+ * and not -0. Undefined means "take the full path"; the value is otherwise the result (or "0px"
93
+ * for a bare 0 where only lengths are allowed). Base UI's interaction tests spent 61 ms in
94
+ * normalizing values the memo had not seen, which each worker starts without, and a positioned
95
+ * element's changing left/top miss it on every write.
96
+ */
97
+ export declare function fastLonghand(name: string, value: string): string | undefined;
98
+ /** The full path of normalizeLonghand (tokenize, then match the grammar); exported for tests. */
99
+ export declare function normalizeLonghandValue(name: string, value: string): string | null;
86
100
  /** Matches a component list against a (possibly repeated) grammar. */
87
101
  export declare function normalizeComps(comps: Comp[], g: Grammar): string | null;
88
102
  /** Custom property values are kept verbatim (trimmed) — https://drafts.csswg.org/css-variables-2/#serializing-custom-props */
@@ -2,10 +2,16 @@ import { HTMLElement } from "../HTMLElement.js";
2
2
  import type { Element } from "../../nodes/Element.js";
3
3
  import type { NodeImpl } from "../../nodes/NodeImpl.js";
4
4
  import type { Event } from "../../events/Event.js";
5
+ import type { Document } from "../../nodes/Document.js";
5
6
  /** https://html.spec.whatwg.org/#interactive-content */
6
7
  export declare function isInteractiveContent(el: NodeImpl): boolean;
7
8
  export declare class HTMLLabelElement extends HTMLElement {
8
9
  htmlFor: string;
10
+ /** @internal Use Document.createElement. */
11
+ constructor(doc: Document, localName: string, ns: string | null, prefix: string | null);
12
+ _connectedSteps(): void;
13
+ _disconnectedSteps(): void;
14
+ _attributeChangedSteps(localName: string, oldValue: string | null, value: string | null, namespace: string | null): void;
9
15
  /** https://html.spec.whatwg.org/#dom-label-control */
10
16
  get control(): Element | null;
11
17
  /** https://html.spec.whatwg.org/#dom-label-form */
@@ -23,6 +23,13 @@ export declare function formOwner(el: NodeImpl): NodeImpl | null;
23
23
  export declare function parserAssociateForm(el: NodeImpl, form: NodeImpl): void;
24
24
  /** The element's ancestor chain changed (https://html.spec.whatwg.org/#reset-the-form-owner): drop the association. */
25
25
  export declare function clearParserAssociation(el: NodeImpl): void;
26
+ /**
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.
31
+ */
32
+ export declare function formOwnerScope(form: NodeImpl, listed: boolean): NodeImpl;
26
33
  /** All listed elements (excluding image buttons) whose form owner is `form`, in tree order: form.elements. */
27
34
  export declare function formControls(form: NodeImpl, out: NodeImpl[], includeImages: boolean): NodeImpl[];
28
35
  /** First legend element child of a fieldset. */
@@ -42,5 +49,9 @@ export declare function isActuallyDisabled(el: NodeImpl): boolean;
42
49
  export declare function hasDatalistAncestor(el: NodeImpl): boolean;
43
50
  /** https://html.spec.whatwg.org/#labeled-control */
44
51
  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;
45
56
  /** Label elements whose labeled control is `el`, in tree order. https://html.spec.whatwg.org/#dom-lfe-labels */
46
57
  export declare function labelsFor(el: NodeImpl, out: NodeImpl[]): NodeImpl[];
@@ -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, } from "./nodes/traverse.js";
8
+ export { nextInTree, nextSkippingChildren, previousInTree, nextElementInTree, firstElementChild, lastElementChild, nextElementSibling, previousElementSibling, treeRoot, isInclusiveAncestor, indexOf, childAt, compareTreeOrder, } 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";
@@ -17,7 +17,7 @@ export { windowInterfaces } from "./window/Window.js";
17
17
  export { captureInterfaceBaseline, guardInterfaceDefinitions, restoreInterfaces } from "./window/isolation.js";
18
18
  export { COMPAT, COMPAT_PROFILES, DEFAULT_COMPAT, compatExposes, deferredCompatMembers, hiddenGlobals, resolveCompat, type CompatEntry, type CompatProfile, } from "./window/compat.js";
19
19
  export { trackGlobalTimers } from "./window/timers.js";
20
- export { VirtualClock, VirtualTimeout, installClock, clockNow, clockStats, foreignImmediatesPending, skipIdleTime, virtualDate, virtualPerformance, type InstalledClock, type VirtualClockOptions, } from "./window/clock.js";
20
+ export { VirtualClock, VirtualTimeout, installClock, clockNow, clockStats, canSkipZeroDelayWait, foreignImmediatesPending, isClockTimer, skipIdleTime, skipZeroDelayWait, virtualDate, virtualPerformance, type InstalledClock, type VirtualClockOptions, } from "./window/clock.js";
21
21
  export { FAILURE_CHANNEL, SPAN_CHANNEL, describeCall, describeNode, quote, setFailureSnapshot, setNodeDescriber, spanChannel, subscribeTestFailures, tracePromise, traceSync, tracing, type SpanContext, } from "./trace.js";
22
22
  export { dispatch, getCurrentEvent, retarget, nodeGetTheParent, setAssignedSlotLookup } from "./events/dispatch.js";
23
23
  export { fireAnEvent, dispatchTrusted, fireSyntheticPointerEvent } from "./events/fire.js";
@@ -70,6 +70,7 @@ export declare const $filter: unique symbol;
70
70
  export declare const $firingSubmissionEvents: unique symbol;
71
71
  export declare const $focused: unique symbol;
72
72
  export declare const $form: unique symbol;
73
+ export declare const $forLabels: unique symbol;
73
74
  export declare const $forms: unique symbol;
74
75
  export declare const $frameCallbacks: unique symbol;
75
76
  export declare const $frameElement: unique symbol;
@@ -142,6 +143,7 @@ export declare const $ranges: unique symbol;
142
143
  export declare const $rawValue: unique symbol;
143
144
  export declare const $readonly: unique symbol;
144
145
  export declare const $readyState: unique symbol;
146
+ export declare const $rebuildVersion: unique symbol;
145
147
  export declare const $record: unique symbol;
146
148
  export declare const $records: unique symbol;
147
149
  export declare const $rects: unique symbol;
@@ -14,7 +14,7 @@ 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, $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, $ranges, $selection, $styleVersion, $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;
@@ -40,11 +40,17 @@ export declare class Document extends Node {
40
40
  /** Live ranges whose boundary points are in this document (traversal/live.ts); null when none. */
41
41
  [$ranges]: WeakRef<object>[] | null;
42
42
  /**
43
- * Derived per-document caches (selector results, label index, ...) keyed by owner token; see
43
+ * Derived per-document caches (selector results, snapshot holders, ...) keyed by owner token; see
44
44
  * nodes/derived.ts. Dropped whenever a node is removed from a tree of this document, so caches
45
45
  * never keep removed subtrees alive.
46
46
  */
47
47
  [$derived]: Map<object, unknown> | null;
48
+ /**
49
+ * Connected <label> elements by `for` attribute value, each list in no particular order, or null
50
+ * before the first (html/forms/HTMLLabelElement.ts). Lets `element.labels` find the labels naming
51
+ * an ID without walking the tree.
52
+ */
53
+ [$forLabels]: Map<string, NodeImpl[]> | null;
48
54
  /** document.forms (named-properties proxy), created on first read. */
49
55
  [$forms]: HTMLCollection | null;
50
56
  /** https://html.spec.whatwg.org/#concept-document-about-base-url (about:blank / about:srcdoc documents of nested browsing contexts). */
@@ -111,6 +111,12 @@ 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;
114
120
  /** Runs when this element becomes connected. Only called when F_CONNECT_HOOK is set. */
115
121
  _connectedSteps(): void;
116
122
  /** Runs when this element becomes disconnected. Only called when F_CONNECT_HOOK is set. */
@@ -12,7 +12,11 @@ export declare function findAttributeByName(el: NodeImpl, qualifiedName: string)
12
12
  export declare function findAttributeByNamespace(el: NodeImpl, ns: string | null, localName: string): AttrRecord | null;
13
13
  /** getAttribute(qualifiedName). Lowercases for HTML elements in HTML documents. */
14
14
  export declare function getAttribute(el: NodeImpl, qualifiedName: string): string | null;
15
- /** F_ARIA_ATTRS / F_DATA_ATTRS for an attribute local name starting with `aria-` / `data-`, else 0. */
15
+ /**
16
+ * The presence bit an attribute local name sets on its element: F_ARIA_ATTRS / F_DATA_ATTRS for
17
+ * names starting with `aria-` / `data-`, F_TABINDEX_ATTR, F_CONTENTEDITABLE_ATTR or F_INERT_ATTR
18
+ * for those names, else 0.
19
+ */
16
20
  export declare function prefixFlag(localName: string): number;
17
21
  /**
18
22
  * Hot-path read for internal callers that pass an already-lowercase, no-namespace name
@@ -58,3 +58,12 @@ export declare const F_FACE: number;
58
58
  export declare const F_ARIA_ATTRS: number;
59
59
  /** Same for `data-*` attributes (Testing Library's *ByTestId). */
60
60
  export declare const F_DATA_ATTRS: number;
61
+ /**
62
+ * Element has a `tabindex` / `contenteditable` / `inert` attribute (any namespace), kept like
63
+ * F_ARIA_ATTRS. Focus code reads `tabIndex` on every candidate of a tabbable scan, and most
64
+ * elements have none of these: in Base UI's interaction tests the attribute scans behind them
65
+ * were ~140 ms.
66
+ */
67
+ export declare const F_TABINDEX_ATTR: number;
68
+ export declare const F_CONTENTEDITABLE_ATTR: number;
69
+ export declare const F_INERT_ATTR: number;
@@ -19,3 +19,5 @@ export declare function isInclusiveAncestor(a: NodeImpl, b: NodeImpl): boolean;
19
19
  export declare function indexOf(n: NodeImpl): number;
20
20
  /** Child at `index`, walking from whichever end is closer. */
21
21
  export declare function childAt(parent: NodeImpl, index: number): NodeImpl | null;
22
+ /** Negative if a precedes b in tree order (https://dom.spec.whatwg.org/#concept-tree-order). */
23
+ export declare function compareTreeOrder(a: NodeImpl, b: NodeImpl): number;
@@ -3,6 +3,16 @@ import type { MutationObserver, MutationObserverInit } from "./MutationObserver.
3
3
  /** Number of MutationObservers with at least one (non-transient) registration. */
4
4
  export declare let activeObservers: number;
5
5
  export declare function setActiveObservers(n: number): void;
6
+ /**
7
+ * Number of non-transient registrations with `subtree` (a transient one exists only while its
8
+ * source does: disconnect() and re-observing remove it). With none, a mutation can interest only
9
+ * observers registered on its target and a removal adds no transient observers, so neither walks
10
+ * the target's ancestors. Base UI keeps childList- and attribute-only observers connected while
11
+ * its lists are mounted, and every removal anywhere walked to the root: 145 ms in the
12
+ * `interactions` preset's profiles, plus 53 ms in queueMutationRecord.
13
+ */
14
+ export declare let subtreeObservers: number;
15
+ export declare function setSubtreeObservers(n: number): void;
6
16
  /** https://dom.spec.whatwg.org/#registered-observer (and transient registered observer when `source` is set). */
7
17
  export declare class RegisteredObserver {
8
18
  observer: MutationObserver;