PageSourceSearch

https://sibarth.com/_nuxt/C2Ff1z4l.js

js sibarth.com collected 2026-09-26 17:21:08 UTC 1,221 bytes, 1 lines download raw bytes

1import{B as e,Ct as t,St as n,V as r,lt as i}from"./n-NTxnKu.js";import{c as a,s as o}from"./DnfenCjP.js";import{t as s}from"./Civc42VZ.js";function c(c={},l){let u=n({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:d,keyup:f}=c,p=e=>{switch(e.key){case`Control`:u.ctrl=!0;break;case`Meta`:u.command=!0,u.win=!0;break;case`Shift`:u.shift=!0;break;case`Tab`:u.tab=!0}d!==void 0&&Object.keys(d).forEach(t=>{if(t!==e.key)return;let n=d[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},m=e=>{switch(e.key){case`Control`:u.ctrl=!1;break;case`Meta`:u.command=!1,u.win=!1;break;case`Shift`:u.shift=!1;break;case`Tab`:u.tab=!1}f!==void 0&&Object.keys(f).forEach(t=>{if(t!==e.key)return;let n=f[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},h=()=>{(l===void 0||l.value)&&(a(`keydown`,document,p),a(`keyup`,document,m)),l!==void 0&&i(l,e=>{e?(a(`keydown`,document,p),a(`keyup`,document,m)):(o(`keydown`,document,p),o(`keyup`,document,m))})};return s()?(e(h),r(()=>{(l===void 0||l.value)&&(o(`keydown`,document,p),o(`keyup`,document,m))})):h(),t(u)}export{c as t};

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.