halo-fe 1.0.26 → 1.0.27

Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js CHANGED
@@ -1,9 +1,9 @@
1
- var nt = Object.defineProperty;
2
- var it = (c, i, e) => i in c ? nt(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
3
- var n = (c, i, e) => it(c, typeof i != "symbol" ? i + "" : i, e);
4
- import { reactive as Ce, defineAsyncComponent as at, watch as q, defineComponent as F, toRefs as z, openBlock as T, createElementBlock as j, createElementVNode as _, toDisplayString as W, unref as f, renderSlot as Y, createCommentVNode as ye, ref as L, onMounted as oe, onUnmounted as ue, normalizeStyle as re, normalizeClass as ce, createTextVNode as Te, createBlock as Ee, withCtx as ie, mergeModels as Le, useModel as Fe, nextTick as Re, withDirectives as ot, createStaticVNode as ut, vShow as ct, createVNode as te, isRef as ve, Fragment as dt, renderList as pt, computed as ge } from "vue";
1
+ var at = Object.defineProperty;
2
+ var ot = (c, i, e) => i in c ? at(c, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[i] = e;
3
+ var n = (c, i, e) => ot(c, typeof i != "symbol" ? i + "" : i, e);
4
+ import { reactive as _e, defineAsyncComponent as ut, watch as W, defineComponent as P, toRefs as z, openBlock as C, createElementBlock as T, createElementVNode as S, toDisplayString as N, unref as f, renderSlot as Y, createCommentVNode as ye, ref as U, onMounted as ae, onUnmounted as oe, normalizeStyle as ee, normalizeClass as ce, createTextVNode as Pe, createBlock as Be, withCtx as ue, mergeModels as He, useModel as Fe, nextTick as Ue, withDirectives as ct, createStaticVNode as dt, vShow as pt, createVNode as re, isRef as ve, Fragment as Ne, renderList as Ve, computed as ge } from "vue";
5
5
  import { L as ht } from "./assets/liquidjs-C2HVw1Ra.js";
6
- import { _ as be } from "./assets/underscore-B0BCaBxV.js";
6
+ import { _ as we } from "./assets/underscore-B0BCaBxV.js";
7
7
  import { F as gt } from "./assets/file-saver-Cnua3zoa.js";
8
8
  import { a as ft } from "./assets/clone-DtpAsLoe.js";
9
9
  import { _ as yt } from "./assets/underscore.string-oDfap0sE.js";
@@ -81,11 +81,11 @@ class D {
81
81
  */
82
82
  async loadDriverAsync(i) {
83
83
  let e = { conditions: [{ name: "Id", value: i }] };
84
- return S.post("/ctl_driver/set", e).then((t) => Promise.resolve(t.data[0]));
84
+ return _.post("/ctl_driver/set", e).then((t) => Promise.resolve(t.data[0]));
85
85
  }
86
86
  //#endregion
87
87
  }
88
- class Ne {
88
+ class qe {
89
89
  constructor() {
90
90
  n(this, "type");
91
91
  }
@@ -158,11 +158,11 @@ class d {
158
158
  return y.util.sign;
159
159
  }
160
160
  }
161
- class mt extends Ne {
161
+ class mt extends qe {
162
162
  constructor() {
163
163
  super(...arguments);
164
164
  //#region 属性
165
- n(this, "type", "Page");
165
+ n(this, "type", "Module");
166
166
  //#endregion
167
167
  //#region 默认行
168
168
  /**
@@ -176,6 +176,7 @@ class mt extends Ne {
176
176
  }
177
177
  return t;
178
178
  });
179
+ //#endregion
179
180
  //#region 展开
180
181
  /**
181
182
  * 展开数据和架构信息
@@ -191,8 +192,20 @@ class mt extends Ne {
191
192
  }
192
193
  return t;
193
194
  });
195
+ //#endregion
196
+ //#region 触发事件
197
+ /**
198
+ * 触发键盘事件
199
+ * 统一封装,方便重构
200
+ */
201
+ n(this, "triggerKeyboardHandler", (e, t, r) => {
202
+ if (e == null || e.keyboardHandler == null)
203
+ return !1;
204
+ e.keyboardHandler(t, r);
205
+ });
194
206
  }
195
207
  //#endregion
208
+ //#region 提示
196
209
  /**
197
210
  * 更新提示内容
198
211
  */
@@ -251,7 +264,7 @@ class mt extends Ne {
251
264
  }
252
265
  //#endregion
253
266
  }
254
- class vt extends Ne {
267
+ class vt extends qe {
255
268
  constructor() {
256
269
  super(...arguments);
257
270
  //#region 属性
@@ -301,7 +314,7 @@ class vt extends Ne {
301
314
  */
302
315
  async loadAppsAsync(e = !1) {
303
316
  if (!this.loading.apps && !(!e && this.loaded.apps))
304
- return this.loading.apps = !0, S.post("/app/options").then((t) => {
317
+ return this.loading.apps = !0, _.post("/app/options").then((t) => {
305
318
  this.apps = t.data, this.loaded.apps = !0;
306
319
  }).finally(() => {
307
320
  this.loading.apps = !1;
@@ -312,7 +325,7 @@ class vt extends Ne {
312
325
  */
313
326
  async loadEnvsAsync(e = !1) {
314
327
  if (!this.loading.envs && (this.loading.envs = !0, !(!e && this.loaded.envs)))
315
- return S.post("/env/options").then((t) => {
328
+ return _.post("/env/options").then((t) => {
316
329
  this.envs = t.data, this.loaded.envs = !0;
317
330
  }).finally(() => {
318
331
  this.loading.envs = !1;
@@ -327,7 +340,7 @@ class vt extends Ne {
327
340
  let s = {
328
341
  conditions: [{ name: "App", value: e }, { name: "Env", value: t }, { name: "Kind", value: r }]
329
342
  };
330
- return S.post("/app/driver", s).then((l) => Promise.resolve(l.data));
343
+ return _.post("/app/driver", s).then((l) => Promise.resolve(l.data));
331
344
  }
332
345
  //#endregion
333
346
  //#region 语言
@@ -335,19 +348,19 @@ class vt extends Ne {
335
348
  * 查询代码语言和文本语言映射关系
336
349
  */
337
350
  async loadCodeLanguageAsync(e = !1) {
338
- let t = () => this.codeLanguages != null && !e ? Promise.resolve(this.codeLanguages) : S.post("/code/language").then((s) => (this.codeLanguages = s.data, this.codeLanguages));
351
+ let t = () => this.codeLanguages != null && !e ? Promise.resolve(this.codeLanguages) : _.post("/code/language").then((s) => (this.codeLanguages = s.data, this.codeLanguages));
339
352
  return await this.task.concurrent(t);
340
353
  }
341
354
  /**
342
355
  * 查询驱动程序和文本语言映射关系
343
356
  */
344
357
  async loadDriverLanguageAsync(e = !1) {
345
- let t = () => this.providerLanguages != null && !e ? Promise.resolve(this.providerLanguages) : S.post("/driver/language").then((s) => (this.providerLanguages = s.data, this.providerLanguages));
358
+ let t = () => this.providerLanguages != null && !e ? Promise.resolve(this.providerLanguages) : _.post("/driver/language").then((s) => (this.providerLanguages = s.data, this.providerLanguages));
346
359
  return await this.task.concurrent(t);
347
360
  }
348
361
  //#endregion
349
362
  }
350
- class bt {
363
+ class wt {
351
364
  constructor() {
352
365
  n(this, "type", "Setting");
353
366
  //#endregion
@@ -362,15 +375,15 @@ class bt {
362
375
  this[e] = i[e];
363
376
  }
364
377
  }
365
- class wt extends D {
378
+ class bt extends D {
366
379
  open() {
367
- super.open(), super.types = [mt, vt, bt];
380
+ super.open(), super.types = [mt, vt, wt];
368
381
  }
369
382
  /**
370
- * 页面仓储
383
+ * 模块仓储
371
384
  */
372
- get page() {
373
- return this.createWithCache("Page");
385
+ get module() {
386
+ return this.createWithCache("Module");
374
387
  }
375
388
  /**
376
389
  * 查询仓储
@@ -387,10 +400,11 @@ class wt extends D {
387
400
  return this.createWithCache("Setting");
388
401
  }
389
402
  }
390
- let xt = {}, kt = {}, Ve = {}, At = async () => {
391
- xt = y.repo.page, kt = Ce(y.repo.query), Ve = y.repo.setting;
403
+ var kt = /* @__PURE__ */ ((c) => (c[c.ctrlS = 0] = "ctrlS", c[c.ctrlEnter = 1] = "ctrlEnter", c))(kt || {});
404
+ let xt = {}, At = {}, We = {}, St = async () => {
405
+ xt = y.repo.module, At = _e(y.repo.query), We = y.repo.setting;
392
406
  };
393
- class St {
407
+ class _t {
394
408
  constructor() {
395
409
  /**
396
410
  * 默认背景
@@ -418,17 +432,17 @@ class St {
418
432
  n(this, "cdn", "Local");
419
433
  }
420
434
  }
421
- class _t {
435
+ class Ct {
422
436
  constructor() {
423
437
  /**
424
438
  * 用户应用配置
425
439
  */
426
- n(this, "app", new St());
440
+ n(this, "app", new _t());
427
441
  }
428
442
  }
429
- class qe {
443
+ class ze {
430
444
  }
431
- class We extends qe {
445
+ class Ke extends ze {
432
446
  constructor() {
433
447
  super(...arguments);
434
448
  //#region 属性
@@ -436,7 +450,7 @@ class We extends qe {
436
450
  /**
437
451
  * 用户系统配置
438
452
  */
439
- n(this, "sys", new _t());
453
+ n(this, "sys", new Ct());
440
454
  /**
441
455
  * 文件布局方式
442
456
  */
@@ -472,7 +486,7 @@ class We extends qe {
472
486
  d.object.addProperties(this, [s.kind, s.type], a);
473
487
  }
474
488
  let t = this.sys.app, r = document.documentElement;
475
- d.dom.removeClass(r, Ke.theme), d.dom.addClass(r, t.theme), d.mount.emit("theme", t.theme), d.dom.addClass(r, t.layout), this.setBackground(t.background), d.dom.addStyle(r, "font-family", t.font);
489
+ d.dom.removeClass(r, Qe.theme), d.dom.addClass(r, t.theme), d.mount.emit("theme", t.theme), d.dom.addClass(r, t.layout), this.setBackground(t.background), d.dom.addStyle(r, "font-family", t.font);
476
490
  });
477
491
  }
478
492
  /**
@@ -530,19 +544,19 @@ class We extends qe {
530
544
  if (s)
531
545
  return Promise.resolve(s);
532
546
  }
533
- return S.get(`/config/query?kind=${e}&type=${t}`).then((s) => Promise.resolve(s.data));
547
+ return _.get(`/config/query?kind=${e}&type=${t}`).then((s) => Promise.resolve(s.data));
534
548
  }
535
549
  /**
536
550
  * 全量保存用户配置
537
551
  */
538
552
  async saveAsync(e, t, r, s = !0) {
539
- return s && await (await y.provider.getDefaultAsync(e)).saveAsync(e, t, r), S.post(`/config/save?kind=${e}&type=${t}`, r).then((l) => Promise.resolve(!0));
553
+ return s && await (await y.provider.getDefaultAsync(e)).saveAsync(e, t, r), _.post(`/config/save?kind=${e}&type=${t}`, r).then((l) => Promise.resolve(!0));
540
554
  }
541
555
  /**
542
556
  * 部分保存用户配置
543
557
  */
544
558
  async patchAsync(e, t, r) {
545
- return S.patchAsync(`/config/save?kind=${e}&type=${t}`, r).then((s) => Promise.resolve(!0));
559
+ return _.patchAsync(`/config/save?kind=${e}&type=${t}`, r).then((s) => Promise.resolve(!0));
546
560
  }
547
561
  //#endregion
548
562
  /**
@@ -553,7 +567,7 @@ class We extends qe {
553
567
  return this.sys.app.language || e || "zh-cn";
554
568
  }
555
569
  }
556
- class Ct {
570
+ class Tt {
557
571
  constructor() {
558
572
  /**
559
573
  * 环境变量
@@ -567,7 +581,7 @@ class Ct {
567
581
  this.env = i, this.env.base = d.string.trimEnd(i.VITE_ROOT, "/");
568
582
  }
569
583
  }
570
- class Tt {
584
+ class Et {
571
585
  constructor() {
572
586
  /**
573
587
  * 日志集合
@@ -594,7 +608,7 @@ class Tt {
594
608
  this.logs = [];
595
609
  }
596
610
  }
597
- class Et {
611
+ class $t {
598
612
  constructor() {
599
613
  //#region 属性
600
614
  n(this, "loaded", !1);
@@ -656,13 +670,13 @@ class Et {
656
670
  /**
657
671
  * 加载设置
658
672
  */
659
- n(this, "load", async () => S.get("/app/setting").then(({ data: i }) => {
673
+ n(this, "load", async () => _.get("/app/setting").then(({ data: i }) => {
660
674
  let e = Object.keys(i);
661
675
  for (let t of e) {
662
676
  let r = i[t];
663
677
  r && (this[t] = r);
664
678
  }
665
- return d.dom.addClass(document.documentElement, this.theme, Ve.web.theme), d.mount.emits({ theme: this.theme }), Promise.resolve(i);
679
+ return d.dom.addClass(document.documentElement, this.theme, We.web.theme), d.mount.emits({ theme: this.theme }), Promise.resolve(i);
666
680
  }).catch((i) => Promise.reject(i)));
667
681
  }
668
682
  //#endregion
@@ -673,7 +687,7 @@ class Et {
673
687
  this.loaded || (await this.load(), this.loaded = !0);
674
688
  }
675
689
  }
676
- class $t {
690
+ class jt {
677
691
  constructor() {
678
692
  //#region 属性
679
693
  /**
@@ -715,7 +729,7 @@ class $t {
715
729
  * 登录后,获取用户信息
716
730
  */
717
731
  async loadInfo() {
718
- return S.get("/user/info").then(async ({ data: i }) => (await Z.bindAsync(i.configs), this.user = i, this.debugger = i.debugger, Promise.resolve(i)));
732
+ return _.get("/user/info").then(async ({ data: i }) => (await Z.bindAsync(i.configs), this.user = i, this.debugger = i.debugger, Promise.resolve(i)));
719
733
  }
720
734
  //#endregion
721
735
  //#region 菜单
@@ -730,7 +744,7 @@ class $t {
730
744
  * 加载服务端路由
731
745
  */
732
746
  async loadMenus() {
733
- return S.get("/user/menu").then(({ data: i }) => (this.menus = i, this.menusFlat = d.tree.getFlat(i, "children"), Promise.resolve(i)));
747
+ return _.get("/user/menu").then(({ data: i }) => (this.menus = i, this.menusFlat = d.tree.getFlat(i, "children"), Promise.resolve(i)));
734
748
  }
735
749
  //#endregion
736
750
  //#region 加载
@@ -738,7 +752,7 @@ class $t {
738
752
  * 加载用户选项
739
753
  */
740
754
  async loadUsers(i) {
741
- return S.post("/sys_user/options", i).then(({ data: e }) => Promise.resolve(e));
755
+ return _.post("/sys_user/options", i).then(({ data: e }) => Promise.resolve(e));
742
756
  }
743
757
  //#endregion
744
758
  //#region 退出
@@ -746,15 +760,15 @@ class $t {
746
760
  * 退出登录
747
761
  */
748
762
  async logout() {
749
- return S.post("/user/logout").then(async () => {
763
+ return _.post("/user/logout").then(async () => {
750
764
  this.user = null, this.menus = null;
751
765
  let i = await this.getSso();
752
- return await (await y.sso.createAsync(i.type)).logout(), He.dispose(), Promise.resolve();
766
+ return await (await y.sso.createAsync(i.type)).logout(), $e.dispose(), Promise.resolve();
753
767
  });
754
768
  }
755
769
  //#endregion
756
770
  }
757
- class ze extends qe {
771
+ class Je extends ze {
758
772
  constructor() {
759
773
  super(...arguments);
760
774
  //#region 属性
@@ -769,15 +783,15 @@ class ze extends qe {
769
783
  if (!e)
770
784
  return;
771
785
  let r = { id: e, schema: t };
772
- return S.get("/provider/schema", r).then(({ data: s }) => Promise.resolve(s));
786
+ return _.get("/provider/schema", r).then(({ data: s }) => Promise.resolve(s));
773
787
  }
774
788
  //#endregion
775
789
  }
776
- class jt extends D {
790
+ class Dt extends D {
777
791
  open() {
778
792
  super.open(), super.types = [
779
- new We(),
780
- new ze()
793
+ new Ke(),
794
+ new Je()
781
795
  ];
782
796
  }
783
797
  static() {
@@ -790,8 +804,8 @@ class jt extends D {
790
804
  return super.createWithCache("Config");
791
805
  }
792
806
  }
793
- let vl = () => {
794
- }, Ke = Ce(new Et()), Z = new We(), bl = Ce(new ze()), wl = new Ct(), Ie = new Tt(), Dt = new $t();
807
+ let kl = () => {
808
+ }, Qe = _e(new $t()), Z = new Ke(), xl = _e(new Je()), Al = new Tt(), Oe = new Et(), Ht = new jt();
795
809
  class y {
796
810
  //#endregion
797
811
  //#region 驱动工厂
@@ -805,103 +819,103 @@ class y {
805
819
  * CDN工厂
806
820
  */
807
821
  static get cdn() {
808
- return this.create(Ft);
822
+ return this.create(Nt);
809
823
  }
810
824
  /**
811
825
  * 编码器工厂
812
826
  */
813
827
  static get encoder() {
814
- return this.create(qt);
828
+ return this.create(Wt);
815
829
  }
816
830
  /**
817
831
  * Excel工厂
818
832
  */
819
833
  static get excel() {
820
- return this.create(Kt);
834
+ return this.create(Jt);
821
835
  }
822
836
  /**
823
837
  * Explainer工厂
824
838
  */
825
839
  static get explainer() {
826
- return this.create(Yt);
840
+ return this.create(Xt);
827
841
  }
828
842
  /**
829
843
  * 特征工厂
830
844
  */
831
845
  static get feature() {
832
- return this.create(er);
846
+ return this.create(tr);
833
847
  }
834
848
  /**
835
849
  * 哈希工厂
836
850
  */
837
851
  static get hasher() {
838
- return this.create(sr);
852
+ return this.create(lr);
839
853
  }
840
854
  /**
841
855
  * Http请求工厂
842
856
  */
843
857
  static get http() {
844
- return this.create(or);
858
+ return this.create(ur);
845
859
  }
846
860
  /**
847
861
  * 多语言工厂
848
862
  */
849
863
  static get i18n() {
850
- return this.create(dr);
864
+ return this.create(pr);
851
865
  }
852
866
  /**
853
867
  * 消息提示请求工厂
854
868
  */
855
869
  static get messenger() {
856
- return this.create(gr);
870
+ return this.create(fr);
857
871
  }
858
872
  /**
859
873
  * 提供程序工厂
860
874
  */
861
875
  static get provider() {
862
- return this.create(Rt);
876
+ return this.create(It);
863
877
  }
864
878
  /**
865
879
  * 签名工厂
866
880
  */
867
881
  static get signer() {
868
- return this.create(mr);
882
+ return this.create(vr);
869
883
  }
870
884
  /**
871
885
  * 通信工厂
872
886
  */
873
887
  static get socket() {
874
- return this.create(wr);
888
+ return this.create(kr);
875
889
  }
876
890
  /**
877
891
  * SSO工厂
878
892
  */
879
893
  static get sso() {
880
- return this.create(Tr);
894
+ return this.create(Er);
881
895
  }
882
896
  /**
883
897
  * Task工厂
884
898
  */
885
899
  static get task() {
886
- return this.create(jr);
900
+ return this.create(Dr);
887
901
  }
888
902
  /**
889
903
  * 模板工厂
890
904
  */
891
905
  static get template() {
892
- return this.create(Ur);
906
+ return this.create(Or);
893
907
  }
894
908
  /**
895
909
  * 工具工厂
896
910
  */
897
911
  static get util() {
898
- return this.create(Or);
912
+ return this.create(Lr);
899
913
  }
900
914
  /**
901
915
  * 工具类工厂
902
916
  */
903
917
  static get utility() {
904
- return this.create(cs);
918
+ return this.create(ds);
905
919
  }
906
920
  //#endregion
907
921
  //#region 仓储工厂
@@ -909,7 +923,7 @@ class y {
909
923
  * 仓储工厂
910
924
  */
911
925
  static get repo() {
912
- return this.create(wt);
926
+ return this.create(bt);
913
927
  }
914
928
  //#endregion
915
929
  //#region 服务工厂
@@ -917,7 +931,7 @@ class y {
917
931
  * 服务工厂
918
932
  */
919
933
  static get svc() {
920
- return this.create(jt);
934
+ return this.create(Dt);
921
935
  }
922
936
  //#endregion
923
937
  //#region 创建
@@ -940,7 +954,7 @@ class me {
940
954
  n(this, "type");
941
955
  }
942
956
  }
943
- class Ht extends me {
957
+ class Ut extends me {
944
958
  constructor() {
945
959
  super(...arguments);
946
960
  n(this, "type", "Json");
@@ -952,7 +966,7 @@ class Ht extends me {
952
966
  return d.json.serialize(e.rows, !0);
953
967
  }
954
968
  }
955
- class Ut extends me {
969
+ class Ot extends me {
956
970
  constructor() {
957
971
  super(...arguments);
958
972
  n(this, "type", "Mongo");
@@ -976,7 +990,7 @@ class Ut extends me {
976
990
  return l;
977
991
  }
978
992
  }
979
- class $e {
993
+ class Ce {
980
994
  constructor() {
981
995
  //#region 属性
982
996
  n(this, "type");
@@ -992,7 +1006,7 @@ class $e {
992
1006
  }
993
1007
  //#endregion
994
1008
  }
995
- const ee = class ee extends $e {
1009
+ const te = class te extends Ce {
996
1010
  constructor() {
997
1011
  super(...arguments);
998
1012
  //#region 属性
@@ -1034,7 +1048,7 @@ const ee = class ee extends $e {
1034
1048
  let s = indexedDB.open(this.database);
1035
1049
  s.onsuccess = (l) => {
1036
1050
  let a = l.target.result;
1037
- ee.version = a.version, this.objectStoreNames = a.objectStoreNames, t(ee.version);
1051
+ te.version = a.version, this.objectStoreNames = a.objectStoreNames, t(te.version);
1038
1052
  }, s.onerror = (l) => {
1039
1053
  r(l.target);
1040
1054
  };
@@ -1045,7 +1059,7 @@ const ee = class ee extends $e {
1045
1059
  */
1046
1060
  async createAsync(e) {
1047
1061
  return e == null ? Promise.resolve() : this.objectStoreNames.contains(e) ? Promise.resolve(!0) : new Promise((t, r) => {
1048
- let s = indexedDB.open(this.database, ++ee.version);
1062
+ let s = indexedDB.open(this.database, ++te.version);
1049
1063
  s.onupgradeneeded = (l) => {
1050
1064
  let a = l.target.result;
1051
1065
  a.objectStoreNames.contains(e) || a.createObjectStore(e);
@@ -1061,7 +1075,7 @@ const ee = class ee extends $e {
1061
1075
  */
1062
1076
  async openDbAsync() {
1063
1077
  return new Promise((e, t) => {
1064
- let r = indexedDB.open(this.database, ee.version);
1078
+ let r = indexedDB.open(this.database, te.version);
1065
1079
  r.onsuccess = (s) => {
1066
1080
  let l = s.target.result;
1067
1081
  e(l);
@@ -1178,9 +1192,9 @@ const ee = class ee extends $e {
1178
1192
  /**
1179
1193
  * 静态版本,保证所有数据库实例拿到最新版本信息
1180
1194
  */
1181
- n(ee, "version", null);
1182
- let ke = ee;
1183
- class Ot extends $e {
1195
+ n(te, "version", null);
1196
+ let ke = te;
1197
+ class Lt extends Ce {
1184
1198
  constructor() {
1185
1199
  super(...arguments);
1186
1200
  //#region 属性
@@ -1251,7 +1265,7 @@ class Ot extends $e {
1251
1265
  }
1252
1266
  //#endregion
1253
1267
  }
1254
- class Lt extends $e {
1268
+ class Rt extends Ce {
1255
1269
  constructor() {
1256
1270
  super(...arguments);
1257
1271
  //#region 属性
@@ -1294,13 +1308,13 @@ class Lt extends $e {
1294
1308
  }
1295
1309
  //#endregion
1296
1310
  }
1297
- class Rt extends D {
1311
+ class It extends D {
1298
1312
  constructor() {
1299
1313
  super(...arguments);
1300
1314
  n(this, "_default");
1301
1315
  }
1302
1316
  open() {
1303
- super.open(), super.types = [ke, Ot, Lt];
1317
+ super.open(), super.types = [ke, Lt, Rt];
1304
1318
  }
1305
1319
  /**
1306
1320
  * 获取默认驱动程序,并自动决定创建指定名称的仓储
@@ -1319,7 +1333,7 @@ class Rt extends D {
1319
1333
  return super.create("Storage");
1320
1334
  }
1321
1335
  }
1322
- class Pe {
1336
+ class Le {
1323
1337
  /**
1324
1338
  * 获取实际SQL字段名称
1325
1339
  */
@@ -1336,13 +1350,13 @@ class Pe {
1336
1350
  return e == "number" || e == "boolean" ? i : e == "object" || e == "string" ? `'${(e == "object" ? d.json.serialize(i) : i).replace(/'/g, "''")}'` : i;
1337
1351
  }
1338
1352
  }
1339
- class Ae extends me {
1353
+ class xe extends me {
1340
1354
  constructor() {
1341
1355
  super(...arguments);
1342
1356
  n(this, "type", "Sql");
1343
1357
  }
1344
1358
  insert(e) {
1345
- let { name: t, columns: r, rows: s } = e, l = e.getIdentity(), a = "", p = r.filter((h) => !h.identity).map((h) => Pe.getSqlName(h.name)).join(", ");
1359
+ let { name: t, columns: r, rows: s } = e, l = e.getIdentity(), a = "", p = r.filter((h) => !h.identity).map((h) => Le.getSqlName(h.name)).join(", ");
1346
1360
  for (let h = 0; h < s.length; h++) {
1347
1361
  let g = s[h];
1348
1362
  a += `INSERT INTO ${t}\r
@@ -1350,12 +1364,12 @@ class Ae extends me {
1350
1364
  `, a += `VALUES\r
1351
1365
  `, a += "(";
1352
1366
  let m = Object.keys(g);
1353
- for (let x = 0; x < m.length; x++) {
1354
- let U = m[x];
1355
- if (l != null && l.name == U)
1367
+ for (let k = 0; k < m.length; k++) {
1368
+ let O = m[k];
1369
+ if (l != null && l.name == O)
1356
1370
  continue;
1357
- let M = g[U];
1358
- a += `${Pe.getValue(M)}`, x != m.length - 1 && (a += ", ");
1371
+ let B = g[O];
1372
+ a += `${Le.getValue(B)}`, k != m.length - 1 && (a += ", ");
1359
1373
  }
1360
1374
  a += ")", h != s.length - 1 && (a += `\r
1361
1375
  \r
@@ -1367,24 +1381,24 @@ class Ae extends me {
1367
1381
  return "";
1368
1382
  }
1369
1383
  }
1370
- class It extends me {
1384
+ class Mt extends me {
1371
1385
  constructor() {
1372
1386
  super(...arguments);
1373
1387
  n(this, "type", "MySql");
1374
1388
  }
1375
1389
  insert(e) {
1376
- return new Ae().insert(e);
1390
+ return new xe().insert(e);
1377
1391
  }
1378
1392
  update(e) {
1379
- return new Ae().update(e);
1393
+ return new xe().update(e);
1380
1394
  }
1381
1395
  }
1382
1396
  class Pt extends D {
1383
1397
  open() {
1384
- super.open(), super.types = [Ht, Ut, It, Ae];
1398
+ super.open(), super.types = [Ut, Ot, Mt, xe];
1385
1399
  }
1386
1400
  }
1387
- class xl {
1401
+ class Sl {
1388
1402
  constructor() {
1389
1403
  /**
1390
1404
  * 表名
@@ -1406,7 +1420,7 @@ class xl {
1406
1420
  return this.columns == null || this.columns.length == 0 ? null : this.columns.find((e) => e.identity);
1407
1421
  }
1408
1422
  }
1409
- class Je {
1423
+ class Ye {
1410
1424
  constructor() {
1411
1425
  /**
1412
1426
  * 任务实例,用于控制并发
@@ -1480,7 +1494,7 @@ class Je {
1480
1494
  }
1481
1495
  //#endregion
1482
1496
  }
1483
- class Mt extends Je {
1497
+ class Bt extends Ye {
1484
1498
  constructor() {
1485
1499
  super(...arguments);
1486
1500
  //#region 属性
@@ -1518,7 +1532,7 @@ class Mt extends Je {
1518
1532
  return await super.loadFilesAsync("/assets/xlsx-js-style@1.2.0", e), window.XLSX;
1519
1533
  }
1520
1534
  }
1521
- class Bt extends Je {
1535
+ class Ft extends Ye {
1522
1536
  constructor() {
1523
1537
  super(...arguments);
1524
1538
  //#region 属性
@@ -1567,9 +1581,9 @@ class Bt extends Je {
1567
1581
  return await super.loadFilesAsync(`${this.jdCdn}/xlsx-js-style@1.2.0`, e), window.XLSX;
1568
1582
  }
1569
1583
  }
1570
- class Ft extends D {
1584
+ class Nt extends D {
1571
1585
  open() {
1572
- super.open(), super.types = [Mt, Bt];
1586
+ super.open(), super.types = [Bt, Ft];
1573
1587
  }
1574
1588
  /**
1575
1589
  * 获取指定CDN实例
@@ -1579,7 +1593,7 @@ class Ft extends D {
1579
1593
  return await t.openAsync(e), t;
1580
1594
  }
1581
1595
  }
1582
- class Qe {
1596
+ class Xe {
1583
1597
  constructor() {
1584
1598
  n(this, "type");
1585
1599
  }
@@ -1592,7 +1606,7 @@ class Qe {
1592
1606
  return JSON.parse(e);
1593
1607
  }
1594
1608
  }
1595
- class Nt extends Qe {
1609
+ class Vt extends Xe {
1596
1610
  constructor() {
1597
1611
  super(...arguments);
1598
1612
  //#region 属性
@@ -1614,7 +1628,7 @@ class Nt extends Qe {
1614
1628
  return this.crypto.enc.Utf8.stringify(t);
1615
1629
  }
1616
1630
  }
1617
- class Vt extends Qe {
1631
+ class qt extends Xe {
1618
1632
  constructor() {
1619
1633
  super(...arguments);
1620
1634
  n(this, "type", "Url");
@@ -1626,9 +1640,9 @@ class Vt extends Qe {
1626
1640
  return decodeURIComponent(e);
1627
1641
  }
1628
1642
  }
1629
- class qt extends D {
1643
+ class Wt extends D {
1630
1644
  open() {
1631
- super.open(), super.types = [Nt, Vt];
1645
+ super.open(), super.types = [Vt, qt];
1632
1646
  }
1633
1647
  /**
1634
1648
  * 创建执行类型的Hash实例
@@ -1647,12 +1661,12 @@ class qt extends D {
1647
1661
  return this.createWithCache("Url");
1648
1662
  }
1649
1663
  }
1650
- class Wt {
1664
+ class zt {
1651
1665
  constructor() {
1652
1666
  n(this, "type");
1653
1667
  }
1654
1668
  }
1655
- class zt extends Wt {
1669
+ class Kt extends zt {
1656
1670
  constructor() {
1657
1671
  super(...arguments);
1658
1672
  //#region 属性
@@ -1677,8 +1691,8 @@ class zt extends Wt {
1677
1691
  }), s.push(l), e.length > 0)
1678
1692
  for (let h = 0; h < e.length; h++) {
1679
1693
  let g = e[h], m = [];
1680
- Object.keys(g).forEach((x) => {
1681
- m.push(g[x]);
1694
+ Object.keys(g).forEach((k) => {
1695
+ m.push(g[k]);
1682
1696
  }), s.push(m);
1683
1697
  }
1684
1698
  let a = this.xlsx.utils.book_new(), o = this.xlsx.utils.json_to_sheet(s, { skipHeader: !0 });
@@ -1699,9 +1713,9 @@ class zt extends Wt {
1699
1713
  }), o["!cols"] = p, this.xlsx.writeFile(a, t);
1700
1714
  }
1701
1715
  }
1702
- class Kt extends D {
1716
+ class Jt extends D {
1703
1717
  open() {
1704
- super.types = [zt];
1718
+ super.types = [Kt];
1705
1719
  }
1706
1720
  /**
1707
1721
  * 获取Excel实例
@@ -1711,19 +1725,19 @@ class Kt extends D {
1711
1725
  return await t.openAsync(e), t;
1712
1726
  }
1713
1727
  }
1714
- class Jt {
1728
+ class Qt {
1715
1729
  constructor() {
1716
1730
  n(this, "type", "Json");
1717
1731
  }
1718
1732
  }
1719
- class Qt extends Jt {
1733
+ class Yt extends Qt {
1720
1734
  }
1721
- class Yt extends D {
1735
+ class Xt extends D {
1722
1736
  open() {
1723
- super.open(), super.types = [Qt];
1737
+ super.open(), super.types = [Yt];
1724
1738
  }
1725
1739
  }
1726
- class Xt {
1740
+ class Gt {
1727
1741
  constructor() {
1728
1742
  n(this, "type", "Sort");
1729
1743
  }
@@ -1748,7 +1762,7 @@ class Xt {
1748
1762
  }
1749
1763
  }
1750
1764
  }
1751
- class Gt {
1765
+ class Zt {
1752
1766
  constructor() {
1753
1767
  n(this, "type", "I18N");
1754
1768
  }
@@ -1761,7 +1775,7 @@ class Gt {
1761
1775
  copy(i, e, t) {
1762
1776
  }
1763
1777
  }
1764
- class Zt {
1778
+ class er {
1765
1779
  constructor() {
1766
1780
  n(this, "type", "Expression");
1767
1781
  }
@@ -1774,9 +1788,9 @@ class Zt {
1774
1788
  copy(i, e, t) {
1775
1789
  }
1776
1790
  }
1777
- class er extends D {
1791
+ class tr extends D {
1778
1792
  open() {
1779
- super.open(), super.types = [Xt, Gt, Zt];
1793
+ super.open(), super.types = [Gt, Zt, er];
1780
1794
  }
1781
1795
  /**
1782
1796
  * 获取指定特征实例
@@ -1786,12 +1800,12 @@ class er extends D {
1786
1800
  return await t.openAsync(null), t;
1787
1801
  }
1788
1802
  }
1789
- class Ye {
1803
+ class Ge {
1790
1804
  constructor() {
1791
1805
  n(this, "type");
1792
1806
  }
1793
1807
  }
1794
- class tr extends Ye {
1808
+ class rr extends Ge {
1795
1809
  constructor() {
1796
1810
  super(...arguments);
1797
1811
  //#region 属性
@@ -1807,7 +1821,7 @@ class tr extends Ye {
1807
1821
  async openAsync(e) {
1808
1822
  }
1809
1823
  }
1810
- class rr extends Ye {
1824
+ class sr extends Ge {
1811
1825
  constructor() {
1812
1826
  super(...arguments);
1813
1827
  //#region 属性
@@ -1825,9 +1839,9 @@ class rr extends Ye {
1825
1839
  this.crypto = await le.getCrypto();
1826
1840
  }
1827
1841
  }
1828
- class sr extends D {
1842
+ class lr extends D {
1829
1843
  open() {
1830
- super.open(), super.types = [tr, rr];
1844
+ super.open(), super.types = [rr, sr];
1831
1845
  }
1832
1846
  async createAsync(i, e) {
1833
1847
  let t = await super.createAsync(i);
@@ -1840,7 +1854,7 @@ class sr extends D {
1840
1854
  return this.createWithCacheAsync("Md5");
1841
1855
  }
1842
1856
  }
1843
- class Xe {
1857
+ class Ze {
1844
1858
  constructor() {
1845
1859
  /**
1846
1860
  * 请求唯一标识
@@ -1902,7 +1916,7 @@ class Xe {
1902
1916
  }
1903
1917
  //#endregion
1904
1918
  }
1905
- class Ge extends Xe {
1919
+ class et extends Ze {
1906
1920
  constructor() {
1907
1921
  super();
1908
1922
  /**
@@ -1920,7 +1934,7 @@ class Ge extends Xe {
1920
1934
  this.id = d.string.getUniqueId(8);
1921
1935
  }
1922
1936
  }
1923
- class lr {
1937
+ class nr {
1924
1938
  constructor() {
1925
1939
  n(this, "request");
1926
1940
  n(this, "model");
@@ -1929,7 +1943,7 @@ class lr {
1929
1943
  n(this, "time");
1930
1944
  }
1931
1945
  }
1932
- class je {
1946
+ class Te {
1933
1947
  constructor() {
1934
1948
  //#region 属性
1935
1949
  n(this, "type");
@@ -1966,7 +1980,7 @@ class je {
1966
1980
  * 获取请求消息
1967
1981
  */
1968
1982
  n(this, "getRequest", async (i, e, t, r = null) => {
1969
- let s = new Ge();
1983
+ let s = new et();
1970
1984
  return s.method = i, s.contentType = e, s.path = t, s.body = d.json.serializeWithoutString(r), s;
1971
1985
  });
1972
1986
  }
@@ -1993,14 +2007,14 @@ class je {
1993
2007
  }
1994
2008
  //#endregion
1995
2009
  //#region 准备
1996
- prepareAsync(i, e) {
1997
- if (i.prepare(), e == null || !e.Any())
2010
+ async prepareAsync(i, e) {
2011
+ if (i.prepare(), e == null || e.length == 0)
1998
2012
  return;
1999
- let t = this.encoder.encode(e), r = d.time.getTimestamp(), s = d.time.formatDateTime(/* @__PURE__ */ new Date()), l = new lr();
2000
- l.request = i, l.model = e, l.encoded = t, l.timestamp = r, l.time = s, i.path = this.template.render(i.path, l), i.body = this.template.render(i.body, l);
2013
+ let t = this.encoder.encode(e), r = d.time.getTimestamp(), s = d.time.formatDateTime(/* @__PURE__ */ new Date()), l = new nr();
2014
+ l.request = i, l.model = e, l.encoded = t, l.timestamp = r, l.time = s, i.path = await this.template.renderAsync(i.path, l), i.body = await this.template.renderAsync(i.body, l);
2001
2015
  }
2002
2016
  }
2003
- class Me extends Xe {
2017
+ class Re extends Ze {
2004
2018
  constructor() {
2005
2019
  super(...arguments);
2006
2020
  //#region 附加信息
@@ -2031,7 +2045,7 @@ class Me extends Xe {
2031
2045
  n(this, "request");
2032
2046
  }
2033
2047
  }
2034
- class nr extends je {
2048
+ class ir extends Te {
2035
2049
  constructor() {
2036
2050
  super(...arguments);
2037
2051
  //#region 属性
@@ -2074,7 +2088,7 @@ class nr extends je {
2074
2088
  * 使用Fetch发送请求,谷歌插件场景专用
2075
2089
  */
2076
2090
  async sendWithFetch(e) {
2077
- let t = new Me();
2091
+ let t = new Re();
2078
2092
  t.request = e, t.id = e.id;
2079
2093
  let r = {
2080
2094
  method: e.method,
@@ -2093,7 +2107,7 @@ class nr extends je {
2093
2107
  * 使用XmlHttpRequest发送请求
2094
2108
  */
2095
2109
  sendWithXmlHttpRequest(e) {
2096
- let t = new Me();
2110
+ let t = new Re();
2097
2111
  return t.request = e, t.id = e.id, new Promise(async (r, s) => {
2098
2112
  let l = new XMLHttpRequest();
2099
2113
  if (l.open(e.method, e.url), e.headers != null)
@@ -2118,7 +2132,7 @@ class nr extends je {
2118
2132
  });
2119
2133
  }
2120
2134
  }
2121
- class ir extends je {
2135
+ class ar extends Te {
2122
2136
  constructor() {
2123
2137
  super(...arguments);
2124
2138
  //#region 属性
@@ -2171,7 +2185,7 @@ class ir extends je {
2171
2185
  });
2172
2186
  }
2173
2187
  }
2174
- class ar extends je {
2188
+ class or extends Te {
2175
2189
  constructor() {
2176
2190
  super(...arguments);
2177
2191
  //#region 属性
@@ -2230,16 +2244,16 @@ class ar extends je {
2230
2244
  n(this, "handleError", (e) => {
2231
2245
  if (e instanceof Object) {
2232
2246
  let t = e.message;
2233
- e.message == "Network Error" && (d.url.httpOrHttps(e.config.url) ? t = "接口网络错误: " + e.config.url : t = "接口网络错误: " + e.config.baseURL + e.config.url), ae.error(t);
2247
+ e.message == "Network Error" && (d.url.httpOrHttps(e.config.url) ? t = "接口网络错误: " + e.config.url : t = "接口网络错误: " + e.config.baseURL + e.config.url), ie.error(t);
2234
2248
  } else
2235
- ae.error(e.message);
2249
+ ie.error(e.message);
2236
2250
  return Promise.reject(e);
2237
2251
  });
2238
2252
  }
2239
2253
  }
2240
- class or extends D {
2254
+ class ur extends D {
2241
2255
  open() {
2242
- super.open(), super.types = [nr, ir, ar];
2256
+ super.open(), super.types = [ir, ar, or];
2243
2257
  }
2244
2258
  /**
2245
2259
  * 获取默认请求器
@@ -2255,7 +2269,7 @@ class or extends D {
2255
2269
  return this.createWithCache("Halo");
2256
2270
  }
2257
2271
  }
2258
- class ur {
2272
+ class cr {
2259
2273
  constructor() {
2260
2274
  //#region 属性
2261
2275
  n(this, "type");
@@ -2288,12 +2302,12 @@ class ur {
2288
2302
  });
2289
2303
  n(this, "t_table", (i) => this.t(`_business.Ctl_Table.Title.${i}`));
2290
2304
  n(this, "t_field", (i, e) => {
2291
- let r = `_business.Ctl_Table_Field.Label.${i}.${e}`;
2305
+ let r = `_business.Ctl_Field.Label.${i}.${e}`;
2292
2306
  return this.t(r);
2293
2307
  });
2294
- n(this, "t_enum", (i, e) => this.t(`_business.Ctl_Enum_Option.Text.${i}.${e}`));
2295
- n(this, "t_field_placeholder", (i, e) => this.t("common.please_input") + this.t(`_business.Ctl_Table_Field.Label.${i}.${e}`));
2296
- n(this, "t_field_choose_placeholder", (i, e) => this.t("common.please_choose") + this.t(`_business.Ctl_Table_Field.Label.${i}.${e}`));
2308
+ n(this, "t_enum", (i, e) => this.t(`_business.Ctl_Option.Text.${i}.${e}`));
2309
+ n(this, "t_field_placeholder", (i, e) => this.t("common.please_input") + this.t(`_business.Ctl_Field.Label.${i}.${e}`));
2310
+ n(this, "t_field_choose_placeholder", (i, e) => this.t("common.please_choose") + this.t(`_business.Ctl_Field.Label.${i}.${e}`));
2297
2311
  n(this, "t_sys", (i) => this.t(`sys.${i}`));
2298
2312
  n(this, "t_title", () => this.t("sys.title"));
2299
2313
  //#endregion
@@ -2327,7 +2341,7 @@ class ur {
2327
2341
  this.lang = i;
2328
2342
  return;
2329
2343
  }
2330
- await this.load(i), this.lang = i, this.loaded.push(i);
2344
+ await this.loadAsync(i), this.lang = i, this.loaded.push(i);
2331
2345
  });
2332
2346
  }
2333
2347
  //#endregion
@@ -2337,7 +2351,7 @@ class ur {
2337
2351
  }
2338
2352
  //#endregion
2339
2353
  }
2340
- class cr extends ur {
2354
+ class dr extends cr {
2341
2355
  constructor() {
2342
2356
  super(...arguments);
2343
2357
  n(this, "type", "Default");
@@ -2352,11 +2366,11 @@ class cr extends ur {
2352
2366
  let t = this.messages[this.lang], r = e.split(".");
2353
2367
  return d.json.hasKey(t, r);
2354
2368
  });
2355
- n(this, "load", async (e) => {
2369
+ n(this, "loadAsync", async (e) => {
2356
2370
  e == null && (e = this.lang);
2357
2371
  let t = new Promise(async (s) => {
2358
2372
  let l = { conditions: [{ name: "lang", value: e }] };
2359
- return S.post("/i18n", l).then(({ data: a }) => {
2373
+ return _.post("/i18n/set", l).then(({ data: a }) => {
2360
2374
  for (let o of a) {
2361
2375
  let u = `${e}.${o.Kind}.${o.Key}`.split(".");
2362
2376
  d.object.addProperties(this.messages, u, o.Value);
@@ -2365,7 +2379,7 @@ class cr extends ur {
2365
2379
  });
2366
2380
  }), r = new Promise((s) => {
2367
2381
  let l = { conditions: [{ name: "lang", value: e }] };
2368
- S.post("/i18n_business", l).then(({ data: a }) => {
2382
+ _.post("/i18n_business/set", l).then(({ data: a }) => {
2369
2383
  for (let o of a) {
2370
2384
  let u = `${e}._business.${o.Table}.${o.Field}.${o.Key}`.split(".");
2371
2385
  d.object.addProperties(this.messages, u, o.Value);
@@ -2381,19 +2395,19 @@ class cr extends ur {
2381
2395
  await super.openAsync(e);
2382
2396
  }
2383
2397
  }
2384
- class dr extends D {
2398
+ class pr extends D {
2385
2399
  //#region 开启
2386
2400
  open() {
2387
- super.open(), super.types = [cr];
2401
+ super.open(), super.types = [dr];
2388
2402
  }
2389
2403
  //#endregion
2390
2404
  }
2391
- class pr {
2405
+ class hr {
2392
2406
  constructor() {
2393
2407
  n(this, "type");
2394
2408
  }
2395
2409
  }
2396
- class hr extends pr {
2410
+ class gr extends hr {
2397
2411
  constructor() {
2398
2412
  super(...arguments);
2399
2413
  n(this, "type", "Console");
@@ -2420,9 +2434,9 @@ class hr extends pr {
2420
2434
  console.warn(e);
2421
2435
  }
2422
2436
  }
2423
- class gr extends D {
2437
+ class fr extends D {
2424
2438
  open() {
2425
- super.open(), super.types = [hr];
2439
+ super.open(), super.types = [gr];
2426
2440
  }
2427
2441
  /**
2428
2442
  * 获取控制台消息提示类型
@@ -2431,18 +2445,18 @@ class gr extends D {
2431
2445
  return await super.create("Console");
2432
2446
  }
2433
2447
  }
2434
- class fr {
2448
+ class yr {
2435
2449
  constructor() {
2436
2450
  n(this, "type");
2437
2451
  }
2438
2452
  }
2439
- class yr extends fr {
2453
+ class mr extends yr {
2440
2454
  constructor() {
2441
2455
  super(...arguments);
2442
2456
  n(this, "type", "Default");
2443
2457
  n(this, "getSign", async (e, t, r, s, l) => {
2444
2458
  let o = `${e}.${t}.${r ?? ""}.${s}.${l}`;
2445
- return (await st.compute(o)).toUpperCase();
2459
+ return (await nt.compute(o)).toUpperCase();
2446
2460
  });
2447
2461
  }
2448
2462
  async openAsync(e) {
@@ -2455,9 +2469,9 @@ class yr extends fr {
2455
2469
  dispose() {
2456
2470
  }
2457
2471
  }
2458
- class mr extends D {
2472
+ class vr extends D {
2459
2473
  open() {
2460
- super.open(), super.types = [yr];
2474
+ super.open(), super.types = [mr];
2461
2475
  }
2462
2476
  /**
2463
2477
  * 获取指定签名实例
@@ -2467,7 +2481,7 @@ class mr extends D {
2467
2481
  return await t.openAsync(null), t;
2468
2482
  }
2469
2483
  }
2470
- class vr {
2484
+ class wr {
2471
2485
  constructor() {
2472
2486
  //#region 属性
2473
2487
  /**
@@ -2506,7 +2520,7 @@ class vr {
2506
2520
  await this.send(e), delete this.subscribed[i];
2507
2521
  }
2508
2522
  }
2509
- class br extends vr {
2523
+ class br extends wr {
2510
2524
  constructor() {
2511
2525
  super(...arguments);
2512
2526
  //#region 属性
@@ -2535,8 +2549,8 @@ class br extends vr {
2535
2549
  //#endregion
2536
2550
  async connect() {
2537
2551
  if (this.reconnect = !0, this.socket == null || this.reconnect) {
2538
- let t = new Ge();
2539
- t.path = this.url, t.method = "GET", await S.prepareAsync(t);
2552
+ let t = new et();
2553
+ t.path = this.url, t.method = "GET", await _.prepareAsync(t);
2540
2554
  let r = t.getHeader("Authorization"), s = d.url.encode(r), l = `${this.url}?authorization=${s}`;
2541
2555
  this.socket = new WebSocket(l);
2542
2556
  }
@@ -2565,7 +2579,7 @@ class br extends vr {
2565
2579
  this.socket.close(), this.reconnect = !1, this.connected = null, this.handler = null;
2566
2580
  }
2567
2581
  }
2568
- class wr extends D {
2582
+ class kr extends D {
2569
2583
  open() {
2570
2584
  super.open(), super.types = [br];
2571
2585
  }
@@ -2576,7 +2590,7 @@ class wr extends D {
2576
2590
  return super.createWithCache("Default");
2577
2591
  }
2578
2592
  }
2579
- class kl {
2593
+ class _l {
2580
2594
  constructor() {
2581
2595
  //#region 进度
2582
2596
  /**
@@ -2614,6 +2628,50 @@ class kl {
2614
2628
  this.ok = !1, this.errored++, this.handled++, this.current = i, this.message = e;
2615
2629
  }
2616
2630
  }
2631
+ class Cl {
2632
+ /**
2633
+ * 初始化并设置数据
2634
+ */
2635
+ constructor(i, e, t) {
2636
+ /**
2637
+ * 是否执行成功
2638
+ */
2639
+ n(this, "ok");
2640
+ /**
2641
+ * 异常消息
2642
+ */
2643
+ n(this, "message");
2644
+ /**
2645
+ * 耗时
2646
+ */
2647
+ n(this, "elapsed");
2648
+ /**
2649
+ * 消息类别
2650
+ */
2651
+ n(this, "kind");
2652
+ /**
2653
+ * 消息类型
2654
+ */
2655
+ n(this, "type");
2656
+ /**
2657
+ * 数据体
2658
+ */
2659
+ n(this, "data");
2660
+ this.kind = i, this.type = e, this.data = t;
2661
+ }
2662
+ /**
2663
+ * 成功输出
2664
+ */
2665
+ onOk(i) {
2666
+ this.ok = !0, this.message = i;
2667
+ }
2668
+ /**
2669
+ * 异常输出
2670
+ */
2671
+ onError(i) {
2672
+ this.ok = !1, this.message = i;
2673
+ }
2674
+ }
2617
2675
  class xr {
2618
2676
  constructor() {
2619
2677
  //#region 属性
@@ -2630,7 +2688,7 @@ class xr {
2630
2688
  }
2631
2689
  //#endregion
2632
2690
  async login(i) {
2633
- return S.post(`/user/login?type=${this.type}`, i).then(async (e) => (await this.provider.saveAsync("user", "sso", e.data), S.user = e.data, S.sso = await y.sso.createAsync(e.data.type), Promise.resolve(e)));
2691
+ return _.post(`/user/login?type=${this.type}`, i).then(async (e) => (await this.provider.saveAsync("user", "sso", e.data), _.user = e.data, _.sso = await y.sso.createAsync(e.data.type), Promise.resolve(e)));
2634
2692
  }
2635
2693
  loginUrl(i) {
2636
2694
  return "";
@@ -2646,7 +2704,7 @@ class xr {
2646
2704
  await this.provider.deleteAsync("user", "user"), await this.provider.deleteAsync("user", "sso");
2647
2705
  }
2648
2706
  }
2649
- class kr {
2707
+ class Ar {
2650
2708
  constructor() {
2651
2709
  //#region 属性
2652
2710
  n(this, "type", "Nio");
@@ -2664,7 +2722,7 @@ class kr {
2664
2722
  }
2665
2723
  //#endregion
2666
2724
  async login(i) {
2667
- await this.provider.saveAsync("user", "sso", i), S.user = i, S.sso = await y.sso.createAsync(i.type);
2725
+ await this.provider.saveAsync("user", "sso", i), _.user = i, _.sso = await y.sso.createAsync(i.type);
2668
2726
  }
2669
2727
  loginUrl(i) {
2670
2728
  let e = encodeURIComponent(i);
@@ -2680,7 +2738,7 @@ class kr {
2680
2738
  await this.provider.deleteAsync("user", "user"), await this.provider.deleteAsync("user", "sso");
2681
2739
  }
2682
2740
  }
2683
- class Ze {
2741
+ class tt {
2684
2742
  constructor() {
2685
2743
  /**
2686
2744
  * 用户标识
@@ -2700,7 +2758,7 @@ class Ze {
2700
2758
  n(this, "identity");
2701
2759
  }
2702
2760
  }
2703
- class Ar {
2761
+ class Sr {
2704
2762
  constructor() {
2705
2763
  n(this, "type", "WeiXin");
2706
2764
  }
@@ -2712,7 +2770,7 @@ class Ar {
2712
2770
  return "";
2713
2771
  }
2714
2772
  async getUser() {
2715
- let i = new Ze();
2773
+ let i = new tt();
2716
2774
  return i.userId = "", i;
2717
2775
  }
2718
2776
  getAuth(i, e, t, r) {
@@ -2722,12 +2780,12 @@ class Ar {
2722
2780
  return Promise.resolve();
2723
2781
  }
2724
2782
  }
2725
- class Sr {
2783
+ class _r {
2726
2784
  constructor() {
2727
2785
  n(this, "type");
2728
2786
  }
2729
2787
  }
2730
- class _r extends Sr {
2788
+ class Cr extends _r {
2731
2789
  constructor() {
2732
2790
  super(...arguments);
2733
2791
  //#region 属性
@@ -2752,7 +2810,7 @@ class _r extends Sr {
2752
2810
  let r = d.string.getUniqueId();
2753
2811
  await this.provider.saveAsync("anonymous", "anonymous", r), e = r;
2754
2812
  }
2755
- let t = new Ze();
2813
+ let t = new tt();
2756
2814
  return t.identity = { token: e }, t;
2757
2815
  }
2758
2816
  getAuth(e, t, r, s) {
@@ -2762,7 +2820,7 @@ class _r extends Sr {
2762
2820
  await this.provider.deleteAsync("anonymous", "anonymous");
2763
2821
  }
2764
2822
  }
2765
- class Cr {
2823
+ class Tr {
2766
2824
  constructor() {
2767
2825
  //#region 属性
2768
2826
  n(this, "type", "Secret");
@@ -2776,7 +2834,7 @@ class Cr {
2776
2834
  this.provider = await y.provider.getDefaultAsync("user");
2777
2835
  }
2778
2836
  async login(i) {
2779
- return S.post(`/user/login?type=${this.type}`, i).then(async (e) => {
2837
+ return _.post(`/user/login?type=${this.type}`, i).then(async (e) => {
2780
2838
  let t = e.data;
2781
2839
  return await this.provider.saveAsync("user", "sso", t), Promise.resolve(e);
2782
2840
  });
@@ -2794,22 +2852,22 @@ class Cr {
2794
2852
  await this.provider.deleteAsync("user");
2795
2853
  }
2796
2854
  }
2797
- class Tr extends D {
2855
+ class Er extends D {
2798
2856
  /**
2799
2857
  * 获取实例
2800
2858
  */
2801
2859
  open() {
2802
- super.open(), super.types = [Cr, kr, Ar, xr, _r];
2860
+ super.open(), super.types = [Tr, Ar, Sr, xr, Cr];
2803
2861
  }
2804
2862
  /**
2805
2863
  * 获取指定SSO实例
2806
2864
  */
2807
2865
  async createAsync(i, e) {
2808
- let t = Ke.ssos.find((l) => l.type.toUpperCase() == i.toUpperCase()), r = { url: t == null ? void 0 : t.url, app_id: t == null ? void 0 : t.appId }, s = await super.createAsync(i);
2866
+ let t = Qe.ssos.find((l) => l.type.toUpperCase() == i.toUpperCase()), r = { url: t == null ? void 0 : t.url, app_id: t == null ? void 0 : t.appId }, s = await super.createAsync(i);
2809
2867
  return await s.openAsync(r), s;
2810
2868
  }
2811
2869
  }
2812
- class Er {
2870
+ class $r {
2813
2871
  constructor() {
2814
2872
  //#region 属性
2815
2873
  n(this, "type");
@@ -2817,7 +2875,7 @@ class Er {
2817
2875
  }
2818
2876
  //#endregion
2819
2877
  }
2820
- class $r extends Er {
2878
+ class jr extends $r {
2821
2879
  constructor() {
2822
2880
  super(...arguments);
2823
2881
  //#region 属性
@@ -2881,56 +2939,56 @@ class $r extends Er {
2881
2939
  clearInterval(this.intervalTimeout), clearTimeout(this.lastDebounceTimeout);
2882
2940
  }
2883
2941
  }
2884
- class jr extends D {
2942
+ class Dr extends D {
2885
2943
  open() {
2886
- super.open(), super.types = [$r];
2944
+ super.open(), super.types = [jr];
2887
2945
  }
2888
2946
  }
2889
- class Dr {
2947
+ class Hr {
2890
2948
  constructor() {
2891
2949
  n(this, "type");
2892
2950
  }
2893
2951
  }
2894
- class Hr extends Dr {
2952
+ class Ur extends Hr {
2895
2953
  constructor() {
2896
2954
  super(...arguments);
2897
2955
  n(this, "type", "Liquid");
2898
2956
  }
2899
- async render(e, t) {
2957
+ async renderAsync(e, t) {
2900
2958
  let r = new ht(), s = r.parse(e);
2901
2959
  return await r.render(s, t);
2902
2960
  }
2903
2961
  }
2904
- class Ur extends D {
2962
+ class Or extends D {
2905
2963
  open() {
2906
- super.open(), super.types = [Hr];
2964
+ super.open(), super.types = [Ur];
2907
2965
  }
2908
2966
  }
2909
- class Or extends D {
2967
+ class Lr extends D {
2910
2968
  open() {
2911
2969
  super.open(), super.types = [
2912
- Lr,
2913
- ts,
2914
2970
  Rr,
2915
- Pr,
2971
+ rs,
2916
2972
  Ir,
2973
+ Pr,
2917
2974
  Mr,
2918
2975
  Br,
2919
2976
  Fr,
2920
2977
  Nr,
2921
- es,
2922
2978
  Vr,
2979
+ ts,
2923
2980
  qr,
2924
2981
  Wr,
2925
2982
  zr,
2926
- Gr,
2927
- ss,
2928
2983
  Kr,
2984
+ Zr,
2985
+ ls,
2929
2986
  Jr,
2930
- Yr,
2931
- Xr,
2932
2987
  Qr,
2933
- rs
2988
+ Xr,
2989
+ Gr,
2990
+ Yr,
2991
+ ss
2934
2992
  ];
2935
2993
  }
2936
2994
  get array() {
@@ -3005,7 +3063,7 @@ class H {
3005
3063
  n(this, "type");
3006
3064
  }
3007
3065
  }
3008
- class Lr extends H {
3066
+ class Rr extends H {
3009
3067
  constructor() {
3010
3068
  super(...arguments);
3011
3069
  n(this, "type", "array");
@@ -3046,11 +3104,11 @@ class Lr extends H {
3046
3104
  /**
3047
3105
  * 求最大值,数据类型的比较函数要自己转换为数值类型
3048
3106
  */
3049
- n(this, "max", (e, t) => be.max(e, t));
3107
+ n(this, "max", (e, t) => we.max(e, t));
3050
3108
  /**
3051
3109
  * 求最小值,数据类型的比较函数要自己转换为数值类型
3052
3110
  */
3053
- n(this, "min", (e, t) => be.min(e, t));
3111
+ n(this, "min", (e, t) => we.min(e, t));
3054
3112
  /**
3055
3113
  * 求平均值
3056
3114
  */
@@ -3143,7 +3201,7 @@ class Lr extends H {
3143
3201
  * 合并多个数组中的每一项到新的二维数组中,没值的元素被有值的元素代替
3144
3202
  */
3145
3203
  n(this, "combine", (...e) => {
3146
- let t = [], r = be.max(e, (s) => s.length);
3204
+ let t = [], r = we.max(e, (s) => s.length);
3147
3205
  for (let s = 0; s < r.length; s++) {
3148
3206
  let l = [], a;
3149
3207
  for (let o = 0; o < e.length; o++) {
@@ -3312,7 +3370,7 @@ class Lr extends H {
3312
3370
  }
3313
3371
  //#endregion
3314
3372
  }
3315
- class Rr extends H {
3373
+ class Ir extends H {
3316
3374
  constructor() {
3317
3375
  super(...arguments);
3318
3376
  n(this, "type", "component");
@@ -3339,7 +3397,7 @@ class Rr extends H {
3339
3397
  if (g.default)
3340
3398
  s[h] = g.default;
3341
3399
  else {
3342
- let m = at(g);
3400
+ let m = ut(g);
3343
3401
  s[h] = m;
3344
3402
  }
3345
3403
  }
@@ -3354,7 +3412,7 @@ class Rr extends H {
3354
3412
  }, 100);
3355
3413
  }
3356
3414
  }
3357
- class Ir extends H {
3415
+ class Mr extends H {
3358
3416
  constructor() {
3359
3417
  super(...arguments);
3360
3418
  n(this, "type", "dom");
@@ -3595,13 +3653,13 @@ class Ir extends H {
3595
3653
  let a = e.querySelector(r);
3596
3654
  if (!a)
3597
3655
  return null;
3598
- let o = {}, u = e.getBoundingClientRect(), p = s.getBoundingClientRect(), g = e.querySelector(t).getBoundingClientRect(), m = a.getBoundingClientRect(), x = p.height - g.top;
3656
+ let o = {}, u = e.getBoundingClientRect(), p = s.getBoundingClientRect(), g = e.querySelector(t).getBoundingClientRect(), m = a.getBoundingClientRect(), k = p.height - g.top;
3599
3657
  if (l == "right") {
3600
3658
  o.left = `${u.left + u.width}px`;
3601
- let U;
3602
- m.height > p.height ? U = p.height : U = m.height, o.height = `${U}px`, U + g.top > p.height ? (o.top = "initial", o.bottom = "0px") : o.top = `${u.top}px`;
3659
+ let O;
3660
+ m.height > p.height ? O = p.height : O = m.height, o.height = `${O}px`, O + g.top > p.height ? (o.top = "initial", o.bottom = "0px") : o.top = `${u.top}px`;
3603
3661
  } else if (l == "bottom")
3604
- x -= g.height, o.left = `${u.left}px`, o.top = `${u.top + u.height}px`, x < m.height ? o.height = `${x}px` : o.height = `${m.height}px`;
3662
+ k -= g.height, o.left = `${u.left}px`, o.top = `${u.top + u.height}px`, k < m.height ? o.height = `${k}px` : o.height = `${m.height}px`;
3605
3663
  else
3606
3664
  throw new Error(`暂未支持的position:${l}`);
3607
3665
  return o;
@@ -3757,7 +3815,7 @@ class Pr extends H {
3757
3815
  }
3758
3816
  //#endregion
3759
3817
  }
3760
- class Mr extends H {
3818
+ class Br extends H {
3761
3819
  constructor() {
3762
3820
  super(...arguments);
3763
3821
  n(this, "type", "event");
@@ -3803,7 +3861,7 @@ class Mr extends H {
3803
3861
  });
3804
3862
  }
3805
3863
  }
3806
- class Br extends H {
3864
+ class Fr extends H {
3807
3865
  constructor() {
3808
3866
  super(...arguments);
3809
3867
  n(this, "type", "file");
@@ -3840,7 +3898,7 @@ class Br extends H {
3840
3898
  });
3841
3899
  }
3842
3900
  }
3843
- class Fr extends H {
3901
+ class Nr extends H {
3844
3902
  constructor() {
3845
3903
  super(...arguments);
3846
3904
  n(this, "type", "html");
@@ -3861,7 +3919,7 @@ class Fr extends H {
3861
3919
  });
3862
3920
  }
3863
3921
  }
3864
- class Nr extends H {
3922
+ class Vr extends H {
3865
3923
  constructor() {
3866
3924
  super(...arguments);
3867
3925
  n(this, "type", "image");
@@ -3871,7 +3929,7 @@ class Nr extends H {
3871
3929
  n(this, "base64", (e) => "data:image/png;base64," + e);
3872
3930
  }
3873
3931
  }
3874
- class Vr extends H {
3932
+ class qr extends H {
3875
3933
  constructor() {
3876
3934
  super(...arguments);
3877
3935
  n(this, "type", "math");
@@ -3969,7 +4027,7 @@ class Vr extends H {
3969
4027
  return e;
3970
4028
  }
3971
4029
  }
3972
- class qr extends H {
4030
+ class Wr extends H {
3973
4031
  constructor() {
3974
4032
  super(...arguments);
3975
4033
  n(this, "type", "micro");
@@ -3980,7 +4038,7 @@ class qr extends H {
3980
4038
  });
3981
4039
  }
3982
4040
  }
3983
- class Wr extends H {
4041
+ class zr extends H {
3984
4042
  constructor() {
3985
4043
  super(...arguments);
3986
4044
  n(this, "type", "mount");
@@ -4002,7 +4060,7 @@ class Wr extends H {
4002
4060
  });
4003
4061
  }
4004
4062
  }
4005
- class zr extends H {
4063
+ class Kr extends H {
4006
4064
  constructor() {
4007
4065
  super(...arguments);
4008
4066
  n(this, "type", "object");
@@ -4039,7 +4097,7 @@ class zr extends H {
4039
4097
  }
4040
4098
  //#region 净化
4041
4099
  /**
4042
- * 净化对象,返回不带默认属性的对象
4100
+ * 净化对象,只清除默认值属性
4043
4101
  */
4044
4102
  pure(e) {
4045
4103
  let t = {}, r = Object.keys(e);
@@ -4129,7 +4187,7 @@ class zr extends H {
4129
4187
  }
4130
4188
  //#endregion
4131
4189
  }
4132
- class Kr extends H {
4190
+ class Jr extends H {
4133
4191
  constructor() {
4134
4192
  super(...arguments);
4135
4193
  n(this, "type", "string");
@@ -4328,7 +4386,7 @@ class Kr extends H {
4328
4386
  }
4329
4387
  //#endregion
4330
4388
  }
4331
- class Jr extends H {
4389
+ class Qr extends H {
4332
4390
  constructor() {
4333
4391
  super(...arguments);
4334
4392
  n(this, "type", "task");
@@ -4381,7 +4439,7 @@ class Jr extends H {
4381
4439
  });
4382
4440
  }
4383
4441
  }
4384
- class Qr extends H {
4442
+ class Yr extends H {
4385
4443
  constructor() {
4386
4444
  super(...arguments);
4387
4445
  n(this, "type", "type");
@@ -4410,12 +4468,12 @@ class Qr extends H {
4410
4468
  n(this, "isBoolean", (e) => Object.prototype.toString.call(e) == "[object Boolean]");
4411
4469
  }
4412
4470
  }
4413
- class Al {
4471
+ class Tl {
4414
4472
  constructor() {
4415
4473
  n(this, "value");
4416
4474
  }
4417
4475
  }
4418
- class Yr extends H {
4476
+ class Xr extends H {
4419
4477
  constructor() {
4420
4478
  super(...arguments);
4421
4479
  n(this, "type", "time");
@@ -4497,7 +4555,7 @@ class Yr extends H {
4497
4555
  });
4498
4556
  }
4499
4557
  }
4500
- class Xr extends H {
4558
+ class Gr extends H {
4501
4559
  constructor() {
4502
4560
  super(...arguments);
4503
4561
  n(this, "type", "tree");
@@ -4565,21 +4623,21 @@ class Xr extends H {
4565
4623
  */
4566
4624
  n(this, "getParentsById", (e, t, r, s, l = !1) => {
4567
4625
  let a = [];
4568
- return r == null || et(e, t, r, s, a, l), a;
4626
+ return r == null || rt(e, t, r, s, a, l), a;
4569
4627
  });
4570
4628
  /**
4571
4629
  * 获取当前节点的所有孩子节点的集合
4572
4630
  */
4573
4631
  n(this, "getChildrenById", (e, t, r, s, l = !1) => {
4574
4632
  let a = this.getById(e, t, r, s), o = [];
4575
- return l && o.push(a), Se(a, s, o), o;
4633
+ return l && o.push(a), Ae(a, s, o), o;
4576
4634
  });
4577
4635
  /**
4578
4636
  * 获取当前节点的所有孩子节点的集合
4579
4637
  */
4580
4638
  n(this, "getChildren", (e, t, r = !1) => {
4581
4639
  let s = [];
4582
- return r && s.push(e), Se(e, t, s), s;
4640
+ return r && s.push(e), Ae(e, t, s), s;
4583
4641
  });
4584
4642
  /**
4585
4643
  * 搜索指定文本的树结构
@@ -4593,8 +4651,8 @@ class Xr extends H {
4593
4651
  let p = !1, h = this.getChildren(u, r, !0);
4594
4652
  for (let g of h) {
4595
4653
  for (let m of o) {
4596
- let x = g[m];
4597
- if ((x ? x.toUpperCase() : "").indexOf(a) > -1) {
4654
+ let k = g[m];
4655
+ if ((k ? k.toUpperCase() : "").indexOf(a) > -1) {
4598
4656
  p = !0;
4599
4657
  break;
4600
4658
  }
@@ -4653,28 +4711,28 @@ class Xr extends H {
4653
4711
  });
4654
4712
  }
4655
4713
  }
4656
- function et(c, i, e, t, r, s) {
4714
+ function rt(c, i, e, t, r, s) {
4657
4715
  for (let l = 0; l < e.length; l++) {
4658
4716
  let a = e[l];
4659
4717
  if (a[i] == c) {
4660
4718
  s && r.push(a);
4661
4719
  break;
4662
4720
  } else
4663
- d.tree.getById(c, i, a[t], t) != null && (r.push(a), et(c, i, a[t], t, r, s));
4721
+ d.tree.getById(c, i, a[t], t) != null && (r.push(a), rt(c, i, a[t], t, r, s));
4664
4722
  }
4665
4723
  return r;
4666
4724
  }
4667
- function Se(c, i, e) {
4725
+ function Ae(c, i, e) {
4668
4726
  let t = c[i];
4669
4727
  if (!t || t.length == 0)
4670
4728
  return e;
4671
4729
  for (let r = 0; r < t.length; r++) {
4672
4730
  let s = t[r];
4673
- e.push(s), Se(s, i, e);
4731
+ e.push(s), Ae(s, i, e);
4674
4732
  }
4675
4733
  return e;
4676
4734
  }
4677
- class Gr extends H {
4735
+ class Zr extends H {
4678
4736
  constructor() {
4679
4737
  super(...arguments);
4680
4738
  n(this, "type", "scroll");
@@ -4697,7 +4755,7 @@ class Gr extends H {
4697
4755
  });
4698
4756
  }
4699
4757
  }
4700
- class Zr {
4758
+ class es {
4701
4759
  constructor() {
4702
4760
  /**
4703
4761
  * 是否美化
@@ -4705,7 +4763,7 @@ class Zr {
4705
4763
  n(this, "beautify", !1);
4706
4764
  }
4707
4765
  }
4708
- class es extends H {
4766
+ class ts extends H {
4709
4767
  constructor() {
4710
4768
  super(...arguments);
4711
4769
  n(this, "type", "json");
@@ -4732,7 +4790,7 @@ class es extends H {
4732
4790
  serialize(e, t) {
4733
4791
  if (e == null)
4734
4792
  return null;
4735
- t == null && (t = new Zr());
4793
+ t == null && (t = new es());
4736
4794
  let s = (typeof t == "boolean" ? t : t.beautify) ? 2 : null, l;
4737
4795
  if (typeof e == "string") {
4738
4796
  let o = this.deserialize(e);
@@ -4857,7 +4915,7 @@ class es extends H {
4857
4915
  }
4858
4916
  //#endregion
4859
4917
  }
4860
- class ts extends H {
4918
+ class rs extends H {
4861
4919
  constructor() {
4862
4920
  super(...arguments);
4863
4921
  n(this, "type", "browser");
@@ -4869,7 +4927,7 @@ class ts extends H {
4869
4927
  return navigator.language == "zh-CN" ? "zh-cn" : "en";
4870
4928
  }
4871
4929
  }
4872
- class rs extends H {
4930
+ class ss extends H {
4873
4931
  constructor() {
4874
4932
  super(...arguments);
4875
4933
  n(this, "type", "url");
@@ -5072,7 +5130,7 @@ class rs extends H {
5072
5130
  return e ? e.indexOf("http://") > -1 || e.indexOf("https://") > -1 : !1;
5073
5131
  }
5074
5132
  }
5075
- class ss extends H {
5133
+ class ls extends H {
5076
5134
  constructor() {
5077
5135
  super(...arguments);
5078
5136
  n(this, "type", "sign");
@@ -5092,7 +5150,7 @@ class ss extends H {
5092
5150
  return this.clean(e), d.url.serialize(e, t);
5093
5151
  }
5094
5152
  }
5095
- class tt {
5153
+ class st {
5096
5154
  constructor(i, e) {
5097
5155
  /**
5098
5156
  * 距窗口左边的距离
@@ -5105,7 +5163,7 @@ class tt {
5105
5163
  this.x = i, this.y = e;
5106
5164
  }
5107
5165
  }
5108
- class ls extends tt {
5166
+ class ns extends st {
5109
5167
  constructor() {
5110
5168
  super(...arguments);
5111
5169
  /**
@@ -5114,7 +5172,7 @@ class ls extends tt {
5114
5172
  n(this, "affix");
5115
5173
  }
5116
5174
  }
5117
- class Sl extends tt {
5175
+ class El extends st {
5118
5176
  constructor(e, t, r, s) {
5119
5177
  super(e, t);
5120
5178
  n(this, "width");
@@ -5127,7 +5185,7 @@ class se {
5127
5185
  n(this, "type");
5128
5186
  }
5129
5187
  }
5130
- class De extends se {
5188
+ class Ee extends se {
5131
5189
  constructor() {
5132
5190
  super();
5133
5191
  //#region 大小调整
@@ -5207,12 +5265,12 @@ class De extends se {
5207
5265
  return;
5208
5266
  this.dragElement = e;
5209
5267
  let r = !1, s = (o) => (r = !0, o.preventDefault(), t.init(o)), l = (o) => {
5210
- let u = new ls(), p = t.range;
5268
+ let u = new ns(), p = t.range;
5211
5269
  if (p == null)
5212
5270
  u.x = o.clientX, u.y = o.clientY;
5213
5271
  else {
5214
- let { x: h, y: g, width: m, height: x } = p;
5215
- o.clientX < h ? u.x = h : o.clientX > h + m ? u.x = h + m : u.x = o.clientX, o.clientY < g ? u.y = g : o.clientY > g + x ? u.y = g + x : u.y = o.clientY;
5272
+ let { x: h, y: g, width: m, height: k } = p;
5273
+ o.clientX < h ? u.x = h : o.clientX > h + m ? u.x = h + m : u.x = o.clientX, o.clientY < g ? u.y = g : o.clientY > g + k ? u.y = g + k : u.y = o.clientY;
5216
5274
  }
5217
5275
  if (t.affix) {
5218
5276
  if (t.range == null)
@@ -5270,7 +5328,7 @@ class De extends se {
5270
5328
  }
5271
5329
  //#endregion
5272
5330
  }
5273
- class ns extends se {
5331
+ class is extends se {
5274
5332
  constructor() {
5275
5333
  super(...arguments);
5276
5334
  n(this, "events", {});
@@ -5393,14 +5451,14 @@ class ns extends se {
5393
5451
  clearTimeout(this.timer);
5394
5452
  }
5395
5453
  }
5396
- class is extends se {
5454
+ class as extends se {
5397
5455
  /**
5398
5456
  * 对比数据变动
5399
5457
  */
5400
5458
  delta(i, e, t, r) {
5401
5459
  }
5402
5460
  }
5403
- class as extends se {
5461
+ class os extends se {
5404
5462
  /**
5405
5463
  * 初始化,并绑定自动关闭上下文菜单事件
5406
5464
  */
@@ -5440,7 +5498,7 @@ class as extends se {
5440
5498
  }
5441
5499
  }
5442
5500
  }
5443
- class os extends se {
5501
+ class us extends se {
5444
5502
  constructor() {
5445
5503
  super(...arguments);
5446
5504
  //#region 属性
@@ -5546,7 +5604,7 @@ const ne = class ne extends se {
5546
5604
  let u = (await l.getKeysAsync(e)).filter((p) => isNaN(p) && !s.includes(p));
5547
5605
  u.length > 0 && (this.oldKey = u[0], a = await l.replaceEntityAsync(e, this.oldKey, this.key));
5548
5606
  }
5549
- return s.includes(this.key) || s.push(this.key), a != null && d.object.mergeTo(r, a), q(() => JSON.stringify(r), (o, u) => {
5607
+ return s.includes(this.key) || s.push(this.key), a != null && d.object.mergeTo(r, a), W(() => JSON.stringify(r), (o, u) => {
5550
5608
  l != null && this.task.debounce(async () => {
5551
5609
  let p = JSON.parse(o), h = JSON.parse(u);
5552
5610
  this.form = p, await this.saveAsync(p), this.handler != null && await this.handler(p, h);
@@ -5577,15 +5635,15 @@ const ne = class ne extends se {
5577
5635
  let t = ne.opened[this.kind], r = t.indexOf(this.key);
5578
5636
  if (t.splice(r, 1), this.oldKey != null) {
5579
5637
  let s = `/config/delete?kind=${this.kind}&type=${this.oldKey}`;
5580
- await S.post(s);
5638
+ await _.post(s);
5581
5639
  }
5582
5640
  if (e == !0) {
5583
5641
  await this.provider.deleteAsync(this.kind, this.key);
5584
5642
  let s = `/config/delete?kind=${this.kind}&type=${this.key}`;
5585
- await S.post(s);
5643
+ await _.post(s);
5586
5644
  } else if (this.form != null) {
5587
5645
  let s = `/config/save?kind=${this.kind}&type=${this.key}`;
5588
- await S.post(s, this.form);
5646
+ await _.post(s, this.form);
5589
5647
  }
5590
5648
  }
5591
5649
  //#endregion
@@ -5596,8 +5654,8 @@ const ne = class ne extends se {
5596
5654
  * 使用静态对象记录各自工具类开启的窗口,保证同一个kind工具类,被窗口多开时,能够杜绝异步方法导致的变量不一致问题
5597
5655
  */
5598
5656
  n(ne, "opened", {});
5599
- let _e = ne;
5600
- class us extends se {
5657
+ let Se = ne;
5658
+ class cs extends se {
5601
5659
  /**
5602
5660
  * 初始化
5603
5661
  */
@@ -5605,61 +5663,61 @@ class us extends se {
5605
5663
  super();
5606
5664
  }
5607
5665
  }
5608
- class cs extends D {
5666
+ class ds extends D {
5609
5667
  /**
5610
5668
  * 创建固定工具
5611
5669
  */
5612
5670
  affix(i, e) {
5613
- return new us(i, e);
5671
+ return new cs(i, e);
5614
5672
  }
5615
5673
  /**
5616
5674
  * 创建对比工具
5617
5675
  */
5618
5676
  delta() {
5619
- return new is();
5677
+ return new as();
5620
5678
  }
5621
5679
  /**
5622
5680
  * 创建事件工具
5623
5681
  */
5624
5682
  event() {
5625
- return new De();
5683
+ return new Ee();
5626
5684
  }
5627
5685
  /**
5628
5686
  * 创建键盘工具
5629
5687
  */
5630
5688
  keyboard() {
5631
- return new ns();
5689
+ return new is();
5632
5690
  }
5633
5691
  /**
5634
5692
  * 创建鼠标工具
5635
5693
  */
5636
5694
  mouse(i, e = null) {
5637
- return new as(i, e);
5695
+ return new os(i, e);
5638
5696
  }
5639
5697
  /**
5640
5698
  * 创建随机工具
5641
5699
  */
5642
5700
  random() {
5643
- return new os();
5701
+ return new us();
5644
5702
  }
5645
5703
  /**
5646
5704
  * 创建保存工具
5647
5705
  */
5648
5706
  save() {
5649
- return new _e();
5707
+ return new Se();
5650
5708
  }
5651
5709
  }
5652
- class _l extends D {
5710
+ class $l extends D {
5653
5711
  open() {
5654
5712
  super.open(), super.types = [];
5655
5713
  }
5656
5714
  }
5657
- class rt {
5715
+ class lt {
5658
5716
  constructor() {
5659
5717
  n(this, "type");
5660
5718
  }
5661
5719
  }
5662
- class ds extends rt {
5720
+ class ps extends lt {
5663
5721
  constructor() {
5664
5722
  super(...arguments);
5665
5723
  n(this, "type", "Tencent");
@@ -5680,7 +5738,7 @@ class ds extends rt {
5680
5738
  startRecord() {
5681
5739
  }
5682
5740
  }
5683
- class ps extends rt {
5741
+ class hs extends lt {
5684
5742
  constructor() {
5685
5743
  super(...arguments);
5686
5744
  n(this, "type", "Default");
@@ -5694,19 +5752,19 @@ class ps extends rt {
5694
5752
  return "";
5695
5753
  }
5696
5754
  }
5697
- class Cl extends D {
5755
+ class jl extends D {
5698
5756
  open() {
5699
- super.open(), super.types = [ps, ds];
5757
+ super.open(), super.types = [hs, ps];
5700
5758
  }
5701
5759
  }
5702
- let hs = {}, le = {}, S = {}, Be = {}, st = {}, He = {}, gs = {}, ae = {}, fs = async (c) => {
5760
+ let gs = {}, le = {}, _ = {}, Ie = {}, nt = {}, $e = {}, fs = {}, ie = {}, ys = async (c) => {
5703
5761
  let e = await (await y.provider.getDefaultAsync("sys")).getAsync("sys", "app");
5704
- (e == null ? void 0 : e.cdn) != null && (c.cdn = e.cdn), le = await y.cdn.createWithCacheAsync(c.cdn), hs = await y.encoder.getBase64(), S = y.http.halo, He = y.socket.default, Be = await y.i18n.createWithCacheAsync("Default", async (t) => {
5762
+ (e == null ? void 0 : e.cdn) != null && (c.cdn = e.cdn), le = await y.cdn.createWithCacheAsync(c.cdn), gs = await y.encoder.getBase64(), _ = y.http.halo, $e = y.socket.default, Ie = await y.i18n.createWithCacheAsync("Default", async (t) => {
5705
5763
  let r = (e == null ? void 0 : e.language) ?? d.browser.getLanguage(), s = d.json.serialize({ lang: r });
5706
- await t.openAsync(s), fe = t.t, ys = t.t_exists, ms = t.t_sys, vs = t.t_enum, bs = t.t_field, ws = t.t_field_choose_placeholder, xs = t.t_field_placeholder, ks = t.t_table, As = t.t_module, Ss = t.t_menu;
5707
- }), Be.addMessages(c.lang), st = await y.hasher.getMd5(), gs = y.template.create("Liquid"), c.messenger == null ? ae = await y.messenger.getConsole() : ae = c.messenger;
5708
- }, fe = {}, ys = {}, ms = {}, vs = {}, bs = {}, ws = {}, xs = {}, ks = {}, As = {}, Ss = {};
5709
- class _s {
5764
+ await t.openAsync(s), fe = t.t, ms = t.t_exists, vs = t.t_sys, ws = t.t_enum, bs = t.t_field, ks = t.t_field_choose_placeholder, xs = t.t_field_placeholder, As = t.t_table, Ss = t.t_module, _s = t.t_menu;
5765
+ }), Ie.addMessages(c.lang), nt = await y.hasher.getMd5(), fs = y.template.create("Liquid"), c.messenger == null ? ie = await y.messenger.getConsole() : ie = c.messenger;
5766
+ }, fe = {}, ms = {}, vs = {}, ws = {}, bs = {}, ks = {}, xs = {}, As = {}, Ss = {}, _s = {};
5767
+ class Cs {
5710
5768
  constructor() {
5711
5769
  /**
5712
5770
  * 消息发送对象
@@ -5730,10 +5788,10 @@ class _s {
5730
5788
  n(this, "cdn", "Local");
5731
5789
  }
5732
5790
  }
5733
- const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
5791
+ const Ts = { class: "ha-empty" }, Es = { class: "empty-message" }, $s = {
5734
5792
  key: 0,
5735
5793
  class: "empty-content"
5736
- }, Tl = /* @__PURE__ */ F({
5794
+ }, Dl = /* @__PURE__ */ P({
5737
5795
  __name: "Empty",
5738
5796
  props: {
5739
5797
  message: { type: String, default: "暂无数据" },
@@ -5741,18 +5799,18 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
5741
5799
  },
5742
5800
  setup(c) {
5743
5801
  let i = c, { message: e, hasData: t } = z(i);
5744
- return (r, s) => (T(), j("div", Cs, [
5745
- _("div", Ts, W(f(e)), 1),
5746
- f(t) ? (T(), j("div", Es, [
5802
+ return (r, s) => (C(), T("div", Ts, [
5803
+ S("div", Es, N(f(e)), 1),
5804
+ f(t) ? (C(), T("div", $s, [
5747
5805
  Y(r.$slots, "default")
5748
5806
  ])) : ye("", !0)
5749
5807
  ]));
5750
5808
  }
5751
- }), $s = /* @__PURE__ */ F({
5809
+ }), js = /* @__PURE__ */ P({
5752
5810
  __name: "Fill",
5753
5811
  emits: ["resize"],
5754
5812
  setup(c, { emit: i }) {
5755
- let e = i, t = L(), r = L(), s = L(), l = new De(), a = () => {
5813
+ let e = i, t = U(), r = U(), s = U(), l = new Ee(), a = () => {
5756
5814
  let p = d.dom.siblings(t.value);
5757
5815
  s.value = d.dom.getHeight(p);
5758
5816
  }, o = () => {
@@ -5760,118 +5818,118 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
5760
5818
  }, u = () => {
5761
5819
  o();
5762
5820
  };
5763
- return oe(() => {
5821
+ return ae(() => {
5764
5822
  a(), o(), l.resize(t.value, u);
5765
- }), ue(() => {
5823
+ }), oe(() => {
5766
5824
  l.dispose();
5767
- }), (p, h) => (T(), j("div", {
5825
+ }), (p, h) => (C(), T("div", {
5768
5826
  class: "ha-fill",
5769
5827
  ref_key: "fillRef",
5770
5828
  ref: t,
5771
- style: re({ height: `calc(100% - ${f(s)}px)` })
5829
+ style: ee({ height: `calc(100% - ${f(s)}px)` })
5772
5830
  }, [
5773
5831
  Y(p.$slots, "default")
5774
5832
  ], 4));
5775
5833
  }
5776
- }), js = /* @__PURE__ */ F({
5834
+ }), Ds = /* @__PURE__ */ P({
5777
5835
  __name: "Scroller",
5778
5836
  props: {
5779
5837
  options: {}
5780
5838
  },
5781
5839
  emits: ["scroll"],
5782
5840
  setup(c, { expose: i, emit: e }) {
5783
- let t = e, r = c, { options: s } = z(r), l = L(), a = L(), o = L(), u = L(), p = L(!1), h = null, g = null, m = new De(), x = L({ top: null, height: null }), U = (b) => {
5841
+ let t = e, r = c, { options: s } = z(r), l = U(), a = U(), o = U(), u = U(), p = U(!1), h = null, g = null, m = new Ee(), k = U({ top: null, height: null }), O = (w) => {
5784
5842
  if (g == 0)
5785
5843
  return 0;
5786
- let w = g - h;
5787
- return b / w;
5788
- }, M = (b) => {
5789
- let w = h - x.value.height;
5790
- return b / w;
5844
+ let b = g - h;
5845
+ return w / b;
5846
+ }, B = (w) => {
5847
+ let b = h - k.value.height;
5848
+ return w / b;
5791
5849
  }, Q = () => {
5792
5850
  if (g == 0)
5793
5851
  return 80;
5794
- let b = h / g;
5795
- if (b == 1)
5852
+ let w = h / g;
5853
+ if (w == 1)
5796
5854
  return 0;
5797
- let w = h * b;
5798
- return d.math.between(w, 80, 500);
5799
- }, X = (b, w) => {
5800
- let C = U(b), N = (h - w) * C;
5801
- return d.math.between(N, 0, h - w);
5802
- }, E = (b) => {
5803
- let w = Q();
5804
- return { top: X(b, w), height: w };
5805
- }, B = (b) => {
5806
- }, A = (b) => {
5807
- let w = U(b);
5808
- R(w);
5809
- }, R = (b) => {
5810
- let w = d.math.between(b, 0, 1), C = h - x.value.height;
5811
- x.value.top = C * w;
5812
- let V = (g - h) * w;
5813
- s.value.scrollTop = V, a.value.scrollTop != V && (a.value.scrollTop = V);
5814
- }, J = (b) => {
5815
- let w = b.target, C = U(w.scrollTop);
5816
- R(C), t("scroll", w);
5855
+ let b = h * w;
5856
+ return d.math.between(b, 80, 500);
5857
+ }, X = (w, b) => {
5858
+ let E = O(w), V = (h - b) * E;
5859
+ return d.math.between(V, 0, h - b);
5860
+ }, $ = (w) => {
5861
+ let b = Q();
5862
+ return { top: X(w, b), height: b };
5863
+ }, F = (w) => {
5864
+ }, A = (w) => {
5865
+ let b = O(w);
5866
+ R(b);
5867
+ }, R = (w) => {
5868
+ let b = d.math.between(w, 0, 1), E = h - k.value.height;
5869
+ k.value.top = E * b;
5870
+ let q = (g - h) * b;
5871
+ s.value.scrollTop = q, a.value.scrollTop != q && (a.value.scrollTop = q);
5872
+ }, J = (w) => {
5873
+ let b = w.target, E = O(b.scrollTop);
5874
+ R(E), t("scroll", b);
5817
5875
  }, v = () => {
5818
- let b = s.value.scrollTop;
5819
- x.value = E(b), A(b);
5820
- }, k = (b) => {
5876
+ let w = s.value.scrollTop;
5877
+ k.value = $(w), A(w);
5878
+ }, x = (w) => {
5821
5879
  h = d.dom.getHeight(a.value), g = a.value.scrollHeight;
5822
- let w = Q();
5823
- x.value.height = w, x.value.top = X(s.value.scrollTop, w);
5824
- }, $ = (b) => {
5825
- let w = b.target;
5826
- return parseInt(w.style.top);
5827
- }, P = (b, w, C, N) => {
5828
- let V = b.y - w.y, pe = C + V, G = M(pe);
5880
+ let b = Q();
5881
+ k.value.height = b, k.value.top = X(s.value.scrollTop, b);
5882
+ }, j = (w) => {
5883
+ let b = w.target;
5884
+ return parseInt(b.style.top);
5885
+ }, M = (w, b, E, V) => {
5886
+ let q = w.y - b.y, pe = E + q, G = B(pe);
5829
5887
  R(G);
5830
- }, I = (b) => {
5888
+ }, I = (w) => {
5831
5889
  p.value = !0;
5832
- }, O = (b) => {
5890
+ }, L = (w) => {
5833
5891
  p.value = !1;
5834
5892
  };
5835
- return oe(() => {
5836
- v(), m.scroll(a.value, J), m.drag(u.value, { init: $, handler: P }), m.observe(a.value, k), m.mouseDown(u.value, I, O);
5837
- }), ue(() => {
5893
+ return ae(() => {
5894
+ v(), m.scroll(a.value, J), m.drag(u.value, { init: j, handler: M }), m.observe(a.value, x), m.mouseDown(u.value, I, L);
5895
+ }), oe(() => {
5838
5896
  m.dispose();
5839
- }), q(() => s.value.scrollTop, (b, w) => {
5840
- let C = U(b);
5841
- R(C);
5842
- }), i({ scrollTo: A, update: v }), (b, w) => (T(), j("div", {
5897
+ }), W(() => s.value.scrollTop, (w, b) => {
5898
+ let E = O(w);
5899
+ R(E);
5900
+ }), i({ scrollTo: A, update: v }), (w, b) => (C(), T("div", {
5843
5901
  ref_key: "scrollerRef",
5844
5902
  ref: l,
5845
5903
  class: ce(["ha-scroller", { hover: f(p) }])
5846
5904
  }, [
5847
- _("div", {
5905
+ S("div", {
5848
5906
  ref_key: "containerRef",
5849
5907
  ref: a,
5850
5908
  class: "scroller-container"
5851
5909
  }, [
5852
- Y(b.$slots, "default")
5910
+ Y(w.$slots, "default")
5853
5911
  ], 512),
5854
- _("div", {
5912
+ S("div", {
5855
5913
  ref_key: "trackRef",
5856
5914
  ref: o,
5857
5915
  class: "scroller-track",
5858
- onClick: w[0] || (w[0] = //@ts-ignore
5859
- (...C) => f(B) && f(B)(...C))
5916
+ onClick: b[0] || (b[0] = //@ts-ignore
5917
+ (...E) => f(F) && f(F)(...E))
5860
5918
  }, [
5861
- _("div", {
5919
+ S("div", {
5862
5920
  ref_key: "thumbRef",
5863
5921
  ref: u,
5864
5922
  class: "scroller-thumb",
5865
- style: re({ top: `${f(x).top}px`, height: `${f(x).height}px` })
5866
- }, W(f(s).scrollTop), 5)
5923
+ style: ee({ top: `${f(k).top}px`, height: `${f(k).height}px` })
5924
+ }, N(f(s).scrollTop), 5)
5867
5925
  ], 512)
5868
5926
  ], 2));
5869
5927
  }
5870
- }), El = /* @__PURE__ */ F({
5928
+ }), Hl = /* @__PURE__ */ P({
5871
5929
  __name: "Timer",
5872
5930
  emits: ["change"],
5873
5931
  setup(c, { expose: i, emit: e }) {
5874
- let t = e, r = -8 * 60 * 60 * 1e3, s = L(r), l = null, a = 5, o = () => {
5932
+ let t = e, r = -8 * 60 * 60 * 1e3, s = U(r), l = null, a = 5, o = () => {
5875
5933
  l == null && (l = setInterval(() => {
5876
5934
  s.value += a, t("change", s.value);
5877
5935
  }, a));
@@ -5882,11 +5940,11 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
5882
5940
  }, h = () => {
5883
5941
  clearInterval(l), s.value = r;
5884
5942
  };
5885
- return ue(() => {
5943
+ return oe(() => {
5886
5944
  clearInterval(l);
5887
- }), i({ restart: u, start: o, stop: p, reset: h }), (g, m) => (T(), j("span", null, [
5945
+ }), i({ restart: u, start: o, stop: p, reset: h }), (g, m) => (C(), T("span", null, [
5888
5946
  Y(g.$slots, "default"),
5889
- Te(W(f(d).time.format(f(s), "HH:mm:ss SSS")), 1)
5947
+ Pe(N(f(d).time.format(f(s), "HH:mm:ss SSS")), 1)
5890
5948
  ]));
5891
5949
  }
5892
5950
  }), de = (c, i) => {
@@ -5894,13 +5952,13 @@ const Cs = { class: "ha-empty" }, Ts = { class: "empty-message" }, Es = {
5894
5952
  for (const [t, r] of i)
5895
5953
  e[t] = r;
5896
5954
  return e;
5897
- }, Ds = {}, Hs = { class: "ha-card" };
5898
- function Us(c, i) {
5899
- return T(), j("div", Hs, [
5955
+ }, Hs = {}, Us = { class: "ha-card" };
5956
+ function Os(c, i) {
5957
+ return C(), T("div", Us, [
5900
5958
  Y(c.$slots, "default")
5901
5959
  ]);
5902
5960
  }
5903
- const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
5961
+ const Me = /* @__PURE__ */ de(Hs, [["render", Os]]), Ul = /* @__PURE__ */ P({
5904
5962
  __name: "Code",
5905
5963
  props: {
5906
5964
  options: { default: {} },
@@ -5909,95 +5967,95 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
5909
5967
  },
5910
5968
  emits: ["mounted", "change", "scroll", "update:modelValue"],
5911
5969
  setup(c, { expose: i, emit: e }) {
5912
- let t = e, r = c, { options: s, border: l, modelValue: a } = z(r), o = null, u = null, p = null, h = { completion: null, hover: null }, g = L(), { app: m } = Z.sys, x = (v, k) => {
5970
+ let t = e, r = c, { options: s, border: l, modelValue: a } = z(r), o = null, u = null, p = null, h = { completion: null, hover: null }, g = U(), { app: m } = Z.sys, k = (v, x) => {
5913
5971
  h.completion != null && h.completion.dispose();
5914
- let $ = d.array.distinct(k, (P) => P);
5915
- h.completion = U(v, $);
5916
- }, U = (v, k) => v == null || o == null ? null : o.languages.registerCompletionItemProvider(v, {
5917
- provideCompletionItems: (P, I) => {
5918
- let O = P.getWordUntilPosition(I), b = new o.Range(I.lineNumber, O.startColumn, I.lineNumber, O.endColumn), w = [];
5919
- for (let C = 0; C < k.length; C++) {
5920
- let N = k[C], V = {
5921
- label: N,
5972
+ let j = d.array.distinct(x, (M) => M);
5973
+ h.completion = O(v, j);
5974
+ }, O = (v, x) => v == null || o == null ? null : o.languages.registerCompletionItemProvider(v, {
5975
+ provideCompletionItems: (M, I) => {
5976
+ let L = M.getWordUntilPosition(I), w = new o.Range(I.lineNumber, L.startColumn, I.lineNumber, L.endColumn), b = [];
5977
+ for (let E = 0; E < x.length; E++) {
5978
+ let V = x[E], q = {
5979
+ label: V,
5922
5980
  kind: o.languages.CompletionItemKind.Keyword,
5923
- insertText: N,
5924
- detail: N,
5925
- range: b
5981
+ insertText: V,
5982
+ detail: V,
5983
+ range: w
5926
5984
  };
5927
- w.push(V);
5985
+ b.push(q);
5928
5986
  }
5929
- return { suggestions: w };
5987
+ return { suggestions: b };
5930
5988
  }
5931
- }), M = async (v) => {
5932
- let k = Z.editor.intelli;
5933
- if (k[v] != null)
5989
+ }), B = async (v) => {
5990
+ let x = Z.editor.intelli;
5991
+ if (x[v] != null)
5934
5992
  return;
5935
- let $ = o.languages.getLanguages().find((O) => O.id == v);
5936
- if ($ == null)
5993
+ let j = o.languages.getLanguages().find((L) => L.id == v);
5994
+ if (j == null)
5937
5995
  return;
5938
- let P = $.loader;
5939
- if (P == null)
5996
+ let M = j.loader;
5997
+ if (M == null)
5940
5998
  return;
5941
- let I = await P();
5942
- k[v] || (Q(v, I), X(v, I), k[v] = !0);
5943
- }, Q = (v, k) => {
5944
- const $ = ["builtinFunctions", "keywords", "operators"];
5999
+ let I = await M();
6000
+ x[v] || (Q(v, I), X(v, I), x[v] = !0);
6001
+ }, Q = (v, x) => {
6002
+ const j = ["builtinFunctions", "keywords", "operators"];
5945
6003
  return o.languages.registerCompletionItemProvider(v, {
5946
- provideCompletionItems: (I, O) => {
5947
- let b = I.getWordUntilPosition(O), w = new o.Range(O.lineNumber, b.startColumn, O.lineNumber, b.endColumn), C = [];
5948
- for (let N of $) {
5949
- let V = k.language[N];
5950
- if (V == null)
6004
+ provideCompletionItems: (I, L) => {
6005
+ let w = I.getWordUntilPosition(L), b = new o.Range(L.lineNumber, w.startColumn, L.lineNumber, w.endColumn), E = [];
6006
+ for (let V of j) {
6007
+ let q = x.language[V];
6008
+ if (q == null)
5951
6009
  continue;
5952
- let pe = E(N), G, he;
5953
- N == "keywords" ? (G = o.languages.CompletionItemKind.Keyword, he = " ") : N == "operators" ? (G = o.languages.CompletionItemKind.Operator, he = " ") : (G = o.languages.CompletionItemKind.Function, he = "()");
5954
- for (let Ue of V) {
5955
- let Oe = Ue.toLowerCase(), lt = {
5956
- label: Oe,
5957
- documentation: Ue,
5958
- range: w,
6010
+ let pe = $(V), G, he;
6011
+ V == "keywords" ? (G = o.languages.CompletionItemKind.Keyword, he = " ") : V == "operators" ? (G = o.languages.CompletionItemKind.Operator, he = " ") : (G = o.languages.CompletionItemKind.Function, he = "()");
6012
+ for (let je of q) {
6013
+ let De = je.toLowerCase(), it = {
6014
+ label: De,
6015
+ documentation: je,
6016
+ range: b,
5959
6017
  kind: G,
5960
- insertText: Oe + he,
6018
+ insertText: De + he,
5961
6019
  detail: pe
5962
6020
  };
5963
- C.push(lt);
6021
+ E.push(it);
5964
6022
  }
5965
6023
  }
5966
- return { suggestions: C };
6024
+ return { suggestions: E };
5967
6025
  }
5968
6026
  });
5969
- }, X = (v, k) => {
5970
- const $ = ["builtinFunctions", "keywords", "operators"];
6027
+ }, X = (v, x) => {
6028
+ const j = ["builtinFunctions", "keywords", "operators"];
5971
6029
  return o.languages.registerHoverProvider(v, {
5972
- provideHover: (I, O) => {
5973
- let b = I.getWordAtPosition(O);
5974
- if (!b)
6030
+ provideHover: (I, L) => {
6031
+ let w = I.getWordAtPosition(L);
6032
+ if (!w)
5975
6033
  return null;
5976
- for (let w of $) {
5977
- let C = k.language[w];
5978
- if (C == null || C.find((G) => G == b.word.toUpperCase()) == null)
6034
+ for (let b of j) {
6035
+ let E = x.language[b];
6036
+ if (E == null || E.find((G) => G == w.word.toUpperCase()) == null)
5979
6037
  continue;
5980
- let V = E(w);
6038
+ let q = $(b);
5981
6039
  return {
5982
- range: new o.Range(O.lineNumber, O.lineNumber, b.startColumn, b.endColumn),
6040
+ range: new o.Range(L.lineNumber, L.lineNumber, w.startColumn, w.endColumn),
5983
6041
  contents: [
5984
- { value: "**" + b.word + "**" },
5985
- { value: V }
6042
+ { value: "**" + w.word + "**" },
6043
+ { value: q }
5986
6044
  ]
5987
6045
  };
5988
6046
  }
5989
6047
  return null;
5990
6048
  }
5991
6049
  });
5992
- }, E = (v) => {
5993
- let k;
5994
- return v == "keywords" ? k = "关键词" : v == "operators" ? k = "操作符" : k = "函数", k;
5995
- }, B = (v) => v == "default" ? null : "vs-dark", A = async () => {
6050
+ }, $ = (v) => {
6051
+ let x;
6052
+ return v == "keywords" ? x = "关键词" : v == "operators" ? x = "操作符" : x = "函数", x;
6053
+ }, F = (v) => v == "default" ? null : "vs-dark", A = async () => {
5996
6054
  if (g.value == null)
5997
6055
  return;
5998
6056
  let v = null;
5999
6057
  s.value.schema && (v = s.value.category + "/" + d.string.getUniqueId(), Z.tryAddSchema(v, s.value.category, s.value.schema));
6000
- let k = {
6058
+ let x = {
6001
6059
  validate: !0,
6002
6060
  allowComments: !0,
6003
6061
  //允许配置注释
@@ -6006,10 +6064,10 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
6006
6064
  trailingCommas: "ignore"
6007
6065
  //允许末尾逗号
6008
6066
  };
6009
- o.languages.json.jsonDefaults.setDiagnosticsOptions(k), await M(s.value.language);
6010
- let $ = v ? o.Uri.parse(v) : null;
6011
- p = o.editor.createModel(a.value, s.value.language, $);
6012
- let P = {
6067
+ o.languages.json.jsonDefaults.setDiagnosticsOptions(x), await B(s.value.language);
6068
+ let j = v ? o.Uri.parse(v) : null;
6069
+ p = o.editor.createModel(a.value, s.value.language, j);
6070
+ let M = {
6013
6071
  tabSize: 2,
6014
6072
  //Tab缩进大小
6015
6073
  detectIndentation: !1,
@@ -6020,55 +6078,55 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
6020
6078
  //默认已启用代码图
6021
6079
  scrollbar: { verticalScrollbarSize: 0 },
6022
6080
  //关闭最右侧垂直滚动条
6023
- theme: B(m.theme),
6081
+ theme: F(m.theme),
6024
6082
  automaticLayout: !0,
6025
6083
  //根据父元素自动布局
6026
6084
  model: p
6027
6085
  };
6028
- u = o.editor.create(g.value, P), s.value.scrollTop && u.setScrollTop(s.value.scrollTop);
6086
+ u = o.editor.create(g.value, M), s.value.scrollTop && u.setScrollTop(s.value.scrollTop);
6029
6087
  let I = s.value.selection;
6030
6088
  if (I) {
6031
- let O = {
6089
+ let L = {
6032
6090
  startLineNumber: I.startLine,
6033
6091
  endLineNumber: I.endLine,
6034
6092
  startColumn: I.startColumn,
6035
6093
  endColumn: I.endColumn
6036
6094
  };
6037
- u.setSelection(O);
6095
+ u.setSelection(L);
6038
6096
  }
6039
- u.onDidScrollChange((O) => {
6040
- s.value.scrollTop = O.scrollTop, t("scroll", O.scrollTop);
6041
- }), u.onDidChangeModelContent((O) => {
6042
- let b = u.getValue();
6043
- t("update:modelValue", b), t("change", b);
6097
+ u.onDidScrollChange((L) => {
6098
+ s.value.scrollTop = L.scrollTop, t("scroll", L.scrollTop);
6099
+ }), u.onDidChangeModelContent((L) => {
6100
+ let w = u.getValue();
6101
+ t("update:modelValue", w), t("change", w);
6044
6102
  });
6045
6103
  };
6046
- oe(async () => {
6104
+ ae(async () => {
6047
6105
  o = await le.getMonaco(), await A(), t("mounted", o, u);
6048
- }), ue(() => {
6106
+ }), oe(() => {
6049
6107
  var v;
6050
6108
  p == null || p.dispose(), u == null || u.dispose(), (v = h.completion) == null || v.dispose();
6051
6109
  });
6052
6110
  let R = () => {
6053
6111
  u == null || u.layout();
6054
6112
  }, J = () => u;
6055
- return q(() => m.theme, (v, k) => {
6056
- let $ = B(v);
6057
- o.editor.setTheme($);
6058
- }), q(() => m.language, (v, k) => {
6059
- }), q(() => a.value, (v, k) => {
6113
+ return W(() => m.theme, (v, x) => {
6114
+ let j = F(v);
6115
+ o.editor.setTheme(j);
6116
+ }), W(() => m.language, (v, x) => {
6117
+ }), W(() => a.value, (v, x) => {
6060
6118
  if (!u)
6061
6119
  return;
6062
- let $ = u.getValue();
6063
- v != $ && u.setValue(v ?? "");
6064
- }), q(() => s.value.language, async (v, k) => {
6120
+ let j = u.getValue();
6121
+ v != j && u.setValue(v ?? "");
6122
+ }), W(() => s.value.language, async (v, x) => {
6065
6123
  if (!u)
6066
6124
  return;
6067
- let $ = u.getModel();
6068
- o.editor.setModelLanguage($, v), await M(v);
6069
- }), i({ layout: R, getEditor: J, registerIntelli: x }), (v, k) => (T(), Ee($s, null, {
6070
- default: ie(() => [
6071
- _("div", {
6125
+ let j = u.getModel();
6126
+ o.editor.setModelLanguage(j, v), await B(v);
6127
+ }), i({ layout: R, getEditor: J, registerIntelli: k }), (v, x) => (C(), Be(js, null, {
6128
+ default: ue(() => [
6129
+ S("div", {
6072
6130
  ref_key: "editorRef",
6073
6131
  ref: g,
6074
6132
  class: ce(["ha-code", { border: f(l) }])
@@ -6077,7 +6135,7 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
6077
6135
  _: 1
6078
6136
  }));
6079
6137
  }
6080
- }), jl = /* @__PURE__ */ F({
6138
+ }), Ol = /* @__PURE__ */ P({
6081
6139
  __name: "Compare",
6082
6140
  props: {
6083
6141
  inline: { type: Boolean, default: !1 },
@@ -6087,74 +6145,74 @@ const we = /* @__PURE__ */ de(Ds, [["render", Us]]), $l = /* @__PURE__ */ F({
6087
6145
  },
6088
6146
  emits: ["update:modelValue", "update:original", "change"],
6089
6147
  setup(c, { emit: i }) {
6090
- let e = i, t = c, { inline: r, language: s, original: l, modelValue: a } = z(t), o = null, u = null, p = null, h = null, g = null, m = null, x = L(), U = L(), { app: M } = Z.sys, Q = (E) => E == "default" ? null : "vs-dark", X = (E) => {
6091
- u = E.editor.createModel(l.value, s.value), p = E.editor.createModel(a.value, s.value), o = E.editor.createDiffEditor(x.value, {
6148
+ let e = i, t = c, { inline: r, language: s, original: l, modelValue: a } = z(t), o = null, u = null, p = null, h = null, g = null, m = null, k = U(), O = U(), { app: B } = Z.sys, Q = ($) => $ == "default" ? null : "vs-dark", X = ($) => {
6149
+ u = $.editor.createModel(l.value, s.value), p = $.editor.createModel(a.value, s.value), o = $.editor.createDiffEditor(k.value, {
6092
6150
  originalEditable: !0,
6093
6151
  automaticLayout: !0,
6094
6152
  renderSideBySide: !r.value,
6095
6153
  //是否启用行内模式
6096
- theme: Q(M.theme)
6097
- }), o.setModel({ original: u, modified: p }), h = o.getOriginalEditor(), h.onDidChangeModelContent((B) => {
6154
+ theme: Q(B.theme)
6155
+ }), o.setModel({ original: u, modified: p }), h = o.getOriginalEditor(), h.onDidChangeModelContent((F) => {
6098
6156
  let A = h.getValue();
6099
6157
  e("update:original", A), e("change", A);
6100
- }), g = o.getModifiedEditor(), g.onDidChangeModelContent((B) => {
6158
+ }), g = o.getModifiedEditor(), g.onDidChangeModelContent((F) => {
6101
6159
  let A = g.getValue();
6102
6160
  e("update:modelValue", A);
6103
6161
  });
6104
6162
  };
6105
- return oe(async () => {
6163
+ return ae(async () => {
6106
6164
  m = await le.getMonaco(), X(m);
6107
- }), q(() => M.theme, (E, B) => {
6108
- let A = Q(E);
6165
+ }), W(() => B.theme, ($, F) => {
6166
+ let A = Q($);
6109
6167
  m.editor.setTheme(A);
6110
- }), q(() => s.value, (E, B) => {
6111
- u && m.editor.setModelLanguage(u, E), p && m.editor.setModelLanguage(p, E);
6112
- }), q(() => l.value, (E, B) => {
6168
+ }), W(() => s.value, ($, F) => {
6169
+ u && m.editor.setModelLanguage(u, $), p && m.editor.setModelLanguage(p, $);
6170
+ }), W(() => l.value, ($, F) => {
6113
6171
  if (!u)
6114
6172
  return;
6115
6173
  let A = u.getValue();
6116
- E != A && u.setValue(E ?? "");
6117
- }), q(() => a.value, (E, B) => {
6174
+ $ != A && u.setValue($ ?? "");
6175
+ }), W(() => a.value, ($, F) => {
6118
6176
  if (!p)
6119
6177
  return;
6120
6178
  let A = p.getValue();
6121
- E != A && p.setValue(E ?? "");
6122
- }), (E, B) => (T(), j("div", {
6179
+ $ != A && p.setValue($ ?? "");
6180
+ }), ($, F) => (C(), T("div", {
6123
6181
  ref_key: "compareRef",
6124
- ref: x,
6182
+ ref: k,
6125
6183
  class: "ha-compare",
6126
- style: re(f(U))
6184
+ style: ee(f(O))
6127
6185
  }, null, 4));
6128
6186
  }
6129
- }), Os = {}, Ls = { class: "ha-input" };
6130
- function Rs(c, i) {
6131
- return T(), j("div", Ls, i[0] || (i[0] = [
6132
- _("input", { type: "text" }, null, -1)
6187
+ }), Ls = {}, Rs = { class: "ha-input" };
6188
+ function Is(c, i) {
6189
+ return C(), T("div", Rs, i[0] || (i[0] = [
6190
+ S("input", { type: "text" }, null, -1)
6133
6191
  ]));
6134
6192
  }
6135
- const Dl = /* @__PURE__ */ de(Os, [["render", Rs]]), Is = {}, Ps = { class: "ha-option" };
6136
- function Ms(c, i) {
6137
- return T(), j("div", Ps, "选项");
6193
+ const Ll = /* @__PURE__ */ de(Ls, [["render", Is]]), Ms = {}, Ps = { class: "ha-option" };
6194
+ function Bs(c, i) {
6195
+ return C(), T("div", Ps, "选项");
6138
6196
  }
6139
- const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text" }, Hl = /* @__PURE__ */ F({
6197
+ const Fs = /* @__PURE__ */ de(Ms, [["render", Bs]]), Ns = { class: "ha-rich-text" }, Rl = /* @__PURE__ */ P({
6140
6198
  __name: "RichText",
6141
- props: /* @__PURE__ */ Le({
6199
+ props: /* @__PURE__ */ He({
6142
6200
  options: {}
6143
6201
  }, {
6144
6202
  modelValue: {},
6145
6203
  modelModifiers: {}
6146
6204
  }),
6147
- emits: /* @__PURE__ */ Le(["change", "scroll"], ["update:modelValue"]),
6205
+ emits: /* @__PURE__ */ He(["change", "scroll"], ["update:modelValue"]),
6148
6206
  setup(c, { expose: i, emit: e }) {
6149
- let t = e, r = c, { options: s } = z(r), l = Fe(c, "modelValue"), a, o = null, u = null, p = !1, h = !1, g = L(), m = L(), x = L(), U = L(!1), M = L({ style: null, options: { scrollTop: 0 } }), Q = (A) => {
6150
- let R = d.time.getDateString(), J = getSelection(), v = J.getRangeAt(0), k = v.startContainer;
6151
- if (k.nodeName == "#text")
6152
- k.insertData(v.startOffset, R), v.setStart(k, v.startOffset + R.length), J.removeAllRanges(), J.addRange(v);
6207
+ let t = e, r = c, { options: s } = z(r), l = Fe(c, "modelValue"), a, o = null, u = null, p = !1, h = !1, g = U(), m = U(), k = U(), O = U(!1), B = U({ style: null, options: { scrollTop: 0 } }), Q = (A) => {
6208
+ let R = d.time.getDateString(), J = getSelection(), v = J.getRangeAt(0), x = v.startContainer;
6209
+ if (x.nodeName == "#text")
6210
+ x.insertData(v.startOffset, R), v.setStart(x, v.startOffset + R.length), J.removeAllRanges(), J.addRange(v);
6153
6211
  else {
6154
- let $ = document.createTextNode(R);
6155
- k.appendChild($);
6156
- let P = document.createRange();
6157
- P.selectNodeContents($), P.setStart($, P.startOffset + R.length), J.removeAllRanges(), J.addRange(P);
6212
+ let j = document.createTextNode(R);
6213
+ x.appendChild(j);
6214
+ let M = document.createRange();
6215
+ M.selectNodeContents(j), M.setStart(j, M.startOffset + R.length), J.removeAllRanges(), J.addRange(M);
6158
6216
  }
6159
6217
  }, X = (A) => {
6160
6218
  if (o.scrollTop = A.scrollTop, p || h) {
@@ -6162,7 +6220,7 @@ const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text
6162
6220
  return;
6163
6221
  }
6164
6222
  u = A, t("scroll", A);
6165
- }, E = () => `height: calc(100% - ${d.dom.getHeight(m.value)}px)`, B = async () => {
6223
+ }, $ = () => `height: calc(100% - ${d.dom.getHeight(m.value)}px)`, F = async () => {
6166
6224
  let A = await le.getQuill();
6167
6225
  a = new A(g.value, {
6168
6226
  modules: {
@@ -6172,43 +6230,43 @@ const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text
6172
6230
  }
6173
6231
  },
6174
6232
  theme: "snow"
6175
- }), U.value = !0, Re(() => {
6176
- M.value.style = E();
6177
- }), s.value.readonly && a.disable(), o = g.value.querySelector(".ql-editor"), o.innerHTML = l.value, M.value.options.scrollTop = s.value.scrollTop, a.on("text-change", (R, J, v) => {
6233
+ }), O.value = !0, Ue(() => {
6234
+ B.value.style = $();
6235
+ }), s.value.readonly && a.disable(), o = g.value.querySelector(".ql-editor"), o.innerHTML = l.value, B.value.options.scrollTop = s.value.scrollTop, a.on("text-change", (R, J, v) => {
6178
6236
  o.innerHTML != l.value && (p = !0, l.value = o.innerHTML);
6179
6237
  }), o.addEventListener("paste", (R) => {
6180
6238
  h = !0;
6181
6239
  });
6182
6240
  };
6183
- return oe(() => {
6184
- B();
6185
- }), ue(() => {
6241
+ return ae(() => {
6242
+ F();
6243
+ }), oe(() => {
6186
6244
  a = null;
6187
- }), q(() => l.value, (A, R) => {
6245
+ }), W(() => l.value, (A, R) => {
6188
6246
  o && o.innerHTML != A && (o.innerHTML = A);
6189
- }), q(() => s.value.scrollTop, (A, R) => {
6190
- A != null && (u == null ? void 0 : u.scrollTop) != A && Re(() => {
6191
- M.value.options.scrollTop = A;
6247
+ }), W(() => s.value.scrollTop, (A, R) => {
6248
+ A != null && (u == null ? void 0 : u.scrollTop) != A && Ue(() => {
6249
+ B.value.options.scrollTop = A;
6192
6250
  });
6193
- }), i({}), (A, R) => (T(), j("div", Fs, [
6194
- ot(_("div", {
6251
+ }), i({}), (A, R) => (C(), T("div", Ns, [
6252
+ ct(S("div", {
6195
6253
  ref_key: "toolbarRef",
6196
6254
  ref: m
6197
6255
  }, R[0] || (R[0] = [
6198
- ut('<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)
6256
+ dt('<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)
6199
6257
  ]), 512), [
6200
- [ct, f(U)]
6258
+ [pt, f(O)]
6201
6259
  ]),
6202
- te(f(js), {
6260
+ re(f(Ds), {
6203
6261
  ref_key: "scrollerRef",
6204
- ref: x,
6262
+ ref: k,
6205
6263
  class: "ql-body",
6206
- options: f(M).options,
6264
+ options: f(B).options,
6207
6265
  onScroll: f(X),
6208
- style: re(f(M).style)
6266
+ style: ee(f(B).style)
6209
6267
  }, {
6210
- default: ie(() => [
6211
- _("div", {
6268
+ default: ue(() => [
6269
+ S("div", {
6212
6270
  ref_key: "editorRef",
6213
6271
  ref: g
6214
6272
  }, null, 512)
@@ -6217,17 +6275,17 @@ const Bs = /* @__PURE__ */ de(Is, [["render", Ms]]), Fs = { class: "ha-rich-text
6217
6275
  }, 8, ["options", "onScroll", "style"])
6218
6276
  ]));
6219
6277
  }
6220
- }), Ns = {}, Vs = { class: "ha-select" };
6221
- function qs(c, i) {
6222
- return T(), j("div", Vs, i[0] || (i[0] = [
6223
- _("div", { class: "select-title" }, "头", -1),
6224
- _("div", { class: "select-body" }, [
6225
- _("input", { type: "text" })
6278
+ }), Vs = {}, qs = { class: "ha-select" };
6279
+ function Ws(c, i) {
6280
+ return C(), T("div", qs, i[0] || (i[0] = [
6281
+ S("div", { class: "select-title" }, "头", -1),
6282
+ S("div", { class: "select-body" }, [
6283
+ S("input", { type: "text" })
6226
6284
  ], -1)
6227
6285
  ]));
6228
6286
  }
6229
- const xe = /* @__PURE__ */ de(Ns, [["render", qs]]);
6230
- class Ul {
6287
+ const be = /* @__PURE__ */ de(Vs, [["render", Ws]]);
6288
+ class Il {
6231
6289
  /**
6232
6290
  * 初始化
6233
6291
  */
@@ -6251,7 +6309,7 @@ class Ul {
6251
6309
  this.startLine = i, this.endLine = e, this.startColumn = t, this.endColumn = r;
6252
6310
  }
6253
6311
  }
6254
- const Ws = { class: "ha-condition" }, zs = /* @__PURE__ */ F({
6312
+ const zs = { class: "ha-condition" }, Ks = /* @__PURE__ */ P({
6255
6313
  __name: "Condition",
6256
6314
  props: {
6257
6315
  name: {},
@@ -6260,79 +6318,81 @@ const Ws = { class: "ha-condition" }, zs = /* @__PURE__ */ F({
6260
6318
  },
6261
6319
  setup(c) {
6262
6320
  let i = c, { name: e, operator: t, value: r } = z(i);
6263
- return (s, l) => (T(), j("div", Ws, [
6264
- te(f(xe), {
6321
+ return (s, l) => (C(), T("div", zs, [
6322
+ re(f(be), {
6265
6323
  modelValue: f(e),
6266
6324
  "onUpdate:modelValue": l[0] || (l[0] = (a) => ve(e) ? e.value = a : e = a)
6267
6325
  }, null, 8, ["modelValue"]),
6268
- te(f(xe), {
6326
+ re(f(be), {
6269
6327
  modelValue: f(t),
6270
6328
  "onUpdate:modelValue": l[1] || (l[1] = (a) => ve(t) ? t.value = a : t = a)
6271
6329
  }, {
6272
- default: ie(() => [
6273
- te(f(Bs))
6330
+ default: ue(() => [
6331
+ re(f(Fs))
6274
6332
  ]),
6275
6333
  _: 1
6276
6334
  }, 8, ["modelValue"]),
6277
- te(f(xe), {
6335
+ re(f(be), {
6278
6336
  modelValue: f(r),
6279
6337
  "onUpdate:modelValue": l[2] || (l[2] = (a) => ve(r) ? r.value = a : r = a)
6280
6338
  }, null, 8, ["modelValue"])
6281
6339
  ]));
6282
6340
  }
6283
- }), Ks = { class: "ha-condition-group" }, Ol = /* @__PURE__ */ F({
6341
+ }), Js = { class: "ha-condition-group" }, Ml = /* @__PURE__ */ P({
6284
6342
  __name: "Index",
6285
6343
  props: {
6286
6344
  conditions: {}
6287
6345
  },
6288
6346
  setup(c) {
6289
6347
  let i = c, { conditions: e } = z(i);
6290
- return (t, r) => (T(), j("div", Ks, [
6291
- (T(!0), j(dt, null, pt(f(e), (s) => (T(), Ee(f(zs), {
6348
+ return (t, r) => (C(), T("div", Js, [
6349
+ (C(!0), T(Ne, null, Ve(f(e), (s) => (C(), Be(f(Ks), {
6292
6350
  name: s.name,
6293
6351
  operator: s.operator,
6294
6352
  value: s.value
6295
6353
  }, null, 8, ["name", "operator", "value"]))), 256))
6296
6354
  ]));
6297
6355
  }
6298
- }), Js = {}, Qs = { class: "ha-col" };
6299
- function Ys(c, i) {
6300
- return T(), j("div", Qs, [
6356
+ }), Qs = {}, Ys = { class: "ha-col" };
6357
+ function Xs(c, i) {
6358
+ return C(), T("div", Ys, [
6301
6359
  Y(c.$slots, "default")
6302
6360
  ]);
6303
6361
  }
6304
- const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
6362
+ const Pl = /* @__PURE__ */ de(Qs, [["render", Xs]]), Bl = /* @__PURE__ */ P({
6305
6363
  __name: "Container",
6306
6364
  props: {
6307
6365
  container: { type: Boolean, default: !0 }
6308
6366
  },
6309
6367
  setup(c) {
6310
6368
  let i = c, { container: e } = z(i);
6311
- return (t, r) => (T(), j("div", {
6369
+ return (t, r) => (C(), T("div", {
6312
6370
  class: ce({ "ha-container": f(e) })
6313
6371
  }, [
6314
6372
  Y(t.$slots, "default")
6315
6373
  ], 2));
6316
6374
  }
6317
- }), Il = /* @__PURE__ */ F({
6375
+ }), Fl = /* @__PURE__ */ P({
6318
6376
  __name: "Row",
6319
6377
  props: {
6320
6378
  gap: {},
6321
6379
  direction: {}
6322
6380
  },
6323
- setup(c) {
6324
- let i = c, { gap: e, direction: t } = z(i), r = ge(() => {
6325
- let s = { gap: null };
6326
- return e.value && (s.gap = e.value + "px"), s;
6327
- });
6328
- return (s, l) => (T(), j("div", {
6329
- class: ce(["ha-row", f(t)]),
6330
- style: re(f(r))
6381
+ setup(c, { expose: i }) {
6382
+ let e = c, { gap: t, direction: r } = z(e), s = U(), l = ge(() => {
6383
+ let a = { gap: null };
6384
+ return t.value && (a.gap = t.value + "px"), a;
6385
+ });
6386
+ return i({ ref: s }), (a, o) => (C(), T("div", {
6387
+ ref_key: "rowRef",
6388
+ ref: s,
6389
+ class: ce(["ha-row", f(r)]),
6390
+ style: ee(f(l))
6331
6391
  }, [
6332
- Y(s.$slots, "default")
6392
+ Y(a.$slots, "default")
6333
6393
  ], 6));
6334
6394
  }
6335
- }), Pl = /* @__PURE__ */ F({
6395
+ }), Nl = /* @__PURE__ */ P({
6336
6396
  __name: "Index",
6337
6397
  props: {
6338
6398
  modelValue: { type: Boolean },
@@ -6340,7 +6400,7 @@ const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
6340
6400
  },
6341
6401
  emits: ["update:modelValue"],
6342
6402
  setup(c) {
6343
- let i = Fe(c, "modelValue"), e = L(!0), t = L(0), r = null, s = () => {
6403
+ let i = Fe(c, "modelValue"), e = U(!0), t = U(0), r = null, s = () => {
6344
6404
  t.value = 0, e.value = !0, r = setInterval(() => {
6345
6405
  if (t.value < 100) {
6346
6406
  t.value++;
@@ -6356,70 +6416,73 @@ const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
6356
6416
  }, 200));
6357
6417
  }, u);
6358
6418
  };
6359
- return oe(() => {
6419
+ return ae(() => {
6360
6420
  i.value && s();
6361
- }), ue(() => {
6421
+ }), oe(() => {
6362
6422
  clearInterval(r);
6363
- }), q(() => i.value, (a, o) => {
6423
+ }), W(() => i.value, (a, o) => {
6364
6424
  a ? s() : l();
6365
- }), (a, o) => f(e) ? (T(), j("div", {
6425
+ }), (a, o) => f(e) ? (C(), T("div", {
6366
6426
  key: 0,
6367
6427
  class: "ha-progress",
6368
- style: re({ width: f(t) + "%" })
6428
+ style: ee({ width: f(t) + "%" })
6369
6429
  }, null, 4)) : ye("", !0);
6370
6430
  }
6371
- }), Xs = { class: "progress-tip info" }, Gs = { class: "progress-tip success" }, Zs = { class: "progress-tip error" }, el = { class: "progress-bar" }, tl = { class: "progress-text" }, Ml = /* @__PURE__ */ F({
6431
+ }), Gs = { class: "progress-tip success" }, Zs = { class: "progress-tip error" }, el = { class: "progress-bar" }, tl = { class: "progress-info" }, rl = { key: 0 }, sl = { class: "progress-text" }, Vl = /* @__PURE__ */ P({
6372
6432
  __name: "SocketProgress",
6373
6433
  props: {
6434
+ title: {},
6435
+ current: {},
6374
6436
  progress: {}
6375
6437
  },
6376
6438
  setup(c) {
6377
- let i = c, { progress: e } = z(i), t = ge(() => d.math.getPercentage(e.value.handled, e.value.total)), r = ge(() => `${e.value.handled ?? "-"}/${e.value.total ?? "-"}`), s = ge(() => d.math.getPercentageText(e.value.handled, e.value.total));
6378
- return (l, a) => (T(), j("div", {
6439
+ let i = c, { title: e, current: t, progress: r } = z(i), s = ge(() => d.math.getPercentage(r.value.handled, r.value.total)), l = ge(() => `${r.value.handled ?? "-"}/${r.value.total ?? "-"}`), a = ge(() => d.math.getPercentageText(r.value.handled, r.value.total));
6440
+ return (o, u) => (C(), T("div", {
6379
6441
  class: ce(["ha-socket-progress", {
6380
- error: f(e).errored > 0 && f(e).errored == f(e).handled,
6381
- warning: f(e).errored > 0 && f(e).errored < f(e).handled
6442
+ error: f(r).errored > 0 && f(r).errored == f(r).handled,
6443
+ warning: f(r).errored > 0 && f(r).errored < f(r).handled
6382
6444
  }])
6383
6445
  }, [
6384
- f(e).elapsed ? (T(), Ee(f(we), { key: 0 }, {
6385
- default: ie(() => [
6386
- Te(" 耗时:" + W(f(d).math.round(f(e).elapsed / 1e3, 2)) + "s ", 1)
6387
- ]),
6388
- _: 1
6389
- })) : ye("", !0),
6390
- te(f(we), { class: "progress-tips" }, {
6391
- default: ie(() => [
6392
- _("div", Xs, "进度:" + W(f(r)), 1),
6393
- _("div", Gs, "成功:" + W(f(e).succeed ?? "-"), 1),
6394
- _("div", Zs, "异常:" + W(f(e).errored ?? "-"), 1),
6395
- Y(l.$slots, "default")
6446
+ re(f(Me), { class: "progress-tips" }, {
6447
+ default: ue(() => [
6448
+ S("div", Gs, "成功:" + N(f(r).succeed ?? "-"), 1),
6449
+ S("div", Zs, "异常:" + N(f(r).errored ?? "-"), 1),
6450
+ Y(o.$slots, "default")
6396
6451
  ]),
6397
6452
  _: 3
6398
6453
  }),
6399
- te(f(we), { class: "progress-chart" }, {
6400
- default: ie(() => [
6401
- _("div", el, [
6402
- _("div", {
6403
- class: "progress-percentage",
6404
- style: re({ width: f(t) + "%" })
6405
- }, null, 4)
6406
- ]),
6407
- _("div", tl, W(f(s)) + "%", 1)
6408
- ]),
6454
+ re(f(Me), { class: "progress-chart" }, {
6455
+ default: ue(() => {
6456
+ var p;
6457
+ return [
6458
+ S("div", el, [
6459
+ S("div", {
6460
+ class: "progress-percentage",
6461
+ style: ee({ width: f(s) + "%" })
6462
+ }, null, 4),
6463
+ S("div", tl, [
6464
+ S("div", null, N(f(e)) + ":" + N(((p = f(r).current) == null ? void 0 : p[f(t)]) ?? "-"), 1),
6465
+ f(r).elapsed ? (C(), T("div", rl, "耗时:" + N(f(d).math.round(f(r).elapsed / 1e3, 2)) + "s", 1)) : ye("", !0),
6466
+ S("div", null, "进度:" + N(f(l)), 1)
6467
+ ])
6468
+ ]),
6469
+ S("div", sl, N(f(a)) + "%", 1)
6470
+ ];
6471
+ }),
6409
6472
  _: 1
6410
6473
  })
6411
6474
  ], 2));
6412
6475
  }
6413
- }), rl = {
6476
+ }), ll = {
6414
6477
  key: 0,
6415
6478
  class: "ha-spinner is-error"
6416
- }, sl = { class: "spinner-title" }, ll = {
6479
+ }, nl = { class: "spinner-title" }, il = {
6417
6480
  key: 0,
6418
6481
  class: "spinner-content"
6419
- }, nl = { class: "stack" }, il = {
6482
+ }, al = { class: "stack" }, ol = {
6420
6483
  key: 1,
6421
6484
  class: "ha-spinner is-loading"
6422
- }, al = { class: "spinner-loading" }, ol = { class: "spinner-text" }, Bl = /* @__PURE__ */ F({
6485
+ }, ul = { class: "spinner-loading" }, cl = { class: "spinner-text" }, ql = /* @__PURE__ */ P({
6423
6486
  __name: "Spinner",
6424
6487
  props: {
6425
6488
  title: { type: String },
@@ -6432,172 +6495,190 @@ const Ll = /* @__PURE__ */ de(Js, [["render", Ys]]), Rl = /* @__PURE__ */ F({
6432
6495
  let e = i, t = c, { title: r, content: s } = z(t), l = () => {
6433
6496
  e("retry");
6434
6497
  };
6435
- return (a, o) => f(r) || f(s) ? (T(), j("div", rl, [
6436
- _("div", sl, [
6437
- Te(W(f(r)), 1),
6438
- _("a", {
6498
+ return (a, o) => f(r) || f(s) ? (C(), T("div", ll, [
6499
+ S("div", nl, [
6500
+ Pe(N(f(r)), 1),
6501
+ S("a", {
6439
6502
  class: "retry",
6440
6503
  onClick: o[0] || (o[0] = //@ts-ignore
6441
6504
  (...u) => f(l) && f(l)(...u))
6442
- }, W(f(fe)("common.retry")), 1)
6505
+ }, N(f(fe)("common.retry")), 1)
6443
6506
  ]),
6444
- f(s) ? (T(), j("div", ll, [
6445
- _("div", nl, W(f(s)), 1)
6507
+ f(s) ? (C(), T("div", il, [
6508
+ S("div", al, N(f(s)), 1)
6446
6509
  ])) : ye("", !0)
6447
- ])) : (T(), j("div", il, [
6448
- _("div", al, [
6449
- o[1] || (o[1] = _("div", { class: "spinner-dots" }, [
6450
- _("i"),
6451
- _("i"),
6452
- _("i"),
6453
- _("i")
6510
+ ])) : (C(), T("div", ol, [
6511
+ S("div", ul, [
6512
+ o[1] || (o[1] = S("div", { class: "spinner-dots" }, [
6513
+ S("i"),
6514
+ S("i"),
6515
+ S("i"),
6516
+ S("i")
6454
6517
  ], -1)),
6455
- _("div", ol, W(f(fe)("common.loading")) + "...", 1)
6518
+ S("div", cl, N(f(fe)("common.loading")) + "...", 1)
6456
6519
  ])
6457
6520
  ]));
6458
6521
  }
6459
- }), ul = { class: "ha-tab" }, Fl = /* @__PURE__ */ F({
6522
+ }), dl = { class: "ha-tab" }, Wl = /* @__PURE__ */ P({
6460
6523
  __name: "Tab",
6461
6524
  props: {
6462
6525
  mode: {},
6463
6526
  destroy: { type: Boolean }
6464
6527
  },
6465
6528
  setup(c) {
6466
- return z(c), (e, t) => (T(), j("div", ul, t[0] || (t[0] = [
6467
- _("div", { class: "tab-header" }, null, -1),
6468
- _("div", { class: "tab-body" }, null, -1)
6529
+ return z(c), (e, t) => (C(), T("div", dl, t[0] || (t[0] = [
6530
+ S("div", { class: "tab-header" }, null, -1),
6531
+ S("div", { class: "tab-body" }, null, -1)
6469
6532
  ])));
6470
6533
  }
6534
+ }), pl = { class: "ha-dance" }, zl = /* @__PURE__ */ P({
6535
+ __name: "Dance",
6536
+ props: {
6537
+ text: {},
6538
+ delay: { default: 0 }
6539
+ },
6540
+ setup(c) {
6541
+ let i = c, { text: e, delay: t } = z(i);
6542
+ return (r, s) => (C(), T("div", pl, [
6543
+ (C(!0), T(Ne, null, Ve(f(e), (l, a) => (C(), T("div", {
6544
+ class: "char",
6545
+ style: ee({ animationDelay: `${f(t) + a * 0.1}s` })
6546
+ }, N(l), 5))), 256))
6547
+ ]));
6548
+ }
6471
6549
  });
6472
- let Nl = async (c) => {
6473
- c == null && (c = new _s()), await fs(c), await At();
6474
- let i = await Dt.getSso(), e = Z.sys.app, t = { baseUrl: c.baseUrl, language: e.language, user: i, platform: "pc" }, r = d.json.serialize(t);
6475
- await S.openAsync(r);
6550
+ let Kl = async (c) => {
6551
+ c == null && (c = new Cs()), await ys(c), await St();
6552
+ let i = await Ht.getSso(), e = Z.sys.app, t = { baseUrl: c.baseUrl, language: e.language, user: i, platform: "pc" }, r = d.json.serialize(t);
6553
+ await _.openAsync(r);
6476
6554
  let s = { url: c.socketUrl }, l = d.json.serialize(s);
6477
- await He.openAsync(l), S.onResponse = async (a) => {
6478
- let { data: o } = a;
6479
- return a.status != 200 ? (Ie.add(a.status.toString(), a.message, "网络错误", a.elapsed), ae.error(a.message), Promise.reject(a)) : o.code == null ? Promise.resolve() : o.code == "Ok" ? (Ie.add(o.code, o.message, o.stack, o.elapsed), Promise.resolve()) : (ae.error(o.message), Promise.reject(o));
6555
+ await $e.openAsync(l), _.onResponse = async (a) => {
6556
+ let { ok: o, status: u, data: p } = a;
6557
+ return o == !1 ? (Oe.add(u.toString(), a.message, "网络错误", a.elapsed), ie.error(a.message), Promise.reject(a)) : p.code == null || (Oe.add(p.code, p.message, p.stack, p.elapsed), p.code == "Ok") ? Promise.resolve() : (ie.error(p.message), Promise.reject(p));
6480
6558
  };
6481
6559
  };
6482
6560
  export {
6483
- Lr as ArrayUtil,
6484
- ts as BrowserUtil,
6561
+ Rr as ArrayUtil,
6562
+ rs as BrowserUtil,
6485
6563
  Pt as BuilderFactory,
6486
- Je as Cdn,
6487
- Ft as CdnFactory,
6488
- Rr as ComponentUtil,
6489
- _s as CreateFeOptions,
6490
- is as DeltaUtility,
6564
+ Ye as Cdn,
6565
+ Nt as CdnFactory,
6566
+ Ir as ComponentUtil,
6567
+ Cs as CreateFeOptions,
6568
+ as as DeltaUtility,
6491
6569
  Pr as DictionaryUtil,
6492
- Ir as DomUtil,
6493
- ls as DragEvent,
6494
- qt as EncoderFactory,
6495
- Mr as EventUtil,
6496
- De as EventUtility,
6497
- Kt as ExcelFactory,
6498
- Yt as ExplainerFactory,
6570
+ Mr as DomUtil,
6571
+ ns as DragEvent,
6572
+ Wt as EncoderFactory,
6573
+ Br as EventUtil,
6574
+ Ee as EventUtility,
6575
+ Jt as ExcelFactory,
6576
+ Xt as ExplainerFactory,
6499
6577
  y as Factories,
6500
6578
  D as Factory,
6501
- er as FeatureFactory,
6502
- Br as FileUtil,
6503
- we as HaCard,
6504
- $l as HaCode,
6505
- Ll as HaCol,
6506
- jl as HaCompare,
6507
- zs as HaCondition,
6508
- Ol as HaConditionGroup,
6509
- Rl as HaContainer,
6510
- Tl as HaEmpty,
6511
- $s as HaFill,
6512
- Dl as HaInput,
6513
- Bs as HaOption,
6514
- Pl as HaProgress,
6515
- Hl as HaRichText,
6516
- Il as HaRow,
6517
- js as HaScroller,
6518
- xe as HaSelect,
6519
- Ml as HaSocketProgress,
6520
- Bl as HaSpinner,
6521
- Fl as HaTab,
6522
- El as HaTimer,
6523
- ar as HaloHttp,
6524
- sr as HasherFactory,
6525
- Fr as HtmlUtil,
6526
- or as HttpFactory,
6527
- Ge as HttpRequest,
6528
- Me as HttpResponse,
6529
- dr as I18nFactory,
6530
- Nr as ImageUtil,
6531
- es as JsonUtil,
6532
- ns as KeyboardUtility,
6533
- Vr as MathUtil,
6534
- pr as Messenger,
6535
- gr as MessengerFactory,
6536
- qr as MicroUtil,
6537
- Wr as MountUtil,
6538
- as as MouseUtility,
6539
- zr as ObjectUtil,
6540
- tt as Position,
6541
- Rt as ProviderFactory,
6542
- xl as ProviderTable,
6543
- os as RandomUtility,
6544
- Ul as Range,
6545
- Sl as Rect,
6546
- Al as Ref,
6547
- wt as RepoFactory,
6548
- _e as SaveUtility,
6549
- Gr as ScrollUtil,
6550
- ss as SignUtil,
6551
- mr as SignerFactory,
6552
- wr as SocketFactory,
6553
- kl as SocketProgress,
6554
- Pe as SqlHelper,
6555
- Tr as SsoFactory,
6556
- Ze as SsoUser,
6557
- Kr as StringUtil,
6558
- jt as SvcFactory,
6559
- jr as TaskFactory,
6560
- Jr as TaskUtil,
6561
- Ur as TemplateFactory,
6562
- Yr as TimeUtil,
6563
- Xr as TreeUtil,
6564
- Qr as TypeUtil,
6565
- rs as UrlUtil,
6566
- Or as UtilFactory,
6567
- cs as UtilityFactory,
6579
+ tr as FeatureFactory,
6580
+ Fr as FileUtil,
6581
+ Me as HaCard,
6582
+ Ul as HaCode,
6583
+ Pl as HaCol,
6584
+ Ol as HaCompare,
6585
+ Ks as HaCondition,
6586
+ Ml as HaConditionGroup,
6587
+ Bl as HaContainer,
6588
+ zl as HaDance,
6589
+ Dl as HaEmpty,
6590
+ js as HaFill,
6591
+ Ll as HaInput,
6592
+ Fs as HaOption,
6593
+ Nl as HaProgress,
6594
+ Rl as HaRichText,
6595
+ Fl as HaRow,
6596
+ Ds as HaScroller,
6597
+ be as HaSelect,
6598
+ Vl as HaSocketProgress,
6599
+ ql as HaSpinner,
6600
+ Wl as HaTab,
6601
+ Hl as HaTimer,
6602
+ or as HaloHttp,
6603
+ lr as HasherFactory,
6604
+ Nr as HtmlUtil,
6605
+ ur as HttpFactory,
6606
+ et as HttpRequest,
6607
+ Re as HttpResponse,
6608
+ pr as I18nFactory,
6609
+ Vr as ImageUtil,
6610
+ ts as JsonUtil,
6611
+ kt as KeyboardType,
6612
+ is as KeyboardUtility,
6613
+ qr as MathUtil,
6614
+ hr as Messenger,
6615
+ fr as MessengerFactory,
6616
+ Wr as MicroUtil,
6617
+ zr as MountUtil,
6618
+ os as MouseUtility,
6619
+ Kr as ObjectUtil,
6620
+ st as Position,
6621
+ It as ProviderFactory,
6622
+ Sl as ProviderTable,
6623
+ us as RandomUtility,
6624
+ Il as Range,
6625
+ El as Rect,
6626
+ Tl as Ref,
6627
+ bt as RepoFactory,
6628
+ Se as SaveUtility,
6629
+ Zr as ScrollUtil,
6630
+ ls as SignUtil,
6631
+ vr as SignerFactory,
6632
+ kr as SocketFactory,
6633
+ _l as SocketProgress,
6634
+ Cl as SocketResponse,
6635
+ Le as SqlHelper,
6636
+ Er as SsoFactory,
6637
+ tt as SsoUser,
6638
+ Jr as StringUtil,
6639
+ Dt as SvcFactory,
6640
+ Dr as TaskFactory,
6641
+ Qr as TaskUtil,
6642
+ Or as TemplateFactory,
6643
+ Xr as TimeUtil,
6644
+ Gr as TreeUtil,
6645
+ Yr as TypeUtil,
6646
+ ss as UrlUtil,
6647
+ Lr as UtilFactory,
6648
+ ds as UtilityFactory,
6568
6649
  d as Utils,
6569
- _l as VideoFactory,
6570
- Cl as VoiceFactory,
6571
- hs as base64,
6650
+ $l as VideoFactory,
6651
+ jl as VoiceFactory,
6652
+ gs as base64,
6572
6653
  le as cdn,
6573
6654
  Z as configSvc,
6574
- Nl as createFe,
6575
- bl as driverSvc,
6576
- wl as envSvc,
6577
- S as http,
6578
- Be as i18n,
6579
- fs as initDriverAsync,
6580
- At as initRepoAsync,
6581
- vl as initSvcAsync,
6582
- Ie as logSvc,
6583
- st as md5,
6584
- ae as messenger,
6655
+ Kl as createFe,
6656
+ xl as driverSvc,
6657
+ Al as envSvc,
6658
+ _ as http,
6659
+ Ie as i18n,
6660
+ ys as initDriverAsync,
6661
+ St as initRepoAsync,
6662
+ kl as initSvcAsync,
6663
+ Oe as logSvc,
6664
+ nt as md5,
6665
+ ie as messenger,
6666
+ xt as moduleRepo,
6585
6667
  K as moment,
6586
- xt as pageRepo,
6587
- kt as queryRepo,
6588
- Ve as settingRepo,
6589
- Ke as settingSvc,
6590
- He as socket,
6668
+ At as queryRepo,
6669
+ We as settingRepo,
6670
+ Qe as settingSvc,
6671
+ $e as socket,
6591
6672
  fe as t,
6592
- vs as t_enum,
6593
- ys as t_exists,
6673
+ ws as t_enum,
6674
+ ms as t_exists,
6594
6675
  bs as t_field,
6595
- ws as t_field_choose_placeholder,
6676
+ ks as t_field_choose_placeholder,
6596
6677
  xs as t_field_placeholder,
6597
- Ss as t_menu,
6598
- As as t_module,
6599
- ms as t_sys,
6600
- ks as t_table,
6601
- gs as template,
6602
- Dt as userSvc
6678
+ _s as t_menu,
6679
+ Ss as t_module,
6680
+ vs as t_sys,
6681
+ As as t_table,
6682
+ fs as template,
6683
+ Ht as userSvc
6603
6684
  };