@turquoisehealth/pit-viper 2.104.1 → 2.104.2-dev.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 (128) hide show
  1. package/_site/assets/css/pit-viper-v2-scoped.css +19 -0
  2. package/_site/assets/css/pit-viper-v2.css +21 -0
  3. package/_site/assets/css/pit-viper.css +21 -0
  4. package/package.json +38 -11
  5. package/pv-components/dist/stats/vue/base/stats.html +4949 -0
  6. package/pv-components/dist/stats/vue/visualizations/stats.html +4949 -0
  7. package/pv-components/dist/stats/web/pv-accordion-stats.html +4949 -0
  8. package/pv-components/dist/stats/web/pv-action-bar-stats.html +4949 -0
  9. package/pv-components/dist/stats/web/pv-avatar-group-stats.html +4949 -0
  10. package/pv-components/dist/stats/web/pv-avatar-stats.html +4949 -0
  11. package/pv-components/dist/stats/web/pv-banner-stats.html +4949 -0
  12. package/pv-components/dist/stats/web/pv-breadcrumbs-stats.html +4949 -0
  13. package/pv-components/dist/stats/web/pv-button-stats.html +4949 -0
  14. package/pv-components/dist/stats/web/pv-card-stats.html +4949 -0
  15. package/pv-components/dist/stats/web/pv-checkbox-stats.html +4949 -0
  16. package/pv-components/dist/stats/web/pv-company-label-stats.html +4949 -0
  17. package/pv-components/dist/stats/web/pv-company-logo-stats.html +4949 -0
  18. package/pv-components/dist/stats/web/pv-company-tag-stats.html +4949 -0
  19. package/pv-components/dist/stats/web/pv-counter-badge-stats.html +4949 -0
  20. package/pv-components/dist/stats/web/pv-date-picker-stats.html +4949 -0
  21. package/pv-components/dist/stats/web/pv-date-time-stats.html +4949 -0
  22. package/pv-components/dist/stats/web/pv-drawer-stats.html +4949 -0
  23. package/pv-components/dist/stats/web/pv-dropdown-stats.html +4949 -0
  24. package/pv-components/dist/stats/web/pv-expandable-content-stats.html +4949 -0
  25. package/pv-components/dist/stats/web/pv-ghost-input-stats.html +4949 -0
  26. package/pv-components/dist/stats/web/pv-icon-stats.html +4949 -0
  27. package/pv-components/dist/stats/web/pv-input-stats.html +4949 -0
  28. package/pv-components/dist/stats/web/pv-insight-card-stats.html +4949 -0
  29. package/pv-components/dist/stats/web/pv-modal-stats.html +4949 -0
  30. package/pv-components/dist/stats/web/pv-multi-select-button-stats.html +4949 -0
  31. package/pv-components/dist/stats/web/pv-pagination-stats.html +4949 -0
  32. package/pv-components/dist/stats/web/pv-pill-stats.html +4949 -0
  33. package/pv-components/dist/stats/web/pv-popover-menu-stats.html +4949 -0
  34. package/pv-components/dist/stats/web/pv-popover-stats.html +4949 -0
  35. package/pv-components/dist/stats/web/pv-popover-v2-stats.html +4949 -0
  36. package/pv-components/dist/stats/web/pv-rating-stats.html +4949 -0
  37. package/pv-components/dist/stats/web/pv-release-badge-stats.html +4949 -0
  38. package/pv-components/dist/stats/web/pv-search-input-stats.html +4949 -0
  39. package/pv-components/dist/stats/web/pv-segmented-control-stats.html +4949 -0
  40. package/pv-components/dist/stats/web/pv-select-button-stats.html +4949 -0
  41. package/pv-components/dist/stats/web/pv-selectable-card-stats.html +4949 -0
  42. package/pv-components/dist/stats/web/pv-side-panel-stats.html +4949 -0
  43. package/pv-components/dist/stats/web/pv-skeleton-stats.html +4949 -0
  44. package/pv-components/dist/stats/web/pv-spinner-stats.html +4949 -0
  45. package/pv-components/dist/stats/web/pv-sprite-stats.html +4949 -0
  46. package/pv-components/dist/stats/web/pv-suggestion-tag-stats.html +4949 -0
  47. package/pv-components/dist/stats/web/pv-switch-stats.html +4949 -0
  48. package/pv-components/dist/stats/web/pv-tab-list-stats.html +4949 -0
  49. package/pv-components/dist/stats/web/pv-tabs-stats.html +4949 -0
  50. package/pv-components/dist/stats/web/pv-tag-stats.html +4949 -0
  51. package/pv-components/dist/stats/web/pv-text-area-stats.html +4949 -0
  52. package/pv-components/dist/stats/web/pv-toast-stats.html +4949 -0
  53. package/pv-components/dist/stats/web/pv-toggle-button-stats.html +4949 -0
  54. package/pv-components/dist/stats/web/pv-toggle-group-stats.html +4949 -0
  55. package/pv-components/dist/stats/web/pv-tooltip-stats.html +4949 -0
  56. package/pv-components/dist/stats/web/pv-tooltip-v2-stats.html +4949 -0
  57. package/pv-components/dist/stats/web/pv-widget-stats.html +4949 -0
  58. package/pv-components/dist/vue/base/components/base/PvMultiSelectButton/PvMultiSelectButton.vue.d.ts +3 -4
  59. package/pv-components/dist/vue/base/components/base/PvSelectButton/PvSelectButton.vue.d.ts +1 -1
  60. package/pv-components/dist/vue/base/components/base/PvTooltipV2/PvTooltipV2.vue.d.ts +1 -0
  61. package/pv-components/dist/vue/base/components/base/PvTooltipV2/types.d.ts +2 -1
  62. package/pv-components/dist/vue/base/pv-components-base.mjs +3429 -5665
  63. package/pv-components/dist/vue/visualizations/pv-components-visualizations.mjs +3428 -5941
  64. package/pv-components/dist/web/components/pv-accordion/pv-accordion.js +186 -0
  65. package/pv-components/dist/web/components/pv-action-bar/pv-action-bar.js +66 -0
  66. package/pv-components/dist/web/components/pv-avatar/pv-avatar.js +96 -0
  67. package/pv-components/dist/web/components/pv-avatar-group/pv-avatar-group.js +102 -0
  68. package/pv-components/dist/web/components/pv-banner/pv-banner.js +155 -0
  69. package/pv-components/dist/web/components/pv-breadcrumbs/pv-breadcrumbs.js +92 -0
  70. package/pv-components/dist/web/components/pv-button/pv-button.js +173 -0
  71. package/pv-components/dist/web/components/pv-card/pv-card.js +80 -0
  72. package/pv-components/dist/web/components/pv-checkbox/pv-checkbox.js +77 -0
  73. package/pv-components/dist/web/components/pv-company-label/pv-company-label.js +153 -0
  74. package/pv-components/dist/web/components/pv-company-logo/pv-company-logo.js +124 -0
  75. package/pv-components/dist/web/components/pv-company-tag/pv-company-tag.js +204 -0
  76. package/pv-components/dist/web/components/pv-counter-badge/pv-counter-badge.js +89 -0
  77. package/pv-components/dist/web/components/pv-date-picker/pv-date-picker.js +7481 -0
  78. package/pv-components/dist/web/components/pv-date-time/pv-date-time.js +577 -0
  79. package/pv-components/dist/web/components/pv-drawer/pv-drawer.js +486 -0
  80. package/pv-components/dist/web/components/pv-dropdown/pv-dropdown.js +1724 -0
  81. package/pv-components/dist/web/components/pv-expandable-content/pv-expandable-content.js +235 -0
  82. package/pv-components/dist/web/components/pv-ghost-input/pv-ghost-input.js +251 -0
  83. package/pv-components/dist/web/components/pv-icon/pv-icon.js +81 -0
  84. package/pv-components/dist/web/components/pv-input/pv-input.js +123 -0
  85. package/pv-components/dist/web/components/pv-insight-card/pv-insight-card.js +293 -0
  86. package/pv-components/dist/web/components/pv-modal/pv-modal.js +118 -0
  87. package/pv-components/dist/web/components/pv-multi-select-button/pv-multi-select-button.js +2752 -0
  88. package/pv-components/dist/web/components/pv-pagination/pv-pagination.js +286 -0
  89. package/pv-components/dist/web/components/pv-pill/pv-pill.js +160 -0
  90. package/pv-components/dist/web/components/pv-popover/pv-popover.js +1417 -0
  91. package/pv-components/dist/web/components/pv-popover-menu/pv-popover-menu.js +1439 -0
  92. package/pv-components/dist/web/components/pv-popover-v2/pv-popover-v2.js +1421 -0
  93. package/pv-components/dist/web/components/pv-rating/pv-rating.js +78 -0
  94. package/pv-components/dist/web/components/pv-release-badge/pv-release-badge.js +74 -0
  95. package/pv-components/dist/web/components/pv-search-input/pv-search-input.js +170 -0
  96. package/pv-components/dist/web/components/pv-segmented-control/pv-segmented-control.js +145 -0
  97. package/pv-components/dist/web/components/pv-select-button/pv-select-button.js +2563 -0
  98. package/pv-components/dist/web/components/pv-selectable-card/pv-selectable-card.js +85 -0
  99. package/pv-components/dist/web/components/pv-side-panel/pv-side-panel.js +80 -0
  100. package/pv-components/dist/web/components/pv-skeleton/pv-skeleton.js +1525 -0
  101. package/pv-components/dist/web/components/pv-spinner/pv-spinner.js +83 -0
  102. package/pv-components/dist/web/components/pv-sprite/pv-sprite.js +82 -0
  103. package/pv-components/dist/web/components/pv-suggestion-tag/pv-suggestion-tag.js +126 -0
  104. package/pv-components/dist/web/components/pv-switch/pv-switch.js +94 -0
  105. package/pv-components/dist/web/components/pv-tab-list/pv-tab-list.js +100 -0
  106. package/pv-components/dist/web/components/pv-tabs/pv-tabs.js +178 -0
  107. package/pv-components/dist/web/components/pv-tag/pv-tag.js +141 -0
  108. package/pv-components/dist/web/components/pv-text-area/pv-text-area.js +120 -0
  109. package/pv-components/dist/web/components/pv-toast/pv-toast.js +223 -0
  110. package/pv-components/dist/web/components/pv-toggle-button/pv-toggle-button.js +139 -0
  111. package/pv-components/dist/web/components/pv-toggle-group/pv-toggle-group.js +2887 -0
  112. package/pv-components/dist/web/components/pv-tooltip/pv-tooltip.js +90 -0
  113. package/pv-components/dist/web/components/pv-tooltip-v2/pv-tooltip-v2.js +1489 -0
  114. package/pv-components/dist/web/components/pv-widget/pv-widget.js +91 -0
  115. package/pv-components/dist/web/pv-components.iife.js +21 -21
  116. package/pv-components/dist/web/vue.runtime.esm-browser.prod.js +7 -0
  117. package/pv-components/dist/vue/base/pv-components-base.js +0 -1546
  118. package/pv-components/dist/vue/base/pv-components-base.umd.js +0 -1546
  119. package/pv-components/dist/vue/charts/pv-components-charts.d.ts +0 -491
  120. package/pv-components/dist/vue/charts/pv-components-charts.js +0 -259
  121. package/pv-components/dist/vue/charts/pv-components-charts.mjs +0 -121834
  122. package/pv-components/dist/vue/charts/pv-components-charts.umd.js +0 -259
  123. package/pv-components/dist/vue/tables/pv-components-tables.d.ts +0 -299
  124. package/pv-components/dist/vue/tables/pv-components-tables.js +0 -223
  125. package/pv-components/dist/vue/tables/pv-components-tables.mjs +0 -47028
  126. package/pv-components/dist/vue/tables/pv-components-tables.umd.js +0 -223
  127. package/pv-components/dist/vue/visualizations/pv-components-visualizations.js +0 -176
  128. package/pv-components/dist/vue/visualizations/pv-components-visualizations.umd.js +0 -176
@@ -0,0 +1,1724 @@
1
+ import { onMounted as un, nextTick as yt, getCurrentScope as cn, onScopeDispose as fn, getCurrentInstance as dn, watch as Qe, toRef as pn, readonly as hn, ref as ue, customRef as gn, toValue as X, isRef as mn, defineComponent as Xt, useTemplateRef as vn, createElementBlock as Ge, openBlock as Te, normalizeStyle as Ot, renderSlot as ze, computed as pe, unref as Wt, shallowRef as $t, withDirectives as bn, createElementVNode as yn, createBlock as wn, normalizeClass as It, createTextVNode as En, Teleport as Sn, createVNode as Dn, withCtx as _n, createCommentVNode as Cn, defineCustomElement as Tn } from "vue";
2
+ function wt(t) {
3
+ return cn() ? (fn(t), !0) : !1;
4
+ }
5
+ const Et = typeof window < "u" && typeof document < "u";
6
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
7
+ const On = Object.prototype.toString, In = (t) => On.call(t) === "[object Object]", le = () => {
8
+ }, ht = /* @__PURE__ */ Pn();
9
+ function Pn() {
10
+ var t, e;
11
+ return Et && ((t = window?.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((e = window?.navigator) == null ? void 0 : e.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
12
+ }
13
+ function An(...t) {
14
+ if (t.length !== 1)
15
+ return pn(...t);
16
+ const e = t[0];
17
+ return typeof e == "function" ? hn(gn(() => ({ get: e, set: le }))) : ue(e);
18
+ }
19
+ function et(t) {
20
+ return Array.isArray(t) ? t : [t];
21
+ }
22
+ function Nn(t) {
23
+ return dn();
24
+ }
25
+ function xn(t, e = !0, o) {
26
+ Nn() ? un(t, o) : e ? t() : yt(t);
27
+ }
28
+ function kn(t, e, o) {
29
+ return Qe(
30
+ t,
31
+ e,
32
+ {
33
+ ...o,
34
+ immediate: !0
35
+ }
36
+ );
37
+ }
38
+ const Mn = Et ? window.document : void 0;
39
+ function Rn(t) {
40
+ var e;
41
+ const o = X(t);
42
+ return (e = o?.$el) != null ? e : o;
43
+ }
44
+ /**!
45
+ * Sortable 1.15.6
46
+ * @author RubaXa <trash@rubaxa.org>
47
+ * @author owenm <owen23355@gmail.com>
48
+ * @license MIT
49
+ */
50
+ function Pt(t, e) {
51
+ var o = Object.keys(t);
52
+ if (Object.getOwnPropertySymbols) {
53
+ var n = Object.getOwnPropertySymbols(t);
54
+ e && (n = n.filter(function(i) {
55
+ return Object.getOwnPropertyDescriptor(t, i).enumerable;
56
+ })), o.push.apply(o, n);
57
+ }
58
+ return o;
59
+ }
60
+ function z(t) {
61
+ for (var e = 1; e < arguments.length; e++) {
62
+ var o = arguments[e] != null ? arguments[e] : {};
63
+ e % 2 ? Pt(Object(o), !0).forEach(function(n) {
64
+ Fn(t, n, o[n]);
65
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : Pt(Object(o)).forEach(function(n) {
66
+ Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(o, n));
67
+ });
68
+ }
69
+ return t;
70
+ }
71
+ function Ye(t) {
72
+ "@babel/helpers - typeof";
73
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Ye = function(e) {
74
+ return typeof e;
75
+ } : Ye = function(e) {
76
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
77
+ }, Ye(t);
78
+ }
79
+ function Fn(t, e, o) {
80
+ return e in t ? Object.defineProperty(t, e, {
81
+ value: o,
82
+ enumerable: !0,
83
+ configurable: !0,
84
+ writable: !0
85
+ }) : t[e] = o, t;
86
+ }
87
+ function q() {
88
+ return q = Object.assign || function(t) {
89
+ for (var e = 1; e < arguments.length; e++) {
90
+ var o = arguments[e];
91
+ for (var n in o)
92
+ Object.prototype.hasOwnProperty.call(o, n) && (t[n] = o[n]);
93
+ }
94
+ return t;
95
+ }, q.apply(this, arguments);
96
+ }
97
+ function Ln(t, e) {
98
+ if (t == null) return {};
99
+ var o = {}, n = Object.keys(t), i, r;
100
+ for (r = 0; r < n.length; r++)
101
+ i = n[r], !(e.indexOf(i) >= 0) && (o[i] = t[i]);
102
+ return o;
103
+ }
104
+ function Bn(t, e) {
105
+ if (t == null) return {};
106
+ var o = Ln(t, e), n, i;
107
+ if (Object.getOwnPropertySymbols) {
108
+ var r = Object.getOwnPropertySymbols(t);
109
+ for (i = 0; i < r.length; i++)
110
+ n = r[i], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(t, n) && (o[n] = t[n]);
111
+ }
112
+ return o;
113
+ }
114
+ var Yn = "1.15.6";
115
+ function V(t) {
116
+ if (typeof window < "u" && window.navigator)
117
+ return !!/* @__PURE__ */ navigator.userAgent.match(t);
118
+ }
119
+ var K = V(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), xe = V(/Edge/i), At = V(/firefox/i), Oe = V(/safari/i) && !V(/chrome/i) && !V(/android/i), St = V(/iP(ad|od|hone)/i), jt = V(/chrome/i) && V(/android/i), Ht = {
120
+ capture: !1,
121
+ passive: !1
122
+ };
123
+ function S(t, e, o) {
124
+ t.addEventListener(e, o, !K && Ht);
125
+ }
126
+ function E(t, e, o) {
127
+ t.removeEventListener(e, o, !K && Ht);
128
+ }
129
+ function Ue(t, e) {
130
+ if (e) {
131
+ if (e[0] === ">" && (e = e.substring(1)), t)
132
+ try {
133
+ if (t.matches)
134
+ return t.matches(e);
135
+ if (t.msMatchesSelector)
136
+ return t.msMatchesSelector(e);
137
+ if (t.webkitMatchesSelector)
138
+ return t.webkitMatchesSelector(e);
139
+ } catch {
140
+ return !1;
141
+ }
142
+ return !1;
143
+ }
144
+ }
145
+ function Gt(t) {
146
+ return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
147
+ }
148
+ function j(t, e, o, n) {
149
+ if (t) {
150
+ o = o || document;
151
+ do {
152
+ if (e != null && (e[0] === ">" ? t.parentNode === o && Ue(t, e) : Ue(t, e)) || n && t === o)
153
+ return t;
154
+ if (t === o) break;
155
+ } while (t = Gt(t));
156
+ }
157
+ return null;
158
+ }
159
+ var Nt = /\s+/g;
160
+ function B(t, e, o) {
161
+ if (t && e)
162
+ if (t.classList)
163
+ t.classList[o ? "add" : "remove"](e);
164
+ else {
165
+ var n = (" " + t.className + " ").replace(Nt, " ").replace(" " + e + " ", " ");
166
+ t.className = (n + (o ? " " + e : "")).replace(Nt, " ");
167
+ }
168
+ }
169
+ function p(t, e, o) {
170
+ var n = t && t.style;
171
+ if (n) {
172
+ if (o === void 0)
173
+ return document.defaultView && document.defaultView.getComputedStyle ? o = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (o = t.currentStyle), e === void 0 ? o : o[e];
174
+ !(e in n) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), n[e] = o + (typeof o == "string" ? "" : "px");
175
+ }
176
+ }
177
+ function ge(t, e) {
178
+ var o = "";
179
+ if (typeof t == "string")
180
+ o = t;
181
+ else
182
+ do {
183
+ var n = p(t, "transform");
184
+ n && n !== "none" && (o = n + " " + o);
185
+ } while (!e && (t = t.parentNode));
186
+ var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
187
+ return i && new i(o);
188
+ }
189
+ function zt(t, e, o) {
190
+ if (t) {
191
+ var n = t.getElementsByTagName(e), i = 0, r = n.length;
192
+ if (o)
193
+ for (; i < r; i++)
194
+ o(n[i], i);
195
+ return n;
196
+ }
197
+ return [];
198
+ }
199
+ function G() {
200
+ var t = document.scrollingElement;
201
+ return t || document.documentElement;
202
+ }
203
+ function P(t, e, o, n, i) {
204
+ if (!(!t.getBoundingClientRect && t !== window)) {
205
+ var r, l, a, s, u, f, d;
206
+ if (t !== window && t.parentNode && t !== G() ? (r = t.getBoundingClientRect(), l = r.top, a = r.left, s = r.bottom, u = r.right, f = r.height, d = r.width) : (l = 0, a = 0, s = window.innerHeight, u = window.innerWidth, f = window.innerHeight, d = window.innerWidth), (e || o) && t !== window && (i = i || t.parentNode, !K))
207
+ do
208
+ if (i && i.getBoundingClientRect && (p(i, "transform") !== "none" || o && p(i, "position") !== "static")) {
209
+ var v = i.getBoundingClientRect();
210
+ l -= v.top + parseInt(p(i, "border-top-width")), a -= v.left + parseInt(p(i, "border-left-width")), s = l + r.height, u = a + r.width;
211
+ break;
212
+ }
213
+ while (i = i.parentNode);
214
+ if (n && t !== window) {
215
+ var w = ge(i || t), y = w && w.a, D = w && w.d;
216
+ w && (l /= D, a /= y, d /= y, f /= D, s = l + f, u = a + d);
217
+ }
218
+ return {
219
+ top: l,
220
+ left: a,
221
+ bottom: s,
222
+ right: u,
223
+ width: d,
224
+ height: f
225
+ };
226
+ }
227
+ }
228
+ function xt(t, e, o) {
229
+ for (var n = te(t, !0), i = P(t)[e]; n; ) {
230
+ var r = P(n)[o], l = void 0;
231
+ if (l = i >= r, !l) return n;
232
+ if (n === G()) break;
233
+ n = te(n, !1);
234
+ }
235
+ return !1;
236
+ }
237
+ function me(t, e, o, n) {
238
+ for (var i = 0, r = 0, l = t.children; r < l.length; ) {
239
+ if (l[r].style.display !== "none" && l[r] !== h.ghost && (n || l[r] !== h.dragged) && j(l[r], o.draggable, t, !1)) {
240
+ if (i === e)
241
+ return l[r];
242
+ i++;
243
+ }
244
+ r++;
245
+ }
246
+ return null;
247
+ }
248
+ function Dt(t, e) {
249
+ for (var o = t.lastElementChild; o && (o === h.ghost || p(o, "display") === "none" || e && !Ue(o, e)); )
250
+ o = o.previousElementSibling;
251
+ return o || null;
252
+ }
253
+ function W(t, e) {
254
+ var o = 0;
255
+ if (!t || !t.parentNode)
256
+ return -1;
257
+ for (; t = t.previousElementSibling; )
258
+ t.nodeName.toUpperCase() !== "TEMPLATE" && t !== h.clone && (!e || Ue(t, e)) && o++;
259
+ return o;
260
+ }
261
+ function kt(t) {
262
+ var e = 0, o = 0, n = G();
263
+ if (t)
264
+ do {
265
+ var i = ge(t), r = i.a, l = i.d;
266
+ e += t.scrollLeft * r, o += t.scrollTop * l;
267
+ } while (t !== n && (t = t.parentNode));
268
+ return [e, o];
269
+ }
270
+ function Xn(t, e) {
271
+ for (var o in t)
272
+ if (t.hasOwnProperty(o)) {
273
+ for (var n in e)
274
+ if (e.hasOwnProperty(n) && e[n] === t[o][n]) return Number(o);
275
+ }
276
+ return -1;
277
+ }
278
+ function te(t, e) {
279
+ if (!t || !t.getBoundingClientRect) return G();
280
+ var o = t, n = !1;
281
+ do
282
+ if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
283
+ var i = p(o);
284
+ if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
285
+ if (!o.getBoundingClientRect || o === document.body) return G();
286
+ if (n || e) return o;
287
+ n = !0;
288
+ }
289
+ }
290
+ while (o = o.parentNode);
291
+ return G();
292
+ }
293
+ function Wn(t, e) {
294
+ if (t && e)
295
+ for (var o in e)
296
+ e.hasOwnProperty(o) && (t[o] = e[o]);
297
+ return t;
298
+ }
299
+ function tt(t, e) {
300
+ return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
301
+ }
302
+ var Ie;
303
+ function Ut(t, e) {
304
+ return function() {
305
+ if (!Ie) {
306
+ var o = arguments, n = this;
307
+ o.length === 1 ? t.call(n, o[0]) : t.apply(n, o), Ie = setTimeout(function() {
308
+ Ie = void 0;
309
+ }, e);
310
+ }
311
+ };
312
+ }
313
+ function $n() {
314
+ clearTimeout(Ie), Ie = void 0;
315
+ }
316
+ function Vt(t, e, o) {
317
+ t.scrollLeft += e, t.scrollTop += o;
318
+ }
319
+ function qt(t) {
320
+ var e = window.Polymer, o = window.jQuery || window.Zepto;
321
+ return e && e.dom ? e.dom(t).cloneNode(!0) : o ? o(t).clone(!0)[0] : t.cloneNode(!0);
322
+ }
323
+ function Kt(t, e, o) {
324
+ var n = {};
325
+ return Array.from(t.children).forEach(function(i) {
326
+ var r, l, a, s;
327
+ if (!(!j(i, e.draggable, t, !1) || i.animated || i === o)) {
328
+ var u = P(i);
329
+ n.left = Math.min((r = n.left) !== null && r !== void 0 ? r : 1 / 0, u.left), n.top = Math.min((l = n.top) !== null && l !== void 0 ? l : 1 / 0, u.top), n.right = Math.max((a = n.right) !== null && a !== void 0 ? a : -1 / 0, u.right), n.bottom = Math.max((s = n.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
330
+ }
331
+ }), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
332
+ }
333
+ var F = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
334
+ function jn() {
335
+ var t = [], e;
336
+ return {
337
+ captureAnimationState: function() {
338
+ if (t = [], !!this.options.animation) {
339
+ var n = [].slice.call(this.el.children);
340
+ n.forEach(function(i) {
341
+ if (!(p(i, "display") === "none" || i === h.ghost)) {
342
+ t.push({
343
+ target: i,
344
+ rect: P(i)
345
+ });
346
+ var r = z({}, t[t.length - 1].rect);
347
+ if (i.thisAnimationDuration) {
348
+ var l = ge(i, !0);
349
+ l && (r.top -= l.f, r.left -= l.e);
350
+ }
351
+ i.fromRect = r;
352
+ }
353
+ });
354
+ }
355
+ },
356
+ addAnimationState: function(n) {
357
+ t.push(n);
358
+ },
359
+ removeAnimationState: function(n) {
360
+ t.splice(Xn(t, {
361
+ target: n
362
+ }), 1);
363
+ },
364
+ animateAll: function(n) {
365
+ var i = this;
366
+ if (!this.options.animation) {
367
+ clearTimeout(e), typeof n == "function" && n();
368
+ return;
369
+ }
370
+ var r = !1, l = 0;
371
+ t.forEach(function(a) {
372
+ var s = 0, u = a.target, f = u.fromRect, d = P(u), v = u.prevFromRect, w = u.prevToRect, y = a.rect, D = ge(u, !0);
373
+ D && (d.top -= D.f, d.left -= D.e), u.toRect = d, u.thisAnimationDuration && tt(v, d) && !tt(f, d) && // Make sure animatingRect is on line between toRect & fromRect
374
+ (y.top - d.top) / (y.left - d.left) === (f.top - d.top) / (f.left - d.left) && (s = Gn(y, v, w, i.options)), tt(d, f) || (u.prevFromRect = f, u.prevToRect = d, s || (s = i.options.animation), i.animate(u, y, d, s)), s && (r = !0, l = Math.max(l, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
375
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
376
+ }, s), u.thisAnimationDuration = s);
377
+ }), clearTimeout(e), r ? e = setTimeout(function() {
378
+ typeof n == "function" && n();
379
+ }, l) : typeof n == "function" && n(), t = [];
380
+ },
381
+ animate: function(n, i, r, l) {
382
+ if (l) {
383
+ p(n, "transition", ""), p(n, "transform", "");
384
+ var a = ge(this.el), s = a && a.a, u = a && a.d, f = (i.left - r.left) / (s || 1), d = (i.top - r.top) / (u || 1);
385
+ n.animatingX = !!f, n.animatingY = !!d, p(n, "transform", "translate3d(" + f + "px," + d + "px,0)"), this.forRepaintDummy = Hn(n), p(n, "transition", "transform " + l + "ms" + (this.options.easing ? " " + this.options.easing : "")), p(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
386
+ p(n, "transition", ""), p(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
387
+ }, l);
388
+ }
389
+ }
390
+ };
391
+ }
392
+ function Hn(t) {
393
+ return t.offsetWidth;
394
+ }
395
+ function Gn(t, e, o, n) {
396
+ return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) * n.animation;
397
+ }
398
+ var ce = [], nt = {
399
+ initializeByDefault: !0
400
+ }, ke = {
401
+ mount: function(e) {
402
+ for (var o in nt)
403
+ nt.hasOwnProperty(o) && !(o in e) && (e[o] = nt[o]);
404
+ ce.forEach(function(n) {
405
+ if (n.pluginName === e.pluginName)
406
+ throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
407
+ }), ce.push(e);
408
+ },
409
+ pluginEvent: function(e, o, n) {
410
+ var i = this;
411
+ this.eventCanceled = !1, n.cancel = function() {
412
+ i.eventCanceled = !0;
413
+ };
414
+ var r = e + "Global";
415
+ ce.forEach(function(l) {
416
+ o[l.pluginName] && (o[l.pluginName][r] && o[l.pluginName][r](z({
417
+ sortable: o
418
+ }, n)), o.options[l.pluginName] && o[l.pluginName][e] && o[l.pluginName][e](z({
419
+ sortable: o
420
+ }, n)));
421
+ });
422
+ },
423
+ initializePlugins: function(e, o, n, i) {
424
+ ce.forEach(function(a) {
425
+ var s = a.pluginName;
426
+ if (!(!e.options[s] && !a.initializeByDefault)) {
427
+ var u = new a(e, o, e.options);
428
+ u.sortable = e, u.options = e.options, e[s] = u, q(n, u.defaults);
429
+ }
430
+ });
431
+ for (var r in e.options)
432
+ if (e.options.hasOwnProperty(r)) {
433
+ var l = this.modifyOption(e, r, e.options[r]);
434
+ typeof l < "u" && (e.options[r] = l);
435
+ }
436
+ },
437
+ getEventProperties: function(e, o) {
438
+ var n = {};
439
+ return ce.forEach(function(i) {
440
+ typeof i.eventProperties == "function" && q(n, i.eventProperties.call(o[i.pluginName], e));
441
+ }), n;
442
+ },
443
+ modifyOption: function(e, o, n) {
444
+ var i;
445
+ return ce.forEach(function(r) {
446
+ e[r.pluginName] && r.optionListeners && typeof r.optionListeners[o] == "function" && (i = r.optionListeners[o].call(e[r.pluginName], n));
447
+ }), i;
448
+ }
449
+ };
450
+ function zn(t) {
451
+ var e = t.sortable, o = t.rootEl, n = t.name, i = t.targetEl, r = t.cloneEl, l = t.toEl, a = t.fromEl, s = t.oldIndex, u = t.newIndex, f = t.oldDraggableIndex, d = t.newDraggableIndex, v = t.originalEvent, w = t.putSortable, y = t.extraEventProperties;
452
+ if (e = e || o && o[F], !!e) {
453
+ var D, g = e.options, b = "on" + n.charAt(0).toUpperCase() + n.substr(1);
454
+ window.CustomEvent && !K && !xe ? D = new CustomEvent(n, {
455
+ bubbles: !0,
456
+ cancelable: !0
457
+ }) : (D = document.createEvent("Event"), D.initEvent(n, !0, !0)), D.to = l || o, D.from = a || o, D.item = i || o, D.clone = r, D.oldIndex = s, D.newIndex = u, D.oldDraggableIndex = f, D.newDraggableIndex = d, D.originalEvent = v, D.pullMode = w ? w.lastPutMode : void 0;
458
+ var _ = z(z({}, y), ke.getEventProperties(n, e));
459
+ for (var A in _)
460
+ D[A] = _[A];
461
+ o && o.dispatchEvent(D), g[b] && g[b].call(e, D);
462
+ }
463
+ }
464
+ var Un = ["evt"], R = function(e, o) {
465
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, r = Bn(n, Un);
466
+ ke.pluginEvent.bind(h)(e, o, z({
467
+ dragEl: c,
468
+ parentEl: O,
469
+ ghostEl: m,
470
+ rootEl: C,
471
+ nextEl: se,
472
+ lastDownEl: Xe,
473
+ cloneEl: T,
474
+ cloneHidden: ee,
475
+ dragStarted: Se,
476
+ putSortable: N,
477
+ activeSortable: h.active,
478
+ originalEvent: i,
479
+ oldIndex: he,
480
+ oldDraggableIndex: Pe,
481
+ newIndex: Y,
482
+ newDraggableIndex: J,
483
+ hideGhostForTarget: en,
484
+ unhideGhostForTarget: tn,
485
+ cloneNowHidden: function() {
486
+ ee = !0;
487
+ },
488
+ cloneNowShown: function() {
489
+ ee = !1;
490
+ },
491
+ dispatchSortableEvent: function(a) {
492
+ M({
493
+ sortable: o,
494
+ name: a,
495
+ originalEvent: i
496
+ });
497
+ }
498
+ }, r));
499
+ };
500
+ function M(t) {
501
+ zn(z({
502
+ putSortable: N,
503
+ cloneEl: T,
504
+ targetEl: c,
505
+ rootEl: C,
506
+ oldIndex: he,
507
+ oldDraggableIndex: Pe,
508
+ newIndex: Y,
509
+ newDraggableIndex: J
510
+ }, t));
511
+ }
512
+ var c, O, m, C, se, Xe, T, ee, he, Y, Pe, J, Re, N, de = !1, Ve = !1, qe = [], re, $, ot, it, Mt, Rt, Se, fe, Ae, Ne = !1, Fe = !1, We, k, rt = [], gt = !1, Ke = [], Je = typeof document < "u", Le = St, Ft = xe || K ? "cssFloat" : "float", Vn = Je && !jt && !St && "draggable" in document.createElement("div"), Zt = (function() {
513
+ if (Je) {
514
+ if (K)
515
+ return !1;
516
+ var t = document.createElement("x");
517
+ return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
518
+ }
519
+ })(), Qt = function(e, o) {
520
+ var n = p(e), i = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), r = me(e, 0, o), l = me(e, 1, o), a = r && p(r), s = l && p(l), u = a && parseInt(a.marginLeft) + parseInt(a.marginRight) + P(r).width, f = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + P(l).width;
521
+ if (n.display === "flex")
522
+ return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
523
+ if (n.display === "grid")
524
+ return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
525
+ if (r && a.float && a.float !== "none") {
526
+ var d = a.float === "left" ? "left" : "right";
527
+ return l && (s.clear === "both" || s.clear === d) ? "vertical" : "horizontal";
528
+ }
529
+ return r && (a.display === "block" || a.display === "flex" || a.display === "table" || a.display === "grid" || u >= i && n[Ft] === "none" || l && n[Ft] === "none" && u + f > i) ? "vertical" : "horizontal";
530
+ }, qn = function(e, o, n) {
531
+ var i = n ? e.left : e.top, r = n ? e.right : e.bottom, l = n ? e.width : e.height, a = n ? o.left : o.top, s = n ? o.right : o.bottom, u = n ? o.width : o.height;
532
+ return i === a || r === s || i + l / 2 === a + u / 2;
533
+ }, Kn = function(e, o) {
534
+ var n;
535
+ return qe.some(function(i) {
536
+ var r = i[F].options.emptyInsertThreshold;
537
+ if (!(!r || Dt(i))) {
538
+ var l = P(i), a = e >= l.left - r && e <= l.right + r, s = o >= l.top - r && o <= l.bottom + r;
539
+ if (a && s)
540
+ return n = i;
541
+ }
542
+ }), n;
543
+ }, Jt = function(e) {
544
+ function o(r, l) {
545
+ return function(a, s, u, f) {
546
+ var d = a.options.group.name && s.options.group.name && a.options.group.name === s.options.group.name;
547
+ if (r == null && (l || d))
548
+ return !0;
549
+ if (r == null || r === !1)
550
+ return !1;
551
+ if (l && r === "clone")
552
+ return r;
553
+ if (typeof r == "function")
554
+ return o(r(a, s, u, f), l)(a, s, u, f);
555
+ var v = (l ? a : s).options.group.name;
556
+ return r === !0 || typeof r == "string" && r === v || r.join && r.indexOf(v) > -1;
557
+ };
558
+ }
559
+ var n = {}, i = e.group;
560
+ (!i || Ye(i) != "object") && (i = {
561
+ name: i
562
+ }), n.name = i.name, n.checkPull = o(i.pull, !0), n.checkPut = o(i.put), n.revertClone = i.revertClone, e.group = n;
563
+ }, en = function() {
564
+ !Zt && m && p(m, "display", "none");
565
+ }, tn = function() {
566
+ !Zt && m && p(m, "display", "");
567
+ };
568
+ Je && !jt && document.addEventListener("click", function(t) {
569
+ if (Ve)
570
+ return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), Ve = !1, !1;
571
+ }, !0);
572
+ var ae = function(e) {
573
+ if (c) {
574
+ e = e.touches ? e.touches[0] : e;
575
+ var o = Kn(e.clientX, e.clientY);
576
+ if (o) {
577
+ var n = {};
578
+ for (var i in e)
579
+ e.hasOwnProperty(i) && (n[i] = e[i]);
580
+ n.target = n.rootEl = o, n.preventDefault = void 0, n.stopPropagation = void 0, o[F]._onDragOver(n);
581
+ }
582
+ }
583
+ }, Zn = function(e) {
584
+ c && c.parentNode[F]._isOutsideThisEl(e.target);
585
+ };
586
+ function h(t, e) {
587
+ if (!(t && t.nodeType && t.nodeType === 1))
588
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
589
+ this.el = t, this.options = e = q({}, e), t[F] = this;
590
+ var o = {
591
+ group: null,
592
+ sort: !0,
593
+ disabled: !1,
594
+ store: null,
595
+ handle: null,
596
+ draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
597
+ swapThreshold: 1,
598
+ // percentage; 0 <= x <= 1
599
+ invertSwap: !1,
600
+ // invert always
601
+ invertedSwapThreshold: null,
602
+ // will be set to same as swapThreshold if default
603
+ removeCloneOnHide: !0,
604
+ direction: function() {
605
+ return Qt(t, this.options);
606
+ },
607
+ ghostClass: "sortable-ghost",
608
+ chosenClass: "sortable-chosen",
609
+ dragClass: "sortable-drag",
610
+ ignore: "a, img",
611
+ filter: null,
612
+ preventOnFilter: !0,
613
+ animation: 0,
614
+ easing: null,
615
+ setData: function(l, a) {
616
+ l.setData("Text", a.textContent);
617
+ },
618
+ dropBubble: !1,
619
+ dragoverBubble: !1,
620
+ dataIdAttr: "data-id",
621
+ delay: 0,
622
+ delayOnTouchOnly: !1,
623
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
624
+ forceFallback: !1,
625
+ fallbackClass: "sortable-fallback",
626
+ fallbackOnBody: !1,
627
+ fallbackTolerance: 0,
628
+ fallbackOffset: {
629
+ x: 0,
630
+ y: 0
631
+ },
632
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
633
+ supportPointer: h.supportPointer !== !1 && "PointerEvent" in window && (!Oe || St),
634
+ emptyInsertThreshold: 5
635
+ };
636
+ ke.initializePlugins(this, t, o);
637
+ for (var n in o)
638
+ !(n in e) && (e[n] = o[n]);
639
+ Jt(e);
640
+ for (var i in this)
641
+ i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
642
+ this.nativeDraggable = e.forceFallback ? !1 : Vn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? S(t, "pointerdown", this._onTapStart) : (S(t, "mousedown", this._onTapStart), S(t, "touchstart", this._onTapStart)), this.nativeDraggable && (S(t, "dragover", this), S(t, "dragenter", this)), qe.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), q(this, jn());
643
+ }
644
+ h.prototype = /** @lends Sortable.prototype */
645
+ {
646
+ constructor: h,
647
+ _isOutsideThisEl: function(e) {
648
+ !this.el.contains(e) && e !== this.el && (fe = null);
649
+ },
650
+ _getDirection: function(e, o) {
651
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, o, c) : this.options.direction;
652
+ },
653
+ _onTapStart: function(e) {
654
+ if (e.cancelable) {
655
+ var o = this, n = this.el, i = this.options, r = i.preventOnFilter, l = e.type, a = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (a || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, f = i.filter;
656
+ if (ro(n), !c && !(/mousedown|pointerdown/.test(l) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Oe && s && s.tagName.toUpperCase() === "SELECT") && (s = j(s, i.draggable, n, !1), !(s && s.animated) && Xe !== s)) {
657
+ if (he = W(s), Pe = W(s, i.draggable), typeof f == "function") {
658
+ if (f.call(this, e, s, this)) {
659
+ M({
660
+ sortable: o,
661
+ rootEl: u,
662
+ name: "filter",
663
+ targetEl: s,
664
+ toEl: n,
665
+ fromEl: n
666
+ }), R("filter", o, {
667
+ evt: e
668
+ }), r && e.preventDefault();
669
+ return;
670
+ }
671
+ } else if (f && (f = f.split(",").some(function(d) {
672
+ if (d = j(u, d.trim(), n, !1), d)
673
+ return M({
674
+ sortable: o,
675
+ rootEl: d,
676
+ name: "filter",
677
+ targetEl: s,
678
+ fromEl: n,
679
+ toEl: n
680
+ }), R("filter", o, {
681
+ evt: e
682
+ }), !0;
683
+ }), f)) {
684
+ r && e.preventDefault();
685
+ return;
686
+ }
687
+ i.handle && !j(u, i.handle, n, !1) || this._prepareDragStart(e, a, s);
688
+ }
689
+ }
690
+ },
691
+ _prepareDragStart: function(e, o, n) {
692
+ var i = this, r = i.el, l = i.options, a = r.ownerDocument, s;
693
+ if (n && !c && n.parentNode === r) {
694
+ var u = P(n);
695
+ if (C = r, c = n, O = c.parentNode, se = c.nextSibling, Xe = n, Re = l.group, h.dragged = c, re = {
696
+ target: c,
697
+ clientX: (o || e).clientX,
698
+ clientY: (o || e).clientY
699
+ }, Mt = re.clientX - u.left, Rt = re.clientY - u.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, c.style["will-change"] = "all", s = function() {
700
+ if (R("delayEnded", i, {
701
+ evt: e
702
+ }), h.eventCanceled) {
703
+ i._onDrop();
704
+ return;
705
+ }
706
+ i._disableDelayedDragEvents(), !At && i.nativeDraggable && (c.draggable = !0), i._triggerDragStart(e, o), M({
707
+ sortable: i,
708
+ name: "choose",
709
+ originalEvent: e
710
+ }), B(c, l.chosenClass, !0);
711
+ }, l.ignore.split(",").forEach(function(f) {
712
+ zt(c, f.trim(), at);
713
+ }), S(a, "dragover", ae), S(a, "mousemove", ae), S(a, "touchmove", ae), l.supportPointer ? (S(a, "pointerup", i._onDrop), !this.nativeDraggable && S(a, "pointercancel", i._onDrop)) : (S(a, "mouseup", i._onDrop), S(a, "touchend", i._onDrop), S(a, "touchcancel", i._onDrop)), At && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), R("delayStart", this, {
714
+ evt: e
715
+ }), l.delay && (!l.delayOnTouchOnly || o) && (!this.nativeDraggable || !(xe || K))) {
716
+ if (h.eventCanceled) {
717
+ this._onDrop();
718
+ return;
719
+ }
720
+ l.supportPointer ? (S(a, "pointerup", i._disableDelayedDrag), S(a, "pointercancel", i._disableDelayedDrag)) : (S(a, "mouseup", i._disableDelayedDrag), S(a, "touchend", i._disableDelayedDrag), S(a, "touchcancel", i._disableDelayedDrag)), S(a, "mousemove", i._delayedDragTouchMoveHandler), S(a, "touchmove", i._delayedDragTouchMoveHandler), l.supportPointer && S(a, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, l.delay);
721
+ } else
722
+ s();
723
+ }
724
+ },
725
+ _delayedDragTouchMoveHandler: function(e) {
726
+ var o = e.touches ? e.touches[0] : e;
727
+ Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
728
+ },
729
+ _disableDelayedDrag: function() {
730
+ c && at(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
731
+ },
732
+ _disableDelayedDragEvents: function() {
733
+ var e = this.el.ownerDocument;
734
+ E(e, "mouseup", this._disableDelayedDrag), E(e, "touchend", this._disableDelayedDrag), E(e, "touchcancel", this._disableDelayedDrag), E(e, "pointerup", this._disableDelayedDrag), E(e, "pointercancel", this._disableDelayedDrag), E(e, "mousemove", this._delayedDragTouchMoveHandler), E(e, "touchmove", this._delayedDragTouchMoveHandler), E(e, "pointermove", this._delayedDragTouchMoveHandler);
735
+ },
736
+ _triggerDragStart: function(e, o) {
737
+ o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ? S(document, "pointermove", this._onTouchMove) : o ? S(document, "touchmove", this._onTouchMove) : S(document, "mousemove", this._onTouchMove) : (S(c, "dragend", this), S(C, "dragstart", this._onDragStart));
738
+ try {
739
+ document.selection ? $e(function() {
740
+ document.selection.empty();
741
+ }) : window.getSelection().removeAllRanges();
742
+ } catch {
743
+ }
744
+ },
745
+ _dragStarted: function(e, o) {
746
+ if (de = !1, C && c) {
747
+ R("dragStarted", this, {
748
+ evt: o
749
+ }), this.nativeDraggable && S(document, "dragover", Zn);
750
+ var n = this.options;
751
+ !e && B(c, n.dragClass, !1), B(c, n.ghostClass, !0), h.active = this, e && this._appendGhost(), M({
752
+ sortable: this,
753
+ name: "start",
754
+ originalEvent: o
755
+ });
756
+ } else
757
+ this._nulling();
758
+ },
759
+ _emulateDragOver: function() {
760
+ if ($) {
761
+ this._lastX = $.clientX, this._lastY = $.clientY, en();
762
+ for (var e = document.elementFromPoint($.clientX, $.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint($.clientX, $.clientY), e !== o); )
763
+ o = e;
764
+ if (c.parentNode[F]._isOutsideThisEl(e), o)
765
+ do {
766
+ if (o[F]) {
767
+ var n = void 0;
768
+ if (n = o[F]._onDragOver({
769
+ clientX: $.clientX,
770
+ clientY: $.clientY,
771
+ target: e,
772
+ rootEl: o
773
+ }), n && !this.options.dragoverBubble)
774
+ break;
775
+ }
776
+ e = o;
777
+ } while (o = Gt(o));
778
+ tn();
779
+ }
780
+ },
781
+ _onTouchMove: function(e) {
782
+ if (re) {
783
+ var o = this.options, n = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, l = m && ge(m, !0), a = m && l && l.a, s = m && l && l.d, u = Le && k && kt(k), f = (r.clientX - re.clientX + i.x) / (a || 1) + (u ? u[0] - rt[0] : 0) / (a || 1), d = (r.clientY - re.clientY + i.y) / (s || 1) + (u ? u[1] - rt[1] : 0) / (s || 1);
784
+ if (!h.active && !de) {
785
+ if (n && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < n)
786
+ return;
787
+ this._onDragStart(e, !0);
788
+ }
789
+ if (m) {
790
+ l ? (l.e += f - (ot || 0), l.f += d - (it || 0)) : l = {
791
+ a: 1,
792
+ b: 0,
793
+ c: 0,
794
+ d: 1,
795
+ e: f,
796
+ f: d
797
+ };
798
+ var v = "matrix(".concat(l.a, ",").concat(l.b, ",").concat(l.c, ",").concat(l.d, ",").concat(l.e, ",").concat(l.f, ")");
799
+ p(m, "webkitTransform", v), p(m, "mozTransform", v), p(m, "msTransform", v), p(m, "transform", v), ot = f, it = d, $ = r;
800
+ }
801
+ e.cancelable && e.preventDefault();
802
+ }
803
+ },
804
+ _appendGhost: function() {
805
+ if (!m) {
806
+ var e = this.options.fallbackOnBody ? document.body : C, o = P(c, !0, Le, !0, e), n = this.options;
807
+ if (Le) {
808
+ for (k = e; p(k, "position") === "static" && p(k, "transform") === "none" && k !== document; )
809
+ k = k.parentNode;
810
+ k !== document.body && k !== document.documentElement ? (k === document && (k = G()), o.top += k.scrollTop, o.left += k.scrollLeft) : k = G(), rt = kt(k);
811
+ }
812
+ m = c.cloneNode(!0), B(m, n.ghostClass, !1), B(m, n.fallbackClass, !0), B(m, n.dragClass, !0), p(m, "transition", ""), p(m, "transform", ""), p(m, "box-sizing", "border-box"), p(m, "margin", 0), p(m, "top", o.top), p(m, "left", o.left), p(m, "width", o.width), p(m, "height", o.height), p(m, "opacity", "0.8"), p(m, "position", Le ? "absolute" : "fixed"), p(m, "zIndex", "100000"), p(m, "pointerEvents", "none"), h.ghost = m, e.appendChild(m), p(m, "transform-origin", Mt / parseInt(m.style.width) * 100 + "% " + Rt / parseInt(m.style.height) * 100 + "%");
813
+ }
814
+ },
815
+ _onDragStart: function(e, o) {
816
+ var n = this, i = e.dataTransfer, r = n.options;
817
+ if (R("dragStart", this, {
818
+ evt: e
819
+ }), h.eventCanceled) {
820
+ this._onDrop();
821
+ return;
822
+ }
823
+ R("setupClone", this), h.eventCanceled || (T = qt(c), T.removeAttribute("id"), T.draggable = !1, T.style["will-change"] = "", this._hideClone(), B(T, this.options.chosenClass, !1), h.clone = T), n.cloneId = $e(function() {
824
+ R("clone", n), !h.eventCanceled && (n.options.removeCloneOnHide || C.insertBefore(T, c), n._hideClone(), M({
825
+ sortable: n,
826
+ name: "clone"
827
+ }));
828
+ }), !o && B(c, r.dragClass, !0), o ? (Ve = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (E(document, "mouseup", n._onDrop), E(document, "touchend", n._onDrop), E(document, "touchcancel", n._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(n, i, c)), S(document, "drop", n), p(c, "transform", "translateZ(0)")), de = !0, n._dragStartId = $e(n._dragStarted.bind(n, o, e)), S(document, "selectstart", n), Se = !0, window.getSelection().removeAllRanges(), Oe && p(document.body, "user-select", "none");
829
+ },
830
+ // Returns true - if no further action is needed (either inserted or another condition)
831
+ _onDragOver: function(e) {
832
+ var o = this.el, n = e.target, i, r, l, a = this.options, s = a.group, u = h.active, f = Re === s, d = a.sort, v = N || u, w, y = this, D = !1;
833
+ if (gt) return;
834
+ function g(Ee, ln) {
835
+ R(Ee, y, z({
836
+ evt: e,
837
+ isOwner: f,
838
+ axis: w ? "vertical" : "horizontal",
839
+ revert: l,
840
+ dragRect: i,
841
+ targetRect: r,
842
+ canSort: d,
843
+ fromSortable: v,
844
+ target: n,
845
+ completed: _,
846
+ onMove: function(Tt, sn) {
847
+ return Be(C, o, c, i, Tt, P(Tt), e, sn);
848
+ },
849
+ changed: A
850
+ }, ln));
851
+ }
852
+ function b() {
853
+ g("dragOverAnimationCapture"), y.captureAnimationState(), y !== v && v.captureAnimationState();
854
+ }
855
+ function _(Ee) {
856
+ return g("dragOverCompleted", {
857
+ insertion: Ee
858
+ }), Ee && (f ? u._hideClone() : u._showClone(y), y !== v && (B(c, N ? N.options.ghostClass : u.options.ghostClass, !1), B(c, a.ghostClass, !0)), N !== y && y !== h.active ? N = y : y === h.active && N && (N = null), v === y && (y._ignoreWhileAnimating = n), y.animateAll(function() {
859
+ g("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
860
+ }), y !== v && (v.animateAll(), v._ignoreWhileAnimating = null)), (n === c && !c.animated || n === o && !n.animated) && (fe = null), !a.dragoverBubble && !e.rootEl && n !== document && (c.parentNode[F]._isOutsideThisEl(e.target), !Ee && ae(e)), !a.dragoverBubble && e.stopPropagation && e.stopPropagation(), D = !0;
861
+ }
862
+ function A() {
863
+ Y = W(c), J = W(c, a.draggable), M({
864
+ sortable: y,
865
+ name: "change",
866
+ toEl: o,
867
+ newIndex: Y,
868
+ newDraggableIndex: J,
869
+ originalEvent: e
870
+ });
871
+ }
872
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = j(n, a.draggable, o, !0), g("dragOver"), h.eventCanceled) return D;
873
+ if (c.contains(e.target) || n.animated && n.animatingX && n.animatingY || y._ignoreWhileAnimating === n)
874
+ return _(!1);
875
+ if (Ve = !1, u && !a.disabled && (f ? d || (l = O !== C) : N === this || (this.lastPutMode = Re.checkPull(this, u, c, e)) && s.checkPut(this, u, c, e))) {
876
+ if (w = this._getDirection(e, n) === "vertical", i = P(c), g("dragOverValid"), h.eventCanceled) return D;
877
+ if (l)
878
+ return O = C, b(), this._hideClone(), g("revert"), h.eventCanceled || (se ? C.insertBefore(c, se) : C.appendChild(c)), _(!0);
879
+ var x = Dt(o, a.draggable);
880
+ if (!x || to(e, w, this) && !x.animated) {
881
+ if (x === c)
882
+ return _(!1);
883
+ if (x && o === e.target && (n = x), n && (r = P(n)), Be(C, o, c, i, n, r, e, !!n) !== !1)
884
+ return b(), x && x.nextSibling ? o.insertBefore(c, x.nextSibling) : o.appendChild(c), O = o, A(), _(!0);
885
+ } else if (x && eo(e, w, this)) {
886
+ var ne = me(o, 0, a, !0);
887
+ if (ne === c)
888
+ return _(!1);
889
+ if (n = ne, r = P(n), Be(C, o, c, i, n, r, e, !1) !== !1)
890
+ return b(), o.insertBefore(c, ne), O = o, A(), _(!0);
891
+ } else if (n.parentNode === o) {
892
+ r = P(n);
893
+ var H = 0, oe, ve = c.parentNode !== o, L = !qn(c.animated && c.toRect || i, n.animated && n.toRect || r, w), be = w ? "top" : "left", Z = xt(n, "top", "top") || xt(c, "top", "top"), ye = Z ? Z.scrollTop : void 0;
894
+ fe !== n && (oe = r[be], Ne = !1, Fe = !L && a.invertSwap || ve), H = no(e, n, r, w, L ? 1 : a.swapThreshold, a.invertedSwapThreshold == null ? a.swapThreshold : a.invertedSwapThreshold, Fe, fe === n);
895
+ var U;
896
+ if (H !== 0) {
897
+ var ie = W(c);
898
+ do
899
+ ie -= H, U = O.children[ie];
900
+ while (U && (p(U, "display") === "none" || U === m));
901
+ }
902
+ if (H === 0 || U === n)
903
+ return _(!1);
904
+ fe = n, Ae = H;
905
+ var we = n.nextElementSibling, Q = !1;
906
+ Q = H === 1;
907
+ var Me = Be(C, o, c, i, n, r, e, Q);
908
+ if (Me !== !1)
909
+ return (Me === 1 || Me === -1) && (Q = Me === 1), gt = !0, setTimeout(Jn, 30), b(), Q && !we ? o.appendChild(c) : n.parentNode.insertBefore(c, Q ? we : n), Z && Vt(Z, 0, ye - Z.scrollTop), O = c.parentNode, oe !== void 0 && !Fe && (We = Math.abs(oe - P(n)[be])), A(), _(!0);
910
+ }
911
+ if (o.contains(c))
912
+ return _(!1);
913
+ }
914
+ return !1;
915
+ },
916
+ _ignoreWhileAnimating: null,
917
+ _offMoveEvents: function() {
918
+ E(document, "mousemove", this._onTouchMove), E(document, "touchmove", this._onTouchMove), E(document, "pointermove", this._onTouchMove), E(document, "dragover", ae), E(document, "mousemove", ae), E(document, "touchmove", ae);
919
+ },
920
+ _offUpEvents: function() {
921
+ var e = this.el.ownerDocument;
922
+ E(e, "mouseup", this._onDrop), E(e, "touchend", this._onDrop), E(e, "pointerup", this._onDrop), E(e, "pointercancel", this._onDrop), E(e, "touchcancel", this._onDrop), E(document, "selectstart", this);
923
+ },
924
+ _onDrop: function(e) {
925
+ var o = this.el, n = this.options;
926
+ if (Y = W(c), J = W(c, n.draggable), R("drop", this, {
927
+ evt: e
928
+ }), O = c && c.parentNode, Y = W(c), J = W(c, n.draggable), h.eventCanceled) {
929
+ this._nulling();
930
+ return;
931
+ }
932
+ de = !1, Fe = !1, Ne = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), mt(this.cloneId), mt(this._dragStartId), this.nativeDraggable && (E(document, "drop", this), E(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Oe && p(document.body, "user-select", ""), p(c, "transform", ""), e && (Se && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), m && m.parentNode && m.parentNode.removeChild(m), (C === O || N && N.lastPutMode !== "clone") && T && T.parentNode && T.parentNode.removeChild(T), c && (this.nativeDraggable && E(c, "dragend", this), at(c), c.style["will-change"] = "", Se && !de && B(c, N ? N.options.ghostClass : this.options.ghostClass, !1), B(c, this.options.chosenClass, !1), M({
933
+ sortable: this,
934
+ name: "unchoose",
935
+ toEl: O,
936
+ newIndex: null,
937
+ newDraggableIndex: null,
938
+ originalEvent: e
939
+ }), C !== O ? (Y >= 0 && (M({
940
+ rootEl: O,
941
+ name: "add",
942
+ toEl: O,
943
+ fromEl: C,
944
+ originalEvent: e
945
+ }), M({
946
+ sortable: this,
947
+ name: "remove",
948
+ toEl: O,
949
+ originalEvent: e
950
+ }), M({
951
+ rootEl: O,
952
+ name: "sort",
953
+ toEl: O,
954
+ fromEl: C,
955
+ originalEvent: e
956
+ }), M({
957
+ sortable: this,
958
+ name: "sort",
959
+ toEl: O,
960
+ originalEvent: e
961
+ })), N && N.save()) : Y !== he && Y >= 0 && (M({
962
+ sortable: this,
963
+ name: "update",
964
+ toEl: O,
965
+ originalEvent: e
966
+ }), M({
967
+ sortable: this,
968
+ name: "sort",
969
+ toEl: O,
970
+ originalEvent: e
971
+ })), h.active && ((Y == null || Y === -1) && (Y = he, J = Pe), M({
972
+ sortable: this,
973
+ name: "end",
974
+ toEl: O,
975
+ originalEvent: e
976
+ }), this.save()))), this._nulling();
977
+ },
978
+ _nulling: function() {
979
+ R("nulling", this), C = c = O = m = se = T = Xe = ee = re = $ = Se = Y = J = he = Pe = fe = Ae = N = Re = h.dragged = h.ghost = h.clone = h.active = null, Ke.forEach(function(e) {
980
+ e.checked = !0;
981
+ }), Ke.length = ot = it = 0;
982
+ },
983
+ handleEvent: function(e) {
984
+ switch (e.type) {
985
+ case "drop":
986
+ case "dragend":
987
+ this._onDrop(e);
988
+ break;
989
+ case "dragenter":
990
+ case "dragover":
991
+ c && (this._onDragOver(e), Qn(e));
992
+ break;
993
+ case "selectstart":
994
+ e.preventDefault();
995
+ break;
996
+ }
997
+ },
998
+ /**
999
+ * Serializes the item into an array of string.
1000
+ * @returns {String[]}
1001
+ */
1002
+ toArray: function() {
1003
+ for (var e = [], o, n = this.el.children, i = 0, r = n.length, l = this.options; i < r; i++)
1004
+ o = n[i], j(o, l.draggable, this.el, !1) && e.push(o.getAttribute(l.dataIdAttr) || io(o));
1005
+ return e;
1006
+ },
1007
+ /**
1008
+ * Sorts the elements according to the array.
1009
+ * @param {String[]} order order of the items
1010
+ */
1011
+ sort: function(e, o) {
1012
+ var n = {}, i = this.el;
1013
+ this.toArray().forEach(function(r, l) {
1014
+ var a = i.children[l];
1015
+ j(a, this.options.draggable, i, !1) && (n[r] = a);
1016
+ }, this), o && this.captureAnimationState(), e.forEach(function(r) {
1017
+ n[r] && (i.removeChild(n[r]), i.appendChild(n[r]));
1018
+ }), o && this.animateAll();
1019
+ },
1020
+ /**
1021
+ * Save the current sorting
1022
+ */
1023
+ save: function() {
1024
+ var e = this.options.store;
1025
+ e && e.set && e.set(this);
1026
+ },
1027
+ /**
1028
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
1029
+ * @param {HTMLElement} el
1030
+ * @param {String} [selector] default: `options.draggable`
1031
+ * @returns {HTMLElement|null}
1032
+ */
1033
+ closest: function(e, o) {
1034
+ return j(e, o || this.options.draggable, this.el, !1);
1035
+ },
1036
+ /**
1037
+ * Set/get option
1038
+ * @param {string} name
1039
+ * @param {*} [value]
1040
+ * @returns {*}
1041
+ */
1042
+ option: function(e, o) {
1043
+ var n = this.options;
1044
+ if (o === void 0)
1045
+ return n[e];
1046
+ var i = ke.modifyOption(this, e, o);
1047
+ typeof i < "u" ? n[e] = i : n[e] = o, e === "group" && Jt(n);
1048
+ },
1049
+ /**
1050
+ * Destroy
1051
+ */
1052
+ destroy: function() {
1053
+ R("destroy", this);
1054
+ var e = this.el;
1055
+ e[F] = null, E(e, "mousedown", this._onTapStart), E(e, "touchstart", this._onTapStart), E(e, "pointerdown", this._onTapStart), this.nativeDraggable && (E(e, "dragover", this), E(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
1056
+ o.removeAttribute("draggable");
1057
+ }), this._onDrop(), this._disableDelayedDragEvents(), qe.splice(qe.indexOf(this.el), 1), this.el = e = null;
1058
+ },
1059
+ _hideClone: function() {
1060
+ if (!ee) {
1061
+ if (R("hideClone", this), h.eventCanceled) return;
1062
+ p(T, "display", "none"), this.options.removeCloneOnHide && T.parentNode && T.parentNode.removeChild(T), ee = !0;
1063
+ }
1064
+ },
1065
+ _showClone: function(e) {
1066
+ if (e.lastPutMode !== "clone") {
1067
+ this._hideClone();
1068
+ return;
1069
+ }
1070
+ if (ee) {
1071
+ if (R("showClone", this), h.eventCanceled) return;
1072
+ c.parentNode == C && !this.options.group.revertClone ? C.insertBefore(T, c) : se ? C.insertBefore(T, se) : C.appendChild(T), this.options.group.revertClone && this.animate(c, T), p(T, "display", ""), ee = !1;
1073
+ }
1074
+ }
1075
+ };
1076
+ function Qn(t) {
1077
+ t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
1078
+ }
1079
+ function Be(t, e, o, n, i, r, l, a) {
1080
+ var s, u = t[F], f = u.options.onMove, d;
1081
+ return window.CustomEvent && !K && !xe ? s = new CustomEvent("move", {
1082
+ bubbles: !0,
1083
+ cancelable: !0
1084
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = t, s.dragged = o, s.draggedRect = n, s.related = i || e, s.relatedRect = r || P(e), s.willInsertAfter = a, s.originalEvent = l, t.dispatchEvent(s), f && (d = f.call(u, s, l)), d;
1085
+ }
1086
+ function at(t) {
1087
+ t.draggable = !1;
1088
+ }
1089
+ function Jn() {
1090
+ gt = !1;
1091
+ }
1092
+ function eo(t, e, o) {
1093
+ var n = P(me(o.el, 0, o.options, !0)), i = Kt(o.el, o.options, m), r = 10;
1094
+ return e ? t.clientX < i.left - r || t.clientY < n.top && t.clientX < n.right : t.clientY < i.top - r || t.clientY < n.bottom && t.clientX < n.left;
1095
+ }
1096
+ function to(t, e, o) {
1097
+ var n = P(Dt(o.el, o.options.draggable)), i = Kt(o.el, o.options, m), r = 10;
1098
+ return e ? t.clientX > i.right + r || t.clientY > n.bottom && t.clientX > n.left : t.clientY > i.bottom + r || t.clientX > n.right && t.clientY > n.top;
1099
+ }
1100
+ function no(t, e, o, n, i, r, l, a) {
1101
+ var s = n ? t.clientY : t.clientX, u = n ? o.height : o.width, f = n ? o.top : o.left, d = n ? o.bottom : o.right, v = !1;
1102
+ if (!l) {
1103
+ if (a && We < u * i) {
1104
+ if (!Ne && (Ae === 1 ? s > f + u * r / 2 : s < d - u * r / 2) && (Ne = !0), Ne)
1105
+ v = !0;
1106
+ else if (Ae === 1 ? s < f + We : s > d - We)
1107
+ return -Ae;
1108
+ } else if (s > f + u * (1 - i) / 2 && s < d - u * (1 - i) / 2)
1109
+ return oo(e);
1110
+ }
1111
+ return v = v || l, v && (s < f + u * r / 2 || s > d - u * r / 2) ? s > f + u / 2 ? 1 : -1 : 0;
1112
+ }
1113
+ function oo(t) {
1114
+ return W(c) < W(t) ? 1 : -1;
1115
+ }
1116
+ function io(t) {
1117
+ for (var e = t.tagName + t.className + t.src + t.href + t.textContent, o = e.length, n = 0; o--; )
1118
+ n += e.charCodeAt(o);
1119
+ return n.toString(36);
1120
+ }
1121
+ function ro(t) {
1122
+ Ke.length = 0;
1123
+ for (var e = t.getElementsByTagName("input"), o = e.length; o--; ) {
1124
+ var n = e[o];
1125
+ n.checked && Ke.push(n);
1126
+ }
1127
+ }
1128
+ function $e(t) {
1129
+ return setTimeout(t, 0);
1130
+ }
1131
+ function mt(t) {
1132
+ return clearTimeout(t);
1133
+ }
1134
+ Je && S(document, "touchmove", function(t) {
1135
+ (h.active || de) && t.cancelable && t.preventDefault();
1136
+ });
1137
+ h.utils = {
1138
+ on: S,
1139
+ off: E,
1140
+ css: p,
1141
+ find: zt,
1142
+ is: function(e, o) {
1143
+ return !!j(e, o, e, !1);
1144
+ },
1145
+ extend: Wn,
1146
+ throttle: Ut,
1147
+ closest: j,
1148
+ toggleClass: B,
1149
+ clone: qt,
1150
+ index: W,
1151
+ nextTick: $e,
1152
+ cancelNextTick: mt,
1153
+ detectDirection: Qt,
1154
+ getChild: me,
1155
+ expando: F
1156
+ };
1157
+ h.get = function(t) {
1158
+ return t[F];
1159
+ };
1160
+ h.mount = function() {
1161
+ for (var t = arguments.length, e = new Array(t), o = 0; o < t; o++)
1162
+ e[o] = arguments[o];
1163
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(n) {
1164
+ if (!n.prototype || !n.prototype.constructor)
1165
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
1166
+ n.utils && (h.utils = z(z({}, h.utils), n.utils)), ke.mount(n);
1167
+ });
1168
+ };
1169
+ h.create = function(t, e) {
1170
+ return new h(t, e);
1171
+ };
1172
+ h.version = Yn;
1173
+ var I = [], De, vt, bt = !1, lt, st, Ze, _e;
1174
+ function ao() {
1175
+ function t() {
1176
+ this.defaults = {
1177
+ scroll: !0,
1178
+ forceAutoScrollFallback: !1,
1179
+ scrollSensitivity: 30,
1180
+ scrollSpeed: 10,
1181
+ bubbleScroll: !0
1182
+ };
1183
+ for (var e in this)
1184
+ e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1185
+ }
1186
+ return t.prototype = {
1187
+ dragStarted: function(o) {
1188
+ var n = o.originalEvent;
1189
+ this.sortable.nativeDraggable ? S(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? S(document, "pointermove", this._handleFallbackAutoScroll) : n.touches ? S(document, "touchmove", this._handleFallbackAutoScroll) : S(document, "mousemove", this._handleFallbackAutoScroll);
1190
+ },
1191
+ dragOverCompleted: function(o) {
1192
+ var n = o.originalEvent;
1193
+ !this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
1194
+ },
1195
+ drop: function() {
1196
+ this.sortable.nativeDraggable ? E(document, "dragover", this._handleAutoScroll) : (E(document, "pointermove", this._handleFallbackAutoScroll), E(document, "touchmove", this._handleFallbackAutoScroll), E(document, "mousemove", this._handleFallbackAutoScroll)), Lt(), je(), $n();
1197
+ },
1198
+ nulling: function() {
1199
+ Ze = vt = De = bt = _e = lt = st = null, I.length = 0;
1200
+ },
1201
+ _handleFallbackAutoScroll: function(o) {
1202
+ this._handleAutoScroll(o, !0);
1203
+ },
1204
+ _handleAutoScroll: function(o, n) {
1205
+ var i = this, r = (o.touches ? o.touches[0] : o).clientX, l = (o.touches ? o.touches[0] : o).clientY, a = document.elementFromPoint(r, l);
1206
+ if (Ze = o, n || this.options.forceAutoScrollFallback || xe || K || Oe) {
1207
+ ut(o, this.options, a, n);
1208
+ var s = te(a, !0);
1209
+ bt && (!_e || r !== lt || l !== st) && (_e && Lt(), _e = setInterval(function() {
1210
+ var u = te(document.elementFromPoint(r, l), !0);
1211
+ u !== s && (s = u, je()), ut(o, i.options, u, n);
1212
+ }, 10), lt = r, st = l);
1213
+ } else {
1214
+ if (!this.options.bubbleScroll || te(a, !0) === G()) {
1215
+ je();
1216
+ return;
1217
+ }
1218
+ ut(o, this.options, te(a, !1), !1);
1219
+ }
1220
+ }
1221
+ }, q(t, {
1222
+ pluginName: "scroll",
1223
+ initializeByDefault: !0
1224
+ });
1225
+ }
1226
+ function je() {
1227
+ I.forEach(function(t) {
1228
+ clearInterval(t.pid);
1229
+ }), I = [];
1230
+ }
1231
+ function Lt() {
1232
+ clearInterval(_e);
1233
+ }
1234
+ var ut = Ut(function(t, e, o, n) {
1235
+ if (e.scroll) {
1236
+ var i = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, l = e.scrollSensitivity, a = e.scrollSpeed, s = G(), u = !1, f;
1237
+ vt !== o && (vt = o, je(), De = e.scroll, f = e.scrollFn, De === !0 && (De = te(o, !0)));
1238
+ var d = 0, v = De;
1239
+ do {
1240
+ var w = v, y = P(w), D = y.top, g = y.bottom, b = y.left, _ = y.right, A = y.width, x = y.height, ne = void 0, H = void 0, oe = w.scrollWidth, ve = w.scrollHeight, L = p(w), be = w.scrollLeft, Z = w.scrollTop;
1241
+ w === s ? (ne = A < oe && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), H = x < ve && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (ne = A < oe && (L.overflowX === "auto" || L.overflowX === "scroll"), H = x < ve && (L.overflowY === "auto" || L.overflowY === "scroll"));
1242
+ var ye = ne && (Math.abs(_ - i) <= l && be + A < oe) - (Math.abs(b - i) <= l && !!be), U = H && (Math.abs(g - r) <= l && Z + x < ve) - (Math.abs(D - r) <= l && !!Z);
1243
+ if (!I[d])
1244
+ for (var ie = 0; ie <= d; ie++)
1245
+ I[ie] || (I[ie] = {});
1246
+ (I[d].vx != ye || I[d].vy != U || I[d].el !== w) && (I[d].el = w, I[d].vx = ye, I[d].vy = U, clearInterval(I[d].pid), (ye != 0 || U != 0) && (u = !0, I[d].pid = setInterval(function() {
1247
+ n && this.layer === 0 && h.active._onTouchMove(Ze);
1248
+ var we = I[this.layer].vy ? I[this.layer].vy * a : 0, Q = I[this.layer].vx ? I[this.layer].vx * a : 0;
1249
+ typeof f == "function" && f.call(h.dragged.parentNode[F], Q, we, t, Ze, I[this.layer].el) !== "continue" || Vt(I[this.layer].el, Q, we);
1250
+ }.bind({
1251
+ layer: d
1252
+ }), 24))), d++;
1253
+ } while (e.bubbleScroll && v !== s && (v = te(v, !1)));
1254
+ bt = u;
1255
+ }
1256
+ }, 30), nn = function(e) {
1257
+ var o = e.originalEvent, n = e.putSortable, i = e.dragEl, r = e.activeSortable, l = e.dispatchSortableEvent, a = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1258
+ if (o) {
1259
+ var u = n || r;
1260
+ a();
1261
+ var f = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, d = document.elementFromPoint(f.clientX, f.clientY);
1262
+ s(), u && !u.el.contains(d) && (l("spill"), this.onSpill({
1263
+ dragEl: i,
1264
+ putSortable: n
1265
+ }));
1266
+ }
1267
+ };
1268
+ function _t() {
1269
+ }
1270
+ _t.prototype = {
1271
+ startIndex: null,
1272
+ dragStart: function(e) {
1273
+ var o = e.oldDraggableIndex;
1274
+ this.startIndex = o;
1275
+ },
1276
+ onSpill: function(e) {
1277
+ var o = e.dragEl, n = e.putSortable;
1278
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
1279
+ var i = me(this.sortable.el, this.startIndex, this.options);
1280
+ i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), n && n.animateAll();
1281
+ },
1282
+ drop: nn
1283
+ };
1284
+ q(_t, {
1285
+ pluginName: "revertOnSpill"
1286
+ });
1287
+ function Ct() {
1288
+ }
1289
+ Ct.prototype = {
1290
+ onSpill: function(e) {
1291
+ var o = e.dragEl, n = e.putSortable, i = n || this.sortable;
1292
+ i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
1293
+ },
1294
+ drop: nn
1295
+ };
1296
+ q(Ct, {
1297
+ pluginName: "removeOnSpill"
1298
+ });
1299
+ h.mount(new ao());
1300
+ h.mount(Ct, _t);
1301
+ function lo(t, e, o = {}) {
1302
+ let n;
1303
+ const { document: i = Mn, ...r } = o, l = {
1304
+ onUpdate: (f) => {
1305
+ co(e, f.oldIndex, f.newIndex, f);
1306
+ }
1307
+ }, a = () => {
1308
+ const f = typeof t == "string" ? i?.querySelector(t) : Rn(t);
1309
+ !f || n !== void 0 || (n = new h(f, { ...l, ...r }));
1310
+ }, s = () => {
1311
+ n?.destroy(), n = void 0;
1312
+ }, u = (f, d) => {
1313
+ if (d !== void 0)
1314
+ n?.option(f, d);
1315
+ else
1316
+ return n?.option(f);
1317
+ };
1318
+ return xn(a), wt(s), {
1319
+ stop: s,
1320
+ start: a,
1321
+ option: u
1322
+ };
1323
+ }
1324
+ function so(t, e, o) {
1325
+ const n = t.children[o];
1326
+ t.insertBefore(e, n);
1327
+ }
1328
+ function uo(t) {
1329
+ t.parentNode && t.parentNode.removeChild(t);
1330
+ }
1331
+ function co(t, e, o, n = null) {
1332
+ n != null && (uo(n.item), so(n.from, n.item, e));
1333
+ const i = mn(t), r = i ? [...X(t)] : X(t);
1334
+ if (o >= 0 && o < r.length) {
1335
+ const l = r.splice(e, 1)[0];
1336
+ yt(() => {
1337
+ r.splice(o, 0, l), i && (t.value = r);
1338
+ });
1339
+ }
1340
+ }
1341
+ const fo = ["data-align"], po = /* @__PURE__ */ Xt({
1342
+ __name: "PvPopover",
1343
+ props: {
1344
+ alignment: { default: void 0, type: null },
1345
+ cssCustomProperties: { default: () => ({}), type: Object },
1346
+ cssCustomListProperties: { type: Object },
1347
+ isList: { type: Boolean, default: !1 },
1348
+ isSortable: { type: Boolean }
1349
+ },
1350
+ emits: ["list-order-updated"],
1351
+ setup(t, { expose: e, emit: o }) {
1352
+ const n = ue(null), i = vn("popoverList"), r = t, l = o;
1353
+ return r.isSortable && r.isList && lo(i, [], {
1354
+ animation: 150,
1355
+ onUpdate: () => {
1356
+ const a = Array.from(i.value?.children || []).map(
1357
+ (s) => s.id
1358
+ );
1359
+ l("list-order-updated", a);
1360
+ }
1361
+ }), e({ popoverRoot: n }), (a, s) => (Te(), Ge("div", {
1362
+ ref_key: "popoverRoot",
1363
+ ref: n,
1364
+ class: "pv-popover",
1365
+ "data-testid": "pv-popover",
1366
+ "data-align": t.alignment,
1367
+ style: Ot(t.cssCustomProperties)
1368
+ }, [
1369
+ t.isList ? (Te(), Ge(
1370
+ "ul",
1371
+ {
1372
+ key: 0,
1373
+ ref: "popoverList",
1374
+ role: "list",
1375
+ class: "pv-popover-list",
1376
+ style: Ot(t.cssCustomListProperties)
1377
+ },
1378
+ [
1379
+ ze(a.$slots, "default", {}, void 0, !0)
1380
+ ],
1381
+ 4
1382
+ /* STYLE */
1383
+ )) : ze(a.$slots, "default", { key: 1 }, void 0, !0)
1384
+ ], 12, fo));
1385
+ }
1386
+ }), ho = ".pv-popover-list[data-v-cda1af8c]{font-size:14px}", on = (t, e) => {
1387
+ const o = t.__vccOpts || t;
1388
+ for (const [n, i] of e)
1389
+ o[n] = i;
1390
+ return o;
1391
+ }, go = /* @__PURE__ */ on(po, [["styles", [ho]], ["__scopeId", "data-v-cda1af8c"]]), rn = Et ? window : void 0;
1392
+ function Ce(t) {
1393
+ var e;
1394
+ const o = X(t);
1395
+ return (e = o?.$el) != null ? e : o;
1396
+ }
1397
+ function He(...t) {
1398
+ const e = [], o = () => {
1399
+ e.forEach((a) => a()), e.length = 0;
1400
+ }, n = (a, s, u, f) => (a.addEventListener(s, u, f), () => a.removeEventListener(s, u, f)), i = pe(() => {
1401
+ const a = et(X(t[0])).filter((s) => s != null);
1402
+ return a.every((s) => typeof s != "string") ? a : void 0;
1403
+ }), r = kn(
1404
+ () => {
1405
+ var a, s;
1406
+ return [
1407
+ (s = (a = i.value) == null ? void 0 : a.map((u) => Ce(u))) != null ? s : [rn].filter((u) => u != null),
1408
+ et(X(i.value ? t[1] : t[0])),
1409
+ et(Wt(i.value ? t[2] : t[1])),
1410
+ // @ts-expect-error - TypeScript gets the correct types, but somehow still complains
1411
+ X(i.value ? t[3] : t[2])
1412
+ ];
1413
+ },
1414
+ ([a, s, u, f]) => {
1415
+ if (o(), !a?.length || !s?.length || !u?.length)
1416
+ return;
1417
+ const d = In(f) ? { ...f } : f;
1418
+ e.push(
1419
+ ...a.flatMap(
1420
+ (v) => s.flatMap(
1421
+ (w) => u.map((y) => n(v, w, y, d))
1422
+ )
1423
+ )
1424
+ );
1425
+ },
1426
+ { flush: "post" }
1427
+ ), l = () => {
1428
+ r(), o();
1429
+ };
1430
+ return wt(o), l;
1431
+ }
1432
+ let Bt = !1;
1433
+ function Yt(t, e, o = {}) {
1434
+ const { window: n = rn, ignore: i = [], capture: r = !0, detectIframe: l = !1, controls: a = !1 } = o;
1435
+ if (!n)
1436
+ return a ? { stop: le, cancel: le, trigger: le } : le;
1437
+ if (ht && !Bt) {
1438
+ Bt = !0;
1439
+ const g = { passive: !0 };
1440
+ Array.from(n.document.body.children).forEach((b) => b.addEventListener("click", le, g)), n.document.documentElement.addEventListener("click", le, g);
1441
+ }
1442
+ let s = !0;
1443
+ const u = (g) => X(i).some((b) => {
1444
+ if (typeof b == "string")
1445
+ return Array.from(n.document.querySelectorAll(b)).some((_) => _ === g.target || g.composedPath().includes(_));
1446
+ {
1447
+ const _ = Ce(b);
1448
+ return _ && (g.target === _ || g.composedPath().includes(_));
1449
+ }
1450
+ });
1451
+ function f(g) {
1452
+ const b = X(g);
1453
+ return b && b.$.subTree.shapeFlag === 16;
1454
+ }
1455
+ function d(g, b) {
1456
+ const _ = X(g), A = _.$.subTree && _.$.subTree.children;
1457
+ return A == null || !Array.isArray(A) ? !1 : A.some((x) => x.el === b.target || b.composedPath().includes(x.el));
1458
+ }
1459
+ const v = (g) => {
1460
+ const b = Ce(t);
1461
+ if (g.target != null && !(!(b instanceof Element) && f(t) && d(t, g)) && !(!b || b === g.target || g.composedPath().includes(b))) {
1462
+ if ("detail" in g && g.detail === 0 && (s = !u(g)), !s) {
1463
+ s = !0;
1464
+ return;
1465
+ }
1466
+ e(g);
1467
+ }
1468
+ };
1469
+ let w = !1;
1470
+ const y = [
1471
+ He(n, "click", (g) => {
1472
+ w || (w = !0, setTimeout(() => {
1473
+ w = !1;
1474
+ }, 0), v(g));
1475
+ }, { passive: !0, capture: r }),
1476
+ He(n, "pointerdown", (g) => {
1477
+ const b = Ce(t);
1478
+ s = !u(g) && !!(b && !g.composedPath().includes(b));
1479
+ }, { passive: !0 }),
1480
+ l && He(n, "blur", (g) => {
1481
+ setTimeout(() => {
1482
+ var b;
1483
+ const _ = Ce(t);
1484
+ ((b = n.document.activeElement) == null ? void 0 : b.tagName) === "IFRAME" && !_?.contains(n.document.activeElement) && e(g);
1485
+ }, 0);
1486
+ }, { passive: !0 })
1487
+ ].filter(Boolean), D = () => y.forEach((g) => g());
1488
+ return a ? {
1489
+ stop: D,
1490
+ cancel: () => {
1491
+ s = !1;
1492
+ },
1493
+ trigger: (g) => {
1494
+ s = !0, v(g), s = !1;
1495
+ }
1496
+ } : D;
1497
+ }
1498
+ const ct = /* @__PURE__ */ new WeakMap(), mo = {
1499
+ mounted(t, e) {
1500
+ const o = !e.modifiers.bubble;
1501
+ let n;
1502
+ if (typeof e.value == "function")
1503
+ n = Yt(t, e.value, { capture: o });
1504
+ else {
1505
+ const [i, r] = e.value;
1506
+ n = Yt(t, i, Object.assign({ capture: o }, r));
1507
+ }
1508
+ ct.set(t, n);
1509
+ },
1510
+ unmounted(t) {
1511
+ const e = ct.get(t);
1512
+ e && typeof e == "function" ? e() : e?.stop(), ct.delete(t);
1513
+ }
1514
+ };
1515
+ function ft(t) {
1516
+ return typeof Window < "u" && t instanceof Window ? t.document.documentElement : typeof Document < "u" && t instanceof Document ? t.documentElement : t;
1517
+ }
1518
+ function an(t) {
1519
+ const e = window.getComputedStyle(t);
1520
+ if (e.overflowX === "scroll" || e.overflowY === "scroll" || e.overflowX === "auto" && t.clientWidth < t.scrollWidth || e.overflowY === "auto" && t.clientHeight < t.scrollHeight)
1521
+ return !0;
1522
+ {
1523
+ const o = t.parentNode;
1524
+ return !o || o.tagName === "BODY" ? !1 : an(o);
1525
+ }
1526
+ }
1527
+ function vo(t) {
1528
+ const e = t || window.event, o = e.target;
1529
+ return an(o) ? !1 : e.touches.length > 1 ? !0 : (e.preventDefault && e.preventDefault(), !1);
1530
+ }
1531
+ const dt = /* @__PURE__ */ new WeakMap();
1532
+ function bo(t, e = !1) {
1533
+ const o = $t(e);
1534
+ let n = null, i = "";
1535
+ Qe(An(t), (a) => {
1536
+ const s = ft(X(a));
1537
+ if (s) {
1538
+ const u = s;
1539
+ if (dt.get(u) || dt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (i = u.style.overflow), u.style.overflow === "hidden")
1540
+ return o.value = !0;
1541
+ if (o.value)
1542
+ return u.style.overflow = "hidden";
1543
+ }
1544
+ }, {
1545
+ immediate: !0
1546
+ });
1547
+ const r = () => {
1548
+ const a = ft(X(t));
1549
+ !a || o.value || (ht && (n = He(
1550
+ a,
1551
+ "touchmove",
1552
+ (s) => {
1553
+ vo(s);
1554
+ },
1555
+ { passive: !1 }
1556
+ )), a.style.overflow = "hidden", o.value = !0);
1557
+ }, l = () => {
1558
+ const a = ft(X(t));
1559
+ !a || !o.value || (ht && n?.(), a.style.overflow = i, dt.delete(a), o.value = !1);
1560
+ };
1561
+ return wt(l), pe({
1562
+ get() {
1563
+ return o.value;
1564
+ },
1565
+ set(a) {
1566
+ a ? r() : l();
1567
+ }
1568
+ });
1569
+ }
1570
+ function yo() {
1571
+ let t = !1;
1572
+ const e = $t(!1);
1573
+ return (o, n) => {
1574
+ if (e.value = n.value, t)
1575
+ return;
1576
+ t = !0;
1577
+ const i = bo(o, n.value);
1578
+ Qe(e, (r) => i.value = r);
1579
+ };
1580
+ }
1581
+ yo();
1582
+ const wo = {
1583
+ class: "pv-relative",
1584
+ style: { width: "fit-content" }
1585
+ }, Eo = ["disabled"], So = {
1586
+ key: 0,
1587
+ class: "pv-shimmer"
1588
+ }, Do = /* @__PURE__ */ Xt({
1589
+ __name: "PvDropdown",
1590
+ props: {
1591
+ defaultOpen: { type: Boolean, default: !1 },
1592
+ popoverCssProperties: { type: Object },
1593
+ alignment: { default: void 0, type: null },
1594
+ isList: { type: Boolean, default: !1 },
1595
+ isSortable: { type: Boolean },
1596
+ icon: { type: Boolean },
1597
+ disabled: { type: Boolean, default: !1 },
1598
+ isLoading: { type: Boolean, default: !1 },
1599
+ useTeleport: { type: Boolean, default: !1 },
1600
+ teleportLocation: { default: "body", type: String }
1601
+ },
1602
+ emits: ["dropdown-open", "dropdown-closed", "list-order-updated"],
1603
+ setup(t, { expose: e, emit: o }) {
1604
+ const n = t, i = o, r = ue(n.defaultOpen), l = ue(null), a = ue(null), s = ue(null), u = ue(null), f = () => {
1605
+ l.value && (s.value = l.value.getBoundingClientRect()), a.value?.popoverRoot && (u.value = a.value.popoverRoot.getBoundingClientRect());
1606
+ }, d = pe(() => ({
1607
+ "pv-hide": !r.value
1608
+ })), v = (b) => {
1609
+ r.value = !r.value;
1610
+ }, w = () => {
1611
+ r.value = !1;
1612
+ };
1613
+ e({
1614
+ closeDropdown: w
1615
+ }), Qe(r, (b) => {
1616
+ b ? yt(() => {
1617
+ f(), i("dropdown-open");
1618
+ }) : i("dropdown-closed");
1619
+ });
1620
+ const y = pe(() => !s.value || !u.value ? 0 : n.alignment === "right" || n.alignment === "top right" ? s.value.left + s.value.width - u.value.width : s.value.left), D = pe(() => !s.value || !u.value ? 0 : n.alignment === "top" || n.alignment === "top right" ? s.value.top - u.value.height : s.value.top + window.scrollY + s.value.height), g = pe(() => n.useTeleport ? {
1621
+ ...{
1622
+ position: "absolute",
1623
+ left: `${y.value}px`,
1624
+ top: `${D.value}px`,
1625
+ zIndex: 10
1626
+ },
1627
+ ...n.popoverCssProperties
1628
+ } : n.popoverCssProperties);
1629
+ return (b, _) => bn((Te(), Ge("div", wo, [
1630
+ yn("button", {
1631
+ ref_key: "triggerRef",
1632
+ ref: l,
1633
+ class: It({ "pv-select": !t.icon, "pv-icon-button": t.icon }),
1634
+ style: { width: "auto" },
1635
+ onClick: v,
1636
+ disabled: t.disabled
1637
+ }, [
1638
+ ze(b.$slots, "trigger", {}, () => [
1639
+ _[1] || (_[1] = En(
1640
+ "Open",
1641
+ -1
1642
+ /* CACHED */
1643
+ ))
1644
+ ], !0)
1645
+ ], 10, Eo),
1646
+ (Te(), wn(Sn, {
1647
+ to: t.teleportLocation,
1648
+ disabled: !t.useTeleport
1649
+ }, [
1650
+ Dn(go, {
1651
+ ref_key: "popoverRef",
1652
+ ref: a,
1653
+ class: It(d.value),
1654
+ "css-custom-properties": g.value,
1655
+ alignment: t.alignment,
1656
+ isList: t.isList,
1657
+ isSortable: t.isSortable,
1658
+ onListOrderUpdated: _[0] || (_[0] = (A) => b.$emit("list-order-updated", A))
1659
+ }, {
1660
+ default: _n(() => [
1661
+ ze(b.$slots, "default", {}, () => [
1662
+ t.isLoading ? (Te(), Ge("span", So, "Loading...")) : Cn("v-if", !0)
1663
+ ], !0)
1664
+ ]),
1665
+ _: 3
1666
+ /* FORWARDED */
1667
+ }, 8, ["class", "css-custom-properties", "alignment", "isList", "isSortable"])
1668
+ ], 8, ["to", "disabled"]))
1669
+ ])), [
1670
+ [Wt(mo), w]
1671
+ ]);
1672
+ }
1673
+ }), _o = ".pv-icon-button[data-v-79a7def3]{background-color:transparent;border:none}.pv-icon-button[data-v-79a7def3]:hover{cursor:pointer;color:#176f6f}.pv-select[data-v-79a7def3]{padding-top:4px;padding-bottom:4px}", Co = /* @__PURE__ */ on(Do, [["styles", [_o]], ["__scopeId", "data-v-79a7def3"]]), To = /* @__PURE__ */ new Set(["PvIcon", "PvPopoverMenu", "PvPopover"]);
1674
+ function Oo(t) {
1675
+ return !To.has(t);
1676
+ }
1677
+ function pt(t, e) {
1678
+ const o = document.querySelector('link[href*="' + e + '"]');
1679
+ if (!t.shadowRoot)
1680
+ return !1;
1681
+ if (o && t.shadowRoot) {
1682
+ const n = o.href;
1683
+ if (t.shadowRoot.querySelector(`link[href="${n}"]`))
1684
+ return;
1685
+ const i = document.createElement("link");
1686
+ return i.rel = "stylesheet", i.href = n, t.shadowRoot.prepend(i), !0;
1687
+ }
1688
+ return !1;
1689
+ }
1690
+ function Io(t) {
1691
+ if (!pt(t, "pit-viper-v2")) {
1692
+ if (pt(t, "pit-viper")) {
1693
+ pt(t, "pit-viper-v2-scoped");
1694
+ return;
1695
+ }
1696
+ console.warn(
1697
+ "No global styles found for Pit Viper components. Make sure to include pit-viper.css or pit-viper-v2.css in your project."
1698
+ );
1699
+ }
1700
+ }
1701
+ const Po = (t) => ({ shadowRoot: Oo(t) });
1702
+ function Ao(t) {
1703
+ const e = t.__name || t.name;
1704
+ if (!e)
1705
+ throw new Error("Component must have a __name or name property");
1706
+ const o = Tn(t, Po(e));
1707
+ class n extends o {
1708
+ connectedCallback() {
1709
+ super.connectedCallback?.(), Io(this);
1710
+ }
1711
+ }
1712
+ return n;
1713
+ }
1714
+ function No(t) {
1715
+ return t.replace(/([A-Z])/g, "-$1").toLowerCase().replace(/^-/, "");
1716
+ }
1717
+ function xo(t) {
1718
+ const e = t.__name || t.name;
1719
+ if (!e)
1720
+ throw new Error("Component must have a __name or name property");
1721
+ const o = No(e), n = Ao(t);
1722
+ customElements.get(o) || customElements.define(o, n);
1723
+ }
1724
+ xo(Co);