import{I as k,J as _,K as A,L as R,M as x,N as D,O as F,P as L,Q as p,R as S,T,U as C,V as O,W as P,X as U,Y,Z}from"./C75YQU_W.js";function H(b,g,y=!1){_&&A();var r=b,t=null,s=null,e=O,E=y?R:0,l=!1;const I=(n,a=!0)=>{l=!0,d(a,n)};var f=null;function o(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var n=e?t:s,a=e?s:t;n&&U(n),a&&Y(a,()=>{e?s=null:t=null})}const d=(n,a)=>{if(e===(e=n))return;let u=!1;if(_){const N=x(r)===D;!!e===N&&(r=F(),L(r),p(!1),u=!0)}var v=P(),i=r;if(v&&(f=document.createDocumentFragment(),f.append(i=S())),e?t??=a&&T(()=>a(i)):s??=a&&T(()=>a(i)),v){var c=C,h=e?t:s,m=e?s:t;h&&c.skipped_effects.delete(h),m&&c.skipped_effects.add(m),c.add_callback(o)}else o();u&&p(!0)};k(()=>{l=!1,g(I),l||d(null,null)},E),_&&(r=Z)}export{H as i};
