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