@hollware/admin 0.3.0 → 0.4.0

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.
Files changed (48) hide show
  1. package/dist/client/admin/assets/Alert-CYo_h5Zi.js +1 -0
  2. package/dist/client/admin/assets/Badge-BejL8cBQ.js +1 -0
  3. package/dist/client/admin/assets/Callback-CAUWS3EP.js +1 -0
  4. package/dist/client/admin/assets/Entries-Q9g2TzDi.js +1 -0
  5. package/dist/client/admin/assets/Entry-CJPeYozs.js +7 -0
  6. package/dist/client/admin/assets/FormField-Ba9y2pmW.js +1 -0
  7. package/dist/client/admin/assets/Input-DWc50m3j.js +1 -0
  8. package/dist/client/admin/assets/NewEntry-DioDJL4M.js +2 -0
  9. package/dist/client/admin/assets/People-McaQgClc.js +1 -0
  10. package/dist/client/admin/assets/Reviews-BznoCQEZ.js +1 -0
  11. package/dist/client/admin/assets/Tokens-D4_XjSQy.js +1 -0
  12. package/dist/client/admin/assets/VerdictList-6AHZk7yQ.js +1 -0
  13. package/dist/client/admin/assets/VisuallyHidden-CFCnkG2O.js +4 -0
  14. package/dist/client/admin/assets/{editor-theme-BuNZVpq6.js → editor-theme-47BGjyMs.js} +12 -12
  15. package/dist/client/admin/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  16. package/dist/client/admin/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  17. package/dist/client/admin/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  18. package/dist/client/admin/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  19. package/dist/client/admin/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
  20. package/dist/client/admin/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
  21. package/dist/client/admin/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
  22. package/dist/client/admin/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
  23. package/dist/client/admin/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
  24. package/dist/client/admin/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
  25. package/dist/client/admin/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  26. package/dist/client/admin/assets/index-5cXYb8Gp.css +2 -0
  27. package/dist/client/admin/assets/index-kJu8z9GB.js +28 -0
  28. package/dist/client/admin/assets/{session-CDqermoS.js → session-BTjYVlu_.js} +1 -1
  29. package/dist/client/admin/index.html +4 -4
  30. package/package.json +6 -2
  31. package/dist/client/admin/assets/Alert-Bitf7ZXi.js +0 -1
  32. package/dist/client/admin/assets/Badge-BdNbEtTi.js +0 -1
  33. package/dist/client/admin/assets/Callback-B7wR03AA.js +0 -1
  34. package/dist/client/admin/assets/Entries-WCNooeTz.js +0 -1
  35. package/dist/client/admin/assets/Entry-rB8cRN_X.js +0 -7
  36. package/dist/client/admin/assets/FormField-BTqtMqpR.js +0 -1
  37. package/dist/client/admin/assets/Input-Bz7hEYDE.js +0 -1
  38. package/dist/client/admin/assets/NewEntry-DsYwDFol.js +0 -2
  39. package/dist/client/admin/assets/People-B7IZXefm.js +0 -1
  40. package/dist/client/admin/assets/Reviews-Brm7BADO.js +0 -1
  41. package/dist/client/admin/assets/Select-D4daojMS.js +0 -1
  42. package/dist/client/admin/assets/Tokens-C3tBUHUR.js +0 -1
  43. package/dist/client/admin/assets/VerdictList-BZCqXyfC.js +0 -1
  44. package/dist/client/admin/assets/VisuallyHidden-DQM1Rx2i.js +0 -4
  45. package/dist/client/admin/assets/index-CnEFqror.css +0 -2
  46. package/dist/client/admin/assets/index-NtWIwjeZ.js +0 -28
  47. package/dist/client/admin/assets/useFormControl-DOEHFiSf.js +0 -1
  48. package/dist/client/admin/assets/utils-D-ASt0bw.js +0 -1
@@ -1,28 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Entries-WCNooeTz.js","assets/Badge-BdNbEtTi.js","assets/session-CDqermoS.js","assets/VisuallyHidden-DQM1Rx2i.js","assets/Select-D4daojMS.js","assets/utils-D-ASt0bw.js","assets/useFormControl-DOEHFiSf.js","assets/NewEntry-DsYwDFol.js","assets/FormField-BTqtMqpR.js","assets/Alert-Bitf7ZXi.js","assets/VerdictList-BZCqXyfC.js","assets/Input-Bz7hEYDE.js","assets/Entry-rB8cRN_X.js","assets/editor-theme-BuNZVpq6.js","assets/Reviews-Brm7BADO.js","assets/Tokens-C3tBUHUR.js","assets/People-B7IZXefm.js","assets/Callback-B7wR03AA.js"])))=>i.map(i=>d[i]);
2
- import{$t as e,Ar as t,Cr as n,Ct as r,Dn as i,E as a,En as o,F as s,Gt as c,Hn as l,Ht as u,I as d,Jn as f,Mt as p,N as m,Nr as h,O as g,Pt as _,Qn as v,St as y,T as b,Tn as x,Tt as S,Un as C,V as w,Wt as T,_ as E,_n as D,_r as O,ai as k,an as A,at as j,b as ee,dn as M,dt as N,et as te,g as ne,h as re,hr as ie,ht as ae,i as oe,ii as P,it as se,jr as ce,jt as F,kn as I,kr as L,ln as le,n as ue,ni as R,oi as z,on as de,p as fe,pn as B,q as V,qn as pe,qt as me,sn as he,tt as ge,ur as _e,v as ve,vr as ye,w as H,wr as be,wt as U,x as xe,xn as Se,xr as Ce,xt as W,y as G,yn as K,z as we,zn as Te}from"./session-CDqermoS.js";import{B as q,a as Ee,b as De,d as Oe,g as ke,i as Ae,l as je,m as Me,n as Ne,o as Pe,p as Fe,r as J,s as Y,t as Ie,u as Le}from"./VisuallyHidden-DQM1Rx2i.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Re=!1;function ze(e){if(Re)return;let t=JSON.parse(`[{"prefix":"lucide","icons":{"arrow-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 5v14m7-7l-7 7l-7-7\\"/>"},"arrow-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m12 19l-7-7l7-7m7 7H5\\"/>"},"arrow-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7l7 7l-7 7\\"/>"},"arrow-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m5 12l7-7l7 7m-7 7V5\\"/>"},"arrow-up-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M7 7h10v10M7 17L17 7\\"/>"},"check":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 6L9 17l-5-5\\"/>"},"chevron-down":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 9l6 6l6-6\\"/>"},"chevron-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m15 18l-6-6l6-6\\"/>"},"chevron-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m9 18l6-6l-6-6\\"/>"},"chevron-up":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m18 15l-6-6l-6 6\\"/>"},"chevrons-left":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m11 17l-5-5l5-5m7 10l-5-5l5-5\\"/>"},"chevrons-right":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 17l5-5l-5-5m7 10l5-5l-5-5\\"/>"},"circle-alert":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 8v4m0 4h.01\\"/></g>"},"circle-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m16 9l-5.5 5.5L8 12\\"/></g>"},"circle-x":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"m15 9l-6 6m0-6l6 6\\"/></g>"},"copy":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"copy-check":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m12 15l2 2l4-4\\"/><rect width=\\"14\\" height=\\"14\\" x=\\"8\\" y=\\"8\\" rx=\\"2\\" ry=\\"2\\"/><path d=\\"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2\\"/></g>"},"ellipsis":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"19\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"5\\" cy=\\"12\\" r=\\"1\\"/></g>"},"eye":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0\\"/><circle cx=\\"12\\" cy=\\"12\\" r=\\"3\\"/></g>"},"eye-off":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242\\"/><path d=\\"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20\\"/></g>"},"file":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z\\"/><path d=\\"M14 2v5a1 1 0 0 0 1 1h5\\"/></g>"},"folder":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z\\"/>"},"folder-open":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2\\"/>"},"grip-vertical":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"9\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"9\\" cy=\\"19\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"12\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"5\\" r=\\"1\\"/><circle cx=\\"15\\" cy=\\"19\\" r=\\"1\\"/></g>"},"hash":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 9h16M4 15h16M10 3L8 21m8-18l-2 18\\"/>"},"info":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"10\\"/><path d=\\"M12 16v-4m0-4h.01\\"/></g>"},"lightbulb":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4\\"/>"},"loader-circle":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M21 12a9 9 0 1 1-6.219-8.56\\"/>"},"menu":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M4 5h16M4 12h16M4 19h16\\"/>"},"minus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14\\"/>"},"monitor":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"20\\" height=\\"14\\" x=\\"2\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M8 21h8m-4-4v4\\"/></g>"},"moon":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401\\"/>"},"panel-left-close":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m7-6l-3-3l3-3\\"/></g>"},"panel-left-open":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" rx=\\"2\\"/><path d=\\"M9 3v18m5-12l3 3l-3 3\\"/></g>"},"plus":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M5 12h14m-7-7v14\\"/>"},"rotate-ccw":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8\\"/><path d=\\"M3 3v5h5\\"/></g>"},"search":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><path d=\\"m21 21l-4.34-4.34\\"/><circle cx=\\"11\\" cy=\\"11\\" r=\\"8\\"/></g>"},"square":{"width":24,"height":24,"body":"<rect width=\\"18\\" height=\\"18\\" x=\\"3\\" y=\\"3\\" fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" rx=\\"2\\"/>"},"star":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z\\"/>"},"sun":{"width":24,"height":24,"body":"<g fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\"><circle cx=\\"12\\" cy=\\"12\\" r=\\"4\\"/><path d=\\"M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41\\"/></g>"},"triangle-alert":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01\\"/>"},"upload":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\\"/>"},"x":{"width":24,"height":24,"body":"<path fill=\\"none\\" stroke=\\"currentColor\\" stroke-linecap=\\"round\\" stroke-linejoin=\\"round\\" stroke-width=\\"2\\" d=\\"M18 6L6 18M6 6l12 12\\"/>"}}}]`);for(let n of t)for(let[t,r]of Object.entries(n.icons))e(n.prefix?n.prefix+`:`+t:t,r);Re=!0}var Be={install(){ze((e,t)=>{let n=e.indexOf(`:`);return n!==-1&&e.slice(0,n).includes(`-`)&&j(e.replace(`:`,`-`),t),j(e,t)})}};function Ve(e,t){if(typeof t==`function`&&t.key&&e.plugins.has(t.key))return;let n=typeof t==`function`?t(e):t,r=n.key||String(e.plugins.size+1);if(!e.plugins.get(r)){e.plugins.set(r,n);for(let t in n.hooks||{})e.hooks?.hook(t,n.hooks[t])}}function He(e,t={}){let n=!t.document,r=new Map,i={_entryCount:1,_h:0,plugins:new Map,resolvedOptions:t,ssr:n,entries:r,hooks:void 0,render:()=>e(i),use:e=>Ve(i,e),push(e,t){let a=t?._index??i._entryCount++,o=t?{...t}:{};delete o.head,delete o.onRendered,delete o._index;let s={_i:a,input:e,options:o};return r.set(a,s),{_i:a,dispose(){r.delete(a)},patch(e){n?(s.input=e,delete s._tags):s._pending=e,r.has(a)||r.set(a,s)}}}};return t.init?.forEach(e=>e&&i.push(e)),i}var Ue=new Set([`link`,`style`,`script`,`noscript`]),We=new Set([`title`,`titleTemplate`,`script`,`style`,`noscript`]),Ge=new Set([`base`,`meta`,`link`,`style`,`script`,`noscript`]),Ke=new Set([`title`,`base`,`htmlAttrs`,`bodyAttrs`,`meta`,`link`,`style`,`script`,`noscript`]),qe=new Set([`base`,`title`,`titleTemplate`,`bodyAttrs`,`htmlAttrs`,`templateParams`]),Je=new Set([`key`,`tagPosition`,`tagPriority`,`tagDuplicateStrategy`,`innerHTML`,`textContent`,`processTemplateParams`]),Ye=new Set([`templateParams`,`htmlAttrs`,`bodyAttrs`]),Xe=new Set([`theme-color`,`google-site-verification`,`author`,`og:locale:alternate`,`og:image`,`og:video`,`og:audio`,`article:author`,`article:tag`,`book:author`,`book:tag`,`twitter:image`]),Ze={critical:-8,high:-1,low:2},Qe=e=>typeof e==`number`?Number.isFinite(e):e;function $e(e){return e===`__proto__`||e===`constructor`||e===`prototype`}function et(e,t={},n){for(let r in e){let i=e[r],a=n?`${n}:${r}`:r;typeof i==`object`&&i?et(i,t,a):typeof i==`function`&&(t[a]=i)}return t}var tt=(()=>{if(console.createTask)return console.createTask;let e={run:e=>e()};return()=>e})();function nt(e,t,n,r){for(let i=n;i<e.length;i+=1)try{let n=r?r.run(()=>e[i](...t)):e[i](...t);if(n&&typeof n.then==`function`)return Promise.resolve(n).then(()=>nt(e,t,i+1,r))}catch(e){return Promise.reject(e)}}function rt(e,t,n){if(e.length>0)return nt(e,t,0,tt(n))}function it(e,t,n){if(e.length>0){let r=tt(n);return Promise.all(e.map(e=>r.run(()=>e(...t))))}}function at(e,t){for(let n of[...e])n(t)}var ot=class{_hooks;_before;_after;_deprecatedHooks;_deprecatedMessages;constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!=`function`)return()=>{};let r=e,i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let e=i.message;e||=`${r} hook has been deprecated`+(i.to?`, please use ${i.to}`:``),this._deprecatedMessages||=new Set,this._deprecatedMessages.has(e)||(console.warn(e),this._deprecatedMessages.add(e))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>`_`+e.replace(/\W+/g,`_`)+`_hook_cb`,configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)}}hookOnce(e,t){let n,r=(...e)=>(typeof n==`function`&&n(),n=void 0,r=void 0,t(...e));return n=this.hook(e,r),n}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t==`string`?{to:t}:t;let n=this._hooks[e]||[];this._hooks[e]=void 0;for(let t of n)this.hook(e,t)}deprecateHooks(e){for(let t in e)this.deprecateHook(t,e[t])}addHooks(e){let t=et(e),n=Object.keys(t).map(e=>this.hook(e,t[e]));return()=>{for(let e of n)e();n.length=0}}removeHooks(e){let t=et(e);for(let e in t)this.removeHook(e,t[e])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(rt,e,t)}callHookParallel(e,...t){return this.callHookWith(it,e,t)}callHookWith(e,t,n){let r=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&at(this._before,r);let i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&r&&at(this._after,r)}):(this._after&&r&&at(this._after,r),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){let t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){let t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function st(){return new ot}var ct=class{_hooks;constructor(){this._hooks={}}hook(e,t){return!e||typeof t!=`function`?()=>{}:(this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&=(this.removeHook(e,t),void 0)})}removeHook(e,t){let n=this._hooks[e];if(n){let r=n.indexOf(t);r!==-1&&n.splice(r,1),n.length===0&&(this._hooks[e]=void 0)}}callHook(e,...t){let n=this._hooks[e];if(n&&n.length!==0)return nt(n.slice(),t,0)}};function lt(e){let t=new ct;for(let n in e||{})t.hook(n,e[n]);return t}function X(e,t,n){if(e.hooks?._hooks?.[t]?.length)return e.hooks?.callHook(t,n)}function ut(e,t,n){let r=e.push,i=e;i.ssr=!1,i.hooks=t,i.dirty=!!i.dirty,i.use=e=>Ve(i,e),i.render=()=>n(i);function a(){t.callHook(`entries:updated`,i),i._b||i.render()}return i.invalidate=()=>{for(let e of i.entries.values())delete e._tags;i.dirty=!0,a()},i.push=(n,o)=>{let s=o?.onRendered?t.hook(`dom:rendered`,o.onRendered):void 0,c=r(n,o),l=e.entries.get(c._i);return l&&(l._o=n),i.dirty=!0,a(),{_i:c._i,patch(e){c.patch(e),i.dirty=!0,a()},dispose(){s?.(),e.entries.has(c._i)&&(c.dispose(),i.invalidate())}}},i}var dt=/^(?:viewport|description|keywords|robots)$/,ft=[`name`,`property`,`http-equiv`];function pt(e){let t=e.indexOf(`:`);if(t===-1)return!1;let n=e.slice(t+1);return Xe.has(n)||n.startsWith(`og:image:`)||n.startsWith(`og:video:`)||n.startsWith(`og:audio:`)||n.startsWith(`twitter:image:`)}function mt(e){let{props:t,tag:n,key:r}=e;if(qe.has(n))return n;if(n===`link`){if(t.rel===`canonical`)return`canonical`;if(t.rel===`alternate`&&t.hreflang)return`alternate:${t.hreflang}`}if(t.charset)return`charset`;if(n===`meta`)for(let e of ft){let n=t[e];if(n!==void 0)return`meta:${n}${(typeof n!=`string`||!n.includes(`:`))&&!dt.test(n)&&r?`:key:${r}`:``}`}return r?`${n}:key:${r}`:t.id?`${n}:id:${t.id}`:n===`link`&&t.rel&&t.href?`link:${t.rel}:${t.href}`:We.has(n)&&(e.textContent||e.innerHTML)?`${n}:content:${e.textContent||e.innerHTML}`:void 0}function ht(e){let t=e._h||e._d||e.textContent||e.innerHTML;if(t)return String(t);let n=Object.keys(e.props).sort(),r=`${e.tag}:`,i=``;for(let t of n)r+=`${i}${t}:${String(e.props[t])}`,i=`,`;return r}function gt(e,t,n){if(n===`_resolver`)return e;typeof e==`function`&&(!n||n!==`titleTemplate`&&!n.startsWith(`on`))&&(e=e());let r=t?t(n,e):e;if(Array.isArray(r)){let e;for(let n=0;n<r.length;n++){let i=gt(r[n],t);e?e[n]=i:i!==r[n]&&(e=r.slice(0,n),e[n]=i)}return e||r}if(r?.constructor===Object){let e;for(let n in r){let i=$e(n),a=i?void 0:gt(r[n],t,n);if(!e&&(i||a!==r[n])){e={};for(let t in r){if(t===n)break;e[t]=r[t]}}e&&!i&&(e[n]=a)}return e||r}return r}var _t=/[\s"'<>/=\x00-\x1F\x7F]/;function vt(e,t){let n=e===`style`,r=n?new Map:new Set,i=e=>{if(e){if(n){let t=e.indexOf(`:`);t>0&&r.set(e.slice(0,t).trim(),e.slice(t+1).trim())}else e.split(` `).forEach(e=>e&&r.add(e))}};if(typeof t==`string`)(n?t.split(`;`):[t]).forEach(i);else if(Array.isArray(t))t.forEach(i);else if(t&&typeof t==`object`)for(let e in t){let a=t[e];a&&a!==`false`&&(n?r.set(e.trim(),String(a)):i(e))}return r}function yt(e,t){if(e.props=e.props||{},!t)return e;if(e.tag===`templateParams`)return e.props=t,e;let n=Ge.has(e.tag)||e.tag===`htmlAttrs`||e.tag===`bodyAttrs`;for(let r in t){if($e(r))continue;let i=r.startsWith(`data-`),a=n&&!Je.has(r),o=a&&!i?r.toLowerCase():r;if(a&&(!o||_t.test(o)))continue;let s=t[r];if(s===null)e.props[o]=null;else if(r===`class`||r===`style`)e.props[r]=vt(r,s);else if(Je.has(r)){if((r===`textContent`||r===`innerHTML`)&&typeof s==`object`){let n=t.type||`application/json`;(n.endsWith(`json`)||n===`speculationrules`||n===`importmap`)&&(e.props.type=n,e[r]=JSON.stringify(s))}else e[r]=s}else if(s!==void 0){let t=String(s),n=e.tag===`meta`&&o===`content`;e.props[o]=t===`true`||t===``?i||n?t:!0:!s&&i&&t===`false`?`false`:s}}return e}function bt(e,t){let n;return t.length&&(n=(e,n)=>{for(let r=0;r<t.length;r++)n=t[r](e,n);return n},e=n(void 0,e)),gt(e,n)}function xt(e,t){let n=yt({tag:e,props:{}},typeof t==`object`&&typeof t!=`function`?t:{[e===`script`||e===`noscript`||e===`style`?`innerHTML`:`textContent`]:t});if(n.key&&Ue.has(n.tag)&&(n.props[`data-hid`]=n._h=n.key),n.tag===`script`&&typeof n.innerHTML==`object`&&(n.innerHTML=JSON.stringify(n.innerHTML),n.props.type=n.props.type||`application/json`),Array.isArray(n.props.content)){let e=[];for(let t of n.props.content)e.push({...n,props:{...n.props,content:t}});return e}return n}function St(e,t){if(Array.isArray(t))for(let n of t)e.push(n);else e.push(t)}function Ct(e,t){if(!e)return[];typeof e==`function`&&(e=e()),e=bt(e,t);let n=[];for(let t in e){let r=e[t];if(r!==void 0){if(Array.isArray(r))for(let e of r)St(n,xt(t,e));else St(n,xt(t,r))}}return n}var wt=/</g,Tt=/<\/script/g,Et=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,Dt=()=>100;function Ot(e){for(let t in e)return!1;return!0}var kt=/^tags:|:render/;function At(e,t){let n=(t[`entries:resolve`]?.length||0)+(t[`entries:normalize`]?.length||0);if(e._h!==n){e._h=n;for(let t of e.entries.values())delete t._tags}}function jt(e){for(let t=0;t<e.length;t++){let n=e[t],r={...n.props};r.class instanceof Set&&(r.class=new Set(r.class)),r.style instanceof Map&&(r.style=new Map(r.style)),e[t]={...n,props:r}}}function Mt(e,t){let n=e.tags,r=0;for(let t of e.tagMap.values())if(Array.isArray(t))for(let e of t)n[r++]=e;else n[r++]=t;n.length=r,t&&n.sort(Et)}function Nt(e){let t=!1;for(let n of e.tags.sort(Et)){let r=n._d||ht(n);if(!r)continue;let i=e.tagMap.get(r);if(!i){e.tagMap.set(r,n);continue}if((n.tagDuplicateStrategy||(Ye.has(n.tag)?`merge`:null)||(n.key&&n.key===i.key?`merge`:null))===`merge`){let t={...i.props};for(let e in n.props)t[e]=e===`style`?new Map([...i.props.style||new Map,...n.props[e]]):e===`class`?new Set([...i.props.class||[],...n.props[e]]):n.props[e];e.tagMap.set(r,{...n,props:t})}else n._p>>10==i._p>>10&&n.tag===`meta`&&pt(r)?(e.tagMap.set(r,Object.assign([...Array.isArray(i)?i:[i],n],n)),t=!0):(n._w===i._w?n._p>i._p:n._w<i._w)&&e.tagMap.set(r,n)}return t}function Pt(e,t){let n=e.tagMap.get(`title`),r=e.tagMap.get(`titleTemplate`);if(t._title=n?.textContent,!r)return;let i=r.textContent;if(t._titleTemplate=i,!i)return;let a=typeof i==`function`?i(n?.textContent):i;typeof a==`string`&&!t.plugins.has(`template-params`)&&(a=a.replace(`%s`,n?.textContent||``)),n?a===null?e.tagMap.delete(`title`):e.tagMap.set(`title`,{...n,textContent:a}):e.tagMap.set(`titleTemplate`,{...r,tag:`title`,textContent:a})}function Ft(e){let t=0;for(let n of e){let{innerHTML:r,tag:i,props:a}=n;if(Ke.has(i)&&(!Ot(a)||Qe(r)||Qe(n.textContent))&&(i!==`meta`||Qe(a.content)||a[`http-equiv`]||a.charset)){if(i===`script`&&(r||n.textContent)){let e=String(a.type),t=e.endsWith(`json`)||e===`importmap`||e===`speculationrules`,i=e=>t?(typeof e==`string`?e:JSON.stringify(e)).replace(wt,`\\u003C`):typeof e==`string`?e.replace(Tt,`<\\/script`):e;n={...n},r&&(n.innerHTML=i(r)),n.textContent&&(n.textContent=i(n.textContent)),n._d=mt(n)}e[t++]=n}}return e.length=t,e}function It(e,t){let n=t?.tagWeight??e.resolvedOptions._tagWeight??Dt,r={tagMap:new Map,tags:[]},i=e.hooks?._hooks||{};At(e,i);for(let t of e.entries.values())t._pending!==void 0&&(t.input=t._pending,delete t._pending,delete t._tags,delete t._precomputedTags);let a;(i[`entries:resolve`]?.length||i[`entries:normalize`]?.length)&&(a=[...e.entries.values()],i[`entries:resolve`]?.length&&X(e,`entries:resolve`,{entries:a,...r})),At(e,i);for(let t of a||e.entries.values()){let a=t._tags;if(!a){if(t._precomputedTags&&n===e.resolvedOptions._tagWeight&&!i[`entries:normalize`]?.length&&!i[`entries:resolve`]?.length&&(!t.options||Ot(t.options)))a=t._precomputedTags;else{if(a=Ct(t.input,e.resolvedOptions.propResolvers||[]),t.options&&!Ot(t.options))for(let e of a)Object.assign(e,t.options);if(i[`entries:normalize`]?.length){let n={tags:a,entry:t};X(e,`entries:normalize`,n),a=n.tags}for(let e=0;e<a.length;e++){let r=a[e];r._w=n(r),r._p=(t._i<<10)+e,r._d=mt(r),r._d||(r._h=ht(r))}t._tags=a}}r.tags.push(...a)}for(let e in i)if(i[e]?.length&&kt.test(e)){jt(r.tags);break}let o=Nt(r);return Pt(r,e),Mt(r,o),X(e,`tags:beforeResolve`,r),X(e,`tags:resolve`,r),X(e,`tags:afterResolve`,r),Ft(r.tags)}var Lt=/\s+/;function Rt(e={}){return t=>Vt(t,e)}function zt(e){for(let t of e.entries.values())if(t._pending!==void 0)return!0;return!1}function Bt(e,t){let n={_d:t,_t:t.title,_e:new Map([[`htmlAttrs`,t.documentElement],[`bodyAttrs`,t.body]]),_p:{},_s:{},_l:new Map};for(let t of e.entries.values())if(t._o!==void 0){let e=t._o;for(let t of[`bodyAttrs`,`htmlAttrs`]){let r=e[t]?.class;if(typeof r==`string`){let e=n._e.get(t);for(let i of r.split(Lt))i&&(n._p[`${t}:attr:class:${i}`]=()=>e.classList.remove(i))}}}return n}function Vt(e,t={}){let n=t.document||e.resolvedOptions.document,r=e._dom;if(!n||e._du||r&&r._d===n&&!e.dirty&&!zt(e))return!1;let i=n.defaultView;e._du=!0;let a=!1;try{let o=function(e,t,n){d._s[e]=!n&&f[e]||t,delete f[e]},s=function(e,t,n,r,i,a){let s=`${e}:event:${t}`,c=d._l.get(s);if(c&&c[0]===a&&c[1]===n&&c[2]===r){o(s,c[4]);return}c?.[4]();let l=`data-${t}`,u=(e=>r.call(i,e)),f=()=>{a.removeEventListener(n,u),i.getAttribute(l)===``&&i.removeAttribute(l),d._l.get(s)?.[3]===u&&d._l.delete(s)};a.addEventListener(n,u),d._l.set(s,[a,n,r,u,f]),i.setAttribute(l,``),o(s,f,!0)},c=function({id:e,$el:t,tag:n}){if(d._e.set(e,t),!n.tag.endsWith(`Attrs`)){let r=n.textContent;r!=null&&r!==``&&(r!==t.textContent&&(t.textContent=r),o(`${e}:text`,()=>{t.textContent===r&&(t.textContent=``)},!0));let i=n.innerHTML;i!=null&&i!==``&&(i!==t.innerHTML&&(t.innerHTML=i),o(`${e}:html`,()=>{t.innerHTML===i&&(t.innerHTML=``)},!0));let a=`${e}:el`;o(a,f[a]||(()=>{t?.remove(),d._e.delete(e)}))}for(let r in n.props){let a=n.props[r];if(r[0]===`o`&&r[1]===`n`&&typeof a==`function`){let o=r.slice(2);t?.dataset?.[`${r}fired`]&&a.call(t,new((i?.Event)||Event)(o)),s(e,r,o,a,t,n.tag===`bodyAttrs`&&i?i:t);continue}let c=`${e}:attr:${r}`;if(r===`class`&&a)for(let e of a){let n=`${c}:${e}`;o(n,f[n]||(()=>t.classList.remove(e))),t.classList.contains(e)||t.classList.add(e)}else if(r===`style`&&a)for(let[e,n]of a){let r=`${c}:${e}`;o(r,f[r]||(()=>t.style.removeProperty(e))),t.style.setProperty(e,n)}else a!==!1&&a!==null&&(t.getAttribute(r)!==a&&t.setAttribute(r,a===!0?``:String(a)),o(c,f[c]||(()=>t.removeAttribute(r))))}},l={shouldRender:!0,tags:[]};if(X(e,`dom:beforeRender`,l),!l.shouldRender)return!1;let u=r;if(u?._d!==n){if(u){for(let e in u._s)u._s[e]();for(let e in u._p)u._p[e]();u._s=u._p={},u._e.clear(),u._l.clear()}u=void 0}u?u._p=u._s:u=Bt(e,n),u._s={};let d=u,f=d._p,p=[],m={};e.dirty=!1;let h=It(e,t.tagWeight?{tagWeight:t.tagWeight}:void 0),g=[],_={};for(let e of h){let t=_[e._d]||0,r=(t?`${e._d}:${t}`:e._d)||e._h,i={tag:e,id:r,shouldRender:!0};if(e.tag===`meta`&&e._d&&pt(e._d)&&(_[e._d]=t+1),g.push(i),e.tag===`title`){n.title=e.textContent,o(`title:`,()=>n.title=d._t);continue}i.$el=d._e.get(r),i.$el?c(i):Ge.has(e.tag)&&p.push(i)}if(p.length){let e=new Set(d._e.values());for(let t of[...n.body.children,...n.head.children]){let n=t.tagName.toLowerCase();if(!Ge.has(n)||e.has(t))continue;let r={innerHTML:t.innerHTML};for(let e of t.getAttributeNames())r[e]=t.getAttribute(e);let i=yt({tag:n,props:{}},r);i.key=t.getAttribute(`data-hid`)||void 0;let a=mt(i)||ht(i),o=a,s=1;for(;d._e.has(o);)o=`${a}:${s++}`;d._e.set(o,t)}}for(let e of p){let t=d._e.get(e.id);e.$el=t||n.createElement(e.tag.tag),c(e),t||(m[e.tag.tagPosition||`head`]??=n.createDocumentFragment()).appendChild(e.$el)}m.head&&n.head.appendChild(m.head),m.bodyOpen&&n.body.insertBefore(m.bodyOpen,n.body.firstChild),m.bodyClose&&n.body.appendChild(m.bodyClose);for(let e in f)f[e]();e._dom=d,a=!0,X(e,`dom:rendered`,{renders:g})}catch(t){throw e.dirty=!0,t}finally{e._du=!1}return a&&(e.dirty||zt(e))&&Vt(e,t),a}var Ht=e=>typeof e.tagPriority==`number`?e.tagPriority:100+(Ze[e.tagPriority]||0);function Ut(e={}){e.document=e.document||(typeof window<`u`?document:void 0);let t=e.render||Rt({document:e.document}),n=ut(He(t,{document:e.document,propResolvers:e.propResolvers,_tagWeight:Ht,init:[]}),lt(e.hooks),t);return e.plugins?.forEach(e=>n.use(e)),e.init?.forEach(e=>e&&n.push(e)),n}var Wt=`usehead`;function Gt(){if(me()){let t=e(Wt);if(t)return t}throw Error(`useHead() was called without provide context, ensure you call it through the setup() function.`)}function Kt(e){return{install(t){t.config.globalProperties.$unhead=e,t.config.globalProperties.$head=e,t.provide(Wt,e)}}.install}var qt=Object.assign((e,t)=>ie(t)?ce(t):t,{_static:!0});function Jt(e,t={}){let n=t.head||Gt();return n.ssr?n.push(e||{},t):Yt(n,e,t)}function Yt(e,t,r={}){let i=_e();if(i&&!i.active)return{patch(){},dispose(){},_i:-1};let a=n(!1);if(r.onRendered&&i){let e=r.onRendered;r={...r,onRendered:t=>i.run(()=>e(t))}}let o;return f(()=>{let n=a.value?{}:gt(t,qt);o?o.patch(n):o=e.push(n,r)}),u()?(le(()=>{o.dispose()}),M(()=>{a.value=!0}),he(()=>{a.value=!1})):i&&ye(()=>o.dispose()),o}function Xt(e={}){let t=Rt(),n,r=0;return n=Ut({render:()=>{let e=++r;setTimeout(()=>{e===r&&t(n)},0)},...e}),n.install=Kt(n),n}var Zt={install(e){if(e._context.provides.usehead)return;let t=Xt();e.use(t)}},Qt={install(e,t){t?.router&&typeof t.router==`function`&&e.provide(`nuxtui:router`,t.router)}},$t={inherit:`inherit`,current:`currentcolor`,transparent:`transparent`,black:`#000`,white:`#fff`,slate:{50:`oklch(98.4% 0.003 247.858)`,100:`oklch(96.8% 0.007 247.896)`,200:`oklch(92.9% 0.013 255.508)`,300:`oklch(86.9% 0.022 252.894)`,400:`oklch(70.4% 0.04 256.788)`,500:`oklch(55.4% 0.046 257.417)`,600:`oklch(44.6% 0.043 257.281)`,700:`oklch(37.2% 0.044 257.287)`,800:`oklch(27.9% 0.041 260.031)`,900:`oklch(20.8% 0.042 265.755)`,950:`oklch(12.9% 0.042 264.695)`},gray:{50:`oklch(98.5% 0.002 247.839)`,100:`oklch(96.7% 0.003 264.542)`,200:`oklch(92.8% 0.006 264.531)`,300:`oklch(87.2% 0.01 258.338)`,400:`oklch(70.7% 0.022 261.325)`,500:`oklch(55.1% 0.027 264.364)`,600:`oklch(44.6% 0.03 256.802)`,700:`oklch(37.3% 0.034 259.733)`,800:`oklch(27.8% 0.033 256.848)`,900:`oklch(21% 0.034 264.665)`,950:`oklch(13% 0.028 261.692)`},zinc:{50:`oklch(98.5% 0 none)`,100:`oklch(96.7% 0.001 286.375)`,200:`oklch(92% 0.004 286.32)`,300:`oklch(87.1% 0.006 286.286)`,400:`oklch(70.5% 0.015 286.067)`,500:`oklch(55.2% 0.016 285.938)`,600:`oklch(44.2% 0.017 285.786)`,700:`oklch(37% 0.013 285.805)`,800:`oklch(27.4% 0.006 286.033)`,900:`oklch(21% 0.006 285.885)`,950:`oklch(14.1% 0.005 285.823)`},neutral:{50:`oklch(98.5% 0 none)`,100:`oklch(97% 0 none)`,200:`oklch(92.2% 0 none)`,300:`oklch(87% 0 none)`,400:`oklch(70.8% 0 none)`,500:`oklch(55.6% 0 none)`,600:`oklch(43.9% 0 none)`,700:`oklch(37.1% 0 none)`,800:`oklch(26.9% 0 none)`,900:`oklch(20.5% 0 none)`,950:`oklch(14.5% 0 none)`},stone:{50:`oklch(98.5% 0.001 106.423)`,100:`oklch(97% 0.001 106.424)`,200:`oklch(92.3% 0.003 48.717)`,300:`oklch(86.9% 0.005 56.366)`,400:`oklch(70.9% 0.01 56.259)`,500:`oklch(55.3% 0.013 58.071)`,600:`oklch(44.4% 0.011 73.639)`,700:`oklch(37.4% 0.01 67.558)`,800:`oklch(26.8% 0.007 34.298)`,900:`oklch(21.6% 0.006 56.043)`,950:`oklch(14.7% 0.004 49.25)`},mauve:{50:`oklch(98.5% 0 none)`,100:`oklch(96% 0.003 325.6)`,200:`oklch(92.2% 0.005 325.62)`,300:`oklch(86.5% 0.012 325.68)`,400:`oklch(71.1% 0.019 323.02)`,500:`oklch(54.2% 0.034 322.5)`,600:`oklch(43.5% 0.029 321.78)`,700:`oklch(36.4% 0.029 323.89)`,800:`oklch(26.3% 0.024 320.12)`,900:`oklch(21.2% 0.019 322.12)`,950:`oklch(14.5% 0.008 326)`},olive:{50:`oklch(98.8% 0.003 106.5)`,100:`oklch(96.6% 0.005 106.5)`,200:`oklch(93% 0.007 106.5)`,300:`oklch(88% 0.011 106.6)`,400:`oklch(73.7% 0.021 106.9)`,500:`oklch(58% 0.031 107.3)`,600:`oklch(46.6% 0.025 107.3)`,700:`oklch(39.4% 0.023 107.4)`,800:`oklch(28.6% 0.016 107.4)`,900:`oklch(22.8% 0.013 107.4)`,950:`oklch(15.3% 0.006 107.1)`},mist:{50:`oklch(98.7% 0.002 197.1)`,100:`oklch(96.3% 0.002 197.1)`,200:`oklch(92.5% 0.005 214.3)`,300:`oklch(87.2% 0.007 219.6)`,400:`oklch(72.3% 0.014 214.4)`,500:`oklch(56% 0.021 213.5)`,600:`oklch(45% 0.017 213.2)`,700:`oklch(37.8% 0.015 216)`,800:`oklch(27.5% 0.011 216.9)`,900:`oklch(21.8% 0.008 223.9)`,950:`oklch(14.8% 0.004 228.8)`},taupe:{50:`oklch(98.6% 0.002 67.8)`,100:`oklch(96% 0.002 17.2)`,200:`oklch(92.2% 0.005 34.3)`,300:`oklch(86.8% 0.007 39.5)`,400:`oklch(71.4% 0.014 41.2)`,500:`oklch(54.7% 0.021 43.1)`,600:`oklch(43.8% 0.017 39.3)`,700:`oklch(36.7% 0.016 35.7)`,800:`oklch(26.8% 0.011 36.5)`,900:`oklch(21.4% 0.009 43.1)`,950:`oklch(14.7% 0.004 49.3)`},red:{50:`oklch(97.1% 0.013 17.38)`,100:`oklch(93.6% 0.032 17.717)`,200:`oklch(88.5% 0.062 18.334)`,300:`oklch(80.8% 0.114 19.571)`,400:`oklch(70.4% 0.191 22.216)`,500:`oklch(63.7% 0.237 25.331)`,600:`oklch(57.7% 0.245 27.325)`,700:`oklch(50.5% 0.213 27.518)`,800:`oklch(44.4% 0.177 26.899)`,900:`oklch(39.6% 0.141 25.723)`,950:`oklch(25.8% 0.092 26.042)`},orange:{50:`oklch(98% 0.016 73.684)`,100:`oklch(95.4% 0.038 75.164)`,200:`oklch(90.1% 0.076 70.697)`,300:`oklch(83.7% 0.128 66.29)`,400:`oklch(75% 0.183 55.934)`,500:`oklch(70.5% 0.213 47.604)`,600:`oklch(64.6% 0.222 41.116)`,700:`oklch(55.3% 0.195 38.402)`,800:`oklch(47% 0.157 37.304)`,900:`oklch(40.8% 0.123 38.172)`,950:`oklch(26.6% 0.079 36.259)`},amber:{50:`oklch(98.7% 0.022 95.277)`,100:`oklch(96.2% 0.059 95.617)`,200:`oklch(92.4% 0.12 95.746)`,300:`oklch(87.9% 0.169 91.605)`,400:`oklch(82.8% 0.189 84.429)`,500:`oklch(76.9% 0.188 70.08)`,600:`oklch(66.6% 0.179 58.318)`,700:`oklch(55.5% 0.163 48.998)`,800:`oklch(47.3% 0.137 46.201)`,900:`oklch(41.4% 0.112 45.904)`,950:`oklch(27.9% 0.077 45.635)`},yellow:{50:`oklch(98.7% 0.026 102.212)`,100:`oklch(97.3% 0.071 103.193)`,200:`oklch(94.5% 0.129 101.54)`,300:`oklch(90.5% 0.182 98.111)`,400:`oklch(85.2% 0.199 91.936)`,500:`oklch(79.5% 0.184 86.047)`,600:`oklch(68.1% 0.162 75.834)`,700:`oklch(55.4% 0.135 66.442)`,800:`oklch(47.6% 0.114 61.907)`,900:`oklch(42.1% 0.095 57.708)`,950:`oklch(28.6% 0.066 53.813)`},lime:{50:`oklch(98.6% 0.031 120.757)`,100:`oklch(96.7% 0.067 122.328)`,200:`oklch(93.8% 0.127 124.321)`,300:`oklch(89.7% 0.196 126.665)`,400:`oklch(84.1% 0.238 128.85)`,500:`oklch(76.8% 0.233 130.85)`,600:`oklch(64.8% 0.2 131.684)`,700:`oklch(53.2% 0.157 131.589)`,800:`oklch(45.3% 0.124 130.933)`,900:`oklch(40.5% 0.101 131.063)`,950:`oklch(27.4% 0.072 132.109)`},green:{50:`oklch(98.2% 0.018 155.826)`,100:`oklch(96.2% 0.044 156.743)`,200:`oklch(92.5% 0.084 155.995)`,300:`oklch(87.1% 0.15 154.449)`,400:`oklch(79.2% 0.209 151.711)`,500:`oklch(72.3% 0.219 149.579)`,600:`oklch(62.7% 0.194 149.214)`,700:`oklch(52.7% 0.154 150.069)`,800:`oklch(44.8% 0.119 151.328)`,900:`oklch(39.3% 0.095 152.535)`,950:`oklch(26.6% 0.065 152.934)`},emerald:{50:`oklch(97.9% 0.021 166.113)`,100:`oklch(95% 0.052 163.051)`,200:`oklch(90.5% 0.093 164.15)`,300:`oklch(84.5% 0.143 164.978)`,400:`oklch(76.5% 0.177 163.223)`,500:`oklch(69.6% 0.17 162.48)`,600:`oklch(59.6% 0.145 163.225)`,700:`oklch(50.8% 0.118 165.612)`,800:`oklch(43.2% 0.095 166.913)`,900:`oklch(37.8% 0.077 168.94)`,950:`oklch(26.2% 0.051 172.552)`},teal:{50:`oklch(98.4% 0.014 180.72)`,100:`oklch(95.3% 0.051 180.801)`,200:`oklch(91% 0.096 180.426)`,300:`oklch(85.5% 0.138 181.071)`,400:`oklch(77.7% 0.152 181.912)`,500:`oklch(70.4% 0.14 182.503)`,600:`oklch(60% 0.118 184.704)`,700:`oklch(51.1% 0.096 186.391)`,800:`oklch(43.7% 0.078 188.216)`,900:`oklch(38.6% 0.063 188.416)`,950:`oklch(27.7% 0.046 192.524)`},cyan:{50:`oklch(98.4% 0.019 200.873)`,100:`oklch(95.6% 0.045 203.388)`,200:`oklch(91.7% 0.08 205.041)`,300:`oklch(86.5% 0.127 207.078)`,400:`oklch(78.9% 0.154 211.53)`,500:`oklch(71.5% 0.143 215.221)`,600:`oklch(60.9% 0.126 221.723)`,700:`oklch(52% 0.105 223.128)`,800:`oklch(45% 0.085 224.283)`,900:`oklch(39.8% 0.07 227.392)`,950:`oklch(30.2% 0.056 229.695)`},sky:{50:`oklch(97.7% 0.013 236.62)`,100:`oklch(95.1% 0.026 236.824)`,200:`oklch(90.1% 0.058 230.902)`,300:`oklch(82.8% 0.111 230.318)`,400:`oklch(74.6% 0.16 232.661)`,500:`oklch(68.5% 0.169 237.323)`,600:`oklch(58.8% 0.158 241.966)`,700:`oklch(50% 0.134 242.749)`,800:`oklch(44.3% 0.11 240.79)`,900:`oklch(39.1% 0.09 240.876)`,950:`oklch(29.3% 0.066 243.157)`},blue:{50:`oklch(97% 0.014 254.604)`,100:`oklch(93.2% 0.032 255.585)`,200:`oklch(88.2% 0.059 254.128)`,300:`oklch(80.9% 0.105 251.813)`,400:`oklch(70.7% 0.165 254.624)`,500:`oklch(62.3% 0.214 259.815)`,600:`oklch(54.6% 0.245 262.881)`,700:`oklch(48.8% 0.243 264.376)`,800:`oklch(42.4% 0.199 265.638)`,900:`oklch(37.9% 0.146 265.522)`,950:`oklch(28.2% 0.091 267.935)`},indigo:{50:`oklch(96.2% 0.018 272.314)`,100:`oklch(93% 0.034 272.788)`,200:`oklch(87% 0.065 274.039)`,300:`oklch(78.5% 0.115 274.713)`,400:`oklch(67.3% 0.182 276.935)`,500:`oklch(58.5% 0.233 277.117)`,600:`oklch(51.1% 0.262 276.966)`,700:`oklch(45.7% 0.24 277.023)`,800:`oklch(39.8% 0.195 277.366)`,900:`oklch(35.9% 0.144 278.697)`,950:`oklch(25.7% 0.09 281.288)`},violet:{50:`oklch(96.9% 0.016 293.756)`,100:`oklch(94.3% 0.029 294.588)`,200:`oklch(89.4% 0.057 293.283)`,300:`oklch(81.1% 0.111 293.571)`,400:`oklch(70.2% 0.183 293.541)`,500:`oklch(60.6% 0.25 292.717)`,600:`oklch(54.1% 0.281 293.009)`,700:`oklch(49.1% 0.27 292.581)`,800:`oklch(43.2% 0.232 292.759)`,900:`oklch(38% 0.189 293.745)`,950:`oklch(28.3% 0.141 291.089)`},purple:{50:`oklch(97.7% 0.014 308.299)`,100:`oklch(94.6% 0.033 307.174)`,200:`oklch(90.2% 0.063 306.703)`,300:`oklch(82.7% 0.119 306.383)`,400:`oklch(71.4% 0.203 305.504)`,500:`oklch(62.7% 0.265 303.9)`,600:`oklch(55.8% 0.288 302.321)`,700:`oklch(49.6% 0.265 301.924)`,800:`oklch(43.8% 0.218 303.724)`,900:`oklch(38.1% 0.176 304.987)`,950:`oklch(29.1% 0.149 302.717)`},fuchsia:{50:`oklch(97.7% 0.017 320.058)`,100:`oklch(95.2% 0.037 318.852)`,200:`oklch(90.3% 0.076 319.62)`,300:`oklch(83.3% 0.145 321.434)`,400:`oklch(74% 0.238 322.16)`,500:`oklch(66.7% 0.295 322.15)`,600:`oklch(59.1% 0.293 322.896)`,700:`oklch(51.8% 0.253 323.949)`,800:`oklch(45.2% 0.211 324.591)`,900:`oklch(40.1% 0.17 325.612)`,950:`oklch(29.3% 0.136 325.661)`},pink:{50:`oklch(97.1% 0.014 343.198)`,100:`oklch(94.8% 0.028 342.258)`,200:`oklch(89.9% 0.061 343.231)`,300:`oklch(82.3% 0.12 346.018)`,400:`oklch(71.8% 0.202 349.761)`,500:`oklch(65.6% 0.241 354.308)`,600:`oklch(59.2% 0.249 0.584)`,700:`oklch(52.5% 0.223 3.958)`,800:`oklch(45.9% 0.187 3.815)`,900:`oklch(40.8% 0.153 2.432)`,950:`oklch(28.4% 0.109 3.907)`},rose:{50:`oklch(96.9% 0.015 12.422)`,100:`oklch(94.1% 0.03 12.58)`,200:`oklch(89.2% 0.058 10.001)`,300:`oklch(81% 0.117 11.638)`,400:`oklch(71.2% 0.194 13.428)`,500:`oklch(64.5% 0.246 16.439)`,600:`oklch(58.6% 0.253 17.585)`,700:`oklch(51.4% 0.222 16.935)`,800:`oklch(45.5% 0.188 13.697)`,900:`oklch(41% 0.159 10.272)`,950:`oklch(27.1% 0.105 12.094)`}};function en(e){return s(e,{dir:`ltr`})}function tn(e){return(t,n)=>nn(t,n,h(e))}function nn(e,t,n){return g(n,`messages.${e}`,e).replace(/\{(\w+)\}/g,(e,n)=>`${t?.[n]??`{${n}}`}`)}function rn(e){return{lang:W(()=>h(e).name),code:W(()=>h(e).code),dir:W(()=>h(e).dir),locale:ie(e)?e:n(e),t:tn(e)}}var an=en({name:`English`,code:`en`,messages:{alert:{close:`Close`},authForm:{hidePassword:`Hide password`,showPassword:`Show password`,submit:`Continue`},banner:{close:`Close`},calendar:{nextMonth:`Next month`,nextYear:`Next year`,prevMonth:`Previous month`,prevYear:`Previous year`},carousel:{dots:`Choose slide to display`,goto:`Go to slide {slide}`,next:`Next`,prev:`Prev`},chatPrompt:{placeholder:`Type your message here…`},chatPromptSubmit:{label:`Send prompt`},colorMode:{dark:`Dark`,light:`Light`,switchToDark:`Switch to dark mode`,switchToLight:`Switch to light mode`,system:`System`},commandPalette:{back:`Back`,close:`Close`,noData:`No data`,noMatch:`No matching data`,placeholder:`Type a command or search…`},contentSearch:{links:`Links`,search:`Results`,theme:`Theme`},contentSearchButton:{label:`Search…`},contentToc:{title:`On this page`},dropdownMenu:{noMatch:`No matching data`,search:`Search…`},dashboardSearch:{theme:`Theme`},dashboardSearchButton:{label:`Search…`},dashboardSidebarCollapse:{collapse:`Collapse sidebar`,expand:`Expand sidebar`},dashboardSidebarToggle:{close:`Close sidebar`,open:`Open sidebar`},drawer:{close:`Close`},error:{clear:`Back to home`},fileUpload:{removeFile:`Remove {filename}`},header:{close:`Close menu`,open:`Open menu`},inputMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`},inputNumber:{decrement:`Decrement`,increment:`Increment`},listbox:{noData:`No data`,noMatch:`No matching data`,search:`Search…`},modal:{close:`Close`},pricingTable:{caption:`Pricing plan comparison`},prose:{codeCollapse:{closeText:`Collapse`,name:`code`,openText:`Expand`},collapsible:{closeText:`Hide`,name:`properties`,openText:`Show`},pre:{copy:`Copy code to clipboard`},prompt:{copy:`Copy prompt`,openIn:`Open in {name}`}},chatReasoning:{thinking:`Thinking…`,thought:`Thought`,thoughtFor:`Thought for {duration}`},sidebar:{close:`Close`,toggle:`Toggle`},selectMenu:{create:`Create "{label}"`,noData:`No data`,noMatch:`No matching data`,search:`Search…`},slideover:{close:`Close`},table:{noData:`No data`},toast:{close:`Close`}}}),on=Symbol.for(`nuxt-ui.locale-context`),sn=we(t=>{let n=t||L(e(on,an));return rn(W(()=>n.value||an))}),cn={},ln=(e,t)=>{if(cn[e])return cn[e];let r=n(t());return cn[e]=r,r},un=st();function dn(){return{isHydrating:!0,payload:{serverRendered:!1},hooks:un,hook:un.hook}}function fn(e){return{install(t){t.runWithContext(()=>e({vueApp:t}))}}}var pn=[50,100,200,300,400,500,600,700,800,900,950];function mn(e,t){return e in $t&&typeof $t[e]==`object`&&t in $t[e]?$t[e][t]:``}function hn(e,t,n){let r=n?`${n}-`:``;return`${pn.map(n=>`--ui-color-${e}-${n}: var(--${r}color-${t===`neutral`?`old-neutral`:t}-${n}, ${mn(t,n)});`).join(`
3
- `)}`}function gn(e,t){return`--ui-${e}: var(--ui-color-${e}-${t});`}function _n(){document.querySelector(`[data-nuxt-ui-colors]`)?.remove()}var vn=fn(()=>{let e=d(),t=dn(),n=W(()=>{let{neutral:t,...n}=e.ui.colors,r=e.ui.prefix;return`@layer theme {
4
- :root, :host {
5
- ${Object.entries(e.ui.colors).map(([e,t])=>hn(e,t,r)).join(`
6
- `)}
7
- }
8
- :root, :host, .light {
9
- ${Object.keys(n).map(e=>gn(e,500)).join(`
10
- `)}
11
- }
12
- .dark {
13
- ${Object.keys(n).map(e=>gn(e,400)).join(`
14
- `)}
15
- }
16
- }`}),r={style:[{innerHTML:n,tagPriority:`critical`,id:`nuxt-ui-colors`}]};if(t.isHydrating&&!t.payload.serverRendered){let e=document.createElement(`style`);e.innerHTML=n.value,e.setAttribute(`data-nuxt-ui-colors`,``),document.head.appendChild(e);let t=Gt().hooks?.hook(`dom:rendered`,()=>{_n(),t?.()})}Jt(r)}),yn={install(){Oe()}},bn={install(e,t={}){e.use(Be,t),e.use(Zt,t),e.use(Qt,t),e.use(vn,t),e.use(yn,t)}},xn=Ce({layersRoot:new Set,layersWithOutsidePointerEventsDisabled:new Set,originalBodyPointerEvents:void 0,branches:new Set});function Sn(){let e=n();return{primitiveElement:e,currentElement:W(()=>[`#text`,`#comment`].includes(e.value?.$el.nodeName)?e.value?.$el.nextElementSibling:Le(e))}}var Cn=_({__name:`DismissableLayerBranch`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,{forwardRef:n,currentElement:i}=J(),a=null;return B(()=>{a=i.value,a&&xn.branches.add(a)}),D(()=>{a&&=(xn.branches.delete(a),null)}),(e,i)=>(K(),r(h(G),A({ref:h(n)},t),{default:v(()=>[o(e.$slots,`default`)]),_:3},16))}}),wn=`focusScope.autoFocusOnMount`,Tn=`focusScope.autoFocusOnUnmount`,En={bubbles:!1,cancelable:!0};function Z(e,{select:t=!1}={}){let n=Y();for(let r of e)if(Mn(r,{select:t}),Y()!==n)return!0}function Dn(e){let t=On(e);return[kn(t,e),kn(t.reverse(),e)]}function On(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function kn(e,t){for(let n of e)if(!An(n,{upTo:t}))return n}function An(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}function jn(e){return e instanceof HTMLInputElement&&`select`in e}function Mn(e,{select:t=!1}={}){if(e&&e.focus){let n=Y();e.focus({preventScroll:!0}),e!==n&&jn(e)&&t&&e.select()}}var Nn=_({__name:`Teleport`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e,n=Ee({}),i=W(()=>t.to??n.teleportTo?.value??`body`),a=Fe();return(e,t)=>h(a)||e.forceMount?(K(),r(ae,{key:0,to:i.value,disabled:e.disabled,defer:e.defer},[o(e.$slots,`default`)],8,[`to`,`disabled`,`defer`])):U(`v-if`,!0)}}),Pn=`data-reka-collection-item`;function Fn(t={}){let{key:r=``,isProvider:i=!1}=t,a=`${r}CollectionProvider`,o;if(i){let e=n(new Map);o={collectionRef:n(),itemMap:e},Se(a,o)}else o=e(a);let s=(e,t=!1)=>{if(!o.collectionRef.value)return;let n=o.itemMap.value.get(e);return n&&(t||n.ref.dataset.disabled!==``)?n:void 0},l=(e=!1)=>{let t=o.collectionRef.value;if(!t)return[];let n=Array.from(t.querySelectorAll(`[${Pn}]`)),r=new Map(n.map((e,t)=>[e,t])),i=Array.from(o.itemMap.value.values()).sort((e,t)=>(r.get(e.ref)??-1)-(r.get(t.ref)??-1));return e?i:i.filter(e=>e.ref.dataset.disabled!==``)},u=_({name:`CollectionSlot`,inheritAttrs:!1,setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:i}=Sn();return pe(i,()=>{o.collectionRef.value=i.value}),()=>c(ee,{ref:r,...n},t)}}),d=_({name:`CollectionItem`,inheritAttrs:!1,props:{value:{validator:()=>!0}},setup(e,{slots:t,attrs:n}){let{primitiveElement:r,currentElement:i}=Sn();return f(t=>{if(i.value){let n=O(i.value);o.itemMap.value.set(n,{ref:i.value,value:e.value}),t(()=>o.itemMap.value.delete(n))}}),()=>c(ee,{...n,[Pn]:``,ref:r},t)}});return{getItems:l,getItem:s,reactiveItems:W(()=>Array.from(o.itemMap.value.values())),itemMapSize:W(()=>o.itemMap.value.size),CollectionSlot:u,CollectionItem:d}}var Q=100,[In,Ln]=H(`ProgressRoot`),Rn=e=>typeof e==`number`;function zn(e,t){return Pe(e)||Rn(e)&&!Number.isNaN(e)&&e<=t&&e>=0?e:(console.error(`Invalid prop \`value\` of value \`${e}\` supplied to \`ProgressRoot\`. The \`value\` prop must be:
17
- - a positive number
18
- - less than the value passed to \`max\` (or ${Q} if no \`max\` prop is set)
19
- - \`null\` or \`undefined\` if the progress is indeterminate.
20
-
21
- Defaulting to \`null\`.`),null)}function Bn(e){return Rn(e)&&!Number.isNaN(e)&&e>0?e:(console.error(`Invalid prop \`max\` of value \`${e}\` supplied to \`ProgressRoot\`. Only numbers greater than 0 are valid max values. Defaulting to \`${Q}\`.`),Q)}var Vn=_({__name:`ProgressRoot`,props:{modelValue:{type:[Number,null],required:!1},max:{type:Number,required:!1,default:Q},getValueLabel:{type:Function,required:!1,default:(e,t)=>Rn(e)?`${Math.round(e/t*Q)}%`:void 0},getValueText:{type:Function,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`update:modelValue`,`update:max`],setup(e,{emit:t}){let n=e,i=t;J();let a=ke(n,`modelValue`,i,{passive:n.modelValue===void 0}),s=ke(n,`max`,i,{passive:n.max===void 0});pe(()=>a.value,async e=>{let t=zn(e,n.max);t!==e&&(await de(),a.value=t)},{immediate:!0}),pe(()=>n.max,e=>{let t=Bn(n.max);t!==e&&(s.value=t)},{immediate:!0});let c=W(()=>Pe(a.value)?`indeterminate`:a.value===s.value?`complete`:`loading`);return Ln({modelValue:a,max:s,progressState:c}),(e,t)=>(K(),r(h(G),{"as-child":e.asChild,as:e.as,"aria-valuemax":h(s),"aria-valuemin":0,"aria-valuenow":Rn(h(a))?h(a):void 0,"aria-valuetext":e.getValueText?.(h(a),h(s)),"aria-label":e.getValueLabel(h(a),h(s)),role:`progressbar`,"data-state":c.value,"data-value":h(a)??void 0,"data-max":h(s)},{default:v(()=>[o(e.$slots,`default`,{modelValue:h(a)})]),_:3},8,[`as-child`,`as`,`aria-valuemax`,`aria-valuenow`,`aria-valuetext`,`aria-label`,`data-state`,`data-value`,`data-max`]))}}),Hn=_({__name:`ProgressIndicator`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e,n=In();return J(),(e,i)=>(K(),r(h(G),A(t,{"data-state":h(n).progressState.value,"data-value":h(n).modelValue?.value??void 0,"data-max":h(n).max.value}),{default:v(()=>[o(e.$slots,`default`)]),_:3},16,[`data-state`,`data-value`,`data-max`]))}}),Un=_({__name:`ToastAnnounceExclude`,props:{altText:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){return(e,t)=>(K(),r(h(G),{as:e.as,"as-child":e.asChild,"data-reka-toast-announce-exclude":``,"data-reka-toast-announce-alt":e.altText||void 0},{default:v(()=>[o(e.$slots,`default`)]),_:3},8,[`as`,`as-child`,`data-reka-toast-announce-alt`]))}}),[Wn,Gn]=H(`ToastProvider`),Kn=_({inheritAttrs:!1,__name:`ToastProvider`,props:{label:{type:String,required:!1,default:`Notification`},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeDirection:{type:String,required:!1,default:`right`},swipeThreshold:{type:Number,required:!1,default:50}},setup(e){let r=e,{label:i,duration:a,disableSwipe:s,swipeDirection:c,swipeThreshold:l}=t(r);Fn({isProvider:!0});let u=n(),d=n(0),f=n(!1),p=n(!1);if(r.label&&typeof r.label==`string`&&!r.label.trim())throw Error("Invalid prop `label` supplied to `ToastProvider`. Expected non-empty `string`.");return Gn({label:i,duration:a,disableSwipe:s,swipeDirection:c,swipeThreshold:l,toastCount:d,viewport:u,onViewportChange(e){u.value=e},onToastAdd(){d.value++},onToastRemove(){d.value--},isFocusedToastEscapeKeyDownRef:f,isClosePausedRef:p}),(e,t)=>o(e.$slots,`default`)}}),qn=_({__name:`ToastAnnounce`,setup(e){let t=Wn(),i=te(1e3),a=n(!1),s=0,c=0;return w&&(s=requestAnimationFrame(()=>{c=requestAnimationFrame(()=>{a.value=!0})}),ye(()=>{cancelAnimationFrame(s),cancelAnimationFrame(c)})),(e,n)=>h(i)||a.value?(K(),r(h(Ie),{key:0,feature:`fully-hidden`},{default:v(()=>[F(z(h(t).label.value)+` `,1),o(e.$slots,`default`)]),_:3})):U(`v-if`,!0)}}),Jn=`toast.viewportPause`,Yn=`toast.viewportResume`;function Xn(e,t,n){let r=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}function Zn(e,t,n=0){let r=Math.abs(e.x),i=Math.abs(e.y),a=r>i;return t===`left`||t===`right`?a&&r>n:!a&&i>n}function Qn(e){return e.nodeType===e.ELEMENT_NODE}function $n(e){let t=[];return Array.from(e.childNodes).forEach(e=>{if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),Qn(e)){let n=e.ariaHidden||e.hidden||e.style.display===`none`,r=e.dataset.rekaToastAnnounceExclude===``;if(!n){if(r){let n=e.dataset.rekaToastAnnounceAlt;n&&t.push(n)}else t.push(...$n(e))}}}),t}var[er,tr]=H(`ToastRoot`),nr=_({inheritAttrs:!1,__name:`ToastRootImpl`,props:{type:{type:String,required:!1},open:{type:Boolean,required:!1,default:!1},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`close`,`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`],setup(e,{emit:t}){let i=e,a=t,{forwardRef:s,currentElement:c}=J(),{CollectionItem:l}=Fn(),u=Wn(),d=n(null),m=n(null),g=W(()=>typeof i.duration==`number`?i.duration:u.duration.value),_=n(0),y=n(g.value),b=n(0),C=n(g.value),T=Me(()=>{let e=Date.now()-_.value;C.value=Math.max(y.value-e,0)},{fpsLimit:60});function E(e){e<=0||e===1/0||w&&(window.clearTimeout(b.value),_.value=Date.now(),b.value=window.setTimeout(O,e))}function O(e){let t=e?.pointerType===``;c.value?.contains(Y())&&t&&u.viewport.value?.focus(),t&&(u.isClosePausedRef.value=!1),a(`close`)}let k=W(()=>c.value?$n(c.value):null);if(i.type&&![`foreground`,`background`].includes(i.type))throw Error("Invalid prop `type` supplied to `Toast`. Expected `foreground | background`.");return f(e=>{let t=u.viewport.value;if(t){let n=()=>{E(y.value),T.resume(),a(`resume`)},r=()=>{let e=Date.now()-_.value;y.value-=e,window.clearTimeout(b.value),T.pause(),a(`pause`)};t.addEventListener(Jn,r),t.addEventListener(Yn,n),e(()=>{t.removeEventListener(Jn,r),t.removeEventListener(Yn,n)})}}),pe(()=>[i.open,g.value],()=>{y.value=g.value,i.open&&!u.isClosePausedRef.value&&E(g.value)},{immediate:!0}),je(`Escape`,e=>{a(`escapeKeyDown`,e),e.defaultPrevented||(u.isFocusedToastEscapeKeyDownRef.value=!0,O())}),B(()=>{u.onToastAdd()}),D(()=>{u.onToastRemove()}),tr({onClose:O}),(e,t)=>(K(),S(N,null,[k.value?(K(),r(qn,{key:0,role:`alert`,"aria-live":e.type===`foreground`?`assertive`:`polite`},{default:v(()=>[U(`
22
- Render each chunk as its own text node so screen readers get the
23
- natural pause break between nodes (see comment in utils.ts).
24
- Interpolating the array directly with \`{{ announceTextContent }}\`
25
- would route through Vue's \`toDisplayString\`, which JSON-stringifies
26
- arrays — the live region would then announce literal \`[\`, quotes
27
- and commas instead of the toast title and description.
28
- `),(K(!0),S(N,null,x(k.value,(e,t)=>(K(),S(N,{key:t},[F(z(e),1)],64))),128))]),_:1},8,[`aria-live`])):U(`v-if`,!0),h(u).viewport.value?(K(),r(ae,{key:1,to:h(u).viewport.value},[p(h(l),null,{default:v(()=>[p(h(G),A({ref:h(s),tabindex:`0`},e.$attrs,{as:e.as,"as-child":e.asChild,"data-state":e.open?`open`:`closed`,"data-swipe-direction":h(u).swipeDirection.value,style:h(u).disableSwipe.value?void 0:{userSelect:`none`,touchAction:`none`},onPointerdown:t[0]||=q(e=>{h(u).disableSwipe.value||(d.value={x:e.clientX,y:e.clientY})},[`left`]),onPointermove:t[1]||=e=>{if(h(u).disableSwipe.value||!d.value)return;let t=e.clientX-d.value.x,n=e.clientY-d.value.y,r=!!m.value,i=[`left`,`right`].includes(h(u).swipeDirection.value),o=[`left`,`up`].includes(h(u).swipeDirection.value)?Math.min:Math.max,s=i?o(0,t):0,c=i?0:o(0,n),l=e.pointerType===`touch`?10:2,f={x:s,y:c},p={originalEvent:e,delta:f};r?(m.value=f,h(Xn)(h(`toast.swipeMove`),e=>a(`swipeMove`,e),p)):h(Zn)(f,h(u).swipeDirection.value,l)?(m.value=f,h(Xn)(h(`toast.swipeStart`),e=>a(`swipeStart`,e),p),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>l||Math.abs(n)>l)&&(d.value=null)},onPointerup:t[2]||=e=>{if(h(u).disableSwipe.value)return;let t=m.value,n=e.target;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),m.value=null,d.value=null,t){let n=e.currentTarget,r={originalEvent:e,delta:t};h(Zn)(t,h(u).swipeDirection.value,h(u).swipeThreshold.value)?h(Xn)(h(`toast.swipeEnd`),e=>a(`swipeEnd`,e),r):h(Xn)(h(`toast.swipeCancel`),e=>a(`swipeCancel`,e),r),n?.addEventListener(`click`,e=>e.preventDefault(),{once:!0})}}}),{default:v(()=>[o(e.$slots,`default`,{remaining:C.value,duration:g.value})]),_:3},16,[`as`,`as-child`,`data-state`,`data-swipe-direction`,`style`])]),_:3})],8,[`to`])):U(`v-if`,!0)],64))}}),rr=_({__name:`ToastClose`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`button`}},setup(e){let t=e,n=er(),{forwardRef:i}=J();return(e,a)=>(K(),r(Un,{"as-child":``},{default:v(()=>[p(h(G),A(t,{ref:h(i),type:e.as===`button`?`button`:void 0,onClick:h(n).onClose}),{default:v(()=>[o(e.$slots,`default`)]),_:3},16,[`type`,`onClick`])]),_:3}))}}),ir=_({__name:`ToastAction`,props:{altText:{type:String,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){if(!e.altText)throw Error("Missing prop `altText` expected on `ToastAction`");let{forwardRef:t}=J();return(e,n)=>e.altText?(K(),r(Un,{key:0,"alt-text":e.altText,"as-child":``},{default:v(()=>[p(rr,{ref:h(t),as:e.as,"as-child":e.asChild},{default:v(()=>[o(e.$slots,`default`)]),_:3},8,[`as`,`as-child`])]),_:3},8,[`alt-text`])):U(`v-if`,!0)}}),ar=_({__name:`ToastDescription`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return J(),(e,n)=>(K(),r(h(G),P(T(t)),{default:v(()=>[o(e.$slots,`default`)]),_:3},16))}}),or=_({__name:`ToastPortal`,props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(e){let t=e;return(e,n)=>(K(),r(h(Nn),P(T(t)),{default:v(()=>[o(e.$slots,`default`)]),_:3},16))}}),sr=_({__name:`ToastRoot`,props:{defaultOpen:{type:Boolean,required:!1,default:!0},forceMount:{type:Boolean,required:!1},type:{type:String,required:!1,default:`foreground`},open:{type:Boolean,required:!1,default:void 0},duration:{type:Number,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`li`}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(e,{emit:t}){let n=e,i=t,{forwardRef:a}=J(),s=ke(n,`open`,i,{defaultValue:n.defaultOpen,passive:n.open===void 0});return(e,t)=>(K(),r(h(Ne),{present:e.forceMount||h(s)},{default:v(()=>[p(nr,A({ref:h(a),open:h(s),type:e.type,as:e.as,"as-child":e.asChild,duration:e.duration},e.$attrs,{onClose:t[0]||=e=>s.value=!1,onPause:t[1]||=e=>i(`pause`),onResume:t[2]||=e=>i(`resume`),onEscapeKeyDown:t[3]||=e=>i(`escapeKeyDown`,e),onSwipeStart:t[4]||=e=>{i(`swipeStart`,e),e.defaultPrevented||e.currentTarget.setAttribute(`data-swipe`,`start`)},onSwipeMove:t[5]||=e=>{if(i(`swipeMove`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`move`),r.style.setProperty(`--reka-toast-swipe-move-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-move-y`,`${n}px`)}},onSwipeCancel:t[6]||=e=>{if(i(`swipeCancel`,e),!e.defaultPrevented){let t=e.currentTarget;t.setAttribute(`data-swipe`,`cancel`),t.style.removeProperty(`--reka-toast-swipe-move-x`),t.style.removeProperty(`--reka-toast-swipe-move-y`),t.style.removeProperty(`--reka-toast-swipe-end-x`),t.style.removeProperty(`--reka-toast-swipe-end-y`)}},onSwipeEnd:t[7]||=e=>{if(i(`swipeEnd`,e),!e.defaultPrevented){let{x:t,y:n}=e.detail.delta,r=e.currentTarget;r.setAttribute(`data-swipe`,`end`),r.style.removeProperty(`--reka-toast-swipe-move-x`),r.style.removeProperty(`--reka-toast-swipe-move-y`),r.style.setProperty(`--reka-toast-swipe-end-x`,`${t}px`),r.style.setProperty(`--reka-toast-swipe-end-y`,`${n}px`),s.value=!1}}}),{default:v(({remaining:t,duration:n})=>[o(e.$slots,`default`,{remaining:t,duration:n,open:h(s)})]),_:3},16,[`open`,`type`,`as`,`as-child`,`duration`])]),_:3},8,[`present`]))}}),cr=_({__name:`ToastTitle`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(e){let t=e;return J(),(e,n)=>(K(),r(h(G),P(T(t)),{default:v(()=>[o(e.$slots,`default`)]),_:3},16))}}),lr=_({__name:`FocusProxy`,emits:[`focusFromOutsideViewport`],setup(e,{emit:t}){let n=t,i=Wn();return(e,t)=>(K(),r(h(Ie),{tabindex:`0`,style:{position:`fixed`},onFocus:t[0]||=e=>{let t=e.relatedTarget;h(i).viewport.value?.contains(t)||n(`focusFromOutsideViewport`)}},{default:v(()=>[o(e.$slots,`default`)]),_:3}))}}),ur=_({inheritAttrs:!1,__name:`ToastViewport`,props:{hotkey:{type:Array,required:!1,default:()=>[`F8`]},label:{type:[String,Function],required:!1,default:`Notifications ({hotkey})`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`ol`}},setup(e){let{hotkey:i,label:a}=t(e),{forwardRef:s,currentElement:c}=J(),{CollectionSlot:l,getItems:u}=Fn(),d=Wn(),m=W(()=>d.toastCount.value>0),g=n(),_=n(),y=/Key/g,b=/Digit/g,x=W(()=>i.value.join(`+`).replace(y,``).replace(b,``));je(i.value,()=>{c.value.focus()}),B(()=>{d.onViewportChange(c.value)}),f(e=>{let t=c.value;if(m.value&&t){let n=()=>{if(!d.isClosePausedRef.value){let e=new CustomEvent(Jn);t.dispatchEvent(e),d.isClosePausedRef.value=!0}},r=()=>{if(d.isClosePausedRef.value){let e=new CustomEvent(Yn);t.dispatchEvent(e),d.isClosePausedRef.value=!1}},i=e=>{t.contains(e.relatedTarget)||r()},a=()=>{t.contains(Y())||r()},o=e=>{let n=e.altKey||e.ctrlKey||e.metaKey;if(e.key===`Tab`&&!n){let n=Y(),r=e.shiftKey;if(e.target===t&&r){g.value?.focus();return}let i=S({tabbingDirection:r?`backwards`:`forwards`}),a=i.findIndex(e=>e===n);Z(i.slice(a+1))?e.preventDefault():r?g.value?.focus():_.value?.focus()}};t.addEventListener(`focusin`,n),t.addEventListener(`focusout`,i),t.addEventListener(`pointermove`,n),t.addEventListener(`pointerleave`,a),t.addEventListener(`keydown`,o),window.addEventListener(`blur`,n),window.addEventListener(`focus`,r),e(()=>{t.removeEventListener(`focusin`,n),t.removeEventListener(`focusout`,i),t.removeEventListener(`pointermove`,n),t.removeEventListener(`pointerleave`,a),t.removeEventListener(`keydown`,o),window.removeEventListener(`blur`,n),window.removeEventListener(`focus`,r)})}});function S({tabbingDirection:e}){let t=u().map(e=>e.ref).map(t=>{let n=[t,...On(t)];return e===`forwards`?n:n.reverse()});return(e===`forwards`?t.reverse():t).flat()}return(e,t)=>(K(),r(h(Cn),{role:`region`,"aria-label":typeof h(a)==`string`?h(a).replace(`{hotkey}`,x.value):h(a)(x.value),tabindex:`-1`,style:k({pointerEvents:m.value?void 0:`none`})},{default:v(()=>[m.value?(K(),r(lr,{key:0,ref:e=>{e&&(g.value=h(Le)(e))},onFocusFromOutsideViewport:t[0]||=()=>{let e=S({tabbingDirection:`forwards`});h(Z)(e)}},null,512)):U(`v-if`,!0),p(h(l),null,{default:v(()=>[p(h(G),A({ref:h(s),tabindex:`-1`,as:e.as,"as-child":e.asChild},e.$attrs),{default:v(()=>[o(e.$slots,`default`)]),_:3},16,[`as`,`as-child`])]),_:3}),m.value?(K(),r(lr,{key:1,ref:e=>{e&&(_.value=h(Le)(e))},onFocusFromOutsideViewport:t[1]||=()=>{let e=S({tabbingDirection:`backwards`});h(Z)(e)}},null,512)):U(`v-if`,!0)]),_:3},8,[`aria-label`,`style`]))}}),[dr,fr]=H(`TooltipProvider`),pr=_({inheritAttrs:!1,__name:`TooltipProvider`,props:{delayDuration:{type:Number,required:!1,default:700},skipDelayDuration:{type:Number,required:!1,default:300},disableHoverableContent:{type:Boolean,required:!1,default:!1},disableClosingTrigger:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},ignoreNonKeyboardFocus:{type:Boolean,required:!1,default:!1},content:{type:Object,required:!1}},setup(e){let{delayDuration:r,skipDelayDuration:i,disableHoverableContent:a,disableClosingTrigger:s,ignoreNonKeyboardFocus:c,disabled:l,content:u}=t(e);J();let d=n(!0),f=n(!1),{start:p,stop:m}=ge(()=>{d.value=!0},i,{immediate:!1});return fr({isOpenDelayed:d,delayDuration:r,onOpen(){m(),d.value=!1},onClose(){p()},isPointerInTransitRef:f,disableHoverableContent:a,disableClosingTrigger:s,disabled:l,ignoreNonKeyboardFocus:c,content:u}),(e,t)=>o(e.$slots,`default`)}}),mr=Symbol(`nuxt-ui.portal-target`);function hr(t){let n=e(mr,void 0),r=W(()=>t.value===!0?n?.value:t.value),i=W(()=>typeof r.value==`boolean`&&!r.value),a=W(()=>typeof r.value==`boolean`?`body`:r.value);return W(()=>({to:a.value,disabled:i.value}))}var gr=Symbol(`nuxt-ui.toast-max`);function _r(){let t=ln(`toasts`,()=>[]),r=e(gr,void 0),i=n(!1),a=[],o=()=>`${Date.now()}-${Math.random().toString(36).slice(2,9)}`;function s(e,n){t.value[e]={...t.value[e],...n,_duplicate:(t.value[e]._duplicate||0)+1}}async function c(){if(!(i.value||a.length===0)){for(i.value=!0;a.length>0;){await de();let e=a.shift(),n=r?.value??5;if(n<=0){t.value.length&&(t.value=[]);continue}let i=t.value.findIndex(t=>t.id===e.id);if(i!==-1){s(i,e);continue}t.value=[...t.value,e].slice(-n)}i.value=!1}}function l(e){let n={id:o(),open:!0,...e},r=t.value.findIndex(e=>e.id===n.id);return r===-1?(a.push(n),c(),n):(s(r,n),n)}function u(e,n){let r=t.value.findIndex(t=>t.id===e);r!==-1&&(t.value[r]={...t.value[r],...n,duration:n.duration,open:!0,_updated:!0},de(()=>{let n=t.value.findIndex(t=>t.id===e);n!==-1&&t.value[n]._updated&&(t.value[n]={...t.value[n],_updated:void 0})}))}function d(e){let n=t.value.findIndex(t=>t.id===e);n!==-1&&t.value[n]._updated||(n!==-1&&(t.value[n]={...t.value[n],open:!1}),setTimeout(()=>{t.value=t.value.filter(t=>t.id!==e)},200))}function f(){t.value=[]}return{toasts:t,add:l,update:u,remove:d,clear:f}}var vr={slots:{root:`gap-2`,base:`relative overflow-hidden rounded-full bg-accented`,indicator:`rounded-full size-full transition-transform duration-200 ease-out motion-reduce:transition-none motion-reduce:data-[state=indeterminate]:animate-pulse`,status:`flex text-dimmed duration-200 ease-out motion-reduce:transition-none`,steps:`grid items-end`,step:`truncate text-end row-start-1 col-start-1 transition-opacity ease-out`},variants:{animation:{carousel:``,"carousel-inverse":``,swing:``,elastic:``},color:{primary:{indicator:`bg-primary`,steps:`text-primary`},secondary:{indicator:`bg-secondary`,steps:`text-secondary`},success:{indicator:`bg-success`,steps:`text-success`},info:{indicator:`bg-info`,steps:`text-info`},warning:{indicator:`bg-warning`,steps:`text-warning`},error:{indicator:`bg-error`,steps:`text-error`},neutral:{indicator:`bg-inverted`,steps:`text-highlighted`}},size:{"2xs":{status:`text-xs`,steps:`text-xs`},xs:{status:`text-xs`,steps:`text-xs`},sm:{status:`text-sm`,steps:`text-sm`},md:{status:`text-sm`,steps:`text-sm`},lg:{status:`text-sm`,steps:`text-sm`},xl:{status:`text-base`,steps:`text-base`},"2xl":{status:`text-base`,steps:`text-base`}},step:{active:{step:`opacity-100`},first:{step:`opacity-100 text-muted`},other:{step:`opacity-0`},last:{step:``}},orientation:{horizontal:{root:`w-full flex flex-col`,base:`w-full`,status:`flex-row items-center justify-end w-(--percent) min-w-fit transition-[width]`},vertical:{root:`h-full flex flex-row-reverse`,base:`h-full`,status:`flex-col justify-end h-(--percent) min-h-fit transition-[height]`}},inverted:{true:{status:`self-end`}}},compoundVariants:[{inverted:!0,orientation:`horizontal`,class:{step:`text-start`,status:`flex-row-reverse`}},{inverted:!0,orientation:`vertical`,class:{steps:`items-start`,status:`flex-col-reverse`}},{orientation:`horizontal`,size:`2xs`,class:`h-px`},{orientation:`horizontal`,size:`xs`,class:`h-0.5`},{orientation:`horizontal`,size:`sm`,class:`h-1`},{orientation:`horizontal`,size:`md`,class:`h-2`},{orientation:`horizontal`,size:`lg`,class:`h-3`},{orientation:`horizontal`,size:`xl`,class:`h-4`},{orientation:`horizontal`,size:`2xl`,class:`h-5`},{orientation:`vertical`,size:`2xs`,class:`w-px`},{orientation:`vertical`,size:`xs`,class:`w-0.5`},{orientation:`vertical`,size:`sm`,class:`w-1`},{orientation:`vertical`,size:`md`,class:`w-2`},{orientation:`vertical`,size:`lg`,class:`w-3`},{orientation:`vertical`,size:`xl`,class:`w-4`},{orientation:`vertical`,size:`2xl`,class:`w-5`},{orientation:`horizontal`,animation:`carousel`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel_2s_linear_infinite] motion-safe:data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_linear_infinite]`}},{orientation:`vertical`,animation:`carousel`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-vertical_2s_linear_infinite]`}},{orientation:`horizontal`,animation:`carousel-inverse`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-inverse_2s_linear_infinite] motion-safe:data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_linear_infinite]`}},{orientation:`vertical`,animation:`carousel-inverse`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[carousel-inverse-vertical_2s_linear_infinite]`}},{orientation:`horizontal`,animation:`swing`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[swing_2s_var(--ease-in-out)_infinite]`}},{orientation:`vertical`,animation:`swing`,class:{indicator:`motion-safe:data-[state=indeterminate]:animate-[swing-vertical_2s_var(--ease-in-out)_infinite]`}},{orientation:`horizontal`,animation:`elastic`,class:{indicator:`relative motion-safe:data-[state=indeterminate]:animate-[elastic_2s_var(--ease-in-out)_infinite]`}},{orientation:`vertical`,animation:`elastic`,class:{indicator:`relative motion-safe:data-[state=indeterminate]:animate-[elastic-vertical_2s_var(--ease-in-out)_infinite]`}}],defaultVariants:{animation:`carousel`,color:`primary`,size:`md`}},yr={__name:`Progress`,props:{as:{type:null,required:!1},max:{type:[Number,Array],required:!1},status:{type:Boolean,required:!1},inverted:{type:Boolean,required:!1,default:!1},size:{type:null,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},animation:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},getValueLabel:{type:Function,required:!1},getValueText:{type:Function,required:!1},modelValue:{type:[Number,null],required:!1,default:null}},emits:[`update:modelValue`,`update:max`],setup(e,{emit:t}){let n=e,i=t,a=l(),s=ve(`progress`,n),{dir:c}=sn(),u=d(),f=E(V(s,`getValueLabel`,`getValueText`,`modelValue`),i),m=W(()=>f.value.modelValue===null),g=W(()=>Array.isArray(s.max)),_=W(()=>{if(!m.value&&s.max)return Array.isArray(s.max)?s.max.length-1:Number(s.max)}),y=W(()=>{if(!m.value)switch(!0){case f.value.modelValue<0:return 0;case f.value.modelValue>(_.value??100):return 100;default:return Math.round(f.value.modelValue/(_.value??100)*100)}}),b=W(()=>{if(y.value!==void 0)return s.orientation===`vertical`?{transform:`translateY(${s.inverted?``:`-`}${100-y.value}%)`}:c.value===`rtl`?{transform:`translateX(${s.inverted?`-`:``}${100-y.value}%)`}:{transform:`translateX(${s.inverted?``:`-`}${100-y.value}%)`}}),C=W(()=>({"--percent":`${Math.max(y.value??0,0)}%`}));function w(e){return e===Number(s.modelValue)}function T(e){return e===0}function D(e){return e===_.value}function O(e){return e=Number(e),w(e)&&!T(e)?`active`:T(e)&&w(e)?`first`:D(e)&&w(e)?`last`:`other`}let j=W(()=>ne({extend:vr,...u.ui?.progress||{}})({animation:s.animation,size:s.size,color:s.color,orientation:s.orientation,inverted:s.inverted})),ee=W(()=>Object.keys({...vr.variants?.color,...u.ui?.progress?.variants?.color})),M=W(()=>s.color&&!ee.value.includes(s.color)?s.color:void 0);return(e,t)=>(K(),r(h(G),{as:h(s).as,"data-orientation":h(s).orientation,"data-slot":`root`,class:R(j.value.root({class:[h(s).ui?.root,h(s).class]}))},{default:v(()=>[!m.value&&(h(s).status||a.status)?(K(),S(`div`,{key:0,"data-slot":`status`,class:R(j.value.status({class:h(s).ui?.status})),style:k(C.value)},[o(e.$slots,`status`,{percent:y.value},()=>[F(z(y.value)+`% `,1)])],6)):U(``,!0),p(h(Vn),A(h(f),{max:_.value,"data-slot":`base`,class:j.value.base({class:h(s).ui?.base}),style:{transform:`translateZ(0)`}}),{default:v(()=>[p(h(Hn),{"data-slot":`indicator`,class:R(j.value.indicator({class:h(s).ui?.indicator})),style:k([b.value,M.value?{backgroundColor:M.value}:void 0])},null,8,[`class`,`style`])]),_:1},16,[`max`,`class`]),g.value?(K(),S(`div`,{key:1,"data-slot":`steps`,class:R(j.value.steps({class:h(s).ui?.steps})),style:k(M.value?{color:M.value}:void 0)},[(K(!0),S(N,null,x(h(s).max,(t,n)=>(K(),S(`div`,{key:n,"data-slot":`step`,class:R(j.value.step({class:h(s).ui?.step,step:O(n)}))},[o(e.$slots,`step-${n}`,{step:t},()=>[F(z(t),1)])],2))),128))],6)):U(``,!0)]),_:3},8,[`as`,`data-orientation`,`class`]))}},br={slots:{root:`relative group overflow-hidden bg-default shadow-lg rounded-lg ring ring-default p-4 flex gap-2.5`,wrapper:`w-0 flex-1 flex flex-col`,title:`text-sm font-medium text-highlighted`,description:`text-sm text-muted`,icon:`shrink-0 size-5`,avatar:`shrink-0`,avatarSize:`2xl`,actions:`flex gap-1.5 shrink-0`,progress:`absolute inset-x-0 bottom-0`,close:`p-0`},variants:{color:{primary:{root:`outline-primary/25 focus-visible:outline-3 focus-visible:ring-primary`,icon:`text-primary`},secondary:{root:`outline-secondary/25 focus-visible:outline-3 focus-visible:ring-secondary`,icon:`text-secondary`},success:{root:`outline-success/25 focus-visible:outline-3 focus-visible:ring-success`,icon:`text-success`},info:{root:`outline-info/25 focus-visible:outline-3 focus-visible:ring-info`,icon:`text-info`},warning:{root:`outline-warning/25 focus-visible:outline-3 focus-visible:ring-warning`,icon:`text-warning`},error:{root:`outline-error/25 focus-visible:outline-3 focus-visible:ring-error`,icon:`text-error`},neutral:{root:`outline-inverted/25 focus-visible:outline-3 focus-visible:ring-inverted`,icon:`text-highlighted`}},orientation:{horizontal:{root:`items-center`,actions:`items-center`},vertical:{root:`items-start`,actions:`items-start mt-2.5`}},title:{true:{description:`mt-1`}}},defaultVariants:{color:`primary`}},xr={__name:`Toast`,props:{as:{type:null,required:!1},title:{type:[String,Object,Function],required:!1},description:{type:[String,Object,Function],required:!1},icon:{type:null,required:!1},avatar:{type:Object,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`vertical`},close:{type:[Boolean,Object],required:!1,default:!0},closeIcon:{type:null,required:!1},actions:{type:Array,required:!1},duration:{type:Number,required:!1},progress:{type:[Boolean,Object],required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1},type:{type:String,required:!1}},emits:[`escapeKeyDown`,`pause`,`resume`,`swipeStart`,`swipeMove`,`swipeCancel`,`swipeEnd`,`update:open`],setup(e,{expose:t,emit:i}){let a=e,s=i,c=l(),u=ve(`toast`,a),{t:f}=sn(),m=d(),g=E(V(u,`as`,`defaultOpen`,`open`,`duration`,`type`),s),_=W(()=>ne({extend:br,...m.ui?.toast||{}})({color:u.color,orientation:u.orientation,title:!!u.title||!!c.title})),b=C(`rootRef`),w=n(0);return B(()=>{b.value?.$el?.getBoundingClientRect&&(w.value=b.value.$el.getBoundingClientRect().height)}),t({height:w}),(e,t)=>(K(),r(h(sr),A({ref_key:`rootRef`,ref:b},h(g),{"data-orientation":h(u).orientation,"data-slot":`root`,class:_.value.root({class:[h(u).ui?.root,h(u).class]}),style:{"--height":w.value}}),{default:v(({remaining:n,duration:i,open:a})=>[o(e.$slots,`leading`,{ui:_.value},()=>[h(u).avatar?(K(),r(fe,A({key:0,size:h(u).ui?.avatarSize||_.value.avatarSize()},h(u).avatar,{"data-slot":`avatar`,class:_.value.avatar({class:h(u).ui?.avatar})}),null,16,[`size`,`class`])):h(u).icon?(K(),r(re,{key:1,name:h(u).icon,"data-slot":`icon`,class:R(_.value.icon({class:h(u).ui?.icon}))},null,8,[`name`,`class`])):U(``,!0)]),y(`div`,{"data-slot":`wrapper`,class:R(_.value.wrapper({class:h(u).ui?.wrapper}))},[h(u).title||c.title?(K(),r(h(cr),{key:0,"data-slot":`title`,class:R(_.value.title({class:h(u).ui?.title}))},{default:v(()=>[o(e.$slots,`title`,{},()=>[typeof h(u).title==`function`?(K(),r(I(h(u).title()),{key:0})):typeof h(u).title==`object`?(K(),r(I(h(u).title),{key:1})):(K(),S(N,{key:2},[F(z(h(u).title),1)],64))])]),_:3},8,[`class`])):U(``,!0),h(u).description||c.description?(K(),r(h(ar),{key:1,"data-slot":`description`,class:R(_.value.description({class:h(u).ui?.description}))},{default:v(()=>[o(e.$slots,`description`,{},()=>[typeof h(u).description==`function`?(K(),r(I(h(u).description()),{key:0})):typeof h(u).description==`object`?(K(),r(I(h(u).description),{key:1})):(K(),S(N,{key:2},[F(z(h(u).description),1)],64))])]),_:3},8,[`class`])):U(``,!0),h(u).orientation===`vertical`&&(h(u).actions?.length||c.actions)?(K(),S(`div`,{key:2,"data-slot":`actions`,class:R(_.value.actions({class:h(u).ui?.actions}))},[o(e.$slots,`actions`,{},()=>[(K(!0),S(N,null,x(h(u).actions,(e,n)=>(K(),r(h(ir),{key:n,"alt-text":e.label||`Action`,"as-child":``,onClick:t[0]||=q(()=>{},[`stop`])},{default:v(()=>[p(oe,A({size:`xs`,color:h(u).color},{ref_for:!0},e),null,16,[`color`])]),_:2},1032,[`alt-text`]))),128))])],2)):U(``,!0)],2),h(u).orientation===`horizontal`&&(h(u).actions?.length||c.actions)||h(u).close?(K(),S(`div`,{key:0,"data-slot":`actions`,class:R(_.value.actions({class:h(u).ui?.actions,orientation:`horizontal`}))},[h(u).orientation===`horizontal`&&(h(u).actions?.length||c.actions)?o(e.$slots,`actions`,{},()=>[(K(!0),S(N,null,x(h(u).actions,(e,n)=>(K(),r(h(ir),{key:n,"alt-text":e.label||`Action`,"as-child":``,onClick:t[1]||=q(()=>{},[`stop`])},{default:v(()=>[p(oe,A({size:`xs`,color:h(u).color},{ref_for:!0},e),null,16,[`color`])]),_:2},1032,[`alt-text`]))),128))],void 0,0):U(``,!0),h(u).close||c.close?(K(),r(h(rr),{key:1,"as-child":``},{default:v(()=>[o(e.$slots,`close`,{ui:_.value},()=>[h(u).close?(K(),r(oe,A({key:0,icon:h(u).closeIcon||h(m).ui.icons.close,color:`neutral`,variant:`link`,"aria-label":h(f)(`toast.close`)},typeof h(u).close==`object`?h(u).close:{},{"data-slot":`close`,class:_.value.close({class:h(u).ui?.close}),onClick:t[2]||=q(()=>{},[`stop`])}),null,16,[`icon`,`aria-label`,`class`])):U(``,!0)])]),_:3})):U(``,!0)],2)):U(``,!0),h(u).progress&&a&&n>0&&i?(K(),r(yr,A({key:1,"model-value":n/i*100,color:h(u).color},typeof h(u).progress==`object`?h(u).progress:{},{size:`sm`,"data-slot":`progress`,class:_.value.progress({class:h(u).ui?.progress})}),null,16,[`model-value`,`color`,`class`])):U(``,!0)]),_:3},16,[`data-orientation`,`class`,`style`]))}},Sr={slots:{viewport:`fixed flex flex-col w-[calc(100%-2rem)] sm:w-96 z-[100] data-[expanded=true]:h-(--height) focus:outline-none`,base:`pointer-events-auto absolute inset-x-0 z-(--index) transform-(--transform) data-[expanded=false]:data-[front=false]:h-(--front-height) data-[expanded=false]:data-[front=false]:*:opacity-0 data-[front=false]:*:transition-opacity data-[front=false]:*:duration-100 data-[state=closed]:animate-[toast-closed_200ms_var(--ease-out)] data-[state=closed]:data-[expanded=false]:data-[front=false]:animate-[toast-collapsed-closed_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=odd]:animate-[toast-pulse-a_200ms_var(--ease-out)] motion-safe:data-[state=open]:data-[pulsing=even]:animate-[toast-pulse-b_200ms_var(--ease-out)] data-[swipe=move]:transition-none transition-[transform,translate,height] duration-200 ease-out motion-reduce:transition-none`},variants:{position:{"top-left":{viewport:`left-4`},"top-center":{viewport:`left-1/2 transform -translate-x-1/2`},"top-right":{viewport:`right-4`},"bottom-left":{viewport:`left-4`},"bottom-center":{viewport:`left-1/2 transform -translate-x-1/2`},"bottom-right":{viewport:`right-4`}},swipeDirection:{up:`data-[swipe=end]:animate-[toast-slide-up_200ms_var(--ease-out)]`,right:`data-[swipe=end]:animate-[toast-slide-right_200ms_var(--ease-out)]`,down:`data-[swipe=end]:animate-[toast-slide-down_200ms_var(--ease-out)]`,left:`data-[swipe=end]:animate-[toast-slide-left_200ms_var(--ease-out)]`}},compoundVariants:[{position:[`top-left`,`top-center`,`top-right`],class:{viewport:`top-4`,base:`top-0 data-[state=open]:animate-[toast-slide-in-from-top_200ms_var(--ease-out)]`}},{position:[`bottom-left`,`bottom-center`,`bottom-right`],class:{viewport:`bottom-4`,base:`bottom-0 data-[state=open]:animate-[toast-slide-in-from-bottom_200ms_var(--ease-out)]`}},{swipeDirection:[`left`,`right`],class:`data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=end]:translate-x-(--reka-toast-swipe-end-x) data-[swipe=cancel]:translate-x-0`},{swipeDirection:[`up`,`down`],class:`data-[swipe=move]:translate-y-(--reka-toast-swipe-move-y) data-[swipe=end]:translate-y-(--reka-toast-swipe-end-y) data-[swipe=cancel]:translate-y-0`}],defaultVariants:{position:`bottom-right`}},Cr=Object.assign({name:`Toaster`},{props:{position:{type:null,required:!1},expand:{type:Boolean,required:!1,default:!0},progress:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},max:{type:Number,required:!1,default:5},class:{type:null,required:!1},ui:{type:Object,required:!1},label:{type:String,required:!1},duration:{type:Number,required:!1,default:5e3},disableSwipe:{type:Boolean,required:!1},swipeThreshold:{type:Number,required:!1}},setup(e){let t=ve(`toaster`,e),{toasts:i,remove:a}=_r(),s=d();Se(gr,L(()=>t.max));let c=E(V(t,`duration`,`label`,`swipeThreshold`,`disableSwipe`)),l=hr(L(()=>t.portal)),u=W(()=>{switch(t.position){case`top-center`:return`up`;case`top-right`:case`bottom-right`:return`right`;case`bottom-center`:return`down`;case`top-left`:case`bottom-left`:return`left`}return`right`}),f=W(()=>ne({extend:Sr,...s.ui?.toaster||{}})({position:t.position,swipeDirection:u.value}));function g(e,t){e||a(t)}let _=n(!1),y=W(()=>t.expand||_.value),b=n([]),C=W(()=>b.value.reduce((e,{height:t})=>e+t+16,0)),w=W(()=>b.value[b.value.length-1]?.height||0);function D(e){return b.value.slice(e+1).reduce((e,{height:t})=>e+t+16,0)}return(e,n)=>(K(),r(h(Kn),A({"swipe-direction":u.value},h(c)),{default:v(()=>[o(e.$slots,`default`),(K(!0),S(N,null,x(h(i),(e,n)=>(K(),r(xr,A({key:e.id,ref_for:!0,ref_key:`refs`,ref:b,progress:h(t).progress},{ref_for:!0},h(m)(e,[`id`,`close`,`_duplicate`,`_updated`,`onClick`]),{close:e.close,"data-expanded":y.value,"data-front":!y.value&&n===h(i).length-1,"data-pulsing":e._duplicate?e._duplicate%2==0?`even`:`odd`:void 0,style:{"--index":n-h(i).length+h(i).length,"--before":h(i).length-1-n,"--offset":D(n),"--scale":y.value?`1`:`calc(1 - var(--before) * var(--scale-factor))`,"--translate":y.value?`calc(var(--offset) * var(--translate-factor))`:`calc(var(--before) * var(--gap))`,"--transform":`translateY(var(--translate)) scale(var(--scale))`},"data-slot":`base`,class:f.value.base({class:[h(t).ui?.base,e.onClick?`cursor-pointer`:void 0]}),"onUpdate:open":t=>g(t,e.id),onClick:t=>e.onClick&&e.onClick(e)}),null,16,[`progress`,`close`,`data-expanded`,`data-front`,`data-pulsing`,`style`,`class`,`onUpdate:open`,`onClick`]))),128)),p(h(or),P(T(h(l))),{default:v(()=>[p(h(ur),{"data-expanded":y.value,"data-slot":`viewport`,class:R(f.value.viewport({class:[h(t).ui?.viewport,h(t).class]})),style:k({"--scale-factor":`0.05`,"--translate-factor":h(t).position?.startsWith(`top`)?`1px`:`-1px`,"--gap":h(t).position?.startsWith(`top`)?`16px`:`-16px`,"--front-height":`${w.value}px`,"--height":`${C.value}px`}),onMouseenter:n[0]||=e=>_.value=!0,onMouseleave:n[1]||=e=>_.value=!1},null,8,[`data-expanded`,`class`,`style`])]),_:1},16)]),_:3},16,[`swipe-direction`]))}});function wr(){let e=be([]),t=(t,i)=>{let{props:a,defaultOpen:s,destroyOnClose:c}=i||{},l=Ce({id:Symbol(import.meta.dev?`useOverlay`:``),isOpen:!!s,component:O(t),isMounted:!!s,destroyOnClose:!!c,originalProps:a||{},props:{...a},resolvers:[]});return e.push(l),{...l,open:e=>n(l.id,e),close:e=>r(l.id,e),patch:e=>o(l.id,e)}},n=(e,t)=>{let n=s(e);n.props=t?{...n.originalProps,...t}:{...n.originalProps},n.isOpen=!0,n.isMounted=!0;let r=new Promise(e=>n.resolvers.push(e));return Object.assign(r,{id:e,isMounted:n.isMounted,isOpen:n.isOpen,result:r})},r=(e,t)=>{let n=s(e);n.isOpen=!1;for(let e of n.resolvers.splice(0))e(t)},i=()=>{e.forEach(e=>r(e.id))},a=t=>{let n=s(t);if(n.isMounted=!1,n.destroyOnClose){let n=e.findIndex(e=>e.id===t);e.splice(n,1)}},o=(e,t)=>{let n=s(e);n.props={...n.props,...t}},s=t=>{let n=e.find(e=>e.id===t);if(!n)throw Error(`Overlay not found`);return n};return{overlays:e,open:n,close:r,closeAll:i,create:t,patch:o,unmount:a,isOpen:e=>s(e).isOpen}}var Tr=we(wr),Er={__name:`OverlayProvider`,setup(e){let{overlays:t,unmount:n,close:i}=Tr(),a=W(()=>t.filter(e=>e.isMounted)),o=e=>{i(e),n(e)},s=(e,t)=>{i(e,t)};return(e,t)=>(K(!0),S(N,null,x(a.value,e=>(K(),r(I(e.component),A({key:e.id},{ref_for:!0},e.props,{open:e.isOpen,"onUpdate:open":t=>e.isOpen=t,onClose:t=>s(e.id,t),"onAfter:leave":t=>o(e.id)}),null,16,[`open`,`onUpdate:open`,`onClose`,`onAfter:leave`]))),128))}},Dr=Object.assign({name:`App`},{props:{tooltip:{type:Object,required:!1},toaster:{type:[Object,null],required:!1},locale:{type:Object,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:`body`},dir:{type:String,required:!1},scrollBody:{type:[Boolean,Object],required:!1},nonce:{type:String,required:!1}},setup(e){let t=e,n=xe(V(t,`scrollBody`)),i=L(()=>t.tooltip),a=L(()=>t.toaster),s=L(()=>t.dir?{...t.locale||an,dir:t.dir}:t.locale);Se(on,s);let c=L(()=>t.portal);return Se(mr,c),(c,l)=>(K(),r(h(Ae),A({"use-id":()=>Te(),dir:t.dir||s.value?.dir,locale:s.value?.code},h(n)),{default:v(()=>[p(h(pr),P(T(i.value)),{default:v(()=>[e.toaster===null?o(c.$slots,`default`,{},void 0,void 0,1):(K(),r(Cr,P(A({key:0},a.value)),{default:v(()=>[o(c.$slots,`default`)]),_:3},16)),p(Er)]),_:3},16)]),_:3},16,[`use-id`,`dir`,`locale`]))}}),Or={class:`min-h-screen`},kr={class:`border-b border-default`},Ar={class:`mx-auto flex max-w-6xl items-center gap-6 px-4 py-3`,"aria-label":`Main`},jr={class:`mx-auto max-w-6xl px-4 py-6`},Mr=_({__name:`App`,setup(e){let t=[{label:`Entries`,to:`/`},{label:`Reviews`,to:`/reviews`},{label:`Tokens`,to:`/tokens`},{label:`People`,to:`/people`}];return(e,n)=>{let a=i(`RouterLink`),o=i(`RouterView`),s=Dr;return K(),r(s,null,{default:v(()=>[y(`div`,Or,[y(`header`,kr,[y(`nav`,Ar,[n[0]||=y(`span`,{class:`font-semibold`},`Hollware`,-1),(K(),S(N,null,x(t,e=>p(a,{key:e.to,to:e.to,class:`text-sm text-muted hover:text-highlighted`,"active-class":`text-highlighted font-medium`},{default:v(()=>[F(z(e.label),1)]),_:2},1032,[`to`])),64))])]),y(`main`,jr,[p(o)])])]),_:1})}}}),Nr=`modulepreload`,Pr=function(e){return`/admin/`+e},Fr={},Ir=function(e){return e.pathname.endsWith(`.css`)},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Pr(t,n);let r=s(t);if(r.href in Fr)return;Fr[r.href]=!0;let i=Ir(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:Nr,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};se({prefix:`lucide`,icons:{"arrow-down":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m7-7l-7 7l-7-7"/>`},"arrow-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m12 19l-7-7l7-7m7 7H5"/>`},"arrow-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7l7 7l-7 7"/>`},"arrow-up":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 12l7-7l7 7m-7 7V5"/>`},"arrow-up-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h10v10M7 17L17 7"/>`},check:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 6L9 17l-5-5"/>`},"chevron-down":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/>`},"chevron-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 18l-6-6l6-6"/>`},"chevron-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 18l6-6l-6-6"/>`},"chevron-up":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m18 15l-6-6l-6 6"/>`},"chevrons-left":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m11 17l-5-5l5-5m7 10l-5-5l5-5"/>`},"chevrons-right":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 17l5-5l-5-5m7 10l5-5l-5-5"/>`},"circle-alert":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 8v4m0 4h.01"/></g>`},"circle-check":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m16 9l-5.5 5.5L8 12"/></g>`},"circle-x":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="m15 9l-6 6m0-6l6 6"/></g>`},copy:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></g>`},"copy-check":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 15l2 2l4-4"/><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></g>`},ellipsis:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></g>`},eye:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"/><circle cx="12" cy="12" r="3"/></g>`},"eye-off":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575a1 1 0 0 1 0 .696a10.8 10.8 0 0 1-1.444 2.49m-6.41-.679a3 3 0 0 1-4.242-4.242"/><path d="M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 4.446-5.143M2 2l20 20"/></g>`},file:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"/><path d="M14 2v5a1 1 0 0 0 1 1h5"/></g>`},folder:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"/>`},"folder-open":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 14l1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"/>`},"grip-vertical":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="9" cy="12" r="1"/><circle cx="9" cy="5" r="1"/><circle cx="9" cy="19" r="1"/><circle cx="15" cy="12" r="1"/><circle cx="15" cy="5" r="1"/><circle cx="15" cy="19" r="1"/></g>`},hash:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 9h16M4 15h16M10 3L8 21m8-18l-2 18"/>`},info:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4m0-4h.01"/></g>`},lightbulb:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 14c.2-1 .7-1.7 1.5-2.5c1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5c.7.7 1.3 1.5 1.5 2.5m0 4h6m-5 4h4"/>`},"loader-circle":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 1 1-6.219-8.56"/>`},menu:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 5h16M4 12h16M4 19h16"/>`},minus:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14"/>`},monitor:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="20" height="14" x="2" y="3" rx="2"/><path d="M8 21h8m-4-4v4"/></g>`},moon:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"/>`},"panel-left-close":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m7-6l-3-3l3-3"/></g>`},"panel-left-open":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><rect width="18" height="18" x="3" y="3" rx="2"/><path d="M9 3v18m5-12l3 3l-3 3"/></g>`},plus:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14m-7-7v14"/>`},"rotate-ccw":{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"/><path d="M3 3v5h5"/></g>`},search:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m21 21l-4.34-4.34"/><circle cx="11" cy="11" r="8"/></g>`},square:{body:`<rect width="18" height="18" x="3" y="3" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" rx="2"/>`},star:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.12 2.12 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.12 2.12 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.12 2.12 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.12 2.12 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.12 2.12 0 0 0 1.597-1.16z"/>`},sun:{body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"/></g>`},terminal:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19h8M4 17l6-6l-6-6"/>`},"triangle-alert":{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m21.73 18l-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3M12 9v4m0 4h.01"/>`},upload:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v12m5-7l-5-5l-5 5m14 7v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/>`},x:{body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6L6 18M6 6l12 12"/>`}},lastModified:1791785319,width:24,height:24});var Lr=`/admin`,Rr=b({history:a(`${Lr}/`),routes:[{path:`/`,component:()=>$(()=>import(`./Entries-WCNooeTz.js`),__vite__mapDeps([0,1,2,3,4,5,6]))},{path:`/entries/new`,component:()=>$(()=>import(`./NewEntry-DsYwDFol.js`),__vite__mapDeps([7,2,3,4,1,5,6,8,9,10,11]))},{path:`/entries/:collection/:locale/:slug`,component:()=>$(()=>import(`./Entry-rB8cRN_X.js`),__vite__mapDeps([12,1,2,3,13,5,10])),props:!0},{path:`/reviews`,component:()=>$(()=>import(`./Reviews-Brm7BADO.js`),__vite__mapDeps([14,2,3,13,1,5,8,10]))},{path:`/tokens`,component:()=>$(()=>import(`./Tokens-C3tBUHUR.js`),__vite__mapDeps([15,1,2,3,6,8,9,11]))},{path:`/people`,component:()=>$(()=>import(`./People-B7IZXefm.js`),__vite__mapDeps([16,1,2,3,4,5,6,8,9]))},{path:`/callback`,component:()=>$(()=>import(`./Callback-B7wR03AA.js`),__vite__mapDeps([17,2,9])),meta:{open:!0}}]});Rr.beforeEach(async e=>e.meta.open===!0||await ue.token()!==null||(await ue.signIn(`${Lr}${e.fullPath}`),!1)),De(Mr).use(Rr).use(bn).mount(`#app`);export{wn as a,Mn as c,Dn as d,Sn as f,Nn as i,Z as l,sn as m,hr as n,Tn as o,xn as p,Fn as r,En as s,_r as t,On as u};
@@ -1 +0,0 @@
1
- import{jr as e,xt as t}from"./session-CDqermoS.js";import{u as n}from"./VisuallyHidden-DQM1Rx2i.js";function r(r){return t(()=>!e(r)||!!n(r)?.closest(`form`))}export{r as t};
@@ -1 +0,0 @@
1
- import{Cr as e,Ct as t,En as n,F as r,Jn as i,Nr as a,Pt as o,Qn as s,R as c,U as l,V as u,Z as d,_n as f,ai as p,jr as m,on as h,qn as g,xr as _,xt as v,y,yn as b,z as x}from"./session-CDqermoS.js";import{a as S,f as C,l as w,o as T,r as E,s as D,u as O}from"./VisuallyHidden-DQM1Rx2i.js";import{a as k,c as A,d as j,l as ee,o as M,p as N,s as P,u as F}from"./index-NtWIwjeZ.js";function I(e,t,n){let r=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&r.addEventListener(e,t,{once:!0}),r.dispatchEvent(i)}var te=x(()=>{let t=e(new Map),n=e(),i=v(()=>{for(let e of t.value.values())if(e)return!0;return!1}),a=S({scrollBody:e(!0)}),o=null,s=()=>{document.body.style.paddingRight=``,document.body.style.marginRight=``,N.layersWithOutsidePointerEventsDisabled.size===0&&(document.body.style.pointerEvents=``),document.documentElement.style.removeProperty(`--scrollbar-width`),document.body.style.overflow=n.value??``,l&&o?.(),n.value=void 0};return g(i,(e,t)=>{if(!u)return;if(!e){t&&s();return}n.value===void 0&&(n.value=document.body.style.overflow);let c=window.innerWidth-document.documentElement.clientWidth,d={padding:c,margin:0},f=a.scrollBody?.value?typeof a.scrollBody.value==`object`?r({padding:a.scrollBody.value.padding===!0?c:a.scrollBody.value.padding,margin:a.scrollBody.value.margin===!0?c:a.scrollBody.value.margin},d):d:{padding:0,margin:0};c>0&&(document.body.style.paddingRight=typeof f.padding==`number`?`${f.padding}px`:String(f.padding),document.body.style.marginRight=typeof f.margin==`number`?`${f.margin}px`:String(f.margin),document.documentElement.style.setProperty(`--scrollbar-width`,`${c}px`),document.body.style.overflow=`hidden`),l&&(o=C(document,`touchmove`,e=>re(e),{passive:!1})),h(()=>{i.value&&(document.body.style.pointerEvents=`none`,document.body.style.overflow=`hidden`)})},{immediate:!0,flush:`sync`}),t});function ne(e){let t=Math.random().toString(36).substring(2,7),n=te();n.value.set(t,e??!1);let r=v({get:()=>n.value.get(t)??!1,set:e=>n.value.set(t,e)});return d(()=>{n.value.delete(t)}),r}function L(e){let t=window.getComputedStyle(e);if(t.overflowX===`scroll`||t.overflowY===`scroll`||t.overflowX===`auto`&&e.clientWidth<e.scrollWidth||t.overflowY===`auto`&&e.clientHeight<e.scrollHeight)return!0;{let t=e.parentNode;return!(t instanceof Element)||t.tagName===`BODY`?!1:L(t)}}function re(e){let t=e||window.event,n=t.target;return n instanceof Element&&L(n)?!1:t.touches.length>1||(t.preventDefault&&t.cancelable&&t.preventDefault(),!1)}var R=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},z=new WeakMap,B=new WeakMap,V={},H=0,U=function(e){return e&&(e.host||U(e.parentNode))},W=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=U(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},G=function(e,t,n,r){var i=W(t,Array.isArray(e)?e:[e]);V[n]||(V[n]=new WeakMap);var a=V[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(z.get(e)||0)+1,l=(a.get(e)||0)+1;z.set(e,c),a.set(e,l),o.push(e),c===1&&i&&B.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),H++,function(){o.forEach(function(e){var t=z.get(e)-1,i=a.get(e)-1;z.set(e,t),a.set(e,i),t||(B.has(e)||e.removeAttribute(r),B.delete(e)),i||e.removeAttribute(n)}),H--,H||(z=new WeakMap,z=new WeakMap,B=new WeakMap,V={})}},K=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||R(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),G(r,i,n,`aria-hidden`)):function(){return null}};function q(e){let t;g(()=>O(e),e=>{let n=!1;try{n=!!e?.closest(`[popover]:not(:popover-open)`)}catch{}e&&!n?t=K(e):t&&t()}),f(()=>{t&&t()})}var J=`dismissableLayer.pointerDownOutside`,Y=`dismissableLayer.focusOutside`;function X(e,t){if(!(t instanceof Element))return!1;if(e.contains(t))return!0;let n=t.closest(`[data-dismissable-layer]`),r=e.dataset.dismissableLayer===``?e:e.querySelector(`[data-dismissable-layer]`),i=Array.from(e.ownerDocument.querySelectorAll(`[data-dismissable-layer]`));return!!(n&&(r===n||i.indexOf(r)<i.indexOf(n)))}function ie(t,n,r=!0){let a=n?.value?.ownerDocument??globalThis?.document,o=e(!1),s=e(()=>{});return i(e=>{if(!u||!m(r))return;let i=async e=>{let r=e.target;if(n?.value&&r){if(X(n.value,r)){a.removeEventListener(`click`,s.value),o.value=!1;return}if(e.target&&!o.value){let n={originalEvent:e};function r(){I(J,t,n)}e.pointerType===`touch`?(a.removeEventListener(`click`,s.value),s.value=r,a.addEventListener(`click`,s.value,{once:!0})):r()}else a.removeEventListener(`click`,s.value);o.value=!1}},c=window.setTimeout(()=>{a.addEventListener(`pointerdown`,i)},0);e(()=>{window.clearTimeout(c),a.removeEventListener(`pointerdown`,i),a.removeEventListener(`click`,s.value)})}),{onPointerDownCapture:()=>{m(r)&&(o.value=!0)}}}function ae(t,n,r=!0){let a=n?.value?.ownerDocument??globalThis?.document,o=e(!1);return i(e=>{if(!u||!m(r))return;let i=async e=>{if(!n?.value)return;await h(),await h();let r=e.target;n.value&&r&&!X(n.value,r)&&e.target&&!o.value&&I(Y,t,{originalEvent:e})};a.addEventListener(`focusin`,i),e(()=>a.removeEventListener(`focusin`,i))}),{onFocusCapture:()=>{m(r)&&(o.value=!0)},onBlurCapture:()=>{m(r)&&(o.value=!1)}}}var oe=o({__name:`DismissableLayer`,props:{disableOutsidePointerEvents:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},present:{type:Boolean,required:!1,default:!0}},emits:[`escapeKeyDown`,`pointerDownOutside`,`focusOutside`,`interactOutside`,`dismiss`],setup(e,{emit:r}){let o=e,c=r,{forwardRef:l,currentElement:u}=E(),d=v(()=>u.value?.ownerDocument??globalThis.document),f=v(()=>N.layersRoot),m=v(()=>u.value?Array.from(f.value).indexOf(u.value):-1),_=v(()=>N.layersWithOutsidePointerEventsDisabled.size>0),x=v(()=>{let e=Array.from(f.value),[t]=[...N.layersWithOutsidePointerEventsDisabled].slice(-1),n=e.indexOf(t);return m.value>=n}),S=ie(async e=>{let t=[...N.branches].some(t=>t?.contains(e.target));o.present&&x.value&&!t&&(c(`pointerDownOutside`,e),c(`interactOutside`,e),await h(),e.defaultPrevented||c(`dismiss`))},u,()=>o.present),C=ae(e=>{let t=[...N.branches].some(t=>t?.contains(e.target));o.present&&!t&&(c(`focusOutside`,e),c(`interactOutside`,e),e.defaultPrevented||c(`dismiss`))},u);return w(`Escape`,e=>{o.present&&m.value===f.value.size-1&&(c(`escapeKeyDown`,e),e.defaultPrevented||c(`dismiss`))}),g([u,()=>o.disableOutsidePointerEvents,()=>o.present],([e,t,n],r,i)=>{e&&n&&t&&(N.layersWithOutsidePointerEventsDisabled.size===0&&(N.originalBodyPointerEvents=d.value.body.style.pointerEvents,d.value.body.style.pointerEvents=`none`),N.layersWithOutsidePointerEventsDisabled.add(e),i(()=>{N.layersWithOutsidePointerEventsDisabled.delete(e),N.layersWithOutsidePointerEventsDisabled.size===0&&!T(N.originalBodyPointerEvents)&&(d.value.body.style.pointerEvents=N.originalBodyPointerEvents)}))},{immediate:!0}),g([u,()=>o.present],([e,t],n,r)=>{e&&t&&(f.value.add(e),r(()=>{f.value.delete(e)}))},{immediate:!0}),i(e=>{e(()=>{u.value&&(f.value.delete(u.value),N.layersWithOutsidePointerEventsDisabled.delete(u.value))})}),(e,r)=>(b(),t(a(y),{ref:a(l),"as-child":e.asChild,as:e.as,"data-dismissable-layer":``,style:p({pointerEvents:_.value?x.value?`auto`:`none`:void 0}),onFocusCapture:a(C).onFocusCapture,onBlurCapture:a(C).onBlurCapture,onPointerdownCapture:a(S).onPointerDownCapture},{default:s(()=>[n(e.$slots,`default`)]),_:3},8,[`as-child`,`as`,`style`,`onFocusCapture`,`onBlurCapture`,`onPointerdownCapture`]))}}),se=c(()=>e([]));function ce(){let e=se();return{add(t){let n=e.value[0];t!==n&&n?.pause(),e.value=Z(e.value,t),e.value.unshift(t)},remove(t){e.value=Z(e.value,t),e.value[0]?.resume()}}}function Z(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}var le=o({__name:`FocusScope`,props:{loop:{type:Boolean,required:!1,default:!1},trapped:{type:Boolean,required:!1,default:!1},present:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:[`mountAutoFocus`,`unmountAutoFocus`],setup(r,{emit:o}){let c=r,l=o,{currentRef:d,currentElement:f}=E(),p=e(null),m=ce(),v=_({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}});i(e=>{if(!u)return;let t=f.value;if(!c.trapped)return;function n(e){if(v.paused||!t)return;let n=e.target;t.contains(n)?p.value=n:A(p.value,{select:!0})}function r(e){if(v.paused||!t)return;let n=e.relatedTarget;n!==null&&(t.contains(n)||A(p.value,{select:!0}))}function i(e){let n=p.value;if(n===null||!e.some(e=>e.removedNodes.length>0))return;let r=D();r&&t.contains(r)||t.contains(n)||A(t)}document.addEventListener(`focusin`,n),document.addEventListener(`focusout`,r);let a=new MutationObserver(i);t&&a.observe(t,{childList:!0,subtree:!0}),e(()=>{document.removeEventListener(`focusin`,n),document.removeEventListener(`focusout`,r),a.disconnect()})});function x(e,t){let n=new CustomEvent(k,P),r=e=>l(`mountAutoFocus`,e);e.addEventListener(k,r),e.dispatchEvent(n),e.removeEventListener(k,r),n.defaultPrevented||(ee(F(e),{select:!0}),D()===t&&A(e))}i(async e=>{let t=f.value;if(await h(),!t)return;c.present!==!1&&m.add(v);let n=D();!t.contains(n)&&c.present!==!1&&x(t,n),e(()=>{let e=new CustomEvent(M,P),r=e=>{l(`unmountAutoFocus`,e)};t.addEventListener(M,r),t.dispatchEvent(e),t.setAttribute(`data-focus-scope-unmounting`,``),setTimeout(()=>{e.defaultPrevented||A(n??document.body,{select:!0}),t.removeEventListener(M,r),m.remove(v),t.removeAttribute(`data-focus-scope-unmounting`)},0)})}),g(()=>c.present,async(e,t)=>{if(!u)return;if(e===!1&&t===!0){m.remove(v);return}if(e!==!0||t!==!1)return;m.add(v),await h();let n=f.value;if(!n)return;let r=D();n.contains(r)||x(n,r)});function S(e){if(!c.loop&&!c.trapped||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=D();if(t&&n){let t=e.currentTarget,[r,i]=j(t);r&&i?!e.shiftKey&&n===i?(e.preventDefault(),c.loop&&A(r,{select:!0})):e.shiftKey&&n===r&&(e.preventDefault(),c.loop&&A(i,{select:!0})):n===t&&e.preventDefault()}}return(e,r)=>(b(),t(a(y),{ref_key:`currentRef`,ref:d,tabindex:`-1`,"as-child":e.asChild,as:e.as,onKeydown:S},{default:s(()=>[n(e.$slots,`default`)]),_:3},8,[`as-child`,`as`]))}}),Q=[`Enter`,` `],$=[`ArrowDown`,`PageUp`,`Home`],ue=[`ArrowUp`,`PageDown`,`End`];[...$,...ue],[...Q],[...Q];function de(e){return e?`open`:`closed`}function fe(e){let t=D();for(let n of e)if(n===t||(n.focus(),D()!==t))return}export{q as a,oe as i,de as n,ne as o,le as r,I as s,fe as t};