studiograph 1.3.44-next.6 → 1.3.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/chrome/chrome.css +1 -1
- package/dist/server/index.js +3 -0
- package/dist/server/index.js.map +1 -1
- package/dist/server/routes/meeting-ingest-api.d.ts +15 -0
- package/dist/server/routes/meeting-ingest-api.js +313 -0
- package/dist/server/routes/meeting-ingest-api.js.map +1 -0
- package/dist/services/insights.js +8 -2
- package/dist/services/insights.js.map +1 -1
- package/dist/services/markdown.js +3 -1
- package/dist/services/markdown.js.map +1 -1
- package/dist/services/sync/model-factory.d.ts +6 -3
- package/dist/services/sync/model-factory.js +19 -5
- package/dist/services/sync/model-factory.js.map +1 -1
- package/dist/web/_app/immutable/assets/0.DdizXOKi.css +1 -0
- package/dist/web/_app/immutable/assets/2.n7-yW_Fs.css +1 -0
- package/dist/web/_app/immutable/assets/3.BtaZagnv.css +1 -0
- package/dist/web/_app/immutable/assets/4.DSiqtN6T.css +1 -0
- package/dist/web/_app/immutable/assets/7.CjbDRbuG.css +1 -0
- package/dist/web/_app/immutable/assets/8.S1QdUGNM.css +1 -0
- package/dist/web/_app/immutable/assets/ViewToolbar.D-QW2oKe.css +1 -0
- package/dist/web/_app/immutable/chunks/37NdyH6G.js +32 -0
- package/dist/web/_app/immutable/chunks/{DShiqhaV.js → 4Hhzb6pv.js} +1 -1
- package/dist/web/_app/immutable/chunks/5aaTorNF.js +1 -0
- package/dist/web/_app/immutable/chunks/72bZS3G9.js +1 -0
- package/dist/web/_app/immutable/chunks/{i9c_RUF6.js → 7S2LGqoP.js} +2 -2
- package/dist/web/_app/immutable/chunks/{Djosh3uP.js → B8SiwDlA.js} +1 -1
- package/dist/web/_app/immutable/chunks/BS2rFAVq.js +1 -0
- package/dist/web/_app/immutable/chunks/BSsDC_p4.js +1 -0
- package/dist/web/_app/immutable/chunks/BTX2Jr8_.js +1 -0
- package/dist/web/_app/immutable/chunks/BdkXdv-_.js +1 -0
- package/dist/web/_app/immutable/chunks/BnvLAYp7.js +2 -0
- package/dist/web/_app/immutable/chunks/Bsacq2UX.js +1 -0
- package/dist/web/_app/immutable/chunks/{BGmh3drF.js → BsapqaT9.js} +1 -1
- package/dist/web/_app/immutable/chunks/ByunV8un.js +1 -0
- package/dist/web/_app/immutable/chunks/{Dyc1xpsu.js → CDV5Q7RN.js} +1 -1
- package/dist/web/_app/immutable/chunks/CJ8__CWt.js +1 -0
- package/dist/web/_app/immutable/chunks/CJUKmosC.js +5 -0
- package/dist/web/_app/immutable/chunks/{CLFba8FK.js → CSVbGg_b.js} +5 -5
- package/dist/web/_app/immutable/chunks/{D5QAs2Bb.js → CT6oIU-C.js} +1 -1
- package/dist/web/_app/immutable/chunks/CXH6iFbA.js +1 -0
- package/dist/web/_app/immutable/chunks/CmCtpZ1Y.js +1 -0
- package/dist/web/_app/immutable/chunks/Cx4YdFMk.js +1 -0
- package/dist/web/_app/immutable/chunks/{vNjyIc_f.js → DGbA7IXh.js} +1 -1
- package/dist/web/_app/immutable/chunks/DM-YPK2t.js +1 -0
- package/dist/web/_app/immutable/chunks/DRO19fCg.js +2 -0
- package/dist/web/_app/immutable/chunks/{aCzYRRC_.js → DbbB6Up5.js} +1 -1
- package/dist/web/_app/immutable/chunks/DkgM8092.js +1 -0
- package/dist/web/_app/immutable/chunks/DtM5cEDu.js +1 -0
- package/dist/web/_app/immutable/chunks/J8AGYe-9.js +1 -0
- package/dist/web/_app/immutable/chunks/{C-G8n1LM.js → O9Eb9k00.js} +1 -1
- package/dist/web/_app/immutable/chunks/{G1IXQHaq.js → QF8MAmnc.js} +1 -1
- package/dist/web/_app/immutable/chunks/UjzxCpxn.js +1 -0
- package/dist/web/_app/immutable/chunks/{WI8VL4je.js → Y90OgS-9.js} +1 -1
- package/dist/web/_app/immutable/chunks/{ZMLduigt.js → _xj7x2ng.js} +1 -1
- package/dist/web/_app/immutable/chunks/{rmAkpimd.js → cLyZlkXv.js} +1 -1
- package/dist/web/_app/immutable/chunks/iDtAARVW.js +2 -0
- package/dist/web/_app/immutable/chunks/oC_W7W7p.js +1 -0
- package/dist/web/_app/immutable/chunks/rJdWIgh-.js +1 -0
- package/dist/web/_app/immutable/chunks/tvOsokaa.js +1 -0
- package/dist/web/_app/immutable/chunks/uLEXaPwE.js +1 -0
- package/dist/web/_app/immutable/chunks/vSaooFHB.js +1 -0
- package/dist/web/_app/immutable/chunks/xbI1ujtV.js +1 -0
- package/dist/web/_app/immutable/entry/app.BLWSFL3K.js +2 -0
- package/dist/web/_app/immutable/entry/start.2wDxC5gH.js +1 -0
- package/dist/web/_app/immutable/nodes/0.CLArGAak.js +2 -0
- package/dist/web/_app/immutable/nodes/1.C7VaeFca.js +1 -0
- package/dist/web/_app/immutable/nodes/10.Bt7vR0zi.js +1 -0
- package/dist/web/_app/immutable/nodes/2.2DxFw_16.js +86 -0
- package/dist/web/_app/immutable/nodes/3.BPnkssmU.js +1 -0
- package/dist/web/_app/immutable/nodes/4.C8az7M-8.js +12 -0
- package/dist/web/_app/immutable/nodes/5.DqeRY7D3.js +4 -0
- package/dist/web/_app/immutable/nodes/6.DJt8m9cI.js +2 -0
- package/dist/web/_app/immutable/nodes/7.XSqorMNB.js +2 -0
- package/dist/web/_app/immutable/nodes/8.D4VY0uHj.js +1 -0
- package/dist/web/_app/immutable/nodes/9.TJQpPKfF.js +1 -0
- package/dist/web/_app/version.json +1 -1
- package/dist/web/index.html +11 -11
- package/package.json +1 -1
- package/dist/web/_app/immutable/assets/0.n3qM-DRk.css +0 -1
- package/dist/web/_app/immutable/assets/2.DNpjFx0k.css +0 -1
- package/dist/web/_app/immutable/assets/3.zsEg_MDN.css +0 -1
- package/dist/web/_app/immutable/assets/4.CjSyz-ka.css +0 -1
- package/dist/web/_app/immutable/assets/7.D55lTQ_F.css +0 -1
- package/dist/web/_app/immutable/assets/8.C6NPu9Wt.css +0 -1
- package/dist/web/_app/immutable/assets/ViewToolbar.Nsd-Xu-e.css +0 -1
- package/dist/web/_app/immutable/chunks/4LyimEQJ.js +0 -1
- package/dist/web/_app/immutable/chunks/6McgCjyP.js +0 -1
- package/dist/web/_app/immutable/chunks/9Br9O_Id.js +0 -1
- package/dist/web/_app/immutable/chunks/BABAUxHY.js +0 -1
- package/dist/web/_app/immutable/chunks/BQ02KrBc.js +0 -1
- package/dist/web/_app/immutable/chunks/BrK5FluI.js +0 -1
- package/dist/web/_app/immutable/chunks/C6HYnZ9B.js +0 -1
- package/dist/web/_app/immutable/chunks/CBG_gV1M.js +0 -1
- package/dist/web/_app/immutable/chunks/CXLBspz2.js +0 -1
- package/dist/web/_app/immutable/chunks/Cz70ZXua.js +0 -1
- package/dist/web/_app/immutable/chunks/D1C06aMd.js +0 -1
- package/dist/web/_app/immutable/chunks/DG43S1MM.js +0 -1
- package/dist/web/_app/immutable/chunks/DLdmnoGO.js +0 -2
- package/dist/web/_app/immutable/chunks/DOwOQvqB.js +0 -1
- package/dist/web/_app/immutable/chunks/DT0iaiuH.js +0 -5
- package/dist/web/_app/immutable/chunks/D_3iJqEJ.js +0 -2
- package/dist/web/_app/immutable/chunks/DjUn6jFc.js +0 -1
- package/dist/web/_app/immutable/chunks/DwCuIF53.js +0 -1
- package/dist/web/_app/immutable/chunks/DznM_L__.js +0 -1
- package/dist/web/_app/immutable/chunks/L0_LR_aH.js +0 -1
- package/dist/web/_app/immutable/chunks/Ytolvt5S.js +0 -1
- package/dist/web/_app/immutable/chunks/hRv41LAy.js +0 -1
- package/dist/web/_app/immutable/chunks/hszZtVwQ.js +0 -1
- package/dist/web/_app/immutable/chunks/iXfFyy03.js +0 -1
- package/dist/web/_app/immutable/chunks/moYWbUS9.js +0 -1
- package/dist/web/_app/immutable/chunks/wFMNws6Z.js +0 -1
- package/dist/web/_app/immutable/entry/app.AuLP6-n6.js +0 -2
- package/dist/web/_app/immutable/entry/start.BGGormQW.js +0 -1
- package/dist/web/_app/immutable/nodes/0.BUI14I-K.js +0 -2
- package/dist/web/_app/immutable/nodes/1.BoFpQzsw.js +0 -1
- package/dist/web/_app/immutable/nodes/10.Bf4Mr-vu.js +0 -1
- package/dist/web/_app/immutable/nodes/2.BiQQWWe2.js +0 -84
- package/dist/web/_app/immutable/nodes/3.3RLW9ti_.js +0 -1
- package/dist/web/_app/immutable/nodes/4.CWdObQyA.js +0 -11
- package/dist/web/_app/immutable/nodes/5.EVzgAcPo.js +0 -4
- package/dist/web/_app/immutable/nodes/6.B9AlQwfr.js +0 -2
- package/dist/web/_app/immutable/nodes/7.BlG0DQ0d.js +0 -2
- package/dist/web/_app/immutable/nodes/8.DrQqsdUB.js +0 -1
- package/dist/web/_app/immutable/nodes/9.CHxGI_Nb.js +0 -1
- /package/dist/web/_app/immutable/assets/{checkbox.D6tMDJWk.css → index.D6tMDJWk.css} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{aV as cr,F as re,aF as dr,a6 as ur,aA as mr,o as fr,aW as pr,p as br,h as gr,b as hr,c as Te,ad as Ge,r as Pe}from"./CT6oIU-C.js";import{c as vr,a as he,b as De}from"./iDtAARVW.js";import{b as yr}from"./DGbA7IXh.js";import{a as Re,b as _e}from"./CmCtpZ1Y.js";import{i as wr,b as Ie}from"./72bZS3G9.js";import{p as te,r as xr}from"./cLyZlkXv.js";function Tt(e,r,o=r){var t=new WeakSet;cr(e,"input",async n=>{var s=n?e.defaultValue:e.value;if(s=ve(e)?ye(s):s,o(s),re!==null&&t.add(re),await dr(),s!==(s=r())){var a=e.selectionStart,m=e.selectionEnd,d=e.value.length;if(e.value=s??"",m!==null){var f=e.value.length;a===m&&m===d&&f>d?(e.selectionStart=f,e.selectionEnd=f):(e.selectionStart=a,e.selectionEnd=Math.min(m,f))}}}),(fr&&e.defaultValue!==e.value||ur(r)==null&&e.value)&&(o(ve(e)?ye(e.value):e.value),re!==null&&t.add(re)),mr(()=>{var n=r();if(e===document.activeElement){var s=pr??re;if(t.has(s))return}ve(e)&&n===ye(e.value)||e.type==="date"&&!n&&!e.value||n!==e.value&&(e.value=n??"")})}function ve(e){var r=e.type;return r==="number"||r==="range"}function ye(e){return e===""?null:+e}const kr=(e,r)=>{const o=new Array(e.length+r.length);for(let t=0;t<e.length;t++)o[t]=e[t];for(let t=0;t<r.length;t++)o[e.length+t]=r[t];return o},Cr=(e,r)=>({classGroupId:e,validator:r}),Ke=(e=new Map,r=null,o)=>({nextPart:e,validators:r,classGroupId:o}),pe="-",Ne=[],zr="arbitrary..",Ar=e=>{const r=Mr(e),{conflictingClassGroups:o,conflictingClassGroupModifiers:t}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Sr(a);const m=a.split(pe),d=m[0]===""&&m.length>1?1:0;return Ye(m,d,r)},getConflictingClassGroupIds:(a,m)=>{if(m){const d=t[a],f=o[a];return d?f?kr(f,d):d:f||Ne}return o[a]||Ne}}},Ye=(e,r,o)=>{if(e.length-r===0)return o.classGroupId;const n=e[r],s=o.nextPart.get(n);if(s){const f=Ye(e,r+1,s);if(f)return f}const a=o.validators;if(a===null)return;const m=r===0?e.join(pe):e.slice(r).join(pe),d=a.length;for(let f=0;f<d;f++){const z=a[f];if(z.validator(m))return z.classGroupId}},Sr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),o=r.indexOf(":"),t=r.slice(0,o);return t?zr+t:void 0})(),Mr=e=>{const{theme:r,classGroups:o}=e;return Vr(o,r)},Vr=(e,r)=>{const o=Ke();for(const t in e){const n=e[t];Ae(n,o,t,r)}return o},Ae=(e,r,o,t)=>{const n=e.length;for(let s=0;s<n;s++){const a=e[s];Tr(a,r,o,t)}},Tr=(e,r,o,t)=>{if(typeof e=="string"){Gr(e,r,o);return}if(typeof e=="function"){Pr(e,r,o,t);return}Rr(e,r,o,t)},Gr=(e,r,o)=>{const t=e===""?r:qe(r,e);t.classGroupId=o},Pr=(e,r,o,t)=>{if(_r(e)){Ae(e(t),r,o,t);return}r.validators===null&&(r.validators=[]),r.validators.push(Cr(o,e))},Rr=(e,r,o,t)=>{const n=Object.entries(e),s=n.length;for(let a=0;a<s;a++){const[m,d]=n[a];Ae(d,qe(r,m),o,t)}},qe=(e,r)=>{let o=e;const t=r.split(pe),n=t.length;for(let s=0;s<n;s++){const a=t[s];let m=o.nextPart.get(a);m||(m=Ke(),o.nextPart.set(a,m)),o=m}return o},_r=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),t=Object.create(null);const n=(s,a)=>{o[s]=a,r++,r>e&&(r=0,t=o,o=Object.create(null))};return{get(s){let a=o[s];if(a!==void 0)return a;if((a=t[s])!==void 0)return n(s,a),a},set(s,a){s in o?o[s]=a:n(s,a)}}},xe="!",Ee=":",Nr=[],Oe=(e,r,o,t,n)=>({modifiers:e,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:t,isExternal:n}),Er=e=>{const{prefix:r,experimentalParseClassName:o}=e;let t=n=>{const s=[];let a=0,m=0,d=0,f;const z=n.length;for(let k=0;k<z;k++){const G=n[k];if(a===0&&m===0){if(G===Ee){s.push(n.slice(d,k)),d=k+1;continue}if(G==="/"){f=k;continue}}G==="["?a++:G==="]"?a--:G==="("?m++:G===")"&&m--}const A=s.length===0?n:n.slice(d);let S=A,g=!1;A.endsWith(xe)?(S=A.slice(0,-1),g=!0):A.startsWith(xe)&&(S=A.slice(1),g=!0);const _=f&&f>d?f-d:void 0;return Oe(s,g,S,_)};if(r){const n=r+Ee,s=t;t=a=>a.startsWith(n)?s(a.slice(n.length)):Oe(Nr,!1,a,void 0,!0)}if(o){const n=t;t=s=>o({className:s,parseClassName:n})}return t},Or=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((o,t)=>{r.set(o,1e6+t)}),o=>{const t=[];let n=[];for(let s=0;s<o.length;s++){const a=o[s],m=a[0]==="[",d=r.has(a);m||d?(n.length>0&&(n.sort(),t.push(...n),n=[]),t.push(a)):n.push(a)}return n.length>0&&(n.sort(),t.push(...n)),t}},Lr=e=>({cache:Ir(e.cacheSize),parseClassName:Er(e),sortModifiers:Or(e),...Ar(e)}),Fr=/\s+/,jr=(e,r)=>{const{parseClassName:o,getClassGroupId:t,getConflictingClassGroupIds:n,sortModifiers:s}=r,a=[],m=e.trim().split(Fr);let d="";for(let f=m.length-1;f>=0;f-=1){const z=m[f],{isExternal:A,modifiers:S,hasImportantModifier:g,baseClassName:_,maybePostfixModifierPosition:k}=o(z);if(A){d=z+(d.length>0?" "+d:d);continue}let G=!!k,O=t(G?_.substring(0,k):_);if(!O){if(!G){d=z+(d.length>0?" "+d:d);continue}if(O=t(_),!O){d=z+(d.length>0?" "+d:d);continue}G=!1}const F=S.length===0?"":S.length===1?S[0]:s(S).join(":"),I=g?F+xe:F,K=I+O;if(a.indexOf(K)>-1)continue;a.push(K);const P=n(O,G);for(let W=0;W<P.length;++W){const J=P[W];a.push(I+J)}d=z+(d.length>0?" "+d:d)}return d},Wr=(...e)=>{let r=0,o,t,n="";for(;r<e.length;)(o=e[r++])&&(t=Xe(o))&&(n&&(n+=" "),n+=t);return n},Xe=e=>{if(typeof e=="string")return e;let r,o="";for(let t=0;t<e.length;t++)e[t]&&(r=Xe(e[t]))&&(o&&(o+=" "),o+=r);return o},ke=(e,...r)=>{let o,t,n,s;const a=d=>{const f=r.reduce((z,A)=>A(z),e());return o=Lr(f),t=o.cache.get,n=o.cache.set,s=m,m(d)},m=d=>{const f=t(d);if(f)return f;const z=jr(d,o);return n(d,z),z};return s=a,(...d)=>s(Wr(...d))},Br=[],V=e=>{const r=o=>o[e]||Br;return r.isThemeGetter=!0,r},Je=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,He=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ur=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Dr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Yr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Xr=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Y=e=>Ur.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),q=e=>!!e&&Number.isInteger(Number(e)),we=e=>e.endsWith("%")&&b(e.slice(0,-1)),U=e=>Dr.test(e),Qe=()=>!0,Jr=e=>Kr.test(e)&&!Yr.test(e),Se=()=>!1,Hr=e=>qr.test(e),Qr=e=>Xr.test(e),Zr=e=>!i(e)&&!l(e),$r=e=>X(e,er,Se),i=e=>Je.test(e),H=e=>X(e,rr,Jr),Le=e=>X(e,it,b),et=e=>X(e,or,Qe),rt=e=>X(e,tr,Se),Fe=e=>X(e,Ze,Se),tt=e=>X(e,$e,Qr),de=e=>X(e,sr,Hr),l=e=>He.test(e),oe=e=>Q(e,rr),ot=e=>Q(e,tr),je=e=>Q(e,Ze),st=e=>Q(e,er),nt=e=>Q(e,$e),ue=e=>Q(e,sr,!0),at=e=>Q(e,or,!0),X=(e,r,o)=>{const t=Je.exec(e);return t?t[1]?r(t[1]):o(t[2]):!1},Q=(e,r,o=!1)=>{const t=He.exec(e);return t?t[1]?r(t[1]):o:!1},Ze=e=>e==="position"||e==="percentage",$e=e=>e==="image"||e==="url",er=e=>e==="length"||e==="size"||e==="bg-size",rr=e=>e==="length",it=e=>e==="number",tr=e=>e==="family-name",or=e=>e==="number"||e==="weight",sr=e=>e==="shadow",Ce=()=>{const e=V("color"),r=V("font"),o=V("text"),t=V("font-weight"),n=V("tracking"),s=V("leading"),a=V("breakpoint"),m=V("container"),d=V("spacing"),f=V("radius"),z=V("shadow"),A=V("inset-shadow"),S=V("text-shadow"),g=V("drop-shadow"),_=V("blur"),k=V("perspective"),G=V("aspect"),O=V("ease"),F=V("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),l,i],W=()=>["auto","hidden","clip","visible","scroll"],J=()=>["auto","contain","none"],u=()=>[l,i,d],R=()=>[Y,"full","auto",...u()],$=()=>[q,"none","subgrid",l,i],ee=()=>["auto",{span:["full",q,l,i]},q,l,i],Z=()=>[q,"auto",l,i],ne=()=>["auto","min","max","fr",l,i],h=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],v=()=>["start","end","center","stretch","center-safe","end-safe"],p=()=>["auto",...u()],y=()=>[Y,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...u()],w=()=>[Y,"screen","full","dvw","lvw","svw","min","max","fit",...u()],C=()=>[Y,"screen","full","lh","dvh","lvh","svh","min","max","fit",...u()],c=()=>[e,l,i],j=()=>[...K(),je,Fe,{position:[l,i]}],N=()=>["no-repeat",{repeat:["","x","y","space","round"]}],L=()=>["auto","cover","contain",st,$r,{size:[l,i]}],B=()=>[we,oe,H],x=()=>["","none","full",f,l,i],M=()=>["",b,oe,H],ae=()=>["solid","dashed","dotted","double"],Me=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>[b,we,je,Fe],Ve=()=>["","none",_,l,i],ie=()=>["none",b,l,i],le=()=>["none",b,l,i],ge=()=>[b,l,i],ce=()=>[Y,"full",...u()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[U],breakpoint:[U],color:[Qe],container:[U],"drop-shadow":[U],ease:["in","out","in-out"],font:[Zr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[U],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[U],shadow:[U],spacing:["px",b],text:[U],"text-shadow":[U],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Y,i,l,G]}],container:["container"],columns:[{columns:[b,i,l,m]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:P()}],overflow:[{overflow:W()}],"overflow-x":[{"overflow-x":W()}],"overflow-y":[{"overflow-y":W()}],overscroll:[{overscroll:J()}],"overscroll-x":[{"overscroll-x":J()}],"overscroll-y":[{"overscroll-y":J()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[q,"auto",l,i]}],basis:[{basis:[Y,"full","auto",m,...u()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,Y,"auto","initial","none",i]}],grow:[{grow:["",b,l,i]}],shrink:[{shrink:["",b,l,i]}],order:[{order:[q,"first","last","none",l,i]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":Z()}],"col-end":[{"col-end":Z()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":Z()}],"row-end":[{"row-end":Z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:u()}],"gap-x":[{"gap-x":u()}],"gap-y":[{"gap-y":u()}],"justify-content":[{justify:[...h(),"normal"]}],"justify-items":[{"justify-items":[...v(),"normal"]}],"justify-self":[{"justify-self":["auto",...v()]}],"align-content":[{content:["normal",...h()]}],"align-items":[{items:[...v(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...v(),{baseline:["","last"]}]}],"place-content":[{"place-content":h()}],"place-items":[{"place-items":[...v(),"baseline"]}],"place-self":[{"place-self":["auto",...v()]}],p:[{p:u()}],px:[{px:u()}],py:[{py:u()}],ps:[{ps:u()}],pe:[{pe:u()}],pbs:[{pbs:u()}],pbe:[{pbe:u()}],pt:[{pt:u()}],pr:[{pr:u()}],pb:[{pb:u()}],pl:[{pl:u()}],m:[{m:p()}],mx:[{mx:p()}],my:[{my:p()}],ms:[{ms:p()}],me:[{me:p()}],mbs:[{mbs:p()}],mbe:[{mbe:p()}],mt:[{mt:p()}],mr:[{mr:p()}],mb:[{mb:p()}],ml:[{ml:p()}],"space-x":[{"space-x":u()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":u()}],"space-y-reverse":["space-y-reverse"],size:[{size:y()}],"inline-size":[{inline:["auto",...w()]}],"min-inline-size":[{"min-inline":["auto",...w()]}],"max-inline-size":[{"max-inline":["none",...w()]}],"block-size":[{block:["auto",...C()]}],"min-block-size":[{"min-block":["auto",...C()]}],"max-block-size":[{"max-block":["none",...C()]}],w:[{w:[m,"screen",...y()]}],"min-w":[{"min-w":[m,"screen","none",...y()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[a]},...y()]}],h:[{h:["screen","lh",...y()]}],"min-h":[{"min-h":["screen","lh","none",...y()]}],"max-h":[{"max-h":["screen","lh",...y()]}],"font-size":[{text:["base",o,oe,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[t,at,et]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",we,i]}],"font-family":[{font:[ot,rt,r]}],"font-features":[{"font-features":[i]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,l,i]}],"line-clamp":[{"line-clamp":[b,"none",l,Le]}],leading:[{leading:[s,...u()]}],"list-image":[{"list-image":["none",l,i]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",l,i]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",l,H]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[b,"auto",l,i]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:u()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",l,i]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",l,i]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:N()}],"bg-size":[{bg:L()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},q,l,i],radial:["",l,i],conic:[q,l,i]},nt,tt]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:B()}],"gradient-via-pos":[{via:B()}],"gradient-to-pos":[{to:B()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:x()}],"rounded-s":[{"rounded-s":x()}],"rounded-e":[{"rounded-e":x()}],"rounded-t":[{"rounded-t":x()}],"rounded-r":[{"rounded-r":x()}],"rounded-b":[{"rounded-b":x()}],"rounded-l":[{"rounded-l":x()}],"rounded-ss":[{"rounded-ss":x()}],"rounded-se":[{"rounded-se":x()}],"rounded-ee":[{"rounded-ee":x()}],"rounded-es":[{"rounded-es":x()}],"rounded-tl":[{"rounded-tl":x()}],"rounded-tr":[{"rounded-tr":x()}],"rounded-br":[{"rounded-br":x()}],"rounded-bl":[{"rounded-bl":x()}],"border-w":[{border:M()}],"border-w-x":[{"border-x":M()}],"border-w-y":[{"border-y":M()}],"border-w-s":[{"border-s":M()}],"border-w-e":[{"border-e":M()}],"border-w-bs":[{"border-bs":M()}],"border-w-be":[{"border-be":M()}],"border-w-t":[{"border-t":M()}],"border-w-r":[{"border-r":M()}],"border-w-b":[{"border-b":M()}],"border-w-l":[{"border-l":M()}],"divide-x":[{"divide-x":M()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":M()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-bs":[{"border-bs":c()}],"border-color-be":[{"border-be":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,l,i]}],"outline-w":[{outline:["",b,oe,H]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",z,ue,de]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",A,ue,de]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":M()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",S,ue,de]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[b,l,i]}],"mix-blend":[{"mix-blend":[...Me(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Me()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":T()}],"mask-image-linear-to-pos":[{"mask-linear-to":T()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":T()}],"mask-image-t-to-pos":[{"mask-t-to":T()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":T()}],"mask-image-r-to-pos":[{"mask-r-to":T()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":T()}],"mask-image-b-to-pos":[{"mask-b-to":T()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":T()}],"mask-image-l-to-pos":[{"mask-l-to":T()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":T()}],"mask-image-x-to-pos":[{"mask-x-to":T()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":T()}],"mask-image-y-to-pos":[{"mask-y-to":T()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[l,i]}],"mask-image-radial-from-pos":[{"mask-radial-from":T()}],"mask-image-radial-to-pos":[{"mask-radial-to":T()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":T()}],"mask-image-conic-to-pos":[{"mask-conic-to":T()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:N()}],"mask-size":[{mask:L()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",l,i]}],filter:[{filter:["","none",l,i]}],blur:[{blur:Ve()}],brightness:[{brightness:[b,l,i]}],contrast:[{contrast:[b,l,i]}],"drop-shadow":[{"drop-shadow":["","none",g,ue,de]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",b,l,i]}],"hue-rotate":[{"hue-rotate":[b,l,i]}],invert:[{invert:["",b,l,i]}],saturate:[{saturate:[b,l,i]}],sepia:[{sepia:["",b,l,i]}],"backdrop-filter":[{"backdrop-filter":["","none",l,i]}],"backdrop-blur":[{"backdrop-blur":Ve()}],"backdrop-brightness":[{"backdrop-brightness":[b,l,i]}],"backdrop-contrast":[{"backdrop-contrast":[b,l,i]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,l,i]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,l,i]}],"backdrop-invert":[{"backdrop-invert":["",b,l,i]}],"backdrop-opacity":[{"backdrop-opacity":[b,l,i]}],"backdrop-saturate":[{"backdrop-saturate":[b,l,i]}],"backdrop-sepia":[{"backdrop-sepia":["",b,l,i]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":u()}],"border-spacing-x":[{"border-spacing-x":u()}],"border-spacing-y":[{"border-spacing-y":u()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",l,i]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",l,i]}],ease:[{ease:["linear","initial",O,l,i]}],delay:[{delay:[b,l,i]}],animate:[{animate:["none",F,l,i]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,l,i]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:le()}],"scale-x":[{"scale-x":le()}],"scale-y":[{"scale-y":le()}],"scale-z":[{"scale-z":le()}],"scale-3d":["scale-3d"],skew:[{skew:ge()}],"skew-x":[{"skew-x":ge()}],"skew-y":[{"skew-y":ge()}],transform:[{transform:[l,i,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",l,i]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":u()}],"scroll-mx":[{"scroll-mx":u()}],"scroll-my":[{"scroll-my":u()}],"scroll-ms":[{"scroll-ms":u()}],"scroll-me":[{"scroll-me":u()}],"scroll-mbs":[{"scroll-mbs":u()}],"scroll-mbe":[{"scroll-mbe":u()}],"scroll-mt":[{"scroll-mt":u()}],"scroll-mr":[{"scroll-mr":u()}],"scroll-mb":[{"scroll-mb":u()}],"scroll-ml":[{"scroll-ml":u()}],"scroll-p":[{"scroll-p":u()}],"scroll-px":[{"scroll-px":u()}],"scroll-py":[{"scroll-py":u()}],"scroll-ps":[{"scroll-ps":u()}],"scroll-pe":[{"scroll-pe":u()}],"scroll-pbs":[{"scroll-pbs":u()}],"scroll-pbe":[{"scroll-pbe":u()}],"scroll-pt":[{"scroll-pt":u()}],"scroll-pr":[{"scroll-pr":u()}],"scroll-pb":[{"scroll-pb":u()}],"scroll-pl":[{"scroll-pl":u()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",l,i]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[b,oe,H,Le]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lt=(e,{cacheSize:r,prefix:o,experimentalParseClassName:t,extend:n={},override:s={}})=>(se(e,"cacheSize",r),se(e,"prefix",o),se(e,"experimentalParseClassName",t),me(e.theme,s.theme),me(e.classGroups,s.classGroups),me(e.conflictingClassGroups,s.conflictingClassGroups),me(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),se(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),fe(e.theme,n.theme),fe(e.classGroups,n.classGroups),fe(e.conflictingClassGroups,n.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),nr(e,n,"orderSensitiveModifiers"),e),se=(e,r,o)=>{o!==void 0&&(e[r]=o)},me=(e,r)=>{if(r)for(const o in r)se(e,o,r[o])},fe=(e,r)=>{if(r)for(const o in r)nr(e,r,o)},nr=(e,r,o)=>{const t=r[o];t!==void 0&&(e[o]=e[o]?e[o].concat(t):t)},ct=(e,...r)=>typeof e=="function"?ke(Ce,e,...r):ke(()=>lt(Ce(),e),...r),ar=ke(Ce);function We(...e){return ar(yr(e))}var dt=/\s+/g,ut=e=>typeof e!="string"||!e?e:e.replace(dt," ").trim(),be=(...e)=>{const r=[],o=t=>{if(!t&&t!==0&&t!==0n)return;if(Array.isArray(t)){for(let s=0,a=t.length;s<a;s++)o(t[s]);return}const n=typeof t;if(n==="string"||n==="number"||n==="bigint"){if(n==="number"&&t!==t)return;r.push(String(t))}else if(n==="object"){const s=Object.keys(t);for(let a=0,m=s.length;a<m;a++){const d=s[a];t[d]&&r.push(d)}}};for(let t=0,n=e.length;t<n;t++){const s=e[t];s!=null&&o(s)}return r.length>0?ut(r.join(" ")):void 0},Be=e=>e===!1?"false":e===!0?"true":e===0?"0":e,E=e=>{if(!e||typeof e!="object")return!0;for(const r in e)return!1;return!0},mt=(e,r)=>{if(e===r)return!0;if(!e||!r)return!1;const o=Object.keys(e),t=Object.keys(r);if(o.length!==t.length)return!1;for(let n=0;n<o.length;n++){const s=o[n];if(!t.includes(s)||e[s]!==r[s])return!1}return!0},ft=(e,r)=>{for(const o in r)if(Object.prototype.hasOwnProperty.call(r,o)){const t=r[o];o in e?e[o]=be(e[o],t):e[o]=t}return e},ir=(e,r)=>{for(let o=0;o<e.length;o++){const t=e[o];Array.isArray(t)?ir(t,r):t&&r.push(t)}},lr=(...e)=>{const r=[];ir(e,r);const o=[];for(let t=0;t<r.length;t++)r[t]&&o.push(r[t]);return o},ze=(e,r)=>{const o={};for(const t in e){const n=e[t];if(t in r){const s=r[t];Array.isArray(n)||Array.isArray(s)?o[t]=lr(s,n):typeof n=="object"&&typeof s=="object"&&n&&s?o[t]=ze(n,s):o[t]=s+" "+n}else o[t]=n}for(const t in r)t in e||(o[t]=r[t]);return o},pt={twMerge:!0,twMergeConfig:{}};function bt(){let e=null,r={},o=!1;return{get cachedTwMerge(){return e},set cachedTwMerge(t){e=t},get cachedTwMergeConfig(){return r},set cachedTwMergeConfig(t){r=t},get didTwMergeConfigChange(){return o},set didTwMergeConfigChange(t){o=t},reset(){e=null,r={},o=!1}}}var D=bt(),gt=e=>{const r=(t,n)=>{const{extend:s=null,slots:a={},variants:m={},compoundVariants:d=[],compoundSlots:f=[],defaultVariants:z={}}=t,A={...pt,...n},S=s?.base?be(s.base,t?.base):t?.base,g=s?.variants&&!E(s.variants)?ze(m,s.variants):m,_=s?.defaultVariants&&!E(s.defaultVariants)?{...s.defaultVariants,...z}:z;!E(A.twMergeConfig)&&!mt(A.twMergeConfig,D.cachedTwMergeConfig)&&(D.didTwMergeConfigChange=!0,D.cachedTwMergeConfig=A.twMergeConfig);const k=E(s?.slots),G=E(a)?{}:{base:be(t?.base,k&&s?.base),...a},O=k?G:ft({...s?.slots},E(G)?{base:t?.base}:G),F=E(s?.compoundVariants)?d:lr(s?.compoundVariants,d),I=P=>{if(E(g)&&E(a)&&k)return e(S,P?.class,P?.className)(A);if(F&&!Array.isArray(F))throw new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof F}`);if(f&&!Array.isArray(f))throw new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof f}`);const W=(h,v=g,p=null,y=null)=>{const w=v[h];if(!w||E(w))return null;const C=y?.[h]??P?.[h];if(C===null)return null;const c=Be(C);if(typeof c=="object")return null;const j=_?.[h],N=c??Be(j);return w[N||"false"]},J=()=>{if(!g)return null;const h=Object.keys(g),v=[];for(let p=0;p<h.length;p++){const y=W(h[p],g);y&&v.push(y)}return v},u=(h,v)=>{if(!g||typeof g!="object")return null;const p=[];for(const y in g){const w=W(y,g,h,v),C=h==="base"&&typeof w=="string"?w:w&&w[h];C&&p.push(C)}return p},R={};for(const h in P){const v=P[h];v!==void 0&&(R[h]=v)}const $=(h,v)=>{const p=typeof P?.[h]=="object"?{[h]:P[h]?.initial}:{};return{..._,...R,...p,...v}},ee=(h=[],v)=>{const p=[],y=h.length;for(let w=0;w<y;w++){const{class:C,className:c,...j}=h[w];let N=!0;const L=$(null,v);for(const B in j){const x=j[B],M=L[B];if(Array.isArray(x)){if(!x.includes(M)){N=!1;break}}else{if((x==null||x===!1)&&(M==null||M===!1))continue;if(M!==x){N=!1;break}}}N&&(C&&p.push(C),c&&p.push(c))}return p},Z=h=>{const v=ee(F,h);if(!Array.isArray(v))return v;const p={},y=e;for(let w=0;w<v.length;w++){const C=v[w];if(typeof C=="string")p.base=y(p.base,C)(A);else if(typeof C=="object")for(const c in C)p[c]=y(p[c],C[c])(A)}return p},ne=h=>{if(f.length<1)return null;const v={},p=$(null,h);for(let y=0;y<f.length;y++){const{slots:w=[],class:C,className:c,...j}=f[y];if(!E(j)){let N=!0;for(const L in j){const B=p[L],x=j[L];if(B===void 0||(Array.isArray(x)?!x.includes(B):x!==B)){N=!1;break}}if(!N)continue}for(let N=0;N<w.length;N++){const L=w[N];v[L]||(v[L]=[]),v[L].push([C,c])}}return v};if(!E(a)||!k){const h={};if(typeof O=="object"&&!E(O)){const v=e;for(const p in O)h[p]=y=>{const w=Z(y),C=ne(y);return v(O[p],u(p,y),w?w[p]:void 0,C?C[p]:void 0,y?.class,y?.className)(A)}}return h}return e(S,J(),ee(F),P?.class,P?.className)(A)},K=()=>{if(!(!g||typeof g!="object"))return Object.keys(g)};return I.variantKeys=K(),I.extend=s,I.base=S,I.slots=O,I.variants=g,I.defaultVariants=_,I.compoundSlots=f,I.compoundVariants=F,I};return{tv:r,createTV:t=>(n,s)=>r(n,s?ze(t,s):t)}},ht=e=>E(e)?ar:ct({...e,extend:{theme:e.theme,classGroups:e.classGroups,conflictingClassGroupModifiers:e.conflictingClassGroupModifiers,conflictingClassGroups:e.conflictingClassGroups,...e.extend}}),vt=(e,r)=>{const o=be(e);return!o||!(r?.twMerge??!0)?o:((!D.cachedTwMerge||D.didTwMergeConfigChange)&&(D.didTwMergeConfigChange=!1,D.cachedTwMerge=ht(D.cachedTwMergeConfig)),D.cachedTwMerge(o)||void 0)},yt=(...e)=>r=>vt(e,r),{tv:wt}=gt(yt);const Ue=wt({base:"inline-flex shrink-0 items-center justify-center gap-1.5 rounded-[4px] font-normal whitespace-nowrap transition-[color,background] duration-150 cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"bg-[var(--color-bg-surface)] text-[var(--color-text-primary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",ghost:"bg-transparent text-[var(--color-text-tertiary)] hover:text-[var(--color-text-secondary)] hover:bg-[var(--color-bg-hover)]",outline:"bg-transparent text-[var(--color-text-secondary)] border border-[var(--color-border)] hover:bg-[var(--color-bg-hover)]",accent:"bg-[var(--color-accent)] text-white hover:bg-[var(--color-accent-hover)] border border-transparent",destructive:"bg-[var(--color-destructive)] text-white hover:bg-[var(--color-destructive-hover)]",link:"text-[var(--color-accent)] underline-offset-4 hover:underline"},size:{default:"h-7 px-3 text-xs",sm:"h-6 px-2 text-[12px]",lg:"h-8 px-4 text-sm",icon:"size-7 p-0"}},defaultVariants:{variant:"default",size:"default"}});var xt=De("<a><!></a>"),kt=De("<button><!></button>");function Gt(e,r){br(r,!0);let o=te(r,"variant",3,"default"),t=te(r,"size",3,"default"),n=te(r,"ref",15,null),s=te(r,"href",3,void 0),a=te(r,"type",3,"button"),m=xr(r,["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","children"]);var d=vr(),f=gr(d);{var z=S=>{var g=xt();Re(g,k=>({class:k,href:r.disabled?void 0:s(),"aria-disabled":r.disabled,role:r.disabled?"link":void 0,tabindex:r.disabled?-1:void 0,...m}),[()=>We(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(S,g)},A=S=>{var g=kt();Re(g,k=>({class:k,type:a(),disabled:r.disabled,...m}),[()=>We(Ue({variant:o(),size:t()}),r.class)]);var _=Te(g);_e(_,()=>r.children??Ge),Pe(g),Ie(g,k=>n(k),()=>n()),he(S,g)};wr(f,S=>{s()?S(z):S(A,!1)})}he(e,d),hr()}export{Gt as B,Ue as a,Tt as b,We as c,wt as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,f as h,s as A}from"./iDtAARVW.js";import{i as M}from"./Y90OgS-9.js";import{p as k,l as c,a as B,b as C,s as m,d as f,g as i,c as _,n as N,r as u,m as v,t as P}from"./CT6oIU-C.js";import{i as R}from"./72bZS3G9.js";import{a as U}from"./CmCtpZ1Y.js";import{l as g,p as b}from"./cLyZlkXv.js";var Y=h("<title> </title>"),j=h('<svg><!><path d="M16 4 6 14 7.41 15.41 15 7.83 15 28 17 28 17 7.83 24.59 15.41 26 14 16 4z"></path></svg>');function I(x,t){const e=g(t,["children","$$slots","$$events","$$legacy"]),w=g(e,["size","title"]);k(t,!1);const a=v(),n=v();let d=b(t,"size",8,16),s=b(t,"title",8,void 0);c(()=>(f(e),f(s())),()=>{m(a,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(i(a),f(e)),()=>{m(n,{"aria-hidden":i(a)?void 0:!0,role:i(a)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),B(),M();var r=j();U(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:d(),height:d(),...i(n),...w}));var y=_(r);{var z=o=>{var l=Y(),$=_(l,!0);u(l),P(()=>A($,s())),p(o,l)};R(y,o=>{s()&&o(z)})}N(),u(r),p(x,r),C()}export{I as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as r,f as A,g as n,s as e}from"./CT6oIU-C.js";import{s as f,g as _,b as I,e as v}from"./CJ8__CWt.js";function B(){let a=r(A([])),s=r(null),l=r(!1),o=r(!1),i=r(""),u=r(null),c=r(!1),g=r(null);async function d(){try{const[t,h]=await Promise.all([I(),v()]);e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(i,h.home_brief??"",!0),e(u,h.accent_color??null,!0),e(o,!0),e(c,!0)}catch(t){console.error("Failed to load insights:",t),e(o,!0),e(c,!0)}}async function m(){e(l,!0),e(g,null);try{const t=await _();e(a,t.insights??[],!0),e(s,t.generatedAt??null,!0),e(o,!0)}catch(t){console.error("Failed to generate insights:",t),e(g,t?.message??"Failed to generate insights",!0)}finally{e(l,!1)}}async function y(t){e(i,t,!0),await f({home_brief:t})}async function b(t){e(u,t,!0),await f({accent_color:t})}function p(){e(a,[],!0),e(s,null)}async function w(){await f({home_brief:""}),e(i,""),e(a,[],!0),e(s,null)}return{get insights(){return n(a)},get generatedAt(){return n(s)},get loading(){return n(l)},get loaded(){return n(o)},get homeBrief(){return n(i)},get accentColor(){return n(u)},get briefLoaded(){return n(c)},get error(){return n(g)},load:d,generate:m,clearInsights:p,saveBrief:y,saveAccentColor:b,reset:w}}const P=B();export{P as insightsStore};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{O as _,f as P,g as b,e as W,w as m,a as G,t as k,c as A,r as I,b as q,d as j,h as V,i as R,j as z,k as C,l as K,D as Q,p as X,m as Z}from"./CSVbGg_b.js";import{r as O}from"./DRO19fCg.js";const T=3e4;class $ extends _{constructor(n){super(),this.doc=n,this.clientID=n.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const e=b();this.getLocalState()!==null&&T/2<=e-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const s=[];this.meta.forEach((a,c)=>{c!==this.clientID&&T<=e-a.lastUpdated&&this.states.has(c)&&s.push(c)}),s.length>0&&Y(this,s,"timeout")},P(T/10)),n.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(n){const e=this.clientID,s=this.meta.get(e),a=s===void 0?0:s.clock+1,c=this.states.get(e);n===null?this.states.delete(e):this.states.set(e,n),this.meta.set(e,{clock:a,lastUpdated:b()});const i=[],u=[],r=[],f=[];n===null?f.push(e):c==null?n!=null&&i.push(e):(u.push(e),W(c,n)||r.push(e)),(i.length>0||r.length>0||f.length>0)&&this.emit("change",[{added:i,updated:r,removed:f},"local"]),this.emit("update",[{added:i,updated:u,removed:f},"local"])}setLocalStateField(n,e){const s=this.getLocalState();s!==null&&this.setLocalState({...s,[n]:e})}getStates(){return this.states}}const Y=(t,n,e)=>{const s=[];for(let a=0;a<n.length;a++){const c=n[a];if(t.states.has(c)){if(t.states.delete(c),c===t.clientID){const i=t.meta.get(c);t.meta.set(c,{clock:i.clock+1,lastUpdated:b()})}s.push(c)}}s.length>0&&(t.emit("change",[{added:[],updated:[],removed:s},e]),t.emit("update",[{added:[],updated:[],removed:s},e]))},H=(t,n,e=t.states)=>{const s=n.length,a=A();m(a,s);for(let c=0;c<s;c++){const i=n[c],u=e.get(i)||null,r=t.meta.get(i).clock;m(a,i),m(a,r),G(a,JSON.stringify(u))}return k(a)},tt=(t,n,e)=>{const s=j(n),a=b(),c=[],i=[],u=[],r=[],f=I(s);for(let w=0;w<f;w++){const d=I(s);let y=I(s);const h=JSON.parse(q(s)),g=t.meta.get(d),U=t.states.get(d),S=g===void 0?0:g.clock;(S<y||S===y&&h===null&&t.states.has(d))&&(h===null?d===t.clientID&&t.getLocalState()!=null?y++:t.states.delete(d):t.states.set(d,h),t.meta.set(d,{clock:y,lastUpdated:a}),g===void 0&&h!==null?c.push(d):g!==void 0&&h===null?r.push(d):h!==null&&(W(h,U)||u.push(d),i.push(d)))}(c.length>0||u.length>0||r.length>0)&&t.emit("change",[{added:c,updated:u,removed:r},e]),(c.length>0||i.length>0||r.length>0)&&t.emit("update",[{added:c,updated:i,removed:r},e])},B=0,M=1,N=2,et=(t,n)=>{m(t,B);const e=R(n);V(t,e)},nt=(t,n,e)=>{m(t,M),V(t,K(n,e))},st=(t,n,e)=>nt(n,e,C(t)),F=(t,n,e,s)=>{try{z(n,C(t),e)}catch(a){s?.(a),console.error("Caught error while handling a Yjs update",a)}},at=(t,n)=>{m(t,N),V(t,n)},ct=F,ot=(t,n,e,s,a)=>{const c=I(t);switch(c){case B:st(t,n,e);break;case M:F(t,e,s,a);break;case N:ct(t,e,s,a);break;default:throw new Error("Unknown message type")}return c},L=0,x=1;function it(t,n,e){const s=new TextEncoder().encode(t),a=new ArrayBuffer(2+s.length+1+e.length);return new DataView(a).setUint16(0,s.length),new Uint8Array(a,2,s.length).set(s),new Uint8Array(a)[2+s.length]=n,new Uint8Array(a,2+s.length+1).set(e),a}function lt(t){if(t.byteLength<3)return null;const e=new DataView(t).getUint16(0);if(t.byteLength<2+e+1)return null;const s=new TextDecoder().decode(new Uint8Array(t,2,e)),a=new Uint8Array(t)[2+e],c=new Uint8Array(t,2+e+1);return{docName:s,msgType:a,payload:c}}function ut(t,n){const e=new Q,s=e.getText("content"),a=new $(e);a.setLocalStateField("user",{name:n.name,color:n.color,colorLight:n.colorLight??n.color+"33"});let c=null,i=!1,u=!1;function r(){return O.ws??null}function f(o,p){const l=r();!l||l.readyState!==WebSocket.OPEN||l.send(it(t,o,p))}function w(){const o=A();et(o,e),f(L,k(o))}function d(o){const p=o??[e.clientID],l=H(a,p);f(x,l)}function y(o){if(i||typeof o.data=="string")return;const p=o.data instanceof ArrayBuffer?o.data:null;if(!p)return;const l=lt(p);if(!(!l||l.docName!==t))if(l.msgType===L){const v=j(l.payload),D=X(v),E=A();ot(v,E,e,"ws-server"),Z(E)>0&&f(L,k(E)),!u&&(D===M||D===N)&&(u=!0,S.synced=!0)}else l.msgType===x&&tt(a,l.payload,"ws-server")}function h(o,p){if(i||p==="ws-server")return;const l=A();at(l,o),f(L,k(l))}function g({added:o,updated:p,removed:l},v){if(i||v==="ws-server")return;const D=o.concat(p,l);d(D)}function U(){if(i)return;const o=r();!o||o.readyState!==WebSocket.OPEN||(o.send(JSON.stringify({type:"collab:join",docName:t})),c&&o.removeEventListener("message",c),c=y,o.addEventListener("message",c),w(),d())}const S={ydoc:e,ytext:s,awareness:a,synced:!1,destroy:J};e.on("update",h),a.on("update",g),U(),O.addConnectHandler(U);function J(){if(i)return;i=!0,Y(a,[e.clientID],"local"),d([e.clientID]);const o=r();o&&o.readyState===WebSocket.OPEN&&o.send(JSON.stringify({type:"collab:leave",docName:t})),c&&o&&(o.removeEventListener("message",c),c=null),e.off("update",h),a.off("update",g),a.destroy(),e.destroy()}return S}export{ut as createCollabSession};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{E as z,a as F,W as V}from"./DnL9f0lc.js";import{StateField as G}from"./CX_61fY8.js";import{syntaxTree as $}from"./D7ZqAKi9.js";let k=null,H=!1;const J=/\[\[([^\]]+)\]\]/g,Q=/\*\*(.+?)\*\*/g,X=/\*(.+?)\*/g;function R(l,s){if(l.innerHTML="",!s)return;const a=s.split(J);for(let e=0;e<a.length;e++)if(e%2===1){const n=document.createElement("a");n.className="cm-table-wikilink",n.textContent=a[e],n.href="javascript:void(0)",n.dataset.wikilink=a[e],l.appendChild(n)}else if(a[e]){let n=a[e];n=n.replace(Q,"<strong>$1</strong>"),n=n.replace(X,"<em>$1</em>");const d=document.createElement("span");d.innerHTML=n,l.appendChild(d)}}function j(l,s){const a=[],e=[],n=[],d=[];let c=s.node.firstChild,h=-1;for(;c;){if(c.name==="TableHeader"){let u=c.firstChild,f=0;for(;u;){if(u.name==="TableCell"){const p=l.doc.sliceString(u.from,u.to).trim();a.push(p),d.push({row:-1,col:f,from:u.from,to:u.to}),f++}u=u.nextSibling}}else if(c.name==="TableDelimiter"){const f=l.doc.sliceString(c.from,c.to).split("|").filter(p=>p.trim().length>0);for(const p of f){const x=p.trim();x.startsWith(":")&&x.endsWith(":")?e.push("center"):x.endsWith(":")?e.push("right"):x.startsWith(":")?e.push("left"):e.push(null)}}else if(c.name==="TableRow"){h++;const u=[];let f=c.firstChild,p=0;for(;f;){if(f.name==="TableCell"){const x=l.doc.sliceString(f.from,f.to).trim();u.push(x),d.push({row:h,col:p,from:f.from,to:f.to}),p++}f=f.nextSibling}n.push(u)}c=c.nextSibling}return a.length===0?null:{from:s.from,to:s.to,headers:a,alignments:e,rows:n,cellRanges:d}}function D(l,s){let a=null;return $(l).iterate({enter(e){e.name==="Table"&&s>=e.from&&s<=e.to&&(a=j(l,e))}}),a}function Y(l,s,a){const e=a.filter(c=>c>=0).sort((c,h)=>h-c);if(e.length===0)return;const n=l.state,d=[];for(const c of e){const u=n.doc.lineAt(s.from).number+2+c;if(u>n.doc.lineAt(s.to).number)continue;const f=n.doc.line(u),p=f.from>0?f.from-1:f.from;d.push({from:p,to:f.to})}d.length>0&&l.dispatch({changes:d})}function Z(l,s,a){const e=D(l.state,s.from);if(!e)return;const n=[];for(const{row:d,col:c}of a){const h=e.cellRanges.find(x=>x.row===d&&x.col===c);if(!h)continue;const u=l.state.doc.sliceString(h.from,h.to),f=u.match(/^\s*/)?.[0]??" ",p=u.match(/\s*$/)?.[0]??" ";n.push({from:h.from,to:h.to,insert:f+p})}n.length>0&&(n.sort((d,c)=>c.from-d.from),l.dispatch({changes:n}))}function tt(l,s){const a=s.headers.length,e=`
|
|
2
|
+
|`+" |".repeat(a);l.dispatch({changes:{from:s.to,insert:e}})}function et(l,s){const a=l.state,e=[],n=a.doc.lineAt(s.from).number,d=a.doc.lineAt(s.to).number;for(let c=n;c<=d;c++){const h=a.doc.line(c),u=h.text.trimEnd(),f=c===n+1,p=u.lastIndexOf("|");if(p===-1)continue;const x=h.from+p+1,M=f?" --- |":" |";e.push({from:x,to:h.to,insert:M})}e.sort((c,h)=>h.from-c.from),l.dispatch({changes:e})}class nt extends V{constructor(s){super(),this.parsed=s}eq(s){if(k&&k.tableFrom===this.parsed.from)return!0;const a=this.parsed,e=s.parsed;if(a.headers.length!==e.headers.length||a.rows.length!==e.rows.length)return!1;for(let n=0;n<a.headers.length;n++)if(a.headers[n]!==e.headers[n])return!1;for(let n=0;n<a.rows.length;n++)for(let d=0;d<a.rows[n].length;d++)if(a.rows[n][d]!==e.rows[n]?.[d])return!1;return!0}toDOM(s){const a=this.parsed,e=document.createElement("div");e.className="cm-table-container";const n=document.createElement("table");n.className="cm-table-widget";const d=[],c=document.createElement("thead"),h=document.createElement("tr");for(let t=0;t<a.headers.length;t++){const o=document.createElement("th");R(o,a.headers[t]),o.dataset.row="-1",o.dataset.col=String(t),a.alignments[t]&&(o.style.textAlign=a.alignments[t]),h.appendChild(o),d.push(o)}c.appendChild(h),n.appendChild(c);const u=document.createElement("tbody");for(let t=0;t<a.rows.length;t++){const o=document.createElement("tr");for(let r=0;r<a.headers.length;r++){const i=document.createElement("td");R(i,a.rows[t]?.[r]??""),i.dataset.row=String(t),i.dataset.col=String(r),a.alignments[r]&&(i.style.textAlign=a.alignments[r]),o.appendChild(i),d.push(i)}u.appendChild(o)}n.appendChild(u),e.appendChild(n);function f(t,o){return t===-1?a.headers[o]??"":a.rows[t]?.[o]??""}function p(t){const o=parseInt(t.dataset.row,10),r=parseInt(t.dataset.col,10),i=f(o,r);k={tableFrom:a.from,row:o,col:r,originalText:i},t.setAttribute("contenteditable","true"),t.textContent=i,t.focus();const g=document.createRange();g.selectNodeContents(t),g.collapse(!1);const m=window.getSelection();m?.removeAllRanges(),m?.addRange(g)}function x(t){const o=parseInt(t.dataset.row,10),r=parseInt(t.dataset.col,10);if(isNaN(o)||isNaN(r)){t.removeAttribute("contenteditable");return}const i=(t.textContent??"").trim(),g=k?.originalText??"";if(t.removeAttribute("contenteditable"),k=null,R(t,i),i===g)return;const m=D(s.state,a.from);if(!m)return;const w=m.cellRanges.find(L=>L.row===o&&L.col===r);if(!w)return;const y=s.state.doc.sliceString(w.from,w.to),E=y.match(/^\s*/)?.[0]??" ",B=y.match(/\s*$/)?.[0]??" ",S=E+i+B;H=!0,s.dispatch({changes:{from:w.from,to:w.to,insert:S}}),requestAnimationFrame(()=>{H=!1})}function M(t,o){return d.findIndex(r=>r.dataset.row===String(t)&&r.dataset.col===String(o))}let C=new Set,b=null;function v(){for(const t of C)t.classList.remove("cm-table-selected");C.clear(),b=null}function _(t){v(),t.classList.add("cm-table-selected"),C.add(t),b=t,n.setAttribute("tabindex","0"),n.focus()}function N(t,o){const r=parseInt(t.dataset.row,10),i=parseInt(t.dataset.col,10),g=parseInt(o.dataset.row,10),m=parseInt(o.dataset.col,10),w=Math.min(r,g),y=Math.max(r,g),E=Math.min(i,m),B=Math.max(i,m);v(),b=t;for(const S of d){const L=parseInt(S.dataset.row,10),P=parseInt(S.dataset.col,10);L>=w&&L<=y&&P>=E&&P<=B&&(S.classList.add("cm-table-selected"),C.add(S))}n.setAttribute("tabindex","0"),n.focus()}function O(){return Array.from(C).map(t=>({row:parseInt(t.dataset.row,10),col:parseInt(t.dataset.col,10)}))}function U(t){const o=a.headers.length;let r=0;for(const i of C)parseInt(i.dataset.row,10)===t&&r++;return r>=o}e.setAttribute("tabindex","0"),e.style.outline="none";let W=!1,I=null;e.addEventListener("mousedown",t=>{const o=t.target.closest(".cm-table-wikilink");if(o?.dataset.wikilink){t.preventDefault(),t.stopPropagation(),s.dom.dispatchEvent(new CustomEvent("wikilinkclick",{detail:o.dataset.wikilink,bubbles:!0}));return}const r=t.target.closest("td, th");if(!r)return;t.preventDefault(),t.stopPropagation();const i=n.querySelector('[contenteditable="true"]');if(i&&i!==r&&x(i),t.shiftKey&&b){if(i){const g=parseInt(i.dataset.row,10),m=parseInt(i.dataset.col,10);i.removeAttribute("contenteditable"),k=null,R(i,f(g,m))}N(b,r)}else v(),b=r,I=r,W=!0,_(r)}),e.addEventListener("mousemove",t=>{if(!W||!I)return;const o=t.target.closest("td, th");if(!o||o===I&&C.size<=1)return;const r=n.querySelector('[contenteditable="true"]');if(r){const i=parseInt(r.dataset.row,10),g=parseInt(r.dataset.col,10);r.removeAttribute("contenteditable"),k=null,R(r,f(i,g))}N(I,o)});function K(){W&&(W=!1,C.size===1&&I&&(v(),p(I)),I=null)}e.addEventListener("mouseup",K),document.addEventListener("mouseup",K),e.addEventListener("keydown",t=>{const o=e.querySelector('[contenteditable="true"]');if(o){const r=parseInt(o.dataset.row,10),i=parseInt(o.dataset.col,10),g=M(r,i);if(t.key==="Tab"){t.preventDefault(),x(o);const m=t.shiftKey?g-1:g+1;m>=0&&m<d.length&&(v(),p(d[m]))}else t.key==="Escape"?(t.preventDefault(),o.removeAttribute("contenteditable"),k=null,R(o,f(r,i)),e.focus()):t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),x(o),e.focus());return}if(t.key==="Enter"&&b){t.preventDefault(),v(),p(b);return}if(t.key==="Delete"||t.key==="Backspace"){t.preventDefault();const r=O();if(r.length===0&&b){const w=parseInt(b.dataset.row,10),y=parseInt(b.dataset.col,10);r.push({row:w,col:y})}if(r.length===0)return;const g=[...new Set(r.map(w=>w.row))].filter(w=>U(w)),m=D(s.state,a.from);if(!m)return;g.length>0?Y(s,m,g):Z(s,m,r),v(),b=null;return}if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(t.key)){t.preventDefault();const r=b||Array.from(C).pop();if(!r)return;const i=parseInt(r.dataset.row,10),g=parseInt(r.dataset.col,10);let m=i,w=g;t.key==="ArrowUp"&&m--,t.key==="ArrowDown"&&m++,t.key==="ArrowLeft"&&w--,t.key==="ArrowRight"&&w++;const y=d.find(E=>parseInt(E.dataset.row,10)===m&&parseInt(E.dataset.col,10)===w);y&&(t.shiftKey&&b?N(b,y):(v(),b=y,p(y)));return}t.key.length===1&&!t.ctrlKey&&!t.metaKey&&b&&(v(),p(b))}),e.addEventListener("focusout",t=>{const o=t.target;if(o.getAttribute("contenteditable")!=="true"||!o.dataset.row||!o.dataset.col)return;const r=t.relatedTarget;r&&e.contains(r)||(x(o),v())});const A=document.createElement("div");A.className="cm-table-add-row",A.innerHTML='<span class="cm-table-add-icon">+</span>',A.title="Add row below",A.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation();const o=D(s.state,a.from);o&&tt(s,o)}),e.appendChild(A);const T=document.createElement("div");return T.className="cm-table-add-col",T.innerHTML='<span class="cm-table-add-icon">+</span>',T.title="Add column",T.addEventListener("mousedown",t=>{t.preventDefault(),t.stopPropagation();const o=D(s.state,a.from);o&&et(s,o)}),e.appendChild(T),e}ignoreEvent(){return!0}}const st=G.define({create(l){return q(l)},update(l,s){return H?l:q(s.state)},provide(l){return z.decorations.from(l)}});function q(l){const s=[];return $(l).iterate({enter(e){if(e.name!=="Table")return;const n=j(l,e);if(n)return s.push(F.replace({widget:new nt(n),block:!0}).range(n.from,n.to)),!1}}),F.set(s,!0)}const it=z.baseTheme({".cm-table-container":{position:"relative",margin:"8px 0",paddingRight:"28px",paddingBottom:"24px",maxWidth:"100%",overflow:"auto"},".cm-table-widget":{borderCollapse:"separate",borderSpacing:"0",width:"100%",maxWidth:"100%",tableLayout:"auto",fontSize:"14px",lineHeight:"1.5",border:"1px solid var(--color-border)",borderRadius:"4px"},".cm-table-widget th":{fontWeight:"600",color:"var(--color-text-primary)",borderBottom:"1px solid var(--color-border)",borderRight:"1px solid var(--color-border)",padding:"6px 12px",textAlign:"left"},".cm-table-widget th:last-child":{borderRight:"none"},".cm-table-widget td":{borderBottom:"1px solid var(--color-border)",borderRight:"1px solid var(--color-border)",padding:"6px 12px",color:"var(--color-text)",minHeight:"33px",height:"33px"},".cm-table-widget td:last-child":{borderRight:"none"},".cm-table-widget tr:last-child td":{borderBottom:"none"},".cm-table-widget th, .cm-table-widget td":{cursor:"text",outline:"none",minWidth:"40px",wordBreak:"break-word"},'.cm-table-widget [contenteditable="true"]':{background:"var(--color-bg-hover)",boxShadow:"inset 0 0 0 1px var(--color-accent)"},".cm-table-widget .cm-table-selected":{background:"var(--color-bg-hover)",boxShadow:"inset 0 0 0 1px var(--color-accent)"},".cm-table-widget:focus":{outline:"none"},".cm-table-wikilink":{color:"var(--color-link, #e07070)",cursor:"pointer",textDecoration:"none"},".cm-table-wikilink:hover":{textDecoration:"underline"},".cm-table-add-row":{display:"flex",justifyContent:"center",alignItems:"center",height:"20px",cursor:"pointer",opacity:"0",transition:"opacity 100ms"},".cm-table-add-col":{display:"flex",position:"absolute",right:"0",top:"0",bottom:"24px",width:"24px",cursor:"pointer",alignItems:"center",justifyContent:"center",opacity:"0",transition:"opacity 100ms"},".cm-table-container:hover .cm-table-add-row":{opacity:"0.4"},".cm-table-container:hover .cm-table-add-col":{opacity:"0.4"},".cm-table-add-row:hover":{opacity:"1 !important"},".cm-table-add-col:hover":{opacity:"1 !important"},".cm-table-add-icon":{fontSize:"16px",lineHeight:"1",color:"var(--color-text-tertiary)",userSelect:"none"}});export{st as tablePreviewPlugin,it as tablePreviewTheme};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as y,k as _,a1 as o,a2 as u,o as t,C as g,_ as i,z as l,q as d,A as p,v}from"./CT6oIU-C.js";function C(n,r){let a=null,E=t;var s;if(t){a=p;for(var e=v(document.head);e!==null&&(e.nodeType!==g||e.data!==n);)e=i(e);if(e===null)l(!1);else{var f=i(e);e.remove(),d(f)}}t||(s=document.head.appendChild(y()));try{_(()=>r(s),o|u)}finally{E&&(l(!0),d(a))}}export{C as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{e as h,f as U,s as a,g as t,
|
|
1
|
+
import{e as h,f as U,s as a,g as t,av as x}from"./CT6oIU-C.js";import{i as L,g as V}from"./_xj7x2ng.js";import{n as y}from"./4Hhzb6pv.js";import{w as W}from"./CJ8__CWt.js";function X(g,c,o){fetch("/api/chat/stream",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g),signal:o}).then(async n=>{if(!n.ok){c({type:"error",message:`HTTP ${n.status}`});return}const r=n.body?.getReader();if(!r){c({type:"error",message:"No response body"});return}const p=new TextDecoder;let m="";for(;;){const{done:k,value:O}=await r.read();if(k)break;m+=p.decode(O,{stream:!0});const A=m.split(`
|
|
2
2
|
`);m=A.pop()??"";for(const C of A)if(C.startsWith("data: "))try{const f=JSON.parse(C.slice(6));c(f)}catch{}}}).catch(n=>{n.name!=="AbortError"&&c({type:"error",message:n.message})})}const D="sg-chat-sessions",J="sg-chat-version",z=14;function b(){try{const g=localStorage.getItem(D);if(!g)return[];if(localStorage.getItem(J)==="2")return JSON.parse(g);const n=JSON.parse(g).map(r=>({id:crypto.randomUUID(),createdAt:r.date+"T00:00:00.000Z",updatedAt:r.date+"T00:00:00.000Z",title:r.messages.find(p=>p.role==="user")?.content.slice(0,50)||"New chat",messages:r.messages}));return localStorage.setItem(D,JSON.stringify(n)),localStorage.setItem(J,"2"),n}catch{return[]}}function _(g){const o=[...g].sort((n,r)=>r.updatedAt.localeCompare(n.updatedAt)).slice(0,z);try{localStorage.setItem(D,JSON.stringify(o)),localStorage.setItem(J,"2")}catch{}}function N(g,c){const o=b(),n=c.map(({streaming:p,...m})=>m),r=o.findIndex(p=>p.id===g);r>=0&&(o[r].messages=n,o[r].updatedAt=new Date().toISOString()),_(o)}function B(){const c=b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt))[0];let o=h(U(c?c.messages.map(e=>({...e,streaming:!1})):[])),n=h(U(c?.id??null)),r=h(!1),p=h(0),m=h(0),k=h(0),O=h(null),A=null,C=h(""),f=h(U(!!c));const R=new Set(["create_entity","update_entity","delete_entity","move_entity"]);function M(){$();const e=crypto.randomUUID();a(n,e,!0),a(o,[],!0),a(f,!1)}function E(){if(t(n)&&t(f))return t(n);const e=t(n)||crypto.randomUUID();a(n,e,!0);const i=new Date().toISOString(),d=b();return d.push({id:e,createdAt:i,updatedAt:i,title:"New chat",messages:[]}),_(d),a(f,!0),e}function K(e){if(!e.trim()||t(r))return;a(O,null);const i=E();t(o).push({role:"user",content:e}),t(o).push({role:"agent",content:"",segments:[],streaming:!0}),a(r,!0);const d=b(),l=d.find(s=>s.id===i);l&&l.title==="New chat"&&(l.title=e.slice(0,50),_(d)),N(i,t(o));let T=!1,w=null;A=new AbortController;const G=y.selectedSubPath?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}/${y.selectedSubPath}`:y.selectedId?`${y.selectedRepo}/${y.selectedType}/${y.selectedId}`:null,P=t(o).slice(0,-2).map(s=>({role:s.role==="agent"?"assistant":s.role,content:s.content})),H={message:e,context:G??void 0,sessionId:i,history:P.length>0?P:void 0};X(H,s=>{if(!t(r))return;const u=t(o)[t(o).length-1];if(!u||u.role!=="agent")return;const S=u.segments;switch(s.type){case"token":{u.content+=s.text??"";const I=S[S.length-1];I&&I.type==="text"?I.content+=s.text??"":S.push({type:"text",content:s.text??""}),u.segments=S,x(m);break}case"tool_start":if(s.name){R.has(s.name)&&(T=!0);const I=S[S.length-1];I&&I.type==="tools"?I.names=[...I.names,s.name]:S.push({type:"tools",names:[s.name]}),u.segments=S,x(m)}break;case"mutation":T=!0,s.action==="created"&&s.repo&&s.entityType&&s.entityId&&(w={repo:s.repo,entityType:s.entityType,entityId:s.entityId}),window.StudioChrome?.emitMutation?.({action:s.action,repo:s.repo,entityType:s.entityType,entityId:s.entityId});break;case"highlight":a(O,s.entityIds&&s.entityIds.length>0?new Set(s.entityIds):null,!0);break;case"done":s.message&&!u.content&&(u.content=s.message,u.segments=[{type:"text",content:s.message}]),u.streaming=!1,a(r,!1),N(i,t(o)),T&&(L().then(()=>{x(p)}),W.refreshAll().then(()=>{w&&V(`/${w.repo}/${w.entityType}/${w.entityId}`)}));break;case"error":u.content+=`
|
|
3
3
|
|
|
4
4
|
Error: ${s.message}`,u.streaming=!1,a(r,!1),N(i,t(o));break}},A.signal)}function $(){if(!t(r))return;fetch("/api/chat/abort",{method:"POST",credentials:"include"}).catch(()=>{}),A?.abort(),A=null,a(r,!1);const e=t(o)[t(o).length-1];e?.streaming&&(e.streaming=!1,t(n)&&N(t(n),t(o)))}function Y(){$(),a(o,[],!0),t(n)&&t(f)&&N(t(n),t(o))}function Z(e){const d=b().filter(l=>l.id!==e);if(_(d),t(n)===e){const l=d.sort((T,w)=>w.updatedAt.localeCompare(T.updatedAt));l.length>0?(a(n,l[0].id,!0),a(o,l[0].messages.map(T=>({...T,streaming:!1})),!0),a(f,!0)):(a(n,null),a(o,[],!0),a(f,!1))}}function j(e){const d=b().find(l=>l.id===e);d&&($(),a(n,d.id,!0),a(o,d.messages.map(l=>({...l,streaming:!1})),!0),a(f,!0))}function q(){return b().sort((e,i)=>i.updatedAt.localeCompare(e.updatedAt)).map(e=>({id:e.id,title:e.title,createdAt:e.createdAt,updatedAt:e.updatedAt,preview:e.messages.find(i=>i.role==="user")?.content.slice(0,80)||"",count:e.messages.length,active:e.id===t(n)}))}return{get messages(){return t(o)},get streaming(){return t(r)},get mutationCount(){return t(p)},get scrollTick(){return t(m)},get forceScroll(){return t(k)},triggerScroll(){x(k)},get highlightedIds(){return t(O)},get activeSessionId(){return t(n)},get draftInput(){return t(C)},set draftInput(e){a(C,e,!0)},send:K,stop:$,clear:Y,newSession:M,deleteSession:Z,getSessions:q,loadSession:j}}const te=B();export{te as chatStore};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as p,s as M,f as L}from"./iDtAARVW.js";import{i as z}from"./Y90OgS-9.js";import{p as Z,l as c,s as m,d as n,g as l,a as $,c as _,n as H,r as u,b as S,m as g,t as k}from"./CT6oIU-C.js";import{i as B}from"./72bZS3G9.js";import{a as C}from"./CmCtpZ1Y.js";import{l as v,p as h}from"./cLyZlkXv.js";var N=L("<title> </title>"),P=L('<svg><!><path d="M27,16.76c0-.25,0-.5,0-.76s0-.51,0-.77l1.92-1.68A2,2,0,0,0,29.3,11L26.94,7a2,2,0,0,0-1.73-1,2,2,0,0,0-.64.1l-2.43.82a11.35,11.35,0,0,0-1.31-.75l-.51-2.52a2,2,0,0,0-2-1.61H13.64a2,2,0,0,0-2,1.61l-.51,2.52a11.48,11.48,0,0,0-1.32.75L7.43,6.06A2,2,0,0,0,6.79,6,2,2,0,0,0,5.06,7L2.7,11a2,2,0,0,0,.41,2.51L5,15.24c0,.25,0,.5,0,.76s0,.51,0,.77L3.11,18.45A2,2,0,0,0,2.7,21L5.06,25a2,2,0,0,0,1.73,1,2,2,0,0,0,.64-.1l2.43-.82a11.35,11.35,0,0,0,1.31.75l.51,2.52a2,2,0,0,0,2,1.61h4.72a2,2,0,0,0,2-1.61l.51-2.52a11.48,11.48,0,0,0,1.32-.75l2.42.82a2,2,0,0,0,.64.1,2,2,0,0,0,1.73-1L29.3,21a2,2,0,0,0-.41-2.51ZM25.21,24l-3.43-1.16a8.86,8.86,0,0,1-2.71,1.57L18.36,28H13.64l-.71-3.55a9.36,9.36,0,0,1-2.7-1.57L6.79,24,4.43,20l2.72-2.4a8.9,8.9,0,0,1,0-3.13L4.43,12,6.79,8l3.43,1.16a8.86,8.86,0,0,1,2.71-1.57L13.64,4h4.72l.71,3.55a9.36,9.36,0,0,1,2.7,1.57L25.21,8,27.57,12l-2.72,2.4a8.9,8.9,0,0,1,0,3.13L27.57,20Z"></path><path d="M16,22a6,6,0,1,1,6-6A5.94,5.94,0,0,1,16,22Zm0-10a3.91,3.91,0,0,0-4,4,3.91,3.91,0,0,0,4,4,3.91,3.91,0,0,0,4-4A3.91,3.91,0,0,0,16,12Z"></path></svg>');function F(b,a){const e=v(a,["children","$$slots","$$events","$$legacy"]),x=v(e,["size","title"]);Z(a,!1);const t=g(),d=g();let f=h(a,"size",8,16),s=h(a,"title",8,void 0);c(()=>(n(e),n(s())),()=>{m(t,e["aria-label"]||e["aria-labelledby"]||s())}),c(()=>(l(t),n(e)),()=>{m(d,{"aria-hidden":l(t)?void 0:!0,role:l(t)?"img":void 0,focusable:Number(e.tabindex)===0?!0:void 0})}),$(),z();var r=P();C(r,()=>({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",fill:"currentColor",preserveAspectRatio:"xMidYMid meet",width:f(),height:f(),...l(d),...x}));var w=_(r);{var A=i=>{var o=N(),y=_(o,!0);u(o),k(()=>M(y,s())),p(i,o)};B(w,i=>{s()&&i(A)})}H(2),u(r),p(b,r),S()}export{F as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{j as O,k as Z,E as J,o as H,q as b,v as y,w as $,g as V,x as j,H as ee,y as Y,z as F,A as D,C as re,B as ne,D as U,F as fe,G as m,I as L,J as ae,K as ie,L as le,M as ue,N as B,O as se,P as oe,m as te,Q as X,R as ve,S as K,T as P,U as z,V as de,W as ce,X as pe,Y as _e,Z as he,_ as ge}from"./CT6oIU-C.js";function Ce(e,i){return i}function Ee(e,i,l){for(var d=[],g=i.length,s,u=i.length,p=0;p<g;p++){let E=i[p];P(E,()=>{if(s){if(s.pending.delete(E),s.done.add(E),s.pending.size===0){var o=e.outrogroups;q(B(s.done)),o.delete(s),o.size===0&&(e.outrogroups=null)}}else u-=1},!1)}if(u===0){var a=d.length===0&&l!==null;if(a){var t=l,n=t.parentNode;_e(n),n.append(t),e.items.clear()}q(i,!a)}else s={pending:new Set(i),done:new Set},(e.outrogroups??=new Set).add(s)}function q(e,i=!0){for(var l=0;l<e.length;l++)he(e[l],i)}var G;function we(e,i,l,d,g,s=null){var u=e,p=new Map,a=(i&J)!==0;if(a){var t=e;u=H?b(y(t)):t.appendChild(O())}H&&$();var n=null,E=le(()=>{var f=l();return ue(f)?f:f==null?[]:B(f)}),o,c=!0;function A(){r.fallback=n,me(r,o,u,i,d),n!==null&&(o.length===0?(n.f&m)===0?K(n):(n.f^=m,k(n,null,u)):P(n,()=>{n=null}))}var I=Z(()=>{o=V(E);var f=o.length;let N=!1;if(H){var S=j(u)===ee;S!==(f===0)&&(u=Y(),b(u),F(!1),N=!0)}for(var h=new Set,C=fe,x=ie(),_=0;_<f;_+=1){H&&D.nodeType===re&&D.data===ne&&(u=D,N=!0,F(!1));var w=o[_],R=d(w,_),v=c?null:p.get(R);v?(v.v&&U(v.v,w),v.i&&U(v.i,_),x&&C.unskip_effect(v.e)):(v=Te(p,c?u:G??=O(),w,R,_,g,i,l),c||(v.e.f|=m),p.set(R,v)),h.add(R)}if(f===0&&s&&!n&&(c?n=L(()=>s(u)):(n=L(()=>s(G??=O())),n.f|=m)),f>h.size&&ae(),H&&f>0&&b(Y()),!c)if(x){for(const[Q,W]of p)h.has(Q)||C.skip_effect(W.e);C.oncommit(A),C.ondiscard(()=>{})}else A();N&&F(!0),V(E)}),r={effect:I,items:p,outrogroups:null,fallback:n};c=!1,H&&(u=D)}function M(e){for(;e!==null&&(e.f&ce)===0;)e=e.next;return e}function me(e,i,l,d,g){var s=(d&pe)!==0,u=i.length,p=e.items,a=M(e.effect.first),t,n=null,E,o=[],c=[],A,I,r,f;if(s)for(f=0;f<u;f+=1)A=i[f],I=g(A,f),r=p.get(I).e,(r.f&m)===0&&(r.nodes?.a?.measure(),(E??=new Set).add(r));for(f=0;f<u;f+=1){if(A=i[f],I=g(A,f),r=p.get(I).e,e.outrogroups!==null)for(const v of e.outrogroups)v.pending.delete(r),v.done.delete(r);if((r.f&m)!==0)if(r.f^=m,r===a)k(r,null,l);else{var N=n?n.next:a;r===e.effect.last&&(e.effect.last=r.prev),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev),T(e,n,r),T(e,r,N),k(r,N,l),n=r,o=[],c=[],a=M(n.next);continue}if((r.f&z)!==0&&(K(r),s&&(r.nodes?.a?.unfix(),(E??=new Set).delete(r))),r!==a){if(t!==void 0&&t.has(r)){if(o.length<c.length){var S=c[0],h;n=S.prev;var C=o[0],x=o[o.length-1];for(h=0;h<o.length;h+=1)k(o[h],S,l);for(h=0;h<c.length;h+=1)t.delete(c[h]);T(e,C.prev,x.next),T(e,n,C),T(e,x,S),a=S,n=x,f-=1,o=[],c=[]}else t.delete(r),k(r,a,l),T(e,r.prev,r.next),T(e,r,n===null?e.effect.first:n.next),T(e,n,r),n=r;continue}for(o=[],c=[];a!==null&&a!==r;)(t??=new Set).add(a),c.push(a),a=M(a.next);if(a===null)continue}(r.f&m)===0&&o.push(r),n=r,a=M(r.next)}if(e.outrogroups!==null){for(const v of e.outrogroups)v.pending.size===0&&(q(B(v.done)),e.outrogroups?.delete(v));e.outrogroups.size===0&&(e.outrogroups=null)}if(a!==null||t!==void 0){var _=[];if(t!==void 0)for(r of t)(r.f&z)===0&&_.push(r);for(;a!==null;)(a.f&z)===0&&a!==e.fallback&&_.push(a),a=M(a.next);var w=_.length;if(w>0){var R=(d&J)!==0&&u===0?l:null;if(s){for(f=0;f<w;f+=1)_[f].nodes?.a?.measure();for(f=0;f<w;f+=1)_[f].nodes?.a?.fix()}Ee(e,_,R)}}s&&de(()=>{if(E!==void 0)for(r of E)r.nodes?.a?.apply()})}function Te(e,i,l,d,g,s,u,p){var a=(u&se)!==0?(u&oe)===0?te(l,!1,!1):X(l):null,t=(u&ve)!==0?X(g):null;return{v:a,i:t,e:L(()=>(s(i,a??l,t??g,p),()=>{e.delete(d)}))}}function k(e,i,l){if(e.nodes)for(var d=e.nodes.start,g=e.nodes.end,s=i&&(i.f&m)===0?i.nodes.start:l;d!==null;){var u=ge(d);if(s.before(d),d===g)return;d=u}}function T(e,i,l){i===null?e.effect.first=l:i.next=l,l===null?e.effect.last=i:l.prev=i}export{we as e,Ce as i};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as m,f as w,s as u,g as o,u as at}from"./CT6oIU-C.js";import{a as d}from"./DGbA7IXh.js";function st(){return d("/api/workspace")}function ct(e){return d("/api/workspace",{method:"PUT",body:JSON.stringify(e)})}function Tt(){return d("/api/workspace/mcp-config")}function D(){return d("/api/repos")}function lt(e,i,s,f){return d("/api/repos",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:e,display_name:i||void 0,description:s,...f?{private:!0}:{}})})}function ut(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:i,display_name:s||void 0})})}function dt(e){return d(`/api/repos/${encodeURIComponent(e)}`,{method:"DELETE"})}function pt(){return d("/api/apps")}function ft(e){return d(`/api/repos/${encodeURIComponent(e)}/entities?summary=true`)}function bt(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`)}function It(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/entities`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,data:f,content:c})})}function $t(e,i,s){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"DELETE"})}function kt(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/entities/${encodeURIComponent(i)}/${encodeURIComponent(s)}`,{method:"PUT",body:JSON.stringify(f)})}function vt(e,i,s,f){return d(`/api/repos/${encodeURIComponent(e)}/change-type`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,newType:f})})}function At(e,i,s,f,c){return d(`/api/repos/${encodeURIComponent(e)}/transfer`,{method:"POST",body:JSON.stringify({entityType:i,entityId:s,targetRepo:f,mode:c})})}function Pt(){return d("/api/insights")}function Ut(){return d("/api/insights/generate",{method:"POST"})}function Rt(){return d("/api/preferences")}function Lt(e){return d("/api/preferences",{method:"PUT",body:JSON.stringify(e)})}function Ot(){return d("/api/views")}function _t(e,i,s){return d("/api/views",{method:"POST",body:JSON.stringify({name:e,viewType:s??"list",config:i})})}function Mt(e,i){return d(`/api/views/${e}`,{method:"PUT",body:JSON.stringify(i)})}function Ft(e){return d(`/api/views/${e}`,{method:"DELETE"})}function xt(e){return d(`/api/repos/${encodeURIComponent(e)}/commit`,{method:"POST"})}const mt=new Set(["meeting","decision","note","deal","proposal","brief"]);function yt(e){return e.replace(/-/g," ").replace(/\b\w/g,i=>i.toUpperCase())}function M(e,i){return i||e.split("-").map(s=>s.charAt(0).toUpperCase()+s.slice(1)).join(" ")}const gt="#e05050";function A(e){if(typeof document>"u")return;const i=e||gt,s=parseInt(i.slice(1,3),16),f=parseInt(i.slice(3,5),16),c=parseInt(i.slice(5,7),16),E=[document.documentElement,document.querySelector("[data-theme]")].filter(Boolean);for(const h of E)h.style.setProperty("--color-accent",i),h.style.setProperty("--color-accent-hover",ht(i,15)),h.style.setProperty("--color-accent-muted",`rgba(${s}, ${f}, ${c}, 0.08)`),h.style.setProperty("--color-link",j(i,15)),h.style.setProperty("--color-badge-bg",`rgba(${s}, ${f}, ${c}, 0.1)`),h.style.setProperty("--color-badge-text",j(i,20))}function ht(e,i){const s=Math.max(0,Math.round(parseInt(e.slice(1,3),16)*(1-i/100))),f=Math.max(0,Math.round(parseInt(e.slice(3,5),16)*(1-i/100))),c=Math.max(0,Math.round(parseInt(e.slice(5,7),16)*(1-i/100)));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function j(e,i){const s=Math.min(255,Math.round(parseInt(e.slice(1,3),16)+(255-parseInt(e.slice(1,3),16))*i/100)),f=Math.min(255,Math.round(parseInt(e.slice(3,5),16)+(255-parseInt(e.slice(3,5),16))*i/100)),c=Math.min(255,Math.round(parseInt(e.slice(5,7),16)+(255-parseInt(e.slice(5,7),16))*i/100));return`#${s.toString(16).padStart(2,"0")}${f.toString(16).padStart(2,"0")}${c.toString(16).padStart(2,"0")}`}function Ct(){let e=m(""),i=m(null),s=m(null),f=m(!1),c=m(w([]));const E={};let h=m(w([])),P=m(!1),U=m(null),g=m(w({})),R=w({}),L=w({}),$=w({}),F=m(0),x=m(null),C=m(""),k=null,S=m(0),T=m(0),J=m("alpha");async function W(){u(P,!0),u(U,null),u(S,0),u(T,0);try{const[t,n,r]=await Promise.all([D(),pt().catch(()=>[]),st().catch(()=>({name:""}))]);u(h,n,!0),u(e,r.name,!0),u(i,r.about??null,!0),u(s,r.accent_color??null,!0),u(f,!0),A(o(s)),u(c,t.map(a=>({name:a.name,displayName:M(a.name,a.display_name),type:a.type,private:a.private,sync:a.sync,count:null,entities:[],loading:!1,loaded:!1})),!0),await Promise.all(o(c).map(a=>b(a.name)))}catch(t){u(U,t.message,!0)}finally{u(P,!1)}}function V(t,n,r){const a=o(c).find(l=>l.name===t);a&&(a.entities=a.entities.filter(l=>!(l.id===r&&l.entityType===n)),a.count=a.entities.length)}async function Q(t){o(c).find(r=>r.name===t)&&await b(t,!0)}async function B(){u(S,0),u(T,0),await Promise.all(o(c).map(t=>b(t.name,!0)))}async function b(t,n=!1){const r=o(c).find(l=>l.name===t);if(!r||r.loading||!n&&r.loaded)return;const a=(E[t]??0)+1;E[t]=a,n||(r.loading=!0);try{const l=await ft(t);if(E[t]!==a)return;let y=0,O=0;for(const p of l)y+=p.document?.wikilinks?.length??0,O+=p.subContentCount??0;u(S,o(S)+y),u(T,o(T)+O);const _=new Set(["name","created_at","updated_at"]);r.entities=l.filter(p=>!p.id.toLowerCase().startsWith("readme")).map(p=>({id:p.id,title:p.data?.name??yt(p.id),entityType:p.entityType,repo:t,hasSubContent:!!p.hasSubContent,wikilinks:p.document?.wikilinks??[],createdAt:p.data?.created_at??null,updatedAt:p.data?.updated_at??null,fields:Object.fromEntries(Object.entries(p.data??{}).filter(([I])=>!_.has(I))),status:p.data?.status??void 0,priority:p.data?.priority??void 0,assignee:p.data?.assignee??void 0,dueDate:p.data?.due_date??void 0})).sort((p,I)=>{if(mt.has(p.entityType)){const it=p.fields.date??p.createdAt??"";return(I.fields.date??I.createdAt??"").localeCompare(it)}return p.title.localeCompare(I.title)}),r.count=r.entities.length,r.loaded=!0}catch(l){console.error(`Failed to load entities for ${t}:`,l)}finally{r.loading=!1}}function K(t){o(g)[t]=!o(g)[t]}function Y(t){return o(g)[t]??!1}function v(t,n,r){return`${t}/${n}/${r}`}function q(t,n,r){const a=v(t,n,r),l=R[a]??!1;R[a]=!l,!l&&!L[a]?.loaded&&z(t,n,r)}function H(t,n,r){return R[v(t,n,r)]??!1}function N(t,n,r){return L[v(t,n,r)]??{entries:[],loading:!1,loaded:!1}}async function z(t,n,r){const a=v(t,n,r);L[a]={entries:[],loading:!1,loaded:!0}}function G(t){const n=o(C).trim().toLowerCase();if(!n)return t;const r=[];for(const a of t){const l=a.entities.filter(y=>y.title.toLowerCase().includes(n)||y.id.toLowerCase().includes(n));l.length>0&&r.push({...a,entities:l,count:l.length})}return r}function X(t){if(t&&!o(C)?k={...o(g)}:!t&&o(C)&&k&&(u(g,k,!0),k=null),u(C,t,!0),t){const n=t.trim().toLowerCase();for(const r of o(c)){const a=r.entities.some(l=>l.title.toLowerCase().includes(n)||l.id.toLowerCase().includes(n));o(g)[r.name]=a}}}function Z(t){const n=t.startsWith("type:");$[t]=!($[t]??n)}function tt(t){return $[t]??!1}function et(t){return $[t]===!1}const nt=at(()=>o(c).reduce((t,n)=>t+(n.count??0),0));function ot(t){return o(h).find(n=>n.entityTypes.includes(t))}function rt(t){A(t||o(s))}return{get name(){return o(e)},get about(){return o(i)},get accentColor(){return o(s)},get nameLoaded(){return o(f)},async updateWorkspace(t){t.accent_color!==void 0&&(u(s,t.accent_color,!0),A(t.accent_color)),await ct(t),t.name?.trim()&&u(e,t.name.trim(),!0),typeof t.about=="string"&&u(i,t.about,!0)},get repos(){return o(c)},get apps(){return o(h)},get loading(){return o(P)},get error(){return o(U)},get totalEntities(){return o(nt)},get totalLinks(){return o(S)},get totalFiles(){return o(T)},get hasTasks(){return o(c).some(t=>t.entities.some(n=>n.entityType==="task"))},get sortedRepos(){const t=[...o(c)].sort((n,r)=>n.name.localeCompare(r.name));return G(t)},get filteredIds(){const t=o(C).trim().toLowerCase();if(!t)return null;const n=new Set;for(const r of o(c))for(const a of r.entities)(a.title.toLowerCase().includes(t)||a.id.toLowerCase().includes(t))&&n.add(a.id);return n},get filterQuery(){return o(C)},setFilterQuery:X,get sortMode(){return o(J)},set sortMode(t){u(J,t,!0)},get recentEntities(){const t=o(C).trim().toLowerCase();let n=[];for(const r of o(c))for(const a of r.entities)t&&!a.title.toLowerCase().includes(t)&&!a.id.toLowerCase().includes(t)||n.push(a);return n.sort((r,a)=>{const l=r.updatedAt??"";return(a.updatedAt??"").localeCompare(l)})},get sidebarScrollTop(){return o(F)},set sidebarScrollTop(t){u(F,t,!0)},get lastAutoExpandedFor(){return o(x)},set lastAutoExpandedFor(t){u(x,t,!0)},load:W,loadEntities:b,removeEntity:V,refreshEntities:Q,refreshAll:B,toggleRepo:K,isExpanded:Y,toggleEntity:q,isEntityExpanded:H,getEntityContents:N,toggleFolder:Z,isFolderExpanded:tt,isFolderCollapsed:et,applyUserAccentColor:rt,applyAccentColor:A,getAppForEntityType:ot,async renameCollectionTo(t,n,r){await ut(t,n,r);const a=o(c).find(l=>l.name===t);a&&(a.name=n,a.displayName=r||M(n),o(g)[t]&&(o(g)[n]=!0,delete o(g)[t]))},async removeCollection(t){await dt(t),u(c,o(c).filter(n=>n.name!==t),!0),delete o(g)[t]},async addCollection(t,n,r,a){await lt(t,n,r,a);const l=await D();u(c,l.map(y=>o(c).find(_=>_.name===y.name)??{name:y.name,displayName:M(y.name,y.display_name),type:y.type,private:y.private,count:null,entities:[],loading:!1,loaded:!1}),!0),o(g)[t]=!0,await b(t)}}}const Jt=Ct();export{xt as a,Pt as b,_t as c,Ft as d,Rt as e,Ot as f,Ut as g,bt as h,kt as i,Tt as j,vt as k,$t as l,It as m,Lt as s,At as t,Mt as u,Jt as w};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{l as Yn,o as j,c as F,a as C,p as Vt,b as ct,m as eo,u as no}from"./iDtAARVW.js";import{aO as ro,o as oo,w as io,bx as so,k as ao,e as M,by as Sn,Q as co,g as u,s as y,a_ as Yt,u as x,f as _t,aY as lo,aC as An,aX as uo,a4 as fo,a5 as Z,a6 as _e,aF as ho,p as R,h as T,b as N,ad as K,c as At,r as Ot,bz as go,bA as qn,i as de,aE as po}from"./CT6oIU-C.js";import{b as k,a as Ct}from"./CmCtpZ1Y.js";import{p as v,r as V,s as Q}from"./cLyZlkXv.js";import{B as mo,i as rt,b as Zn}from"./72bZS3G9.js";import{c as Et}from"./CXH6iFbA.js";import{c as Pt,a as Qn}from"./BS2rFAVq.js";import{b as Re}from"./DGbA7IXh.js";function vo(){return Symbol(ro)}const yo=Symbol("NaN");function bo(e,t,n){oo&&io();var r=new mo(e),o=!so();ao(()=>{var s=t();s!==s&&(s=yo),o&&s!==null&&typeof s=="object"&&(s={}),r.ensure(s,n)})}class wo extends Map{#t=new Map;#e=M(0);#n=M(0);#r=Sn||-1;constructor(t){if(super(),t){for(var[n,r]of t)super.set(n,r);this.#n.v=super.size}}#o(t){return Sn===this.#r?M(t):co(t)}has(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else return u(this.#e),!1;return u(r),!0}forEach(t,n){this.#i(),super.forEach(t,n)}get(t){var n=this.#t,r=n.get(t);if(r===void 0)if(super.has(t))r=this.#o(0),n.set(t,r);else{u(this.#e);return}return u(r),super.get(t)}set(t,n){var r=this.#t,o=r.get(t),s=super.get(t),i=super.set(t,n),a=this.#e;if(o===void 0)o=this.#o(0),r.set(t,o),y(this.#n,super.size),Yt(a);else if(s!==n){Yt(o);var c=a.reactions===null?null:new Set(a.reactions),l=c===null||!o.reactions?.every(h=>c.has(h));l&&Yt(a)}return i}delete(t){var n=this.#t,r=n.get(t),o=super.delete(t);return r!==void 0&&(n.delete(t),y(r,-1)),o&&(y(this.#n,super.size),Yt(this.#e)),o}clear(){if(super.size!==0){super.clear();var t=this.#t;y(this.#n,0);for(var n of t.values())y(n,-1);Yt(this.#e),t.clear()}}#i(){u(this.#e);var t=this.#t;if(this.#n.v!==t.size){for(var n of super.keys())if(!t.has(n)){var r=this.#o(0);t.set(n,r)}}for([,r]of this.#t)u(r)}keys(){return u(this.#e),super.keys()}values(){return this.#i(),super.values()}entries(){return this.#i(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return u(this.#n),super.size}}function xo(e){return typeof e=="function"}function ne(e){return e!==null&&typeof e=="object"}const So=["string","number","bigint","boolean"];function Be(e){return e==null||So.includes(typeof e)?!0:Array.isArray(e)?e.every(t=>Be(t)):typeof e=="object"?Object.getPrototypeOf(e)===Object.prototype:!1}const Lt=Symbol("box"),Ce=Symbol("is-writable");function w(e,t){const n=x(e);return t?{[Lt]:!0,[Ce]:!0,get current(){return u(n)},set current(r){t(r)}}:{[Lt]:!0,get current(){return e()}}}function re(e){return ne(e)&&Lt in e}function Ue(e){return re(e)&&Ce in e}function Jn(e){return re(e)?e:xo(e)?w(e):ut(e)}function Ao(e){return Object.entries(e).reduce((t,[n,r])=>re(r)?(Ue(r)?Object.defineProperty(t,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(t,n,{get(){return r.current}}),t):Object.assign(t,{[n]:r}),{})}function Oo(e){return Ue(e)?{[Lt]:!0,get current(){return e.current}}:e}function ut(e){let t=M(_t(e));return{[Lt]:!0,[Ce]:!0,get current(){return u(t)},set current(n){y(t,n,!0)}}}function Dt(e){let t=M(_t(e));return{[Lt]:!0,[Ce]:!0,get current(){return u(t)},set current(n){y(t,n,!0)}}}Dt.from=Jn;Dt.with=w;Dt.flatten=Ao;Dt.readonly=Oo;Dt.isBox=re;Dt.isWritableBox=Ue;function $n(...e){return function(t){for(const n of e)if(n){if(t.defaultPrevented)return;typeof n=="function"?n.call(this,t):n.current?.call(this,t)}}}var On=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Co=/\n/g,Eo=/^\s*/,Po=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,To=/^:\s*/,Mo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Fo=/^[;\s]*/,Io=/^\s+|\s+$/g,Ro=`
|
|
2
|
+
`,Cn="/",En="*",It="",No="comment",ko="declaration";function Do(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function o(g){var p=g.match(Co);p&&(n+=p.length);var b=g.lastIndexOf(Ro);r=~b?g.length-b:r+g.length}function s(){var g={line:n,column:r};return function(p){return p.position=new i(g),l(),p}}function i(g){this.start=g,this.end={line:n,column:r},this.source=t.source}i.prototype.content=e;function a(g){var p=new Error(t.source+":"+n+":"+r+": "+g);if(p.reason=g,p.filename=t.source,p.line=n,p.column=r,p.source=e,!t.silent)throw p}function c(g){var p=g.exec(e);if(p){var b=p[0];return o(b),e=e.slice(b.length),p}}function l(){c(Eo)}function h(g){var p;for(g=g||[];p=d();)p!==!1&&g.push(p);return g}function d(){var g=s();if(!(Cn!=e.charAt(0)||En!=e.charAt(1))){for(var p=2;It!=e.charAt(p)&&(En!=e.charAt(p)||Cn!=e.charAt(p+1));)++p;if(p+=2,It===e.charAt(p-1))return a("End of comment missing");var b=e.slice(2,p-2);return r+=2,o(b),e=e.slice(p),r+=2,g({type:No,comment:b})}}function m(){var g=s(),p=c(Po);if(p){if(d(),!c(To))return a("property missing ':'");var b=c(Mo),S=g({type:ko,property:Pn(p[0].replace(On,It)),value:b?Pn(b[0].replace(On,It)):It});return c(Fo),S}}function f(){var g=[];h(g);for(var p;p=m();)p!==!1&&(g.push(p),h(g));return g}return l(),f()}function Pn(e){return e?e.replace(Io,It):It}function _o(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Do(e),o=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:i,value:a}=s;o?t(i,a,s):a&&(n=n||{},n[i]=a)}),n}const Bo=/\d/,Lo=["-","_","/","."];function Wo(e=""){if(!Bo.test(e))return e!==e.toLowerCase()}function Ko(e){const t=[];let n="",r,o;for(const s of e){const i=Lo.includes(s);if(i===!0){t.push(n),n="",r=void 0;continue}const a=Wo(s);if(o===!1){if(r===!1&&a===!0){t.push(n),n=s,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);t.push(n.slice(0,Math.max(0,n.length-1))),n=c+s,r=a;continue}}n+=s,r=a,o=i}return t.push(n),t}function tr(e){return e?Ko(e).map(t=>zo(t)).join(""):""}function Vo(e){return Ho(tr(e||""))}function zo(e){return e?e[0].toUpperCase()+e.slice(1):""}function Ho(e){return e?e[0].toLowerCase()+e.slice(1):""}function Jt(e){if(!e)return{};const t={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[tr(r)]=o;return}if(r.startsWith("--")){t[r]=o;return}t[Vo(r)]=o}return _o(e,n),t}function Rt(...e){return(...t)=>{for(const n of e)typeof n=="function"&&n(...t)}}function jo(e,t){const n=RegExp(e,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,t):r}}const Uo=jo(/[A-Z]/,e=>`-${e.toLowerCase()}`);function Go(e){if(!e||typeof e!="object"||Array.isArray(e))throw new TypeError(`expected an argument of type object, but got ${typeof e}`);return Object.keys(e).map(t=>`${Uo(t)}: ${e[t]};`).join(`
|
|
3
|
+
`)}function er(e={}){return Go(e).replace(`
|
|
4
|
+
`," ")}const Xo=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Yo=new Set(Xo);function qo(e){return Yo.has(e)}function ot(...e){const t={...e[0]};for(let n=1;n<e.length;n++){const r=e[n];if(r){for(const o of Object.keys(r)){const s=t[o],i=r[o],a=typeof s=="function",c=typeof i=="function";if(a&&qo(o)){const l=s,h=i;t[o]=$n(l,h)}else if(a&&c)t[o]=Rt(s,i);else if(o==="class"){const l=Be(s),h=Be(i);l&&h?t[o]=Re(s,i):l?t[o]=Re(s):h&&(t[o]=Re(i))}else if(o==="style"){const l=typeof s=="object",h=typeof i=="object",d=typeof s=="string",m=typeof i=="string";if(l&&h)t[o]={...s,...i};else if(l&&m){const f=Jt(i);t[o]={...s,...f}}else if(d&&h){const f=Jt(s);t[o]={...f,...i}}else if(d&&m){const f=Jt(s),g=Jt(i);t[o]={...f,...g}}else l?t[o]=s:h?t[o]=i:d?t[o]=s:m&&(t[o]=i)}else t[o]=i!==void 0?i:s}for(const o of Object.getOwnPropertySymbols(r)){const s=t[o],i=r[o];t[o]=i!==void 0?i:s}}}return typeof t.style=="object"&&(t.style=er(t.style).replaceAll(`
|
|
5
|
+
`," ")),t.hidden===!1&&(t.hidden=void 0,delete t.hidden),t.disabled===!1&&(t.disabled=void 0,delete t.disabled),t}const nr=typeof window<"u"?window:void 0;function Zo(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Qo{#t;#e;constructor(t={}){const{window:n=nr,document:r=n?.document}=t;n!==void 0&&(this.#t=r,this.#e=Yn(o=>{const s=j(n,"focusin",o),i=j(n,"focusout",o);return()=>{s(),i()}}))}get current(){return this.#e?.(),this.#t?Zo(this.#t):null}}new Qo;function Jo(e){return typeof e=="function"}class Tt{#t;#e;constructor(t){this.#t=t,this.#e=Symbol(t)}get key(){return this.#e}exists(){return lo(this.#e)}get(){const t=An(this.#e);if(t===void 0)throw new Error(`Context "${this.#t}" not found`);return t}getOr(t){const n=An(this.#e);return n===void 0?t:n}set(t){return uo(this.#e,t)}}function $o(e,t){switch(e){case"post":Z(t);break;case"pre":fo(t);break}}function rr(e,t,n,r={}){const{lazy:o=!1}=r;let s=!o,i=Array.isArray(e)?[]:void 0;$o(t,()=>{const a=Array.isArray(e)?e.map(l=>l()):e();if(!s){s=!0,i=a;return}const c=_e(()=>n(a,i));return i=a,c})}function G(e,t,n){rr(e,"post",t,n)}function ti(e,t,n){rr(e,"pre",t,n)}G.pre=ti;function Tn(e){return Jo(e)?e():e}class ei{#t={width:0,height:0};#e=!1;#n;#r;#o;#i=x(()=>(u(this.#s)?.(),this.getSize().width));#a=x(()=>(u(this.#s)?.(),this.getSize().height));#s=x(()=>{const t=Tn(this.#r);if(t)return Yn(n=>{if(!this.#o)return;const r=new this.#o.ResizeObserver(o=>{this.#e=!0;for(const s of o){const i=this.#n.box==="content-box"?s.contentBoxSize:s.borderBoxSize,a=Array.isArray(i)?i:[i];this.#t.width=a.reduce((c,l)=>Math.max(c,l.inlineSize),0),this.#t.height=a.reduce((c,l)=>Math.max(c,l.blockSize),0)}n()});return r.observe(t),()=>{this.#e=!1,r.disconnect()}})});constructor(t,n={box:"border-box"}){this.#o=n.window??nr,this.#n=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Tn(this.#r);if(!t||!this.#o)return;const n=t.offsetWidth,r=t.offsetHeight;if(this.#n.box==="border-box")return{width:n,height:r};const o=this.#o.getComputedStyle(t),s=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),i=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),l=n-s-a,h=r-i-c;return{width:l,height:h}}getSize(){return this.#e?this.#t:this.calculateSize()??this.#t}get current(){return u(this.#s)?.(),this.getSize()}get width(){return u(this.#i)}get height(){return u(this.#a)}}function zt(e){Z(()=>()=>{e()})}function or(e,t){return setTimeout(t,e)}function lt(e){ho().then(e)}const ni=1,ri=9,oi=11;function Le(e){return ne(e)&&e.nodeType===ni&&typeof e.nodeName=="string"}function ir(e){return ne(e)&&e.nodeType===ri}function ii(e){return ne(e)&&e.constructor?.name==="VisualViewport"}function si(e){return ne(e)&&e.nodeType!==void 0}function sr(e){return si(e)&&e.nodeType===oi&&"host"in e}function ai(e,t){if(!e||!t||!Le(e)||!Le(t))return!1;const n=t.getRootNode?.();if(e===t||e.contains(t))return!0;if(n&&sr(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function oe(e){return ir(e)?e:ii(e)?e.document:e?.ownerDocument??document}function Ge(e){return sr(e)?Ge(e.host):ir(e)?e.defaultView??window:Le(e)?e.ownerDocument?.defaultView??window:window}function ci(e){let t=e.activeElement;for(;t?.shadowRoot;){const n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}class Xe{element;#t=x(()=>this.element.current?this.element.current.getRootNode()??document:document);get root(){return u(this.#t)}set root(t){y(this.#t,t)}constructor(t){typeof t=="function"?this.element=w(t):this.element=t}getDocument=()=>oe(this.root);getWindow=()=>this.getDocument().defaultView??window;getActiveElement=()=>ci(this.root);isActiveElement=t=>t===this.getActiveElement();getElementById(t){return this.root.getElementById(t)}querySelector=t=>this.root?this.root.querySelector(t):null;querySelectorAll=t=>this.root?this.root.querySelectorAll(t):[];setTimeout=(t,n)=>this.getWindow().setTimeout(t,n);clearTimeout=t=>this.getWindow().clearTimeout(t)}function tt(e,t){return{[vo()]:n=>re(e)?(e.current=n,_e(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e.current=null,t?.(null))}):(e(n),_e(()=>t?.(n)),()=>{"isConnected"in n&&n.isConnected||(e(null),t?.(null))})}}function ar(e){return e?"true":"false"}function Wt(e){return e?"":void 0}function uc(e){return e?!0:void 0}function Ye(e){return e?"open":"closed"}function dc(e,t){return t?"mixed":e?"true":"false"}class li{#t;#e;attrs;constructor(t){this.#t=t.getVariant?t.getVariant():null,this.#e=this.#t?`data-${this.#t}-`:`data-${t.component}-`,this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(t.parts.map(n=>[n,this.getAttr(n)]))}getAttr(t,n){return n?`data-${n}-${t}`:`${this.#e}${t}`}selector(t,n){return`[${this.getAttr(t,n)}]`}}function cr(e){const t=new li(e);return{...t.attrs,selector:t.selector,getAttr:t.getAttr}}const te="ArrowDown",qe="ArrowLeft",Ze="ArrowRight",fe="ArrowUp",lr="End",Ee="Enter",ui="Escape",ur="Home",di="PageDown",fi="PageUp",ie=" ",hi="Tab";function gi(e){return window.getComputedStyle(e).getPropertyValue("direction")}function pi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?qe:Ze,vertical:te}[t]}function mi(e="ltr",t="horizontal"){return{horizontal:e==="rtl"?Ze:qe,vertical:fe}[t]}function vi(e="ltr",t="horizontal"){return["ltr","rtl"].includes(e)||(e="ltr"),["horizontal","vertical"].includes(t)||(t="horizontal"),{nextKey:pi(e,t),prevKey:mi(e,t)}}const dr=typeof document<"u",Mn=yi();function yi(){return dr&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function mt(e){return e instanceof HTMLElement}function We(e){return e instanceof Element}function fr(e){return e instanceof Element||e instanceof SVGElement}function fc(e){return e.pointerType==="touch"}function bi(e){return e!==null}function wi(e){return e instanceof HTMLInputElement&&"select"in e}class xi{#t;#e=Dt(null);constructor(t){this.#t=t}getCandidateNodes(){return this.#t.rootNode.current?this.#t.candidateSelector?Array.from(this.#t.rootNode.current.querySelectorAll(this.#t.candidateSelector)):this.#t.candidateAttr?Array.from(this.#t.rootNode.current.querySelectorAll(`[${this.#t.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const t=this.getCandidateNodes();t.length&&t[0]?.focus()}handleKeydown(t,n,r=!1){const o=this.#t.rootNode.current;if(!o||!t)return;const s=this.getCandidateNodes();if(!s.length)return;const i=s.indexOf(t),a=gi(o),{nextKey:c,prevKey:l}=vi(a,this.#t.orientation.current),h=this.#t.loop.current,d={[c]:i+1,[l]:i-1,[ur]:0,[lr]:s.length-1};if(r){const g=c===te?Ze:te,p=l===fe?qe:fe;d[g]=i+1,d[p]=i-1}let m=d[n.key];if(m===void 0)return;n.preventDefault(),m<0&&h?m=s.length-1:m===s.length&&h&&(m=0);const f=s[m];if(f)return f.focus(),this.#e.current=f.id,this.#t.onCandidateFocus?.(f),f}getTabIndex(t){const n=this.getCandidateNodes(),r=this.#e.current!==null;return t&&!r&&n[0]===t?(this.#e.current=t.id,0):t?.id===this.#e.current?0:-1}setCurrentTabStopId(t){this.#e.current=t}focusCurrentTabStop(){const t=this.#e.current;if(!t)return;const n=this.#t.rootNode.current?.querySelector(`#${t}`);!n||!mt(n)||n.focus()}}class Si{#t;#e=null;constructor(t){this.#t=t,zt(()=>this.#n())}#n(){this.#e&&(window.cancelAnimationFrame(this.#e),this.#e=null)}run(t){this.#n();const n=this.#t.ref.current;if(n){if(typeof n.getAnimations!="function"){this.#r(t);return}this.#e=window.requestAnimationFrame(()=>{const r=n.getAnimations();if(r.length===0){this.#r(t);return}Promise.allSettled(r.map(o=>o.finished)).then(()=>{this.#r(t)})})}}#r(t){const n=()=>{t()};this.#t.afterTick?lt(n):n()}}class Ke{#t;#e;#n;#r=M(!1);constructor(t){this.#t=t,y(this.#r,t.open.current,!0),this.#e=t.enabled??!0,this.#n=new Si({ref:this.#t.ref,afterTick:this.#t.open}),G(()=>this.#t.open.current,n=>{n&&y(this.#r,!0),this.#e&&this.#n.run(()=>{n===this.#t.open.current&&(this.#t.open.current||y(this.#r,!1),this.#t.onComplete?.())})})}get shouldRender(){return u(this.#r)}}function W(){}function Ht(e,t){return`bits-${e}`}const Ai=cr({component:"dialog",parts:["content","trigger","overlay","title","description","close","cancel","action"]}),vt=new Tt("Dialog.Root | AlertDialog.Root");class Qe{static create(t){const n=vt.getOr(null);return vt.set(new Qe(t,n))}opts;#t=M(null);get triggerNode(){return u(this.#t)}set triggerNode(t){y(this.#t,t,!0)}#e=M(null);get contentNode(){return u(this.#e)}set contentNode(t){y(this.#e,t,!0)}#n=M(null);get overlayNode(){return u(this.#n)}set overlayNode(t){y(this.#n,t,!0)}#r=M(null);get descriptionNode(){return u(this.#r)}set descriptionNode(t){y(this.#r,t,!0)}#o=M(void 0);get contentId(){return u(this.#o)}set contentId(t){y(this.#o,t,!0)}#i=M(void 0);get titleId(){return u(this.#i)}set titleId(t){y(this.#i,t,!0)}#a=M(void 0);get triggerId(){return u(this.#a)}set triggerId(t){y(this.#a,t,!0)}#s=M(void 0);get descriptionId(){return u(this.#s)}set descriptionId(t){y(this.#s,t,!0)}#c=M(null);get cancelNode(){return u(this.#c)}set cancelNode(t){y(this.#c,t,!0)}#u=M(0);get nestedOpenCount(){return u(this.#u)}set nestedOpenCount(t){y(this.#u,t,!0)}depth;parent;contentPresence;overlayPresence;constructor(t,n){this.opts=t,this.parent=n,this.depth=n?n.depth+1:0,this.handleOpen=this.handleOpen.bind(this),this.handleClose=this.handleClose.bind(this),this.contentPresence=new Ke({ref:w(()=>this.contentNode),open:this.opts.open,enabled:!0,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ke({ref:w(()=>this.overlayNode),open:this.opts.open,enabled:!0}),G(()=>this.opts.open.current,r=>{this.parent&&(r?this.parent.incrementNested():this.parent.decrementNested())},{lazy:!0}),zt(()=>{this.opts.open.current&&this.parent?.decrementNested()})}handleOpen(){this.opts.open.current||(this.opts.open.current=!0)}handleClose(){this.opts.open.current&&(this.opts.open.current=!1)}getBitsAttr=t=>Ai.getAttr(t,this.opts.variant.current);incrementNested(){this.nestedOpenCount++,this.parent?.incrementNested()}decrementNested(){this.nestedOpenCount!==0&&(this.nestedOpenCount--,this.parent?.decrementNested())}#l=x(()=>({"data-state":Ye(this.opts.open.current)}));get sharedProps(){return u(this.#l)}set sharedProps(t){y(this.#l,t)}}class hr{static create(t){return new hr(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===ie||t.key===Ee)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr(this.opts.variant.current)]:"",onclick:this.onclick,onkeydown:this.onkeydown,disabled:this.opts.disabled.current?!0:void 0,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class Je{static create(t){return new Je(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("action")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class $e{static create(t){return new $e(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.titleId=this.opts.id.current,this.attachment=tt(this.opts.ref),G.pre(()=>this.opts.id.current,r=>{this.root.titleId=r})}#t=x(()=>({id:this.opts.id.current,role:"heading","aria-level":this.opts.level.current,[this.root.getBitsAttr("title")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class tn{static create(t){return new tn(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.root.descriptionId=this.opts.id.current,this.attachment=tt(this.opts.ref,r=>{this.root.descriptionNode=r}),G.pre(()=>this.opts.id.current,r=>{this.root.descriptionId=r})}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("description")]:"",...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class en{static create(t){return new en(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref,r=>{this.root.contentNode=r,this.root.contentId=r?.id})}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({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.getBitsAttr("content")]:"",style:{pointerEvents:"auto",outline:this.root.opts.variant.current==="alert-dialog"?"none":void 0,"--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount,contain:"layout style"},tabindex:this.root.opts.variant.current==="alert-dialog"?-1:void 0,"data-nested-open":Wt(this.root.nestedOpenCount>0),"data-nested":Wt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.contentPresence.shouldRender}}class nn{static create(t){return new nn(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref,r=>this.root.overlayNode=r)}#t=x(()=>({open:this.root.opts.open.current}));get snippetProps(){return u(this.#t)}set snippetProps(t){y(this.#t,t)}#e=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("overlay")]:"",style:{pointerEvents:"auto","--bits-dialog-depth":this.root.depth,"--bits-dialog-nested-count":this.root.nestedOpenCount},"data-nested-open":Wt(this.root.nestedOpenCount>0),"data-nested":Wt(this.root.parent!==null),...this.root.sharedProps,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}get shouldRender(){return this.root.overlayPresence.shouldRender}}class rn{static create(t){return new rn(t,vt.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref,r=>this.root.cancelNode=r),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}onclick(t){this.opts.disabled.current||t.button>0||this.root.handleClose()}onkeydown(t){this.opts.disabled.current||(t.key===ie||t.key===Ee)&&(t.preventDefault(),this.root.handleClose())}#t=x(()=>({id:this.opts.id.current,[this.root.getBitsAttr("cancel")]:"",onclick:this.onclick,onkeydown:this.onkeydown,tabindex:0,...this.root.sharedProps,...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}function Oi(e,t){R(t,!0);let n=v(t,"open",15,!1),r=v(t,"onOpenChange",3,W),o=v(t,"onOpenChangeComplete",3,W);Qe.create({variant:w(()=>"alert-dialog"),open:w(()=>n(),a=>{n(a),r()(a)}),onOpenChangeComplete:w(()=>o())});var s=F(),i=T(s);k(i,()=>t.children??K),C(e,s),N()}var Ci=ct("<div><!></div>");function Ei(e,t){const n=Vt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=v(t,"level",3,2),i=V(t,["$$slots","$$events","$$legacy","id","ref","child","children","level"]);const a=$e.create({id:w(()=>r()),level:w(()=>s()),ref:w(()=>o(),f=>o(f))}),c=x(()=>ot(i,a.props));var l=F(),h=T(l);{var d=f=>{var g=F(),p=T(g);k(p,()=>t.child,()=>({props:u(c)})),C(f,g)},m=f=>{var g=Ci();Ct(g,()=>({...u(c)}));var p=At(g);k(p,()=>t.children??K),Ot(g),C(f,g)};rt(h,f=>{t.child?f(d):f(m,!1)})}C(e,l),N()}var Pi=ct("<button><!></button>");function Ti(e,t){const n=Vt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=V(t,["$$slots","$$events","$$legacy","children","child","id","ref"]);const i=Je.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>ot(s,i.props));var c=F(),l=T(c);{var h=m=>{var f=F(),g=T(f);k(g,()=>t.child,()=>({props:u(a)})),C(m,f)},d=m=>{var f=Pi();Ct(f,()=>({...u(a)}));var g=At(f);k(g,()=>t.children??K),Ot(f),C(m,f)};rt(l,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}var Mi=ct("<button><!></button>");function Fi(e,t){const n=Vt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=v(t,"disabled",3,!1),i=V(t,["$$slots","$$events","$$legacy","id","ref","children","child","disabled"]);const a=rn.create({id:w(()=>r()),ref:w(()=>o(),f=>o(f)),disabled:w(()=>!!s())}),c=x(()=>ot(i,a.props));var l=F(),h=T(l);{var d=f=>{var g=F(),p=T(g);k(p,()=>t.child,()=>({props:u(c)})),C(f,g)},m=f=>{var g=Mi();Ct(g,()=>({...u(c)}));var p=At(g);k(p,()=>t.children??K),Ot(g),C(f,g)};rt(h,f=>{t.child?f(d):f(m,!1)})}C(e,l),N()}function Ii(e,t){var n=F(),r=T(n);bo(r,()=>t.children,o=>{var s=F(),i=T(s);k(i,()=>t.children??K),C(o,s)}),C(e,n)}const Ri=new Tt("BitsConfig");function Ni(){const e=new ki(null,{});return Ri.getOr(e).opts}class ki{opts;constructor(t,n){const r=Di(t,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function Di(e,t){return n=>w(()=>{const o=n(t)?.current;if(o!==void 0)return o;if(e!==null)return n(e.opts)?.current})}function _i(e,t){return n=>{const r=Ni();return w(()=>{const o=n();if(o!==void 0)return o;const s=e(r).current;return s!==void 0?s:t})}}const Bi=_i(e=>e.defaultPortalTo,"body");function Li(e,t){R(t,!0);const n=Bi(()=>t.to),r=go();let o=x(s);function s(){if(!dr||t.disabled)return null;let d=null;return typeof n.current=="string"?d=document.querySelector(n.current):d=n.current,d}let i;function a(){i&&(no(i),i=null)}G([()=>u(o),()=>t.disabled],([d,m])=>{if(!d||m){a();return}return i=eo(Ii,{target:d,props:{children:t.children},context:r}),()=>{a()}});var c=F(),l=T(c);{var h=d=>{var m=F(),f=T(m);k(f,()=>t.children??K),C(d,m)};rt(l,d=>{t.disabled&&d(h)})}C(e,c),N()}class Wi{eventName;options;constructor(t,n={bubbles:!0,cancelable:!0}){this.eventName=t,this.options=n}createEvent(t){return new CustomEvent(this.eventName,{...this.options,detail:t})}dispatch(t,n){const r=this.createEvent(n);return t.dispatchEvent(r),r}listen(t,n,r){const o=s=>{n(s)};return j(t,this.eventName,o,r)}}function Fn(e,t=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},t)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function gr(e,t){return e===t||e.contains(t)}function pr(e){return e?.ownerDocument??document}function Ki(e,t){const{clientX:n,clientY:r}=e,o=t.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Vi=[Ee,ie],zi=[te,fi,ur],mr=[fe,di,lr],Hi=[...zi,...mr];function In(e){return e.pointerType==="mouse"}function ji(e,{select:t=!1}={}){if(!e||!e.focus)return;const n=oe(e);if(n.activeElement===e)return;const r=n.activeElement;e.focus({preventScroll:!0}),e!==r&&wi(e)&&t&&e.select()}function Ui(e,{select:t=!1}={},n){const r=n();for(const o of e)if(ji(o,{select:t}),n()!==r)return!0}let qt=M(!1);class wt{static _refs=0;static _cleanup;constructor(){Z(()=>(wt._refs===0&&(wt._cleanup=qn(()=>{const t=[],n=o=>{y(qt,!1)},r=o=>{y(qt,!0)};return t.push(j(document,"pointerdown",n,{capture:!0}),j(document,"pointermove",n,{capture:!0}),j(document,"keydown",r,{capture:!0})),Rt(...t)})),wt._refs++,()=>{wt._refs--,wt._refs===0&&(y(qt,!1),wt._cleanup?.())}))}get current(){return u(qt)}set current(t){y(qt,t,!0)}}var vr=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],he=vr.join(","),yr=typeof Element>"u",Nt=yr?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ge=!yr&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},pe=function(t,n){var r;n===void 0&&(n=!0);var o=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"inert"),s=o===""||o==="true",i=s||n&&t&&(typeof t.closest=="function"?t.closest("[inert]"):pe(t.parentNode));return i},Gi=function(t){var n,r=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"contenteditable");return r===""||r==="true"},br=function(t,n,r){if(pe(t))return[];var o=Array.prototype.slice.apply(t.querySelectorAll(he));return n&&Nt.call(t,he)&&o.unshift(t),o=o.filter(r),o},me=function(t,n,r){for(var o=[],s=Array.from(t);s.length;){var i=s.shift();if(!pe(i,!1))if(i.tagName==="SLOT"){var a=i.assignedElements(),c=a.length?a:i.children,l=me(c,!0,r);r.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var h=Nt.call(i,he);h&&r.filter(i)&&(n||!t.includes(i))&&o.push(i);var d=i.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(i),m=!pe(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(i));if(d&&m){var f=me(d===!0?i.children:d.children,!0,r);r.flatten?o.push.apply(o,f):o.push({scopeParent:i,candidates:f})}else s.unshift.apply(s,i.children)}}return o},wr=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},xr=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||Gi(t))&&!wr(t)?0:t.tabIndex},Xi=function(t,n){var r=xr(t);return r<0&&n&&!wr(t)?0:r},Yi=function(t,n){return t.tabIndex===n.tabIndex?t.documentOrder-n.documentOrder:t.tabIndex-n.tabIndex},Sr=function(t){return t.tagName==="INPUT"},qi=function(t){return Sr(t)&&t.type==="hidden"},Zi=function(t){var n=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return n},Qi=function(t,n){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===n)return t[r]},Ji=function(t){if(!t.name)return!0;var n=t.form||ge(t),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(t.name));else try{o=r(t.name)}catch(i){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",i.message),!1}var s=Qi(o,t.form);return!s||s===t},$i=function(t){return Sr(t)&&t.type==="radio"},ts=function(t){return $i(t)&&!Ji(t)},es=function(t){var n,r=t&&ge(t),o=(n=r)===null||n===void 0?void 0:n.host,s=!1;if(r&&r!==t){var i,a,c;for(s=!!((i=o)!==null&&i!==void 0&&(a=i.ownerDocument)!==null&&a!==void 0&&a.contains(o)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!s&&o;){var l,h,d;r=ge(o),o=(l=r)===null||l===void 0?void 0:l.host,s=!!((h=o)!==null&&h!==void 0&&(d=h.ownerDocument)!==null&&d!==void 0&&d.contains(o))}}return s},Rn=function(t){var n=t.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},ns=function(t,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in t){var s=t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!s}if(getComputedStyle(t).visibility==="hidden")return!0;var i=Nt.call(t,"details>summary:first-of-type"),a=i?t.parentElement:t;if(Nt.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=t;t;){var l=t.parentElement,h=ge(t);if(l&&!l.shadowRoot&&o(l)===!0)return Rn(t);t.assignedSlot?t=t.assignedSlot:!l&&h!==t.ownerDocument?t=h.host:t=l}t=c}if(es(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Rn(t);return!1},rs=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var n=t.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return Nt.call(n,"fieldset[disabled] *")?!0:!o.contains(t)}return!0}n=n.parentElement}return!1},ve=function(t,n){return!(n.disabled||qi(n)||ns(n,t)||Zi(n)||rs(n))},Ve=function(t,n){return!(ts(n)||xr(n)<0||!ve(t,n))},os=function(t){var n=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},Ar=function(t){var n=[],r=[];return t.forEach(function(o,s){var i=!!o.scopeParent,a=i?o.scopeParent:o,c=Xi(a,i),l=i?Ar(o.candidates):a;c===0?i?n.push.apply(n,l):n.push(a):r.push({documentOrder:s,tabIndex:c,item:o,isScope:i,content:l})}),r.sort(Yi).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(n)},Or=function(t,n){n=n||{};var r;return n.getShadowRoot?r=me([t],n.includeContainer,{filter:Ve.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:os}):r=br(t,n.includeContainer,Ve.bind(null,n)),Ar(r)},Cr=function(t,n){n=n||{};var r;return n.getShadowRoot?r=me([t],n.includeContainer,{filter:ve.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=br(t,n.includeContainer,ve.bind(null,n)),r},on=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Nt.call(t,he)===!1?!1:Ve(n,t)},is=vr.concat("iframe:not([inert]):not([inert] *)").join(","),Er=function(t,n){if(n=n||{},!t)throw new Error("No node provided");return Nt.call(t,is)===!1?!1:ve(n,t)};function $t(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function ss(e,t){if(!on(e,$t()))return as(e,t);const n=oe(e),r=Or(n.body,$t());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1)[0]}function as(e,t){const n=oe(e);if(!Er(e,$t()))return n.body;const r=Cr(n.body,$t());t==="prev"&&r.reverse();const o=r.indexOf(e);return o===-1?n.body:r.slice(o+1).find(i=>on(i,$t()))??n.body}function cs(e,t){return e.length!==t.length?!1:e.every((n,r)=>Pr(n,t[r]))}function Pr(e,t){return Number.isNaN(e)&&Number.isNaN(t)?!0:Array.isArray(e)&&Array.isArray(t)?cs(e,t):typeof e=="object"&&typeof t=="object"?ls(e,t):Object.is(e,t)}function ls(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!Pr(e[o],t[o]))return!1;return!0}function hc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===e.length-1?n?e[0]:void 0:e[t+1]}function gc(e,t,n=!0){if(!(e.length===0||t<0||t>=e.length))return e.length===1&&t===0?e[0]:t===0?n?e[e.length-1]:void 0:e[t-1]}function pc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t+n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function mc(e,t,n,r=!0){if(e.length===0||t<0||t>=e.length)return;let o=t-n;return r?o=(o%e.length+e.length)%e.length:o=Math.max(0,Math.min(o,e.length-1)),e[o]}function Tr(e,t,n){const r=t.toLowerCase();if(r.endsWith(" ")){const d=r.slice(0,-1);if(e.filter(p=>p.toLowerCase().startsWith(d)).length<=1)return Tr(e,d,n);const f=n?.toLowerCase();if(f&&f.startsWith(d)&&f.charAt(d.length)===" "&&t.trim()===d)return n;const g=e.filter(p=>p.toLowerCase().startsWith(r));if(g.length>0){const p=n?e.indexOf(n):-1;return Nn(g,Math.max(p,0)).find(A=>A!==n)||n}}const s=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=s.toLowerCase(),a=n?e.indexOf(n):-1;let c=Nn(e,Math.max(a,0));s.length===1&&(c=c.filter(d=>d!==n));const h=c.find(d=>d?.toLowerCase().startsWith(i));return h!==n?h:void 0}function Nn(e,t){return e.map((n,r)=>e[(t+r)%e.length])}const us={afterMs:1e4,onChange:W};function Mr(e,t){const{afterMs:n,onChange:r,getWindow:o}={...us,...t};let s=null,i=M(_t(e));function a(){return o().setTimeout(()=>{y(i,e,!0),r?.(e)},n)}return Z(()=>()=>{s&&o().clearTimeout(s)}),w(()=>u(i),c=>{y(i,c,!0),r?.(c),s&&o().clearTimeout(s),s=a()})}class ds{#t;#e;#n=x(()=>this.#t.onMatch?this.#t.onMatch:t=>t.focus());#r=x(()=>this.#t.getCurrentItem?this.#t.getCurrentItem:this.#t.getActiveElement);constructor(t){this.#t=t,this.#e=Mr("",{afterMs:1e3,getWindow:t.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t,n){if(!n.length)return;this.#e.current=this.#e.current+t;const r=u(this.#r)(),o=n.find(c=>c===r)?.textContent?.trim()??"",s=n.map(c=>c.textContent?.trim()??""),i=Tr(s,this.#e.current,o),a=n.find(c=>c.textContent?.trim()===i);return a&&u(this.#n)(a),a}resetTypeahead(){this.#e.current=""}get search(){return this.#e.current}}class fs{#t;#e;#n;#r=M(null);constructor(t){this.#t=t,this.#e=x(()=>this.#t.enabled()),this.#n=Mr(!1,{afterMs:t.transitTimeout??300,onChange:n=>{u(this.#e)&&this.#t.setIsPointerInTransit?.(n)},getWindow:()=>Ge(this.#t.triggerNode())}),G([t.triggerNode,t.contentNode,t.enabled],([n,r,o])=>{if(!n||!r||!o)return;const s=a=>{this.#i(a,r)},i=a=>{this.#i(a,n)};return Rt(j(n,"pointerleave",s),j(r,"pointerleave",i))}),G(()=>u(this.#r),()=>{const n=o=>{if(!u(this.#r))return;const s=o.target;if(!We(s))return;const i={x:o.clientX,y:o.clientY},a=t.triggerNode()?.contains(s)||t.contentNode()?.contains(s),c=!ms(i,u(this.#r));a?this.#o():c&&(this.#o(),t.onPointerExit())},r=oe(t.triggerNode()??t.contentNode());if(r)return j(r,"pointermove",n)})}#o(){y(this.#r,null),this.#n.current=!1}#i(t,n){const r=t.currentTarget;if(!mt(r))return;const o={x:t.clientX,y:t.clientY},s=hs(o,r.getBoundingClientRect()),i=gs(o,s),a=ps(n.getBoundingClientRect()),c=vs([...i,...a]);y(this.#r,c,!0),this.#n.current=!0}}function hs(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,o,s)){case s:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function gs(e,t,n=5){const r=n*1.5;switch(t){case"top":return[{x:e.x-n,y:e.y+n},{x:e.x,y:e.y-r},{x:e.x+n,y:e.y+n}];case"bottom":return[{x:e.x-n,y:e.y-n},{x:e.x,y:e.y+r},{x:e.x+n,y:e.y-n}];case"left":return[{x:e.x+n,y:e.y-n},{x:e.x-r,y:e.y},{x:e.x+n,y:e.y+n}];case"right":return[{x:e.x-n,y:e.y-n},{x:e.x+r,y:e.y},{x:e.x-n,y:e.y+n}]}}function ps(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function ms(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s].x,c=t[s].y,l=t[i].x,h=t[i].y;c>r!=h>r&&n<(l-a)*(r-c)/(h-c)+a&&(o=!o)}return o}function vs(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),ys(t)}function ys(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const o=e[r];for(;t.length>=2;){const s=t[t.length-1],i=t[t.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const s=n[n.length-1],i=n[n.length-2];if((s.x-i.x)*(o.y-i.y)>=(s.y-i.y)*(o.x-i.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}const bs="data-context-menu-trigger",ws="data-context-menu-content",Fr=new Tt("Menu.Root"),sn=new Tt("Menu.Root | Menu.Sub"),Ir=new Tt("Menu.Content"),xs=new Wi("bitsmenuopen",{bubbles:!1,cancelable:!0}),Ss=cr({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class Rr{static create(t){const n=new Rr(t);return Fr.set(n)}opts;isUsingKeyboard=new wt;#t=M(!1);get ignoreCloseAutoFocus(){return u(this.#t)}set ignoreCloseAutoFocus(t){y(this.#t,t,!0)}#e=M(!1);get isPointerInTransit(){return u(this.#e)}set isPointerInTransit(t){y(this.#e,t,!0)}constructor(t){this.opts=t}getBitsAttr=t=>Ss.getAttr(t,this.opts.variant.current)}class Nr{static create(t,n){return sn.set(new Nr(t,n,null))}opts;root;parentMenu;contentId=w(()=>"");#t=M(null);get contentNode(){return u(this.#t)}set contentNode(t){y(this.#t,t,!0)}contentPresence;#e=M(null);get triggerNode(){return u(this.#e)}set triggerNode(t){y(this.#e,t,!0)}constructor(t,n,r){this.opts=t,this.root=n,this.parentMenu=r,this.contentPresence=new Ke({ref:w(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),r&&G(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class kr{static create(t){return Ir.set(new kr(t,sn.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#t=M("");get search(){return u(this.#t)}set search(t){y(this.#t,t,!0)}#e=0;#n;#r=M(!1);get mounted(){return u(this.#r)}set mounted(t){y(this.#r,t,!0)}#o;constructor(t,n){this.opts=t,this.parentMenu=n,this.domContext=new Xe(t.ref),this.attachment=tt(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=t.id,this.#o=t.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new fs({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onPointerExit:()=>{this.parentMenu.opts.open.current=!1},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),this.#n=new ds({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new xi({rootNode:w(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:w(()=>"vertical")}),G(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{lt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return xs.listen(r,o)}),Z(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#e)})}#i(){const t=this.parentMenu.contentNode;return t?Array.from(t.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#a(){return this.parentMenu.root.isPointerInTransit}onCloseAutoFocus=t=>{if(this.opts.onCloseAutoFocus.current?.(t),!(t.defaultPrevented||this.#o)){if(this.parentMenu.root.ignoreCloseAutoFocus){t.preventDefault();return}this.parentMenu.triggerNode&&on(this.parentMenu.triggerNode)&&(t.preventDefault(),this.parentMenu.triggerNode.focus())}};handleTabKeyDown(t){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;t.preventDefault();const r=ss(n.triggerNode,t.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),lt(()=>{r.focus(),lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(t){if(t.defaultPrevented)return;if(t.key===hi){this.handleTabKeyDown(t);return}const n=t.target,r=t.currentTarget;if(!mt(n)||!mt(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,s=t.ctrlKey||t.altKey||t.metaKey,i=t.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,t)||t.code==="Space")return;const c=this.#i();o&&!s&&i&&this.#n(t.key,c),t.target?.id===this.parentMenu.contentId.current&&Hi.includes(t.key)&&(t.preventDefault(),mr.includes(t.key)&&c.reverse(),Ui(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(t){We(t.currentTarget)&&We(t.target)&&(t.currentTarget.contains?.(t.target)||(this.domContext.getWindow().clearTimeout(this.#e),this.search=""))}onfocus(t){this.parentMenu.root.isUsingKeyboard.current&<(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#a()}onItemLeave(t){if(t.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#a()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus(),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#a()}handleInteractOutside(t){if(!fr(t.target))return;const n=this.parentMenu.triggerNode?.id;if(t.target.id===n){t.preventDefault();return}if(t.target.closest(`#${n}`)){t.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,lt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#s=x(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return u(this.#s)}set snippetProps(t){y(this.#s,t)}#c=x(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Ye(this.parentMenu.opts.open.current),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return u(this.#c)}set props(t){y(this.#c,t)}popperProps={onCloseAutoFocus:t=>this.onCloseAutoFocus(t)}}class As{opts;content;attachment;#t=M(!1);constructor(t,n){this.opts=t,this.content=n,this.attachment=tt(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(t){if(!t.defaultPrevented&&In(t))if(this.opts.disabled.current)this.content.onItemLeave(t);else{if(this.content.onItemEnter())return;const r=t.currentTarget;if(!mt(r))return;r.focus()}}onpointerleave(t){t.defaultPrevented||In(t)&&this.content.onItemLeave(t)}onfocus(t){lt(()=>{t.defaultPrevented||this.opts.disabled.current||y(this.#t,!0)})}onblur(t){lt(()=>{t.defaultPrevented||y(this.#t,!1)})}#e=x(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":ar(this.opts.disabled.current),"data-disabled":Wt(this.opts.disabled.current),"data-highlighted":u(this.#t)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}}class Dr{static create(t){const n=new As(t,Ir.get());return new Dr(t,n)}opts;item;root;#t=!1;constructor(t,n){this.opts=t,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#e(){if(this.item.opts.disabled.current)return;const t=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(t),t.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(t){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&t.key===ie)&&Vi.includes(t.key)){if(!mt(t.currentTarget))return;t.currentTarget.click(),t.preventDefault()}}onclick(t){this.item.opts.disabled.current||this.#e()}onpointerup(t){if(!t.defaultPrevented&&!this.#t){if(!mt(t.currentTarget))return;t.currentTarget?.click()}}onpointerdown(t){this.#t=!0}#n=x(()=>ot(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return u(this.#n)}set props(t){y(this.#n,t)}}class _r{static create(t){return new _r(t,Fr.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=tt(this.opts.ref)}#t=x(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return u(this.#t)}set props(t){y(this.#t,t)}}class Br{static create(t){return new Br(t,sn.get())}opts;parentMenu;attachment;constructor(t,n){this.opts=t,this.parentMenu=n,this.attachment=tt(this.opts.ref,r=>this.parentMenu.triggerNode=r)}onclick=t=>{this.opts.disabled.current||t.detail!==0||(this.parentMenu.toggleOpen(),t.preventDefault())};onpointerdown=t=>{if(!this.opts.disabled.current){if(t.pointerType==="touch")return t.preventDefault();t.button===0&&t.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||t.preventDefault())}};onpointerup=t=>{this.opts.disabled.current||t.pointerType==="touch"&&(t.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=t=>{if(!this.opts.disabled.current){if(t.key===ie||t.key===Ee){this.parentMenu.toggleOpen(),t.preventDefault();return}t.key===te&&(this.parentMenu.onOpen(),t.preventDefault())}};#t=x(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#e=x(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":ar(this.parentMenu.opts.open.current),"aria-controls":u(this.#t),"data-disabled":Wt(this.opts.disabled.current),"data-state":Ye(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return u(this.#e)}set props(t){y(this.#e,t)}}globalThis.bitsDismissableLayers??=new Map;class an{static create(t){return new an(t)}opts;#t;#e;#n={pointerdown:!1};#r=!1;#o=!1;#i=void 0;#a;#s=W;constructor(t){this.opts=t,this.#e=t.interactOutsideBehavior,this.#t=t.onInteractOutside,this.#a=t.onFocusOutside,Z(()=>{this.#i=pr(this.opts.ref.current)});let n=W;const r=()=>{this.#f(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),n()};G([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return or(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,this.#e),n(),n=this.#u())}),r}),zt(()=>{this.#f.destroy(),globalThis.bitsDismissableLayers.delete(this),this.#d.destroy(),this.#s(),n()})}#c=t=>{t.defaultPrevented||this.opts.ref.current&<(()=>{!this.opts.ref.current||this.#m(t.target)||t.target&&!this.#o&&this.#a.current?.(t)})};#u(){return Rt(j(this.#i,"pointerdown",Rt(this.#h,this.#p),{capture:!0}),j(this.#i,"pointerdown",Rt(this.#g,this.#d)),j(this.#i,"focusin",this.#c))}#l=t=>{let n=t;n.defaultPrevented&&(n=kn(t)),this.#t.current(t)};#d=Fn(t=>{if(!this.opts.ref.current){this.#s();return}const n=this.opts.isValidEvent.current(t,this.opts.ref.current)||Es(t,this.opts.ref.current);if(!this.#r||this.#v()||!n){this.#s();return}let r=t;if(r.defaultPrevented&&(r=kn(r)),this.#e.current!=="close"&&this.#e.current!=="defer-otherwise-close"){this.#s();return}t.pointerType==="touch"?(this.#s(),this.#s=j(this.#i,"click",this.#l,{once:!0})):this.#t.current(r)},10);#h=t=>{this.#n[t.type]=!0};#g=t=>{this.#n[t.type]=!1};#p=()=>{this.opts.ref.current&&(this.#r=Cs(this.opts.ref.current))};#m=t=>this.opts.ref.current?gr(this.opts.ref.current,t):!1;#f=Fn(()=>{for(const t in this.#n)this.#n[t]=!1;this.#r=!1},20);#v(){return Object.values(this.#n).some(Boolean)}#y=()=>{this.#o=!0};#b=()=>{this.#o=!1};props={onfocuscapture:this.#y,onblurcapture:this.#b}}function Os(e=[...globalThis.bitsDismissableLayers]){return e.findLast(([t,{current:n}])=>n==="close"||n==="ignore")}function Cs(e){const t=[...globalThis.bitsDismissableLayers],n=Os(t);if(n)return n[0].opts.ref.current===e;const[r]=t[0];return r.opts.ref.current===e}function Es(e,t){const n=e.target;if(!fr(n))return!1;const r=!!n.closest(`[${bs}]`);if("button"in e&&e.button>0&&!r)return!1;if("button"in e&&e.button===0&&r)return!0;const o=!!t.closest(`[${ws}]`);return r&&o?!1:pr(n).documentElement.contains(n)&&!gr(t,n)&&Ki(e,t)}function kn(e){const t=e.currentTarget,n=e.target;let r;e instanceof PointerEvent?r=new PointerEvent(e.type,e):r=new PointerEvent("pointerdown",e);let o=!1;return new Proxy(r,{get:(i,a)=>a==="currentTarget"?t:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof i.preventDefault=="function"&&i.preventDefault()}:a==="defaultPrevented"?o:a in i?i[a]:e[a]})}function Lr(e,t){R(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"onInteractOutside",3,W),o=v(t,"onFocusOutside",3,W),s=v(t,"isValidEvent",3,()=>!1);const i=an.create({id:w(()=>t.id),interactOutsideBehavior:w(()=>n()),onInteractOutside:w(()=>r()),enabled:w(()=>t.enabled),onFocusOutside:w(()=>o()),isValidEvent:w(()=>s()),ref:t.ref});var a=F(),c=T(a);k(c,()=>t.children??K,()=>({props:i.props})),C(e,a),N()}globalThis.bitsEscapeLayers??=new Map;class cn{static create(t){return new cn(t)}opts;domContext;constructor(t){this.opts=t,this.domContext=new Xe(this.opts.ref);let n=W;G(()=>t.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,t.escapeKeydownBehavior),n=this.#t()),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}#t=()=>j(this.domContext.getDocument(),"keydown",this.#e,{passive:!1});#e=t=>{if(t.key!==ui||!Ps(this))return;const n=new KeyboardEvent(t.type,t);t.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)}}function Ps(e){const t=[...globalThis.bitsEscapeLayers],n=t.findLast(([o,{current:s}])=>s==="close"||s==="ignore");if(n)return n[0]===e;const[r]=t[0];return r===e}function Wr(e,t){R(t,!0);let n=v(t,"escapeKeydownBehavior",3,"close"),r=v(t,"onEscapeKeydown",3,W);cn.create({escapeKeydownBehavior:w(()=>n()),onEscapeKeydown:w(()=>r()),enabled:w(()=>t.enabled),ref:t.ref});var o=F(),s=T(o);k(s,()=>t.children??K),C(e,o),N()}class ln{static instance;#t=ut([]);#e=new WeakMap;#n=new WeakMap;static getInstance(){return this.instance||(this.instance=new ln),this.instance}register(t){const n=this.getActive();n&&n!==t&&n.pause();const r=document.activeElement;r&&r!==document.body&&this.#n.set(t,r),this.#t.current=this.#t.current.filter(o=>o!==t),this.#t.current.unshift(t)}unregister(t){this.#t.current=this.#t.current.filter(r=>r!==t);const n=this.getActive();n&&n.resume()}getActive(){return this.#t.current[0]}setFocusMemory(t,n){this.#e.set(t,n)}getFocusMemory(t){return this.#e.get(t)}isActiveScope(t){return this.getActive()===t}setPreFocusMemory(t,n){this.#n.set(t,n)}getPreFocusMemory(t){return this.#n.get(t)}clearPreFocusMemory(t){this.#n.delete(t)}}class un{#t=!1;#e=null;#n=ln.getInstance();#r=[];#o;constructor(t){this.#o=t}get paused(){return this.#t}pause(){this.#t=!0}resume(){this.#t=!1}#i(){for(const t of this.#r)t();this.#r=[]}mount(t){this.#e&&this.unmount(),this.#e=t,this.#n.register(this),this.#c(),this.#a()}unmount(){this.#e&&(this.#i(),this.#s(),this.#n.unregister(this),this.#n.clearPreFocusMemory(this),this.#e=null)}#a(){if(!this.#e)return;const t=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});this.#o.onOpenAutoFocus.current(t),t.defaultPrevented||requestAnimationFrame(()=>{if(!this.#e)return;const n=this.#l();n?(n.focus(),this.#n.setFocusMemory(this,n)):this.#e.focus()})}#s(){const t=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(this.#o.onCloseAutoFocus.current?.(t),!t.defaultPrevented){const n=this.#n.getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}}#c(){if(!this.#e||!this.#o.trap.current)return;const t=this.#e,n=t.ownerDocument,r=i=>{if(this.#t||!this.#n.isActiveScope(this))return;const a=i.target;if(!a)return;if(t.contains(a))this.#n.setFocusMemory(this,a);else{const l=this.#n.getFocusMemory(this);if(l&&t.contains(l)&&Er(l))i.preventDefault(),l.focus();else{const h=this.#l(),d=this.#d()[0];(h||d||t).focus()}}},o=i=>{if(!this.#o.loop||this.#t||i.key!=="Tab"||!this.#n.isActiveScope(this))return;const a=this.#u();if(a.length===0)return;const c=a[0],l=a[a.length-1];!i.shiftKey&&n.activeElement===l?(i.preventDefault(),c.focus()):i.shiftKey&&n.activeElement===c&&(i.preventDefault(),l.focus())};this.#r.push(j(n,"focusin",r,{capture:!0}),j(t,"keydown",o));const s=new MutationObserver(()=>{const i=this.#n.getFocusMemory(this);if(i&&!t.contains(i)){const a=this.#l(),c=this.#d()[0],l=a||c;l?(l.focus(),this.#n.setFocusMemory(this,l)):t.focus()}});s.observe(t,{childList:!0,subtree:!0}),this.#r.push(()=>s.disconnect())}#u(){return this.#e?Or(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}#l(){return this.#u()[0]||null}#d(){return this.#e?Cr(this.#e,{includeContainer:!1,getShadowRoot:!0}):[]}static use(t){let n=null;return G([()=>t.ref.current,()=>t.enabled.current],([r,o])=>{r&&o?(n||(n=new un(t)),n.mount(r)):n&&(n.unmount(),n=null)}),zt(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}}function Kr(e,t){R(t,!0);let n=v(t,"enabled",3,!1),r=v(t,"trapFocus",3,!1),o=v(t,"loop",3,!1),s=v(t,"onCloseAutoFocus",3,W),i=v(t,"onOpenAutoFocus",3,W);const a=un.use({enabled:w(()=>n()),trap:w(()=>r()),loop:o(),onCloseAutoFocus:w(()=>s()),onOpenAutoFocus:w(()=>i()),ref:t.ref});var c=F(),l=T(c);k(l,()=>t.focusScope??K,()=>({props:a.props})),C(e,c),N()}globalThis.bitsTextSelectionLayers??=new Map;class dn{static create(t){return new dn(t)}opts;domContext;#t=W;constructor(t){this.opts=t,this.domContext=new Xe(t.ref);let n=W;G(()=>this.opts.enabled.current,r=>(r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=this.#e()),()=>{n(),this.#r(),globalThis.bitsTextSelectionLayers.delete(this)}))}#e(){return Rt(j(this.domContext.getDocument(),"pointerdown",this.#n),j(this.domContext.getDocument(),"pointerup",$n(this.#r,this.opts.onPointerUp.current)))}#n=t=>{const n=this.opts.ref.current,r=t.target;!mt(n)||!mt(r)||!this.opts.enabled.current||!Ms(this)||!ai(n,r)||(this.opts.onPointerDown.current(t),!t.defaultPrevented&&(this.#t=Ts(n,this.domContext.getDocument().body)))};#r=()=>{this.#t(),this.#t=W}}const Dn=e=>e.style.userSelect||e.style.webkitUserSelect;function Ts(e,t){const n=Dn(t),r=Dn(e);return ae(t,"none"),ae(e,"text"),()=>{ae(t,n),ae(e,r)}}function ae(e,t){e.style.userSelect=t,e.style.webkitUserSelect=t}function Ms(e){const t=[...globalThis.bitsTextSelectionLayers];if(!t.length)return!1;const n=t.at(-1);return n?n[0]===e:!1}function Vr(e,t){R(t,!0);let n=v(t,"preventOverflowTextSelection",3,!0),r=v(t,"onPointerDown",3,W),o=v(t,"onPointerUp",3,W);dn.create({id:w(()=>t.id),onPointerDown:w(()=>r()),onPointerUp:w(()=>o()),enabled:w(()=>t.enabled&&n()),ref:t.ref});var s=F(),i=T(s);k(i,()=>t.children??K),C(e,s),N()}globalThis.bitsIdCounter??={current:0};function fn(e="bits"){return globalThis.bitsIdCounter.current++,`${e}-${globalThis.bitsIdCounter.current}`}class Fs{#t;#e=0;#n=M();#r;constructor(t){this.#t=t}#o(){this.#e-=1,this.#r&&this.#e<=0&&(this.#r(),y(this.#n,void 0),this.#r=void 0)}get(...t){return this.#e+=1,u(this.#n)===void 0&&(this.#r=qn(()=>{y(this.#n,this.#t(...t),!0)})),Z(()=>()=>{this.#o()}),u(this.#n)}}const ue=new wo;let ce=M(null),Ne=null,Zt=null,Qt=!1;const _n=w(()=>{for(const e of ue.values())if(e)return!0;return!1});let ke=null;const Is=new Fs(()=>{function e(){document.body.setAttribute("style",u(ce)??""),document.body.style.removeProperty("--scrollbar-width"),Mn&&Ne?.(),y(ce,null)}function t(){Zt!==null&&(window.clearTimeout(Zt),Zt=null)}function n(o,s){t(),Qt=!0,ke=Date.now();const i=ke,a=()=>{Zt=null,ke===i&&(zr(ue)?Qt=!1:(Qt=!1,s()))},c=o===null?24:o;Zt=window.setTimeout(a,c)}function r(){u(ce)===null&&ue.size===0&&!Qt&&y(ce,document.body.getAttribute("style"),!0)}return G(()=>_n.current,()=>{if(!_n.current)return;r(),Qt=!1;const o=getComputedStyle(document.documentElement),s=getComputedStyle(document.body),i=o.scrollbarGutter?.includes("stable")||s.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,l={padding:Number.parseInt(s.paddingRight??"0",10)+a,margin:Number.parseInt(s.marginRight??"0",10)};a>0&&!i&&(document.body.style.paddingRight=`${l.padding}px`,document.body.style.marginRight=`${l.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Mn&&(Ne=j(document,"touchmove",h=>{h.target===document.documentElement&&(h.touches.length>1||h.preventDefault())},{passive:!1})),lt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),zt(()=>()=>{Ne?.()}),{get lockMap(){return ue},resetBodyStyle:e,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:t,ensureInitialStyleCaptured:r}});class Rs{#t=fn();#e;#n=()=>null;#r;locked;constructor(t,n=()=>null){this.#e=t,this.#n=n,this.#r=Is.get(),this.#r&&(this.#r.cancelPendingCleanup(),this.#r.ensureInitialStyleCaptured(),this.#r.lockMap.set(this.#t,this.#e??!1),this.locked=w(()=>this.#r.lockMap.get(this.#t)??!1,r=>this.#r.lockMap.set(this.#t,r)),zt(()=>{if(this.#r.lockMap.delete(this.#t),zr(this.#r.lockMap))return;const r=this.#n();this.#r.scheduleCleanupIfNoNewLocks(r,()=>{this.#r.resetBodyStyle()})}))}}function zr(e){for(const[t,n]of e)if(n)return!0;return!1}function ye(e,t){R(t,!0);let n=v(t,"preventScroll",3,!0),r=v(t,"restoreScrollDelay",3,null);n()&&new Rs(n(),()=>r()),N()}var Ns=ct("<!> <!>",1),ks=ct("<!> <div><!></div>",1);function Ds(e,t){const n=Vt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=v(t,"forceMount",3,!1),i=v(t,"interactOutsideBehavior",3,"ignore"),a=v(t,"onCloseAutoFocus",3,W),c=v(t,"onEscapeKeydown",3,W),l=v(t,"onOpenAutoFocus",3,W),h=v(t,"onInteractOutside",3,W),d=v(t,"preventScroll",3,!0),m=v(t,"trapFocus",3,!0),f=v(t,"restoreScrollDelay",3,null),g=V(t,["$$slots","$$events","$$legacy","id","children","child","ref","forceMount","interactOutsideBehavior","onCloseAutoFocus","onEscapeKeydown","onOpenAutoFocus","onInteractOutside","preventScroll","trapFocus","restoreScrollDelay"]);const p=en.create({id:w(()=>r()),ref:w(()=>o(),O=>o(O))}),b=x(()=>ot(g,p.props));var S=F(),A=T(S);{var E=O=>{Kr(O,{get ref(){return p.opts.ref},loop:!0,get trapFocus(){return m()},get enabled(){return p.root.opts.open.current},get onCloseAutoFocus(){return a()},onOpenAutoFocus:P=>{l()(P),!P.defaultPrevented&&(P.preventDefault(),or(0,()=>p.opts.ref.current?.focus()))},focusScope:(P,D)=>{let X=()=>D?.().props;Wr(P,Q(()=>u(b),{get enabled(){return p.root.opts.open.current},get ref(){return p.opts.ref},onEscapeKeydown:z=>{c()(z),!z.defaultPrevented&&p.root.handleClose()},children:(z,_)=>{Lr(z,Q(()=>u(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get interactOutsideBehavior(){return i()},onInteractOutside:B=>{h()(B),!B.defaultPrevented&&p.root.handleClose()},children:(B,J)=>{Vr(B,Q(()=>u(b),{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},children:(L,H)=>{var q=F(),et=T(q);{var $=U=>{var pt=Ns(),Gt=T(pt);{var Xt=Mt=>{ye(Mt,{get preventScroll(){return d()},get restoreScrollDelay(){return f()}})};rt(Gt,Mt=>{p.root.opts.open.current&&Mt(Xt)})}var Ie=de(Gt,2);{let Mt=x(()=>({props:ot(u(b),X()),...p.snippetProps}));k(Ie,()=>t.child,()=>u(Mt))}C(U,pt)},Y=U=>{var pt=ks(),Gt=T(pt);ye(Gt,{get preventScroll(){return d()}});var Xt=de(Gt,2);Ct(Xt,Mt=>({...Mt}),[()=>ot(u(b),X())]);var Ie=At(Xt);k(Ie,()=>t.children??K),Ot(Xt),C(U,pt)};rt(et,U=>{t.child?U($):U(Y,!1)})}C(L,q)},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{default:!0}}))},$$slots:{focusScope:!0}})};rt(A,O=>{(p.shouldRender||s())&&O(E)})}C(e,S),N()}var _s=ct("<div><!></div>");function Bs(e,t){const n=Vt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"forceMount",3,!1),s=v(t,"ref",15,null),i=V(t,["$$slots","$$events","$$legacy","id","forceMount","child","children","ref"]);const a=nn.create({id:w(()=>r()),ref:w(()=>s(),m=>s(m))}),c=x(()=>ot(i,a.props));var l=F(),h=T(l);{var d=m=>{var f=F(),g=T(f);{var p=S=>{var A=F(),E=T(A);{let O=x(()=>({props:ot(u(c)),...a.snippetProps}));k(E,()=>t.child,()=>u(O))}C(S,A)},b=S=>{var A=_s();Ct(A,O=>({...O}),[()=>ot(u(c))]);var E=At(A);k(E,()=>t.children??K,()=>a.snippetProps),Ot(A),C(S,A)};rt(g,S=>{t.child?S(p):S(b,!1)})}C(m,f)};rt(h,m=>{(a.shouldRender||o())&&m(d)})}C(e,l),N()}var Ls=ct("<div><!></div>");function Ws(e,t){const n=Vt();R(t,!0);let r=v(t,"id",19,()=>Ht(n)),o=v(t,"ref",15,null),s=V(t,["$$slots","$$events","$$legacy","id","children","child","ref"]);const i=tn.create({id:w(()=>r()),ref:w(()=>o(),m=>o(m))}),a=x(()=>ot(s,i.props));var c=F(),l=T(c);{var h=m=>{var f=F(),g=T(f);k(g,()=>t.child,()=>({props:u(a)})),C(m,f)},d=m=>{var f=Ls();Ct(f,()=>({...u(a)}));var g=At(f);k(g,()=>t.children??K),Ot(f),C(m,f)};rt(l,m=>{t.child?m(h):m(d,!1)})}C(e,c),N()}const Ks=["top","right","bottom","left"],xt=Math.min,nt=Math.max,be=Math.round,le=Math.floor,ft=e=>({x:e,y:e}),Vs={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function ze(e,t,n){return nt(e,xt(t,n))}function yt(e,t){return typeof e=="function"?e(t):e}function bt(e){return e.split("-")[0]}function jt(e){return e.split("-")[1]}function hn(e){return e==="x"?"y":"x"}function gn(e){return e==="y"?"height":"width"}const Hs=new Set(["top","bottom"]);function dt(e){return Hs.has(bt(e))?"y":"x"}function pn(e){return hn(dt(e))}function js(e,t,n){n===void 0&&(n=!1);const r=jt(e),o=pn(e),s=gn(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=we(i)),[i,we(i)]}function Us(e){const t=we(e);return[He(e),t,He(t)]}function He(e){return e.replace(/start|end/g,t=>zs[t])}const Bn=["left","right"],Ln=["right","left"],Gs=["top","bottom"],Xs=["bottom","top"];function Ys(e,t,n){switch(e){case"top":case"bottom":return n?t?Ln:Bn:t?Bn:Ln;case"left":case"right":return t?Gs:Xs;default:return[]}}function qs(e,t,n,r){const o=jt(e);let s=Ys(bt(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(He)))),s}function we(e){return e.replace(/left|right|bottom|top/g,t=>Vs[t])}function Zs(e){return{top:0,right:0,bottom:0,left:0,...e}}function Hr(e){return typeof e!="number"?Zs(e):{top:e,right:e,bottom:e,left:e}}function xe(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Wn(e,t,n){let{reference:r,floating:o}=e;const s=dt(t),i=pn(t),a=gn(i),c=bt(t),l=s==="y",h=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,m=r[a]/2-o[a]/2;let f;switch(c){case"top":f={x:h,y:r.y-o.height};break;case"bottom":f={x:h,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-o.width,y:d};break;default:f={x:r.x,y:r.y}}switch(jt(t)){case"start":f[i]-=m*(n&&l?-1:1);break;case"end":f[i]+=m*(n&&l?-1:1);break}return f}async function Qs(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:h="viewport",elementContext:d="floating",altBoundary:m=!1,padding:f=0}=yt(t,e),g=Hr(f),b=a[m?d==="floating"?"reference":"floating":d],S=xe(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:h,strategy:c})),A=d==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),O=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},I=xe(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:E,strategy:c}):A);return{top:(S.top-I.top+g.top)/O.y,bottom:(I.bottom-S.bottom+g.bottom)/O.y,left:(S.left-I.left+g.left)/O.x,right:(I.right-S.right+g.right)/O.x}}const Js=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:h,y:d}=Wn(l,r,c),m=r,f={},g=0;for(let b=0;b<a.length;b++){var p;const{name:S,fn:A}=a[b],{x:E,y:O,data:I,reset:P}=await A({x:h,y:d,initialPlacement:r,placement:m,strategy:o,middlewareData:f,rects:l,platform:{...i,detectOverflow:(p=i.detectOverflow)!=null?p:Qs},elements:{reference:e,floating:t}});h=E??h,d=O??d,f={...f,[S]:{...f[S],...I}},P&&g<=50&&(g++,typeof P=="object"&&(P.placement&&(m=P.placement),P.rects&&(l=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:h,y:d}=Wn(l,m,c)),b=-1)}return{x:h,y:d,placement:m,strategy:o,middlewareData:f}},$s=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:h=0}=yt(e,t)||{};if(l==null)return{};const d=Hr(h),m={x:n,y:r},f=pn(o),g=gn(f),p=await i.getDimensions(l),b=f==="y",S=b?"top":"left",A=b?"bottom":"right",E=b?"clientHeight":"clientWidth",O=s.reference[g]+s.reference[f]-m[f]-s.floating[g],I=m[f]-s.reference[f],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let D=P?P[E]:0;(!D||!await(i.isElement==null?void 0:i.isElement(P)))&&(D=a.floating[E]||s.floating[g]);const X=O/2-I/2,z=D/2-p[g]/2-1,_=xt(d[S],z),B=xt(d[A],z),J=_,L=D-p[g]-B,H=D/2-p[g]/2+X,q=ze(J,H,L),et=!c.arrow&&jt(o)!=null&&H!==q&&s.reference[g]/2-(H<J?_:B)-p[g]/2<0,$=et?H<J?H-J:H-L:0;return{[f]:m[f]+$,data:{[f]:q,centerOffset:H-q-$,...et&&{alignmentOffset:$}},reset:et}}}),ta=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...b}=yt(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=bt(o),A=dt(a),E=bt(a)===a,O=await(c.isRTL==null?void 0:c.isRTL(l.floating)),I=m||(E||!p?[we(a)]:Us(a)),P=g!=="none";!m&&P&&I.push(...qs(a,p,g,O));const D=[a,...I],X=await c.detectOverflow(t,b),z=[];let _=((r=s.flip)==null?void 0:r.overflows)||[];if(h&&z.push(X[S]),d){const H=js(o,i,O);z.push(X[H[0]],X[H[1]])}if(_=[..._,{placement:o,overflows:z}],!z.every(H=>H<=0)){var B,J;const H=(((B=s.flip)==null?void 0:B.index)||0)+1,q=D[H];if(q&&(!(d==="alignment"?A!==dt(q):!1)||_.every(Y=>dt(Y.placement)===A?Y.overflows[0]>0:!0)))return{data:{index:H,overflows:_},reset:{placement:q}};let et=(J=_.filter($=>$.overflows[0]<=0).sort(($,Y)=>$.overflows[1]-Y.overflows[1])[0])==null?void 0:J.placement;if(!et)switch(f){case"bestFit":{var L;const $=(L=_.filter(Y=>{if(P){const U=dt(Y.placement);return U===A||U==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(U=>U>0).reduce((U,pt)=>U+pt,0)]).sort((Y,U)=>Y[1]-U[1])[0])==null?void 0:L[0];$&&(et=$);break}case"initialPlacement":et=a;break}if(o!==et)return{reset:{placement:et}}}return{}}}};function Kn(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Vn(e){return Ks.some(t=>e[t]>=0)}const ea=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...s}=yt(e,t);switch(o){case"referenceHidden":{const i=await r.detectOverflow(t,{...s,elementContext:"reference"}),a=Kn(i,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Vn(a)}}}case"escaped":{const i=await r.detectOverflow(t,{...s,altBoundary:!0}),a=Kn(i,n.floating);return{data:{escapedOffsets:a,escaped:Vn(a)}}}default:return{}}}}},jr=new Set(["left","top"]);async function na(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=bt(n),a=jt(n),c=dt(n)==="y",l=jr.has(i)?-1:1,h=s&&c?-1:1,d=yt(t,e);let{mainAxis:m,crossAxis:f,alignmentAxis:g}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*h,y:m*l}:{x:m*l,y:f*h}}const ra=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await na(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},oa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:s}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:c={fn:S=>{let{x:A,y:E}=S;return{x:A,y:E}}},...l}=yt(e,t),h={x:n,y:r},d=await s.detectOverflow(t,l),m=dt(bt(o)),f=hn(m);let g=h[f],p=h[m];if(i){const S=f==="y"?"top":"left",A=f==="y"?"bottom":"right",E=g+d[S],O=g-d[A];g=ze(E,g,O)}if(a){const S=m==="y"?"top":"left",A=m==="y"?"bottom":"right",E=p+d[S],O=p-d[A];p=ze(E,p,O)}const b=c.fn({...t,[f]:g,[m]:p});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[f]:i,[m]:a}}}}}},ia=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=yt(e,t),h={x:n,y:r},d=dt(o),m=hn(d);let f=h[m],g=h[d];const p=yt(a,t),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const E=m==="y"?"height":"width",O=s.reference[m]-s.floating[E]+b.mainAxis,I=s.reference[m]+s.reference[E]-b.mainAxis;f<O?f=O:f>I&&(f=I)}if(l){var S,A;const E=m==="y"?"width":"height",O=jr.has(bt(o)),I=s.reference[d]-s.floating[E]+(O&&((S=i.offset)==null?void 0:S[d])||0)+(O?0:b.crossAxis),P=s.reference[d]+s.reference[E]+(O?0:((A=i.offset)==null?void 0:A[d])||0)-(O?b.crossAxis:0);g<I?g=I:g>P&&(g=P)}return{[m]:f,[d]:g}}}},sa=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=yt(e,t),h=await i.detectOverflow(t,l),d=bt(o),m=jt(o),f=dt(o)==="y",{width:g,height:p}=s.floating;let b,S;d==="top"||d==="bottom"?(b=d,S=m===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(S=d,b=m==="end"?"top":"bottom");const A=p-h.top-h.bottom,E=g-h.left-h.right,O=xt(p-h[b],A),I=xt(g-h[S],E),P=!t.middlewareData.shift;let D=O,X=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(X=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=A),P&&!m){const _=nt(h.left,0),B=nt(h.right,0),J=nt(h.top,0),L=nt(h.bottom,0);f?X=g-2*(_!==0||B!==0?_+B:nt(h.left,h.right)):D=p-2*(J!==0||L!==0?J+L:nt(h.top,h.bottom))}await c({...t,availableWidth:X,availableHeight:D});const z=await i.getDimensions(a.floating);return g!==z.width||p!==z.height?{reset:{rects:!0}}:{}}}};function Pe(){return typeof window<"u"}function Ut(e){return Ur(e)?(e.nodeName||"").toLowerCase():"#document"}function it(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gt(e){var t;return(t=(Ur(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ur(e){return Pe()?e instanceof Node||e instanceof it(e).Node:!1}function st(e){return Pe()?e instanceof Element||e instanceof it(e).Element:!1}function ht(e){return Pe()?e instanceof HTMLElement||e instanceof it(e).HTMLElement:!1}function zn(e){return!Pe()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof it(e).ShadowRoot}const aa=new Set(["inline","contents"]);function se(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=at(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aa.has(o)}const ca=new Set(["table","td","th"]);function la(e){return ca.has(Ut(e))}const ua=[":popover-open",":modal"];function Te(e){return ua.some(t=>{try{return e.matches(t)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],fa=["transform","translate","scale","rotate","perspective","filter"],ha=["paint","layout","strict","content"];function mn(e){const t=vn(),n=st(e)?at(e):e;return da.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||fa.some(r=>(n.willChange||"").includes(r))||ha.some(r=>(n.contain||"").includes(r))}function ga(e){let t=St(e);for(;ht(t)&&!Kt(t);){if(mn(t))return t;if(Te(t))return null;t=St(t)}return null}function vn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const pa=new Set(["html","body","#document"]);function Kt(e){return pa.has(Ut(e))}function at(e){return it(e).getComputedStyle(e)}function Me(e){return st(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function St(e){if(Ut(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zn(e)&&e.host||gt(e);return zn(t)?t.host:t}function Gr(e){const t=St(e);return Kt(t)?e.ownerDocument?e.ownerDocument.body:e.body:ht(t)&&se(t)?t:Gr(t)}function ee(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gr(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=it(o);if(s){const a=je(i);return t.concat(i,i.visualViewport||[],se(o)?o:[],a&&n?ee(a):[])}return t.concat(o,ee(o,[],n))}function je(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Xr(e){const t=at(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=ht(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=be(n)!==s||be(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function yn(e){return st(e)?e:e.contextElement}function Bt(e){const t=yn(e);if(!ht(t))return ft(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Xr(t);let i=(s?be(n.width):n.width)/r,a=(s?be(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const ma=ft(0);function Yr(e){const t=it(e);return!vn()||!t.visualViewport?ma:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function va(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==it(e)?!1:t}function kt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=yn(e);let i=ft(1);t&&(r?st(r)&&(i=Bt(r)):i=Bt(e));const a=va(s,n,r)?Yr(s):ft(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,h=o.width/i.x,d=o.height/i.y;if(s){const m=it(s),f=r&&st(r)?it(r):r;let g=m,p=je(g);for(;p&&r&&f!==g;){const b=Bt(p),S=p.getBoundingClientRect(),A=at(p),E=S.left+(p.clientLeft+parseFloat(A.paddingLeft))*b.x,O=S.top+(p.clientTop+parseFloat(A.paddingTop))*b.y;c*=b.x,l*=b.y,h*=b.x,d*=b.y,c+=E,l+=O,g=it(p),p=je(g)}}return xe({width:h,height:d,x:c,y:l})}function Fe(e,t){const n=Me(e).scrollLeft;return t?t.left+n:kt(gt(e)).left+n}function qr(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fe(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function ya(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=gt(r),a=t?Te(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=ft(1);const h=ft(0),d=ht(r);if((d||!d&&!s)&&((Ut(r)!=="body"||se(i))&&(c=Me(r)),ht(r))){const f=kt(r);l=Bt(r),h.x=f.x+r.clientLeft,h.y=f.y+r.clientTop}const m=i&&!d&&!s?qr(i,c):ft(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+h.x+m.x,y:n.y*l.y-c.scrollTop*l.y+h.y+m.y}}function ba(e){return Array.from(e.getClientRects())}function wa(e){const t=gt(e),n=Me(e),r=e.ownerDocument.body,o=nt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=nt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Fe(e);const a=-n.scrollTop;return at(r).direction==="rtl"&&(i+=nt(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const Hn=25;function xa(e,t){const n=it(e),r=gt(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const h=vn();(!h||h&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Fe(r);if(l<=0){const h=r.ownerDocument,d=h.body,m=getComputedStyle(d),f=h.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,g=Math.abs(r.clientWidth-d.clientWidth-f);g<=Hn&&(s-=g)}else l<=Hn&&(s+=l);return{width:s,height:i,x:a,y:c}}const Sa=new Set(["absolute","fixed"]);function Aa(e,t){const n=kt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=ht(e)?Bt(e):ft(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function jn(e,t,n){let r;if(t==="viewport")r=xa(e,n);else if(t==="document")r=wa(gt(e));else if(st(t))r=Aa(t,n);else{const o=Yr(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return xe(r)}function Zr(e,t){const n=St(e);return n===t||!st(n)||Kt(n)?!1:at(n).position==="fixed"||Zr(n,t)}function Oa(e,t){const n=t.get(e);if(n)return n;let r=ee(e,[],!1).filter(a=>st(a)&&Ut(a)!=="body"),o=null;const s=at(e).position==="fixed";let i=s?St(e):e;for(;st(i)&&!Kt(i);){const a=at(i),c=mn(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&Sa.has(o.position)||se(i)&&!c&&Zr(e,i))?r=r.filter(h=>h!==i):o=a,i=St(i)}return t.set(e,r),r}function Ca(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Te(t)?[]:Oa(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,h)=>{const d=jn(t,h,o);return l.top=nt(d.top,l.top),l.right=xt(d.right,l.right),l.bottom=xt(d.bottom,l.bottom),l.left=nt(d.left,l.left),l},jn(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ea(e){const{width:t,height:n}=Xr(e);return{width:t,height:n}}function Pa(e,t,n){const r=ht(t),o=gt(t),s=n==="fixed",i=kt(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ft(0);function l(){c.x=Fe(o)}if(r||!r&&!s)if((Ut(t)!=="body"||se(o))&&(a=Me(t)),r){const f=kt(t,!0,s,t);c.x=f.x+t.clientLeft,c.y=f.y+t.clientTop}else o&&l();s&&!r&&o&&l();const h=o&&!r&&!s?qr(o,a):ft(0),d=i.left+a.scrollLeft-c.x-h.x,m=i.top+a.scrollTop-c.y-h.y;return{x:d,y:m,width:i.width,height:i.height}}function De(e){return at(e).position==="static"}function Un(e,t){if(!ht(e)||at(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return gt(e)===n&&(n=n.ownerDocument.body),n}function Qr(e,t){const n=it(e);if(Te(e))return n;if(!ht(e)){let o=St(e);for(;o&&!Kt(o);){if(st(o)&&!De(o))return o;o=St(o)}return n}let r=Un(e,t);for(;r&&la(r)&&De(r);)r=Un(r,t);return r&&Kt(r)&&De(r)&&!mn(r)?n:r||ga(e)||n}const Ta=async function(e){const t=this.getOffsetParent||Qr,n=this.getDimensions,r=await n(e.floating);return{reference:Pa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ma(e){return at(e).direction==="rtl"}const Fa={convertOffsetParentRelativeRectToViewportRelativeRect:ya,getDocumentElement:gt,getClippingRect:Ca,getOffsetParent:Qr,getElementRects:Ta,getClientRects:ba,getDimensions:Ea,getScale:Bt,isElement:st,isRTL:Ma};function Jr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Ia(e,t){let n=null,r;const o=gt(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:h,top:d,width:m,height:f}=l;if(a||t(),!m||!f)return;const g=le(d),p=le(o.clientWidth-(h+m)),b=le(o.clientHeight-(d+f)),S=le(h),E={rootMargin:-g+"px "+-p+"px "+-b+"px "+-S+"px",threshold:nt(0,xt(1,c))||1};let O=!0;function I(P){const D=P[0].intersectionRatio;if(D!==c){if(!O)return i();D?i(!1,D):r=setTimeout(()=>{i(!1,1e-7)},1e3)}D===1&&!Jr(l,e.getBoundingClientRect())&&i(),O=!1}try{n=new IntersectionObserver(I,{...E,root:o.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return i(!0),s}function Ra(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=yn(e),h=o||s?[...l?ee(l):[],...ee(t)]:[];h.forEach(S=>{o&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const d=l&&a?Ia(l,n):null;let m=-1,f=null;i&&(f=new ResizeObserver(S=>{let[A]=S;A&&A.target===l&&f&&(f.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var E;(E=f)==null||E.observe(t)})),n()}),l&&!c&&f.observe(l),f.observe(t));let g,p=c?kt(e):null;c&&b();function b(){const S=kt(e);p&&!Jr(p,S)&&n(),p=S,g=requestAnimationFrame(b)}return n(),()=>{var S;h.forEach(A=>{o&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),d?.(),(S=f)==null||S.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const Na=ra,ka=oa,Da=ta,_a=sa,Ba=ea,La=$s,Wa=ia,Ka=(e,t,n)=>{const r=new Map,o={platform:Fa,...n},s={...o.platform,_c:r};return Js(e,t,{...o,platform:s})};function Ft(e){return typeof e=="function"?e():e}function $r(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gn(e,t){const n=$r(e);return Math.round(t*n)/n}function vc(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Va(e){const t=e.whileElementsMounted,n=x(()=>Ft(e.open)??!0),r=x(()=>Ft(e.middleware)),o=x(()=>Ft(e.transform)??!0),s=x(()=>Ft(e.placement)??"bottom"),i=x(()=>Ft(e.strategy)??"absolute"),a=x(()=>Ft(e.sideOffset)??0),c=x(()=>Ft(e.alignOffset)??0),l=e.reference;let h=M(0),d=M(0);const m=ut(null);let f=M(_t(u(i))),g=M(_t(u(s))),p=M(_t({})),b=M(!1),S=!1,A=0;const E=x(()=>{const _=m.current?Gn(m.current,u(h)):u(h),B=m.current?Gn(m.current,u(d)):u(d);return u(o)?{position:u(f),left:"0",top:"0",transform:`translate(${_}px, ${B}px)`,...m.current&&$r(m.current)>=1.5&&{willChange:"transform"}}:{position:u(f),left:`${_}px`,top:`${B}px`}});let O;function I(){if(l.current===null||m.current===null)return;const _=l.current,B=m.current,J=++A;Ka(_,B,{middleware:u(r),placement:u(s),strategy:u(i)}).then(L=>{if(J!==A||l.current!==_||m.current!==B)return;if(za(_)){y(p,{...u(p),hide:{...u(p).hide,referenceHidden:!0}},!0);return}if(!u(n)&&u(h)!==0&&u(d)!==0){const q=Math.max(Math.abs(u(a)),Math.abs(u(c)),15);if(L.x<=q&&L.y<=q)return}y(h,L.x,!0),y(d,L.y,!0),y(f,L.strategy,!0),y(g,L.placement,!0),y(p,L.middlewareData,!0),y(b,!0)})}function P(){typeof O=="function"&&(O(),O=void 0),A++}function D(){if(P(),t===void 0){I();return}u(n)&&(l.current===null||m.current===null||(O=t(l.current,m.current,I)))}function X(){!u(n)&&m.current===null&&y(b,!1)}function z(){return[u(r),u(s),u(i),u(a),u(c),u(n)]}return Z(()=>{t===void 0&&u(n)&&I()}),Z(D),Z(()=>{if(t!==void 0){if(z(),!u(n)){S=!1;return}if(!u(b)){S=!1;return}if(!S){S=!0;return}I()}}),Z(X),Z(()=>P),{floating:m,reference:l,get strategy(){return u(f)},get placement(){return u(g)},get middlewareData(){return u(p)},get isPositioned(){return u(b)},get floatingStyles(){return u(E)},get update(){return I}}}function za(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const Ha={top:"bottom",right:"left",bottom:"top",left:"right"},bn=new Tt("Floating.Root"),Xn=new Tt("Floating.Content"),wn=new Tt("Floating.Root");class Se{static create(t=!1){return t?wn.set(new Se):bn.set(new Se)}anchorNode=ut(null);customAnchorNode=ut(null);triggerNode=ut(null);constructor(){Z(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Ae{static create(t,n=!1){return n?Xn.set(new Ae(t,wn.get())):Xn.set(new Ae(t,bn.get()))}opts;root;contentRef=ut(null);wrapperRef=ut(null);arrowRef=ut(null);contentAttachment=tt(this.contentRef);wrapperAttachment=tt(this.wrapperRef);arrowAttachment=tt(this.arrowRef);arrowId=ut(fn());#t=x(()=>{if(typeof this.opts.style=="string")return Jt(this.opts.style);if(!this.opts.style)return{}});#e=void 0;#n=new ei(()=>this.arrowRef.current??void 0);#r=x(()=>this.#n?.width??0);#o=x(()=>this.#n?.height??0);#i=x(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=x(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#s=x(()=>u(this.#a).length>0);get hasExplicitBoundaries(){return u(this.#s)}set hasExplicitBoundaries(t){y(this.#s,t)}#c=x(()=>({padding:this.opts.collisionPadding.current,boundary:u(this.#a).filter(bi),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return u(this.#c)}set detectOverflowOptions(t){y(this.#c,t)}#u=M(void 0);#l=M(void 0);#d=M(void 0);#h=M(void 0);#g=x(()=>[Na({mainAxis:this.opts.sideOffset.current+u(this.#o),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&ka({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Wa():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Da({...this.detectOverflowOptions}),_a({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:s}=t.reference;y(this.#u,n,!0),y(this.#l,r,!0),y(this.#d,o,!0),y(this.#h,s,!0)}}),this.arrowRef.current&&La({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ja({arrowWidth:u(this.#r),arrowHeight:u(this.#o)}),this.opts.hideWhenDetached.current&&Ba({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return u(this.#g)}set middleware(t){y(this.#g,t)}floating;#p=x(()=>Ua(this.floating.placement));get placedSide(){return u(this.#p)}set placedSide(t){y(this.#p,t)}#m=x(()=>Ga(this.floating.placement));get placedAlign(){return u(this.#m)}set placedAlign(t){y(this.#m,t)}#f=x(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return u(this.#f)}set arrowX(t){y(this.#f,t)}#v=x(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return u(this.#v)}set arrowY(t){y(this.#v,t)}#y=x(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return u(this.#y)}set cannotCenterArrow(t){y(this.#y,t)}#b=M();get contentZIndex(){return u(this.#b)}set contentZIndex(t){y(this.#b,t,!0)}#w=x(()=>Ha[this.placedSide]);get arrowBaseSide(){return u(this.#w)}set arrowBaseSide(t){y(this.#w,t)}#x=x(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${u(this.#u)}px`,"--bits-floating-available-height":`${u(this.#l)}px`,"--bits-floating-anchor-width":`${u(this.#d)}px`,"--bits-floating-anchor-height":`${u(this.#h)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...u(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return u(this.#x)}set wrapperProps(t){y(this.#x,t)}#S=x(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:er({...u(this.#t)}),...this.contentAttachment}));get props(){return u(this.#S)}set props(t){y(this.#S,t)}#A=x(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return u(this.#A)}set arrowStyle(t){y(this.#A,t)}constructor(t,n){this.opts=t,this.root=n,this.#e=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),G(()=>t.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Va({strategy:()=>this.opts.strategy.current,placement:()=>u(this.#i),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Ra(...r,{animationFrame:this.#e?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Z(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),G(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Ge(r),s=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const i=o.getComputedStyle(r).zIndex;i!==this.contentZIndex&&(this.contentZIndex=i)});return()=>{o.cancelAnimationFrame(s)}}),Z(()=>{this.floating.floating.current=this.wrapperRef.current})}}class Oe{static create(t,n=!1){return n?new Oe(t,wn.get()):new Oe(t,bn.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Jn(t.virtualEl.current):n.triggerNode=t.ref}}function ja(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,h]=xn(n),d={start:"0%",center:"50%",end:"100%"}[h],m=(o.arrow?.x??0)+a/2,f=(o.arrow?.y??0)+c/2;let g="",p="";return l==="bottom"?(g=i?d:`${m}px`,p=`${-c}px`):l==="top"?(g=i?d:`${m}px`,p=`${r.floating.height+c}px`):l==="right"?(g=`${-c}px`,p=i?d:`${f}px`):l==="left"&&(g=`${r.floating.width+c}px`,p=i?d:`${f}px`),{data:{x:g,y:p}}}}}function xn(e){const[t,n="center"]=e.split("-");return[t,n]}function Ua(e){return xn(e)[0]}function Ga(e){return xn(e)[1]}function yc(e,t){R(t,!0);let n=v(t,"tooltip",3,!1);Se.create(n());var r=F(),o=T(r);k(o,()=>t.children??K),C(e,r),N()}function bc(e,t){R(t,!0);let n=v(t,"tooltip",3,!1);Oe.create({id:w(()=>t.id),virtualEl:w(()=>t.virtualEl),ref:t.ref},n());var r=F(),o=T(r);k(o,()=>t.children??K),C(e,r),N()}function Xa(e,t){R(t,!0);let n=v(t,"side",3,"bottom"),r=v(t,"sideOffset",3,0),o=v(t,"align",3,"center"),s=v(t,"alignOffset",3,0),i=v(t,"arrowPadding",3,0),a=v(t,"avoidCollisions",3,!0),c=v(t,"collisionBoundary",19,()=>[]),l=v(t,"collisionPadding",3,0),h=v(t,"hideWhenDetached",3,!1),d=v(t,"onPlaced",3,()=>{}),m=v(t,"sticky",3,"partial"),f=v(t,"updatePositionStrategy",3,"optimized"),g=v(t,"strategy",3,"fixed"),p=v(t,"dir",3,"ltr"),b=v(t,"style",19,()=>({})),S=v(t,"wrapperId",19,fn),A=v(t,"customAnchor",3,null),E=v(t,"tooltip",3,!1);const O=Ae.create({side:w(()=>n()),sideOffset:w(()=>r()),align:w(()=>o()),alignOffset:w(()=>s()),id:w(()=>t.id),arrowPadding:w(()=>i()),avoidCollisions:w(()=>a()),collisionBoundary:w(()=>c()),collisionPadding:w(()=>l()),hideWhenDetached:w(()=>h()),onPlaced:w(()=>d()),sticky:w(()=>m()),updatePositionStrategy:w(()=>f()),strategy:w(()=>g()),dir:w(()=>p()),style:w(()=>b()),enabled:w(()=>t.enabled),wrapperId:w(()=>S()),customAnchor:w(()=>A())},E()),I=x(()=>ot(O.wrapperProps,{style:{pointerEvents:"auto"}}));var P=F(),D=T(P);k(D,()=>t.content??K,()=>({props:O.props,wrapperProps:u(I)})),C(e,P),N()}function Ya(e,t){R(t,!0),po(()=>{t.onPlaced?.()});var n=F(),r=T(n);k(r,()=>t.content??K,()=>({props:{},wrapperProps:{}})),C(e,n),N()}function qa(e,t){let n=v(t,"isStatic",3,!1),r=V(t,["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);var o=F(),s=T(o);{var i=c=>{Ya(c,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=c=>{Xa(c,Q({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>r))};rt(s,c=>{n()?c(i):c(a,!1)})}C(e,o)}var Za=ct("<!> <!>",1);function to(e,t){R(t,!0);let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=v(t,"tooltip",3,!1),c=v(t,"contentPointerEvents",3,"auto"),l=V(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]);const h=x(()=>t.preventScroll??!0),d=x(()=>t.strategy??(u(h)?"fixed":"absolute"));qa(e,{get isStatic(){return i()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return u(d)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get enabled(){return t.enabled},get tooltip(){return a()},content:(f,g)=>{let p=()=>g?.().props,b=()=>g?.().wrapperProps;var S=Za(),A=T(S);{var E=P=>{ye(P,{get preventScroll(){return u(h)}})},O=P=>{ye(P,{get preventScroll(){return u(h)}})};rt(A,P=>{t.forceMount&&t.enabled?P(E):t.forceMount||P(O,1)})}var I=de(A,2);Kr(I,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return r()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(D,X)=>{let z=()=>X?.().props;Wr(D,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(_,B)=>{Lr(_,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return o()},get enabled(){return t.enabled},get ref(){return t.ref},children:(L,H)=>{let q=()=>H?.().props;Vr(L,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(et,$)=>{var Y=F(),U=T(Y);{let pt=x(()=>({props:ot(l,p(),q(),z(),{style:{pointerEvents:c()}}),wrapperProps:b()}));k(U,()=>t.popper??K,()=>u(pt))}C(et,Y)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),C(f,S)},$$slots:{content:!0}}),N()}function wc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=V(t,["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);var c=F(),l=T(c);{var h=d=>{to(d,Q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};rt(l,d=>{t.shouldRender&&d(h)})}C(e,c)}function xc(e,t){let n=v(t,"interactOutsideBehavior",3,"close"),r=v(t,"trapFocus",3,!0),o=v(t,"isValidEvent",3,()=>!1),s=v(t,"customAnchor",3,null),i=v(t,"isStatic",3,!1),a=V(t,["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);to(e,Q({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return s()},get isStatic(){return i()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return r()},get isValidEvent(){return o()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function Sc(e,t){R(t,!0);let n=v(t,"open",15,!1),r=V(t,["$$slots","$$events","$$legacy","open"]);var o=F(),s=T(o);Et(s,()=>Oi,(i,a)=>{a(i,Q(()=>r,{get open(){return n()},set open(c){n(c)}}))}),C(e,o),N()}function Qa(e,t){let n=V(t,["$$slots","$$events","$$legacy"]);var r=F(),o=T(r);Et(o,()=>Li,(s,i)=>{i(s,Q(()=>n))}),C(e,r)}function Ac(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>Pt("text-lg font-semibold",t.class));Et(s,()=>Ei,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-title",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}function Oc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>t.class||Pt(Qn()));Et(s,()=>Ti,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-action",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}function Cc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>t.class||Pt(Qn({variant:"ghost"})));Et(s,()=>Fi,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-cancel",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}var Ja=ct("<div><!></div>");function Ec(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=Ja();Ct(o,i=>({"data-slot":"alert-dialog-footer",class:i,...r}),[()=>Pt("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",t.class)]);var s=At(o);k(s,()=>t.children??K),Ot(o),Zn(o,i=>n(i),()=>n()),C(e,o),N()}var $a=ct("<div><!></div>");function Pc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class","children"]);var o=$a();Ct(o,i=>({"data-slot":"alert-dialog-header",class:i,...r}),[()=>Pt("flex flex-col gap-2 text-center sm:text-start",t.class)]);var s=At(o);k(s,()=>t.children??K),Ot(o),Zn(o,i=>n(i),()=>n()),C(e,o),N()}function tc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>Pt("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t.class));Et(s,()=>Bs,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-overlay",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}var ec=ct("<!> <!>",1);function Tc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class","portalProps"]);Qa(e,Q(()=>t.portalProps,{children:(o,s)=>{var i=ec(),a=T(i);tc(a,{});var c=de(a,2);{let l=x(()=>Pt("bg-[var(--color-bg-elevated)] border-[var(--color-border)] text-[var(--color-text-primary)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t.class));Et(c,()=>Ds,(h,d)=>{d(h,Q({"data-slot":"alert-dialog-content",get class(){return u(l)}},()=>r,{get ref(){return n()},set ref(m){n(m)}}))})}C(o,i)},$$slots:{default:!0}})),N()}function Mc(e,t){R(t,!0);let n=v(t,"ref",15,null),r=V(t,["$$slots","$$events","$$legacy","ref","class"]);var o=F(),s=T(o);{let i=x(()=>Pt("text-[var(--color-text-secondary)] text-sm",t.class));Et(s,()=>Ws,(a,c)=>{c(a,Q({"data-slot":"alert-dialog-description",get class(){return u(i)}},()=>r,{get ref(){return n()},set ref(l){n(l)}}))})}C(e,o),N()}export{Tr as $,Tc as A,Oc as B,Tt as C,Br as D,Ee as E,yc as F,Sc as G,oe as H,We as I,Xe as J,fc as K,Ye as L,Dr as M,on as N,Ke as O,xc as P,Qe as Q,en as R,ie as S,Kr as T,Wr as U,Lr as V,Vr as W,ye as X,Bs as Y,Ei as Z,Mr as _,tt as a,ds as a0,fe as a1,te as a2,hi as a3,fi as a4,ur as a5,di as a6,lr as a7,hc as a8,gc as a9,pc as aa,mc as ab,zt as ac,Mn as ad,uc as ae,lt as af,xi as ag,bo as ah,hr as ai,wo as aj,Ws as ak,Wt as b,ar as c,cr as d,cs as e,Ht as f,dc as g,w as h,mt as i,_r as j,Rr as k,Nr as l,ot as m,W as n,kr as o,wc as p,vc as q,bc as r,er as s,Li as t,Pc as u,Ac as v,G as w,Mc as x,Ec as y,Cc as z};
|