@cling-se/widget 0.17.3 → 0.18.1

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 (232) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/AddClientCallout-CCt78VvH.js +101 -0
  3. package/dist/AnswerModal-B4LwVv2N.js +3371 -0
  4. package/dist/AttachmentItem-DnvYffKP.js +171 -0
  5. package/dist/BaseUpload-DFoV0ZLe.js +6503 -0
  6. package/dist/BlockMedia-Amo_kdHo.js +103 -0
  7. package/dist/CCallout-Gd06ds6O.js +104 -0
  8. package/dist/{CCurrencyDropdown-CXXQu8th.js → CCurrencyDropdown-B4GNmOGA.js} +91 -53
  9. package/dist/CDropdownItem-BUNVCpSR.js +749 -0
  10. package/dist/CFormField.vue_vue_type_script_setup_true_lang-Bo2J0c4G.js +292 -0
  11. package/dist/{CPhoneFormat-BtBGl8b4.js → CPhoneFormat-DmN5r9Ci.js} +13 -21
  12. package/dist/CPhoneInput-B6iyhsOG.js +207 -0
  13. package/dist/CPriceInput-BLQaNu1d.js +142 -0
  14. package/dist/CSelect-BVO9iO9L.js +98 -0
  15. package/dist/CSkeleton.vue_vue_type_script_setup_true_lang-C9loRtrk.js +51 -0
  16. package/dist/ClientAutocomplete-C__yUaxD.js +532 -0
  17. package/dist/ClientModal-B9cbuEiC.js +1188 -0
  18. package/dist/ColorPicker-G2kkxL7_.js +1408 -0
  19. package/dist/CompanyModal-por9AG4P.js +250 -0
  20. package/dist/ContentWrapper-CQtaGA2u.js +265 -0
  21. package/dist/CoverBlockSettings-BCBDouyl.js +861 -0
  22. package/dist/DocAnswer-BrKctwrY.js +33 -0
  23. package/dist/DocDetails-B_LWVHGt.js +452 -0
  24. package/dist/DocForm-D6T7NmfO.js +6772 -0
  25. package/dist/DocFormSend-COYPrhl7.js +171 -0
  26. package/dist/DocLinks-B0LjxXIk.js +36 -0
  27. package/dist/DocModalBase-DObZHuYr.js +29 -0
  28. package/dist/DocPrint-CkDq78fB.js +399 -0
  29. package/dist/DocReceipt-CYBPyePC.js +341 -0
  30. package/dist/DocSendReminder-Dau6s43e.js +181 -0
  31. package/dist/{DocTextEditor-yD9Dt_um.js → DocTextEditor-CVn6gE1i.js} +7907 -5579
  32. package/dist/DocTimeline-ChBDPOfd.js +537 -0
  33. package/dist/DocumentClient-MLXzzXLb.js +90 -0
  34. package/dist/DocumentLayout-BMHOt380.js +1434 -0
  35. package/dist/DocumentLogotype-Clj3fopX.js +162 -0
  36. package/dist/DocumentVoided-B5_MSBbC.js +33 -0
  37. package/dist/EmbedInput-CzkOa02p.js +156 -0
  38. package/dist/EmbedSettings-Cf_F3KrM.js +103 -0
  39. package/dist/ErrorCallout-CJn6NCse.js +34 -0
  40. package/dist/FilePreviewModal-Di1VnPNY.js +202 -0
  41. package/dist/Flag-C4_G5IY1.js +41 -0
  42. package/dist/HeaderSettings-DWN0TjVD.js +720 -0
  43. package/dist/ImageSelectModal-DmAJ9PrN.js +119 -0
  44. package/dist/ImageUploadWrapper-QLEhA_dI.js +1585 -0
  45. package/dist/Index-B06eCuBA.js +76 -0
  46. package/dist/Index-B8Zj0-MX.js +87 -0
  47. package/dist/{Index-C_aIQ908.js → Index-BBBXL4zh.js} +319 -214
  48. package/dist/Index-BCHLxp7B.js +21 -0
  49. package/dist/Index-BDAp1CwZ.js +363 -0
  50. package/dist/Index-BFbcjFo4.js +16 -0
  51. package/dist/{Index-CRiATiQn.js → Index-BODJXJNp.js} +10 -18
  52. package/dist/Index-BOx_9tTM.js +136 -0
  53. package/dist/Index-BgZNiD7A.js +47 -0
  54. package/dist/Index-Bt97lEsI.js +228 -0
  55. package/dist/Index-C9aBeBBk.js +70 -0
  56. package/dist/Index-CE3pWPzp.js +49 -0
  57. package/dist/Index-CMdPSsp4.js +38 -0
  58. package/dist/Index-CNhBDG2e.js +126 -0
  59. package/dist/Index-CdsOdgG2.js +28 -0
  60. package/dist/{Index-Ch9r5yhG.js → Index-CmxFh3dW.js} +9 -17
  61. package/dist/Index-CpxzwwQS.js +52 -0
  62. package/dist/Index-CxTwWRD9.js +93 -0
  63. package/dist/Index-D9WFWlE6.js +140 -0
  64. package/dist/Index-D9bulLeI.js +39 -0
  65. package/dist/{Index-RWMPRDAE.js → Index-DL_9LzoR.js} +10 -18
  66. package/dist/Index-DR-sGE3Y.js +25 -0
  67. package/dist/Index-DRoOW5Pn.js +163 -0
  68. package/dist/Index-DTn47-hP.js +74 -0
  69. package/dist/Index-DeGDlj0B.js +68 -0
  70. package/dist/Index-DhYYK4bK.js +28 -0
  71. package/dist/Index-Dssdb-0Z.js +629 -0
  72. package/dist/Index-OcBnU480.js +200 -0
  73. package/dist/Index-Qh_8JqAv.js +3477 -0
  74. package/dist/Index-W10PQb8i.js +102 -0
  75. package/dist/Index-lbWFEELM.js +4 -0
  76. package/dist/Index-qFAg7VVU.js +1098 -0
  77. package/dist/Index-rDndJKo1.js +160 -0
  78. package/dist/{Index-Dfq7egc1.js → Index-s-6Qh_NE.js} +47 -60
  79. package/dist/Index.vue_vue_type_script_lang-CriDqp1F.js +671 -0
  80. package/dist/InputToggleRow-DJarYsVL.js +99 -0
  81. package/dist/ManualPopover-BMrkEHtV.js +65 -0
  82. package/dist/MediaWrapper-BYdVpmov.js +18 -0
  83. package/dist/{NotBindingText-CC7TxUqg.js → NotBindingText-DGjJoN8-.js} +13 -17
  84. package/dist/PackageGroup-q7_oBOqw.js +1060 -0
  85. package/dist/PdfTerms-DBEClYQ5.js +34 -0
  86. package/dist/PdfViewer-C_y5sqXB.js +392 -0
  87. package/dist/PlainHtml.vue_vue_type_script_setup_true_lang-D5ZLw34T.js +17 -0
  88. package/dist/PriceHeader-BSwv3mzc.js +488 -0
  89. package/dist/{SearchApi-G2Hvp0Dd.js → SearchApi-BM6TTqxW.js} +37 -49
  90. package/dist/SendForm-DfmBbhp9.js +6689 -0
  91. package/dist/Setup-BC1feKr_.js +47 -0
  92. package/dist/{SmartList-BynTuXtB.js → SmartList-B3pgsg4S.js} +16 -24
  93. package/dist/Sortable.vue_vue_type_script_setup_true_lang-YOP-Y07m.js +1349 -0
  94. package/dist/{TermsSettings-cA5YAO77.js → TermsSettings-DEkACrRU.js} +169 -56
  95. package/dist/ThemeColorRow-qG8Dkkyj.js +105 -0
  96. package/dist/ToggleBinding-Cdtl_-1s.js +44 -0
  97. package/dist/UploadModal-1OWPRxA5.js +134 -0
  98. package/dist/VideoPlayerInput-DgFNjiKK.js +134 -0
  99. package/dist/VideoPlayerSettings-CFuA-7RC.js +78 -0
  100. package/dist/VideoSelectModal-CSv67eA8.js +217 -0
  101. package/dist/{anime.es-BrPTThYb.js → anime.es-4wvNItHq.js} +205 -201
  102. package/dist/{color-TdtKxwVa.js → color-HetJPhlA.js} +1 -2
  103. package/dist/{dom-Ds4ypDrd.js → dom-CkTGWrfu.js} +3 -6
  104. package/dist/{focusDrawerMixin-CximZA1J.js → focusDrawerMixin-r-OZchfV.js} +1 -1
  105. package/dist/{formDrawerState-CkNGdxn5.js → formDrawerState-COVczNhJ.js} +2 -2
  106. package/dist/helpers-ChwW54Ex.js +46 -0
  107. package/dist/index-BMZle8Ew.js +513 -0
  108. package/dist/index-Bf-fiKJf.js +268 -0
  109. package/dist/index-Bg4JRi5S.js +125 -0
  110. package/dist/index-C7chK2UD.js +3525 -0
  111. package/dist/index-CR52qIBO.js +149 -0
  112. package/dist/index-D1x9O_nJ.js +188 -0
  113. package/dist/index-YFcPqc9m.js +508 -0
  114. package/dist/index.es.js +2 -5
  115. package/dist/index.umd.js +303 -1486
  116. package/dist/main-DI0diChK.js +57570 -0
  117. package/dist/mapFormMixin-Cgvwie9a.js +1528 -0
  118. package/dist/omit-DpjD7Dj9.js +56 -0
  119. package/dist/{publicSenderState-CGEm9EYe.js → publicSenderState-BcjNldje.js} +4 -4
  120. package/dist/splitpanes-BypKTSRL.js +342 -0
  121. package/dist/template-Dzexob5I.js +1572 -0
  122. package/dist/tippy.esm-0UMN6kWf.js +1994 -0
  123. package/dist/useTermsModal-DzH_PDFP.js +87 -0
  124. package/dist/{utils-Dr4AcaE9.js → utils--kBYCNZD.js} +8 -11
  125. package/dist/validation-B-omH73u.js +40 -0
  126. package/dist/widget.css +1 -0
  127. package/package.json +20 -25
  128. package/dist/AddClientCallout-Br6IhwGH.js +0 -48
  129. package/dist/AnswerModal-CsWltR6j.js +0 -3879
  130. package/dist/AttachmentItem-BG7FuSCD.js +0 -85
  131. package/dist/BaseDatePicker-PSNBtUIh.js +0 -3187
  132. package/dist/BaseUpload-BfEurAAV.js +0 -1977
  133. package/dist/BlockMedia-Bo3OfNSU.js +0 -76
  134. package/dist/CCallout-CAjM8-1X.js +0 -58
  135. package/dist/CDropdownItem-CN7gSfgY.js +0 -640
  136. package/dist/CFormField-Clvcf2Jh.js +0 -240
  137. package/dist/CPhoneInput-CEHXh5jM.js +0 -138
  138. package/dist/CPriceInput-D2c07SXp.js +0 -116
  139. package/dist/CSelect-Cz2IPzxS.js +0 -91
  140. package/dist/CSkeleton-AsnvnD-m.js +0 -55
  141. package/dist/ClientAutocomplete-CZ55-DKe.js +0 -438
  142. package/dist/ClientModal-CgUhWZ5L.js +0 -666
  143. package/dist/ColorPicker-IFGHqH-u.js +0 -2879
  144. package/dist/CompanyModal-TLSBFo3U.js +0 -147
  145. package/dist/ContentWrapper-HClxKPuT.js +0 -190
  146. package/dist/CoverBlockSettings-D99hAa6e.js +0 -659
  147. package/dist/DocAnswer-CTV_Bpt7.js +0 -36
  148. package/dist/DocDetails-CQe5htXj.js +0 -263
  149. package/dist/DocForm-6Efv5_oz.js +0 -5017
  150. package/dist/DocFormSend-DbXcklxU.js +0 -146
  151. package/dist/DocLinks-BO545zbL.js +0 -38
  152. package/dist/DocModalBase-DXHNJ-6i.js +0 -28
  153. package/dist/DocPrint-Bf2U4FQN.js +0 -240
  154. package/dist/DocReceipt-CWXvC7bY.js +0 -217
  155. package/dist/DocSendReminder-CRzBM2NJ.js +0 -140
  156. package/dist/DocTimeline-DGVOk8-2.js +0 -485
  157. package/dist/DocumentClient-Das9BaJ7.js +0 -136
  158. package/dist/DocumentLayout-4q8rmTVT.js +0 -4880
  159. package/dist/DocumentLogotype-DLncJJAB.js +0 -92
  160. package/dist/DocumentVoided-CcI9lX27.js +0 -25
  161. package/dist/EmbedInput-BPdy0lGS.js +0 -117
  162. package/dist/EmbedSettings-L2iwYLQK.js +0 -74
  163. package/dist/ErrorCallout-Ds_tBT02.js +0 -27
  164. package/dist/FilePreviewModal-hxUu330p.js +0 -81
  165. package/dist/Flag-1-HcT5Dz.js +0 -46
  166. package/dist/HeaderSettings-C27fMugK.js +0 -440
  167. package/dist/ImageSelectModal-BKDIyxF4.js +0 -86
  168. package/dist/ImageUploadWrapper-BiYzUQur.js +0 -1604
  169. package/dist/Index-5BOWxcPG.js +0 -26
  170. package/dist/Index-B1Odktov.js +0 -754
  171. package/dist/Index-B3d5BjEn.js +0 -25
  172. package/dist/Index-B3sSU_4X.js +0 -54
  173. package/dist/Index-B5Dqsh3K.js +0 -150
  174. package/dist/Index-B6aO1c_w.js +0 -62
  175. package/dist/Index-BGfICxJQ.js +0 -643
  176. package/dist/Index-BHopC0hv.js +0 -24
  177. package/dist/Index-BJXcSmp_.js +0 -55
  178. package/dist/Index-BQe6QjQZ.js +0 -25
  179. package/dist/Index-BmXx_x6t.js +0 -77
  180. package/dist/Index-C692qMTG.js +0 -294
  181. package/dist/Index-CEvbw-3i.js +0 -41
  182. package/dist/Index-CYSULnpn.js +0 -32
  183. package/dist/Index-CdtYzwAM.js +0 -107
  184. package/dist/Index-CetF2FW0.js +0 -230
  185. package/dist/Index-Cv6XLM20.js +0 -73
  186. package/dist/Index-Cwy8ff76.js +0 -154
  187. package/dist/Index-D34z4UEY.js +0 -84
  188. package/dist/Index-DNCei-lp.js +0 -56
  189. package/dist/Index-DUbxgIYB.js +0 -2445
  190. package/dist/Index-DVwn_LLf.js +0 -28
  191. package/dist/Index-Dla-mesV.js +0 -146
  192. package/dist/Index-KtUkOPI2.js +0 -58
  193. package/dist/Index-LjnOTVJk.js +0 -66
  194. package/dist/Index-ky1SRtfY.js +0 -94
  195. package/dist/Index-mceZW2NX.js +0 -41
  196. package/dist/Index-tD3hZjh8.js +0 -144
  197. package/dist/Index-vM5kDtC2.js +0 -33
  198. package/dist/InputToggleRow-BmDuSbE2.js +0 -57
  199. package/dist/ManualPopover-CQfjPvFe.js +0 -60
  200. package/dist/MediaWrapper-DDzcjR6V.js +0 -23
  201. package/dist/PackageGroup-mAGXfZDv.js +0 -704
  202. package/dist/PdfTerms-BH_Nwf2h.js +0 -31
  203. package/dist/PdfViewer-mBLxI8bA.js +0 -383
  204. package/dist/PlainHtml-B7gUNNZd.js +0 -27
  205. package/dist/PriceHeader-DClYMPcq.js +0 -338
  206. package/dist/SendForm-Cxv_m8Rq.js +0 -1023
  207. package/dist/Setup-B90VDZTG.js +0 -50
  208. package/dist/ThemeColorRow-D-Z7w4Wk.js +0 -69
  209. package/dist/ToggleBinding-DOeTcWzi.js +0 -42
  210. package/dist/UploadModal-DOPLVEpV.js +0 -95
  211. package/dist/VideoPlayerInput-1zG06elO.js +0 -97
  212. package/dist/VideoPlayerSettings-O-4rAYYh.js +0 -61
  213. package/dist/VideoSelectModal-DzqFrqCg.js +0 -104
  214. package/dist/answerDocumentMixin-HBiNWYCH.js +0 -51
  215. package/dist/debounce-Ch1d3526.js +0 -84
  216. package/dist/formValidationMixin-D_MzsHsR.js +0 -49
  217. package/dist/index-BNdbPq4J.js +0 -492
  218. package/dist/index-BXzugeJ6.js +0 -81
  219. package/dist/index-C5wcxrC6.js +0 -167
  220. package/dist/index-CgDOs7t4.js +0 -2700
  221. package/dist/index-Cj-_2coz.js +0 -351
  222. package/dist/index-DpqV5y0K.js +0 -102
  223. package/dist/main-BL_yzf2r.js +0 -57357
  224. package/dist/mapFormMixin-Cu_vkTP-.js +0 -3028
  225. package/dist/omit-Dfe_H1Ft.js +0 -31
  226. package/dist/simplebar.min-CRlLD1Oz.js +0 -71
  227. package/dist/splitpanes-BHUVsCZF.js +0 -382
  228. package/dist/style.css +0 -4
  229. package/dist/throttle-BX_w77tW.js +0 -18
  230. package/dist/tippy.esm-n4arfVzA.js +0 -1805
  231. package/dist/vuedraggable.umd-DW4PJoZ3.js +0 -3161
  232. package/dist/vuex.esm-DKGl8mcw.js +0 -467
@@ -0,0 +1,1349 @@
1
+ import { aM as Rt, aN as kt, aO as Xt, L as Yt, aP as st, Q as Bt, aQ as Ht, h as Lt, i as Wt, a0 as Gt, o as ut, c as zt, w as jt, b as $t, k as Vt, F as Ut, n as qt, l as Kt, ap as Qt, S as Zt } from "./main-DI0diChK.js";
2
+ /**!
3
+ * Sortable 1.15.6
4
+ * @author RubaXa <trash@rubaxa.org>
5
+ * @author owenm <owen23355@gmail.com>
6
+ * @license MIT
7
+ */
8
+ function ft(n, e) {
9
+ var o = Object.keys(n);
10
+ if (Object.getOwnPropertySymbols) {
11
+ var t = Object.getOwnPropertySymbols(n);
12
+ e && (t = t.filter(function(i) {
13
+ return Object.getOwnPropertyDescriptor(n, i).enumerable;
14
+ })), o.push.apply(o, t);
15
+ }
16
+ return o;
17
+ }
18
+ function z(n) {
19
+ for (var e = 1; e < arguments.length; e++) {
20
+ var o = arguments[e] != null ? arguments[e] : {};
21
+ e % 2 ? ft(Object(o), !0).forEach(function(t) {
22
+ Jt(n, t, o[t]);
23
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(o)) : ft(Object(o)).forEach(function(t) {
24
+ Object.defineProperty(n, t, Object.getOwnPropertyDescriptor(o, t));
25
+ });
26
+ }
27
+ return n;
28
+ }
29
+ function Me(n) {
30
+ "@babel/helpers - typeof";
31
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Me = function(e) {
32
+ return typeof e;
33
+ } : Me = function(e) {
34
+ return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
35
+ }, Me(n);
36
+ }
37
+ function Jt(n, e, o) {
38
+ return e in n ? Object.defineProperty(n, e, {
39
+ value: o,
40
+ enumerable: !0,
41
+ configurable: !0,
42
+ writable: !0
43
+ }) : n[e] = o, n;
44
+ }
45
+ function U() {
46
+ return U = Object.assign || function(n) {
47
+ for (var e = 1; e < arguments.length; e++) {
48
+ var o = arguments[e];
49
+ for (var t in o)
50
+ Object.prototype.hasOwnProperty.call(o, t) && (n[t] = o[t]);
51
+ }
52
+ return n;
53
+ }, U.apply(this, arguments);
54
+ }
55
+ function en(n, e) {
56
+ if (n == null) return {};
57
+ var o = {}, t = Object.keys(n), i, r;
58
+ for (r = 0; r < t.length; r++)
59
+ i = t[r], !(e.indexOf(i) >= 0) && (o[i] = n[i]);
60
+ return o;
61
+ }
62
+ function tn(n, e) {
63
+ if (n == null) return {};
64
+ var o = en(n, e), t, i;
65
+ if (Object.getOwnPropertySymbols) {
66
+ var r = Object.getOwnPropertySymbols(n);
67
+ for (i = 0; i < r.length; i++)
68
+ t = r[i], !(e.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(n, t) && (o[t] = n[t]);
69
+ }
70
+ return o;
71
+ }
72
+ var nn = "1.15.6";
73
+ function V(n) {
74
+ if (typeof window < "u" && window.navigator)
75
+ return !!/* @__PURE__ */ navigator.userAgent.match(n);
76
+ }
77
+ var q = V(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ce = V(/Edge/i), dt = V(/firefox/i), we = V(/safari/i) && !V(/chrome/i) && !V(/android/i), ot = V(/iP(ad|od|hone)/i), yt = V(/chrome/i) && V(/android/i), Et = {
78
+ capture: !1,
79
+ passive: !1
80
+ };
81
+ function v(n, e, o) {
82
+ n.addEventListener(e, o, !q && Et);
83
+ }
84
+ function m(n, e, o) {
85
+ n.removeEventListener(e, o, !q && Et);
86
+ }
87
+ function Ye(n, e) {
88
+ if (e) {
89
+ if (e[0] === ">" && (e = e.substring(1)), n)
90
+ try {
91
+ if (n.matches)
92
+ return n.matches(e);
93
+ if (n.msMatchesSelector)
94
+ return n.msMatchesSelector(e);
95
+ if (n.webkitMatchesSelector)
96
+ return n.webkitMatchesSelector(e);
97
+ } catch {
98
+ return !1;
99
+ }
100
+ return !1;
101
+ }
102
+ }
103
+ function wt(n) {
104
+ return n.host && n !== document && n.host.nodeType ? n.host : n.parentNode;
105
+ }
106
+ function L(n, e, o, t) {
107
+ if (n) {
108
+ o = o || document;
109
+ do {
110
+ if (e != null && (e[0] === ">" ? n.parentNode === o && Ye(n, e) : Ye(n, e)) || t && n === o)
111
+ return n;
112
+ if (n === o) break;
113
+ } while (n = wt(n));
114
+ }
115
+ return null;
116
+ }
117
+ var ct = /\s+/g;
118
+ function R(n, e, o) {
119
+ if (n && e)
120
+ if (n.classList)
121
+ n.classList[o ? "add" : "remove"](e);
122
+ else {
123
+ var t = (" " + n.className + " ").replace(ct, " ").replace(" " + e + " ", " ");
124
+ n.className = (t + (o ? " " + e : "")).replace(ct, " ");
125
+ }
126
+ }
127
+ function h(n, e, o) {
128
+ var t = n && n.style;
129
+ if (t) {
130
+ if (o === void 0)
131
+ return document.defaultView && document.defaultView.getComputedStyle ? o = document.defaultView.getComputedStyle(n, "") : n.currentStyle && (o = n.currentStyle), e === void 0 ? o : o[e];
132
+ !(e in t) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), t[e] = o + (typeof o == "string" ? "" : "px");
133
+ }
134
+ }
135
+ function de(n, e) {
136
+ var o = "";
137
+ if (typeof n == "string")
138
+ o = n;
139
+ else
140
+ do {
141
+ var t = h(n, "transform");
142
+ t && t !== "none" && (o = t + " " + o);
143
+ } while (!e && (n = n.parentNode));
144
+ var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
145
+ return i && new i(o);
146
+ }
147
+ function Dt(n, e, o) {
148
+ if (n) {
149
+ var t = n.getElementsByTagName(e), i = 0, r = t.length;
150
+ if (o)
151
+ for (; i < r; i++)
152
+ o(t[i], i);
153
+ return t;
154
+ }
155
+ return [];
156
+ }
157
+ function G() {
158
+ var n = document.scrollingElement;
159
+ return n || document.documentElement;
160
+ }
161
+ function C(n, e, o, t, i) {
162
+ if (!(!n.getBoundingClientRect && n !== window)) {
163
+ var r, a, l, s, u, d, c;
164
+ if (n !== window && n.parentNode && n !== G() ? (r = n.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, d = r.height, c = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (e || o) && n !== window && (i = i || n.parentNode, !q))
165
+ do
166
+ if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || o && h(i, "position") !== "static")) {
167
+ var b = i.getBoundingClientRect();
168
+ a -= b.top + parseInt(h(i, "border-top-width")), l -= b.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
169
+ break;
170
+ }
171
+ while (i = i.parentNode);
172
+ if (t && n !== window) {
173
+ var w = de(i || n), y = w && w.a, E = w && w.d;
174
+ w && (a /= E, l /= y, c /= y, d /= E, s = a + d, u = l + c);
175
+ }
176
+ return {
177
+ top: a,
178
+ left: l,
179
+ bottom: s,
180
+ right: u,
181
+ width: c,
182
+ height: d
183
+ };
184
+ }
185
+ }
186
+ function ht(n, e, o) {
187
+ for (var t = ee(n, !0), i = C(n)[e]; t; ) {
188
+ var r = C(t)[o], a = void 0;
189
+ if (a = i >= r, !a) return t;
190
+ if (t === G()) break;
191
+ t = ee(t, !1);
192
+ }
193
+ return !1;
194
+ }
195
+ function ce(n, e, o, t) {
196
+ for (var i = 0, r = 0, a = n.children; r < a.length; ) {
197
+ if (a[r].style.display !== "none" && a[r] !== p.ghost && (t || a[r] !== p.dragged) && L(a[r], o.draggable, n, !1)) {
198
+ if (i === e)
199
+ return a[r];
200
+ i++;
201
+ }
202
+ r++;
203
+ }
204
+ return null;
205
+ }
206
+ function it(n, e) {
207
+ for (var o = n.lastElementChild; o && (o === p.ghost || h(o, "display") === "none" || e && !Ye(o, e)); )
208
+ o = o.previousElementSibling;
209
+ return o || null;
210
+ }
211
+ function X(n, e) {
212
+ var o = 0;
213
+ if (!n || !n.parentNode)
214
+ return -1;
215
+ for (; n = n.previousElementSibling; )
216
+ n.nodeName.toUpperCase() !== "TEMPLATE" && n !== p.clone && (!e || Ye(n, e)) && o++;
217
+ return o;
218
+ }
219
+ function pt(n) {
220
+ var e = 0, o = 0, t = G();
221
+ if (n)
222
+ do {
223
+ var i = de(n), r = i.a, a = i.d;
224
+ e += n.scrollLeft * r, o += n.scrollTop * a;
225
+ } while (n !== t && (n = n.parentNode));
226
+ return [e, o];
227
+ }
228
+ function on(n, e) {
229
+ for (var o in n)
230
+ if (n.hasOwnProperty(o)) {
231
+ for (var t in e)
232
+ if (e.hasOwnProperty(t) && e[t] === n[o][t]) return Number(o);
233
+ }
234
+ return -1;
235
+ }
236
+ function ee(n, e) {
237
+ if (!n || !n.getBoundingClientRect) return G();
238
+ var o = n, t = !1;
239
+ do
240
+ if (o.clientWidth < o.scrollWidth || o.clientHeight < o.scrollHeight) {
241
+ var i = h(o);
242
+ if (o.clientWidth < o.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || o.clientHeight < o.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
243
+ if (!o.getBoundingClientRect || o === document.body) return G();
244
+ if (t || e) return o;
245
+ t = !0;
246
+ }
247
+ }
248
+ while (o = o.parentNode);
249
+ return G();
250
+ }
251
+ function rn(n, e) {
252
+ if (n && e)
253
+ for (var o in e)
254
+ e.hasOwnProperty(o) && (n[o] = e[o]);
255
+ return n;
256
+ }
257
+ function ze(n, e) {
258
+ return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
259
+ }
260
+ var De;
261
+ function _t(n, e) {
262
+ return function() {
263
+ if (!De) {
264
+ var o = arguments, t = this;
265
+ o.length === 1 ? n.call(t, o[0]) : n.apply(t, o), De = setTimeout(function() {
266
+ De = void 0;
267
+ }, e);
268
+ }
269
+ };
270
+ }
271
+ function an() {
272
+ clearTimeout(De), De = void 0;
273
+ }
274
+ function St(n, e, o) {
275
+ n.scrollLeft += e, n.scrollTop += o;
276
+ }
277
+ function Tt(n) {
278
+ var e = window.Polymer, o = window.jQuery || window.Zepto;
279
+ return e && e.dom ? e.dom(n).cloneNode(!0) : o ? o(n).clone(!0)[0] : n.cloneNode(!0);
280
+ }
281
+ function Ct(n, e, o) {
282
+ var t = {};
283
+ return Array.from(n.children).forEach(function(i) {
284
+ var r, a, l, s;
285
+ if (!(!L(i, e.draggable, n, !1) || i.animated || i === o)) {
286
+ var u = C(i);
287
+ t.left = Math.min((r = t.left) !== null && r !== void 0 ? r : 1 / 0, u.left), t.top = Math.min((a = t.top) !== null && a !== void 0 ? a : 1 / 0, u.top), t.right = Math.max((l = t.right) !== null && l !== void 0 ? l : -1 / 0, u.right), t.bottom = Math.max((s = t.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
288
+ }
289
+ }), t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
290
+ }
291
+ var x = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
292
+ function ln() {
293
+ var n = [], e;
294
+ return {
295
+ captureAnimationState: function() {
296
+ if (n = [], !!this.options.animation) {
297
+ var t = [].slice.call(this.el.children);
298
+ t.forEach(function(i) {
299
+ if (!(h(i, "display") === "none" || i === p.ghost)) {
300
+ n.push({
301
+ target: i,
302
+ rect: C(i)
303
+ });
304
+ var r = z({}, n[n.length - 1].rect);
305
+ if (i.thisAnimationDuration) {
306
+ var a = de(i, !0);
307
+ a && (r.top -= a.f, r.left -= a.e);
308
+ }
309
+ i.fromRect = r;
310
+ }
311
+ });
312
+ }
313
+ },
314
+ addAnimationState: function(t) {
315
+ n.push(t);
316
+ },
317
+ removeAnimationState: function(t) {
318
+ n.splice(on(n, {
319
+ target: t
320
+ }), 1);
321
+ },
322
+ animateAll: function(t) {
323
+ var i = this;
324
+ if (!this.options.animation) {
325
+ clearTimeout(e), typeof t == "function" && t();
326
+ return;
327
+ }
328
+ var r = !1, a = 0;
329
+ n.forEach(function(l) {
330
+ var s = 0, u = l.target, d = u.fromRect, c = C(u), b = u.prevFromRect, w = u.prevToRect, y = l.rect, E = de(u, !0);
331
+ E && (c.top -= E.f, c.left -= E.e), u.toRect = c, u.thisAnimationDuration && ze(b, c) && !ze(d, c) && // Make sure animatingRect is on line between toRect & fromRect
332
+ (y.top - c.top) / (y.left - c.left) === (d.top - c.top) / (d.left - c.left) && (s = un(y, b, w, i.options)), ze(c, d) || (u.prevFromRect = d, u.prevToRect = c, s || (s = i.options.animation), i.animate(u, y, c, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
333
+ u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
334
+ }, s), u.thisAnimationDuration = s);
335
+ }), clearTimeout(e), r ? e = setTimeout(function() {
336
+ typeof t == "function" && t();
337
+ }, a) : typeof t == "function" && t(), n = [];
338
+ },
339
+ animate: function(t, i, r, a) {
340
+ if (a) {
341
+ h(t, "transition", ""), h(t, "transform", "");
342
+ var l = de(this.el), s = l && l.a, u = l && l.d, d = (i.left - r.left) / (s || 1), c = (i.top - r.top) / (u || 1);
343
+ t.animatingX = !!d, t.animatingY = !!c, h(t, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = sn(t), h(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
344
+ h(t, "transition", ""), h(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
345
+ }, a);
346
+ }
347
+ }
348
+ };
349
+ }
350
+ function sn(n) {
351
+ return n.offsetWidth;
352
+ }
353
+ function un(n, e, o, t) {
354
+ return Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) / Math.sqrt(Math.pow(e.top - o.top, 2) + Math.pow(e.left - o.left, 2)) * t.animation;
355
+ }
356
+ var le = [], je = {
357
+ initializeByDefault: !0
358
+ }, Oe = {
359
+ mount: function(e) {
360
+ for (var o in je)
361
+ je.hasOwnProperty(o) && !(o in e) && (e[o] = je[o]);
362
+ le.forEach(function(t) {
363
+ if (t.pluginName === e.pluginName)
364
+ throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
365
+ }), le.push(e);
366
+ },
367
+ pluginEvent: function(e, o, t) {
368
+ var i = this;
369
+ this.eventCanceled = !1, t.cancel = function() {
370
+ i.eventCanceled = !0;
371
+ };
372
+ var r = e + "Global";
373
+ le.forEach(function(a) {
374
+ o[a.pluginName] && (o[a.pluginName][r] && o[a.pluginName][r](z({
375
+ sortable: o
376
+ }, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](z({
377
+ sortable: o
378
+ }, t)));
379
+ });
380
+ },
381
+ initializePlugins: function(e, o, t, i) {
382
+ le.forEach(function(l) {
383
+ var s = l.pluginName;
384
+ if (!(!e.options[s] && !l.initializeByDefault)) {
385
+ var u = new l(e, o, e.options);
386
+ u.sortable = e, u.options = e.options, e[s] = u, U(t, u.defaults);
387
+ }
388
+ });
389
+ for (var r in e.options)
390
+ if (e.options.hasOwnProperty(r)) {
391
+ var a = this.modifyOption(e, r, e.options[r]);
392
+ typeof a < "u" && (e.options[r] = a);
393
+ }
394
+ },
395
+ getEventProperties: function(e, o) {
396
+ var t = {};
397
+ return le.forEach(function(i) {
398
+ typeof i.eventProperties == "function" && U(t, i.eventProperties.call(o[i.pluginName], e));
399
+ }), t;
400
+ },
401
+ modifyOption: function(e, o, t) {
402
+ var i;
403
+ return le.forEach(function(r) {
404
+ e[r.pluginName] && r.optionListeners && typeof r.optionListeners[o] == "function" && (i = r.optionListeners[o].call(e[r.pluginName], t));
405
+ }), i;
406
+ }
407
+ };
408
+ function fn(n) {
409
+ var e = n.sortable, o = n.rootEl, t = n.name, i = n.targetEl, r = n.cloneEl, a = n.toEl, l = n.fromEl, s = n.oldIndex, u = n.newIndex, d = n.oldDraggableIndex, c = n.newDraggableIndex, b = n.originalEvent, w = n.putSortable, y = n.extraEventProperties;
410
+ if (e = e || o && o[x], !!e) {
411
+ var E, Y = e.options, j = "on" + t.charAt(0).toUpperCase() + t.substr(1);
412
+ window.CustomEvent && !q && !Ce ? E = new CustomEvent(t, {
413
+ bubbles: !0,
414
+ cancelable: !0
415
+ }) : (E = document.createEvent("Event"), E.initEvent(t, !0, !0)), E.to = a || o, E.from = l || o, E.item = i || o, E.clone = r, E.oldIndex = s, E.newIndex = u, E.oldDraggableIndex = d, E.newDraggableIndex = c, E.originalEvent = b, E.pullMode = w ? w.lastPutMode : void 0;
416
+ var A = z(z({}, y), Oe.getEventProperties(t, e));
417
+ for (var B in A)
418
+ E[B] = A[B];
419
+ o && o.dispatchEvent(E), Y[j] && Y[j].call(e, E);
420
+ }
421
+ }
422
+ var dn = ["evt"], N = function(e, o) {
423
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = t.evt, r = tn(t, dn);
424
+ Oe.pluginEvent.bind(p)(e, o, z({
425
+ dragEl: f,
426
+ parentEl: S,
427
+ ghostEl: g,
428
+ rootEl: D,
429
+ nextEl: ae,
430
+ lastDownEl: Fe,
431
+ cloneEl: _,
432
+ cloneHidden: J,
433
+ dragStarted: be,
434
+ putSortable: O,
435
+ activeSortable: p.active,
436
+ originalEvent: i,
437
+ oldIndex: fe,
438
+ oldDraggableIndex: _e,
439
+ newIndex: k,
440
+ newDraggableIndex: Z,
441
+ hideGhostForTarget: Pt,
442
+ unhideGhostForTarget: Nt,
443
+ cloneNowHidden: function() {
444
+ J = !0;
445
+ },
446
+ cloneNowShown: function() {
447
+ J = !1;
448
+ },
449
+ dispatchSortableEvent: function(l) {
450
+ P({
451
+ sortable: o,
452
+ name: l,
453
+ originalEvent: i
454
+ });
455
+ }
456
+ }, r));
457
+ };
458
+ function P(n) {
459
+ fn(z({
460
+ putSortable: O,
461
+ cloneEl: _,
462
+ targetEl: f,
463
+ rootEl: D,
464
+ oldIndex: fe,
465
+ oldDraggableIndex: _e,
466
+ newIndex: k,
467
+ newDraggableIndex: Z
468
+ }, n));
469
+ }
470
+ var f, S, g, D, ae, Fe, _, J, fe, k, _e, Z, Ae, O, ue = !1, Be = !1, He = [], ie, H, $e, Ve, gt, mt, be, se, Se, Te = !1, Pe = !1, Re, I, Ue = [], Je = !1, Le = [], Ge = typeof document < "u", Ne = ot, vt = Ce || q ? "cssFloat" : "float", cn = Ge && !yt && !ot && "draggable" in document.createElement("div"), Ot = function() {
471
+ if (Ge) {
472
+ if (q)
473
+ return !1;
474
+ var n = document.createElement("x");
475
+ return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
476
+ }
477
+ }(), It = function(e, o) {
478
+ var t = h(e), i = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), r = ce(e, 0, o), a = ce(e, 1, o), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + C(r).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + C(a).width;
479
+ if (t.display === "flex")
480
+ return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
481
+ if (t.display === "grid")
482
+ return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
483
+ if (r && l.float && l.float !== "none") {
484
+ var c = l.float === "left" ? "left" : "right";
485
+ return a && (s.clear === "both" || s.clear === c) ? "vertical" : "horizontal";
486
+ }
487
+ return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && t[vt] === "none" || a && t[vt] === "none" && u + d > i) ? "vertical" : "horizontal";
488
+ }, hn = function(e, o, t) {
489
+ var i = t ? e.left : e.top, r = t ? e.right : e.bottom, a = t ? e.width : e.height, l = t ? o.left : o.top, s = t ? o.right : o.bottom, u = t ? o.width : o.height;
490
+ return i === l || r === s || i + a / 2 === l + u / 2;
491
+ }, pn = function(e, o) {
492
+ var t;
493
+ return He.some(function(i) {
494
+ var r = i[x].options.emptyInsertThreshold;
495
+ if (!(!r || it(i))) {
496
+ var a = C(i), l = e >= a.left - r && e <= a.right + r, s = o >= a.top - r && o <= a.bottom + r;
497
+ if (l && s)
498
+ return t = i;
499
+ }
500
+ }), t;
501
+ }, At = function(e) {
502
+ function o(r, a) {
503
+ return function(l, s, u, d) {
504
+ var c = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
505
+ if (r == null && (a || c))
506
+ return !0;
507
+ if (r == null || r === !1)
508
+ return !1;
509
+ if (a && r === "clone")
510
+ return r;
511
+ if (typeof r == "function")
512
+ return o(r(l, s, u, d), a)(l, s, u, d);
513
+ var b = (a ? l : s).options.group.name;
514
+ return r === !0 || typeof r == "string" && r === b || r.join && r.indexOf(b) > -1;
515
+ };
516
+ }
517
+ var t = {}, i = e.group;
518
+ (!i || Me(i) != "object") && (i = {
519
+ name: i
520
+ }), t.name = i.name, t.checkPull = o(i.pull, !0), t.checkPut = o(i.put), t.revertClone = i.revertClone, e.group = t;
521
+ }, Pt = function() {
522
+ !Ot && g && h(g, "display", "none");
523
+ }, Nt = function() {
524
+ !Ot && g && h(g, "display", "");
525
+ };
526
+ Ge && !yt && document.addEventListener("click", function(n) {
527
+ if (Be)
528
+ return n.preventDefault(), n.stopPropagation && n.stopPropagation(), n.stopImmediatePropagation && n.stopImmediatePropagation(), Be = !1, !1;
529
+ }, !0);
530
+ var re = function(e) {
531
+ if (f) {
532
+ e = e.touches ? e.touches[0] : e;
533
+ var o = pn(e.clientX, e.clientY);
534
+ if (o) {
535
+ var t = {};
536
+ for (var i in e)
537
+ e.hasOwnProperty(i) && (t[i] = e[i]);
538
+ t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[x]._onDragOver(t);
539
+ }
540
+ }
541
+ }, gn = function(e) {
542
+ f && f.parentNode[x]._isOutsideThisEl(e.target);
543
+ };
544
+ function p(n, e) {
545
+ if (!(n && n.nodeType && n.nodeType === 1))
546
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));
547
+ this.el = n, this.options = e = U({}, e), n[x] = this;
548
+ var o = {
549
+ group: null,
550
+ sort: !0,
551
+ disabled: !1,
552
+ store: null,
553
+ handle: null,
554
+ draggable: /^[uo]l$/i.test(n.nodeName) ? ">li" : ">*",
555
+ swapThreshold: 1,
556
+ // percentage; 0 <= x <= 1
557
+ invertSwap: !1,
558
+ // invert always
559
+ invertedSwapThreshold: null,
560
+ // will be set to same as swapThreshold if default
561
+ removeCloneOnHide: !0,
562
+ direction: function() {
563
+ return It(n, this.options);
564
+ },
565
+ ghostClass: "sortable-ghost",
566
+ chosenClass: "sortable-chosen",
567
+ dragClass: "sortable-drag",
568
+ ignore: "a, img",
569
+ filter: null,
570
+ preventOnFilter: !0,
571
+ animation: 0,
572
+ easing: null,
573
+ setData: function(a, l) {
574
+ a.setData("Text", l.textContent);
575
+ },
576
+ dropBubble: !1,
577
+ dragoverBubble: !1,
578
+ dataIdAttr: "data-id",
579
+ delay: 0,
580
+ delayOnTouchOnly: !1,
581
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
582
+ forceFallback: !1,
583
+ fallbackClass: "sortable-fallback",
584
+ fallbackOnBody: !1,
585
+ fallbackTolerance: 0,
586
+ fallbackOffset: {
587
+ x: 0,
588
+ y: 0
589
+ },
590
+ // Disabled on Safari: #1571; Enabled on Safari IOS: #2244
591
+ supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && (!we || ot),
592
+ emptyInsertThreshold: 5
593
+ };
594
+ Oe.initializePlugins(this, n, o);
595
+ for (var t in o)
596
+ !(t in e) && (e[t] = o[t]);
597
+ At(e);
598
+ for (var i in this)
599
+ i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
600
+ this.nativeDraggable = e.forceFallback ? !1 : cn, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? v(n, "pointerdown", this._onTapStart) : (v(n, "mousedown", this._onTapStart), v(n, "touchstart", this._onTapStart)), this.nativeDraggable && (v(n, "dragover", this), v(n, "dragenter", this)), He.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), U(this, ln());
601
+ }
602
+ p.prototype = /** @lends Sortable.prototype */
603
+ {
604
+ constructor: p,
605
+ _isOutsideThisEl: function(e) {
606
+ !this.el.contains(e) && e !== this.el && (se = null);
607
+ },
608
+ _getDirection: function(e, o) {
609
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, e, o, f) : this.options.direction;
610
+ },
611
+ _onTapStart: function(e) {
612
+ if (e.cancelable) {
613
+ var o = this, t = this.el, i = this.options, r = i.preventOnFilter, a = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, d = i.filter;
614
+ if (_n(t), !f && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && we && s && s.tagName.toUpperCase() === "SELECT") && (s = L(s, i.draggable, t, !1), !(s && s.animated) && Fe !== s)) {
615
+ if (fe = X(s), _e = X(s, i.draggable), typeof d == "function") {
616
+ if (d.call(this, e, s, this)) {
617
+ P({
618
+ sortable: o,
619
+ rootEl: u,
620
+ name: "filter",
621
+ targetEl: s,
622
+ toEl: t,
623
+ fromEl: t
624
+ }), N("filter", o, {
625
+ evt: e
626
+ }), r && e.preventDefault();
627
+ return;
628
+ }
629
+ } else if (d && (d = d.split(",").some(function(c) {
630
+ if (c = L(u, c.trim(), t, !1), c)
631
+ return P({
632
+ sortable: o,
633
+ rootEl: c,
634
+ name: "filter",
635
+ targetEl: s,
636
+ fromEl: t,
637
+ toEl: t
638
+ }), N("filter", o, {
639
+ evt: e
640
+ }), !0;
641
+ }), d)) {
642
+ r && e.preventDefault();
643
+ return;
644
+ }
645
+ i.handle && !L(u, i.handle, t, !1) || this._prepareDragStart(e, l, s);
646
+ }
647
+ }
648
+ },
649
+ _prepareDragStart: function(e, o, t) {
650
+ var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
651
+ if (t && !f && t.parentNode === r) {
652
+ var u = C(t);
653
+ if (D = r, f = t, S = f.parentNode, ae = f.nextSibling, Fe = t, Ae = a.group, p.dragged = f, ie = {
654
+ target: f,
655
+ clientX: (o || e).clientX,
656
+ clientY: (o || e).clientY
657
+ }, gt = ie.clientX - u.left, mt = ie.clientY - u.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, f.style["will-change"] = "all", s = function() {
658
+ if (N("delayEnded", i, {
659
+ evt: e
660
+ }), p.eventCanceled) {
661
+ i._onDrop();
662
+ return;
663
+ }
664
+ i._disableDelayedDragEvents(), !dt && i.nativeDraggable && (f.draggable = !0), i._triggerDragStart(e, o), P({
665
+ sortable: i,
666
+ name: "choose",
667
+ originalEvent: e
668
+ }), R(f, a.chosenClass, !0);
669
+ }, a.ignore.split(",").forEach(function(d) {
670
+ Dt(f, d.trim(), qe);
671
+ }), v(l, "dragover", re), v(l, "mousemove", re), v(l, "touchmove", re), a.supportPointer ? (v(l, "pointerup", i._onDrop), !this.nativeDraggable && v(l, "pointercancel", i._onDrop)) : (v(l, "mouseup", i._onDrop), v(l, "touchend", i._onDrop), v(l, "touchcancel", i._onDrop)), dt && this.nativeDraggable && (this.options.touchStartThreshold = 4, f.draggable = !0), N("delayStart", this, {
672
+ evt: e
673
+ }), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(Ce || q))) {
674
+ if (p.eventCanceled) {
675
+ this._onDrop();
676
+ return;
677
+ }
678
+ a.supportPointer ? (v(l, "pointerup", i._disableDelayedDrag), v(l, "pointercancel", i._disableDelayedDrag)) : (v(l, "mouseup", i._disableDelayedDrag), v(l, "touchend", i._disableDelayedDrag), v(l, "touchcancel", i._disableDelayedDrag)), v(l, "mousemove", i._delayedDragTouchMoveHandler), v(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && v(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
679
+ } else
680
+ s();
681
+ }
682
+ },
683
+ _delayedDragTouchMoveHandler: function(e) {
684
+ var o = e.touches ? e.touches[0] : e;
685
+ Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
686
+ },
687
+ _disableDelayedDrag: function() {
688
+ f && qe(f), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
689
+ },
690
+ _disableDelayedDragEvents: function() {
691
+ var e = this.el.ownerDocument;
692
+ m(e, "mouseup", this._disableDelayedDrag), m(e, "touchend", this._disableDelayedDrag), m(e, "touchcancel", this._disableDelayedDrag), m(e, "pointerup", this._disableDelayedDrag), m(e, "pointercancel", this._disableDelayedDrag), m(e, "mousemove", this._delayedDragTouchMoveHandler), m(e, "touchmove", this._delayedDragTouchMoveHandler), m(e, "pointermove", this._delayedDragTouchMoveHandler);
693
+ },
694
+ _triggerDragStart: function(e, o) {
695
+ o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ? v(document, "pointermove", this._onTouchMove) : o ? v(document, "touchmove", this._onTouchMove) : v(document, "mousemove", this._onTouchMove) : (v(f, "dragend", this), v(D, "dragstart", this._onDragStart));
696
+ try {
697
+ document.selection ? ke(function() {
698
+ document.selection.empty();
699
+ }) : window.getSelection().removeAllRanges();
700
+ } catch {
701
+ }
702
+ },
703
+ _dragStarted: function(e, o) {
704
+ if (ue = !1, D && f) {
705
+ N("dragStarted", this, {
706
+ evt: o
707
+ }), this.nativeDraggable && v(document, "dragover", gn);
708
+ var t = this.options;
709
+ !e && R(f, t.dragClass, !1), R(f, t.ghostClass, !0), p.active = this, e && this._appendGhost(), P({
710
+ sortable: this,
711
+ name: "start",
712
+ originalEvent: o
713
+ });
714
+ } else
715
+ this._nulling();
716
+ },
717
+ _emulateDragOver: function() {
718
+ if (H) {
719
+ this._lastX = H.clientX, this._lastY = H.clientY, Pt();
720
+ for (var e = document.elementFromPoint(H.clientX, H.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(H.clientX, H.clientY), e !== o); )
721
+ o = e;
722
+ if (f.parentNode[x]._isOutsideThisEl(e), o)
723
+ do {
724
+ if (o[x]) {
725
+ var t = void 0;
726
+ if (t = o[x]._onDragOver({
727
+ clientX: H.clientX,
728
+ clientY: H.clientY,
729
+ target: e,
730
+ rootEl: o
731
+ }), t && !this.options.dragoverBubble)
732
+ break;
733
+ }
734
+ e = o;
735
+ } while (o = wt(o));
736
+ Nt();
737
+ }
738
+ },
739
+ _onTouchMove: function(e) {
740
+ if (ie) {
741
+ var o = this.options, t = o.fallbackTolerance, i = o.fallbackOffset, r = e.touches ? e.touches[0] : e, a = g && de(g, !0), l = g && a && a.a, s = g && a && a.d, u = Ne && I && pt(I), d = (r.clientX - ie.clientX + i.x) / (l || 1) + (u ? u[0] - Ue[0] : 0) / (l || 1), c = (r.clientY - ie.clientY + i.y) / (s || 1) + (u ? u[1] - Ue[1] : 0) / (s || 1);
742
+ if (!p.active && !ue) {
743
+ if (t && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < t)
744
+ return;
745
+ this._onDragStart(e, !0);
746
+ }
747
+ if (g) {
748
+ a ? (a.e += d - ($e || 0), a.f += c - (Ve || 0)) : a = {
749
+ a: 1,
750
+ b: 0,
751
+ c: 0,
752
+ d: 1,
753
+ e: d,
754
+ f: c
755
+ };
756
+ var b = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
757
+ h(g, "webkitTransform", b), h(g, "mozTransform", b), h(g, "msTransform", b), h(g, "transform", b), $e = d, Ve = c, H = r;
758
+ }
759
+ e.cancelable && e.preventDefault();
760
+ }
761
+ },
762
+ _appendGhost: function() {
763
+ if (!g) {
764
+ var e = this.options.fallbackOnBody ? document.body : D, o = C(f, !0, Ne, !0, e), t = this.options;
765
+ if (Ne) {
766
+ for (I = e; h(I, "position") === "static" && h(I, "transform") === "none" && I !== document; )
767
+ I = I.parentNode;
768
+ I !== document.body && I !== document.documentElement ? (I === document && (I = G()), o.top += I.scrollTop, o.left += I.scrollLeft) : I = G(), Ue = pt(I);
769
+ }
770
+ g = f.cloneNode(!0), R(g, t.ghostClass, !1), R(g, t.fallbackClass, !0), R(g, t.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", o.top), h(g, "left", o.left), h(g, "width", o.width), h(g, "height", o.height), h(g, "opacity", "0.8"), h(g, "position", Ne ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, e.appendChild(g), h(g, "transform-origin", gt / parseInt(g.style.width) * 100 + "% " + mt / parseInt(g.style.height) * 100 + "%");
771
+ }
772
+ },
773
+ _onDragStart: function(e, o) {
774
+ var t = this, i = e.dataTransfer, r = t.options;
775
+ if (N("dragStart", this, {
776
+ evt: e
777
+ }), p.eventCanceled) {
778
+ this._onDrop();
779
+ return;
780
+ }
781
+ N("setupClone", this), p.eventCanceled || (_ = Tt(f), _.removeAttribute("id"), _.draggable = !1, _.style["will-change"] = "", this._hideClone(), R(_, this.options.chosenClass, !1), p.clone = _), t.cloneId = ke(function() {
782
+ N("clone", t), !p.eventCanceled && (t.options.removeCloneOnHide || D.insertBefore(_, f), t._hideClone(), P({
783
+ sortable: t,
784
+ name: "clone"
785
+ }));
786
+ }), !o && R(f, r.dragClass, !0), o ? (Be = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (m(document, "mouseup", t._onDrop), m(document, "touchend", t._onDrop), m(document, "touchcancel", t._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(t, i, f)), v(document, "drop", t), h(f, "transform", "translateZ(0)")), ue = !0, t._dragStartId = ke(t._dragStarted.bind(t, o, e)), v(document, "selectstart", t), be = !0, window.getSelection().removeAllRanges(), we && h(document.body, "user-select", "none");
787
+ },
788
+ // Returns true - if no further action is needed (either inserted or another condition)
789
+ _onDragOver: function(e) {
790
+ var o = this.el, t = e.target, i, r, a, l = this.options, s = l.group, u = p.active, d = Ae === s, c = l.sort, b = O || u, w, y = this, E = !1;
791
+ if (Je) return;
792
+ function Y(ve, Mt) {
793
+ N(ve, y, z({
794
+ evt: e,
795
+ isOwner: d,
796
+ axis: w ? "vertical" : "horizontal",
797
+ revert: a,
798
+ dragRect: i,
799
+ targetRect: r,
800
+ canSort: c,
801
+ fromSortable: b,
802
+ target: t,
803
+ completed: A,
804
+ onMove: function(lt, Ft) {
805
+ return xe(D, o, f, i, lt, C(lt), e, Ft);
806
+ },
807
+ changed: B
808
+ }, Mt));
809
+ }
810
+ function j() {
811
+ Y("dragOverAnimationCapture"), y.captureAnimationState(), y !== b && b.captureAnimationState();
812
+ }
813
+ function A(ve) {
814
+ return Y("dragOverCompleted", {
815
+ insertion: ve
816
+ }), ve && (d ? u._hideClone() : u._showClone(y), y !== b && (R(f, O ? O.options.ghostClass : u.options.ghostClass, !1), R(f, l.ghostClass, !0)), O !== y && y !== p.active ? O = y : y === p.active && O && (O = null), b === y && (y._ignoreWhileAnimating = t), y.animateAll(function() {
817
+ Y("dragOverAnimationComplete"), y._ignoreWhileAnimating = null;
818
+ }), y !== b && (b.animateAll(), b._ignoreWhileAnimating = null)), (t === f && !f.animated || t === o && !t.animated) && (se = null), !l.dragoverBubble && !e.rootEl && t !== document && (f.parentNode[x]._isOutsideThisEl(e.target), !ve && re(e)), !l.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
819
+ }
820
+ function B() {
821
+ k = X(f), Z = X(f, l.draggable), P({
822
+ sortable: y,
823
+ name: "change",
824
+ toEl: o,
825
+ newIndex: k,
826
+ newDraggableIndex: Z,
827
+ originalEvent: e
828
+ });
829
+ }
830
+ if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = L(t, l.draggable, o, !0), Y("dragOver"), p.eventCanceled) return E;
831
+ if (f.contains(e.target) || t.animated && t.animatingX && t.animatingY || y._ignoreWhileAnimating === t)
832
+ return A(!1);
833
+ if (Be = !1, u && !l.disabled && (d ? c || (a = S !== D) : O === this || (this.lastPutMode = Ae.checkPull(this, u, f, e)) && s.checkPut(this, u, f, e))) {
834
+ if (w = this._getDirection(e, t) === "vertical", i = C(f), Y("dragOverValid"), p.eventCanceled) return E;
835
+ if (a)
836
+ return S = D, j(), this._hideClone(), Y("revert"), p.eventCanceled || (ae ? D.insertBefore(f, ae) : D.appendChild(f)), A(!0);
837
+ var M = it(o, l.draggable);
838
+ if (!M || yn(e, w, this) && !M.animated) {
839
+ if (M === f)
840
+ return A(!1);
841
+ if (M && o === e.target && (t = M), t && (r = C(t)), xe(D, o, f, i, t, r, e, !!t) !== !1)
842
+ return j(), M && M.nextSibling ? o.insertBefore(f, M.nextSibling) : o.appendChild(f), S = o, B(), A(!0);
843
+ } else if (M && bn(e, w, this)) {
844
+ var te = ce(o, 0, l, !0);
845
+ if (te === f)
846
+ return A(!1);
847
+ if (t = te, r = C(t), xe(D, o, f, i, t, r, e, !1) !== !1)
848
+ return j(), o.insertBefore(f, te), S = o, B(), A(!0);
849
+ } else if (t.parentNode === o) {
850
+ r = C(t);
851
+ var W = 0, ne, he = f.parentNode !== o, F = !hn(f.animated && f.toRect || i, t.animated && t.toRect || r, w), pe = w ? "top" : "left", K = ht(t, "top", "top") || ht(f, "top", "top"), ge = K ? K.scrollTop : void 0;
852
+ se !== t && (ne = r[pe], Te = !1, Pe = !F && l.invertSwap || he), W = En(e, t, r, w, F ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Pe, se === t);
853
+ var $;
854
+ if (W !== 0) {
855
+ var oe = X(f);
856
+ do
857
+ oe -= W, $ = S.children[oe];
858
+ while ($ && (h($, "display") === "none" || $ === g));
859
+ }
860
+ if (W === 0 || $ === t)
861
+ return A(!1);
862
+ se = t, Se = W;
863
+ var me = t.nextElementSibling, Q = !1;
864
+ Q = W === 1;
865
+ var Ie = xe(D, o, f, i, t, r, e, Q);
866
+ if (Ie !== !1)
867
+ return (Ie === 1 || Ie === -1) && (Q = Ie === 1), Je = !0, setTimeout(vn, 30), j(), Q && !me ? o.appendChild(f) : t.parentNode.insertBefore(f, Q ? me : t), K && St(K, 0, ge - K.scrollTop), S = f.parentNode, ne !== void 0 && !Pe && (Re = Math.abs(ne - C(t)[pe])), B(), A(!0);
868
+ }
869
+ if (o.contains(f))
870
+ return A(!1);
871
+ }
872
+ return !1;
873
+ },
874
+ _ignoreWhileAnimating: null,
875
+ _offMoveEvents: function() {
876
+ m(document, "mousemove", this._onTouchMove), m(document, "touchmove", this._onTouchMove), m(document, "pointermove", this._onTouchMove), m(document, "dragover", re), m(document, "mousemove", re), m(document, "touchmove", re);
877
+ },
878
+ _offUpEvents: function() {
879
+ var e = this.el.ownerDocument;
880
+ m(e, "mouseup", this._onDrop), m(e, "touchend", this._onDrop), m(e, "pointerup", this._onDrop), m(e, "pointercancel", this._onDrop), m(e, "touchcancel", this._onDrop), m(document, "selectstart", this);
881
+ },
882
+ _onDrop: function(e) {
883
+ var o = this.el, t = this.options;
884
+ if (k = X(f), Z = X(f, t.draggable), N("drop", this, {
885
+ evt: e
886
+ }), S = f && f.parentNode, k = X(f), Z = X(f, t.draggable), p.eventCanceled) {
887
+ this._nulling();
888
+ return;
889
+ }
890
+ ue = !1, Pe = !1, Te = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), et(this.cloneId), et(this._dragStartId), this.nativeDraggable && (m(document, "drop", this), m(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), we && h(document.body, "user-select", ""), h(f, "transform", ""), e && (be && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (D === S || O && O.lastPutMode !== "clone") && _ && _.parentNode && _.parentNode.removeChild(_), f && (this.nativeDraggable && m(f, "dragend", this), qe(f), f.style["will-change"] = "", be && !ue && R(f, O ? O.options.ghostClass : this.options.ghostClass, !1), R(f, this.options.chosenClass, !1), P({
891
+ sortable: this,
892
+ name: "unchoose",
893
+ toEl: S,
894
+ newIndex: null,
895
+ newDraggableIndex: null,
896
+ originalEvent: e
897
+ }), D !== S ? (k >= 0 && (P({
898
+ rootEl: S,
899
+ name: "add",
900
+ toEl: S,
901
+ fromEl: D,
902
+ originalEvent: e
903
+ }), P({
904
+ sortable: this,
905
+ name: "remove",
906
+ toEl: S,
907
+ originalEvent: e
908
+ }), P({
909
+ rootEl: S,
910
+ name: "sort",
911
+ toEl: S,
912
+ fromEl: D,
913
+ originalEvent: e
914
+ }), P({
915
+ sortable: this,
916
+ name: "sort",
917
+ toEl: S,
918
+ originalEvent: e
919
+ })), O && O.save()) : k !== fe && k >= 0 && (P({
920
+ sortable: this,
921
+ name: "update",
922
+ toEl: S,
923
+ originalEvent: e
924
+ }), P({
925
+ sortable: this,
926
+ name: "sort",
927
+ toEl: S,
928
+ originalEvent: e
929
+ })), p.active && ((k == null || k === -1) && (k = fe, Z = _e), P({
930
+ sortable: this,
931
+ name: "end",
932
+ toEl: S,
933
+ originalEvent: e
934
+ }), this.save()))), this._nulling();
935
+ },
936
+ _nulling: function() {
937
+ N("nulling", this), D = f = S = g = ae = _ = Fe = J = ie = H = be = k = Z = fe = _e = se = Se = O = Ae = p.dragged = p.ghost = p.clone = p.active = null, Le.forEach(function(e) {
938
+ e.checked = !0;
939
+ }), Le.length = $e = Ve = 0;
940
+ },
941
+ handleEvent: function(e) {
942
+ switch (e.type) {
943
+ case "drop":
944
+ case "dragend":
945
+ this._onDrop(e);
946
+ break;
947
+ case "dragenter":
948
+ case "dragover":
949
+ f && (this._onDragOver(e), mn(e));
950
+ break;
951
+ case "selectstart":
952
+ e.preventDefault();
953
+ break;
954
+ }
955
+ },
956
+ /**
957
+ * Serializes the item into an array of string.
958
+ * @returns {String[]}
959
+ */
960
+ toArray: function() {
961
+ for (var e = [], o, t = this.el.children, i = 0, r = t.length, a = this.options; i < r; i++)
962
+ o = t[i], L(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || Dn(o));
963
+ return e;
964
+ },
965
+ /**
966
+ * Sorts the elements according to the array.
967
+ * @param {String[]} order order of the items
968
+ */
969
+ sort: function(e, o) {
970
+ var t = {}, i = this.el;
971
+ this.toArray().forEach(function(r, a) {
972
+ var l = i.children[a];
973
+ L(l, this.options.draggable, i, !1) && (t[r] = l);
974
+ }, this), o && this.captureAnimationState(), e.forEach(function(r) {
975
+ t[r] && (i.removeChild(t[r]), i.appendChild(t[r]));
976
+ }), o && this.animateAll();
977
+ },
978
+ /**
979
+ * Save the current sorting
980
+ */
981
+ save: function() {
982
+ var e = this.options.store;
983
+ e && e.set && e.set(this);
984
+ },
985
+ /**
986
+ * For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
987
+ * @param {HTMLElement} el
988
+ * @param {String} [selector] default: `options.draggable`
989
+ * @returns {HTMLElement|null}
990
+ */
991
+ closest: function(e, o) {
992
+ return L(e, o || this.options.draggable, this.el, !1);
993
+ },
994
+ /**
995
+ * Set/get option
996
+ * @param {string} name
997
+ * @param {*} [value]
998
+ * @returns {*}
999
+ */
1000
+ option: function(e, o) {
1001
+ var t = this.options;
1002
+ if (o === void 0)
1003
+ return t[e];
1004
+ var i = Oe.modifyOption(this, e, o);
1005
+ typeof i < "u" ? t[e] = i : t[e] = o, e === "group" && At(t);
1006
+ },
1007
+ /**
1008
+ * Destroy
1009
+ */
1010
+ destroy: function() {
1011
+ N("destroy", this);
1012
+ var e = this.el;
1013
+ e[x] = null, m(e, "mousedown", this._onTapStart), m(e, "touchstart", this._onTapStart), m(e, "pointerdown", this._onTapStart), this.nativeDraggable && (m(e, "dragover", this), m(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
1014
+ o.removeAttribute("draggable");
1015
+ }), this._onDrop(), this._disableDelayedDragEvents(), He.splice(He.indexOf(this.el), 1), this.el = e = null;
1016
+ },
1017
+ _hideClone: function() {
1018
+ if (!J) {
1019
+ if (N("hideClone", this), p.eventCanceled) return;
1020
+ h(_, "display", "none"), this.options.removeCloneOnHide && _.parentNode && _.parentNode.removeChild(_), J = !0;
1021
+ }
1022
+ },
1023
+ _showClone: function(e) {
1024
+ if (e.lastPutMode !== "clone") {
1025
+ this._hideClone();
1026
+ return;
1027
+ }
1028
+ if (J) {
1029
+ if (N("showClone", this), p.eventCanceled) return;
1030
+ f.parentNode == D && !this.options.group.revertClone ? D.insertBefore(_, f) : ae ? D.insertBefore(_, ae) : D.appendChild(_), this.options.group.revertClone && this.animate(f, _), h(_, "display", ""), J = !1;
1031
+ }
1032
+ }
1033
+ };
1034
+ function mn(n) {
1035
+ n.dataTransfer && (n.dataTransfer.dropEffect = "move"), n.cancelable && n.preventDefault();
1036
+ }
1037
+ function xe(n, e, o, t, i, r, a, l) {
1038
+ var s, u = n[x], d = u.options.onMove, c;
1039
+ return window.CustomEvent && !q && !Ce ? s = new CustomEvent("move", {
1040
+ bubbles: !0,
1041
+ cancelable: !0
1042
+ }) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = e, s.from = n, s.dragged = o, s.draggedRect = t, s.related = i || e, s.relatedRect = r || C(e), s.willInsertAfter = l, s.originalEvent = a, n.dispatchEvent(s), d && (c = d.call(u, s, a)), c;
1043
+ }
1044
+ function qe(n) {
1045
+ n.draggable = !1;
1046
+ }
1047
+ function vn() {
1048
+ Je = !1;
1049
+ }
1050
+ function bn(n, e, o) {
1051
+ var t = C(ce(o.el, 0, o.options, !0)), i = Ct(o.el, o.options, g), r = 10;
1052
+ return e ? n.clientX < i.left - r || n.clientY < t.top && n.clientX < t.right : n.clientY < i.top - r || n.clientY < t.bottom && n.clientX < t.left;
1053
+ }
1054
+ function yn(n, e, o) {
1055
+ var t = C(it(o.el, o.options.draggable)), i = Ct(o.el, o.options, g), r = 10;
1056
+ return e ? n.clientX > i.right + r || n.clientY > t.bottom && n.clientX > t.left : n.clientY > i.bottom + r || n.clientX > t.right && n.clientY > t.top;
1057
+ }
1058
+ function En(n, e, o, t, i, r, a, l) {
1059
+ var s = t ? n.clientY : n.clientX, u = t ? o.height : o.width, d = t ? o.top : o.left, c = t ? o.bottom : o.right, b = !1;
1060
+ if (!a) {
1061
+ if (l && Re < u * i) {
1062
+ if (!Te && (Se === 1 ? s > d + u * r / 2 : s < c - u * r / 2) && (Te = !0), Te)
1063
+ b = !0;
1064
+ else if (Se === 1 ? s < d + Re : s > c - Re)
1065
+ return -Se;
1066
+ } else if (s > d + u * (1 - i) / 2 && s < c - u * (1 - i) / 2)
1067
+ return wn(e);
1068
+ }
1069
+ return b = b || a, b && (s < d + u * r / 2 || s > c - u * r / 2) ? s > d + u / 2 ? 1 : -1 : 0;
1070
+ }
1071
+ function wn(n) {
1072
+ return X(f) < X(n) ? 1 : -1;
1073
+ }
1074
+ function Dn(n) {
1075
+ for (var e = n.tagName + n.className + n.src + n.href + n.textContent, o = e.length, t = 0; o--; )
1076
+ t += e.charCodeAt(o);
1077
+ return t.toString(36);
1078
+ }
1079
+ function _n(n) {
1080
+ Le.length = 0;
1081
+ for (var e = n.getElementsByTagName("input"), o = e.length; o--; ) {
1082
+ var t = e[o];
1083
+ t.checked && Le.push(t);
1084
+ }
1085
+ }
1086
+ function ke(n) {
1087
+ return setTimeout(n, 0);
1088
+ }
1089
+ function et(n) {
1090
+ return clearTimeout(n);
1091
+ }
1092
+ Ge && v(document, "touchmove", function(n) {
1093
+ (p.active || ue) && n.cancelable && n.preventDefault();
1094
+ });
1095
+ p.utils = {
1096
+ on: v,
1097
+ off: m,
1098
+ css: h,
1099
+ find: Dt,
1100
+ is: function(e, o) {
1101
+ return !!L(e, o, e, !1);
1102
+ },
1103
+ extend: rn,
1104
+ throttle: _t,
1105
+ closest: L,
1106
+ toggleClass: R,
1107
+ clone: Tt,
1108
+ index: X,
1109
+ nextTick: ke,
1110
+ cancelNextTick: et,
1111
+ detectDirection: It,
1112
+ getChild: ce,
1113
+ expando: x
1114
+ };
1115
+ p.get = function(n) {
1116
+ return n[x];
1117
+ };
1118
+ p.mount = function() {
1119
+ for (var n = arguments.length, e = new Array(n), o = 0; o < n; o++)
1120
+ e[o] = arguments[o];
1121
+ e[0].constructor === Array && (e = e[0]), e.forEach(function(t) {
1122
+ if (!t.prototype || !t.prototype.constructor)
1123
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));
1124
+ t.utils && (p.utils = z(z({}, p.utils), t.utils)), Oe.mount(t);
1125
+ });
1126
+ };
1127
+ p.create = function(n, e) {
1128
+ return new p(n, e);
1129
+ };
1130
+ p.version = nn;
1131
+ var T = [], ye, tt, nt = !1, Ke, Qe, We, Ee;
1132
+ function Sn() {
1133
+ function n() {
1134
+ this.defaults = {
1135
+ scroll: !0,
1136
+ forceAutoScrollFallback: !1,
1137
+ scrollSensitivity: 30,
1138
+ scrollSpeed: 10,
1139
+ bubbleScroll: !0
1140
+ };
1141
+ for (var e in this)
1142
+ e.charAt(0) === "_" && typeof this[e] == "function" && (this[e] = this[e].bind(this));
1143
+ }
1144
+ return n.prototype = {
1145
+ dragStarted: function(o) {
1146
+ var t = o.originalEvent;
1147
+ 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);
1148
+ },
1149
+ dragOverCompleted: function(o) {
1150
+ var t = o.originalEvent;
1151
+ !this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
1152
+ },
1153
+ drop: function() {
1154
+ this.sortable.nativeDraggable ? m(document, "dragover", this._handleAutoScroll) : (m(document, "pointermove", this._handleFallbackAutoScroll), m(document, "touchmove", this._handleFallbackAutoScroll), m(document, "mousemove", this._handleFallbackAutoScroll)), bt(), Xe(), an();
1155
+ },
1156
+ nulling: function() {
1157
+ We = tt = ye = nt = Ee = Ke = Qe = null, T.length = 0;
1158
+ },
1159
+ _handleFallbackAutoScroll: function(o) {
1160
+ this._handleAutoScroll(o, !0);
1161
+ },
1162
+ _handleAutoScroll: function(o, t) {
1163
+ var i = this, r = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, l = document.elementFromPoint(r, a);
1164
+ if (We = o, t || this.options.forceAutoScrollFallback || Ce || q || we) {
1165
+ Ze(o, this.options, l, t);
1166
+ var s = ee(l, !0);
1167
+ nt && (!Ee || r !== Ke || a !== Qe) && (Ee && bt(), Ee = setInterval(function() {
1168
+ var u = ee(document.elementFromPoint(r, a), !0);
1169
+ u !== s && (s = u, Xe()), Ze(o, i.options, u, t);
1170
+ }, 10), Ke = r, Qe = a);
1171
+ } else {
1172
+ if (!this.options.bubbleScroll || ee(l, !0) === G()) {
1173
+ Xe();
1174
+ return;
1175
+ }
1176
+ Ze(o, this.options, ee(l, !1), !1);
1177
+ }
1178
+ }
1179
+ }, U(n, {
1180
+ pluginName: "scroll",
1181
+ initializeByDefault: !0
1182
+ });
1183
+ }
1184
+ function Xe() {
1185
+ T.forEach(function(n) {
1186
+ clearInterval(n.pid);
1187
+ }), T = [];
1188
+ }
1189
+ function bt() {
1190
+ clearInterval(Ee);
1191
+ }
1192
+ var Ze = _t(function(n, e, o, t) {
1193
+ if (e.scroll) {
1194
+ var i = (n.touches ? n.touches[0] : n).clientX, r = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = G(), u = !1, d;
1195
+ tt !== o && (tt = o, Xe(), ye = e.scroll, d = e.scrollFn, ye === !0 && (ye = ee(o, !0)));
1196
+ var c = 0, b = ye;
1197
+ do {
1198
+ var w = b, y = C(w), E = y.top, Y = y.bottom, j = y.left, A = y.right, B = y.width, M = y.height, te = void 0, W = void 0, ne = w.scrollWidth, he = w.scrollHeight, F = h(w), pe = w.scrollLeft, K = w.scrollTop;
1199
+ w === s ? (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll" || F.overflowX === "visible"), W = M < he && (F.overflowY === "auto" || F.overflowY === "scroll" || F.overflowY === "visible")) : (te = B < ne && (F.overflowX === "auto" || F.overflowX === "scroll"), W = M < he && (F.overflowY === "auto" || F.overflowY === "scroll"));
1200
+ var ge = te && (Math.abs(A - i) <= a && pe + B < ne) - (Math.abs(j - i) <= a && !!pe), $ = W && (Math.abs(Y - r) <= a && K + M < he) - (Math.abs(E - r) <= a && !!K);
1201
+ if (!T[c])
1202
+ for (var oe = 0; oe <= c; oe++)
1203
+ T[oe] || (T[oe] = {});
1204
+ (T[c].vx != ge || T[c].vy != $ || T[c].el !== w) && (T[c].el = w, T[c].vx = ge, T[c].vy = $, clearInterval(T[c].pid), (ge != 0 || $ != 0) && (u = !0, T[c].pid = setInterval((function() {
1205
+ t && this.layer === 0 && p.active._onTouchMove(We);
1206
+ var me = T[this.layer].vy ? T[this.layer].vy * l : 0, Q = T[this.layer].vx ? T[this.layer].vx * l : 0;
1207
+ typeof d == "function" && d.call(p.dragged.parentNode[x], Q, me, n, We, T[this.layer].el) !== "continue" || St(T[this.layer].el, Q, me);
1208
+ }).bind({
1209
+ layer: c
1210
+ }), 24))), c++;
1211
+ } while (e.bubbleScroll && b !== s && (b = ee(b, !1)));
1212
+ nt = u;
1213
+ }
1214
+ }, 30), xt = function(e) {
1215
+ var o = e.originalEvent, t = e.putSortable, i = e.dragEl, r = e.activeSortable, a = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
1216
+ if (o) {
1217
+ var u = t || r;
1218
+ l();
1219
+ var d = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, c = document.elementFromPoint(d.clientX, d.clientY);
1220
+ s(), u && !u.el.contains(c) && (a("spill"), this.onSpill({
1221
+ dragEl: i,
1222
+ putSortable: t
1223
+ }));
1224
+ }
1225
+ };
1226
+ function rt() {
1227
+ }
1228
+ rt.prototype = {
1229
+ startIndex: null,
1230
+ dragStart: function(e) {
1231
+ var o = e.oldDraggableIndex;
1232
+ this.startIndex = o;
1233
+ },
1234
+ onSpill: function(e) {
1235
+ var o = e.dragEl, t = e.putSortable;
1236
+ this.sortable.captureAnimationState(), t && t.captureAnimationState();
1237
+ var i = ce(this.sortable.el, this.startIndex, this.options);
1238
+ i ? this.sortable.el.insertBefore(o, i) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
1239
+ },
1240
+ drop: xt
1241
+ };
1242
+ U(rt, {
1243
+ pluginName: "revertOnSpill"
1244
+ });
1245
+ function at() {
1246
+ }
1247
+ at.prototype = {
1248
+ onSpill: function(e) {
1249
+ var o = e.dragEl, t = e.putSortable, i = t || this.sortable;
1250
+ i.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), i.animateAll();
1251
+ },
1252
+ drop: xt
1253
+ };
1254
+ U(at, {
1255
+ pluginName: "removeOnSpill"
1256
+ });
1257
+ p.mount(new Sn());
1258
+ p.mount(at, rt);
1259
+ function Tn(n, e, o = {}) {
1260
+ let t;
1261
+ const { document: i = Xt, ...r } = o, a = {
1262
+ onUpdate: (d) => {
1263
+ In(e, d.oldIndex, d.newIndex, d);
1264
+ }
1265
+ }, l = () => {
1266
+ const d = typeof n == "string" ? i == null ? void 0 : i.querySelector(n) : kt(n);
1267
+ !d || t !== void 0 || (t = new p(d, { ...a, ...r }));
1268
+ }, s = () => {
1269
+ t == null || t.destroy(), t = void 0;
1270
+ }, u = (d, c) => {
1271
+ if (c !== void 0)
1272
+ t == null || t.option(d, c);
1273
+ else
1274
+ return t == null ? void 0 : t.option(d);
1275
+ };
1276
+ return Rt(l), Ht(s), {
1277
+ stop: s,
1278
+ start: l,
1279
+ option: u
1280
+ };
1281
+ }
1282
+ function Cn(n, e, o) {
1283
+ const t = n.children[o];
1284
+ n.insertBefore(e, t);
1285
+ }
1286
+ function On(n) {
1287
+ n.parentNode && n.parentNode.removeChild(n);
1288
+ }
1289
+ function In(n, e, o, t = null) {
1290
+ t != null && (On(t.item), Cn(t.from, t.item, e));
1291
+ const i = Yt(n), r = i ? [...st(n)] : st(n);
1292
+ if (o >= 0 && o < r.length) {
1293
+ const a = r.splice(e, 1)[0];
1294
+ Bt(() => {
1295
+ r.splice(o, 0, a), i && (n.value = r);
1296
+ });
1297
+ }
1298
+ }
1299
+ function An(n, e, o) {
1300
+ const t = n.slice(), i = t.splice(e, 1)[0];
1301
+ return t.splice(o, 0, i), t;
1302
+ }
1303
+ const xn = /* @__PURE__ */ Lt({
1304
+ __name: "Sortable",
1305
+ props: {
1306
+ tag: { default: "div" },
1307
+ itemKey: { default: "id" },
1308
+ modelValue: { default: null },
1309
+ list: { default: () => [] },
1310
+ options: { default: null },
1311
+ clone: { type: Function, default: (n) => n }
1312
+ },
1313
+ emits: ["update:modelValue"],
1314
+ setup(n, { emit: e }) {
1315
+ const o = e, t = Wt(() => n.modelValue || n.list), i = Gt("container");
1316
+ return Tn(i, t, {
1317
+ animation: 250,
1318
+ onChoose(r) {
1319
+ const { item: a } = r, l = r.oldIndex;
1320
+ a._data = n.clone(t.value[l]);
1321
+ },
1322
+ ...n.modelValue && {
1323
+ onUpdate(r) {
1324
+ const { oldIndex: a, newIndex: l } = r, s = An(n.modelValue, a, l);
1325
+ o("update:modelValue", s);
1326
+ }
1327
+ },
1328
+ ...n.options
1329
+ }), (r, a) => (ut(), zt(Qt(r.tag), {
1330
+ ref_key: "container",
1331
+ ref: i,
1332
+ class: qt(r.$props.class),
1333
+ style: Kt(r.$props.style)
1334
+ }, {
1335
+ default: jt(() => [
1336
+ (ut(!0), $t(Ut, null, Vt(t.value, (l, s) => Zt(r.$slots, "item", {
1337
+ key: l[r.itemKey] || s,
1338
+ item: l,
1339
+ index: s
1340
+ })), 128))
1341
+ ]),
1342
+ _: 3
1343
+ }, 8, ["class", "style"]));
1344
+ }
1345
+ });
1346
+ export {
1347
+ xn as _,
1348
+ An as m
1349
+ };