plugin-tls 4.6.0 → 4.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,87 +1,95 @@
1
- import { Destroyable as M, createDestroyableSubClass as U } from "@gby/destroyable";
2
- import { deepmergeInto as h, deepmerge as x } from "deepmerge-ts";
3
- import { omitMembers as T, removeUndefined as D, pickMembers as E, serialCallFuns as f } from "com-tools";
4
- function u(i, ...t) {
1
+ import { Destroyable as x, createDestroyableSubClass as T } from "@gby/destroyable";
2
+ import { deepmergeInto as f, deepmerge as y } from "deepmerge-ts";
3
+ import { waitAsyncable as g } from "type-tls";
4
+ import { omitMembers as D, removeUndefined as E, pickMembers as v, serialCallFuns as O } from "com-tools";
5
+ function a(s, ...t) {
5
6
  for (const e of t) {
6
7
  const n = Object.getOwnPropertyDescriptors(e);
7
- Object.defineProperties(i, n);
8
+ Object.defineProperties(s, n);
8
9
  }
9
- return i;
10
+ return s;
10
11
  }
11
- function I(i, t, e) {
12
+ function S(s, t, e) {
12
13
  let n = Object.getOwnPropertyDescriptors(t);
13
- return e && T(n, e), Object.defineProperties(i, n), i;
14
+ return e && D(n, e), Object.defineProperties(s, n), s;
14
15
  }
15
- function j(i, t, e) {
16
+ function R(s, t, e) {
16
17
  let n = Object.getOwnPropertyDescriptors(t);
17
- return e ? Object.defineProperties(i, D(E(n, e))) : Object.defineProperties(i, n), i;
18
+ return e ? Object.defineProperties(s, E(v(n, e))) : Object.defineProperties(s, n), s;
18
19
  }
19
- function S(i, t) {
20
+ function A(s, t) {
20
21
  return t;
21
22
  }
22
- function A(i) {
23
+ function B(s) {
23
24
  return function(e) {
24
25
  return e;
25
26
  };
26
27
  }
27
- function B(i, t) {
28
- return u(i, t), t;
28
+ function z(s, t) {
29
+ return a(s, t), t;
29
30
  }
30
- function z(i) {
31
+ function K(s) {
31
32
  return function(e) {
32
- return u(i, e), e;
33
+ return a(s, e), e;
33
34
  };
34
35
  }
35
- function K(i, t) {
36
- return u(i, t), i;
36
+ function $(s, t) {
37
+ return a(s, t), s;
37
38
  }
38
- function $(i) {
39
+ function q(s) {
39
40
  return function(e) {
40
- return u(i, e), i;
41
+ return a(s, e), s;
41
42
  };
42
43
  }
43
- const y = ["onCreate", "onInit", "onDestroy"];
44
- function q(i) {
45
- const t = { ...i };
46
- for (const e of y)
44
+ const P = ["onCreate", "onInit", "onDestroy"];
45
+ function G(s) {
46
+ const t = { ...s };
47
+ for (const e of P)
47
48
  typeof t[e] == "function" && delete t[e];
48
49
  return t;
49
50
  }
50
- function v(i, t) {
51
+ function N(s, t) {
51
52
  let e = Object.getOwnPropertyDescriptors(t);
52
- for (const n of y)
53
+ for (const n of P)
53
54
  typeof t[n] == "function" && delete e[n];
54
- return Object.defineProperties(i, e), i;
55
+ return Object.defineProperties(s, e), s;
55
56
  }
56
- function G(i, t) {
57
+ function L(s, t) {
57
58
  return t;
58
59
  }
59
- function L(i) {
60
+ function J(s) {
60
61
  return function(e) {
61
62
  return e;
62
63
  };
63
64
  }
64
- function R(i, t) {
65
- return u(i.prototype, t), t;
65
+ function Q(s, t) {
66
+ return a(s.prototype, t), t;
66
67
  }
67
- function J(i) {
68
+ function W(s) {
68
69
  return function(e) {
69
- return u(i.prototype, e), e;
70
+ return a(s.prototype, e), e;
70
71
  };
71
72
  }
72
- function Q(i, t) {
73
- return u(i.prototype, t), i;
73
+ function X(s, t) {
74
+ return a(s.prototype, t), s;
74
75
  }
75
- function W(i) {
76
+ function Y(s) {
76
77
  return function(e) {
77
- return u(i.prototype, e), i;
78
+ return a(s.prototype, e), s;
78
79
  };
79
80
  }
80
- function N(i) {
81
- return i && typeof i.onUse == "function";
81
+ function V(s) {
82
+ return s && typeof s.onUse == "function";
82
83
  }
83
- const l = /* @__PURE__ */ Symbol("extend");
84
- class p extends M {
84
+ const d = /* @__PURE__ */ Symbol("extend");
85
+ class c extends x {
86
+ /**
87
+ * 父级插件管理者
88
+ *
89
+ * @remarks
90
+ * 当子类创建了子类插件管理者时,为了能让父类插件管理者的插件生效,需要将父类插件管理者设置为其 parent
91
+ */
92
+ parent;
85
93
  /**
86
94
  * 插件的宿主
87
95
  */
@@ -93,8 +101,8 @@ class p extends M {
93
101
  /**
94
102
  * @param host - 插件的宿主
95
103
  */
96
- constructor(t) {
97
- super(), t && (this.host = t);
104
+ constructor(t, e) {
105
+ super(), this.parent = e, t && (this.host = t);
98
106
  }
99
107
  destroyThis() {
100
108
  return this.plugins.clear(), this.host = null, super.destroyThis();
@@ -105,7 +113,16 @@ class p extends M {
105
113
  * @returns 是否注册了插件 或 扩展
106
114
  */
107
115
  hasUsed(t) {
108
- return this.plugins.has(t);
116
+ return this.parent?.hasUsed(t) || this.plugins.has(t);
117
+ }
118
+ /**
119
+ * 获取插件 或 扩展 的 use 的返回值
120
+ * @param plugin
121
+ * @returns
122
+ */
123
+ getUseReturn(t) {
124
+ const { parent: e } = this;
125
+ return e?.hasUsed(t) ? e.getUseReturn(t) : this.plugins.get(t);
109
126
  }
110
127
  /**
111
128
  * 判断一个对象是否是插件
@@ -113,8 +130,7 @@ class p extends M {
113
130
  * @returns
114
131
  */
115
132
  isPlugin(t) {
116
- const { plugins: e } = this;
117
- return e.has(t) ? e.get(t) !== l : N(t);
133
+ return this.hasUsed(t) ? this.getUseReturn(t) !== d : V(t);
118
134
  }
119
135
  /**
120
136
  * 使用插件、注册插件
@@ -122,8 +138,7 @@ class p extends M {
122
138
  * @param args - 传递给插件的选项
123
139
  */
124
140
  useExtend(t) {
125
- const { plugins: e } = this;
126
- return e.has(t) ? e.get(t) : (v(this.host.prototype, t), e.set(t, l), t);
141
+ return this.hasUsed(t) || (N(this.host.prototype, t), this.plugins.set(t, d)), t;
127
142
  }
128
143
  /**
129
144
  * 插件宿主实例的注册插件的方法
@@ -133,8 +148,7 @@ class p extends M {
133
148
  * @param hostInst - 插件宿主的新实例
134
149
  */
135
150
  instUseExtend(t, e, ...n) {
136
- const { plugins: s } = this;
137
- return s.has(e) ? s.get(e) : (this.useExtend(e), e.onCreate?.call(t, t, ...n), e);
151
+ return this.hasUsed(e) || (this.useExtend(e), e.onCreate?.call(t, t, ...n)), e;
138
152
  }
139
153
  /**
140
154
  * 使用插件、注册插件
@@ -142,10 +156,9 @@ class p extends M {
142
156
  * @param args - 传递给插件的选项
143
157
  */
144
158
  usePlugin(t, ...e) {
145
- const { plugins: n } = this;
146
- if (n.has(t)) return n.get(t);
147
- const s = t.onUse(this.host, ...e);
148
- return n.set(t, s), s;
159
+ if (this.hasUsed(t)) return this.getUseReturn(t);
160
+ const n = t.onUse(this.host, ...e);
161
+ return this.plugins.set(t, n), n;
149
162
  }
150
163
  /**
151
164
  * 插件宿主实例的注册插件的方法
@@ -155,10 +168,9 @@ class p extends M {
155
168
  * @param hostInst - 插件宿主的新实例
156
169
  */
157
170
  instUsePlugin(t, e, ...n) {
158
- const { plugins: s } = this;
159
- if (s.has(e)) return s.get(e);
160
- const r = this.usePlugin(e, ...n);
161
- return e.onCreate?.(t), r;
171
+ if (this.hasUsed(e)) return this.getUseReturn(e);
172
+ const i = this.usePlugin(e, ...n);
173
+ return e.onCreate?.(t), i;
162
174
  }
163
175
  /**
164
176
  * 插件宿主创建实例时调用
@@ -169,13 +181,13 @@ class p extends M {
169
181
  * @param hostInst - 插件宿主的新实例
170
182
  */
171
183
  onCreate(t, ...e) {
172
- const n = [];
173
- for (const [s, r] of this.plugins)
174
- if (s.onCreate) {
175
- const o = r === l ? s.onCreate : s.onCreate.bind(s);
176
- n.push(o);
184
+ const n = this.parent?.onCreate(t, ...e), i = [];
185
+ for (const [r, o] of this.plugins)
186
+ if (r.onCreate) {
187
+ const u = o === d ? r.onCreate : r.onCreate.bind(r);
188
+ i.push(u);
177
189
  }
178
- return f(n, t, [t, ...e]);
190
+ return g(n, () => O(i, t, [t, ...e]));
179
191
  }
180
192
  /**
181
193
  * 插件宿主创建实例时调用
@@ -186,13 +198,13 @@ class p extends M {
186
198
  * @param args - 初始化宿主实例时的参数
187
199
  */
188
200
  onInit(t, ...e) {
189
- const n = [];
190
- for (const [s, r] of this.plugins)
191
- if (s.onInit) {
192
- const o = r === l ? s.onInit : s.onInit.bind(s);
193
- n.push(o);
201
+ const n = this.parent?.onInit(t, ...e), i = [];
202
+ for (const [r, o] of this.plugins)
203
+ if (r.onInit) {
204
+ const u = o === d ? r.onInit : r.onInit.bind(r);
205
+ i.push(u);
194
206
  }
195
- return f(n, t, [t, ...e]);
207
+ return g(n, () => O(i, t, [t, ...e]));
196
208
  }
197
209
  /**
198
210
  * 插件宿主被销毁时调用
@@ -203,43 +215,45 @@ class p extends M {
203
215
  */
204
216
  onDestroy(t) {
205
217
  const e = [];
206
- for (const [n, s] of this.plugins)
207
- if (n.onDestroy) {
208
- const r = s === l ? n.onDestroy : n.onDestroy.bind(n);
209
- e.push(r);
218
+ for (const [r, o] of this.plugins)
219
+ if (r.onDestroy) {
220
+ const u = o === d ? r.onDestroy : r.onDestroy.bind(r);
221
+ e.push(u);
210
222
  }
211
- return e.reverse(), f(e, t, [t]);
223
+ e.reverse();
224
+ const n = O(e, t, [t]), { parent: i } = this;
225
+ return i ? g(n, () => i.onDestroy(t)) : n;
212
226
  }
213
227
  }
214
- function P(i) {
215
- const t = i.split(".");
228
+ function _(s) {
229
+ const t = s.split(".");
216
230
  return t[0] === "" && t.shift(), t;
217
231
  }
218
- function O(i, t) {
232
+ function M(s, t) {
219
233
  for (const e of t)
220
- if (i = i[e], i == null) return;
221
- return i;
234
+ if (s = s[e], s == null) return;
235
+ return s;
222
236
  }
223
- function X(i, t) {
224
- return O(i, P(t));
237
+ function Z(s, t) {
238
+ return M(s, _(t));
225
239
  }
226
- function _(i, t, e) {
227
- const n = t.pop(), s = t.length;
240
+ function b(s, t, e) {
241
+ const n = t.pop(), i = t.length;
228
242
  let r = 0;
229
- for (; r < s; ) {
230
- const o = i[t[r]];
243
+ for (; r < i; ) {
244
+ const o = s[t[r]];
231
245
  if (o == null) break;
232
- i = o, r++;
246
+ s = o, r++;
233
247
  }
234
248
  t = t.slice(r);
235
249
  for (const o of t)
236
- i = i[o] = {};
237
- return i[n] = e, i;
250
+ s = s[o] = {};
251
+ return s[n] = e, s;
238
252
  }
239
- function Y(i, t, e) {
240
- return _(i, P(t), e);
253
+ function tt(s, t, e) {
254
+ return b(s, _(t), e);
241
255
  }
242
- const g = {
256
+ const m = {
243
257
  UndefinedAndNull: function(t) {
244
258
  return t == null;
245
259
  },
@@ -250,7 +264,7 @@ const g = {
250
264
  return t === null;
251
265
  }
252
266
  };
253
- class b {
267
+ class U {
254
268
  /**
255
269
  * 是否要冻结 fullOption 的成员
256
270
  * @remarks
@@ -266,11 +280,11 @@ class b {
266
280
  fullOption = new Proxy(this, {
267
281
  // @ts-ignore
268
282
  get: function(t, e, n) {
269
- const s = t.plainFullOption[e];
270
- return t.freezeMember ? Object.freeze(s) : s;
283
+ const i = t.plainFullOption[e];
284
+ return t.freezeMember ? Object.freeze(i) : i;
271
285
  },
272
286
  // @ts-ignore
273
- set: function(t, e, n, s) {
287
+ set: function(t, e, n, i) {
274
288
  return t.setMember(e, n, !1), !0;
275
289
  },
276
290
  // @ts-ignore
@@ -302,7 +316,7 @@ class b {
302
316
  * @param deep - 是否要进行深度合并
303
317
  */
304
318
  setOption(t, e) {
305
- const n = e ? h(this.option, t) : Object.assign(this.option, t);
319
+ const n = e ? f(this.option, t) : Object.assign(this.option, t);
306
320
  return this.updateFullOption(), n;
307
321
  }
308
322
  /**
@@ -312,13 +326,13 @@ class b {
312
326
  return this._undefinedValue;
313
327
  }
314
328
  set undefinedValue(t) {
315
- this._undefinedValue = t, this.isUndefined = g[t] || g.UndefinedAndNull;
329
+ this._undefinedValue = t, this.isUndefined = m[t] || m.UndefinedAndNull;
316
330
  }
317
331
  _undefinedValue = "UndefinedAndNull";
318
332
  /**
319
333
  * 未定义值的判断函数
320
334
  */
321
- isUndefined = g.UndefinedAndNull;
335
+ isUndefined = m.UndefinedAndNull;
322
336
  /**
323
337
  * 获取选项成员
324
338
  * @param key
@@ -334,12 +348,12 @@ class b {
334
348
  * @param deep - 是否要进行深度合并
335
349
  */
336
350
  setMember(t, e, n) {
337
- const s = this.option;
351
+ const i = this.option;
338
352
  if (e === void 0)
339
- delete s[t];
353
+ delete i[t];
340
354
  else {
341
- const r = s[t];
342
- n && r && typeof r == "object" ? h(r, e) : s[t] = e;
355
+ const r = i[t];
356
+ n && r && typeof r == "object" ? f(r, e) : i[t] = e;
343
357
  }
344
358
  this.updateFullOption();
345
359
  }
@@ -349,7 +363,7 @@ class b {
349
363
  * @returns
350
364
  */
351
365
  getValue(t) {
352
- return O(this.option, t);
366
+ return M(this.option, t);
353
367
  }
354
368
  /**
355
369
  * 设置属性路径对应的值
@@ -359,12 +373,12 @@ class b {
359
373
  * @returns
360
374
  */
361
375
  setValue(t, e, n) {
362
- const s = this.option;
376
+ const i = this.option;
363
377
  let r;
364
- n && (r = O(s, t)) && typeof r == "object" ? h(r, e) : _(this.option, t, e), this.updateFullOption();
378
+ n && (r = M(i, t)) && typeof r == "object" ? f(r, e) : b(this.option, t, e), this.updateFullOption();
365
379
  }
366
380
  }
367
- class a extends b {
381
+ class l extends U {
368
382
  constructor(t, e) {
369
383
  super(), t && (this.option = t), e && (this.extends = e);
370
384
  }
@@ -392,8 +406,8 @@ class a extends b {
392
406
  if (t) return t;
393
407
  const { extends: e, option: n } = this;
394
408
  if (t = n, e) {
395
- const s = e.plainFullOption;
396
- t = x(s, n);
409
+ const i = e.plainFullOption;
410
+ t = y(i, n);
397
411
  }
398
412
  return this._plainFullOption = t;
399
413
  }
@@ -429,15 +443,15 @@ class a extends b {
429
443
  return n.getValue(t);
430
444
  }
431
445
  }
432
- function Z(i, t) {
446
+ function et(s, t) {
433
447
  const { name: e } = t, n = `_${e}`;
434
448
  return {
435
449
  get: function() {
436
- return this[n] || (this[n] = new a(void 0, this.constructor[e]));
450
+ return this[n] || (this[n] = new l(void 0, this.constructor[e]));
437
451
  }
438
452
  };
439
453
  }
440
- class V extends b {
454
+ class k extends U {
441
455
  constructor(t, e) {
442
456
  super(), e && this.setModeOption(t, e), this.mode = t;
443
457
  }
@@ -526,16 +540,16 @@ class V extends b {
526
540
  * @param deep - 是否要进行深度合并
527
541
  * @param extend - 继承哪个模式
528
542
  */
529
- setModeOption(t, e, n, s) {
530
- const { modes: r } = this, o = r[t] || (r[t] = new a());
531
- if (o.setOption(e, n), s) {
532
- const m = r[s];
533
- m && (o.extends = m);
543
+ setModeOption(t, e, n, i) {
544
+ const { modes: r } = this, o = r[t] || (r[t] = new l());
545
+ if (o.setOption(e, n), i) {
546
+ const u = r[i];
547
+ u && (o.extends = u);
534
548
  }
535
549
  return this.updateFullOption(), o;
536
550
  }
537
551
  }
538
- class d extends V {
552
+ class p extends k {
539
553
  constructor(t, e, n) {
540
554
  super(t, e), n && (this.extends = n);
541
555
  }
@@ -557,12 +571,12 @@ class d extends V {
557
571
  * @returns
558
572
  */
559
573
  getFullModeOption(t) {
560
- const { modes: e, extends: n } = this, s = e[t]?.plainFullOption;
574
+ const { modes: e, extends: n } = this, i = e[t]?.plainFullOption;
561
575
  if (n) {
562
576
  const r = n.getFullModeOption(t);
563
- return s ? x(r, s) : r;
577
+ return i ? y(r, i) : r;
564
578
  }
565
- return s;
579
+ return i;
566
580
  }
567
581
  /**
568
582
  * 获取所有的模式名字
@@ -571,8 +585,8 @@ class d extends V {
571
585
  getModeNames() {
572
586
  const { modes: t, extends: e } = this, n = Object.keys(t);
573
587
  if (!e) return n;
574
- const s = e.getModeNames();
575
- return [.../* @__PURE__ */ new Set([...n, ...s])];
588
+ const i = e.getModeNames();
589
+ return [.../* @__PURE__ */ new Set([...n, ...i])];
576
590
  }
577
591
  /**
578
592
  * 在整个层级上判断是否有某个模式
@@ -624,15 +638,15 @@ class d extends V {
624
638
  return n.getValue(t);
625
639
  }
626
640
  }
627
- function tt(i, t) {
641
+ function nt(s, t) {
628
642
  const { name: e } = t, n = `_${e}`;
629
643
  return {
630
644
  get: function() {
631
- return this[n] || (this[n] = new d(this.constructor[e].mode, void 0, this.constructor[e]));
645
+ return this[n] || (this[n] = new p(this.constructor[e].mode, void 0, this.constructor[e]));
632
646
  }
633
647
  };
634
648
  }
635
- class F extends M {
649
+ class F extends x {
636
650
  /**
637
651
  * 是否使用独立的插件管理器
638
652
  * @defaultValue false
@@ -642,9 +656,9 @@ class F extends M {
642
656
  * 插件管理器
643
657
  */
644
658
  static get pluginManager() {
645
- return this.isolatedPluginManager && !this.hasOwnProperty("_pluginManager") && (this._pluginManager = new p(this)), this._pluginManager;
659
+ return this.isolatedPluginManager && !this.hasOwnProperty("_pluginManager") && (this._pluginManager = new c(this, this._pluginManager)), this._pluginManager;
646
660
  }
647
- static _pluginManager = new p(this);
661
+ static _pluginManager = new c(this);
648
662
  /**
649
663
  * 插件管理器 {@link PluginHost.pluginManager}
650
664
  */
@@ -715,24 +729,24 @@ class F extends M {
715
729
  return t instanceof Promise ? t.finally(() => super.destroyThis()) : super.destroyThis();
716
730
  }
717
731
  }
718
- class et extends F {
732
+ class st extends F {
719
733
  /**
720
734
  * 全局级别的默认选项
721
735
  */
722
- static defaultOptions = new a();
736
+ static defaultOptions = new l();
723
737
  /**
724
738
  * 实例级的默认选项
725
739
  */
726
740
  get defaultOptions() {
727
- return this._defaultOptions || (this._defaultOptions = new a(void 0, this.constructor.defaultOptions));
741
+ return this._defaultOptions || (this._defaultOptions = new l(void 0, this.constructor.defaultOptions));
728
742
  }
729
743
  _defaultOptions;
730
744
  constructor(t) {
731
745
  super(), this.defaultOptions.option = t;
732
746
  }
733
747
  }
734
- function w(i) {
735
- const t = U(i);
748
+ function w(s) {
749
+ const t = T(s);
736
750
  return class extends t {
737
751
  /**
738
752
  * 是否使用独立的插件管理器
@@ -743,9 +757,9 @@ function w(i) {
743
757
  * 插件管理器
744
758
  */
745
759
  static get pluginManager() {
746
- return this.isolatedPluginManager && !this.hasOwnProperty("_pluginManager") && (this._pluginManager = new p(this)), this._pluginManager;
760
+ return this.isolatedPluginManager && !this.hasOwnProperty("_pluginManager") && (this._pluginManager = new c(this, this._pluginManager)), this._pluginManager;
747
761
  }
748
- static _pluginManager = new p(this);
762
+ static _pluginManager = new c(this);
749
763
  /**
750
764
  * 插件管理器 {@link PluginHostSub.pluginManager}
751
765
  */
@@ -755,8 +769,8 @@ function w(i) {
755
769
  /**
756
770
  * {@inheritDoc PluginExtendManager.usePlugin}
757
771
  */
758
- static usePlugin(n, ...s) {
759
- return this.pluginManager.usePlugin(n, ...s);
772
+ static usePlugin(n, ...i) {
773
+ return this.pluginManager.usePlugin(n, ...i);
760
774
  }
761
775
  /**
762
776
  * {@inheritDoc PluginExtendManager.useExtend}
@@ -788,14 +802,14 @@ function w(i) {
788
802
  * @param args
789
803
  * @returns
790
804
  */
791
- usePlugin(n, ...s) {
792
- return this.pluginManager.instUsePlugin(this, n, ...s);
805
+ usePlugin(n, ...i) {
806
+ return this.pluginManager.instUsePlugin(this, n, ...i);
793
807
  }
794
808
  /**
795
809
  * {@inheritDoc PluginExtendManager.useExtend}
796
810
  */
797
- useExtend(n, ...s) {
798
- return this.pluginManager.instUseExtend(this, n, ...s);
811
+ useExtend(n, ...i) {
812
+ return this.pluginManager.instUseExtend(this, n, ...i);
799
813
  }
800
814
  /**
801
815
  * 初始化实例
@@ -816,18 +830,18 @@ function w(i) {
816
830
  }
817
831
  };
818
832
  }
819
- function st(i) {
820
- const t = w(i);
833
+ function ot(s) {
834
+ const t = w(s);
821
835
  return class extends t {
822
836
  /**
823
837
  * 全局级别的默认选项
824
838
  */
825
- static defaultOptions = new a();
839
+ static defaultOptions = new l();
826
840
  /**
827
841
  * 实例级的默认选项
828
842
  */
829
843
  get defaultOptions() {
830
- return this._defaultOptions || (this._defaultOptions = new a(void 0, this.constructor.defaultOptions));
844
+ return this._defaultOptions || (this._defaultOptions = new l(void 0, this.constructor.defaultOptions));
831
845
  }
832
846
  _defaultOptions;
833
847
  constructor(n) {
@@ -835,17 +849,17 @@ function st(i) {
835
849
  }
836
850
  };
837
851
  }
838
- const c = "common";
839
- class rt extends F {
852
+ const h = "common";
853
+ class ut extends F {
840
854
  /**
841
855
  * 全局级别的默认选项
842
856
  */
843
- static modeOptions = new d(c);
857
+ static modeOptions = new p(h);
844
858
  /**
845
859
  * 实例级的默认选项
846
860
  */
847
861
  get modeOptions() {
848
- return this._modeOptions || (this._modeOptions = new d(c, void 0, this.constructor.modeOptions));
862
+ return this._modeOptions || (this._modeOptions = new p(h, void 0, this.constructor.modeOptions));
849
863
  }
850
864
  _modeOptions;
851
865
  get mode() {
@@ -861,18 +875,18 @@ class rt extends F {
861
875
  super(), this.modeOptions.setOption(t);
862
876
  }
863
877
  }
864
- function ut(i) {
865
- const t = w(i);
878
+ function lt(s) {
879
+ const t = w(s);
866
880
  return class extends t {
867
881
  /**
868
882
  * 全局级别的默认选项
869
883
  */
870
- static modeOptions = new d(c);
884
+ static modeOptions = new p(h);
871
885
  /**
872
886
  * 实例级的默认选项
873
887
  */
874
888
  get modeOptions() {
875
- return this._modeOptions || (this._modeOptions = new d(c, void 0, this.constructor.modeOptions));
889
+ return this._modeOptions || (this._modeOptions = new p(h, void 0, this.constructor.modeOptions));
876
890
  }
877
891
  _modeOptions;
878
892
  get mode() {
@@ -890,41 +904,41 @@ function ut(i) {
890
904
  };
891
905
  }
892
906
  export {
893
- P as A,
894
- q as B,
895
- _ as C,
896
- Y as D,
897
- R as E,
898
- B as F,
899
- tt as G,
900
- Z as H,
901
- V as M,
902
- p as P,
903
- d as T,
904
- v as a,
905
- K as b,
906
- c,
907
- a as d,
907
+ _ as A,
908
+ G as B,
909
+ b as C,
910
+ tt as D,
911
+ Q as E,
912
+ z as F,
913
+ nt as G,
914
+ et as H,
915
+ k as M,
916
+ c as P,
917
+ p as T,
918
+ N as a,
919
+ $ as b,
920
+ h as c,
921
+ l as d,
908
922
  F as e,
909
- rt as f,
910
- et as g,
911
- L as h,
912
- A as i,
913
- W as j,
914
- $ as k,
923
+ ut as f,
924
+ st as g,
925
+ J as h,
926
+ B as i,
927
+ Y as j,
928
+ q as k,
915
929
  w as l,
916
- u as m,
917
- J as n,
918
- z as o,
919
- ut as p,
920
- st as q,
921
- G as r,
922
- S as s,
923
- l as t,
924
- O as u,
925
- X as v,
926
- Q as w,
927
- N as x,
928
- I as y,
929
- j as z
930
+ a as m,
931
+ W as n,
932
+ K as o,
933
+ lt as p,
934
+ ot as q,
935
+ L as r,
936
+ A as s,
937
+ d as t,
938
+ M as u,
939
+ Z as v,
940
+ X as w,
941
+ V as x,
942
+ S as y,
943
+ R as z
930
944
  };