@knime/jsonforms 1.14.3 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/{AnyOfTwinlist-Cwxtyt0Q.js → AnyOfTwinlist-Co_sJAsc.js} +3 -3
  3. package/dist/{Button-BxuGKyL5.js → Button-Cqwayw73.js} +4 -4
  4. package/dist/CheckboxControl-C10_DX1N.js +40 -0
  5. package/dist/{Checkboxes-DIPjJhPO.js → Checkboxes-DWOxHiUX.js} +2 -2
  6. package/dist/{CheckboxesControl-5QlPmjwv.js → CheckboxesControl-BMRFgmO_.js} +7 -10
  7. package/dist/{ComboBoxControl-Dk02x7sN.js → ComboBoxControl-R0DlbAdT.js} +26 -29
  8. package/dist/{DateControl-CddCObVg.js → DateControl-DAGAM92B.js} +3 -3
  9. package/dist/DateTimeControl-DJhIb_U4.js +45 -0
  10. package/dist/{DateTimeFormatInput-bO1zHUyp.js → DateTimeFormatInput-BhLQzC-P.js} +74 -82
  11. package/dist/{DateTimeFormatPickerControl-Dq25_JV2.js → DateTimeFormatPickerControl-V7pxRYaW.js} +5 -8
  12. package/dist/{DateTimeFormatPickerWithTypeControl-DZib_x-B.js → DateTimeFormatPickerWithTypeControl-3fa75rGw.js} +6 -9
  13. package/dist/{DateTimeInput-CEYEV8dt.js → DateTimeInput-Cs0KqlOS.js} +4629 -4556
  14. package/dist/Dropdown-BEx-cvXH.js +608 -0
  15. package/dist/{DropdownControl-BNQKWzTT.js → DropdownControl-DEIA5VD4.js} +4 -4
  16. package/dist/{HorizontalLayout-6GwurgkR.js → HorizontalLayout-DCfhMNq4.js} +2 -2
  17. package/dist/{InputField-BYxW_-G3.js → InputField-OkFB9VHZ.js} +11 -11
  18. package/dist/{IntegerControl-DZIY-wb_.js → IntegerControl-Om8J7hch.js} +3 -3
  19. package/dist/{IntervalControl-Yts36_MI.js → IntervalControl-B7UbyyD-.js} +99 -100
  20. package/dist/{LoadingDropdown-Dw-0WQ8x.js → LoadingDropdown-CINkq_Sw.js} +6 -6
  21. package/dist/{ManualTwinlistControl-C3NnAug1.js → ManualTwinlistControl-BLTfr2gT.js} +24 -30
  22. package/dist/MultiSelectListBoxControl-j1TaFtQj.js +31 -0
  23. package/dist/{MultimodeTwinlistControl-B2Jven29.js → MultimodeTwinlistControl-BsFqHRFM.js} +97 -108
  24. package/dist/{MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-DGKMWtLi.js → MultimodeTwinlistControl.vue_vue_type_style_index_0_scoped_37fe7036_lang-2fVBipAl.js} +1 -1
  25. package/dist/{MultiselectListBox-CHvGxAhY.js → MultiselectListBox-CMTJnAWr.js} +18 -23
  26. package/dist/{NameFilter-D0hKO5Fr.js → NameFilter-d5k6rDVY.js} +3 -3
  27. package/dist/{NumberControl-DkeQT1iR.js → NumberControl-Kc3hvVef.js} +3 -3
  28. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-BOCR1qXG.js +50 -0
  29. package/dist/{NumberInput-DJ38AGiR.js → NumberInput-BepS3tAK.js} +5 -5
  30. package/dist/{OneOfDropdown-NAgE-mPP.js → OneOfDropdown-CLwVXrbC.js} +10 -11
  31. package/dist/{RadioControl-DjrysNQ_.js → RadioControl-DpziR8nA.js} +4 -4
  32. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-DVIeg5W1.js +104 -0
  33. package/dist/{RichTextControl-CXY1ULxR.js → RichTextControl-CE6whfV5.js} +4524 -4079
  34. package/dist/SectionHeading-D7znCZXu.js +19 -0
  35. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-DR31vaIu.js +15431 -0
  36. package/dist/{SectionLayout-CJP4sYyB.js → SectionLayout-BhXDOzqB.js} +4 -4
  37. package/dist/SettingsSubPanel-x9uWGoiu.js +5 -0
  38. package/dist/{SettingsSubPanelLayout-YBNVPQOD.js → SettingsSubPanelLayout-BPHBM5n5.js} +12 -11
  39. package/dist/{SimpleButtonControl-ejyUwJdL.js → SimpleButtonControl-DfCSlgZS.js} +9 -9
  40. package/dist/SimpleTwinlistControl-CBalniCf.js +25 -0
  41. package/dist/{SingleSelectControl-B0JgDv7j.js → SingleSelectControl-DC4w0ata.js} +4 -4
  42. package/dist/{SingleSelectListBoxControl-ClQOxnxW.js → SingleSelectListBoxControl-CKj-p8jZ.js} +33 -36
  43. package/dist/{SortListControl-mvJofiWn.js → SortListControl-BIUyPjCi.js} +122 -120
  44. package/dist/{StyledListItem-BXz08pEQ.js → StyledListItem-D-HJWfo5.js} +3 -3
  45. package/dist/{TextAreaControl-S4aoqAv1.js → TextAreaControl-D28TQZEY.js} +23 -26
  46. package/dist/{TextControl-rJrjrBw8.js → TextControl-DUDBWcHy.js} +1 -1
  47. package/dist/{TextControl.vue_vue_type_script_setup_true_lang-Bf6GB1zX.js → TextControl.vue_vue_type_script_setup_true_lang-DpAd3yOu.js} +16 -19
  48. package/dist/TimeControl-HRooO_z3.js +36 -0
  49. package/dist/{TwinlistControlBase-D1l9t7Up.js → TwinlistControlBase-Brfh5pqZ.js} +5 -5
  50. package/dist/{TwinlistLoadingInfo-CQRx9cEu.js → TwinlistLoadingInfo-C4Tta00d.js} +150 -167
  51. package/dist/TypedStringFilter-CdvgPKhD.js +26 -0
  52. package/dist/{ValueSwitch-CUYV7v67.js → ValueSwitch-W4y1YvNM.js} +8 -8
  53. package/dist/{ValueSwitchControl-IP9SxrUs.js → ValueSwitchControl-BaXH8Cjx.js} +3 -3
  54. package/dist/{VerticalLayout-D2eQSYgv.js → VerticalLayout-ChAmRKNj.js} +5 -5
  55. package/dist/VerticalLayoutBase-DAk4vfH5.js +20 -0
  56. package/dist/ZonedDateTimeControl-Qb57KmMT.js +69 -0
  57. package/dist/{_baseEach-cjHvi5iT.js → _baseEach-DdH9cM67.js} +4 -4
  58. package/dist/{_baseIteratee-CIxt0KWU.js → _baseIteratee-BGt-t7Os.js} +27 -27
  59. package/dist/{_getTag-sLUyzSDj.js → _getTag-DAFySze4.js} +10 -10
  60. package/dist/{arrow-dropdown-DdgjzLAO.js → arrow-dropdown-BAFsD8Su.js} +2 -2
  61. package/dist/{arrow-next-CIOU5o42.js → arrow-next-BQVCxGb8.js} +2 -2
  62. package/dist/{close-BuY4mhXV.js → close-DGt8x-x_.js} +2 -2
  63. package/dist/floating-ui.vue-CDo9Kas1.js +1055 -0
  64. package/dist/{hotkeys-kwHHtFKz.js → hotkeys-rxnt4egK.js} +1 -1
  65. package/dist/index-CpKfM262.js +376 -0
  66. package/dist/knime-jsonforms.css +1 -1
  67. package/dist/knime-jsonforms.js +64 -67
  68. package/dist/{localTimeUtils-Dv-1R88J.js → localTimeUtils-NIKgHnIr.js} +179 -181
  69. package/dist/magic-string.es-BQ9KnLz-.js +659 -0
  70. package/dist/navigator-e30QQMkl.js +4 -0
  71. package/dist/popper-LGjf7Wza.js +905 -0
  72. package/dist/{reload-BVbCGubF.js → reload-DCdbNLa2.js} +2 -2
  73. package/dist/src/higherOrderComponents/control/LabeledControl.vue.d.ts +26 -22
  74. package/dist/src/higherOrderComponents/control/errorMessage/ErrorLine.vue.d.ts +3 -4
  75. package/dist/src/higherOrderComponents/control/errorMessage/ErrorMessages.vue.d.ts +16 -10
  76. package/dist/src/higherOrderComponents/control/errorMessage/withErrorMessage.d.ts +1 -1
  77. package/dist/src/higherOrderComponents/control/util.d.ts +7 -33
  78. package/dist/src/higherOrderComponents/layout/util.d.ts +1 -17
  79. package/dist/src/layoutComponents/Form.vue.d.ts +12 -4
  80. package/dist/src/layoutComponents/HorizontalLayout.vue.d.ts +1 -1
  81. package/dist/src/layoutComponents/SectionLayout.vue.d.ts +13 -5
  82. package/dist/src/layoutComponents/VerticalLayout.vue.d.ts +1 -1
  83. package/dist/src/layoutComponents/VerticalLayoutBase.vue.d.ts +16 -9
  84. package/dist/src/layoutComponents/section/SectionHeading.vue.d.ts +13 -6
  85. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanel.vue.d.ts +2 -2
  86. package/dist/src/layoutComponents/settingsSubPanel/SettingsSubPanelBackArrow.vue.d.ts +1 -1
  87. package/dist/src/renderers/dateTimeFormatPickerRenderer.d.ts +2 -2
  88. package/dist/src/renderers/defaultRenderers.d.ts +966 -151
  89. package/dist/src/renderers/dropdownRenderer.d.ts +1 -1
  90. package/dist/src/renderers/fallbackRenderers.d.ts +8 -8
  91. package/dist/src/renderers/horizontalLayoutRenderer.d.ts +1 -1
  92. package/dist/src/renderers/sectionLayoutRenderer.d.ts +4 -4
  93. package/dist/src/renderers/simpleButtonRenderer.d.ts +7 -89
  94. package/dist/src/renderers/sortListRenderer.d.ts +853 -20
  95. package/dist/src/renderers/textMessageRenderer.d.ts +65 -1
  96. package/dist/src/renderers/textRenderer.d.ts +1 -1
  97. package/dist/src/renderers/verticalLayoutRenderer.d.ts +2 -2
  98. package/dist/src/renderers/zonedDateTimeRenderer.d.ts +1 -1
  99. package/dist/src/uiComponents/CheckboxControl.vue.d.ts +15 -6
  100. package/dist/src/uiComponents/CheckboxesControl.vue.d.ts +2 -1
  101. package/dist/src/uiComponents/ComboBoxControl.vue.d.ts +2 -1
  102. package/dist/src/uiComponents/DateControl.vue.d.ts +2 -1
  103. package/dist/src/uiComponents/DateTimeControl.vue.d.ts +2 -1
  104. package/dist/src/uiComponents/DateTimeFormatPickerControl.vue.d.ts +2 -1
  105. package/dist/src/uiComponents/DateTimeFormatPickerWithTypeControl.vue.d.ts +2 -1
  106. package/dist/src/uiComponents/DropdownControl.vue.d.ts +2 -1
  107. package/dist/src/uiComponents/IntegerControl.vue.d.ts +2 -1
  108. package/dist/src/uiComponents/IntervalControl.vue.d.ts +2 -1
  109. package/dist/src/uiComponents/MultiSelectListBoxControl.vue.d.ts +2 -1
  110. package/dist/src/uiComponents/NumberControl.vue.d.ts +2 -1
  111. package/dist/src/uiComponents/NumberControlBase.vue.d.ts +5 -9
  112. package/dist/src/uiComponents/OneOfDropdown.vue.d.ts +2 -1
  113. package/dist/src/uiComponents/RadioControl.vue.d.ts +2 -1
  114. package/dist/src/uiComponents/RadioControlBase.vue.d.ts +4 -8
  115. package/dist/src/uiComponents/SimpleButtonControl.vue.d.ts +5 -129
  116. package/dist/src/uiComponents/SingleSelectControl.vue.d.ts +2 -1
  117. package/dist/src/uiComponents/SingleSelectListBoxControl.vue.d.ts +2 -1
  118. package/dist/src/uiComponents/SortListControl.vue.d.ts +845 -12
  119. package/dist/src/uiComponents/TextAreaControl.vue.d.ts +2 -1
  120. package/dist/src/uiComponents/TextControl.vue.d.ts +203 -3
  121. package/dist/src/uiComponents/TextMessageControl.vue.d.ts +2 -1
  122. package/dist/src/uiComponents/TimeControl.vue.d.ts +2 -1
  123. package/dist/src/uiComponents/ValueSwitchControl.vue.d.ts +2 -1
  124. package/dist/src/uiComponents/ZonedDateTimeControl.vue.d.ts +2 -1
  125. package/dist/src/uiComponents/composables/useProvidedState.d.ts +1 -1
  126. package/dist/src/uiComponents/loading/TwinlistLoadingInfo.vue.d.ts +1 -1
  127. package/dist/src/uiComponents/richTextControl/DialogLinkModal.vue.d.ts +3 -1
  128. package/dist/src/uiComponents/richTextControl/RichTextControl.vue.d.ts +230 -1
  129. package/dist/src/uiComponents/twinlist/AnyOfTwinlist.vue.d.ts +2 -1
  130. package/dist/src/uiComponents/twinlist/ManualTwinlistControl.vue.d.ts +2 -1
  131. package/dist/src/uiComponents/twinlist/MultimodeTwinlistControl.vue.d.ts +8 -15
  132. package/dist/src/uiComponents/twinlist/NameFilter.vue.d.ts +2 -1
  133. package/dist/src/uiComponents/twinlist/SimpleTwinlistControl.vue.d.ts +2 -1
  134. package/dist/src/uiComponents/twinlist/TwinlistControlBase.vue.d.ts +5 -10
  135. package/dist/src/uiComponents/twinlist/TypedStringFilter.vue.d.ts +2 -1
  136. package/dist/{svgWithTitle-Cr3Pu3wr.js → svgWithTitle-CnTmPYAB.js} +4 -4
  137. package/dist/testUtils/component.d.ts +18 -18
  138. package/dist/testing.js +8688 -8655
  139. package/dist/{toString-C_MqBj3_.js → toString-BhubvA3m.js} +1 -1
  140. package/dist/{useBuiltinValidations-DP7OS71z.js → useBuiltinValidations-Boxrm71q.js} +1 -1
  141. package/dist/useDropdownNavigation-BfCXUheD.js +817 -0
  142. package/dist/usePossibleValues-DXuWWBh_.js +16 -0
  143. package/package.json +14 -14
  144. package/dist/CheckboxControl-Oe97HhY3.js +0 -40
  145. package/dist/DateTimeControl-DyXUJBHE.js +0 -54
  146. package/dist/Dropdown-CJj0CUA8.js +0 -604
  147. package/dist/MultiSelectListBoxControl-3Q41S4aA.js +0 -34
  148. package/dist/NumberControlBase.vue_vue_type_script_setup_true_lang-B9K5qEs3.js +0 -53
  149. package/dist/RadioControlBase.vue_vue_type_script_setup_true_lang-WaVJMdQq.js +0 -114
  150. package/dist/SectionHeading-BU1W5lDr.js +0 -19
  151. package/dist/SectionHeading.vue_vue_type_style_index_0_scoped_625edfbe_lang-CsYyUtDa.js +0 -14015
  152. package/dist/SettingsSubPanel-KxEyzlB6.js +0 -5
  153. package/dist/SimpleTwinlistControl-qXQxRI7h.js +0 -28
  154. package/dist/TimeControl-DfhE8yu9.js +0 -42
  155. package/dist/TypedStringFilter-C6JhWCCC.js +0 -29
  156. package/dist/VerticalLayoutBase-DRfHwc4t.js +0 -20
  157. package/dist/ZonedDateTimeControl-Bi8cV34A.js +0 -75
  158. package/dist/floating-ui.vue-B-MrqKCT.js +0 -1019
  159. package/dist/index-CoRworrE.js +0 -322
  160. package/dist/magic-string.es-D-aKzDFf.js +0 -858
  161. package/dist/navigator-D_R-txCf.js +0 -7
  162. package/dist/popper-CRR--9mA.js +0 -907
  163. package/dist/src/JsonFormsDialog.vue.d.ts +0 -46
  164. package/dist/useDropdownNavigation-7o7SRJSo.js +0 -781
  165. package/dist/usePossibleValues-lz0Rcu_N.js +0 -20
@@ -0,0 +1,817 @@
1
+ import { defineComponent as ye, ref as ce, computed as me, onMounted as ge, watch as we, onUnmounted as Fe, Comment as Te, cloneVNode as Ne, readonly as Ee } from "vue";
2
+ /*!
3
+ * tabbable 6.2.0
4
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
5
+ */
6
+ var le = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])", "a[href]:not([inert])", "button:not([inert])", "[tabindex]:not(slot):not([inert])", "audio[controls]:not([inert])", "video[controls]:not([inert])", '[contenteditable]:not([contenteditable="false"]):not([inert])', "details>summary:first-of-type:not([inert])", "details:not([inert])"], G = /* @__PURE__ */ le.join(","), se = typeof Element > "u", O = se ? function() {
7
+ } : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector, q = !se && Element.prototype.getRootNode ? function(r) {
8
+ var e;
9
+ return r == null || (e = r.getRootNode) === null || e === void 0 ? void 0 : e.call(r);
10
+ } : function(r) {
11
+ return r?.ownerDocument;
12
+ }, V = function r(e, t) {
13
+ var a;
14
+ t === void 0 && (t = !0);
15
+ var u = e == null || (a = e.getAttribute) === null || a === void 0 ? void 0 : a.call(e, "inert"), c = u === "" || u === "true", n = c || t && e && r(e.parentNode);
16
+ return n;
17
+ }, ke = function(e) {
18
+ var t, a = e == null || (t = e.getAttribute) === null || t === void 0 ? void 0 : t.call(e, "contenteditable");
19
+ return a === "" || a === "true";
20
+ }, de = function(e, t, a) {
21
+ if (V(e))
22
+ return [];
23
+ var u = Array.prototype.slice.apply(e.querySelectorAll(G));
24
+ return t && O.call(e, G) && u.unshift(e), u = u.filter(a), u;
25
+ }, fe = function r(e, t, a) {
26
+ for (var u = [], c = Array.from(e); c.length; ) {
27
+ var n = c.shift();
28
+ if (!V(n, !1))
29
+ if (n.tagName === "SLOT") {
30
+ var s = n.assignedElements(), f = s.length ? s : n.children, p = r(f, !0, a);
31
+ a.flatten ? u.push.apply(u, p) : u.push({
32
+ scopeParent: n,
33
+ candidates: p
34
+ });
35
+ } else {
36
+ var F = O.call(n, G);
37
+ F && a.filter(n) && (t || !e.includes(n)) && u.push(n);
38
+ var T = n.shadowRoot || // check for an undisclosed shadow
39
+ typeof a.getShadowRoot == "function" && a.getShadowRoot(n), N = !V(T, !1) && (!a.shadowRootFilter || a.shadowRootFilter(n));
40
+ if (T && N) {
41
+ var k = r(T === !0 ? n.children : T.children, !0, a);
42
+ a.flatten ? u.push.apply(u, k) : u.push({
43
+ scopeParent: n,
44
+ candidates: k
45
+ });
46
+ } else
47
+ c.unshift.apply(c, n.children);
48
+ }
49
+ }
50
+ return u;
51
+ }, ve = function(e) {
52
+ return !isNaN(parseInt(e.getAttribute("tabindex"), 10));
53
+ }, D = function(e) {
54
+ if (!e)
55
+ throw new Error("No node provided");
56
+ return e.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName) || ke(e)) && !ve(e) ? 0 : e.tabIndex;
57
+ }, Se = function(e, t) {
58
+ var a = D(e);
59
+ return a < 0 && t && !ve(e) ? 0 : a;
60
+ }, De = function(e, t) {
61
+ return e.tabIndex === t.tabIndex ? e.documentOrder - t.documentOrder : e.tabIndex - t.tabIndex;
62
+ }, be = function(e) {
63
+ return e.tagName === "INPUT";
64
+ }, Oe = function(e) {
65
+ return be(e) && e.type === "hidden";
66
+ }, Ie = function(e) {
67
+ var t = e.tagName === "DETAILS" && Array.prototype.slice.apply(e.children).some(function(a) {
68
+ return a.tagName === "SUMMARY";
69
+ });
70
+ return t;
71
+ }, Ce = function(e, t) {
72
+ for (var a = 0; a < e.length; a++)
73
+ if (e[a].checked && e[a].form === t)
74
+ return e[a];
75
+ }, Ae = function(e) {
76
+ if (!e.name)
77
+ return !0;
78
+ var t = e.form || q(e), a = function(s) {
79
+ return t.querySelectorAll('input[type="radio"][name="' + s + '"]');
80
+ }, u;
81
+ if (typeof window < "u" && typeof window.CSS < "u" && typeof window.CSS.escape == "function")
82
+ u = a(window.CSS.escape(e.name));
83
+ else
84
+ try {
85
+ u = a(e.name);
86
+ } catch (n) {
87
+ return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", n.message), !1;
88
+ }
89
+ var c = Ce(u, e.form);
90
+ return !c || c === e;
91
+ }, Re = function(e) {
92
+ return be(e) && e.type === "radio";
93
+ }, Pe = function(e) {
94
+ return Re(e) && !Ae(e);
95
+ }, xe = function(e) {
96
+ var t, a = e && q(e), u = (t = a) === null || t === void 0 ? void 0 : t.host, c = !1;
97
+ if (a && a !== e) {
98
+ var n, s, f;
99
+ for (c = !!((n = u) !== null && n !== void 0 && (s = n.ownerDocument) !== null && s !== void 0 && s.contains(u) || e != null && (f = e.ownerDocument) !== null && f !== void 0 && f.contains(e)); !c && u; ) {
100
+ var p, F, T;
101
+ a = q(u), u = (p = a) === null || p === void 0 ? void 0 : p.host, c = !!((F = u) !== null && F !== void 0 && (T = F.ownerDocument) !== null && T !== void 0 && T.contains(u));
102
+ }
103
+ }
104
+ return c;
105
+ }, re = function(e) {
106
+ var t = e.getBoundingClientRect(), a = t.width, u = t.height;
107
+ return a === 0 && u === 0;
108
+ }, Be = function(e, t) {
109
+ var a = t.displayCheck, u = t.getShadowRoot;
110
+ if (getComputedStyle(e).visibility === "hidden")
111
+ return !0;
112
+ var c = O.call(e, "details>summary:first-of-type"), n = c ? e.parentElement : e;
113
+ if (O.call(n, "details:not([open]) *"))
114
+ return !0;
115
+ if (!a || a === "full" || a === "legacy-full") {
116
+ if (typeof u == "function") {
117
+ for (var s = e; e; ) {
118
+ var f = e.parentElement, p = q(e);
119
+ if (f && !f.shadowRoot && u(f) === !0)
120
+ return re(e);
121
+ e.assignedSlot ? e = e.assignedSlot : !f && p !== e.ownerDocument ? e = p.host : e = f;
122
+ }
123
+ e = s;
124
+ }
125
+ if (xe(e))
126
+ return !e.getClientRects().length;
127
+ if (a !== "legacy-full")
128
+ return !0;
129
+ } else if (a === "non-zero-area")
130
+ return re(e);
131
+ return !1;
132
+ }, Le = function(e) {
133
+ if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))
134
+ for (var t = e.parentElement; t; ) {
135
+ if (t.tagName === "FIELDSET" && t.disabled) {
136
+ for (var a = 0; a < t.children.length; a++) {
137
+ var u = t.children.item(a);
138
+ if (u.tagName === "LEGEND")
139
+ return O.call(t, "fieldset[disabled] *") ? !0 : !u.contains(e);
140
+ }
141
+ return !0;
142
+ }
143
+ t = t.parentElement;
144
+ }
145
+ return !1;
146
+ }, _ = function(e, t) {
147
+ return !(t.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
148
+ // because we're limited in the type of selectors we can use in JSDom (see related
149
+ // note related to `candidateSelectors`)
150
+ V(t) || Oe(t) || Be(t, e) || // For a details element with a summary, the summary element gets the focus
151
+ Ie(t) || Le(t));
152
+ }, Z = function(e, t) {
153
+ return !(Pe(t) || D(t) < 0 || !_(e, t));
154
+ }, je = function(e) {
155
+ var t = parseInt(e.getAttribute("tabindex"), 10);
156
+ return !!(isNaN(t) || t >= 0);
157
+ }, Ke = function r(e) {
158
+ var t = [], a = [];
159
+ return e.forEach(function(u, c) {
160
+ var n = !!u.scopeParent, s = n ? u.scopeParent : u, f = Se(s, n), p = n ? r(u.candidates) : s;
161
+ f === 0 ? n ? t.push.apply(t, p) : t.push(s) : a.push({
162
+ documentOrder: c,
163
+ tabIndex: f,
164
+ item: u,
165
+ isScope: n,
166
+ content: p
167
+ });
168
+ }), a.sort(De).reduce(function(u, c) {
169
+ return c.isScope ? u.push.apply(u, c.content) : u.push(c.content), u;
170
+ }, []).concat(t);
171
+ }, Me = function(e, t) {
172
+ t = t || {};
173
+ var a;
174
+ return t.getShadowRoot ? a = fe([e], t.includeContainer, {
175
+ filter: Z.bind(null, t),
176
+ flatten: !1,
177
+ getShadowRoot: t.getShadowRoot,
178
+ shadowRootFilter: je
179
+ }) : a = de(e, t.includeContainer, Z.bind(null, t)), Ke(a);
180
+ }, Ge = function(e, t) {
181
+ t = t || {};
182
+ var a;
183
+ return t.getShadowRoot ? a = fe([e], t.includeContainer, {
184
+ filter: _.bind(null, t),
185
+ flatten: !0,
186
+ getShadowRoot: t.getShadowRoot
187
+ }) : a = de(e, t.includeContainer, _.bind(null, t)), a;
188
+ }, I = function(e, t) {
189
+ if (t = t || {}, !e)
190
+ throw new Error("No node provided");
191
+ return O.call(e, G) === !1 ? !1 : Z(t, e);
192
+ }, qe = /* @__PURE__ */ le.concat("iframe").join(","), Y = function(e, t) {
193
+ if (t = t || {}, !e)
194
+ throw new Error("No node provided");
195
+ return O.call(e, qe) === !1 ? !1 : _(t, e);
196
+ };
197
+ /*!
198
+ * focus-trap 7.6.5
199
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
200
+ */
201
+ function z(r, e) {
202
+ (e == null || e > r.length) && (e = r.length);
203
+ for (var t = 0, a = Array(e); t < e; t++) a[t] = r[t];
204
+ return a;
205
+ }
206
+ function Ve(r) {
207
+ if (Array.isArray(r)) return z(r);
208
+ }
209
+ function _e(r, e, t) {
210
+ return (e = Ye(e)) in r ? Object.defineProperty(r, e, {
211
+ value: t,
212
+ enumerable: !0,
213
+ configurable: !0,
214
+ writable: !0
215
+ }) : r[e] = t, r;
216
+ }
217
+ function Ue(r) {
218
+ if (typeof Symbol < "u" && r[Symbol.iterator] != null || r["@@iterator"] != null) return Array.from(r);
219
+ }
220
+ function $e() {
221
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
223
+ }
224
+ function ne(r, e) {
225
+ var t = Object.keys(r);
226
+ if (Object.getOwnPropertySymbols) {
227
+ var a = Object.getOwnPropertySymbols(r);
228
+ e && (a = a.filter(function(u) {
229
+ return Object.getOwnPropertyDescriptor(r, u).enumerable;
230
+ })), t.push.apply(t, a);
231
+ }
232
+ return t;
233
+ }
234
+ function ie(r) {
235
+ for (var e = 1; e < arguments.length; e++) {
236
+ var t = arguments[e] != null ? arguments[e] : {};
237
+ e % 2 ? ne(Object(t), !0).forEach(function(a) {
238
+ _e(r, a, t[a]);
239
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : ne(Object(t)).forEach(function(a) {
240
+ Object.defineProperty(r, a, Object.getOwnPropertyDescriptor(t, a));
241
+ });
242
+ }
243
+ return r;
244
+ }
245
+ function He(r) {
246
+ return Ve(r) || Ue(r) || Ze(r) || $e();
247
+ }
248
+ function We(r, e) {
249
+ if (typeof r != "object" || !r) return r;
250
+ var t = r[Symbol.toPrimitive];
251
+ if (t !== void 0) {
252
+ var a = t.call(r, e);
253
+ if (typeof a != "object") return a;
254
+ throw new TypeError("@@toPrimitive must return a primitive value.");
255
+ }
256
+ return (e === "string" ? String : Number)(r);
257
+ }
258
+ function Ye(r) {
259
+ var e = We(r, "string");
260
+ return typeof e == "symbol" ? e : e + "";
261
+ }
262
+ function Ze(r, e) {
263
+ if (r) {
264
+ if (typeof r == "string") return z(r, e);
265
+ var t = {}.toString.call(r).slice(8, -1);
266
+ return t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set" ? Array.from(r) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? z(r, e) : void 0;
267
+ }
268
+ }
269
+ var oe = {
270
+ activateTrap: function(e, t) {
271
+ if (e.length > 0) {
272
+ var a = e[e.length - 1];
273
+ a !== t && a._setPausedState(!0);
274
+ }
275
+ var u = e.indexOf(t);
276
+ u === -1 || e.splice(u, 1), e.push(t);
277
+ },
278
+ deactivateTrap: function(e, t) {
279
+ var a = e.indexOf(t);
280
+ a !== -1 && e.splice(a, 1), e.length > 0 && !e[e.length - 1]._isManuallyPaused() && e[e.length - 1]._setPausedState(!1);
281
+ }
282
+ }, ze = function(e) {
283
+ return e.tagName && e.tagName.toLowerCase() === "input" && typeof e.select == "function";
284
+ }, Xe = function(e) {
285
+ return e?.key === "Escape" || e?.key === "Esc" || e?.keyCode === 27;
286
+ }, B = function(e) {
287
+ return e?.key === "Tab" || e?.keyCode === 9;
288
+ }, Je = function(e) {
289
+ return B(e) && !e.shiftKey;
290
+ }, Qe = function(e) {
291
+ return B(e) && e.shiftKey;
292
+ }, ue = function(e) {
293
+ return setTimeout(e, 0);
294
+ }, x = function(e) {
295
+ for (var t = arguments.length, a = new Array(t > 1 ? t - 1 : 0), u = 1; u < t; u++)
296
+ a[u - 1] = arguments[u];
297
+ return typeof e == "function" ? e.apply(void 0, a) : e;
298
+ }, K = function(e) {
299
+ return e.target.shadowRoot && typeof e.composedPath == "function" ? e.composedPath()[0] : e.target;
300
+ }, et = [], tt = function(e, t) {
301
+ var a = t?.document || document, u = t?.trapStack || et, c = ie({
302
+ returnFocusOnDeactivate: !0,
303
+ escapeDeactivates: !0,
304
+ delayInitialFocus: !0,
305
+ isKeyForward: Je,
306
+ isKeyBackward: Qe
307
+ }, t), n = {
308
+ // containers given to createFocusTrap()
309
+ // @type {Array<HTMLElement>}
310
+ containers: [],
311
+ // list of objects identifying tabbable nodes in `containers` in the trap
312
+ // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
313
+ // is active, but the trap should never get to a state where there isn't at least one group
314
+ // with at least one tabbable node in it (that would lead to an error condition that would
315
+ // result in an error being thrown)
316
+ // @type {Array<{
317
+ // container: HTMLElement,
318
+ // tabbableNodes: Array<HTMLElement>, // empty if none
319
+ // focusableNodes: Array<HTMLElement>, // empty if none
320
+ // posTabIndexesFound: boolean,
321
+ // firstTabbableNode: HTMLElement|undefined,
322
+ // lastTabbableNode: HTMLElement|undefined,
323
+ // firstDomTabbableNode: HTMLElement|undefined,
324
+ // lastDomTabbableNode: HTMLElement|undefined,
325
+ // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
326
+ // }>}
327
+ containerGroups: [],
328
+ // same order/length as `containers` list
329
+ // references to objects in `containerGroups`, but only those that actually have
330
+ // tabbable nodes in them
331
+ // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
332
+ // the same length
333
+ tabbableGroups: [],
334
+ nodeFocusedBeforeActivation: null,
335
+ mostRecentlyFocusedNode: null,
336
+ active: !1,
337
+ paused: !1,
338
+ manuallyPaused: !1,
339
+ // timer ID for when delayInitialFocus is true and initial focus in this trap
340
+ // has been delayed during activation
341
+ delayInitialFocusTimer: void 0,
342
+ // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
343
+ recentNavEvent: void 0
344
+ }, s, f = function(i, o, l) {
345
+ return i && i[o] !== void 0 ? i[o] : c[l || o];
346
+ }, p = function(i, o) {
347
+ var l = typeof o?.composedPath == "function" ? o.composedPath() : void 0;
348
+ return n.containerGroups.findIndex(function(v) {
349
+ var b = v.container, y = v.tabbableNodes;
350
+ return b.contains(i) || l?.includes(b) || y.find(function(d) {
351
+ return d === i;
352
+ });
353
+ });
354
+ }, F = function(i) {
355
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, l = o.hasFallback, v = l === void 0 ? !1 : l, b = o.params, y = b === void 0 ? [] : b, d = c[i];
356
+ if (typeof d == "function" && (d = d.apply(void 0, He(y))), d === !0 && (d = void 0), !d) {
357
+ if (d === void 0 || d === !1)
358
+ return d;
359
+ throw new Error("`".concat(i, "` was specified but was not a node, or did not return a node"));
360
+ }
361
+ var g = d;
362
+ if (typeof d == "string") {
363
+ try {
364
+ g = a.querySelector(d);
365
+ } catch (w) {
366
+ throw new Error("`".concat(i, '` appears to be an invalid selector; error="').concat(w.message, '"'));
367
+ }
368
+ if (!g && !v)
369
+ throw new Error("`".concat(i, "` as selector refers to no known node"));
370
+ }
371
+ return g;
372
+ }, T = function() {
373
+ var i = F("initialFocus", {
374
+ hasFallback: !0
375
+ });
376
+ if (i === !1)
377
+ return !1;
378
+ if (i === void 0 || i && !Y(i, c.tabbableOptions))
379
+ if (p(a.activeElement) >= 0)
380
+ i = a.activeElement;
381
+ else {
382
+ var o = n.tabbableGroups[0], l = o && o.firstTabbableNode;
383
+ i = l || F("fallbackFocus");
384
+ }
385
+ else i === null && (i = F("fallbackFocus"));
386
+ if (!i)
387
+ throw new Error("Your focus-trap needs to have at least one focusable element");
388
+ return i;
389
+ }, N = function() {
390
+ if (n.containerGroups = n.containers.map(function(i) {
391
+ var o = Me(i, c.tabbableOptions), l = Ge(i, c.tabbableOptions), v = o.length > 0 ? o[0] : void 0, b = o.length > 0 ? o[o.length - 1] : void 0, y = l.find(function(w) {
392
+ return I(w);
393
+ }), d = l.slice().reverse().find(function(w) {
394
+ return I(w);
395
+ }), g = !!o.find(function(w) {
396
+ return D(w) > 0;
397
+ });
398
+ return {
399
+ container: i,
400
+ tabbableNodes: o,
401
+ focusableNodes: l,
402
+ /** True if at least one node with positive `tabindex` was found in this container. */
403
+ posTabIndexesFound: g,
404
+ /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
405
+ firstTabbableNode: v,
406
+ /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
407
+ lastTabbableNode: b,
408
+ // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
409
+ // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
410
+ // because that API doesn't work with Shadow DOM as well as it should (@see
411
+ // https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
412
+ // to address an edge case related to positive tabindex support, this seems like a much easier,
413
+ // "close enough most of the time" alternative for positive tabindexes which should generally
414
+ // be avoided anyway...
415
+ /** First tabbable node in container, __DOM__ order; `undefined` if none. */
416
+ firstDomTabbableNode: y,
417
+ /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
418
+ lastDomTabbableNode: d,
419
+ /**
420
+ * Finds the __tabbable__ node that follows the given node in the specified direction,
421
+ * in this container, if any.
422
+ * @param {HTMLElement} node
423
+ * @param {boolean} [forward] True if going in forward tab order; false if going
424
+ * in reverse.
425
+ * @returns {HTMLElement|undefined} The next tabbable node, if any.
426
+ */
427
+ nextTabbableNode: function(S) {
428
+ var R = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, E = o.indexOf(S);
429
+ return E < 0 ? R ? l.slice(l.indexOf(S) + 1).find(function(P) {
430
+ return I(P);
431
+ }) : l.slice(0, l.indexOf(S)).reverse().find(function(P) {
432
+ return I(P);
433
+ }) : o[E + (R ? 1 : -1)];
434
+ }
435
+ };
436
+ }), n.tabbableGroups = n.containerGroups.filter(function(i) {
437
+ return i.tabbableNodes.length > 0;
438
+ }), n.tabbableGroups.length <= 0 && !F("fallbackFocus"))
439
+ throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
440
+ if (n.containerGroups.find(function(i) {
441
+ return i.posTabIndexesFound;
442
+ }) && n.containerGroups.length > 1)
443
+ throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
444
+ }, k = function(i) {
445
+ var o = i.activeElement;
446
+ if (o)
447
+ return o.shadowRoot && o.shadowRoot.activeElement !== null ? k(o.shadowRoot) : o;
448
+ }, m = function(i) {
449
+ if (i !== !1 && i !== k(document)) {
450
+ if (!i || !i.focus) {
451
+ m(T());
452
+ return;
453
+ }
454
+ i.focus({
455
+ preventScroll: !!c.preventScroll
456
+ }), n.mostRecentlyFocusedNode = i, ze(i) && i.select();
457
+ }
458
+ }, L = function(i) {
459
+ var o = F("setReturnFocus", {
460
+ params: [i]
461
+ });
462
+ return o || (o === !1 ? !1 : i);
463
+ }, j = function(i) {
464
+ var o = i.target, l = i.event, v = i.isBackward, b = v === void 0 ? !1 : v;
465
+ o = o || K(l), N();
466
+ var y = null;
467
+ if (n.tabbableGroups.length > 0) {
468
+ var d = p(o, l), g = d >= 0 ? n.containerGroups[d] : void 0;
469
+ if (d < 0)
470
+ b ? y = n.tabbableGroups[n.tabbableGroups.length - 1].lastTabbableNode : y = n.tabbableGroups[0].firstTabbableNode;
471
+ else if (b) {
472
+ var w = n.tabbableGroups.findIndex(function(H) {
473
+ var W = H.firstTabbableNode;
474
+ return o === W;
475
+ });
476
+ if (w < 0 && (g.container === o || Y(o, c.tabbableOptions) && !I(o, c.tabbableOptions) && !g.nextTabbableNode(o, !1)) && (w = d), w >= 0) {
477
+ var S = w === 0 ? n.tabbableGroups.length - 1 : w - 1, R = n.tabbableGroups[S];
478
+ y = D(o) >= 0 ? R.lastTabbableNode : R.lastDomTabbableNode;
479
+ } else B(l) || (y = g.nextTabbableNode(o, !1));
480
+ } else {
481
+ var E = n.tabbableGroups.findIndex(function(H) {
482
+ var W = H.lastTabbableNode;
483
+ return o === W;
484
+ });
485
+ if (E < 0 && (g.container === o || Y(o, c.tabbableOptions) && !I(o, c.tabbableOptions) && !g.nextTabbableNode(o)) && (E = d), E >= 0) {
486
+ var P = E === n.tabbableGroups.length - 1 ? 0 : E + 1, ae = n.tabbableGroups[P];
487
+ y = D(o) >= 0 ? ae.firstTabbableNode : ae.firstDomTabbableNode;
488
+ } else B(l) || (y = g.nextTabbableNode(o));
489
+ }
490
+ } else
491
+ y = F("fallbackFocus");
492
+ return y;
493
+ }, C = function(i) {
494
+ var o = K(i);
495
+ if (!(p(o, i) >= 0)) {
496
+ if (x(c.clickOutsideDeactivates, i)) {
497
+ s.deactivate({
498
+ // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
499
+ // which will result in the outside click setting focus to the node
500
+ // that was clicked (and if not focusable, to "nothing"); by setting
501
+ // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
502
+ // on activation (or the configured `setReturnFocus` node), whether the
503
+ // outside click was on a focusable node or not
504
+ returnFocus: c.returnFocusOnDeactivate
505
+ });
506
+ return;
507
+ }
508
+ x(c.allowOutsideClick, i) || i.preventDefault();
509
+ }
510
+ }, U = function(i) {
511
+ var o = K(i), l = p(o, i) >= 0;
512
+ if (l || o instanceof Document)
513
+ l && (n.mostRecentlyFocusedNode = o);
514
+ else {
515
+ i.stopImmediatePropagation();
516
+ var v, b = !0;
517
+ if (n.mostRecentlyFocusedNode)
518
+ if (D(n.mostRecentlyFocusedNode) > 0) {
519
+ var y = p(n.mostRecentlyFocusedNode), d = n.containerGroups[y].tabbableNodes;
520
+ if (d.length > 0) {
521
+ var g = d.findIndex(function(w) {
522
+ return w === n.mostRecentlyFocusedNode;
523
+ });
524
+ g >= 0 && (c.isKeyForward(n.recentNavEvent) ? g + 1 < d.length && (v = d[g + 1], b = !1) : g - 1 >= 0 && (v = d[g - 1], b = !1));
525
+ }
526
+ } else
527
+ n.containerGroups.some(function(w) {
528
+ return w.tabbableNodes.some(function(S) {
529
+ return D(S) > 0;
530
+ });
531
+ }) || (b = !1);
532
+ else
533
+ b = !1;
534
+ b && (v = j({
535
+ // move FROM the MRU node, not event-related node (which will be the node that is
536
+ // outside the trap causing the focus escape we're trying to fix)
537
+ target: n.mostRecentlyFocusedNode,
538
+ isBackward: c.isKeyBackward(n.recentNavEvent)
539
+ })), m(v || n.mostRecentlyFocusedNode || T());
540
+ }
541
+ n.recentNavEvent = void 0;
542
+ }, he = function(i) {
543
+ var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
544
+ n.recentNavEvent = i;
545
+ var l = j({
546
+ event: i,
547
+ isBackward: o
548
+ });
549
+ l && (B(i) && i.preventDefault(), m(l));
550
+ }, X = function(i) {
551
+ (c.isKeyForward(i) || c.isKeyBackward(i)) && he(i, c.isKeyBackward(i));
552
+ }, J = function(i) {
553
+ Xe(i) && x(c.escapeDeactivates, i) !== !1 && (i.preventDefault(), s.deactivate());
554
+ }, Q = function(i) {
555
+ var o = K(i);
556
+ p(o, i) >= 0 || x(c.clickOutsideDeactivates, i) || x(c.allowOutsideClick, i) || (i.preventDefault(), i.stopImmediatePropagation());
557
+ }, ee = function() {
558
+ if (n.active)
559
+ return oe.activateTrap(u, s), n.delayInitialFocusTimer = c.delayInitialFocus ? ue(function() {
560
+ m(T());
561
+ }) : m(T()), a.addEventListener("focusin", U, !0), a.addEventListener("mousedown", C, {
562
+ capture: !0,
563
+ passive: !1
564
+ }), a.addEventListener("touchstart", C, {
565
+ capture: !0,
566
+ passive: !1
567
+ }), a.addEventListener("click", Q, {
568
+ capture: !0,
569
+ passive: !1
570
+ }), a.addEventListener("keydown", X, {
571
+ capture: !0,
572
+ passive: !1
573
+ }), a.addEventListener("keydown", J), s;
574
+ }, te = function() {
575
+ if (n.active)
576
+ return a.removeEventListener("focusin", U, !0), a.removeEventListener("mousedown", C, !0), a.removeEventListener("touchstart", C, !0), a.removeEventListener("click", Q, !0), a.removeEventListener("keydown", X, !0), a.removeEventListener("keydown", J), s;
577
+ }, pe = function(i) {
578
+ var o = i.some(function(l) {
579
+ var v = Array.from(l.removedNodes);
580
+ return v.some(function(b) {
581
+ return b === n.mostRecentlyFocusedNode;
582
+ });
583
+ });
584
+ o && m(T());
585
+ }, $ = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(pe) : void 0, A = function() {
586
+ $ && ($.disconnect(), n.active && !n.paused && n.containers.map(function(i) {
587
+ $.observe(i, {
588
+ subtree: !0,
589
+ childList: !0
590
+ });
591
+ }));
592
+ };
593
+ return s = {
594
+ get active() {
595
+ return n.active;
596
+ },
597
+ get paused() {
598
+ return n.paused;
599
+ },
600
+ activate: function(i) {
601
+ if (n.active)
602
+ return this;
603
+ var o = f(i, "onActivate"), l = f(i, "onPostActivate"), v = f(i, "checkCanFocusTrap");
604
+ v || N(), n.active = !0, n.paused = !1, n.nodeFocusedBeforeActivation = k(a), o?.();
605
+ var b = function() {
606
+ v && N(), ee(), A(), l?.();
607
+ };
608
+ return v ? (v(n.containers.concat()).then(b, b), this) : (b(), this);
609
+ },
610
+ deactivate: function(i) {
611
+ if (!n.active)
612
+ return this;
613
+ var o = ie({
614
+ onDeactivate: c.onDeactivate,
615
+ onPostDeactivate: c.onPostDeactivate,
616
+ checkCanReturnFocus: c.checkCanReturnFocus
617
+ }, i);
618
+ clearTimeout(n.delayInitialFocusTimer), n.delayInitialFocusTimer = void 0, te(), n.active = !1, n.paused = !1, A(), oe.deactivateTrap(u, s);
619
+ var l = f(o, "onDeactivate"), v = f(o, "onPostDeactivate"), b = f(o, "checkCanReturnFocus"), y = f(o, "returnFocus", "returnFocusOnDeactivate");
620
+ l?.();
621
+ var d = function() {
622
+ ue(function() {
623
+ y && m(L(n.nodeFocusedBeforeActivation)), v?.();
624
+ });
625
+ };
626
+ return y && b ? (b(L(n.nodeFocusedBeforeActivation)).then(d, d), this) : (d(), this);
627
+ },
628
+ pause: function(i) {
629
+ return n.active ? (n.manuallyPaused = !0, this._setPausedState(!0, i)) : this;
630
+ },
631
+ unpause: function(i) {
632
+ return n.active ? (n.manuallyPaused = !1, u[u.length - 1] !== this ? this : this._setPausedState(!1, i)) : this;
633
+ },
634
+ updateContainerElements: function(i) {
635
+ var o = [].concat(i).filter(Boolean);
636
+ return n.containers = o.map(function(l) {
637
+ return typeof l == "string" ? a.querySelector(l) : l;
638
+ }), n.active && N(), A(), this;
639
+ }
640
+ }, Object.defineProperties(s, {
641
+ _isManuallyPaused: {
642
+ value: function() {
643
+ return n.manuallyPaused;
644
+ }
645
+ },
646
+ _setPausedState: {
647
+ value: function(i, o) {
648
+ if (n.paused === i)
649
+ return this;
650
+ if (n.paused = i, i) {
651
+ var l = f(o, "onPause"), v = f(o, "onPostPause");
652
+ l?.(), te(), A(), v?.();
653
+ } else {
654
+ var b = f(o, "onUnpause"), y = f(o, "onPostUnpause");
655
+ b?.(), N(), ee(), A(), y?.();
656
+ }
657
+ return this;
658
+ }
659
+ }
660
+ }), s.updateContainerElements(e), s;
661
+ };
662
+ /*!
663
+ * focus-trap-vue v4.0.1
664
+ * (c) 2023 Eduardo San Martin Morote
665
+ * @license MIT
666
+ */
667
+ const at = {
668
+ escapeDeactivates: {
669
+ type: Boolean,
670
+ default: !0
671
+ },
672
+ returnFocusOnDeactivate: {
673
+ type: Boolean,
674
+ default: !0
675
+ },
676
+ allowOutsideClick: {
677
+ type: [Boolean, Function],
678
+ default: !0
679
+ },
680
+ clickOutsideDeactivates: [Boolean, Function],
681
+ initialFocus: [String, Function, Boolean],
682
+ fallbackFocus: [String, Function],
683
+ checkCanFocusTrap: Function,
684
+ checkCanReturnFocus: Function,
685
+ delayInitialFocus: {
686
+ type: Boolean,
687
+ default: !0
688
+ },
689
+ document: Object,
690
+ preventScroll: Boolean,
691
+ setReturnFocus: [Object, String, Boolean, Function],
692
+ tabbableOptions: Object
693
+ }, nt = ye({
694
+ props: Object.assign({
695
+ active: {
696
+ // TODO: could be options for activate but what about the options for deactivating?
697
+ type: Boolean,
698
+ default: !0
699
+ }
700
+ }, at),
701
+ emits: [
702
+ "update:active",
703
+ "activate",
704
+ "postActivate",
705
+ "deactivate",
706
+ "postDeactivate"
707
+ ],
708
+ render() {
709
+ return this.renderImpl();
710
+ },
711
+ setup(r, { slots: e, emit: t }) {
712
+ let a;
713
+ const u = ce(null), c = me(() => {
714
+ const s = u.value;
715
+ return s && (s instanceof HTMLElement ? s : s.$el);
716
+ });
717
+ function n() {
718
+ return a || (a = tt(c.value, {
719
+ escapeDeactivates: r.escapeDeactivates,
720
+ allowOutsideClick: r.allowOutsideClick,
721
+ returnFocusOnDeactivate: r.returnFocusOnDeactivate,
722
+ clickOutsideDeactivates: r.clickOutsideDeactivates,
723
+ onActivate: () => {
724
+ t("update:active", !0), t("activate");
725
+ },
726
+ onDeactivate: () => {
727
+ t("update:active", !1), t("deactivate");
728
+ },
729
+ onPostActivate: () => t("postActivate"),
730
+ onPostDeactivate: () => t("postDeactivate"),
731
+ initialFocus: r.initialFocus,
732
+ fallbackFocus: r.fallbackFocus,
733
+ tabbableOptions: r.tabbableOptions,
734
+ delayInitialFocus: r.delayInitialFocus
735
+ }));
736
+ }
737
+ return ge(() => {
738
+ we(() => r.active, (s) => {
739
+ s && c.value ? n().activate() : a && (a.deactivate(), (!c.value || c.value.nodeType === Node.COMMENT_NODE) && (a = null));
740
+ }, { immediate: !0, flush: "post" });
741
+ }), Fe(() => {
742
+ a && a.deactivate(), a = null;
743
+ }), {
744
+ activate() {
745
+ n().activate();
746
+ },
747
+ deactivate() {
748
+ a && a.deactivate();
749
+ },
750
+ renderImpl() {
751
+ if (!e.default)
752
+ return null;
753
+ const s = e.default().filter((p) => p.type !== Te);
754
+ return !s || !s.length || s.length > 1 ? (console.error("[focus-trap-vue]: FocusTrap requires exactly one child."), s) : Ne(s[0], { ref: u });
755
+ }
756
+ };
757
+ }
758
+ }), M = (r) => {
759
+ r.preventDefault(), r.stopPropagation(), r.stopImmediatePropagation();
760
+ }, it = ({
761
+ getNextElement: r,
762
+ getFirstElement: e,
763
+ getLastElement: t,
764
+ close: a,
765
+ disableSpaceToClick: u,
766
+ keepOpenedOnTab: c
767
+ }) => {
768
+ const n = ce(null), s = () => {
769
+ };
770
+ let f = s;
771
+ const p = () => {
772
+ n.value = null, f = s;
773
+ }, F = (m) => {
774
+ n.value = m.index, f = m.onClick;
775
+ }, T = (m) => {
776
+ F(r(n.value, m));
777
+ }, N = () => {
778
+ p(), a();
779
+ };
780
+ return {
781
+ onKeydown: (m) => {
782
+ switch (m.code) {
783
+ case "ArrowDown":
784
+ M(m), T(1);
785
+ break;
786
+ case "ArrowUp":
787
+ M(m), T(-1);
788
+ break;
789
+ case "Enter":
790
+ case "Space": {
791
+ const L = m.code === "Enter", j = m.code === "Space";
792
+ n.value !== null && (L || j && !u) && (M(m), f());
793
+ break;
794
+ }
795
+ case "Home":
796
+ e && F(e());
797
+ break;
798
+ case "End":
799
+ t && F(t());
800
+ break;
801
+ case "Escape":
802
+ M(m), N();
803
+ break;
804
+ case "Tab":
805
+ c || N();
806
+ break;
807
+ }
808
+ },
809
+ currentIndex: Ee(n),
810
+ resetNavigation: p,
811
+ setElement: F
812
+ };
813
+ };
814
+ export {
815
+ nt as F,
816
+ it as u
817
+ };