@pfct/purple 1.15.1 → 1.16.1

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 (136) hide show
  1. package/dist/assets/index.css +2 -2
  2. package/dist/chunks/{Accordion.6fAW322P.js → Accordion.Cs1f4aQZ.js} +37 -36
  3. package/dist/chunks/Accordion.ZIp0NsA0.js +1 -0
  4. package/dist/chunks/{DotLottie.-8NWMOKQ.js → DotLottie.CaDygpsw.js} +5682 -3166
  5. package/dist/chunks/DotLottie.Cf-SL2bJ.js +5 -0
  6. package/dist/chunks/Switch.C6xwIjJR.js +1 -0
  7. package/dist/chunks/{Switch.DZP1mWLt.js → Switch.D_myxCrS.js} +31 -20
  8. package/dist/chunks/{bottomSheet.BH73fUXU.js → bottomSheet.BGKwHjuP.js} +1 -1
  9. package/dist/chunks/{bottomSheet.M3yxr5-0.js → bottomSheet.C99fAuQK.js} +1 -1
  10. package/dist/chunks/{calendar.DyOEuwp0.js → calendar.BMivAvH4.js} +449 -446
  11. package/dist/chunks/calendar.DRakro7x.js +1 -0
  12. package/dist/chunks/checkbox.CfWB_nqn.js +1 -0
  13. package/dist/chunks/{checkbox.DihHSceK.js → checkbox.DNdnhspb.js} +14 -13
  14. package/dist/chunks/{dateMatchModifiers.BP6awhUm.js → dateMatchModifiers.DteXiCog.js} +1 -1
  15. package/dist/chunks/{dateMatchModifiers.DWzTSPL9.js → dateMatchModifiers.T1FaMebC.js} +1 -1
  16. package/dist/chunks/{dist.CYRtTgUR.js → dist.B2wZmrK1.js} +26 -24
  17. package/dist/chunks/dist.B8tpQk-4.js +1 -0
  18. package/dist/chunks/{dist.DJPq2jOJ.js → dist.BC0-iqKU.js} +1 -1
  19. package/dist/chunks/{dist.D3epBPq9.js → dist.BGATFz6w.js} +1 -1
  20. package/dist/chunks/{dist.D3MzxMSH.js → dist.BQIeYu70.js} +1 -1
  21. package/dist/chunks/{dist.DAQtqq8Q.js → dist.BskID78S.js} +10 -9
  22. package/dist/chunks/{dist.Bt6mCKem.js → dist.Bxqi8VAi.js} +1 -1
  23. package/dist/chunks/{dist.DSx7Feoc.js → dist.C8k7jQIp.js} +15 -12
  24. package/dist/chunks/dist.CEJ-WCY_.js +44 -0
  25. package/dist/chunks/dist.CIQdvun-.js +1 -0
  26. package/dist/chunks/dist.Cff8LOoN.js +67 -0
  27. package/dist/chunks/{dist.DuawELEr.js → dist.CwMFqhEQ.js} +2 -1
  28. package/dist/chunks/dist.CyhalHxz.js +1 -0
  29. package/dist/chunks/dist.Czpint58.js +1 -0
  30. package/dist/chunks/{dist.DrZbhygc.js → dist.D3cPoDZ_.js} +26 -25
  31. package/dist/chunks/dist.D4mQo5QB.js +1 -0
  32. package/dist/chunks/dist.D5ataprQ.js +1 -0
  33. package/dist/chunks/{dist.DHqfAMUX.js → dist.DIjdcvlQ.js} +25 -24
  34. package/dist/chunks/dist.DhCw5vjE.js +1 -0
  35. package/dist/chunks/dist.DrfVZqiO.js +186 -0
  36. package/dist/chunks/{dist.CB-rIMVI.js → dist.QtpYoD01.js} +1 -1
  37. package/dist/chunks/{dist.0EAhIi1e.js → dist.kg7EEYPp.js} +1 -1
  38. package/dist/chunks/drawer.Cji5AtcU.js +1720 -0
  39. package/dist/chunks/drawer.Gt1AjdVH.js +7 -0
  40. package/dist/chunks/{src.ClN0uvp3.js → src.CmgILXZE.js} +4 -4
  41. package/dist/chunks/{src.DfmpOXyx.js → src.D-VoFbup.js} +1 -1
  42. package/dist/chunks/{test.DNmyFkvJ.D_-8uo_7.js → test.DNmyFkvJ.B-Ui2GEb.js} +1 -1
  43. package/dist/chunks/{tooltip.D_ECTwc-.js → tooltip.DGgNTZ5B.js} +22 -21
  44. package/dist/chunks/tooltip.vEwTtt8v.js +1 -0
  45. package/dist/components/Accordion/index.cjs.js +1 -1
  46. package/dist/components/Accordion/index.esm.js +1 -1
  47. package/dist/components/Control/Switch/index.cjs.js +1 -1
  48. package/dist/components/Control/Switch/index.esm.js +1 -1
  49. package/dist/components/Control/index.cjs.js +1 -1
  50. package/dist/components/Control/index.esm.js +2 -2
  51. package/dist/components/DatePicker/RangeDatePicker.cjs.js +1 -1
  52. package/dist/components/DatePicker/RangeDatePicker.esm.js +1 -1
  53. package/dist/components/DatePicker/RangeDatePicker.test.esm.js +1 -1
  54. package/dist/components/DatePicker/SingleDatePicker.cjs.js +1 -1
  55. package/dist/components/DatePicker/SingleDatePicker.esm.js +1 -1
  56. package/dist/components/DatePicker/SingleDatePicker.test.esm.js +1 -1
  57. package/dist/components/DatePicker/hooks.cjs.js +1 -1
  58. package/dist/components/DatePicker/hooks.esm.js +1 -1
  59. package/dist/components/DatePicker/styles.cjs.js +1 -1
  60. package/dist/components/DatePicker/styles.esm.js +1 -1
  61. package/dist/components/Input/BaseInput/index.cjs.js +1 -1
  62. package/dist/components/Input/BaseInput/index.d.ts.map +1 -1
  63. package/dist/components/Input/BaseInput/index.esm.js +7 -5
  64. package/dist/components/LegacyModal/index.cjs.js +1 -1
  65. package/dist/components/LegacyModal/index.esm.js +1 -1
  66. package/dist/components/Modal/index.cjs.js +1 -1
  67. package/dist/components/Modal/index.esm.js +1 -1
  68. package/dist/components/SelectBox/index.cjs.js +1 -1
  69. package/dist/components/SelectBox/index.d.ts.map +1 -1
  70. package/dist/components/SelectBox/index.esm.js +16 -53
  71. package/dist/components/Tabs/FillTabs/index.cjs.js +1 -1
  72. package/dist/components/Tabs/FillTabs/index.esm.js +1 -1
  73. package/dist/components/Tabs/index.cjs.js +1 -1
  74. package/dist/components/Tabs/index.esm.js +1 -1
  75. package/dist/components/Terms/index.cjs.js +1 -1
  76. package/dist/components/Terms/index.esm.js +2 -2
  77. package/dist/components/index.cjs.js +1 -1
  78. package/dist/components/index.esm.js +7 -7
  79. package/dist/components/ui/bottomSheet.cjs.js +1 -1
  80. package/dist/components/ui/bottomSheet.esm.js +1 -1
  81. package/dist/components/ui/calendar.cjs.js +1 -1
  82. package/dist/components/ui/calendar.esm.js +1 -1
  83. package/dist/components/ui/checkbox.cjs.js +1 -1
  84. package/dist/components/ui/checkbox.esm.js +1 -1
  85. package/dist/components/ui/dialog.cjs.js +1 -1
  86. package/dist/components/ui/dialog.esm.js +1 -1
  87. package/dist/components/ui/drawer.cjs.js +1 -1
  88. package/dist/components/ui/drawer.esm.js +1 -1
  89. package/dist/components/ui/impact-tooltip.cjs.js +1 -1
  90. package/dist/components/ui/impact-tooltip.esm.js +1 -1
  91. package/dist/components/ui/select.cjs.js +1 -1
  92. package/dist/components/ui/select.d.ts.map +1 -1
  93. package/dist/components/ui/select.esm.js +8 -6
  94. package/dist/components/ui/tooltip.cjs.js +1 -1
  95. package/dist/components/ui/tooltip.esm.js +1 -1
  96. package/dist/icons/src/aliases/aliases.cjs.js +1 -1
  97. package/dist/icons/src/aliases/aliases.d.ts +1 -1
  98. package/dist/icons/src/aliases/aliases.d.ts.map +1 -1
  99. package/dist/icons/src/aliases/aliases.esm.js +3 -3
  100. package/dist/icons/src/aliases/index.cjs.js +1 -1
  101. package/dist/icons/src/aliases/index.esm.js +3 -3
  102. package/dist/icons/src/aliases/prefixed.cjs.js +1 -1
  103. package/dist/icons/src/aliases/prefixed.d.ts +2 -2
  104. package/dist/icons/src/aliases/prefixed.d.ts.map +1 -1
  105. package/dist/icons/src/aliases/prefixed.esm.js +3 -3
  106. package/dist/icons/src/aliases/suffixed.cjs.js +1 -1
  107. package/dist/icons/src/aliases/suffixed.d.ts +8 -8
  108. package/dist/icons/src/aliases/suffixed.d.ts.map +1 -1
  109. package/dist/icons/src/aliases/suffixed.esm.js +3 -3
  110. package/dist/icons/src/icons/index.cjs.js +1 -1
  111. package/dist/icons/src/icons/index.esm.js +3 -3
  112. package/dist/index.cjs.js +1 -1
  113. package/dist/index.esm.js +11 -11
  114. package/dist/library/DotLottie/index.cjs.js +1 -1
  115. package/dist/library/DotLottie/index.esm.js +1 -1
  116. package/dist/library/Lottie/index.cjs.js +1 -1
  117. package/dist/library/Lottie/index.esm.js +1 -1
  118. package/dist/library/index.cjs.js +1 -1
  119. package/dist/library/index.esm.js +1 -1
  120. package/package.json +2 -2
  121. package/dist/chunks/Accordion.DnnZvp-k.js +0 -1
  122. package/dist/chunks/DotLottie.BCyB3kR7.js +0 -5
  123. package/dist/chunks/Switch.Cf6DiCUV.js +0 -1
  124. package/dist/chunks/calendar.B-KPMIgz.js +0 -1
  125. package/dist/chunks/checkbox.kS_54E9q.js +0 -1
  126. package/dist/chunks/dist.BovUpaIu.js +0 -142
  127. package/dist/chunks/dist.C6Y9cYZm.js +0 -1
  128. package/dist/chunks/dist.Cf37BjoU.js +0 -1
  129. package/dist/chunks/dist.DV3oUYlD.js +0 -1
  130. package/dist/chunks/dist.DciOZstR.js +0 -1
  131. package/dist/chunks/dist.cKdeuHWp.js +0 -1
  132. package/dist/chunks/dist.s6QukJK1.js +0 -172
  133. package/dist/chunks/dist.xhWLHjmj.js +0 -1
  134. package/dist/chunks/drawer.CtoEYCdv.js +0 -7
  135. package/dist/chunks/drawer.EQu-ewat.js +0 -1556
  136. package/dist/chunks/tooltip.BIAjX12E.js +0 -1
@@ -1,4 +1,4 @@
1
- import { r as e } from "./dist.BovUpaIu.js";
1
+ import { n as e } from "./dist.CEJ-WCY_.js";
2
2
  import * as t from "react";
3
3
  //#region node_modules/@radix-ui/react-presence/dist/index.mjs
4
4
  function n(e, n) {
@@ -10,7 +10,7 @@ var r = (e) => {
10
10
  };
11
11
  r.displayName = "Presence";
12
12
  function i(r) {
13
- let [i, a] = t.useState(), o = t.useRef(null), c = t.useRef(r), l = t.useRef("none"), [u, d] = n(r ? "mounted" : "unmounted", {
13
+ let [i, a] = t.useState(), o = t.useRef(null), c = t.useRef(r), l = t.useRef("none"), u = t.useRef(void 0), [d, f] = n(r ? "mounted" : "unmounted", {
14
14
  mounted: {
15
15
  UNMOUNT: "unmounted",
16
16
  ANIMATION_OUT: "unmountSuspended"
@@ -22,19 +22,18 @@ function i(r) {
22
22
  unmounted: { MOUNT: "mounted" }
23
23
  });
24
24
  return t.useEffect(() => {
25
- let e = s(o.current);
26
- l.current = u === "mounted" ? e : "none";
27
- }, [u]), e(() => {
25
+ d === "mounted" ? (l.current = u.current ?? s(o.current), u.current = void 0) : l.current = "none";
26
+ }, [d]), e(() => {
28
27
  let e = o.current, t = c.current;
29
28
  if (t !== r) {
30
29
  let n = l.current, i = s(e);
31
- r ? d("MOUNT") : i === "none" || e?.display === "none" ? d("UNMOUNT") : d(t && n !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = r;
30
+ r ? (u.current = i, f("MOUNT")) : i === "none" || e?.display === "none" ? f("UNMOUNT") : f(t && n !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = r;
32
31
  }
33
- }, [r, d]), e(() => {
32
+ }, [r, f]), e(() => {
34
33
  if (i) {
35
34
  let e, t = i.ownerDocument.defaultView ?? window, n = (n) => {
36
35
  let r = s(o.current).includes(CSS.escape(n.animationName));
37
- if (n.target === i && r && (d("ANIMATION_END"), !c.current)) {
36
+ if (n.target === i && r && (f("ANIMATION_END"), !c.current)) {
38
37
  let n = i.style.animationFillMode;
39
38
  i.style.animationFillMode = "forwards", e = t.setTimeout(() => {
40
39
  i.style.animationFillMode === "forwards" && (i.style.animationFillMode = n);
@@ -46,11 +45,15 @@ function i(r) {
46
45
  return i.addEventListener("animationstart", r), i.addEventListener("animationcancel", n), i.addEventListener("animationend", n), () => {
47
46
  t.clearTimeout(e), i.removeEventListener("animationstart", r), i.removeEventListener("animationcancel", n), i.removeEventListener("animationend", n);
48
47
  };
49
- } else d("ANIMATION_END");
50
- }, [i, d]), {
51
- isPresent: ["mounted", "unmountSuspended"].includes(u),
48
+ } else f("ANIMATION_END");
49
+ }, [i, f]), {
50
+ isPresent: ["mounted", "unmountSuspended"].includes(d),
52
51
  ref: t.useCallback((e) => {
53
- o.current = e ? getComputedStyle(e) : null, a(e);
52
+ if (e) {
53
+ let t = getComputedStyle(e);
54
+ o.current = t, u.current = s(t);
55
+ } else o.current = null;
56
+ a(e);
54
57
  }, [])
55
58
  };
56
59
  }
@@ -0,0 +1,44 @@
1
+ import * as e from "react";
2
+ //#region node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs
3
+ var t = globalThis?.document ? e.useLayoutEffect : () => {}, n = e.useInsertionEffect || t;
4
+ function r({ prop: t, defaultProp: n, onChange: r = () => {}, caller: o }) {
5
+ let [s, c, l] = i({
6
+ defaultProp: n,
7
+ onChange: r
8
+ }), u = t !== void 0, d = u ? t : s;
9
+ {
10
+ let n = e.useRef(t !== void 0);
11
+ e.useEffect(() => {
12
+ let e = n.current;
13
+ e !== u && console.warn(`${o} is changing from ${e ? "controlled" : "uncontrolled"} to ${u ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`), n.current = u;
14
+ }, [u, o]);
15
+ }
16
+ return [d, e.useCallback((e) => {
17
+ if (u) {
18
+ let n = a(e) ? e(t) : e;
19
+ n !== t && l.current?.(n);
20
+ } else c(e);
21
+ }, [
22
+ u,
23
+ t,
24
+ c,
25
+ l
26
+ ])];
27
+ }
28
+ function i({ defaultProp: t, onChange: r }) {
29
+ let [i, a] = e.useState(t), o = e.useRef(i), s = e.useRef(r);
30
+ return n(() => {
31
+ s.current = r;
32
+ }, [r]), e.useEffect(() => {
33
+ o.current !== i && (s.current?.(i), o.current = i);
34
+ }, [i, o]), [
35
+ i,
36
+ a,
37
+ s
38
+ ];
39
+ }
40
+ function a(e) {
41
+ return typeof e == "function";
42
+ }
43
+ //#endregion
44
+ export { t as n, r as t };
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js");let t=require("react");t=e.r(t,1);var n=globalThis?.document?t.useLayoutEffect:()=>{},r=t.useInsertionEffect||n;function i({prop:e,defaultProp:n,onChange:r=()=>{},caller:i}){let[s,c,l]=a({defaultProp:n,onChange:r}),u=e!==void 0,d=u?e:s;{let n=t.useRef(e!==void 0);t.useEffect(()=>{let e=n.current;e!==u&&console.warn(`${i} is changing from ${e?`controlled`:`uncontrolled`} to ${u?`controlled`:`uncontrolled`}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),n.current=u},[u,i])}return[d,t.useCallback(t=>{if(u){let n=o(t)?t(e):t;n!==e&&l.current?.(n)}else c(t)},[u,e,c,l])]}function a({defaultProp:e,onChange:n}){let[i,a]=t.useState(e),o=t.useRef(i),s=t.useRef(n);return r(()=>{s.current=n},[n]),t.useEffect(()=>{o.current!==i&&(s.current?.(i),o.current=i)},[i,o]),[i,a,s]}function o(e){return typeof e==`function`}Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -0,0 +1,67 @@
1
+ import * as e from "react";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region node_modules/@radix-ui/react-context/dist/index.mjs
4
+ function n(n, i = []) {
5
+ let a = [];
6
+ function o(r, i) {
7
+ let o = e.createContext(i);
8
+ o.displayName = r + "Context";
9
+ let s = a.length;
10
+ a = [...a, i];
11
+ let c = (r) => {
12
+ let { scope: i, children: a, ...c } = r, l = i?.[n]?.[s] || o, u = e.useMemo(() => c, Object.values(c));
13
+ return /* @__PURE__ */ t(l.Provider, {
14
+ value: u,
15
+ children: a
16
+ });
17
+ };
18
+ c.displayName = r + "Provider";
19
+ function l(t, a, c = {}) {
20
+ let { optional: l = !1 } = c, u = a?.[n]?.[s] || o, d = e.useContext(u);
21
+ if (d) return d;
22
+ if (i !== void 0) return i;
23
+ if (!l) throw Error(`\`${t}\` must be used within \`${r}\``);
24
+ }
25
+ return [c, l];
26
+ }
27
+ let s = () => {
28
+ let t = a.map((t) => e.createContext(t));
29
+ return function(r) {
30
+ let i = r?.[n] || t;
31
+ return e.useMemo(() => ({ [`__scope${n}`]: {
32
+ ...r,
33
+ [n]: i
34
+ } }), [r, i]);
35
+ };
36
+ };
37
+ return s.scopeName = n, [o, r(s, ...i)];
38
+ }
39
+ function r(...t) {
40
+ let n = t[0];
41
+ if (t.length === 1) return n;
42
+ let r = () => {
43
+ let r = t.map((e) => ({
44
+ useScope: e(),
45
+ scopeName: e.scopeName
46
+ }));
47
+ return function(t) {
48
+ let i = r.reduce((e, { useScope: n, scopeName: r }) => {
49
+ let i = n(t)[`__scope${r}`];
50
+ return {
51
+ ...e,
52
+ ...i
53
+ };
54
+ }, {});
55
+ return e.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
56
+ };
57
+ };
58
+ return r.scopeName = n.scopeName, r;
59
+ }
60
+ typeof window < "u" && window.document && window.document.createElement;
61
+ function i(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
62
+ return function(r) {
63
+ if (e?.(r), n === !1 || !r || !r.defaultPrevented) return t?.(r);
64
+ };
65
+ }
66
+ //#endregion
67
+ export { n, i as t };
@@ -101,7 +101,8 @@ function f(e) {
101
101
  return t;
102
102
  }
103
103
  function p(e, t) {
104
- for (let n of e) if (!m(n, { upTo: t })) return n;
104
+ let n = typeof t.checkVisibility == "function" && t.checkVisibility({ checkVisibilityCSS: !0 });
105
+ for (let r of e) if (!(n ? !r.checkVisibility({ checkVisibilityCSS: !0 }) : m(r, { upTo: t }))) return r;
105
106
  }
106
107
  function m(e, { upTo: t }) {
107
108
  if (getComputedStyle(e).visibility === "hidden") return !0;
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.CIQdvun-.js"),i=require("./dist.CmRTDXGG.js"),a=require("./dist.C8NniehT.js");let o=require("react");o=e.r(o,1);let s=require("react/jsx-runtime"),c=require("react-dom");c=e.r(c,1);var l=`DismissableLayer`,u=`dismissableLayer.update`,d=`dismissableLayer.pointerDownOutside`,f=`dismissableLayer.focusOutside`,p,m=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),h=o.forwardRef((e,r)=>{let{disableOutsidePointerEvents:c=!1,deferPointerDownOutside:l=!1,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:h,onInteractOutside:g,onDismiss:_,...v}=e,y=o.useContext(m),[C,w]=o.useState(null),T=C?.ownerDocument??globalThis?.document,[,E]=o.useState({}),D=n.t(r,w),O=Array.from(y.layers),[k]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),A=k?O.indexOf(k):-1,j=C?O.indexOf(C):-1,M=y.layersWithOutsidePointerEventsDisabled.size>0,N=j>=A,P=o.useRef(!1),F=b(e=>{f?.(e),g?.(e),e.defaultPrevented||_?.()},{ownerDocument:T,deferPointerDownOutside:l,isDeferredPointerDownOutsideRef:P,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:o.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...y.branches].some(t=>t.contains(e));return N&&!t},[y.branches,N])}),I=x(e=>{if(l&&P.current)return;let t=e.target;[...y.branches].some(e=>e.contains(t))||(h?.(e),g?.(e),e.defaultPrevented||_?.())},T),L=C?j===O.length-1:!1,R=a.t(e=>{e.key===`Escape`&&(d?.(e),!e.defaultPrevented&&_&&(e.preventDefault(),_()))});return o.useEffect(()=>{if(L)return T.addEventListener(`keydown`,R,{capture:!0}),()=>T.removeEventListener(`keydown`,R,{capture:!0})},[T,L,R]),o.useEffect(()=>{if(C)return c&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(p=T.body.style.pointerEvents,T.body.style.pointerEvents=`none`),y.layersWithOutsidePointerEventsDisabled.add(C)),y.layers.add(C),S(),()=>{c&&(y.layersWithOutsidePointerEventsDisabled.delete(C),y.layersWithOutsidePointerEventsDisabled.size===0&&(T.body.style.pointerEvents=p))}},[C,T,c,y]),o.useEffect(()=>()=>{C&&(y.layers.delete(C),y.layersWithOutsidePointerEventsDisabled.delete(C),S())},[C,y]),o.useEffect(()=>{let e=()=>E({});return document.addEventListener(u,e),()=>document.removeEventListener(u,e)},[]),(0,s.jsx)(i.t.div,{...v,ref:D,style:{pointerEvents:M?N?`auto`:`none`:void 0,...e.style},onFocusCapture:t.t(e.onFocusCapture,I.onFocusCapture),onBlurCapture:t.t(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:t.t(e.onPointerDownCapture,F.onPointerDownCapture)})});h.displayName=l;var g=`DismissableLayerBranch`,_=o.forwardRef((e,t)=>{let r=o.useContext(m),a=o.useRef(null),c=n.t(t,a);return o.useEffect(()=>{let e=a.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,s.jsx)(i.t.div,{...e,ref:c})});_.displayName=g;function v(){let e=o.useContext(m),[t,n]=o.useState(null);return o.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}var y=()=>!0;function b(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:s,shouldHandlePointerDownOutside:c=y}=t,l=a.t(e),u=o.useRef(!1),f=o.useRef(!1),p=o.useRef(new Map),m=o.useRef(()=>{});return o.useEffect(()=>{function e(){f.current=!1,i.current=!1,p.current.clear()}function t(){return Array.from(p.current.values()).some(Boolean)}function a(e){if(!f.current)return;let t=e.target;t instanceof Node&&[...s].some(e=>e.contains(t))||p.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{f.current&&m.current()},0)}function o(e){f.current&&p.current.set(e.type,!1)}let h=a=>{if(a.target&&!u.current){let o=function(){n.removeEventListener(`click`,m.current);let r=t();e(),r||C(d,l,s,{discrete:!0})};if(!c(a.target)){n.removeEventListener(`click`,m.current),e(),u.current=!1;return}let s={originalEvent:a};f.current=!0,i.current=r&&a.button===0,p.current.clear(),!r||a.button!==0?o():(n.removeEventListener(`click`,m.current),m.current=o,n.addEventListener(`click`,m.current,{once:!0}))}else n.removeEventListener(`click`,m.current),e();u.current=!1},g=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of g)n.addEventListener(e,a,!0),n.addEventListener(e,o);let _=window.setTimeout(()=>{n.addEventListener(`pointerdown`,h)},0);return()=>{window.clearTimeout(_),n.removeEventListener(`pointerdown`,h),n.removeEventListener(`click`,m.current);for(let e of g)n.removeEventListener(e,a,!0),n.removeEventListener(e,o)}},[n,l,r,i,s,c]),{onPointerDownCapture:()=>u.current=!0}}function x(e,t=globalThis?.document){let n=a.t(e),r=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!r.current&&C(f,n,{originalEvent:e},{discrete:!1})};return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function S(){let e=new CustomEvent(u);document.dispatchEvent(e)}function C(e,t,n,{discrete:r}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?i.n(a,o):a.dispatchEvent(o)}var w=`Portal`,T=o.forwardRef((e,t)=>{let{container:n,...a}=e,[l,u]=o.useState(!1);r.n(()=>u(!0),[]);let d=n||l&&globalThis?.document?.body;return d?c.createPortal((0,s.jsx)(i.t.div,{...a,ref:t}),d):null});T.displayName=w,Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return T}});
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.DKOi9kq6.js"),i=require("./dist.CIQdvun-.js"),a=require("./dist.CmRTDXGG.js"),o=require("./dist.D4mQo5QB.js"),s=require("./dist.BQIeYu70.js"),c=require("./dist.CyhalHxz.js"),l=require("./dist.BC0-iqKU.js"),u=require("./es2015.D2emqwtq.js"),d=require("./dist.D5ataprQ.js");let f=require("react");f=e.r(f,1);let p=require("react/jsx-runtime");var m=`Popover`,[h,g]=t.n(m,[d.a]),_=d.a(),[v,y]=h(m),b=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:c=!1}=e,l=_(t),u=f.useRef(null),[h,g]=f.useState(!1),[y,b]=i.t({prop:r,defaultProp:a??!1,onChange:o,caller:m});return(0,p.jsx)(d.i,{...l,children:(0,p.jsx)(v,{scope:t,contentId:s.t(),triggerRef:u,open:y,onOpenChange:b,onOpenToggle:f.useCallback(()=>b(e=>!e),[b]),hasCustomAnchor:h,onCustomAnchorAdd:f.useCallback(()=>g(!0),[]),onCustomAnchorRemove:f.useCallback(()=>g(!1),[]),modal:c,children:n})})};b.displayName=m;var x=`PopoverAnchor`,S=f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=y(x,n),a=_(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:s}=i;return f.useEffect(()=>(o(),()=>s()),[o,s]),(0,p.jsx)(d.t,{...a,...r,ref:t})});S.displayName=x;var C=`PopoverTrigger`,w=f.forwardRef((e,r)=>{let{__scopePopover:i,...o}=e,s=y(C,i),c=_(i),l=n.t(r,s.triggerRef),u=(0,p.jsx)(a.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":z(s.open),...o,ref:l,onClick:t.t(e.onClick,s.onOpenToggle)});return s.hasCustomAnchor?u:(0,p.jsx)(d.t,{asChild:!0,...c,children:u})});w.displayName=C;var T=`PopoverPortal`,[E,D]=h(T,{forceMount:void 0}),O=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=y(T,t);return(0,p.jsx)(E,{scope:t,forceMount:n,children:(0,p.jsx)(o.t,{present:n||a.open,children:(0,p.jsx)(c.t,{asChild:!0,container:i,children:r})})})};O.displayName=T;var k=`PopoverContent`,A=f.forwardRef((e,t)=>{let n=D(k,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=y(k,e.__scopePopover);return(0,p.jsx)(o.t,{present:r||a.open,children:a.modal?(0,p.jsx)(M,{...i,ref:t}):(0,p.jsx)(N,{...i,ref:t})})});A.displayName=k;var j=r.n(`PopoverContent.RemoveScroll`),M=f.forwardRef((e,r)=>{let i=y(k,e.__scopePopover),a=f.useRef(null),o=n.t(r,a),s=f.useRef(!1);return f.useEffect(()=>{let e=a.current;if(e)return u.t(e)},[]),(0,p.jsx)(u.n,{as:j,allowPinchZoom:!0,children:(0,p.jsx)(P,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:t.t(e.onCloseAutoFocus,e=>{e.preventDefault(),s.current||i.triggerRef.current?.focus()}),onPointerDownOutside:t.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;s.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:t.t(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),N=f.forwardRef((e,t)=>{let n=y(k,e.__scopePopover),r=f.useRef(!1),i=f.useRef(!1);return(0,p.jsx)(P,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),P=f.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:h,...g}=e,v=y(k,n),b=_(n);return u.r(),(0,p.jsx)(l.t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,p.jsx)(c.n,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:h,onEscapeKeyDown:s,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>v.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,p.jsx)(d.r,{"data-state":z(v.open),role:`dialog`,id:v.contentId,...b,...g,ref:t,style:{...g.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})}),F=`PopoverClose`,I=f.forwardRef((e,n)=>{let{__scopePopover:r,...i}=e,o=y(F,r);return(0,p.jsx)(a.t.button,{type:`button`,...i,ref:n,onClick:t.t(e.onClick,()=>o.onOpenChange(!1))})});I.displayName=F;var L=`PopoverArrow`,R=f.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=_(n);return(0,p.jsx)(d.n,{...i,...r,ref:t})});R.displayName=L;function z(e){return e?`open`:`closed`}var B=b,V=S,H=w,U=O,W=A,G=I,K=R;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return V}});
@@ -1,18 +1,19 @@
1
- import { i as e, o as t, t as n } from "./dist.BovUpaIu.js";
2
- import { t as r } from "./dist.CwWM0zXK.js";
3
- import { n as i } from "./dist.BixLWWwb.js";
1
+ import { n as e, t } from "./dist.Cff8LOoN.js";
2
+ import { t as n } from "./dist.CwWM0zXK.js";
3
+ import { n as r } from "./dist.BixLWWwb.js";
4
+ import { t as i } from "./dist.CEJ-WCY_.js";
4
5
  import { t as a } from "./dist.CDZCWPu4.js";
5
- import { t as o } from "./dist.DSx7Feoc.js";
6
- import { t as s } from "./dist.0EAhIi1e.js";
7
- import { n as c, r as l, t as u } from "./dist.s6QukJK1.js";
8
- import { t as d } from "./dist.DuawELEr.js";
6
+ import { t as o } from "./dist.C8k7jQIp.js";
7
+ import { t as s } from "./dist.kg7EEYPp.js";
8
+ import { n as c, r as l, t as u } from "./dist.DrfVZqiO.js";
9
+ import { t as d } from "./dist.CwMFqhEQ.js";
9
10
  import { n as f, r as p, t as m } from "./es2015.ByVyszJo.js";
10
11
  import * as h from "react";
11
12
  import { Fragment as g, jsx as _ } from "react/jsx-runtime";
12
13
  //#region node_modules/@radix-ui/react-dialog/dist/index.mjs
13
- var v = "Dialog", [y, b] = t(v), [x, S] = y(v), C = (e) => {
14
- let { __scopeDialog: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = n({
15
- prop: i,
14
+ var v = "Dialog", [y, b] = e(v), [x, S] = y(v), C = (e) => {
15
+ let { __scopeDialog: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = i({
16
+ prop: r,
16
17
  defaultProp: a ?? !1,
17
18
  onChange: o,
18
19
  caller: v
@@ -28,12 +29,12 @@ var v = "Dialog", [y, b] = t(v), [x, S] = y(v), C = (e) => {
28
29
  onOpenChange: f,
29
30
  onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
30
31
  modal: c,
31
- children: r
32
+ children: n
32
33
  });
33
34
  };
34
35
  C.displayName = v;
35
- var w = "DialogTrigger", T = h.forwardRef((t, n) => {
36
- let { __scopeDialog: i, ...o } = t, s = S(w, i), c = r(n, s.triggerRef);
36
+ var w = "DialogTrigger", T = h.forwardRef((e, r) => {
37
+ let { __scopeDialog: i, ...o } = e, s = S(w, i), c = n(r, s.triggerRef);
37
38
  return /* @__PURE__ */ _(a.button, {
38
39
  type: "button",
39
40
  "aria-haspopup": "dialog",
@@ -42,7 +43,7 @@ var w = "DialogTrigger", T = h.forwardRef((t, n) => {
42
43
  "data-state": G(s.open),
43
44
  ...o,
44
45
  ref: c,
45
- onClick: e(t.onClick, s.onOpenToggle)
46
+ onClick: t(e.onClick, s.onOpenToggle)
46
47
  });
47
48
  });
48
49
  T.displayName = w;
@@ -73,8 +74,8 @@ var A = "DialogOverlay", j = h.forwardRef((e, t) => {
73
74
  }) : null;
74
75
  });
75
76
  j.displayName = A;
76
- var M = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
77
- let { __scopeDialog: n, ...i } = e, o = S(A, n), s = r(t, l());
77
+ var M = r("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
78
+ let { __scopeDialog: r, ...i } = e, o = S(A, r), s = n(t, l());
78
79
  return /* @__PURE__ */ _(f, {
79
80
  as: M,
80
81
  allowPinchZoom: !0,
@@ -103,24 +104,24 @@ var M = i("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
103
104
  });
104
105
  });
105
106
  F.displayName = P;
106
- var I = h.forwardRef((t, n) => {
107
- let i = S(P, t.__scopeDialog), a = h.useRef(null), o = r(n, i.contentRef, a);
107
+ var I = h.forwardRef((e, r) => {
108
+ let i = S(P, e.__scopeDialog), a = h.useRef(null), o = n(r, i.contentRef, a);
108
109
  return h.useEffect(() => {
109
110
  let e = a.current;
110
111
  if (e) return m(e);
111
112
  }, []), /* @__PURE__ */ _(R, {
112
- ...t,
113
+ ...e,
113
114
  ref: o,
114
115
  trapFocus: i.open,
115
116
  disableOutsidePointerEvents: i.open,
116
- onCloseAutoFocus: e(t.onCloseAutoFocus, (e) => {
117
+ onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
117
118
  e.preventDefault(), i.triggerRef.current?.focus();
118
119
  }),
119
- onPointerDownOutside: e(t.onPointerDownOutside, (e) => {
120
+ onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
120
121
  let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
121
122
  (t.button === 2 || n) && e.preventDefault();
122
123
  }),
123
- onFocusOutside: e(t.onFocusOutside, (e) => e.preventDefault())
124
+ onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault())
124
125
  });
125
126
  }), L = h.forwardRef((e, t) => {
126
127
  let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
@@ -176,13 +177,13 @@ var V = "DialogDescription", H = h.forwardRef((e, t) => {
176
177
  });
177
178
  });
178
179
  H.displayName = V;
179
- var U = "DialogClose", W = h.forwardRef((t, n) => {
180
- let { __scopeDialog: r, ...i } = t, o = S(U, r);
180
+ var U = "DialogClose", W = h.forwardRef((e, n) => {
181
+ let { __scopeDialog: r, ...i } = e, o = S(U, r);
181
182
  return /* @__PURE__ */ _(a.button, {
182
183
  type: "button",
183
184
  ...i,
184
185
  ref: n,
185
- onClick: e(t.onClick, () => o.onOpenChange(!1))
186
+ onClick: t(e.onClick, () => o.onOpenChange(!1))
186
187
  });
187
188
  });
188
189
  W.displayName = U;
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.CIQdvun-.js");let n=require("react");n=e.r(n,1);function r(e,t){return n.useReducer((e,n)=>t[e][n]??e,e)}var i=e=>{let{present:t,children:r}=e,i=a(t),o=typeof r==`function`?r({present:i.isPresent}):n.Children.only(r),c=s(i.ref,l(o));return typeof r==`function`||i.isPresent?n.cloneElement(o,{ref:c}):null};i.displayName=`Presence`;function a(e){let[i,a]=n.useState(),o=n.useRef(null),s=n.useRef(e),l=n.useRef(`none`),u=n.useRef(void 0),[d,f]=r(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return n.useEffect(()=>{d===`mounted`?(l.current=u.current??c(o.current),u.current=void 0):l.current=`none`},[d]),t.n(()=>{let t=o.current,n=s.current;if(n!==e){let r=l.current,i=c(t);e?(u.current=i,f(`MOUNT`)):i===`none`||t?.display===`none`?f(`UNMOUNT`):f(n&&r!==i?`ANIMATION_OUT`:`UNMOUNT`),s.current=e}},[e,f]),t.n(()=>{if(i){let e,t=i.ownerDocument.defaultView??window,n=n=>{let r=c(o.current).includes(CSS.escape(n.animationName));if(n.target===i&&r&&(f(`ANIMATION_END`),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode=`forwards`,e=t.setTimeout(()=>{i.style.animationFillMode===`forwards`&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=c(o.current))};return i.addEventListener(`animationstart`,r),i.addEventListener(`animationcancel`,n),i.addEventListener(`animationend`,n),()=>{t.clearTimeout(e),i.removeEventListener(`animationstart`,r),i.removeEventListener(`animationcancel`,n),i.removeEventListener(`animationend`,n)}}else f(`ANIMATION_END`)},[i,f]),{isPresent:[`mounted`,`unmountSuspended`].includes(d),ref:n.useCallback(e=>{if(e){let t=getComputedStyle(e);o.current=t,u.current=c(t)}else o.current=null;a(e)},[])}}function o(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function s(...e){let t=n.useRef(e);return t.current=e,n.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=o(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():o(n[e],null)}}},[])}function c(e){return e?.animationName||`none`}function l(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.CIQdvun-.js"),i=require("./dist.CmRTDXGG.js"),a=require("./dist.Bxqi8VAi.js"),o=require("./dist.C8NniehT.js");let s=require("react");s=e.r(s,1);let c=require("react/jsx-runtime"),l=require("react-dom");l=e.r(l,1);var u=[`top`,`right`,`bottom`,`left`],d=Math.min,f=Math.max,p=Math.round,m=Math.floor,h=e=>({x:e,y:e}),g={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _(e,t,n){return f(e,d(t,n))}function v(e,t){return typeof e==`function`?e(t):e}function y(e){return e.split(`-`)[0]}function b(e){return e.split(`-`)[1]}function x(e){return e===`x`?`y`:`x`}function S(e){return e===`y`?`height`:`width`}function C(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function w(e){return x(C(e))}function T(e,t,n){n===void 0&&(n=!1);let r=b(e),i=w(e),a=S(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=P(o)),[o,P(o)]}function E(e){let t=P(e);return[D(e),t,D(t)]}function D(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var O=[`left`,`right`],k=[`right`,`left`],A=[`top`,`bottom`],j=[`bottom`,`top`];function M(e,t,n){switch(e){case`top`:case`bottom`:return n?t?k:O:t?O:k;case`left`:case`right`:return t?A:j;default:return[]}}function N(e,t,n,r){let i=b(e),a=M(y(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(D)))),a}function P(e){let t=y(e);return g[t]+e.slice(t.length)}function F(e){return{top:0,right:0,bottom:0,left:0,...e}}function I(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:F(e)}function L(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function R(e,t,n){let{reference:r,floating:i}=e,a=C(t),o=w(t),s=S(o),c=y(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(b(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1);break}return p}async function z(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=v(t,e),p=I(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=L(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},b=L(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-b.top+p.top)/y.y,bottom:(b.bottom-h.bottom+p.bottom)/y.y,left:(h.left-b.left+p.left)/y.x,right:(b.right-h.right+p.right)/y.x}}var B=50,V=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:z},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=R(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<B&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=R(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=v(e,t)||{};if(l==null)return{};let f=I(u),p={x:n,y:r},m=w(i),h=S(m),g=await o.getDimensions(l),y=m===`y`,x=y?`top`:`left`,C=y?`bottom`:`right`,T=y?`clientHeight`:`clientWidth`,E=a.reference[h]+a.reference[m]-p[m]-a.floating[h],D=p[m]-a.reference[m],O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),k=O?O[T]:0;(!k||!await(o.isElement==null?void 0:o.isElement(O)))&&(k=s.floating[T]||a.floating[h]);let A=E/2-D/2,j=k/2-g[h]/2-1,M=d(f[x],j),N=d(f[C],j),P=M,F=k-g[h]-N,L=k/2-g[h]/2+A,R=_(P,L,F),z=!c.arrow&&b(i)!=null&&L!==R&&a.reference[h]/2-(L<P?M:N)-g[h]/2<0,B=z?L<P?L-P:L-F:0;return{[m]:p[m]+B,data:{[m]:R,centerOffset:L-R-B,...z&&{alignmentOffset:B}},reset:z}}}),te=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=v(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=y(r),_=C(o),b=y(o)===o,x=await(s.isRTL==null?void 0:s.isRTL(c.floating)),S=d||(b||!m?[P(o)]:E(o)),w=p!==`none`;!d&&w&&S.push(...N(o,m,p,x));let D=[o,...S],O=await s.detectOverflow(t,h),k=[],A=i.flip?.overflows||[];if(l&&k.push(O[g]),u){let e=T(r,a,x);k.push(O[e[0]],O[e[1]])}if(A=[...A,{placement:r,overflows:k}],!k.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=D[e];if(t&&(!(u===`alignment`&&_!==C(t))||A.every(e=>C(e.placement)===_?e.overflows[0]>0:!0)))return{data:{index:e,overflows:A},reset:{placement:t}};let n=A.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=A.filter(e=>{if(w){let t=C(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function ne(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function re(e){return u.some(t=>e[t]>=0)}var ie=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=v(e,t);switch(i){case`referenceHidden`:{let e=ne(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:re(e)}}}case`escaped`:{let e=ne(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:re(e)}}}default:return{}}}}},ae=new Set([`left`,`top`]);async function oe(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=y(n),s=b(n),c=C(n)===`y`,l=ae.has(o)?-1:1,u=a&&c?-1:1,d=v(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var se=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await oe(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},ce=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=v(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=C(y(i)),p=x(f),m=u[p],h=u[f];if(o){let e=p===`y`?`top`:`left`,t=p===`y`?`bottom`:`right`,n=m+d[e],r=m-d[t];m=_(n,m,r)}if(s){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=h+d[e],r=h-d[t];h=_(n,h,r)}let g=c.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:o,[f]:s}}}}}},le=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=v(e,t),u={x:n,y:r},d=C(i),f=x(d),p=u[f],m=u[d],h=v(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=ae.has(y(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},ue=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=v(e,t),u=await o.detectOverflow(t,l),p=y(i),m=b(i),h=C(i)===`y`,{width:g,height:_}=a.floating,x,S;p===`top`||p===`bottom`?(x=p,S=m===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(S=p,x=m===`end`?`top`:`bottom`);let w=_-u.top-u.bottom,T=g-u.left-u.right,E=d(_-u[x],w),D=d(g-u[S],T),O=!t.middlewareData.shift,k=E,A=D;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(A=T),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=w),O&&!m){let e=f(u.left,0),t=f(u.right,0),n=f(u.top,0),r=f(u.bottom,0);h?A=g-2*(e!==0||t!==0?e+t:f(u.left,u.right)):k=_-2*(n!==0||r!==0?n+r:f(u.top,u.bottom))}await c({...t,availableWidth:A,availableHeight:k});let j=await o.getDimensions(s.floating);return g!==j.width||_!==j.height?{reset:{rects:!0}}:{}}}};function de(){return typeof window<`u`}function H(e){return fe(e)?(e.nodeName||``).toLowerCase():`#document`}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function W(e){return((fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fe(e){return de()?e instanceof Node||e instanceof U(e).Node:!1}function G(e){return de()?e instanceof Element||e instanceof U(e).Element:!1}function K(e){return de()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function pe(e){return!de()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function me(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function he(e){return/^(table|td|th)$/.test(H(e))}function ge(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var _e=/transform|translate|scale|rotate|perspective|filter/,ve=/paint|layout|strict|content/,q=e=>!!e&&e!==`none`,ye;function be(e){let t=G(e)?Y(e):e;return q(t.transform)||q(t.translate)||q(t.scale)||q(t.rotate)||q(t.perspective)||!Se()&&(q(t.backdropFilter)||q(t.filter))||_e.test(t.willChange||``)||ve.test(t.contain||``)}function xe(e){let t=X(e);for(;K(t)&&!J(t);){if(be(t))return t;if(ge(t))return null;t=X(t)}return null}function Se(){return ye??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),ye}function J(e){return/^(html|body|#document)$/.test(H(e))}function Y(e){return U(e).getComputedStyle(e)}function Ce(e){return G(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(H(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||pe(e)&&e.host||W(e);return pe(t)?t.host:t}function we(e){let t=X(e);return J(t)?e.ownerDocument?e.ownerDocument.body:e.body:K(t)&&me(t)?t:we(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=we(e),i=r===e.ownerDocument?.body,a=U(r);if(i){let e=Te(a);return t.concat(a,a.visualViewport||[],me(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function Te(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ee(e){let t=Y(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=K(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=p(n)!==a||p(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function De(e){return G(e)?e:e.contextElement}function Q(e){let t=De(e);if(!K(t))return h(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=Ee(t),o=(a?p(n.width):n.width)/r,s=(a?p(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Oe=h(0);function ke(e){let t=U(e);return!Se()||!t.visualViewport?Oe:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ae(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==U(e)?!1:t}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=De(e),o=h(1);t&&(r?G(r)&&(o=Q(r)):o=Q(e));let s=Ae(a,n,r)?ke(a):h(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=U(a),t=r&&G(r)?U(r):r,n=e,i=Te(n);for(;i&&r&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=Y(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=U(i),i=Te(n)}}return L({width:u,height:d,x:c,y:l})}function je(e,t){let n=Ce(e).scrollLeft;return t?t.left+n:$(W(e)).left+n}function Me(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-je(e,n),y:n.top+t.scrollTop}}function Ne(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=W(r),s=t?ge(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=h(1),u=h(0),d=K(r);if((d||!d&&!a)&&((H(r)!==`body`||me(o))&&(c=Ce(r)),d)){let e=$(r);l=Q(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Me(o,c):h(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Pe(e){return Array.from(e.getClientRects())}function Fe(e){let t=W(e),n=Ce(e),r=e.ownerDocument.body,i=f(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=f(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+je(e),s=-n.scrollTop;return Y(r).direction===`rtl`&&(o+=f(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var Ie=25;function Le(e,t){let n=U(e),r=W(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=Se();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=je(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=Ie&&(a-=o)}else l<=Ie&&(a+=l);return{width:a,height:o,x:s,y:c}}function Re(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=K(e)?Q(e):h(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ze(e,t,n){let r;if(t===`viewport`)r=Le(e,n);else if(t===`document`)r=Fe(W(e));else if(G(t))r=Re(t,n);else{let n=ke(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return L(r)}function Be(e,t){let n=X(e);return n===t||!G(n)||J(n)?!1:Y(n).position===`fixed`||Be(n,t)}function Ve(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>G(e)&&H(e)!==`body`),i=null,a=Y(e).position===`fixed`,o=a?X(e):e;for(;G(o)&&!J(o);){let t=Y(o),n=be(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&(i.position===`absolute`||i.position===`fixed`)||me(o)&&!n&&Be(e,o))?r=r.filter(e=>e!==o):i=t,o=X(o)}return t.set(e,r),r}function He(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ge(t)?[]:Ve(t,this._c):[].concat(n),r],o=ze(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=ze(t,a[e],i);s=f(n.top,s),c=d(n.right,c),l=d(n.bottom,l),u=f(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Ue(e){let{width:t,height:n}=Ee(e);return{width:t,height:n}}function We(e,t,n){let r=K(t),i=W(t),a=n===`fixed`,o=$(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=h(0);function l(){c.x=je(i)}if(r||!r&&!a)if((H(t)!==`body`||me(i))&&(s=Ce(t)),r){let e=$(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();a&&!r&&i&&l();let u=i&&!r&&!a?Me(i,s):h(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function Ge(e){return Y(e).position===`static`}function Ke(e,t){if(!K(e)||Y(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return W(e)===n&&(n=n.ownerDocument.body),n}function qe(e,t){let n=U(e);if(ge(e))return n;if(!K(e)){let t=X(e);for(;t&&!J(t);){if(G(t)&&!Ge(t))return t;t=X(t)}return n}let r=Ke(e,t);for(;r&&he(r)&&Ge(r);)r=Ke(r,t);return r&&J(r)&&Ge(r)&&!be(r)?n:r||xe(e)||n}var Je=async function(e){let t=this.getOffsetParent||qe,n=this.getDimensions,r=await n(e.floating);return{reference:We(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ye(e){return Y(e).direction===`rtl`}var Xe={convertOffsetParentRelativeRectToViewportRelativeRect:Ne,getDocumentElement:W,getClippingRect:He,getOffsetParent:qe,getElementRects:Je,getClientRects:Pe,getDimensions:Ue,getScale:Q,isElement:G,isRTL:Ye};function Ze(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Qe(e,t){let n=null,r,i=W(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:p,width:h,height:g}=l;if(s||t(),!h||!g)return;let _=m(p),v=m(i.clientWidth-(u+h)),y=m(i.clientHeight-(p+g)),b=m(u),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:f(0,d(1,c))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(n!==c){if(!S)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Ze(l,e.getBoundingClientRect())&&o(),S=!1}try{n=new IntersectionObserver(C,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,x)}n.observe(e)}return o(!0),a}function $e(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=De(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Qe(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!Ze(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var et=se,tt=ce,nt=te,rt=ue,it=ie,at=ee,ot=le,st=(e,t,n)=>{let r=new Map,i={platform:Xe,...n},a={...i.platform,_c:r};return V(e,t,{...i,platform:a})},ct=typeof document<`u`?s.useLayoutEffect:function(){};function lt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!lt(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!lt(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function ut(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dt(e,t){let n=ut(e);return Math.round(t*n)/n}function ft(e){let t=s.useRef(e);return ct(()=>{t.current=e}),t}function pt(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:c=!0,whileElementsMounted:u,open:d}=e,[f,p]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);lt(m,r)||h(r);let[g,_]=s.useState(null),[v,y]=s.useState(null),b=s.useCallback(e=>{e!==w.current&&(w.current=e,_(e))},[]),x=s.useCallback(e=>{e!==T.current&&(T.current=e,y(e))},[]),S=a||g,C=o||v,w=s.useRef(null),T=s.useRef(null),E=s.useRef(f),D=u!=null,O=ft(u),k=ft(i),A=ft(d),j=s.useCallback(()=>{if(!w.current||!T.current)return;let e={placement:t,strategy:n,middleware:m};k.current&&(e.platform=k.current),st(w.current,T.current,e).then(e=>{let t={...e,isPositioned:A.current!==!1};M.current&&!lt(E.current,t)&&(E.current=t,l.flushSync(()=>{p(t)}))})},[m,t,n,k,A]);ct(()=>{d===!1&&E.current.isPositioned&&(E.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);let M=s.useRef(!1);ct(()=>(M.current=!0,()=>{M.current=!1}),[]),ct(()=>{if(S&&(w.current=S),C&&(T.current=C),S&&C){if(O.current)return O.current(S,C,j);j()}},[S,C,j,O,D]);let N=s.useMemo(()=>({reference:w,floating:T,setReference:b,setFloating:x}),[b,x]),P=s.useMemo(()=>({reference:S,floating:C}),[S,C]),F=s.useMemo(()=>{let e={position:n,left:0,top:0};if(!P.floating)return e;let t=dt(P.floating,f.x),r=dt(P.floating,f.y);return c?{...e,transform:`translate(`+t+`px, `+r+`px)`,...ut(P.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,c,P.floating,f.x,f.y]);return s.useMemo(()=>({...f,update:j,refs:N,elements:P,floatingStyles:F}),[f,j,N,P,F])}var mt=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:at({element:r.current,padding:i}).fn(n):r?at({element:r,padding:i}).fn(n):{}}}},ht=(e,t)=>{let n=et(e);return{name:n.name,fn:n.fn,options:[e,t]}},gt=(e,t)=>{let n=tt(e);return{name:n.name,fn:n.fn,options:[e,t]}},_t=(e,t)=>({fn:ot(e).fn,options:[e,t]}),vt=(e,t)=>{let n=nt(e);return{name:n.name,fn:n.fn,options:[e,t]}},yt=(e,t)=>{let n=rt(e);return{name:n.name,fn:n.fn,options:[e,t]}},bt=(e,t)=>{let n=it(e);return{name:n.name,fn:n.fn,options:[e,t]}},xt=(e,t)=>{let n=mt(e);return{name:n.name,fn:n.fn,options:[e,t]}},St=`Arrow`,Ct=s.forwardRef((e,t)=>{let{children:n,width:r=10,height:a=5,...o}=e;return(0,c.jsx)(i.t.svg,{...o,ref:t,width:r,height:a,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,c.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})});Ct.displayName=St;var wt=Ct,Tt=`Popper`,[Et,Dt]=t.n(Tt),[Ot,kt]=Et(Tt),At=e=>{let{__scopePopper:t,children:n}=e,[r,i]=s.useState(null),[a,o]=s.useState(void 0);return(0,c.jsx)(Ot,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})};At.displayName=Tt;var jt=`PopperAnchor`,Mt=s.forwardRef((e,t)=>{let{__scopePopper:r,virtualRef:a,...o}=e,l=kt(jt,r),u=s.useRef(null),d=l.onAnchorChange,f=n.t(t,s.useCallback(e=>{u.current=e,e&&d(e)},[d])),p=s.useRef(null);s.useEffect(()=>{if(!a)return;let e=p.current;p.current=a.current,e!==p.current&&d(p.current)});let m=l.placementState&&Ht(l.placementState),h=m?.[0],g=m?.[1];return a?null:(0,c.jsx)(i.t.div,{"data-radix-popper-side":h,"data-radix-popper-align":g,...o,ref:f})});Mt.displayName=jt;var Nt=`PopperContent`,[Pt,Ft]=Et(Nt),It=s.forwardRef((e,t)=>{let{__scopePopper:l,side:u=`bottom`,sideOffset:d=0,align:f=`center`,alignOffset:p=0,arrowPadding:m=0,avoidCollisions:h=!0,collisionBoundary:g=[],collisionPadding:_=0,sticky:v=`partial`,hideWhenDetached:y=!1,updatePositionStrategy:b=`optimized`,onPlaced:x,...S}=e,C=kt(Nt,l),[w,T]=s.useState(null),E=n.t(t,T),[D,O]=s.useState(null),k=a.t(D),A=k?.width??0,j=k?.height??0,M=u+(f===`center`?``:`-`+f),N=typeof _==`number`?_:{top:0,right:0,bottom:0,left:0,..._},P=Array.isArray(g)?g:[g],F=P.length>0,I={padding:N,boundary:P.filter(Bt),altBoundary:F},{refs:L,floatingStyles:R,placement:z,isPositioned:B,middlewareData:V}=pt({strategy:`fixed`,placement:M,whileElementsMounted:(...e)=>$e(...e,{animationFrame:b===`always`}),elements:{reference:C.anchor},middleware:[ht({mainAxis:d+j,alignmentAxis:p}),h&&gt({mainAxis:!0,crossAxis:!1,limiter:v===`partial`?_t():void 0,...I}),h&&vt({...I}),yt({...I,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)}}),D&&xt({element:D,padding:m}),Vt({arrowWidth:A,arrowHeight:j}),y&&bt({strategy:`referenceHidden`,...I,boundary:F?I.boundary:void 0})]}),ee=C.setPlacementState;r.n(()=>(ee(z),()=>{ee(void 0)}),[z,ee]);let[te,ne]=Ht(z),re=o.t(x);r.n(()=>{B&&re?.()},[B,re]);let ie=V.arrow?.x,ae=V.arrow?.y,oe=V.arrow?.centerOffset!==0,[se,ce]=s.useState();return r.n(()=>{w&&ce(window.getComputedStyle(w).zIndex)},[w]),(0,c.jsx)(`div`,{ref:L.setFloating,"data-radix-popper-content-wrapper":``,style:{...R,transform:B?R.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:se,"--radix-popper-transform-origin":[V.transformOrigin?.x,V.transformOrigin?.y].join(` `),...V.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,c.jsx)(Pt,{scope:l,placedSide:te,placedAlign:ne,onArrowChange:O,arrowX:ie,arrowY:ae,shouldHideArrow:oe,children:(0,c.jsx)(i.t.div,{"data-side":te,"data-align":ne,...S,ref:E,style:{...S.style,animation:B?void 0:`none`}})})})});It.displayName=Nt;var Lt=`PopperArrow`,Rt={top:`bottom`,right:`left`,bottom:`top`,left:`right`},zt=s.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=Ft(Lt,n),a=Rt[i.placedSide];return(0,c.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,c.jsx)(wt,{...r,ref:t,style:{...r.style,display:`block`}})})});zt.displayName=Lt;function Bt(e){return e!==null}var Vt=e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Ht(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function Ht(e){let[t,n=`center`]=e.split(`-`);return[t,n]}var Ut=At,Wt=Mt,Gt=It,Kt=zt;Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return Ut}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Wt}});
@@ -1,19 +1,20 @@
1
- import { i as e, o as t, t as n } from "./dist.BovUpaIu.js";
2
- import { t as r } from "./dist.CwWM0zXK.js";
3
- import { n as i } from "./dist.BixLWWwb.js";
1
+ import { n as e, t } from "./dist.Cff8LOoN.js";
2
+ import { t as n } from "./dist.CwWM0zXK.js";
3
+ import { n as r } from "./dist.BixLWWwb.js";
4
+ import { t as i } from "./dist.CEJ-WCY_.js";
4
5
  import { t as a } from "./dist.CDZCWPu4.js";
5
- import { t as o } from "./dist.DSx7Feoc.js";
6
- import { t as s } from "./dist.0EAhIi1e.js";
7
- import { n as c, t as l } from "./dist.s6QukJK1.js";
8
- import { t as u } from "./dist.DuawELEr.js";
6
+ import { t as o } from "./dist.C8k7jQIp.js";
7
+ import { t as s } from "./dist.kg7EEYPp.js";
8
+ import { n as c, t as l } from "./dist.DrfVZqiO.js";
9
+ import { t as u } from "./dist.CwMFqhEQ.js";
9
10
  import { n as d, r as f, t as p } from "./es2015.ByVyszJo.js";
10
- import { a as m, i as h, n as g, r as _, t as v } from "./dist.DAQtqq8Q.js";
11
+ import { a as m, i as h, n as g, r as _, t as v } from "./dist.BskID78S.js";
11
12
  import * as y from "react";
12
13
  import { jsx as b } from "react/jsx-runtime";
13
14
  //#region node_modules/@radix-ui/react-popover/dist/index.mjs
14
- var x = "Popover", [S, C] = t(x, [m]), w = m(), [T, E] = S(x), D = (e) => {
15
- let { __scopePopover: t, children: r, open: i, defaultOpen: a, onOpenChange: o, modal: c = !1 } = e, l = w(t), u = y.useRef(null), [d, f] = y.useState(!1), [p, m] = n({
16
- prop: i,
15
+ var x = "Popover", [S, C] = e(x, [m]), w = m(), [T, E] = S(x), D = (e) => {
16
+ let { __scopePopover: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !1 } = e, l = w(t), u = y.useRef(null), [d, f] = y.useState(!1), [p, m] = i({
17
+ prop: r,
17
18
  defaultProp: a ?? !1,
18
19
  onChange: o,
19
20
  caller: x
@@ -31,7 +32,7 @@ var x = "Popover", [S, C] = t(x, [m]), w = m(), [T, E] = S(x), D = (e) => {
31
32
  onCustomAnchorAdd: y.useCallback(() => f(!0), []),
32
33
  onCustomAnchorRemove: y.useCallback(() => f(!1), []),
33
34
  modal: c,
34
- children: r
35
+ children: n
35
36
  })
36
37
  });
37
38
  };
@@ -45,8 +46,8 @@ var O = "PopoverAnchor", k = y.forwardRef((e, t) => {
45
46
  });
46
47
  });
47
48
  k.displayName = O;
48
- var A = "PopoverTrigger", j = y.forwardRef((t, n) => {
49
- let { __scopePopover: i, ...o } = t, s = E(A, i), c = w(i), l = r(n, s.triggerRef), u = /* @__PURE__ */ b(a.button, {
49
+ var A = "PopoverTrigger", j = y.forwardRef((e, r) => {
50
+ let { __scopePopover: i, ...o } = e, s = E(A, i), c = w(i), l = n(r, s.triggerRef), u = /* @__PURE__ */ b(a.button, {
50
51
  type: "button",
51
52
  "aria-haspopup": "dialog",
52
53
  "aria-expanded": s.open,
@@ -54,7 +55,7 @@ var A = "PopoverTrigger", j = y.forwardRef((t, n) => {
54
55
  "data-state": K(s.open),
55
56
  ...o,
56
57
  ref: l,
57
- onClick: e(t.onClick, s.onOpenToggle)
58
+ onClick: t(e.onClick, s.onOpenToggle)
58
59
  });
59
60
  return s.hasCustomAnchor ? u : /* @__PURE__ */ b(v, {
60
61
  asChild: !0,
@@ -93,8 +94,8 @@ var I = "PopoverContent", L = y.forwardRef((e, t) => {
93
94
  });
94
95
  });
95
96
  L.displayName = I;
96
- var R = i("PopoverContent.RemoveScroll"), z = y.forwardRef((t, n) => {
97
- let i = E(I, t.__scopePopover), a = y.useRef(null), o = r(n, a), s = y.useRef(!1);
97
+ var R = r("PopoverContent.RemoveScroll"), z = y.forwardRef((e, r) => {
98
+ let i = E(I, e.__scopePopover), a = y.useRef(null), o = n(r, a), s = y.useRef(!1);
98
99
  return y.useEffect(() => {
99
100
  let e = a.current;
100
101
  if (e) return p(e);
@@ -102,18 +103,18 @@ var R = i("PopoverContent.RemoveScroll"), z = y.forwardRef((t, n) => {
102
103
  as: R,
103
104
  allowPinchZoom: !0,
104
105
  children: /* @__PURE__ */ b(V, {
105
- ...t,
106
+ ...e,
106
107
  ref: o,
107
108
  trapFocus: i.open,
108
109
  disableOutsidePointerEvents: !0,
109
- onCloseAutoFocus: e(t.onCloseAutoFocus, (e) => {
110
+ onCloseAutoFocus: t(e.onCloseAutoFocus, (e) => {
110
111
  e.preventDefault(), s.current || i.triggerRef.current?.focus();
111
112
  }),
112
- onPointerDownOutside: e(t.onPointerDownOutside, (e) => {
113
+ onPointerDownOutside: t(e.onPointerDownOutside, (e) => {
113
114
  let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
114
115
  s.current = r;
115
116
  }, { checkForDefaultPrevented: !1 }),
116
- onFocusOutside: e(t.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
117
+ onFocusOutside: t(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
117
118
  })
118
119
  });
119
120
  }), B = y.forwardRef((e, t) => {
@@ -167,13 +168,13 @@ var R = i("PopoverContent.RemoveScroll"), z = y.forwardRef((t, n) => {
167
168
  })
168
169
  })
169
170
  });
170
- }), H = "PopoverClose", U = y.forwardRef((t, n) => {
171
- let { __scopePopover: r, ...i } = t, o = E(H, r);
171
+ }), H = "PopoverClose", U = y.forwardRef((e, n) => {
172
+ let { __scopePopover: r, ...i } = e, o = E(H, r);
172
173
  return /* @__PURE__ */ b(a.button, {
173
174
  type: "button",
174
175
  ...i,
175
176
  ref: n,
176
- onClick: e(t.onClick, () => o.onOpenChange(!1))
177
+ onClick: t(e.onClick, () => o.onOpenChange(!1))
177
178
  });
178
179
  });
179
180
  U.displayName = H;
@@ -0,0 +1 @@
1
+ const e=require("./rolldown-runtime.mLOUI7ql.js"),t=require("./dist.B8tpQk-4.js"),n=require("./dist.BWsA5f1f.js"),r=require("./dist.DKOi9kq6.js"),i=require("./dist.CIQdvun-.js"),a=require("./dist.CmRTDXGG.js"),o=require("./dist.D4mQo5QB.js"),s=require("./dist.BQIeYu70.js"),c=require("./dist.CyhalHxz.js"),l=require("./dist.BC0-iqKU.js"),u=require("./es2015.D2emqwtq.js");let d=require("react");d=e.r(d,1);let f=require("react/jsx-runtime");var p=`Dialog`,[m,h]=t.n(p),[g,_]=m(p),v=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:o,modal:c=!0}=e,l=d.useRef(null),u=d.useRef(null),[m,h]=i.t({prop:r,defaultProp:a??!1,onChange:o,caller:p});return(0,f.jsx)(g,{scope:t,triggerRef:l,contentRef:u,contentId:s.t(),titleId:s.t(),descriptionId:s.t(),open:m,onOpenChange:h,onOpenToggle:d.useCallback(()=>h(e=>!e),[h]),modal:c,children:n})};v.displayName=p;var y=`DialogTrigger`,b=d.forwardRef((e,r)=>{let{__scopeDialog:i,...o}=e,s=_(y,i),c=n.t(r,s.triggerRef);return(0,f.jsx)(a.t.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":B(s.open),...o,ref:c,onClick:t.t(e.onClick,s.onOpenToggle)})});b.displayName=y;var x=`DialogPortal`,[S,C]=m(x,{forceMount:void 0}),w=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=_(x,t);return(0,f.jsx)(S,{scope:t,forceMount:n,children:d.Children.map(r,e=>(0,f.jsx)(o.t,{present:n||a.open,children:(0,f.jsx)(c.t,{asChild:!0,container:i,children:e})}))})};w.displayName=x;var T=`DialogOverlay`,E=d.forwardRef((e,t)=>{let n=C(T,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_(T,e.__scopeDialog);return a.modal?(0,f.jsx)(o.t,{present:r||a.open,children:(0,f.jsx)(O,{...i,ref:t})}):null});E.displayName=T;var D=r.n(`DialogOverlay.RemoveScroll`),O=d.forwardRef((e,t)=>{let{__scopeDialog:r,...i}=e,o=_(T,r),s=n.t(t,c.r());return(0,f.jsx)(u.n,{as:D,allowPinchZoom:!0,shards:[o.contentRef],children:(0,f.jsx)(a.t.div,{"data-state":B(o.open),...i,ref:s,style:{pointerEvents:`auto`,...i.style}})})}),k=`DialogContent`,A=d.forwardRef((e,t)=>{let n=C(k,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=_(k,e.__scopeDialog);return(0,f.jsx)(o.t,{present:r||a.open,children:a.modal?(0,f.jsx)(j,{...i,ref:t}):(0,f.jsx)(M,{...i,ref:t})})});A.displayName=k;var j=d.forwardRef((e,r)=>{let i=_(k,e.__scopeDialog),a=d.useRef(null),o=n.t(r,i.contentRef,a);return d.useEffect(()=>{let e=a.current;if(e)return u.t(e)},[]),(0,f.jsx)(N,{...e,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,onCloseAutoFocus:t.t(e.onCloseAutoFocus,e=>{e.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:t.t(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:t.t(e.onFocusOutside,e=>e.preventDefault())})}),M=d.forwardRef((e,t)=>{let n=_(k,e.__scopeDialog),r=d.useRef(!1),i=d.useRef(!1);return(0,f.jsx)(N,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})}),N=d.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=_(k,n);return u.r(),(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(l.t,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,f.jsx)(c.n,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":B(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})}),P=`DialogTitle`,F=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_(P,n);return(0,f.jsx)(a.t.h2,{id:i.titleId,...r,ref:t})});F.displayName=P;var I=`DialogDescription`,L=d.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=_(I,n);return(0,f.jsx)(a.t.p,{id:i.descriptionId,...r,ref:t})});L.displayName=I;var R=`DialogClose`,z=d.forwardRef((e,n)=>{let{__scopeDialog:r,...i}=e,o=_(R,r);return(0,f.jsx)(a.t.button,{type:`button`,...i,ref:n,onClick:t.t(e.onClick,()=>o.onOpenChange(!1))})});z.displayName=R;function B(e){return e?`open`:`closed`}Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return E}}),Object.defineProperty(exports,"c",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return L}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return z}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return w}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return F}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return v}});