1var Qt=Object.defineProperty;var $t=Object.getPrototypeOf;var er=Reflect.get;var Et=r=>{throw TypeError(r)};var tr=(r,e,t)=>e in r?Qt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var L=(r,e,t)=>tr(r,typeof e!="symbol"?e+"":e,t),pt=(r,e,t)=>e.has(r)||Et("Cannot "+t);var s=(r,e,t)=>(pt(r,e,"read from private field"),t?t.call(r):e.get(r)),u=(r,e,t)=>e.has(r)?Et("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),O=(r,e,t,n)=>(pt(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),x=(r,e,t)=>(pt(r,e,"access private method"),t);var Tt=(r,e,t)=>er($t(r),t,e);import{p as v,c as A,a as F,i as ye,f as He,r as ct,s as pe,b as rr}from"./B32D7kwL.mjs";import{ak as I,be as Ft,I as nr,g as a,ac as g,a6 as ve,u as E,Z as me,p as U,f as P,n as z,a as V,bf as sr,$ as ir,c as lt,r as dt,s as It}from"./0NHrAIg1.mjs";import{a as k,c as ft}from"./BQkRD22j.mjs";import{C as _t,u as ee,b as h,w as ne,o as or,a as bt,e as be,c as le,f as ar,P as xt,m as G}from"./B-sGNovC.mjs";import{S as Rt,j as Bt,l as ur,h as cr,n as C,m as lr,o as dr,p as fr,q as hr,r as vt,T as pr,u as Ct,i as vr}from"./W7ARenMT.mjs";import{o as J}from"./XiApIjab.mjs";import{a as Mt,C as Kt}from"./CZCeZfUJ.mjs";import"./DGgFc75h.mjs";var M,K,H,Ye,R,ge,je;const wt=class wt extends Map{constructor(t){super();u(this,R);u(this,M,new Map);u(this,K,I(0));u(this,H,I(0));u(this,Ye,Ft||-1);if(t){for(var[n,i]of t)super.set(n,i);s(this,H).v=super.size}}has(t){var n=s(this,M),i=n.get(t);if(i===void 0){var o=super.get(t);if(o!==void 0)i=x(this,R,ge).call(this,0),n.set(t,i);else return a(s(this,K)),!1}return a(i),!0}forEach(t,n){x(this,R,je).call(this),super.forEach(t,n)}get(t){var n=s(this,M),i=n.get(t);if(i===void 0){var o=super.get(t);if(o!==void 0)i=x(this,R,ge).call(this,0),n.set(t,i);else{a(s(this,K));return}}return a(i),super.get(t)}set(t,n){var T;var i=s(this,M),o=i.get(t),c=super.get(t),l=super.set(t,n),d=s(this,K);
1if(o===void 0)o=x(this,R,ge).call(this,0),i.set(t,o),g(s(this,H),super.size),ve(d);else if(c!==n){ve(o);var y=d.reactions===null?null:new Set(d.reactions),S=y===null||!((T=o.reactions)!=null&&T.every(p=>y.has(p)));S&&ve(d)}return l}delete(t){var n=s(this,M),i=n.get(t),o=super.delete(t);return i!==void 0&&(n.delete(t),g(s(this,H),super.size),g(i,-1),ve(s(this,K))),o}clear(){if(super.size!==0){super.clear();var t=s(this,M);g(s(this,H),0);for(var n of t.values())g(n,-1);ve(s(this,K)),t.clear()}}keys(){return a(s(this,K)),super.keys()}values(){return x(this,R,je).call(this),super.values()}entries(){return x(this,R,je).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return a(s(this,H)),super.size}};M=new WeakMap,K=new WeakMap,H=new WeakMap,Ye=new WeakMap,R=new WeakSet,ge=function(t){return Ft===s(this,Ye)?I(t):nr(t)},je=function(){a(s(this,K));var t=s(this,M);if(s(this,H).v!==t.size){for(var n of Tt(wt.prototype,this,"keys").call(this))if(!t.has(n)){var i=x(this,R,ge).call(this,0);t.set(n,i)}}for([,i]of s(this,M))a(i)};let gt=wt;function yt(r,e){return setTimeout(e,r)}function gr(r){return{content:`data-${r}-content`,trigger:`data-${r}-trigger`,overlay:`data-${r}-overlay`,title:`data-${r}-title`,description:`data-${r}-description`,close:`data-${r}-close`,cancel:`data-${r}-cancel`,action:`data-${r}-action`}}var we,Se,Ee,Te,Fe,Ie,Ce,De,Ne,Le,Pe;class br{constructor(e){L(this,"opts");u(this,we,I(null));u(this,Se,I(null));u(this,Ee,I(null));u(this,Te,I(null));u(this,Fe,I(void 0));u(this,Ie,I(void 0));u(this,Ce,I(void 0));u(this,De,I(void 0));u(this,Ne,I(null));u(this,Le,E(()=>gr(this.opts.variant.current)));u(this,Pe,E(()=>({"data-state":cr(this.opts.open.current)})));this.opts=e,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this)}get triggerNode(){return a(s(this,we))}set triggerNode(e){g(s(this,we),e,!0)}get titleNode(){return a(s(this,Se))}set titleNode(e){g(s(this,Se),e,!0)}get contentNode(){return a(s(this,Ee))}set contentNode(e){g(s(this,Ee),e,!0)}get descriptionNode(){return a(s(this,Te))}set descriptionNode(e){g(s(this,Te),e,!0)}get contentId(){return a(s(this,Fe))}set contentId(e){g(s(this,Fe),e,!0)}get titleId(){return a(s(this,Ie))}set titleId(e){g(s(this,Ie),e,!0)}get triggerId(){return a(s(this,Ce))}set triggerId(e){g(s(this,Ce),e,!0)}get descriptionId(){return a(s(this,De))}set descriptionId(e){g(s(this,De),e,!0)}get cancelNode(){return a(s(this,Ne))}set cancelNode(e){g(s(this,Ne),e,!0)}get attrs(){return a(s(this,Le))}set attrs(e){g(s(this,Le),e)}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}get sharedProps(){return a(s(this,Pe))}set sharedProps(e){g(s(this,Pe),e)}}we=new WeakMap,Se=new WeakMap,Ee=new WeakMap,Te=new WeakMap,Fe=new WeakMap,Ie=new WeakMap,Ce=new WeakMap,De=new WeakMap,Ne=new WeakMap,Le=new WeakMap,Pe=new WeakMap;var ke;class yr{constructor(e,t){L(this,"opts");L(this,"root");u(this,ke,E(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":ur(this.root.opts.open.current),"aria-controls":this.root.contentId,[this.root.attrs.trigger]:"",onkeydown:this.onkeydown,onclick:this.onclick,disabled:this.opts.disabled.current?!0:void 0,...this.root.sharedProps})));this.opts=e,this.root=t,ee({...e,onRefChange:n=>{this.root.triggerNode=n,this.root.triggerId=n==null?void 0:n.id}}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleOpen()}onkeydown(e){this.opts.disabled.current||(e.key===Rt||e.key===Bt)&&(e.preventDefault(),this.root.handleOpen())}get props(){return a(s(this,ke))}set props(e){g(s(this,ke),e)}}ke=new WeakMap;var Ge,Oe;class mr{constructor(e,t){L(this,"opts");L(this,"root");u(this,Ge,E(()=>this.root.attrs[this.opts.variant.current]));u(this,Oe,E(()=>({id:this.opts.id.current,[a(s(this,Ge))]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps})));this.opts=e,this.root=t,this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),ee({...e,deps:()=>this.root.opts.open.current})}onclick(e){this.opts.disabled.current||e.button>0||this.root.handleClose()}onkeydown(e){this.opts.disabled.current||(e.key===Rt||e.key===Bt)&&(e.preventDefault(),this.root.handleClose())}get props(){return a(s(this,Oe))}set props(e){g(s(this,Oe),e)}}Ge=new WeakMap,Oe=new WeakMap;var Ae,_e;class wr{constructor(e,t){L(this,"opts");L(this,"root");u(this,Ae,E(()=>({open:this.root.opts.open.current})));u(this,_e,E(()=>({id:this.opts.id.current,role:this.root.opts.variant.current==="alert-dialog"?"alertdialog":"dialog","aria-modal":"true","aria-describedby":this.root.descriptionId,"aria-labelledby":this.root.titleId,[this.root.attrs.content]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,...this.root.sharedProps})));this.opts=e,this.root=t,ee({...e,deps:()=>this.root.opts.open.current,onRefChange:n=>{this.root.contentNode=n,this.root.contentId=n==null?void 0:n.id}})}get snippetProps(){return a(s(this,Ae))}set snippetProps(e){g(s(this,Ae),e)}get props(){return a(s(this,_e))}set props(e){g(s(this,_e),e)}}Ae=new WeakMap,_e=new WeakMap;var xe,Re;class Sr{constructor(e,t){L(this,"opts");L(this,"root");u(this,xe,E(()=>({open:this.root.opts.open.current})));u(this,Re,E(()=>({id:this.opts.id.current,[this.root.attrs.overlay]:"",style:{pointerEvents:"auto"},...this.root.sharedProps})));this.opts=e,this.root=t,ee({...e,deps:()=>this.root.opts.open.current})}get snippetProps(){return a(s(this,xe))}set snippetProps(e){g(s(this,xe),e)}get props(){return a(s(this,Re))}set props(e){g(s(this,Re),e)}}xe=new WeakMap,Re=new WeakMap;const We=new _t("Dialog.Root");function Er(r){return We.set(new br(r))}function Tr(r){return new yr(r,We.get())}function Fr(r){return new wr(r,We.get())}function Ir(r){return new Sr(r,We.get())}function Cr(r){return new mr(r,We.get())}function Dt(r,e=500){let t=null;const n=(...i)=>{t!==null&&clearTimeout(t),t=setTimeout(()=>{r(...i)},e)};return n.destroy=()=>{t!==null&&(clearTimeout(t),t=null)},n}function mt(r,e){return r===e||r.contains(e)}function Ut(r){return(r==null?void 0:r.ownerDocument)??document}function Dr(r,e){const{clientX:t,clientY:n}=r,i=e.getBoundingClientRect();return t<i.left||t>i.right||n<i.top||n>i.bottom}globalThis.bitsDismissableLayers??(globalThis.bitsDismissableLayers=new Map);var se,$,X,ie,oe,Y,Be,Me,W,Je,ce,Vt,Qe,ae,$e,et,tt,rt,Ke,Ht,nt,st;class Nr{constructor(e){u(this,ce);L(this,"opts");u(this,se);u(this,$);u(this,X,{pointerdown:!1});u(this,ie,!1);u(this,oe,!1);L(this,"node",h(null));u(this,Y);u(this,Be);u(this,Me,I(null));u(this,W,C);u(this,Je,e=>{e.defaultPrevented||this.currNode&&bt(()=>{var t,n;!this.currNode||s(this,rt).call(this,e.target)||e.target&&!s(this,oe)&&((n=(t=s(this,Be)).current)==null||n.call(t,e))})});u(this,Qe,e=>{let t=e;t.defaultPrevented&&(t=Nt(e)),s(this,se).current(e)});u(this,ae,Dt(e=>{if(!this.currNode){s(this,W).call(this);return}const t=this.opts.isValidEvent.current(e,this.currNode)||Or(e,this.currNode);
1if(!s(this,ie)||x(this,ce,Ht).call(this)||!t){s(this,W).call(this);return}let n=e;if(n.defaultPrevented&&(n=Nt(n)),s(this,$).current!=="close"&&s(this,$).current!=="defer-otherwise-close"){s(this,W).call(this);return}e.pointerType==="touch"?(s(this,W).call(this),O(this,W,Mt(s(this,Y),"click",s(this,Qe),{once:!0}))):s(this,se).current(n)},10));u(this,$e,e=>{s(this,X)[e.type]=!0});u(this,et,e=>{s(this,X)[e.type]=!1});u(this,tt,()=>{this.node.current&&O(this,ie,kr(this.node.current))});u(this,rt,e=>this.node.current?mt(this.node.current,e):!1);u(this,Ke,Dt(()=>{for(const e in s(this,X))s(this,X)[e]=!1;O(this,ie,!1)},20));u(this,nt,()=>{O(this,oe,!0)});u(this,st,()=>{O(this,oe,!1)});L(this,"props",{onfocuscapture:s(this,nt),onblurcapture:s(this,st)});this.opts=e,ee({id:e.id,ref:this.node,deps:()=>e.enabled.current,onRefChange:i=>{this.currNode=i}}),O(this,$,e.interactOutsideBehavior),O(this,se,e.onInteractOutside),O(this,Be,e.onFocusOutside),me(()=>{O(this,Y,Ut(this.currNode))});let t=C;const n=()=>{s(this,Ke).call(this),globalThis.bitsDismissableLayers.delete(this),s(this,ae).destroy(),t()};ne([()=>this.opts.enabled.current,()=>this.currNode],([i,o])=>{if(!(!i||!o))return yt(1,()=>{this.currNode&&(globalThis.bitsDismissableLayers.set(this,s(this,$)),t(),t=x(this,ce,Vt).call(this))}),n}),or(()=>{s(this,Ke).destroy(),globalThis.bitsDismissableLayers.delete(this),s(this,ae).destroy(),s(this,W).call(this),t()})}get currNode(){return a(s(this,Me))}set currNode(e){g(s(this,Me),e,!0)}}se=new WeakMap,$=new WeakMap,X=new WeakMap,ie=new WeakMap,oe=new WeakMap,Y=new WeakMap,Be=new WeakMap,Me=new WeakMap,W=new WeakMap,Je=new WeakMap,ce=new WeakSet,Vt=function(){return be(J(s(this,Y),"pointerdown",be(s(this,$e),s(this,tt)),{capture:!0}),J(s(this,Y),"pointerdown",be(s(this,et),s(this,ae))),J(s(this,Y),"focusin",s(this,Je)))},Qe=new WeakMap,ae=new WeakMap,$e=new WeakMap,et=new WeakMap,tt=new WeakMap,rt=new WeakMap,Ke=new WeakMap,Ht=function(){return Object.values(s(this,X)).some(Boolean)},nt=new WeakMap,st=new WeakMap;function Lr(r){return new Nr(r)}function Pr(r){return r.findLast(([e,{current:t}])=>t==="close"||t==="ignore")}function kr(r){const e=[...globalThis.bitsDismissableLayers],t=Pr(e);if(t)return t[0].node.current===r;const[n]=e[0];return n.node.current===r}function Or(r,e){if("button"in r&&r.button>0)return!1;const t=r.target;return lr(t)?Ut(t).documentElement.contains(t)&&!mt(e,t)&&Dr(r,e):!1}function Nt(r){const e=r.currentTarget,t=r.target;let n;r instanceof PointerEvent?n=new PointerEvent(r.type,r):n=new PointerEvent("pointerdown",r);let i=!1;return new Proxy(n,{get:(c,l)=>l==="currentTarget"?e:l==="target"?t:l==="preventDefault"?()=>{i=!0,typeof c.preventDefault=="function"&&c.preventDefault()}:l==="defaultPrevented"?i:l in c?c[l]:r[l]})}function Ar(r,e){U(e,!0);let t=v(e,"interactOutsideBehavior",3,"close"),n=v(e,"onInteractOutside",3,C),i=v(e,"onFocusOutside",3,C),o=v(e,"isValidEvent",3,()=>!1);const c=Lr({id:h.with(()=>e.id),interactOutsideBehavior:h.with(()=>t()),onInteractOutside:h.with(()=>n()),enabled:h.with(()=>e.enabled),onFocusOutside:h.with(()=>i()),isValidEvent:h.with(()=>o())});var l=A(),d=P(l);k(d,()=>e.children??z,()=>({props:c.props})),F(r,l),V()}globalThis.bitsEscapeLayers??(globalThis.bitsEscapeLayers=new Map);var it,ot;class _r{constructor(e){L(this,"opts");u(this,it,()=>J(document,"keydown",s(this,ot),{passive:!1}));u(this,ot,e=>{if(e.key!==dr||!Rr(this))return;const t=new KeyboardEvent(e.type,e);e.preventDefault();const n=this.opts.escapeKeydownBehavior.current;n!=="close"&&n!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(t)});this.opts=e;let t=C;ne(()=>e.enabled.current,n=>(n&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),t=s(this,it).call(this)),()=>{t(),globalThis.bitsEscapeLayers.delete(this)}))}}it=new WeakMap,ot=new WeakMap;function xr(r){return new _r(r)}function Rr(r){const e=[...globalThis.bitsEscapeLayers],t=e.findLast(([i,{current:o}])=>o==="close"||o==="ignore");if(t)return t[0]===r;const[n]=e[0];return n===r}function Br(r,e){U(e,!0);
1let t=v(e,"escapeKeydownBehavior",3,"close"),n=v(e,"onEscapeKeydown",3,C);xr({escapeKeydownBehavior:h.with(()=>t()),onEscapeKeydown:h.with(()=>n()),enabled:h.with(()=>e.enabled)});var i=A(),o=P(i);k(o,()=>e.children??z),F(r,i),V()}const j=h([]);function Mr(){return{add(r){const e=j.current[0];e&&r.id!==e.id&&e.pause(),j.current=Lt(j.current,r),j.current.unshift(r)},remove(r){var e;j.current=Lt(j.current,r),(e=j.current[0])==null||e.resume()},get current(){return j.current}}}function Kr(){let r=I(!1),e=I(!1);return{id:le(),get paused(){return a(r)},get isHandlingFocus(){return a(e)},set isHandlingFocus(t){g(e,t,!0)},pause(){g(r,!0)},resume(){g(r,!1)}}}function Lt(r,e){return[...r].filter(t=>t.id!==e.id)}function Ur(r){return r.filter(e=>e.tagName!=="A")}function Z(r,{select:e=!1}={}){if(!(r&&r.focus)||document.activeElement===r)return;const t=document.activeElement;r.focus({preventScroll:!0}),r!==t&&fr(r)&&e&&r.select()}function Vr(r,{select:e=!1}={}){const t=document.activeElement;for(const n of r)if(Z(n,{select:e}),document.activeElement!==t)return!0}function Pt(r,e){for(const t of r)if(!hr(t,e))return t}function Wt(r){const e=[],t=document.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)e.push(t.currentNode);return e}function Hr(r){const e=Wt(r),t=Pt(e,r),n=Pt(e.reverse(),r);return[t,n]}/*! 2* tabbable 6.2.0 3* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 4*/var Wr=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],zr=Wr.join(","),zt=typeof Element>"u",Ze=zt?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Xe=!zt&&Element.prototype.getRootNode?function(r){var e;return r==null||(e=r.getRootNode)===null||e===void 0?void 0:e.call(r)}:function(r){return r==null?void 0:r.ownerDocument},qr=function r(e,t){var n;t===void 0&&(t=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",c=o||t&&e&&r(e.parentNode);return c},jr=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},Zr=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},Xr=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||jr(e))&&!Zr(e)?0:e.tabIndex},qt=function(e){return e.tagName==="INPUT"},Yr=function(e){return qt(e)&&e.type==="hidden"},Gr=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},Jr=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},Qr=function(e){if(!e.name)return!0;var t=e.form||Xe(e),n=function(l){return t.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(c){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",c.message),!1}var o=Jr(i,e.form);return!o||o===e},$r=function(e){return qt(e)&&e.type==="radio"},en=function(e){return $r(e)&&!Qr(e)},tn=function(e){var t,n=e&&Xe(e),i=(t=n)===null||t===void 0?void 0:t.host,o=!1;if(n&&n!==e){var c,l,d;for(o=!!((c=i)!==null&&c!==void 0&&(l=c.ownerDocument)!==null&&l!==void 0&&l.contains(i)||e!=null&&(d=e.ownerDocument)!==null&&d!==void 0&&d.contains(e));!o&&i;){var y,S,T;n=Xe(i),i=(y=n)===null||y===void 0?void 0:y.host,o=!!((S=i)!==null&&S!==void 0&&(T=S.ownerDocument)!==null&&T!==void 0&&T.contains(i))}}return o}
4,kt=function(e){var t=e.getBoundingClientRect(),n=t.width,i=t.height;return n===0&&i===0},rn=function(e,t){var n=t.displayCheck,i=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=Ze.call(e,"details>summary:first-of-type"),c=o?e.parentElement:e;if(Ze.call(c,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var l=e;e;){var d=e.parentElement,y=Xe(e);if(d&&!d.shadowRoot&&i(d)===!0)return kt(e);e.assignedSlot?e=e.assignedSlot:!d&&y!==e.ownerDocument?e=y.host:e=d}e=l}if(tn(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return kt(e);return!1},nn=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var i=t.children.item(n);if(i.tagName==="LEGEND")return Ze.call(t,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}t=t.parentElement}return!1},sn=function(e,t){return!(t.disabled||qr(t)||Yr(t)||rn(t,e)||Gr(t)||nn(t))},on=function(e,t){return!(en(t)||Xr(t)<0||!sn(e,t))},an=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ze.call(e,zr)===!1?!1:on(t,e)};const un=new Kt("focusScope.autoFocusOnMount",{bubbles:!1,cancelable:!0}),cn=new Kt("focusScope.autoFocusOnDestroy",{bubbles:!1,cancelable:!0}),ln=new _t("FocusScope");function dn({id:r,loop:e,enabled:t,onOpenAutoFocus:n,onCloseAutoFocus:i,forceMount:o}){const c=Mr(),l=Kr(),d=h(null),y=ln.getOr({ignoreCloseAutoFocus:!1});let S=null;ee({id:r,ref:d,deps:()=>t.current});function T(f){if(!(l.paused||!d.current||l.isHandlingFocus)){l.isHandlingFocus=!0;try{const m=f.target;if(!vt(m))return;const w=d.current.contains(m);if(f.type==="focusin")if(w)S=m;else{if(y.ignoreCloseAutoFocus)return;Z(S,{select:!0})}else f.type==="focusout"&&!w&&!y.ignoreCloseAutoFocus&&Z(S,{select:!0})}finally{l.isHandlingFocus=!1}}}function p(f){var w;!((w=d.current)==null?void 0:w.contains(S))&&d.current&&Z(d.current)}ne([()=>d.current,()=>t.current],([f,m])=>{if(!f||!m)return;const w=be(J(document,"focusin",T),J(document,"focusout",T)),N=new MutationObserver(p);return N.observe(f,{childList:!0,subtree:!0}),()=>{w(),N.disconnect()}}),ne([()=>o.current,()=>d.current],([f,m])=>{if(f)return;const w=document.activeElement;return b(m,w),()=>{m&&D(w)}}),ne([()=>o.current,()=>d.current,()=>t.current],([f,m])=>{if(!f)return;const w=document.activeElement;return b(m,w),()=>{m&&D(w)}});function b(f,m){if(f||(f=document.getElementById(r.current)),!f||!t.current)return;if(c.add(l),!f.contains(m)){const N=un.createEvent();n.current(N),N.defaultPrevented||bt(()=>{f&&(Vr(Ur(Wt(f)),{select:!0}),document.activeElement===m&&Z(f))})}}function D(f){const m=cn.createEvent();i.current(m);const w=y.ignoreCloseAutoFocus;yt(0,()=>{!m.defaultPrevented&&f&&!w&&Z(an(f)?f:document.body,{select:!0}),c.remove(l)})}function B(f){if(!t.current||!e.current&&!t.current||l.paused)return;const m=f.key===pr&&!f.ctrlKey&&!f.altKey&&!f.metaKey,w=document.activeElement;if(!(m&&w))return;const N=d.current;if(!N)return;const[te,q]=Hr(N);te&&q?!f.shiftKey&&w===q?(f.preventDefault(),e.current&&Z(te,{select:!0})):f.shiftKey&&w===te&&(f.preventDefault(),e.current&&Z(q,{select:!0})):w===N&&f.preventDefault()}const _=E(()=>({id:r.current,tabindex:-1,onkeydown:B}));return{get props(){return a(_)}}}function fn(r,e){U(e,!0);let t=v(e,"trapFocus",3,!1),n=v(e,"loop",3,!1),i=v(e,"onCloseAutoFocus",3,C),o=v(e,"onOpenAutoFocus",3,C),c=v(e,"forceMount",3,!1);const l=dn({enabled:h.with(()=>t()),loop:h.with(()=>n()),onCloseAutoFocus:h.with(()=>i()),onOpenAutoFocus:h.with(()=>o()),id:h.with(()=>e.id),forceMount:h.with(()=>c())});var d=A(),y=P(d);k(y,()=>e.focusScope??z,()=>({props:l.props})),F(r,d),V()}globalThis.bitsTextSelectionLayers??(globalThis.bitsTextSelectionLayers=new Map);var ue,Ue,at,jt,ut,Ve;class hn{constructor(e){u(this,at);L(this,"opts");u(this,ue,C);u(this,Ue,h(null));u(this,ut,e=>{const t=s(this,Ue).current,n=e.target;!vt(t)||!vt(n)||!this.opts.enabled.current||!gn(this)||!mt(t,n)||(this.opts.onPointerDown.current(e),!e.defaultPrevented&&O(this,ue,vn(t)))});u(this,Ve,()=>{s(this,ue).call(this),O(this,ue,C)});this.opts=e,ee({id:e.id,ref:s(this,Ue),deps:()=>this.opts.enabled.current});let t=C;ne(()=>this.opts.enabled.current,n=>(n&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),t(),t=x(this,at,jt).call(this)),()=>{t(),s(this,Ve).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}}ue=new WeakMap,Ue=new WeakMap,at=new WeakSet,jt=function(){return be(J(document,"pointerdown",s(this,ut)),J(document,"pointerup",ar(s(this,Ve),this.opts.onPointerUp.current)))},ut=new WeakMap,Ve=new WeakMap;function pn(r){return new hn(r)}const Ot=r=>r.style.userSelect||r.style.webkitUserSelect;function vn(r){const e=document.body,t=Ot(e),n=Ot(r);return qe(e,"none"),qe(r,"text"),()=>{qe(e,t),qe(r,n)}}function qe(r,e){r.style.userSelect=e,r.style.webkitUserSelect=e}function gn(r){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const t=e.at(-1);return t?t[0]===r:!1}function bn(r,e){U(e,!0);let t=v(e,"preventOverflowTextSelection",3,!0),n=v(e,"onPointerDown",3,C),i=v(e,"onPointerUp",3,C);pn({id:h.with(()=>e.id),preventOverflowTextSelection:h.with(()=>t()),onPointerDown:h.with(()=>n()),onPointerUp:h.with(()=>i()),enabled:h.with(()=>e.enabled)});var o=A(),c=P(o);k(c,()=>e.children??z),F(r,o),V()}function yn(r){let e=0,t=I(void 0),n;function i(){e-=1,n&&e<=0&&(n(),g(t,void 0),n=void 0)}return(...o)=>(e+=1,a(t)===void 0&&(n=sr(()=>{g(t,r(...o),!0)})),me(()=>()=>{i()}),a(t))}const mn=yn(()=>{const r=new gt,e=E(()=>{for(const o of r.values())if(o)return!0;return!1});let t=I(null),n=null;function i(){vr&&(document.body.setAttribute("style",a(t)??""),document.body.style.removeProperty("--scrollbar-width"),Ct&&(n==null||n())
4)}return me(()=>{const o=a(e);return ir(()=>{if(!o)return;g(t,document.body.getAttribute("style"),!0);const c=getComputedStyle(document.body),l=window.innerWidth-document.documentElement.clientWidth,y={padding:Number.parseInt(c.paddingRight??"0",10)+l,margin:Number.parseInt(c.marginRight??"0",10)};l>0&&(document.body.style.paddingRight=`${y.padding}px`,document.body.style.marginRight=`${y.margin}px`,document.body.style.setProperty("--scrollbar-width",`${l}px`),document.body.style.overflow="hidden"),Ct&&(n=Mt(document,"touchmove",S=>{S.target===document.documentElement&&(S.touches.length>1||S.preventDefault())},{passive:!1})),bt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})})}),me(()=>()=>{n==null||n()}),{get map(){return r},resetBodyStyle:i}});function wn(r,e=()=>null){const t=le(),n=mn();if(!n)return;const i=E(e);n.map.set(t,r??!1);const o=h.with(()=>n.map.get(t)??!1,c=>n.map.set(t,c));return me(()=>()=>{n.map.delete(t),!Sn(n.map)&&(a(i)===null?requestAnimationFrame(()=>n.resetBodyStyle()):yt(a(i),()=>n.resetBodyStyle()))}),o}function Sn(r){for(const[e,t]of r)if(t)return!0;return!1}function At(r,e){U(e,!0);let t=v(e,"preventScroll",3,!0),n=v(e,"restoreScrollDelay",3,null);wn(t(),()=>n()),V()}function En({forceMount:r,present:e,trapFocus:t,open:n}){return r?n&&t:e&&t&&n}var Tn=He("<div><!></div>");function Un(r,e){U(e,!0);let t=v(e,"id",19,le),n=v(e,"forceMount",3,!1),i=v(e,"ref",15,null),o=ct(e,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const c=Ir({id:h.with(()=>t()),ref:h.with(()=>i(),d=>i(d))}),l=E(()=>G(o,c.props));{const d=S=>{var T=A(),p=P(T);{var b=B=>{var _=A(),f=P(_);{let m=E(()=>({props:G(a(l)),...c.snippetProps}));k(f,()=>e.child,()=>a(m))}F(B,_)},D=B=>{var _=Tn();ft(_,m=>({...m}),[()=>G(a(l))]);var f=lt(_);k(f,()=>e.children??z,()=>c.snippetProps),dt(_),F(B,_)};ye(p,B=>{e.child?B(b):B(D,!1)})}F(S,T)};let y=E(()=>c.root.opts.open.current||n());xt(r,{get id(){return t()},get present(){return a(y)},presence:d,$$slots:{presence:!0}})}V()}var Fn=He("<button><!></button>");function Vn(r,e){U(e,!0);let t=v(e,"id",19,le),n=v(e,"ref",15,null),i=v(e,"disabled",3,!1),o=ct(e,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const c=Tr({id:h.with(()=>t()),ref:h.with(()=>n(),p=>n(p)),disabled:h.with(()=>!!i())}),l=E(()=>G(o,c.props));var d=A(),y=P(d);{var S=p=>{var b=A(),D=P(b);k(D,()=>e.child,()=>({props:a(l)})),F(p,b)},T=p=>{var b=Fn();ft(b,()=>({...a(l)}));var D=lt(b);k(D,()=>e.children??z),dt(b),F(p,b)};ye(y,p=>{e.child?p(S):p(T,!1)})}F(r,d),V()}function Hn(r,e){U(e,!0);let t=v(e,"open",15,!1),n=v(e,"onOpenChange",3,C);Er({variant:h.with(()=>"dialog"),open:h.with(()=>t(),c=>{t(c),n()(c)})});var i=A(),o=P(i);k(o,()=>e.children??z),F(r,i),V()}var In=He("<button><!></button>");function Wn(r,e){U(e,!0);let t=v(e,"id",19,le),n=v(e,"ref",15,null),i=v(e,"disabled",3,!1),o=ct(e,["$$slots","$$events","$$legacy","children","child","id","ref","disabled"]);const c=Cr({variant:h.with(()=>"close"),id:h.with(()=>t()),ref:h.with(()=>n(),p=>n(p)),disabled:h.with(()=>!!i())}),l=E(()=>G(o,c.props));var d=A(),y=P(d);{var S=p=>{var b=A(),D=P(b);k(D,()=>e.child,()=>({props:a(l)})),F(p,b)},T=p=>{var b=In();ft(b,()=>({...a(l)}));var D=lt(b);k(D,()=>e.children??z),dt(b),F(p,b)};ye(y,p=>{e.child?p(S):p(T,!1)})}F(r,d),V()}var Cn=He("<!> <!>",1),Dn=He("<!> <div><!></div>",1);function zn(r,e){U(e,!0);let t=v(e,"id",19,le),n=v(e,"ref",15,null),i=v(e,"forceMount",3,!1),o=v(e,"onCloseAutoFocus",3,C),c=v(e,"onEscapeKeydown",3,C),l=v(e,"onInteractOutside",3,C),d=v(e,"trapFocus",3,!0),y=v(e,"preventScroll",3,!0),S=v(e,"restoreScrollDelay",3,null),T=ct(e,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","restoreScrollDelay"]);const p=Fr({id:h.with(()=>t()),ref:h.with(()=>n(),D=>n(D))}),b=E(()=>G(T,p.props));{const D=_=>{{const f=(w,N)=>{let te=()=>N==null?void 0:N().props;Br(w,pe(()=>a(b),{get enabled(){return p.root.opts.open.current}
4,onEscapeKeydown:q=>{c()(q),!q.defaultPrevented&&p.root.handleClose()},children:(q,Zt)=>{Ar(q,pe(()=>a(b),{get enabled(){return p.root.opts.open.current},onInteractOutside:ze=>{l()(ze),!ze.defaultPrevented&&p.root.handleClose()},children:(ze,Ln)=>{bn(ze,pe(()=>a(b),{get enabled(){return p.root.opts.open.current},children:(Xt,Pn)=>{var St=A(),Yt=P(St);{var Gt=re=>{var de=Cn(),fe=P(de);{var he=Q=>{At(Q,{get preventScroll(){return y()},get restoreScrollDelay(){return S()}})};ye(fe,Q=>{p.root.opts.open.current&&Q(he)})}var ht=It(fe,2);{let Q=E(()=>({props:G(a(b),te()),...p.snippetProps}));k(ht,()=>e.child,()=>a(Q))}F(re,de)},Jt=re=>{var de=Dn(),fe=P(de);At(fe,{get preventScroll(){return y()}});var he=It(fe,2);ft(he,Q=>({...Q}),[()=>G(a(b),te())]);var ht=lt(he);k(ht,()=>e.children??z),dt(he),F(re,de)};ye(Yt,re=>{e.child?re(Gt):re(Jt,!1)})}F(Xt,St)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))};let m=E(()=>En({forceMount:i(),present:p.root.opts.open.current,trapFocus:d(),open:p.root.opts.open.current}));fn(_,pe({loop:!0,get trapFocus(){return a(m)}},()=>a(b),{onCloseAutoFocus:w=>{var N;o()(w),!w.defaultPrevented&&((N=p.root.triggerNode)==null||N.focus())},focusScope:f,$$slots:{focusScope:!0}}))}};let B=E(()=>p.root.opts.open.current||i());xt(r,pe(()=>a(b),{get forceMount(){return i()},get present(){return a(B)},presence:D,$$slots:{presence:!0}}))}V()}var Nn=rr('<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path d="M8.53378 25.5888L6.41211 23.4671L13.8788 16.0004L6.41211 8.53378L8.53378 6.41211L16.0004 13.8788L23.4671 6.41211L25.5888 8.53378L18.1221 16.0004L25.5888 23.4671L23.4671 25.5888L16.0004 18.1221L8.53378 25.5888Z" fill="#1C1B1F"></path></svg>');function qn(r){var e=Nn();F(r,e)}export{qn as C,Vn as D,Un as a,zn as b,Hn as c,Wn as d};
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.