@gct-paas/core-web 0.1.4-dev.12 → 0.1.4-dev.14

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 (113) hide show
  1. package/dist/de_DE-CYotlhMS.js +1 -0
  2. package/dist/en_US-DjLwq3RF.js +1 -0
  3. package/dist/es_ES-0UhVFVHw.js +1 -0
  4. package/dist/fr_FR-Xgsbf3iG.js +1 -0
  5. package/dist/index.min.css +1 -1
  6. package/dist/ja_JP-3aUbzjBv.js +1 -0
  7. package/dist/loader.esm.min.js +1 -0
  8. package/dist/monaco-editor-DKwtDu2R.js +1 -0
  9. package/dist/objectSpread2-BL8YUfIz.js +1 -0
  10. package/dist/pt_PT-BzMPT58e.js +1 -0
  11. package/dist/ru_RU-BRHq1RXx.js +1 -0
  12. package/dist/tr_TR-CPqM558w.js +1 -0
  13. package/dist/useMonacoEditor-DrIqFqr0.js +1 -0
  14. package/dist/vi_VN-BOKGrWoY.js +1 -0
  15. package/dist/zh_CN-upOsz50m.js +1 -0
  16. package/dist/zh_TW-jlmatmAz.js +1 -0
  17. package/es/components/UserPick/index.d.ts +46 -0
  18. package/es/components/UserPick/index.mjs +113 -0
  19. package/es/components/UserPick/src/components/dept-item.vue.d.ts +11 -0
  20. package/es/components/UserPick/src/components/dept-item.vue.mjs +7 -0
  21. package/es/components/UserPick/src/components/dept-item.vue_vue_type_script_setup_true_lang.mjs +32 -0
  22. package/es/components/UserPick/src/components/dept-item.vue_vue_type_style_index_0_scoped_075b8ce7_lang.css +3 -0
  23. package/es/components/UserPick/src/components/user-item.vue.d.ts +11 -0
  24. package/es/components/UserPick/src/components/user-item.vue.mjs +7 -0
  25. package/es/components/UserPick/src/components/user-item.vue_vue_type_script_setup_true_lang.mjs +33 -0
  26. package/es/components/UserPick/src/components/user-item.vue_vue_type_style_index_0_scoped_1456f8b9_lang.css +3 -0
  27. package/es/components/UserPick/src/hooks.d.ts +1 -0
  28. package/es/components/UserPick/src/hooks.mjs +94 -0
  29. package/es/components/UserPick/src/user-pick.vue.d.ts +17 -0
  30. package/es/components/UserPick/src/user-pick.vue.mjs +7 -0
  31. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +280 -0
  32. package/es/components/UserPick/src/user-pick.vue_vue_type_style_index_0_scoped_081b9663_lang.css +39 -0
  33. package/es/components/field-upload/index.d.ts +2 -0
  34. package/es/components/field-upload/index.mjs +7 -0
  35. package/es/components/field-upload/src/FieldUpload.vue.d.ts +37 -0
  36. package/es/components/field-upload/src/FieldUpload.vue.mjs +5 -0
  37. package/es/components/field-upload/src/FieldUpload.vue_vue_type_script_setup_true_name_FieldUpload_lang.mjs +111 -0
  38. package/es/components/field-upload/src/components/base-upload.vue.d.ts +21 -0
  39. package/es/components/field-upload/src/components/base-upload.vue.mjs +7 -0
  40. package/es/components/field-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +227 -0
  41. package/es/components/field-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_f53b6ac6_lang.css +76 -0
  42. package/es/components/field-upload/src/components/file-list.vue.d.ts +17 -0
  43. package/es/components/field-upload/src/components/file-list.vue.mjs +7 -0
  44. package/es/components/field-upload/src/components/file-list.vue_vue_type_script_setup_true_name_fileList_lang.mjs +129 -0
  45. package/es/components/field-upload/src/components/file-list.vue_vue_type_style_index_0_scoped_3918aad0_lang.css +129 -0
  46. package/es/components/field-upload/src/components/upload-design.vue.d.ts +5 -0
  47. package/es/components/field-upload/src/components/upload-design.vue.mjs +7 -0
  48. package/es/components/field-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +43 -0
  49. package/es/components/field-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_1e5189c1_lang.css +43 -0
  50. package/es/components/field-upload/src/hooks/hooks.d.ts +4 -0
  51. package/es/components/field-upload/src/hooks/hooks.mjs +47 -0
  52. package/es/components/field-upload/src/types/index.d.ts +42 -0
  53. package/es/components/field-upload/src/types/index.mjs +24 -0
  54. package/es/components/image-upload/index.d.ts +2 -0
  55. package/es/components/image-upload/index.mjs +7 -0
  56. package/es/components/image-upload/src/ImageUpload.vue.d.ts +32 -0
  57. package/es/components/image-upload/src/ImageUpload.vue.mjs +5 -0
  58. package/es/components/image-upload/src/ImageUpload.vue_vue_type_script_setup_true_name_ImageUpload_lang.mjs +74 -0
  59. package/es/components/image-upload/src/components/base-upload.vue.d.ts +24 -0
  60. package/es/components/image-upload/src/components/base-upload.vue.mjs +8 -0
  61. package/es/components/image-upload/src/components/base-upload.vue_vue_type_script_name_baseUpload_setup_true_lang.mjs +209 -0
  62. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_0_scoped_3248e630_lang.css +73 -0
  63. package/es/components/image-upload/src/components/base-upload.vue_vue_type_style_index_1_lang.css +3 -0
  64. package/es/components/image-upload/src/components/upload-design.vue.d.ts +6 -0
  65. package/es/components/image-upload/src/components/upload-design.vue.mjs +7 -0
  66. package/es/components/image-upload/src/components/upload-design.vue_vue_type_script_name_UploadDesign_setup_true_lang.mjs +33 -0
  67. package/es/components/image-upload/src/components/upload-design.vue_vue_type_style_index_0_scoped_575d3a1a_lang.css +33 -0
  68. package/es/components/image-upload/src/hooks/hooks.d.ts +2 -0
  69. package/es/components/image-upload/src/types/index.d.ts +34 -0
  70. package/es/components/image-upload/src/types/index.mjs +8 -0
  71. package/es/components/index.d.ts +5 -1
  72. package/es/components/index.mjs +3 -0
  73. package/es/create-app-vue.mjs +2 -0
  74. package/es/hooks/index.d.ts +1 -0
  75. package/es/hooks/index.mjs +1 -0
  76. package/es/hooks/useFile.mjs +22 -0
  77. package/es/hooks/useLocale.d.ts +365 -1
  78. package/es/hooks/useLocale.mjs +20 -24
  79. package/es/index.d.ts +1 -0
  80. package/es/index.mjs +12 -6
  81. package/es/loader.d.ts +1 -0
  82. package/es/loader.mjs +92 -0
  83. package/es/modules/Cropper/index.mjs +11 -0
  84. package/es/modules/Cropper/src/CopperFreeModal.vue.mjs +7 -0
  85. package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +299 -0
  86. package/es/modules/Cropper/src/CopperFreeModal.vue_vue_type_style_index_0_scoped_28afc2ab_lang.css +48 -0
  87. package/es/modules/Cropper/src/CopperModal.vue.mjs +7 -0
  88. package/es/modules/Cropper/src/CopperModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +283 -0
  89. package/es/modules/Cropper/src/CopperModal.vue_vue_type_style_index_0_scoped_f42f8311_lang.css +71 -0
  90. package/es/modules/Cropper/src/Cropper.vue.d.ts +3 -3
  91. package/es/modules/Cropper/src/Cropper.vue.mjs +25 -0
  92. package/es/modules/Cropper/src/Cropper.vue_vue_type_script_lang.mjs +173 -0
  93. package/es/modules/Cropper/src/Cropper.vue_vue_type_style_index_0_lang.css +4 -0
  94. package/es/modules/Cropper/src/CropperAvatar.vue.mjs +7 -0
  95. package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_script_setup_true_name_CropperAvatar_lang.mjs +116 -0
  96. package/es/modules/Cropper/src/CropperAvatar.vue_vue_type_style_index_0_scoped_66052c52_lang.css +39 -0
  97. package/es/modules/Cropper/src/CropperFree.vue.mjs +7 -0
  98. package/es/modules/Cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +166 -0
  99. package/es/modules/Cropper/src/CropperFree.vue_vue_type_style_index_0_scoped_dc019220_lang.css +83 -0
  100. package/es/modules/code-editor/index.d.ts +3 -3
  101. package/es/modules/code-editor/monaco-editor.vue.d.ts +1 -1
  102. package/es/modules/code-editor/monaco-editor.vue.mjs +2 -2
  103. package/es/modules/code-editor/monaco-editor.vue_vue_type_script_setup_true_name_code-editor_lang.mjs +4 -3
  104. package/es/modules/code-editor/{monaco-editor.vue_vue_type_style_index_0_scoped_254c9227_lang.css → monaco-editor.vue_vue_type_style_index_0_scoped_ccf22884_lang.css} +9 -9
  105. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
  106. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
  107. package/es/modules/global-modal/src/BasicModal.vue.d.ts +2 -2
  108. package/package.json +7 -14
  109. package/dist/index.esm.min.js +0 -9864
  110. package/dist/monaco-editor-BHuf3IVH.js +0 -280
  111. package/dist/useMonacoEditor-CfhCBaPa.js +0 -2852
  112. /package/es/{modules/Cropper/hooks → hooks}/useFile.d.ts +0 -0
  113. /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
@@ -1,2852 +0,0 @@
1
- import * as e from "vue";
2
- import { createVNode as t, defineComponent as n, h as r, isVNode as i, provide as a, ref as o, resolveComponent as s } from "vue";
3
- import { isFunction as c, isString as l } from "lodash-es";
4
- import { Modal as u, OverlayContainer as d, useNamespace as f } from "@gct-paas/core";
5
- import { ConfigProvider as p, message as m } from "ant-design-vue";
6
- //#region \0rolldown/runtime.js
7
- var h = Object.create, g = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, v = Object.getOwnPropertyNames, ee = Object.getPrototypeOf, te = Object.prototype.hasOwnProperty, ne = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports), re = (e, t) => {
8
- let n = {};
9
- for (var r in e) g(n, r, {
10
- get: e[r],
11
- enumerable: !0
12
- });
13
- return t || g(n, Symbol.toStringTag, { value: "Module" }), n;
14
- }, y = (e, t, n, r) => {
15
- if (t && typeof t == "object" || typeof t == "function") for (var i = v(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !te.call(e, s) && s !== n && g(e, s, {
16
- get: ((e) => t[e]).bind(null, s),
17
- enumerable: !(r = _(t, s)) || r.enumerable
18
- });
19
- return e;
20
- }, ie = (e, t, n) => (y(e, t, "default"), n && y(n, t, "default")), ae = (e, t, n) => (n = e == null ? {} : h(ee(e)), y(t || !e || !e.__esModule ? g(n, "default", {
21
- value: e,
22
- enumerable: !0
23
- }) : n, e)), oe = (e, t) => {
24
- let n = e.__vccOpts || e;
25
- for (let [e, r] of t) n[e] = r;
26
- return n;
27
- };
28
- //#endregion
29
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/_virtual/_rollupPluginBabelHelpers.js
30
- function se(e, t) {
31
- (t == null || t > e.length) && (t = e.length);
32
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
33
- return r;
34
- }
35
- function ce(e) {
36
- if (Array.isArray(e)) return e;
37
- }
38
- function le(e, t, n) {
39
- return (t = ve(t)) in e ? Object.defineProperty(e, t, {
40
- value: n,
41
- enumerable: !0,
42
- configurable: !0,
43
- writable: !0
44
- }) : e[t] = n, e;
45
- }
46
- function ue(e, t) {
47
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
48
- if (n != null) {
49
- var r, i, a, o, s = [], c = !0, l = !1;
50
- try {
51
- if (a = (n = n.call(e)).next, t !== 0) for (; !(c = (r = a.call(n)).done) && (s.push(r.value), s.length !== t); c = !0);
52
- } catch (e) {
53
- l = !0, i = e;
54
- } finally {
55
- try {
56
- if (!c && n.return != null && (o = n.return(), Object(o) !== o)) return;
57
- } finally {
58
- if (l) throw i;
59
- }
60
- }
61
- return s;
62
- }
63
- }
64
- function de() {
65
- throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
66
- }
67
- function fe(e, t) {
68
- var n = Object.keys(e);
69
- if (Object.getOwnPropertySymbols) {
70
- var r = Object.getOwnPropertySymbols(e);
71
- t && (r = r.filter(function(t) {
72
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
73
- })), n.push.apply(n, r);
74
- }
75
- return n;
76
- }
77
- function pe(e) {
78
- for (var t = 1; t < arguments.length; t++) {
79
- var n = arguments[t] == null ? {} : arguments[t];
80
- t % 2 ? fe(Object(n), !0).forEach(function(t) {
81
- le(e, t, n[t]);
82
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fe(Object(n)).forEach(function(t) {
83
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
84
- });
85
- }
86
- return e;
87
- }
88
- function me(e, t) {
89
- if (e == null) return {};
90
- var n, r, i = he(e, t);
91
- if (Object.getOwnPropertySymbols) {
92
- var a = Object.getOwnPropertySymbols(e);
93
- for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
94
- }
95
- return i;
96
- }
97
- function he(e, t) {
98
- if (e == null) return {};
99
- var n = {};
100
- for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
101
- if (t.indexOf(r) !== -1) continue;
102
- n[r] = e[r];
103
- }
104
- return n;
105
- }
106
- function ge(e, t) {
107
- return ce(e) || ue(e, t) || ye(e, t) || de();
108
- }
109
- function _e(e, t) {
110
- if (typeof e != "object" || !e) return e;
111
- var n = e[Symbol.toPrimitive];
112
- if (n !== void 0) {
113
- var r = n.call(e, t);
114
- if (typeof r != "object") return r;
115
- throw TypeError("@@toPrimitive must return a primitive value.");
116
- }
117
- return (t === "string" ? String : Number)(e);
118
- }
119
- function ve(e) {
120
- var t = _e(e, "string");
121
- return typeof t == "symbol" ? t : t + "";
122
- }
123
- function ye(e, t) {
124
- if (e) {
125
- if (typeof e == "string") return se(e, t);
126
- var n = {}.toString.call(e).slice(8, -1);
127
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? se(e, t) : void 0;
128
- }
129
- }
130
- //#endregion
131
- //#region ../../node_modules/.pnpm/state-local@1.0.7/node_modules/state-local/lib/es/state-local.js
132
- function be(e, t, n) {
133
- return t in e ? Object.defineProperty(e, t, {
134
- value: n,
135
- enumerable: !0,
136
- configurable: !0,
137
- writable: !0
138
- }) : e[t] = n, e;
139
- }
140
- function xe(e, t) {
141
- var n = Object.keys(e);
142
- if (Object.getOwnPropertySymbols) {
143
- var r = Object.getOwnPropertySymbols(e);
144
- t && (r = r.filter(function(t) {
145
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
146
- })), n.push.apply(n, r);
147
- }
148
- return n;
149
- }
150
- function Se(e) {
151
- for (var t = 1; t < arguments.length; t++) {
152
- var n = arguments[t] == null ? {} : arguments[t];
153
- t % 2 ? xe(Object(n), !0).forEach(function(t) {
154
- be(e, t, n[t]);
155
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : xe(Object(n)).forEach(function(t) {
156
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
157
- });
158
- }
159
- return e;
160
- }
161
- function Ce() {
162
- var e = [...arguments];
163
- return function(t) {
164
- return e.reduceRight(function(e, t) {
165
- return t(e);
166
- }, t);
167
- };
168
- }
169
- function b(e) {
170
- return function t() {
171
- var n = this, r = [...arguments];
172
- return r.length >= e.length ? e.apply(this, r) : function() {
173
- var e = [...arguments];
174
- return t.apply(n, [].concat(r, e));
175
- };
176
- };
177
- }
178
- function x(e) {
179
- return {}.toString.call(e).includes("Object");
180
- }
181
- function we(e) {
182
- return !Object.keys(e).length;
183
- }
184
- function S(e) {
185
- return typeof e == "function";
186
- }
187
- function Te(e, t) {
188
- return Object.prototype.hasOwnProperty.call(e, t);
189
- }
190
- function Ee(e, t) {
191
- return x(t) || C("changeType"), Object.keys(t).some(function(t) {
192
- return !Te(e, t);
193
- }) && C("changeField"), t;
194
- }
195
- function De(e) {
196
- S(e) || C("selectorType");
197
- }
198
- function Oe(e) {
199
- S(e) || x(e) || C("handlerType"), x(e) && Object.values(e).some(function(e) {
200
- return !S(e);
201
- }) && C("handlersType");
202
- }
203
- function ke(e) {
204
- e || C("initialIsRequired"), x(e) || C("initialType"), we(e) && C("initialContent");
205
- }
206
- function Ae(e, t) {
207
- throw Error(e[t] || e.default);
208
- }
209
- var C = b(Ae)({
210
- initialIsRequired: "initial state is required",
211
- initialType: "initial state should be an object",
212
- initialContent: "initial state shouldn't be an empty object",
213
- handlerType: "handler should be an object or a function",
214
- handlersType: "all handlers should be a functions",
215
- selectorType: "selector should be a function",
216
- changeType: "provided value of changes should be an object",
217
- changeField: "it seams you want to change a field in the state which is not specified in the \"initial\" state",
218
- default: "an unknown error accured in `state-local` package"
219
- }), w = {
220
- changes: Ee,
221
- selector: De,
222
- handler: Oe,
223
- initial: ke
224
- };
225
- function je(e) {
226
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
227
- w.initial(e), w.handler(t);
228
- var n = { current: e }, r = b(Pe)(n, t), i = b(Ne)(n), a = b(w.changes)(e), o = b(Me)(n);
229
- function s() {
230
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(e) {
231
- return e;
232
- };
233
- return w.selector(e), e(n.current);
234
- }
235
- function c(e) {
236
- Ce(r, i, a, o)(e);
237
- }
238
- return [s, c];
239
- }
240
- function Me(e, t) {
241
- return S(t) ? t(e.current) : t;
242
- }
243
- function Ne(e, t) {
244
- return e.current = Se(Se({}, e.current), t), t;
245
- }
246
- function Pe(e, t, n) {
247
- return S(t) ? t(e.current) : Object.keys(n).forEach(function(n) {
248
- return t[n]?.call(t, e.current[n]);
249
- }), n;
250
- }
251
- var Fe = { create: je }, Ie = { paths: { vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.55.1/min/vs" } };
252
- //#endregion
253
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/curry.js
254
- function Le(e) {
255
- return function t() {
256
- var n = this, r = [...arguments];
257
- return r.length >= e.length ? e.apply(this, r) : function() {
258
- var e = [...arguments];
259
- return t.apply(n, [].concat(r, e));
260
- };
261
- };
262
- }
263
- //#endregion
264
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/isObject.js
265
- function Re(e) {
266
- return {}.toString.call(e).includes("Object");
267
- }
268
- //#endregion
269
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/validators/index.js
270
- function ze(e) {
271
- return e || Ue("configIsRequired"), Re(e) || Ue("configType"), e.urls ? (Be(), { paths: { vs: e.urls.monacoBase } }) : e;
272
- }
273
- function Be() {
274
- console.warn(He.deprecation);
275
- }
276
- function Ve(e, t) {
277
- throw Error(e[t] || e.default);
278
- }
279
- var He = {
280
- configIsRequired: "the configuration object is required",
281
- configType: "the configuration object should be an object",
282
- default: "an unknown error accured in `@monaco-editor/loader` package",
283
- deprecation: "Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "
284
- }, Ue = Le(Ve)(He), We = { config: ze }, Ge = function() {
285
- var e = [...arguments];
286
- return function(t) {
287
- return e.reduceRight(function(e, t) {
288
- return t(e);
289
- }, t);
290
- };
291
- };
292
- //#endregion
293
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/deepMerge.js
294
- function Ke(e, t) {
295
- return Object.keys(t).forEach(function(n) {
296
- t[n] instanceof Object && e[n] && Object.assign(t[n], Ke(e[n], t[n]));
297
- }), pe(pe({}, e), t);
298
- }
299
- //#endregion
300
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/utils/makeCancelable.js
301
- var qe = {
302
- type: "cancelation",
303
- msg: "operation is manually canceled"
304
- };
305
- function T(e) {
306
- var t = !1, n = new Promise(function(n, r) {
307
- e.then(function(e) {
308
- return t ? r(qe) : n(e);
309
- }), e.catch(r);
310
- });
311
- return n.cancel = function() {
312
- return t = !0;
313
- }, n;
314
- }
315
- //#endregion
316
- //#region ../../node_modules/.pnpm/@monaco-editor+loader@1.7.0/node_modules/@monaco-editor/loader/lib/es/loader/index.js
317
- var Je = ["monaco"], Ye = ge(Fe.create({
318
- config: Ie,
319
- isInitialized: !1,
320
- resolve: null,
321
- reject: null,
322
- monaco: null
323
- }), 2), E = Ye[0], D = Ye[1];
324
- function Xe(e) {
325
- var t = We.config(e), n = t.monaco, r = me(t, Je);
326
- D(function(e) {
327
- return {
328
- config: Ke(e.config, r),
329
- monaco: n
330
- };
331
- });
332
- }
333
- function Ze() {
334
- var e = E(function(e) {
335
- return {
336
- monaco: e.monaco,
337
- isInitialized: e.isInitialized,
338
- resolve: e.resolve
339
- };
340
- });
341
- if (!e.isInitialized) {
342
- if (D({ isInitialized: !0 }), e.monaco) return e.resolve(e.monaco), T(it);
343
- if (window.monaco && window.monaco.editor) return nt(window.monaco), e.resolve(window.monaco), T(it);
344
- Ge(Qe, et)(tt);
345
- }
346
- return T(it);
347
- }
348
- function Qe(e) {
349
- return document.body.appendChild(e);
350
- }
351
- function $e(e) {
352
- var t = document.createElement("script");
353
- return e && (t.src = e), t;
354
- }
355
- function et(e) {
356
- var t = E(function(e) {
357
- return {
358
- config: e.config,
359
- reject: e.reject
360
- };
361
- }), n = $e(`${t.config.paths.vs}/loader.js`);
362
- return n.onload = function() {
363
- return e();
364
- }, n.onerror = t.reject, n;
365
- }
366
- function tt() {
367
- var e = E(function(e) {
368
- return {
369
- config: e.config,
370
- resolve: e.resolve,
371
- reject: e.reject
372
- };
373
- }), t = window.require;
374
- t.config(e.config), t(["vs/editor/editor.main"], function(t) {
375
- var n = t.m || t;
376
- nt(n), e.resolve(n);
377
- }, function(t) {
378
- e.reject(t);
379
- });
380
- }
381
- function nt(e) {
382
- E().monaco || D({ monaco: e });
383
- }
384
- function rt() {
385
- return E(function(e) {
386
- return e.monaco;
387
- });
388
- }
389
- var it = new Promise(function(e, t) {
390
- return D({
391
- resolve: e,
392
- reject: t
393
- });
394
- }), at = {
395
- config: Xe,
396
- init: Ze,
397
- __getMonacoInstance: rt
398
- }, O = /* @__PURE__ */ re({
399
- Vue: () => e,
400
- Vue2: () => void 0,
401
- del: () => ct,
402
- install: () => st,
403
- isVue2: () => !1,
404
- isVue3: () => !0,
405
- set: () => k
406
- });
407
- import * as ot from "vue";
408
- ie(O, ot);
409
- function st() {}
410
- function k(e, t, n) {
411
- return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
412
- }
413
- function ct(e, t) {
414
- if (Array.isArray(e)) {
415
- e.splice(t, 1);
416
- return;
417
- }
418
- delete e[t];
419
- }
420
- //#endregion
421
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/core/DndContext.js
422
- var lt = Symbol.for("DndContextType");
423
- function ut(e) {
424
- (0, O.provide)(lt, e);
425
- }
426
- function dt() {
427
- return (0, O.inject)(lt);
428
- }
429
- //#endregion
430
- //#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/typeof.js
431
- function A(e) {
432
- "@babel/helpers - typeof";
433
- return A = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
434
- return typeof e;
435
- } : function(e) {
436
- return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
437
- }, A(e);
438
- }
439
- //#endregion
440
- //#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPrimitive.js
441
- function ft(e, t) {
442
- if (A(e) != "object" || !e) return e;
443
- var n = e[Symbol.toPrimitive];
444
- if (n !== void 0) {
445
- var r = n.call(e, t || "default");
446
- if (A(r) != "object") return r;
447
- throw TypeError("@@toPrimitive must return a primitive value.");
448
- }
449
- return (t === "string" ? String : Number)(e);
450
- }
451
- //#endregion
452
- //#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
453
- function pt(e) {
454
- var t = ft(e, "string");
455
- return A(t) == "symbol" ? t : t + "";
456
- }
457
- //#endregion
458
- //#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/defineProperty.js
459
- function mt(e, t, n) {
460
- return (t = pt(t)) in e ? Object.defineProperty(e, t, {
461
- value: n,
462
- enumerable: !0,
463
- configurable: !0,
464
- writable: !0
465
- }) : e[t] = n, e;
466
- }
467
- //#endregion
468
- //#region ../../node_modules/.pnpm/@babel+runtime@7.28.6/node_modules/@babel/runtime/helpers/esm/objectSpread2.js
469
- function ht(e, t) {
470
- var n = Object.keys(e);
471
- if (Object.getOwnPropertySymbols) {
472
- var r = Object.getOwnPropertySymbols(e);
473
- t && (r = r.filter(function(t) {
474
- return Object.getOwnPropertyDescriptor(e, t).enumerable;
475
- })), n.push.apply(n, r);
476
- }
477
- return n;
478
- }
479
- function gt(e) {
480
- for (var t = 1; t < arguments.length; t++) {
481
- var n = arguments[t] == null ? {} : arguments[t];
482
- t % 2 ? ht(Object(n), !0).forEach(function(t) {
483
- mt(e, t, n[t]);
484
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ht(Object(n)).forEach(function(t) {
485
- Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
486
- });
487
- }
488
- return e;
489
- }
490
- //#endregion
491
- //#region ../../node_modules/.pnpm/redux@4.2.1/node_modules/redux/es/redux.js
492
- function j(e) {
493
- return "Minified Redux error #" + e + "; visit https://redux.js.org/Errors?code=" + e + " for the full message or use the non-minified dev environment for full errors. ";
494
- }
495
- var _t = (function() {
496
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
497
- })(), M = function() {
498
- return Math.random().toString(36).substring(7).split("").join(".");
499
- }, vt = {
500
- INIT: "@@redux/INIT" + M(),
501
- REPLACE: "@@redux/REPLACE" + M(),
502
- PROBE_UNKNOWN_ACTION: function() {
503
- return "@@redux/PROBE_UNKNOWN_ACTION" + M();
504
- }
505
- };
506
- function yt(e) {
507
- if (typeof e != "object" || !e) return !1;
508
- for (var t = e; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
509
- return Object.getPrototypeOf(e) === t;
510
- }
511
- function bt(e, t, n) {
512
- var r;
513
- if (typeof t == "function" && typeof n == "function" || typeof n == "function" && typeof arguments[3] == "function") throw Error(j(0));
514
- if (typeof t == "function" && n === void 0 && (n = t, t = void 0), n !== void 0) {
515
- if (typeof n != "function") throw Error(j(1));
516
- return n(bt)(e, t);
517
- }
518
- if (typeof e != "function") throw Error(j(2));
519
- var i = e, a = t, o = [], s = o, c = !1;
520
- function l() {
521
- s === o && (s = o.slice());
522
- }
523
- function u() {
524
- if (c) throw Error(j(3));
525
- return a;
526
- }
527
- function d(e) {
528
- if (typeof e != "function") throw Error(j(4));
529
- if (c) throw Error(j(5));
530
- var t = !0;
531
- return l(), s.push(e), function() {
532
- if (t) {
533
- if (c) throw Error(j(6));
534
- t = !1, l();
535
- var n = s.indexOf(e);
536
- s.splice(n, 1), o = null;
537
- }
538
- };
539
- }
540
- function f(e) {
541
- if (!yt(e)) throw Error(j(7));
542
- if (e.type === void 0) throw Error(j(8));
543
- if (c) throw Error(j(9));
544
- try {
545
- c = !0, a = i(a, e);
546
- } finally {
547
- c = !1;
548
- }
549
- for (var t = o = s, n = 0; n < t.length; n++) {
550
- var r = t[n];
551
- r();
552
- }
553
- return e;
554
- }
555
- function p(e) {
556
- if (typeof e != "function") throw Error(j(10));
557
- i = e, f({ type: vt.REPLACE });
558
- }
559
- function m() {
560
- var e, t = d;
561
- return e = { subscribe: function(e) {
562
- if (typeof e != "object" || !e) throw Error(j(11));
563
- function n() {
564
- e.next && e.next(u());
565
- }
566
- return n(), { unsubscribe: t(n) };
567
- } }, e[_t] = function() {
568
- return this;
569
- }, e;
570
- }
571
- return f({ type: vt.INIT }), r = {
572
- dispatch: f,
573
- subscribe: d,
574
- getState: u,
575
- replaceReducer: p
576
- }, r[_t] = m, r;
577
- }
578
- //#endregion
579
- //#region ../../node_modules/.pnpm/@react-dnd+invariant@4.0.2/node_modules/@react-dnd/invariant/dist/index.js
580
- function N(e, t, ...n) {
581
- if (xt() && t === void 0) throw Error("invariant requires an error message argument");
582
- if (!e) {
583
- let e;
584
- if (t === void 0) e = /* @__PURE__ */ Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
585
- else {
586
- let r = 0;
587
- e = Error(t.replace(/%s/g, function() {
588
- return n[r++];
589
- })), e.name = "Invariant Violation";
590
- }
591
- throw e.framesToPop = 1, e;
592
- }
593
- }
594
- function xt() {
595
- return typeof process < "u" && !0;
596
- }
597
- //#endregion
598
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/js_utils.js
599
- function St(e, t, n) {
600
- return t.split(".").reduce((e, t) => e && e[t] ? e[t] : n || null, e);
601
- }
602
- function Ct(e, t) {
603
- return e.filter((e) => e !== t);
604
- }
605
- function wt(e) {
606
- return typeof e == "object";
607
- }
608
- function Tt(e, t) {
609
- let n = /* @__PURE__ */ new Map(), r = (e) => {
610
- n.set(e, n.has(e) ? n.get(e) + 1 : 1);
611
- };
612
- e.forEach(r), t.forEach(r);
613
- let i = [];
614
- return n.forEach((e, t) => {
615
- e === 1 && i.push(t);
616
- }), i;
617
- }
618
- function Et(e, t) {
619
- return e.filter((e) => t.indexOf(e) > -1);
620
- }
621
- //#endregion
622
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/types.js
623
- var P = "dnd-core/INIT_COORDS", F = "dnd-core/BEGIN_DRAG", Dt = "dnd-core/PUBLISH_DRAG_SOURCE", I = "dnd-core/HOVER", L = "dnd-core/DROP", R = "dnd-core/END_DRAG";
624
- //#endregion
625
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/local/setClientOffset.js
626
- function Ot(e, t) {
627
- return {
628
- type: P,
629
- payload: {
630
- sourceClientOffset: t || null,
631
- clientOffset: e || null
632
- }
633
- };
634
- }
635
- //#endregion
636
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/beginDrag.js
637
- var kt = {
638
- type: P,
639
- payload: {
640
- clientOffset: null,
641
- sourceClientOffset: null
642
- }
643
- };
644
- function At(e) {
645
- return function(t = [], n = { publishSource: !0 }) {
646
- let { publishSource: r = !0, clientOffset: i, getSourceClientOffset: a } = n, o = e.getMonitor(), s = e.getRegistry();
647
- e.dispatch(Ot(i)), jt(t, o, s);
648
- let c = Pt(t, o);
649
- if (c == null) {
650
- e.dispatch(kt);
651
- return;
652
- }
653
- let l = null;
654
- if (i) {
655
- if (!a) throw Error("getSourceClientOffset must be defined");
656
- Mt(a), l = a(c);
657
- }
658
- e.dispatch(Ot(i, l));
659
- let u = s.getSource(c).beginDrag(o, c);
660
- if (u != null) return Nt(u), s.pinSource(c), {
661
- type: F,
662
- payload: {
663
- itemType: s.getSourceType(c),
664
- item: u,
665
- sourceId: c,
666
- clientOffset: i || null,
667
- sourceClientOffset: l || null,
668
- isSourcePublic: !!r
669
- }
670
- };
671
- };
672
- }
673
- function jt(e, t, n) {
674
- N(!t.isDragging(), "Cannot call beginDrag while dragging."), e.forEach(function(e) {
675
- N(n.getSource(e), "Expected sourceIds to be registered.");
676
- });
677
- }
678
- function Mt(e) {
679
- N(typeof e == "function", "When clientOffset is provided, getSourceClientOffset must be a function.");
680
- }
681
- function Nt(e) {
682
- N(wt(e), "Item must be an object.");
683
- }
684
- function Pt(e, t) {
685
- let n = null;
686
- for (let r = e.length - 1; r >= 0; r--) if (t.canDragSource(e[r])) {
687
- n = e[r];
688
- break;
689
- }
690
- return n;
691
- }
692
- //#endregion
693
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/drop.js
694
- function Ft(e, t, n) {
695
- return t in e ? Object.defineProperty(e, t, {
696
- value: n,
697
- enumerable: !0,
698
- configurable: !0,
699
- writable: !0
700
- }) : e[t] = n, e;
701
- }
702
- function It(e) {
703
- for (var t = 1; t < arguments.length; t++) {
704
- var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
705
- typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
706
- return Object.getOwnPropertyDescriptor(n, e).enumerable;
707
- }))), r.forEach(function(t) {
708
- Ft(e, t, n[t]);
709
- });
710
- }
711
- return e;
712
- }
713
- function Lt(e) {
714
- return function(t = {}) {
715
- let n = e.getMonitor(), r = e.getRegistry();
716
- Rt(n), Vt(n).forEach((i, a) => {
717
- let o = {
718
- type: L,
719
- payload: { dropResult: It({}, t, zt(i, a, r, n)) }
720
- };
721
- e.dispatch(o);
722
- });
723
- };
724
- }
725
- function Rt(e) {
726
- N(e.isDragging(), "Cannot call drop while not dragging."), N(!e.didDrop(), "Cannot call drop twice during one drag operation.");
727
- }
728
- function zt(e, t, n, r) {
729
- let i = n.getTarget(e), a = i ? i.drop(r, e) : void 0;
730
- return Bt(a), a === void 0 && (a = t === 0 ? {} : r.getDropResult()), a;
731
- }
732
- function Bt(e) {
733
- N(e === void 0 || wt(e), "Drop result must either be an object or undefined.");
734
- }
735
- function Vt(e) {
736
- let t = e.getTargetIds().filter(e.canDropOnTarget, e);
737
- return t.reverse(), t;
738
- }
739
- //#endregion
740
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/endDrag.js
741
- function Ht(e) {
742
- return function() {
743
- let t = e.getMonitor(), n = e.getRegistry();
744
- Ut(t);
745
- let r = t.getSourceId();
746
- return r != null && (n.getSource(r, !0).endDrag(t, r), n.unpinSource()), { type: R };
747
- };
748
- }
749
- function Ut(e) {
750
- N(e.isDragging(), "Cannot call endDrag while not dragging.");
751
- }
752
- //#endregion
753
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/matchesType.js
754
- function z(e, t) {
755
- return t === null ? e === null : Array.isArray(e) ? e.some((e) => e === t) : e === t;
756
- }
757
- //#endregion
758
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/hover.js
759
- function Wt(e) {
760
- return function(t, { clientOffset: n } = {}) {
761
- Gt(t);
762
- let r = t.slice(0), i = e.getMonitor(), a = e.getRegistry();
763
- return qt(r, a, i.getItemType()), Kt(r, i, a), Jt(r, i, a), {
764
- type: I,
765
- payload: {
766
- targetIds: r,
767
- clientOffset: n || null
768
- }
769
- };
770
- };
771
- }
772
- function Gt(e) {
773
- N(Array.isArray(e), "Expected targetIds to be an array.");
774
- }
775
- function Kt(e, t, n) {
776
- N(t.isDragging(), "Cannot call hover while not dragging."), N(!t.didDrop(), "Cannot call hover after drop.");
777
- for (let t = 0; t < e.length; t++) {
778
- let r = e[t];
779
- N(e.lastIndexOf(r) === t, "Expected targetIds to be unique in the passed array."), N(n.getTarget(r), "Expected targetIds to be registered.");
780
- }
781
- }
782
- function qt(e, t, n) {
783
- for (let r = e.length - 1; r >= 0; r--) {
784
- let i = e[r];
785
- z(t.getTargetType(i), n) || e.splice(r, 1);
786
- }
787
- }
788
- function Jt(e, t, n) {
789
- e.forEach(function(e) {
790
- n.getTarget(e).hover(t, e);
791
- });
792
- }
793
- //#endregion
794
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/publishDragSource.js
795
- function Yt(e) {
796
- return function() {
797
- if (e.getMonitor().isDragging()) return { type: Dt };
798
- };
799
- }
800
- //#endregion
801
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/dragDrop/index.js
802
- function Xt(e) {
803
- return {
804
- beginDrag: At(e),
805
- publishDragSource: Yt(e),
806
- hover: Wt(e),
807
- drop: Lt(e),
808
- endDrag: Ht(e)
809
- };
810
- }
811
- //#endregion
812
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/classes/DragDropManagerImpl.js
813
- var Zt = class {
814
- receiveBackend(e) {
815
- this.backend = e;
816
- }
817
- getMonitor() {
818
- return this.monitor;
819
- }
820
- getBackend() {
821
- return this.backend;
822
- }
823
- getRegistry() {
824
- return this.monitor.registry;
825
- }
826
- getActions() {
827
- let e = this, { dispatch: t } = this.store;
828
- function n(n) {
829
- return (...r) => {
830
- let i = n.apply(e, r);
831
- i !== void 0 && t(i);
832
- };
833
- }
834
- let r = Xt(this);
835
- return Object.keys(r).reduce((e, t) => {
836
- let i = r[t];
837
- return e[t] = n(i), e;
838
- }, {});
839
- }
840
- dispatch(e) {
841
- this.store.dispatch(e);
842
- }
843
- constructor(e, t) {
844
- this.isSetUp = !1, this.handleRefCountChange = () => {
845
- let e = this.store.getState().refCount > 0;
846
- this.backend && (e && !this.isSetUp ? (this.backend.setup(), this.isSetUp = !0) : !e && this.isSetUp && (this.backend.teardown(), this.isSetUp = !1));
847
- }, this.store = e, this.monitor = t, e.subscribe(this.handleRefCountChange);
848
- }
849
- };
850
- //#endregion
851
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/coords.js
852
- function Qt(e, t) {
853
- return {
854
- x: e.x + t.x,
855
- y: e.y + t.y
856
- };
857
- }
858
- function $t(e, t) {
859
- return {
860
- x: e.x - t.x,
861
- y: e.y - t.y
862
- };
863
- }
864
- function en(e) {
865
- let { clientOffset: t, initialClientOffset: n, initialSourceClientOffset: r } = e;
866
- return !t || !n || !r ? null : $t(Qt(t, r), n);
867
- }
868
- function tn(e) {
869
- let { clientOffset: t, initialClientOffset: n } = e;
870
- return !t || !n ? null : $t(t, n);
871
- }
872
- //#endregion
873
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/dirtiness.js
874
- var B = [], V = [];
875
- B.__IS_NONE__ = !0, V.__IS_ALL__ = !0;
876
- function nn(e, t) {
877
- return e === B ? !1 : e === V || t === void 0 ? !0 : Et(t, e).length > 0;
878
- }
879
- //#endregion
880
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/classes/DragDropMonitorImpl.js
881
- var rn = class {
882
- subscribeToStateChange(e, t = {}) {
883
- let { handlerIds: n } = t;
884
- N(typeof e == "function", "listener must be a function."), N(n === void 0 || Array.isArray(n), "handlerIds, when specified, must be an array of strings.");
885
- let r = this.store.getState().stateId;
886
- return this.store.subscribe(() => {
887
- let t = this.store.getState(), i = t.stateId;
888
- try {
889
- i === r || i === r + 1 && !nn(t.dirtyHandlerIds, n) || e();
890
- } finally {
891
- r = i;
892
- }
893
- });
894
- }
895
- subscribeToOffsetChange(e) {
896
- N(typeof e == "function", "listener must be a function.");
897
- let t = this.store.getState().dragOffset;
898
- return this.store.subscribe(() => {
899
- let n = this.store.getState().dragOffset;
900
- n !== t && (t = n, e());
901
- });
902
- }
903
- canDragSource(e) {
904
- if (!e) return !1;
905
- let t = this.registry.getSource(e);
906
- return N(t, `Expected to find a valid source. sourceId=${e}`), this.isDragging() ? !1 : t.canDrag(this, e);
907
- }
908
- canDropOnTarget(e) {
909
- if (!e) return !1;
910
- let t = this.registry.getTarget(e);
911
- return N(t, `Expected to find a valid target. targetId=${e}`), !this.isDragging() || this.didDrop() ? !1 : z(this.registry.getTargetType(e), this.getItemType()) && t.canDrop(this, e);
912
- }
913
- isDragging() {
914
- return !!this.getItemType();
915
- }
916
- isDraggingSource(e) {
917
- if (!e) return !1;
918
- let t = this.registry.getSource(e, !0);
919
- return N(t, `Expected to find a valid source. sourceId=${e}`), !this.isDragging() || !this.isSourcePublic() || this.registry.getSourceType(e) !== this.getItemType() ? !1 : t.isDragging(this, e);
920
- }
921
- isOverTarget(e, t = { shallow: !1 }) {
922
- if (!e) return !1;
923
- let { shallow: n } = t;
924
- if (!this.isDragging()) return !1;
925
- let r = this.registry.getTargetType(e), i = this.getItemType();
926
- if (i && !z(r, i)) return !1;
927
- let a = this.getTargetIds();
928
- if (!a.length) return !1;
929
- let o = a.indexOf(e);
930
- return n ? o === a.length - 1 : o > -1;
931
- }
932
- getItemType() {
933
- return this.store.getState().dragOperation.itemType;
934
- }
935
- getItem() {
936
- return this.store.getState().dragOperation.item;
937
- }
938
- getSourceId() {
939
- return this.store.getState().dragOperation.sourceId;
940
- }
941
- getTargetIds() {
942
- return this.store.getState().dragOperation.targetIds;
943
- }
944
- getDropResult() {
945
- return this.store.getState().dragOperation.dropResult;
946
- }
947
- didDrop() {
948
- return this.store.getState().dragOperation.didDrop;
949
- }
950
- isSourcePublic() {
951
- return !!this.store.getState().dragOperation.isSourcePublic;
952
- }
953
- getInitialClientOffset() {
954
- return this.store.getState().dragOffset.initialClientOffset;
955
- }
956
- getInitialSourceClientOffset() {
957
- return this.store.getState().dragOffset.initialSourceClientOffset;
958
- }
959
- getClientOffset() {
960
- return this.store.getState().dragOffset.clientOffset;
961
- }
962
- getSourceClientOffset() {
963
- return en(this.store.getState().dragOffset);
964
- }
965
- getDifferenceFromInitialOffset() {
966
- return tn(this.store.getState().dragOffset);
967
- }
968
- constructor(e, t) {
969
- this.store = e, this.registry = t;
970
- }
971
- }, an = typeof global < "u" ? global : self, on = an.MutationObserver || an.WebKitMutationObserver;
972
- function sn(e) {
973
- return function() {
974
- let t = setTimeout(r, 0), n = setInterval(r, 50);
975
- function r() {
976
- clearTimeout(t), clearInterval(n), e();
977
- }
978
- };
979
- }
980
- function cn(e) {
981
- let t = 1, n = new on(e), r = document.createTextNode("");
982
- return n.observe(r, { characterData: !0 }), function() {
983
- t = -t, r.data = t;
984
- };
985
- }
986
- var ln = typeof on == "function" ? cn : sn, un = class {
987
- enqueueTask(e) {
988
- let { queue: t, requestFlush: n } = this;
989
- t.length || (n(), this.flushing = !0), t[t.length] = e;
990
- }
991
- constructor() {
992
- this.queue = [], this.pendingErrors = [], this.flushing = !1, this.index = 0, this.capacity = 1024, this.flush = () => {
993
- let { queue: e } = this;
994
- for (; this.index < e.length;) {
995
- let t = this.index;
996
- if (this.index++, e[t].call(), this.index > this.capacity) {
997
- for (let t = 0, n = e.length - this.index; t < n; t++) e[t] = e[t + this.index];
998
- e.length -= this.index, this.index = 0;
999
- }
1000
- }
1001
- e.length = 0, this.index = 0, this.flushing = !1;
1002
- }, this.registerPendingError = (e) => {
1003
- this.pendingErrors.push(e), this.requestErrorThrow();
1004
- }, this.requestFlush = ln(this.flush), this.requestErrorThrow = sn(() => {
1005
- if (this.pendingErrors.length) throw this.pendingErrors.shift();
1006
- });
1007
- }
1008
- }, dn = class {
1009
- call() {
1010
- try {
1011
- this.task && this.task();
1012
- } catch (e) {
1013
- this.onError(e);
1014
- } finally {
1015
- this.task = null, this.release(this);
1016
- }
1017
- }
1018
- constructor(e, t) {
1019
- this.onError = e, this.release = t, this.task = null;
1020
- }
1021
- }, fn = class {
1022
- create(e) {
1023
- let t = this.freeTasks, n = t.length ? t.pop() : new dn(this.onError, (e) => t[t.length] = e);
1024
- return n.task = e, n;
1025
- }
1026
- constructor(e) {
1027
- this.onError = e, this.freeTasks = [];
1028
- }
1029
- }, pn = new un(), mn = new fn(pn.registerPendingError);
1030
- function hn(e) {
1031
- pn.enqueueTask(mn.create(e));
1032
- }
1033
- //#endregion
1034
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/actions/registry.js
1035
- var H = "dnd-core/ADD_SOURCE", U = "dnd-core/ADD_TARGET", W = "dnd-core/REMOVE_SOURCE", G = "dnd-core/REMOVE_TARGET";
1036
- function gn(e) {
1037
- return {
1038
- type: H,
1039
- payload: { sourceId: e }
1040
- };
1041
- }
1042
- function _n(e) {
1043
- return {
1044
- type: U,
1045
- payload: { targetId: e }
1046
- };
1047
- }
1048
- function vn(e) {
1049
- return {
1050
- type: W,
1051
- payload: { sourceId: e }
1052
- };
1053
- }
1054
- function yn(e) {
1055
- return {
1056
- type: G,
1057
- payload: { targetId: e }
1058
- };
1059
- }
1060
- //#endregion
1061
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/contracts.js
1062
- function bn(e) {
1063
- N(typeof e.canDrag == "function", "Expected canDrag to be a function."), N(typeof e.beginDrag == "function", "Expected beginDrag to be a function."), N(typeof e.endDrag == "function", "Expected endDrag to be a function.");
1064
- }
1065
- function xn(e) {
1066
- N(typeof e.canDrop == "function", "Expected canDrop to be a function."), N(typeof e.hover == "function", "Expected hover to be a function."), N(typeof e.drop == "function", "Expected beginDrag to be a function.");
1067
- }
1068
- function K(e, t) {
1069
- if (t && Array.isArray(e)) {
1070
- e.forEach((e) => K(e, !1));
1071
- return;
1072
- }
1073
- N(typeof e == "string" || typeof e == "symbol", t ? "Type can only be a string, a symbol, or an array of either." : "Type can only be a string or a symbol.");
1074
- }
1075
- //#endregion
1076
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/interfaces.js
1077
- var q;
1078
- (function(e) {
1079
- e.SOURCE = "SOURCE", e.TARGET = "TARGET";
1080
- })(q ||= {});
1081
- //#endregion
1082
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/utils/getNextUniqueId.js
1083
- var Sn = 0;
1084
- function Cn() {
1085
- return Sn++;
1086
- }
1087
- //#endregion
1088
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/classes/HandlerRegistryImpl.js
1089
- function wn(e) {
1090
- let t = Cn().toString();
1091
- switch (e) {
1092
- case q.SOURCE: return `S${t}`;
1093
- case q.TARGET: return `T${t}`;
1094
- default: throw Error(`Unknown Handler Role: ${e}`);
1095
- }
1096
- }
1097
- function Tn(e) {
1098
- switch (e[0]) {
1099
- case "S": return q.SOURCE;
1100
- case "T": return q.TARGET;
1101
- default: throw Error(`Cannot parse handler ID: ${e}`);
1102
- }
1103
- }
1104
- function En(e, t) {
1105
- let n = e.entries(), r = !1;
1106
- do {
1107
- let { done: e, value: [, i] } = n.next();
1108
- if (i === t) return !0;
1109
- r = !!e;
1110
- } while (!r);
1111
- return !1;
1112
- }
1113
- var Dn = class {
1114
- addSource(e, t) {
1115
- K(e), bn(t);
1116
- let n = this.addHandler(q.SOURCE, e, t);
1117
- return this.store.dispatch(gn(n)), n;
1118
- }
1119
- addTarget(e, t) {
1120
- K(e, !0), xn(t);
1121
- let n = this.addHandler(q.TARGET, e, t);
1122
- return this.store.dispatch(_n(n)), n;
1123
- }
1124
- containsHandler(e) {
1125
- return En(this.dragSources, e) || En(this.dropTargets, e);
1126
- }
1127
- getSource(e, t = !1) {
1128
- return N(this.isSourceId(e), "Expected a valid source ID."), t && e === this.pinnedSourceId ? this.pinnedSource : this.dragSources.get(e);
1129
- }
1130
- getTarget(e) {
1131
- return N(this.isTargetId(e), "Expected a valid target ID."), this.dropTargets.get(e);
1132
- }
1133
- getSourceType(e) {
1134
- return N(this.isSourceId(e), "Expected a valid source ID."), this.types.get(e);
1135
- }
1136
- getTargetType(e) {
1137
- return N(this.isTargetId(e), "Expected a valid target ID."), this.types.get(e);
1138
- }
1139
- isSourceId(e) {
1140
- return Tn(e) === q.SOURCE;
1141
- }
1142
- isTargetId(e) {
1143
- return Tn(e) === q.TARGET;
1144
- }
1145
- removeSource(e) {
1146
- N(this.getSource(e), "Expected an existing source."), this.store.dispatch(vn(e)), hn(() => {
1147
- this.dragSources.delete(e), this.types.delete(e);
1148
- });
1149
- }
1150
- removeTarget(e) {
1151
- N(this.getTarget(e), "Expected an existing target."), this.store.dispatch(yn(e)), this.dropTargets.delete(e), this.types.delete(e);
1152
- }
1153
- pinSource(e) {
1154
- let t = this.getSource(e);
1155
- N(t, "Expected an existing source."), this.pinnedSourceId = e, this.pinnedSource = t;
1156
- }
1157
- unpinSource() {
1158
- N(this.pinnedSource, "No source is pinned at the time."), this.pinnedSourceId = null, this.pinnedSource = null;
1159
- }
1160
- addHandler(e, t, n) {
1161
- let r = wn(e);
1162
- return this.types.set(r, t), e === q.SOURCE ? this.dragSources.set(r, n) : e === q.TARGET && this.dropTargets.set(r, n), r;
1163
- }
1164
- constructor(e) {
1165
- this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
1166
- }
1167
- }, On = (e, t) => e === t;
1168
- function kn(e, t) {
1169
- return !e && !t ? !0 : !e || !t ? !1 : e.x === t.x && e.y === t.y;
1170
- }
1171
- function An(e, t, n = On) {
1172
- if (e.length !== t.length) return !1;
1173
- for (let r = 0; r < e.length; ++r) if (!n(e[r], t[r])) return !1;
1174
- return !0;
1175
- }
1176
- //#endregion
1177
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/dirtyHandlerIds.js
1178
- function jn(e = B, t) {
1179
- switch (t.type) {
1180
- case I: break;
1181
- case H:
1182
- case U:
1183
- case G:
1184
- case W: return B;
1185
- case F:
1186
- case Dt:
1187
- case R:
1188
- case L:
1189
- default: return V;
1190
- }
1191
- let { targetIds: n = [], prevTargetIds: r = [] } = t.payload, i = Tt(n, r);
1192
- if (!(i.length > 0 || !An(n, r))) return B;
1193
- let a = r[r.length - 1], o = n[n.length - 1];
1194
- return a !== o && (a && i.push(a), o && i.push(o)), i;
1195
- }
1196
- //#endregion
1197
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/dragOffset.js
1198
- function Mn(e, t, n) {
1199
- return t in e ? Object.defineProperty(e, t, {
1200
- value: n,
1201
- enumerable: !0,
1202
- configurable: !0,
1203
- writable: !0
1204
- }) : e[t] = n, e;
1205
- }
1206
- function Nn(e) {
1207
- for (var t = 1; t < arguments.length; t++) {
1208
- var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
1209
- typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
1210
- return Object.getOwnPropertyDescriptor(n, e).enumerable;
1211
- }))), r.forEach(function(t) {
1212
- Mn(e, t, n[t]);
1213
- });
1214
- }
1215
- return e;
1216
- }
1217
- var Pn = {
1218
- initialSourceClientOffset: null,
1219
- initialClientOffset: null,
1220
- clientOffset: null
1221
- };
1222
- function Fn(e = Pn, t) {
1223
- let { payload: n } = t;
1224
- switch (t.type) {
1225
- case P:
1226
- case F: return {
1227
- initialSourceClientOffset: n.sourceClientOffset,
1228
- initialClientOffset: n.clientOffset,
1229
- clientOffset: n.clientOffset
1230
- };
1231
- case I: return kn(e.clientOffset, n.clientOffset) ? e : Nn({}, e, { clientOffset: n.clientOffset });
1232
- case R:
1233
- case L: return Pn;
1234
- default: return e;
1235
- }
1236
- }
1237
- //#endregion
1238
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/dragOperation.js
1239
- function In(e, t, n) {
1240
- return t in e ? Object.defineProperty(e, t, {
1241
- value: n,
1242
- enumerable: !0,
1243
- configurable: !0,
1244
- writable: !0
1245
- }) : e[t] = n, e;
1246
- }
1247
- function J(e) {
1248
- for (var t = 1; t < arguments.length; t++) {
1249
- var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
1250
- typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
1251
- return Object.getOwnPropertyDescriptor(n, e).enumerable;
1252
- }))), r.forEach(function(t) {
1253
- In(e, t, n[t]);
1254
- });
1255
- }
1256
- return e;
1257
- }
1258
- var Ln = {
1259
- itemType: null,
1260
- item: null,
1261
- sourceId: null,
1262
- targetIds: [],
1263
- dropResult: null,
1264
- didDrop: !1,
1265
- isSourcePublic: null
1266
- };
1267
- function Rn(e = Ln, t) {
1268
- let { payload: n } = t;
1269
- switch (t.type) {
1270
- case F: return J({}, e, {
1271
- itemType: n.itemType,
1272
- item: n.item,
1273
- sourceId: n.sourceId,
1274
- isSourcePublic: n.isSourcePublic,
1275
- dropResult: null,
1276
- didDrop: !1
1277
- });
1278
- case Dt: return J({}, e, { isSourcePublic: !0 });
1279
- case I: return J({}, e, { targetIds: n.targetIds });
1280
- case G: return e.targetIds.indexOf(n.targetId) === -1 ? e : J({}, e, { targetIds: Ct(e.targetIds, n.targetId) });
1281
- case L: return J({}, e, {
1282
- dropResult: n.dropResult,
1283
- didDrop: !0,
1284
- targetIds: []
1285
- });
1286
- case R: return J({}, e, {
1287
- itemType: null,
1288
- item: null,
1289
- sourceId: null,
1290
- dropResult: null,
1291
- didDrop: !1,
1292
- isSourcePublic: null,
1293
- targetIds: []
1294
- });
1295
- default: return e;
1296
- }
1297
- }
1298
- //#endregion
1299
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/refCount.js
1300
- function zn(e = 0, t) {
1301
- switch (t.type) {
1302
- case H:
1303
- case U: return e + 1;
1304
- case W:
1305
- case G: return e - 1;
1306
- default: return e;
1307
- }
1308
- }
1309
- //#endregion
1310
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/stateId.js
1311
- function Bn(e = 0) {
1312
- return e + 1;
1313
- }
1314
- //#endregion
1315
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/reducers/index.js
1316
- function Vn(e, t, n) {
1317
- return t in e ? Object.defineProperty(e, t, {
1318
- value: n,
1319
- enumerable: !0,
1320
- configurable: !0,
1321
- writable: !0
1322
- }) : e[t] = n, e;
1323
- }
1324
- function Hn(e) {
1325
- for (var t = 1; t < arguments.length; t++) {
1326
- var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
1327
- typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
1328
- return Object.getOwnPropertyDescriptor(n, e).enumerable;
1329
- }))), r.forEach(function(t) {
1330
- Vn(e, t, n[t]);
1331
- });
1332
- }
1333
- return e;
1334
- }
1335
- function Un(e = {}, t) {
1336
- return {
1337
- dirtyHandlerIds: jn(e.dirtyHandlerIds, {
1338
- type: t.type,
1339
- payload: Hn({}, t.payload, { prevTargetIds: St(e, "dragOperation.targetIds", []) })
1340
- }),
1341
- dragOffset: Fn(e.dragOffset, t),
1342
- refCount: zn(e.refCount, t),
1343
- dragOperation: Rn(e.dragOperation, t),
1344
- stateId: Bn(e.stateId)
1345
- };
1346
- }
1347
- //#endregion
1348
- //#region ../../node_modules/.pnpm/dnd-core@16.0.1/node_modules/dnd-core/dist/createDragDropManager.js
1349
- function Wn(e, t = void 0, n = {}, r = !1) {
1350
- let i = Gn(r), a = new Zt(i, new rn(i, new Dn(i))), o = e(a, t, n);
1351
- return a.receiveBackend(o), a;
1352
- }
1353
- function Gn(e) {
1354
- let t = typeof window < "u" && window.__REDUX_DEVTOOLS_EXTENSION__;
1355
- return bt(Un, e && t && t({
1356
- name: "dnd-core",
1357
- instanceId: "dnd-core"
1358
- }));
1359
- }
1360
- //#endregion
1361
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/core/DndProvider.js
1362
- function Kn(e, t) {
1363
- (t == null || t > e.length) && (t = e.length);
1364
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1365
- return r;
1366
- }
1367
- function qn(e) {
1368
- if (Array.isArray(e)) return e;
1369
- }
1370
- function Jn(e, t) {
1371
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1372
- if (n != null) {
1373
- var r = [], i = !0, a = !1, o, s;
1374
- try {
1375
- for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
1376
- } catch (e) {
1377
- a = !0, s = e;
1378
- } finally {
1379
- try {
1380
- !i && n.return != null && n.return();
1381
- } finally {
1382
- if (a) throw s;
1383
- }
1384
- }
1385
- return r;
1386
- }
1387
- }
1388
- function Yn() {
1389
- throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1390
- }
1391
- function Xn(e, t) {
1392
- return qn(e) || Jn(e, t) || Zn(e, t) || Yn();
1393
- }
1394
- function Zn(e, t) {
1395
- if (e) {
1396
- if (typeof e == "string") return Kn(e, t);
1397
- var n = Object.prototype.toString.call(e).slice(8, -1);
1398
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
1399
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Kn(e, t);
1400
- }
1401
- }
1402
- var Qn = 0, Y = Symbol.for("__VUE_DND_CONTEXT_INSTANCE__");
1403
- function $n(e) {
1404
- return "manager" in e && e.manager;
1405
- }
1406
- function er(e) {
1407
- return $n(e) ? [e.manager, !1] : [tr(e.backend, e.context, e.options, e.debugMode), !e.context];
1408
- }
1409
- function tr(e) {
1410
- var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : nr(), n = arguments.length > 2 ? arguments[2] : void 0, r = arguments.length > 3 ? arguments[3] : void 0, i = t;
1411
- return i[Y] || (i[Y] = Wn(e, t, n, r)), i[Y];
1412
- }
1413
- function nr() {
1414
- return typeof globalThis < "u" ? globalThis : typeof global < "u" ? global : window;
1415
- }
1416
- var rr = (0, O.defineComponent)({
1417
- name: "DndProvider",
1418
- props: {
1419
- manager: { type: Object },
1420
- backend: { type: Function },
1421
- context: { type: Object },
1422
- options: { type: Object },
1423
- debugMode: { type: Boolean }
1424
- },
1425
- setup: function(e, t) {
1426
- var n = t.slots, r = Xn(er(e), 2), i = r[0], a = r[1];
1427
- return a && ++Qn, (0, O.onUnmounted)(function() {
1428
- if (a) {
1429
- var e = nr();
1430
- --Qn === 0 && (e[Y] = null);
1431
- }
1432
- }), ut(i), function() {
1433
- return n.default?.call(n) ?? null;
1434
- };
1435
- }
1436
- });
1437
- (0, O.defineComponent)({
1438
- props: {
1439
- connect: {
1440
- type: Function,
1441
- required: !0
1442
- },
1443
- src: {
1444
- type: String,
1445
- required: !0
1446
- }
1447
- },
1448
- setup: function(e) {
1449
- return (0, O.watchEffect)(function() {
1450
- if (!(typeof Image > "u")) {
1451
- var t = !1, n = new Image();
1452
- return n.src = e.src, n.onload = function() {
1453
- e.connect(n), t = !0;
1454
- }, function() {
1455
- t && e.connect(null);
1456
- };
1457
- }
1458
- }), function() {
1459
- return null;
1460
- };
1461
- }
1462
- });
1463
- //#endregion
1464
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/DragSourceMonitorImpl.js
1465
- function ir(e, t) {
1466
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1467
- }
1468
- var X = !1, ar = !1, or = /* @__PURE__ */ function() {
1469
- function e(t) {
1470
- ir(this, e), this.sourceId = null, this.internalMonitor = t.getMonitor();
1471
- }
1472
- var t = e.prototype;
1473
- return t.receiveHandlerId = function(e) {
1474
- this.sourceId = e;
1475
- }, t.getHandlerId = function() {
1476
- return this.sourceId;
1477
- }, t.canDrag = function() {
1478
- N(!X, "You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1479
- try {
1480
- return X = !0, this.internalMonitor.canDragSource(this.sourceId);
1481
- } finally {
1482
- X = !1;
1483
- }
1484
- }, t.isDragging = function() {
1485
- if (!this.sourceId) return !1;
1486
- N(!ar, "You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor");
1487
- try {
1488
- return ar = !0, this.internalMonitor.isDraggingSource(this.sourceId);
1489
- } finally {
1490
- ar = !1;
1491
- }
1492
- }, t.subscribeToStateChange = function(e, t) {
1493
- return this.internalMonitor.subscribeToStateChange(e, t);
1494
- }, t.isDraggingSource = function(e) {
1495
- return this.internalMonitor.isDraggingSource(e);
1496
- }, t.isOverTarget = function(e, t) {
1497
- return this.internalMonitor.isOverTarget(e, t);
1498
- }, t.getTargetIds = function() {
1499
- return this.internalMonitor.getTargetIds();
1500
- }, t.isSourcePublic = function() {
1501
- return this.internalMonitor.isSourcePublic();
1502
- }, t.getSourceId = function() {
1503
- return this.internalMonitor.getSourceId();
1504
- }, t.subscribeToOffsetChange = function(e) {
1505
- return this.internalMonitor.subscribeToOffsetChange(e);
1506
- }, t.canDragSource = function(e) {
1507
- return this.internalMonitor.canDragSource(e);
1508
- }, t.canDropOnTarget = function(e) {
1509
- return this.internalMonitor.canDropOnTarget(e);
1510
- }, t.getItemType = function() {
1511
- return this.internalMonitor.getItemType();
1512
- }, t.getItem = function() {
1513
- return this.internalMonitor.getItem();
1514
- }, t.getDropResult = function() {
1515
- return this.internalMonitor.getDropResult();
1516
- }, t.didDrop = function() {
1517
- return this.internalMonitor.didDrop();
1518
- }, t.getInitialClientOffset = function() {
1519
- return this.internalMonitor.getInitialClientOffset();
1520
- }, t.getInitialSourceClientOffset = function() {
1521
- return this.internalMonitor.getInitialSourceClientOffset();
1522
- }, t.getSourceClientOffset = function() {
1523
- return this.internalMonitor.getSourceClientOffset();
1524
- }, t.getClientOffset = function() {
1525
- return this.internalMonitor.getClientOffset();
1526
- }, t.getDifferenceFromInitialOffset = function() {
1527
- return this.internalMonitor.getDifferenceFromInitialOffset();
1528
- }, e;
1529
- }();
1530
- //#endregion
1531
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/DropTargetMonitorImpl.js
1532
- function sr(e, t) {
1533
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1534
- }
1535
- var cr = !1, lr = /* @__PURE__ */ function() {
1536
- function e(t) {
1537
- sr(this, e), this.targetId = null, this.internalMonitor = t.getMonitor();
1538
- }
1539
- var t = e.prototype;
1540
- return t.receiveHandlerId = function(e) {
1541
- this.targetId = e;
1542
- }, t.getHandlerId = function() {
1543
- return this.targetId;
1544
- }, t.subscribeToStateChange = function(e, t) {
1545
- return this.internalMonitor.subscribeToStateChange(e, t);
1546
- }, t.canDrop = function() {
1547
- if (!this.targetId) return !1;
1548
- N(!cr, "You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor");
1549
- try {
1550
- return cr = !0, this.internalMonitor.canDropOnTarget(this.targetId);
1551
- } finally {
1552
- cr = !1;
1553
- }
1554
- }, t.isOver = function(e) {
1555
- return this.targetId ? this.internalMonitor.isOverTarget(this.targetId, e) : !1;
1556
- }, t.getItemType = function() {
1557
- return this.internalMonitor.getItemType();
1558
- }, t.getItem = function() {
1559
- return this.internalMonitor.getItem();
1560
- }, t.getDropResult = function() {
1561
- return this.internalMonitor.getDropResult();
1562
- }, t.didDrop = function() {
1563
- return this.internalMonitor.didDrop();
1564
- }, t.getInitialClientOffset = function() {
1565
- return this.internalMonitor.getInitialClientOffset();
1566
- }, t.getInitialSourceClientOffset = function() {
1567
- return this.internalMonitor.getInitialSourceClientOffset();
1568
- }, t.getSourceClientOffset = function() {
1569
- return this.internalMonitor.getSourceClientOffset();
1570
- }, t.getClientOffset = function() {
1571
- return this.internalMonitor.getClientOffset();
1572
- }, t.getDifferenceFromInitialOffset = function() {
1573
- return this.internalMonitor.getDifferenceFromInitialOffset();
1574
- }, e;
1575
- }(), ur = function(e) {
1576
- "@swc/helpers - typeof";
1577
- return e && typeof Symbol < "u" && e.constructor === Symbol ? "symbol" : typeof e;
1578
- };
1579
- function dr(e) {
1580
- return e ? e.__v_isVNode === !0 : !1;
1581
- }
1582
- function fr(e) {
1583
- return e ? e.__v_skip : !1;
1584
- }
1585
- function pr(e) {
1586
- return dr(e) && ur(e.type) !== "symbol";
1587
- }
1588
- //#endregion
1589
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/wrapConnectorHooks.js
1590
- function mr() {
1591
- throw Error("Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.");
1592
- }
1593
- function hr(e) {
1594
- return function() {
1595
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
1596
- if (fr(t) && mr(), !pr(t)) {
1597
- var r = t;
1598
- return e(r, n), r;
1599
- }
1600
- };
1601
- }
1602
- function gr(e) {
1603
- var t = {};
1604
- return Object.keys(e).forEach(function(n) {
1605
- var r = e[n];
1606
- if (n.endsWith("Ref")) t[n] = e[n];
1607
- else {
1608
- var i = hr(r);
1609
- t[n] = function() {
1610
- return i;
1611
- };
1612
- }
1613
- }), t;
1614
- }
1615
- //#endregion
1616
- //#region ../../node_modules/.pnpm/@react-dnd+shallowequal@4.0.2/node_modules/@react-dnd/shallowequal/dist/index.js
1617
- function _r(e, t, n, r) {
1618
- let i = n ? n.call(r, e, t) : void 0;
1619
- if (i !== void 0) return !!i;
1620
- if (e === t) return !0;
1621
- if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
1622
- let a = Object.keys(e), o = Object.keys(t);
1623
- if (a.length !== o.length) return !1;
1624
- let s = Object.prototype.hasOwnProperty.bind(t);
1625
- for (let o = 0; o < a.length; o++) {
1626
- let c = a[o];
1627
- if (!s(c)) return !1;
1628
- let l = e[c], u = t[c];
1629
- if (i = n ? n.call(r, l, u, c) : void 0, i === !1 || i === void 0 && l !== u) return !1;
1630
- }
1631
- return !0;
1632
- }
1633
- //#endregion
1634
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/SourceConnector.js
1635
- function vr(e, t) {
1636
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1637
- }
1638
- function yr(e, t) {
1639
- for (var n = 0; n < t.length; n++) {
1640
- var r = t[n];
1641
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
1642
- }
1643
- }
1644
- function br(e, t, n) {
1645
- return t && yr(e.prototype, t), n && yr(e, n), e;
1646
- }
1647
- var xr = /* @__PURE__ */ function() {
1648
- function e(t) {
1649
- var n = this;
1650
- vr(this, e), this.hooks = gr({
1651
- dragSource: function(e, t) {
1652
- n.clearDragSource(), n.dragSourceOptions = t || null, n.dragSourceNode = e, n.reconnectDragSource();
1653
- },
1654
- dragPreview: function(e, t) {
1655
- n.clearDragPreview(), n.dragPreviewOptions = t || null, n.dragPreviewNode = e, n.reconnectDragPreview();
1656
- }
1657
- }), this.handlerId = null, this.dragSourceOptionsInternal = null, this.dragPreviewOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDragSource = null, this.lastConnectedDragSourceOptions = null, this.lastConnectedDragPreview = null, this.lastConnectedDragPreviewOptions = null, this.backend = t;
1658
- }
1659
- var t = e.prototype;
1660
- return t.receiveHandlerId = function(e) {
1661
- this.handlerId !== e && (this.handlerId = e, this.reconnect());
1662
- }, t.reconnect = function() {
1663
- var e = this.reconnectDragSource();
1664
- this.reconnectDragPreview(e);
1665
- }, t.reconnectDragSource = function() {
1666
- var e = this.dragSource, t = this.didHandlerIdChange() || this.didConnectedDragSourceChange() || this.didDragSourceOptionsChange();
1667
- return t && this.disconnectDragSource(), this.handlerId ? e ? (t && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragSource = e, this.lastConnectedDragSourceOptions = this.dragSourceOptions, this.dragSourceUnsubscribe = this.backend.connectDragSource(this.handlerId, e, this.dragSourceOptions)), t) : (this.lastConnectedDragSource = e, t) : t;
1668
- }, t.reconnectDragPreview = function() {
1669
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, t = this.dragPreview, n = e || this.didHandlerIdChange() || this.didConnectedDragPreviewChange() || this.didDragPreviewOptionsChange();
1670
- if (n && this.disconnectDragPreview(), this.handlerId) {
1671
- if (!t) {
1672
- this.lastConnectedDragPreview = t;
1673
- return;
1674
- }
1675
- n && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDragPreview = t, this.lastConnectedDragPreviewOptions = this.dragPreviewOptions, this.dragPreviewUnsubscribe = this.backend.connectDragPreview(this.handlerId, t, this.dragPreviewOptions));
1676
- }
1677
- }, t.didHandlerIdChange = function() {
1678
- return this.lastConnectedHandlerId !== this.handlerId;
1679
- }, t.didConnectedDragSourceChange = function() {
1680
- return this.lastConnectedDragSource !== this.dragSource;
1681
- }, t.didConnectedDragPreviewChange = function() {
1682
- return this.lastConnectedDragPreview !== this.dragPreview;
1683
- }, t.didDragSourceOptionsChange = function() {
1684
- return !_r(this.lastConnectedDragSourceOptions, this.dragSourceOptions);
1685
- }, t.didDragPreviewOptionsChange = function() {
1686
- return !_r(this.lastConnectedDragPreviewOptions, this.dragPreviewOptions);
1687
- }, t.disconnectDragSource = function() {
1688
- this.dragSourceUnsubscribe &&= (this.dragSourceUnsubscribe(), void 0);
1689
- }, t.disconnectDragPreview = function() {
1690
- this.dragPreviewUnsubscribe && (this.dragPreviewUnsubscribe(), this.dragPreviewUnsubscribe = void 0, this.dragPreviewNode = null);
1691
- }, t.clearDragSource = function() {
1692
- this.dragSourceNode = null;
1693
- }, t.clearDragPreview = function() {
1694
- this.dragPreviewNode = null;
1695
- }, br(e, [
1696
- {
1697
- key: "connectTarget",
1698
- get: function() {
1699
- return this.dragSource;
1700
- }
1701
- },
1702
- {
1703
- key: "dragSourceOptions",
1704
- get: function() {
1705
- return this.dragSourceOptionsInternal;
1706
- },
1707
- set: function(e) {
1708
- this.dragSourceOptionsInternal = e;
1709
- }
1710
- },
1711
- {
1712
- key: "dragPreviewOptions",
1713
- get: function() {
1714
- return this.dragPreviewOptionsInternal;
1715
- },
1716
- set: function(e) {
1717
- this.dragPreviewOptionsInternal = e;
1718
- }
1719
- },
1720
- {
1721
- key: "dragSource",
1722
- get: function() {
1723
- return this.dragSourceNode;
1724
- }
1725
- },
1726
- {
1727
- key: "dragPreview",
1728
- get: function() {
1729
- return this.dragPreviewNode;
1730
- }
1731
- }
1732
- ]), e;
1733
- }();
1734
- //#endregion
1735
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/TargetConnector.js
1736
- function Sr(e, t) {
1737
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1738
- }
1739
- function Cr(e, t) {
1740
- for (var n = 0; n < t.length; n++) {
1741
- var r = t[n];
1742
- r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0), Object.defineProperty(e, r.key, r);
1743
- }
1744
- }
1745
- function wr(e, t, n) {
1746
- return t && Cr(e.prototype, t), n && Cr(e, n), e;
1747
- }
1748
- var Tr = /* @__PURE__ */ function() {
1749
- function e(t) {
1750
- var n = this;
1751
- Sr(this, e), this.hooks = gr({ dropTarget: function(e, t) {
1752
- n.clearDropTarget(), n.dropTargetOptions = t, (0, O.isRef)(e) ? n.dropTargetRef = e : n.dropTargetNode = e, n.reconnect();
1753
- } }), this.handlerId = null, this.dropTargetRef = null, this.dropTargetOptionsInternal = null, this.lastConnectedHandlerId = null, this.lastConnectedDropTarget = null, this.lastConnectedDropTargetOptions = null, this.backend = t;
1754
- }
1755
- var t = e.prototype;
1756
- return t.reconnect = function() {
1757
- var e = this.didHandlerIdChange() || this.didDropTargetChange() || this.didOptionsChange();
1758
- e && this.disconnectDropTarget();
1759
- var t = this.dropTarget;
1760
- if (this.handlerId) {
1761
- if (!t) {
1762
- this.lastConnectedDropTarget = t;
1763
- return;
1764
- }
1765
- e && (this.lastConnectedHandlerId = this.handlerId, this.lastConnectedDropTarget = t, this.lastConnectedDropTargetOptions = this.dropTargetOptions, this.unsubscribeDropTarget = this.backend.connectDropTarget(this.handlerId, t, this.dropTargetOptions));
1766
- }
1767
- }, t.receiveHandlerId = function(e) {
1768
- e !== this.handlerId && (this.handlerId = e, this.reconnect());
1769
- }, t.didHandlerIdChange = function() {
1770
- return this.lastConnectedHandlerId !== this.handlerId;
1771
- }, t.didDropTargetChange = function() {
1772
- return this.lastConnectedDropTarget !== this.dropTarget;
1773
- }, t.didOptionsChange = function() {
1774
- return !_r(this.lastConnectedDropTargetOptions, this.dropTargetOptions);
1775
- }, t.disconnectDropTarget = function() {
1776
- this.unsubscribeDropTarget &&= (this.unsubscribeDropTarget(), void 0);
1777
- }, t.clearDropTarget = function() {
1778
- this.dropTargetRef = null, this.dropTargetNode = null;
1779
- }, wr(e, [
1780
- {
1781
- key: "connectTarget",
1782
- get: function() {
1783
- return this.dropTarget;
1784
- }
1785
- },
1786
- {
1787
- key: "dropTargetOptions",
1788
- get: function() {
1789
- return this.dropTargetOptionsInternal;
1790
- },
1791
- set: function(e) {
1792
- this.dropTargetOptionsInternal = e;
1793
- }
1794
- },
1795
- {
1796
- key: "dropTarget",
1797
- get: function() {
1798
- return this.dropTargetNode || this.dropTargetRef && this.dropTargetRef.value;
1799
- }
1800
- }
1801
- ]), e;
1802
- }();
1803
- //#endregion
1804
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/internals/registration.js
1805
- function Er(e, t, n) {
1806
- var r = (0, O.unref)(n).getRegistry(), i = r.addTarget((0, O.unref)(e), (0, O.unref)(t));
1807
- return [i, function() {
1808
- return r.removeTarget(i);
1809
- }];
1810
- }
1811
- function Dr(e, t, n) {
1812
- var r = n.getRegistry(), i = r.addSource(e, t);
1813
- return [i, function() {
1814
- return r.removeSource(i);
1815
- }];
1816
- }
1817
- //#endregion
1818
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/DragSourceImpl.js
1819
- function Or(e, t) {
1820
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
1821
- }
1822
- var kr = /* @__PURE__ */ function() {
1823
- function e(t, n, r) {
1824
- Or(this, e), this.spec = t, this.monitor = n, this.connector = r;
1825
- }
1826
- var t = e.prototype;
1827
- return t.beginDrag = function() {
1828
- var e = this.spec, t = this.monitor, n = null;
1829
- return n = typeof e.item == "object" ? e.item : typeof e.item == "function" ? e.item(t) : {}, n ?? null;
1830
- }, t.canDrag = function() {
1831
- var e = this.spec, t = this.monitor;
1832
- return typeof e.canDrag == "boolean" ? e.canDrag : typeof e.canDrag == "function" ? e.canDrag(t) : !0;
1833
- }, t.isDragging = function(e, t) {
1834
- var n = this.spec, r = this.monitor, i = n.isDragging;
1835
- return i ? i(r) : t === e.getSourceId();
1836
- }, t.endDrag = function() {
1837
- var e = this.spec, t = this.monitor, n = this.connector, r = e.end;
1838
- r && r(t.getItem(), t), n.reconnect();
1839
- }, e;
1840
- }();
1841
- //#endregion
1842
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragSource.js
1843
- function Ar(e, t, n) {
1844
- var r = (0, O.computed)(function() {
1845
- return new kr((0, O.unref)(e), (0, O.unref)(t), (0, O.unref)(n));
1846
- });
1847
- return (0, O.watchEffect)(function() {
1848
- r.value.spec = (0, O.unref)(e);
1849
- }), r;
1850
- }
1851
- //#endregion
1852
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDragDropManager.js
1853
- function Z() {
1854
- var e = dt();
1855
- return N(e != null, "Expected drag drop context"), e;
1856
- }
1857
- //#endregion
1858
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragType.js
1859
- function jr(e) {
1860
- return (0, O.computed)(function() {
1861
- var t = (0, O.unref)(e).type;
1862
- return N(t != null, "spec.type must be defined"), t;
1863
- });
1864
- }
1865
- //#endregion
1866
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useRegisteredDragSource.js
1867
- function Mr(e, t) {
1868
- (t == null || t > e.length) && (t = e.length);
1869
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1870
- return r;
1871
- }
1872
- function Nr(e) {
1873
- if (Array.isArray(e)) return e;
1874
- }
1875
- function Pr(e, t) {
1876
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1877
- if (n != null) {
1878
- var r = [], i = !0, a = !1, o, s;
1879
- try {
1880
- for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
1881
- } catch (e) {
1882
- a = !0, s = e;
1883
- } finally {
1884
- try {
1885
- !i && n.return != null && n.return();
1886
- } finally {
1887
- if (a) throw s;
1888
- }
1889
- }
1890
- return r;
1891
- }
1892
- }
1893
- function Fr() {
1894
- throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
1895
- }
1896
- function Ir(e, t) {
1897
- return Nr(e) || Pr(e, t) || Lr(e, t) || Fr();
1898
- }
1899
- function Lr(e, t) {
1900
- if (e) {
1901
- if (typeof e == "string") return Mr(e, t);
1902
- var n = Object.prototype.toString.call(e).slice(8, -1);
1903
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
1904
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Mr(e, t);
1905
- }
1906
- }
1907
- function Rr(e, t, n) {
1908
- var r = Z(), i = Ar(e, t, n), a = jr(e);
1909
- (0, O.watchEffect)(function(e) {
1910
- if ((0, O.unref)(a) != null) {
1911
- var o = Ir(Dr((0, O.unref)(a), (0, O.unref)(i), (0, O.unref)(r)), 2), s = o[0], c = o[1];
1912
- (0, O.unref)(t).receiveHandlerId(s), (0, O.unref)(n).receiveHandlerId(s), e(c);
1913
- }
1914
- });
1915
- }
1916
- //#endregion
1917
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useOptionalFactory.js
1918
- function zr(e) {
1919
- return (0, O.computed)(function() {
1920
- return typeof e == "function" ? e() : e;
1921
- });
1922
- }
1923
- //#endregion
1924
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragSourceMonitor.js
1925
- function Br() {
1926
- var e = Z();
1927
- return (0, O.computed)(function() {
1928
- return new or((0, O.unref)(e));
1929
- });
1930
- }
1931
- //#endregion
1932
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDragSourceConnector.js
1933
- function Vr(e, t) {
1934
- var n = Z(), r = (0, O.computed)(function() {
1935
- return new xr((0, O.unref)(n).getBackend());
1936
- });
1937
- return (0, O.watchEffect)(function(t) {
1938
- r.value.dragSourceOptions = (0, O.unref)(e) || null, (0, O.unref)(r).reconnect(), t(function() {
1939
- r.value.disconnectDragSource();
1940
- });
1941
- }), (0, O.watchEffect)(function(e) {
1942
- r.value.dragPreviewOptions = (0, O.unref)(t) || null, (0, O.unref)(r).reconnect(), e(function() {
1943
- r.value.disconnectDragPreview();
1944
- });
1945
- }), r;
1946
- }
1947
- //#endregion
1948
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useCollector.js
1949
- var Hr = /* @__PURE__ */ ae((/* @__PURE__ */ ne(((e, t) => {
1950
- t.exports = function e(t, n) {
1951
- if (t === n) return !0;
1952
- if (t && n && typeof t == "object" && typeof n == "object") {
1953
- if (t.constructor !== n.constructor) return !1;
1954
- var r, i, a;
1955
- if (Array.isArray(t)) {
1956
- if (r = t.length, r != n.length) return !1;
1957
- for (i = r; i-- !== 0;) if (!e(t[i], n[i])) return !1;
1958
- return !0;
1959
- }
1960
- if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;
1961
- if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();
1962
- if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();
1963
- if (a = Object.keys(t), r = a.length, r !== Object.keys(n).length) return !1;
1964
- for (i = r; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(n, a[i])) return !1;
1965
- for (i = r; i-- !== 0;) {
1966
- var o = a[i];
1967
- if (!e(t[o], n[o])) return !1;
1968
- }
1969
- return !0;
1970
- }
1971
- return t !== t && n !== n;
1972
- };
1973
- })))());
1974
- function Ur(e, t, n) {
1975
- var r = (0, O.ref)((0, O.unref)(t)((0, O.unref)(e))), i = function() {
1976
- var i = (0, O.unref)(t)((0, O.unref)(e));
1977
- (0, Hr.default)(r.value, i) || (r.value = i, n && n());
1978
- };
1979
- return (0, O.watchEffect)(i), [r, i];
1980
- }
1981
- //#endregion
1982
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useMonitorOutput.js
1983
- function Wr(e, t) {
1984
- (t == null || t > e.length) && (t = e.length);
1985
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
1986
- return r;
1987
- }
1988
- function Gr(e) {
1989
- if (Array.isArray(e)) return e;
1990
- }
1991
- function Kr(e, t) {
1992
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
1993
- if (n != null) {
1994
- var r = [], i = !0, a = !1, o, s;
1995
- try {
1996
- for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
1997
- } catch (e) {
1998
- a = !0, s = e;
1999
- } finally {
2000
- try {
2001
- !i && n.return != null && n.return();
2002
- } finally {
2003
- if (a) throw s;
2004
- }
2005
- }
2006
- return r;
2007
- }
2008
- }
2009
- function qr() {
2010
- throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2011
- }
2012
- function Jr(e, t) {
2013
- return Gr(e) || Kr(e, t) || Yr(e, t) || qr();
2014
- }
2015
- function Yr(e, t) {
2016
- if (e) {
2017
- if (typeof e == "string") return Wr(e, t);
2018
- var n = Object.prototype.toString.call(e).slice(8, -1);
2019
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
2020
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Wr(e, t);
2021
- }
2022
- }
2023
- function Xr(e, t, n) {
2024
- var r = Jr(Ur(e, t, n), 2), i = r[0], a = r[1];
2025
- return (0, O.watchEffect)(function(t) {
2026
- var n = (0, O.unref)(e).getHandlerId();
2027
- n != null && t((0, O.unref)(e).subscribeToStateChange(a, { handlerIds: [n] }));
2028
- }), i;
2029
- }
2030
- //#endregion
2031
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useCollectedProps.js
2032
- function Zr(e, t, n) {
2033
- return Xr(t, e || function() {
2034
- return {};
2035
- }, function() {
2036
- return (0, O.unref)(n).reconnect();
2037
- });
2038
- }
2039
- //#endregion
2040
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useConnector.js
2041
- function Qr(e, t) {
2042
- var n = (0, O.reactive)({
2043
- el: null,
2044
- options: (0, O.unref)(t)
2045
- });
2046
- return (0, O.watchEffect)(function() {
2047
- e(n);
2048
- }, { flush: "post" }), function(e, r) {
2049
- k(n, "el", e);
2050
- var i = (0, O.unref)(t) || r;
2051
- return (0, Hr.default)(n.options, i) || k(n, "options", i), (0, O.unref)(e);
2052
- };
2053
- }
2054
- //#endregion
2055
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/connectors.js
2056
- function $r(e, t) {
2057
- return Qr(function(t) {
2058
- (0, O.unref)(e).hooks.dragSource()(t.el, t.options);
2059
- }, (0, O.computed)(function() {
2060
- return (0, O.unref)(t).options;
2061
- }));
2062
- }
2063
- function ei(e, t) {
2064
- return Qr(function(t) {
2065
- (0, O.unref)(e).hooks.dragPreview()(t.el, t.options);
2066
- }, (0, O.computed)(function() {
2067
- return (0, O.unref)(t).previewOptions;
2068
- }));
2069
- }
2070
- //#endregion
2071
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrag/useDrag.js
2072
- function ti(e) {
2073
- var t = zr(e), n = Br(), r = Vr((0, O.computed)(function() {
2074
- return (0, O.unref)(t).options;
2075
- }), (0, O.computed)(function() {
2076
- return (0, O.unref)(t).previewOptions;
2077
- }));
2078
- return Rr(t, n, r), [
2079
- Zr((0, O.computed)(function() {
2080
- return (0, O.unref)(t).collect || function() {
2081
- return {};
2082
- };
2083
- }), n, r),
2084
- $r(r, t),
2085
- ei(r, t)
2086
- ];
2087
- }
2088
- //#endregion
2089
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useAccept.js
2090
- function ni(e) {
2091
- return (0, O.computed)(function() {
2092
- var t = (0, O.unref)(e).accept;
2093
- return N(t != null, "accept must be defined"), Array.isArray(t) ? t : [t];
2094
- });
2095
- }
2096
- //#endregion
2097
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/DropTargetImpl.js
2098
- function ri(e, t) {
2099
- if (!(e instanceof t)) throw TypeError("Cannot call a class as a function");
2100
- }
2101
- var ii = /* @__PURE__ */ function() {
2102
- function e(t, n) {
2103
- ri(this, e), this.spec = t, this.monitor = n;
2104
- }
2105
- var t = e.prototype;
2106
- return t.canDrop = function() {
2107
- var e = this.spec, t = this.monitor;
2108
- return e.canDrop ? e.canDrop(t.getItem(), t) : !0;
2109
- }, t.hover = function() {
2110
- var e = this.spec, t = this.monitor;
2111
- e.hover && e.hover(t.getItem(), t);
2112
- }, t.drop = function() {
2113
- var e = this.spec, t = this.monitor;
2114
- if (e.drop) return e.drop(t.getItem(), t);
2115
- }, e;
2116
- }();
2117
- //#endregion
2118
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDropTarget.js
2119
- function ai(e, t) {
2120
- var n = (0, O.computed)(function() {
2121
- return new ii((0, O.unref)(e), (0, O.unref)(t));
2122
- });
2123
- return (0, O.watchEffect)(function() {
2124
- n.value.spec = (0, O.unref)(e);
2125
- }), n;
2126
- }
2127
- //#endregion
2128
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useRegisteredDropTarget.js
2129
- function oi(e, t) {
2130
- (t == null || t > e.length) && (t = e.length);
2131
- for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
2132
- return r;
2133
- }
2134
- function si(e) {
2135
- if (Array.isArray(e)) return e;
2136
- }
2137
- function ci(e, t) {
2138
- var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
2139
- if (n != null) {
2140
- var r = [], i = !0, a = !1, o, s;
2141
- try {
2142
- for (n = n.call(e); !(i = (o = n.next()).done) && (r.push(o.value), !(t && r.length === t)); i = !0);
2143
- } catch (e) {
2144
- a = !0, s = e;
2145
- } finally {
2146
- try {
2147
- !i && n.return != null && n.return();
2148
- } finally {
2149
- if (a) throw s;
2150
- }
2151
- }
2152
- return r;
2153
- }
2154
- }
2155
- function li() {
2156
- throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
2157
- }
2158
- function ui(e, t) {
2159
- return si(e) || ci(e, t) || di(e, t) || li();
2160
- }
2161
- function di(e, t) {
2162
- if (e) {
2163
- if (typeof e == "string") return oi(e, t);
2164
- var n = Object.prototype.toString.call(e).slice(8, -1);
2165
- if (n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set") return Array.from(n);
2166
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return oi(e, t);
2167
- }
2168
- }
2169
- function fi(e, t, n) {
2170
- var r = Z(), i = ai(e, t), a = ni(e);
2171
- (0, O.watchEffect)(function(e) {
2172
- var o = ui(Er(a, i, r), 2), s = o[0], c = o[1];
2173
- (0, O.unref)(t).receiveHandlerId(s), (0, O.unref)(n).receiveHandlerId(s), e(c);
2174
- });
2175
- }
2176
- //#endregion
2177
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDropTargetMonitor.js
2178
- function pi() {
2179
- var e = Z();
2180
- return (0, O.computed)(function() {
2181
- return new lr((0, O.unref)(e));
2182
- });
2183
- }
2184
- //#endregion
2185
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDropTargetConnector.js
2186
- function mi(e) {
2187
- var t = Z(), n = (0, O.computed)(function() {
2188
- return new Tr((0, O.unref)(t).getBackend());
2189
- });
2190
- return (0, O.watchEffect)(function(t) {
2191
- n.value.dropTargetOptions = (0, O.unref)(e) || null, n.value.reconnect(), t(function() {
2192
- return n.value.disconnectDropTarget();
2193
- });
2194
- }), n;
2195
- }
2196
- //#endregion
2197
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/connectors.js
2198
- function hi(e, t) {
2199
- return Qr(function(t) {
2200
- (0, O.unref)(e).hooks.dropTarget()(t.el, t.options);
2201
- }, (0, O.computed)(function() {
2202
- return (0, O.unref)(t).options;
2203
- }));
2204
- }
2205
- //#endregion
2206
- //#region ../../node_modules/.pnpm/vue3-dnd@2.1.0_vue@3.5.29_typescript@5.9.3_/node_modules/vue3-dnd/dist/esm/hooks/useDrop/useDrop.js
2207
- function gi(e) {
2208
- var t = zr(e), n = pi(), r = mi((0, O.computed)(function() {
2209
- return (0, O.unref)(t).options;
2210
- }));
2211
- return fi(t, n, r), [Zr((0, O.computed)(function() {
2212
- return (0, O.unref)(t).collect || function() {
2213
- return {};
2214
- };
2215
- }), n, r), hi(r, t)];
2216
- }
2217
- //#endregion
2218
- //#region src/utils/message-util/message-util.ts
2219
- var _i = class {
2220
- info(e, t) {
2221
- return new Promise((n) => {
2222
- m.info(e, t?.duration, n);
2223
- });
2224
- }
2225
- success(e, t) {
2226
- return new Promise((n) => {
2227
- m.success(e, t?.duration, n);
2228
- });
2229
- }
2230
- warning(e, t) {
2231
- return new Promise((n) => {
2232
- m.warning(e, t?.duration, n);
2233
- });
2234
- }
2235
- error(e, t) {
2236
- return new Promise((n) => {
2237
- m.error(e, t?.duration, n);
2238
- });
2239
- }
2240
- }, vi = new class {
2241
- _monacoInstance = null;
2242
- _loadingPromise = null;
2243
- constructor() {
2244
- this._configureLoader();
2245
- }
2246
- _configureLoader() {
2247
- at.config({ paths: { vs: location.origin + "/extras/monaco-editor/0.55.1/min/vs" } });
2248
- }
2249
- async loadMonaco() {
2250
- if (this._monacoInstance) return this._monacoInstance;
2251
- if (this._loadingPromise) return this._loadingPromise;
2252
- this._loadingPromise = at.init();
2253
- try {
2254
- return this._monacoInstance = await this._loadingPromise, console.info("✓ Monaco Editor loaded successfully"), this._monacoInstance;
2255
- } catch (e) {
2256
- throw console.error("✗ Failed to load Monaco Editor:", e), this._loadingPromise = null, e;
2257
- }
2258
- }
2259
- getMonaco() {
2260
- return this._monacoInstance;
2261
- }
2262
- isMonacoLoaded() {
2263
- return this._monacoInstance !== null;
2264
- }
2265
- async createMonacoEditor(e, t) {
2266
- return (await this.loadMonaco()).editor.create(e, t);
2267
- }
2268
- async createMonacoDiffEditor(e, t) {
2269
- return (await this.loadMonaco()).editor.createDiffEditor(e, t);
2270
- }
2271
- async createMonacoModel(e, t, n) {
2272
- return (await this.loadMonaco()).editor.createModel(e, t, n);
2273
- }
2274
- }();
2275
- //#endregion
2276
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/utils/js_utils.js
2277
- function yi(e) {
2278
- let t = null;
2279
- return () => (t ??= e(), t);
2280
- }
2281
- function bi(e, t) {
2282
- return e.filter((e) => e !== t);
2283
- }
2284
- function xi(e, t) {
2285
- let n = /* @__PURE__ */ new Set(), r = (e) => n.add(e);
2286
- e.forEach(r), t.forEach(r);
2287
- let i = [];
2288
- return n.forEach((e) => i.push(e)), i;
2289
- }
2290
- //#endregion
2291
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/EnterLeaveCounter.js
2292
- var Si = class {
2293
- enter(e) {
2294
- let t = this.entered.length;
2295
- return this.entered = xi(this.entered.filter((t) => this.isNodeInDocument(t) && (!t.contains || t.contains(e))), [e]), t === 0 && this.entered.length > 0;
2296
- }
2297
- leave(e) {
2298
- let t = this.entered.length;
2299
- return this.entered = bi(this.entered.filter(this.isNodeInDocument), e), t > 0 && this.entered.length === 0;
2300
- }
2301
- reset() {
2302
- this.entered = [];
2303
- }
2304
- constructor(e) {
2305
- this.entered = [], this.isNodeInDocument = e;
2306
- }
2307
- }, Ci = class {
2308
- initializeExposedProperties() {
2309
- Object.keys(this.config.exposeProperties).forEach((e) => {
2310
- Object.defineProperty(this.item, e, {
2311
- configurable: !0,
2312
- enumerable: !0,
2313
- get() {
2314
- return console.warn(`Browser doesn't allow reading "${e}" until the drop event.`), null;
2315
- }
2316
- });
2317
- });
2318
- }
2319
- loadDataTransfer(e) {
2320
- if (e) {
2321
- let t = {};
2322
- Object.keys(this.config.exposeProperties).forEach((n) => {
2323
- let r = this.config.exposeProperties[n];
2324
- r != null && (t[n] = {
2325
- value: r(e, this.config.matchesTypes),
2326
- configurable: !0,
2327
- enumerable: !0
2328
- });
2329
- }), Object.defineProperties(this.item, t);
2330
- }
2331
- }
2332
- canDrag() {
2333
- return !0;
2334
- }
2335
- beginDrag() {
2336
- return this.item;
2337
- }
2338
- isDragging(e, t) {
2339
- return t === e.getSourceId();
2340
- }
2341
- endDrag() {}
2342
- constructor(e) {
2343
- this.config = e, this.item = {}, this.initializeExposedProperties();
2344
- }
2345
- }, wi = /* @__PURE__ */ re({
2346
- FILE: () => Ti,
2347
- HTML: () => Oi,
2348
- TEXT: () => Di,
2349
- URL: () => Ei
2350
- }), Ti = "__NATIVE_FILE__", Ei = "__NATIVE_URL__", Di = "__NATIVE_TEXT__", Oi = "__NATIVE_HTML__";
2351
- //#endregion
2352
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/NativeDragSources/getDataFromDataTransfer.js
2353
- function Q(e, t, n) {
2354
- return t.reduce((t, n) => t || e.getData(n), "") ?? n;
2355
- }
2356
- //#endregion
2357
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/NativeDragSources/nativeTypesConfig.js
2358
- var ki = {
2359
- [Ti]: {
2360
- exposeProperties: {
2361
- files: (e) => Array.prototype.slice.call(e.files),
2362
- items: (e) => e.items,
2363
- dataTransfer: (e) => e
2364
- },
2365
- matchesTypes: ["Files"]
2366
- },
2367
- [Oi]: {
2368
- exposeProperties: {
2369
- html: (e, t) => Q(e, t, ""),
2370
- dataTransfer: (e) => e
2371
- },
2372
- matchesTypes: ["Html", "text/html"]
2373
- },
2374
- [Ei]: {
2375
- exposeProperties: {
2376
- urls: (e, t) => Q(e, t, "").split("\n"),
2377
- dataTransfer: (e) => e
2378
- },
2379
- matchesTypes: ["Url", "text/uri-list"]
2380
- },
2381
- [Di]: {
2382
- exposeProperties: {
2383
- text: (e, t) => Q(e, t, ""),
2384
- dataTransfer: (e) => e
2385
- },
2386
- matchesTypes: ["Text", "text/plain"]
2387
- }
2388
- };
2389
- //#endregion
2390
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/NativeDragSources/index.js
2391
- function Ai(e, t) {
2392
- let n = ki[e];
2393
- if (!n) throw Error(`native type ${e} has no configuration`);
2394
- let r = new Ci(n);
2395
- return r.loadDataTransfer(t), r;
2396
- }
2397
- function ji(e) {
2398
- if (!e) return null;
2399
- let t = Array.prototype.slice.call(e.types || []);
2400
- return Object.keys(ki).filter((e) => {
2401
- let n = ki[e];
2402
- return n?.matchesTypes ? n.matchesTypes.some((e) => t.indexOf(e) > -1) : !1;
2403
- })[0] || null;
2404
- }
2405
- //#endregion
2406
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/BrowserDetector.js
2407
- var Mi = yi(() => /firefox/i.test(navigator.userAgent)), Ni = yi(() => !!window.safari), Pi = class {
2408
- interpolate(e) {
2409
- let { xs: t, ys: n, c1s: r, c2s: i, c3s: a } = this, o = t.length - 1;
2410
- if (e === t[o]) return n[o];
2411
- let s = 0, c = a.length - 1, l;
2412
- for (; s <= c;) {
2413
- l = Math.floor(.5 * (s + c));
2414
- let r = t[l];
2415
- if (r < e) s = l + 1;
2416
- else if (r > e) c = l - 1;
2417
- else return n[l];
2418
- }
2419
- o = Math.max(0, c);
2420
- let u = e - t[o], d = u * u;
2421
- return n[o] + r[o] * u + i[o] * d + a[o] * u * d;
2422
- }
2423
- constructor(e, t) {
2424
- let { length: n } = e, r = [];
2425
- for (let e = 0; e < n; e++) r.push(e);
2426
- r.sort((t, n) => e[t] < e[n] ? -1 : 1);
2427
- let i = [], a = [], o = [], s, c;
2428
- for (let r = 0; r < n - 1; r++) s = e[r + 1] - e[r], c = t[r + 1] - t[r], a.push(s), i.push(c), o.push(c / s);
2429
- let l = [o[0]];
2430
- for (let e = 0; e < a.length - 1; e++) {
2431
- let t = o[e], n = o[e + 1];
2432
- if (t * n <= 0) l.push(0);
2433
- else {
2434
- s = a[e];
2435
- let r = a[e + 1], i = s + r;
2436
- l.push(3 * i / ((i + r) / t + (i + s) / n));
2437
- }
2438
- }
2439
- l.push(o[o.length - 1]);
2440
- let u = [], d = [], f;
2441
- for (let e = 0; e < l.length - 1; e++) {
2442
- f = o[e];
2443
- let t = l[e], n = 1 / a[e], r = t + l[e + 1] - f - f;
2444
- u.push((f - t - r) * n), d.push(r * n * n);
2445
- }
2446
- this.xs = e, this.ys = t, this.c1s = l, this.c2s = u, this.c3s = d;
2447
- }
2448
- }, Fi = 1;
2449
- function Ii(e) {
2450
- let t = e.nodeType === Fi ? e : e.parentElement;
2451
- if (!t) return null;
2452
- let { top: n, left: r } = t.getBoundingClientRect();
2453
- return {
2454
- x: r,
2455
- y: n
2456
- };
2457
- }
2458
- function $(e) {
2459
- return {
2460
- x: e.clientX,
2461
- y: e.clientY
2462
- };
2463
- }
2464
- function Li(e) {
2465
- return e.nodeName === "IMG" && (Mi() || !document.documentElement?.contains(e));
2466
- }
2467
- function Ri(e, t, n, r) {
2468
- let i = e ? t.width : n, a = e ? t.height : r;
2469
- return Ni() && e && (a /= window.devicePixelRatio, i /= window.devicePixelRatio), {
2470
- dragPreviewWidth: i,
2471
- dragPreviewHeight: a
2472
- };
2473
- }
2474
- function zi(e, t, n, r, i) {
2475
- let a = Li(t), o = Ii(a ? e : t), s = {
2476
- x: n.x - o.x,
2477
- y: n.y - o.y
2478
- }, { offsetWidth: c, offsetHeight: l } = e, { anchorX: u, anchorY: d } = r, { dragPreviewWidth: f, dragPreviewHeight: p } = Ri(a, t, c, l), m = () => {
2479
- let e = new Pi([
2480
- 0,
2481
- .5,
2482
- 1
2483
- ], [
2484
- s.y,
2485
- s.y / l * p,
2486
- s.y + p - l
2487
- ]).interpolate(d);
2488
- return Ni() && a && (e += (window.devicePixelRatio - 1) * p), e;
2489
- }, h = () => new Pi([
2490
- 0,
2491
- .5,
2492
- 1
2493
- ], [
2494
- s.x,
2495
- s.x / c * f,
2496
- s.x + f - c
2497
- ]).interpolate(u), { offsetX: g, offsetY: _ } = i, v = g === 0 || g, ee = _ === 0 || _;
2498
- return {
2499
- x: v ? g : h(),
2500
- y: ee ? _ : m()
2501
- };
2502
- }
2503
- //#endregion
2504
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/OptionsReader.js
2505
- var Bi = class {
2506
- get window() {
2507
- if (this.globalContext) return this.globalContext;
2508
- if (typeof window < "u") return window;
2509
- }
2510
- get document() {
2511
- if (this.globalContext?.document) return this.globalContext.document;
2512
- if (this.window) return this.window.document;
2513
- }
2514
- get rootElement() {
2515
- return this.optionsArgs?.rootElement || this.window;
2516
- }
2517
- constructor(e, t) {
2518
- this.ownerDocument = null, this.globalContext = e, this.optionsArgs = t;
2519
- }
2520
- };
2521
- //#endregion
2522
- //#region ../../node_modules/.pnpm/react-dnd-html5-backend@16.0.1/node_modules/react-dnd-html5-backend/dist/HTML5BackendImpl.js
2523
- function Vi(e, t, n) {
2524
- return t in e ? Object.defineProperty(e, t, {
2525
- value: n,
2526
- enumerable: !0,
2527
- configurable: !0,
2528
- writable: !0
2529
- }) : e[t] = n, e;
2530
- }
2531
- function Hi(e) {
2532
- for (var t = 1; t < arguments.length; t++) {
2533
- var n = arguments[t] == null ? {} : arguments[t], r = Object.keys(n);
2534
- typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(n).filter(function(e) {
2535
- return Object.getOwnPropertyDescriptor(n, e).enumerable;
2536
- }))), r.forEach(function(t) {
2537
- Vi(e, t, n[t]);
2538
- });
2539
- }
2540
- return e;
2541
- }
2542
- var Ui = class {
2543
- profile() {
2544
- return {
2545
- sourcePreviewNodes: this.sourcePreviewNodes.size,
2546
- sourcePreviewNodeOptions: this.sourcePreviewNodeOptions.size,
2547
- sourceNodeOptions: this.sourceNodeOptions.size,
2548
- sourceNodes: this.sourceNodes.size,
2549
- dragStartSourceIds: this.dragStartSourceIds?.length || 0,
2550
- dropTargetIds: this.dropTargetIds.length,
2551
- dragEnterTargetIds: this.dragEnterTargetIds.length,
2552
- dragOverTargetIds: this.dragOverTargetIds?.length || 0
2553
- };
2554
- }
2555
- get window() {
2556
- return this.options.window;
2557
- }
2558
- get document() {
2559
- return this.options.document;
2560
- }
2561
- get rootElement() {
2562
- return this.options.rootElement;
2563
- }
2564
- setup() {
2565
- let e = this.rootElement;
2566
- if (e !== void 0) {
2567
- if (e.__isReactDndBackendSetUp) throw Error("Cannot have two HTML5 backends at the same time.");
2568
- e.__isReactDndBackendSetUp = !0, this.addEventListeners(e);
2569
- }
2570
- }
2571
- teardown() {
2572
- let e = this.rootElement;
2573
- if (e !== void 0 && (e.__isReactDndBackendSetUp = !1, this.removeEventListeners(this.rootElement), this.clearCurrentDragSourceNode(), this.asyncEndDragFrameId)) {
2574
- var t;
2575
- (t = this.window) == null || t.cancelAnimationFrame(this.asyncEndDragFrameId);
2576
- }
2577
- }
2578
- connectDragPreview(e, t, n) {
2579
- return this.sourcePreviewNodeOptions.set(e, n), this.sourcePreviewNodes.set(e, t), () => {
2580
- this.sourcePreviewNodes.delete(e), this.sourcePreviewNodeOptions.delete(e);
2581
- };
2582
- }
2583
- connectDragSource(e, t, n) {
2584
- this.sourceNodes.set(e, t), this.sourceNodeOptions.set(e, n);
2585
- let r = (t) => this.handleDragStart(t, e), i = (e) => this.handleSelectStart(e);
2586
- return t.setAttribute("draggable", "true"), t.addEventListener("dragstart", r), t.addEventListener("selectstart", i), () => {
2587
- this.sourceNodes.delete(e), this.sourceNodeOptions.delete(e), t.removeEventListener("dragstart", r), t.removeEventListener("selectstart", i), t.setAttribute("draggable", "false");
2588
- };
2589
- }
2590
- connectDropTarget(e, t) {
2591
- let n = (t) => this.handleDragEnter(t, e), r = (t) => this.handleDragOver(t, e), i = (t) => this.handleDrop(t, e);
2592
- return t.addEventListener("dragenter", n), t.addEventListener("dragover", r), t.addEventListener("drop", i), () => {
2593
- t.removeEventListener("dragenter", n), t.removeEventListener("dragover", r), t.removeEventListener("drop", i);
2594
- };
2595
- }
2596
- addEventListeners(e) {
2597
- e.addEventListener && (e.addEventListener("dragstart", this.handleTopDragStart), e.addEventListener("dragstart", this.handleTopDragStartCapture, !0), e.addEventListener("dragend", this.handleTopDragEndCapture, !0), e.addEventListener("dragenter", this.handleTopDragEnter), e.addEventListener("dragenter", this.handleTopDragEnterCapture, !0), e.addEventListener("dragleave", this.handleTopDragLeaveCapture, !0), e.addEventListener("dragover", this.handleTopDragOver), e.addEventListener("dragover", this.handleTopDragOverCapture, !0), e.addEventListener("drop", this.handleTopDrop), e.addEventListener("drop", this.handleTopDropCapture, !0));
2598
- }
2599
- removeEventListeners(e) {
2600
- e.removeEventListener && (e.removeEventListener("dragstart", this.handleTopDragStart), e.removeEventListener("dragstart", this.handleTopDragStartCapture, !0), e.removeEventListener("dragend", this.handleTopDragEndCapture, !0), e.removeEventListener("dragenter", this.handleTopDragEnter), e.removeEventListener("dragenter", this.handleTopDragEnterCapture, !0), e.removeEventListener("dragleave", this.handleTopDragLeaveCapture, !0), e.removeEventListener("dragover", this.handleTopDragOver), e.removeEventListener("dragover", this.handleTopDragOverCapture, !0), e.removeEventListener("drop", this.handleTopDrop), e.removeEventListener("drop", this.handleTopDropCapture, !0));
2601
- }
2602
- getCurrentSourceNodeOptions() {
2603
- let e = this.monitor.getSourceId(), t = this.sourceNodeOptions.get(e);
2604
- return Hi({ dropEffect: this.altKeyPressed ? "copy" : "move" }, t || {});
2605
- }
2606
- getCurrentDropEffect() {
2607
- return this.isDraggingNativeItem() ? "copy" : this.getCurrentSourceNodeOptions().dropEffect;
2608
- }
2609
- getCurrentSourcePreviewNodeOptions() {
2610
- let e = this.monitor.getSourceId();
2611
- return Hi({
2612
- anchorX: .5,
2613
- anchorY: .5,
2614
- captureDraggingState: !1
2615
- }, this.sourcePreviewNodeOptions.get(e) || {});
2616
- }
2617
- isDraggingNativeItem() {
2618
- let e = this.monitor.getItemType();
2619
- return Object.keys(wi).some((t) => wi[t] === e);
2620
- }
2621
- beginDragNativeItem(e, t) {
2622
- this.clearCurrentDragSourceNode(), this.currentNativeSource = Ai(e, t), this.currentNativeHandle = this.registry.addSource(e, this.currentNativeSource), this.actions.beginDrag([this.currentNativeHandle]);
2623
- }
2624
- setCurrentDragSourceNode(e) {
2625
- this.clearCurrentDragSourceNode(), this.currentDragSourceNode = e, this.mouseMoveTimeoutTimer = setTimeout(() => this.rootElement?.addEventListener("mousemove", this.endDragIfSourceWasRemovedFromDOM, !0), 1e3);
2626
- }
2627
- clearCurrentDragSourceNode() {
2628
- if (this.currentDragSourceNode) {
2629
- if (this.currentDragSourceNode = null, this.rootElement) {
2630
- var e;
2631
- (e = this.window) == null || e.clearTimeout(this.mouseMoveTimeoutTimer || void 0), this.rootElement.removeEventListener("mousemove", this.endDragIfSourceWasRemovedFromDOM, !0);
2632
- }
2633
- return this.mouseMoveTimeoutTimer = null, !0;
2634
- }
2635
- return !1;
2636
- }
2637
- handleDragStart(e, t) {
2638
- e.defaultPrevented || (this.dragStartSourceIds ||= [], this.dragStartSourceIds.unshift(t));
2639
- }
2640
- handleDragEnter(e, t) {
2641
- this.dragEnterTargetIds.unshift(t);
2642
- }
2643
- handleDragOver(e, t) {
2644
- this.dragOverTargetIds === null && (this.dragOverTargetIds = []), this.dragOverTargetIds.unshift(t);
2645
- }
2646
- handleDrop(e, t) {
2647
- this.dropTargetIds.unshift(t);
2648
- }
2649
- constructor(e, t, n) {
2650
- this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourceNodeOptions = /* @__PURE__ */ new Map(), this.dragStartSourceIds = null, this.dropTargetIds = [], this.dragEnterTargetIds = [], this.currentNativeSource = null, this.currentNativeHandle = null, this.currentDragSourceNode = null, this.altKeyPressed = !1, this.mouseMoveTimeoutTimer = null, this.asyncEndDragFrameId = null, this.dragOverTargetIds = null, this.lastClientOffset = null, this.hoverRafId = null, this.getSourceClientOffset = (e) => {
2651
- let t = this.sourceNodes.get(e);
2652
- return t && Ii(t) || null;
2653
- }, this.endDragNativeItem = () => {
2654
- this.isDraggingNativeItem() && (this.actions.endDrag(), this.currentNativeHandle && this.registry.removeSource(this.currentNativeHandle), this.currentNativeHandle = null, this.currentNativeSource = null);
2655
- }, this.isNodeInDocument = (e) => !!(e && this.document && this.document.body && this.document.body.contains(e)), this.endDragIfSourceWasRemovedFromDOM = () => {
2656
- let e = this.currentDragSourceNode;
2657
- e == null || this.isNodeInDocument(e) || (this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover());
2658
- }, this.scheduleHover = (e) => {
2659
- this.hoverRafId === null && typeof requestAnimationFrame < "u" && (this.hoverRafId = requestAnimationFrame(() => {
2660
- this.monitor.isDragging() && this.actions.hover(e || [], { clientOffset: this.lastClientOffset }), this.hoverRafId = null;
2661
- }));
2662
- }, this.cancelHover = () => {
2663
- this.hoverRafId !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(this.hoverRafId), this.hoverRafId = null);
2664
- }, this.handleTopDragStartCapture = () => {
2665
- this.clearCurrentDragSourceNode(), this.dragStartSourceIds = [];
2666
- }, this.handleTopDragStart = (e) => {
2667
- if (e.defaultPrevented) return;
2668
- let { dragStartSourceIds: t } = this;
2669
- this.dragStartSourceIds = null;
2670
- let n = $(e);
2671
- this.monitor.isDragging() && (this.actions.endDrag(), this.cancelHover()), this.actions.beginDrag(t || [], {
2672
- publishSource: !1,
2673
- getSourceClientOffset: this.getSourceClientOffset,
2674
- clientOffset: n
2675
- });
2676
- let { dataTransfer: r } = e, i = ji(r);
2677
- if (this.monitor.isDragging()) {
2678
- if (r && typeof r.setDragImage == "function") {
2679
- let e = this.monitor.getSourceId(), t = this.sourceNodes.get(e), i = this.sourcePreviewNodes.get(e) || t;
2680
- if (i) {
2681
- let { anchorX: e, anchorY: a, offsetX: o, offsetY: s } = this.getCurrentSourcePreviewNodeOptions(), c = zi(t, i, n, {
2682
- anchorX: e,
2683
- anchorY: a
2684
- }, {
2685
- offsetX: o,
2686
- offsetY: s
2687
- });
2688
- r.setDragImage(i, c.x, c.y);
2689
- }
2690
- }
2691
- try {
2692
- r?.setData("application/json", {});
2693
- } catch {}
2694
- this.setCurrentDragSourceNode(e.target);
2695
- let { captureDraggingState: t } = this.getCurrentSourcePreviewNodeOptions();
2696
- t ? this.actions.publishDragSource() : setTimeout(() => this.actions.publishDragSource(), 0);
2697
- } else if (i) this.beginDragNativeItem(i);
2698
- else if (r && !r.types && (e.target && !e.target.hasAttribute || !e.target.hasAttribute("draggable"))) return;
2699
- else e.preventDefault();
2700
- }, this.handleTopDragEndCapture = () => {
2701
- this.clearCurrentDragSourceNode() && this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
2702
- }, this.handleTopDragEnterCapture = (e) => {
2703
- if (this.dragEnterTargetIds = [], this.isDraggingNativeItem()) {
2704
- var t;
2705
- (t = this.currentNativeSource) == null || t.loadDataTransfer(e.dataTransfer);
2706
- }
2707
- if (!this.enterLeaveCounter.enter(e.target) || this.monitor.isDragging()) return;
2708
- let { dataTransfer: n } = e, r = ji(n);
2709
- r && this.beginDragNativeItem(r, n);
2710
- }, this.handleTopDragEnter = (e) => {
2711
- let { dragEnterTargetIds: t } = this;
2712
- this.dragEnterTargetIds = [], this.monitor.isDragging() && (this.altKeyPressed = e.altKey, t.length > 0 && this.actions.hover(t, { clientOffset: $(e) }), t.some((e) => this.monitor.canDropOnTarget(e)) && (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = this.getCurrentDropEffect())));
2713
- }, this.handleTopDragOverCapture = (e) => {
2714
- if (this.dragOverTargetIds = [], this.isDraggingNativeItem()) {
2715
- var t;
2716
- (t = this.currentNativeSource) == null || t.loadDataTransfer(e.dataTransfer);
2717
- }
2718
- }, this.handleTopDragOver = (e) => {
2719
- let { dragOverTargetIds: t } = this;
2720
- if (this.dragOverTargetIds = [], !this.monitor.isDragging()) {
2721
- e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "none");
2722
- return;
2723
- }
2724
- this.altKeyPressed = e.altKey, this.lastClientOffset = $(e), this.scheduleHover(t), (t || []).some((e) => this.monitor.canDropOnTarget(e)) ? (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = this.getCurrentDropEffect())) : this.isDraggingNativeItem() ? e.preventDefault() : (e.preventDefault(), e.dataTransfer && (e.dataTransfer.dropEffect = "none"));
2725
- }, this.handleTopDragLeaveCapture = (e) => {
2726
- this.isDraggingNativeItem() && e.preventDefault(), this.enterLeaveCounter.leave(e.target) && (this.isDraggingNativeItem() && setTimeout(() => this.endDragNativeItem(), 0), this.cancelHover());
2727
- }, this.handleTopDropCapture = (e) => {
2728
- if (this.dropTargetIds = [], this.isDraggingNativeItem()) {
2729
- var t;
2730
- e.preventDefault(), (t = this.currentNativeSource) == null || t.loadDataTransfer(e.dataTransfer);
2731
- } else ji(e.dataTransfer) && e.preventDefault();
2732
- this.enterLeaveCounter.reset();
2733
- }, this.handleTopDrop = (e) => {
2734
- let { dropTargetIds: t } = this;
2735
- this.dropTargetIds = [], this.actions.hover(t, { clientOffset: $(e) }), this.actions.drop({ dropEffect: this.getCurrentDropEffect() }), this.isDraggingNativeItem() ? this.endDragNativeItem() : this.monitor.isDragging() && this.actions.endDrag(), this.cancelHover();
2736
- }, this.handleSelectStart = (e) => {
2737
- let t = e.target;
2738
- typeof t.dragDrop == "function" && (t.tagName === "INPUT" || t.tagName === "SELECT" || t.tagName === "TEXTAREA" || t.isContentEditable || (e.preventDefault(), t.dragDrop()));
2739
- }, this.options = new Bi(t, n), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new Si(this.isNodeInDocument);
2740
- }
2741
- }, Wi = function(e, t, n) {
2742
- return new Ui(e, t, n);
2743
- };
2744
- //#endregion
2745
- //#region src/components/app-modal/app-modal-component.tsx
2746
- function Gi(e) {
2747
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
2748
- }
2749
- var Ki = /* @__PURE__ */ n({
2750
- props: { opts: {
2751
- type: Object,
2752
- default: () => ({})
2753
- } },
2754
- setup(e, n) {
2755
- let i = f("modal"), c = o(!1), l = o(!!e.opts.defaultFullscreen), d = () => {
2756
- l.value = !l.value;
2757
- }, m = o({});
2758
- e.opts && Object.assign(m.value, e.opts);
2759
- let h = null, g = new u({
2760
- dismiss: (e) => {
2761
- c.value = !1, h = e, n.emit("dismiss", h);
2762
- },
2763
- setOptions(e) {
2764
- Object.assign(m.value, e);
2765
- }
2766
- });
2767
- a("modal", g);
2768
- let _ = (e) => g.dismiss(e);
2769
- n.expose({
2770
- present: () => {
2771
- c.value = !0;
2772
- },
2773
- dismiss: _
2774
- });
2775
- let v = o(!1), ee = async () => {
2776
- if (g.ok) try {
2777
- v.value = !0;
2778
- let e = await g.ok();
2779
- v.value = !1, e && (e.ok === !0 || e.close === !0) && _(e);
2780
- } finally {
2781
- v.value = !1;
2782
- }
2783
- else console.warn("打开模态未实现ok方法");
2784
- }, te = async () => {
2785
- g.cancel && await g.cancel() === !1 || _();
2786
- }, { getAntdLocale: ne } = { getAntdLocale: { locale: {} } };
2787
- return () => {
2788
- let e, a = n.slots.default?.();
2789
- return a && a.length > 0 && (a[0].props.modal = g), t(p, { locale: ne }, { default: () => [t(rr, { backend: Wi }, Gi(e = r(s("a-modal"), {
2790
- visible: c.value,
2791
- class: [
2792
- i.b(),
2793
- m.value.placement && i.m(m.value.placement),
2794
- m.value.modalClass,
2795
- i.is("hidden-footer", m.value.showFooter === !1),
2796
- i.is("hidden-close-btn", m.value.showCloseBtn === !1),
2797
- i.is("hidden-cancel-btn", m.value.showCancelBtn === !1),
2798
- i.is("full-screen", l.value)
2799
- ],
2800
- centered: !0,
2801
- onOk: ee,
2802
- confirmLoading: v.value,
2803
- onCancel: te,
2804
- okText: "确认",
2805
- okButtonProps: { disabled: g.state.okDisabled },
2806
- ...m.value
2807
- }, [m.value.canFullscreen === !1 ? null : t("div", {
2808
- class: i.e("full-screen"),
2809
- onClick: d
2810
- }, [t("i", { class: `iconfont ${l.value ? "icon-tuichuquanping" : "icon-quanping"}` }, null)]), a])) ? e : { default: () => [e] })] });
2811
- };
2812
- }
2813
- });
2814
- function qi(e, t) {
2815
- return new d(Ki, e, t);
2816
- }
2817
- //#endregion
2818
- //#region src/utils/overlay-controller/overlay-controller.ts
2819
- function Ji(e) {
2820
- return l(e) ? s(e) : e;
2821
- }
2822
- var Yi = class {
2823
- async modal(e, t, n) {
2824
- let r = this.createModal(e, t, n);
2825
- return r.present(), r.onWillDismiss();
2826
- }
2827
- createModal(e, t, n) {
2828
- return qi(c(e) ? e : () => r(Ji(e), { ...t }), n);
2829
- }
2830
- }, Xi = new Yi(), Zi = (e, t) => (e.install = (n) => {
2831
- let r = e.name || e.displayName;
2832
- r && (n.component(r, e), t && (n.config.globalProperties[t] = e));
2833
- }, e), Qi = {
2834
- VS: "vs",
2835
- BLACK: "hc-black",
2836
- DARK: "vs-dark"
2837
- }, $i = {
2838
- JS: "javascript",
2839
- SQL: "sql",
2840
- PWSH: "powershell",
2841
- JAVA: "java",
2842
- C_SHARP: "csharp",
2843
- JSON: "json"
2844
- }, ea = class {
2845
- value;
2846
- title;
2847
- language;
2848
- theme;
2849
- readonly;
2850
- };
2851
- //#endregion
2852
- export { Yi as a, _i as c, gt as d, at as f, Zi as i, gi as l, ea as n, Xi as o, oe as p, Qi as r, vi as s, $i as t, ti as u };