1import{X as h,az as j,K as S,a0 as v,a2 as T,a1 as M,B as O,J as W,aU as b,a4 as A,s as g,aV as C,T as m}from"./B7YjapCH.js";function L(t){return T()?(M(t),!0):!1}const p=new WeakMap,V=(...t)=>{var e;const r=t[0],n=(e=h())==null?void 0:e.proxy;if(n==null&&!j())throw new Error("injectLocal must be called in setup");return n&&p.has(n)&&r in p.get(n)?p.get(n)[r]:S(...t)},_=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const N=Object.prototype.toString,G=t=>N.call(t)==="[object Object]",d=()=>{},U=(t,e)=>(t=Math.ceil(t),e=Math.floor(e),Math.floor(Math.random()*(e-t+1))+t);function P(...t){if(t.length!==1)return A(...t);const e=t[0];return typeof e=="function"?b(C(()=>({get:e,set:d}))):g(e)}function y(t,e){function r(...n){return new Promise((o,i)=>{Promise.resolve(t(()=>e.apply(this,n),{fn:e,thisArg:this,args:n})).then(o).catch(i)})}return r}const w=t=>t();function k(t,e={}){let r,n,o=d;const i=a=>{clearTimeout(a),o(),o=d};let s;return a=>{const l=m(t),c=m(e.maxWait);return r&&i(r),l<=0||c!==void 0&&c<=0?(n&&(i(n),n=void 0),Promise.resolve(a())):new Promise((f,F)=>{o=e.rejectOnCancel?F:f,s=a,c&&!n&&(n=setTimeout(()=>{r&&i(r),n=void 0,f(s())},c)),r=setTimeout(()=>{n&&i(n),n=void 0,f(a())},l)})}}function x(t=w,e={}){const{initialState:r="active"}=e,n=P(r==="active");function o(){n.value=!1}function i(){n.value=!0}const s=(...u)=>{n.value&&t(...u)};return{isActive:b(n),pause:o,resume:i,eventFilter:s}}function z(t,e){var r;if(typeof t=="number")return t+e;const n=((r=t.match(/^-?\d+\.?\d*/))==null?void 0:r[0])||"",o=t.slice(n.length),i=Number.parseFloat(n)+e;return Number.isNaN(i)?t:i+o}function B(t){return t.endsWith("rem")?Number.parseFloat(t)*16:Number.parseFloat(t)}function E(t){return Array.isArray(t)?t:[t]}function D(t){return h()}function J(t,e=200,r={}){return y(k(e,r),t)}function I(t,e,r={}){const{eventFilter:n=w,...o}=r;return v(t,y(n,e),o)}function K(t,e,r={}){const{eventFilter:n,initialState:o="active",...i}=r,{eventFilter:s,pause:u,resume:a,isActive:l}=x(n,{initialState:o});return{stop:I(t,e,{...i,eventFilter:s}),pause:u,resume:a,isActive:l}}function X(t,e=!0,r){D()?O(t,r):e?t():W(t)}function $(t,e,r){return v(t,e,{...r,immediate:!0})}export{_ as a,L as b,G as c,X as d,z as e,K as f,V as i,B as p,U as r,E as t,J as u,$ as w};
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.