1import{q as E,ab as C,ah as P,ai as N,aj as M,p as S,ak as j,X as B,z as p,al as m,e as b,a5 as F,u as H}from"./BXk3M5o9.js";function V(e){return P()?(N(e),!0):!1}const x=new WeakMap,A=(...e)=>{var t;const n=e[0],s=(t=M())==null?void 0:t.proxy;if(s==null&&!j())throw new Error("injectLocal must be called in setup");return s&&x.has(s)&&n in x.get(s)?x.get(s)[n]:B(...e)},L=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const k=Object.prototype.toString,D=e=>k.call(e)==="[object Object]",O=()=>{};function G(e,t){function n(...s){return new Promise((d,l)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(d).catch(l)})}return n}function _(e,t={}){let n,s,d=O;const l=u=>{clearTimeout(u),d(),d=O};let a;return u=>{const r=p(e),c=p(t.maxWait);return n&&l(n),r<=0||c!==void 0&&c<=0?(s&&(l(s),s=void 0),Promise.resolve(u())):new Promise((i,f)=>{d=t.rejectOnCancel?f:i,a=u,c&&!s&&(s=setTimeout(()=>{n&&l(n),s=void 0,i(a())},c)),n=setTimeout(()=>{s&&l(s),s=void 0,i(u())},r)})}}function T(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function W(e){return Array.isArray(e)?e:[e]}function Q(e){return M()}function q(e,t=200,n={}){return G(_(t,n),e)}function z(e,t=!0,n){Q()?E(e,n):t?e():C(e)}function Y(e,t,n){return S(e,t,{...n,immediate:!0})}const g=L?window:void 0;function w(e){var t;const n=p(e);return(t=n?.$el)!=null?t:n}function I(...e){const t=[],n=()=>{t.forEach(o=>o()),t.length=0},s=(o,u,r,c)=>(o.addEventListener(u,r,c),()=>o.removeEventListener(u,r,c)),d=b(()=>{const o=W(p(e[0])).filter(u=>u!=null);return o.every(u=>typeof u!="string")?o:void 0}),l=Y(()=>{var o,u;return[(u=(o=d.value)==null?void 0:o.map(r=>w(r)))!=null?u:[g].filter(r=>r!=null),W(p(d.value?e[1]:e[0])),W(H(d.value?e[2]:e[1])),p(d.value?e[3]:e[2])]},([o,u,r,c])=>{if(n(),!o?.length||!u?.length||!r?.length)return;const i=D(c)?{...c}:c;t.push(...o.flatMap(f=>u.flatMap(v=>r.map(h=>s(f,v,h,i)))))},{flush:"post"}),a=()=>{l(),n()};return V(n),a}function $(){const e=m(!1),t=M();return t&&E(()=>{e.value=!0},t),e}function R(e){const t=$();return b(()=>(t.value,!!e()))}const U=Symbol("vueuse-ssr-width");function X(){const e=j()?A(U,null):null;return typeof e=="number"?e:void 0}function J(e,t={}){const{window:n=g,ssrWidth:s=X()}=t,d=R(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),l=m(typeof s=="number"),a=m(),o=m(!1),u=r=>{o.value=r.matches};return F(()=>{if(l.value){l.value=!d.value;const r=p(e).split(",");o.value=r.some(c=>{const i=c.includes("not all"),f=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),v=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let h=!!(f||v);return f&&h&&(h=s>=T(f[1])),v&&h&&(h=s<=T(v[1])),i?!h:h});return}d.value&&(a.value=n.matchMedia(p(e)),o.value=a.value.matches)}),I(a,"change",u,{passive:!0}),b(()=>o.value)}function K(e,t,n={}){const{window:s=g,...d}=n;let l;const a=R(()=>s&&"ResizeObserver"in s),o=()=>{l&&(l.disconnect(),l=void 0)},u=b(()=>{const i=p(e);return Array.isArray(i)?i.map(f=>w(f)):[w(i)]}),r=S(u,i=>{if(o(),a.value&&s){l=new ResizeObserver(t);for(const f of i)f&&l.observe(f,d)}},{immediate:!0,flush:"post"}),c=()=>{o(),r()};return V(c),{isSupported:a,stop:c}}function ee(e,t={width:0,height:0},n={}){const{window:s=g,box:d="content-box"}=n,l=b(()=>{var i,f;return(f=(i=w(e))==null?void 0:i.namespaceURI)==null?void 0:f.includes("svg")}),a=m(t.width),o=m(t.height),{stop:u}=K(e,([i])=>{const f=d==="border-box"?i.borderBoxSize:d==="content-box"?i.contentBoxSize:i.devicePixelContentBoxSize;if(s&&l.value){const v=w(e);if(v){const h=v.getBoundingClientRect();a.value=h.width,o.value=h.height}}else if(f){const v=W(f);a.value=v.reduce((h,{inlineSize:y})=>h+y,0),o.value=v.reduce((h,{blockSize:y})=>h+y,0)}else a.value=i.contentRect.width,o.value=i.contentRect.height},n);z(()=>{const i=w(e);i&&(a.value="offsetWidth"in i?i.offsetWidth:t.width,o.value="offsetHeight"in i?i.offsetHeight:t.height)});const r=S(()=>w(e),i=>{a.value=i?t.width:0,o.value=i?t.height:0});function c(){u(),r()}return{width:a,height:o,stop:c}}function te(e={}){const{window:t=g,initialWidth:n=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:d=!0,includeScrollbar:l=!0,type:a="inner"}=e,o=m(n),u=m(s),r=()=>{if(t)if(a==="outer")o.value=t.outerWidth,u.value=t.outerHeight;
1else if(a==="visual"&&t.visualViewport){const{width:i,height:f,scale:v}=t.visualViewport;o.value=Math.round(i*v),u.value=Math.round(f*v)}else l?(o.value=t.innerWidth,u.value=t.innerHeight):(o.value=t.document.documentElement.clientWidth,u.value=t.document.documentElement.clientHeight)};r(),z(r);const c={passive:!0};if(I("resize",r,c),t&&a==="visual"&&t.visualViewport&&I(t.visualViewport,"resize",r,c),d){const i=J("(orientation: portrait)");S(i,()=>r())}return{width:o,height:u}}export{ee as a,te as b,q 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.