PageSourceSearch

https://auth.scriptit.ch/static/dist/chunks/MBUB4T24.js

js scriptit.ch collected 2026-10-08 03:59:05 UTC 1,201 bytes, 2 lines download raw bytes

1import{d as n,e as o}from"./62S5E4I4.js";var r=class extends Error{constructor(i,{target:u,...l}){super(i,l);this.name="FocusAssertionError";this.target=u}};function c(t){if(!t)throw new r("Skipping focus, no target",{target:null});if(!(t instanceof HTMLElement))throw new r("Skipping focus, target is not an HTMLElement",{target:t});if(document.activeElement===t)throw new r("Target is already focused",{target:t});if(!(t.checkVisibility?.()??!0))throw new r("Skipping focus, target is not visible",{target:t});if(typeof t.focus!="function")throw new r("Skipping focus, target has no focus method",{target:t})}function f(t,e){return!e||!("shadowRoot"in e)||e.shadowRoot===null?!1:e.shadowRoot.activeElement===t?!0:f(e.shadowRoot.activeElement,e)}function a(t){try{return c(t),!0}catch(e){return e instanceof r?console.debug(e.message,e.target):console.error("Unexpected error during focus assertion",e),!1}}var s=class{constructor(e=n()){this.focus=e=>{a(this.target)&&this.target.focus(e)};this.reference=e}get target(){return this.reference.value||null}toRef(){return o(this.reference)}toEventListener(e){return()=>this.focus(e)}};export{f as a,a as b,s as c};
2//# sourceMappingURL=MBUB4T24.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.