halo-fe 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -1,15 +1,14 @@
1
- var yt = Object.defineProperty;
2
- var vt = (u, e, t) => e in u ? yt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
- var n = (u, e, t) => vt(u, typeof e != "symbol" ? e + "" : e, t);
4
- import { _ as Be } from "./assets/underscore-B0BCaBxV.js";
5
- import { defineAsyncComponent as bt, reactive as He, defineComponent as Q, toRefs as re, openBlock as R, createElementBlock as B, createElementVNode as D, toDisplayString as pe, unref as m, renderSlot as fe, createCommentVNode as et, ref as j, onMounted as Le, onUnmounted as be, normalizeStyle as me, watch as H, normalizeClass as Ae, createTextVNode as wt, createBlock as tt, withCtx as Ve, mergeModels as Je, useModel as st, nextTick as Xe, withDirectives as xt, vShow as St, createVNode as Ce, createStaticVNode as kt, isRef as Pe, Fragment as Ct, renderList as Et, computed as Ee } from "vue";
6
- import { _ as Tt } from "./assets/underscore.string-oDfap0sE.js";
7
- import { a as $t } from "./assets/clone-DtpAsLoe.js";
8
- import { F as Lt } from "./assets/file-saver-Cnua3zoa.js";
9
- import { l as Oe } from "./assets/@monaco-editor-BCDRi0Ti.js";
1
+ var mt = Object.defineProperty;
2
+ var yt = (u, e, t) => e in u ? mt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : u[e] = t;
3
+ var n = (u, e, t) => yt(u, typeof e != "symbol" ? e + "" : e, t);
4
+ import { _ as _e } from "./assets/underscore-B0BCaBxV.js";
5
+ import { defineAsyncComponent as vt, reactive as Ze, defineComponent as J, toRefs as re, openBlock as R, createElementBlock as B, createElementVNode as D, toDisplayString as pe, unref as m, renderSlot as fe, createCommentVNode as He, ref as j, onMounted as we, onUnmounted as xe, normalizeStyle as me, watch as H, normalizeClass as Ae, createTextVNode as bt, createBlock as et, withCtx as qe, mergeModels as We, useModel as tt, nextTick as Qe, withDirectives as wt, vShow as xt, createVNode as Ce, createStaticVNode as St, isRef as Be, Fragment as kt, renderList as Et, computed as Te } from "vue";
6
+ import { _ as Ct } from "./assets/underscore.string-oDfap0sE.js";
7
+ import { a as Tt } from "./assets/clone-DtpAsLoe.js";
8
+ import { F as $t } from "./assets/file-saver-Cnua3zoa.js";
10
9
  import { h as se } from "./assets/moment-h96o7c8I.js";
11
- import { c as At } from "./assets/vue-i18n-CLr3brPz.js";
12
- import { L as It } from "./assets/liquidjs-C-LVcoaY.js";
10
+ import { c as Lt } from "./assets/vue-i18n-CLr3brPz.js";
11
+ import { L as At } from "./assets/liquidjs-C-LVcoaY.js";
13
12
  class U {
14
13
  }
15
14
  /**
@@ -123,7 +122,7 @@ n(M, "size", (e) => {
123
122
  throw new Error("暂未支持比TB更大的大小");
124
123
  });
125
124
  let ie = M;
126
- const T = class T {
125
+ const C = class C {
127
126
  /**
128
127
  * 获取分成指定片数量后的集合
129
128
  */
@@ -180,7 +179,7 @@ const T = class T {
180
179
  /**
181
180
  * 获取指定数组分成每片指定长度后的集合
182
181
  */
183
- n(T, "getChunks", (e, t) => {
182
+ n(C, "getChunks", (e, t) => {
184
183
  let s = [];
185
184
  for (let l = 0; l < e.length; l += t) {
186
185
  let r = e.slice(l, l + t);
@@ -192,10 +191,10 @@ n(T, "getChunks", (e, t) => {
192
191
  /**
193
192
  * 取两个集合的交集
194
193
  */
195
- n(T, "intersect", (e, t) => e.filter((l) => t.indexOf(l) > -1)), /**
194
+ n(C, "intersect", (e, t) => e.filter((l) => t.indexOf(l) > -1)), /**
196
195
  * 排除指定元素(差集)
197
196
  */
198
- n(T, "except", (e, t, s = null) => {
197
+ n(C, "except", (e, t, s = null) => {
199
198
  let l = t instanceof Array ? t : [t], r = [];
200
199
  if (s == null)
201
200
  r = e.filter((i) => l.indexOf(i) == -1);
@@ -210,19 +209,19 @@ n(T, "except", (e, t, s = null) => {
210
209
  /**
211
210
  * 求最大值,数据类型的比较函数要自己转换为数值类型
212
211
  */
213
- n(T, "max", (e, t) => Be.max(e, t)), /**
212
+ n(C, "max", (e, t) => _e.max(e, t)), /**
214
213
  * 求最小值,数据类型的比较函数要自己转换为数值类型
215
214
  */
216
- n(T, "min", (e, t) => Be.min(e, t)), /**
215
+ n(C, "min", (e, t) => _e.min(e, t)), /**
217
216
  * 求平均值
218
217
  */
219
- n(T, "avg", (e, t, s = null) => {
220
- let r = T.sum(e, t) / e.length;
218
+ n(C, "avg", (e, t, s = null) => {
219
+ let r = C.sum(e, t) / e.length;
221
220
  return s == null ? r : parseFloat(r.toFixed(s));
222
221
  }), /**
223
222
  * 求和
224
223
  */
225
- n(T, "sum", (e, t, s = null) => {
224
+ n(C, "sum", (e, t, s = null) => {
226
225
  let l = 0;
227
226
  for (let i = 0; i < e.length; i++)
228
227
  l += t(e[i]);
@@ -232,10 +231,10 @@ n(T, "sum", (e, t, s = null) => {
232
231
  /**
233
232
  * 是否包含
234
233
  */
235
- n(T, "contains", (e, t) => e.indexOf(t) > -1), /**
234
+ n(C, "contains", (e, t) => e.indexOf(t) > -1), /**
236
235
  * 判断指定集合中的指定属性的值,是否包含关键词
237
236
  */
238
- n(T, "filterContains", (e, t, s) => {
237
+ n(C, "filterContains", (e, t, s) => {
239
238
  let l = [];
240
239
  if (!s)
241
240
  return e;
@@ -253,7 +252,7 @@ n(T, "filterContains", (e, t, s) => {
253
252
  /**
254
253
  * 判断2个数组是否每个元素都相同
255
254
  */
256
- n(T, "same", (e, t) => {
255
+ n(C, "same", (e, t) => {
257
256
  if (e.length != t.length)
258
257
  return !1;
259
258
  let s = e.length >= t.length ? e : t, l = e.length < t.length ? e : t;
@@ -266,13 +265,13 @@ n(T, "same", (e, t) => {
266
265
  /**
267
266
  * 对数组元素根据指定函数进行去重,并返回去重后的值的新数组 n=>n.value
268
267
  */
269
- n(T, "distinct", (e, t) => {
268
+ n(C, "distinct", (e, t) => {
270
269
  let s = new Set(e.map((r) => t(r)));
271
270
  return Array.from(s);
272
271
  }), /**
273
272
  * 连接值构建成新数组,重复项也会自动构建,不存在的值,会自动创建为一个新项
274
273
  */
275
- n(T, "fromValues", (e, t, s, l) => {
274
+ n(C, "fromValues", (e, t, s, l) => {
276
275
  if (!e || e.length == 0 || !t || t.length == 0)
277
276
  return [];
278
277
  let r = [];
@@ -288,7 +287,7 @@ n(T, "fromValues", (e, t, s, l) => {
288
287
  * @param split
289
288
  * @param element 转换后添加的默认元素
290
289
  */
291
- n(T, "split", (e, t, s = null) => {
290
+ n(C, "split", (e, t, s = null) => {
292
291
  let l = [];
293
292
  return e && (l = e.split(t)), s != null && l.push(s), l;
294
293
  }), //#endregion
@@ -296,8 +295,8 @@ n(T, "split", (e, t, s = null) => {
296
295
  /**
297
296
  * 合并多个数组中的每一项到新的二维数组中,没值的元素被有值的元素代替
298
297
  */
299
- n(T, "combine", (...e) => {
300
- let t = [], s = Be.max(e, (l) => l.length);
298
+ n(C, "combine", (...e) => {
299
+ let t = [], s = _e.max(e, (l) => l.length);
301
300
  for (let l = 0; l < s.length; l++) {
302
301
  let r = [], i;
303
302
  for (let a = 0; a < e.length; a++) {
@@ -317,37 +316,37 @@ n(T, "combine", (...e) => {
317
316
  /**
318
317
  * 在指定元素前插入新元素,返回插入元素的索引
319
318
  */
320
- n(T, "insert", (e, t, s) => {
319
+ n(C, "insert", (e, t, s) => {
321
320
  let l = e.indexOf(t);
322
321
  return e.splice(l, 0, s), l;
323
322
  }), /**
324
323
  * 在指定元素后插入新元素,返回插入元素的索引
325
324
  */
326
- n(T, "append", (e, t, s) => {
325
+ n(C, "append", (e, t, s) => {
327
326
  let l = e.indexOf(t) + 1;
328
327
  return e.splice(l, 0, s), l;
329
328
  }), /**
330
329
  * 不存在某元素时才添加某元素
331
330
  */
332
- n(T, "pushIfNotExist", (e, t) => {
331
+ n(C, "pushIfNotExist", (e, t) => {
333
332
  e.indexOf(t) == -1 && e.push(t);
334
333
  }), //#endregion
335
334
  //#region 删除
336
335
  /**
337
336
  * 删除执行数组中的指定对象或者集合
338
337
  */
339
- n(T, "remove", (e, t) => {
338
+ n(C, "remove", (e, t) => {
340
339
  if (U.isNumber(t))
341
340
  e.splice(t, 1);
342
341
  else if (U.isArray(t))
343
342
  for (let s = 0; s < t.length; s++)
344
- T.remove(e, t[s]);
343
+ C.remove(e, t[s]);
345
344
  else
346
345
  e.splice(e.indexOf(t), 1);
347
346
  }), /**
348
347
  * 删除指定元素,并返回删除后的字符串
349
348
  */
350
- n(T, "removeIndex", (e, t, s) => {
349
+ n(C, "removeIndex", (e, t, s) => {
351
350
  let l = e.split(s);
352
351
  return l.splice(t, 1), l.join(s);
353
352
  }), //#endregion
@@ -356,7 +355,7 @@ n(T, "removeIndex", (e, t, s) => {
356
355
  * 按照指定函数对数组排序
357
356
  * order: asc desc null
358
357
  */
359
- n(T, "orderBy", (e, t, s = null) => {
358
+ n(C, "orderBy", (e, t, s = null) => {
360
359
  if (t == null || s == null || e.length == 0 || e.length == 1)
361
360
  return e;
362
361
  t instanceof Function && (t = [t]);
@@ -373,7 +372,7 @@ n(T, "orderBy", (e, t, s = null) => {
373
372
  /**
374
373
  * 分组,封装成字典而不是集合,大数据场景速度提升百倍
375
374
  */
376
- n(T, "groupBy", (e, t, s = null) => {
375
+ n(C, "groupBy", (e, t, s = null) => {
377
376
  let l = {};
378
377
  if (e.forEach((r) => {
379
378
  let i = t(r);
@@ -387,14 +386,14 @@ n(T, "groupBy", (e, t, s = null) => {
387
386
  }), /**
388
387
  * 分组
389
388
  */
390
- n(T, "groupByArray", (e, t) => {
389
+ n(C, "groupByArray", (e, t) => {
391
390
  let s = [];
392
391
  return e.forEach((l) => {
393
392
  let r = t(l), i = s.find((a) => a.key == r);
394
393
  i == null && (i = { key: r, value: [] }, s.push(i)), i.value.push(l);
395
394
  }), s;
396
395
  });
397
- let ge = T;
396
+ let ge = C;
398
397
  const x = class x {
399
398
  /**
400
399
  * 根据字符串或数组,自动返回数组
@@ -421,7 +420,7 @@ n(x, "getUniqueId", (e = 32) => {
421
420
  }), /**
422
421
  * 填充字符串到指定长度,使用pad填充
423
422
  */
424
- n(x, "padLeft", (e, t, s) => Tt.pad(e, t, s)), /**
423
+ n(x, "padLeft", (e, t, s) => Ct.pad(e, t, s)), /**
425
424
  * 去掉头部字符串
426
425
  */
427
426
  n(x, "trimStart", (e, t) => {
@@ -542,8 +541,8 @@ n(x, "getBetween", (e, t, s) => {
542
541
  * 填充字符串到指定长度,使用pad填充
543
542
  */
544
543
  n(x, "padStart", (e, t, s) => e.padStart(t, s));
545
- let X = x;
546
- const Te = class Te {
544
+ let Q = x;
545
+ const $e = class $e {
547
546
  //#region 净化
548
547
  /**
549
548
  * 净化对象,返回不带默认属性的对象
@@ -598,7 +597,7 @@ const Te = class Te {
598
597
  * 对对象进行深度克隆,同时可以移除Proxy对象
599
598
  */
600
599
  static clone(e, t = null) {
601
- let s = $t(e, !0);
600
+ let s = Tt(e, !0);
602
601
  if (t == null)
603
602
  return s;
604
603
  if (U.isArray(e))
@@ -615,7 +614,7 @@ const Te = class Te {
615
614
  static mergeTo(e, t) {
616
615
  return e == null ? t : t == null ? e : U.isArray(t) ? t.slice() : (Object.keys(t).forEach((l) => {
617
616
  let r = t[l];
618
- typeof r == "object" ? e[l] = Te.mergeTo(e[l], r) : e[l] = r;
617
+ typeof r == "object" ? e[l] = $e.mergeTo(e[l], r) : e[l] = r;
619
618
  }), e);
620
619
  }
621
620
  //#endregion
@@ -641,7 +640,7 @@ const Te = class Te {
641
640
  /**
642
641
  * 手动复制,并对字段执行指定自定义处理
643
642
  */
644
- n(Te, "copy", (e, t = null) => {
643
+ n($e, "copy", (e, t = null) => {
645
644
  let s = [];
646
645
  U.isObject(e) && s.push(e);
647
646
  let l = [];
@@ -658,15 +657,15 @@ n(Te, "copy", (e, t = null) => {
658
657
  /**
659
658
  * 给对象添加多层属性,并赋值
660
659
  */
661
- n(Te, "addProperties", (e, t, s) => {
660
+ n($e, "addProperties", (e, t, s) => {
662
661
  let l = e;
663
662
  for (let r = 0; r < t.length; r++) {
664
663
  let i = t[r];
665
664
  r == t.length - 1 ? l[i] = s : (l[i] || (l[i] = {}), l = l[i]);
666
665
  }
667
666
  });
668
- let te = Te;
669
- class Fe {
667
+ let te = $e;
668
+ class Ue {
670
669
  //#region 取值
671
670
  /**
672
671
  * 从指定字典中提取忽略大小写的key的值
@@ -727,7 +726,7 @@ class Fe {
727
726
  }
728
727
  //#endregion
729
728
  }
730
- const K = class K {
729
+ const z = class z {
731
730
  /**
732
731
  * 获取指定地址路由对象
733
732
  */
@@ -856,7 +855,7 @@ const K = class K {
856
855
  */
857
856
  static serialize(e, t = !0) {
858
857
  let s = (r) => t ? encodeURIComponent(r) : r;
859
- return Fe.join(e, s, "=", "&");
858
+ return Ue.join(e, s, "=", "&");
860
859
  }
861
860
  //endregion
862
861
  //region 编码和解码
@@ -877,7 +876,7 @@ const K = class K {
877
876
  /**
878
877
  * 处理键值对的值
879
878
  */
880
- n(K, "handleQueryValue", (e, t) => {
879
+ n(z, "handleQueryValue", (e, t) => {
881
880
  let s = "";
882
881
  if (e == null)
883
882
  return s;
@@ -885,13 +884,13 @@ n(K, "handleQueryValue", (e, t) => {
885
884
  if (e.length > 0)
886
885
  for (let l = 0; l < e.length; l++) {
887
886
  let r = te.clone(t);
888
- r.push(""), s += K.handleQueryValue(e[l], r);
887
+ r.push(""), s += z.handleQueryValue(e[l], r);
889
888
  }
890
889
  } else if (e instanceof Object) {
891
890
  let l = Object.keys(e);
892
891
  for (let r of l) {
893
892
  let i = te.clone(t);
894
- i.push(r), s += K.handleQueryValue(e[r], i);
893
+ i.push(r), s += z.handleQueryValue(e[r], i);
895
894
  }
896
895
  } else {
897
896
  let l = "";
@@ -904,27 +903,27 @@ n(K, "handleQueryValue", (e, t) => {
904
903
  }), /**
905
904
  * 自动根据后面路径,决定是否要合并Url
906
905
  */
907
- n(K, "concatUrl", (e, t) => K.httpOrHttps(t) ? t : e + t), /**
906
+ n(z, "concatUrl", (e, t) => z.httpOrHttps(t) ? t : e + t), /**
908
907
  * 合并路径和查询对象(自动编码,并支持覆盖现有参数),得到完整URL地址,并会省略默认值
909
908
  * ? 对url参数不编码,只对 queryObj 参数编码,防止用户的参数被改成编码形式
910
909
  * ? 目前,对Url参数对象和目标对象都编码,因为源对象属性是经过解码的
911
910
  */
912
- n(K, "getUrl", (e, t = null) => {
911
+ n(z, "getUrl", (e, t = null) => {
913
912
  if (e == null)
914
913
  return null;
915
914
  if (t == null)
916
915
  return e;
917
- let s = K.deserialize(e), l = te.mergeTo(s, t);
918
- return K.getPath(e) + "?" + K.getQuery(l);
916
+ let s = z.deserialize(e), l = te.mergeTo(s, t);
917
+ return z.getPath(e) + "?" + z.getQuery(l);
919
918
  }), /**
920
919
  * 获取超链接配置对象
921
920
  */
922
- n(K, "getAnchor", (e, t = null) => {
921
+ n(z, "getAnchor", (e, t = null) => {
923
922
  let s = { href: null, target: null };
924
- return K.httpOrHttps(e) ? (s.href = e, s.target = "_blank", s) : (s.href = K.getUrl(e, t), s);
923
+ return z.httpOrHttps(e) ? (s.href = e, s.target = "_blank", s) : (s.href = z.getUrl(e, t), s);
925
924
  });
926
- let W = K;
927
- class Ot {
925
+ let K = z;
926
+ class It {
928
927
  /**
929
928
  * 根据动态加载的组件对象,得到组件集合
930
929
  */
@@ -934,11 +933,11 @@ class Ot {
934
933
  return l;
935
934
  for (let i = 0; i < r.length; i++) {
936
935
  const a = r[i];
937
- let o = X.trim(a, t, ".vue"), h = (s ? s + "-" : "") + X.getDashName(o), d = e[a];
936
+ let o = Q.trim(a, t, ".vue"), h = (s ? s + "-" : "") + Q.getDashName(o), d = e[a];
938
937
  if (d.default)
939
938
  l[h] = d.default;
940
939
  else {
941
- let p = bt(d);
940
+ let p = vt(d);
942
941
  l[h] = p;
943
942
  }
944
943
  }
@@ -956,10 +955,10 @@ class Ot {
956
955
  /**
957
956
  * 获取部分自定义组件名称
958
957
  */
959
- n(Ot, "getName", (e, t) => {
958
+ n(It, "getName", (e, t) => {
960
959
  if (!e)
961
960
  return null;
962
- let s = W.getPath(e);
961
+ let s = K.getPath(e);
963
962
  return s ? s == "/" ? t : t + s.replace(/\//g, "-").toLowerCase() : null;
964
963
  });
965
964
  const ce = class ce {
@@ -972,7 +971,7 @@ n(ce, "save", (e, t) => {
972
971
  for (; l--; )
973
972
  r[l] = s.charCodeAt(l);
974
973
  let i = new Blob([r]);
975
- Lt.saveAs(i, t);
974
+ $t.saveAs(i, t);
976
975
  }), /**
977
976
  * 获取文件扩展名
978
977
  */
@@ -992,7 +991,7 @@ n(ce, "isImage", (e) => {
992
991
  let t = ce.getExtension(e);
993
992
  return [".png", ".jpg", ".jpeg", ".bmp", ".gif"].indexOf(t) > -1;
994
993
  });
995
- let De = ce;
994
+ let Oe = ce;
996
995
  const Z = class Z {
997
996
  //#region 颜色
998
997
  /**
@@ -1026,7 +1025,7 @@ const Z = class Z {
1026
1025
  let t = "";
1027
1026
  for (let s = 0; s < e.length; s++) {
1028
1027
  let l = e[s];
1029
- X.isNullOrEmpty(l) || (t += l, s != e.length - 1 && (t += " "));
1028
+ Q.isNullOrEmpty(l) || (t += l, s != e.length - 1 && (t += " "));
1030
1029
  }
1031
1030
  return t;
1032
1031
  }
@@ -1210,13 +1209,13 @@ const Z = class Z {
1210
1209
  * 获取行内标签,如: style(非link)
1211
1210
  */
1212
1211
  static getInlineTagByUrl(e) {
1213
- return De.getExtension(e) == ".css" ? "style" : "script";
1212
+ return Oe.getExtension(e) == ".css" ? "style" : "script";
1214
1213
  }
1215
1214
  /**
1216
1215
  * 获取资源标签,如: link
1217
1216
  */
1218
1217
  static getTagByUrl(e) {
1219
- return De.getExtension(e) == ".css" ? "link" : "script";
1218
+ return Oe.getExtension(e) == ".css" ? "link" : "script";
1220
1219
  }
1221
1220
  //#endregion
1222
1221
  //#region 文本
@@ -1347,15 +1346,15 @@ n(ue, "scroll", (e, t) => {
1347
1346
  n(ue, "unscroll", (e, t) => {
1348
1347
  e && e.removeEventListener("scroll", t, !0);
1349
1348
  });
1350
- class Qe {
1349
+ class Je {
1351
1350
  }
1352
1351
  /**
1353
1352
  * 获取Html内容
1354
1353
  */
1355
- n(Qe, "getHtml", (e) => U.isNumber(e) ? e : e && e.replace(/\n/g, "<br/>")), /**
1354
+ n(Je, "getHtml", (e) => U.isNumber(e) ? e : e && e.replace(/\n/g, "<br/>")), /**
1356
1355
  * 获取Html中的文字
1357
1356
  */
1358
- n(Qe, "getText", (e) => {
1357
+ n(Je, "getText", (e) => {
1359
1358
  if (!e)
1360
1359
  return null;
1361
1360
  if (!U.isString(e))
@@ -1363,46 +1362,46 @@ n(Qe, "getText", (e) => {
1363
1362
  let t = new RegExp("<[^<>]+>", "g");
1364
1363
  return e.replace(t, "");
1365
1364
  });
1366
- class Dt {
1365
+ class Ot {
1367
1366
  }
1368
1367
  /**
1369
1368
  * 获取base64图片地址
1370
1369
  */
1371
- n(Dt, "base64", (e) => "data:image/png;base64," + e);
1372
- class jt {
1370
+ n(Ot, "base64", (e) => "data:image/png;base64," + e);
1371
+ class Dt {
1373
1372
  }
1374
1373
  /**
1375
1374
  * 加载乾坤子应用
1376
1375
  */
1377
- n(jt, "load", function(e, t, s, l) {
1376
+ n(Dt, "load", function(e, t, s, l) {
1378
1377
  });
1379
- const $e = class $e {
1378
+ const Le = class Le {
1380
1379
  };
1381
1380
  /**
1382
1381
  * 激发主框架事件
1383
1382
  */
1384
- n($e, "emit", (e, t) => {
1385
- $e.emits({ [e]: t });
1383
+ n(Le, "emit", (e, t) => {
1384
+ Le.emits({ [e]: t });
1386
1385
  }), /**
1387
1386
  * 批量激发主框架事件
1388
1387
  */
1389
- n($e, "emits", (e) => {
1388
+ n(Le, "emits", (e) => {
1390
1389
  var s, l;
1391
1390
  let t = (l = (s = window.parent) == null ? void 0 : s.window) == null ? void 0 : l.emit;
1392
1391
  t && Object.keys(e).forEach((r) => {
1393
1392
  t(r, e[r]);
1394
1393
  });
1395
1394
  });
1396
- let je = $e;
1397
- class ke {
1395
+ let De = Le;
1396
+ class Ee {
1398
1397
  }
1399
1398
  /**
1400
1399
  * 延时指定ms后执行指定任务
1401
1400
  */
1402
- n(ke, "delay", (e, t) => setTimeout(e, t)), /**
1401
+ n(Ee, "delay", (e, t) => setTimeout(e, t)), /**
1403
1402
  * 在执行指定延时后,每隔指定ms执行指定任务
1404
1403
  */
1405
- n(ke, "execute", (e, t, s) => {
1404
+ n(Ee, "execute", (e, t, s) => {
1406
1405
  if (!s) {
1407
1406
  let l = setInterval(e, t);
1408
1407
  return Promise.resolve(l);
@@ -1416,12 +1415,12 @@ n(ke, "execute", (e, t, s) => {
1416
1415
  }), /**
1417
1416
  * 清空定时器
1418
1417
  */
1419
- n(ke, "clearInterval", (e) => {
1418
+ n(Ee, "clearInterval", (e) => {
1420
1419
  clearInterval(e);
1421
1420
  }), /**
1422
1421
  * 防抖(指定时间内只触发一次)
1423
1422
  */
1424
- n(ke, "debounce", (e, t) => {
1423
+ n(Ee, "debounce", (e, t) => {
1425
1424
  let s = null;
1426
1425
  return (l) => {
1427
1426
  s && clearTimeout(s), s = setTimeout(e, t, l);
@@ -1429,7 +1428,7 @@ n(ke, "debounce", (e, t) => {
1429
1428
  }), /**
1430
1429
  * 节流:https://segmentfault.com/a/1190000018428170
1431
1430
  */
1432
- n(ke, "throttle", (e, t) => {
1431
+ n(Ee, "throttle", (e, t) => {
1433
1432
  let s = !0;
1434
1433
  return (l) => {
1435
1434
  if (!s)
@@ -1439,7 +1438,7 @@ n(ke, "throttle", (e, t) => {
1439
1438
  }, t, l);
1440
1439
  };
1441
1440
  });
1442
- class Rt {
1441
+ class jt {
1443
1442
  constructor() {
1444
1443
  n(this, "value");
1445
1444
  }
@@ -1564,19 +1563,19 @@ n(E, "getParentById", (e, t, s, l) => {
1564
1563
  */
1565
1564
  n(E, "getParentsById", (e, t, s, l, r = !1) => {
1566
1565
  let i = [];
1567
- return s == null || lt(e, t, s, l, i, r), i;
1566
+ return s == null || st(e, t, s, l, i, r), i;
1568
1567
  }), /**
1569
1568
  * 获取当前节点的所有孩子节点的集合
1570
1569
  */
1571
1570
  n(E, "getChildrenById", (e, t, s, l, r = !1) => {
1572
1571
  let i = E.getById(e, t, s, l), a = [];
1573
- return r && a.push(i), Me(i, l, a), a;
1572
+ return r && a.push(i), Fe(i, l, a), a;
1574
1573
  }), /**
1575
1574
  * 获取当前节点的所有孩子节点的集合
1576
1575
  */
1577
1576
  n(E, "getChildren", (e, t, s = !1) => {
1578
1577
  let l = [];
1579
- return s && l.push(e), Me(e, t, l), l;
1578
+ return s && l.push(e), Fe(e, t, l), l;
1580
1579
  }), /**
1581
1580
  * 搜索指定文本的树结构
1582
1581
  */
@@ -1644,47 +1643,47 @@ n(E, "map", (e, t, s, l) => {
1644
1643
  }
1645
1644
  return r;
1646
1645
  });
1647
- let Re = E;
1648
- function lt(u, e, t, s, l, r) {
1646
+ let je = E;
1647
+ function st(u, e, t, s, l, r) {
1649
1648
  for (let i = 0; i < t.length; i++) {
1650
1649
  let a = t[i];
1651
1650
  if (a[e] == u) {
1652
1651
  r && l.push(a);
1653
1652
  break;
1654
1653
  } else
1655
- Re.getById(u, e, a[s], s) != null && (l.push(a), lt(u, e, a[s], s, l, r));
1654
+ je.getById(u, e, a[s], s) != null && (l.push(a), st(u, e, a[s], s, l, r));
1656
1655
  }
1657
1656
  return l;
1658
1657
  }
1659
- function Me(u, e, t) {
1658
+ function Fe(u, e, t) {
1660
1659
  let s = u[e];
1661
1660
  if (!s || s.length == 0)
1662
1661
  return t;
1663
1662
  for (let l = 0; l < s.length; l++) {
1664
1663
  let r = s[l];
1665
- t.push(r), Me(r, e, t);
1664
+ t.push(r), Fe(r, e, t);
1666
1665
  }
1667
1666
  return t;
1668
1667
  }
1669
- class Ye {
1668
+ class Xe {
1670
1669
  }
1671
1670
  /**
1672
1671
  * 判断指定元素滚动条位置,是否到了页面底部
1673
1672
  */
1674
- n(Ye, "isBottom", (e) => {
1673
+ n(Xe, "isBottom", (e) => {
1675
1674
  let t = document.querySelector(e);
1676
1675
  return t ? t.scrollTop + t.clientHeight == t.scrollHeight : !1;
1677
1676
  }), /**
1678
1677
  * 滚动指定元素的滚动条到页面底部
1679
1678
  */
1680
- n(Ye, "scrollToBottom", (e) => {
1679
+ n(Xe, "scrollToBottom", (e) => {
1681
1680
  let t = document.querySelector(e);
1682
1681
  if (!t)
1683
1682
  return;
1684
1683
  let s = t.scrollHeight - t.clientHeight;
1685
1684
  t.scrollTop = s;
1686
1685
  });
1687
- class _t {
1686
+ class Rt {
1688
1687
  constructor() {
1689
1688
  /**
1690
1689
  * 是否美化
@@ -1692,13 +1691,13 @@ class _t {
1692
1691
  n(this, "beautify", !1);
1693
1692
  }
1694
1693
  }
1695
- class J {
1694
+ class W {
1696
1695
  //#region 序列化
1697
1696
  /**
1698
1697
  * 对非字符串进行序列化
1699
1698
  */
1700
1699
  static serializeWithoutString(e) {
1701
- return typeof e == "string" ? e : J.serialize(e, !0);
1700
+ return typeof e == "string" ? e : W.serialize(e, !0);
1702
1701
  }
1703
1702
  /**
1704
1703
  * 把对象格式化为Json字符串
@@ -1706,10 +1705,10 @@ class J {
1706
1705
  static serialize(e, t) {
1707
1706
  if (e == null)
1708
1707
  return null;
1709
- t == null && (t = new _t());
1708
+ t == null && (t = new Rt());
1710
1709
  let l = (typeof t == "boolean" ? t : t.beautify) ? 2 : null, r;
1711
1710
  if (typeof e == "string") {
1712
- let a = J.deserialize(e);
1711
+ let a = W.deserialize(e);
1713
1712
  if (a == null)
1714
1713
  return e;
1715
1714
  r = a;
@@ -1756,7 +1755,7 @@ class J {
1756
1755
  * 把json字符串合并到目标对象上
1757
1756
  */
1758
1757
  static mergeTo(e, t) {
1759
- if (X.isNullOrEmpty(t) || e == null)
1758
+ if (Q.isNullOrEmpty(t) || e == null)
1760
1759
  return;
1761
1760
  let s = JSON.parse(t), l = Object.keys(s);
1762
1761
  for (let r of l)
@@ -1805,7 +1804,7 @@ class J {
1805
1804
  }
1806
1805
  //#endregion
1807
1806
  }
1808
- class rt {
1807
+ class lt {
1809
1808
  /**
1810
1809
  * 获取浏览器默认语言
1811
1810
  */
@@ -1813,7 +1812,7 @@ class rt {
1813
1812
  return navigator.language == "zh-CN" ? "zh-cn" : "en";
1814
1813
  }
1815
1814
  }
1816
- class Bt {
1815
+ class _t {
1817
1816
  /**
1818
1817
  * 清空对象中的空值
1819
1818
  */
@@ -1826,7 +1825,7 @@ class Bt {
1826
1825
  * 签名字典
1827
1826
  */
1828
1827
  static signDictionary(e, t = !0) {
1829
- return this.clean(e), W.serialize(e, t);
1828
+ return this.clean(e), K.serialize(e, t);
1830
1829
  }
1831
1830
  }
1832
1831
  class F {
@@ -1901,24 +1900,24 @@ class F {
1901
1900
  }
1902
1901
  //#endregion
1903
1902
  }
1904
- class _e {
1903
+ class Re {
1905
1904
  constructor() {
1906
1905
  n(this, "type");
1907
1906
  }
1908
1907
  }
1909
- class Pt extends _e {
1908
+ class Bt extends Re {
1910
1909
  constructor() {
1911
1910
  super(...arguments);
1912
1911
  n(this, "type", "Json");
1913
1912
  }
1914
1913
  insert(t) {
1915
- return J.serialize(t.rows, !0);
1914
+ return W.serialize(t.rows, !0);
1916
1915
  }
1917
1916
  update(t) {
1918
- return J.serialize(t.rows, !0);
1917
+ return W.serialize(t.rows, !0);
1919
1918
  }
1920
1919
  }
1921
- class Ut extends _e {
1920
+ class Pt extends Re {
1922
1921
  constructor() {
1923
1922
  super(...arguments);
1924
1923
  n(this, "type", "Mongo");
@@ -1926,7 +1925,7 @@ class Ut extends _e {
1926
1925
  insert(t) {
1927
1926
  let { name: s, columns: l, rows: r } = t, i = "";
1928
1927
  for (let a = 0; a < r.length; a++) {
1929
- let o = r[a], c = J.serialize(o, !0);
1928
+ let o = r[a], c = W.serialize(o, !0);
1930
1929
  i += `db.${s}.insert(${c})`, a != r.length - 1 && (i += `\r
1931
1930
  `);
1932
1931
  }
@@ -1935,19 +1934,19 @@ class Ut extends _e {
1935
1934
  update(t) {
1936
1935
  let { name: s, columns: l, rows: r } = t, i = "", a = l.filter((o) => o.key).map((o) => o.name);
1937
1936
  for (let o = 0; o < r.length; o++) {
1938
- let c = r[o], h = te.extract(c, a), d = J.serialize(h, !0), p = J.serialize(c, !0);
1937
+ let c = r[o], h = te.extract(c, a), d = W.serialize(h, !0), p = W.serialize(c, !0);
1939
1938
  i += `db.${s}.update(${d},{$set:${p})`, o != r.length - 1 && (i += `\r
1940
1939
  `);
1941
1940
  }
1942
1941
  return i;
1943
1942
  }
1944
1943
  }
1945
- class ze {
1944
+ class Ve {
1946
1945
  constructor() {
1947
1946
  n(this, "type");
1948
1947
  }
1949
1948
  }
1950
- const he = class he extends ze {
1949
+ const he = class he extends Ve {
1951
1950
  constructor() {
1952
1951
  super(...arguments);
1953
1952
  //#region 属性
@@ -2136,8 +2135,8 @@ const he = class he extends ze {
2136
2135
  * 静态版本,保证所有数据库实例拿到最新版本信息
2137
2136
  */
2138
2137
  n(he, "version", null);
2139
- let Ne = he;
2140
- class Ft extends ze {
2138
+ let Me = he;
2139
+ class Ut extends Ve {
2141
2140
  constructor() {
2142
2141
  super(...arguments);
2143
2142
  //#region 属性
@@ -2208,7 +2207,7 @@ class Ft extends ze {
2208
2207
  }
2209
2208
  //#endregion
2210
2209
  }
2211
- class Mt extends ze {
2210
+ class Ft extends Ve {
2212
2211
  constructor() {
2213
2212
  super(...arguments);
2214
2213
  n(this, "type", "Cookie");
@@ -2245,13 +2244,13 @@ class Mt extends ze {
2245
2244
  dispose() {
2246
2245
  }
2247
2246
  }
2248
- class Nt extends F {
2247
+ class Mt extends F {
2249
2248
  constructor() {
2250
2249
  super(...arguments);
2251
2250
  n(this, "_default");
2252
2251
  }
2253
2252
  get instances() {
2254
- return [new Ne(), new Ft(), new Mt()];
2253
+ return [new Me(), new Ut(), new Ft()];
2255
2254
  }
2256
2255
  /**
2257
2256
  * 获取指定类型的提供程序
@@ -2273,7 +2272,7 @@ class Nt extends F {
2273
2272
  return this.create("Storage");
2274
2273
  }
2275
2274
  }
2276
- class Ge {
2275
+ class Ye {
2277
2276
  /**
2278
2277
  * 获取实际SQL字段名称
2279
2278
  */
@@ -2287,16 +2286,16 @@ class Ge {
2287
2286
  if (e == null)
2288
2287
  return "null";
2289
2288
  let t = typeof e;
2290
- return t == "number" || t == "boolean" ? e : t == "object" || t == "string" ? `'${(t == "object" ? J.serialize(e) : e).replace(/'/g, "''")}'` : e;
2289
+ return t == "number" || t == "boolean" ? e : t == "object" || t == "string" ? `'${(t == "object" ? W.serialize(e) : e).replace(/'/g, "''")}'` : e;
2291
2290
  }
2292
2291
  }
2293
- class qe extends _e {
2292
+ class Ne extends Re {
2294
2293
  constructor() {
2295
2294
  super(...arguments);
2296
2295
  n(this, "type", "Sql");
2297
2296
  }
2298
2297
  insert(t) {
2299
- let { name: s, columns: l, rows: r } = t, i = t.getIdentity(), a = "", h = l.filter((d) => !d.identity).map((d) => Ge.getSqlName(d.name)).join(", ");
2298
+ let { name: s, columns: l, rows: r } = t, i = t.getIdentity(), a = "", h = l.filter((d) => !d.identity).map((d) => Ye.getSqlName(d.name)).join(", ");
2300
2299
  for (let d = 0; d < r.length; d++) {
2301
2300
  let p = r[d];
2302
2301
  a += `INSERT INTO ${s}\r
@@ -2305,11 +2304,11 @@ class qe extends _e {
2305
2304
  `, a += "(";
2306
2305
  let g = Object.keys(p);
2307
2306
  for (let w = 0; w < g.length; w++) {
2308
- let V = g[w];
2309
- if (i != null && i.name == V)
2307
+ let q = g[w];
2308
+ if (i != null && i.name == q)
2310
2309
  continue;
2311
- let Y = p[V];
2312
- a += `${Ge.getValue(Y)}`, w != g.length - 1 && (a += ", ");
2310
+ let X = p[q];
2311
+ a += `${Ye.getValue(X)}`, w != g.length - 1 && (a += ", ");
2313
2312
  }
2314
2313
  a += ")", d != r.length - 1 && (a += `\r
2315
2314
  \r
@@ -2321,24 +2320,24 @@ class qe extends _e {
2321
2320
  return "";
2322
2321
  }
2323
2322
  }
2324
- class qt extends _e {
2323
+ class Nt extends Re {
2325
2324
  constructor() {
2326
2325
  super(...arguments);
2327
2326
  n(this, "type", "MySql");
2328
2327
  }
2329
2328
  insert(t) {
2330
- return new qe().insert(t);
2329
+ return new Ne().insert(t);
2331
2330
  }
2332
2331
  update(t) {
2333
- return new qe().update(t);
2332
+ return new Ne().update(t);
2334
2333
  }
2335
2334
  }
2336
- class Vt extends F {
2335
+ class qt extends F {
2337
2336
  open() {
2338
- super.open(), super.instances = [new Pt(), new Ut(), new qt(), new qe()];
2337
+ super.open(), super.instances = [new Bt(), new Pt(), new Nt(), new Ne()];
2339
2338
  }
2340
2339
  }
2341
- class Hl {
2340
+ class Gl {
2342
2341
  constructor() {
2343
2342
  /**
2344
2343
  * 表名
@@ -2360,8 +2359,12 @@ class Hl {
2360
2359
  return this.columns == null || this.columns.length == 0 ? null : this.columns.find((t) => t.identity);
2361
2360
  }
2362
2361
  }
2363
- class nt {
2362
+ class rt {
2364
2363
  constructor() {
2364
+ /**
2365
+ * 任务实例,用于控制并发
2366
+ */
2367
+ n(this, "task");
2365
2368
  /**
2366
2369
  * 异步加载脚本/样式内容,把内容处理为行内html
2367
2370
  * 这种方式,依赖的内部资源,会从当前站点加载
@@ -2387,48 +2390,78 @@ class nt {
2387
2390
  /**
2388
2391
  * 通过注入DOM标签异步加载脚本或样式表,已防重
2389
2392
  */
2390
- n(this, "loadResourceAsync", async (e) => {
2391
- let t = X.getArray(e), s = [];
2392
- for (let r of t) {
2393
- let i = new Promise(async (a, o) => {
2394
- let c = N.getByUrl(r);
2395
- c != null ? a(c) : (c = N.createByUrl(r), document.head.appendChild(c), c.onload = (h) => {
2396
- a(c);
2397
- }, c.onerror = (h) => {
2398
- o(h);
2399
- let d;
2400
- throw h instanceof Event ? d = `${h.type}, 耗时: ${h.timeStamp}` : d = h, new Error(`脚本: ${r} 加载出错: ${d}`);
2393
+ n(this, "loadResourceAsync", async (e, t = null) => {
2394
+ let s = Q.getArray(e), l = [];
2395
+ for (let i of s) {
2396
+ let a = new Promise((o, c) => {
2397
+ let h = N.getByUrl(i);
2398
+ h != null ? o(h) : (h = N.createByUrl(i), document.head.appendChild(h), h.onload = (d) => {
2399
+ t == null || t(), o(h);
2400
+ }, h.onerror = (d) => {
2401
+ c(d);
2402
+ let p;
2403
+ throw d instanceof Event ? p = `${d.type}, 耗时: ${d.timeStamp}` : p = d, new Error(`脚本: ${i} 加载出错: ${p}`);
2401
2404
  });
2402
2405
  });
2403
- s.push(i);
2406
+ l.push(a);
2404
2407
  }
2405
- return await Promise.all(s);
2408
+ return await Promise.all(l);
2406
2409
  });
2407
2410
  }
2411
+ //#endregion
2412
+ //#region 开启
2413
+ async open(e) {
2414
+ this.task = await $.task.create("Memory"), this.task.taskLimit = 1;
2415
+ }
2416
+ async getMonaco(e = null) {
2417
+ let t = window.monaco;
2418
+ if (t)
2419
+ return t;
2420
+ let s = async () => {
2421
+ if (window.monaco)
2422
+ return Promise.resolve();
2423
+ await new Promise(async (r, i) => {
2424
+ let a = ["/loader.js"];
2425
+ await this.loadFilesAsync(e, a);
2426
+ let o = window.require;
2427
+ o.config({ paths: { vs: e } }), o(["vs/editor/editor.main"], (c) => {
2428
+ r(c);
2429
+ });
2430
+ });
2431
+ };
2432
+ return await this.task.concurrent(s), t = window.monaco, t;
2433
+ }
2434
+ async getQuill(e = null) {
2435
+ let t = window.Quill;
2436
+ if (t)
2437
+ return t;
2438
+ let s = ["/quill.snow.css", "/quill.js"], l = async () => {
2439
+ if (window.Quill)
2440
+ return Promise.resolve();
2441
+ await this.loadFilesAsync(e, s);
2442
+ };
2443
+ return await this.task.concurrent(l), t = window.Quill, t;
2444
+ }
2408
2445
  //#region 加载
2409
- async loadFilesAsync(e, t) {
2410
- let s = [];
2411
- for (let l of t)
2412
- s.push(e + l);
2413
- await this.loadResourceAsync(s);
2446
+ async loadFilesAsync(e, t, s = null) {
2447
+ let l = [];
2448
+ for (let r of t)
2449
+ l.push(e + r);
2450
+ await this.loadResourceAsync(l, s);
2414
2451
  }
2415
2452
  async loadAsync(e) {
2416
- let t = X.getArray(e);
2453
+ let t = Q.getArray(e);
2417
2454
  return await this.loadResourceAsync(t);
2418
2455
  }
2419
2456
  //#endregion
2420
2457
  }
2421
- class zt extends nt {
2458
+ class Vt extends rt {
2422
2459
  constructor() {
2423
2460
  super(...arguments);
2424
2461
  //#region 属性
2425
2462
  n(this, "type", "Local");
2426
2463
  }
2427
2464
  //#endregion
2428
- //#region 开启
2429
- async open(t) {
2430
- }
2431
- //#endregion
2432
2465
  async getCrypto() {
2433
2466
  let t = ["/crypto-js.js"];
2434
2467
  return await super.loadFilesAsync("/assets/crypto-js", t), window.CryptoJS;
@@ -2446,14 +2479,10 @@ class zt extends nt {
2446
2479
  await super.loadFilesAsync("/assets/@fortawesome/fontawesome-free", t);
2447
2480
  }
2448
2481
  async getMonaco() {
2449
- return Promise.resolve();
2450
- }
2451
- getMonacoPath() {
2452
- return "/assets/monaco-editor/min/vs";
2482
+ return await super.getMonaco("/assets/monaco-editor/min/vs");
2453
2483
  }
2454
2484
  async getQuill() {
2455
- let t = ["/quill.snow.css", "/quill.js"];
2456
- return await super.loadFilesAsync("/assets/quill", t), window.Quill;
2485
+ return await super.getQuill("/assets/quill");
2457
2486
  }
2458
2487
  async getWeiXin() {
2459
2488
  return Promise.resolve(void 0);
@@ -2463,24 +2492,15 @@ class zt extends nt {
2463
2492
  return await super.loadFilesAsync("/assets/xlsx-js-style", t), window.XLSX;
2464
2493
  }
2465
2494
  }
2466
- class Kt extends nt {
2495
+ class zt extends rt {
2467
2496
  constructor() {
2468
2497
  super(...arguments);
2469
2498
  //#region 属性
2470
2499
  n(this, "type", "Third");
2471
- /**
2472
- * 任务实例,用于控制并发
2473
- */
2474
- n(this, "task");
2475
2500
  n(this, "staticFileCdn", "https://cdn.staticfile.net");
2476
2501
  n(this, "jdCdn", "https://unpkg.shop.jd.com");
2477
2502
  }
2478
2503
  //#endregion
2479
- //#region 开启
2480
- async open(t) {
2481
- this.task = await $.task.create("Memory");
2482
- }
2483
- //#endregion
2484
2504
  async getCrypto() {
2485
2505
  let t = ["/crypto-js.js"];
2486
2506
  return await super.loadFilesAsync(`${this.jdCdn}/crypto-js@4.2.0`, t), window.CryptoJS;
@@ -2503,19 +2523,11 @@ class Kt extends nt {
2503
2523
  ];
2504
2524
  await super.loadFilesAsync(`${this.jdCdn}/@fortawesome/fontawesome-free@6.5.2`, t);
2505
2525
  }
2506
- getMonacoPath() {
2507
- return `${this.jdCdn}/monaco-editor@0.50.0/min/vs`;
2508
- }
2509
2526
  async getMonaco() {
2510
- let t = this.getMonacoPath();
2511
- await super.loadAsync(t);
2527
+ return super.getMonaco(`${this.jdCdn}/monaco-editor@0.50.0/min/vs`);
2512
2528
  }
2513
2529
  async getQuill() {
2514
- let t = [
2515
- "/quill.snow.min.css",
2516
- "/quill.js"
2517
- ], s = super.loadFilesAsync(`${this.staticFileCdn}/quill/2.0.2`, t);
2518
- return await this.task.concurrent(s, 1), window.Quill;
2530
+ return super.getQuill(`${this.staticFileCdn}/quill/2.0.2`);
2519
2531
  }
2520
2532
  async getWeiXin() {
2521
2533
  let t = ["/open/js/jweixin-1.6.0.js"];
@@ -2528,9 +2540,9 @@ class Kt extends nt {
2528
2540
  return await super.loadFilesAsync(`${this.jdCdn}/xlsx-js-style@1.2.0`, t), window.XLSX;
2529
2541
  }
2530
2542
  }
2531
- class Wt extends F {
2543
+ class Kt extends F {
2532
2544
  open() {
2533
- super.open(), super.instances = [new zt(), new Kt()];
2545
+ super.open(), super.instances = [new Vt(), new zt()];
2534
2546
  }
2535
2547
  /**
2536
2548
  * 获取指定CDN实例
@@ -2540,7 +2552,7 @@ class Wt extends F {
2540
2552
  return await s.open(t), s;
2541
2553
  }
2542
2554
  }
2543
- class Jt {
2555
+ class Wt {
2544
2556
  constructor() {
2545
2557
  n(this, "type");
2546
2558
  }
@@ -2553,7 +2565,7 @@ class Jt {
2553
2565
  return JSON.parse(t);
2554
2566
  }
2555
2567
  }
2556
- class Xt extends Jt {
2568
+ class Qt extends Wt {
2557
2569
  constructor() {
2558
2570
  super(...arguments);
2559
2571
  //#region 属性
@@ -2563,7 +2575,7 @@ class Xt extends Jt {
2563
2575
  //#endregion
2564
2576
  //#region 开启
2565
2577
  async open(t) {
2566
- this.crypto = await we.getCrypto();
2578
+ this.crypto = await ye.getCrypto();
2567
2579
  }
2568
2580
  //#endregion
2569
2581
  encodeString(t) {
@@ -2575,9 +2587,9 @@ class Xt extends Jt {
2575
2587
  return this.crypto.enc.Utf8.stringify(s);
2576
2588
  }
2577
2589
  }
2578
- class Qt extends F {
2590
+ class Jt extends F {
2579
2591
  get instances() {
2580
- return [new Xt()];
2592
+ return [new Qt()];
2581
2593
  }
2582
2594
  /**
2583
2595
  * 创建执行类型的Hash实例
@@ -2593,12 +2605,12 @@ class Qt extends F {
2593
2605
  return await this.createIfAbsent("Base64");
2594
2606
  }
2595
2607
  }
2596
- class Yt {
2608
+ class Xt {
2597
2609
  constructor() {
2598
2610
  n(this, "type");
2599
2611
  }
2600
2612
  }
2601
- class Gt extends Yt {
2613
+ class Yt extends Xt {
2602
2614
  constructor() {
2603
2615
  super(...arguments);
2604
2616
  //#region 属性
@@ -2608,7 +2620,7 @@ class Gt extends Yt {
2608
2620
  //#endregion
2609
2621
  //#region 开启
2610
2622
  async open(t) {
2611
- this.xlsx = await we.getXlsx();
2623
+ this.xlsx = await ye.getXlsx();
2612
2624
  }
2613
2625
  //#endregion
2614
2626
  export(t, s) {
@@ -2645,9 +2657,9 @@ class Gt extends Yt {
2645
2657
  }), o["!cols"] = h, this.xlsx.writeFile(a, s);
2646
2658
  }
2647
2659
  }
2648
- class Zt extends F {
2660
+ class Gt extends F {
2649
2661
  get instances() {
2650
- return [new Gt()];
2662
+ return [new Yt()];
2651
2663
  }
2652
2664
  /**
2653
2665
  * 获取Excel实例
@@ -2657,19 +2669,19 @@ class Zt extends F {
2657
2669
  return await s.open(t), s;
2658
2670
  }
2659
2671
  }
2660
- class Ht {
2672
+ class Zt {
2661
2673
  constructor() {
2662
2674
  n(this, "type", "Json");
2663
2675
  }
2664
2676
  }
2665
- class es extends Ht {
2677
+ class Ht extends Zt {
2666
2678
  }
2667
- class ts extends F {
2679
+ class es extends F {
2668
2680
  get instances() {
2669
- return [new es()];
2681
+ return [new Ht()];
2670
2682
  }
2671
2683
  }
2672
- class ss {
2684
+ class ts {
2673
2685
  constructor() {
2674
2686
  n(this, "type", "Sort");
2675
2687
  }
@@ -2694,7 +2706,7 @@ class ss {
2694
2706
  }
2695
2707
  }
2696
2708
  }
2697
- class ls {
2709
+ class ss {
2698
2710
  constructor() {
2699
2711
  n(this, "type", "I18N");
2700
2712
  }
@@ -2707,7 +2719,7 @@ class ls {
2707
2719
  copy(e, t, s) {
2708
2720
  }
2709
2721
  }
2710
- class rs {
2722
+ class ls {
2711
2723
  constructor() {
2712
2724
  n(this, "type", "Expression");
2713
2725
  }
@@ -2720,9 +2732,9 @@ class rs {
2720
2732
  copy(e, t, s) {
2721
2733
  }
2722
2734
  }
2723
- class ns extends F {
2735
+ class rs extends F {
2724
2736
  get instances() {
2725
- return [new ss(), new ls(), new rs()];
2737
+ return [new ts(), new ss(), new ls()];
2726
2738
  }
2727
2739
  /**
2728
2740
  * 获取指定特征实例
@@ -2732,12 +2744,12 @@ class ns extends F {
2732
2744
  return s.open(null), s;
2733
2745
  }
2734
2746
  }
2735
- class it {
2747
+ class nt {
2736
2748
  constructor() {
2737
2749
  n(this, "type");
2738
2750
  }
2739
2751
  }
2740
- class is extends it {
2752
+ class ns extends nt {
2741
2753
  constructor() {
2742
2754
  super(...arguments);
2743
2755
  //#region 属性
@@ -2753,7 +2765,7 @@ class is extends it {
2753
2765
  return Array.from(new Uint8Array(r)).map((o) => o.toString(16).padStart(2, "0")).join("");
2754
2766
  }
2755
2767
  }
2756
- class as extends it {
2768
+ class is extends nt {
2757
2769
  constructor() {
2758
2770
  super(...arguments);
2759
2771
  //#region 属性
@@ -2763,7 +2775,7 @@ class as extends it {
2763
2775
  //#endregion
2764
2776
  //#region 开启
2765
2777
  async open(t) {
2766
- this.crypto = await we.getCrypto();
2778
+ this.crypto = await ye.getCrypto();
2767
2779
  }
2768
2780
  //#endregion
2769
2781
  compute(t) {
@@ -2771,9 +2783,9 @@ class as extends it {
2771
2783
  return Promise.resolve(s);
2772
2784
  }
2773
2785
  }
2774
- class os extends F {
2786
+ class as extends F {
2775
2787
  get instances() {
2776
- return [new is(), new as()];
2788
+ return [new ns(), new is()];
2777
2789
  }
2778
2790
  async create(e, t) {
2779
2791
  let s = await super.create(e);
@@ -2786,7 +2798,7 @@ class os extends F {
2786
2798
  return await this.createIfAbsent("Md5");
2787
2799
  }
2788
2800
  }
2789
- class at {
2801
+ class it {
2790
2802
  constructor() {
2791
2803
  /**
2792
2804
  * 请求唯一标识
@@ -2844,11 +2856,11 @@ class at {
2844
2856
  * 不能放在getRequest中处理,因为外部会直接调用当前send方法,而不走getRequest
2845
2857
  */
2846
2858
  prepare() {
2847
- this.time = /* @__PURE__ */ new Date(), this.body == null && this.data != null && this.contentType == "application/json" && (this.body = J.serializeWithoutString(this.data)), this.data == null && this.body != null && this.contentType == "application/json" && (this.data = J.deserialize(this.body)), this.contentType != null && this.addHeader("content-type", this.contentType);
2859
+ this.time = /* @__PURE__ */ new Date(), this.body == null && this.data != null && this.contentType == "application/json" && (this.body = W.serializeWithoutString(this.data)), this.data == null && this.body != null && this.contentType == "application/json" && (this.data = W.deserialize(this.body)), this.contentType != null && this.addHeader("content-type", this.contentType);
2848
2860
  }
2849
2861
  //#endregion
2850
2862
  }
2851
- class ot extends at {
2863
+ class at extends it {
2852
2864
  constructor() {
2853
2865
  super();
2854
2866
  /**
@@ -2863,10 +2875,10 @@ class ot extends at {
2863
2875
  * 实际请求地址
2864
2876
  */
2865
2877
  n(this, "url");
2866
- this.id = X.getUniqueId(8);
2878
+ this.id = Q.getUniqueId(8);
2867
2879
  }
2868
2880
  }
2869
- class Ke {
2881
+ class ze {
2870
2882
  constructor() {
2871
2883
  //#region 属性
2872
2884
  n(this, "type");
@@ -2876,14 +2888,14 @@ class Ke {
2876
2888
  //#endregion
2877
2889
  //#region 开启
2878
2890
  async open(e) {
2879
- J.mergeTo(this, e);
2891
+ W.mergeTo(this, e);
2880
2892
  }
2881
2893
  //#endregion
2882
2894
  async get(e, t) {
2883
2895
  return (await this.sendGet(e, t)).data;
2884
2896
  }
2885
2897
  async sendGet(e, t) {
2886
- let s = W.getUrl(e, t), l = this.getRequest("GET", "application/json", s);
2898
+ let s = K.getUrl(e, t), l = this.getRequest("GET", "application/json", s);
2887
2899
  return await this.send(l);
2888
2900
  }
2889
2901
  async post(e, t) {
@@ -2904,11 +2916,11 @@ class Ke {
2904
2916
  * 获取请求消息
2905
2917
  */
2906
2918
  getRequest(e, t, s, l = null) {
2907
- let r = new ot();
2908
- return r.method = e, r.contentType = t, r.path = s, r.body = J.serializeWithoutString(l), r;
2919
+ let r = new at();
2920
+ return r.method = e, r.contentType = t, r.path = s, r.body = W.serializeWithoutString(l), r;
2909
2921
  }
2910
2922
  }
2911
- class Ze extends at {
2923
+ class Ge extends it {
2912
2924
  constructor() {
2913
2925
  super(...arguments);
2914
2926
  /**
@@ -2933,14 +2945,14 @@ class Ze extends at {
2933
2945
  n(this, "request");
2934
2946
  }
2935
2947
  }
2936
- class us extends Ke {
2948
+ class os extends ze {
2937
2949
  constructor() {
2938
2950
  super(...arguments);
2939
2951
  n(this, "type", "Default");
2940
2952
  n(this, "baseUrl");
2941
2953
  }
2942
2954
  async send(t) {
2943
- X.isNullOrEmpty(t.url) && (t.url = this.baseUrl + t.path), t.prepare();
2955
+ Q.isNullOrEmpty(t.url) && (t.url = this.baseUrl + t.path), t.prepare();
2944
2956
  let s;
2945
2957
  return typeof XMLHttpRequest > "u" ? (s = await this.sendWithFetch(t), s) : (s = await this.sendWithXmlHttpRequest(t), s);
2946
2958
  }
@@ -2948,7 +2960,7 @@ class us extends Ke {
2948
2960
  * 使用Fetch发送请求,谷歌插件场景专用
2949
2961
  */
2950
2962
  async sendWithFetch(t) {
2951
- let s = (/* @__PURE__ */ new Date()).getTime(), l = new Ze();
2963
+ let s = (/* @__PURE__ */ new Date()).getTime(), l = new Ge();
2952
2964
  l.request = t, l.id = t.id;
2953
2965
  let r = {
2954
2966
  method: t.method,
@@ -2967,7 +2979,7 @@ class us extends Ke {
2967
2979
  * 使用XmlHttpRequest发送请求
2968
2980
  */
2969
2981
  sendWithXmlHttpRequest(t) {
2970
- let s = new Ze();
2982
+ let s = new Ge();
2971
2983
  return s.request = t, s.id = t.id, new Promise(async (l, r) => {
2972
2984
  var a;
2973
2985
  await ((a = this.onRequest) == null ? void 0 : a.call(this, t));
@@ -2996,7 +3008,7 @@ class us extends Ke {
2996
3008
  });
2997
3009
  }
2998
3010
  }
2999
- class cs extends Ke {
3011
+ class us extends ze {
3000
3012
  constructor() {
3001
3013
  super(...arguments);
3002
3014
  //#region 属性
@@ -3040,19 +3052,19 @@ class cs extends Ke {
3040
3052
  hash_type: "sha256",
3041
3053
  timestamp: parseInt((s / 1e3).toString())
3042
3054
  };
3043
- X.isNullOrEmpty(t.body) || (l.jsonBody = t.body);
3044
- let r = W.deserialize(t.path);
3055
+ Q.isNullOrEmpty(t.body) || (l.jsonBody = t.body);
3056
+ let r = K.deserialize(t.path);
3045
3057
  for (let p in r)
3046
3058
  l[p] = r[p];
3047
- let i = W.getPath(t.path);
3048
- l = Fe.sort(l);
3049
- let a = Bt.signDictionary(l, !1), o = `POST${i}?${a}${this.appSecret}`, c = await this.hasher.compute(o);
3050
- l.sign = c.toLowerCase(), delete l.jsonBody, l = Fe.sort(l);
3051
- let h = W.serialize(l);
3052
- return t.url = W.concatUrl(this.baseUrl, i + "?" + h), await this.requester.send(t);
3059
+ let i = K.getPath(t.path);
3060
+ l = Ue.sort(l);
3061
+ let a = _t.signDictionary(l, !1), o = `POST${i}?${a}${this.appSecret}`, c = await this.hasher.compute(o);
3062
+ l.sign = c.toLowerCase(), delete l.jsonBody, l = Ue.sort(l);
3063
+ let h = K.serialize(l);
3064
+ return t.url = K.concatUrl(this.baseUrl, i + "?" + h), await this.requester.send(t);
3053
3065
  }
3054
3066
  }
3055
- class ds extends Ke {
3067
+ class cs extends ze {
3056
3068
  constructor() {
3057
3069
  super(...arguments);
3058
3070
  //#region 属性
@@ -3103,20 +3115,20 @@ class ds extends Ke {
3103
3115
  * 发送请求
3104
3116
  */
3105
3117
  async send(t) {
3106
- t.url = W.concatUrl(this.baseUrl, t.path), await this.onRequest(t);
3118
+ t.url = K.concatUrl(this.baseUrl, t.path), await this.onRequest(t);
3107
3119
  let s = await this.http.send(t);
3108
3120
  if (s.status != 200) {
3109
3121
  let r;
3110
- return s.status == 0 ? r = `网络异常,请检查接口访问是否正常: ${t.method} ${t.url}` : r = `接口加载异常: ${t.method}(${s.status ?? 0}) ${t.url}`, ve.warning(r), Promise.reject(r);
3122
+ return s.status == 0 ? r = `网络异常,请检查接口访问是否正常: ${t.method} ${t.url}` : r = `接口加载异常: ${t.method}(${s.status ?? 0}) ${t.url}`, be.warning(r), Promise.reject(r);
3111
3123
  }
3112
3124
  let l = s.data;
3113
- return l.code != "Ok" ? (ve.error(l.message), Promise.reject(l)) : s;
3125
+ return l.code != "Ok" ? (be.error(l.message), Promise.reject(l)) : s;
3114
3126
  }
3115
3127
  /**
3116
3128
  * 请求预处理
3117
3129
  */
3118
3130
  async beforeRequest(t) {
3119
- if (W.httpOrHttps(t.path))
3131
+ if (K.httpOrHttps(t.path))
3120
3132
  return Promise.resolve();
3121
3133
  let s;
3122
3134
  if (this.user == null)
@@ -3134,21 +3146,21 @@ class ds extends Ke {
3134
3146
  handleError(t) {
3135
3147
  if (t instanceof Object) {
3136
3148
  let s = t.message;
3137
- t.message == "Network Error" && (W.httpOrHttps(t.config.url) ? s = "接口网络错误: " + t.config.url : s = "接口网络错误: " + t.config.baseURL + t.config.url), ve.error(s);
3149
+ t.message == "Network Error" && (K.httpOrHttps(t.config.url) ? s = "接口网络错误: " + t.config.url : s = "接口网络错误: " + t.config.baseURL + t.config.url), be.error(s);
3138
3150
  } else
3139
- ve.error(t.message);
3151
+ be.error(t.message);
3140
3152
  return Promise.reject(t);
3141
3153
  }
3142
3154
  }
3143
- class hs extends F {
3155
+ class ds extends F {
3144
3156
  get instances() {
3145
- return [new us(), new cs(), new ds()];
3157
+ return [new os(), new us(), new cs()];
3146
3158
  }
3147
3159
  /**
3148
3160
  * 创建并开启
3149
3161
  */
3150
3162
  async createById(e, t = null) {
3151
- t == null && (t = new Rt());
3163
+ t == null && (t = new jt());
3152
3164
  let s = await super.createById(e, t), l = t.value;
3153
3165
  return await s.open(l.Conn), s;
3154
3166
  }
@@ -3166,12 +3178,12 @@ class hs extends F {
3166
3178
  return await this.createIfAbsent("Halo");
3167
3179
  }
3168
3180
  }
3169
- class ps {
3181
+ class hs {
3170
3182
  constructor() {
3171
3183
  n(this, "type");
3172
3184
  }
3173
3185
  }
3174
- class gs extends ps {
3186
+ class ps extends hs {
3175
3187
  constructor() {
3176
3188
  super(...arguments);
3177
3189
  n(this, "type", "Console");
@@ -3198,9 +3210,9 @@ class gs extends ps {
3198
3210
  console.warn(t);
3199
3211
  }
3200
3212
  }
3201
- class fs extends F {
3213
+ class gs extends F {
3202
3214
  get instances() {
3203
- return [new gs()];
3215
+ return [new ps()];
3204
3216
  }
3205
3217
  /**
3206
3218
  * 获取控制台消息提示类型
@@ -3209,12 +3221,12 @@ class fs extends F {
3209
3221
  return await super.create("Console");
3210
3222
  }
3211
3223
  }
3212
- class ms {
3224
+ class fs {
3213
3225
  constructor() {
3214
3226
  n(this, "type");
3215
3227
  }
3216
3228
  }
3217
- class ys extends ms {
3229
+ class ms extends fs {
3218
3230
  constructor() {
3219
3231
  super(...arguments);
3220
3232
  n(this, "type", "Default");
@@ -3225,7 +3237,7 @@ class ys extends ms {
3225
3237
  }
3226
3238
  async getSign(t, s, l, r, i) {
3227
3239
  let o = `${t}.${s}.${l ?? ""}.${r}.${i}`;
3228
- return (await ht.compute(o)).toUpperCase();
3240
+ return (await dt.compute(o)).toUpperCase();
3229
3241
  }
3230
3242
  loginUrl(t) {
3231
3243
  return "";
@@ -3233,9 +3245,9 @@ class ys extends ms {
3233
3245
  dispose() {
3234
3246
  }
3235
3247
  }
3236
- class vs extends F {
3248
+ class ys extends F {
3237
3249
  get instances() {
3238
- return [new ys()];
3250
+ return [new ms()];
3239
3251
  }
3240
3252
  /**
3241
3253
  * 获取指定签名实例
@@ -3245,7 +3257,7 @@ class vs extends F {
3245
3257
  return await s.open(null), s;
3246
3258
  }
3247
3259
  }
3248
- class bs {
3260
+ class vs {
3249
3261
  constructor() {
3250
3262
  //#region 属性
3251
3263
  n(this, "type", "Bearer");
@@ -3277,7 +3289,7 @@ class bs {
3277
3289
  await this.provider.deleteAsync("user"), await this.provider.deleteAsync("sso");
3278
3290
  }
3279
3291
  }
3280
- class ws {
3292
+ class bs {
3281
3293
  constructor() {
3282
3294
  //#region 属性
3283
3295
  n(this, "type", "Nio");
@@ -3311,7 +3323,7 @@ class ws {
3311
3323
  await this.provider.deleteAsync("user"), await this.provider.deleteAsync("sso");
3312
3324
  }
3313
3325
  }
3314
- class ut {
3326
+ class ot {
3315
3327
  constructor() {
3316
3328
  /**
3317
3329
  * 用户标识
@@ -3331,7 +3343,7 @@ class ut {
3331
3343
  n(this, "identity");
3332
3344
  }
3333
3345
  }
3334
- class xs {
3346
+ class ws {
3335
3347
  constructor() {
3336
3348
  n(this, "type", "WeiXin");
3337
3349
  }
@@ -3343,7 +3355,7 @@ class xs {
3343
3355
  return "";
3344
3356
  }
3345
3357
  async getUser() {
3346
- let e = new ut();
3358
+ let e = new ot();
3347
3359
  return e.userId = "", e;
3348
3360
  }
3349
3361
  getAuth(e, t, s, l) {
@@ -3353,12 +3365,12 @@ class xs {
3353
3365
  return Promise.resolve();
3354
3366
  }
3355
3367
  }
3356
- class Ss {
3368
+ class xs {
3357
3369
  constructor() {
3358
3370
  n(this, "type");
3359
3371
  }
3360
3372
  }
3361
- class ks extends Ss {
3373
+ class Ss extends xs {
3362
3374
  constructor() {
3363
3375
  super(...arguments);
3364
3376
  //#region 属性
@@ -3380,10 +3392,10 @@ class ks extends Ss {
3380
3392
  async getUser() {
3381
3393
  let t = await this.provider.getAsync("anonymous");
3382
3394
  if (!t) {
3383
- let l = X.getUniqueId();
3395
+ let l = Q.getUniqueId();
3384
3396
  await this.provider.saveAsync("anonymous", l), t = l;
3385
3397
  }
3386
- let s = new ut();
3398
+ let s = new ot();
3387
3399
  return s.identity = { token: t }, s;
3388
3400
  }
3389
3401
  getAuth(t, s, l, r) {
@@ -3393,7 +3405,7 @@ class ks extends Ss {
3393
3405
  await this.provider.deleteAsync("anonymous");
3394
3406
  }
3395
3407
  }
3396
- class Cs {
3408
+ class ks {
3397
3409
  constructor() {
3398
3410
  //#region 属性
3399
3411
  n(this, "type", "Secret");
@@ -3456,8 +3468,8 @@ class Es {
3456
3468
  let s = S.t_title(), l;
3457
3469
  s ? e ? t ? l = `${e}(${t}) - ${s}` : l = `${e} - ${s}` : l = s : t ? l = `${e}(${t})` : l = e, document.title = l;
3458
3470
  });
3459
- S = this, S.i18n = At({
3460
- locale: rt.getLanguage(),
3471
+ S = this, S.i18n = Lt({
3472
+ locale: lt.getLanguage(),
3461
3473
  //未载入配置前的语言
3462
3474
  messages: {},
3463
3475
  silentTranslationWarn: !0,
@@ -3586,7 +3598,7 @@ class Es {
3586
3598
  }
3587
3599
  //#endregion
3588
3600
  }
3589
- class Ts {
3601
+ class Cs {
3590
3602
  constructor() {
3591
3603
  //#region 属性
3592
3604
  /**
@@ -3641,7 +3653,7 @@ class Ts {
3641
3653
  let s = await this.getConfig(t.type);
3642
3654
  this[t.type] = s ?? t.content;
3643
3655
  }
3644
- N.removeClass(document.documentElement, de.theme), N.addClass(document.documentElement, this.theme), je.emit("theme", this.theme), N.addClass(document.documentElement, this.layout), this.setBackground(this.background), N.addStyle(document.documentElement, "font-family", this.font);
3656
+ N.removeClass(document.documentElement, de.theme), N.addClass(document.documentElement, this.theme), De.emit("theme", this.theme), N.addClass(document.documentElement, this.layout), this.setBackground(this.background), N.addStyle(document.documentElement, "font-family", this.font);
3645
3657
  }
3646
3658
  /**
3647
3659
  * 尝试添加架构
@@ -3703,11 +3715,11 @@ class Ts {
3703
3715
  * 获取当前语言
3704
3716
  */
3705
3717
  getLanguage() {
3706
- let e = rt.getLanguage();
3718
+ let e = lt.getLanguage();
3707
3719
  return this.language || e || "zh-cn";
3708
3720
  }
3709
3721
  }
3710
- class $s {
3722
+ class Ts {
3711
3723
  constructor() {
3712
3724
  /**
3713
3725
  * 环境变量
@@ -3718,10 +3730,10 @@ class $s {
3718
3730
  * 使用环境变量
3719
3731
  */
3720
3732
  useEnv(e) {
3721
- this.env = e, this.env.base = X.trimEnd(e.VITE_ROOT, "/");
3733
+ this.env = e, this.env.base = Q.trimEnd(e.VITE_ROOT, "/");
3722
3734
  }
3723
3735
  }
3724
- class Ls {
3736
+ class $s {
3725
3737
  constructor() {
3726
3738
  n(this, "logs", []);
3727
3739
  }
@@ -3745,7 +3757,7 @@ class Ls {
3745
3757
  this.logs = [];
3746
3758
  }
3747
3759
  }
3748
- class As {
3760
+ class Ls {
3749
3761
  constructor() {
3750
3762
  if (typeof window > "u")
3751
3763
  return;
@@ -3754,8 +3766,8 @@ class As {
3754
3766
  this[t] = e[t];
3755
3767
  }
3756
3768
  }
3757
- let Ie = new As();
3758
- class Is {
3769
+ let Ie = new Ls();
3770
+ class As {
3759
3771
  constructor() {
3760
3772
  //#region 属性
3761
3773
  n(this, "loaded", !1);
@@ -3829,10 +3841,10 @@ class Is {
3829
3841
  return L.get("/app/setting").then(({ data: e }) => (Object.keys(e).forEach((t) => {
3830
3842
  let s = e[t];
3831
3843
  s && (this[t] = s);
3832
- }), N.addClass(document.documentElement, this.theme, Ie.web.theme), je.emits({ theme: this.theme }), Promise.resolve(e))).catch((e) => Promise.reject(e));
3844
+ }), N.addClass(document.documentElement, this.theme, Ie.web.theme), De.emits({ theme: this.theme }), Promise.resolve(e))).catch((e) => Promise.reject(e));
3833
3845
  }
3834
3846
  }
3835
- class Os {
3847
+ class Is {
3836
3848
  constructor() {
3837
3849
  //#region 属性
3838
3850
  /**
@@ -3860,9 +3872,9 @@ class Os {
3860
3872
  if (!Ie.api.ws)
3861
3873
  return;
3862
3874
  if (this.socket == null || this.reconnect) {
3863
- let t = Ie.api.ws, s = new ot();
3875
+ let t = Ie.api.ws, s = new at();
3864
3876
  s.path = t, s.method = "GET", await L.onRequest(s);
3865
- let l = s.getHeader("Authorization"), r = W.encode(l), i = `${t}?authorization=${r}`;
3877
+ let l = s.getHeader("Authorization"), r = K.encode(l), i = `${t}?authorization=${r}`;
3866
3878
  this.socket = new WebSocket(i);
3867
3879
  }
3868
3880
  let e;
@@ -3895,7 +3907,7 @@ class Os {
3895
3907
  this.socket.close(), this.reconnect = !1, this.connected = null, this.handler = null;
3896
3908
  }
3897
3909
  }
3898
- class Ds {
3910
+ class Os {
3899
3911
  constructor() {
3900
3912
  //#region 属性
3901
3913
  /**
@@ -3930,35 +3942,26 @@ class Ds {
3930
3942
  * 登录后,获取用户信息
3931
3943
  */
3932
3944
  async loadInfo() {
3933
- return L.get("/user/info").then(async ({ data: e }) => {
3934
- await q.init(e.configs), this.user = e, this.debugger = e.debugger;
3935
- let t = q.language == "en" ? null : q.language, s = {
3936
- paths: { vs: we.getMonacoPath() },
3937
- //加载monaco cdn压缩资源包,可以大幅减少本地请求数量
3938
- "vs/nls": { availableLanguages: { "*": t } }
3939
- //设置编辑器默认语言
3940
- };
3941
- return Oe.config(s), Promise.resolve(e);
3942
- });
3945
+ return L.get("/user/info").then(async ({ data: e }) => (await Y.init(e.configs), this.user = e, this.debugger = e.debugger, Promise.resolve(e)));
3943
3946
  }
3944
3947
  /**
3945
3948
  * 未登录,获取匿名登录信息
3946
3949
  */
3947
3950
  async getAnonymous() {
3948
- await q.init([]);
3951
+ await Y.init([]);
3949
3952
  }
3950
3953
  /**
3951
3954
  * 根据路径获取路由
3952
3955
  */
3953
3956
  getMenuByUrl(e) {
3954
- let t = W.getPath(e);
3957
+ let t = K.getPath(e);
3955
3958
  return this.menusFlat.find((l) => l.url.split("?")[0] == t);
3956
3959
  }
3957
3960
  /**
3958
3961
  * 加载服务端路由
3959
3962
  */
3960
3963
  async loadMenus() {
3961
- return L.get("/user/menu").then(({ data: e }) => (this.menus = e, this.menusFlat = Re.getFlat(e, "children"), Promise.resolve(e)));
3964
+ return L.get("/user/menu").then(({ data: e }) => (this.menus = e, this.menusFlat = je.getFlat(e, "children"), Promise.resolve(e)));
3962
3965
  }
3963
3966
  /**
3964
3967
  * 退出登录
@@ -3967,11 +3970,11 @@ class Ds {
3967
3970
  return L.post("/user/logout").then(async () => {
3968
3971
  this.user = null, this.menus = null;
3969
3972
  let e = await this.getSso();
3970
- return await (await $.sso.create(e.type)).logout(), _s.disconnect(), Promise.resolve();
3973
+ return await (await $.sso.create(e.type)).logout(), Rs.disconnect(), Promise.resolve();
3971
3974
  });
3972
3975
  }
3973
3976
  }
3974
- class js {
3977
+ class Ds {
3975
3978
  constructor() {
3976
3979
  //#region 属性
3977
3980
  /**
@@ -4021,7 +4024,7 @@ class js {
4021
4024
  });
4022
4025
  }
4023
4026
  }
4024
- class er extends F {
4027
+ class Zl extends F {
4025
4028
  get instances() {
4026
4029
  return [];
4027
4030
  }
@@ -4035,26 +4038,26 @@ class er extends F {
4035
4038
  return null;
4036
4039
  }
4037
4040
  }
4038
- let q = new Ts(), tr = He(new js()), sr = new $s(), G = new Es(), Rs = new Ls(), de = He(new Is()), _s = new Os(), Bs = new Ds(), Ps = async (u) => {
4039
- u.i18nSvc != null && (G = u.i18nSvc, Us = G.t, Fs = G.t_exists, Ms = G.t_sys, Ns = G.t_enum, qs = G.t_field, Vs = G.t_field_choose_placeholder, zs = G.t_field_placeholder, Ks = G.t_table, Ws = G.t_module, Js = G.t_menu);
4041
+ let Y = new Cs(), Hl = Ze(new Ds()), er = new Ts(), G = new Es(), js = new $s(), de = Ze(new As()), Rs = new Is(), _s = new Os(), Bs = async (u) => {
4042
+ u.i18nSvc != null && (G = u.i18nSvc, Ps = G.t, Us = G.t_exists, Fs = G.t_sys, Ms = G.t_enum, Ns = G.t_field, qs = G.t_field_choose_placeholder, Vs = G.t_field_placeholder, zs = G.t_table, Ks = G.t_module, Ws = G.t_menu);
4040
4043
  }, {
4041
- t: Us,
4042
- t_exists: Fs,
4043
- t_sys: Ms,
4044
- t_enum: Ns,
4045
- t_field: qs,
4046
- t_field_choose_placeholder: Vs,
4047
- t_field_placeholder: zs,
4048
- t_table: Ks,
4049
- t_module: Ws,
4050
- t_menu: Js
4044
+ t: Ps,
4045
+ t_exists: Us,
4046
+ t_sys: Fs,
4047
+ t_enum: Ms,
4048
+ t_field: Ns,
4049
+ t_field_choose_placeholder: qs,
4050
+ t_field_placeholder: Vs,
4051
+ t_table: zs,
4052
+ t_module: Ks,
4053
+ t_menu: Ws
4051
4054
  } = G;
4052
- class Xs extends F {
4055
+ class Qs extends F {
4053
4056
  /**
4054
4057
  * 获取实例
4055
4058
  */
4056
4059
  get instances() {
4057
- return [new Cs(), new ws(), new xs(), new bs(), new ks()];
4060
+ return [new ks(), new bs(), new ws(), new vs(), new Ss()];
4058
4061
  }
4059
4062
  /**
4060
4063
  * 获取指定SSO实例
@@ -4064,12 +4067,13 @@ class Xs extends F {
4064
4067
  return await r.open(l), r;
4065
4068
  }
4066
4069
  }
4067
- class Qs {
4070
+ class Js {
4068
4071
  constructor() {
4069
4072
  n(this, "type");
4073
+ n(this, "taskLimit");
4070
4074
  }
4071
4075
  }
4072
- class Ys extends Qs {
4076
+ class Xs extends Js {
4073
4077
  constructor() {
4074
4078
  super(...arguments);
4075
4079
  //#region 属性
@@ -4079,7 +4083,7 @@ class Ys extends Qs {
4079
4083
  * 待执行的任务队列
4080
4084
  */
4081
4085
  n(this, "tasks", []);
4082
- n(this, "taskLimit");
4086
+ n(this, "taskLimit", 1);
4083
4087
  n(this, "taskExecuting", 0);
4084
4088
  n(this, "taskResolves", []);
4085
4089
  }
@@ -4095,9 +4099,9 @@ class Ys extends Qs {
4095
4099
  /**
4096
4100
  * 相同时间的并发数控制,不是1s内的并发数控制
4097
4101
  */
4098
- concurrent(t, s) {
4099
- return this.taskLimit = s, this.tasks.push(t), new Promise((l, r) => {
4100
- this.taskResolves.push(l), this.run();
4102
+ concurrent(t) {
4103
+ return this.tasks.push(t), new Promise((s, l) => {
4104
+ this.taskResolves.push(s), this.run();
4101
4105
  });
4102
4106
  }
4103
4107
  /**
@@ -4107,12 +4111,12 @@ class Ys extends Qs {
4107
4111
  if (this.taskExecuting >= this.taskLimit)
4108
4112
  return;
4109
4113
  if (this.tasks.length == 0) {
4110
- for (let s of this.taskResolves)
4111
- s(null);
4114
+ for (let l of this.taskResolves)
4115
+ l(null);
4112
4116
  return;
4113
4117
  }
4114
- let t = this.tasks.shift();
4115
- this.taskExecuting++, t.then(() => {
4118
+ let s = this.tasks.shift()();
4119
+ this.taskExecuting++, s.then(() => {
4116
4120
  this.taskExecuting--, this.run();
4117
4121
  });
4118
4122
  }
@@ -4123,42 +4127,42 @@ class Ys extends Qs {
4123
4127
  clearInterval(this.intervalTimeout);
4124
4128
  }
4125
4129
  }
4126
- class Gs extends F {
4130
+ class Ys extends F {
4127
4131
  get instances() {
4128
- return [new Ys()];
4132
+ return [new Xs()];
4129
4133
  }
4130
4134
  }
4131
- class Zs {
4135
+ class Gs {
4132
4136
  constructor() {
4133
4137
  n(this, "type");
4134
4138
  }
4135
4139
  }
4136
- class Hs extends Zs {
4140
+ class Zs extends Gs {
4137
4141
  constructor() {
4138
4142
  super(...arguments);
4139
4143
  n(this, "type", "Liquid");
4140
4144
  }
4141
4145
  async render(t, s) {
4142
- let l = new It(), r = l.parse(t);
4146
+ let l = new At(), r = l.parse(t);
4143
4147
  return await l.render(r, s);
4144
4148
  }
4145
4149
  }
4146
- class el extends F {
4150
+ class Hs extends F {
4147
4151
  get instances() {
4148
- return [new Hs()];
4152
+ return [new Zs()];
4149
4153
  }
4150
4154
  }
4151
- class lr extends F {
4155
+ class tr extends F {
4152
4156
  get instances() {
4153
4157
  return [];
4154
4158
  }
4155
4159
  }
4156
- class ct {
4160
+ class ut {
4157
4161
  constructor() {
4158
4162
  n(this, "type");
4159
4163
  }
4160
4164
  }
4161
- class tl extends ct {
4165
+ class el extends ut {
4162
4166
  constructor() {
4163
4167
  super(...arguments);
4164
4168
  n(this, "type", "Tencent");
@@ -4179,7 +4183,7 @@ class tl extends ct {
4179
4183
  startRecord() {
4180
4184
  }
4181
4185
  }
4182
- class sl extends ct {
4186
+ class tl extends ut {
4183
4187
  constructor() {
4184
4188
  super(...arguments);
4185
4189
  n(this, "type", "Default");
@@ -4193,12 +4197,12 @@ class sl extends ct {
4193
4197
  return "";
4194
4198
  }
4195
4199
  }
4196
- class rr extends F {
4200
+ class sr extends F {
4197
4201
  get instances() {
4198
- return [new sl(), new tl()];
4202
+ return [new tl(), new el()];
4199
4203
  }
4200
4204
  }
4201
- class dt {
4205
+ class ct {
4202
4206
  /**
4203
4207
  * 并缓存工厂实例
4204
4208
  */
@@ -4212,85 +4216,85 @@ class dt {
4212
4216
  * Builder工厂
4213
4217
  */
4214
4218
  static get builder() {
4215
- return this.create(Vt);
4219
+ return this.create(qt);
4216
4220
  }
4217
4221
  /**
4218
4222
  * CDN工厂
4219
4223
  */
4220
4224
  static get cdn() {
4221
- return this.create(Wt);
4225
+ return this.create(Kt);
4222
4226
  }
4223
4227
  /**
4224
4228
  * 编码器工厂
4225
4229
  */
4226
4230
  static get encoder() {
4227
- return this.create(Qt);
4231
+ return this.create(Jt);
4228
4232
  }
4229
4233
  /**
4230
4234
  * Excel工厂
4231
4235
  */
4232
4236
  static get excel() {
4233
- return this.create(Zt);
4237
+ return this.create(Gt);
4234
4238
  }
4235
4239
  /**
4236
4240
  * Explainer工厂
4237
4241
  */
4238
4242
  static get explainer() {
4239
- return this.create(ts);
4243
+ return this.create(es);
4240
4244
  }
4241
4245
  /**
4242
4246
  * 特征工厂
4243
4247
  */
4244
4248
  static get feature() {
4245
- return this.create(ns);
4249
+ return this.create(rs);
4246
4250
  }
4247
4251
  /**
4248
4252
  * 哈希工厂
4249
4253
  */
4250
4254
  static get hasher() {
4251
- return this.create(os);
4255
+ return this.create(as);
4252
4256
  }
4253
4257
  /**
4254
4258
  * Http请求工厂
4255
4259
  */
4256
4260
  static get http() {
4257
- return this.create(hs);
4261
+ return this.create(ds);
4258
4262
  }
4259
4263
  /**
4260
4264
  * 消息提示请求工厂
4261
4265
  */
4262
4266
  static get messenger() {
4263
- return this.create(fs);
4267
+ return this.create(gs);
4264
4268
  }
4265
4269
  /**
4266
4270
  * 提供程序工厂
4267
4271
  */
4268
4272
  static get provider() {
4269
- return this.create(Nt);
4273
+ return this.create(Mt);
4270
4274
  }
4271
4275
  /**
4272
4276
  * 签名工厂
4273
4277
  */
4274
4278
  static get signer() {
4275
- return this.create(vs);
4279
+ return this.create(ys);
4276
4280
  }
4277
4281
  /**
4278
4282
  * SSO工厂
4279
4283
  */
4280
4284
  static get sso() {
4281
- return this.create(Xs);
4285
+ return this.create(Qs);
4282
4286
  }
4283
4287
  /**
4284
4288
  * Task工厂
4285
4289
  */
4286
4290
  static get task() {
4287
- return this.create(Gs);
4291
+ return this.create(Ys);
4288
4292
  }
4289
4293
  /**
4290
4294
  * 模板工厂
4291
4295
  */
4292
4296
  static get template() {
4293
- return this.create(el);
4297
+ return this.create(Hs);
4294
4298
  }
4295
4299
  //#endregion
4296
4300
  }
@@ -4298,12 +4302,12 @@ class dt {
4298
4302
  /**
4299
4303
  * 工厂缓存
4300
4304
  */
4301
- n(dt, "mappings", {});
4302
- const $ = dt;
4303
- let ll = {}, we = {}, L = {}, ht = {}, rl = {}, ve = {}, nl = async (u) => {
4304
- we = await $.cdn.createIfAbsent("Default", u.cdn), ll = await $.encoder.getBase64(), L = await $.http.getHalo(), ht = await $.hasher.getMd5(), rl = await $.provider.getStorage(), u.messenger == null ? ve = await $.messenger.getConsole() : ve = u.messenger;
4305
+ n(ct, "mappings", {});
4306
+ const $ = ct;
4307
+ let sl = {}, ye = {}, L = {}, dt = {}, ll = {}, be = {}, rl = async (u) => {
4308
+ ye = await $.cdn.createIfAbsent("Default", u.cdn), sl = await $.encoder.getBase64(), L = await $.http.getHalo(), dt = await $.hasher.getMd5(), ll = await $.provider.getStorage(), u.messenger == null ? be = await $.messenger.getConsole() : be = u.messenger;
4305
4309
  };
4306
- class il {
4310
+ class nl {
4307
4311
  constructor() {
4308
4312
  /**
4309
4313
  * 消息发送对象
@@ -4323,10 +4327,10 @@ class il {
4323
4327
  n(this, "cdn", "Local");
4324
4328
  }
4325
4329
  }
4326
- const al = { class: "ha-empty" }, ol = { class: "empty-message" }, ul = {
4330
+ const il = { class: "ha-empty" }, al = { class: "empty-message" }, ol = {
4327
4331
  key: 0,
4328
4332
  class: "empty-content"
4329
- }, nr = /* @__PURE__ */ Q({
4333
+ }, lr = /* @__PURE__ */ J({
4330
4334
  __name: "Empty",
4331
4335
  props: {
4332
4336
  message: { type: String, default: "暂无数据" },
@@ -4334,15 +4338,15 @@ const al = { class: "ha-empty" }, ol = { class: "empty-message" }, ul = {
4334
4338
  },
4335
4339
  setup(u) {
4336
4340
  let e = u, { message: t, hasData: s } = re(e);
4337
- return (l, r) => (R(), B("div", al, [
4338
- D("div", ol, pe(m(t)), 1),
4339
- m(s) ? (R(), B("div", ul, [
4341
+ return (l, r) => (R(), B("div", il, [
4342
+ D("div", al, pe(m(t)), 1),
4343
+ m(s) ? (R(), B("div", ol, [
4340
4344
  fe(l.$slots, "default")
4341
- ])) : et("", !0)
4345
+ ])) : He("", !0)
4342
4346
  ]));
4343
4347
  }
4344
4348
  });
4345
- class pt {
4349
+ class ht {
4346
4350
  constructor(e, t) {
4347
4351
  /**
4348
4352
  * 距窗口左边的距离
@@ -4355,7 +4359,7 @@ class pt {
4355
4359
  this.x = e, this.y = t;
4356
4360
  }
4357
4361
  }
4358
- class cl extends pt {
4362
+ class ul extends ht {
4359
4363
  constructor() {
4360
4364
  super(...arguments);
4361
4365
  /**
@@ -4364,7 +4368,7 @@ class cl extends pt {
4364
4368
  n(this, "affix");
4365
4369
  }
4366
4370
  }
4367
- class ir extends pt {
4371
+ class rr extends ht {
4368
4372
  constructor(t, s, l, r) {
4369
4373
  super(t, s);
4370
4374
  n(this, "width");
@@ -4372,7 +4376,7 @@ class ir extends pt {
4372
4376
  this.width = l, this.height = r;
4373
4377
  }
4374
4378
  }
4375
- class gt {
4379
+ class pt {
4376
4380
  constructor() {
4377
4381
  //#region 大小调整
4378
4382
  n(this, "resizeObserver", null);
@@ -4461,7 +4465,7 @@ class gt {
4461
4465
  return;
4462
4466
  this.dragElement = e;
4463
4467
  let s = !1, l = (a) => (s = !0, a.preventDefault(), t.init(a)), r = (a) => {
4464
- let o = new cl(), c = t.range;
4468
+ let o = new ul(), c = t.range;
4465
4469
  if (c == null)
4466
4470
  o.x = a.clientX, o.y = a.clientY;
4467
4471
  else {
@@ -4524,7 +4528,7 @@ class gt {
4524
4528
  }
4525
4529
  //#endregion
4526
4530
  }
4527
- class ar {
4531
+ class nr {
4528
4532
  constructor() {
4529
4533
  n(this, "events", {});
4530
4534
  /**
@@ -4646,14 +4650,14 @@ class ar {
4646
4650
  clearTimeout(this.timer);
4647
4651
  }
4648
4652
  }
4649
- class or {
4653
+ class ir {
4650
4654
  /**
4651
4655
  * 对比数据变动
4652
4656
  */
4653
4657
  delta(e, t, s, l) {
4654
4658
  }
4655
4659
  }
4656
- class ur {
4660
+ class ar {
4657
4661
  /**
4658
4662
  * 初始化,并绑定自动关闭上下文菜单事件
4659
4663
  */
@@ -4692,11 +4696,11 @@ class ur {
4692
4696
  }
4693
4697
  }
4694
4698
  }
4695
- const dl = /* @__PURE__ */ Q({
4699
+ const cl = /* @__PURE__ */ J({
4696
4700
  __name: "Fill",
4697
4701
  emits: ["resize"],
4698
4702
  setup(u, { emit: e }) {
4699
- let t = e, s = j(), l = j(), r = j(), i = new gt(), a = () => {
4703
+ let t = e, s = j(), l = j(), r = j(), i = new pt(), a = () => {
4700
4704
  let h = N.siblings(s.value);
4701
4705
  r.value = N.getHeight(h);
4702
4706
  }, o = () => {
@@ -4704,9 +4708,9 @@ const dl = /* @__PURE__ */ Q({
4704
4708
  }, c = () => {
4705
4709
  o();
4706
4710
  };
4707
- return Le(() => {
4711
+ return we(() => {
4708
4712
  a(), o(), i.resize(s.value, c);
4709
- }), be(() => {
4713
+ }), xe(() => {
4710
4714
  i.dispose();
4711
4715
  }), (h, d) => (R(), B("div", {
4712
4716
  class: "ha-fill",
@@ -4717,25 +4721,25 @@ const dl = /* @__PURE__ */ Q({
4717
4721
  fe(h.$slots, "default")
4718
4722
  ], 4));
4719
4723
  }
4720
- }), hl = /* @__PURE__ */ Q({
4724
+ }), dl = /* @__PURE__ */ J({
4721
4725
  __name: "Scroller",
4722
4726
  props: {
4723
4727
  options: {}
4724
4728
  },
4725
4729
  emits: ["scroll"],
4726
4730
  setup(u, { expose: e, emit: t }) {
4727
- let s = t, l = u, { options: r } = re(l), i = j(), a = j(), o = j(), c = j(), h = j(!1), d = null, p = null, g = new gt(), w = j({ top: null, height: null }), V = (y) => {
4731
+ let s = t, l = u, { options: r } = re(l), i = j(), a = j(), o = j(), c = j(), h = j(!1), d = null, p = null, g = new pt(), w = j({ top: null, height: null }), q = (y) => {
4728
4732
  if (p == 0)
4729
4733
  return 0;
4730
4734
  let v = p - d;
4731
4735
  return y / v;
4732
- }, Y = (y) => {
4736
+ }, X = (y) => {
4733
4737
  let v = d - w.value.height;
4734
4738
  return y / v;
4735
4739
  }, ae = (y) => {
4736
- let v = y.target, _ = V(v.scrollTop);
4740
+ let v = y.target, _ = q(v.scrollTop);
4737
4741
  I(_), s("scroll", v);
4738
- }, k = () => {
4742
+ }, T = () => {
4739
4743
  if (p == 0)
4740
4744
  return 80;
4741
4745
  let y = d / p;
@@ -4744,44 +4748,44 @@ const dl = /* @__PURE__ */ Q({
4744
4748
  let v = d * y;
4745
4749
  return ie.between(v, 80, 500);
4746
4750
  }, f = (y, v) => {
4747
- let _ = V(y), z = (d - v) * _;
4748
- return ie.between(z, 0, d - v);
4749
- }, C = (y) => {
4750
- let v = k();
4751
+ let _ = q(y), V = (d - v) * _;
4752
+ return ie.between(V, 0, d - v);
4753
+ }, k = (y) => {
4754
+ let v = T();
4751
4755
  return { top: f(y, v), height: v };
4752
4756
  }, b = (y) => {
4753
4757
  }, A = (y) => {
4754
- let v = V(y);
4758
+ let v = q(y);
4755
4759
  I(v);
4756
4760
  }, I = (y) => {
4757
4761
  let v = ie.between(y, 0, 1), _ = d - w.value.height;
4758
4762
  w.value.top = _ * v;
4759
- let ye = (p - d) * v;
4760
- r.value.scrollTop = ye, a.value.scrollTop != ye && (a.value.scrollTop = ye);
4763
+ let ve = (p - d) * v;
4764
+ r.value.scrollTop = ve, a.value.scrollTop != ve && (a.value.scrollTop = ve);
4761
4765
  }, P = () => {
4762
4766
  let y = r.value.scrollTop;
4763
- w.value = C(y), A(y);
4767
+ w.value = k(y), A(y);
4764
4768
  }, ee = (y) => {
4765
4769
  d = N.getHeight(a.value), p = a.value.scrollHeight;
4766
- let v = k();
4770
+ let v = T();
4767
4771
  w.value.height = v, w.value.top = f(r.value.scrollTop, v);
4768
4772
  }, oe = (y) => {
4769
4773
  let v = y.target;
4770
4774
  return parseInt(v.style.top);
4771
- }, ne = (y, v, _, z) => {
4772
- let ye = y.y - v.y, ft = _ + ye, mt = Y(ft);
4773
- I(mt);
4774
- }, xe = (y) => {
4775
- h.value = !0;
4775
+ }, ne = (y, v, _, V) => {
4776
+ let ve = y.y - v.y, gt = _ + ve, ft = X(gt);
4777
+ I(ft);
4776
4778
  }, Se = (y) => {
4779
+ h.value = !0;
4780
+ }, ke = (y) => {
4777
4781
  h.value = !1;
4778
4782
  };
4779
- return Le(() => {
4780
- P(), g.scroll(a.value, ae), g.drag(c.value, { init: oe, handler: ne }), g.observe(a.value, ee), g.mouseDown(c.value, xe, Se);
4781
- }), be(() => {
4783
+ return we(() => {
4784
+ P(), g.scroll(a.value, ae), g.drag(c.value, { init: oe, handler: ne }), g.observe(a.value, ee), g.mouseDown(c.value, Se, ke);
4785
+ }), xe(() => {
4782
4786
  g.dispose();
4783
4787
  }), H(() => r.value.scrollTop, (y, v) => {
4784
- let _ = V(y);
4788
+ let _ = q(y);
4785
4789
  I(_);
4786
4790
  }), e({ scrollTo: A, update: P }), (y, v) => (R(), B("div", {
4787
4791
  ref_key: "scrollerRef",
@@ -4811,7 +4815,7 @@ const dl = /* @__PURE__ */ Q({
4811
4815
  ], 512)
4812
4816
  ], 2));
4813
4817
  }
4814
- }), cr = /* @__PURE__ */ Q({
4818
+ }), or = /* @__PURE__ */ J({
4815
4819
  __name: "Timer",
4816
4820
  emits: ["change"],
4817
4821
  setup(u, { expose: e, emit: t }) {
@@ -4826,14 +4830,14 @@ const dl = /* @__PURE__ */ Q({
4826
4830
  }, d = () => {
4827
4831
  clearInterval(i), r.value = l;
4828
4832
  };
4829
- return be(() => {
4833
+ return xe(() => {
4830
4834
  clearInterval(i);
4831
4835
  }), e({ restart: c, start: o, stop: h, reset: d }), (p, g) => (R(), B("span", null, [
4832
4836
  fe(p.$slots, "default"),
4833
- wt(pe(m(le).format(m(r), "HH:mm:ss SSS")), 1)
4837
+ bt(pe(m(le).format(m(r), "HH:mm:ss SSS")), 1)
4834
4838
  ]));
4835
4839
  }
4836
- }), dr = /* @__PURE__ */ Q({
4840
+ }), ur = /* @__PURE__ */ J({
4837
4841
  __name: "Code",
4838
4842
  props: {
4839
4843
  config: { default: {} },
@@ -4843,16 +4847,16 @@ const dl = /* @__PURE__ */ Q({
4843
4847
  emits: ["mounted", "change", "scroll", "update:modelValue"],
4844
4848
  setup(u, { expose: e, emit: t }) {
4845
4849
  let s = t, l = u, { config: r, border: i, modelValue: a } = re(l), o = null, c = null, h = null, d = j(), p = (f) => f == "en" ? null : f, g = (f) => f == "default" ? null : "vs-dark", w = (f) => {
4846
- if (q.editor.completions[f])
4850
+ if (Y.editor.completions[f])
4847
4851
  return;
4848
- let C = o.languages.getLanguages().find((A) => A.id == f);
4849
- if (!C)
4852
+ let k = o.languages.getLanguages().find((A) => A.id == f);
4853
+ if (!k)
4850
4854
  return;
4851
- let b = C.loader;
4855
+ let b = k.loader;
4852
4856
  b && b().then((A) => {
4853
- q.editor.completions[f] || (V(A, f), q.editor.completions[f] = !0);
4857
+ Y.editor.completions[f] || (q(A, f), Y.editor.completions[f] = !0);
4854
4858
  });
4855
- }, V = (f, C) => o.languages.registerCompletionItemProvider(C, {
4859
+ }, q = (f, k) => o.languages.registerCompletionItemProvider(k, {
4856
4860
  provideCompletionItems: (A, I) => {
4857
4861
  let P = A.getWordUntilPosition(I), ee = {
4858
4862
  startLineNumber: I.lineNumber,
@@ -4861,35 +4865,35 @@ const dl = /* @__PURE__ */ Q({
4861
4865
  endColumn: P.endColumn
4862
4866
  }, oe = [];
4863
4867
  const ne = ["builtinFunctions", "keywords", "operators"];
4864
- for (let xe = 0; xe < ne.length; xe++) {
4865
- const Se = ne[xe];
4866
- let y = f.language[Se];
4868
+ for (let Se = 0; Se < ne.length; Se++) {
4869
+ const ke = ne[Se];
4870
+ let y = f.language[ke];
4867
4871
  y && y.forEach((v) => {
4868
- let _ = v.toLowerCase(), z = {
4872
+ let _ = v.toLowerCase(), V = {
4869
4873
  label: _,
4870
4874
  kind: null,
4871
4875
  insertText: _,
4872
4876
  range: ee,
4873
4877
  documentation: v
4874
4878
  };
4875
- Se == "keywords" ? (z.kind = o.languages.CompletionItemKind.Keyword, z.detail = "关键词") : Se == "operators" ? (z.kind = o.languages.CompletionItemKind.Operator, z.insertText += " ", z.detail = "操作符") : (z.kind = o.languages.CompletionItemKind.Function, z.insertText += "()", z.detail = "函数"), oe.push(z);
4879
+ ke == "keywords" ? (V.kind = o.languages.CompletionItemKind.Keyword, V.detail = "关键词") : ke == "operators" ? (V.kind = o.languages.CompletionItemKind.Operator, V.insertText += " ", V.detail = "操作符") : (V.kind = o.languages.CompletionItemKind.Function, V.insertText += "()", V.detail = "函数"), oe.push(V);
4876
4880
  });
4877
4881
  }
4878
4882
  return { suggestions: oe };
4879
4883
  }
4880
- }), Y = () => {
4884
+ }), X = () => {
4881
4885
  let f = null;
4882
- r.value.schema && (f = r.value.category + "/" + X.getUniqueId(), q.tryAddSchema(f, r.value.category, r.value.schema));
4883
- let C = {
4886
+ r.value.schema && (f = r.value.category + "/" + Q.getUniqueId(), Y.tryAddSchema(f, r.value.category, r.value.schema));
4887
+ let k = {
4884
4888
  validate: !0,
4885
4889
  allowComments: !0,
4886
4890
  //允许配置注释
4887
4891
  //保证架构配置在当前控件生效,所以需要绑定匹配哪个文件时使用架构
4888
- schemas: te.clone(q.editor.schemas),
4892
+ schemas: te.clone(Y.editor.schemas),
4889
4893
  trailingCommas: "ignore"
4890
4894
  //允许末尾逗号
4891
4895
  };
4892
- o.languages.json.jsonDefaults.setDiagnosticsOptions(C), w(r.value.language);
4896
+ o.languages.json.jsonDefaults.setDiagnosticsOptions(k), w(r.value.language);
4893
4897
  let b = f ? o.Uri.parse(f) : null;
4894
4898
  h = o.editor.createModel(a.value, r.value.language, b);
4895
4899
  let A = {
@@ -4903,7 +4907,7 @@ const dl = /* @__PURE__ */ Q({
4903
4907
  //默认已启用代码图
4904
4908
  scrollbar: { verticalScrollbarSize: 0 },
4905
4909
  //关闭最右侧垂直滚动条
4906
- theme: g(q.theme),
4910
+ theme: g(Y.theme),
4907
4911
  automaticLayout: !0,
4908
4912
  //根据父元素自动布局
4909
4913
  model: h
@@ -4926,31 +4930,31 @@ const dl = /* @__PURE__ */ Q({
4926
4930
  s("update:modelValue", ee), s("change", ee);
4927
4931
  });
4928
4932
  };
4929
- Le(async () => {
4930
- o = await Oe.init(), d.value && (Y(), s("mounted", o, c));
4933
+ we(async () => {
4934
+ o = await ye.getMonaco(), d.value && (X(), s("mounted", o, c));
4931
4935
  });
4932
4936
  let ae = () => {
4933
4937
  c == null || c.layout();
4934
- }, k = () => c;
4935
- return be(() => {
4938
+ }, T = () => c;
4939
+ return xe(() => {
4936
4940
  h == null || h.dispose(), c == null || c.dispose();
4937
- }), H(() => q.theme, (f, C) => {
4941
+ }), H(() => Y.theme, (f, k) => {
4938
4942
  let b = g(f);
4939
4943
  o.editor.setTheme(b);
4940
- }), H(() => q.language, (f, C) => {
4941
- Oe.config({ "vs/nls": { availableLanguages: { "*": p(f) } } });
4942
- }), H(() => a.value, (f, C) => {
4944
+ }), H(() => Y.language, (f, k) => {
4945
+ loader.config({ "vs/nls": { availableLanguages: { "*": p(f) } } });
4946
+ }), H(() => a.value, (f, k) => {
4943
4947
  if (!c)
4944
4948
  return;
4945
4949
  let b = c.getValue();
4946
4950
  f != b && c.setValue(f ?? "");
4947
- }), H(() => r.value.language, (f, C) => {
4951
+ }), H(() => r.value.language, (f, k) => {
4948
4952
  if (!c)
4949
4953
  return;
4950
4954
  let b = c.getModel();
4951
4955
  o.editor.setModelLanguage(b, f), w(f);
4952
- }), e({ layout: ae, getEditor: k }), (f, C) => (R(), tt(dl, null, {
4953
- default: Ve(() => [
4956
+ }), e({ layout: ae, getEditor: T }), (f, k) => (R(), et(cl, null, {
4957
+ default: qe(() => [
4954
4958
  D("div", {
4955
4959
  ref_key: "monacoEditorRef",
4956
4960
  ref: d,
@@ -4960,7 +4964,7 @@ const dl = /* @__PURE__ */ Q({
4960
4964
  _: 1
4961
4965
  }));
4962
4966
  }
4963
- }), hr = /* @__PURE__ */ Q({
4967
+ }), cr = /* @__PURE__ */ J({
4964
4968
  __name: "Compare",
4965
4969
  props: {
4966
4970
  inline: { type: Boolean, default: !1 },
@@ -4970,67 +4974,67 @@ const dl = /* @__PURE__ */ Q({
4970
4974
  },
4971
4975
  emits: ["update:modelValue", "update:original", "change"],
4972
4976
  setup(u, { emit: e }) {
4973
- let t = e, s = u, { inline: l, language: r, original: i, modelValue: a } = re(s), o = null, c = null, h = null, d = null, p = null, g = null, w = j(), V = j(), Y = (k) => {
4974
- c = k.editor.createModel(i.value, r.value), h = k.editor.createModel(a.value, r.value), o = k.editor.createDiffEditor(w.value, {
4977
+ let t = e, s = u, { inline: l, language: r, original: i, modelValue: a } = re(s), o = null, c = null, h = null, d = null, p = null, g = null, w = j(), q = j(), X = (T) => {
4978
+ c = T.editor.createModel(i.value, r.value), h = T.editor.createModel(a.value, r.value), o = T.editor.createDiffEditor(w.value, {
4975
4979
  originalEditable: !0,
4976
4980
  automaticLayout: !0,
4977
4981
  renderSideBySide: !l.value,
4978
4982
  //是否启用行内模式
4979
- theme: ae(q.theme)
4983
+ theme: ae(Y.theme)
4980
4984
  }), o.setModel({ original: c, modified: h }), d = o.getOriginalEditor(), d.onDidChangeModelContent((f) => {
4981
- let C = d.getValue();
4982
- t("update:original", C), t("change", C);
4985
+ let k = d.getValue();
4986
+ t("update:original", k), t("change", k);
4983
4987
  }), p = o.getModifiedEditor(), p.onDidChangeModelContent((f) => {
4984
- let C = p.getValue();
4985
- t("update:modelValue", C);
4988
+ let k = p.getValue();
4989
+ t("update:modelValue", k);
4986
4990
  });
4987
- }, ae = (k) => k == "default" ? null : "vs-dark";
4988
- return Oe.init().then((k) => {
4989
- g = k, Y(k);
4990
- }), H(() => q.theme, (k, f) => {
4991
- let C = ae(k);
4992
- g.editor.setTheme(C);
4993
- }), H(() => r.value, (k, f) => {
4994
- c && g.editor.setModelLanguage(c, k), h && g.editor.setModelLanguage(h, k);
4995
- }), H(() => i.value, (k, f) => {
4991
+ }, ae = (T) => T == "default" ? null : "vs-dark";
4992
+ return we(async () => {
4993
+ g = await ye.getMonaco(), X(g);
4994
+ }), H(() => Y.theme, (T, f) => {
4995
+ let k = ae(T);
4996
+ g.editor.setTheme(k);
4997
+ }), H(() => r.value, (T, f) => {
4998
+ c && g.editor.setModelLanguage(c, T), h && g.editor.setModelLanguage(h, T);
4999
+ }), H(() => i.value, (T, f) => {
4996
5000
  if (!c)
4997
5001
  return;
4998
- let C = c.getValue();
4999
- k != C && c.setValue(k ?? "");
5000
- }), H(() => a.value, (k, f) => {
5002
+ let k = c.getValue();
5003
+ T != k && c.setValue(T ?? "");
5004
+ }), H(() => a.value, (T, f) => {
5001
5005
  if (!h)
5002
5006
  return;
5003
- let C = h.getValue();
5004
- k != C && h.setValue(k ?? "");
5005
- }), (k, f) => (R(), B("div", {
5007
+ let k = h.getValue();
5008
+ T != k && h.setValue(T ?? "");
5009
+ }), (T, f) => (R(), B("div", {
5006
5010
  ref_key: "compareRef",
5007
5011
  ref: w,
5008
5012
  class: "ha-compare",
5009
- style: me(m(V))
5013
+ style: me(m(q))
5010
5014
  }, null, 4));
5011
5015
  }
5012
- }), We = (u, e) => {
5016
+ }), Ke = (u, e) => {
5013
5017
  const t = u.__vccOpts || u;
5014
5018
  for (const [s, l] of e)
5015
5019
  t[s] = l;
5016
5020
  return t;
5017
- }, pl = {}, gl = { class: "ha-option" };
5018
- function fl(u, e) {
5019
- return R(), B("div", gl, "选项");
5021
+ }, hl = {}, pl = { class: "ha-option" };
5022
+ function gl(u, e) {
5023
+ return R(), B("div", pl, "选项");
5020
5024
  }
5021
- const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text" }, vl = /* @__PURE__ */ kt('<div class="ql-formats"><button class="ql-bold" data-toggle="tooltip" data-placement="bottom" title="Bold"></button><button class="ql-italic" data-toggle="tooltip" data-placement="bottom" title="Italic &lt;ctrl+i&gt;"></button><button class="ql-date" data-toggle="tooltip" data-placement="bottom" title="Date"></button><button class="ql-underline" data-toggle="tooltip" data-placement="bottom" title="Underline"></button><button class="ql-strike" data-toggle="tooltip" data-placement="bottom" title="Strike"></button></div><div class="ql-formats"><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="ordered"></button><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="bullet"></button><select class="ql-color"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select><select class="ql-background"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select></div><div class="ql-formats"><button class="ql-code-block" data-toggle="tooltip" data-placement="bottom" title="Code"></button><button class="ql-blockquote" data-toggle="tooltip" data-placement="bottom" title="Block quote"></button><button class="ql-link" data-toggle="tooltip" data-placement="bottom" title="Link"></button></div><div class="ql-formats"><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="1"></button><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="2"></button><select class="ql-align"><option selected></option><option value="center"></option><option value="right"></option><option value="justify"></option></select></div><div class="ql-formats"><select class="ql-size"><option value="small"></option><option selected></option><option value="large"></option><option value="huge"></option></select><select class="ql-header"><option value=""></option><option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option></select></div><div class="ql-formats"><select class="ql-font"><option selected></option><option value="serif"></option><option value="monospace"></option></select></div><div class="ql-formats"><button class="ql-image" data-toggle="tooltip" data-placement="bottom" title="Image"></button><button class="ql-video" data-toggle="tooltip" data-placement="bottom" title="Video"></button><button class="ql-clean" data-toggle="tooltip" data-placement="bottom" title="Clean"></button></div>', 7), bl = [
5022
- vl
5023
- ], pr = /* @__PURE__ */ Q({
5025
+ const fl = /* @__PURE__ */ Ke(hl, [["render", gl]]), ml = { class: "ha-rich-text" }, yl = /* @__PURE__ */ St('<div class="ql-formats"><button class="ql-bold" data-toggle="tooltip" data-placement="bottom" title="Bold"></button><button class="ql-italic" data-toggle="tooltip" data-placement="bottom" title="Italic &lt;ctrl+i&gt;"></button><button class="ql-date" data-toggle="tooltip" data-placement="bottom" title="Date"></button><button class="ql-underline" data-toggle="tooltip" data-placement="bottom" title="Underline"></button><button class="ql-strike" data-toggle="tooltip" data-placement="bottom" title="Strike"></button></div><div class="ql-formats"><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="ordered"></button><button class="ql-list" data-toggle="tooltip" data-placement="bottom" value="bullet"></button><select class="ql-color"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select><select class="ql-background"><option selected></option><option value="#e60000"></option><option value="#ff9900"></option><option value="#ffff00"></option><option value="#008a00"></option><option value="#0066cc"></option><option value="#9933ff"></option><option value="#ffffff"></option><option value="#facccc"></option><option value="#ffebcc"></option><option value="#ffffcc"></option><option value="#cce8cc"></option><option value="#cce0f5"></option><option value="#ebd6ff"></option><option value="#bbbbbb"></option><option value="#f06666"></option><option value="#ffc266"></option><option value="#ffff66"></option><option value="#66b966"></option><option value="#66a3e0"></option><option value="#c285ff"></option><option value="#888888"></option><option value="#a10000"></option><option value="#b26b00"></option><option value="#b2b200"></option><option value="#006100"></option><option value="#0047b2"></option><option value="#6b24b2"></option><option value="#444444"></option><option value="#5c0000"></option><option value="#663d00"></option><option value="#666600"></option><option value="#003700"></option><option value="#002966"></option><option value="#3d1466"></option></select></div><div class="ql-formats"><button class="ql-code-block" data-toggle="tooltip" data-placement="bottom" title="Code"></button><button class="ql-blockquote" data-toggle="tooltip" data-placement="bottom" title="Block quote"></button><button class="ql-link" data-toggle="tooltip" data-placement="bottom" title="Link"></button></div><div class="ql-formats"><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="1"></button><button class="ql-header" data-toggle="tooltip" data-placement="bottom" value="2"></button><select class="ql-align"><option selected></option><option value="center"></option><option value="right"></option><option value="justify"></option></select></div><div class="ql-formats"><select class="ql-size"><option value="small"></option><option selected></option><option value="large"></option><option value="huge"></option></select><select class="ql-header"><option value=""></option><option value="1"></option><option value="2"></option><option value="3"></option><option value="4"></option><option value="5"></option><option value="6"></option></select></div><div class="ql-formats"><select class="ql-font"><option selected></option><option value="serif"></option><option value="monospace"></option></select></div><div class="ql-formats"><button class="ql-image" data-toggle="tooltip" data-placement="bottom" title="Image"></button><button class="ql-video" data-toggle="tooltip" data-placement="bottom" title="Video"></button><button class="ql-clean" data-toggle="tooltip" data-placement="bottom" title="Clean"></button></div>', 7), vl = [
5026
+ yl
5027
+ ], dr = /* @__PURE__ */ J({
5024
5028
  __name: "RichText",
5025
- props: /* @__PURE__ */ Je({
5029
+ props: /* @__PURE__ */ We({
5026
5030
  options: {}
5027
5031
  }, {
5028
5032
  modelValue: {},
5029
5033
  modelModifiers: {}
5030
5034
  }),
5031
- emits: /* @__PURE__ */ Je(["change", "scroll"], ["update:modelValue"]),
5035
+ emits: /* @__PURE__ */ We(["change", "scroll"], ["update:modelValue"]),
5032
5036
  setup(u, { expose: e, emit: t }) {
5033
- let s = t, l = u, { options: r } = re(l), i = st(u, "modelValue"), a, o = null, c = null, h = !1, d = !1, p = j(), g = j(), w = j(), V = j(!1), Y = j({ style: null, options: { scrollTop: 0 } }), ae = (b) => {
5037
+ let s = t, l = u, { options: r } = re(l), i = tt(u, "modelValue"), a, o = null, c = null, h = !1, d = !1, p = j(), g = j(), w = j(), q = j(!1), X = j({ style: null, options: { scrollTop: 0 } }), ae = (b) => {
5034
5038
  let A = le.getDateString(), I = getSelection(), P = I.getRangeAt(0), ee = P.startContainer;
5035
5039
  if (ee.nodeName == "#text")
5036
5040
  ee.insertData(P.startOffset, A), P.setStart(ee, P.startOffset + A.length), I.removeAllRanges(), I.addRange(P);
@@ -5040,14 +5044,14 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5040
5044
  let ne = document.createRange();
5041
5045
  ne.selectNodeContents(oe), ne.setStart(oe, ne.startOffset + A.length), I.removeAllRanges(), I.addRange(ne);
5042
5046
  }
5043
- }, k = (b) => {
5047
+ }, T = (b) => {
5044
5048
  if (o.scrollTop = b.scrollTop, h || d) {
5045
5049
  h = !1, d = !1;
5046
5050
  return;
5047
5051
  }
5048
5052
  c = b, s("scroll", b);
5049
- }, f = () => `height: calc(100% - ${N.getHeight(g.value)}px)`, C = async () => {
5050
- let b = await we.getQuill();
5053
+ }, f = () => `height: calc(100% - ${N.getHeight(g.value)}px)`, k = async () => {
5054
+ let b = await ye.getQuill();
5051
5055
  a = new b(p.value, {
5052
5056
  modules: {
5053
5057
  toolbar: {
@@ -5056,40 +5060,40 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5056
5060
  }
5057
5061
  },
5058
5062
  theme: "snow"
5059
- }), V.value = !0, Xe(() => {
5060
- Y.value.style = f();
5061
- }), r.value.readonly && a.disable(), o = p.value.querySelector(".ql-editor"), o.innerHTML = i.value, Y.value.options.scrollTop = r.value.scrollTop, a.on("text-change", (A, I, P) => {
5063
+ }), q.value = !0, Qe(() => {
5064
+ X.value.style = f();
5065
+ }), r.value.readonly && a.disable(), o = p.value.querySelector(".ql-editor"), o.innerHTML = i.value, X.value.options.scrollTop = r.value.scrollTop, a.on("text-change", (A, I, P) => {
5062
5066
  o.innerHTML != i.value && (h = !0, i.value = o.innerHTML);
5063
5067
  }), o.addEventListener("paste", (A) => {
5064
5068
  d = !0;
5065
5069
  });
5066
5070
  };
5067
- return Le(() => {
5068
- C();
5069
- }), be(() => {
5071
+ return we(() => {
5072
+ k();
5073
+ }), xe(() => {
5070
5074
  a = null;
5071
5075
  }), H(() => i.value, (b, A) => {
5072
5076
  o && o.innerHTML != b && (o.innerHTML = b);
5073
5077
  }), H(() => r.value.scrollTop, (b, A) => {
5074
- b != null && (c == null ? void 0 : c.scrollTop) != b && Xe(() => {
5075
- Y.value.options.scrollTop = b;
5078
+ b != null && (c == null ? void 0 : c.scrollTop) != b && Qe(() => {
5079
+ X.value.options.scrollTop = b;
5076
5080
  });
5077
- }), e({}), (b, A) => (R(), B("div", yl, [
5078
- xt(D("div", {
5081
+ }), e({}), (b, A) => (R(), B("div", ml, [
5082
+ wt(D("div", {
5079
5083
  ref_key: "toolbarRef",
5080
5084
  ref: g
5081
- }, bl, 512), [
5082
- [St, m(V)]
5085
+ }, vl, 512), [
5086
+ [xt, m(q)]
5083
5087
  ]),
5084
- Ce(m(hl), {
5088
+ Ce(m(dl), {
5085
5089
  ref_key: "scrollerRef",
5086
5090
  ref: w,
5087
5091
  class: "ql-body",
5088
- options: m(Y).options,
5089
- onScroll: m(k),
5090
- style: me(m(Y).style)
5092
+ options: m(X).options,
5093
+ onScroll: m(T),
5094
+ style: me(m(X).style)
5091
5095
  }, {
5092
- default: Ve(() => [
5096
+ default: qe(() => [
5093
5097
  D("div", {
5094
5098
  ref_key: "editorRef",
5095
5099
  ref: p
@@ -5099,17 +5103,17 @@ const ml = /* @__PURE__ */ We(pl, [["render", fl]]), yl = { class: "ha-rich-text
5099
5103
  }, 8, ["options", "onScroll", "style"])
5100
5104
  ]));
5101
5105
  }
5102
- }), wl = {}, xl = { class: "ha-select" }, Sl = /* @__PURE__ */ D("div", { class: "select-title" }, "头", -1), kl = /* @__PURE__ */ D("div", { class: "select-body" }, [
5106
+ }), bl = {}, wl = { class: "ha-select" }, xl = /* @__PURE__ */ D("div", { class: "select-title" }, "头", -1), Sl = /* @__PURE__ */ D("div", { class: "select-body" }, [
5103
5107
  /* @__PURE__ */ D("input", { type: "text" })
5104
- ], -1), Cl = [
5105
- Sl,
5106
- kl
5108
+ ], -1), kl = [
5109
+ xl,
5110
+ Sl
5107
5111
  ];
5108
5112
  function El(u, e) {
5109
- return R(), B("div", xl, Cl);
5113
+ return R(), B("div", wl, kl);
5110
5114
  }
5111
- const Ue = /* @__PURE__ */ We(wl, [["render", El]]);
5112
- class gr {
5115
+ const Pe = /* @__PURE__ */ Ke(bl, [["render", El]]);
5116
+ class hr {
5113
5117
  /**
5114
5118
  * 初始化
5115
5119
  */
@@ -5133,7 +5137,7 @@ class gr {
5133
5137
  this.startLine = e, this.endLine = t, this.startColumn = s, this.endColumn = l;
5134
5138
  }
5135
5139
  }
5136
- const Tl = { class: "ha-condition" }, $l = /* @__PURE__ */ Q({
5140
+ const Cl = { class: "ha-condition" }, Tl = /* @__PURE__ */ J({
5137
5141
  __name: "Condition",
5138
5142
  props: {
5139
5143
  name: {},
@@ -5142,48 +5146,48 @@ const Tl = { class: "ha-condition" }, $l = /* @__PURE__ */ Q({
5142
5146
  },
5143
5147
  setup(u) {
5144
5148
  let e = u, { name: t, operator: s, value: l } = re(e);
5145
- return (r, i) => (R(), B("div", Tl, [
5146
- Ce(m(Ue), {
5149
+ return (r, i) => (R(), B("div", Cl, [
5150
+ Ce(m(Pe), {
5147
5151
  modelValue: m(t),
5148
- "onUpdate:modelValue": i[0] || (i[0] = (a) => Pe(t) ? t.value = a : t = a)
5152
+ "onUpdate:modelValue": i[0] || (i[0] = (a) => Be(t) ? t.value = a : t = a)
5149
5153
  }, null, 8, ["modelValue"]),
5150
- Ce(m(Ue), {
5154
+ Ce(m(Pe), {
5151
5155
  modelValue: m(s),
5152
- "onUpdate:modelValue": i[1] || (i[1] = (a) => Pe(s) ? s.value = a : s = a)
5156
+ "onUpdate:modelValue": i[1] || (i[1] = (a) => Be(s) ? s.value = a : s = a)
5153
5157
  }, {
5154
- default: Ve(() => [
5155
- Ce(m(ml))
5158
+ default: qe(() => [
5159
+ Ce(m(fl))
5156
5160
  ]),
5157
5161
  _: 1
5158
5162
  }, 8, ["modelValue"]),
5159
- Ce(m(Ue), {
5163
+ Ce(m(Pe), {
5160
5164
  modelValue: m(l),
5161
- "onUpdate:modelValue": i[2] || (i[2] = (a) => Pe(l) ? l.value = a : l = a)
5165
+ "onUpdate:modelValue": i[2] || (i[2] = (a) => Be(l) ? l.value = a : l = a)
5162
5166
  }, null, 8, ["modelValue"])
5163
5167
  ]));
5164
5168
  }
5165
- }), Ll = { class: "ha-condition-group" }, fr = /* @__PURE__ */ Q({
5169
+ }), $l = { class: "ha-condition-group" }, pr = /* @__PURE__ */ J({
5166
5170
  __name: "Index",
5167
5171
  props: {
5168
5172
  conditions: {}
5169
5173
  },
5170
5174
  setup(u) {
5171
5175
  let e = u, { conditions: t } = re(e);
5172
- return (s, l) => (R(), B("div", Ll, [
5173
- (R(!0), B(Ct, null, Et(m(t), (r) => (R(), tt(m($l), {
5176
+ return (s, l) => (R(), B("div", $l, [
5177
+ (R(!0), B(kt, null, Et(m(t), (r) => (R(), et(m(Tl), {
5174
5178
  name: r.name,
5175
5179
  operator: r.operator,
5176
5180
  value: r.value
5177
5181
  }, null, 8, ["name", "operator", "value"]))), 256))
5178
5182
  ]));
5179
5183
  }
5180
- }), Al = {}, Il = { class: "ha-col" };
5181
- function Ol(u, e) {
5182
- return R(), B("div", Il, [
5184
+ }), Ll = {}, Al = { class: "ha-col" };
5185
+ function Il(u, e) {
5186
+ return R(), B("div", Al, [
5183
5187
  fe(u.$slots, "default")
5184
5188
  ]);
5185
5189
  }
5186
- const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5190
+ const gr = /* @__PURE__ */ Ke(Ll, [["render", Il]]), fr = /* @__PURE__ */ J({
5187
5191
  __name: "Container",
5188
5192
  props: {
5189
5193
  container: { type: Boolean, default: !0 }
@@ -5196,14 +5200,14 @@ const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5196
5200
  fe(s.$slots, "default")
5197
5201
  ], 2));
5198
5202
  }
5199
- }), vr = /* @__PURE__ */ Q({
5203
+ }), mr = /* @__PURE__ */ J({
5200
5204
  __name: "Row",
5201
5205
  props: {
5202
5206
  gap: {},
5203
5207
  direction: {}
5204
5208
  },
5205
5209
  setup(u) {
5206
- let e = u, { gap: t, direction: s } = re(e), l = Ee(() => {
5210
+ let e = u, { gap: t, direction: s } = re(e), l = Te(() => {
5207
5211
  let r = { gap: null };
5208
5212
  return t.value && (r.gap = t.value + "px"), r;
5209
5213
  });
@@ -5214,7 +5218,7 @@ const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5214
5218
  fe(r.$slots, "default")
5215
5219
  ], 6));
5216
5220
  }
5217
- }), br = /* @__PURE__ */ Q({
5221
+ }), yr = /* @__PURE__ */ J({
5218
5222
  __name: "Progress",
5219
5223
  props: {
5220
5224
  modelValue: { type: Boolean },
@@ -5222,7 +5226,7 @@ const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5222
5226
  },
5223
5227
  emits: ["update:modelValue"],
5224
5228
  setup(u) {
5225
- let e = st(u, "modelValue"), t = j(!0), s = j(0), l = null, r = () => {
5229
+ let e = tt(u, "modelValue"), t = j(!0), s = j(0), l = null, r = () => {
5226
5230
  s.value = 0, t.value = !0, l = setInterval(() => {
5227
5231
  if (s.value < 100) {
5228
5232
  s.value++;
@@ -5238,9 +5242,9 @@ const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5238
5242
  }, 200));
5239
5243
  }, c);
5240
5244
  };
5241
- return Le(() => {
5245
+ return we(() => {
5242
5246
  e.value && r();
5243
- }), be(() => {
5247
+ }), xe(() => {
5244
5248
  clearInterval(l);
5245
5249
  }), H(() => e.value, (a, o) => {
5246
5250
  a ? r() : i();
@@ -5248,162 +5252,161 @@ const mr = /* @__PURE__ */ We(Al, [["render", Ol]]), yr = /* @__PURE__ */ Q({
5248
5252
  key: 0,
5249
5253
  class: "ha-progress",
5250
5254
  style: me({ width: m(s) + "%" })
5251
- }, null, 4)) : et("", !0);
5255
+ }, null, 4)) : He("", !0);
5252
5256
  }
5253
- }), Dl = { class: "progress-tips" }, jl = { class: "progress-tip info" }, Rl = { class: "progress-tip success" }, _l = { class: "progress-tip error" }, Bl = { class: "progress-chart" }, Pl = { class: "progress-bar" }, Ul = { class: "progress-text" }, wr = /* @__PURE__ */ Q({
5257
+ }), Ol = { class: "progress-tips" }, Dl = { class: "progress-tip info" }, jl = { class: "progress-tip success" }, Rl = { class: "progress-tip error" }, _l = { class: "progress-chart" }, Bl = { class: "progress-bar" }, Pl = { class: "progress-text" }, vr = /* @__PURE__ */ J({
5254
5258
  __name: "SocketProgress",
5255
5259
  props: {
5256
5260
  progress: {}
5257
5261
  },
5258
5262
  setup(u) {
5259
- let e = u, { progress: t } = re(e), s = Ee(() => {
5263
+ let e = u, { progress: t } = re(e), s = Te(() => {
5260
5264
  let a = t.value;
5261
5265
  return (a.succeed ?? 0) + (a.errored ?? 0);
5262
- }), l = Ee(() => ie.getPercentage(s.value, t.value.total)), r = Ee(() => ie.getProgressText(s.value, t.value.total)), i = Ee(() => ie.getPercentageText(s.value, t.value.total));
5266
+ }), l = Te(() => ie.getPercentage(s.value, t.value.total)), r = Te(() => ie.getProgressText(s.value, t.value.total)), i = Te(() => ie.getPercentageText(s.value, t.value.total));
5263
5267
  return (a, o) => (R(), B("div", {
5264
5268
  class: Ae(["ha-socket-progress", { error: m(t).errored > 0 }])
5265
5269
  }, [
5266
- D("div", Dl, [
5267
- D("div", jl, "进度:" + pe(m(r)), 1),
5268
- D("div", Rl, "成功:" + pe(m(t).succeed ?? "-"), 1),
5269
- D("div", _l, "异常:" + pe(m(t).errored ?? "-"), 1)
5270
+ D("div", Ol, [
5271
+ D("div", Dl, "进度:" + pe(m(r)), 1),
5272
+ D("div", jl, "成功:" + pe(m(t).succeed ?? "-"), 1),
5273
+ D("div", Rl, "异常:" + pe(m(t).errored ?? "-"), 1)
5270
5274
  ]),
5271
- D("div", Bl, [
5272
- D("div", Pl, [
5275
+ D("div", _l, [
5276
+ D("div", Bl, [
5273
5277
  D("div", {
5274
5278
  class: "progress-percentage",
5275
5279
  style: me({ width: m(l) + "%" })
5276
5280
  }, null, 4)
5277
5281
  ]),
5278
- D("div", Ul, pe(m(i)) + "%", 1)
5282
+ D("div", Pl, pe(m(i)) + "%", 1)
5279
5283
  ])
5280
5284
  ], 2));
5281
5285
  }
5282
- }), Fl = { class: "ha-tab" }, Ml = /* @__PURE__ */ D("div", { class: "tab-header" }, null, -1), Nl = /* @__PURE__ */ D("div", { class: "tab-body" }, null, -1), ql = [
5283
- Ml,
5284
- Nl
5285
- ], xr = /* @__PURE__ */ Q({
5286
+ }), Ul = { class: "ha-tab" }, Fl = /* @__PURE__ */ D("div", { class: "tab-header" }, null, -1), Ml = /* @__PURE__ */ D("div", { class: "tab-body" }, null, -1), Nl = [
5287
+ Fl,
5288
+ Ml
5289
+ ], br = /* @__PURE__ */ J({
5286
5290
  __name: "Tab",
5287
5291
  props: {
5288
5292
  destroy: { type: Boolean }
5289
5293
  },
5290
5294
  setup(u) {
5291
- return (e, t) => (R(), B("div", Fl, ql));
5295
+ return (e, t) => (R(), B("div", Ul, Nl));
5292
5296
  }
5293
5297
  });
5294
- let Sr = async (u) => {
5295
- u == null && (u = new il()), await nl(u), await Ps(u);
5296
- let e = await Bs.getSso(), t = { baseUrl: u.baseUrl, language: q.language, user: e, platform: "pc" }, s = J.serialize(t);
5298
+ let wr = async (u) => {
5299
+ u == null && (u = new nl()), await rl(u), await Bs(u);
5300
+ let e = await _s.getSso(), t = { baseUrl: u.baseUrl, language: Y.language, user: e, platform: "pc" }, s = W.serialize(t);
5297
5301
  await L.open(s), L.onResponse = async (l) => {
5298
5302
  let r = l.data;
5299
- return Rs.add(r.code, r.message, r.stack, r.elapsed), Promise.resolve();
5303
+ return js.add(r.code, r.message, r.stack, r.elapsed), Promise.resolve();
5300
5304
  };
5301
5305
  };
5302
5306
  export {
5303
5307
  ge as ArrayHelper,
5304
- rt as BrowserHelper,
5305
- Vt as BuilderFactory,
5306
- nt as Cdn,
5307
- Wt as CdnFactory,
5308
- Ot as ComponentHelper,
5309
- il as CreateFeOptions,
5310
- Fe as DictionaryHelper,
5308
+ lt as BrowserHelper,
5309
+ qt as BuilderFactory,
5310
+ rt as Cdn,
5311
+ Kt as CdnFactory,
5312
+ It as ComponentHelper,
5313
+ nl as CreateFeOptions,
5314
+ Ue as DictionaryHelper,
5311
5315
  N as DomHelper,
5312
- cl as DragEvent,
5313
- Qt as EncoderFactory,
5316
+ ul as DragEvent,
5317
+ Jt as EncoderFactory,
5314
5318
  ue as EventHelper,
5315
- gt as EventUtility,
5316
- Zt as ExcelFactory,
5317
- ts as ExplainerFactory,
5319
+ pt as EventUtility,
5320
+ Gt as ExcelFactory,
5321
+ es as ExplainerFactory,
5318
5322
  $ as Factories,
5319
- ns as FeatureFactory,
5320
- De as FileHelper,
5321
- dr as HaCode,
5322
- mr as HaCol,
5323
- hr as HaCompare,
5324
- $l as HaCondition,
5325
- fr as HaConditionGroup,
5326
- yr as HaContainer,
5327
- nr as HaEmpty,
5328
- dl as HaFill,
5329
- ml as HaOption,
5330
- br as HaProgress,
5331
- pr as HaRichText,
5332
- vr as HaRow,
5333
- hl as HaScroller,
5334
- Ue as HaSelect,
5335
- wr as HaSocketProgress,
5336
- xr as HaTab,
5337
- cr as HaTimer,
5338
- ds as HaloHttp,
5339
- os as HasherFactory,
5340
- Qe as HtmlHelper,
5341
- hs as HttpFactory,
5342
- ot as HttpRequest,
5343
- Ze as HttpResponse,
5323
+ rs as FeatureFactory,
5324
+ Oe as FileHelper,
5325
+ ur as HaCode,
5326
+ gr as HaCol,
5327
+ cr as HaCompare,
5328
+ Tl as HaCondition,
5329
+ pr as HaConditionGroup,
5330
+ fr as HaContainer,
5331
+ lr as HaEmpty,
5332
+ cl as HaFill,
5333
+ fl as HaOption,
5334
+ yr as HaProgress,
5335
+ dr as HaRichText,
5336
+ mr as HaRow,
5337
+ dl as HaScroller,
5338
+ Pe as HaSelect,
5339
+ vr as HaSocketProgress,
5340
+ br as HaTab,
5341
+ or as HaTimer,
5342
+ cs as HaloHttp,
5343
+ as as HasherFactory,
5344
+ Je as HtmlHelper,
5345
+ ds as HttpFactory,
5346
+ at as HttpRequest,
5347
+ Ge as HttpResponse,
5344
5348
  Es as I18nSvc,
5345
- Dt as ImageHelper,
5346
- J as JsonHelper,
5347
- ar as KeyboardUtility,
5348
- or as ListDelta,
5349
+ Ot as ImageHelper,
5350
+ W as JsonHelper,
5351
+ nr as KeyboardUtility,
5352
+ ir as ListDelta,
5349
5353
  ie as MathHelper,
5350
- ps as Messenger,
5351
- fs as MessengerFactory,
5352
- jt as MicroHelper,
5353
- je as MountHelper,
5354
- ur as MouseUtility,
5354
+ hs as Messenger,
5355
+ gs as MessengerFactory,
5356
+ Dt as MicroHelper,
5357
+ De as MountHelper,
5358
+ ar as MouseUtility,
5355
5359
  te as ObjectHelper,
5356
- pt as Position,
5357
- Nt as ProviderFactory,
5358
- Hl as ProviderTable,
5359
- gr as Range,
5360
- ir as Rect,
5361
- Rt as Ref,
5362
- Ye as ScrollHelper,
5363
- Bt as SignHelper,
5364
- vs as SignerFactory,
5365
- Ge as SqlHelper,
5366
- Xs as SsoFactory,
5367
- ut as SsoUser,
5368
- X as StringHelper,
5369
- er as SvcFactory,
5370
- Gs as TaskFactory,
5371
- ke as TaskHelper,
5372
- el as TemplateFactory,
5360
+ ht as Position,
5361
+ Mt as ProviderFactory,
5362
+ Gl as ProviderTable,
5363
+ hr as Range,
5364
+ rr as Rect,
5365
+ jt as Ref,
5366
+ Xe as ScrollHelper,
5367
+ _t as SignHelper,
5368
+ ys as SignerFactory,
5369
+ Ye as SqlHelper,
5370
+ Qs as SsoFactory,
5371
+ ot as SsoUser,
5372
+ Q as StringHelper,
5373
+ Zl as SvcFactory,
5374
+ Ys as TaskFactory,
5375
+ Ee as TaskHelper,
5376
+ Hs as TemplateFactory,
5373
5377
  le as TimeHelper,
5374
- Re as TreeHelper,
5378
+ je as TreeHelper,
5375
5379
  U as TypeHelper,
5376
- W as UrlHelper,
5377
- lr as VideoFactory,
5378
- rr as VoiceFactory,
5379
- ll as base64,
5380
- we as cdn,
5381
- q as configSvc,
5382
- Sr as createFe,
5383
- tr as driverSvc,
5384
- sr as envSvc,
5380
+ K as UrlHelper,
5381
+ tr as VideoFactory,
5382
+ sr as VoiceFactory,
5383
+ sl as base64,
5384
+ ye as cdn,
5385
+ Y as configSvc,
5386
+ wr as createFe,
5387
+ Hl as driverSvc,
5388
+ er as envSvc,
5385
5389
  L as http,
5386
5390
  G as i18nSvc,
5387
- nl as initDriver,
5388
- Ps as initSvc,
5389
- Oe as loader,
5390
- Rs as logSvc,
5391
- ht as md5,
5392
- ve as messenger,
5391
+ rl as initDriver,
5392
+ Bs as initSvc,
5393
+ js as logSvc,
5394
+ dt as md5,
5395
+ be as messenger,
5393
5396
  se as moment,
5394
5397
  Ie as settingRepo,
5395
5398
  de as settingSvc,
5396
- _s as socketSvc,
5397
- rl as storage,
5398
- Us as t,
5399
- Ns as t_enum,
5400
- Fs as t_exists,
5401
- qs as t_field,
5402
- Vs as t_field_choose_placeholder,
5403
- zs as t_field_placeholder,
5404
- Js as t_menu,
5405
- Ws as t_module,
5406
- Ms as t_sys,
5407
- Ks as t_table,
5408
- Bs as userSvc
5399
+ Rs as socketSvc,
5400
+ ll as storage,
5401
+ Ps as t,
5402
+ Ms as t_enum,
5403
+ Us as t_exists,
5404
+ Ns as t_field,
5405
+ qs as t_field_choose_placeholder,
5406
+ Vs as t_field_placeholder,
5407
+ Ws as t_menu,
5408
+ Ks as t_module,
5409
+ Fs as t_sys,
5410
+ zs as t_table,
5411
+ _s as userSvc
5409
5412
  };