@ctrl/dom 0.3.10 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -105
- package/dist/aria/_chunks/{aria-query.generated-BivoZ-ec.js → aria-query.generated-BG-n1PE9.js} +2 -2
- package/dist/aria/_chunks/{aria-query.generated-CeGmXXFh.cjs → aria-query.generated-BqD80bJk.cjs} +1 -1
- package/dist/aria/index.cjs +1 -1
- package/dist/aria/index.js +1 -1
- package/dist/aria/internal.cjs +1 -1
- package/dist/aria/internal.js +1 -1
- package/dist/aria/types/forms.d.ts +0 -2
- package/dist/bridge/internal.js +1 -1
- package/dist/dom/_chunks/src-B3vkUXY6.js +50 -0
- package/dist/dom/index.js +1 -1
- package/dist/dom/internal.js +1 -1
- package/dist/dom/types/css/cascade.d.ts +0 -2
- package/dist/dom/types/css/media.d.ts +0 -2
- package/dist/dom/types/css/parser.d.ts +0 -2
- package/dist/dom/types/css/properties.d.ts +0 -2
- package/dist/dom/types/css/shorthands.d.ts +0 -2
- package/dist/dom/types/css/values.d.ts +0 -1
- package/dist/dom/types/html/focus.d.ts +0 -2
- package/dist/dom/types/html/forms/HTMLOptionElement.d.ts +8 -0
- package/dist/dom/types/html/forms/HTMLSelectElement.d.ts +19 -2
- package/dist/dom/types/html/forms/collections.d.ts +12 -1
- package/dist/dom/types/html/forms/control-state.d.ts +5 -0
- package/dist/dom/types/html/forms/form-associated.d.ts +4 -2
- package/dist/dom/types/html/forms/index.d.ts +1 -2
- package/dist/dom/types/html/forms/microsyntaxes.d.ts +0 -3
- package/dist/dom/types/html/forms/state.d.ts +0 -1
- package/dist/dom/types/html/reflect.d.ts +0 -4
- package/dist/dom/types/html/resources.d.ts +0 -2
- package/dist/dom/types/html/shared.d.ts +0 -2
- package/dist/dom/types/html/template.d.ts +0 -3
- package/dist/dom/types/keys.d.ts +16 -0
- package/dist/dom/types/nodes/Document.d.ts +10 -3
- package/dist/dom/types/nodes/attributes.d.ts +3 -0
- package/dist/dom/types/parser/index.d.ts +1 -1
- package/dist/dom/types/parser/tokenizer.d.ts +0 -2
- package/dist/dom/types/selectors/compile.d.ts +0 -2
- package/dist/dom/types/selectors/index.d.ts +0 -4
- package/dist/dom/types/selectors/internal.d.ts +3 -6
- package/dist/dom/types/selectors/parser.d.ts +0 -5
- package/dist/dom/types/selectors/state.d.ts +0 -5
- package/dist/dom/types/serializer/index.d.ts +0 -2
- package/dist/dom/types/traversal/live.d.ts +6 -2
- package/dist/dom/types/{events/convert.d.ts → webidl-convert.d.ts} +0 -2
- package/dist/dom/types/window/devtools-console.d.ts +2 -0
- package/dist/dom/types/window/shared-accessors.d.ts +9 -0
- package/dist/jest-dom/_chunks/matchers-DGsBvtWC.js +1 -1
- package/dist/react/_chunks/pure-0apusBJy.cjs +1 -0
- package/dist/react/_chunks/pure-CRYsLxrp.js +1 -0
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/pure.cjs +1 -1
- package/dist/react/pure.js +1 -1
- package/dist/react/types/config.d.ts +3 -1
- package/dist/react/types/fire-event.d.ts +1 -1
- package/dist/react/types/pure.d.ts +2 -2
- package/dist/testing-library/_chunks/aria-snapshot-diff-BSXxnyqJ.js +1 -1
- package/dist/testing-library/agent.js +1 -1
- package/dist/testing-library/index.js +1 -1
- package/dist/user-event/index.cjs +4 -4
- package/dist/user-event/index.js +4 -4
- package/dist/user-event/types/ctrl-dom.d.ts +0 -13
- package/dist/user-event/types/event/selection/selectBoundaries.d.ts +2 -0
- package/dist/user-event/types/setup/dtl.d.ts +0 -2
- package/dist/user-event/types/utility/upload.d.ts +1 -4
- package/dist/vitest-environment/failure-snapshot.js +1 -1
- package/dist/vitest-environment/plugin.js +1 -1
- package/dist/vitest-environment/types/warm-forks.d.ts +0 -7
- package/package.json +2 -3
- package/dist/dom/_chunks/src-BXKOjfbH.js +0 -50
- package/dist/react/_chunks/pure-BzGfHsO2.js +0 -1
- package/dist/react/_chunks/pure-DvYA3m08.cjs +0 -1
- package/dist/react/types/dtl.d.ts +0 -1
package/dist/dom/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{
|
|
1
|
+
export{Pr as AbstractRange,Ss as AnimationEvent,za as Attr,sn as Audio,Cs as BeforeUnloadEvent,Ja as CDATASection,t as CSS,mi as CSSConditionRule,hi as CSSContainerRule,gi as CSSFontFaceRule,_i as CSSGroupingRule,vi as CSSImportRule,yi as CSSKeyframeRule,bi as CSSKeyframesRule,xi as CSSLayerBlockRule,Si as CSSLayerStatementRule,Ci as CSSMediaRule,wi as CSSNamespaceRule,Ti as CSSNestedDeclarations,Ei as CSSPageRule,Di as CSSPropertyRule,Oi as CSSRule,ki as CSSRuleList,Ai as CSSScopeRule,ji as CSSStartingStyleRule,oa as CSSStyleDeclaration,Mi as CSSStyleRule,Ni as CSSStyleSheet,Pi as CSSSupportsRule,Ya as CharacterData,yr as Clipboard,Rs as ClipboardEvent,br as ClipboardItem,ws as CloseEvent,zr as CommandEvent,Xa as Comment,zs as CompositionEvent,_a as CustomElementRegistry,Ts as CustomEvent,ar as CustomStateSet,Er as DOMImplementation,Ea as DOMMatrix,Ea as WebKitCSSMatrix,Da as DOMMatrixReadOnly,wr as DOMParser,Oa as DOMPoint,ka as DOMPointReadOnly,O as DOMQuad,Aa as DOMRect,Aa as SVGRect,ja as DOMRectList,Ma as DOMRectReadOnly,Ba as DOMStringMap,Va as DOMTokenList,T as DataTransfer,E as DataTransferItem,D as DataTransferItemList,Dr as Document,Dr as HTMLDocument,qa as DocumentFragment,Ka as DocumentType,Bs as DragEvent,xa as Element,or as ElementInternals,Es as ErrorEvent,sc as Event,us as EventTarget,ot as FileList,P as FileReader,Vs as FocusEvent,V as FormData,Ds as FormDataEvent,pn as HTMLAnchorElement,mn as HTMLAreaElement,cn as HTMLAudioElement,hn as HTMLBRElement,gn as HTMLBaseElement,_n as HTMLBodyElement,Z as HTMLButtonElement,vn as HTMLCanvasElement,$a as HTMLCollection,yn as HTMLDListElement,bn as HTMLDataElement,W as HTMLDataListElement,an as HTMLDetailsElement,on as HTMLDialogElement,xn as HTMLDirectoryElement,Sn as HTMLDivElement,sr as HTMLElement,Cn as HTMLEmbedElement,J as HTMLFieldSetElement,wn as HTMLFontElement,fa as HTMLFormControlsCollection,U as HTMLFormElement,Tn as HTMLFrameElement,En as HTMLFrameSetElement,Dn as HTMLHRElement,On as HTMLHeadElement,kn as HTMLHeadingElement,An as HTMLHtmlElement,jn as HTMLIFrameElement,Mn as HTMLImageElement,it as HTMLInputElement,Nn as HTMLLIElement,X as HTMLLabelElement,Y as HTMLLegendElement,$t as HTMLLinkElement,Pn as HTMLMapElement,Fn as HTMLMarqueeElement,ln as HTMLMediaElement,In as HTMLMenuElement,Ln as HTMLMetaElement,G as HTMLMeterElement,Rn as HTMLModElement,zn as HTMLOListElement,Bn as HTMLObjectElement,$ as HTMLOptGroupElement,et as HTMLOptionElement,pa as HTMLOptionsCollection,K as HTMLOutputElement,Vn as HTMLParagraphElement,Hn as HTMLParamElement,Un as HTMLPictureElement,Wn as HTMLPreElement,q as HTMLProgressElement,Gn as HTMLQuoteElement,en as HTMLScriptElement,Q as HTMLSelectElement,rn as HTMLSlotElement,Kn as HTMLSourceElement,qn as HTMLSpanElement,tn as HTMLStyleElement,Jn as HTMLTableCaptionElement,Yn as HTMLTableCellElement,Xn as HTMLTableColElement,Zn as HTMLTableElement,Qn as HTMLTableRowElement,$n as HTMLTableSectionElement,in as HTMLTemplateElement,rt as HTMLTextAreaElement,er as HTMLTimeElement,nn as HTMLTitleElement,tr as HTMLTrackElement,nr as HTMLUListElement,rr as HTMLUnknownElement,un as HTMLVideoElement,Os as HashChangeEvent,Sr as History,ir as Image,Hs as InputEvent,j as IntersectionObserver,M as IntersectionObserverEntry,Us as KeyboardEvent,Cr as Location,ct as MathMLElement,dn as MediaError,Fi as MediaList,li as MediaQueryList,fi as MediaQueryListEvent,ks as MessageEvent,Ws as MouseEvent,w as MutationObserver,Ko as MutationRecord,La as NamedNodeMap,xr as Navigator,lo as Node,jr as NodeFilter,Mr as NodeIterator,qo as NodeList,tt as Option,As as PageTransitionEvent,Gs as PointerEvent,js as PopStateEvent,Za as ProcessingInstruction,Ms as ProgressEvent,Ns as PromiseRejectionEvent,ma as RadioNodeList,Fr as Range,N as ResizeObserver,k as ResizeObserverEntry,A as ResizeObserverSize,lt as SVGAElement,Yt as SVGAnimatedPreserveAspectRatio,Xt as SVGAnimatedRect,ut as SVGAnimatedString,dt as SVGCircleElement,ft as SVGClipPathElement,pt as SVGDefsElement,mt as SVGDescElement,ht as SVGElement,gt as SVGEllipseElement,_t as SVGFilterElement,vt as SVGForeignObjectElement,yt as SVGGElement,bt as SVGGeometryElement,xt as SVGGradientElement,St as SVGGraphicsElement,Ct as SVGImageElement,wt as SVGLineElement,Tt as SVGLinearGradientElement,Et as SVGMarkerElement,Dt as SVGMaskElement,Ot as SVGMetadataElement,Zt as SVGNumber,kt as SVGPathElement,At as SVGPatternElement,jt as SVGPolygonElement,Mt as SVGPolylineElement,Qt as SVGPreserveAspectRatio,Nt as SVGRadialGradientElement,Pt as SVGRectElement,Ft as SVGSVGElement,It as SVGScriptElement,Lt as SVGStopElement,Rt as SVGStyleElement,zt as SVGSwitchElement,Bt as SVGSymbolElement,Vt as SVGTSpanElement,Ht as SVGTextContentElement,Ut as SVGTextElement,Wt as SVGTextPathElement,Gt as SVGTextPositioningElement,Kt as SVGTitleElement,qt as SVGUseElement,Jt as SVGViewElement,_r as Screen,Ar as Selection,Ha as ShadowRoot,Ir as StaticRange,gr as Storage,Ps as StorageEvent,Ii as StyleSheet,Li as StyleSheetList,Fs as SubmitEvent,Qa as Text,Ks as TextEvent,fn as TimeRanges,Is as ToggleEvent,qs as Touch,Js as TouchEvent,Ys as TouchList,Ls as TransitionEvent,Nr as TreeWalker,Xs as UIEvent,da as ValidityState,vr as VisualViewport,Zs as WheelEvent,dr as Window,Or as XMLDocument,F as XMLHttpRequest,I as XMLHttpRequestEventTarget,L as XMLHttpRequestUpload,Tr as XMLSerializer,fr as createWindow,vs as currentDocument,ys as currentWindow,bs as currentWindowOrNull,Jr as getComputedStyle,R as installGlobals,xs as setCurrentWindow}from"./_chunks/src-B3vkUXY6.js";
|
package/dist/dom/internal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,$a as t,$c as n,$d as r,$f as i,$i as a,$l as o,$o as s,$r as c,$s as ee,$u as te,Ac as l,Ad as u,Af as ne,Al as d,Ao as re,Au as ie,B as ae,Bc as oe,Bd as se,Bf as ce,Bi as le,Bl as ue,Bo as f,Br as de,Bu as fe,C as pe,Ca as me,Cc as he,Cd as ge,Cf as _e,Cl as ve,Co as ye,Cu as be,Dc as xe,Dd as Se,Df as Ce,Dl as we,Do as Te,Dr as Ee,Du as De,Ec as Oe,Ed as ke,Ef as Ae,El as je,Eo as Me,Eu as p,Fc as m,Fd as h,Ff as g,Fl as _,Fo as v,Fr as y,Fu as b,Gc as x,Gd as Ne,Gf as Pe,Gi as Fe,Gl as Ie,Go as Le,Gr as Re,Gu as ze,Ha as Be,Hc as Ve,Hd as He,Hf as Ue,Hi as We,Hl as Ge,Ho as S,Hr as Ke,Hu as qe,Ia as Je,Ic as Ye,Id as Xe,If as Ze,Ii as Qe,Il as $e,Io as et,Ir as tt,Iu as nt,Jc as rt,Jd as it,Jf as at,Ji as ot,Jl as C,Jo as st,Jr as ct,Ju as w,Kc as lt,Kd as ut,Kf as dt,Ki as ft,Kl as T,Ko as pt,Kr as mt,Ku as ht,Lc as gt,Ld as _t,Lf as vt,Li as yt,Ll as bt,Lo as E,Lu as xt,Ma as St,Mc as Ct,Md as wt,Mf as Tt,Ml as Et,Mo as Dt,Mu as Ot,Na as kt,Nc as At,Nd as jt,Nf as Mt,Nl as D,No as Nt,Nu as Pt,Oc as Ft,Od as It,Of as Lt,Ol as Rt,Oo as zt,Ou as Bt,Pa as Vt,Pc as Ht,Pd as Ut,Pf as Wt,Pl as Gt,Po as Kt,Pu as qt,Qa as Jt,Qc as Yt,Qd as O,Qf as Xt,Qi as Zt,Ql as Qt,Qo as $t,Qr as en,Qs as tn,Qu as nn,Rc as rn,Rd as an,Rf as on,Ri as sn,Rl as cn,Ro as ln,Rr as un,Ru as dn,S as fn,Sa as pn,Sc as mn,Sd as hn,Sf as gn,Sl as _n,So as vn,Su as yn,Tc as bn,Td as xn,Tf as Sn,Tl as Cn,To as wn,Tu as Tn,Ua as En,Uc as Dn,Ud as On,Uf as kn,Ui as An,Ul as k,Uo as jn,Ur as Mn,Uu as Nn,Va as Pn,Vc as A,Vd as Fn,Vf as In,Vi as Ln,Vl as Rn,Vo as j,Vr as zn,Vu as Bn,Wc as Vn,Wd as Hn,Wf as Un,Wi as Wn,Wl as Gn,Wr as Kn,Wu as qn,Xc as Jn,Xd as Yn,Xf as Xn,Xi as Zn,Xl as Qn,Xo as $n,Xr as er,Xs as M,Xu as tr,Yc as nr,Yd as rr,Yf as ir,Yi as ar,Yl as or,Yo as sr,Yr as cr,Yu as lr,Za as ur,Zc as dr,Zd as fr,Zf as pr,Zi as mr,Zl as hr,Zo as gr,Zr as _r,Zs as vr,Zu as yr,_ as br,_a as xr,_c as Sr,_d as Cr,_f as wr,_l as Tr,_o as Er,_u as Dr,a as Or,aa as kr,ad as Ar,af as jr,ai as Mr,al as Nr,ao as Pr,as as Fr,at as N,au as Ir,b as Lr,ba as Rr,bc as zr,bd as Br,bf as Vr,bl as Hr,bo as Ur,bu as Wr,c as Gr,ca as Kr,cc as qr,cd as Jr,cf as Yr,ci as Xr,cl as Zr,co as Qr,cr as $r,cu as ei,d as ti,dc as ni,dd as ri,df as ii,di as ai,dl as oi,do as si,dr as P,ds as ci,du as li,ea as F,ec as ui,ed as di,ef as fi,ei as pi,el as mi,eo as hi,ep as gi,es as _i,eu as vi,f as yi,fc as bi,fd as xi,ff as Si,fl as Ci,fo as wi,fr as Ti,fs as Ei,fu as Di,g as Oi,ga as ki,gc as Ai,gd as ji,gf as Mi,gl as Ni,go as Pi,gu as Fi,h as Ii,hc as Li,hd as Ri,hf as zi,hl as I,ho as Bi,hs as Vi,hu as Hi,i as Ui,ic as Wi,id as Gi,if as Ki,ii as qi,il as Ji,io as Yi,is as Xi,iu as Zi,ja as Qi,jc as $i,jd as ea,jf as ta,jl as na,jo as ra,ju as ia,kc as aa,kd as oa,kf as sa,kl as ca,ko as la,ku as ua,l as da,lc as fa,ld as pa,lf as ma,li as ha,ll as ga,lo as _a,lr as L,ls as va,lu as ya,m as R,ma as ba,mc as xa,md as Sa,mf as Ca,ml as wa,mo as Ta,ms as Ea,mu as Da,n as Oa,na as ka,nc as Aa,nd as ja,nf as Ma,ni as Na,nl as Pa,no as Fa,np as Ia,ns as La,nu as Ra,o as za,oa as Ba,oc as Va,od as Ha,of as Ua,oi as Wa,ol as z,oo as Ga,or as Ka,os as qa,ou as Ja,p as Ya,pa as Xa,pc as Za,pd as Qa,pf as $a,pl as eo,po as to,pr as no,ps 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,qu as po,r as mo,ra as ho,rc as go,rd as _o,rf as vo,ri as yo,rl as bo,ro as xo,rp as So,rs as Co,rt as wo,ru as To,s as Eo,sa as Do,sc as Oo,sd as ko,sf as Ao,sl as jo,sr as Mo,ss as No,su as Po,ta as Fo,tc as Io,td as Lo,tf as Ro,ti as zo,tl as Bo,to as Vo,tp as Ho,ts as Uo,tu as Wo,u as Go,uc as Ko,ud as qo,uf as Jo,ul as Yo,uo as Xo,us as Zo,uu as Qo,v as $o,va as es,vc as ts,vd as ns,vf as rs,vl as is,vo as as,vs as B,vu as os,wc as ss,wd as cs,wf as ls,wl as us,wo as ds,wu as fs,x as ps,xa as ms,xc as hs,xd as gs,xf as _s,xl as vs,xo as ys,xu as bs,y as xs,yc as Ss,yd as V,yf as Cs,yl as ws,yo as Ts,yu as Es,zc as Ds,zd as Os,zf as ks,zi as As,zl as js,zo as Ms,zr as Ns,zu as Ps}from"./_chunks/src-BXKOjfbH.js";import{constants as Fs,createContext as Is,runInContext as Ls}from"node:vm";import*as H from"node:diagnostics_channel";let U=null;function targets(){let e=/* @__PURE__ */ new Set,t=P();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(L.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 W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Rs=null;function ownObjectCreateMaps(){if(U===null)return;let e=Rs??=Ls(`(prototypes) => prototypes.map((p) => Object.create(p))`,Is(Fs.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[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=W;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(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[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 G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=O();return K.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=O();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=O()-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[T]!==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 q=null;function setNodeDescriber(e){q=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(q!==null)try{let t=q(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 J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,i=e();if(i==null||n.document!==i)return;let a=r();if(a!==null&&(n.contexts.clock={skipped_ms:Math.round(a.skippedMs),pending_timers:a.pendingTimers}),Y!==null&&i.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(i.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=B();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=B(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}Yn(),Ti(e);let n=e[V];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[d]=null,e[w]=null,e[D]=null,e[k]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[x]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[I]=[{url:a,state:null}],o[C]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[T]??e}function isTypingType(e){return f(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===M.input?isTypingType(E(t))&&R(t):t.tag===M.textarea?R(t):Mn(t)}function supportsSelection(e){let t=implOf(e);return t.tag===M.textarea||t.tag===M.input&&j(E(t))}function hasUIValue(e){let t=implOf(e);return t.tag===M.textarea||t.tag===M.input&&S(E(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===M.input){let e=t.node;return e[A].uiValue??e.value}return t.tag===M.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===M.input){let e=n.node,r=E(n);if(S(r)!==0)return;let i=wo(r,t,n);n.doc[h]++,e[A].value=i,e[A].dirtyValue=!0,e[A].userEdited=!0,e[A].uiValue=i===t?null:t,e[A].badInput=i===``&&t!==``&&r!==5&&!f(r);let a=t.length;e[A].selStart>a&&(e[A].selStart=a),e[A].selEnd>a&&(e[A].selEnd=a)}else if(n.tag===M.textarea){let e=n.node;n.doc[h]++,e[A].value=ba(t),e[A].dirtyValue=!0,e[A].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===M.input){let e=t.node;e[A].uiValue=null,e[A].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[A].selStart,n),end:Math.min(t[A].selEnd,n),direction:t[A].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==M.input&&i.tag!==M.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].selStart=s,a[A].selEnd=c,a[A].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===M.input&&E(n)===17&&(n.doc[h]++,n.node[A].files=N(t))}function setOptionSelectedFromUI(t,n){let r=implOf(t);if(r.tag!==M.option)return;let i=r.node;i._setSelectedness(n),i[z]=!0;let a=e(r);if(a!==null){let e=a.node;n&&e._deselectOthers(r),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===M.input&&n.node._setCheckedness(t,!0)}const zs=L.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===zs||typeof n!=`function`||ae.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{qr as $_proto__,fa as $aboutBase,Ko as $active,ni as $assocGen,bi as $attr,Za as $attributes,xa as $availableToElementInternals,Li as $baseFor,Ai as $baseOverride,Sr as $baseURL,ts as $baseVersion,Ss as $benign,zr as $block,hs as $blockParsed,mn as $blockText,he as $byCtor,ss as $byName,bn as $cache,Oe as $callback,xe as $childNodes,Ft as $childWindows,aa as $children,l as $classList,$i as $clipboard,Ct as $clonable,At as $closed,Ht as $coll,m as $compiled,Ye as $compiledFor,gt as $condition,rn as $constructed,Ds as $constructingEntryList,oe as $contentType,A as $control,Ve as $controlsCache,Dn as $controlsDoc,Vn as $controlsVersion,x as $cookieJar,lt as $cookies,ao as $css,rt as $current,nr as $customElements,Jn as $customValidity,dr as $cx,Yt as $data,n as $dataset,mi as $declarative,Bo as $defaultNamespace,Pa as $defaultValueOverride,bo as $delegatesFocus,Ji as $derived,Nr as $devicePixelRatio,z as $dirtiness,jo as $disabled,Zr as $disallowModification,ga as $doc,Yo as $dropEffect,oi as $ec,Ci as $effectAllowed,eo as $el,wa as $elements,I as $entries,Ni as $eo,Tr as $error,is as $externalFormNames,ws as $file,Hr as $files,vs as $fill,_n as $filter,ve as $firingSubmissionEvents,us as $focused,Cn as $forLabels,je as $form,we as $formAttrSeen,Rt as $formControlsVersion,ca as $forms,d as $frameCallbacks,na as $frameElement,Et as $frameId,D as $frameTask,Gt as $frameTime,_ as $generation,$e as $globalObject,bt as $height,cn as $history,js as $home,ue as $host,Rn as $href,Ge as $id,k as $idleCallbacks,Gn as $idleId,Ie as $ids,T as $impl,lo as $implementation,C as $index,or as $indexed,Qn as $inflight,hr as $info,Qt as $innerHeight,o as $innerWidth,vi as $isHTML,Wo as $items,Ra as $keyText,To as $kind,Zi as $labels,Ir as $layerName,Ja as $list,Po as $listenerTypesChanged,ei as $listeners,ya as $localStorage,Qo as $location,li as $lockedForReset,Di as $matches,io as $media,Da as $mediaQueryLists,Hi as $mode,Fi as $name,Dr as $names,os as $namespaces,Es as $navigator,Wr as $nodes,bs as $onchange,yn as $options,be as $owner,fs as $ownerNode,Tn as $ownerRule,p as $parent,De as $parentRule,Bt as $parentWindow,ua as $pastNames,ie as $pointerBeforeReference,ia as $prefix,Ot as $prelude,Pt as $presentationStyle,qt as $pseudo,b as $queries,nt as $radios,xt as $ranges,dn as $readonly,Ps as $readyState,fe as $rebuildVersion,Bn as $record,qe as $records,Nn as $reference,qn as $result,ze as $root,ht as $rules,po as $running,w as $runningFrame,lr as $sc,tr as $screen,yr as $scrollRestoration,nn as $scrollX,te as $scrollY,di as $selectedOptions,Lo as $selectedness,ja as $selection,_o as $selector,Gi as $serializable,Ar as $sessionStorage,Ha as $settled,ko as $shadowRoot,Jr as $shed,pa as $sheet,qo as $sheets,ri as $slotAssignment,xi as $so,Qa as $states,Sa as $style,Ri as $styleVersion,ji as $supportsText,Cr as $systemId,ns as $target,V as $tasks,Br as $templateContentsOwner,gs as $timers,hn as $title,ge as $transients,cs as $treeVersion,xn as $type,ke as $types,Se as $updating,It as $updatingSelectedContent,oa as $uri,u as $url,ea as $userActivation,wt as $userValidity,jt as $validity,Ut as $value,h as $version,Xe as $visualViewport,_t as $w,an as $whatToShow,Os as $whenDefined,se as $width,Fn as $window,He as $writeBuffer,On as $x,Hn as $xhr,Ne as $y,ut as $z,Yr as ATTRIBUTE_NODE,qa as AttrRecord,ma as CDATA_SECTION_NODE,Jo as COMMENT_NODE,mr as COMPAT,Zt as COMPAT_PROFILES,a as DEFAULT_COMPAT,ii as DOCUMENT_FRAGMENT_NODE,Si as DOCUMENT_NODE,$a as DOCUMENT_POSITION_CONTAINED_BY,Ca as DOCUMENT_POSITION_CONTAINS,zi as DOCUMENT_POSITION_DISCONNECTED,Mi as DOCUMENT_POSITION_FOLLOWING,wr as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,rs as DOCUMENT_POSITION_PRECEDING,Cs as DOCUMENT_TYPE_NODE,kr as DeclBlock,Vr as ELEMENT_NODE,_s as ENTITY_NODE,gn as ENTITY_REFERENCE_NODE,Va as EventState,J as FAILURE_CHANNEL,_e as F_ADOPT_HOOK,ls as F_ARIA_ATTRS,Sn as F_ATTR_HOOK,Ae as F_CE_CUSTOM,Ce as F_CHILDREN_HOOK,Lt as F_CHILD_LIST,sa as F_CONNECTED,ne as F_CONNECT_HOOK,ta as F_CONTENTEDITABLE_ATTR,Tt as F_CUSTOM,Mt as F_DATA_ATTRS,Wt as F_FACE,g as F_FORM_ATTR,Ze as F_HAS_SHADOW,vt as F_HAS_STYLE_ATTR,on as F_HTML,ks as F_INERT_ATTR,ce as F_MO_REGISTERED,In as F_PARSER_FORM,Ue as F_PAST_NAMES,kn as F_RANGE,Un as F_RANGE_BELOW,Pe as F_RANGE_MARKS,dt as F_ROLE_ATTR,so as F_SHADOW_ROOT,at as F_TABINDEX_ATTR,go as GLOBAL_EVENT_HANDLER_EVENTS,ur as HTMLCollection,ir as HTML_NS,et as INPUT_TYPE_NAMES,Xn as MATHML_NS,pr as NOTATION_NODE,ft as NodeCache,No as NodeImpl,Le as NodeList,Xt as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,i as SVG_NS,M as T,gi as TEXT_NODE,oo as VirtualClock,it as VirtualTimeout,Wi as WINDOW_EVENT_HANDLER_EVENTS,Ho as XLINK_NS,Ia as XMLNS_NS,So as XML_NS,Qe as adoptedStyleSheetsOf,Er as ariaAttr,as as asciiLowercase,si as assignManually,wi as assignedElements,to as assignedNodes,Ta as assignedSlot,Rr as attachShadowRoot,Ts as attr,Ka as attrAssociatedElement,Mo as attrAssociatedElements,Je as attrNode,rr as canSkipZeroDelayWait,captureInterfaceBaseline,st as childAt,Ur as classTokens,clearUIValue,fr as clockNow,r as clockStats,hi as closest,y as compareBoundaryPoints,F as compatExposes,fo as computedDisplay,ct as computedValue,cr as computedVisibility,un as constructEntryList,Oa as controlValue,Ee as createEvent,N as createFileList,yt as createLinkSheet,er as currentStyleVersion,Ns as defaultButton,Fo as deferredCompatMembers,Pr as derivedCache,describeCall,describeNode,va as dispatch,ot as dispatchTrusted,Jt as ensureCollectionIndexGetters,pt as ensureIndexGetters,Xr as evaluateMediaQueryList,Do as faceState,Bi as findFlattenedSlottables,Pi as findSlot,ar as fireAnEvent,Zn as fireSyntheticPointerEvent,sr as firstElementChild,fi as foreignImmediatesPending,zt as formOwner,ys as getAttribute,mt as getComputedStyle,getComputedStyleOverride,Zo as getCurrentEvent,ms as getElementsByClassName,pn as getElementsByTagName,me as getElementsByTagNameNS,ki as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,vn as hasAttr,_r as hasAuthorStyles,$r as hasExplicitAttrElements,ee as hasListeners,mo as hasReadonlyAttribute,hasUIValue,ka as hiddenGlobals,de as implicitSubmission,uo as indexGetterTable,$n as indexOf,Vo as indexedDescendantById,Ui as inputChecked,Or as inputIndeterminate,E as inputType,ln as inputTypeFromAttr,Qr as inspectNode,Ro as installClock,xr as installEventHandlers,la as isActuallyDisabled,ye as isAsciiWhitespace,za as isAutofilled,Eo as isChecked,Ma as isClockTimer,Gr as isDefault,da as isDisabled,en as isDisplayNone,c as isDisplayNoneInclusive,isEditable as isEditableControl,Go as isEnabled,Kr as isFACE,ti as isInRange,gr as isInclusiveAncestor,yi as isIndeterminate,Ya as isInvalid,re as isLabelable,ra as isListed,R as isMutable,Ms as isNumericType,Ii as isOptional,Oi as isOutOfRange,br as isPlaceholderShown,$o as isReadOnly,xs as isReadWrite,Lr as isRequired,Dt as isResettable,zn as isSubmitButton,Nt as isSubmittable,ps as isTextControl,f as isTextualType,fn as isValid,Qi as isValidDoctypeName,St as isValidElementLocalName,kt as isValidNamespacePrefix,pi as isVisibilityHidden,Kt as labeledControl,v as labelsFor,$t as lastElementChild,Xa as listOfOptions,ui as listenerCount,vo as loopTurn,Wn as matchMediaText,Fa as matches,ha as mediaEnvironment,s as nextElementInTree,_i as nextElementSibling,Uo as nextInTree,La as nextSkippingChildren,co as nodeCache,ci as nodeGetTheParent,tt as nodeLength,jn as notifyMutationObservers,pe as optionSelected,Ba as parseDeclBlock,En as parseFragment,Fe as parseMediaQueryList,Ga as peekDerivedCache,zo as pointerEvents,Na as pointerEventsNone,ds as prefixFlag,Co as previousElementSibling,Xi as previousInTree,yo as pseudoContent,xo as querySelector,Yi as querySelectorAll,quote,As as registerOwnerSheet,registerTestHooks,Io as removeAllEventListeners,wn as removeAttribute,le as removeOwnerSheet,_a as replaceData,Ea as reportException,resetWindowBetweenFiles,ho as resolveCompat,restoreInterfaces,Ei as retarget,Aa as reusableElement,Pn as serializeChildren,Be as serializeNode,Ln as setAdoptedStyleSheets,ro as setAssignedSlotLookup,Me as setAttribute,setCheckedFromUI,qi as setComputedColorMode,es as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Ke as setNotImplementedHandler,setOptionSelectedFromUI,Oo as setTrusted,setUISelection,setUIValue,Vi as setUncaughtExceptionHandler,Ki as skipIdleTime,jr as skipZeroDelayWait,spanChannel,Te as splitOnAsciiWhitespace,Xo as splitText,Kn as styleElementRemoved,sn as styleElementSheet,Re as styleElementUpdated,We as styleSheetsOf,Mr as styledDisplay,subscribeTestFailures,supportsSelection,j as supportsSelectionType,vr as tagId,tn as tagName,testHooks,tracePromise,traceSync,tracing,no as trackGlobalTimers,Fr as treeRoot,Wa as uaDisplay,An as unregisterOwnerSheet,Vt as validateAndExtract,S as valueMode,Ua as virtualDate,Ao as virtualPerformance,ai as windowHooks,P as windowInterfaces,t as withNamedProperties};
|
|
1
|
+
import{$a as e,$c as t,$d as n,$f as r,$i as i,$l as a,$o as o,$r as s,$s as c,$u as l,Ac as ee,Ad as te,Af as ne,Al as re,Ao as ie,Au as ae,B 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,Dc as Ce,Dd as we,Df as Te,Dl as Ee,Do as De,Du as Oe,Ec as ke,Ed as Ae,Ef as je,El as Me,Eo as Ne,Eu as Pe,Fa as Fe,Fc as Ie,Fd as u,Ff as d,Fl as f,Fo as p,Fu as m,Ga as h,Gc as g,Gd as _,Gf as Le,Gi as Re,Gl as ze,Go as Be,Gr as Ve,Gu as He,H as Ue,Hc as We,Hd as Ge,Hf as Ke,Hi as qe,Hl as Je,Ho as v,Hr as Ye,Hu as Xe,Ia as Ze,Ic as Qe,Id as $e,If as et,Il as y,Io as tt,Iu as nt,Jc as b,Jd as rt,Jf as it,Ji as at,Jl as ot,Jo as st,Jr as ct,Ju as lt,Kc as ut,Kd as dt,Kf as ft,Ki as pt,Kl as x,Kr as mt,Ku as ht,Lc as gt,Ld as _t,Lf 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,Mu as Ot,Na as kt,Nc as At,Nd as jt,Nf as Mt,Nl as S,No as Nt,Nu as Pt,Oc as Ft,Od as It,Of as Lt,Ol as Rt,Oo as zt,Ou as Bt,Pa as Vt,Pc as Ht,Pd as Ut,Pf as Wt,Pl as Gt,Po as Kt,Pu as qt,Qc as Jt,Qd as Yt,Qf as Xt,Qi as Zt,Ql as Qt,Qo as $t,Qr as en,Qs as C,Qu as tn,Ra as nn,Rc as rn,Rd as an,Rf as on,Ri as sn,Rl as cn,Ro as ln,Rr as un,Ru as dn,S as fn,Sa as pn,Sc as mn,Sd as hn,Sf as gn,Sl as _n,So as vn,Su as yn,Ta as bn,Tc as xn,Td as Sn,Tf as Cn,Tl as wn,To as Tn,Tu as En,Ua as Dn,Uc as w,Ud as On,Uf as kn,Ui as An,Ul as jn,Uo as T,Ur as Mn,Uu as Nn,Vc as Pn,Vd as Fn,Vf as In,Vi as Ln,Vl as Rn,Vo as zn,Vr as Bn,Vu as Vn,Wa as Hn,Wc as Un,Wd as Wn,Wf as Gn,Wi as Kn,Wl as qn,Wo as E,Wr as Jn,Wu as Yn,Xc as Xn,Xd as Zn,Xf as Qn,Xi as $n,Xl as er,Xo as tr,Xr as nr,Xu as rr,Yc as ir,Yd as ar,Yf as or,Yi as sr,Yl as D,Yo as cr,Yr as lr,Yu as ur,Zc as dr,Zd as fr,Zf as pr,Zi as mr,Zl as O,Zo as hr,Zr as gr,Zu as _r,_ as vr,_c as yr,_d as br,_f as xr,_l as Sr,_o as Cr,_s as wr,_u as Tr,a as Er,aa as Dr,ac as Or,ad as kr,af as Ar,ai as jr,al as Mr,ao as Nr,ap as Pr,as as Fr,at as Ir,au as Lr,b as Rr,ba as zr,bc as Br,bd as Vr,bf as Hr,bl as Ur,bo as Wr,bs as k,bu as Gr,c as Kr,ca as qr,cc as Jr,cd as Yr,cf as A,ci as Xr,cl as Zr,co as Qr,cp as $r,cr as ei,cs as ti,cu as ni,d as ri,dc as ii,dd as ai,df as oi,di as si,dl as ci,do as li,dp as ui,dr as j,ds as di,du as fi,ea as pi,ec as mi,ed as hi,ef as gi,ei as _i,el as vi,eo as yi,ep as bi,es as M,eu as xi,f as Si,fc as Ci,fd as wi,ff as Ti,fl as Ei,fo as Di,fp as Oi,fs as ki,fu as Ai,g as ji,ga as Mi,gc as Ni,gd as Pi,gf as Fi,gl as Ii,go as Li,gs as Ri,gu as zi,h as Bi,ha as Vi,hc as Hi,hd as Ui,hf as Wi,hl as Gi,ho as Ki,hr as qi,hs as Ji,hu as Yi,i as Xi,ia as Zi,ic as Qi,id as $i,if as ea,ii as ta,il as na,io as ra,ip as ia,is as aa,iu as oa,jc as sa,jd as ca,jf as la,jl as ua,jo as da,ju as fa,kc as pa,kd as N,kf as ma,kl as ha,ko as ga,kr as _a,ku as va,l as ya,la as ba,lc as xa,ld as Sa,lf as P,ll as F,lp as Ca,lr as wa,ls as Ta,lu as Ea,m as I,mc as Da,md as Oa,mf as ka,ml as Aa,mo as ja,mr as Ma,ms as Na,mu as Pa,n as Fa,na as Ia,nc as La,nd as Ra,nf as za,ni as Ba,nl as Va,no as Ha,np as Ua,ns as Wa,nt as Ga,nu as Ka,o as qa,oc as Ja,od as Ya,of as Xa,oi as Za,ol as Qa,oo as $a,op as eo,os as to,ou as no,p as ro,pc as io,pd as ao,pf as oo,pi as so,pl as co,po as lo,pp as uo,pr as L,ps as fo,pu as po,qc as mo,qd as ho,qf as go,qi as _o,ql as vo,qo as yo,qr as bo,qu as xo,r as So,ra as Co,rc as wo,rd as R,rf as To,ri as Eo,rl as Do,ro as Oo,rp as ko,rs as Ao,ru as jo,s as Mo,sa as No,sd as Po,sf as Fo,si as Io,sl as Lo,so as Ro,sp as zo,ss as Bo,st as z,su as Vo,ta as Ho,tc as Uo,td as Wo,tf as Go,ti as Ko,tl as qo,to as Jo,tp as Yo,ts as Xo,tu as Zo,u as Qo,ua as $o,uc as es,ud as ts,uf as ns,ui as rs,ul as is,uo as as,up as os,ur as ss,uu as cs,v as ls,va as us,vc as ds,vd as fs,vf as ps,vl as B,vo as ms,vu as hs,wa as gs,wc as _s,wd as vs,wf as ys,wl as bs,wo as xs,wu as Ss,x as Cs,xc as ws,xd as Ts,xf as Es,xl as Ds,xo as Os,xu as ks,y as As,ya as js,yc as Ms,yd as Ns,yf as Ps,yl as Fs,yo as Is,yu as Ls,z as Rs,zc as zs,zd as Bs,zf as Vs,zi as Hs,zl as Us,zo as V,zu as Ws}from"./_chunks/src-B3vkUXY6.js";import{constants as Gs,createContext as Ks,runInContext as qs}from"node:vm";import*as H from"node:diagnostics_channel";let U=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(j.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 W=null;function captureInterfaceBaseline(){if(U===null){U=[],W=/* @__PURE__ */ new WeakSet;for(let e of targets())U.push(snapshot(e)),W.add(e);ownObjectCreateMaps()}}let Js=null;function ownObjectCreateMaps(){if(U===null)return;let e=Js??=qs(`(prototypes) => prototypes.map((p) => Object.create(p))`,Ks(Gs.DONT_CONTEXTIFY)),t=[Object.prototype];for(let e=0;e<U.length;e++){let n=U[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=W;if(t===null)return;let n=e.Object,r=e.Reflect,i=oe(n),a=n.defineProperties,o=r.defineProperty,s={defineProperty(e,n,r){return i(e,n,t.has(e)?configurableDescriptor(r):Rs(e,n,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(U===null)return 0;let e=0;for(let t=0;t<U.length;t++){let n=U[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 G=`ctrl-dom:span`,K=typeof H.tracingChannel==`function`?H.tracingChannel(G):null;function spanChannel(){return K}function tracing(){return K!==null&&K.hasSubscribers}function traceSync(e,t,n){let r={op:e,description:t,data:{},async:!1},i=A();return K.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=A();return K.tracePromise(e=>n(e).finally(()=>recordSkipped(e,i)),r,void 0,r)}function recordSkipped(e,t){let n=A()-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[D]!==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 q=null;function setNodeDescriber(e){q=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(q!==null)try{let t=q(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 J=`sentry-tests:failure`;let Y=null;function setFailureSnapshot(e){Y=e}function subscribeTestFailures(e){let t=H.channel(J),onFailure=t=>{let n=t,r=e();if(r==null||n.document!==r)return;let i=P();if(i!==null&&(n.contexts.clock={skipped_ms:Math.round(i.skippedMs),pending_timers:i.pendingTimers}),Y!==null&&r.body!=null)try{n.attachments.push({filename:`accessibility-snapshot.txt`,contentType:`text/plain`,data:Y(r.body)})}catch{}};return t.subscribe(onFailure),()=>t.unsubscribe(onFailure)}var FileState=class{hooks;url;constructor(){this.hooks=/* @__PURE__ */ new Map,this.url=null}};const X=/* @__PURE__ */ new WeakMap;function stateOf(e){let t=X.get(e);return t===void 0&&X.set(e,t=new FileState),t}function registerTestHooks(e,t){let n=k();if(n===null)return;let r=stateOf(n).hooks;r.set(e,{...r.get(e),...t})}function testHooks(){let e=k(),t=e===null?void 0:X.get(e);return t===void 0?[]:[...t.hooks.values()]}function resetWindowBetweenFiles(e){let t=stateOf(e);for(let e of t.hooks.values())try{e.fileEnd?.()}catch{}Xa(),Ma(e);let n=e[N];if(n!==null){for(let e of n)e.clear(e.handle);n.clear()}e[S]=null,e[R]=null,e[y]=null,e[x]=null;let r=e.document;r.getSelection()?.removeAllRanges();let i=r.body;i!==null&&(i.replaceChildren(),removeAttributes(i)),r.documentElement!==null&&removeAttributes(r.documentElement),e.localStorage.clear(),e.sessionStorage.clear(),e[b]=null;let a=t.url??=e.location.href;e.location.href!==a&&e._setURL(new URL(a));let o=e.history;o[B]=[{url:a,state:null}],o[O]=0}function removeAttributes(e){let t=e.getAttributeNames();for(let n=0;n<t.length;n++)e.removeAttribute(t[n])}function implOf(e){return e[D]??e}function isTypingType(e){return v(e)||e===12||e>=7&&e<=11}function isEditable(e){let t=implOf(e);return t.tag===C.input?isTypingType(V(t))&&I(t):t.tag===C.textarea?I(t):Ve(t)}function supportsSelection(e){let t=implOf(e);return t.tag===C.textarea||t.tag===C.input&&T(V(t))}function hasUIValue(e){let t=implOf(e);return t.tag===C.textarea||t.tag===C.input&&E(V(t))===0}function getUIValue(e){let t=implOf(e);if(t.tag===C.input){let e=t.node;return e[w].uiValue??e.value}return t.tag===C.textarea?t.node.value:``}function setUIValue(e,t){let n=implOf(e);if(n.tag===C.input){let e=n.node,r=V(n);if(E(r)!==0)return;let i=Ir(r,t,n);n.doc[_]++,e[w].value=i,e[w].dirtyValue=!0,e[w].userEdited=!0,e[w].uiValue=i===t?null:t,e[w].badInput=i===``&&t!==``&&r!==5&&!v(r);let a=t.length;e[w].selStart>a&&(e[w].selStart=a),e[w].selEnd>a&&(e[w].selEnd=a)}else if(n.tag===C.textarea){let e=n.node;n.doc[_]++,e[w].value=Mi(t),e[w].dirtyValue=!0,e[w].userEdited=!0}}function clearUIValue(e){let t=implOf(e);if(t.tag===C.input){let e=t.node;e[w].uiValue=null,e[w].badInput=!1}}function getUISelection(e){let t=implOf(e).node,n=getUIValue(e).length;return{start:Math.min(t[w].selStart,n),end:Math.min(t[w].selEnd,n),direction:t[w].selDir}}function setUISelection(e,t,n=t,r=`none`){let i=implOf(e);if(i.tag!==C.input&&i.tag!==C.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[w].selStart=s,a[w].selEnd=c,a[w].selDir=r}function setFilesFromUI(e,t){let n=implOf(e);n.tag===C.input&&V(n)===17&&(n.doc[_]++,n.node[w].files=z(t))}function setOptionSelectedFromUI(e,t){let n=implOf(e);if(n.tag!==C.option)return;let r=n.node;r._setSelectedness(t),r[F]=!0;let i=Ga(n);if(i!==null){let e=i.node;t&&e._deselectOthers(n),e._updateSelectedContent()}}function setCheckedFromUI(e,t){let n=implOf(e);n.tag===C.input&&n.node._setCheckedness(t,!0)}const Ys=j.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===Ys||typeof n!=`function`||Ue.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{es as $_proto__,ii as $aboutBase,Ci as $active,io as $assocGen,Da as $attr,Hi as $attributes,Ni as $availableToElementInternals,yr as $baseFor,ds as $baseOverride,Ms as $baseURL,Br as $baseVersion,ws as $benign,mn as $block,_e as $blockParsed,_s as $blockText,xn as $byCtor,ke as $byName,Ce as $cache,Ft as $callback,pa as $childNodes,ee as $childWindows,sa as $children,Ct as $classList,At as $clipboard,Ht as $clonable,Ie as $closed,Qe as $coll,gt as $compiled,rn as $compiledFor,zs as $condition,se as $constructed,Pn as $constructingEntryList,We as $contentType,w as $control,Un as $controlNamesVersion,g as $controlsCache,ut as $controlsDoc,mo as $controlsVersion,b as $cookieJar,ir as $cookies,Xn as $css,dr as $current,Jt as $customElements,t as $customValidity,vi as $cx,qo as $data,Va as $dataset,Do as $declarative,na as $defaultNamespace,Mr as $defaultValueOverride,Qa as $delegatesFocus,Lo as $derived,Zr as $devicePixelRatio,F as $dirtiness,is as $disabled,ci as $disallowModification,Ei as $doc,co as $dropEffect,Aa as $ec,Gi as $effectAllowed,Ii as $el,Sr as $elements,B as $entries,Fs as $eo,Ur as $error,Ds as $externalFormNames,_n as $file,be as $files,bs as $fill,wn as $filter,Me as $firingSubmissionEvents,Ee as $focused,Rt as $forLabels,ha as $form,re as $formAttrSeen,ua as $formControlsVersion,Et as $forms,S as $frameCallbacks,Gt as $frameElement,f as $frameId,y as $frameTask,yt as $frameTime,cn as $generation,Us as $globalObject,de as $height,Rn as $history,Je as $home,jn as $host,qn as $href,ze as $id,x as $idleCallbacks,vo as $idleId,ot as $ids,D as $impl,er as $implementation,O as $index,Qt as $indexed,a as $inflight,xi as $info,Zo as $innerHeight,Ka as $innerWidth,jo as $isHTML,oa as $items,Lr as $keyText,no as $kind,Vo as $labels,ni as $labelsVersion,Ea as $layerName,cs as $list,fi as $listenerTypesChanged,Ai as $listeners,po as $localStorage,Pa as $location,Yi as $lockedForReset,zi as $matches,Tr as $media,hs as $mediaQueryLists,Ls as $mode,Gr as $name,ks as $nameBlanked,yn as $nameBlankedValue,Se as $names,Ss as $namespaces,En as $navigator,Pe as $nodes,Oe as $onchange,Bt as $options,va as $optionsCount,ae as $optionsOnly,fa as $optionsTail,Ot as $owner,Pt as $ownerNode,qt as $ownerRule,m as $parent,nt as $parentRule,St as $parentWindow,dn as $pastNames,Ws as $pointerBeforeReference,me as $prefix,Vn as $prelude,Xe as $presentationStyle,Nn as $pseudo,Yn as $queries,He as $radios,ht as $ranges,xo as $readonly,lt as $readyState,ur as $rebuildVersion,rr as $record,_r as $records,tn as $reference,l as $result,hi as $root,Wo as $rules,Ra as $running,R as $runningFrame,$i as $sc,kr as $screen,Ya as $scrollRestoration,Po as $scrollX,Yr as $scrollY,Sa as $selectedOptions,ts as $selectedness,ai as $selection,wi as $selectionEpoch,ao as $selector,Oa as $serializable,Ui as $sessionStorage,Pi as $settled,br as $shadowRoot,fs as $shed,Ns as $sheet,Vr as $sheets,Ts as $slotAssignment,hn as $so,ve as $states,vs as $style,Sn as $styleVersion,Ae as $supportsText,we as $systemId,It as $target,N as $tasks,te as $templateContentsOwner,ca as $timers,wt as $title,jt as $transients,Ut as $treeVersion,u as $type,$e as $types,_t as $updating,an as $updatingSelectedContent,Bs as $uri,ce as $url,Fn as $userActivation,Ge as $userValidity,On as $validity,Wn as $value,_ as $version,dt as $visualViewport,ho as $w,rt as $whatToShow,ar as $whenDefined,Zn as $width,fr as $window,Yt as $writeBuffer,n as $x,gi as $xhr,Go as $y,za as $z,ps as ATTRIBUTE_NODE,ti as AttrRecord,Ps as CDATA_SECTION_NODE,Hr as COMMENT_NODE,i as COMPAT,pi as COMPAT_PROFILES,Ho as DEFAULT_COMPAT,Es as DOCUMENT_FRAGMENT_NODE,gn as DOCUMENT_NODE,ye as DOCUMENT_POSITION_CONTAINED_BY,ys as DOCUMENT_POSITION_CONTAINS,Cn as DOCUMENT_POSITION_DISCONNECTED,je as DOCUMENT_POSITION_FOLLOWING,Te as DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC,Lt as DOCUMENT_POSITION_PRECEDING,ma as DOCUMENT_TYPE_NODE,No as DeclBlock,ne as ELEMENT_NODE,la as ENTITY_NODE,Tt as ENTITY_REFERENCE_NODE,Jr as EventState,J as FAILURE_CHANNEL,Mt as F_ADOPT_HOOK,Wt as F_ARIA_ATTRS,d as F_ATTR_HOOK,et as F_CE_CUSTOM,vt as F_CHILDREN_HOOK,on as F_CHILD_LIST,Vs as F_CONNECTED,le as F_CONNECT_HOOK,In as F_CONTENTEDITABLE_ATTR,Ke as F_CUSTOM,kn as F_DATA_ATTRS,Gn as F_FACE,Le as F_FORM_ATTR,ft as F_HAS_SHADOW,go as F_HAS_STYLE_ATTR,it as F_HTML,or as F_INERT_ATTR,Qn as F_MO_REGISTERED,pr as F_PARSER_FORM,Xt as F_PAST_NAMES,r as F_RANGE,bi as F_RANGE_BELOW,Yo as F_RANGE_MARKS,Ua as F_ROLE_ATTR,ko as F_SHADOW_ROOT,ia as F_TABINDEX_ATTR,Or as GLOBAL_EVENT_HANDLER_EVENTS,e as HTMLCollection,Pr as HTML_NS,ln as INPUT_TYPE_NAMES,eo as MATHML_NS,zo as NOTATION_NODE,at as NodeCache,Ta as NodeImpl,yo as NodeList,$r as PROCESSING_INSTRUCTION_NODE,G as SPAN_CHANNEL,Ca as SVG_NS,C as T,os as TEXT_NODE,To as VirtualClock,ea as VirtualTimeout,Ja as WINDOW_EVENT_HANDLER_EVENTS,ui as XLINK_NS,Oi as XMLNS_NS,uo as XML_NS,sn as adoptedStyleSheetsOf,Is as ariaAttr,Wr as asciiLowercase,lo as assignManually,ja as assignedElements,Ki as assignedNodes,Li as assignedSlot,pn as attachShadowRoot,Os as attr,ei as attrAssociatedElement,wa as attrAssociatedElements,nn as attrNode,Ar as canSkipZeroDelayWait,captureInterfaceBaseline,tr as childAt,vn as classTokens,clearUIValue,Fo as clockNow,P as clockStats,Ha as closest,xt as compareBoundaryPoints,Ia as compatExposes,lr as computedDisplay,nr as computedValue,gr as computedVisibility,pe as constructEntryList,Fa as controlValue,_a as createEvent,z as createFileList,Hs as createLinkSheet,en as currentStyleVersion,Bn as defaultButton,Co as deferredCompatMembers,Ro as derivedCache,describeCall,describeNode,di as dispatch,$n as dispatchTrusted,yi as ensureCollectionIndexGetters,st as ensureIndexGetters,rs as evaluateMediaQueryList,ba as faceState,Cr as findFlattenedSlottables,ms as findSlot,mr as fireAnEvent,Zt as fireSyntheticPointerEvent,hr as firstElementChild,ns as foreignImmediatesPending,ie as formOwner,xe as getAttribute,ct as getComputedStyle,getComputedStyleOverride,ki as getCurrentEvent,ge as getElementsByClassName,gs as getElementsByTagName,bn as getElementsByTagNameNS,us as getEventHandler,getUISelection,getUIValue,guardInterfaceDefinitions,xs as hasAttr,s as hasAuthorStyles,ss as hasExplicitAttrElements,Uo as hasListeners,So as hasReadonlyAttribute,hasUIValue,Zi as hiddenGlobals,Ye as implicitSubmission,cr as indexGetterTable,$t as indexOf,Oo as indexedDescendantById,Xi as inputChecked,Er as inputIndeterminate,V as inputType,fe as inputTypeFromAttr,as as inspectNode,oi as installClock,js as installEventHandlers,da as isActuallyDisabled,Tn as isAsciiWhitespace,qa as isAutofilled,Mo as isChecked,Ti as isClockTimer,Kr as isDefault,ya as isDisabled,_i as isDisplayNone,Ko as isDisplayNoneInclusive,isEditable as isEditableControl,Qo as isEnabled,$o as isFACE,ri as isInRange,o as isInclusiveAncestor,Si as isIndeterminate,ro as isInvalid,Dt as isLabelable,Nt as isListed,I as isMutable,zn as isNumericType,Bi as isOptional,ji as isOutOfRange,vr as isPlaceholderShown,ls as isReadOnly,As as isReadWrite,Rr as isRequired,Kt as isResettable,Mn as isSubmitButton,p as isSubmittable,Cs as isTextControl,v as isTextualType,fn as isValid,kt as isValidDoctypeName,Vt as isValidElementLocalName,Fe as isValidNamespacePrefix,Ba as isVisibilityHidden,tt as labeledControl,bt as labelsFor,M as lastElementChild,Vi as listOfOptions,La as listenerCount,oo as loopTurn,pt as matchMediaText,ra as matches,si as mediaEnvironment,Xo as nextElementInTree,Wa as nextElementSibling,Ao as nextInTree,aa as nextSkippingChildren,sr as nodeCache,fo as nodeGetTheParent,un as nodeLength,Be as notifyMutationObservers,he as optionSelected,qr as parseDeclBlock,h as parseFragment,_o as parseMediaQueryList,Qr as peekDerivedCache,Eo as pointerEvents,ta as pointerEventsNone,Ne as prefixFlag,Fr as previousElementSibling,to as previousInTree,jr as pseudoContent,Nr as querySelector,$a as querySelectorAll,quote,Ln as registerOwnerSheet,registerTestHooks,wo as removeAllEventListeners,De as removeAttribute,qe as removeOwnerSheet,li as replaceData,Ri as reportException,resetWindowBetweenFiles,Dr as resolveCompat,restoreInterfaces,Na as retarget,Qi as reusableElement,Dn as serializeChildren,Hn as serializeNode,An as setAdoptedStyleSheets,Ji as setAssignedSlotLookup,zt as setAttribute,setCheckedFromUI,Za as setComputedColorMode,zr as setEventHandler,setFailureSnapshot,setFilesFromUI,setNodeDescriber,Jn as setNotImplementedHandler,setOptionSelectedFromUI,xa as setTrusted,setUISelection,setUIValue,wr as setUncaughtExceptionHandler,ka as skipIdleTime,Wi as skipZeroDelayWait,spanChannel,ga as splitOnAsciiWhitespace,Di as splitText,mt as styleElementRemoved,ue as styleElementSheet,bo as styleElementUpdated,Kn as styleSheetsOf,Io as styledDisplay,subscribeTestFailures,supportsSelection,T as supportsSelectionType,c as tagId,mi as tagName,testHooks,tracePromise,traceSync,tracing,qi as trackGlobalTimers,Bo as treeRoot,Xr as uaDisplay,Re as unregisterOwnerSheet,Ze as validateAndExtract,E as valueMode,Fi as virtualDate,xr as virtualPerformance,so as windowHooks,L as windowInterfaces,Jo as withNamedProperties};
|
|
@@ -248,6 +248,4 @@ export declare function customPropertyNames(el: NodeImpl, pseudo: string | null)
|
|
|
248
248
|
export declare function pseudoContent(el: NodeImpl, pseudo: "::before" | "::after"): string;
|
|
249
249
|
/** Extracts the text of a computed `content` value. */
|
|
250
250
|
export declare function contentText(el: NodeImpl, v: string): string;
|
|
251
|
-
/** Number of elements with a cached style record is not tracked; exposed for tests of the fast path. */
|
|
252
|
-
export declare function _hasStyleRecord(el: NodeImpl): boolean;
|
|
253
251
|
export {};
|
|
@@ -50,6 +50,4 @@ export declare function evaluateMediaQuery(q: MediaQuery, env: MediaEnvironment)
|
|
|
50
50
|
export declare function evaluateMediaQueryList(list: MediaQuery[], env: MediaEnvironment): boolean;
|
|
51
51
|
/** Text-level helper for matchMedia(): https://drafts.csswg.org/cssom-view/#dom-window-matchmedia */
|
|
52
52
|
export declare function matchMediaText(text: string, env: MediaEnvironment): boolean;
|
|
53
|
-
/** Serialization used by MediaQueryList.media. */
|
|
54
|
-
export declare function normalizeMediaText(text: string): string;
|
|
55
53
|
export {};
|
|
@@ -116,5 +116,3 @@ export declare function parseRule(src: string): RawRule | null;
|
|
|
116
116
|
* what the `style` attribute and `cssText` setters use.
|
|
117
117
|
*/
|
|
118
118
|
export declare function parseDeclarationList(src: string): RawDecl[];
|
|
119
|
-
/** True if a value contains bad-string / bad-url tokens or unbalanced closers (never valid). */
|
|
120
|
-
export declare function hasInvalidTokens(value: string): boolean;
|
|
@@ -26,5 +26,3 @@ export declare function computedPropertyNames(): readonly string[];
|
|
|
26
26
|
* "-webkit-x" → "WebkitX" (with lowercase_first = false), "float" → also "cssFloat".
|
|
27
27
|
*/
|
|
28
28
|
export declare function cssPropertyToIDLAttribute(property: string, lowercaseFirst: boolean): string;
|
|
29
|
-
/** Converts an IDL attribute name or property-ish key to a CSS property name ("" if none). */
|
|
30
|
-
export declare function idlAttributeToProperty(key: string): string;
|
|
@@ -31,5 +31,3 @@ export declare const MULTI_LAYER: string[];
|
|
|
31
31
|
* `computed` selects computed-style serialization (no omission of initial values).
|
|
32
32
|
*/
|
|
33
33
|
export declare function serializeShorthand(name: string, v: string[], computed: boolean): string;
|
|
34
|
-
/** Normalizes a single longhand value from a shorthand component list (helper for callers). */
|
|
35
|
-
export declare function normalizeLonghandValue(name: string, value: string): string | null;
|
|
@@ -24,7 +24,6 @@ export declare function splitComponents(value: string): Comp[] | null;
|
|
|
24
24
|
export declare function significant(comps: Comp[]): Comp[];
|
|
25
25
|
/** https://drafts.csswg.org/cssom/#serialize-a-css-component-value (<number>) */
|
|
26
26
|
export declare function formatNumber(n: number): string;
|
|
27
|
-
export declare function isLengthUnit(lowerUnit: string): boolean;
|
|
28
27
|
export declare const G_LENGTH = 1;
|
|
29
28
|
export declare const G_PERCENT = 2;
|
|
30
29
|
export declare const G_NUMBER = 4;
|
|
@@ -38,8 +38,6 @@ export interface FocusElementOptions {
|
|
|
38
38
|
export declare function focusElement(impl: NodeImpl, options?: FocusElementOptions): boolean;
|
|
39
39
|
/** https://html.spec.whatwg.org/#unfocusing-steps */
|
|
40
40
|
export declare function blurElement(impl: NodeImpl): void;
|
|
41
|
-
/** Called by user-event before a pointer-caused focus. */
|
|
42
|
-
export declare function notePointerFocus(): void;
|
|
43
41
|
/** https://html.spec.whatwg.org/#dom-documentorshadowroot-activeelement */
|
|
44
42
|
export declare function activeElement(root: NodeImpl): Element | null;
|
|
45
43
|
/** https://html.spec.whatwg.org/#dom-document-hasfocus (no system focus model: true while an element is focused, as jsdom). */
|
|
@@ -7,6 +7,14 @@ import { $dirtiness, $selectedness } from "../../keys.js";
|
|
|
7
7
|
* The select element an option belongs to, its "nearest ancestor select":
|
|
8
8
|
* https://html.spec.whatwg.org/#option-element-nearest-ancestor-select
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* Counts every change of an option's selectedness, in any document: a select that has seen its
|
|
12
|
+
* one selected option remembers the count, and while it has not moved an appended option that is
|
|
13
|
+
* not selected changes nothing (HTMLSelectElement.ts _childrenChangedSteps).
|
|
14
|
+
*/
|
|
15
|
+
export declare const selectedness: {
|
|
16
|
+
epoch: number;
|
|
17
|
+
};
|
|
10
18
|
export declare function optionSelect(option: NodeImpl): NodeImpl | null;
|
|
11
19
|
export declare class HTMLOptionElement extends HTMLElement {
|
|
12
20
|
/** https://html.spec.whatwg.org/#concept-option-selectedness — initially derives from the attribute. */
|
|
@@ -5,7 +5,7 @@ import type { NodeImpl } from "../../nodes/NodeImpl.js";
|
|
|
5
5
|
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
|
-
import { $customValidity, $labels, $options, $selectedOptions, $settled, $updatingSelectedContent, $userValidity, $validity } from "../../keys.js";
|
|
8
|
+
import { $customValidity, $labels, $options, $optionsCount, $optionsOnly, $optionsTail, $selectedOptions, $selectionEpoch, $settled, $updatingSelectedContent, $userValidity, $validity } from "../../keys.js";
|
|
9
9
|
export declare class HTMLSelectElement extends HTMLElement {
|
|
10
10
|
/** The custom validity error message; absent while it is the empty string. */
|
|
11
11
|
[$customValidity]?: string;
|
|
@@ -20,6 +20,13 @@ export declare class HTMLSelectElement extends HTMLElement {
|
|
|
20
20
|
[$settled]: boolean;
|
|
21
21
|
/** Re-entrancy guard for `_updateSelectedContent` (it mutates the select's subtree). */
|
|
22
22
|
[$updatingSelectedContent]: boolean;
|
|
23
|
+
/** The last child and the child count at the last children-changed step: tell one appended child from any other change. */
|
|
24
|
+
[$optionsTail]: NodeImpl | null;
|
|
25
|
+
[$optionsCount]: number;
|
|
26
|
+
/** Every child is an HTML option element (no optgroup, hr, selectedcontent or text). */
|
|
27
|
+
[$optionsOnly]: boolean;
|
|
28
|
+
/** `selectedness.epoch` when the algorithm last left exactly one option selected, else -1. */
|
|
29
|
+
[$selectionEpoch]: number;
|
|
23
30
|
/** https://html.spec.whatwg.org/#user-validity (forms/user-validity.ts); absent while false. */
|
|
24
31
|
[$userValidity]?: boolean;
|
|
25
32
|
/** @internal Use Document.createElement. */
|
|
@@ -80,7 +87,17 @@ export declare class HTMLSelectElement extends HTMLElement {
|
|
|
80
87
|
_updateSelectedContent(): void;
|
|
81
88
|
/** https://html.spec.whatwg.org/#the-select-element:concept-form-reset-control */
|
|
82
89
|
_reset(): void;
|
|
83
|
-
/**
|
|
90
|
+
/**
|
|
91
|
+
* The list of options changed: https://html.spec.whatwg.org/#the-select-element:selectedness-setting-algorithm
|
|
92
|
+
*
|
|
93
|
+
* React appends a select's options one by one, and the algorithm walks the options each time
|
|
94
|
+
* (65 µs to build a select of 250). It has nothing to do when a drop-down that has exactly one
|
|
95
|
+
* selected option gets one more option at the end that is not selected, which is every append
|
|
96
|
+
* after the first: that case returns here. The select knows it without a walk while no
|
|
97
|
+
* option's selectedness has changed anywhere since the algorithm last left it with one
|
|
98
|
+
* (`selectedness.epoch`), its children are all options, and the new child follows the last
|
|
99
|
+
* one it saw. Anything else runs the algorithm as before.
|
|
100
|
+
*/
|
|
84
101
|
_childrenChangedSteps(): void;
|
|
85
102
|
_attributeChangedSteps(localName: string, oldValue: string | null, value: string | null, namespace: string | null): void;
|
|
86
103
|
_barredFromValidation(): boolean;
|
|
@@ -3,6 +3,7 @@ import type { Element } from "../../nodes/Element.js";
|
|
|
3
3
|
import type { Node } from "../../nodes/Node.js";
|
|
4
4
|
import { HTMLCollection } from "../../collections/HTMLCollection.js";
|
|
5
5
|
import { NodeList } from "../../collections/NodeList.js";
|
|
6
|
+
import { type FormControlsSnapshot } from "./form-associated.js";
|
|
6
7
|
import { $el, $form, $name } from "../../keys.js";
|
|
7
8
|
/**
|
|
8
9
|
* Base for the live NodeLists computed from the tree (labels, RadioNodeList): a version-stamped
|
|
@@ -37,7 +38,17 @@ export declare class NameNodeList extends ComputedNodeList {
|
|
|
37
38
|
_root(): NodeImpl;
|
|
38
39
|
_compute(): Node[];
|
|
39
40
|
}
|
|
40
|
-
|
|
41
|
+
/**
|
|
42
|
+
* The control(s) of `form` with ID or name `name`: https://html.spec.whatwg.org/#dom-form-nameditem
|
|
43
|
+
* and https://html.spec.whatwg.org/#dom-htmlformcontrolscollection-nameditem.
|
|
44
|
+
*
|
|
45
|
+
* A large form asked a second time, while no `id` or `name` has changed in the document, is
|
|
46
|
+
* indexed by name (as Blink's HTMLCollection::NamedItemCache): a handler that reads fields by
|
|
47
|
+
* name on every keystroke no longer scans 250 controls per read (bench/README.md,
|
|
48
|
+
* `react/validate-named-fields`). The snapshot itself lasts until the tree or a form owner
|
|
49
|
+
* changes; nodes/attributes.ts counts the name changes, and lets React's set-to-""-and-back pass.
|
|
50
|
+
*/
|
|
51
|
+
export declare function namedControl(form: NodeImpl, controls: FormControlsSnapshot, name: string): NodeImpl | RadioNodeList | null;
|
|
41
52
|
/** Images supply legacy named properties only when no listed control matches. */
|
|
42
53
|
export declare function namedImage(form: NodeImpl, name: string): NodeImpl | RadioNodeList | null;
|
|
43
54
|
/** https://html.spec.whatwg.org/#radionodelist — live list of a form's controls with a given name/id. */
|
|
@@ -20,5 +20,10 @@ export declare class ControlState {
|
|
|
20
20
|
badInput: boolean;
|
|
21
21
|
/** User-event's UI value (raw typed text) — null when it equals the value. See ui.ts. */
|
|
22
22
|
uiValue: string | null;
|
|
23
|
+
/** The accessor React's value tracker defined on the element (window/shared-accessors.ts). */
|
|
24
|
+
tracker: PropertyDescriptor | null;
|
|
25
|
+
/** The last string a textarea normalized the newlines of, and the result (HTMLTextAreaElement.ts normalized). */
|
|
26
|
+
rawText: string | null;
|
|
27
|
+
apiText: string;
|
|
23
28
|
constructor();
|
|
24
29
|
}
|
|
@@ -7,8 +7,6 @@ export declare function isSubmittable(el: NodeImpl): boolean;
|
|
|
7
7
|
export declare function isResettable(el: NodeImpl): boolean;
|
|
8
8
|
/** https://html.spec.whatwg.org/#category-label — button, input (not hidden), meter, output, progress, select, textarea. */
|
|
9
9
|
export declare function isLabelable(el: NodeImpl): boolean;
|
|
10
|
-
/** https://html.spec.whatwg.org/#form-associated-element (listed elements + img). */
|
|
11
|
-
export declare function isFormAssociated(el: NodeImpl): boolean;
|
|
12
10
|
/** First element in `el`'s tree (shadow-root aware) whose id is `id`, or null. */
|
|
13
11
|
export declare function elementByIdInTree(el: NodeImpl, id: string): NodeImpl | null;
|
|
14
12
|
/**
|
|
@@ -31,6 +29,10 @@ export declare function formOwnerScope(form: NodeImpl, listed: boolean): NodeImp
|
|
|
31
29
|
/** The listed-control scan also covers every possible legacy named image. */
|
|
32
30
|
export interface FormControlsSnapshot extends Array<NodeImpl> {
|
|
33
31
|
hasImage?: true;
|
|
32
|
+
/** `Document[$controlNamesVersion]` at the last named lookup (collections.ts namedControl). */
|
|
33
|
+
namesVersion?: number;
|
|
34
|
+
/** The controls by ID and name, from the second lookup at that version on: null for several. */
|
|
35
|
+
names?: Map<string, NodeImpl | null> | null;
|
|
34
36
|
}
|
|
35
37
|
/** All listed elements (excluding image buttons) whose form owner is `form`, in tree order: form.elements. */
|
|
36
38
|
export declare function formControls(form: NodeImpl, out: FormControlsSnapshot, includeImageButtons: boolean): FormControlsSnapshot;
|
|
@@ -13,5 +13,4 @@ export { HTMLInputElement, HTMLTextAreaElement, HTMLSelectElement, HTMLOptionEle
|
|
|
13
13
|
export { ValidityState } from "./validation.js";
|
|
14
14
|
export { FormData } from "./FormData.js";
|
|
15
15
|
export { HTMLFormControlsCollection, HTMLOptionsCollection, RadioNodeList } from "./collections.js";
|
|
16
|
-
export { implicitSubmission
|
|
17
|
-
export { formOwner, labeledControl, isLabelable, isListed, isSubmittable, isResettable } from "./form-associated.js";
|
|
16
|
+
export { implicitSubmission } from "./form-submission.js";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare function isValidFloatString(s: string): boolean;
|
|
2
1
|
/**
|
|
3
2
|
* https://html.spec.whatwg.org/#rules-for-parsing-floating-point-number-values, restricted to
|
|
4
3
|
* valid floating-point numbers (what value sanitization requires). NaN on error.
|
|
@@ -21,8 +20,6 @@ export declare function isValidDateString(s: string): boolean;
|
|
|
21
20
|
export declare function isValidMonthString(s: string): boolean;
|
|
22
21
|
/** https://html.spec.whatwg.org/#valid-week-string */
|
|
23
22
|
export declare function isValidWeekString(s: string): boolean;
|
|
24
|
-
/** https://html.spec.whatwg.org/#valid-time-string */
|
|
25
|
-
export declare function isValidTimeString(s: string): boolean;
|
|
26
23
|
/**
|
|
27
24
|
* Value sanitization for datetime-local: a valid local date and time string becomes the
|
|
28
25
|
* valid normalized one (T separator, shortest time); anything else becomes "".
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { NodeImpl } from "../../nodes/NodeImpl.js";
|
|
2
|
-
export { isActuallyDisabled } from "./form-associated.js";
|
|
3
2
|
/** `:disabled` — https://html.spec.whatwg.org/#selector-disabled */
|
|
4
3
|
export declare function isDisabled(el: NodeImpl): boolean;
|
|
5
4
|
/** `:enabled` — button, input, select, textarea, optgroup, option, fieldset that are not disabled. */
|
|
@@ -42,8 +42,6 @@ export declare function nonNegativeLong(C: Ctor, list: string, def?: number): vo
|
|
|
42
42
|
export declare function ulong(C: Ctor, list: string, def?: number, positive?: boolean): void;
|
|
43
43
|
/** `unsigned long` clamped to [min, max] (e.g. colSpan, rowSpan). */
|
|
44
44
|
export declare function clampedUlong(C: Ctor, idl: string, content: string, def: number, min: number, max: number): void;
|
|
45
|
-
/** `double` reflection; `positive` = limited to only positive numbers. */
|
|
46
|
-
export declare function double(C: Ctor, list: string, def?: number, positive?: boolean): void;
|
|
47
45
|
export interface EnumSpec {
|
|
48
46
|
/** Canonical keywords (lowercase). Aliases: "alias:canonical". */
|
|
49
47
|
keywords: string[];
|
|
@@ -63,6 +61,4 @@ export declare const LOADING: EnumSpec;
|
|
|
63
61
|
export declare const FETCH_PRIORITY: EnumSpec;
|
|
64
62
|
/** Reflect a DOMTokenList-valued IDL attribute (`relList`, `sandbox`, `sizes`, ...) — [SameObject, PutForwards=value]. */
|
|
65
63
|
export declare function tokenList(C: Ctor, idl: string, content: string, supported?: readonly string[] | null): void;
|
|
66
|
-
/** Whether `impl` is an HTML-namespace element. */
|
|
67
|
-
export declare function isHTMLElement(impl: NodeImpl): boolean;
|
|
68
64
|
export {};
|
|
@@ -11,8 +11,6 @@ export interface StyleSheetHooks {
|
|
|
11
11
|
createLinkSheet: ((owner: NodeImpl, href: string, media: string) => object | null) | null;
|
|
12
12
|
}
|
|
13
13
|
export declare const styleSheetHooks: StyleSheetHooks;
|
|
14
|
-
/** The CSS style sheet associated with a <style>/<link> element (for document.styleSheets). */
|
|
15
|
-
export declare function associatedSheet(impl: NodeImpl): object | null;
|
|
16
14
|
/** https://html.spec.whatwg.org/#child-text-content */
|
|
17
15
|
export declare function childTextContent(impl: NodeImpl): string;
|
|
18
16
|
/** https://html.spec.whatwg.org/#update-a-style-block */
|
|
@@ -5,8 +5,6 @@ import type { NodeImpl } from "../nodes/NodeImpl.js";
|
|
|
5
5
|
* [hidden] and <head> included; author style sheets and inline styles when present).
|
|
6
6
|
*/
|
|
7
7
|
export declare function isRenderingHidden(impl: NodeImpl): boolean;
|
|
8
|
-
/** The element's own computed display is none (ancestors not considered). */
|
|
9
|
-
export declare function isOwnDisplayNone(impl: NodeImpl): boolean;
|
|
10
8
|
/** https://html.spec.whatwg.org/#attr-contenteditable state of an element's own attribute. */
|
|
11
9
|
export declare function contentEditableState(impl: NodeImpl): number;
|
|
12
10
|
/** https://html.spec.whatwg.org/#dom-document-designmode (getter). */
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { HTMLElement } from "./HTMLElement.js";
|
|
2
2
|
import { Document } from "../nodes/Document.js";
|
|
3
3
|
import { DocumentFragment } from "../nodes/DocumentFragment.js";
|
|
4
|
-
import type { NodeImpl } from "../nodes/NodeImpl.js";
|
|
5
4
|
import type { Element } from "../nodes/Element.js";
|
|
6
5
|
/** https://html.spec.whatwg.org/#appropriate-template-contents-owner-document */
|
|
7
6
|
export declare function templateContentsOwner(doc: Document): Document;
|
|
8
|
-
/** The template contents fragment of a template element (created on first use). */
|
|
9
|
-
export declare function templateContents(impl: NodeImpl): NodeImpl;
|
|
10
7
|
export declare class HTMLTemplateElement extends HTMLElement {
|
|
11
8
|
constructor(doc?: Document, localName?: string, ns?: string | null, prefix?: string | null);
|
|
12
9
|
/** https://html.spec.whatwg.org/#dom-template-content */
|
package/dist/dom/types/keys.d.ts
CHANGED
|
@@ -74,6 +74,17 @@ export declare const $firingSubmissionEvents: unique symbol;
|
|
|
74
74
|
export declare const $focused: unique symbol;
|
|
75
75
|
export declare const $form: unique symbol;
|
|
76
76
|
export declare const $formControlsVersion: unique symbol;
|
|
77
|
+
/**
|
|
78
|
+
* Document: counts what besides the tree decides which label labels which control: an `id`, a
|
|
79
|
+
* label's `for`, an input becoming or ceasing to be hidden, a form-associated custom element's
|
|
80
|
+
* upgrade (@ctrl/dom/aria forms.ts labelMapForTree).
|
|
81
|
+
*/
|
|
82
|
+
export declare const $labelsVersion: unique symbol;
|
|
83
|
+
/** Document: counts `id` and `name` attribute changes (html/forms/collections.ts namedControl). */
|
|
84
|
+
export declare const $controlNamesVersion: unique symbol;
|
|
85
|
+
/** Document: the element whose `name` was just set to "", and the name it had (nodes/attributes.ts noteNameChange). */
|
|
86
|
+
export declare const $nameBlanked: unique symbol;
|
|
87
|
+
export declare const $nameBlankedValue: unique symbol;
|
|
77
88
|
/** Document: an element of it has had a `form` attribute (sticky; html/forms/form-associated.ts formOwnerScope). */
|
|
78
89
|
export declare const $formAttrSeen: unique symbol;
|
|
79
90
|
export declare const $forLabels: unique symbol;
|
|
@@ -163,6 +174,11 @@ export declare const $selector: unique symbol;
|
|
|
163
174
|
export declare const $serializable: unique symbol;
|
|
164
175
|
export declare const $sessionStorage: unique symbol;
|
|
165
176
|
export declare const $settled: unique symbol;
|
|
177
|
+
/** A select's bookkeeping for options appended one at a time (HTMLSelectElement.ts _childrenChangedSteps). */
|
|
178
|
+
export declare const $optionsTail: unique symbol;
|
|
179
|
+
export declare const $optionsCount: unique symbol;
|
|
180
|
+
export declare const $optionsOnly: unique symbol;
|
|
181
|
+
export declare const $selectionEpoch: unique symbol;
|
|
166
182
|
export declare const $shadowRoot: unique symbol;
|
|
167
183
|
export declare const $shed: unique symbol;
|
|
168
184
|
export declare const $sheet: unique symbol;
|
|
@@ -16,7 +16,7 @@ import type { Window } from "../window/Window.js";
|
|
|
16
16
|
import type { NodeList } from "../collections/NodeList.js";
|
|
17
17
|
import type { ElementCreationOptions } from "../webidl.js";
|
|
18
18
|
import type { Event } from "../events/Event.js";
|
|
19
|
-
import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $benign, $contentType, $css, $derived, $doc, $externalFormNames, $focused, $forLabels, $formAttrSeen, $formControlsVersion, $forms, $ids, $implementation, $isHTML, $mode, $radios, $ranges, $selection, $styleVersion, $templateContentsOwner, $treeVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
|
|
19
|
+
import { $aboutBase, $baseFor, $baseOverride, $baseURL, $baseVersion, $benign, $contentType, $css, $derived, $doc, $externalFormNames, $focused, $forLabels, $formAttrSeen, $controlNamesVersion, $labelsVersion, $formControlsVersion, $nameBlanked, $nameBlankedValue, $forms, $ids, $implementation, $isHTML, $mode, $radios, $ranges, $selection, $styleVersion, $templateContentsOwner, $treeVersion, $url, $version, $window, $writeBuffer } from "../keys.js";
|
|
20
20
|
export declare class Document extends Node {
|
|
21
21
|
/** Browsing context's window, or null for documents created via DOMImplementation / new Document(). */
|
|
22
22
|
[$window]: Window | null;
|
|
@@ -64,6 +64,13 @@ export declare class Document extends Node {
|
|
|
64
64
|
[$formAttrSeen]: boolean;
|
|
65
65
|
/** Non-structural changes to form ownership or the category of listed controls. */
|
|
66
66
|
[$formControlsVersion]: number;
|
|
67
|
+
/** Changes to label associations other than the tree's (keys.ts $labelsVersion). */
|
|
68
|
+
[$labelsVersion]: number;
|
|
69
|
+
/** `id` and `name` attribute changes: stamps a form's index of its controls by name. */
|
|
70
|
+
[$controlNamesVersion]: number;
|
|
71
|
+
/** An element whose `name` was set to "" and not yet set again, with the name it had (attributes.ts). */
|
|
72
|
+
[$nameBlanked]: NodeImpl | null;
|
|
73
|
+
[$nameBlankedValue]: string;
|
|
67
74
|
/** Named controls whose form owner can change on a mutation elsewhere in the tree. */
|
|
68
75
|
[$externalFormNames]?: ExternalNames;
|
|
69
76
|
/**
|
|
@@ -154,8 +161,8 @@ export declare class Document extends Node {
|
|
|
154
161
|
/**
|
|
155
162
|
* https://drafts.csswg.org/cssom-view/#dom-document-elementfrompoint — the DocumentOrShadowRoot
|
|
156
163
|
* hit test (ShadowRoot.ts has the same pair). With no layout there is no box at any point, so
|
|
157
|
-
* the result is null, as for a point outside the viewport. jsdom has neither method
|
|
158
|
-
* (window/compat.ts).
|
|
164
|
+
* the result is null, as for a point outside the viewport. jsdom has neither method, and
|
|
165
|
+
* axe-core depends on that, so only the "modern" profile exposes them (window/compat.ts).
|
|
159
166
|
*/
|
|
160
167
|
elementFromPoint(_x: number, _y: number): Element | null;
|
|
161
168
|
/** https://drafts.csswg.org/cssom-view/#dom-document-elementsfrompoint — an empty sequence, as above. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Document } from "./Document.js";
|
|
1
2
|
import { AttrRecord, type NodeImpl } from "./NodeImpl.js";
|
|
2
3
|
/** Connected elements keyed by an attribute value. Allocate a list only when a key is shared. */
|
|
3
4
|
export type ElementIndex = Map<string, NodeImpl | NodeImpl[]>;
|
|
@@ -67,6 +68,8 @@ export declare function removeAttributeByLocalName(el: NodeImpl, localName: stri
|
|
|
67
68
|
* attribute bookkeeping (id index, class token cache, style flag, document version).
|
|
68
69
|
*/
|
|
69
70
|
export declare function handleAttributeChanges(el: NodeImpl, a: AttrRecord, oldValue: string | null, newValue: string | null): void;
|
|
71
|
+
/** A name set to "" is in effect for whoever looks now: count it (see noteNameChange). */
|
|
72
|
+
export declare function flushBlankedName(doc: Document): void;
|
|
70
73
|
/**
|
|
71
74
|
* Parser/clone fast path: append an attribute to a DETACHED element without mutation
|
|
72
75
|
* records, hooks or version bumps, but with core bookkeeping (id mirror, style flag).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Document } from "../nodes/Document.js";
|
|
2
2
|
import type { NodeImpl } from "../nodes/NodeImpl.js";
|
|
3
|
-
export { parseXML,
|
|
3
|
+
export { parseXML, PARSERERROR_NS } from "./xml.js";
|
|
4
4
|
/** Options for the HTML parser entry points. */
|
|
5
5
|
export interface HTMLParseOptions {
|
|
6
6
|
/** Scripting flag (affects <noscript>). Default false: like jsdom, scripts never run here. */
|
|
@@ -83,8 +83,6 @@ export declare class CompileInfo {
|
|
|
83
83
|
forgivingDropped: boolean;
|
|
84
84
|
constructor();
|
|
85
85
|
}
|
|
86
|
-
/** Pack (a, b, c) into one comparable number (each component saturates at 1023). */
|
|
87
|
-
export declare function packSpecificity(a: number, b: number, c: number): number;
|
|
88
86
|
export declare function unpackSpecificity(s: number): [number, number, number];
|
|
89
87
|
/** https://drafts.csswg.org/selectors-4/#specificity-rules */
|
|
90
88
|
export declare function complexSpecificity(cx: Complex): number;
|
|
@@ -12,11 +12,7 @@ export declare function indexedDescendantById(root: NodeImpl, id: string): NodeI
|
|
|
12
12
|
export declare function querySelector(root: NodeImpl, selectors: string): NodeImpl | null;
|
|
13
13
|
/** https://dom.spec.whatwg.org/#dom-parentnode-queryselectorall (static NodeList) */
|
|
14
14
|
export declare function querySelectorAll(root: NodeImpl, selectors: string): NodeList;
|
|
15
|
-
/** Internal variant of querySelectorAll returning impls (no NodeList allocation). The array is fresh and owned by the caller. */
|
|
16
|
-
export declare function querySelectorAllImpls(root: NodeImpl, selectors: string, out?: NodeImpl[]): NodeImpl[];
|
|
17
15
|
/** https://dom.spec.whatwg.org/#dom-element-matches */
|
|
18
16
|
export declare function matches(el: NodeImpl, selectors: string): boolean;
|
|
19
17
|
/** https://dom.spec.whatwg.org/#dom-element-closest */
|
|
20
18
|
export declare function closest(el: NodeImpl, selectors: string): NodeImpl | null;
|
|
21
|
-
/** Whether `selectors` parses as a valid selector list (no exception). */
|
|
22
|
-
export declare function isValidSelector(selectors: string): boolean;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { NodeImpl } from "../nodes/NodeImpl.js";
|
|
2
2
|
import { type NamespaceContext } from "./serialize.js";
|
|
3
|
-
import { type CComplex, CompileInfo, KEY_CLASS, KEY_ID, KEY_NONE, KEY_TAG,
|
|
3
|
+
import { type CComplex, CompileInfo, KEY_CLASS, KEY_ID, KEY_NONE, KEY_TAG, unpackSpecificity } from "./compile.js";
|
|
4
4
|
import { $cx, $info } from "../keys.js";
|
|
5
|
-
export { KEY_NONE, KEY_ID, KEY_CLASS, KEY_TAG,
|
|
5
|
+
export { KEY_NONE, KEY_ID, KEY_CLASS, KEY_TAG, unpackSpecificity };
|
|
6
6
|
export { buildAncestorFilter, mayMatchAncestors } from "./filter.js";
|
|
7
7
|
export { beginStateDeps, endStateDeps, stateDepsHold, type StateDeps } from "./compile.js";
|
|
8
|
-
export {
|
|
9
|
-
export { setHoverTarget, setActiveTarget, setPseudoClassPredicate, interaction, type Predicate } from "./state.js";
|
|
8
|
+
export { setHoverTarget, setActiveTarget } from "./state.js";
|
|
10
9
|
/** One complex selector of a compiled list. */
|
|
11
10
|
export declare class CompiledSelector {
|
|
12
11
|
/** Source text of this complex selector (trimmed). */
|
|
@@ -83,7 +82,5 @@ export declare function matchesSelector(sel: CompiledSelector, el: NodeImpl, pse
|
|
|
83
82
|
* (`direct`) run their matcher without the save/restore and try/finally.
|
|
84
83
|
*/
|
|
85
84
|
export declare function matchesSelectorDirect(sel: CompiledSelector, el: NodeImpl, pseudoElement: string): boolean;
|
|
86
|
-
/** Whether any selector of the list matches. */
|
|
87
|
-
export declare function matchesSelectorList(list: CompiledSelectorList, el: NodeImpl, pseudoElement?: string | null, options?: MatchOptions): boolean;
|
|
88
85
|
/** Highest specificity among the selectors of `list` that match `el` (-1 when none match). */
|
|
89
86
|
export declare function matchingSpecificity(list: CompiledSelectorList, el: NodeImpl, pseudoElement?: string | null, options?: MatchOptions): number;
|
|
@@ -136,7 +136,6 @@ export declare const P_HOST = 29;
|
|
|
136
136
|
export declare const P_LINK = 30;
|
|
137
137
|
export declare const P_ANY_LINK = 31;
|
|
138
138
|
export declare const P_VISITED = 32;
|
|
139
|
-
export declare const P_LOCAL_LINK = 33;
|
|
140
139
|
export declare const P_TARGET = 34;
|
|
141
140
|
export declare const P_TARGET_WITHIN = 35;
|
|
142
141
|
export declare const P_DEFINED = 36;
|
|
@@ -162,9 +161,7 @@ export declare const P_OUT_OF_RANGE = 63;
|
|
|
162
161
|
export declare const P_USER_VALID = 64;
|
|
163
162
|
export declare const P_USER_INVALID = 65;
|
|
164
163
|
export declare const P_AUTOFILL = 66;
|
|
165
|
-
export declare const P_BLANK = 67;
|
|
166
164
|
export declare const P_OPEN = 70;
|
|
167
|
-
export declare const P_CLOSED = 71;
|
|
168
165
|
export declare const P_POPOVER_OPEN = 72;
|
|
169
166
|
export declare const P_MODAL = 73;
|
|
170
167
|
export declare const P_FULLSCREEN = 74;
|
|
@@ -306,5 +303,3 @@ export declare class SelectorParser {
|
|
|
306
303
|
}
|
|
307
304
|
/** Parse a selector list; returns null (with `parser.error` set) when invalid. */
|
|
308
305
|
export declare function parseSelectorList(src: string): SelectorList | null;
|
|
309
|
-
/** Like `parseSelectorList` but returns the failure reason ("" on success). */
|
|
310
|
-
export declare function selectorError(src: string): string;
|
|
@@ -36,8 +36,3 @@ export declare function directionality(el: NodeImpl): number;
|
|
|
36
36
|
* compilations (call `clearSelectorCaches()` after registering if that matters).
|
|
37
37
|
*/
|
|
38
38
|
export declare const predicates: Record<string, Predicate>;
|
|
39
|
-
/**
|
|
40
|
-
* Replace the predicate for an element-state pseudo-class (e.g. html-forms registers `checked`,
|
|
41
|
-
* html-elements registers `focus`, `popover-open`, `defined`). Name without the colon.
|
|
42
|
-
*/
|
|
43
|
-
export declare function setPseudoClassPredicate(name: string, fn: Predicate): void;
|
|
@@ -19,8 +19,6 @@ export interface GetHTMLOptions {
|
|
|
19
19
|
* (always the HTML fragment serialization algorithm). `shadowRoots` holds ShadowRoot wrappers.
|
|
20
20
|
*/
|
|
21
21
|
export declare function getHTML(node: NodeImpl, options?: GetHTMLOptions): string;
|
|
22
|
-
/** HTML fragment serialization of `node`'s children, regardless of the document type. */
|
|
23
|
-
export declare function serializeHTMLChildren(node: NodeImpl): string;
|
|
24
22
|
/**
|
|
25
23
|
* https://w3c.github.io/DOM-Parsing/#dfn-concept-serialize-xml — throws an
|
|
26
24
|
* "InvalidStateError" DOMException when `requireWellFormed` and the node cannot be serialized.
|