@knime/jsonforms 0.1.7 → 1.0.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 (223) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +71 -70
  3. package/dist/AnyOfTwinlist-B_ZhgekG.js +20 -0
  4. package/dist/BaseButton-arvXMjXG.js +112 -0
  5. package/dist/Button-Bc51Uur8.js +83 -0
  6. package/dist/Checkbox-BxPISyW3.js +75 -0
  7. package/dist/CheckboxControl-B-RyvD0K.js +42 -0
  8. package/dist/{Checkboxes-C6FkTqJJ.js → Checkboxes-COtqblKj.js} +11 -10
  9. package/dist/CheckboxesControl-YyKWzrxj.js +38 -0
  10. package/dist/ColumnFilter-bO-fKaHD.js +22 -0
  11. package/dist/ColumnSelect-D0vqxZ2B.js +65 -0
  12. package/dist/{ComboBoxControl-ZCl7sHRN.js → ComboBoxControl-CLL5eRHX.js} +127 -126
  13. package/dist/DateControl-v0qHckKz.js +27 -0
  14. package/dist/DateTimeControl-COnMFfMd.js +47 -0
  15. package/dist/DateTimeInput-ltP7o2TE.js +11059 -0
  16. package/dist/Dropdown-By1NMrXZ.js +691 -0
  17. package/dist/{DropdownControl-BFnea4SN.js → DropdownControl-Eb3G4P0X.js} +1 -1
  18. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-Cfmqdv7v.js +223 -0
  19. package/dist/ErrorMessage-fuIcc8xw.js +23 -0
  20. package/dist/FunctionButton-DBec3TQi.js +75 -0
  21. package/dist/HorizontalLayout-Dsv1qfyL.js +30 -0
  22. package/dist/InputField-BKH5rtn3.js +148 -0
  23. package/dist/IntegerControl-CBuOHc4B.js +18 -0
  24. package/dist/{IntervalControl-CsuXbPwA.js → IntervalControl-JL6QGHT2.js} +214 -216
  25. package/dist/{MultiselectListBox-BWKtEC8t.js → MultiselectListBox-Dv5n9S3f.js} +4 -3
  26. package/dist/NameFilter-oHBcHQTY.js +22 -0
  27. package/dist/NumberControl-Cwf50Oe-.js +18 -0
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-C_g1bVI2.js +42 -0
  29. package/dist/{NumberInput-84bJjfB4.js → NumberInput-DERn3NyL.js} +9 -7
  30. package/dist/OneOfDropdown-kY3PQFJX.js +32 -0
  31. package/dist/RadioControl-DsVkQLSI.js +22 -0
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-BsA00YLx.js +106 -0
  33. package/dist/{RichTextControl-DgdPhNzf.js → RichTextControl-DXH5XiAI.js} +4595 -3481
  34. package/dist/SectionLayout-BDgtf57K.js +43 -0
  35. package/dist/SimpleButtonControl-6d7wNl3P.js +58 -0
  36. package/dist/SimpleTwinlistControl-CJyR3gN8.js +48 -0
  37. package/dist/SortListControl-On9GHu_U.js +356 -0
  38. package/dist/TextAreaControl-DF_pLD80.js +108 -0
  39. package/dist/TextControl-BTZ4ONmV.js +4 -0
  40. package/dist/TextControl.vue_vue_type_script_setup_true_lang-CYfvYMWm.js +65 -0
  41. package/dist/{TimeControl-D07XI-Sl.js → TimeControl-D2j2e_nC.js} +122 -124
  42. package/dist/TwinlistControl-DcFpZrni.js +553 -0
  43. package/dist/{TwinlistLoadingInfo-DHKwC-WM.js → TwinlistLoadingInfo-CTVlN9EZ.js} +183 -175
  44. package/dist/{ValueSwitch-DXmeJXda.js → ValueSwitch-CpE1f4ie.js} +1 -1
  45. package/dist/ValueSwitchControl-BQFL8H6P.js +18 -0
  46. package/dist/VerticalLayout-D1KXulG4.js +30 -0
  47. package/dist/{VerticalLayoutBase-CI2PQj0c.js → VerticalLayoutBase-D-NdtOho.js} +2 -2
  48. package/dist/VerticalLayoutBase.vue_vue_type_style_index_0_scoped_03d90ec1_lang-BmCXzwjJ.js +13201 -0
  49. package/dist/_baseAssignValue-C56BMUo_.js +19 -0
  50. package/dist/_baseEach-1sO8_8tT.js +31 -0
  51. package/dist/_baseIsEqual-d71B2UwX.js +248 -0
  52. package/dist/_baseIteratee-BgB8cpN8.js +104 -0
  53. package/dist/_getTag-BiNJdVyP.js +314 -0
  54. package/dist/arrow-dropdown-DjUxzjqC.js +17 -0
  55. package/dist/close-h7XT0ja0.js +17 -0
  56. package/dist/floating-ui.vue.esm-CDpUY3-t.js +986 -0
  57. package/dist/getPossibleValuesFromUiSchema-BFJtj-id.js +40 -0
  58. package/dist/index-BrIvBSNK-BRWnkVln.js +685 -0
  59. package/dist/index-C1PjXAJX.js +17 -0
  60. package/dist/index-Cp7Xre_V.js +331 -0
  61. package/dist/isObject-B53jY8Qg.js +7 -0
  62. package/dist/isSymbol-DLKDpjGl.js +8 -0
  63. package/dist/knime-jsonforms.css +1 -1
  64. package/dist/knime-jsonforms.d.ts +2 -0
  65. package/dist/knime-jsonforms.js +119 -3
  66. package/dist/magic-string.es-DFyz70Kz.js +860 -0
  67. package/dist/popper-1JCni0RT.js +907 -0
  68. package/dist/reload-BhzcZRFp.js +17 -0
  69. package/dist/src/JsonFormsDialog.vue.d.ts +50 -0
  70. package/dist/src/constants/index.d.ts +2 -0
  71. package/dist/src/constants/inputFormats.d.ts +25 -0
  72. package/dist/src/constants/priorityRanks.d.ts +4 -0
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +31 -0
  74. package/dist/src/higherOrderComponents/control/addLabel.d.ts +6 -0
  75. package/dist/src/higherOrderComponents/control/controlToRenderer.d.ts +6 -0
  76. package/dist/src/higherOrderComponents/control/handleVisibility.d.ts +2 -0
  77. package/dist/src/higherOrderComponents/control/index.d.ts +7 -0
  78. package/dist/src/higherOrderComponents/control/types.d.ts +36 -0
  79. package/dist/src/higherOrderComponents/control/util.d.ts +44 -0
  80. package/dist/src/higherOrderComponents/index.d.ts +3 -0
  81. package/dist/src/higherOrderComponents/layout/handleVisibility.d.ts +2 -0
  82. package/dist/src/higherOrderComponents/layout/index.d.ts +4 -0
  83. package/dist/src/higherOrderComponents/layout/layoutToRenderer.d.ts +6 -0
  84. package/dist/src/higherOrderComponents/layout/types.d.ts +28 -0
  85. package/dist/src/higherOrderComponents/layout/util.d.ts +25 -0
  86. package/dist/src/higherOrderComponents/types.d.ts +25 -0
  87. package/dist/src/index.d.ts +9 -0
  88. package/dist/src/layoutComponents/Form.vue.d.ts +10 -0
  89. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +12 -0
  90. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +21 -0
  91. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +12 -0
  92. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +26 -0
  93. package/dist/src/layoutComponents/index.d.ts +3 -0
  94. package/dist/src/loading/LoadingDialog.vue.d.ts +2 -0
  95. package/dist/src/renderers/checkboxRenderer.d.ts +192 -0
  96. package/dist/src/renderers/checkboxesRenderer.d.ts +7 -0
  97. package/dist/src/renderers/columnFilterRenderer.d.ts +5 -0
  98. package/dist/src/renderers/columnSelectRenderer.d.ts +209 -0
  99. package/dist/src/renderers/comboBoxRenderer.d.ts +6 -0
  100. package/dist/src/renderers/dateTimeRenderer.d.ts +5 -0
  101. package/dist/src/renderers/defaultRenderers.d.ts +1898 -0
  102. package/dist/src/renderers/dropdownRenderer.d.ts +253 -0
  103. package/dist/src/renderers/fallbackRenderers.d.ts +649 -0
  104. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +48 -0
  105. package/dist/src/renderers/index.d.ts +1 -0
  106. package/dist/src/renderers/integerRenderer.d.ts +5 -0
  107. package/dist/src/renderers/intervalRenderer.d.ts +5 -0
  108. package/dist/src/renderers/localDateRenderer.d.ts +5 -0
  109. package/dist/src/renderers/localTimeRenderer.d.ts +5 -0
  110. package/dist/src/renderers/nameFilterRenderer.d.ts +5 -0
  111. package/dist/src/renderers/numberRenderer.d.ts +5 -0
  112. package/dist/src/renderers/radioRenderer.d.ts +5 -0
  113. package/dist/src/renderers/richTextRenderer.d.ts +5 -0
  114. package/dist/src/renderers/sectionLayoutRenderer.d.ts +108 -0
  115. package/dist/src/renderers/simpleButtonRenderer.d.ts +121 -0
  116. package/dist/src/renderers/sortListRenderer.d.ts +288 -0
  117. package/dist/src/renderers/textAreaRenderer.d.ts +5 -0
  118. package/dist/src/renderers/textMessageRenderer.d.ts +89 -0
  119. package/dist/src/renderers/textRenderer.d.ts +193 -0
  120. package/dist/src/renderers/twinlistRenderer.d.ts +13 -0
  121. package/dist/src/renderers/valueSwitchRenderer.d.ts +5 -0
  122. package/dist/src/renderers/verticalLayoutRenderer.d.ts +94 -0
  123. package/dist/src/types/ChoicesUiSchema.d.ts +21 -0
  124. package/dist/src/types/Control.d.ts +2 -0
  125. package/dist/src/types/alert.d.ts +5 -0
  126. package/dist/src/types/provided.d.ts +25 -0
  127. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +22 -0
  128. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +12 -0
  129. package/dist/src/uiComponents/ColumnSelect.vue.d.ts +26 -0
  130. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +12 -0
  131. package/dist/src/uiComponents/DateControl.vue.d.ts +12 -0
  132. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +12 -0
  133. package/dist/src/uiComponents/DropdownControl.vue.d.ts +52 -0
  134. package/dist/src/uiComponents/DynamicIcon.vue.d.ts +16 -0
  135. package/dist/src/uiComponents/ErrorMessage.vue.d.ts +23 -0
  136. package/dist/src/uiComponents/IntegerControl.vue.d.ts +12 -0
  137. package/dist/src/uiComponents/IntervalControl.vue.d.ts +12 -0
  138. package/dist/src/uiComponents/NumberControl.vue.d.ts +12 -0
  139. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +19 -0
  140. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +23 -0
  141. package/dist/src/uiComponents/RadioControl.vue.d.ts +12 -0
  142. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +19 -0
  143. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +121 -0
  144. package/dist/src/uiComponents/SortListControl.vue.d.ts +93 -0
  145. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +12 -0
  146. package/dist/src/uiComponents/TextControl.vue.d.ts +23 -0
  147. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +12 -0
  148. package/dist/src/uiComponents/TimeControl.vue.d.ts +12 -0
  149. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +12 -0
  150. package/dist/src/uiComponents/composables/useHideOnNull.d.ts +28 -0
  151. package/dist/src/uiComponents/composables/useProvidedState.d.ts +3 -0
  152. package/dist/src/uiComponents/index.d.ts +4 -0
  153. package/dist/src/uiComponents/loading/LoadingDropdown.vue.d.ts +12 -0
  154. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +2 -0
  155. package/dist/src/uiComponents/loading/types/LoadingDropdownProps.d.ts +8 -0
  156. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +29 -0
  157. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +12 -0
  158. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +12 -0
  159. package/dist/src/uiComponents/twinlist/ColumnFilter.vue.d.ts +13 -0
  160. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +13 -0
  161. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +109 -0
  162. package/dist/src/uiComponents/twinlist/TwinlistControl.vue.d.ts +67 -0
  163. package/dist/src/uiComponents/twinlist/useUnknownValuesInTwinlist.d.ts +19 -0
  164. package/dist/src/utils/getFlattenedSettings.d.ts +5 -0
  165. package/dist/src/utils/getPossibleValuesFromUiSchema.d.ts +10 -0
  166. package/dist/src/utils/index.d.ts +15 -0
  167. package/dist/src/utils/inject.d.ts +3 -0
  168. package/dist/src/utils/localTimeUtils.d.ts +16 -0
  169. package/dist/svgWithTitle-zrGi2kyc.js +18 -0
  170. package/dist/testUtils/component.d.ts +190 -0
  171. package/dist/testUtils/index.d.ts +2 -0
  172. package/dist/testUtils/renderer.d.ts +6 -0
  173. package/dist/testing.d.ts +2 -0
  174. package/dist/testing.js +18889 -0
  175. package/dist/toString-C9vll-oa.js +26 -0
  176. package/dist/useSearch-hpyYQ_6y.js +74 -0
  177. package/package.json +11 -7
  178. package/dist/AnyOfTwinlist-BAbzoFfn.js +0 -17
  179. package/dist/ArrayLayout-Cfdlkm_T.js +0 -487
  180. package/dist/ButtonControl-yAb2GdQI.js +0 -127
  181. package/dist/CheckboxControl-Ck45Jycu.js +0 -50
  182. package/dist/CheckboxesControl-Xx9tpOL6.js +0 -39
  183. package/dist/ColumnFilter-u7yVpuFC.js +0 -17
  184. package/dist/ColumnSelect-DfXHTA0Z.js +0 -60
  185. package/dist/CredentialsControl-D1Te47JG.js +0 -20
  186. package/dist/CredentialsControlBase-Dqhh-4hT.js +0 -110
  187. package/dist/DateControl-CuV2lKvs.js +0 -30
  188. package/dist/DateTimeControl-BDZ18Hzl.js +0 -4
  189. package/dist/DropdownControl.vue_vue_type_script_setup_true_lang-BRWvAXuk.js +0 -171
  190. package/dist/DynamicValuesControl-BgNPwoHm.js +0 -127
  191. package/dist/FileChooserControl-HX_GjlNB.js +0 -605
  192. package/dist/FileExplorerTab-FjmnUl9M.js +0 -3951
  193. package/dist/HorizontalLayout-BrHkxvnP.js +0 -39
  194. package/dist/IntegerControl-Dxk1Y8LA.js +0 -13
  195. package/dist/LayoutComponentWrapper-VvzxL4qE.js +0 -36
  196. package/dist/LegacyCredentialsControl-p5U7Vp0h.js +0 -62
  197. package/dist/LocalFileChooserControl-Cr0A0dg6.js +0 -57
  198. package/dist/MenuItems.vue_vue_type_style_index_0_lang-BiJVA2Wt.js +0 -464
  199. package/dist/NameFilter-CsfBC6e2.js +0 -17
  200. package/dist/NodeDialog.vue.d.ts +0 -8
  201. package/dist/NumberControl-BJCFqjn3.js +0 -13
  202. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-DkAPaKAi.js +0 -43
  203. package/dist/OneOfDropdown-CBLlPlxh.js +0 -15
  204. package/dist/RadioControl-BZEV6NYx.js +0 -13
  205. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DvA87Y4C.js +0 -128
  206. package/dist/SectionLayout-DtVREvcv.js +0 -54
  207. package/dist/SimpleButtonControl-D2kCPiU9.js +0 -59
  208. package/dist/SimpleTwinlistControl-D6E8DEoD.js +0 -68
  209. package/dist/SortListControl-DcW5Ofs5.js +0 -316
  210. package/dist/TextAreaControl-DTw_oBDS.js +0 -111
  211. package/dist/TextControl-BlfySQDC.js +0 -49
  212. package/dist/TwinlistControl-BqoP2Kbq.js +0 -587
  213. package/dist/ValueSwitchControl-CyDbUKLv.js +0 -13
  214. package/dist/VennDiagramLayout-DXH6CUzc.js +0 -104
  215. package/dist/VerticalLayout-CTFSrGS8.js +0 -39
  216. package/dist/arrow-up-Dsq3EgtE.js +0 -30
  217. package/dist/floating-ui.vue.esm-D_FlISFP.js +0 -94
  218. package/dist/getFlattenedSettings-D64OwqpI.js +0 -7
  219. package/dist/index-1mTLieVA.js +0 -32714
  220. package/dist/index.d.ts +0 -3
  221. package/dist/layoutComponents/Form.vue.d.ts +0 -2
  222. package/dist/link-BA69Hfx6.js +0 -17
  223. package/dist/loading/LoadingDialog.vue.d.ts +0 -2
@@ -0,0 +1,986 @@
1
+ import { computed as D, unref as Y, ref as q, shallowRef as Vt, watch as rt, getCurrentScope as Bt, onScopeDispose as Nt, shallowReadonly as _ } from "vue";
2
+ const J = Math.min, M = Math.max, Q = Math.round, G = Math.floor, P = (t) => ({
3
+ x: t,
4
+ y: t
5
+ }), Wt = {
6
+ left: "right",
7
+ right: "left",
8
+ bottom: "top",
9
+ top: "bottom"
10
+ }, _t = {
11
+ start: "end",
12
+ end: "start"
13
+ };
14
+ function pt(t, e, n) {
15
+ return M(t, J(e, n));
16
+ }
17
+ function et(t, e) {
18
+ return typeof t == "function" ? t(e) : t;
19
+ }
20
+ function V(t) {
21
+ return t.split("-")[0];
22
+ }
23
+ function nt(t) {
24
+ return t.split("-")[1];
25
+ }
26
+ function Rt(t) {
27
+ return t === "x" ? "y" : "x";
28
+ }
29
+ function At(t) {
30
+ return t === "y" ? "height" : "width";
31
+ }
32
+ function ot(t) {
33
+ return ["top", "bottom"].includes(V(t)) ? "y" : "x";
34
+ }
35
+ function Ot(t) {
36
+ return Rt(ot(t));
37
+ }
38
+ function $t(t, e, n) {
39
+ n === void 0 && (n = !1);
40
+ const o = nt(t), i = Ot(t), s = At(i);
41
+ let r = i === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
42
+ return e.reference[s] > e.floating[s] && (r = Z(r)), [r, Z(r)];
43
+ }
44
+ function Ht(t) {
45
+ const e = Z(t);
46
+ return [lt(t), e, lt(e)];
47
+ }
48
+ function lt(t) {
49
+ return t.replace(/start|end/g, (e) => _t[e]);
50
+ }
51
+ function zt(t, e, n) {
52
+ const o = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
53
+ switch (t) {
54
+ case "top":
55
+ case "bottom":
56
+ return n ? e ? i : o : e ? o : i;
57
+ case "left":
58
+ case "right":
59
+ return e ? s : r;
60
+ default:
61
+ return [];
62
+ }
63
+ }
64
+ function It(t, e, n, o) {
65
+ const i = nt(t);
66
+ let s = zt(V(t), n === "start", o);
67
+ return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(lt)))), s;
68
+ }
69
+ function Z(t) {
70
+ return t.replace(/left|right|bottom|top/g, (e) => Wt[e]);
71
+ }
72
+ function Xt(t) {
73
+ return {
74
+ top: 0,
75
+ right: 0,
76
+ bottom: 0,
77
+ left: 0,
78
+ ...t
79
+ };
80
+ }
81
+ function jt(t) {
82
+ return typeof t != "number" ? Xt(t) : {
83
+ top: t,
84
+ right: t,
85
+ bottom: t,
86
+ left: t
87
+ };
88
+ }
89
+ function tt(t) {
90
+ const {
91
+ x: e,
92
+ y: n,
93
+ width: o,
94
+ height: i
95
+ } = t;
96
+ return {
97
+ width: o,
98
+ height: i,
99
+ top: n,
100
+ left: e,
101
+ right: e + o,
102
+ bottom: n + i,
103
+ x: e,
104
+ y: n
105
+ };
106
+ }
107
+ function gt(t, e, n) {
108
+ let {
109
+ reference: o,
110
+ floating: i
111
+ } = t;
112
+ const s = ot(e), r = Ot(e), l = At(r), a = V(e), c = s === "y", f = o.x + o.width / 2 - i.width / 2, u = o.y + o.height / 2 - i.height / 2, m = o[l] / 2 - i[l] / 2;
113
+ let d;
114
+ switch (a) {
115
+ case "top":
116
+ d = {
117
+ x: f,
118
+ y: o.y - i.height
119
+ };
120
+ break;
121
+ case "bottom":
122
+ d = {
123
+ x: f,
124
+ y: o.y + o.height
125
+ };
126
+ break;
127
+ case "right":
128
+ d = {
129
+ x: o.x + o.width,
130
+ y: u
131
+ };
132
+ break;
133
+ case "left":
134
+ d = {
135
+ x: o.x - i.width,
136
+ y: u
137
+ };
138
+ break;
139
+ default:
140
+ d = {
141
+ x: o.x,
142
+ y: o.y
143
+ };
144
+ }
145
+ switch (nt(e)) {
146
+ case "start":
147
+ d[r] -= m * (n && c ? -1 : 1);
148
+ break;
149
+ case "end":
150
+ d[r] += m * (n && c ? -1 : 1);
151
+ break;
152
+ }
153
+ return d;
154
+ }
155
+ const Yt = async (t, e, n) => {
156
+ const {
157
+ placement: o = "bottom",
158
+ strategy: i = "absolute",
159
+ middleware: s = [],
160
+ platform: r
161
+ } = n, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(e));
162
+ let c = await r.getElementRects({
163
+ reference: t,
164
+ floating: e,
165
+ strategy: i
166
+ }), {
167
+ x: f,
168
+ y: u
169
+ } = gt(c, o, a), m = o, d = {}, p = 0;
170
+ for (let g = 0; g < l.length; g++) {
171
+ const {
172
+ name: w,
173
+ fn: h
174
+ } = l[g], {
175
+ x,
176
+ y: v,
177
+ data: R,
178
+ reset: b
179
+ } = await h({
180
+ x: f,
181
+ y: u,
182
+ initialPlacement: o,
183
+ placement: m,
184
+ strategy: i,
185
+ middlewareData: d,
186
+ rects: c,
187
+ platform: r,
188
+ elements: {
189
+ reference: t,
190
+ floating: e
191
+ }
192
+ });
193
+ f = x ?? f, u = v ?? u, d = {
194
+ ...d,
195
+ [w]: {
196
+ ...d[w],
197
+ ...R
198
+ }
199
+ }, b && p <= 50 && (p++, typeof b == "object" && (b.placement && (m = b.placement), b.rects && (c = b.rects === !0 ? await r.getElementRects({
200
+ reference: t,
201
+ floating: e,
202
+ strategy: i
203
+ }) : b.rects), {
204
+ x: f,
205
+ y: u
206
+ } = gt(c, m, a)), g = -1);
207
+ }
208
+ return {
209
+ x: f,
210
+ y: u,
211
+ placement: m,
212
+ strategy: i,
213
+ middlewareData: d
214
+ };
215
+ };
216
+ async function Ct(t, e) {
217
+ var n;
218
+ e === void 0 && (e = {});
219
+ const {
220
+ x: o,
221
+ y: i,
222
+ platform: s,
223
+ rects: r,
224
+ elements: l,
225
+ strategy: a
226
+ } = t, {
227
+ boundary: c = "clippingAncestors",
228
+ rootBoundary: f = "viewport",
229
+ elementContext: u = "floating",
230
+ altBoundary: m = !1,
231
+ padding: d = 0
232
+ } = et(e, t), p = jt(d), w = l[m ? u === "floating" ? "reference" : "floating" : u], h = tt(await s.getClippingRect({
233
+ element: (n = await (s.isElement == null ? void 0 : s.isElement(w))) == null || n ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
234
+ boundary: c,
235
+ rootBoundary: f,
236
+ strategy: a
237
+ })), x = u === "floating" ? {
238
+ x: o,
239
+ y: i,
240
+ width: r.floating.width,
241
+ height: r.floating.height
242
+ } : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), R = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
243
+ x: 1,
244
+ y: 1
245
+ } : {
246
+ x: 1,
247
+ y: 1
248
+ }, b = tt(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
249
+ elements: l,
250
+ rect: x,
251
+ offsetParent: v,
252
+ strategy: a
253
+ }) : x);
254
+ return {
255
+ top: (h.top - b.top + p.top) / R.y,
256
+ bottom: (b.bottom - h.bottom + p.bottom) / R.y,
257
+ left: (h.left - b.left + p.left) / R.x,
258
+ right: (b.right - h.right + p.right) / R.x
259
+ };
260
+ }
261
+ const qt = function(t) {
262
+ return t === void 0 && (t = {}), {
263
+ name: "flip",
264
+ options: t,
265
+ async fn(e) {
266
+ var n, o;
267
+ const {
268
+ placement: i,
269
+ middlewareData: s,
270
+ rects: r,
271
+ initialPlacement: l,
272
+ platform: a,
273
+ elements: c
274
+ } = e, {
275
+ mainAxis: f = !0,
276
+ crossAxis: u = !0,
277
+ fallbackPlacements: m,
278
+ fallbackStrategy: d = "bestFit",
279
+ fallbackAxisSideDirection: p = "none",
280
+ flipAlignment: g = !0,
281
+ ...w
282
+ } = et(t, e);
283
+ if ((n = s.arrow) != null && n.alignmentOffset)
284
+ return {};
285
+ const h = V(i), x = V(l) === l, v = await (a.isRTL == null ? void 0 : a.isRTL(c.floating)), R = m || (x || !g ? [Z(l)] : Ht(l));
286
+ !m && p !== "none" && R.push(...It(l, g, p, v));
287
+ const b = [l, ...R], L = await Ct(e, w), y = [];
288
+ let S = ((o = s.flip) == null ? void 0 : o.overflows) || [];
289
+ if (f && y.push(L[h]), u) {
290
+ const F = $t(i, r, v);
291
+ y.push(L[F[0]], L[F[1]]);
292
+ }
293
+ if (S = [...S, {
294
+ placement: i,
295
+ overflows: y
296
+ }], !y.every((F) => F <= 0)) {
297
+ var I, dt;
298
+ const F = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, ht = b[F];
299
+ if (ht)
300
+ return {
301
+ data: {
302
+ index: F,
303
+ overflows: S
304
+ },
305
+ reset: {
306
+ placement: ht
307
+ }
308
+ };
309
+ let X = (dt = S.filter((N) => N.overflows[0] <= 0).sort((N, W) => N.overflows[1] - W.overflows[1])[0]) == null ? void 0 : dt.placement;
310
+ if (!X)
311
+ switch (d) {
312
+ case "bestFit": {
313
+ var mt;
314
+ const N = (mt = S.map((W) => [W.placement, W.overflows.filter((j) => j > 0).reduce((j, Mt) => j + Mt, 0)]).sort((W, j) => W[1] - j[1])[0]) == null ? void 0 : mt[0];
315
+ N && (X = N);
316
+ break;
317
+ }
318
+ case "initialPlacement":
319
+ X = l;
320
+ break;
321
+ }
322
+ if (i !== X)
323
+ return {
324
+ reset: {
325
+ placement: X
326
+ }
327
+ };
328
+ }
329
+ return {};
330
+ }
331
+ };
332
+ };
333
+ async function Ut(t, e) {
334
+ const {
335
+ placement: n,
336
+ platform: o,
337
+ elements: i
338
+ } = t, s = await (o.isRTL == null ? void 0 : o.isRTL(i.floating)), r = V(n), l = nt(n), a = ot(n) === "y", c = ["left", "top"].includes(r) ? -1 : 1, f = s && a ? -1 : 1, u = et(e, t);
339
+ let {
340
+ mainAxis: m,
341
+ crossAxis: d,
342
+ alignmentAxis: p
343
+ } = typeof u == "number" ? {
344
+ mainAxis: u,
345
+ crossAxis: 0,
346
+ alignmentAxis: null
347
+ } : {
348
+ mainAxis: 0,
349
+ crossAxis: 0,
350
+ alignmentAxis: null,
351
+ ...u
352
+ };
353
+ return l && typeof p == "number" && (d = l === "end" ? p * -1 : p), a ? {
354
+ x: d * f,
355
+ y: m * c
356
+ } : {
357
+ x: m * c,
358
+ y: d * f
359
+ };
360
+ }
361
+ const Kt = function(t) {
362
+ return t === void 0 && (t = 0), {
363
+ name: "offset",
364
+ options: t,
365
+ async fn(e) {
366
+ var n, o;
367
+ const {
368
+ x: i,
369
+ y: s,
370
+ placement: r,
371
+ middlewareData: l
372
+ } = e, a = await Ut(e, t);
373
+ return r === ((n = l.offset) == null ? void 0 : n.placement) && (o = l.arrow) != null && o.alignmentOffset ? {} : {
374
+ x: i + a.x,
375
+ y: s + a.y,
376
+ data: {
377
+ ...a,
378
+ placement: r
379
+ }
380
+ };
381
+ }
382
+ };
383
+ }, Gt = function(t) {
384
+ return t === void 0 && (t = {}), {
385
+ name: "shift",
386
+ options: t,
387
+ async fn(e) {
388
+ const {
389
+ x: n,
390
+ y: o,
391
+ placement: i
392
+ } = e, {
393
+ mainAxis: s = !0,
394
+ crossAxis: r = !1,
395
+ limiter: l = {
396
+ fn: (w) => {
397
+ let {
398
+ x: h,
399
+ y: x
400
+ } = w;
401
+ return {
402
+ x: h,
403
+ y: x
404
+ };
405
+ }
406
+ },
407
+ ...a
408
+ } = et(t, e), c = {
409
+ x: n,
410
+ y: o
411
+ }, f = await Ct(e, a), u = ot(V(i)), m = Rt(u);
412
+ let d = c[m], p = c[u];
413
+ if (s) {
414
+ const w = m === "y" ? "top" : "left", h = m === "y" ? "bottom" : "right", x = d + f[w], v = d - f[h];
415
+ d = pt(x, d, v);
416
+ }
417
+ if (r) {
418
+ const w = u === "y" ? "top" : "left", h = u === "y" ? "bottom" : "right", x = p + f[w], v = p - f[h];
419
+ p = pt(x, p, v);
420
+ }
421
+ const g = l.fn({
422
+ ...e,
423
+ [m]: d,
424
+ [u]: p
425
+ });
426
+ return {
427
+ ...g,
428
+ data: {
429
+ x: g.x - n,
430
+ y: g.y - o
431
+ }
432
+ };
433
+ }
434
+ };
435
+ };
436
+ function z(t) {
437
+ return Et(t) ? (t.nodeName || "").toLowerCase() : "#document";
438
+ }
439
+ function A(t) {
440
+ var e;
441
+ return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
442
+ }
443
+ function T(t) {
444
+ var e;
445
+ return (e = (Et(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
446
+ }
447
+ function Et(t) {
448
+ return t instanceof Node || t instanceof A(t).Node;
449
+ }
450
+ function C(t) {
451
+ return t instanceof Element || t instanceof A(t).Element;
452
+ }
453
+ function E(t) {
454
+ return t instanceof HTMLElement || t instanceof A(t).HTMLElement;
455
+ }
456
+ function wt(t) {
457
+ return typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof A(t).ShadowRoot;
458
+ }
459
+ function K(t) {
460
+ const {
461
+ overflow: e,
462
+ overflowX: n,
463
+ overflowY: o,
464
+ display: i
465
+ } = O(t);
466
+ return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !["inline", "contents"].includes(i);
467
+ }
468
+ function Jt(t) {
469
+ return ["table", "td", "th"].includes(z(t));
470
+ }
471
+ function ct(t) {
472
+ const e = at(), n = O(t);
473
+ return n.transform !== "none" || n.perspective !== "none" || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (n.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (n.contain || "").includes(o));
474
+ }
475
+ function Qt(t) {
476
+ let e = k(t);
477
+ for (; E(e) && !H(e); ) {
478
+ if (ct(e))
479
+ return e;
480
+ e = k(e);
481
+ }
482
+ return null;
483
+ }
484
+ function at() {
485
+ return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
486
+ }
487
+ function H(t) {
488
+ return ["html", "body", "#document"].includes(z(t));
489
+ }
490
+ function O(t) {
491
+ return A(t).getComputedStyle(t);
492
+ }
493
+ function it(t) {
494
+ return C(t) ? {
495
+ scrollLeft: t.scrollLeft,
496
+ scrollTop: t.scrollTop
497
+ } : {
498
+ scrollLeft: t.pageXOffset,
499
+ scrollTop: t.pageYOffset
500
+ };
501
+ }
502
+ function k(t) {
503
+ if (z(t) === "html")
504
+ return t;
505
+ const e = (
506
+ // Step into the shadow DOM of the parent of a slotted node.
507
+ t.assignedSlot || // DOM Element detected.
508
+ t.parentNode || // ShadowRoot detected.
509
+ wt(t) && t.host || // Fallback.
510
+ T(t)
511
+ );
512
+ return wt(e) ? e.host : e;
513
+ }
514
+ function Lt(t) {
515
+ const e = k(t);
516
+ return H(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : E(e) && K(e) ? e : Lt(e);
517
+ }
518
+ function U(t, e, n) {
519
+ var o;
520
+ e === void 0 && (e = []), n === void 0 && (n = !0);
521
+ const i = Lt(t), s = i === ((o = t.ownerDocument) == null ? void 0 : o.body), r = A(i);
522
+ return s ? e.concat(r, r.visualViewport || [], K(i) ? i : [], r.frameElement && n ? U(r.frameElement) : []) : e.concat(i, U(i, [], n));
523
+ }
524
+ function Tt(t) {
525
+ const e = O(t);
526
+ let n = parseFloat(e.width) || 0, o = parseFloat(e.height) || 0;
527
+ const i = E(t), s = i ? t.offsetWidth : n, r = i ? t.offsetHeight : o, l = Q(n) !== s || Q(o) !== r;
528
+ return l && (n = s, o = r), {
529
+ width: n,
530
+ height: o,
531
+ $: l
532
+ };
533
+ }
534
+ function ft(t) {
535
+ return C(t) ? t : t.contextElement;
536
+ }
537
+ function $(t) {
538
+ const e = ft(t);
539
+ if (!E(e))
540
+ return P(1);
541
+ const n = e.getBoundingClientRect(), {
542
+ width: o,
543
+ height: i,
544
+ $: s
545
+ } = Tt(e);
546
+ let r = (s ? Q(n.width) : n.width) / o, l = (s ? Q(n.height) : n.height) / i;
547
+ return (!r || !Number.isFinite(r)) && (r = 1), (!l || !Number.isFinite(l)) && (l = 1), {
548
+ x: r,
549
+ y: l
550
+ };
551
+ }
552
+ const Zt = /* @__PURE__ */ P(0);
553
+ function St(t) {
554
+ const e = A(t);
555
+ return !at() || !e.visualViewport ? Zt : {
556
+ x: e.visualViewport.offsetLeft,
557
+ y: e.visualViewport.offsetTop
558
+ };
559
+ }
560
+ function te(t, e, n) {
561
+ return e === void 0 && (e = !1), !n || e && n !== A(t) ? !1 : e;
562
+ }
563
+ function B(t, e, n, o) {
564
+ e === void 0 && (e = !1), n === void 0 && (n = !1);
565
+ const i = t.getBoundingClientRect(), s = ft(t);
566
+ let r = P(1);
567
+ e && (o ? C(o) && (r = $(o)) : r = $(t));
568
+ const l = te(s, n, o) ? St(s) : P(0);
569
+ let a = (i.left + l.x) / r.x, c = (i.top + l.y) / r.y, f = i.width / r.x, u = i.height / r.y;
570
+ if (s) {
571
+ const m = A(s), d = o && C(o) ? A(o) : o;
572
+ let p = m, g = p.frameElement;
573
+ for (; g && o && d !== p; ) {
574
+ const w = $(g), h = g.getBoundingClientRect(), x = O(g), v = h.left + (g.clientLeft + parseFloat(x.paddingLeft)) * w.x, R = h.top + (g.clientTop + parseFloat(x.paddingTop)) * w.y;
575
+ a *= w.x, c *= w.y, f *= w.x, u *= w.y, a += v, c += R, p = A(g), g = p.frameElement;
576
+ }
577
+ }
578
+ return tt({
579
+ width: f,
580
+ height: u,
581
+ x: a,
582
+ y: c
583
+ });
584
+ }
585
+ const ee = [":popover-open", ":modal"];
586
+ function ut(t) {
587
+ return ee.some((e) => {
588
+ try {
589
+ return t.matches(e);
590
+ } catch {
591
+ return !1;
592
+ }
593
+ });
594
+ }
595
+ function ne(t) {
596
+ let {
597
+ elements: e,
598
+ rect: n,
599
+ offsetParent: o,
600
+ strategy: i
601
+ } = t;
602
+ const s = i === "fixed", r = T(o), l = e ? ut(e.floating) : !1;
603
+ if (o === r || l && s)
604
+ return n;
605
+ let a = {
606
+ scrollLeft: 0,
607
+ scrollTop: 0
608
+ }, c = P(1);
609
+ const f = P(0), u = E(o);
610
+ if ((u || !u && !s) && ((z(o) !== "body" || K(r)) && (a = it(o)), E(o))) {
611
+ const m = B(o);
612
+ c = $(o), f.x = m.x + o.clientLeft, f.y = m.y + o.clientTop;
613
+ }
614
+ return {
615
+ width: n.width * c.x,
616
+ height: n.height * c.y,
617
+ x: n.x * c.x - a.scrollLeft * c.x + f.x,
618
+ y: n.y * c.y - a.scrollTop * c.y + f.y
619
+ };
620
+ }
621
+ function oe(t) {
622
+ return Array.from(t.getClientRects());
623
+ }
624
+ function Dt(t) {
625
+ return B(T(t)).left + it(t).scrollLeft;
626
+ }
627
+ function ie(t) {
628
+ const e = T(t), n = it(t), o = t.ownerDocument.body, i = M(e.scrollWidth, e.clientWidth, o.scrollWidth, o.clientWidth), s = M(e.scrollHeight, e.clientHeight, o.scrollHeight, o.clientHeight);
629
+ let r = -n.scrollLeft + Dt(t);
630
+ const l = -n.scrollTop;
631
+ return O(o).direction === "rtl" && (r += M(e.clientWidth, o.clientWidth) - i), {
632
+ width: i,
633
+ height: s,
634
+ x: r,
635
+ y: l
636
+ };
637
+ }
638
+ function re(t, e) {
639
+ const n = A(t), o = T(t), i = n.visualViewport;
640
+ let s = o.clientWidth, r = o.clientHeight, l = 0, a = 0;
641
+ if (i) {
642
+ s = i.width, r = i.height;
643
+ const c = at();
644
+ (!c || c && e === "fixed") && (l = i.offsetLeft, a = i.offsetTop);
645
+ }
646
+ return {
647
+ width: s,
648
+ height: r,
649
+ x: l,
650
+ y: a
651
+ };
652
+ }
653
+ function se(t, e) {
654
+ const n = B(t, !0, e === "fixed"), o = n.top + t.clientTop, i = n.left + t.clientLeft, s = E(t) ? $(t) : P(1), r = t.clientWidth * s.x, l = t.clientHeight * s.y, a = i * s.x, c = o * s.y;
655
+ return {
656
+ width: r,
657
+ height: l,
658
+ x: a,
659
+ y: c
660
+ };
661
+ }
662
+ function xt(t, e, n) {
663
+ let o;
664
+ if (e === "viewport")
665
+ o = re(t, n);
666
+ else if (e === "document")
667
+ o = ie(T(t));
668
+ else if (C(e))
669
+ o = se(e, n);
670
+ else {
671
+ const i = St(t);
672
+ o = {
673
+ ...e,
674
+ x: e.x - i.x,
675
+ y: e.y - i.y
676
+ };
677
+ }
678
+ return tt(o);
679
+ }
680
+ function Pt(t, e) {
681
+ const n = k(t);
682
+ return n === e || !C(n) || H(n) ? !1 : O(n).position === "fixed" || Pt(n, e);
683
+ }
684
+ function le(t, e) {
685
+ const n = e.get(t);
686
+ if (n)
687
+ return n;
688
+ let o = U(t, [], !1).filter((l) => C(l) && z(l) !== "body"), i = null;
689
+ const s = O(t).position === "fixed";
690
+ let r = s ? k(t) : t;
691
+ for (; C(r) && !H(r); ) {
692
+ const l = O(r), a = ct(r);
693
+ !a && l.position === "fixed" && (i = null), (s ? !a && !i : !a && l.position === "static" && !!i && ["absolute", "fixed"].includes(i.position) || K(r) && !a && Pt(t, r)) ? o = o.filter((f) => f !== r) : i = l, r = k(r);
694
+ }
695
+ return e.set(t, o), o;
696
+ }
697
+ function ce(t) {
698
+ let {
699
+ element: e,
700
+ boundary: n,
701
+ rootBoundary: o,
702
+ strategy: i
703
+ } = t;
704
+ const r = [...n === "clippingAncestors" ? ut(e) ? [] : le(e, this._c) : [].concat(n), o], l = r[0], a = r.reduce((c, f) => {
705
+ const u = xt(e, f, i);
706
+ return c.top = M(u.top, c.top), c.right = J(u.right, c.right), c.bottom = J(u.bottom, c.bottom), c.left = M(u.left, c.left), c;
707
+ }, xt(e, l, i));
708
+ return {
709
+ width: a.right - a.left,
710
+ height: a.bottom - a.top,
711
+ x: a.left,
712
+ y: a.top
713
+ };
714
+ }
715
+ function ae(t) {
716
+ const {
717
+ width: e,
718
+ height: n
719
+ } = Tt(t);
720
+ return {
721
+ width: e,
722
+ height: n
723
+ };
724
+ }
725
+ function fe(t, e, n) {
726
+ const o = E(e), i = T(e), s = n === "fixed", r = B(t, !0, s, e);
727
+ let l = {
728
+ scrollLeft: 0,
729
+ scrollTop: 0
730
+ };
731
+ const a = P(0);
732
+ if (o || !o && !s)
733
+ if ((z(e) !== "body" || K(i)) && (l = it(e)), o) {
734
+ const u = B(e, !0, s, e);
735
+ a.x = u.x + e.clientLeft, a.y = u.y + e.clientTop;
736
+ } else i && (a.x = Dt(i));
737
+ const c = r.left + l.scrollLeft - a.x, f = r.top + l.scrollTop - a.y;
738
+ return {
739
+ x: c,
740
+ y: f,
741
+ width: r.width,
742
+ height: r.height
743
+ };
744
+ }
745
+ function st(t) {
746
+ return O(t).position === "static";
747
+ }
748
+ function vt(t, e) {
749
+ return !E(t) || O(t).position === "fixed" ? null : e ? e(t) : t.offsetParent;
750
+ }
751
+ function kt(t, e) {
752
+ const n = A(t);
753
+ if (ut(t))
754
+ return n;
755
+ if (!E(t)) {
756
+ let i = k(t);
757
+ for (; i && !H(i); ) {
758
+ if (C(i) && !st(i))
759
+ return i;
760
+ i = k(i);
761
+ }
762
+ return n;
763
+ }
764
+ let o = vt(t, e);
765
+ for (; o && Jt(o) && st(o); )
766
+ o = vt(o, e);
767
+ return o && H(o) && st(o) && !ct(o) ? n : o || Qt(t) || n;
768
+ }
769
+ const ue = async function(t) {
770
+ const e = this.getOffsetParent || kt, n = this.getDimensions, o = await n(t.floating);
771
+ return {
772
+ reference: fe(t.reference, await e(t.floating), t.strategy),
773
+ floating: {
774
+ x: 0,
775
+ y: 0,
776
+ width: o.width,
777
+ height: o.height
778
+ }
779
+ };
780
+ };
781
+ function de(t) {
782
+ return O(t).direction === "rtl";
783
+ }
784
+ const me = {
785
+ convertOffsetParentRelativeRectToViewportRelativeRect: ne,
786
+ getDocumentElement: T,
787
+ getClippingRect: ce,
788
+ getOffsetParent: kt,
789
+ getElementRects: ue,
790
+ getClientRects: oe,
791
+ getDimensions: ae,
792
+ getScale: $,
793
+ isElement: C,
794
+ isRTL: de
795
+ };
796
+ function he(t, e) {
797
+ let n = null, o;
798
+ const i = T(t);
799
+ function s() {
800
+ var l;
801
+ clearTimeout(o), (l = n) == null || l.disconnect(), n = null;
802
+ }
803
+ function r(l, a) {
804
+ l === void 0 && (l = !1), a === void 0 && (a = 1), s();
805
+ const {
806
+ left: c,
807
+ top: f,
808
+ width: u,
809
+ height: m
810
+ } = t.getBoundingClientRect();
811
+ if (l || e(), !u || !m)
812
+ return;
813
+ const d = G(f), p = G(i.clientWidth - (c + u)), g = G(i.clientHeight - (f + m)), w = G(c), x = {
814
+ rootMargin: -d + "px " + -p + "px " + -g + "px " + -w + "px",
815
+ threshold: M(0, J(1, a)) || 1
816
+ };
817
+ let v = !0;
818
+ function R(b) {
819
+ const L = b[0].intersectionRatio;
820
+ if (L !== a) {
821
+ if (!v)
822
+ return r();
823
+ L ? r(!1, L) : o = setTimeout(() => {
824
+ r(!1, 1e-7);
825
+ }, 1e3);
826
+ }
827
+ v = !1;
828
+ }
829
+ try {
830
+ n = new IntersectionObserver(R, {
831
+ ...x,
832
+ // Handle <iframe>s
833
+ root: i.ownerDocument
834
+ });
835
+ } catch {
836
+ n = new IntersectionObserver(R, x);
837
+ }
838
+ n.observe(t);
839
+ }
840
+ return r(!0), s;
841
+ }
842
+ function we(t, e, n, o) {
843
+ o === void 0 && (o = {});
844
+ const {
845
+ ancestorScroll: i = !0,
846
+ ancestorResize: s = !0,
847
+ elementResize: r = typeof ResizeObserver == "function",
848
+ layoutShift: l = typeof IntersectionObserver == "function",
849
+ animationFrame: a = !1
850
+ } = o, c = ft(t), f = i || s ? [...c ? U(c) : [], ...U(e)] : [];
851
+ f.forEach((h) => {
852
+ i && h.addEventListener("scroll", n, {
853
+ passive: !0
854
+ }), s && h.addEventListener("resize", n);
855
+ });
856
+ const u = c && l ? he(c, n) : null;
857
+ let m = -1, d = null;
858
+ r && (d = new ResizeObserver((h) => {
859
+ let [x] = h;
860
+ x && x.target === c && d && (d.unobserve(e), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
861
+ var v;
862
+ (v = d) == null || v.observe(e);
863
+ })), n();
864
+ }), c && !a && d.observe(c), d.observe(e));
865
+ let p, g = a ? B(t) : null;
866
+ a && w();
867
+ function w() {
868
+ const h = B(t);
869
+ g && (h.x !== g.x || h.y !== g.y || h.width !== g.width || h.height !== g.height) && n(), g = h, p = requestAnimationFrame(w);
870
+ }
871
+ return n(), () => {
872
+ var h;
873
+ f.forEach((x) => {
874
+ i && x.removeEventListener("scroll", n), s && x.removeEventListener("resize", n);
875
+ }), u == null || u(), (h = d) == null || h.disconnect(), d = null, a && cancelAnimationFrame(p);
876
+ };
877
+ }
878
+ const xe = Kt, ve = Gt, ye = qt, pe = (t, e, n) => {
879
+ const o = /* @__PURE__ */ new Map(), i = {
880
+ platform: me,
881
+ ...n
882
+ }, s = {
883
+ ...i.platform,
884
+ _c: o
885
+ };
886
+ return Yt(t, e, {
887
+ ...i,
888
+ platform: s
889
+ });
890
+ };
891
+ function yt(t) {
892
+ var e;
893
+ return (e = t == null ? void 0 : t.$el) != null ? e : t;
894
+ }
895
+ function Ft(t) {
896
+ return typeof window > "u" ? 1 : (t.ownerDocument.defaultView || window).devicePixelRatio || 1;
897
+ }
898
+ function bt(t, e) {
899
+ const n = Ft(t);
900
+ return Math.round(e * n) / n;
901
+ }
902
+ function be(t, e, n) {
903
+ n === void 0 && (n = {});
904
+ const o = n.whileElementsMounted, i = D(() => {
905
+ var y;
906
+ return (y = Y(n.open)) != null ? y : !0;
907
+ }), s = D(() => Y(n.middleware)), r = D(() => {
908
+ var y;
909
+ return (y = Y(n.placement)) != null ? y : "bottom";
910
+ }), l = D(() => {
911
+ var y;
912
+ return (y = Y(n.strategy)) != null ? y : "absolute";
913
+ }), a = D(() => {
914
+ var y;
915
+ return (y = Y(n.transform)) != null ? y : !0;
916
+ }), c = D(() => yt(t.value)), f = D(() => yt(e.value)), u = q(0), m = q(0), d = q(l.value), p = q(r.value), g = Vt({}), w = q(!1), h = D(() => {
917
+ const y = {
918
+ position: d.value,
919
+ left: "0",
920
+ top: "0"
921
+ };
922
+ if (!f.value)
923
+ return y;
924
+ const S = bt(f.value, u.value), I = bt(f.value, m.value);
925
+ return a.value ? {
926
+ ...y,
927
+ transform: "translate(" + S + "px, " + I + "px)",
928
+ ...Ft(f.value) >= 1.5 && {
929
+ willChange: "transform"
930
+ }
931
+ } : {
932
+ position: d.value,
933
+ left: S + "px",
934
+ top: I + "px"
935
+ };
936
+ });
937
+ let x;
938
+ function v() {
939
+ c.value == null || f.value == null || pe(c.value, f.value, {
940
+ middleware: s.value,
941
+ placement: r.value,
942
+ strategy: l.value
943
+ }).then((y) => {
944
+ u.value = y.x, m.value = y.y, d.value = y.strategy, p.value = y.placement, g.value = y.middlewareData, w.value = !0;
945
+ });
946
+ }
947
+ function R() {
948
+ typeof x == "function" && (x(), x = void 0);
949
+ }
950
+ function b() {
951
+ if (R(), o === void 0) {
952
+ v();
953
+ return;
954
+ }
955
+ if (c.value != null && f.value != null) {
956
+ x = o(c.value, f.value, v);
957
+ return;
958
+ }
959
+ }
960
+ function L() {
961
+ i.value || (w.value = !1);
962
+ }
963
+ return rt([s, r, l], v, {
964
+ flush: "sync"
965
+ }), rt([c, f], b, {
966
+ flush: "sync"
967
+ }), rt(i, L, {
968
+ flush: "sync"
969
+ }), Bt() && Nt(R), {
970
+ x: _(u),
971
+ y: _(m),
972
+ strategy: _(d),
973
+ placement: _(p),
974
+ middlewareData: _(g),
975
+ isPositioned: _(w),
976
+ floatingStyles: h,
977
+ update: v
978
+ };
979
+ }
980
+ export {
981
+ we as a,
982
+ ye as f,
983
+ xe as o,
984
+ ve as s,
985
+ be as u
986
+ };