go-view-worker 0.0.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 (198) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +221 -0
  3. package/dist/chunks/403-382550a8.js +42 -0
  4. package/dist/chunks/404-3d357d75.js +42 -0
  5. package/dist/chunks/500-96d14fb0.js +43 -0
  6. package/dist/chunks/StylesSetting-952ff564.js +338 -0
  7. package/dist/chunks/chartEditStore-a725b558.js +4975 -0
  8. package/dist/chunks/designStore-fe92c2ba.js +6268 -0
  9. package/dist/chunks/index-00b6339d.js +588 -0
  10. package/dist/chunks/index-0472b3a5.js +173 -0
  11. package/dist/chunks/index-097ae4b0.js +436 -0
  12. package/dist/chunks/index-09e62bb4.js +284 -0
  13. package/dist/chunks/index-1cb69ab6.js +136 -0
  14. package/dist/chunks/index-32d13283.js +26 -0
  15. package/dist/chunks/index-3fd591ea.js +81 -0
  16. package/dist/chunks/index-51458edb.js +143 -0
  17. package/dist/chunks/index-54f304ef.js +89 -0
  18. package/dist/chunks/index-62a7855c.js +51 -0
  19. package/dist/chunks/index-82d00e13.js +300 -0
  20. package/dist/chunks/index-9502bd7e.js +155 -0
  21. package/dist/chunks/index-95c5f0a0.js +1664 -0
  22. package/dist/chunks/index-a410a1d3.js +250 -0
  23. package/dist/chunks/index-da8ddb02.js +13 -0
  24. package/dist/chunks/index-de0a1234.js +482 -0
  25. package/dist/chunks/index-e31a7881.js +32 -0
  26. package/dist/chunks/index-f266153a.js +1985 -0
  27. package/dist/chunks/index-f97e5ffc.js +13 -0
  28. package/dist/chunks/index-fdf7dc1e.js +88 -0
  29. package/dist/chunks/index-fec9f9f8.js +368 -0
  30. package/dist/chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js +3357 -0
  31. package/dist/chunks/lodash-c80b695e.js +3680 -0
  32. package/dist/chunks/router-106a6abc.js +57 -0
  33. package/dist/chunks/useKeyboard.hook-da88451a.js +341 -0
  34. package/dist/chunks/useSyncUpdate.hook-5517a8ad.js +40 -0
  35. package/dist/chunks/useTargetData.hook-28a7e43b.js +12 -0
  36. package/dist/chunks/wrapper-4c15ca94.js +28 -0
  37. package/dist/favicon.ico +0 -0
  38. package/dist/go-view-worker.js +23 -0
  39. package/dist/init.js +688 -0
  40. package/dist/style.css +7 -0
  41. package/dist/types/packages/index.d.ts +12 -0
  42. package/dist/types/packages/init.d.ts +6 -0
  43. package/dist/types/packages/utils/resize.d.ts +1 -0
  44. package/dist/types/src/components/GoAppProvider/index.d.ts +3 -0
  45. package/dist/types/src/components/GoIconify/index.d.ts +3 -0
  46. package/dist/types/src/components/GoLoading/index.d.ts +5 -0
  47. package/dist/types/src/components/GoReload/index.d.ts +3 -0
  48. package/dist/types/src/components/GoSkeleton/index.d.ts +3 -0
  49. package/dist/types/src/components/GoSystemInfo/index.d.ts +3 -0
  50. package/dist/types/src/components/GoSystemSet/index.d.ts +3 -0
  51. package/dist/types/src/components/GoThemeSelect/index.d.ts +3 -0
  52. package/dist/types/src/components/GoUserInfo/index.d.ts +3 -0
  53. package/dist/types/src/components/Pages/ChartGlobImage/index.d.ts +3 -0
  54. package/dist/types/src/components/Pages/ChartItemSetting/index.d.ts +11 -0
  55. package/dist/types/src/components/Pages/Flipper/index.d.ts +4 -0
  56. package/dist/types/src/components/Pages/ThemeColorSelect/index.d.ts +3 -0
  57. package/dist/types/src/components/Pages/VChartItemSetting/index.d.ts +8 -0
  58. package/dist/types/src/components/Plugins/DialogContent/index.d.ts +3 -0
  59. package/dist/types/src/components/Plugins/LoadingContent/index.d.ts +3 -0
  60. package/dist/types/src/components/Plugins/MessageContent/index.d.ts +3 -0
  61. package/dist/types/src/components/Tips/MacOsControlBtn/index.d.ts +3 -0
  62. package/dist/types/src/directives/index.d.ts +2 -0
  63. package/dist/types/src/enums/editPageEnum.d.ts +55 -0
  64. package/dist/types/src/enums/eventEnum.d.ts +32 -0
  65. package/dist/types/src/enums/fileTypeEnum.d.ts +7 -0
  66. package/dist/types/src/enums/httpEnum.d.ts +96 -0
  67. package/dist/types/src/enums/pageEnum.d.ts +34 -0
  68. package/dist/types/src/enums/pluginEnum.d.ts +6 -0
  69. package/dist/types/src/enums/storageEnum.d.ts +10 -0
  70. package/dist/types/src/enums/styleEnum.d.ts +14 -0
  71. package/dist/types/src/hooks/index.d.ts +6 -0
  72. package/dist/types/src/hooks/useCanvasInitOptions.hook.d.ts +8 -0
  73. package/dist/types/src/hooks/useChartDataPondFetch.hook.d.ts +8 -0
  74. package/dist/types/src/hooks/useChartInteract.hook.d.ts +9 -0
  75. package/dist/types/src/hooks/useLang.hook.d.ts +126 -0
  76. package/dist/types/src/hooks/useLifeHandler.hook.d.ts +10 -0
  77. package/dist/types/src/hooks/usePreviewScale.hook.d.ts +32 -0
  78. package/dist/types/src/hooks/useTheme.hook.d.ts +7 -0
  79. package/dist/types/src/layout/components/LayoutFooter/index.d.ts +3 -0
  80. package/dist/types/src/layout/components/LayoutHeader/index.d.ts +3 -0
  81. package/dist/types/src/layout/components/LayoutHeaderPro/index.d.ts +3 -0
  82. package/dist/types/src/layout/components/LayoutMain/index.d.ts +3 -0
  83. package/dist/types/src/layout/components/LayoutTransitionMain/index.d.ts +3 -0
  84. package/dist/types/src/main.d.ts +1 -0
  85. package/dist/types/src/packages/chartConfiguration/echarts/axis.d.ts +24 -0
  86. package/dist/types/src/packages/chartConfiguration/echarts/index.d.ts +4 -0
  87. package/dist/types/src/packages/chartConfiguration/echarts/label.d.ts +10 -0
  88. package/dist/types/src/packages/chartConfiguration/echarts/legend.d.ts +18 -0
  89. package/dist/types/src/packages/chartConfiguration/echarts/line.d.ts +8 -0
  90. package/dist/types/src/packages/chartConfiguration/vcharts/index.d.ts +3 -0
  91. package/dist/types/src/packages/chartConfiguration/vcharts/label.d.ts +14 -0
  92. package/dist/types/src/packages/chartConfiguration/vcharts/legends.d.ts +27 -0
  93. package/dist/types/src/packages/chartConfiguration/vcharts/style.d.ts +18 -0
  94. package/dist/types/src/packages/components/Charts/Bars/BarCommon/config.d.ts +63 -0
  95. package/dist/types/src/packages/components/Charts/Bars/BarCommon/index.d.ts +3 -0
  96. package/dist/types/src/packages/components/Charts/Bars/index.d.ts +2 -0
  97. package/dist/types/src/packages/components/Charts/index.d.ts +8 -0
  98. package/dist/types/src/packages/components/Photos/Private/index.d.ts +17 -0
  99. package/dist/types/src/packages/components/Photos/Share/index.d.ts +14 -0
  100. package/dist/types/src/packages/components/Photos/index.d.ts +9 -0
  101. package/dist/types/src/packages/index.d.ts +214 -0
  102. package/dist/types/src/packages/public/index.d.ts +2 -0
  103. package/dist/types/src/packages/public/publicConfig.d.ts +81 -0
  104. package/dist/types/src/packages/public/vChart.d.ts +14 -0
  105. package/dist/types/src/plugins/customComponents.d.ts +7 -0
  106. package/dist/types/src/plugins/directives.d.ts +7 -0
  107. package/dist/types/src/plugins/icon.d.ts +111 -0
  108. package/dist/types/src/plugins/index.d.ts +5 -0
  109. package/dist/types/src/plugins/initFunction.d.ts +4 -0
  110. package/dist/types/src/plugins/naive.d.ts +3 -0
  111. package/dist/types/src/router/base.d.ts +7 -0
  112. package/dist/types/src/router/constant.d.ts +5 -0
  113. package/dist/types/src/router/index.d.ts +6 -0
  114. package/dist/types/src/router/modules/chart.route.d.ts +4 -0
  115. package/dist/types/src/router/modules/index.d.ts +5 -0
  116. package/dist/types/src/router/modules/preview.route.d.ts +4 -0
  117. package/dist/types/src/router/router-guards.d.ts +3 -0
  118. package/dist/types/src/router/types.d.ts +26 -0
  119. package/dist/types/src/settings/animations/index.d.ts +7 -0
  120. package/dist/types/src/settings/chartThemes/index.d.ts +195 -0
  121. package/dist/types/src/settings/designSetting.d.ts +33 -0
  122. package/dist/types/src/settings/pathConst.d.ts +3 -0
  123. package/dist/types/src/settings/systemSetting.d.ts +11 -0
  124. package/dist/types/src/settings/vchartThemes/index.d.ts +139 -0
  125. package/dist/types/src/store/index.d.ts +5 -0
  126. package/dist/types/src/store/modules/chartEditStore/chartEditStore.d.ts +215 -0
  127. package/dist/types/src/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
  128. package/dist/types/src/store/modules/chartHistoryStore/chartHistoryStore.d.ts +79 -0
  129. package/dist/types/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
  130. package/dist/types/src/store/modules/designStore/designStore.d.ts +20 -0
  131. package/dist/types/src/store/modules/globalConfigStore/globalConfigStore.d.ts +183 -0
  132. package/dist/types/src/store/modules/langStore/langStore.d.ts +6 -0
  133. package/dist/types/src/store/modules/packagesStore/packagesStore.d.ts +10 -0
  134. package/dist/types/src/store/modules/settingStore/settingStore.d.ts +31 -0
  135. package/dist/types/src/utils/components.d.ts +13 -0
  136. package/dist/types/src/utils/file.d.ts +19 -0
  137. package/dist/types/src/utils/index.d.ts +8 -0
  138. package/dist/types/src/utils/plugin.d.ts +30 -0
  139. package/dist/types/src/utils/router.d.ts +77 -0
  140. package/dist/types/src/utils/storage.d.ts +35 -0
  141. package/dist/types/src/utils/style.d.ts +154 -0
  142. package/dist/types/src/utils/type.d.ts +8 -0
  143. package/dist/types/src/utils/utils.d.ts +128 -0
  144. package/dist/types/src/views/chart/ContentBox/index.d.ts +3 -0
  145. package/dist/types/src/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +3 -0
  146. package/dist/types/src/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +3 -0
  147. package/dist/types/src/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +3 -0
  148. package/dist/types/src/views/chart/ContentCharts/hooks/useAside.hook.d.ts +11 -0
  149. package/dist/types/src/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +10 -0
  150. package/dist/types/src/views/chart/ContentCharts/index.d.ts +3 -0
  151. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +3 -0
  152. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
  153. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +3 -0
  154. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
  155. package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +3 -0
  156. package/dist/types/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +57 -0
  157. package/dist/types/src/views/chart/ContentConfigurations/index.d.ts +3 -0
  158. package/dist/types/src/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +3 -0
  159. package/dist/types/src/views/chart/ContentEdit/components/EditBottom/index.d.ts +3 -0
  160. package/dist/types/src/views/chart/ContentEdit/components/EditGroup/index.d.ts +3 -0
  161. package/dist/types/src/views/chart/ContentEdit/components/EditHistory/index.d.ts +3 -0
  162. package/dist/types/src/views/chart/ContentEdit/components/EditRange/index.d.ts +3 -0
  163. package/dist/types/src/views/chart/ContentEdit/components/EditRule/index.d.ts +3 -0
  164. package/dist/types/src/views/chart/ContentEdit/components/EditSelect/index.d.ts +3 -0
  165. package/dist/types/src/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +3 -0
  166. package/dist/types/src/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +3 -0
  167. package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +9 -0
  168. package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
  169. package/dist/types/src/views/chart/ContentEdit/components/EditTools/index.d.ts +3 -0
  170. package/dist/types/src/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
  171. package/dist/types/src/views/chart/ContentEdit/components/EditWatermark/index.d.ts +3 -0
  172. package/dist/types/src/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +13 -0
  173. package/dist/types/src/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
  174. package/dist/types/src/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +17 -0
  175. package/dist/types/src/views/chart/ContentEdit/index.d.ts +3 -0
  176. package/dist/types/src/views/chart/ContentHeader/headerLeftBtn/index.d.ts +3 -0
  177. package/dist/types/src/views/chart/ContentHeader/headerRightBtn/index.d.ts +3 -0
  178. package/dist/types/src/views/chart/ContentHeader/headerTitle/index.d.ts +3 -0
  179. package/dist/types/src/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +3 -0
  180. package/dist/types/src/views/chart/ContentLayers/components/LayersListItem/index.d.ts +3 -0
  181. package/dist/types/src/views/chart/ContentLayers/components/LayersStatus/index.d.ts +3 -0
  182. package/dist/types/src/views/chart/ContentLayers/enums.d.ts +0 -0
  183. package/dist/types/src/views/chart/ContentLayers/index.d.ts +3 -0
  184. package/dist/types/src/views/chart/ContentLoad/index.d.ts +3 -0
  185. package/dist/types/src/views/chart/hooks/useContextMenu.hook.d.ts +12 -0
  186. package/dist/types/src/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
  187. package/dist/types/src/views/chart/hooks/useSync.hook.d.ts +5 -0
  188. package/dist/types/src/views/preview/components/PreviewRenderGroup/index.d.ts +3 -0
  189. package/dist/types/src/views/preview/components/PreviewRenderList/index.d.ts +3 -0
  190. package/dist/types/src/views/preview/hooks/useComInstall.hook.d.ts +5 -0
  191. package/dist/types/src/views/preview/hooks/useScale.hook.d.ts +17 -0
  192. package/dist/types/src/views/preview/hooks/useStore.hook.d.ts +3 -0
  193. package/dist/types/src/views/preview/utils/drag.d.ts +1 -0
  194. package/dist/types/src/views/preview/utils/index.d.ts +4 -0
  195. package/dist/types/src/views/preview/utils/keyboard.d.ts +1 -0
  196. package/dist/types/src/views/preview/utils/storage.d.ts +6 -0
  197. package/dist/types/src/views/preview/utils/style.d.ts +26 -0
  198. package/package.json +99 -0
@@ -0,0 +1,1985 @@
1
+ import { defineComponent as Xt, computed as Q, toRefs as On, unref as x, ref as Gt, reactive as In, h as Mn, getCurrentInstance as Me, watch as en, onUnmounted as An, onMounted as kn, nextTick as nn, isRef as de, useCssVars as Ae, resolveComponent as nt, withDirectives as Nn, openBlock as K, createElementBlock as _t, createVNode as z, normalizeClass as wt, vShow as Pn, createElementVNode as xt, withCtx as J, toDisplayString as ke, createBlock as yt, createTextVNode as Se, Fragment as Ce, renderList as Ee, createCommentVNode as Ln } from "vue";
2
+ import { u as le, i as te, c as Hn } from "./chartEditStore-a725b558.js";
3
+ import { C as Rn } from "./index-51458edb.js";
4
+ import { L as It, u as Yn, C as Re } from "./index-097ae4b0.js";
5
+ import { u as on, d as Gn } from "./index-82d00e13.js";
6
+ import { H as Ne, A as se, z as Xn, M as it, I as rn } from "./designStore-fe92c2ba.js";
7
+ import "vue-router";
8
+ import "naive-ui";
9
+ import { h as Bn } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
10
+ import "pinia";
11
+ import "./router-106a6abc.js";
12
+ var Fn = Object.defineProperty, ee = Object.getOwnPropertySymbols, an = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable, Ye = (t, n, e) => n in t ? Fn(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Dt = (t, n) => {
13
+ for (var e in n || (n = {}))
14
+ an.call(n, e) && Ye(t, e, n[e]);
15
+ if (ee)
16
+ for (var e of ee(n))
17
+ ln.call(n, e) && Ye(t, e, n[e]);
18
+ return t;
19
+ }, sn = (t, n) => {
20
+ var e = {};
21
+ for (var o in t)
22
+ an.call(t, o) && n.indexOf(o) < 0 && (e[o] = t[o]);
23
+ if (t != null && ee)
24
+ for (var o of ee(t))
25
+ n.indexOf(o) < 0 && ln.call(t, o) && (e[o] = t[o]);
26
+ return e;
27
+ };
28
+ const cn = "[vue-draggable-plus]: ";
29
+ function jn(t) {
30
+ console.warn(cn + t);
31
+ }
32
+ function Un(t) {
33
+ console.error(cn + t);
34
+ }
35
+ function Ge(t, n, e) {
36
+ return e >= 0 && e < t.length && t.splice(e, 0, t.splice(n, 1)[0]), t;
37
+ }
38
+ function $n(t) {
39
+ return t.replace(/-(\w)/g, (n, e) => e ? e.toUpperCase() : "");
40
+ }
41
+ function zn(t) {
42
+ return Object.keys(t).reduce((n, e) => (typeof t[e] < "u" && (n[$n(e)] = t[e]), n), {});
43
+ }
44
+ function Xe(t, n) {
45
+ return Array.isArray(t) && t.splice(n, 1), t;
46
+ }
47
+ function Be(t, n, e) {
48
+ return Array.isArray(t) && t.splice(n, 0, e), t;
49
+ }
50
+ function Vn(t) {
51
+ return typeof t > "u";
52
+ }
53
+ function Wn(t) {
54
+ return typeof t == "string";
55
+ }
56
+ function Fe(t, n, e) {
57
+ const o = t.children[e];
58
+ t.insertBefore(n, o);
59
+ }
60
+ function pe(t) {
61
+ t.parentNode && t.parentNode.removeChild(t);
62
+ }
63
+ function qn(t, n = document) {
64
+ var e;
65
+ let o = null;
66
+ return typeof n?.querySelector == "function" ? o = (e = n?.querySelector) == null ? void 0 : e.call(n, t) : o = document.querySelector(t), o || jn(`Element not found: ${t}`), o;
67
+ }
68
+ function Jn(t, n, e = null) {
69
+ return function(...o) {
70
+ return t.apply(e, o), n.apply(e, o);
71
+ };
72
+ }
73
+ function Zn(t, n) {
74
+ const e = Dt({}, t);
75
+ return Object.keys(n).forEach((o) => {
76
+ e[o] ? e[o] = Jn(t[o], n[o]) : e[o] = n[o];
77
+ }), e;
78
+ }
79
+ function Kn(t) {
80
+ return t instanceof HTMLElement;
81
+ }
82
+ function je(t, n) {
83
+ Object.keys(t).forEach((e) => {
84
+ n(e, t[e]);
85
+ });
86
+ }
87
+ function Qn(t) {
88
+ return t.charCodeAt(0) === 111 && t.charCodeAt(1) === 110 && (t.charCodeAt(2) > 122 || t.charCodeAt(2) < 97);
89
+ }
90
+ const to = Object.assign;
91
+ /**!
92
+ * Sortable 1.15.2
93
+ * @author RubaXa <trash@rubaxa.org>
94
+ * @author owenm <owen23355@gmail.com>
95
+ * @license MIT
96
+ */
97
+ function Ue(t, n) {
98
+ var e = Object.keys(t);
99
+ if (Object.getOwnPropertySymbols) {
100
+ var o = Object.getOwnPropertySymbols(t);
101
+ n && (o = o.filter(function(r) {
102
+ return Object.getOwnPropertyDescriptor(t, r).enumerable;
103
+ })), e.push.apply(e, o);
104
+ }
105
+ return e;
106
+ }
107
+ function ct(t) {
108
+ for (var n = 1; n < arguments.length; n++) {
109
+ var e = arguments[n] != null ? arguments[n] : {};
110
+ n % 2 ? Ue(Object(e), !0).forEach(function(o) {
111
+ eo(t, o, e[o]);
112
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : Ue(Object(e)).forEach(function(o) {
113
+ Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(e, o));
114
+ });
115
+ }
116
+ return t;
117
+ }
118
+ function qt(t) {
119
+ "@babel/helpers - typeof";
120
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? qt = function(n) {
121
+ return typeof n;
122
+ } : qt = function(n) {
123
+ return n && typeof Symbol == "function" && n.constructor === Symbol && n !== Symbol.prototype ? "symbol" : typeof n;
124
+ }, qt(t);
125
+ }
126
+ function eo(t, n, e) {
127
+ return n in t ? Object.defineProperty(t, n, {
128
+ value: e,
129
+ enumerable: !0,
130
+ configurable: !0,
131
+ writable: !0
132
+ }) : t[n] = e, t;
133
+ }
134
+ function dt() {
135
+ return dt = Object.assign || function(t) {
136
+ for (var n = 1; n < arguments.length; n++) {
137
+ var e = arguments[n];
138
+ for (var o in e)
139
+ Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
140
+ }
141
+ return t;
142
+ }, dt.apply(this, arguments);
143
+ }
144
+ function no(t, n) {
145
+ if (t == null)
146
+ return {};
147
+ var e = {}, o = Object.keys(t), r, a;
148
+ for (a = 0; a < o.length; a++)
149
+ r = o[a], !(n.indexOf(r) >= 0) && (e[r] = t[r]);
150
+ return e;
151
+ }
152
+ function oo(t, n) {
153
+ if (t == null)
154
+ return {};
155
+ var e = no(t, n), o, r;
156
+ if (Object.getOwnPropertySymbols) {
157
+ var a = Object.getOwnPropertySymbols(t);
158
+ for (r = 0; r < a.length; r++)
159
+ o = a[r], !(n.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(t, o) && (e[o] = t[o]);
160
+ }
161
+ return e;
162
+ }
163
+ var ro = "1.15.2";
164
+ function ut(t) {
165
+ if (typeof window < "u" && window.navigator)
166
+ return !!/* @__PURE__ */ navigator.userAgent.match(t);
167
+ }
168
+ var pt = ut(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Bt = ut(/Edge/i), $e = ut(/firefox/i), Pt = ut(/safari/i) && !ut(/chrome/i) && !ut(/android/i), un = ut(/iP(ad|od|hone)/i), dn = ut(/chrome/i) && ut(/android/i), pn = {
169
+ capture: !1,
170
+ passive: !1
171
+ };
172
+ function I(t, n, e) {
173
+ t.addEventListener(n, e, !pt && pn);
174
+ }
175
+ function T(t, n, e) {
176
+ t.removeEventListener(n, e, !pt && pn);
177
+ }
178
+ function ne(t, n) {
179
+ if (n) {
180
+ if (n[0] === ">" && (n = n.substring(1)), t)
181
+ try {
182
+ if (t.matches)
183
+ return t.matches(n);
184
+ if (t.msMatchesSelector)
185
+ return t.msMatchesSelector(n);
186
+ if (t.webkitMatchesSelector)
187
+ return t.webkitMatchesSelector(n);
188
+ } catch {
189
+ return !1;
190
+ }
191
+ return !1;
192
+ }
193
+ }
194
+ function io(t) {
195
+ return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
196
+ }
197
+ function lt(t, n, e, o) {
198
+ if (t) {
199
+ e = e || document;
200
+ do {
201
+ if (n != null && (n[0] === ">" ? t.parentNode === e && ne(t, n) : ne(t, n)) || o && t === e)
202
+ return t;
203
+ if (t === e)
204
+ break;
205
+ } while (t = io(t));
206
+ }
207
+ return null;
208
+ }
209
+ var ze = /\s+/g;
210
+ function tt(t, n, e) {
211
+ if (t && n)
212
+ if (t.classList)
213
+ t.classList[e ? "add" : "remove"](n);
214
+ else {
215
+ var o = (" " + t.className + " ").replace(ze, " ").replace(" " + n + " ", " ");
216
+ t.className = (o + (e ? " " + n : "")).replace(ze, " ");
217
+ }
218
+ }
219
+ function m(t, n, e) {
220
+ var o = t && t.style;
221
+ if (o) {
222
+ if (e === void 0)
223
+ return document.defaultView && document.defaultView.getComputedStyle ? e = document.defaultView.getComputedStyle(t, "") : t.currentStyle && (e = t.currentStyle), n === void 0 ? e : e[n];
224
+ !(n in o) && n.indexOf("webkit") === -1 && (n = "-webkit-" + n), o[n] = e + (typeof e == "string" ? "" : "px");
225
+ }
226
+ }
227
+ function Ot(t, n) {
228
+ var e = "";
229
+ if (typeof t == "string")
230
+ e = t;
231
+ else
232
+ do {
233
+ var o = m(t, "transform");
234
+ o && o !== "none" && (e = o + " " + e);
235
+ } while (!n && (t = t.parentNode));
236
+ var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
237
+ return r && new r(e);
238
+ }
239
+ function hn(t, n, e) {
240
+ if (t) {
241
+ var o = t.getElementsByTagName(n), r = 0, a = o.length;
242
+ if (e)
243
+ for (; r < a; r++)
244
+ e(o[r], r);
245
+ return o;
246
+ }
247
+ return [];
248
+ }
249
+ function st() {
250
+ var t = document.scrollingElement;
251
+ return t || document.documentElement;
252
+ }
253
+ function B(t, n, e, o, r) {
254
+ if (!(!t.getBoundingClientRect && t !== window)) {
255
+ var a, i, s, l, d, u, p;
256
+ if (t !== window && t.parentNode && t !== st() ? (a = t.getBoundingClientRect(), i = a.top, s = a.left, l = a.bottom, d = a.right, u = a.height, p = a.width) : (i = 0, s = 0, l = window.innerHeight, d = window.innerWidth, u = window.innerHeight, p = window.innerWidth), (n || e) && t !== window && (r = r || t.parentNode, !pt))
257
+ do
258
+ if (r && r.getBoundingClientRect && (m(r, "transform") !== "none" || e && m(r, "position") !== "static")) {
259
+ var y = r.getBoundingClientRect();
260
+ i -= y.top + parseInt(m(r, "border-top-width")), s -= y.left + parseInt(m(r, "border-left-width")), l = i + a.height, d = s + a.width;
261
+ break;
262
+ }
263
+ while (r = r.parentNode);
264
+ if (o && t !== window) {
265
+ var h = Ot(r || t), M = h && h.a, w = h && h.d;
266
+ h && (i /= w, s /= M, p /= M, u /= w, l = i + u, d = s + p);
267
+ }
268
+ return {
269
+ top: i,
270
+ left: s,
271
+ bottom: l,
272
+ right: d,
273
+ width: p,
274
+ height: u
275
+ };
276
+ }
277
+ }
278
+ function Ve(t, n, e) {
279
+ for (var o = gt(t, !0), r = B(t)[n]; o; ) {
280
+ var a = B(o)[e], i = void 0;
281
+ if (i = r >= a, !i)
282
+ return o;
283
+ if (o === st())
284
+ break;
285
+ o = gt(o, !1);
286
+ }
287
+ return !1;
288
+ }
289
+ function Mt(t, n, e, o) {
290
+ for (var r = 0, a = 0, i = t.children; a < i.length; ) {
291
+ if (i[a].style.display !== "none" && i[a] !== v.ghost && (o || i[a] !== v.dragged) && lt(i[a], e.draggable, t, !1)) {
292
+ if (r === n)
293
+ return i[a];
294
+ r++;
295
+ }
296
+ a++;
297
+ }
298
+ return null;
299
+ }
300
+ function Pe(t, n) {
301
+ for (var e = t.lastElementChild; e && (e === v.ghost || m(e, "display") === "none" || n && !ne(e, n)); )
302
+ e = e.previousElementSibling;
303
+ return e || null;
304
+ }
305
+ function rt(t, n) {
306
+ var e = 0;
307
+ if (!t || !t.parentNode)
308
+ return -1;
309
+ for (; t = t.previousElementSibling; )
310
+ t.nodeName.toUpperCase() !== "TEMPLATE" && t !== v.clone && (!n || ne(t, n)) && e++;
311
+ return e;
312
+ }
313
+ function We(t) {
314
+ var n = 0, e = 0, o = st();
315
+ if (t)
316
+ do {
317
+ var r = Ot(t), a = r.a, i = r.d;
318
+ n += t.scrollLeft * a, e += t.scrollTop * i;
319
+ } while (t !== o && (t = t.parentNode));
320
+ return [n, e];
321
+ }
322
+ function ao(t, n) {
323
+ for (var e in t)
324
+ if (t.hasOwnProperty(e)) {
325
+ for (var o in n)
326
+ if (n.hasOwnProperty(o) && n[o] === t[e][o])
327
+ return Number(e);
328
+ }
329
+ return -1;
330
+ }
331
+ function gt(t, n) {
332
+ if (!t || !t.getBoundingClientRect)
333
+ return st();
334
+ var e = t, o = !1;
335
+ do
336
+ if (e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight) {
337
+ var r = m(e);
338
+ if (e.clientWidth < e.scrollWidth && (r.overflowX == "auto" || r.overflowX == "scroll") || e.clientHeight < e.scrollHeight && (r.overflowY == "auto" || r.overflowY == "scroll")) {
339
+ if (!e.getBoundingClientRect || e === document.body)
340
+ return st();
341
+ if (o || n)
342
+ return e;
343
+ o = !0;
344
+ }
345
+ }
346
+ while (e = e.parentNode);
347
+ return st();
348
+ }
349
+ function lo(t, n) {
350
+ if (t && n)
351
+ for (var e in n)
352
+ n.hasOwnProperty(e) && (t[e] = n[e]);
353
+ return t;
354
+ }
355
+ function he(t, n) {
356
+ return Math.round(t.top) === Math.round(n.top) && Math.round(t.left) === Math.round(n.left) && Math.round(t.height) === Math.round(n.height) && Math.round(t.width) === Math.round(n.width);
357
+ }
358
+ var Lt;
359
+ function fn(t, n) {
360
+ return function() {
361
+ if (!Lt) {
362
+ var e = arguments, o = this;
363
+ e.length === 1 ? t.call(o, e[0]) : t.apply(o, e), Lt = setTimeout(function() {
364
+ Lt = void 0;
365
+ }, n);
366
+ }
367
+ };
368
+ }
369
+ function so() {
370
+ clearTimeout(Lt), Lt = void 0;
371
+ }
372
+ function gn(t, n, e) {
373
+ t.scrollLeft += n, t.scrollTop += e;
374
+ }
375
+ function mn(t) {
376
+ var n = window.Polymer, e = window.jQuery || window.Zepto;
377
+ return n && n.dom ? n.dom(t).cloneNode(!0) : e ? e(t).clone(!0)[0] : t.cloneNode(!0);
378
+ }
379
+ function vn(t, n, e) {
380
+ var o = {};
381
+ return Array.from(t.children).forEach(function(r) {
382
+ var a, i, s, l;
383
+ if (!(!lt(r, n.draggable, t, !1) || r.animated || r === e)) {
384
+ var d = B(r);
385
+ o.left = Math.min((a = o.left) !== null && a !== void 0 ? a : 1 / 0, d.left), o.top = Math.min((i = o.top) !== null && i !== void 0 ? i : 1 / 0, d.top), o.right = Math.max((s = o.right) !== null && s !== void 0 ? s : -1 / 0, d.right), o.bottom = Math.max((l = o.bottom) !== null && l !== void 0 ? l : -1 / 0, d.bottom);
386
+ }
387
+ }), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
388
+ }
389
+ var ot = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
390
+ function co() {
391
+ var t = [], n;
392
+ return {
393
+ captureAnimationState: function() {
394
+ if (t = [], !!this.options.animation) {
395
+ var e = [].slice.call(this.el.children);
396
+ e.forEach(function(o) {
397
+ if (!(m(o, "display") === "none" || o === v.ghost)) {
398
+ t.push({
399
+ target: o,
400
+ rect: B(o)
401
+ });
402
+ var r = ct({}, t[t.length - 1].rect);
403
+ if (o.thisAnimationDuration) {
404
+ var a = Ot(o, !0);
405
+ a && (r.top -= a.f, r.left -= a.e);
406
+ }
407
+ o.fromRect = r;
408
+ }
409
+ });
410
+ }
411
+ },
412
+ addAnimationState: function(e) {
413
+ t.push(e);
414
+ },
415
+ removeAnimationState: function(e) {
416
+ t.splice(ao(t, {
417
+ target: e
418
+ }), 1);
419
+ },
420
+ animateAll: function(e) {
421
+ var o = this;
422
+ if (!this.options.animation) {
423
+ clearTimeout(n), typeof e == "function" && e();
424
+ return;
425
+ }
426
+ var r = !1, a = 0;
427
+ t.forEach(function(i) {
428
+ var s = 0, l = i.target, d = l.fromRect, u = B(l), p = l.prevFromRect, y = l.prevToRect, h = i.rect, M = Ot(l, !0);
429
+ M && (u.top -= M.f, u.left -= M.e), l.toRect = u, l.thisAnimationDuration && he(p, u) && !he(d, u) && // Make sure animatingRect is on line between toRect & fromRect
430
+ (h.top - u.top) / (h.left - u.left) === (d.top - u.top) / (d.left - u.left) && (s = po(h, p, y, o.options)), he(u, d) || (l.prevFromRect = d, l.prevToRect = u, s || (s = o.options.animation), o.animate(l, h, u, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(l.animationResetTimer), l.animationResetTimer = setTimeout(function() {
431
+ l.animationTime = 0, l.prevFromRect = null, l.fromRect = null, l.prevToRect = null, l.thisAnimationDuration = null;
432
+ }, s), l.thisAnimationDuration = s);
433
+ }), clearTimeout(n), r ? n = setTimeout(function() {
434
+ typeof e == "function" && e();
435
+ }, a) : typeof e == "function" && e(), t = [];
436
+ },
437
+ animate: function(e, o, r, a) {
438
+ if (a) {
439
+ m(e, "transition", ""), m(e, "transform", "");
440
+ var i = Ot(this.el), s = i && i.a, l = i && i.d, d = (o.left - r.left) / (s || 1), u = (o.top - r.top) / (l || 1);
441
+ e.animatingX = !!d, e.animatingY = !!u, m(e, "transform", "translate3d(" + d + "px," + u + "px,0)"), this.forRepaintDummy = uo(e), m(e, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), m(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
442
+ m(e, "transition", ""), m(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
443
+ }, a);
444
+ }
445
+ }
446
+ };
447
+ }
448
+ function uo(t) {
449
+ return t.offsetWidth;
450
+ }
451
+ function po(t, n, e, o) {
452
+ return Math.sqrt(Math.pow(n.top - t.top, 2) + Math.pow(n.left - t.left, 2)) / Math.sqrt(Math.pow(n.top - e.top, 2) + Math.pow(n.left - e.left, 2)) * o.animation;
453
+ }
454
+ var St = [], fe = {
455
+ initializeByDefault: !0
456
+ }, Ft = {
457
+ mount: function(t) {
458
+ for (var n in fe)
459
+ fe.hasOwnProperty(n) && !(n in t) && (t[n] = fe[n]);
460
+ St.forEach(function(e) {
461
+ if (e.pluginName === t.pluginName)
462
+ throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
463
+ }), St.push(t);
464
+ },
465
+ pluginEvent: function(t, n, e) {
466
+ var o = this;
467
+ this.eventCanceled = !1, e.cancel = function() {
468
+ o.eventCanceled = !0;
469
+ };
470
+ var r = t + "Global";
471
+ St.forEach(function(a) {
472
+ n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r](ct({
473
+ sortable: n
474
+ }, e)), n.options[a.pluginName] && n[a.pluginName][t] && n[a.pluginName][t](ct({
475
+ sortable: n
476
+ }, e)));
477
+ });
478
+ },
479
+ initializePlugins: function(t, n, e, o) {
480
+ St.forEach(function(i) {
481
+ var s = i.pluginName;
482
+ if (!(!t.options[s] && !i.initializeByDefault)) {
483
+ var l = new i(t, n, t.options);
484
+ l.sortable = t, l.options = t.options, t[s] = l, dt(e, l.defaults);
485
+ }
486
+ });
487
+ for (var r in t.options)
488
+ if (t.options.hasOwnProperty(r)) {
489
+ var a = this.modifyOption(t, r, t.options[r]);
490
+ typeof a < "u" && (t.options[r] = a);
491
+ }
492
+ },
493
+ getEventProperties: function(t, n) {
494
+ var e = {};
495
+ return St.forEach(function(o) {
496
+ typeof o.eventProperties == "function" && dt(e, o.eventProperties.call(n[o.pluginName], t));
497
+ }), e;
498
+ },
499
+ modifyOption: function(t, n, e) {
500
+ var o;
501
+ return St.forEach(function(r) {
502
+ t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (o = r.optionListeners[n].call(t[r.pluginName], e));
503
+ }), o;
504
+ }
505
+ };
506
+ function ho(t) {
507
+ var n = t.sortable, e = t.rootEl, o = t.name, r = t.targetEl, a = t.cloneEl, i = t.toEl, s = t.fromEl, l = t.oldIndex, d = t.newIndex, u = t.oldDraggableIndex, p = t.newDraggableIndex, y = t.originalEvent, h = t.putSortable, M = t.extraEventProperties;
508
+ if (n = n || e && e[ot], !!n) {
509
+ var w, F = n.options, Y = "on" + o.charAt(0).toUpperCase() + o.substr(1);
510
+ window.CustomEvent && !pt && !Bt ? w = new CustomEvent(o, {
511
+ bubbles: !0,
512
+ cancelable: !0
513
+ }) : (w = document.createEvent("Event"), w.initEvent(o, !0, !0)), w.to = i || e, w.from = s || e, w.item = r || e, w.clone = a, w.oldIndex = l, w.newIndex = d, w.oldDraggableIndex = u, w.newDraggableIndex = p, w.originalEvent = y, w.pullMode = h ? h.lastPutMode : void 0;
514
+ var V = ct(ct({}, M), Ft.getEventProperties(o, n));
515
+ for (var H in V)
516
+ w[H] = V[H];
517
+ e && e.dispatchEvent(w), F[Y] && F[Y].call(n, w);
518
+ }
519
+ }
520
+ var fo = ["evt"], Z = function(t, n) {
521
+ var e = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = e.evt, r = oo(e, fo);
522
+ Ft.pluginEvent.bind(v)(t, n, ct({
523
+ dragEl: c,
524
+ parentEl: G,
525
+ ghostEl: b,
526
+ rootEl: L,
527
+ nextEl: bt,
528
+ lastDownEl: Jt,
529
+ cloneEl: R,
530
+ cloneHidden: ft,
531
+ dragStarted: At,
532
+ putSortable: $,
533
+ activeSortable: v.active,
534
+ originalEvent: o,
535
+ oldIndex: Tt,
536
+ oldDraggableIndex: Ht,
537
+ newIndex: et,
538
+ newDraggableIndex: ht,
539
+ hideGhostForTarget: wn,
540
+ unhideGhostForTarget: Sn,
541
+ cloneNowHidden: function() {
542
+ ft = !0;
543
+ },
544
+ cloneNowShown: function() {
545
+ ft = !1;
546
+ },
547
+ dispatchSortableEvent: function(a) {
548
+ q({
549
+ sortable: n,
550
+ name: a,
551
+ originalEvent: o
552
+ });
553
+ }
554
+ }, r));
555
+ };
556
+ function q(t) {
557
+ ho(ct({
558
+ putSortable: $,
559
+ cloneEl: R,
560
+ targetEl: c,
561
+ rootEl: L,
562
+ oldIndex: Tt,
563
+ oldDraggableIndex: Ht,
564
+ newIndex: et,
565
+ newDraggableIndex: ht
566
+ }, t));
567
+ }
568
+ var c, G, b, L, bt, Jt, R, ft, Tt, et, Ht, ht, $t, $, Et = !1, oe = !1, re = [], mt, at, ge, me, qe, Je, At, Ct, Rt, Yt = !1, zt = !1, Zt, W, ve = [], De = !1, ie = [], ce = typeof document < "u", Vt = un, Ze = Bt || pt ? "cssFloat" : "float", go = ce && !dn && !un && "draggable" in document.createElement("div"), bn = function() {
569
+ if (ce) {
570
+ if (pt)
571
+ return !1;
572
+ var t = document.createElement("x");
573
+ return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
574
+ }
575
+ }(), yn = function(t, n) {
576
+ var e = m(t), o = parseInt(e.width) - parseInt(e.paddingLeft) - parseInt(e.paddingRight) - parseInt(e.borderLeftWidth) - parseInt(e.borderRightWidth), r = Mt(t, 0, n), a = Mt(t, 1, n), i = r && m(r), s = a && m(a), l = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + B(r).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + B(a).width;
577
+ if (e.display === "flex")
578
+ return e.flexDirection === "column" || e.flexDirection === "column-reverse" ? "vertical" : "horizontal";
579
+ if (e.display === "grid")
580
+ return e.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
581
+ if (r && i.float && i.float !== "none") {
582
+ var u = i.float === "left" ? "left" : "right";
583
+ return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
584
+ }
585
+ return r && (i.display === "block" || i.display === "flex" || i.display === "table" || i.display === "grid" || l >= o && e[Ze] === "none" || a && e[Ze] === "none" && l + d > o) ? "vertical" : "horizontal";
586
+ }, mo = function(t, n, e) {
587
+ var o = e ? t.left : t.top, r = e ? t.right : t.bottom, a = e ? t.width : t.height, i = e ? n.left : n.top, s = e ? n.right : n.bottom, l = e ? n.width : n.height;
588
+ return o === i || r === s || o + a / 2 === i + l / 2;
589
+ }, vo = function(t, n) {
590
+ var e;
591
+ return re.some(function(o) {
592
+ var r = o[ot].options.emptyInsertThreshold;
593
+ if (!(!r || Pe(o))) {
594
+ var a = B(o), i = t >= a.left - r && t <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
595
+ if (i && s)
596
+ return e = o;
597
+ }
598
+ }), e;
599
+ }, _n = function(t) {
600
+ function n(r, a) {
601
+ return function(i, s, l, d) {
602
+ var u = i.options.group.name && s.options.group.name && i.options.group.name === s.options.group.name;
603
+ if (r == null && (a || u))
604
+ return !0;
605
+ if (r == null || r === !1)
606
+ return !1;
607
+ if (a && r === "clone")
608
+ return r;
609
+ if (typeof r == "function")
610
+ return n(r(i, s, l, d), a)(i, s, l, d);
611
+ var p = (a ? i : s).options.group.name;
612
+ return r === !0 || typeof r == "string" && r === p || r.join && r.indexOf(p) > -1;
613
+ };
614
+ }
615
+ var e = {}, o = t.group;
616
+ (!o || qt(o) != "object") && (o = {
617
+ name: o
618
+ }), e.name = o.name, e.checkPull = n(o.pull, !0), e.checkPut = n(o.put), e.revertClone = o.revertClone, t.group = e;
619
+ }, wn = function() {
620
+ !bn && b && m(b, "display", "none");
621
+ }, Sn = function() {
622
+ !bn && b && m(b, "display", "");
623
+ };
624
+ ce && !dn && document.addEventListener("click", function(t) {
625
+ if (oe)
626
+ return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), oe = !1, !1;
627
+ }, !0);
628
+ var vt = function(t) {
629
+ if (c) {
630
+ t = t.touches ? t.touches[0] : t;
631
+ var n = vo(t.clientX, t.clientY);
632
+ if (n) {
633
+ var e = {};
634
+ for (var o in t)
635
+ t.hasOwnProperty(o) && (e[o] = t[o]);
636
+ e.target = e.rootEl = n, e.preventDefault = void 0, e.stopPropagation = void 0, n[ot]._onDragOver(e);
637
+ }
638
+ }
639
+ }, bo = function(t) {
640
+ c && c.parentNode[ot]._isOutsideThisEl(t.target);
641
+ };
642
+ function v(t, n) {
643
+ if (!(t && t.nodeType && t.nodeType === 1))
644
+ throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));
645
+ this.el = t, this.options = n = dt({}, n), t[ot] = this;
646
+ var e = {
647
+ group: null,
648
+ sort: !0,
649
+ disabled: !1,
650
+ store: null,
651
+ handle: null,
652
+ draggable: /^[uo]l$/i.test(t.nodeName) ? ">li" : ">*",
653
+ swapThreshold: 1,
654
+ // percentage; 0 <= x <= 1
655
+ invertSwap: !1,
656
+ // invert always
657
+ invertedSwapThreshold: null,
658
+ // will be set to same as swapThreshold if default
659
+ removeCloneOnHide: !0,
660
+ direction: function() {
661
+ return yn(t, this.options);
662
+ },
663
+ ghostClass: "sortable-ghost",
664
+ chosenClass: "sortable-chosen",
665
+ dragClass: "sortable-drag",
666
+ ignore: "a, img",
667
+ filter: null,
668
+ preventOnFilter: !0,
669
+ animation: 0,
670
+ easing: null,
671
+ setData: function(a, i) {
672
+ a.setData("Text", i.textContent);
673
+ },
674
+ dropBubble: !1,
675
+ dragoverBubble: !1,
676
+ dataIdAttr: "data-id",
677
+ delay: 0,
678
+ delayOnTouchOnly: !1,
679
+ touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
680
+ forceFallback: !1,
681
+ fallbackClass: "sortable-fallback",
682
+ fallbackOnBody: !1,
683
+ fallbackTolerance: 0,
684
+ fallbackOffset: {
685
+ x: 0,
686
+ y: 0
687
+ },
688
+ supportPointer: v.supportPointer !== !1 && "PointerEvent" in window && !Pt,
689
+ emptyInsertThreshold: 5
690
+ };
691
+ Ft.initializePlugins(this, t, e);
692
+ for (var o in e)
693
+ !(o in n) && (n[o] = e[o]);
694
+ _n(n);
695
+ for (var r in this)
696
+ r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
697
+ this.nativeDraggable = n.forceFallback ? !1 : go, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? I(t, "pointerdown", this._onTapStart) : (I(t, "mousedown", this._onTapStart), I(t, "touchstart", this._onTapStart)), this.nativeDraggable && (I(t, "dragover", this), I(t, "dragenter", this)), re.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), dt(this, co());
698
+ }
699
+ v.prototype = /** @lends Sortable.prototype */
700
+ {
701
+ constructor: v,
702
+ _isOutsideThisEl: function(t) {
703
+ !this.el.contains(t) && t !== this.el && (Ct = null);
704
+ },
705
+ _getDirection: function(t, n) {
706
+ return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, c) : this.options.direction;
707
+ },
708
+ _onTapStart: function(t) {
709
+ if (t.cancelable) {
710
+ var n = this, e = this.el, o = this.options, r = o.preventOnFilter, a = t.type, i = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (i || t).target, l = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, d = o.filter;
711
+ if (To(e), !c && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || o.disabled) && !l.isContentEditable && !(!this.nativeDraggable && Pt && s && s.tagName.toUpperCase() === "SELECT") && (s = lt(s, o.draggable, e, !1), !(s && s.animated) && Jt !== s)) {
712
+ if (Tt = rt(s), Ht = rt(s, o.draggable), typeof d == "function") {
713
+ if (d.call(this, t, s, this)) {
714
+ q({
715
+ sortable: n,
716
+ rootEl: l,
717
+ name: "filter",
718
+ targetEl: s,
719
+ toEl: e,
720
+ fromEl: e
721
+ }), Z("filter", n, {
722
+ evt: t
723
+ }), r && t.cancelable && t.preventDefault();
724
+ return;
725
+ }
726
+ } else if (d && (d = d.split(",").some(function(u) {
727
+ if (u = lt(l, u.trim(), e, !1), u)
728
+ return q({
729
+ sortable: n,
730
+ rootEl: u,
731
+ name: "filter",
732
+ targetEl: s,
733
+ fromEl: e,
734
+ toEl: e
735
+ }), Z("filter", n, {
736
+ evt: t
737
+ }), !0;
738
+ }), d)) {
739
+ r && t.cancelable && t.preventDefault();
740
+ return;
741
+ }
742
+ o.handle && !lt(l, o.handle, e, !1) || this._prepareDragStart(t, i, s);
743
+ }
744
+ }
745
+ },
746
+ _prepareDragStart: function(t, n, e) {
747
+ var o = this, r = o.el, a = o.options, i = r.ownerDocument, s;
748
+ if (e && !c && e.parentNode === r) {
749
+ var l = B(e);
750
+ if (L = r, c = e, G = c.parentNode, bt = c.nextSibling, Jt = e, $t = a.group, v.dragged = c, mt = {
751
+ target: c,
752
+ clientX: (n || t).clientX,
753
+ clientY: (n || t).clientY
754
+ }, qe = mt.clientX - l.left, Je = mt.clientY - l.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, c.style["will-change"] = "all", s = function() {
755
+ if (Z("delayEnded", o, {
756
+ evt: t
757
+ }), v.eventCanceled) {
758
+ o._onDrop();
759
+ return;
760
+ }
761
+ o._disableDelayedDragEvents(), !$e && o.nativeDraggable && (c.draggable = !0), o._triggerDragStart(t, n), q({
762
+ sortable: o,
763
+ name: "choose",
764
+ originalEvent: t
765
+ }), tt(c, a.chosenClass, !0);
766
+ }, a.ignore.split(",").forEach(function(d) {
767
+ hn(c, d.trim(), be);
768
+ }), I(i, "dragover", vt), I(i, "mousemove", vt), I(i, "touchmove", vt), I(i, "mouseup", o._onDrop), I(i, "touchend", o._onDrop), I(i, "touchcancel", o._onDrop), $e && this.nativeDraggable && (this.options.touchStartThreshold = 4, c.draggable = !0), Z("delayStart", this, {
769
+ evt: t
770
+ }), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Bt || pt))) {
771
+ if (v.eventCanceled) {
772
+ this._onDrop();
773
+ return;
774
+ }
775
+ I(i, "mouseup", o._disableDelayedDrag), I(i, "touchend", o._disableDelayedDrag), I(i, "touchcancel", o._disableDelayedDrag), I(i, "mousemove", o._delayedDragTouchMoveHandler), I(i, "touchmove", o._delayedDragTouchMoveHandler), a.supportPointer && I(i, "pointermove", o._delayedDragTouchMoveHandler), o._dragStartTimer = setTimeout(s, a.delay);
776
+ } else
777
+ s();
778
+ }
779
+ },
780
+ _delayedDragTouchMoveHandler: function(t) {
781
+ var n = t.touches ? t.touches[0] : t;
782
+ Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
783
+ },
784
+ _disableDelayedDrag: function() {
785
+ c && be(c), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
786
+ },
787
+ _disableDelayedDragEvents: function() {
788
+ var t = this.el.ownerDocument;
789
+ T(t, "mouseup", this._disableDelayedDrag), T(t, "touchend", this._disableDelayedDrag), T(t, "touchcancel", this._disableDelayedDrag), T(t, "mousemove", this._delayedDragTouchMoveHandler), T(t, "touchmove", this._delayedDragTouchMoveHandler), T(t, "pointermove", this._delayedDragTouchMoveHandler);
790
+ },
791
+ _triggerDragStart: function(t, n) {
792
+ n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? I(document, "pointermove", this._onTouchMove) : n ? I(document, "touchmove", this._onTouchMove) : I(document, "mousemove", this._onTouchMove) : (I(c, "dragend", this), I(L, "dragstart", this._onDragStart));
793
+ try {
794
+ document.selection ? Kt(function() {
795
+ document.selection.empty();
796
+ }) : window.getSelection().removeAllRanges();
797
+ } catch {
798
+ }
799
+ },
800
+ _dragStarted: function(t, n) {
801
+ if (Et = !1, L && c) {
802
+ Z("dragStarted", this, {
803
+ evt: n
804
+ }), this.nativeDraggable && I(document, "dragover", bo);
805
+ var e = this.options;
806
+ !t && tt(c, e.dragClass, !1), tt(c, e.ghostClass, !0), v.active = this, t && this._appendGhost(), q({
807
+ sortable: this,
808
+ name: "start",
809
+ originalEvent: n
810
+ });
811
+ } else
812
+ this._nulling();
813
+ },
814
+ _emulateDragOver: function() {
815
+ if (at) {
816
+ this._lastX = at.clientX, this._lastY = at.clientY, wn();
817
+ for (var t = document.elementFromPoint(at.clientX, at.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(at.clientX, at.clientY), t !== n); )
818
+ n = t;
819
+ if (c.parentNode[ot]._isOutsideThisEl(t), n)
820
+ do {
821
+ if (n[ot]) {
822
+ var e = void 0;
823
+ if (e = n[ot]._onDragOver({
824
+ clientX: at.clientX,
825
+ clientY: at.clientY,
826
+ target: t,
827
+ rootEl: n
828
+ }), e && !this.options.dragoverBubble)
829
+ break;
830
+ }
831
+ t = n;
832
+ } while (n = n.parentNode);
833
+ Sn();
834
+ }
835
+ },
836
+ _onTouchMove: function(t) {
837
+ if (mt) {
838
+ var n = this.options, e = n.fallbackTolerance, o = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = b && Ot(b, !0), i = b && a && a.a, s = b && a && a.d, l = Vt && W && We(W), d = (r.clientX - mt.clientX + o.x) / (i || 1) + (l ? l[0] - ve[0] : 0) / (i || 1), u = (r.clientY - mt.clientY + o.y) / (s || 1) + (l ? l[1] - ve[1] : 0) / (s || 1);
839
+ if (!v.active && !Et) {
840
+ if (e && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < e)
841
+ return;
842
+ this._onDragStart(t, !0);
843
+ }
844
+ if (b) {
845
+ a ? (a.e += d - (ge || 0), a.f += u - (me || 0)) : a = {
846
+ a: 1,
847
+ b: 0,
848
+ c: 0,
849
+ d: 1,
850
+ e: d,
851
+ f: u
852
+ };
853
+ var p = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
854
+ m(b, "webkitTransform", p), m(b, "mozTransform", p), m(b, "msTransform", p), m(b, "transform", p), ge = d, me = u, at = r;
855
+ }
856
+ t.cancelable && t.preventDefault();
857
+ }
858
+ },
859
+ _appendGhost: function() {
860
+ if (!b) {
861
+ var t = this.options.fallbackOnBody ? document.body : L, n = B(c, !0, Vt, !0, t), e = this.options;
862
+ if (Vt) {
863
+ for (W = t; m(W, "position") === "static" && m(W, "transform") === "none" && W !== document; )
864
+ W = W.parentNode;
865
+ W !== document.body && W !== document.documentElement ? (W === document && (W = st()), n.top += W.scrollTop, n.left += W.scrollLeft) : W = st(), ve = We(W);
866
+ }
867
+ b = c.cloneNode(!0), tt(b, e.ghostClass, !1), tt(b, e.fallbackClass, !0), tt(b, e.dragClass, !0), m(b, "transition", ""), m(b, "transform", ""), m(b, "box-sizing", "border-box"), m(b, "margin", 0), m(b, "top", n.top), m(b, "left", n.left), m(b, "width", n.width), m(b, "height", n.height), m(b, "opacity", "0.8"), m(b, "position", Vt ? "absolute" : "fixed"), m(b, "zIndex", "100000"), m(b, "pointerEvents", "none"), v.ghost = b, t.appendChild(b), m(b, "transform-origin", qe / parseInt(b.style.width) * 100 + "% " + Je / parseInt(b.style.height) * 100 + "%");
868
+ }
869
+ },
870
+ _onDragStart: function(t, n) {
871
+ var e = this, o = t.dataTransfer, r = e.options;
872
+ if (Z("dragStart", this, {
873
+ evt: t
874
+ }), v.eventCanceled) {
875
+ this._onDrop();
876
+ return;
877
+ }
878
+ Z("setupClone", this), v.eventCanceled || (R = mn(c), R.removeAttribute("id"), R.draggable = !1, R.style["will-change"] = "", this._hideClone(), tt(R, this.options.chosenClass, !1), v.clone = R), e.cloneId = Kt(function() {
879
+ Z("clone", e), !v.eventCanceled && (e.options.removeCloneOnHide || L.insertBefore(R, c), e._hideClone(), q({
880
+ sortable: e,
881
+ name: "clone"
882
+ }));
883
+ }), !n && tt(c, r.dragClass, !0), n ? (oe = !0, e._loopId = setInterval(e._emulateDragOver, 50)) : (T(document, "mouseup", e._onDrop), T(document, "touchend", e._onDrop), T(document, "touchcancel", e._onDrop), o && (o.effectAllowed = "move", r.setData && r.setData.call(e, o, c)), I(document, "drop", e), m(c, "transform", "translateZ(0)")), Et = !0, e._dragStartId = Kt(e._dragStarted.bind(e, n, t)), I(document, "selectstart", e), At = !0, Pt && m(document.body, "user-select", "none");
884
+ },
885
+ // Returns true - if no further action is needed (either inserted or another condition)
886
+ _onDragOver: function(t) {
887
+ var n = this.el, e = t.target, o, r, a, i = this.options, s = i.group, l = v.active, d = $t === s, u = i.sort, p = $ || l, y, h = this, M = !1;
888
+ if (De)
889
+ return;
890
+ function w(U, jt) {
891
+ Z(U, h, ct({
892
+ evt: t,
893
+ isOwner: d,
894
+ axis: y ? "vertical" : "horizontal",
895
+ revert: a,
896
+ dragRect: o,
897
+ targetRect: r,
898
+ canSort: u,
899
+ fromSortable: p,
900
+ target: e,
901
+ completed: Y,
902
+ onMove: function(Ut, ue) {
903
+ return Wt(L, n, c, o, Ut, B(Ut), t, ue);
904
+ },
905
+ changed: V
906
+ }, jt));
907
+ }
908
+ function F() {
909
+ w("dragOverAnimationCapture"), h.captureAnimationState(), h !== p && p.captureAnimationState();
910
+ }
911
+ function Y(U) {
912
+ return w("dragOverCompleted", {
913
+ insertion: U
914
+ }), U && (d ? l._hideClone() : l._showClone(h), h !== p && (tt(c, $ ? $.options.ghostClass : l.options.ghostClass, !1), tt(c, i.ghostClass, !0)), $ !== h && h !== v.active ? $ = h : h === v.active && $ && ($ = null), p === h && (h._ignoreWhileAnimating = e), h.animateAll(function() {
915
+ w("dragOverAnimationComplete"), h._ignoreWhileAnimating = null;
916
+ }), h !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (e === c && !c.animated || e === n && !e.animated) && (Ct = null), !i.dragoverBubble && !t.rootEl && e !== document && (c.parentNode[ot]._isOutsideThisEl(t.target), !U && vt(t)), !i.dragoverBubble && t.stopPropagation && t.stopPropagation(), M = !0;
917
+ }
918
+ function V() {
919
+ et = rt(c), ht = rt(c, i.draggable), q({
920
+ sortable: h,
921
+ name: "change",
922
+ toEl: n,
923
+ newIndex: et,
924
+ newDraggableIndex: ht,
925
+ originalEvent: t
926
+ });
927
+ }
928
+ if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), e = lt(e, i.draggable, n, !0), w("dragOver"), v.eventCanceled)
929
+ return M;
930
+ if (c.contains(t.target) || e.animated && e.animatingX && e.animatingY || h._ignoreWhileAnimating === e)
931
+ return Y(!1);
932
+ if (oe = !1, l && !i.disabled && (d ? u || (a = G !== L) : $ === this || (this.lastPutMode = $t.checkPull(this, l, c, t)) && s.checkPut(this, l, c, t))) {
933
+ if (y = this._getDirection(t, e) === "vertical", o = B(c), w("dragOverValid"), v.eventCanceled)
934
+ return M;
935
+ if (a)
936
+ return G = L, F(), this._hideClone(), w("revert"), v.eventCanceled || (bt ? L.insertBefore(c, bt) : L.appendChild(c)), Y(!0);
937
+ var H = Pe(n, i.draggable);
938
+ if (!H || So(t, y, this) && !H.animated) {
939
+ if (H === c)
940
+ return Y(!1);
941
+ if (H && n === t.target && (e = H), e && (r = B(e)), Wt(L, n, c, o, e, r, t, !!e) !== !1)
942
+ return F(), H && H.nextSibling ? n.insertBefore(c, H.nextSibling) : n.appendChild(c), G = n, V(), Y(!0);
943
+ } else if (H && wo(t, y, this)) {
944
+ var k = Mt(n, 0, i, !0);
945
+ if (k === c)
946
+ return Y(!1);
947
+ if (e = k, r = B(e), Wt(L, n, c, o, e, r, t, !1) !== !1)
948
+ return F(), n.insertBefore(c, k), G = n, V(), Y(!0);
949
+ } else if (e.parentNode === n) {
950
+ r = B(e);
951
+ var g = 0, S, _ = c.parentNode !== n, D = !mo(c.animated && c.toRect || o, e.animated && e.toRect || r, y), A = y ? "top" : "left", f = Ve(e, "top", "top") || Ve(c, "top", "top"), C = f ? f.scrollTop : void 0;
952
+ Ct !== e && (S = r[A], Yt = !1, zt = !D && i.invertSwap || _), g = Co(t, e, r, y, D ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, zt, Ct === e);
953
+ var N;
954
+ if (g !== 0) {
955
+ var E = rt(c);
956
+ do
957
+ E -= g, N = G.children[E];
958
+ while (N && (m(N, "display") === "none" || N === b));
959
+ }
960
+ if (g === 0 || N === e)
961
+ return Y(!1);
962
+ Ct = e, Rt = g;
963
+ var O = e.nextElementSibling, P = !1;
964
+ P = g === 1;
965
+ var j = Wt(L, n, c, o, e, r, t, P);
966
+ if (j !== !1)
967
+ return (j === 1 || j === -1) && (P = j === 1), De = !0, setTimeout(_o, 30), F(), P && !O ? n.appendChild(c) : e.parentNode.insertBefore(c, P ? O : e), f && gn(f, 0, C - f.scrollTop), G = c.parentNode, S !== void 0 && !zt && (Zt = Math.abs(S - B(e)[A])), V(), Y(!0);
968
+ }
969
+ if (n.contains(c))
970
+ return Y(!1);
971
+ }
972
+ return !1;
973
+ },
974
+ _ignoreWhileAnimating: null,
975
+ _offMoveEvents: function() {
976
+ T(document, "mousemove", this._onTouchMove), T(document, "touchmove", this._onTouchMove), T(document, "pointermove", this._onTouchMove), T(document, "dragover", vt), T(document, "mousemove", vt), T(document, "touchmove", vt);
977
+ },
978
+ _offUpEvents: function() {
979
+ var t = this.el.ownerDocument;
980
+ T(t, "mouseup", this._onDrop), T(t, "touchend", this._onDrop), T(t, "pointerup", this._onDrop), T(t, "touchcancel", this._onDrop), T(document, "selectstart", this);
981
+ },
982
+ _onDrop: function(t) {
983
+ var n = this.el, e = this.options;
984
+ if (et = rt(c), ht = rt(c, e.draggable), Z("drop", this, {
985
+ evt: t
986
+ }), G = c && c.parentNode, et = rt(c), ht = rt(c, e.draggable), v.eventCanceled) {
987
+ this._nulling();
988
+ return;
989
+ }
990
+ Et = !1, zt = !1, Yt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Te(this.cloneId), Te(this._dragStartId), this.nativeDraggable && (T(document, "drop", this), T(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Pt && m(document.body, "user-select", ""), m(c, "transform", ""), t && (At && (t.cancelable && t.preventDefault(), !e.dropBubble && t.stopPropagation()), b && b.parentNode && b.parentNode.removeChild(b), (L === G || $ && $.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), c && (this.nativeDraggable && T(c, "dragend", this), be(c), c.style["will-change"] = "", At && !Et && tt(c, $ ? $.options.ghostClass : this.options.ghostClass, !1), tt(c, this.options.chosenClass, !1), q({
991
+ sortable: this,
992
+ name: "unchoose",
993
+ toEl: G,
994
+ newIndex: null,
995
+ newDraggableIndex: null,
996
+ originalEvent: t
997
+ }), L !== G ? (et >= 0 && (q({
998
+ rootEl: G,
999
+ name: "add",
1000
+ toEl: G,
1001
+ fromEl: L,
1002
+ originalEvent: t
1003
+ }), q({
1004
+ sortable: this,
1005
+ name: "remove",
1006
+ toEl: G,
1007
+ originalEvent: t
1008
+ }), q({
1009
+ rootEl: G,
1010
+ name: "sort",
1011
+ toEl: G,
1012
+ fromEl: L,
1013
+ originalEvent: t
1014
+ }), q({
1015
+ sortable: this,
1016
+ name: "sort",
1017
+ toEl: G,
1018
+ originalEvent: t
1019
+ })), $ && $.save()) : et !== Tt && et >= 0 && (q({
1020
+ sortable: this,
1021
+ name: "update",
1022
+ toEl: G,
1023
+ originalEvent: t
1024
+ }), q({
1025
+ sortable: this,
1026
+ name: "sort",
1027
+ toEl: G,
1028
+ originalEvent: t
1029
+ })), v.active && ((et == null || et === -1) && (et = Tt, ht = Ht), q({
1030
+ sortable: this,
1031
+ name: "end",
1032
+ toEl: G,
1033
+ originalEvent: t
1034
+ }), this.save()))), this._nulling();
1035
+ },
1036
+ _nulling: function() {
1037
+ Z("nulling", this), L = c = G = b = bt = R = Jt = ft = mt = at = At = et = ht = Tt = Ht = Ct = Rt = $ = $t = v.dragged = v.ghost = v.clone = v.active = null, ie.forEach(function(t) {
1038
+ t.checked = !0;
1039
+ }), ie.length = ge = me = 0;
1040
+ },
1041
+ handleEvent: function(t) {
1042
+ switch (t.type) {
1043
+ case "drop":
1044
+ case "dragend":
1045
+ this._onDrop(t);
1046
+ break;
1047
+ case "dragenter":
1048
+ case "dragover":
1049
+ c && (this._onDragOver(t), yo(t));
1050
+ break;
1051
+ case "selectstart":
1052
+ t.preventDefault();
1053
+ break;
1054
+ }
1055
+ },
1056
+ /**
1057
+ * Serializes the item into an array of string.
1058
+ * @returns {String[]}
1059
+ */
1060
+ toArray: function() {
1061
+ for (var t = [], n, e = this.el.children, o = 0, r = e.length, a = this.options; o < r; o++)
1062
+ n = e[o], lt(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || Do(n));
1063
+ return t;
1064
+ },
1065
+ /**
1066
+ * Sorts the elements according to the array.
1067
+ * @param {String[]} order order of the items
1068
+ */
1069
+ sort: function(t, n) {
1070
+ var e = {}, o = this.el;
1071
+ this.toArray().forEach(function(r, a) {
1072
+ var i = o.children[a];
1073
+ lt(i, this.options.draggable, o, !1) && (e[r] = i);
1074
+ }, this), n && this.captureAnimationState(), t.forEach(function(r) {
1075
+ e[r] && (o.removeChild(e[r]), o.appendChild(e[r]));
1076
+ }), n && this.animateAll();
1077
+ },
1078
+ /**
1079
+ * Save the current sorting
1080
+ */
1081
+ save: function() {
1082
+ var t = this.options.store;
1083
+ t && t.set && t.set(this);
1084
+ },
1085
+ /**
1086
+ * 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.
1087
+ * @param {HTMLElement} el
1088
+ * @param {String} [selector] default: `options.draggable`
1089
+ * @returns {HTMLElement|null}
1090
+ */
1091
+ closest: function(t, n) {
1092
+ return lt(t, n || this.options.draggable, this.el, !1);
1093
+ },
1094
+ /**
1095
+ * Set/get option
1096
+ * @param {string} name
1097
+ * @param {*} [value]
1098
+ * @returns {*}
1099
+ */
1100
+ option: function(t, n) {
1101
+ var e = this.options;
1102
+ if (n === void 0)
1103
+ return e[t];
1104
+ var o = Ft.modifyOption(this, t, n);
1105
+ typeof o < "u" ? e[t] = o : e[t] = n, t === "group" && _n(e);
1106
+ },
1107
+ /**
1108
+ * Destroy
1109
+ */
1110
+ destroy: function() {
1111
+ Z("destroy", this);
1112
+ var t = this.el;
1113
+ t[ot] = null, T(t, "mousedown", this._onTapStart), T(t, "touchstart", this._onTapStart), T(t, "pointerdown", this._onTapStart), this.nativeDraggable && (T(t, "dragover", this), T(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
1114
+ n.removeAttribute("draggable");
1115
+ }), this._onDrop(), this._disableDelayedDragEvents(), re.splice(re.indexOf(this.el), 1), this.el = t = null;
1116
+ },
1117
+ _hideClone: function() {
1118
+ if (!ft) {
1119
+ if (Z("hideClone", this), v.eventCanceled)
1120
+ return;
1121
+ m(R, "display", "none"), this.options.removeCloneOnHide && R.parentNode && R.parentNode.removeChild(R), ft = !0;
1122
+ }
1123
+ },
1124
+ _showClone: function(t) {
1125
+ if (t.lastPutMode !== "clone") {
1126
+ this._hideClone();
1127
+ return;
1128
+ }
1129
+ if (ft) {
1130
+ if (Z("showClone", this), v.eventCanceled)
1131
+ return;
1132
+ c.parentNode == L && !this.options.group.revertClone ? L.insertBefore(R, c) : bt ? L.insertBefore(R, bt) : L.appendChild(R), this.options.group.revertClone && this.animate(c, R), m(R, "display", ""), ft = !1;
1133
+ }
1134
+ }
1135
+ };
1136
+ function yo(t) {
1137
+ t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
1138
+ }
1139
+ function Wt(t, n, e, o, r, a, i, s) {
1140
+ var l, d = t[ot], u = d.options.onMove, p;
1141
+ return window.CustomEvent && !pt && !Bt ? l = new CustomEvent("move", {
1142
+ bubbles: !0,
1143
+ cancelable: !0
1144
+ }) : (l = document.createEvent("Event"), l.initEvent("move", !0, !0)), l.to = n, l.from = t, l.dragged = e, l.draggedRect = o, l.related = r || n, l.relatedRect = a || B(n), l.willInsertAfter = s, l.originalEvent = i, t.dispatchEvent(l), u && (p = u.call(d, l, i)), p;
1145
+ }
1146
+ function be(t) {
1147
+ t.draggable = !1;
1148
+ }
1149
+ function _o() {
1150
+ De = !1;
1151
+ }
1152
+ function wo(t, n, e) {
1153
+ var o = B(Mt(e.el, 0, e.options, !0)), r = vn(e.el, e.options, b), a = 10;
1154
+ return n ? t.clientX < r.left - a || t.clientY < o.top && t.clientX < o.right : t.clientY < r.top - a || t.clientY < o.bottom && t.clientX < o.left;
1155
+ }
1156
+ function So(t, n, e) {
1157
+ var o = B(Pe(e.el, e.options.draggable)), r = vn(e.el, e.options, b), a = 10;
1158
+ return n ? t.clientX > r.right + a || t.clientY > o.bottom && t.clientX > o.left : t.clientY > r.bottom + a || t.clientX > o.right && t.clientY > o.top;
1159
+ }
1160
+ function Co(t, n, e, o, r, a, i, s) {
1161
+ var l = o ? t.clientY : t.clientX, d = o ? e.height : e.width, u = o ? e.top : e.left, p = o ? e.bottom : e.right, y = !1;
1162
+ if (!i) {
1163
+ if (s && Zt < d * r) {
1164
+ if (!Yt && (Rt === 1 ? l > u + d * a / 2 : l < p - d * a / 2) && (Yt = !0), Yt)
1165
+ y = !0;
1166
+ else if (Rt === 1 ? l < u + Zt : l > p - Zt)
1167
+ return -Rt;
1168
+ } else if (l > u + d * (1 - r) / 2 && l < p - d * (1 - r) / 2)
1169
+ return Eo(n);
1170
+ }
1171
+ return y = y || i, y && (l < u + d * a / 2 || l > p - d * a / 2) ? l > u + d / 2 ? 1 : -1 : 0;
1172
+ }
1173
+ function Eo(t) {
1174
+ return rt(c) < rt(t) ? 1 : -1;
1175
+ }
1176
+ function Do(t) {
1177
+ for (var n = t.tagName + t.className + t.src + t.href + t.textContent, e = n.length, o = 0; e--; )
1178
+ o += n.charCodeAt(e);
1179
+ return o.toString(36);
1180
+ }
1181
+ function To(t) {
1182
+ ie.length = 0;
1183
+ for (var n = t.getElementsByTagName("input"), e = n.length; e--; ) {
1184
+ var o = n[e];
1185
+ o.checked && ie.push(o);
1186
+ }
1187
+ }
1188
+ function Kt(t) {
1189
+ return setTimeout(t, 0);
1190
+ }
1191
+ function Te(t) {
1192
+ return clearTimeout(t);
1193
+ }
1194
+ ce && I(document, "touchmove", function(t) {
1195
+ (v.active || Et) && t.cancelable && t.preventDefault();
1196
+ });
1197
+ v.utils = {
1198
+ on: I,
1199
+ off: T,
1200
+ css: m,
1201
+ find: hn,
1202
+ is: function(t, n) {
1203
+ return !!lt(t, n, t, !1);
1204
+ },
1205
+ extend: lo,
1206
+ throttle: fn,
1207
+ closest: lt,
1208
+ toggleClass: tt,
1209
+ clone: mn,
1210
+ index: rt,
1211
+ nextTick: Kt,
1212
+ cancelNextTick: Te,
1213
+ detectDirection: yn,
1214
+ getChild: Mt
1215
+ };
1216
+ v.get = function(t) {
1217
+ return t[ot];
1218
+ };
1219
+ v.mount = function() {
1220
+ for (var t = arguments.length, n = new Array(t), e = 0; e < t; e++)
1221
+ n[e] = arguments[e];
1222
+ n[0].constructor === Array && (n = n[0]), n.forEach(function(o) {
1223
+ if (!o.prototype || !o.prototype.constructor)
1224
+ throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
1225
+ o.utils && (v.utils = ct(ct({}, v.utils), o.utils)), Ft.mount(o);
1226
+ });
1227
+ };
1228
+ v.create = function(t, n) {
1229
+ return new v(t, n);
1230
+ };
1231
+ v.version = ro;
1232
+ var X = [], kt, xe, Oe = !1, ye, _e, ae, Nt;
1233
+ function xo() {
1234
+ function t() {
1235
+ this.defaults = {
1236
+ scroll: !0,
1237
+ forceAutoScrollFallback: !1,
1238
+ scrollSensitivity: 30,
1239
+ scrollSpeed: 10,
1240
+ bubbleScroll: !0
1241
+ };
1242
+ for (var n in this)
1243
+ n.charAt(0) === "_" && typeof this[n] == "function" && (this[n] = this[n].bind(this));
1244
+ }
1245
+ return t.prototype = {
1246
+ dragStarted: function(n) {
1247
+ var e = n.originalEvent;
1248
+ this.sortable.nativeDraggable ? I(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? I(document, "pointermove", this._handleFallbackAutoScroll) : e.touches ? I(document, "touchmove", this._handleFallbackAutoScroll) : I(document, "mousemove", this._handleFallbackAutoScroll);
1249
+ },
1250
+ dragOverCompleted: function(n) {
1251
+ var e = n.originalEvent;
1252
+ !this.options.dragOverBubble && !e.rootEl && this._handleAutoScroll(e);
1253
+ },
1254
+ drop: function() {
1255
+ this.sortable.nativeDraggable ? T(document, "dragover", this._handleAutoScroll) : (T(document, "pointermove", this._handleFallbackAutoScroll), T(document, "touchmove", this._handleFallbackAutoScroll), T(document, "mousemove", this._handleFallbackAutoScroll)), Ke(), Qt(), so();
1256
+ },
1257
+ nulling: function() {
1258
+ ae = xe = kt = Oe = Nt = ye = _e = null, X.length = 0;
1259
+ },
1260
+ _handleFallbackAutoScroll: function(n) {
1261
+ this._handleAutoScroll(n, !0);
1262
+ },
1263
+ _handleAutoScroll: function(n, e) {
1264
+ var o = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, i = document.elementFromPoint(r, a);
1265
+ if (ae = n, e || this.options.forceAutoScrollFallback || Bt || pt || Pt) {
1266
+ we(n, this.options, i, e);
1267
+ var s = gt(i, !0);
1268
+ Oe && (!Nt || r !== ye || a !== _e) && (Nt && Ke(), Nt = setInterval(function() {
1269
+ var l = gt(document.elementFromPoint(r, a), !0);
1270
+ l !== s && (s = l, Qt()), we(n, o.options, l, e);
1271
+ }, 10), ye = r, _e = a);
1272
+ } else {
1273
+ if (!this.options.bubbleScroll || gt(i, !0) === st()) {
1274
+ Qt();
1275
+ return;
1276
+ }
1277
+ we(n, this.options, gt(i, !1), !1);
1278
+ }
1279
+ }
1280
+ }, dt(t, {
1281
+ pluginName: "scroll",
1282
+ initializeByDefault: !0
1283
+ });
1284
+ }
1285
+ function Qt() {
1286
+ X.forEach(function(t) {
1287
+ clearInterval(t.pid);
1288
+ }), X = [];
1289
+ }
1290
+ function Ke() {
1291
+ clearInterval(Nt);
1292
+ }
1293
+ var we = fn(function(t, n, e, o) {
1294
+ if (n.scroll) {
1295
+ var r = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, i = n.scrollSensitivity, s = n.scrollSpeed, l = st(), d = !1, u;
1296
+ xe !== e && (xe = e, Qt(), kt = n.scroll, u = n.scrollFn, kt === !0 && (kt = gt(e, !0)));
1297
+ var p = 0, y = kt;
1298
+ do {
1299
+ var h = y, M = B(h), w = M.top, F = M.bottom, Y = M.left, V = M.right, H = M.width, k = M.height, g = void 0, S = void 0, _ = h.scrollWidth, D = h.scrollHeight, A = m(h), f = h.scrollLeft, C = h.scrollTop;
1300
+ h === l ? (g = H < _ && (A.overflowX === "auto" || A.overflowX === "scroll" || A.overflowX === "visible"), S = k < D && (A.overflowY === "auto" || A.overflowY === "scroll" || A.overflowY === "visible")) : (g = H < _ && (A.overflowX === "auto" || A.overflowX === "scroll"), S = k < D && (A.overflowY === "auto" || A.overflowY === "scroll"));
1301
+ var N = g && (Math.abs(V - r) <= i && f + H < _) - (Math.abs(Y - r) <= i && !!f), E = S && (Math.abs(F - a) <= i && C + k < D) - (Math.abs(w - a) <= i && !!C);
1302
+ if (!X[p])
1303
+ for (var O = 0; O <= p; O++)
1304
+ X[O] || (X[O] = {});
1305
+ (X[p].vx != N || X[p].vy != E || X[p].el !== h) && (X[p].el = h, X[p].vx = N, X[p].vy = E, clearInterval(X[p].pid), (N != 0 || E != 0) && (d = !0, X[p].pid = setInterval(function() {
1306
+ o && this.layer === 0 && v.active._onTouchMove(ae);
1307
+ var P = X[this.layer].vy ? X[this.layer].vy * s : 0, j = X[this.layer].vx ? X[this.layer].vx * s : 0;
1308
+ typeof u == "function" && u.call(v.dragged.parentNode[ot], j, P, t, ae, X[this.layer].el) !== "continue" || gn(X[this.layer].el, j, P);
1309
+ }.bind({
1310
+ layer: p
1311
+ }), 24))), p++;
1312
+ } while (n.bubbleScroll && y !== l && (y = gt(y, !1)));
1313
+ Oe = d;
1314
+ }
1315
+ }, 30), Cn = function(t) {
1316
+ var n = t.originalEvent, e = t.putSortable, o = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, i = t.hideGhostForTarget, s = t.unhideGhostForTarget;
1317
+ if (n) {
1318
+ var l = e || r;
1319
+ i();
1320
+ var d = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, u = document.elementFromPoint(d.clientX, d.clientY);
1321
+ s(), l && !l.el.contains(u) && (a("spill"), this.onSpill({
1322
+ dragEl: o,
1323
+ putSortable: e
1324
+ }));
1325
+ }
1326
+ };
1327
+ function Le() {
1328
+ }
1329
+ Le.prototype = {
1330
+ startIndex: null,
1331
+ dragStart: function(t) {
1332
+ var n = t.oldDraggableIndex;
1333
+ this.startIndex = n;
1334
+ },
1335
+ onSpill: function(t) {
1336
+ var n = t.dragEl, e = t.putSortable;
1337
+ this.sortable.captureAnimationState(), e && e.captureAnimationState();
1338
+ var o = Mt(this.sortable.el, this.startIndex, this.options);
1339
+ o ? this.sortable.el.insertBefore(n, o) : this.sortable.el.appendChild(n), this.sortable.animateAll(), e && e.animateAll();
1340
+ },
1341
+ drop: Cn
1342
+ };
1343
+ dt(Le, {
1344
+ pluginName: "revertOnSpill"
1345
+ });
1346
+ function He() {
1347
+ }
1348
+ He.prototype = {
1349
+ onSpill: function(t) {
1350
+ var n = t.dragEl, e = t.putSortable, o = e || this.sortable;
1351
+ o.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), o.animateAll();
1352
+ },
1353
+ drop: Cn
1354
+ };
1355
+ dt(He, {
1356
+ pluginName: "removeOnSpill"
1357
+ });
1358
+ v.mount(new xo());
1359
+ v.mount(He, Le);
1360
+ function Oo(t) {
1361
+ return t == null ? t : JSON.parse(JSON.stringify(t));
1362
+ }
1363
+ function Io(t) {
1364
+ Me() && An(t);
1365
+ }
1366
+ function Mo(t) {
1367
+ Me() ? kn(t) : nn(t);
1368
+ }
1369
+ let En = null, Dn = null;
1370
+ function Qe(t = null, n = null) {
1371
+ En = t, Dn = n;
1372
+ }
1373
+ function Ao() {
1374
+ return {
1375
+ data: En,
1376
+ clonedData: Dn
1377
+ };
1378
+ }
1379
+ const tn = Symbol("cloneElement");
1380
+ function ko(...t) {
1381
+ var n, e;
1382
+ const o = (n = Me()) == null ? void 0 : n.proxy;
1383
+ let r = null;
1384
+ const a = t[0];
1385
+ let [, i, s] = t;
1386
+ Array.isArray(x(i)) || (s = i, i = null);
1387
+ let l = null;
1388
+ const {
1389
+ immediate: d = !0,
1390
+ clone: u = Oo,
1391
+ forceFallback: p,
1392
+ fallbackOnBody: y,
1393
+ customUpdate: h
1394
+ } = (e = x(s)) != null ? e : {};
1395
+ function M(f) {
1396
+ var C;
1397
+ const { from: N, oldIndex: E, item: O } = f, P = Array.from(N.childNodes);
1398
+ r = p && !y ? P.slice(0, -1) : P;
1399
+ const j = x((C = x(i)) == null ? void 0 : C[E]), U = u(j);
1400
+ Qe(j, U), O[tn] = U;
1401
+ }
1402
+ function w(f) {
1403
+ const C = f.item[tn];
1404
+ if (!Vn(C)) {
1405
+ if (pe(f.item), de(i)) {
1406
+ const N = [...x(i)];
1407
+ i.value = Be(N, f.newDraggableIndex, C);
1408
+ return;
1409
+ }
1410
+ Be(x(i), f.newDraggableIndex, C);
1411
+ }
1412
+ }
1413
+ function F(f) {
1414
+ const { from: C, item: N, oldIndex: E, oldDraggableIndex: O, pullMode: P, clone: j } = f;
1415
+ if (Fe(C, N, E), P === "clone") {
1416
+ pe(j);
1417
+ return;
1418
+ }
1419
+ if (de(i)) {
1420
+ const U = [...x(i)];
1421
+ i.value = Xe(U, O);
1422
+ return;
1423
+ }
1424
+ Xe(x(i), O);
1425
+ }
1426
+ function Y(f) {
1427
+ if (h) {
1428
+ h(f);
1429
+ return;
1430
+ }
1431
+ const { from: C, item: N, oldIndex: E, oldDraggableIndex: O, newDraggableIndex: P } = f;
1432
+ if (pe(N), Fe(C, N, E), de(i)) {
1433
+ const j = [...x(i)];
1434
+ i.value = Ge(
1435
+ j,
1436
+ O,
1437
+ P
1438
+ );
1439
+ return;
1440
+ }
1441
+ Ge(x(i), O, P);
1442
+ }
1443
+ function V(f) {
1444
+ const { newIndex: C, oldIndex: N, from: E, to: O } = f;
1445
+ let P = null;
1446
+ const j = C === N && E === O;
1447
+ try {
1448
+ if (j) {
1449
+ let U = null;
1450
+ r?.some((jt, Ut) => {
1451
+ if (U && r?.length !== O.childNodes.length)
1452
+ return E.insertBefore(U, jt.nextSibling), !0;
1453
+ const ue = O.childNodes[Ut];
1454
+ U = O?.replaceChild(jt, ue);
1455
+ });
1456
+ }
1457
+ } catch (U) {
1458
+ P = U;
1459
+ } finally {
1460
+ r = null;
1461
+ }
1462
+ nn(() => {
1463
+ if (Qe(), P)
1464
+ throw P;
1465
+ });
1466
+ }
1467
+ const H = {
1468
+ onUpdate: Y,
1469
+ onStart: M,
1470
+ onAdd: w,
1471
+ onRemove: F,
1472
+ onEnd: V
1473
+ };
1474
+ function k(f) {
1475
+ const C = x(a);
1476
+ return f || (f = Wn(C) ? qn(C, o?.$el) : C), f && !Kn(f) && (f = f.$el), f || Un("Root element not found"), f;
1477
+ }
1478
+ function g() {
1479
+ var f;
1480
+ const C = (f = x(s)) != null ? f : {}, N = sn(C, ["immediate", "clone"]);
1481
+ return je(N, (E, O) => {
1482
+ Qn(E) && (N[E] = (P, ...j) => {
1483
+ const U = Ao();
1484
+ return to(P, U), O(P, ...j);
1485
+ });
1486
+ }), Zn(
1487
+ i === null ? {} : H,
1488
+ N
1489
+ );
1490
+ }
1491
+ const S = (f) => {
1492
+ f = k(f), l && _.destroy(), l = new v(f, g());
1493
+ };
1494
+ en(
1495
+ () => s,
1496
+ () => {
1497
+ l && je(g(), (f, C) => {
1498
+ l?.option(f, C);
1499
+ });
1500
+ },
1501
+ { deep: !0 }
1502
+ );
1503
+ const _ = {
1504
+ option: (f, C) => l?.option(f, C),
1505
+ destroy: () => {
1506
+ l?.destroy(), l = null;
1507
+ },
1508
+ save: () => l?.save(),
1509
+ toArray: () => l?.toArray(),
1510
+ closest: (...f) => l?.closest(...f)
1511
+ }, D = () => _?.option("disabled", !0), A = () => _?.option("disabled", !1);
1512
+ return Mo(() => {
1513
+ d && S();
1514
+ }), Io(_.destroy), Dt({ start: S, pause: D, resume: A }, _);
1515
+ }
1516
+ const Ie = [
1517
+ "update",
1518
+ "start",
1519
+ "add",
1520
+ "remove",
1521
+ "choose",
1522
+ "unchoose",
1523
+ "end",
1524
+ "sort",
1525
+ "filter",
1526
+ "clone",
1527
+ "move",
1528
+ "change"
1529
+ ], No = [
1530
+ "clone",
1531
+ "animation",
1532
+ "ghostClass",
1533
+ "group",
1534
+ "sort",
1535
+ "disabled",
1536
+ "store",
1537
+ "handle",
1538
+ "draggable",
1539
+ "swapThreshold",
1540
+ "invertSwap",
1541
+ "invertedSwapThreshold",
1542
+ "removeCloneOnHide",
1543
+ "direction",
1544
+ "chosenClass",
1545
+ "dragClass",
1546
+ "ignore",
1547
+ "filter",
1548
+ "preventOnFilter",
1549
+ "easing",
1550
+ "setData",
1551
+ "dropBubble",
1552
+ "dragoverBubble",
1553
+ "dataIdAttr",
1554
+ "delay",
1555
+ "delayOnTouchOnly",
1556
+ "touchStartThreshold",
1557
+ "forceFallback",
1558
+ "fallbackClass",
1559
+ "fallbackOnBody",
1560
+ "fallbackTolerance",
1561
+ "fallbackOffset",
1562
+ "supportPointer",
1563
+ "emptyInsertThreshold",
1564
+ "scroll",
1565
+ "forceAutoScrollFallback",
1566
+ "scrollSensitivity",
1567
+ "scrollSpeed",
1568
+ "bubbleScroll",
1569
+ "modelValue",
1570
+ "tag",
1571
+ "target",
1572
+ "customUpdate",
1573
+ ...Ie.map((t) => `on${t.replace(/^\S/, (n) => n.toUpperCase())}`)
1574
+ ], Po = Xt({
1575
+ name: "VueDraggable",
1576
+ model: {
1577
+ prop: "modelValue",
1578
+ event: "update:modelValue"
1579
+ },
1580
+ props: No,
1581
+ emits: ["update:modelValue", ...Ie],
1582
+ setup(t, { slots: n, emit: e, expose: o, attrs: r }) {
1583
+ const a = Ie.reduce((u, p) => {
1584
+ const y = `on${p.replace(/^\S/, (h) => h.toUpperCase())}`;
1585
+ return u[y] = (...h) => e(p, ...h), u;
1586
+ }, {}), i = Q(() => {
1587
+ const u = On(t), p = sn(u, ["modelValue"]), y = Object.entries(p).reduce((h, [M, w]) => {
1588
+ const F = x(w);
1589
+ return F !== void 0 && (h[M] = F), h;
1590
+ }, {});
1591
+ return Dt(Dt({}, a), zn(Dt(Dt({}, r), y)));
1592
+ }), s = Q({
1593
+ get: () => t.modelValue,
1594
+ set: (u) => e("update:modelValue", u)
1595
+ }), l = Gt(), d = In(
1596
+ ko(t.target || l, s, i)
1597
+ );
1598
+ return o(d), () => {
1599
+ var u;
1600
+ return Mn(t.tag || "div", { ref: l }, (u = n?.default) == null ? void 0 : u.call(n, d));
1601
+ };
1602
+ }
1603
+ }), Lo = { class: "icon-item-box" }, Ho = /* @__PURE__ */ Xt({
1604
+ __name: "index",
1605
+ props: {
1606
+ isGroup: {
1607
+ type: Boolean,
1608
+ default: !1
1609
+ },
1610
+ hover: {
1611
+ type: Boolean,
1612
+ default: !1
1613
+ },
1614
+ status: {
1615
+ type: Object,
1616
+ default: () => ({
1617
+ lock: !1,
1618
+ hide: !1
1619
+ })
1620
+ }
1621
+ },
1622
+ setup(t) {
1623
+ Ae((p) => ({
1624
+ "20c36939": l.value
1625
+ }));
1626
+ const n = t, { LockClosedOutlineIcon: e, LockOpenOutlineIcon: o, EyeOutlineIcon: r, EyeOffOutlineIcon: a } = te.ionicons5, i = le(), s = Ne(), l = Q(() => s.getAppTheme), d = (p) => {
1627
+ p.stopPropagation(), n.status.hide ? i.setShow() : i.setHide();
1628
+ }, u = (p) => {
1629
+ p.stopPropagation(), n.status.lock ? i.setUnLock() : i.setLock();
1630
+ };
1631
+ return (p, y) => {
1632
+ const h = nt("n-icon");
1633
+ return Nn((K(), _t("div", Lo, [
1634
+ z(h, {
1635
+ class: wt(["go-ml-1 icon-item", { active: t.status.lock }]),
1636
+ size: "15",
1637
+ component: t.status.lock ? x(e) : x(o),
1638
+ onClick: u
1639
+ }, null, 8, ["class", "component"]),
1640
+ z(h, {
1641
+ class: wt(["go-ml-1 icon-item", { active: t.status.hide }]),
1642
+ size: "15",
1643
+ component: t.status.hide ? x(a) : x(r),
1644
+ onClick: d
1645
+ }, null, 8, ["class", "component"])
1646
+ ], 512)), [
1647
+ [Pn, !t.isGroup]
1648
+ ]);
1649
+ };
1650
+ }
1651
+ });
1652
+ const Tn = /* @__PURE__ */ se(Ho, [["__scopeId", "data-v-0dc34801"]]), Ro = { class: "go-flex-center item-content" }, Yo = { class: "list-text" }, Go = /* @__PURE__ */ Xt({
1653
+ __name: "index",
1654
+ props: {
1655
+ componentData: {
1656
+ type: Object,
1657
+ required: !0
1658
+ },
1659
+ isGroup: {
1660
+ type: Boolean,
1661
+ default: !1
1662
+ },
1663
+ layerMode: {
1664
+ type: String,
1665
+ default: It.THUMBNAIL
1666
+ }
1667
+ },
1668
+ setup(t) {
1669
+ Ae((p) => ({
1670
+ "639cf5ae": i.value
1671
+ }));
1672
+ const n = t, e = Ne(), o = le(), r = Gt("");
1673
+ (async () => {
1674
+ r.value = await Bn(n.componentData.chartConfig);
1675
+ })();
1676
+ const i = Q(() => e.getAppTheme), s = Q(() => {
1677
+ const p = n.componentData.id;
1678
+ return o.getTargetChart.selectId.find((y) => y === p);
1679
+ }), l = Q(() => n.componentData.id === o.getTargetChart.hoverId), d = Q(() => n.componentData.status), u = Q(() => n.layerMode === It.TEXT);
1680
+ return (p, y) => {
1681
+ const h = nt("n-image"), M = nt("n-ellipsis");
1682
+ return K(), _t("div", {
1683
+ class: wt(["go-content-layers-list-item", { hover: l.value, select: s.value, "list-mini": u.value }])
1684
+ }, [
1685
+ xt("div", Ro, [
1686
+ z(h, {
1687
+ class: "list-img",
1688
+ "object-fit": "contain",
1689
+ "preview-disabled": "",
1690
+ src: r.value,
1691
+ "fallback-src": x(Xn)()
1692
+ }, null, 8, ["src", "fallback-src"]),
1693
+ z(M, { style: { "margin-right": "auto" } }, {
1694
+ default: J(() => [
1695
+ xt("span", Yo, ke(n.componentData.chartConfig.title), 1)
1696
+ ]),
1697
+ _: 1
1698
+ }),
1699
+ z(x(Tn), {
1700
+ isGroup: t.isGroup,
1701
+ hover: l.value,
1702
+ status: d.value
1703
+ }, null, 8, ["isGroup", "hover", "status"])
1704
+ ]),
1705
+ xt("div", {
1706
+ class: wt({ "select-modal": s.value })
1707
+ }, null, 2)
1708
+ ], 2);
1709
+ };
1710
+ }
1711
+ });
1712
+ const xn = /* @__PURE__ */ se(Go, [["__scopeId", "data-v-42cc8322"]]), Xo = { class: "go-content-layers-group-list-item" }, Bo = { class: "go-flex-items-center item-content" }, Fo = /* @__PURE__ */ Xt({
1713
+ __name: "index",
1714
+ props: {
1715
+ componentGroupData: {
1716
+ type: Object,
1717
+ required: !0
1718
+ },
1719
+ layerMode: {
1720
+ type: String,
1721
+ default: It.THUMBNAIL
1722
+ }
1723
+ },
1724
+ setup(t) {
1725
+ Ae((k) => ({
1726
+ "1490bc32": d.value
1727
+ }));
1728
+ const n = t;
1729
+ it.UN_GROUP;
1730
+ const e = Ne(), { FolderIcon: o, FolderOpenIcon: r } = te.ionicons5, a = le(), { handleContextMenu: i, onClickOutSide: s } = on(), l = Gt(!1), d = Q(() => e.getAppTheme), u = Q(() => n.layerMode === It.TEXT), p = Q(() => {
1731
+ const k = n.componentGroupData.id;
1732
+ return a.getTargetChart.selectId.find((g) => g === k);
1733
+ }), y = Q(() => n.componentGroupData.id === a.getTargetChart.hoverId), h = Q(() => n.componentGroupData.status), M = (k, g, S) => {
1734
+ const _ = (D) => g.filter((A) => D.includes(A.key));
1735
+ if (a.getTargetChart.selectId.length > 1)
1736
+ return _([it.GROUP]);
1737
+ {
1738
+ const D = [];
1739
+ return S.status.lock ? D.push(it.LOCK) : D.push(it.UNLOCK), S.status.hide ? D.push(it.HIDE) : D.push(it.SHOW), [
1740
+ ..._([it.UN_GROUP]),
1741
+ Gn(),
1742
+ ...k.filter((A) => !D.includes(A.key))
1743
+ ];
1744
+ }
1745
+ }, w = (k) => {
1746
+ window.$KeyboardActive?.ctrl || (l.value = !l.value, Y(k, n.componentGroupData));
1747
+ }, F = (k) => {
1748
+ s();
1749
+ const g = n.componentGroupData.id;
1750
+ if (k.buttons === rn.LEFT && window.$KeyboardActive?.ctrl) {
1751
+ if (a.targetChart.selectId.includes(g)) {
1752
+ const S = a.targetChart.selectId.filter((_) => _ !== g);
1753
+ a.setTargetSelectChart(S);
1754
+ } else
1755
+ a.setTargetSelectChart(g, !0);
1756
+ return;
1757
+ }
1758
+ a.setTargetSelectChart(g);
1759
+ }, Y = (k, g, S) => {
1760
+ k.preventDefault(), k.stopPropagation(), s(), a.setTargetSelectChart(S || g.id);
1761
+ }, V = (k) => {
1762
+ a.setTargetHoverChart(k.id);
1763
+ }, H = (k) => {
1764
+ a.setTargetHoverChart(void 0);
1765
+ };
1766
+ return (k, g) => {
1767
+ const S = nt("n-icon"), _ = nt("n-text"), D = nt("n-ellipsis"), A = nt("n-collapse-transition");
1768
+ return K(), _t("div", Xo, [
1769
+ xt("div", {
1770
+ class: wt(["root-item-content", { hover: y.value, select: p.value, "list-mini": u.value }]),
1771
+ onClick: g[0] || (g[0] = (f) => w(f)),
1772
+ onMousedown: g[1] || (g[1] = (f) => F(f)),
1773
+ onMouseenter: g[2] || (g[2] = (f) => V(t.componentGroupData)),
1774
+ onMouseleave: g[3] || (g[3] = (f) => H(t.componentGroupData)),
1775
+ onContextmenu: g[4] || (g[4] = (f) => x(i)(f, t.componentGroupData, M))
1776
+ }, [
1777
+ xt("div", Bo, [
1778
+ z(S, {
1779
+ size: "20",
1780
+ class: "go-ml-1"
1781
+ }, {
1782
+ default: J(() => [
1783
+ l.value ? (K(), yt(x(r), { key: 0 })) : (K(), yt(x(o), { key: 1 }))
1784
+ ]),
1785
+ _: 1
1786
+ }),
1787
+ z(D, { style: { "margin-right": "auto" } }, {
1788
+ default: J(() => [
1789
+ z(_, {
1790
+ class: "go-ml-2 list-text",
1791
+ depth: 2
1792
+ }, {
1793
+ default: J(() => [
1794
+ Se(ke(t.componentGroupData.chartConfig.title), 1)
1795
+ ]),
1796
+ _: 1
1797
+ })
1798
+ ]),
1799
+ _: 1
1800
+ }),
1801
+ z(x(Tn), {
1802
+ isGroup: !1,
1803
+ hover: y.value,
1804
+ status: h.value
1805
+ }, null, 8, ["hover", "status"])
1806
+ ]),
1807
+ xt("div", {
1808
+ class: wt({ "select-modal": p.value })
1809
+ }, null, 2)
1810
+ ], 34),
1811
+ z(A, { show: l.value }, {
1812
+ default: J(() => [
1813
+ (K(!0), _t(Ce, null, Ee(t.componentGroupData.groupList, (f) => (K(), yt(x(xn), {
1814
+ key: f.id,
1815
+ componentData: f,
1816
+ "layer-mode": t.layerMode,
1817
+ isGroup: !0,
1818
+ onMousedown: (C) => Y(C, f, t.componentGroupData.id),
1819
+ onMouseenter: (C) => V(f),
1820
+ onMouseleave: (C) => H(),
1821
+ onContextmenu: g[5] || (g[5] = (C) => x(i)(C, t.componentGroupData, M))
1822
+ }, null, 8, ["componentData", "layer-mode", "onMousedown", "onMouseenter", "onMouseleave"]))), 128))
1823
+ ]),
1824
+ _: 1
1825
+ }, 8, ["show"])
1826
+ ]);
1827
+ };
1828
+ }
1829
+ });
1830
+ const jo = /* @__PURE__ */ se(Fo, [["__scopeId", "data-v-5a3a86ba"]]), Uo = /* @__PURE__ */ Xt({
1831
+ __name: "index",
1832
+ setup(t) {
1833
+ const { LayersIcon: n, GridIcon: e, ListIcon: o } = te.ionicons5, { LaptopIcon: r } = te.carbon, a = Yn(), i = le(), { handleContextMenu: s, onClickOutSide: l } = on(), d = [
1834
+ { label: "缩略图", icon: r, value: It.THUMBNAIL },
1835
+ { label: "文本列表", icon: o, value: It.TEXT }
1836
+ ], u = Gt([]), p = Gt(a.getLayerType), y = Q(() => Hn(i.getComponentList).reverse());
1837
+ en(
1838
+ () => y.value,
1839
+ (g) => {
1840
+ u.value = g;
1841
+ }
1842
+ );
1843
+ const h = (g, S, _) => {
1844
+ if (i.getTargetChart.selectId.length > 1)
1845
+ return g.filter((A) => A.key === it.GROUP);
1846
+ const D = [];
1847
+ return _.status.lock ? D.push(it.LOCK) : D.push(it.UNLOCK), _.status.hide ? D.push(it.HIDE) : D.push(it.SHOW), g.filter((A) => !D.includes(A.key));
1848
+ }, M = () => {
1849
+ a.setItem(Re.LAYERS, !1);
1850
+ }, w = (g) => {
1851
+ const S = g.oldIndex, _ = g.newIndex;
1852
+ if (!(S === void 0 || _ === void 0))
1853
+ if (_ - S > 0) {
1854
+ const D = i.getComponentList.splice(-(S + 1), 1)[0];
1855
+ i.getComponentList.splice(-_, 0, D);
1856
+ } else {
1857
+ const D = i.getComponentList.splice(-(S + 1), 1)[0];
1858
+ _ === 0 ? i.getComponentList.push(D) : i.getComponentList.splice(-_, 0, D);
1859
+ }
1860
+ }, F = (g) => {
1861
+ const S = document.querySelector(".go-content-layer-box");
1862
+ g.target.contains(S) && i.setTargetSelectChart();
1863
+ }, Y = (g, S) => {
1864
+ l();
1865
+ const _ = S.id;
1866
+ if (g.buttons === rn.LEFT && window.$KeyboardActive?.ctrl) {
1867
+ if (i.targetChart.selectId.includes(_)) {
1868
+ const D = i.targetChart.selectId.filter((A) => A !== _);
1869
+ i.setTargetSelectChart(D);
1870
+ } else
1871
+ i.setTargetSelectChart(_, !0);
1872
+ return;
1873
+ }
1874
+ i.setTargetSelectChart(_);
1875
+ }, V = (g) => {
1876
+ i.setTargetHoverChart(g.id);
1877
+ }, H = (g) => {
1878
+ i.setTargetHoverChart(void 0);
1879
+ }, k = (g) => {
1880
+ p.value = g, a.setItem(Re.LAYER_TYPE, g);
1881
+ };
1882
+ return (g, S) => {
1883
+ const _ = nt("n-icon"), D = nt("n-tooltip"), A = nt("n-button"), f = nt("n-button-group"), C = nt("n-text"), N = nt("n-space");
1884
+ return K(), yt(x(Rn), {
1885
+ class: wt(["go-content-layers", { scoped: !x(a).getLayers }]),
1886
+ title: "图层",
1887
+ depth: 2,
1888
+ onBack: M,
1889
+ onMousedown: S[1] || (S[1] = (E) => F(E))
1890
+ }, {
1891
+ icon: J(() => [
1892
+ z(_, {
1893
+ size: "16",
1894
+ depth: 2,
1895
+ component: x(n)
1896
+ }, null, 8, ["component"])
1897
+ ]),
1898
+ "top-right": J(() => [
1899
+ z(f, { style: { display: "flex" } }, {
1900
+ default: J(() => [
1901
+ (K(), _t(Ce, null, Ee(d, (E, O) => z(A, {
1902
+ key: O,
1903
+ ghost: "",
1904
+ size: "small",
1905
+ type: p.value === E.value ? "primary" : "tertiary",
1906
+ onClick: (P) => k(E.value)
1907
+ }, {
1908
+ default: J(() => [
1909
+ z(D, {
1910
+ "show-arrow": !1,
1911
+ trigger: "hover"
1912
+ }, {
1913
+ trigger: J(() => [
1914
+ z(_, {
1915
+ size: "14",
1916
+ component: E.icon
1917
+ }, null, 8, ["component"])
1918
+ ]),
1919
+ default: J(() => [
1920
+ Se(" " + ke(E.label), 1)
1921
+ ]),
1922
+ _: 2
1923
+ }, 1024)
1924
+ ]),
1925
+ _: 2
1926
+ }, 1032, ["type", "onClick"])), 64))
1927
+ ]),
1928
+ _: 1
1929
+ })
1930
+ ]),
1931
+ default: J(() => [
1932
+ y.value.length === 0 ? (K(), yt(N, {
1933
+ key: 0,
1934
+ justify: "center"
1935
+ }, {
1936
+ default: J(() => [
1937
+ z(C, { class: "not-layer-text" }, {
1938
+ default: J(() => S[2] || (S[2] = [
1939
+ Se("暂无图层~")
1940
+ ])),
1941
+ _: 1,
1942
+ __: [2]
1943
+ })
1944
+ ]),
1945
+ _: 1
1946
+ })) : Ln("", !0),
1947
+ z(x(Po), {
1948
+ modelValue: u.value,
1949
+ "onUpdate:modelValue": S[0] || (S[0] = (E) => u.value = E),
1950
+ animation: 150,
1951
+ ghostClass: "ghost",
1952
+ onUpdate: w
1953
+ }, {
1954
+ default: J(() => [
1955
+ (K(!0), _t(Ce, null, Ee(u.value, (E) => (K(), _t("div", {
1956
+ key: E.id,
1957
+ class: "go-content-layer-box"
1958
+ }, [
1959
+ E.isGroup ? (K(), yt(x(jo), {
1960
+ key: 0,
1961
+ componentGroupData: E,
1962
+ "layer-mode": p.value
1963
+ }, null, 8, ["componentGroupData", "layer-mode"])) : (K(), yt(x(xn), {
1964
+ key: 1,
1965
+ componentData: E,
1966
+ "layer-mode": p.value,
1967
+ onMousedown: (O) => Y(O, E),
1968
+ onMouseenter: (O) => V(E),
1969
+ onMouseleave: (O) => H(),
1970
+ onContextmenu: (O) => x(s)(O, E, h)
1971
+ }, null, 8, ["componentData", "layer-mode", "onMousedown", "onMouseenter", "onMouseleave", "onContextmenu"]))
1972
+ ]))), 128))
1973
+ ]),
1974
+ _: 1
1975
+ }, 8, ["modelValue"])
1976
+ ]),
1977
+ _: 1
1978
+ }, 8, ["class"]);
1979
+ };
1980
+ }
1981
+ });
1982
+ const nr = /* @__PURE__ */ se(Uo, [["__scopeId", "data-v-83bd0465"]]);
1983
+ export {
1984
+ nr as default
1985
+ };