exploria-ui 2026.2.31 → 2026.3.2

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 (161) hide show
  1. package/README.md +240 -16
  2. package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
  3. package/dist/components/basic/ECard/ECard.vue.d.ts +27 -0
  4. package/dist/components/index.d.ts +2 -1
  5. package/dist/components/index.js +60 -19368
  6. package/dist/directives/EDrag.d.ts +3 -1
  7. package/dist/directives/index.js +4 -23
  8. package/dist/index.css +1 -1
  9. package/dist/node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js +1111 -0
  10. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/controls/OrbitControls.js +424 -0
  11. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/curves/NURBSCurve.js +31 -0
  12. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/curves/NURBSUtils.js +115 -0
  13. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/libs/fflate.module.js +250 -0
  14. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/FBXLoader.js +1385 -0
  15. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/FontLoader.js +69 -0
  16. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/loaders/GLTFLoader.js +1346 -0
  17. package/dist/node_modules/.pnpm/three@0.180.0/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +23 -0
  18. package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue.js +7 -0
  19. package/dist/packages/exploria-ui/src/components/advanced/EParallaxScrolling/EParallaxScrolling.vue_vue_type_script_setup_true_lang.js +38 -0
  20. package/dist/packages/exploria-ui/src/components/advanced/ERollingFollow/ERollingFollow.vue.js +7 -0
  21. package/dist/packages/exploria-ui/src/components/advanced/ERollingFollow/ERollingFollow.vue_vue_type_script_setup_true_lang.js +42 -0
  22. package/dist/packages/exploria-ui/src/components/advanced/EVirtualList/EVirtualList.vue.js +7 -0
  23. package/dist/packages/exploria-ui/src/components/advanced/EVirtualList/EVirtualList.vue_vue_type_script_setup_true_lang.js +43 -0
  24. package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue.js +7 -0
  25. package/dist/packages/exploria-ui/src/components/advanced/EWatermark/EWatermark.vue_vue_type_script_setup_true_lang.js +46 -0
  26. package/dist/packages/exploria-ui/src/components/basic/EButton/EButton.vue.js +7 -0
  27. package/dist/packages/exploria-ui/src/components/basic/EButton/EButton.vue_vue_type_script_setup_true_lang.js +42 -0
  28. package/dist/packages/exploria-ui/src/components/basic/EButton/loading.gif.js +4 -0
  29. package/dist/packages/exploria-ui/src/components/basic/ECard/ECard.vue.js +7 -0
  30. package/dist/packages/exploria-ui/src/components/basic/ECard/ECard.vue_vue_type_script_setup_true_lang.js +41 -0
  31. package/dist/packages/exploria-ui/src/components/basic/ESvgIcon/ESvgIcon.vue.js +5 -0
  32. package/dist/packages/exploria-ui/src/components/basic/ESvgIcon/ESvgIcon.vue_vue_type_script_setup_true_lang.js +11 -0
  33. package/dist/packages/exploria-ui/src/components/basic/EUnderLine/EUnderLine.vue.js +11 -0
  34. package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue.js +7 -0
  35. package/dist/packages/exploria-ui/src/components/data/EAvatar/EAvatar.vue_vue_type_script_setup_true_lang.js +14 -0
  36. package/dist/packages/exploria-ui/src/components/data/ECalendar.vue.js +7 -0
  37. package/dist/packages/exploria-ui/src/components/data/ECalendar.vue_vue_type_script_setup_true_lang.js +77 -0
  38. package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue.js +7 -0
  39. package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarousel.vue_vue_type_script_setup_true_lang.js +83 -0
  40. package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarouselItem.vue.js +7 -0
  41. package/dist/packages/exploria-ui/src/components/data/ECarousel/ECarouselItem.vue_vue_type_script_setup_true_lang.js +19 -0
  42. package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue.js +7 -0
  43. package/dist/packages/exploria-ui/src/components/data/ECodeCollapse/ECodeCollapse.vue_vue_type_script_setup_true_lang.js +46 -0
  44. package/dist/packages/exploria-ui/src/components/data/ECollapse/ECollapse.vue.js +7 -0
  45. package/dist/packages/exploria-ui/src/components/data/ECollapse/ECollapse.vue_vue_type_script_setup_true_lang.js +30 -0
  46. package/dist/packages/exploria-ui/src/components/data/EImage.vue.js +7 -0
  47. package/dist/packages/exploria-ui/src/components/data/EImage.vue_vue_type_script_setup_true_lang.js +31 -0
  48. package/dist/packages/exploria-ui/src/components/data/EList.vue.js +7 -0
  49. package/dist/packages/exploria-ui/src/components/data/EList.vue_vue_type_script_setup_true_lang.js +52 -0
  50. package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.js +36 -0
  51. package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.vue.js +7 -0
  52. package/dist/packages/exploria-ui/src/components/data/EMediaViewer/EMediaViewer.vue_vue_type_script_setup_true_lang.js +69 -0
  53. package/dist/packages/exploria-ui/src/components/data/EProgress.vue.js +7 -0
  54. package/dist/packages/exploria-ui/src/components/data/EProgress.vue_vue_type_script_setup_true_lang.js +22 -0
  55. package/dist/packages/exploria-ui/src/components/data/ERollingPagination.vue.js +7 -0
  56. package/dist/packages/exploria-ui/src/components/data/ERollingPagination.vue_vue_type_script_setup_true_lang.js +45 -0
  57. package/dist/packages/exploria-ui/src/components/data/ESkeleton/ESkeleton.vue.js +14 -0
  58. package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue.js +7 -0
  59. package/dist/packages/exploria-ui/src/components/data/ETable/ETable.vue_vue_type_script_setup_true_lang.js +60 -0
  60. package/dist/packages/exploria-ui/src/components/data/ETable/ETableColumn.vue.js +5 -0
  61. package/dist/packages/exploria-ui/src/components/data/ETable/ETableColumn.vue_vue_type_script_setup_true_lang.js +23 -0
  62. package/dist/packages/exploria-ui/src/components/data/ETable/no_data.svg.js +4 -0
  63. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue.js +7 -0
  64. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimeline.vue_vue_type_script_setup_true_lang.js +40 -0
  65. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue.js +7 -0
  66. package/dist/packages/exploria-ui/src/components/data/ETimeline/ETimelineItem.vue_vue_type_script_setup_true_lang.js +44 -0
  67. package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue.js +7 -0
  68. package/dist/packages/exploria-ui/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +95 -0
  69. package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue.js +7 -0
  70. package/dist/packages/exploria-ui/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +106 -0
  71. package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.js +56 -0
  72. package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.vue.js +7 -0
  73. package/dist/packages/exploria-ui/src/components/feedback/EMessage/EMessage.vue_vue_type_script_setup_true_lang.js +39 -0
  74. package/dist/packages/exploria-ui/src/components/feedback/EMessage/loading.gif.js +4 -0
  75. package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.js +31 -0
  76. package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.vue.js +7 -0
  77. package/dist/packages/exploria-ui/src/components/feedback/EMessageBox/EMessageBox.vue_vue_type_script_setup_true_lang.js +46 -0
  78. package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.js +141 -0
  79. package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.vue.js +7 -0
  80. package/dist/packages/exploria-ui/src/components/feedback/ENotification/ENotification.vue_vue_type_script_setup_true_lang.js +46 -0
  81. package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue.js +7 -0
  82. package/dist/packages/exploria-ui/src/components/feedback/EPopover.vue_vue_type_script_setup_true_lang.js +100 -0
  83. package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue.js +7 -0
  84. package/dist/packages/exploria-ui/src/components/feedback/ETooltip.vue_vue_type_script_setup_true_lang.js +65 -0
  85. package/dist/packages/exploria-ui/src/components/form/ECheckbox.vue.js +7 -0
  86. package/dist/packages/exploria-ui/src/components/form/ECheckbox.vue_vue_type_script_setup_true_lang.js +36 -0
  87. package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue.js +7 -0
  88. package/dist/packages/exploria-ui/src/components/form/EColorPicker.vue_vue_type_script_setup_true_lang.js +149 -0
  89. package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue.js +7 -0
  90. package/dist/packages/exploria-ui/src/components/form/EConditionGroup/EConditionGroup.vue_vue_type_script_setup_true_lang.js +101 -0
  91. package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue.js +7 -0
  92. package/dist/packages/exploria-ui/src/components/form/EFileSelector.vue_vue_type_script_setup_true_lang.js +33 -0
  93. package/dist/packages/exploria-ui/src/components/form/EForm.vue.js +7 -0
  94. package/dist/packages/exploria-ui/src/components/form/EForm.vue_vue_type_script_setup_true_lang.js +19 -0
  95. package/dist/packages/exploria-ui/src/components/form/EFormItem.vue.js +7 -0
  96. package/dist/packages/exploria-ui/src/components/form/EFormItem.vue_vue_type_script_setup_true_lang.js +44 -0
  97. package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue.js +7 -0
  98. package/dist/packages/exploria-ui/src/components/form/EInput/EInput.vue_vue_type_script_setup_true_lang.js +165 -0
  99. package/dist/packages/exploria-ui/src/components/form/ERadio.vue.js +7 -0
  100. package/dist/packages/exploria-ui/src/components/form/ERadio.vue_vue_type_script_setup_true_lang.js +36 -0
  101. package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue.js +7 -0
  102. package/dist/packages/exploria-ui/src/components/form/ESelect/ESelect.vue_vue_type_script_setup_true_lang.js +82 -0
  103. package/dist/packages/exploria-ui/src/components/form/ESlider.vue.js +7 -0
  104. package/dist/packages/exploria-ui/src/components/form/ESlider.vue_vue_type_script_setup_true_lang.js +76 -0
  105. package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue.js +7 -0
  106. package/dist/packages/exploria-ui/src/components/form/ETimePicker.vue_vue_type_script_setup_true_lang.js +89 -0
  107. package/dist/packages/exploria-ui/src/components/geometry/ECube.vue.js +11 -0
  108. package/dist/packages/exploria-ui/src/components/hooks/usePosition.js +42 -0
  109. package/dist/packages/exploria-ui/src/components/layout/EContainerWithScrollbar.vue.js +7 -0
  110. package/dist/packages/exploria-ui/src/components/layout/EContainerWithScrollbar.vue_vue_type_script_setup_true_lang.js +27 -0
  111. package/dist/packages/exploria-ui/src/components/layout/EDivider.vue.js +7 -0
  112. package/dist/packages/exploria-ui/src/components/layout/EDivider.vue_vue_type_script_setup_true_lang.js +15 -0
  113. package/dist/packages/exploria-ui/src/components/layout/EScrollX.vue.js +7 -0
  114. package/dist/packages/exploria-ui/src/components/layout/EScrollX.vue_vue_type_script_setup_true_lang.js +34 -0
  115. package/dist/packages/exploria-ui/src/components/layout/EScrollbar.vue.js +7 -0
  116. package/dist/packages/exploria-ui/src/components/layout/EScrollbar.vue_vue_type_script_setup_true_lang.js +55 -0
  117. package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue.js +7 -0
  118. package/dist/packages/exploria-ui/src/components/navigation/EDropdown.vue_vue_type_script_setup_true_lang.js +107 -0
  119. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue.js +7 -0
  120. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabPane.vue_vue_type_script_setup_true_lang.js +20 -0
  121. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue.js +7 -0
  122. package/dist/packages/exploria-ui/src/components/navigation/ETabs/ETabs.vue_vue_type_script_setup_true_lang.js +90 -0
  123. package/dist/packages/exploria-ui/src/directives/EDrag.js +27 -0
  124. package/dist/packages/exploria-ui/src/directives/ESizeOb.js +23 -0
  125. package/dist/packages/exploria-ui/src/directives/ESlideIn.js +24 -0
  126. package/dist/packages/exploria-ui/src/utils/EAnimateCSSUtil.js +13 -0
  127. package/dist/packages/exploria-ui/src/utils/EClipboardUtil.js +19 -0
  128. package/dist/packages/exploria-ui/src/utils/EDomUtil.js +9 -0
  129. package/dist/packages/exploria-ui/src/utils/EEchartsUtil.js +23 -0
  130. package/dist/packages/exploria-ui/src/utils/EImageUtil.js +26 -0
  131. package/dist/packages/exploria-ui/src/utils/ELocalStorageUtil.js +15 -0
  132. package/dist/packages/exploria-ui/src/utils/EMediaQueryUtil.js +28 -0
  133. package/dist/packages/exploria-ui/src/utils/EStringUtil.js +11 -0
  134. package/dist/packages/exploria-ui/src/utils/EThreeUtil.js +40 -0
  135. package/dist/packages/exploria-ui/src/utils/EUUIDUtil.js +11 -0
  136. package/dist/utils/EAnimateCSSUtil.d.ts +6 -0
  137. package/dist/utils/EClipboardUtil.d.ts +3 -0
  138. package/dist/utils/EDomUtil.d.ts +5 -0
  139. package/dist/utils/EEchartsUtil.d.ts +12 -0
  140. package/dist/utils/EEventBus.d.ts +8 -0
  141. package/dist/utils/EImageUtil.d.ts +3 -0
  142. package/dist/utils/EJSONUtil.d.ts +3 -0
  143. package/dist/utils/ELocalStorageUtil.d.ts +5 -0
  144. package/dist/utils/EMediaQueryUtil.d.ts +6 -0
  145. package/dist/utils/EStringUtil.d.ts +22 -0
  146. package/dist/utils/EThreeUtil.d.ts +21 -0
  147. package/dist/utils/ETimeUtil.d.ts +5 -0
  148. package/dist/utils/EUUIDUtil.d.ts +3 -0
  149. package/dist/utils/index.d.ts +8 -0
  150. package/dist/utils/index.js +8 -2
  151. package/package.json +25 -13
  152. package/src/plugins/EPreloadImageBuilder.ts +1 -1
  153. package/src/plugins/ESvgSpriteBuilder.ts +4 -5
  154. package/src/plugins/index.ts +3 -3
  155. package/dist/EDomUtil-Bm3Zqw96.js +0 -65
  156. package/dist/ESizeOb-VeHF4XTz.js +0 -44
  157. package/dist/plugins/EPreloadImageBuilder.d.ts +0 -5
  158. package/dist/plugins/ESvgPolyfill.d.ts +0 -3
  159. package/dist/plugins/ESvgSpriteBuilder.d.ts +0 -6
  160. package/dist/plugins/index.d.ts +0 -4
  161. package/dist/plugins/index.js +0 -3127
@@ -0,0 +1,1111 @@
1
+ //#region ../../node_modules/.pnpm/sortablejs@1.15.7/node_modules/sortablejs/modular/sortable.esm.js
2
+ function e(e, t, n) {
3
+ return (t = s(t)) in e ? Object.defineProperty(e, t, {
4
+ value: n,
5
+ enumerable: !0,
6
+ configurable: !0,
7
+ writable: !0
8
+ }) : e[t] = n, e;
9
+ }
10
+ function t() {
11
+ return t = Object.assign ? Object.assign.bind() : function(e) {
12
+ for (var t = 1; t < arguments.length; t++) {
13
+ var n = arguments[t];
14
+ for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
15
+ }
16
+ return e;
17
+ }, t.apply(null, arguments);
18
+ }
19
+ function n(e, t) {
20
+ var n = Object.keys(e);
21
+ if (Object.getOwnPropertySymbols) {
22
+ var r = Object.getOwnPropertySymbols(e);
23
+ t && (r = r.filter(function(t) {
24
+ return Object.getOwnPropertyDescriptor(e, t).enumerable;
25
+ })), n.push.apply(n, r);
26
+ }
27
+ return n;
28
+ }
29
+ function r(t) {
30
+ for (var r = 1; r < arguments.length; r++) {
31
+ var i = arguments[r] == null ? {} : arguments[r];
32
+ r % 2 ? n(Object(i), !0).forEach(function(n) {
33
+ e(t, n, i[n]);
34
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : n(Object(i)).forEach(function(e) {
35
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e));
36
+ });
37
+ }
38
+ return t;
39
+ }
40
+ function i(e, t) {
41
+ if (e == null) return {};
42
+ var n, r, i = a(e, t);
43
+ if (Object.getOwnPropertySymbols) {
44
+ var o = Object.getOwnPropertySymbols(e);
45
+ for (r = 0; r < o.length; r++) n = o[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
46
+ }
47
+ return i;
48
+ }
49
+ function a(e, t) {
50
+ if (e == null) return {};
51
+ var n = {};
52
+ for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
53
+ if (t.indexOf(r) !== -1) continue;
54
+ n[r] = e[r];
55
+ }
56
+ return n;
57
+ }
58
+ function o(e, t) {
59
+ if (typeof e != "object" || !e) return e;
60
+ var n = e[Symbol.toPrimitive];
61
+ if (n !== void 0) {
62
+ var r = n.call(e, t || "default");
63
+ if (typeof r != "object") return r;
64
+ throw TypeError("@@toPrimitive must return a primitive value.");
65
+ }
66
+ return (t === "string" ? String : Number)(e);
67
+ }
68
+ function s(e) {
69
+ var t = o(e, "string");
70
+ return typeof t == "symbol" ? t : t + "";
71
+ }
72
+ function c(e) {
73
+ "@babel/helpers - typeof";
74
+ return c = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
75
+ return typeof e;
76
+ } : function(e) {
77
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
78
+ }, c(e);
79
+ }
80
+ var l = "1.15.7";
81
+ function u(e) {
82
+ if (typeof window < "u" && window.navigator) return !!/* @__PURE__ */ navigator.userAgent.match(e);
83
+ }
84
+ var d = u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), f = u(/Edge/i), p = u(/firefox/i), m = u(/safari/i) && !u(/chrome/i) && !u(/android/i), h = u(/iP(ad|od|hone)/i), g = u(/chrome/i) && u(/android/i), _ = {
85
+ capture: !1,
86
+ passive: !1
87
+ };
88
+ function v(e, t, n) {
89
+ e.addEventListener(t, n, !d && _);
90
+ }
91
+ function y(e, t, n) {
92
+ e.removeEventListener(t, n, !d && _);
93
+ }
94
+ function b(e, t) {
95
+ if (t) {
96
+ if (t[0] === ">" && (t = t.substring(1)), e) try {
97
+ if (e.matches) return e.matches(t);
98
+ if (e.msMatchesSelector) return e.msMatchesSelector(t);
99
+ if (e.webkitMatchesSelector) return e.webkitMatchesSelector(t);
100
+ } catch {
101
+ return !1;
102
+ }
103
+ return !1;
104
+ }
105
+ }
106
+ function x(e) {
107
+ return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
108
+ }
109
+ function S(e, t, n, r) {
110
+ if (e) {
111
+ n ||= document;
112
+ do {
113
+ if (t != null && (t[0] === ">" ? e.parentNode === n && b(e, t) : b(e, t)) || r && e === n) return e;
114
+ if (e === n) break;
115
+ } while (e = x(e));
116
+ }
117
+ return null;
118
+ }
119
+ var C = /\s+/g;
120
+ function w(e, t, n) {
121
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(C, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(C, " "));
122
+ }
123
+ function T(e, t, n) {
124
+ var r = e && e.style;
125
+ if (r) {
126
+ if (n === void 0) return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
127
+ !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
128
+ }
129
+ }
130
+ function E(e, t) {
131
+ var n = "";
132
+ if (typeof e == "string") n = e;
133
+ else do {
134
+ var r = T(e, "transform");
135
+ r && r !== "none" && (n = r + " " + n);
136
+ } while (!t && (e = e.parentNode));
137
+ var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
138
+ return i && new i(n);
139
+ }
140
+ function ee(e, t, n) {
141
+ if (e) {
142
+ var r = e.getElementsByTagName(t), i = 0, a = r.length;
143
+ if (n) for (; i < a; i++) n(r[i], i);
144
+ return r;
145
+ }
146
+ return [];
147
+ }
148
+ function D() {
149
+ return document.scrollingElement || document.documentElement;
150
+ }
151
+ function O(e, t, n, r, i) {
152
+ if (!(!e.getBoundingClientRect && e !== window)) {
153
+ var a, o, s, c, l, u, f;
154
+ if (e !== window && e.parentNode && e !== D() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, f = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !d)) do
155
+ if (i && i.getBoundingClientRect && (T(i, "transform") !== "none" || n && T(i, "position") !== "static")) {
156
+ var p = i.getBoundingClientRect();
157
+ o -= p.top + parseInt(T(i, "border-top-width")), s -= p.left + parseInt(T(i, "border-left-width")), c = o + a.height, l = s + a.width;
158
+ break;
159
+ }
160
+ while (i = i.parentNode);
161
+ if (r && e !== window) {
162
+ var m = E(i || e), h = m && m.a, g = m && m.d;
163
+ m && (o /= g, s /= h, f /= h, u /= g, c = o + u, l = s + f);
164
+ }
165
+ return {
166
+ top: o,
167
+ left: s,
168
+ bottom: c,
169
+ right: l,
170
+ width: f,
171
+ height: u
172
+ };
173
+ }
174
+ }
175
+ function te(e, t, n) {
176
+ for (var r = M(e, !0), i = O(e)[t]; r;) {
177
+ var a = O(r)[n], o = void 0;
178
+ if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
179
+ if (r === D()) break;
180
+ r = M(r, !1);
181
+ }
182
+ return !1;
183
+ }
184
+ function k(e, t, n, r) {
185
+ for (var i = 0, a = 0, o = e.children; a < o.length;) {
186
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && S(o[a], n.draggable, e, !1)) {
187
+ if (i === t) return o[a];
188
+ i++;
189
+ }
190
+ a++;
191
+ }
192
+ return null;
193
+ }
194
+ function ne(e, t) {
195
+ for (var n = e.lastElementChild; n && (n === Q.ghost || T(n, "display") === "none" || t && !b(n, t));) n = n.previousElementSibling;
196
+ return n || null;
197
+ }
198
+ function A(e, t) {
199
+ var n = 0;
200
+ if (!e || !e.parentNode) return -1;
201
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || b(e, t)) && n++;
202
+ return n;
203
+ }
204
+ function re(e) {
205
+ var t = 0, n = 0, r = D();
206
+ if (e) do {
207
+ var i = E(e), a = i.a, o = i.d;
208
+ t += e.scrollLeft * a, n += e.scrollTop * o;
209
+ } while (e !== r && (e = e.parentNode));
210
+ return [t, n];
211
+ }
212
+ function j(e, t) {
213
+ for (var n in e) if (e.hasOwnProperty(n)) {
214
+ for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
215
+ }
216
+ return -1;
217
+ }
218
+ function M(e, t) {
219
+ if (!e || !e.getBoundingClientRect) return D();
220
+ var n = e, r = !1;
221
+ do
222
+ if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
223
+ var i = T(n);
224
+ if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
225
+ if (!n.getBoundingClientRect || n === document.body) return D();
226
+ if (r || t) return n;
227
+ r = !0;
228
+ }
229
+ }
230
+ while (n = n.parentNode);
231
+ return D();
232
+ }
233
+ function ie(e, t) {
234
+ if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
235
+ return e;
236
+ }
237
+ function ae(e, t) {
238
+ return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
239
+ }
240
+ var N;
241
+ function P(e, t) {
242
+ return function() {
243
+ if (!N) {
244
+ var n = arguments, r = this;
245
+ n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), N = setTimeout(function() {
246
+ N = void 0;
247
+ }, t);
248
+ }
249
+ };
250
+ }
251
+ function oe() {
252
+ clearTimeout(N), N = void 0;
253
+ }
254
+ function se(e, t, n) {
255
+ e.scrollLeft += t, e.scrollTop += n;
256
+ }
257
+ function ce(e) {
258
+ var t = window.Polymer, n = window.jQuery || window.Zepto;
259
+ return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
260
+ }
261
+ function le(e, t, n) {
262
+ var r = {};
263
+ return Array.from(e.children).forEach(function(i) {
264
+ if (!(!S(i, t.draggable, e, !1) || i.animated || i === n)) {
265
+ var a = O(i);
266
+ r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
267
+ }
268
+ }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
269
+ }
270
+ var F = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
271
+ function ue() {
272
+ var e = [], t;
273
+ return {
274
+ captureAnimationState: function() {
275
+ e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
276
+ if (!(T(t, "display") === "none" || t === Q.ghost)) {
277
+ e.push({
278
+ target: t,
279
+ rect: O(t)
280
+ });
281
+ var n = r({}, e[e.length - 1].rect);
282
+ if (t.thisAnimationDuration) {
283
+ var i = E(t, !0);
284
+ i && (n.top -= i.f, n.left -= i.e);
285
+ }
286
+ t.fromRect = n;
287
+ }
288
+ });
289
+ },
290
+ addAnimationState: function(t) {
291
+ e.push(t);
292
+ },
293
+ removeAnimationState: function(t) {
294
+ e.splice(j(e, { target: t }), 1);
295
+ },
296
+ animateAll: function(n) {
297
+ var r = this;
298
+ if (!this.options.animation) {
299
+ clearTimeout(t), typeof n == "function" && n();
300
+ return;
301
+ }
302
+ var i = !1, a = 0;
303
+ e.forEach(function(e) {
304
+ var t = 0, n = e.target, o = n.fromRect, s = O(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = E(n, !0);
305
+ d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && ae(c, s) && !ae(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = fe(u, c, l, r.options)), ae(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
306
+ n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
307
+ }, t), n.thisAnimationDuration = t);
308
+ }), clearTimeout(t), i ? t = setTimeout(function() {
309
+ typeof n == "function" && n();
310
+ }, a) : typeof n == "function" && n(), e = [];
311
+ },
312
+ animate: function(e, t, n, r) {
313
+ if (r) {
314
+ T(e, "transition", ""), T(e, "transform", "");
315
+ var i = E(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
316
+ e.animatingX = !!s, e.animatingY = !!c, T(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = de(e), T(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), T(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
317
+ T(e, "transition", ""), T(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
318
+ }, r);
319
+ }
320
+ }
321
+ };
322
+ }
323
+ function de(e) {
324
+ return e.offsetWidth;
325
+ }
326
+ function fe(e, t, n, r) {
327
+ return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
328
+ }
329
+ var pe = [], me = { initializeByDefault: !0 }, he = {
330
+ mount: function(e) {
331
+ for (var t in me) me.hasOwnProperty(t) && !(t in e) && (e[t] = me[t]);
332
+ pe.forEach(function(t) {
333
+ if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
334
+ }), pe.push(e);
335
+ },
336
+ pluginEvent: function(e, t, n) {
337
+ var i = this;
338
+ this.eventCanceled = !1, n.cancel = function() {
339
+ i.eventCanceled = !0;
340
+ };
341
+ var a = e + "Global";
342
+ pe.forEach(function(i) {
343
+ t[i.pluginName] && (t[i.pluginName][a] && t[i.pluginName][a](r({ sortable: t }, n)), t.options[i.pluginName] && t[i.pluginName][e] && t[i.pluginName][e](r({ sortable: t }, n)));
344
+ });
345
+ },
346
+ initializePlugins: function(e, n, r, i) {
347
+ for (var a in pe.forEach(function(i) {
348
+ var a = i.pluginName;
349
+ if (!(!e.options[a] && !i.initializeByDefault)) {
350
+ var o = new i(e, n, e.options);
351
+ o.sortable = e, o.options = e.options, e[a] = o, t(r, o.defaults);
352
+ }
353
+ }), e.options) if (e.options.hasOwnProperty(a)) {
354
+ var o = this.modifyOption(e, a, e.options[a]);
355
+ o !== void 0 && (e.options[a] = o);
356
+ }
357
+ },
358
+ getEventProperties: function(e, n) {
359
+ var r = {};
360
+ return pe.forEach(function(i) {
361
+ typeof i.eventProperties == "function" && t(r, i.eventProperties.call(n[i.pluginName], e));
362
+ }), r;
363
+ },
364
+ modifyOption: function(e, t, n) {
365
+ var r;
366
+ return pe.forEach(function(i) {
367
+ e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
368
+ }), r;
369
+ }
370
+ };
371
+ function ge(e) {
372
+ var t = e.sortable, n = e.rootEl, i = e.name, a = e.targetEl, o = e.cloneEl, s = e.toEl, c = e.fromEl, l = e.oldIndex, u = e.newIndex, p = e.oldDraggableIndex, m = e.newDraggableIndex, h = e.originalEvent, g = e.putSortable, _ = e.extraEventProperties;
373
+ if (t ||= n && n[F], t) {
374
+ var v, y = t.options, b = "on" + i.charAt(0).toUpperCase() + i.substr(1);
375
+ window.CustomEvent && !d && !f ? v = new CustomEvent(i, {
376
+ bubbles: !0,
377
+ cancelable: !0
378
+ }) : (v = document.createEvent("Event"), v.initEvent(i, !0, !0)), v.to = s || n, v.from = c || n, v.item = a || n, v.clone = o, v.oldIndex = l, v.newIndex = u, v.oldDraggableIndex = p, v.newDraggableIndex = m, v.originalEvent = h, v.pullMode = g ? g.lastPutMode : void 0;
379
+ var x = r(r({}, _), he.getEventProperties(i, t));
380
+ for (var S in x) v[S] = x[S];
381
+ n && n.dispatchEvent(v), y[b] && y[b].call(t, v);
382
+ }
383
+ }
384
+ var _e = ["evt"], I = function(e, t) {
385
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = n.evt, o = i(n, _e);
386
+ he.pluginEvent.bind(Q)(e, t, r({
387
+ dragEl: R,
388
+ parentEl: z,
389
+ ghostEl: B,
390
+ rootEl: V,
391
+ nextEl: H,
392
+ lastDownEl: ve,
393
+ cloneEl: U,
394
+ cloneHidden: W,
395
+ dragStarted: ke,
396
+ putSortable: q,
397
+ activeSortable: Q.active,
398
+ originalEvent: a,
399
+ oldIndex: ye,
400
+ oldDraggableIndex: be,
401
+ newIndex: G,
402
+ newDraggableIndex: K,
403
+ hideGhostForTarget: qe,
404
+ unhideGhostForTarget: Je,
405
+ cloneNowHidden: function() {
406
+ W = !0;
407
+ },
408
+ cloneNowShown: function() {
409
+ W = !1;
410
+ },
411
+ dispatchSortableEvent: function(e) {
412
+ L({
413
+ sortable: t,
414
+ name: e,
415
+ originalEvent: a
416
+ });
417
+ }
418
+ }, o));
419
+ };
420
+ function L(e) {
421
+ ge(r({
422
+ putSortable: q,
423
+ cloneEl: U,
424
+ targetEl: R,
425
+ rootEl: V,
426
+ oldIndex: ye,
427
+ oldDraggableIndex: be,
428
+ newIndex: G,
429
+ newDraggableIndex: K
430
+ }, e));
431
+ }
432
+ var R, z, B, V, H, ve, U, W, ye, G, be, K, xe, q, Se = !1, Ce = !1, we = [], J, Y, Te, Ee, De, Oe, ke, Ae, je, Me = !1, Ne = !1, Pe, X, Fe = [], Ie = !1, Le = [], Re = typeof document < "u", ze = h, Be = f || d ? "cssFloat" : "float", Ve = Re && !g && !h && "draggable" in document.createElement("div"), He = function() {
433
+ if (Re) {
434
+ if (d) return !1;
435
+ var e = document.createElement("x");
436
+ return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
437
+ }
438
+ }(), Ue = function(e, t) {
439
+ var n = T(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = k(e, 0, t), a = k(e, 1, t), o = i && T(i), s = a && T(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + O(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + O(a).width;
440
+ if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
441
+ if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
442
+ if (i && o.float && o.float !== "none") {
443
+ var u = o.float === "left" ? "left" : "right";
444
+ return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
445
+ }
446
+ return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Be] === "none" || a && n[Be] === "none" && c + l > r) ? "vertical" : "horizontal";
447
+ }, We = function(e, t, n) {
448
+ var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
449
+ return r === o || i === s || r + a / 2 === o + c / 2;
450
+ }, Ge = function(e, t) {
451
+ var n;
452
+ return we.some(function(r) {
453
+ var i = r[F].options.emptyInsertThreshold;
454
+ if (!(!i || ne(r))) {
455
+ var a = O(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
456
+ if (o && s) return n = r;
457
+ }
458
+ }), n;
459
+ }, Ke = function(e) {
460
+ function t(e, n) {
461
+ return function(r, i, a, o) {
462
+ var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
463
+ if (e == null && (n || s)) return !0;
464
+ if (e == null || e === !1) return !1;
465
+ if (n && e === "clone") return e;
466
+ if (typeof e == "function") return t(e(r, i, a, o), n)(r, i, a, o);
467
+ var c = (n ? r : i).options.group.name;
468
+ return e === !0 || typeof e == "string" && e === c || e.join && e.indexOf(c) > -1;
469
+ };
470
+ }
471
+ var n = {}, r = e.group;
472
+ (!r || c(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
473
+ }, qe = function() {
474
+ !He && B && T(B, "display", "none");
475
+ }, Je = function() {
476
+ !He && B && T(B, "display", "");
477
+ };
478
+ Re && !g && document.addEventListener("click", function(e) {
479
+ if (Ce) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ce = !1, !1;
480
+ }, !0);
481
+ var Z = function(e) {
482
+ if (R) {
483
+ e = e.touches ? e.touches[0] : e;
484
+ var t = Ge(e.clientX, e.clientY);
485
+ if (t) {
486
+ var n = {};
487
+ for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
488
+ n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[F]._onDragOver(n);
489
+ }
490
+ }
491
+ }, Ye = function(e) {
492
+ R && R.parentNode[F]._isOutsideThisEl(e.target);
493
+ };
494
+ function Q(e, n) {
495
+ if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
496
+ this.el = e, this.options = n = t({}, n), e[F] = this;
497
+ var r = {
498
+ group: null,
499
+ sort: !0,
500
+ disabled: !1,
501
+ store: null,
502
+ handle: null,
503
+ draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
504
+ swapThreshold: 1,
505
+ invertSwap: !1,
506
+ invertedSwapThreshold: null,
507
+ removeCloneOnHide: !0,
508
+ direction: function() {
509
+ return Ue(e, this.options);
510
+ },
511
+ ghostClass: "sortable-ghost",
512
+ chosenClass: "sortable-chosen",
513
+ dragClass: "sortable-drag",
514
+ ignore: "a, img",
515
+ filter: null,
516
+ preventOnFilter: !0,
517
+ animation: 0,
518
+ easing: null,
519
+ setData: function(e, t) {
520
+ e.setData("Text", t.textContent);
521
+ },
522
+ dropBubble: !1,
523
+ dragoverBubble: !1,
524
+ dataIdAttr: "data-id",
525
+ delay: 0,
526
+ delayOnTouchOnly: !1,
527
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
528
+ forceFallback: !1,
529
+ fallbackClass: "sortable-fallback",
530
+ fallbackOnBody: !1,
531
+ fallbackTolerance: 0,
532
+ fallbackOffset: {
533
+ x: 0,
534
+ y: 0
535
+ },
536
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!m || h),
537
+ emptyInsertThreshold: 5
538
+ };
539
+ for (var i in he.initializePlugins(this, e, r), r) !(i in n) && (n[i] = r[i]);
540
+ for (var a in Ke(n), this) a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
541
+ this.nativeDraggable = n.forceFallback ? !1 : Ve, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? v(e, "pointerdown", this._onTapStart) : (v(e, "mousedown", this._onTapStart), v(e, "touchstart", this._onTapStart)), this.nativeDraggable && (v(e, "dragover", this), v(e, "dragenter", this)), we.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), t(this, ue());
542
+ }
543
+ Q.prototype = {
544
+ constructor: Q,
545
+ _isOutsideThisEl: function(e) {
546
+ !this.el.contains(e) && e !== this.el && (Ae = null);
547
+ },
548
+ _getDirection: function(e, t) {
549
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, R) : this.options.direction;
550
+ },
551
+ _onTapStart: function(e) {
552
+ if (e.cancelable) {
553
+ var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
554
+ if (at(n), !R && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && m && s && s.tagName.toUpperCase() === "SELECT") && (s = S(s, r.draggable, n, !1), !(s && s.animated) && ve !== s)) {
555
+ if (ye = A(s), be = A(s, r.draggable), typeof l == "function") {
556
+ if (l.call(this, e, s, this)) {
557
+ L({
558
+ sortable: t,
559
+ rootEl: c,
560
+ name: "filter",
561
+ targetEl: s,
562
+ toEl: n,
563
+ fromEl: n
564
+ }), I("filter", t, { evt: e }), i && e.preventDefault();
565
+ return;
566
+ }
567
+ } else if (l && (l = l.split(",").some(function(r) {
568
+ if (r = S(c, r.trim(), n, !1), r) return L({
569
+ sortable: t,
570
+ rootEl: r,
571
+ name: "filter",
572
+ targetEl: s,
573
+ fromEl: n,
574
+ toEl: n
575
+ }), I("filter", t, { evt: e }), !0;
576
+ }), l)) {
577
+ i && e.preventDefault();
578
+ return;
579
+ }
580
+ r.handle && !S(c, r.handle, n, !1) || this._prepareDragStart(e, o, s);
581
+ }
582
+ }
583
+ },
584
+ _prepareDragStart: function(e, t, n) {
585
+ var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
586
+ if (n && !R && n.parentNode === i) {
587
+ var c = O(n);
588
+ if (V = i, R = n, z = R.parentNode, H = R.nextSibling, ve = n, xe = a.group, Q.dragged = R, J = {
589
+ target: R,
590
+ clientX: (t || e).clientX,
591
+ clientY: (t || e).clientY
592
+ }, De = J.clientX - c.left, Oe = J.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, R.style["will-change"] = "all", s = function() {
593
+ if (I("delayEnded", r, { evt: e }), Q.eventCanceled) {
594
+ r._onDrop();
595
+ return;
596
+ }
597
+ r._disableDelayedDragEvents(), !p && r.nativeDraggable && (R.draggable = !0), r._triggerDragStart(e, t), L({
598
+ sortable: r,
599
+ name: "choose",
600
+ originalEvent: e
601
+ }), w(R, a.chosenClass, !0);
602
+ }, a.ignore.split(",").forEach(function(e) {
603
+ ee(R, e.trim(), Qe);
604
+ }), v(o, "dragover", Z), v(o, "mousemove", Z), v(o, "touchmove", Z), a.supportPointer ? (v(o, "pointerup", r._onDrop), !this.nativeDraggable && v(o, "pointercancel", r._onDrop)) : (v(o, "mouseup", r._onDrop), v(o, "touchend", r._onDrop), v(o, "touchcancel", r._onDrop)), p && this.nativeDraggable && (this.options.touchStartThreshold = 4, R.draggable = !0), I("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(f || d))) {
605
+ if (Q.eventCanceled) {
606
+ this._onDrop();
607
+ return;
608
+ }
609
+ a.supportPointer ? (v(o, "pointerup", r._disableDelayedDrag), v(o, "pointercancel", r._disableDelayedDrag)) : (v(o, "mouseup", r._disableDelayedDrag), v(o, "touchend", r._disableDelayedDrag), v(o, "touchcancel", r._disableDelayedDrag)), v(o, "mousemove", r._delayedDragTouchMoveHandler), v(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && v(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
610
+ } else s();
611
+ }
612
+ },
613
+ _delayedDragTouchMoveHandler: function(e) {
614
+ var t = e.touches ? e.touches[0] : e;
615
+ Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
616
+ },
617
+ _disableDelayedDrag: function() {
618
+ R && Qe(R), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
619
+ },
620
+ _disableDelayedDragEvents: function() {
621
+ var e = this.el.ownerDocument;
622
+ y(e, "mouseup", this._disableDelayedDrag), y(e, "touchend", this._disableDelayedDrag), y(e, "touchcancel", this._disableDelayedDrag), y(e, "pointerup", this._disableDelayedDrag), y(e, "pointercancel", this._disableDelayedDrag), y(e, "mousemove", this._delayedDragTouchMoveHandler), y(e, "touchmove", this._delayedDragTouchMoveHandler), y(e, "pointermove", this._delayedDragTouchMoveHandler);
623
+ },
624
+ _triggerDragStart: function(e, t) {
625
+ t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? v(document, "pointermove", this._onTouchMove) : t ? v(document, "touchmove", this._onTouchMove) : v(document, "mousemove", this._onTouchMove) : (v(R, "dragend", this), v(V, "dragstart", this._onDragStart));
626
+ try {
627
+ document.selection ? ot(function() {
628
+ document.selection.empty();
629
+ }) : window.getSelection().removeAllRanges();
630
+ } catch {}
631
+ },
632
+ _dragStarted: function(e, t) {
633
+ if (Se = !1, V && R) {
634
+ I("dragStarted", this, { evt: t }), this.nativeDraggable && v(document, "dragover", Ye);
635
+ var n = this.options;
636
+ !e && w(R, n.dragClass, !1), w(R, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), L({
637
+ sortable: this,
638
+ name: "start",
639
+ originalEvent: t
640
+ });
641
+ } else this._nulling();
642
+ },
643
+ _emulateDragOver: function() {
644
+ if (Y) {
645
+ this._lastX = Y.clientX, this._lastY = Y.clientY, qe();
646
+ for (var e = document.elementFromPoint(Y.clientX, Y.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Y.clientX, Y.clientY), e !== t);) t = e;
647
+ if (R.parentNode[F]._isOutsideThisEl(e), t) do {
648
+ if (t[F]) {
649
+ var n = void 0;
650
+ if (n = t[F]._onDragOver({
651
+ clientX: Y.clientX,
652
+ clientY: Y.clientY,
653
+ target: e,
654
+ rootEl: t
655
+ }), n && !this.options.dragoverBubble) break;
656
+ }
657
+ e = t;
658
+ } while (t = x(t));
659
+ Je();
660
+ }
661
+ },
662
+ _onTouchMove: function(e) {
663
+ if (J) {
664
+ var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = B && E(B, !0), o = B && a && a.a, s = B && a && a.d, c = ze && X && re(X), l = (i.clientX - J.clientX + r.x) / (o || 1) + (c ? c[0] - Fe[0] : 0) / (o || 1), u = (i.clientY - J.clientY + r.y) / (s || 1) + (c ? c[1] - Fe[1] : 0) / (s || 1);
665
+ if (!Q.active && !Se) {
666
+ if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
667
+ this._onDragStart(e, !0);
668
+ }
669
+ if (B) {
670
+ a ? (a.e += l - (Te || 0), a.f += u - (Ee || 0)) : a = {
671
+ a: 1,
672
+ b: 0,
673
+ c: 0,
674
+ d: 1,
675
+ e: l,
676
+ f: u
677
+ };
678
+ var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
679
+ T(B, "webkitTransform", d), T(B, "mozTransform", d), T(B, "msTransform", d), T(B, "transform", d), Te = l, Ee = u, Y = i;
680
+ }
681
+ e.cancelable && e.preventDefault();
682
+ }
683
+ },
684
+ _appendGhost: function() {
685
+ if (!B) {
686
+ var e = this.options.fallbackOnBody ? document.body : V, t = O(R, !0, ze, !0, e), n = this.options;
687
+ if (ze) {
688
+ for (X = e; T(X, "position") === "static" && T(X, "transform") === "none" && X !== document;) X = X.parentNode;
689
+ X !== document.body && X !== document.documentElement ? (X === document && (X = D()), t.top += X.scrollTop, t.left += X.scrollLeft) : X = D(), Fe = re(X);
690
+ }
691
+ B = R.cloneNode(!0), w(B, n.ghostClass, !1), w(B, n.fallbackClass, !0), w(B, n.dragClass, !0), T(B, "transition", ""), T(B, "transform", ""), T(B, "box-sizing", "border-box"), T(B, "margin", 0), T(B, "top", t.top), T(B, "left", t.left), T(B, "width", t.width), T(B, "height", t.height), T(B, "opacity", "0.8"), T(B, "position", ze ? "absolute" : "fixed"), T(B, "zIndex", "100000"), T(B, "pointerEvents", "none"), Q.ghost = B, e.appendChild(B), T(B, "transform-origin", De / parseInt(B.style.width) * 100 + "% " + Oe / parseInt(B.style.height) * 100 + "%");
692
+ }
693
+ },
694
+ _onDragStart: function(e, t) {
695
+ var n = this, r = e.dataTransfer, i = n.options;
696
+ if (I("dragStart", this, { evt: e }), Q.eventCanceled) {
697
+ this._onDrop();
698
+ return;
699
+ }
700
+ I("setupClone", this), Q.eventCanceled || (U = ce(R), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), w(U, this.options.chosenClass, !1), Q.clone = U), n.cloneId = ot(function() {
701
+ I("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(U, R), n._hideClone(), L({
702
+ sortable: n,
703
+ name: "clone"
704
+ }));
705
+ }), !t && w(R, i.dragClass, !0), t ? (Ce = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (y(document, "mouseup", n._onDrop), y(document, "touchend", n._onDrop), y(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, R)), v(document, "drop", n), T(R, "transform", "translateZ(0)")), Se = !0, n._dragStartId = ot(n._dragStarted.bind(n, t, e)), v(document, "selectstart", n), ke = !0, window.getSelection().removeAllRanges(), m && T(document.body, "user-select", "none");
706
+ },
707
+ _onDragOver: function(e) {
708
+ var t = this.el, n = e.target, i, a, o, s = this.options, c = s.group, l = Q.active, u = xe === c, d = s.sort, f = q || l, p, m = this, h = !1;
709
+ if (Ie) return;
710
+ function g(s, c) {
711
+ I(s, m, r({
712
+ evt: e,
713
+ isOwner: u,
714
+ axis: p ? "vertical" : "horizontal",
715
+ revert: o,
716
+ dragRect: i,
717
+ targetRect: a,
718
+ canSort: d,
719
+ fromSortable: f,
720
+ target: n,
721
+ completed: v,
722
+ onMove: function(n, r) {
723
+ return Ze(V, t, R, i, n, O(n), e, r);
724
+ },
725
+ changed: y
726
+ }, c));
727
+ }
728
+ function _() {
729
+ g("dragOverAnimationCapture"), m.captureAnimationState(), m !== f && f.captureAnimationState();
730
+ }
731
+ function v(r) {
732
+ return g("dragOverCompleted", { insertion: r }), r && (u ? l._hideClone() : l._showClone(m), m !== f && (w(R, q ? q.options.ghostClass : l.options.ghostClass, !1), w(R, s.ghostClass, !0)), q !== m && m !== Q.active ? q = m : m === Q.active && q && (q = null), f === m && (m._ignoreWhileAnimating = n), m.animateAll(function() {
733
+ g("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
734
+ }), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (n === R && !R.animated || n === t && !n.animated) && (Ae = null), !s.dragoverBubble && !e.rootEl && n !== document && (R.parentNode[F]._isOutsideThisEl(e.target), !r && Z(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), h = !0;
735
+ }
736
+ function y() {
737
+ G = A(R), K = A(R, s.draggable), L({
738
+ sortable: m,
739
+ name: "change",
740
+ toEl: t,
741
+ newIndex: G,
742
+ newDraggableIndex: K,
743
+ originalEvent: e
744
+ });
745
+ }
746
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = S(n, s.draggable, t, !0), g("dragOver"), Q.eventCanceled) return h;
747
+ if (R.contains(e.target) || n.animated && n.animatingX && n.animatingY || m._ignoreWhileAnimating === n) return v(!1);
748
+ if (Ce = !1, l && !s.disabled && (u ? d || (o = z !== V) : q === this || (this.lastPutMode = xe.checkPull(this, l, R, e)) && c.checkPut(this, l, R, e))) {
749
+ if (p = this._getDirection(e, n) === "vertical", i = O(R), g("dragOverValid"), Q.eventCanceled) return h;
750
+ if (o) return z = V, _(), this._hideClone(), g("revert"), Q.eventCanceled || (H ? V.insertBefore(R, H) : V.appendChild(R)), v(!0);
751
+ var b = ne(t, s.draggable);
752
+ if (!b || tt(e, p, this) && !b.animated) {
753
+ if (b === R) return v(!1);
754
+ if (b && t === e.target && (n = b), n && (a = O(n)), Ze(V, t, R, i, n, a, e, !!n) !== !1) return _(), b && b.nextSibling ? t.insertBefore(R, b.nextSibling) : t.appendChild(R), z = t, y(), v(!0);
755
+ } else if (b && et(e, p, this)) {
756
+ var x = k(t, 0, s, !0);
757
+ if (x === R) return v(!1);
758
+ if (n = x, a = O(n), Ze(V, t, R, i, n, a, e, !1) !== !1) return _(), t.insertBefore(R, x), z = t, y(), v(!0);
759
+ } else if (n.parentNode === t) {
760
+ a = O(n);
761
+ var C = 0, E, ee = R.parentNode !== t, D = !We(R.animated && R.toRect || i, n.animated && n.toRect || a, p), re = p ? "top" : "left", j = te(n, "top", "top") || te(R, "top", "top"), M = j ? j.scrollTop : void 0;
762
+ Ae !== n && (E = a[re], Me = !1, Ne = !D && s.invertSwap || ee), C = nt(e, n, a, p, D ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Ne, Ae === n);
763
+ var ie;
764
+ if (C !== 0) {
765
+ var ae = A(R);
766
+ do
767
+ ae -= C, ie = z.children[ae];
768
+ while (ie && (T(ie, "display") === "none" || ie === B));
769
+ }
770
+ if (C === 0 || ie === n) return v(!1);
771
+ Ae = n, je = C;
772
+ var N = n.nextElementSibling, P = !1;
773
+ P = C === 1;
774
+ var oe = Ze(V, t, R, i, n, a, e, P);
775
+ if (oe !== !1) return (oe === 1 || oe === -1) && (P = oe === 1), Ie = !0, setTimeout($e, 30), _(), P && !N ? t.appendChild(R) : n.parentNode.insertBefore(R, P ? N : n), j && se(j, 0, M - j.scrollTop), z = R.parentNode, E !== void 0 && !Ne && (Pe = Math.abs(E - O(n)[re])), y(), v(!0);
776
+ }
777
+ if (t.contains(R)) return v(!1);
778
+ }
779
+ return !1;
780
+ },
781
+ _ignoreWhileAnimating: null,
782
+ _offMoveEvents: function() {
783
+ y(document, "mousemove", this._onTouchMove), y(document, "touchmove", this._onTouchMove), y(document, "pointermove", this._onTouchMove), y(document, "dragover", Z), y(document, "mousemove", Z), y(document, "touchmove", Z);
784
+ },
785
+ _offUpEvents: function() {
786
+ var e = this.el.ownerDocument;
787
+ y(e, "mouseup", this._onDrop), y(e, "touchend", this._onDrop), y(e, "pointerup", this._onDrop), y(e, "pointercancel", this._onDrop), y(e, "touchcancel", this._onDrop), y(document, "selectstart", this);
788
+ },
789
+ _onDrop: function(e) {
790
+ var t = this.el, n = this.options;
791
+ if (G = A(R), K = A(R, n.draggable), I("drop", this, { evt: e }), z = R && R.parentNode, G = A(R), K = A(R, n.draggable), Q.eventCanceled) {
792
+ this._nulling();
793
+ return;
794
+ }
795
+ Se = !1, Ne = !1, Me = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), st(this.cloneId), st(this._dragStartId), this.nativeDraggable && (y(document, "drop", this), y(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), m && T(document.body, "user-select", ""), T(R, "transform", ""), e && (ke && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), B && B.parentNode && B.parentNode.removeChild(B), (V === z || q && q.lastPutMode !== "clone") && U && U.parentNode && U.parentNode.removeChild(U), R && (this.nativeDraggable && y(R, "dragend", this), Qe(R), R.style["will-change"] = "", ke && !Se && w(R, q ? q.options.ghostClass : this.options.ghostClass, !1), w(R, this.options.chosenClass, !1), L({
796
+ sortable: this,
797
+ name: "unchoose",
798
+ toEl: z,
799
+ newIndex: null,
800
+ newDraggableIndex: null,
801
+ originalEvent: e
802
+ }), V === z ? G !== ye && G >= 0 && (L({
803
+ sortable: this,
804
+ name: "update",
805
+ toEl: z,
806
+ originalEvent: e
807
+ }), L({
808
+ sortable: this,
809
+ name: "sort",
810
+ toEl: z,
811
+ originalEvent: e
812
+ })) : (G >= 0 && (L({
813
+ rootEl: z,
814
+ name: "add",
815
+ toEl: z,
816
+ fromEl: V,
817
+ originalEvent: e
818
+ }), L({
819
+ sortable: this,
820
+ name: "remove",
821
+ toEl: z,
822
+ originalEvent: e
823
+ }), L({
824
+ rootEl: z,
825
+ name: "sort",
826
+ toEl: z,
827
+ fromEl: V,
828
+ originalEvent: e
829
+ }), L({
830
+ sortable: this,
831
+ name: "sort",
832
+ toEl: z,
833
+ originalEvent: e
834
+ })), q && q.save()), Q.active && ((G == null || G === -1) && (G = ye, K = be), L({
835
+ sortable: this,
836
+ name: "end",
837
+ toEl: z,
838
+ originalEvent: e
839
+ }), this.save()))), this._nulling();
840
+ },
841
+ _nulling: function() {
842
+ I("nulling", this), V = R = z = B = H = U = ve = W = J = Y = ke = G = K = ye = be = Ae = je = q = xe = Q.dragged = Q.ghost = Q.clone = Q.active = null;
843
+ var e = this.el;
844
+ Le.forEach(function(t) {
845
+ e.contains(t) && (t.checked = !0);
846
+ }), Le.length = Te = Ee = 0;
847
+ },
848
+ handleEvent: function(e) {
849
+ switch (e.type) {
850
+ case "drop":
851
+ case "dragend":
852
+ this._onDrop(e);
853
+ break;
854
+ case "dragenter":
855
+ case "dragover":
856
+ R && (this._onDragOver(e), Xe(e));
857
+ break;
858
+ case "selectstart":
859
+ e.preventDefault();
860
+ break;
861
+ }
862
+ },
863
+ toArray: function() {
864
+ for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], S(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || it(t));
865
+ return e;
866
+ },
867
+ sort: function(e, t) {
868
+ var n = {}, r = this.el;
869
+ this.toArray().forEach(function(e, t) {
870
+ var i = r.children[t];
871
+ S(i, this.options.draggable, r, !1) && (n[e] = i);
872
+ }, this), t && this.captureAnimationState(), e.forEach(function(e) {
873
+ n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
874
+ }), t && this.animateAll();
875
+ },
876
+ save: function() {
877
+ var e = this.options.store;
878
+ e && e.set && e.set(this);
879
+ },
880
+ closest: function(e, t) {
881
+ return S(e, t || this.options.draggable, this.el, !1);
882
+ },
883
+ option: function(e, t) {
884
+ var n = this.options;
885
+ if (t === void 0) return n[e];
886
+ var r = he.modifyOption(this, e, t);
887
+ r === void 0 ? n[e] = t : n[e] = r, e === "group" && Ke(n);
888
+ },
889
+ destroy: function() {
890
+ I("destroy", this);
891
+ var e = this.el;
892
+ e[F] = null, y(e, "mousedown", this._onTapStart), y(e, "touchstart", this._onTapStart), y(e, "pointerdown", this._onTapStart), this.nativeDraggable && (y(e, "dragover", this), y(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
893
+ e.removeAttribute("draggable");
894
+ }), this._onDrop(), this._disableDelayedDragEvents(), we.splice(we.indexOf(this.el), 1), this.el = e = null;
895
+ },
896
+ _hideClone: function() {
897
+ if (!W) {
898
+ if (I("hideClone", this), Q.eventCanceled) return;
899
+ T(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), W = !0;
900
+ }
901
+ },
902
+ _showClone: function(e) {
903
+ if (e.lastPutMode !== "clone") {
904
+ this._hideClone();
905
+ return;
906
+ }
907
+ if (W) {
908
+ if (I("showClone", this), Q.eventCanceled) return;
909
+ R.parentNode == V && !this.options.group.revertClone ? V.insertBefore(U, R) : H ? V.insertBefore(U, H) : V.appendChild(U), this.options.group.revertClone && this.animate(R, U), T(U, "display", ""), W = !1;
910
+ }
911
+ }
912
+ };
913
+ function Xe(e) {
914
+ e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
915
+ }
916
+ function Ze(e, t, n, r, i, a, o, s) {
917
+ var c, l = e[F], u = l.options.onMove, p;
918
+ return window.CustomEvent && !d && !f ? c = new CustomEvent("move", {
919
+ bubbles: !0,
920
+ cancelable: !0
921
+ }) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || O(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (p = u.call(l, c, o)), p;
922
+ }
923
+ function Qe(e) {
924
+ e.draggable = !1;
925
+ }
926
+ function $e() {
927
+ Ie = !1;
928
+ }
929
+ function et(e, t, n) {
930
+ var r = O(k(n.el, 0, n.options, !0)), i = le(n.el, n.options, B), a = 10;
931
+ return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
932
+ }
933
+ function tt(e, t, n) {
934
+ var r = O(ne(n.el, n.options.draggable)), i = le(n.el, n.options, B), a = 10;
935
+ return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
936
+ }
937
+ function nt(e, t, n, r, i, a, o, s) {
938
+ var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
939
+ if (!o) {
940
+ if (s && Pe < l * i) {
941
+ if (!Me && (je === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Me = !0), Me) f = !0;
942
+ else if (je === 1 ? c < u + Pe : c > d - Pe) return -je;
943
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return rt(t);
944
+ }
945
+ return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
946
+ }
947
+ function rt(e) {
948
+ return A(R) < A(e) ? 1 : -1;
949
+ }
950
+ function it(e) {
951
+ for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
952
+ return r.toString(36);
953
+ }
954
+ function at(e) {
955
+ Le.length = 0;
956
+ for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
957
+ var r = t[n];
958
+ r.checked && Le.push(r);
959
+ }
960
+ }
961
+ function ot(e) {
962
+ return setTimeout(e, 0);
963
+ }
964
+ function st(e) {
965
+ return clearTimeout(e);
966
+ }
967
+ Re && v(document, "touchmove", function(e) {
968
+ (Q.active || Se) && e.cancelable && e.preventDefault();
969
+ }), Q.utils = {
970
+ on: v,
971
+ off: y,
972
+ css: T,
973
+ find: ee,
974
+ is: function(e, t) {
975
+ return !!S(e, t, e, !1);
976
+ },
977
+ extend: ie,
978
+ throttle: P,
979
+ closest: S,
980
+ toggleClass: w,
981
+ clone: ce,
982
+ index: A,
983
+ nextTick: ot,
984
+ cancelNextTick: st,
985
+ detectDirection: Ue,
986
+ getChild: k,
987
+ expando: F
988
+ }, Q.get = function(e) {
989
+ return e[F];
990
+ }, Q.mount = function() {
991
+ var e = [...arguments];
992
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
993
+ if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
994
+ e.utils && (Q.utils = r(r({}, Q.utils), e.utils)), he.mount(e);
995
+ });
996
+ }, Q.create = function(e, t) {
997
+ return new Q(e, t);
998
+ }, Q.version = l;
999
+ var $ = [], ct, lt, ut = !1, dt, ft, pt, mt;
1000
+ function ht() {
1001
+ function e() {
1002
+ for (var e in this.defaults = {
1003
+ scroll: !0,
1004
+ forceAutoScrollFallback: !1,
1005
+ scrollSensitivity: 30,
1006
+ scrollSpeed: 10,
1007
+ bubbleScroll: !0
1008
+ }, this) e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1009
+ }
1010
+ return e.prototype = {
1011
+ dragStarted: function(e) {
1012
+ var t = e.originalEvent;
1013
+ this.sortable.nativeDraggable ? v(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? v(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? v(document, "touchmove", this._handleFallbackAutoScroll) : v(document, "mousemove", this._handleFallbackAutoScroll);
1014
+ },
1015
+ dragOverCompleted: function(e) {
1016
+ var t = e.originalEvent;
1017
+ !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1018
+ },
1019
+ drop: function() {
1020
+ this.sortable.nativeDraggable ? y(document, "dragover", this._handleAutoScroll) : (y(document, "pointermove", this._handleFallbackAutoScroll), y(document, "touchmove", this._handleFallbackAutoScroll), y(document, "mousemove", this._handleFallbackAutoScroll)), _t(), gt(), oe();
1021
+ },
1022
+ nulling: function() {
1023
+ pt = lt = ct = ut = mt = dt = ft = null, $.length = 0;
1024
+ },
1025
+ _handleFallbackAutoScroll: function(e) {
1026
+ this._handleAutoScroll(e, !0);
1027
+ },
1028
+ _handleAutoScroll: function(e, t) {
1029
+ var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
1030
+ if (pt = e, t || this.options.forceAutoScrollFallback || f || d || m) {
1031
+ vt(e, this.options, a, t);
1032
+ var o = M(a, !0);
1033
+ ut && (!mt || r !== dt || i !== ft) && (mt && _t(), mt = setInterval(function() {
1034
+ var a = M(document.elementFromPoint(r, i), !0);
1035
+ a !== o && (o = a, gt()), vt(e, n.options, a, t);
1036
+ }, 10), dt = r, ft = i);
1037
+ } else {
1038
+ if (!this.options.bubbleScroll || M(a, !0) === D()) {
1039
+ gt();
1040
+ return;
1041
+ }
1042
+ vt(e, this.options, M(a, !1), !1);
1043
+ }
1044
+ }
1045
+ }, t(e, {
1046
+ pluginName: "scroll",
1047
+ initializeByDefault: !0
1048
+ });
1049
+ }
1050
+ function gt() {
1051
+ $.forEach(function(e) {
1052
+ clearInterval(e.pid);
1053
+ }), $ = [];
1054
+ }
1055
+ function _t() {
1056
+ clearInterval(mt);
1057
+ }
1058
+ var vt = P(function(e, t, n, r) {
1059
+ if (t.scroll) {
1060
+ var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = D(), l = !1, u;
1061
+ lt !== n && (lt = n, gt(), ct = t.scroll, u = t.scrollFn, ct === !0 && (ct = M(n, !0)));
1062
+ var d = 0, f = ct;
1063
+ do {
1064
+ var p = f, m = O(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, E = T(p), ee = p.scrollLeft, te = p.scrollTop;
1065
+ p === c ? (x = y < C && (E.overflowX === "auto" || E.overflowX === "scroll" || E.overflowX === "visible"), S = b < w && (E.overflowY === "auto" || E.overflowY === "scroll" || E.overflowY === "visible")) : (x = y < C && (E.overflowX === "auto" || E.overflowX === "scroll"), S = b < w && (E.overflowY === "auto" || E.overflowY === "scroll"));
1066
+ var k = x && (Math.abs(v - i) <= o && ee + y < C) - (Math.abs(_ - i) <= o && !!ee), ne = S && (Math.abs(g - a) <= o && te + b < w) - (Math.abs(h - a) <= o && !!te);
1067
+ if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
1068
+ ($[d].vx != k || $[d].vy != ne || $[d].el !== p) && ($[d].el = p, $[d].vx = k, $[d].vy = ne, clearInterval($[d].pid), (k != 0 || ne != 0) && (l = !0, $[d].pid = setInterval(function() {
1069
+ r && this.layer === 0 && Q.active._onTouchMove(pt);
1070
+ var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
1071
+ typeof u == "function" && u.call(Q.dragged.parentNode[F], n, t, e, pt, $[this.layer].el) !== "continue" || se($[this.layer].el, n, t);
1072
+ }.bind({ layer: d }), 24))), d++;
1073
+ } while (t.bubbleScroll && f !== c && (f = M(f, !1)));
1074
+ ut = l;
1075
+ }
1076
+ }, 30), yt = function(e) {
1077
+ var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1078
+ if (t) {
1079
+ var c = n || i;
1080
+ o();
1081
+ var l = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, u = document.elementFromPoint(l.clientX, l.clientY);
1082
+ s(), c && !c.el.contains(u) && (a("spill"), this.onSpill({
1083
+ dragEl: r,
1084
+ putSortable: n
1085
+ }));
1086
+ }
1087
+ };
1088
+ function bt() {}
1089
+ bt.prototype = {
1090
+ startIndex: null,
1091
+ dragStart: function(e) {
1092
+ this.startIndex = e.oldDraggableIndex;
1093
+ },
1094
+ onSpill: function(e) {
1095
+ var t = e.dragEl, n = e.putSortable;
1096
+ this.sortable.captureAnimationState(), n && n.captureAnimationState();
1097
+ var r = k(this.sortable.el, this.startIndex, this.options);
1098
+ r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
1099
+ },
1100
+ drop: yt
1101
+ }, t(bt, { pluginName: "revertOnSpill" });
1102
+ function xt() {}
1103
+ xt.prototype = {
1104
+ onSpill: function(e) {
1105
+ var t = e.dragEl, n = e.putSortable || this.sortable;
1106
+ n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
1107
+ },
1108
+ drop: yt
1109
+ }, t(xt, { pluginName: "removeOnSpill" }), Q.mount(new ht()), Q.mount(xt, bt);
1110
+ //#endregion
1111
+ export { Q as default };