1var U=Object.defineProperty;var _=(r,e,n)=>e in r?U(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var v=(r,e,n)=>_(r,typeof e!="symbol"?e+"":e,n);import"./CWj6FrbW.js";import{k as b,i as A,j as C,l as i,o as P,m as o,p as w,e as I,g as T,a as M,d as x,q as k}from"./l1hKWqOs.js";import{s as B}from"./By0cxIGp.js";import{i as D}from"./I75Kd7Vl.js";import{b as g,w as l,e as L}from"./DUWrkV77.js";import{o as h}from"./lU6EeHTF.js";import{P as j}from"./B6Dpx3uV.js";function q(r){b().then(r)}function z(r,e){const n=g(r);function u(t){return e[n.current][t]??n.current}return{state:n,dispatch:t=>{n.current=u(t)}}}function F(r,e){let n=A(C({})),u=A("none");const s=r.current?"mounted":"unmounted";let t=A(null);const c=new j(()=>r.current);l([()=>e.current,()=>r.current],([a,f])=>{!a||!f||q(()=>{o(t,document.getElementById(a),!0)})});const{state:d,dispatch:m}=z(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});l(()=>r.current,a=>{if(i(t)||o(t,document.getElementById(e.current),!0),!i(t)||!(a!==c.current))return;const p=i(u),y=N(i(t));a?m("MOUNT"):y==="none"||i(n).display==="none"?m("UNMOUNT"):m(c&&p!==y?"ANIMATION_OUT":"UNMOUNT")});function E(a){if(i(t)||o(t,document.getElementById(e.current),!0),!i(t))return;const f=N(i(t)),p=f.includes(a.animationName)||f==="none";a.target===i(t)&&p&&m("ANIMATION_END")}function O(a){i(t)||o(t,document.getElementById(e.current),!0),i(t)&&a.target===i(t)&&o(u,N(i(t)),!0)}l(()=>d.current,()=>{if(i(t)||o(t,document.getElementById(e.current),!0),!i(t))return;const a=N(i(t));o(u,d.current==="mounted"?a:"none",!0)}),l(()=>i(t),a=>{if(a)return o(n,getComputedStyle(a),!0),L(h(a,"animationstart",O),h(a,"animationcancel",E),h(a,"animationend",E))});const S=P(()=>["mounted","unmountSuspended"].includes(d.current));return{get current(){return i(S)}}}function N(r){return r&&getComputedStyle(r).animationName||"none"}function Y(r,e){w(e,!0);const n=F(g.with(()=>e.present),g.with(()=>e.id));var u=I(),s=T(u);{var t=c=>{var d=I(),m=T(d);B(m,()=>e.presence??k,()=>({present:n})),M(c,d)};D(s,c=>{(e.forceMount||e.present||n.current)&&c(t)})}M(r,u),x()}function Z(r,e,n,u){const s=Array.isArray(e)?e:[e];return s.forEach(t=>r.addEventListener(t,n,u)),()=>{s.forEach(t=>r.removeEventListener(t,n,u))}}class ${constructor(e,n={bubbles:!0,cancelable:!0}){v(this,"eventName");v(this,"options");this.eventName=e,this.options=n}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,n){const u=this.createEvent(n);return e.dispatchEvent(u),u}listen(e,n,u){const s=t=>{n(t)};return h(e,this.eventName,s,u)}}export{$ as C,Y as P,q as a,Z as b,z 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.