1import{cV as g,aT as I,eS as V,aY as R,eT as $,cX as b,eU as q,eV as z,eW as D,eX as M,eY as U,d4 as _,bc as X,bR as Y,eZ as Z,b4 as j,e_ as O,cr as P,e$ as B,aZ as F,c7 as k,dM as G,bG as H,aW as K}from"./BKtmRkjI.js";function oe(s,u,a){let i;H(a)?i={evaluating:a}:i={};const{lazy:c=!1,flush:r="pre",evaluating:l=void 0,shallow:n=!0,onError:e=O}=i,o=g(!c),t=n?g(u):K(u);let d=0;return P(async p=>{if(!o.value)return;d++;const m=d;let f=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const w=await s(y=>{p(()=>{l&&(l.value=!1),f||y()})});m===d&&(t.value=w)}catch(w){e(w)}finally{l&&m===d&&(l.value=!1),f=!0}},{flush:r}),c?R(()=>(o.value=!0,t.value)):t}function se(s={}){const{inheritAttrs:u=!0}=s,a=g(),i=I({setup(r,{slots:l}){return()=>{a.value=l.default}}}),c=I({inheritAttrs:u,props:s.props,setup(r,{attrs:l,slots:n}){return()=>{var e;a.value;const o=(e=a.value)==null?void 0:e.call(a,{...s.props==null?J(l):r,$slots:n});return u&&(o==null?void 0:o.length)===1?o[0]:o}}});return V({define:i,reuse:c},[i,c])}function J(s){const u={};for(const a in s)u[q(a)]=s[a];return u}const A=z?window:void 0,N=z?window.navigator:void 0;function E(s){var u;const a=b(s);return(u=a==null?void 0:a.$el)!=null?u:a}function T(...s){const u=[],a=()=>{u.forEach(n=>n()),u.length=0},i=(n,e,o,t)=>(n.addEventListener(e,o,t),()=>n.removeEventListener(e,o,t)),c=R(()=>{const n=M(b(s[0])).filter(e=>e!=null);return n.every(e=>typeof e!="string")?n:void 0}),r=U(()=>{var n,e;return[(e=(n=c.value)==null?void 0:n.map(o=>E(o)))!=null?e:[A].filter(o=>o!=null),M(b(c.value?s[1]:s[0])),M(j(c.value?s[2]:s[1])),b(c.value?s[3]:s[2])]},([n,e,o,t])=>{if(a(),!(n!=null&&n.length)||!(e!=null&&e.length)||!(o!=null&&o.length))return;const d=Z(t)?{...t}:t;u.push(...n.flatMap(p=>e.flatMap(m=>o.map(f=>i(p,m,f,d)))))},{flush:"post"}),l=()=>{r(),a()};return _(a),l}function Q(){const s=g(!1),u=Y();return u&&X(()=>{s.value=!0},u),s}function x(s){const u=Q();return R(()=>(u.value,!!s()))}function ee(s,u,a={}){const{window:i=A,...c}=a;let r;const l=x(()=>i&&"MutationObserver"in i),n=()=>{r&&(r.disconnect(),r=void 0)},e=R(()=>{const p=b(s),m=M(p).map(E).filter(B);return new Set(m)}),o=F(()=>e.value,p=>{n(),l.value&&p.size&&(r=new MutationObserver(u),p.forEach(m=>r.observe(m,c)))},{immediate:!0,flush:"post"}),t=()=>r==null?void 0:r.takeRecords(),d=()=>{o(),n()};return _(d),{isSupported:l,stop:d,takeRecords:t}}function te(s,u,a={}){const{window:i=A,document:c=i==null?void 0:i.document,flush:r="sync"}=a;if(!i||!c)return O;let l;const n=t=>{l==null||l(),l=t},e=P(()=>{const t=E(s);if(t){const{stop:d}=ee(c,p=>{p.map(f=>[...f.removedNodes]).flat().some(f=>f===t||f.contains(t))&&u(p)},{window:i,childList:!0,subtree:!0});n(d)}},{flush:r}),o=()=>{e(),n()};return _(o),o}function ue(s={}){var u;const{window:a=A,deep:i=!0,triggerOnRemoval:c=!1}=s,r=(u=s.document)!=null?u:a==null?void 0:a.document,l=()=>{var o;let t=r==null?void 0:r.activeElement;if(i)for(;t!=null&&t.shadowRoot;)t=(o=t==null?void 0:t.shadowRoot)==null?void 0:o.activeElement;return t},n=g(),e=()=>{n.value=l()};if(a){const o={capture:!0,passive:!0};T(a,"blur",t=>{t.relatedTarget===null&&e()},o),T(a,"focus",e,o)}return c&&te(n,e,{document:r}),e(),n}function L(s,u={}){const{controls:a=!1,navigator:i=N}=u,c=x(()=>i&&"permissions"in i),r=g(),l=typeof s=="string"?{name:s}:s,n=g(),e=()=>{var t,d;n.value=(d=(t=r.value)==null?void 0:t.state)!=null?d:"prompt"};T(r,"change",e,{passive:!0});const o=D(async()=>{if(c.value){if(!r.value)try{r.value=await i.permissions.query(l)}catch{r.value=void 0}finally{e()}if(a)return k(r.value)}});return o(),a?{state:n,isSupported:c,query:o}:n}function ae(s={}){const{navigator:u=N,read:a=!1,source:i,copiedDuring:c=1500,legacy:r=!1}=s,l=x(()=>u&&"clipboard"in u),n=L("clipboard-read"),e=L("clipboard-write"),o=R(()=>l.value||r),t=g(""),d=g(!1),p=$(()=>d.value=!1,c,{immediate:!1});async function m(){let v=!(l.value&&S(n.value));if(!v)try{t.value=await u.clipboard.readText()}catch{v=!0}v&&(t.value=y())}o.value&&a&&T(["copy","cut"],m,{passive:!0});async function f(v=b(i)){if(o.value&&v!=null){let h=!(l.value&&S(e.value));if(!h)try{await u.clipboard.writeText(v)}catch{h=!0}h&&w(v),t.value=v,d.value=!0,p.start()}}function w(v){const h=document.createElement("textarea");h.value=v??"",h.style.position="absolute",h.style.opacity="0",document.body.appendChild(h),h.select(),document.execCommand("copy"),h.remove()}function y(){var v,h,W;return(W=(h=(v=document==null?void 0:document.getSelection)==null?void 0:v.call(document))==null?void 0:h.toString())!=null?W:""}function S(v){return v==="granted"||v==="prompt"}return{isSupported:o,text:t,copied:d,copy:f}}function re(s,u,a={}){const{root:i,rootMargin:c="0px",threshold:r=0,window:l=A,immediate:n=!0}=a,e=x(()=>l&&"IntersectionObserver"in l),o=R(()=>{const f=b(s);
1return M(f).map(E).filter(B)});let t=O;const d=g(n),p=e.value?F(()=>[o.value,E(i),d.value],([f,w])=>{if(t(),!d.value||!f.length)return;const y=new IntersectionObserver(u,{root:E(w),rootMargin:c,threshold:r});f.forEach(S=>S&&y.observe(S)),t=()=>{y.disconnect(),t=O}},{immediate:n,flush:"post"}):O,m=()=>{t(),p(),d.value=!1};return _(m),{isSupported:e,isActive:d,pause(){t(),d.value=!1},resume(){d.value=!0},stop:m}}const C=new Map;function le(s){const u=G();function a(n){var e;const o=C.get(s)||new Set;o.add(n),C.set(s,o);const t=()=>c(n);return(e=u==null?void 0:u.cleanups)==null||e.push(t),t}function i(n){function e(...o){c(e),n(...o)}return a(e)}function c(n){const e=C.get(s);e&&(e.delete(n),e.size||r())}function r(){C.delete(s)}function l(n,e){var o;(o=C.get(s))==null||o.forEach(t=>t(n,e))}return{on:a,once:i,off:c,emit:l,reset:r}}export{oe as a,T as b,se as c,re as d,ae as e,ue as f,le as u};
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.