@orangelogic/design-system 4.38.0 → 4.40.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 (172) hide show
  1. package/library/chunks/{alert.D8Gwfkvy.js → alert.C7jo45Pq.js} +2 -2
  2. package/library/chunks/{array-line-clamp.DSzPRb_y.js → array-line-clamp.BWWMLJhi.js} +2 -2
  3. package/library/chunks/asset-link-format.COPyGdND.js +22 -0
  4. package/library/chunks/{asset-link-format.vbmd2KkO.js → asset-link-format.P8WKO488.js} +1124 -578
  5. package/library/chunks/{audio.RwF9cR3b.js → audio.C8rPv9iZ.js} +2 -2
  6. package/library/chunks/{bicolor-picker.CoEkuFFa.js → bicolor-picker.Dbag6AHo.js} +1 -1
  7. package/library/chunks/{block-width.Bpxcj778.js → block-width.C5qELJEx.js} +394 -389
  8. package/library/chunks/{border-input-group.B7tkimlE.js → border-input-group.B12EFZFD.js} +3 -3
  9. package/library/chunks/{breadcrumb.C_NpOjQB.js → breadcrumb.BLCAOe89.js} +1 -1
  10. package/library/chunks/{button.BlhGCsjP.js → button.DnOMjl_G.js} +2 -2
  11. package/library/chunks/{color-picker.Cs91unvg.js → color-picker.Dz6vVcZS.js} +10 -10
  12. package/library/chunks/{color-swatch-group.BF_AFUh6.js → color-swatch-group.CZx1bZyC.js} +22 -22
  13. package/library/chunks/{color-swatch.By2bJtpB.js → color-swatch.C3Elv0dG.js} +3 -3
  14. package/library/chunks/{config-manager.CfFtxFHj.js → config-manager.Dsb1DCbi.js} +28 -28
  15. package/library/chunks/{configs-controller.DSc6DiFO.js → configs-controller.Cm21QV6C.js} +425 -416
  16. package/library/chunks/{confirm-popover.CNgNi7H6.js → confirm-popover.CahmeTbf.js} +4 -4
  17. package/library/chunks/{copy-button.D9kDKwlR.js → copy-button.D2ZwXadV.js} +2 -2
  18. package/library/chunks/{corner-position-input-group.Cc0hzrPR.js → corner-position-input-group.BV8b7GsS.js} +4 -4
  19. package/library/chunks/{cropper.D4ymxgab.js → cropper.BRsN8h2t.js} +1 -1
  20. package/library/chunks/{date-calendar.Dc3XKO0t.js → date-calendar.BpfgvrtE.js} +1 -1
  21. package/library/chunks/{details.BacO3ROq.js → details.BGlfx87d.js} +1 -1
  22. package/library/chunks/{dialog.Ci7Q_ZOR.js → dialog.BfGASgvs.js} +3 -3
  23. package/library/chunks/{document-viewer.CdA65_RB.js → document-viewer.BtB-RTvP.js} +14 -14
  24. package/library/chunks/{dot-pagination.DDt0UoT8.js → dot-pagination.BUZhiikk.js} +2 -2
  25. package/library/chunks/{drawer.BeMBXsqi.js → drawer.BEXLFfil.js} +2 -2
  26. package/library/chunks/{dropdown.DFLP9K18.js → dropdown.CnT7uTzf.js} +4 -4
  27. package/library/chunks/{dynamic-select.wu648W9-.js → dynamic-select.BeqPRh6t.js} +5 -5
  28. package/library/chunks/{e-chart.fGTLKIDX.js → e-chart.BkqfNGfV.js} +2 -2
  29. package/library/chunks/{element-clamp.B509oA2s.js → element-clamp.CwFlUOET.js} +2 -2
  30. package/library/chunks/{file-on-demand.C17w6fng.js → file-on-demand.BEAjdrt_.js} +16 -16
  31. package/library/chunks/{folder-select.CQllI-Id.js → folder-select.B02Mdr8b.js} +31 -34
  32. package/library/chunks/{format-time.DZCXUWmw.js → format-time.ysWqJKLC.js} +1 -1
  33. package/library/chunks/{header.BDEqW3TI.js → header.NoiopyyV.js} +2 -2
  34. package/library/chunks/{i18n.BJ2p4em8.js → i18n.CQPiI18Q.js} +3 -0
  35. package/library/chunks/{icon-button.Dd-oDRfX.js → icon-button.BAUsYiQh.js} +2 -2
  36. package/library/chunks/{iframe.DsOaw03m.js → iframe.CKoHB0lA.js} +1 -1
  37. package/library/chunks/{image-comparer.FB0ZzA0d.js → image-comparer.WUKRGHqI.js} +1 -1
  38. package/library/chunks/{image.Cmh2WYdP.js → image.CRrj-94o.js} +2 -2
  39. package/library/chunks/{input.Fmdh6pnf.js → input.D1UkXp3F.js} +1 -1
  40. package/library/chunks/{line-clamp.CgiUerew.js → line-clamp.B7QEzpUF.js} +2 -2
  41. package/library/chunks/{markdown.DMexA2xN.js → markdown.CrAalbNm.js} +2 -2
  42. package/library/chunks/{masonry.DqU7fvCr.js → masonry.B5kwpjVE.js} +4 -4
  43. package/library/chunks/{menu-item.Du9N-cKj.js → menu-item.BgoL4QFj.js} +3 -3
  44. package/library/chunks/{menu.gmy0sy3a.js → menu.DJBOpi__.js} +2 -2
  45. package/library/chunks/{option._7i4rjM5.js → option.C97GEvQ6.js} +1 -1
  46. package/library/chunks/{padding-input-group.E8trRZI5.js → padding-input-group.CGDq3Cct.js} +1 -1
  47. package/library/chunks/{pagination.C0YML9vO.js → pagination.GiwV5ZHF.js} +7 -7
  48. package/library/chunks/{popup.uU7UtxmR.js → popup.C2ySgZ9I.js} +1 -1
  49. package/library/chunks/{position-picker.DwDC9gDl.js → position-picker.DzRyAx7a.js} +1 -1
  50. package/library/chunks/{progress-bar.BJfkoZ6G.js → progress-bar.BfHPsueW.js} +1 -1
  51. package/library/chunks/{progress-ring.BSfnNF9M.js → progress-ring.Cn08Dbar.js} +1 -1
  52. package/library/chunks/{radio-card.DOnTPgND.js → radio-card.BPumEe9b.js} +1 -1
  53. package/library/chunks/{range.blqKtzMI.js → range.E1wPWa7j.js} +2 -2
  54. package/library/chunks/{rating.BgUId4FT.js → rating.BjGQtyCk.js} +1 -1
  55. package/library/chunks/{relative-time.BSSaZxeD.js → relative-time.BcpFkSZT.js} +1 -1
  56. package/library/chunks/{select.BddyhkLW.js → select.DGL9C_32.js} +6 -6
  57. package/library/chunks/{shadow-input-group.k4MBg4Pf.js → shadow-input-group.CaCaO1C9.js} +2 -2
  58. package/library/chunks/{share-option-list.8OSETkgd.js → share-option-list.u2Q0zMae.js} +2 -2
  59. package/library/chunks/{sidebar.B1MjUxBY.js → sidebar.CwAW3KaC.js} +1 -1
  60. package/library/chunks/{size-input-group.CR0wHbEO.js → size-input-group.Ciupfrja.js} +5 -5
  61. package/library/chunks/{sortable.esm.W3y3EWKS.js → sortable.esm.BVU0_hc5.js} +339 -334
  62. package/library/chunks/{spinner.o3Rjsff7.js → spinner.DsWszid8.js} +1 -1
  63. package/library/chunks/{split-panel.CVyqM2Dr.js → split-panel.KzmC5IAW.js} +1 -1
  64. package/library/chunks/{src.BBVUYHbX.js → src.HY1opSC4.js} +47 -47
  65. package/library/chunks/{src.CDbx_BKW.js → src.QIRlv8bQ.js} +53 -53
  66. package/library/chunks/{step.7RkKgH1n.js → step.CpXaHTmn.js} +3 -3
  67. package/library/chunks/{stepper-wizard.D7XpenfO.js → stepper-wizard.DZ7up5KF.js} +2 -2
  68. package/library/chunks/{stepper.BhLxi6eC.js → stepper.BAqogLwg.js} +1 -1
  69. package/library/chunks/{endpoints.jOHOmF_t.js → string-array.Dstcqyjm.js} +5 -2
  70. package/library/chunks/{tab-group.DPhCgEOG.js → tab-group.Ib4bahXC.js} +7 -7
  71. package/library/chunks/{tab.Cv9UFQjo.js → tab.BOJ3V4IE.js} +3 -3
  72. package/library/chunks/{tag.V9YP_T0h.js → tag.BySfbRok.js} +3 -3
  73. package/library/chunks/{tooltip.GjnTzFeL.js → tooltip.DWx9VYtS.js} +2 -2
  74. package/library/chunks/{tree.Cvx7TQer.js → tree.B3qvSTCo.js} +4 -4
  75. package/library/chunks/{typeface.CHo-Lj6f.js → typeface.BcNOEnVy.js} +3 -3
  76. package/library/chunks/{video.DFfkHdKQ.js → video.DVuLcN2J.js} +3 -3
  77. package/library/components/alert.js +1 -1
  78. package/library/components/array-line-clamp.js +1 -1
  79. package/library/components/asset-link-format.js +1 -1
  80. package/library/components/atoms.js +48 -48
  81. package/library/components/audio.js +1 -1
  82. package/library/components/bicolor-picker.js +1 -1
  83. package/library/components/border-input-group.js +1 -1
  84. package/library/components/breadcrumb.js +1 -1
  85. package/library/components/button.js +1 -1
  86. package/library/components/color-picker.js +1 -1
  87. package/library/components/color-swatch-group.js +1 -1
  88. package/library/components/color-swatch.js +1 -1
  89. package/library/components/confirm-popover.js +1 -1
  90. package/library/components/copy-button.js +1 -1
  91. package/library/components/corner-position-input-group.js +1 -1
  92. package/library/components/cropper.js +1 -1
  93. package/library/components/date-calendar.js +1 -1
  94. package/library/components/details.js +1 -1
  95. package/library/components/dialog.js +1 -1
  96. package/library/components/document-viewer.js +1 -1
  97. package/library/components/dot-pagination.js +1 -1
  98. package/library/components/drawer.js +1 -1
  99. package/library/components/dropdown.js +1 -1
  100. package/library/components/dynamic-select.js +1 -1
  101. package/library/components/e-chart.js +1 -1
  102. package/library/components/element-clamp.js +1 -1
  103. package/library/components/file-on-demand.js +1 -1
  104. package/library/components/folder-select.js +1 -1
  105. package/library/components/format-bytes.js +1 -1
  106. package/library/components/format-date.js +1 -1
  107. package/library/components/format-number.js +1 -1
  108. package/library/components/format-time.js +1 -1
  109. package/library/components/header.js +1 -1
  110. package/library/components/icon-button.js +1 -1
  111. package/library/components/iframe.js +1 -1
  112. package/library/components/image-comparer.js +1 -1
  113. package/library/components/image.js +1 -1
  114. package/library/components/input.js +1 -1
  115. package/library/components/line-clamp.js +1 -1
  116. package/library/components/markdown.js +1 -1
  117. package/library/components/masonry.js +1 -1
  118. package/library/components/menu-item.js +1 -1
  119. package/library/components/menu.js +1 -1
  120. package/library/components/molecules.js +17 -17
  121. package/library/components/option.js +1 -1
  122. package/library/components/organisms.js +3 -3
  123. package/library/components/padding-input-group.js +1 -1
  124. package/library/components/pagination.js +1 -1
  125. package/library/components/popup.js +1 -1
  126. package/library/components/position-picker.js +1 -1
  127. package/library/components/progress-bar.js +1 -1
  128. package/library/components/progress-ring.js +1 -1
  129. package/library/components/radio-card.js +1 -1
  130. package/library/components/range.js +1 -1
  131. package/library/components/rating.js +1 -1
  132. package/library/components/relative-time.js +1 -1
  133. package/library/components/select.js +1 -1
  134. package/library/components/shadow-input-group.js +1 -1
  135. package/library/components/share-option-list.js +1 -1
  136. package/library/components/sidebar.js +1 -1
  137. package/library/components/size-input-group.js +1 -1
  138. package/library/components/spinner.js +1 -1
  139. package/library/components/split-panel.js +1 -1
  140. package/library/components/step.js +1 -1
  141. package/library/components/stepper-wizard.js +1 -1
  142. package/library/components/stepper.js +1 -1
  143. package/library/components/tab-group.js +1 -1
  144. package/library/components/tab.js +1 -1
  145. package/library/components/tag.js +1 -1
  146. package/library/components/tooltip.js +1 -1
  147. package/library/components/tree-item.js +1 -1
  148. package/library/components/tree.js +1 -1
  149. package/library/components/typeface.js +1 -1
  150. package/library/components/types.js +98 -98
  151. package/library/components/video.js +1 -1
  152. package/library/package.json +1 -1
  153. package/library/packages/events/src/cx-asset-link-format-crop-toggle.d.ts +6 -0
  154. package/library/packages/events/src/cx-asset-link-format-reorder.d.ts +10 -0
  155. package/library/packages/events/src/events.d.ts +2 -0
  156. package/library/packages/hybrid/video-advanced/src/react/plugins/Timeline/Viewer.d.ts +1 -0
  157. package/library/packages/hybrid/video-advanced/src/react/utils/segmentTime.d.ts +2 -0
  158. package/library/packages/organisms/src/asset-link-format/asset-link-format.d.ts +176 -18
  159. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-crop/asset-link-format-crop.d.ts +10 -0
  160. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.d.ts +103 -0
  161. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-dimensions/asset-link-format-dimensions.styles.d.ts +2 -0
  162. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-quality/asset-link-format-quality.d.ts +30 -0
  163. package/library/packages/organisms/src/asset-link-format/components/asset-link-format-rotation/asset-link-format-rotation.d.ts +6 -0
  164. package/library/packages/organisms/src/asset-transformation-dialog/asset-transformation-dialog.d.ts +7 -7
  165. package/library/packages/organisms/src/content-builder/styleController.d.ts +1 -3
  166. package/library/packages/types/src/asset-link-format.d.ts +63 -0
  167. package/library/packages/types/src/content-builder.d.ts +3 -3
  168. package/library/packages/utils/src/custom-element/i18n.d.ts +3 -0
  169. package/library/react-web-component.d.ts +18 -26
  170. package/library/utils.js +2 -2
  171. package/package.json +1 -1
  172. package/library/chunks/asset-link-format.DhdgEsA0.js +0 -12
@@ -1,5 +1,10 @@
1
+ import { r as e } from "./rolldown-runtime.CEFd7nDs.js";
1
2
  //#region ../../node_modules/sortablejs/modular/sortable.esm.js
2
- function e(e, t) {
3
+ var t = /* @__PURE__ */ e({
4
+ Sortable: () => Q,
5
+ default: () => Q
6
+ });
7
+ function n(e, t) {
3
8
  var n = Object.keys(e);
4
9
  if (Object.getOwnPropertySymbols) {
5
10
  var r = Object.getOwnPropertySymbols(e);
@@ -9,26 +14,26 @@ function e(e, t) {
9
14
  }
10
15
  return n;
11
16
  }
12
- function t(t) {
13
- for (var n = 1; n < arguments.length; n++) {
14
- var i = arguments[n] == null ? {} : arguments[n];
15
- n % 2 ? e(Object(i), !0).forEach(function(e) {
16
- r(t, e, i[e]);
17
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : e(Object(i)).forEach(function(e) {
18
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e));
17
+ function r(e) {
18
+ for (var t = 1; t < arguments.length; t++) {
19
+ var r = arguments[t] == null ? {} : arguments[t];
20
+ t % 2 ? n(Object(r), !0).forEach(function(t) {
21
+ a(e, t, r[t]);
22
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach(function(t) {
23
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
19
24
  });
20
25
  }
21
- return t;
26
+ return e;
22
27
  }
23
- function n(e) {
28
+ function i(e) {
24
29
  "@babel/helpers - typeof";
25
- return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
30
+ return i = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
26
31
  return typeof e;
27
32
  } : function(e) {
28
33
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
29
- }, n(e);
34
+ }, i(e);
30
35
  }
31
- function r(e, t, n) {
36
+ function a(e, t, n) {
32
37
  return t in e ? Object.defineProperty(e, t, {
33
38
  value: n,
34
39
  enumerable: !0,
@@ -36,44 +41,44 @@ function r(e, t, n) {
36
41
  writable: !0
37
42
  }) : e[t] = n, e;
38
43
  }
39
- function i() {
40
- return i = Object.assign || function(e) {
44
+ function o() {
45
+ return o = Object.assign || function(e) {
41
46
  for (var t = 1; t < arguments.length; t++) {
42
47
  var n = arguments[t];
43
48
  for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
44
49
  }
45
50
  return e;
46
- }, i.apply(this, arguments);
51
+ }, o.apply(this, arguments);
47
52
  }
48
- function a(e, t) {
53
+ function s(e, t) {
49
54
  if (e == null) return {};
50
55
  for (var n = {}, r = Object.keys(e), i, a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
51
56
  return n;
52
57
  }
53
- function o(e, t) {
58
+ function c(e, t) {
54
59
  if (e == null) return {};
55
- var n = a(e, t), r, i;
60
+ var n = s(e, t), r, i;
56
61
  if (Object.getOwnPropertySymbols) {
57
- var o = Object.getOwnPropertySymbols(e);
58
- for (i = 0; i < o.length; i++) r = o[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
62
+ var a = Object.getOwnPropertySymbols(e);
63
+ for (i = 0; i < a.length; i++) r = a[i], !(t.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (n[r] = e[r]);
59
64
  }
60
65
  return n;
61
66
  }
62
- var s = "1.15.6";
63
- function c(e) {
67
+ var l = "1.15.6";
68
+ function u(e) {
64
69
  if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
65
70
  }
66
- var l = c(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), u = c(/Edge/i), d = c(/firefox/i), f = c(/safari/i) && !c(/chrome/i) && !c(/android/i), p = c(/iP(ad|od|hone)/i), m = c(/chrome/i) && c(/android/i), h = {
71
+ 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), _ = {
67
72
  capture: !1,
68
73
  passive: !1
69
74
  };
70
- function g(e, t, n) {
71
- e.addEventListener(t, n, !l && h);
75
+ function v(e, t, n) {
76
+ e.addEventListener(t, n, !d && _);
72
77
  }
73
- function _(e, t, n) {
74
- e.removeEventListener(t, n, !l && h);
78
+ function y(e, t, n) {
79
+ e.removeEventListener(t, n, !d && _);
75
80
  }
76
- function v(e, t) {
81
+ function b(e, t) {
77
82
  if (t) {
78
83
  if (t[0] === ">" && (t = t.substring(1)), e) try {
79
84
  if (e.matches) return e.matches(t);
@@ -85,41 +90,41 @@ function v(e, t) {
85
90
  return !1;
86
91
  }
87
92
  }
88
- function y(e) {
93
+ function x(e) {
89
94
  return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
90
95
  }
91
- function b(e, t, n, r) {
96
+ function S(e, t, n, r) {
92
97
  if (e) {
93
98
  n ||= document;
94
99
  do {
95
- if (t != null && (t[0] === ">" ? e.parentNode === n && v(e, t) : v(e, t)) || r && e === n) return e;
100
+ if (t != null && (t[0] === ">" ? e.parentNode === n && b(e, t) : b(e, t)) || r && e === n) return e;
96
101
  if (e === n) break;
97
- } while (e = y(e));
102
+ } while (e = x(e));
98
103
  }
99
104
  return null;
100
105
  }
101
- var x = /\s+/g;
102
- function S(e, t, n) {
103
- e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(x, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(x, " "));
106
+ var C = /\s+/g;
107
+ function w(e, t, n) {
108
+ e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(C, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(C, " "));
104
109
  }
105
- function C(e, t, n) {
110
+ function T(e, t, n) {
106
111
  var r = e && e.style;
107
112
  if (r) {
108
113
  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];
109
114
  !(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
110
115
  }
111
116
  }
112
- function w(e, t) {
117
+ function E(e, t) {
113
118
  var n = "";
114
119
  if (typeof e == "string") n = e;
115
120
  else do {
116
- var r = C(e, "transform");
121
+ var r = T(e, "transform");
117
122
  r && r !== "none" && (n = r + " " + n);
118
123
  } while (!t && (e = e.parentNode));
119
124
  var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
120
125
  return i && new i(n);
121
126
  }
122
- function T(e, t, n) {
127
+ function ee(e, t, n) {
123
128
  if (e) {
124
129
  var r = e.getElementsByTagName(t), i = 0, a = r.length;
125
130
  if (n) for (; i < a; i++) n(r[i], i);
@@ -127,45 +132,45 @@ function T(e, t, n) {
127
132
  }
128
133
  return [];
129
134
  }
130
- function E() {
135
+ function D() {
131
136
  return document.scrollingElement || document.documentElement;
132
137
  }
133
- function D(e, t, n, r, i) {
138
+ function O(e, t, n, r, i) {
134
139
  if (e.getBoundingClientRect || e === window) {
135
- var a, o, s, c, u, d, f;
136
- if (e !== window && e.parentNode && e !== E() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, u = a.right, d = a.height, f = a.width) : (o = 0, s = 0, c = window.innerHeight, u = window.innerWidth, d = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !l)) do
137
- if (i && i.getBoundingClientRect && (C(i, "transform") !== "none" || n && C(i, "position") !== "static")) {
140
+ var a, o, s, c, l, u, f;
141
+ 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
142
+ if (i && i.getBoundingClientRect && (T(i, "transform") !== "none" || n && T(i, "position") !== "static")) {
138
143
  var p = i.getBoundingClientRect();
139
- o -= p.top + parseInt(C(i, "border-top-width")), s -= p.left + parseInt(C(i, "border-left-width")), c = o + a.height, u = s + a.width;
144
+ 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;
140
145
  break;
141
146
  }
142
147
  while (i = i.parentNode);
143
148
  if (r && e !== window) {
144
- var m = w(i || e), h = m && m.a, g = m && m.d;
145
- m && (o /= g, s /= h, f /= h, d /= g, c = o + d, u = s + f);
149
+ var m = E(i || e), h = m && m.a, g = m && m.d;
150
+ m && (o /= g, s /= h, f /= h, u /= g, c = o + u, l = s + f);
146
151
  }
147
152
  return {
148
153
  top: o,
149
154
  left: s,
150
155
  bottom: c,
151
- right: u,
156
+ right: l,
152
157
  width: f,
153
- height: d
158
+ height: u
154
159
  };
155
160
  }
156
161
  }
157
- function O(e, t, n) {
158
- for (var r = M(e, !0), i = D(e)[t]; r;) {
159
- var a = D(r)[n], o = void 0;
162
+ function te(e, t, n) {
163
+ for (var r = M(e, !0), i = O(e)[t]; r;) {
164
+ var a = O(r)[n], o = void 0;
160
165
  if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
161
- if (r === E()) break;
166
+ if (r === D()) break;
162
167
  r = M(r, !1);
163
168
  }
164
169
  return !1;
165
170
  }
166
171
  function k(e, t, n, r) {
167
172
  for (var i = 0, a = 0, o = e.children; a < o.length;) {
168
- if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && b(o[a], n.draggable, e, !1)) {
173
+ if (o[a].style.display !== "none" && o[a] !== Q.ghost && (r || o[a] !== Q.dragged) && S(o[a], n.draggable, e, !1)) {
169
174
  if (i === t) return o[a];
170
175
  i++;
171
176
  }
@@ -173,20 +178,20 @@ function k(e, t, n, r) {
173
178
  }
174
179
  return null;
175
180
  }
176
- function ee(e, t) {
177
- for (var n = e.lastElementChild; n && (n === Q.ghost || C(n, "display") === "none" || t && !v(n, t));) n = n.previousElementSibling;
181
+ function ne(e, t) {
182
+ for (var n = e.lastElementChild; n && (n === Q.ghost || T(n, "display") === "none" || t && !b(n, t));) n = n.previousElementSibling;
178
183
  return n || null;
179
184
  }
180
185
  function A(e, t) {
181
186
  var n = 0;
182
187
  if (!e || !e.parentNode) return -1;
183
- for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || v(e, t)) && n++;
188
+ for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== Q.clone && (!t || b(e, t)) && n++;
184
189
  return n;
185
190
  }
186
- function te(e) {
187
- var t = 0, n = 0, r = E();
191
+ function re(e) {
192
+ var t = 0, n = 0, r = D();
188
193
  if (e) do {
189
- var i = w(e), a = i.a, o = i.d;
194
+ var i = E(e), a = i.a, o = i.d;
190
195
  t += e.scrollLeft * a, n += e.scrollTop * o;
191
196
  } while (e !== r && (e = e.parentNode));
192
197
  return [t, n];
@@ -198,29 +203,29 @@ function j(e, t) {
198
203
  return -1;
199
204
  }
200
205
  function M(e, t) {
201
- if (!e || !e.getBoundingClientRect) return E();
206
+ if (!e || !e.getBoundingClientRect) return D();
202
207
  var n = e, r = !1;
203
208
  do
204
209
  if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
205
- var i = C(n);
210
+ var i = T(n);
206
211
  if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
207
- if (!n.getBoundingClientRect || n === document.body) return E();
212
+ if (!n.getBoundingClientRect || n === document.body) return D();
208
213
  if (r || t) return n;
209
214
  r = !0;
210
215
  }
211
216
  }
212
217
  while (n = n.parentNode);
213
- return E();
218
+ return D();
214
219
  }
215
- function ne(e, t) {
220
+ function ie(e, t) {
216
221
  if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
217
222
  return e;
218
223
  }
219
- function re(e, t) {
224
+ function ae(e, t) {
220
225
  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);
221
226
  }
222
227
  var N;
223
- function ie(e, t) {
228
+ function P(e, t) {
224
229
  return function() {
225
230
  if (!N) {
226
231
  var n = arguments, r = this;
@@ -230,42 +235,42 @@ function ie(e, t) {
230
235
  }
231
236
  };
232
237
  }
233
- function ae() {
238
+ function oe() {
234
239
  clearTimeout(N), N = void 0;
235
240
  }
236
- function oe(e, t, n) {
241
+ function se(e, t, n) {
237
242
  e.scrollLeft += t, e.scrollTop += n;
238
243
  }
239
- function P(e) {
244
+ function ce(e) {
240
245
  var t = window.Polymer, n = window.jQuery || window.Zepto;
241
246
  return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
242
247
  }
243
- function se(e, t, n) {
248
+ function le(e, t, n) {
244
249
  var r = {};
245
250
  return Array.from(e.children).forEach(function(i) {
246
- if (b(i, t.draggable, e, !1) && !i.animated && i !== n) {
247
- var a = D(i);
251
+ if (S(i, t.draggable, e, !1) && !i.animated && i !== n) {
252
+ var a = O(i);
248
253
  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);
249
254
  }
250
255
  }), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
251
256
  }
252
257
  var F = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
253
- function ce() {
254
- var e = [], n;
258
+ function ue() {
259
+ var e = [], t;
255
260
  return {
256
261
  captureAnimationState: function() {
257
- e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(n) {
258
- if (C(n, "display") !== "none" && n !== Q.ghost) {
262
+ e = [], this.options.animation && [].slice.call(this.el.children).forEach(function(t) {
263
+ if (T(t, "display") !== "none" && t !== Q.ghost) {
259
264
  e.push({
260
- target: n,
261
- rect: D(n)
265
+ target: t,
266
+ rect: O(t)
262
267
  });
263
- var r = t({}, e[e.length - 1].rect);
264
- if (n.thisAnimationDuration) {
265
- var i = w(n, !0);
266
- i && (r.top -= i.f, r.left -= i.e);
268
+ var n = r({}, e[e.length - 1].rect);
269
+ if (t.thisAnimationDuration) {
270
+ var i = E(t, !0);
271
+ i && (n.top -= i.f, n.left -= i.e);
267
272
  }
268
- n.fromRect = r;
273
+ t.fromRect = n;
269
274
  }
270
275
  });
271
276
  },
@@ -275,115 +280,115 @@ function ce() {
275
280
  removeAnimationState: function(t) {
276
281
  e.splice(j(e, { target: t }), 1);
277
282
  },
278
- animateAll: function(t) {
283
+ animateAll: function(n) {
279
284
  var r = this;
280
285
  if (!this.options.animation) {
281
- clearTimeout(n), typeof t == "function" && t();
286
+ clearTimeout(t), typeof n == "function" && n();
282
287
  return;
283
288
  }
284
289
  var i = !1, a = 0;
285
290
  e.forEach(function(e) {
286
- var t = 0, n = e.target, o = n.fromRect, s = D(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = w(n, !0);
287
- d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && re(c, s) && !re(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = ue(u, c, l, r.options)), re(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() {
291
+ 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);
292
+ 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() {
288
293
  n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
289
294
  }, t), n.thisAnimationDuration = t);
290
- }), clearTimeout(n), i ? n = setTimeout(function() {
291
- typeof t == "function" && t();
292
- }, a) : typeof t == "function" && t(), e = [];
295
+ }), clearTimeout(t), i ? t = setTimeout(function() {
296
+ typeof n == "function" && n();
297
+ }, a) : typeof n == "function" && n(), e = [];
293
298
  },
294
299
  animate: function(e, t, n, r) {
295
300
  if (r) {
296
- C(e, "transition", ""), C(e, "transform", "");
297
- var i = w(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
298
- e.animatingX = !!s, e.animatingY = !!c, C(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = le(e), C(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), C(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
299
- C(e, "transition", ""), C(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
301
+ T(e, "transition", ""), T(e, "transform", "");
302
+ 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);
303
+ 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() {
304
+ T(e, "transition", ""), T(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
300
305
  }, r);
301
306
  }
302
307
  }
303
308
  };
304
309
  }
305
- function le(e) {
310
+ function de(e) {
306
311
  return e.offsetWidth;
307
312
  }
308
- function ue(e, t, n, r) {
313
+ function fe(e, t, n, r) {
309
314
  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;
310
315
  }
311
- var de = [], fe = { initializeByDefault: !0 }, pe = {
316
+ var pe = [], me = { initializeByDefault: !0 }, he = {
312
317
  mount: function(e) {
313
- for (var t in fe) fe.hasOwnProperty(t) && !(t in e) && (e[t] = fe[t]);
314
- de.forEach(function(t) {
318
+ for (var t in me) me.hasOwnProperty(t) && !(t in e) && (e[t] = me[t]);
319
+ pe.forEach(function(t) {
315
320
  if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
316
- }), de.push(e);
321
+ }), pe.push(e);
317
322
  },
318
- pluginEvent: function(e, n, r) {
323
+ pluginEvent: function(e, t, n) {
319
324
  var i = this;
320
- this.eventCanceled = !1, r.cancel = function() {
325
+ this.eventCanceled = !1, n.cancel = function() {
321
326
  i.eventCanceled = !0;
322
327
  };
323
328
  var a = e + "Global";
324
- de.forEach(function(i) {
325
- n[i.pluginName] && (n[i.pluginName][a] && n[i.pluginName][a](t({ sortable: n }, r)), n.options[i.pluginName] && n[i.pluginName][e] && n[i.pluginName][e](t({ sortable: n }, r)));
329
+ pe.forEach(function(i) {
330
+ 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)));
326
331
  });
327
332
  },
328
333
  initializePlugins: function(e, t, n, r) {
329
- for (var a in de.forEach(function(r) {
330
- var a = r.pluginName;
331
- if (e.options[a] || r.initializeByDefault) {
332
- var o = new r(e, t, e.options);
333
- o.sortable = e, o.options = e.options, e[a] = o, i(n, o.defaults);
334
+ for (var i in pe.forEach(function(r) {
335
+ var i = r.pluginName;
336
+ if (e.options[i] || r.initializeByDefault) {
337
+ var a = new r(e, t, e.options);
338
+ a.sortable = e, a.options = e.options, e[i] = a, o(n, a.defaults);
334
339
  }
335
- }), e.options) if (e.options.hasOwnProperty(a)) {
336
- var o = this.modifyOption(e, a, e.options[a]);
337
- o !== void 0 && (e.options[a] = o);
340
+ }), e.options) if (e.options.hasOwnProperty(i)) {
341
+ var a = this.modifyOption(e, i, e.options[i]);
342
+ a !== void 0 && (e.options[i] = a);
338
343
  }
339
344
  },
340
345
  getEventProperties: function(e, t) {
341
346
  var n = {};
342
- return de.forEach(function(r) {
343
- typeof r.eventProperties == "function" && i(n, r.eventProperties.call(t[r.pluginName], e));
347
+ return pe.forEach(function(r) {
348
+ typeof r.eventProperties == "function" && o(n, r.eventProperties.call(t[r.pluginName], e));
344
349
  }), n;
345
350
  },
346
351
  modifyOption: function(e, t, n) {
347
352
  var r;
348
- return de.forEach(function(i) {
353
+ return pe.forEach(function(i) {
349
354
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
350
355
  }), r;
351
356
  }
352
357
  };
353
- function me(e) {
354
- var n = e.sortable, r = e.rootEl, i = e.name, a = e.targetEl, o = e.cloneEl, s = e.toEl, c = e.fromEl, d = e.oldIndex, f = e.newIndex, p = e.oldDraggableIndex, m = e.newDraggableIndex, h = e.originalEvent, g = e.putSortable, _ = e.extraEventProperties;
355
- if (n ||= r && r[F], n) {
356
- var v, y = n.options, b = "on" + i.charAt(0).toUpperCase() + i.substr(1);
357
- window.CustomEvent && !l && !u ? v = new CustomEvent(i, {
358
+ function ge(e) {
359
+ 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;
360
+ if (t ||= n && n[F], t) {
361
+ var v, y = t.options, b = "on" + i.charAt(0).toUpperCase() + i.substr(1);
362
+ window.CustomEvent && !d && !f ? v = new CustomEvent(i, {
358
363
  bubbles: !0,
359
364
  cancelable: !0
360
- }) : (v = document.createEvent("Event"), v.initEvent(i, !0, !0)), v.to = s || r, v.from = c || r, v.item = a || r, v.clone = o, v.oldIndex = d, v.newIndex = f, v.oldDraggableIndex = p, v.newDraggableIndex = m, v.originalEvent = h, v.pullMode = g ? g.lastPutMode : void 0;
361
- var x = t(t({}, _), pe.getEventProperties(i, n));
365
+ }) : (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;
366
+ var x = r(r({}, _), he.getEventProperties(i, t));
362
367
  for (var S in x) v[S] = x[S];
363
- r && r.dispatchEvent(v), y[b] && y[b].call(n, v);
368
+ n && n.dispatchEvent(v), y[b] && y[b].call(t, v);
364
369
  }
365
370
  }
366
- var he = ["evt"], I = function(e, n) {
367
- var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = r.evt, a = o(r, he);
368
- pe.pluginEvent.bind(Q)(e, n, t({
371
+ var _e = ["evt"], I = function(e, t) {
372
+ var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = n.evt, a = c(n, _e);
373
+ he.pluginEvent.bind(Q)(e, t, r({
369
374
  dragEl: R,
370
375
  parentEl: z,
371
376
  ghostEl: B,
372
377
  rootEl: V,
373
378
  nextEl: H,
374
- lastDownEl: ge,
379
+ lastDownEl: ve,
375
380
  cloneEl: U,
376
381
  cloneHidden: W,
377
- dragStarted: De,
382
+ dragStarted: ke,
378
383
  putSortable: q,
379
384
  activeSortable: Q.active,
380
385
  originalEvent: i,
381
- oldIndex: _e,
382
- oldDraggableIndex: ve,
386
+ oldIndex: ye,
387
+ oldDraggableIndex: be,
383
388
  newIndex: G,
384
389
  newDraggableIndex: K,
385
- hideGhostForTarget: Ge,
386
- unhideGhostForTarget: Ke,
390
+ hideGhostForTarget: qe,
391
+ unhideGhostForTarget: Je,
387
392
  cloneNowHidden: function() {
388
393
  W = !0;
389
394
  },
@@ -392,7 +397,7 @@ var he = ["evt"], I = function(e, n) {
392
397
  },
393
398
  dispatchSortableEvent: function(e) {
394
399
  L({
395
- sortable: n,
400
+ sortable: t,
396
401
  name: e,
397
402
  originalEvent: i
398
403
  });
@@ -400,45 +405,45 @@ var he = ["evt"], I = function(e, n) {
400
405
  }, a));
401
406
  };
402
407
  function L(e) {
403
- me(t({
408
+ ge(r({
404
409
  putSortable: q,
405
410
  cloneEl: U,
406
411
  targetEl: R,
407
412
  rootEl: V,
408
- oldIndex: _e,
409
- oldDraggableIndex: ve,
413
+ oldIndex: ye,
414
+ oldDraggableIndex: be,
410
415
  newIndex: G,
411
416
  newDraggableIndex: K
412
417
  }, e));
413
418
  }
414
- var R, z, B, V, H, ge, U, W, _e, G, ve, K, ye, q, be = !1, xe = !1, Se = [], J, Y, Ce, we, Te, Ee, De, Oe, ke, Ae = !1, je = !1, Me, X, Ne = [], Pe = !1, Fe = [], Ie = typeof document < "u", Le = p, Re = u || l ? "cssFloat" : "float", ze = Ie && !m && !p && "draggable" in document.createElement("div"), Be = function() {
415
- if (Ie) {
416
- if (l) return !1;
419
+ 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() {
420
+ if (Re) {
421
+ if (d) return !1;
417
422
  var e = document.createElement("x");
418
423
  return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
419
424
  }
420
- }(), Ve = function(e, t) {
421
- var n = C(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 && C(i), s = a && C(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + D(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + D(a).width;
425
+ }(), Ue = function(e, t) {
426
+ 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;
422
427
  if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
423
428
  if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
424
429
  if (i && o.float && o.float !== "none") {
425
430
  var u = o.float === "left" ? "left" : "right";
426
431
  return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
427
432
  }
428
- return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Re] === "none" || a && n[Re] === "none" && c + l > r) ? "vertical" : "horizontal";
429
- }, He = function(e, t, n) {
433
+ 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";
434
+ }, We = function(e, t, n) {
430
435
  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;
431
436
  return r === o || i === s || r + a / 2 === o + c / 2;
432
- }, Ue = function(e, t) {
437
+ }, Ge = function(e, t) {
433
438
  var n;
434
- return Se.some(function(r) {
439
+ return we.some(function(r) {
435
440
  var i = r[F].options.emptyInsertThreshold;
436
- if (i && !ee(r)) {
437
- var a = D(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
441
+ if (i && !ne(r)) {
442
+ var a = O(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
438
443
  if (o && s) return n = r;
439
444
  }
440
445
  }), n;
441
- }, We = function(e) {
446
+ }, Ke = function(e) {
442
447
  function t(e, n) {
443
448
  return function(r, i, a, o) {
444
449
  var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
@@ -450,32 +455,32 @@ var R, z, B, V, H, ge, U, W, _e, G, ve, K, ye, q, be = !1, xe = !1, Se = [], J,
450
455
  return e === !0 || typeof e == "string" && e === c || e.join && e.indexOf(c) > -1;
451
456
  };
452
457
  }
453
- var r = {}, i = e.group;
454
- (!i || n(i) != "object") && (i = { name: i }), r.name = i.name, r.checkPull = t(i.pull, !0), r.checkPut = t(i.put), r.revertClone = i.revertClone, e.group = r;
455
- }, Ge = function() {
456
- !Be && B && C(B, "display", "none");
457
- }, Ke = function() {
458
- !Be && B && C(B, "display", "");
458
+ var n = {}, r = e.group;
459
+ (!r || i(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;
460
+ }, qe = function() {
461
+ !He && B && T(B, "display", "none");
462
+ }, Je = function() {
463
+ !He && B && T(B, "display", "");
459
464
  };
460
- Ie && !m && document.addEventListener("click", function(e) {
461
- if (xe) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), xe = !1, !1;
465
+ Re && !g && document.addEventListener("click", function(e) {
466
+ if (Ce) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ce = !1, !1;
462
467
  }, !0);
463
468
  var Z = function(e) {
464
469
  if (R) {
465
470
  e = e.touches ? e.touches[0] : e;
466
- var t = Ue(e.clientX, e.clientY);
471
+ var t = Ge(e.clientX, e.clientY);
467
472
  if (t) {
468
473
  var n = {};
469
474
  for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
470
475
  n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[F]._onDragOver(n);
471
476
  }
472
477
  }
473
- }, qe = function(e) {
478
+ }, Ye = function(e) {
474
479
  R && R.parentNode[F]._isOutsideThisEl(e.target);
475
480
  };
476
481
  function Q(e, t) {
477
482
  if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
478
- this.el = e, this.options = t = i({}, t), e[F] = this;
483
+ this.el = e, this.options = t = o({}, t), e[F] = this;
479
484
  var n = {
480
485
  group: null,
481
486
  sort: !0,
@@ -488,7 +493,7 @@ function Q(e, t) {
488
493
  invertedSwapThreshold: null,
489
494
  removeCloneOnHide: !0,
490
495
  direction: function() {
491
- return Ve(e, this.options);
496
+ return Ue(e, this.options);
492
497
  },
493
498
  ghostClass: "sortable-ghost",
494
499
  chosenClass: "sortable-chosen",
@@ -515,17 +520,17 @@ function Q(e, t) {
515
520
  x: 0,
516
521
  y: 0
517
522
  },
518
- supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!f || p),
523
+ supportPointer: Q.supportPointer !== !1 && "PointerEvent" in window && (!m || h),
519
524
  emptyInsertThreshold: 5
520
525
  };
521
- for (var r in pe.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
522
- for (var a in We(t), this) a.charAt(0) === "_" && typeof this[a] == "function" && (this[a] = this[a].bind(this));
523
- this.nativeDraggable = !t.forceFallback && ze, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? g(e, "pointerdown", this._onTapStart) : (g(e, "mousedown", this._onTapStart), g(e, "touchstart", this._onTapStart)), this.nativeDraggable && (g(e, "dragover", this), g(e, "dragenter", this)), Se.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), i(this, ce());
526
+ for (var r in he.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
527
+ for (var i in Ke(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
528
+ this.nativeDraggable = !t.forceFallback && Ve, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.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), t.store && t.store.get && this.sort(t.store.get(this) || []), o(this, ue());
524
529
  }
525
530
  Q.prototype = {
526
531
  constructor: Q,
527
532
  _isOutsideThisEl: function(e) {
528
- !this.el.contains(e) && e !== this.el && (Oe = null);
533
+ !this.el.contains(e) && e !== this.el && (Ae = null);
529
534
  },
530
535
  _getDirection: function(e, t) {
531
536
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, R) : this.options.direction;
@@ -533,8 +538,8 @@ Q.prototype = {
533
538
  _onTapStart: function(e) {
534
539
  if (e.cancelable) {
535
540
  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;
536
- if (rt(n), !R && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && f && s && s.tagName.toUpperCase() === "SELECT") && (s = b(s, r.draggable, n, !1), !(s && s.animated) && ge !== s)) {
537
- if (_e = A(s), ve = A(s, r.draggable), typeof l == "function") {
541
+ 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)) {
542
+ if (ye = A(s), be = A(s, r.draggable), typeof l == "function") {
538
543
  if (l.call(this, e, s, this)) {
539
544
  L({
540
545
  sortable: t,
@@ -547,7 +552,7 @@ Q.prototype = {
547
552
  return;
548
553
  }
549
554
  } else if (l && (l = l.split(",").some(function(r) {
550
- if (r = b(c, r.trim(), n, !1), r) return L({
555
+ if (r = S(c, r.trim(), n, !1), r) return L({
551
556
  sortable: t,
552
557
  rootEl: r,
553
558
  name: "filter",
@@ -559,36 +564,36 @@ Q.prototype = {
559
564
  i && e.preventDefault();
560
565
  return;
561
566
  }
562
- (!r.handle || b(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
567
+ (!r.handle || S(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
563
568
  }
564
569
  }
565
570
  },
566
571
  _prepareDragStart: function(e, t, n) {
567
572
  var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
568
573
  if (n && !R && n.parentNode === i) {
569
- var c = D(n);
570
- if (V = i, R = n, z = R.parentNode, H = R.nextSibling, ge = n, ye = a.group, Q.dragged = R, J = {
574
+ var c = O(n);
575
+ if (V = i, R = n, z = R.parentNode, H = R.nextSibling, ve = n, xe = a.group, Q.dragged = R, J = {
571
576
  target: R,
572
577
  clientX: (t || e).clientX,
573
578
  clientY: (t || e).clientY
574
- }, Te = J.clientX - c.left, Ee = J.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, R.style["will-change"] = "all", s = function() {
579
+ }, 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() {
575
580
  if (I("delayEnded", r, { evt: e }), Q.eventCanceled) {
576
581
  r._onDrop();
577
582
  return;
578
583
  }
579
- r._disableDelayedDragEvents(), !d && r.nativeDraggable && (R.draggable = !0), r._triggerDragStart(e, t), L({
584
+ r._disableDelayedDragEvents(), !p && r.nativeDraggable && (R.draggable = !0), r._triggerDragStart(e, t), L({
580
585
  sortable: r,
581
586
  name: "choose",
582
587
  originalEvent: e
583
- }), S(R, a.chosenClass, !0);
588
+ }), w(R, a.chosenClass, !0);
584
589
  }, a.ignore.split(",").forEach(function(e) {
585
- T(R, e.trim(), Xe);
586
- }), g(o, "dragover", Z), g(o, "mousemove", Z), g(o, "touchmove", Z), a.supportPointer ? (g(o, "pointerup", r._onDrop), !this.nativeDraggable && g(o, "pointercancel", r._onDrop)) : (g(o, "mouseup", r._onDrop), g(o, "touchend", r._onDrop), g(o, "touchcancel", r._onDrop)), d && this.nativeDraggable && (this.options.touchStartThreshold = 4, R.draggable = !0), I("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(u || l))) {
590
+ ee(R, e.trim(), Qe);
591
+ }), 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))) {
587
592
  if (Q.eventCanceled) {
588
593
  this._onDrop();
589
594
  return;
590
595
  }
591
- a.supportPointer ? (g(o, "pointerup", r._disableDelayedDrag), g(o, "pointercancel", r._disableDelayedDrag)) : (g(o, "mouseup", r._disableDelayedDrag), g(o, "touchend", r._disableDelayedDrag), g(o, "touchcancel", r._disableDelayedDrag)), g(o, "mousemove", r._delayedDragTouchMoveHandler), g(o, "touchmove", r._delayedDragTouchMoveHandler), a.supportPointer && g(o, "pointermove", r._delayedDragTouchMoveHandler), r._dragStartTimer = setTimeout(s, a.delay);
596
+ 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);
592
597
  } else s();
593
598
  }
594
599
  },
@@ -597,25 +602,25 @@ Q.prototype = {
597
602
  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();
598
603
  },
599
604
  _disableDelayedDrag: function() {
600
- R && Xe(R), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
605
+ R && Qe(R), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
601
606
  },
602
607
  _disableDelayedDragEvents: function() {
603
608
  var e = this.el.ownerDocument;
604
- _(e, "mouseup", this._disableDelayedDrag), _(e, "touchend", this._disableDelayedDrag), _(e, "touchcancel", this._disableDelayedDrag), _(e, "pointerup", this._disableDelayedDrag), _(e, "pointercancel", this._disableDelayedDrag), _(e, "mousemove", this._delayedDragTouchMoveHandler), _(e, "touchmove", this._delayedDragTouchMoveHandler), _(e, "pointermove", this._delayedDragTouchMoveHandler);
609
+ 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);
605
610
  },
606
611
  _triggerDragStart: function(e, t) {
607
- t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? g(document, "pointermove", this._onTouchMove) : t ? g(document, "touchmove", this._onTouchMove) : g(document, "mousemove", this._onTouchMove) : (g(R, "dragend", this), g(V, "dragstart", this._onDragStart));
612
+ 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));
608
613
  try {
609
- document.selection ? it(function() {
614
+ document.selection ? ot(function() {
610
615
  document.selection.empty();
611
616
  }) : window.getSelection().removeAllRanges();
612
617
  } catch {}
613
618
  },
614
619
  _dragStarted: function(e, t) {
615
- if (be = !1, V && R) {
616
- I("dragStarted", this, { evt: t }), this.nativeDraggable && g(document, "dragover", qe);
620
+ if (Se = !1, V && R) {
621
+ I("dragStarted", this, { evt: t }), this.nativeDraggable && v(document, "dragover", Ye);
617
622
  var n = this.options;
618
- !e && S(R, n.dragClass, !1), S(R, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), L({
623
+ !e && w(R, n.dragClass, !1), w(R, n.ghostClass, !0), Q.active = this, e && this._appendGhost(), L({
619
624
  sortable: this,
620
625
  name: "start",
621
626
  originalEvent: t
@@ -624,7 +629,7 @@ Q.prototype = {
624
629
  },
625
630
  _emulateDragOver: function() {
626
631
  if (Y) {
627
- this._lastX = Y.clientX, this._lastY = Y.clientY, Ge();
632
+ this._lastX = Y.clientX, this._lastY = Y.clientY, qe();
628
633
  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;
629
634
  if (R.parentNode[F]._isOutsideThisEl(e), t) do {
630
635
  if (t[F]) {
@@ -637,19 +642,19 @@ Q.prototype = {
637
642
  }), n && !this.options.dragoverBubble) break;
638
643
  }
639
644
  e = t;
640
- } while (t = y(t));
641
- Ke();
645
+ } while (t = x(t));
646
+ Je();
642
647
  }
643
648
  },
644
649
  _onTouchMove: function(e) {
645
650
  if (J) {
646
- var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = B && w(B, !0), o = B && a && a.a, s = B && a && a.d, c = Le && X && te(X), l = (i.clientX - J.clientX + r.x) / (o || 1) + (c ? c[0] - Ne[0] : 0) / (o || 1), u = (i.clientY - J.clientY + r.y) / (s || 1) + (c ? c[1] - Ne[1] : 0) / (s || 1);
647
- if (!Q.active && !be) {
651
+ 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);
652
+ if (!Q.active && !Se) {
648
653
  if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
649
654
  this._onDragStart(e, !0);
650
655
  }
651
656
  if (B) {
652
- a ? (a.e += l - (Ce || 0), a.f += u - (we || 0)) : a = {
657
+ a ? (a.e += l - (Te || 0), a.f += u - (Ee || 0)) : a = {
653
658
  a: 1,
654
659
  b: 0,
655
660
  c: 0,
@@ -658,19 +663,19 @@ Q.prototype = {
658
663
  f: u
659
664
  };
660
665
  var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
661
- C(B, "webkitTransform", d), C(B, "mozTransform", d), C(B, "msTransform", d), C(B, "transform", d), Ce = l, we = u, Y = i;
666
+ T(B, "webkitTransform", d), T(B, "mozTransform", d), T(B, "msTransform", d), T(B, "transform", d), Te = l, Ee = u, Y = i;
662
667
  }
663
668
  e.cancelable && e.preventDefault();
664
669
  }
665
670
  },
666
671
  _appendGhost: function() {
667
672
  if (!B) {
668
- var e = this.options.fallbackOnBody ? document.body : V, t = D(R, !0, Le, !0, e), n = this.options;
669
- if (Le) {
670
- for (X = e; C(X, "position") === "static" && C(X, "transform") === "none" && X !== document;) X = X.parentNode;
671
- X !== document.body && X !== document.documentElement ? (X === document && (X = E()), t.top += X.scrollTop, t.left += X.scrollLeft) : X = E(), Ne = te(X);
673
+ var e = this.options.fallbackOnBody ? document.body : V, t = O(R, !0, ze, !0, e), n = this.options;
674
+ if (ze) {
675
+ for (X = e; T(X, "position") === "static" && T(X, "transform") === "none" && X !== document;) X = X.parentNode;
676
+ X !== document.body && X !== document.documentElement ? (X === document && (X = D()), t.top += X.scrollTop, t.left += X.scrollLeft) : X = D(), Fe = re(X);
672
677
  }
673
- B = R.cloneNode(!0), S(B, n.ghostClass, !1), S(B, n.fallbackClass, !0), S(B, n.dragClass, !0), C(B, "transition", ""), C(B, "transform", ""), C(B, "box-sizing", "border-box"), C(B, "margin", 0), C(B, "top", t.top), C(B, "left", t.left), C(B, "width", t.width), C(B, "height", t.height), C(B, "opacity", "0.8"), C(B, "position", Le ? "absolute" : "fixed"), C(B, "zIndex", "100000"), C(B, "pointerEvents", "none"), Q.ghost = B, e.appendChild(B), C(B, "transform-origin", Te / parseInt(B.style.width) * 100 + "% " + Ee / parseInt(B.style.height) * 100 + "%");
678
+ 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 + "%");
674
679
  }
675
680
  },
676
681
  _onDragStart: function(e, t) {
@@ -679,18 +684,18 @@ Q.prototype = {
679
684
  this._onDrop();
680
685
  return;
681
686
  }
682
- I("setupClone", this), Q.eventCanceled || (U = P(R), U.removeAttribute("id"), U.draggable = !1, U.style["will-change"] = "", this._hideClone(), S(U, this.options.chosenClass, !1), Q.clone = U), n.cloneId = it(function() {
687
+ 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() {
683
688
  I("clone", n), !Q.eventCanceled && (n.options.removeCloneOnHide || V.insertBefore(U, R), n._hideClone(), L({
684
689
  sortable: n,
685
690
  name: "clone"
686
691
  }));
687
- }), !t && S(R, i.dragClass, !0), t ? (xe = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (_(document, "mouseup", n._onDrop), _(document, "touchend", n._onDrop), _(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, R)), g(document, "drop", n), C(R, "transform", "translateZ(0)")), be = !0, n._dragStartId = it(n._dragStarted.bind(n, t, e)), g(document, "selectstart", n), De = !0, window.getSelection().removeAllRanges(), f && C(document.body, "user-select", "none");
692
+ }), !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");
688
693
  },
689
694
  _onDragOver: function(e) {
690
- var n = this.el, r = e.target, i, a, o, s = this.options, c = s.group, l = Q.active, u = ye === c, d = s.sort, f = q || l, p, m = this, h = !1;
691
- if (Pe) return;
695
+ 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;
696
+ if (Ie) return;
692
697
  function g(s, c) {
693
- I(s, m, t({
698
+ I(s, m, r({
694
699
  evt: e,
695
700
  isOwner: u,
696
701
  axis: p ? "vertical" : "horizontal",
@@ -699,10 +704,10 @@ Q.prototype = {
699
704
  targetRect: a,
700
705
  canSort: d,
701
706
  fromSortable: f,
702
- target: r,
707
+ target: n,
703
708
  completed: v,
704
- onMove: function(t, r) {
705
- return Ye(V, n, R, i, t, D(t), e, r);
709
+ onMove: function(n, r) {
710
+ return Ze(V, t, R, i, n, O(n), e, r);
706
711
  },
707
712
  changed: y
708
713
  }, c));
@@ -710,63 +715,63 @@ Q.prototype = {
710
715
  function _() {
711
716
  g("dragOverAnimationCapture"), m.captureAnimationState(), m !== f && f.captureAnimationState();
712
717
  }
713
- function v(t) {
714
- return g("dragOverCompleted", { insertion: t }), t && (u ? l._hideClone() : l._showClone(m), m !== f && (S(R, q ? q.options.ghostClass : l.options.ghostClass, !1), S(R, s.ghostClass, !0)), q !== m && m !== Q.active ? q = m : m === Q.active && q && (q = null), f === m && (m._ignoreWhileAnimating = r), m.animateAll(function() {
718
+ function v(r) {
719
+ 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() {
715
720
  g("dragOverAnimationComplete"), m._ignoreWhileAnimating = null;
716
- }), m !== f && (f.animateAll(), f._ignoreWhileAnimating = null)), (r === R && !R.animated || r === n && !r.animated) && (Oe = null), !s.dragoverBubble && !e.rootEl && r !== document && (R.parentNode[F]._isOutsideThisEl(e.target), !t && Z(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), h = !0;
721
+ }), 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;
717
722
  }
718
723
  function y() {
719
724
  G = A(R), K = A(R, s.draggable), L({
720
725
  sortable: m,
721
726
  name: "change",
722
- toEl: n,
727
+ toEl: t,
723
728
  newIndex: G,
724
729
  newDraggableIndex: K,
725
730
  originalEvent: e
726
731
  });
727
732
  }
728
- if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), r = b(r, s.draggable, n, !0), g("dragOver"), Q.eventCanceled) return h;
729
- if (R.contains(e.target) || r.animated && r.animatingX && r.animatingY || m._ignoreWhileAnimating === r) return v(!1);
730
- if (xe = !1, l && !s.disabled && (u ? d || (o = z !== V) : q === this || (this.lastPutMode = ye.checkPull(this, l, R, e)) && c.checkPut(this, l, R, e))) {
731
- if (p = this._getDirection(e, r) === "vertical", i = D(R), g("dragOverValid"), Q.eventCanceled) return h;
733
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = S(n, s.draggable, t, !0), g("dragOver"), Q.eventCanceled) return h;
734
+ if (R.contains(e.target) || n.animated && n.animatingX && n.animatingY || m._ignoreWhileAnimating === n) return v(!1);
735
+ 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))) {
736
+ if (p = this._getDirection(e, n) === "vertical", i = O(R), g("dragOverValid"), Q.eventCanceled) return h;
732
737
  if (o) return z = V, _(), this._hideClone(), g("revert"), Q.eventCanceled || (H ? V.insertBefore(R, H) : V.appendChild(R)), v(!0);
733
- var x = ee(n, s.draggable);
734
- if (!x || $e(e, p, this) && !x.animated) {
738
+ var b = ne(t, s.draggable);
739
+ if (!b || tt(e, p, this) && !b.animated) {
740
+ if (b === R) return v(!1);
741
+ 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);
742
+ } else if (b && et(e, p, this)) {
743
+ var x = k(t, 0, s, !0);
735
744
  if (x === R) return v(!1);
736
- if (x && n === e.target && (r = x), r && (a = D(r)), Ye(V, n, R, i, r, a, e, !!r) !== !1) return _(), x && x.nextSibling ? n.insertBefore(R, x.nextSibling) : n.appendChild(R), z = n, y(), v(!0);
737
- } else if (x && Qe(e, p, this)) {
738
- var w = k(n, 0, s, !0);
739
- if (w === R) return v(!1);
740
- if (r = w, a = D(r), Ye(V, n, R, i, r, a, e, !1) !== !1) return _(), n.insertBefore(R, w), z = n, y(), v(!0);
741
- } else if (r.parentNode === n) {
742
- a = D(r);
743
- var T = 0, E, te = R.parentNode !== n, j = !He(R.animated && R.toRect || i, r.animated && r.toRect || a, p), M = p ? "top" : "left", ne = O(r, "top", "top") || O(R, "top", "top"), re = ne ? ne.scrollTop : void 0;
744
- Oe !== r && (E = a[M], Ae = !1, je = !j && s.invertSwap || te), T = et(e, r, a, p, j ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, je, Oe === r);
745
- var N;
746
- if (T !== 0) {
747
- var ie = A(R);
745
+ 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);
746
+ } else if (n.parentNode === t) {
747
+ a = O(n);
748
+ 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;
749
+ 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);
750
+ var ie;
751
+ if (C !== 0) {
752
+ var ae = A(R);
748
753
  do
749
- ie -= T, N = z.children[ie];
750
- while (N && (C(N, "display") === "none" || N === B));
754
+ ae -= C, ie = z.children[ae];
755
+ while (ie && (T(ie, "display") === "none" || ie === B));
751
756
  }
752
- if (T === 0 || N === r) return v(!1);
753
- Oe = r, ke = T;
754
- var ae = r.nextElementSibling, P = !1;
755
- P = T === 1;
756
- var se = Ye(V, n, R, i, r, a, e, P);
757
- if (se !== !1) return (se === 1 || se === -1) && (P = se === 1), Pe = !0, setTimeout(Ze, 30), _(), P && !ae ? n.appendChild(R) : r.parentNode.insertBefore(R, P ? ae : r), ne && oe(ne, 0, re - ne.scrollTop), z = R.parentNode, E !== void 0 && !je && (Me = Math.abs(E - D(r)[M])), y(), v(!0);
757
+ if (C === 0 || ie === n) return v(!1);
758
+ Ae = n, je = C;
759
+ var N = n.nextElementSibling, P = !1;
760
+ P = C === 1;
761
+ var oe = Ze(V, t, R, i, n, a, e, P);
762
+ 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);
758
763
  }
759
- if (n.contains(R)) return v(!1);
764
+ if (t.contains(R)) return v(!1);
760
765
  }
761
766
  return !1;
762
767
  },
763
768
  _ignoreWhileAnimating: null,
764
769
  _offMoveEvents: function() {
765
- _(document, "mousemove", this._onTouchMove), _(document, "touchmove", this._onTouchMove), _(document, "pointermove", this._onTouchMove), _(document, "dragover", Z), _(document, "mousemove", Z), _(document, "touchmove", Z);
770
+ 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);
766
771
  },
767
772
  _offUpEvents: function() {
768
773
  var e = this.el.ownerDocument;
769
- _(e, "mouseup", this._onDrop), _(e, "touchend", this._onDrop), _(e, "pointerup", this._onDrop), _(e, "pointercancel", this._onDrop), _(e, "touchcancel", this._onDrop), _(document, "selectstart", this);
774
+ 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);
770
775
  },
771
776
  _onDrop: function(e) {
772
777
  var t = this.el, n = this.options;
@@ -774,14 +779,14 @@ Q.prototype = {
774
779
  this._nulling();
775
780
  return;
776
781
  }
777
- be = !1, je = !1, Ae = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), at(this.cloneId), at(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), f && C(document.body, "user-select", ""), C(R, "transform", ""), e && (De && (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 && _(R, "dragend", this), Xe(R), R.style["will-change"] = "", De && !be && S(R, q ? q.options.ghostClass : this.options.ghostClass, !1), S(R, this.options.chosenClass, !1), L({
782
+ 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({
778
783
  sortable: this,
779
784
  name: "unchoose",
780
785
  toEl: z,
781
786
  newIndex: null,
782
787
  newDraggableIndex: null,
783
788
  originalEvent: e
784
- }), V === z ? G !== _e && G >= 0 && (L({
789
+ }), V === z ? G !== ye && G >= 0 && (L({
785
790
  sortable: this,
786
791
  name: "update",
787
792
  toEl: z,
@@ -813,7 +818,7 @@ Q.prototype = {
813
818
  name: "sort",
814
819
  toEl: z,
815
820
  originalEvent: e
816
- })), q && q.save()), Q.active && ((G == null || G === -1) && (G = _e, K = ve), L({
821
+ })), q && q.save()), Q.active && ((G == null || G === -1) && (G = ye, K = be), L({
817
822
  sortable: this,
818
823
  name: "end",
819
824
  toEl: z,
@@ -821,9 +826,9 @@ Q.prototype = {
821
826
  }), this.save()))), this._nulling();
822
827
  },
823
828
  _nulling: function() {
824
- I("nulling", this), V = R = z = B = H = U = ge = W = J = Y = De = G = K = _e = ve = Oe = ke = q = ye = Q.dragged = Q.ghost = Q.clone = Q.active = null, Fe.forEach(function(e) {
829
+ 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, Le.forEach(function(e) {
825
830
  e.checked = !0;
826
- }), Fe.length = Ce = we = 0;
831
+ }), Le.length = Te = Ee = 0;
827
832
  },
828
833
  handleEvent: function(e) {
829
834
  switch (e.type) {
@@ -833,20 +838,20 @@ Q.prototype = {
833
838
  break;
834
839
  case "dragenter":
835
840
  case "dragover":
836
- R && (this._onDragOver(e), Je(e));
841
+ R && (this._onDragOver(e), Xe(e));
837
842
  break;
838
843
  case "selectstart": e.preventDefault();
839
844
  }
840
845
  },
841
846
  toArray: function() {
842
- for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], b(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || nt(t));
847
+ 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));
843
848
  return e;
844
849
  },
845
850
  sort: function(e, t) {
846
851
  var n = {}, r = this.el;
847
852
  this.toArray().forEach(function(e, t) {
848
853
  var i = r.children[t];
849
- b(i, this.options.draggable, r, !1) && (n[e] = i);
854
+ S(i, this.options.draggable, r, !1) && (n[e] = i);
850
855
  }, this), t && this.captureAnimationState(), e.forEach(function(e) {
851
856
  n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
852
857
  }), t && this.animateAll();
@@ -856,25 +861,25 @@ Q.prototype = {
856
861
  e && e.set && e.set(this);
857
862
  },
858
863
  closest: function(e, t) {
859
- return b(e, t || this.options.draggable, this.el, !1);
864
+ return S(e, t || this.options.draggable, this.el, !1);
860
865
  },
861
866
  option: function(e, t) {
862
867
  var n = this.options;
863
868
  if (t === void 0) return n[e];
864
- var r = pe.modifyOption(this, e, t);
865
- n[e] = r === void 0 ? t : r, e === "group" && We(n);
869
+ var r = he.modifyOption(this, e, t);
870
+ n[e] = r === void 0 ? t : r, e === "group" && Ke(n);
866
871
  },
867
872
  destroy: function() {
868
873
  I("destroy", this);
869
874
  var e = this.el;
870
- e[F] = null, _(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart), _(e, "pointerdown", this._onTapStart), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
875
+ 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) {
871
876
  e.removeAttribute("draggable");
872
- }), this._onDrop(), this._disableDelayedDragEvents(), Se.splice(Se.indexOf(this.el), 1), this.el = e = null;
877
+ }), this._onDrop(), this._disableDelayedDragEvents(), we.splice(we.indexOf(this.el), 1), this.el = e = null;
873
878
  },
874
879
  _hideClone: function() {
875
880
  if (!W) {
876
881
  if (I("hideClone", this), Q.eventCanceled) return;
877
- C(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), W = !0;
882
+ T(U, "display", "none"), this.options.removeCloneOnHide && U.parentNode && U.parentNode.removeChild(U), W = !0;
878
883
  }
879
884
  },
880
885
  _showClone: function(e) {
@@ -884,83 +889,83 @@ Q.prototype = {
884
889
  }
885
890
  if (W) {
886
891
  if (I("showClone", this), Q.eventCanceled) return;
887
- 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), C(U, "display", ""), W = !1;
892
+ 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;
888
893
  }
889
894
  }
890
895
  };
891
- function Je(e) {
896
+ function Xe(e) {
892
897
  e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
893
898
  }
894
- function Ye(e, t, n, r, i, a, o, s) {
895
- var c, d = e[F], f = d.options.onMove, p;
896
- return window.CustomEvent && !l && !u ? c = new CustomEvent("move", {
899
+ function Ze(e, t, n, r, i, a, o, s) {
900
+ var c, l = e[F], u = l.options.onMove, p;
901
+ return window.CustomEvent && !d && !f ? c = new CustomEvent("move", {
897
902
  bubbles: !0,
898
903
  cancelable: !0
899
- }) : (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 || D(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), f && (p = f.call(d, c, o)), p;
904
+ }) : (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;
900
905
  }
901
- function Xe(e) {
906
+ function Qe(e) {
902
907
  e.draggable = !1;
903
908
  }
904
- function Ze() {
905
- Pe = !1;
909
+ function $e() {
910
+ Ie = !1;
906
911
  }
907
- function Qe(e, t, n) {
908
- var r = D(k(n.el, 0, n.options, !0)), i = se(n.el, n.options, B), a = 10;
912
+ function et(e, t, n) {
913
+ var r = O(k(n.el, 0, n.options, !0)), i = le(n.el, n.options, B), a = 10;
909
914
  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;
910
915
  }
911
- function $e(e, t, n) {
912
- var r = D(ee(n.el, n.options.draggable)), i = se(n.el, n.options, B), a = 10;
916
+ function tt(e, t, n) {
917
+ var r = O(ne(n.el, n.options.draggable)), i = le(n.el, n.options, B), a = 10;
913
918
  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;
914
919
  }
915
- function et(e, t, n, r, i, a, o, s) {
920
+ function nt(e, t, n, r, i, a, o, s) {
916
921
  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;
917
922
  if (!o) {
918
- if (s && Me < l * i) {
919
- if (!Ae && (ke === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Ae = !0), Ae) f = !0;
920
- else if (ke === 1 ? c < u + Me : c > d - Me) return -ke;
921
- } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return tt(t);
923
+ if (s && Pe < l * i) {
924
+ if (!Me && (je === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Me = !0), Me) f = !0;
925
+ else if (je === 1 ? c < u + Pe : c > d - Pe) return -je;
926
+ } else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return rt(t);
922
927
  }
923
928
  return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
924
929
  }
925
- function tt(e) {
930
+ function rt(e) {
926
931
  return A(R) < A(e) ? 1 : -1;
927
932
  }
928
- function nt(e) {
933
+ function it(e) {
929
934
  for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
930
935
  return r.toString(36);
931
936
  }
932
- function rt(e) {
933
- Fe.length = 0;
937
+ function at(e) {
938
+ Le.length = 0;
934
939
  for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
935
940
  var r = t[n];
936
- r.checked && Fe.push(r);
941
+ r.checked && Le.push(r);
937
942
  }
938
943
  }
939
- function it(e) {
944
+ function ot(e) {
940
945
  return setTimeout(e, 0);
941
946
  }
942
- function at(e) {
947
+ function st(e) {
943
948
  return clearTimeout(e);
944
949
  }
945
- Ie && g(document, "touchmove", function(e) {
946
- (Q.active || be) && e.cancelable && e.preventDefault();
950
+ Re && v(document, "touchmove", function(e) {
951
+ (Q.active || Se) && e.cancelable && e.preventDefault();
947
952
  }), Q.utils = {
948
- on: g,
949
- off: _,
950
- css: C,
951
- find: T,
953
+ on: v,
954
+ off: y,
955
+ css: T,
956
+ find: ee,
952
957
  is: function(e, t) {
953
- return !!b(e, t, e, !1);
958
+ return !!S(e, t, e, !1);
954
959
  },
955
- extend: ne,
956
- throttle: ie,
957
- closest: b,
958
- toggleClass: S,
959
- clone: P,
960
+ extend: ie,
961
+ throttle: P,
962
+ closest: S,
963
+ toggleClass: w,
964
+ clone: ce,
960
965
  index: A,
961
- nextTick: it,
962
- cancelNextTick: at,
963
- detectDirection: Ve,
966
+ nextTick: ot,
967
+ cancelNextTick: st,
968
+ detectDirection: Ue,
964
969
  getChild: k,
965
970
  expando: F
966
971
  }, Q.get = function(e) {
@@ -969,13 +974,13 @@ Ie && g(document, "touchmove", function(e) {
969
974
  var e = [...arguments];
970
975
  e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
971
976
  if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
972
- e.utils && (Q.utils = t(t({}, Q.utils), e.utils)), pe.mount(e);
977
+ e.utils && (Q.utils = r(r({}, Q.utils), e.utils)), he.mount(e);
973
978
  });
974
979
  }, Q.create = function(e, t) {
975
980
  return new Q(e, t);
976
- }, Q.version = s;
977
- var $ = [], ot, st, ct = !1, lt, ut, dt, ft;
978
- function pt() {
981
+ }, Q.version = l;
982
+ var $ = [], ct, lt, ut = !1, dt, ft, pt, mt;
983
+ function ht() {
979
984
  function e() {
980
985
  for (var e in this.defaults = {
981
986
  scroll: !0,
@@ -988,70 +993,70 @@ function pt() {
988
993
  return e.prototype = {
989
994
  dragStarted: function(e) {
990
995
  var t = e.originalEvent;
991
- this.sortable.nativeDraggable ? g(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? g(document, "pointermove", this._handleFallbackAutoScroll) : t.touches ? g(document, "touchmove", this._handleFallbackAutoScroll) : g(document, "mousemove", this._handleFallbackAutoScroll);
996
+ 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);
992
997
  },
993
998
  dragOverCompleted: function(e) {
994
999
  var t = e.originalEvent;
995
1000
  !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
996
1001
  },
997
1002
  drop: function() {
998
- this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : (_(document, "pointermove", this._handleFallbackAutoScroll), _(document, "touchmove", this._handleFallbackAutoScroll), _(document, "mousemove", this._handleFallbackAutoScroll)), ht(), mt(), ae();
1003
+ 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();
999
1004
  },
1000
1005
  nulling: function() {
1001
- dt = st = ot = ct = ft = lt = ut = null, $.length = 0;
1006
+ pt = lt = ct = ut = mt = dt = ft = null, $.length = 0;
1002
1007
  },
1003
1008
  _handleFallbackAutoScroll: function(e) {
1004
1009
  this._handleAutoScroll(e, !0);
1005
1010
  },
1006
1011
  _handleAutoScroll: function(e, t) {
1007
1012
  var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
1008
- if (dt = e, t || this.options.forceAutoScrollFallback || u || l || f) {
1009
- gt(e, this.options, a, t);
1013
+ if (pt = e, t || this.options.forceAutoScrollFallback || f || d || m) {
1014
+ vt(e, this.options, a, t);
1010
1015
  var o = M(a, !0);
1011
- ct && (!ft || r !== lt || i !== ut) && (ft && ht(), ft = setInterval(function() {
1016
+ ut && (!mt || r !== dt || i !== ft) && (mt && _t(), mt = setInterval(function() {
1012
1017
  var a = M(document.elementFromPoint(r, i), !0);
1013
- a !== o && (o = a, mt()), gt(e, n.options, a, t);
1014
- }, 10), lt = r, ut = i);
1018
+ a !== o && (o = a, gt()), vt(e, n.options, a, t);
1019
+ }, 10), dt = r, ft = i);
1015
1020
  } else {
1016
- if (!this.options.bubbleScroll || M(a, !0) === E()) {
1017
- mt();
1021
+ if (!this.options.bubbleScroll || M(a, !0) === D()) {
1022
+ gt();
1018
1023
  return;
1019
1024
  }
1020
- gt(e, this.options, M(a, !1), !1);
1025
+ vt(e, this.options, M(a, !1), !1);
1021
1026
  }
1022
1027
  }
1023
- }, i(e, {
1028
+ }, o(e, {
1024
1029
  pluginName: "scroll",
1025
1030
  initializeByDefault: !0
1026
1031
  });
1027
1032
  }
1028
- function mt() {
1033
+ function gt() {
1029
1034
  $.forEach(function(e) {
1030
1035
  clearInterval(e.pid);
1031
1036
  }), $ = [];
1032
1037
  }
1033
- function ht() {
1034
- clearInterval(ft);
1038
+ function _t() {
1039
+ clearInterval(mt);
1035
1040
  }
1036
- var gt = ie(function(e, t, n, r) {
1041
+ var vt = P(function(e, t, n, r) {
1037
1042
  if (t.scroll) {
1038
- var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = E(), l = !1, u;
1039
- st !== n && (st = n, mt(), ot = t.scroll, u = t.scrollFn, ot === !0 && (ot = M(n, !0)));
1040
- var d = 0, f = ot;
1043
+ 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;
1044
+ lt !== n && (lt = n, gt(), ct = t.scroll, u = t.scrollFn, ct === !0 && (ct = M(n, !0)));
1045
+ var d = 0, f = ct;
1041
1046
  do {
1042
- var p = f, m = D(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, w = p.scrollWidth, T = p.scrollHeight, O = C(p), k = p.scrollLeft, ee = p.scrollTop;
1043
- p === c ? (x = y < w && (O.overflowX === "auto" || O.overflowX === "scroll" || O.overflowX === "visible"), S = b < T && (O.overflowY === "auto" || O.overflowY === "scroll" || O.overflowY === "visible")) : (x = y < w && (O.overflowX === "auto" || O.overflowX === "scroll"), S = b < T && (O.overflowY === "auto" || O.overflowY === "scroll"));
1044
- var A = x && (Math.abs(v - i) <= o && k + y < w) - (Math.abs(_ - i) <= o && !!k), te = S && (Math.abs(g - a) <= o && ee + b < T) - (Math.abs(h - a) <= o && !!ee);
1045
- if (!$[d]) for (var j = 0; j <= d; j++) $[j] || ($[j] = {});
1046
- ($[d].vx != A || $[d].vy != te || $[d].el !== p) && ($[d].el = p, $[d].vx = A, $[d].vy = te, clearInterval($[d].pid), (A != 0 || te != 0) && (l = !0, $[d].pid = setInterval(function() {
1047
- r && this.layer === 0 && Q.active._onTouchMove(dt);
1047
+ 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;
1048
+ 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"));
1049
+ 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);
1050
+ if (!$[d]) for (var A = 0; A <= d; A++) $[A] || ($[A] = {});
1051
+ ($[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() {
1052
+ r && this.layer === 0 && Q.active._onTouchMove(pt);
1048
1053
  var t = $[this.layer].vy ? $[this.layer].vy * s : 0, n = $[this.layer].vx ? $[this.layer].vx * s : 0;
1049
- (typeof u != "function" || u.call(Q.dragged.parentNode[F], n, t, e, dt, $[this.layer].el) === "continue") && oe($[this.layer].el, n, t);
1054
+ (typeof u != "function" || u.call(Q.dragged.parentNode[F], n, t, e, pt, $[this.layer].el) === "continue") && se($[this.layer].el, n, t);
1050
1055
  }.bind({ layer: d }), 24))), d++;
1051
1056
  } while (t.bubbleScroll && f !== c && (f = M(f, !1)));
1052
- ct = l;
1057
+ ut = l;
1053
1058
  }
1054
- }, 30), _t = function(e) {
1059
+ }, 30), yt = function(e) {
1055
1060
  var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1056
1061
  if (t) {
1057
1062
  var c = n || i;
@@ -1063,8 +1068,8 @@ var gt = ie(function(e, t, n, r) {
1063
1068
  }));
1064
1069
  }
1065
1070
  };
1066
- function vt() {}
1067
- vt.prototype = {
1071
+ function bt() {}
1072
+ bt.prototype = {
1068
1073
  startIndex: null,
1069
1074
  dragStart: function(e) {
1070
1075
  var t = e.oldDraggableIndex;
@@ -1076,15 +1081,15 @@ vt.prototype = {
1076
1081
  var r = k(this.sortable.el, this.startIndex, this.options);
1077
1082
  r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
1078
1083
  },
1079
- drop: _t
1080
- }, i(vt, { pluginName: "revertOnSpill" });
1081
- function yt() {}
1082
- yt.prototype = {
1084
+ drop: yt
1085
+ }, o(bt, { pluginName: "revertOnSpill" });
1086
+ function xt() {}
1087
+ xt.prototype = {
1083
1088
  onSpill: function(e) {
1084
1089
  var t = e.dragEl, n = e.putSortable || this.sortable;
1085
1090
  n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
1086
1091
  },
1087
- drop: _t
1088
- }, i(yt, { pluginName: "removeOnSpill" }), Q.mount(new pt()), Q.mount(yt, vt);
1092
+ drop: yt
1093
+ }, o(xt, { pluginName: "removeOnSpill" }), Q.mount(new ht()), Q.mount(xt, bt);
1089
1094
  //#endregion
1090
- export { Q as t };
1095
+ export { t as n, Q as t };