hflvloader 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/hflvloader.es.js +1217 -1168
  2. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";.component[data-v-56b0e3e4]{position:absolute}.canvas-container[data-v-c471d52f]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;margin:auto;overflow:hidden}.canvas-container .canvas[data-v-c471d52f]{position:relative;margin:auto}.ve-comp-svg-icon{width:100%;height:100%;position:relative;fill:currentColor;vertical-align:-2px}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog{padding:0!important}.full-screen-dialog-wrapper[data-v-7c104f83] .no-header-dialog .el-dialog__header{display:none!important;padding-bottom:0!important}.custom-omit-input[data-v-956a5a3a]{width:100%}.custom-omit-input[data-v-956a5a3a] .el-input-group__append{padding:0}.group>div[data-v-20de9881]{position:relative;width:100%;height:100%}.group>div .component[data-v-20de9881]{position:absolute}.panel-area[data-v-55cea49e]{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}.panel-area .panel-condition[data-v-55cea49e]{height:50px;flex-shrink:0;min-height:50px}.panel-area .panel-table[data-v-55cea49e]{flex:1;overflow:hidden;min-height:100px}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { withDirectives as De, createElementBlock as W, openBlock as R, createBlock as $, resolveDynamicComponent as xe, normalizeStyle as Se, vShow as rt, computed as O, reactive as he, onMounted as Ce, watch as Me, ref as T, createElementVNode as le, Fragment as He, renderList as Le, provide as oe, defineComponent as Xt, normalizeClass as lt, resolveComponent as B, withCtx as A, createVNode as E, mergeProps as Zt, createSlots as en, createCommentVNode as Je, toDisplayString as tn, createTextVNode as N, renderSlot as nn, inject as me, onBeforeMount as Ge, onBeforeUnmount as $e, onUnmounted as Qe, resolveDirective as on, withKeys as rn } from "vue";
3
- import ln from "json5";
4
- import an from "js-md5";
5
- import { defineStore as sn } from "pinia";
6
- import Ie from "js-cookie";
7
- import { ElMessage as cn, ElNotification as un, ElLoading as fn, ElMessageBox as at } from "element-plus";
8
- import { useRouter as Ye, useRoute as Xe } from "vue-router";
9
- let Fe = class L {
2
+ import { withDirectives as Te, createElementBlock as W, openBlock as A, createBlock as Q, resolveDynamicComponent as Me, normalizeStyle as Oe, vShow as ot, computed as V, reactive as pe, onMounted as Ve, watch as be, ref as T, createElementVNode as re, Fragment as Ke, renderList as He, provide as oe, defineComponent as en, normalizeClass as rt, resolveComponent as K, withCtx as F, createVNode as E, mergeProps as tn, createSlots as nn, createCommentVNode as We, toDisplayString as on, createTextVNode as j, renderSlot as rn, inject as ge, onBeforeMount as Je, onBeforeUnmount as Ge, onUnmounted as $e, resolveDirective as ln, withKeys as sn } from "vue";
3
+ import an from "json5";
4
+ import cn from "js-md5";
5
+ import { defineStore as un } from "pinia";
6
+ import Re from "js-cookie";
7
+ import { ElMessage as fn, ElNotification as dn, ElLoading as pn, ElMessageBox as lt } from "element-plus";
8
+ import { useRouter as Qe, useRoute as Ye } from "vue-router";
9
+ class B {
10
10
  static SPECIAL_CHARS = ["0", "#", ".", "-", ",", "E", "%", "¤", "‰", "'"];
11
11
  constructor() {
12
12
  this.jsjava_class = "jsjava.text.NumberFormat", this.pattern = "", this._parsed = null;
@@ -21,13 +21,13 @@ let Fe = class L {
21
21
  return;
22
22
  }
23
23
  let r = !1;
24
- for (let t = 0; t < o.length; t++) {
25
- const u = o.charAt(t);
24
+ for (let n = 0; n < o.length; n++) {
25
+ const u = o.charAt(n);
26
26
  if (u === "'") {
27
27
  r = !r;
28
28
  continue;
29
29
  }
30
- !r && L.SPECIAL_CHARS.indexOf(u) === -1 && console.warn(`警告: 模式包含非法字符: "${u}", 模式: "${o}"`);
30
+ !r && B.SPECIAL_CHARS.indexOf(u) === -1 && console.warn(`警告: 模式包含非法字符: "${u}", 模式: "${o}"`);
31
31
  }
32
32
  this.pattern = o, this._parsed = this._parsePattern(o);
33
33
  }
@@ -50,12 +50,12 @@ let Fe = class L {
50
50
  isCurrency: !1,
51
51
  isScientific: !1,
52
52
  groupingSize: 3
53
- }, t = o.indexOf("%");
53
+ }, n = o.indexOf("%");
54
54
  o.indexOf("¤");
55
- const u = o.indexOf("‰"), s = o.indexOf("E"), c = o.indexOf("."), p = o.indexOf(",");
56
- if (t !== -1 && (r.isPercent = !0, r.multiplier = 100, o = o.replace("%", "")), u !== -1 && (r.multiplier = 1e3, o = o.replace("‰", "")), s !== -1 && (r.isScientific = !0, o = o.substring(0, s)), p !== -1 && (r.useGrouping = !0), c !== -1) {
57
- const a = o.substring(0, c), m = o.substring(c + 1), y = (m.match(/0/g) || []).length;
58
- r.minFractionDigits = y, r.maxFractionDigits = m.length, r.decimalPart = m, r.minIntegerDigits = (a.match(/0/g) || []).length, r.integerPart = a;
55
+ const u = o.indexOf("‰"), s = o.indexOf("E"), c = o.indexOf("."), d = o.indexOf(",");
56
+ if (n !== -1 && (r.isPercent = !0, r.multiplier = 100, o = o.replace("%", "")), u !== -1 && (r.multiplier = 1e3, o = o.replace("‰", "")), s !== -1 && (r.isScientific = !0, o = o.substring(0, s)), d !== -1 && (r.useGrouping = !0), c !== -1) {
57
+ const l = o.substring(0, c), p = o.substring(c + 1), _ = (p.match(/0/g) || []).length;
58
+ r.minFractionDigits = _, r.maxFractionDigits = p.length, r.decimalPart = p, r.minIntegerDigits = (l.match(/0/g) || []).length, r.integerPart = l;
59
59
  } else
60
60
  r.minIntegerDigits = (o.match(/0/g) || []).length, r.integerPart = o;
61
61
  return r;
@@ -72,10 +72,10 @@ let Fe = class L {
72
72
  return o.toString();
73
73
  this._parsed || (this._parsed = this._parsePattern(this.pattern));
74
74
  const r = this._parsed;
75
- let t = o * r.multiplier;
76
- const u = t < 0;
77
- t = Math.abs(t);
78
- let s = this._formatNumber(t, r);
75
+ let n = o * r.multiplier;
76
+ const u = n < 0;
77
+ n = Math.abs(n);
78
+ let s = this._formatNumber(n, r);
79
79
  return u && (s = "-" + s), r.isPercent ? s += "%" : r.multiplier === 1e3 && (s += "‰"), s;
80
80
  }
81
81
  /**
@@ -112,9 +112,9 @@ let Fe = class L {
112
112
  for (o = o.substring(0, r.maxFractionDigits); o.length < r.minFractionDigits; )
113
113
  o += "0";
114
114
  if (o.length > r.minFractionDigits) {
115
- const t = o.replace(/0+$/, "");
116
- if (t.length >= r.minFractionDigits)
117
- return t;
115
+ const n = o.replace(/0+$/, "");
116
+ if (n.length >= r.minFractionDigits)
117
+ return n;
118
118
  }
119
119
  return o;
120
120
  }
@@ -123,19 +123,19 @@ let Fe = class L {
123
123
  */
124
124
  formatSimple(o, r = {}) {
125
125
  const {
126
- decimals: t = 2,
126
+ decimals: n = 2,
127
127
  useGrouping: u = !0,
128
128
  isPercent: s = !1
129
129
  } = r;
130
130
  let c = o;
131
131
  s && (c *= 100);
132
- const p = Math.pow(10, t);
133
- c = Math.round(c * p) / p;
134
- let [a, m = ""] = c.toFixed(t).split(".");
135
- const y = a.charAt(0) === "-";
136
- y && (a = a.substring(1)), u && (a = a.replace(/\B(?=(\d{3})+(?!\d))/g, ","));
137
- let h = m ? `${a}.${m}` : a;
138
- return y && (h = `-${h}`), s && (h += "%"), h;
132
+ const d = Math.pow(10, n);
133
+ c = Math.round(c * d) / d;
134
+ let [l, p = ""] = c.toFixed(n).split(".");
135
+ const _ = l.charAt(0) === "-";
136
+ _ && (l = l.substring(1)), u && (l = l.replace(/\B(?=(\d{3})+(?!\d))/g, ","));
137
+ let y = p ? `${l}.${p}` : l;
138
+ return _ && (y = `-${y}`), s && (y += "%"), y;
139
139
  }
140
140
  // ==================== 静态方法 ====================
141
141
  /**
@@ -145,8 +145,8 @@ let Fe = class L {
145
145
  * @returns {string} 格式化结果
146
146
  */
147
147
  static format(o, r) {
148
- const t = new L();
149
- return t.applyPattern(r), t.format(o);
148
+ const n = new B();
149
+ return n.applyPattern(r), n.format(o);
150
150
  }
151
151
  /**
152
152
  * 格式化整数
@@ -155,8 +155,8 @@ let Fe = class L {
155
155
  * @returns {string} 格式化结果
156
156
  */
157
157
  static formatInteger(o, r = !0) {
158
- const t = r ? "#,##0" : "0";
159
- return L.format(o, t);
158
+ const n = r ? "#,##0" : "0";
159
+ return B.format(o, n);
160
160
  }
161
161
  /**
162
162
  * 格式化小数
@@ -166,9 +166,9 @@ let Fe = class L {
166
166
  * @param {boolean} useGrouping - 是否使用千位分隔符
167
167
  * @returns {string} 格式化结果
168
168
  */
169
- static formatDecimal(o, r = 0, t = 3, u = !0) {
170
- const s = u ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(t - r);
171
- return L.format(o, `${s}.${c}`);
169
+ static formatDecimal(o, r = 0, n = 3, u = !0) {
170
+ const s = u ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(n - r);
171
+ return B.format(o, `${s}.${c}`);
172
172
  }
173
173
  /**
174
174
  * 格式化百分比
@@ -177,9 +177,9 @@ let Fe = class L {
177
177
  * @param {boolean} useGrouping - 是否使用千位分隔符
178
178
  * @returns {string} 格式化结果
179
179
  */
180
- static formatPercent(o, r = 2, t = !0) {
181
- const u = t ? "#,##0" : "0", s = "0".repeat(r);
182
- return L.format(o, `${u}.${s}%`);
180
+ static formatPercent(o, r = 2, n = !0) {
181
+ const u = n ? "#,##0" : "0", s = "0".repeat(r);
182
+ return B.format(o, `${u}.${s}%`);
183
183
  }
184
184
  /**
185
185
  * 格式化货币
@@ -189,9 +189,9 @@ let Fe = class L {
189
189
  * @param {string} currencySymbol - 货币符号,默认¥
190
190
  * @returns {string} 格式化结果
191
191
  */
192
- static formatCurrency(o, r = 2, t = !0, u = "¥") {
193
- const s = t ? "#,##0" : "0", c = "0".repeat(r);
194
- return L.format(o, `${u}${s}.${c}`);
192
+ static formatCurrency(o, r = 2, n = !0, u = "¥") {
193
+ const s = n ? "#,##0" : "0", c = "0".repeat(r);
194
+ return B.format(o, `${u}${s}.${c}`);
195
195
  }
196
196
  /**
197
197
  * 解析格式化模式并验证
@@ -199,7 +199,7 @@ let Fe = class L {
199
199
  * @returns {object} 解析结果
200
200
  */
201
201
  static parsePattern(o) {
202
- const r = new L();
202
+ const r = new B();
203
203
  return r.applyPattern(o), r._parsed;
204
204
  }
205
205
  /**
@@ -209,7 +209,7 @@ let Fe = class L {
209
209
  */
210
210
  static isValidPattern(o) {
211
211
  try {
212
- return new L().applyPattern(o), !0;
212
+ return new B().applyPattern(o), !0;
213
213
  } catch {
214
214
  return !1;
215
215
  }
@@ -221,7 +221,7 @@ let Fe = class L {
221
221
  * @returns {NumberFormat} 格式化器实例
222
222
  */
223
223
  static getIntegerInstance(o = !0) {
224
- const r = new L();
224
+ const r = new B();
225
225
  return r.applyPattern(o ? "#,##0" : "0"), r;
226
226
  }
227
227
  /**
@@ -231,8 +231,8 @@ let Fe = class L {
231
231
  * @param {number} maxDecimals - 最大小数位数
232
232
  * @returns {NumberFormat} 格式化器实例
233
233
  */
234
- static getNumberInstance(o = !0, r = 0, t = 3) {
235
- const u = new L(), s = o ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(t - r);
234
+ static getNumberInstance(o = !0, r = 0, n = 3) {
235
+ const u = new B(), s = o ? "#,##0" : "0", c = "0".repeat(r) + "#".repeat(n - r);
236
236
  return u.applyPattern(`${s}.${c}`), u;
237
237
  }
238
238
  /**
@@ -242,8 +242,8 @@ let Fe = class L {
242
242
  * @param {boolean} useGrouping - 是否使用千位分隔符
243
243
  * @returns {NumberFormat} 格式化器实例
244
244
  */
245
- static getCurrencyInstance(o = "¥", r = 2, t = !0) {
246
- const u = new L(), s = t ? "#,##0" : "0", c = "0".repeat(r);
245
+ static getCurrencyInstance(o = "¥", r = 2, n = !0) {
246
+ const u = new B(), s = n ? "#,##0" : "0", c = "0".repeat(r);
247
247
  return u.applyPattern(`${o}${s}.${c}`), u;
248
248
  }
249
249
  /**
@@ -253,15 +253,15 @@ let Fe = class L {
253
253
  * @returns {NumberFormat} 格式化器实例
254
254
  */
255
255
  static getPercentInstance(o = 2, r = !0) {
256
- const t = new L(), u = r ? "#,##0" : "0", s = "0".repeat(o);
257
- return t.applyPattern(`${u}.${s}%`), t;
256
+ const n = new B(), u = r ? "#,##0" : "0", s = "0".repeat(o);
257
+ return n.applyPattern(`${u}.${s}%`), n;
258
258
  }
259
259
  /**
260
260
  * 创建科学计数法格式化器
261
261
  * @returns {NumberFormat} 格式化器实例
262
262
  */
263
263
  static getScientificInstance() {
264
- const o = new L();
264
+ const o = new B();
265
265
  return o.applyPattern("0.##E0"), o;
266
266
  }
267
267
  // ==================== 常用格式化快捷方法 ====================
@@ -283,10 +283,10 @@ let Fe = class L {
283
283
  * @param {boolean} round - 是否四舍五入
284
284
  * @returns {string} 格式化结果
285
285
  */
286
- static toFixed(o, r = 2, t = !0) {
286
+ static toFixed(o, r = 2, n = !0) {
287
287
  if (typeof o != "number" || isNaN(o))
288
288
  return o.toString();
289
- if (t)
289
+ if (n)
290
290
  return o.toFixed(r);
291
291
  {
292
292
  const u = Math.pow(10, r);
@@ -301,153 +301,153 @@ let Fe = class L {
301
301
  */
302
302
  static formatFileSize(o, r = 2) {
303
303
  if (o === 0) return "0 Bytes";
304
- const t = 1024, u = r < 0 ? 0 : r, s = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], c = Math.floor(Math.log(o) / Math.log(t));
305
- return parseFloat((o / Math.pow(t, c)).toFixed(u)) + " " + s[c];
304
+ const n = 1024, u = r < 0 ? 0 : r, s = ["Bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"], c = Math.floor(Math.log(o) / Math.log(n));
305
+ return parseFloat((o / Math.pow(n, c)).toFixed(u)) + " " + s[c];
306
306
  }
307
- };
308
- Fe.commonNF = new Fe();
307
+ }
308
+ B.commonNF = new B();
309
309
  (function() {
310
- const n = () => {
311
- console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.11", "color: #2ecc71;"), console.log("%c编译日期: 2026/2/8 16:19:40", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
310
+ const t = () => {
311
+ console.log("%c 可视化加载器 hflvloader", "color: #3498db; font-size: 16px; font-weight: bold;"), console.log("%c版本号: 0.0.13", "color: #2ecc71;"), console.log("%c编译日期: 2026/3/11 16:27:09", "color: #3498db;"), console.log("%c版权声明:", "color: #e74c3c; font-weight: bold;"), console.log("%c 1. 版权完全归qbansanguo享有。", "color: #34495e;"), console.log("%c 2. 程序包完整引用,不得以任何形式破解、裁剪,不得隐藏或删除版权信息。", "color: #34495e;"), console.log("%c 3. 保留此版权信息在控制台输出。", "color: #34495e;"), console.log("%c 版权所有 ©2024-2026 qbansanguo 保留对此版权信息的最终解释权.", "color: #f39c12;"), console.log("%c Copyright ©2024-2026 qbansanguo All rights reserved.", "color: #f39c12;");
312
312
  };
313
313
  if (typeof window < "u") {
314
- window._copyright_hflvloader = n;
314
+ window._copyright_hflvloader = t;
315
315
  try {
316
316
  Object.defineProperty(window, _copyright_hflvloader, {
317
- value: n,
317
+ value: t,
318
318
  writable: !1,
319
319
  configurable: !1,
320
320
  enumerable: !1
321
321
  });
322
322
  } catch {
323
- window._copyright_hflvloader = n;
323
+ window._copyright_hflvloader = t;
324
324
  }
325
325
  }
326
- n();
326
+ t();
327
327
  })();
328
- function v(n) {
329
- return !!(n && n != "");
328
+ function g(t) {
329
+ return !!(t && t != "");
330
330
  }
331
- function se(n) {
332
- return !isNaN(parseFloat(n)) && isFinite(n);
331
+ function se(t) {
332
+ return !isNaN(parseFloat(t)) && isFinite(t);
333
333
  }
334
- function it(n) {
335
- return n && Object.prototype.toString.call(n) === "[object Date]" && !isNaN(n);
334
+ function it(t) {
335
+ return t && Object.prototype.toString.call(t) === "[object Date]" && !isNaN(t);
336
336
  }
337
- function q(n) {
338
- return typeof Array.isArray > "u" ? Object.prototype.toString.call(n) === "[object Array]" : Array.isArray(n);
337
+ function q(t) {
338
+ return typeof Array.isArray > "u" ? Object.prototype.toString.call(t) === "[object Array]" : Array.isArray(t);
339
339
  }
340
- function Pe(n) {
341
- return n == null;
340
+ function _e(t) {
341
+ return t == null;
342
342
  }
343
- function pn(n) {
344
- return !!(n || n === 0);
343
+ function mn(t) {
344
+ return !!(t || t === 0);
345
345
  }
346
- function re(n) {
347
- return n instanceof Object && n !== null;
346
+ function ee(t) {
347
+ return t instanceof Object && t !== null;
348
348
  }
349
- function dn(n) {
350
- return Object.keys(n).length === 0;
349
+ function hn(t) {
350
+ return Object.keys(t).length === 0;
351
351
  }
352
- function U(n) {
353
- return !!(n && typeof n == "function");
352
+ function U(t) {
353
+ return !!(t && typeof t == "function");
354
354
  }
355
- function st(n) {
356
- return n && n.__v_isRef && !!n.effect;
355
+ function st(t) {
356
+ return t && t.__v_isRef && !!t.effect;
357
357
  }
358
- function qe(n) {
359
- return typeof n == "string" || n instanceof String;
358
+ function ve(t) {
359
+ return typeof t == "string" || t instanceof String;
360
360
  }
361
- function ct(n, o = {}) {
362
- if (qe(n) && v(n))
361
+ function at(t, o = {}) {
362
+ if (ve(t) && g(t))
363
363
  try {
364
- return ln.parse(n);
364
+ return an.parse(t);
365
365
  } catch (r) {
366
366
  return console.warn("JSON 解析错误:", r), o;
367
367
  }
368
368
  else
369
- return re(n) ? n : o;
369
+ return ee(t) ? t : o;
370
370
  }
371
- function we(n) {
372
- return qe(n) ? n : re(n) ? JSON.stringify(n, null, 2) : "";
371
+ function Pe(t) {
372
+ return ve(t) ? t : ee(t) ? JSON.stringify(t, null, 2) : "";
373
373
  }
374
- function ge(n) {
375
- if (typeof n == "object") {
376
- const o = Array.isArray(n) ? [] : {};
377
- for (const r in n)
378
- typeof n[r] == "object" ? o[r] = ge(n[r]) : o[r] = n[r];
374
+ function ye(t) {
375
+ if (typeof t == "object") {
376
+ const o = Array.isArray(t) ? [] : {};
377
+ for (const r in t)
378
+ typeof t[r] == "object" ? o[r] = ye(t[r]) : o[r] = t[r];
379
379
  return o;
380
380
  }
381
- return n;
381
+ return t;
382
382
  }
383
- function ut(n, o) {
383
+ function ct(t, o) {
384
384
  for (const r in o)
385
- o[r] instanceof Object && n[r] && Object.assign(o[r], ut(n[r], o[r]));
386
- return { ...n, ...o };
385
+ o[r] instanceof Object && t[r] && Object.assign(o[r], ct(t[r], o[r]));
386
+ return { ...t, ...o };
387
387
  }
388
- function ft(n, o) {
389
- if (n) {
390
- let r = n.getFullYear(), t = n.getMonth() + 1, u = n.getDate(), s = n.getHours(), c = n.getMinutes(), p = n.getSeconds(), a = o;
391
- return a = a.replace("yyyy", r), a.indexOf("MM") >= 0 ? t >= 10 ? a = a.replace("MM", t) : a = a.replace("MM", "0" + t) : a = a.replace("M", t), a.indexOf("dd") >= 0 ? u >= 10 ? a = a.replace("dd", u) : a = a.replace("dd", "0" + u) : a = a.replace("d", u), a.indexOf("HH") >= 0 ? s >= 10 ? a = a.replace("HH", s) : a = a.replace("HH", "0" + s) : a = a.replace("H", s), a.indexOf("mm") >= 0 ? c >= 10 ? a = a.replace("mm", c) : a = a.replace("mm", "0" + c) : a = a.replace("m", c), a.indexOf("ss") >= 0 ? p >= 10 ? a = a.replace("ss", p) : a = a.replace("ss", "0" + p) : a = a.replace("s", p), a;
388
+ function ut(t, o) {
389
+ if (t) {
390
+ let r = t.getFullYear(), n = t.getMonth() + 1, u = t.getDate(), s = t.getHours(), c = t.getMinutes(), d = t.getSeconds(), l = o;
391
+ return l = l.replace("yyyy", r), l.indexOf("MM") >= 0 ? n >= 10 ? l = l.replace("MM", n) : l = l.replace("MM", "0" + n) : l = l.replace("M", n), l.indexOf("dd") >= 0 ? u >= 10 ? l = l.replace("dd", u) : l = l.replace("dd", "0" + u) : l = l.replace("d", u), l.indexOf("HH") >= 0 ? s >= 10 ? l = l.replace("HH", s) : l = l.replace("HH", "0" + s) : l = l.replace("H", s), l.indexOf("mm") >= 0 ? c >= 10 ? l = l.replace("mm", c) : l = l.replace("mm", "0" + c) : l = l.replace("m", c), l.indexOf("ss") >= 0 ? d >= 10 ? l = l.replace("ss", d) : l = l.replace("ss", "0" + d) : l = l.replace("s", d), l;
392
392
  }
393
393
  return "";
394
394
  }
395
- function pt(n) {
396
- if (n) {
397
- if (it(n))
398
- return n;
399
- if (se(n)) {
400
- let o = /* @__PURE__ */ new Date(), r = parseInt(n);
395
+ function ft(t) {
396
+ if (t) {
397
+ if (it(t))
398
+ return t;
399
+ if (se(t)) {
400
+ let o = /* @__PURE__ */ new Date(), r = parseInt(t);
401
401
  return r < 9999999999 && (r = r * 1e3), o.setTime(r), o;
402
402
  } else
403
403
  try {
404
- return new Date(n);
404
+ return new Date(t);
405
405
  } catch {
406
406
  }
407
407
  }
408
408
  return null;
409
409
  }
410
- function mn(n, o = 0) {
411
- if (n) {
412
- let r = n.getDay(), t = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], u = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
413
- return o == 1 ? t[r] : o == 2 ? u[r] : r;
410
+ function gn(t, o = 0) {
411
+ if (t) {
412
+ let r = t.getDay(), n = ["星期天", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"], u = ["周末", "周一", "周二", "周三", "周四", "周五", "周六"];
413
+ return o == 1 ? n[r] : o == 2 ? u[r] : r;
414
414
  }
415
415
  return null;
416
416
  }
417
- function gn(n) {
417
+ function yn(t) {
418
418
  const o = document.createElement("textarea");
419
- o.value = n, document.body.appendChild(o), o.select();
419
+ o.value = t, document.body.appendChild(o), o.select();
420
420
  const r = document.execCommand("copy");
421
421
  return document.body.removeChild(o), r;
422
422
  }
423
- async function Ee(n) {
423
+ async function Ae(t) {
424
424
  try {
425
- return navigator.clipboard ? (await navigator.clipboard.writeText(n), !0) : !!gn(n);
425
+ return navigator.clipboard ? (await navigator.clipboard.writeText(t), !0) : !!yn(t);
426
426
  } catch (o) {
427
427
  return console.error("无法复制内容", o), !1;
428
428
  }
429
429
  }
430
- async function hn() {
430
+ async function _n() {
431
431
  try {
432
432
  return navigator.clipboard ? await navigator.clipboard.readText() : null;
433
- } catch (n) {
434
- return console.error("无法读取黏贴版内容", n), null;
433
+ } catch (t) {
434
+ return console.error("无法读取黏贴版内容", t), null;
435
435
  }
436
436
  }
437
- function yn(n, o) {
438
- return se(n) ? n : o;
437
+ function vn(t, o) {
438
+ return se(t) ? t : o;
439
439
  }
440
- function Te(n, o) {
441
- return o.split(".").reduce((r, t) => r && r[t], n);
440
+ function Ie(t, o) {
441
+ return o.split(".").reduce((r, n) => r && r[n], t);
442
442
  }
443
- function Re(n, o) {
444
- if (!n || typeof n != "object" || typeof o != "string" || !o)
443
+ function De(t, o) {
444
+ if (!t || typeof t != "object" || typeof o != "string" || !o)
445
445
  return !1;
446
446
  const r = o.split(".");
447
- let t = n;
447
+ let n = t;
448
448
  for (const u of r)
449
- if (t && typeof t == "object" && t.hasOwnProperty(u))
450
- t = t[u];
449
+ if (n && typeof n == "object" && n.hasOwnProperty(u))
450
+ n = n[u];
451
451
  else
452
452
  return !1;
453
453
  return !0;
@@ -456,109 +456,109 @@ function dt() {
456
456
  if (typeof crypto < "u" && crypto.randomUUID)
457
457
  return crypto.randomUUID();
458
458
  if (typeof crypto < "u" && crypto.getRandomValues) {
459
- const n = new Uint8Array(16);
460
- return crypto.getRandomValues(n), n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Array.from(n).map((o, r) => [4, 6, 8, 10].includes(r) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
459
+ const t = new Uint8Array(16);
460
+ return crypto.getRandomValues(t), t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, Array.from(t).map((o, r) => [4, 6, 8, 10].includes(r) ? "-" + o.toString(16).padStart(2, "0") : o.toString(16).padStart(2, "0")).join("");
461
461
  }
462
- return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(n) {
462
+ return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
463
463
  const o = Math.random() * 16 | 0;
464
- return (n === "x" ? o : o & 3 | 8).toString(16);
464
+ return (t === "x" ? o : o & 3 | 8).toString(16);
465
465
  });
466
466
  }
467
- function _n(n, o = {}, r) {
467
+ function Cn(t, o = {}, r) {
468
468
  try {
469
- let t = n.toString().trim();
470
- return t.indexOf("function") < 0 && (t = "function(param){" + t + "}"), new Function(`{return ${t}}`)()(o);
471
- } catch (t) {
472
- return console.error("执行自定义数时出错:", t), r;
469
+ let n = t.toString().trim();
470
+ return n.indexOf("function") < 0 && (n = "function(param){" + n + "}"), new Function(`{return ${n}}`)()(o);
471
+ } catch (n) {
472
+ return console.error("执行自定义数时出错:", n), r;
473
473
  }
474
474
  }
475
- function mt(n) {
476
- return v(n) ? an(n) : "";
475
+ function pt(t) {
476
+ return g(t) ? cn(t) : "";
477
477
  }
478
- function X(n, ...o) {
478
+ function $(t, ...o) {
479
479
  if (!window.hflvloader_debug) return;
480
480
  const r = {
481
481
  debug: ["%c[DEBUG]", "color: #4CAF50; font-weight: bold"],
482
482
  info: ["%c[INFO]", "color: #2196F3; font-weight: bold"],
483
483
  warn: ["%c[WARN]", "color: #FF9800; font-weight: bold"],
484
484
  error: ["%c[ERROR]", "color: #F44336; font-weight: bold"]
485
- }, t = r[n] || r.debug;
486
- switch (n) {
485
+ }, n = r[t] || r.debug;
486
+ switch (t) {
487
487
  case "debug":
488
- console.debug(t[0], t[1], ...o);
488
+ console.debug(n[0], n[1], ...o);
489
489
  break;
490
490
  case "info":
491
- console.info(t[0], t[1], ...o);
491
+ console.info(n[0], n[1], ...o);
492
492
  break;
493
493
  case "warn":
494
- console.warn(t[0], t[1], ...o);
494
+ console.warn(n[0], n[1], ...o);
495
495
  break;
496
496
  case "error":
497
- console.error(t[0], t[1], ...o);
497
+ console.error(n[0], n[1], ...o);
498
498
  break;
499
499
  default:
500
- console.log(t[0], t[1], ...o);
500
+ console.log(n[0], n[1], ...o);
501
501
  }
502
502
  }
503
- function vn(n, o = 0) {
504
- if (typeof n != "number" || isNaN(n))
503
+ function wn(t, o = 0) {
504
+ if (typeof t != "number" || isNaN(t))
505
505
  return NaN;
506
- const t = 10 * Math.max(0, Math.floor(Number(o) || 0));
507
- return Math.round(n * t) / t;
506
+ const n = 10 * Math.max(0, Math.floor(Number(o) || 0));
507
+ return Math.round(t * n) / n;
508
508
  }
509
- function bn(n) {
510
- return (Math.floor(n) & 1) === 0;
509
+ function bn(t) {
510
+ return (Math.floor(t) & 1) === 0;
511
511
  }
512
- function wn(n, o = 0, r = 3, t = !1) {
513
- return se(n) ? Fe.formatDecimal(Number(n), o, r, t) : n;
512
+ function xn(t, o = 0, r = 3, n = !1) {
513
+ return se(t) ? B.formatDecimal(Number(t), o, r, n) : t;
514
514
  }
515
- const fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
515
+ const mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
516
516
  __proto__: null,
517
- consolePrint: X,
518
- copyToClipboard: Ee,
519
- deepCopy: ge,
520
- deepMerge: ut,
521
- doMD5: mt,
522
- execCustomFunction: _n,
523
- formatDate: ft,
524
- formatNum: wn,
517
+ consolePrint: $,
518
+ copyToClipboard: Ae,
519
+ deepCopy: ye,
520
+ deepMerge: ct,
521
+ doMD5: pt,
522
+ execCustomFunction: Cn,
523
+ formatDate: ut,
524
+ formatNum: xn,
525
525
  generateSecureUUID: dt,
526
- getDate: pt,
527
- getJsonObject: ct,
528
- getValByDefault: yn,
529
- getValueByPath: Te,
530
- getWeek: mn,
531
- hasOwnPathInObject: Re,
526
+ getDate: ft,
527
+ getJsonObject: at,
528
+ getValByDefault: vn,
529
+ getValueByPath: Ie,
530
+ getWeek: gn,
531
+ hasOwnPathInObject: De,
532
532
  isArray: q,
533
533
  isComputed: st,
534
534
  isDate: it,
535
- isEmptyObject: dn,
535
+ isEmptyObject: hn,
536
536
  isEven: bn,
537
537
  isFunction: U,
538
- isNotEmpty: v,
539
- isNullOrUndefined: Pe,
538
+ isNotEmpty: g,
539
+ isNullOrUndefined: _e,
540
540
  isNumber: se,
541
- isObject: re,
542
- isString: qe,
543
- isValid: pn,
544
- keepDecimalCalc: vn,
545
- pasteFromClipboard: hn,
546
- toJsonStr: we
547
- }, Symbol.toStringTag, { value: "Module" })), xn = ["width", "height", "scale"];
548
- function Ze(n) {
541
+ isObject: ee,
542
+ isString: ve,
543
+ isValid: mn,
544
+ keepDecimalCalc: wn,
545
+ pasteFromClipboard: _n,
546
+ toJsonStr: Pe
547
+ }, Symbol.toStringTag, { value: "Module" })), Sn = ["width", "height", "scale"];
548
+ function Xe(t) {
549
549
  const o = {};
550
- return Object.keys(n).filter((r) => !xn.includes(r)).forEach((r) => {
551
- r === "fontSize" ? o[r] += "px" : r === "backgroundImage" && v(n[r]) ? o["background-image"] = "url(" + n[r] + ")" : r === "backgroundRepeat" ? o["background-repeat"] = n[r] : r === "backgroundSize" ? o["background-size"] = n[r] : r === "backgroundPosition" ? o["background-position"] = n[r] : o[r] = n[r];
550
+ return Object.keys(t).filter((r) => !Sn.includes(r)).forEach((r) => {
551
+ r === "fontSize" ? o[r] += "px" : r === "backgroundImage" && g(t[r]) ? o["background-image"] = "url(" + t[r] + ")" : r === "backgroundRepeat" ? o["background-repeat"] = t[r] : r === "backgroundSize" ? o["background-size"] = t[r] : r === "backgroundPosition" ? o["background-position"] = t[r] : o[r] = t[r];
552
552
  }), o;
553
553
  }
554
- const gt = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
555
- function ht(n, o = []) {
554
+ const mt = ["fontSize", "width", "height", "top", "left", "borderWidth", "letterSpacing", "borderRadius"];
555
+ function ht(t, o = []) {
556
556
  const r = {};
557
- return Object.keys(n).forEach((t) => {
558
- o.includes(t) || (t != "rotate" ? n[t] !== "" && (r[t] = n[t], gt.includes(t) && (r[t] += "px")) : r.transform = `${t}(${n[t]}deg)`);
557
+ return Object.keys(t).forEach((n) => {
558
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (r[n] = t[n], mt.includes(n) && (r[n] += "px")) : r.transform = `${n}(${t[n]}deg)`);
559
559
  }), r;
560
560
  }
561
- function Sn(n, o = []) {
561
+ function Pn(t, o = []) {
562
562
  const r = {};
563
563
  return [
564
564
  "opacity",
@@ -573,139 +573,139 @@ function Sn(n, o = []) {
573
573
  "letterSpacing",
574
574
  "textAlign",
575
575
  "color"
576
- ].forEach((t) => {
577
- o.includes(t) || (t != "rotate" ? n[t] !== "" && (r[t] = n[t], gt.includes(t) && (r[t] += "px")) : r.transform = `${t}(${n[t]}deg)`);
576
+ ].forEach((n) => {
577
+ o.includes(n) || (n != "rotate" ? t[n] !== "" && (r[n] = t[n], mt.includes(n) && (r[n] += "px")) : r.transform = `${n}(${t[n]}deg)`);
578
578
  }), r;
579
579
  }
580
- function Cn(n) {
581
- return n * Math.PI / 180;
580
+ function Mn(t) {
581
+ return t * Math.PI / 180;
582
582
  }
583
- function Pn(n) {
584
- return (n + 360) % 360;
583
+ function On(t) {
584
+ return (t + 360) % 360;
585
585
  }
586
- function Mn(n, o, r, t, u, s, c) {
587
- let p = Pn(n.rotate);
588
- const a = Cn(p), m = Math.round((n.left + n.width / 2) * 10) / 10, y = Math.round((n.top + n.height / 2) * 10) / 10;
589
- let h = p, _ = a;
586
+ function Vn(t, o, r, n, u, s, c) {
587
+ let d = On(t.rotate);
588
+ const l = Mn(d), p = Math.round((t.left + t.width / 2) * 10) / 10, _ = Math.round((t.top + t.height / 2) * 10) / 10;
589
+ let y = d, v = l;
590
590
  if (Math.abs(o - r) > 1e-3) {
591
- const G = Math.cos(_), Ve = Math.sin(_);
592
- _ = Math.atan2(r * Ve, o * G), h = Math.floor(_ * 180 / Math.PI % 360), h < 0 && (h += 360);
591
+ const G = Math.cos(v), ke = Math.sin(v);
592
+ v = Math.atan2(r * ke, o * G), y = Math.floor(v * 180 / Math.PI % 360), y < 0 && (y += 360);
593
593
  }
594
- const b = Math.abs(Math.cos(_)), w = Math.abs(Math.sin(_));
595
- let S = Math.round((n.width * b + n.height * w) * 10) / 10, P = Math.round((n.width * w + n.height * b) * 10) / 10, C = m - 0.5 * P, F = y - 0.5 * S, k = P, x = S, j = Math.round(n.height * w * 10) / 10, D = Math.round(j / k * 1e3) / 1e3;
594
+ const C = Math.abs(Math.cos(v)), w = Math.abs(Math.sin(v));
595
+ let x = Math.round((t.width * C + t.height * w) * 10) / 10, P = Math.round((t.width * w + t.height * C) * 10) / 10, S = p - 0.5 * P, R = _ - 0.5 * x, k = P, b = x, N = Math.round(t.height * w * 10) / 10, D = Math.round(N / k * 1e3) / 1e3;
596
596
  if (o != 1) {
597
- if (n.wdSet == "calc")
597
+ if (t.wdSet == "calc")
598
598
  k = Math.floor(k * o);
599
- else if (n.wdSet == "overspread") {
600
- let G = n.wdReserve < 0 ? 0 : n.wdReserve;
601
- k = Math.floor(t - G);
599
+ else if (t.wdSet == "overspread") {
600
+ let G = t.wdReserve < 0 ? 0 : t.wdReserve;
601
+ k = Math.floor(n - G);
602
602
  }
603
- if (n.hAffix != "left") if (n.hAffix == "right") {
604
- let G = s - (C + k);
605
- C = t - G - k;
606
- } else n.hAffix == "center" ? C = Math.floor(t * 0.5 - k * 0.5) : C = Math.floor(C * o);
603
+ if (t.hAffix != "left") if (t.hAffix == "right") {
604
+ let G = s - (S + k);
605
+ S = n - G - k;
606
+ } else t.hAffix == "center" ? S = Math.floor(n * 0.5 - k * 0.5) : S = Math.floor(S * o);
607
607
  }
608
608
  if (r != 1) {
609
- if (n.htSet == "calc")
610
- x = Math.floor(x * r);
611
- else if (n.htSet == "overspread") {
612
- let G = n.htReserve < 0 ? 0 : n.htReserve;
613
- x = Math.floor(u - G);
609
+ if (t.htSet == "calc")
610
+ b = Math.floor(b * r);
611
+ else if (t.htSet == "overspread") {
612
+ let G = t.htReserve < 0 ? 0 : t.htReserve;
613
+ b = Math.floor(u - G);
614
614
  }
615
- if (n.vAffix != "top") if (n.vAffix == "bottom") {
616
- let G = c - (F + x);
617
- F = u - G - x;
618
- } else n.vAffix == "center" ? F = Math.floor(u * 0.5 - x * 0.5) : F = Math.floor(F * r);
615
+ if (t.vAffix != "top") if (t.vAffix == "bottom") {
616
+ let G = c - (R + b);
617
+ R = u - G - b;
618
+ } else t.vAffix == "center" ? R = Math.floor(u * 0.5 - b * 0.5) : R = Math.floor(R * r);
619
619
  }
620
- const V = C + k * 0.5, J = F + x * 0.5, z = Math.round(k * D * 10) / 10, ee = Math.floor(Math.sqrt(z ** 2 + z ** 2)), ae = Math.floor((k - ee * b) / w), ce = V - ae / 2, Oe = J - ee / 2;
621
- n.left = Math.floor(ce), n.top = Math.floor(Oe), n.width = Math.floor(ae), n.height = Math.floor(ee), n.rotate = h;
620
+ const O = S + k * 0.5, J = R + b * 0.5, z = Math.round(k * D * 10) / 10, me = Math.floor(Math.sqrt(z ** 2 + z ** 2)), le = Math.floor((k - me * C) / w), ae = O - le / 2, ce = J - me / 2;
621
+ t.left = Math.floor(ae), t.top = Math.floor(ce), t.width = Math.floor(le), t.height = Math.floor(me), t.rotate = y;
622
622
  }
623
- function ue(n, o, r, t, u, s, c) {
624
- let p = JSON.parse(JSON.stringify(n));
625
- return p && p.length > 0 && p.forEach((a) => {
626
- if (a && a.style)
627
- if (a.style.rotateZoom && Math.abs(a.style.rotate) >= 1)
628
- Mn(a.style, t, u, o, r, s, c);
623
+ function ue(t, o, r, n, u, s, c) {
624
+ let d = JSON.parse(JSON.stringify(t));
625
+ return d && d.length > 0 && d.forEach((l) => {
626
+ if (l && l.style)
627
+ if (l.style.rotateZoom && Math.abs(l.style.rotate) >= 1)
628
+ Vn(l.style, n, u, o, r, s, c);
629
629
  else {
630
- if (t != 1) {
631
- let m = a.style.width;
632
- if (a.style.wdSet == "calc")
633
- m = Math.floor(a.style.width * t);
634
- else if (a.style.wdSet == "overspread") {
635
- let y = a.style.wdReserve < 0 ? 0 : a.style.wdReserve;
636
- m = Math.floor(o - y);
630
+ if (n != 1) {
631
+ let p = l.style.width;
632
+ if (l.style.wdSet == "calc")
633
+ p = Math.floor(l.style.width * n);
634
+ else if (l.style.wdSet == "overspread") {
635
+ let _ = l.style.wdReserve < 0 ? 0 : l.style.wdReserve;
636
+ p = Math.floor(o - _);
637
637
  }
638
- if (a.style.hAffix != "left") if (a.style.hAffix == "right") {
639
- let y = s - (a.style.left + a.style.width);
640
- a.style.left = o - y - m;
641
- } else a.style.hAffix == "center" ? a.style.left = Math.floor(o * 0.5 - m * 0.5) : a.style.left = Math.floor(a.style.left * t);
642
- a.style.width = m;
638
+ if (l.style.hAffix != "left") if (l.style.hAffix == "right") {
639
+ let _ = s - (l.style.left + l.style.width);
640
+ l.style.left = o - _ - p;
641
+ } else l.style.hAffix == "center" ? l.style.left = Math.floor(o * 0.5 - p * 0.5) : l.style.left = Math.floor(l.style.left * n);
642
+ l.style.width = p;
643
643
  }
644
644
  if (u != 1) {
645
- let m = a.style.height;
646
- if (a.style.htSet == "calc")
647
- m = Math.floor(a.style.height * u);
648
- else if (a.style.htSet == "overspread") {
649
- let y = a.style.htReserve < 0 ? 0 : a.style.htReserve;
650
- m = Math.floor(r - y);
645
+ let p = l.style.height;
646
+ if (l.style.htSet == "calc")
647
+ p = Math.floor(l.style.height * u);
648
+ else if (l.style.htSet == "overspread") {
649
+ let _ = l.style.htReserve < 0 ? 0 : l.style.htReserve;
650
+ p = Math.floor(r - _);
651
651
  }
652
- if (a.style.vAffix != "top") if (a.style.vAffix == "bottom") {
653
- let y = c - (a.style.top + a.style.height);
654
- a.style.top = r - y - m;
655
- } else a.style.vAffix == "center" ? a.style.top = Math.floor(r * 0.5 - m * 0.5) : a.style.top = Math.floor(a.style.top * u);
656
- a.style.height = m;
652
+ if (l.style.vAffix != "top") if (l.style.vAffix == "bottom") {
653
+ let _ = c - (l.style.top + l.style.height);
654
+ l.style.top = r - _ - p;
655
+ } else l.style.vAffix == "center" ? l.style.top = Math.floor(r * 0.5 - p * 0.5) : l.style.top = Math.floor(l.style.top * u);
656
+ l.style.height = p;
657
657
  }
658
658
  }
659
- }), p;
659
+ }), d;
660
660
  }
661
- function po(n, o, r, t) {
661
+ function ho(t, o, r, n) {
662
662
  let u = {}, s = [];
663
663
  if (!(r && r.screenAdapter && r.screenAdapter != "no-adapter"))
664
- u = r, s = t;
664
+ u = r, s = n;
665
665
  else {
666
- let c = Math.floor(n), p = Math.floor(o), a = Number(r.width), m = Number(r.height), y = 1, h = 1;
666
+ let c = Math.floor(t), d = Math.floor(o), l = Number(r.width), p = Number(r.height), _ = 1, y = 1;
667
667
  if (r.screenAdapter == "all-screen")
668
- u = JSON.parse(JSON.stringify(r)), c > a + 10 && (u.width = c, y = Math.floor(1e4 * c / a) / 1e4), p > m + 10 && (u.height = p, h = Math.floor(1e4 * p / m) / 1e4), s = ue(t, c, p, y, h, a, m);
668
+ u = JSON.parse(JSON.stringify(r)), c > l + 10 && (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), d > p + 10 && (u.height = d, y = Math.floor(1e4 * d / p) / 1e4), s = ue(n, c, d, _, y, l, p);
669
669
  else if (r.screenAdapter == "original-ratio") {
670
670
  u = JSON.parse(JSON.stringify(r));
671
- let _ = Math.floor(1e4 * a / m) / 1e4;
672
- Math.floor(p * _) > c ? (u.width = c, y = Math.floor(1e4 * c / a) / 1e4, p = Math.floor(c / _), u.height = p, h = Math.floor(1e4 * p / m) / 1e4) : (u.height = p, h = Math.floor(1e4 * p / m) / 1e4, c = Math.floor(p * _), u.width = c, y = Math.floor(1e4 * c / a) / 1e4), s = ue(t, c, p, y, h, a, m);
671
+ let v = Math.floor(1e4 * l / p) / 1e4;
672
+ Math.floor(d * v) > c ? (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4, d = Math.floor(c / v), u.height = d, y = Math.floor(1e4 * d / p) / 1e4) : (u.height = d, y = Math.floor(1e4 * d / p) / 1e4, c = Math.floor(d * v), u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), s = ue(n, c, d, _, y, l, p);
673
673
  } else if (r.screenAdapter == "h-adapter-wh") {
674
674
  u = JSON.parse(JSON.stringify(r));
675
- let _ = Math.floor(1e4 * a / m) / 1e4;
676
- c > a + 10 && (u.width = c, y = Math.floor(1e4 * c / a) / 1e4, p = Math.floor(c / _), u.height = p, h = Math.floor(1e4 * p / m) / 1e4), s = ue(t, c, p, y, h, a, m);
675
+ let v = Math.floor(1e4 * l / p) / 1e4;
676
+ c > l + 10 && (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4, d = Math.floor(c / v), u.height = d, y = Math.floor(1e4 * d / p) / 1e4), s = ue(n, c, d, _, y, l, p);
677
677
  } else if (r.screenAdapter == "v-adapter-wh") {
678
678
  u = JSON.parse(JSON.stringify(r));
679
- let _ = Math.floor(1e4 * a / m) / 1e4;
680
- p > m + 10 && (u.height = p, h = Math.floor(1e4 * p / m) / 1e4, c = Math.floor(p * _), u.width = c, y = Math.floor(1e4 * c / a) / 1e4), s = ue(t, c, p, y, h, a, m);
681
- } else r.screenAdapter == "h-adapter" ? (u = JSON.parse(JSON.stringify(r)), c > a + 10 && (u.width = c, y = Math.floor(1e4 * c / a) / 1e4), s = ue(t, c, p, y, h, a, m)) : r.screenAdapter == "v-adapter" ? (u = JSON.parse(JSON.stringify(r)), p > m + 10 && (u.height = p, h = Math.floor(1e4 * p / m) / 1e4), s = ue(t, c, p, y, h, a, m)) : (u = r, s = t);
679
+ let v = Math.floor(1e4 * l / p) / 1e4;
680
+ d > p + 10 && (u.height = d, y = Math.floor(1e4 * d / p) / 1e4, c = Math.floor(d * v), u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), s = ue(n, c, d, _, y, l, p);
681
+ } else r.screenAdapter == "h-adapter" ? (u = JSON.parse(JSON.stringify(r)), c > l + 10 && (u.width = c, _ = Math.floor(1e4 * c / l) / 1e4), s = ue(n, c, d, _, y, l, p)) : r.screenAdapter == "v-adapter" ? (u = JSON.parse(JSON.stringify(r)), d > p + 10 && (u.height = d, y = Math.floor(1e4 * d / p) / 1e4), s = ue(n, c, d, _, y, l, p)) : (u = r, s = n);
682
682
  }
683
683
  return {
684
684
  canvasStyleData: u,
685
685
  componentData: s
686
686
  };
687
687
  }
688
- async function et(n, o = []) {
689
- const r = (t) => new Promise((u) => {
690
- const { animationTime: s, value: c = "", isLoop: p } = t;
691
- n.style.setProperty("--time", `${s}s`), n.classList.add(c, "animated", tt(p));
692
- const a = () => {
693
- n.removeEventListener("animationend", a), n.removeEventListener("animationcancel", a), n.classList.remove(c, "animated", tt(p)), n.style.removeProperty("--time"), u();
688
+ async function Ze(t, o = []) {
689
+ const r = (n) => new Promise((u) => {
690
+ const { animationTime: s, value: c = "", isLoop: d } = n;
691
+ t.style.setProperty("--time", `${s}s`), t.classList.add(c, "animated", et(d));
692
+ const l = () => {
693
+ t.removeEventListener("animationend", l), t.removeEventListener("animationcancel", l), t.classList.remove(c, "animated", et(d)), t.style.removeProperty("--time"), u();
694
694
  };
695
- n.addEventListener("animationend", a), n.addEventListener("animationcancel", a);
695
+ t.addEventListener("animationend", l), t.addEventListener("animationcancel", l);
696
696
  });
697
- for (let t = 0, u = o.length; t < u; t++)
698
- await r(o[t]);
697
+ for (let n = 0, u = o.length; n < u; n++)
698
+ await r(o[n]);
699
699
  }
700
- function tt(n) {
701
- return n ? "infinite" : "no-infinite";
700
+ function et(t) {
701
+ return t ? "infinite" : "no-infinite";
702
702
  }
703
- const Z = (n, o) => {
704
- const r = n.__vccOpts || n;
705
- for (const [t, u] of o)
706
- r[t] = u;
703
+ const Z = (t, o) => {
704
+ const r = t.__vccOpts || t;
705
+ for (const [n, u] of o)
706
+ r[n] = u;
707
707
  return r;
708
- }, On = {
708
+ }, In = {
709
709
  __name: "ComponentWrapper",
710
710
  props: {
711
711
  config: {
@@ -715,66 +715,66 @@ const Z = (n, o) => {
715
715
  }
716
716
  }
717
717
  },
718
- setup(n, { expose: o }) {
719
- const r = n, t = O(() => r.config || {}), u = O({
720
- get: () => !t.value.style?.isHide,
721
- set: (b) => {
722
- t.value.style && (t.value.style.isHide = !b);
718
+ setup(t, { expose: o }) {
719
+ const r = t, n = V(() => r.config || {}), u = V({
720
+ get: () => !n.value.style?.isHide,
721
+ set: (C) => {
722
+ n.value.style && (n.value.style.isHide = !C);
723
723
  }
724
- }), s = he({}), c = (b, w) => {
725
- b ? s[`Ve${w}`] = b : delete s[`Ve${w}`];
726
- }, p = (b) => s[`Ve${b}`], a = () => {
727
- if (t.value.animations && t.value.animations.length > 0) {
728
- let b = s[`Ve${t.value.id}`];
729
- b.$el && et(b.$el, t.value.animations);
724
+ }), s = pe({}), c = (C, w) => {
725
+ C ? s[`Ve${w}`] = C : delete s[`Ve${w}`];
726
+ }, d = (C) => s[`Ve${C}`], l = () => {
727
+ if (n.value.animations && n.value.animations.length > 0) {
728
+ let C = s[`Ve${n.value.id}`];
729
+ C.$el && Ze(C.$el, n.value.animations);
730
730
  }
731
- }, m = () => {
731
+ }, p = () => {
732
732
  u.value = !1;
733
- }, y = () => {
733
+ }, _ = () => {
734
734
  u.value = !0;
735
- }, h = () => u.value;
736
- Ce(() => {
737
- a();
735
+ }, y = () => u.value;
736
+ Ve(() => {
737
+ l();
738
738
  }), o({
739
- getComponentRef: p,
740
- hide: m,
741
- show: y,
742
- showStatus: h
739
+ getComponentRef: d,
740
+ hide: p,
741
+ show: _,
742
+ showStatus: y
743
743
  });
744
- const _ = { props: r, config: t, isShow: u, componentRefs: s, setComponentRef: c, getComponentRef: p, execAnimation: a, hide: m, show: y, showStatus: h, ref: T, computed: O, onMounted: Ce, reactive: he, watch: Me, get getSVGStyle() {
745
- return Sn;
744
+ const v = { props: r, config: n, isShow: u, componentRefs: s, setComponentRef: c, getComponentRef: d, execAnimation: l, hide: p, show: _, showStatus: y, ref: T, computed: V, onMounted: Ve, reactive: pe, watch: be, get getSVGStyle() {
745
+ return Pn;
746
746
  }, get getStyle() {
747
747
  return ht;
748
748
  }, get runAnimation() {
749
- return et;
749
+ return Ze;
750
750
  } };
751
- return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
751
+ return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
752
752
  }
753
753
  };
754
- function Vn(n, o, r, t, u, s) {
755
- return De((R(), W("div", { class: "component-wrapper" }, [
756
- t.config.component.startsWith("SVG") ? (R(), $(xe(t.config.component), {
754
+ function Dn(t, o, r, n, u, s) {
755
+ return Te((A(), W("div", { class: "component-wrapper" }, [
756
+ n.config.component.startsWith("SVG") ? (A(), Q(Me(n.config.component), {
757
757
  key: 0,
758
- ref: (c) => t.setComponentRef(c, t.config.id),
758
+ ref: (c) => n.setComponentRef(c, n.config.id),
759
759
  class: "component",
760
- style: Se(t.getSVGStyle(t.config.style)),
761
- "prop-value": t.config.propValue,
762
- element: t.config,
760
+ style: Oe(n.getSVGStyle(n.config.style)),
761
+ "prop-value": n.config.propValue,
762
+ element: n.config,
763
763
  designStatus: !1
764
- }, null, 8, ["style", "prop-value", "element"])) : (R(), $(xe(t.config.component), {
764
+ }, null, 8, ["style", "prop-value", "element"])) : (A(), Q(Me(n.config.component), {
765
765
  key: 1,
766
- ref: (c) => t.setComponentRef(c, t.config.id),
766
+ ref: (c) => n.setComponentRef(c, n.config.id),
767
767
  class: "component",
768
- style: Se(t.getStyle(t.config.style)),
769
- "prop-value": t.config.propValue,
770
- element: t.config,
768
+ style: Oe(n.getStyle(n.config.style)),
769
+ "prop-value": n.config.propValue,
770
+ element: n.config,
771
771
  designStatus: !1
772
772
  }, null, 8, ["style", "prop-value", "element"]))
773
773
  ], 512)), [
774
- [rt, t.isShow]
774
+ [ot, n.isShow]
775
775
  ]);
776
776
  }
777
- const In = /* @__PURE__ */ Z(On, [["render", Vn], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), kn = /* @__PURE__ */ Object.assign({
777
+ const kn = /* @__PURE__ */ Z(In, [["render", Dn], ["__scopeId", "data-v-56b0e3e4"], ["__file", "ComponentWrapper.vue"]]), Rn = /* @__PURE__ */ Object.assign({
778
778
  name: "VEPage"
779
779
  }, {
780
780
  __name: "index",
@@ -791,73 +791,73 @@ const In = /* @__PURE__ */ Z(On, [["render", Vn], ["__scopeId", "data-v-56b0e3e4
791
791
  default: []
792
792
  }
793
793
  },
794
- setup(n, { expose: o }) {
795
- const r = n, t = T({}), u = O(() => r.canvasStyle || {}), s = O(() => r.componentData || []), c = (_, b) => {
796
- _ && (t.value[b] = _);
797
- }, p = O(() => {
798
- let _ = {}, b = { ...u.value || {} }, w = b.diyStyles || {};
799
- delete b.diyStyles;
800
- let S = Ze(b || {});
801
- return S.hasOwnProperty("backgroundColor") && (S["background-color"] = S.backgroundColor, delete S.backgroundColor), S.width = `${u.value.width}px`, S.height = `${u.value.height}px`, _ = { ...S, ...w }, X("debug", "style", _, "_style", S, "diyStyle", w), v(_.background) && !v(_["background-color"]) && delete _["background-color"], v(_.background) || v(_["background-image"]) || v(_["background-color"]) || (_["background-color"] = "transparent !important"), _;
802
- }), a = (_, b, w) => {
803
- if (v(_) && v(b)) {
804
- const S = "VeP" + _, P = t.value[S];
794
+ setup(t, { expose: o }) {
795
+ const r = t, n = T({}), u = V(() => r.canvasStyle || {}), s = V(() => r.componentData || []), c = (v, C) => {
796
+ v && (n.value[C] = v);
797
+ }, d = V(() => {
798
+ let v = {}, C = { ...u.value || {} }, w = C.diyStyles || {};
799
+ delete C.diyStyles;
800
+ let x = Xe(C || {});
801
+ return x.hasOwnProperty("backgroundColor") && (x["background-color"] = x.backgroundColor, delete x.backgroundColor), x.width = `${u.value.width}px`, x.height = `${u.value.height}px`, v = { ...x, ...w }, $("debug", "style", v, "_style", x, "diyStyle", w), g(v.background) && !g(v["background-color"]) && delete v["background-color"], g(v.background) || g(v["background-image"]) || g(v["background-color"]) || (v["background-color"] = "transparent !important"), v;
802
+ }), l = (v, C, w) => {
803
+ if (g(v) && g(C)) {
804
+ const x = "VeP" + v, P = n.value[x];
805
805
  if (P) {
806
- let C;
807
- q(P) ? C = P[0] : C = P;
808
- const F = C.getComponentRef(_);
809
- F ? F?.$options.name === "Group" && w && w.compId ? F.callGroupCompMethod(w.compId, b, w.data) : F[b] && (w ? F[b](w) : F[b]()) : X("warning", "The component is not exist.id:", _);
806
+ let S;
807
+ q(P) ? S = P[0] : S = P;
808
+ const R = S.getComponentRef(v);
809
+ R ? R?.$options.name === "Group" && w && w.compId ? R.callGroupCompMethod(w.compId, C, w.data) : R[C] && (w ? R[C](w) : R[C]()) : $("warning", "The component is not exist.id:", v);
810
810
  }
811
811
  }
812
- }, m = (_, b, w = {}) => {
813
- if (v(_)) {
814
- const S = "VeP" + _, P = t.value[S];
812
+ }, p = (v, C, w = {}) => {
813
+ if (g(v)) {
814
+ const x = "VeP" + v, P = n.value[x];
815
815
  if (P) {
816
- let C;
817
- q(P) ? C = P[0] : C = P, b ? C.show() : C.hide();
816
+ let S;
817
+ q(P) ? S = P[0] : S = P, C ? S.show() : S.hide();
818
818
  }
819
819
  }
820
- }, y = (_, b, w) => {
821
- if (v(_) && v(b)) {
822
- const S = "VeP" + _, P = t.value[S];
820
+ }, _ = (v, C, w) => {
821
+ if (g(v) && g(C)) {
822
+ const x = "VeP" + v, P = n.value[x];
823
823
  if (P) {
824
- let C;
825
- if (q(P) ? C = P[0] : C = P, C && C[b])
826
- return w ? C[b](w) : C[b]();
824
+ let S;
825
+ if (q(P) ? S = P[0] : S = P, S && S[C])
826
+ return w ? S[C](w) : S[C]();
827
827
  }
828
828
  }
829
829
  };
830
- oe("VE-CompMethod", a), oe("VE-CompHideAndShow", m), oe("VE-CompWrapMethod", y), o({
831
- callCompMethod: a
830
+ oe("VE-CompMethod", l), oe("VE-CompHideAndShow", p), oe("VE-CompWrapMethod", _), o({
831
+ callCompMethod: l
832
832
  });
833
- const h = { props: r, componentRefs: t, canvasStyle: u, componentData: s, setComponentRef: c, calcCanvasStyle: p, callCompMethod: a, callCompHideAndShow: m, callCompWrapMethod: y, ref: T, computed: O, provide: oe, watch: Me, get getCanvasStyle() {
834
- return Ze;
835
- }, ComponentWrapper: In, get isNotEmpty() {
836
- return v;
833
+ const y = { props: r, componentRefs: n, canvasStyle: u, componentData: s, setComponentRef: c, calcCanvasStyle: d, callCompMethod: l, callCompHideAndShow: p, callCompWrapMethod: _, ref: T, computed: V, provide: oe, watch: be, get getCanvasStyle() {
834
+ return Xe;
835
+ }, ComponentWrapper: kn, get isNotEmpty() {
836
+ return g;
837
837
  }, get isArray() {
838
838
  return q;
839
839
  }, get consolePrint() {
840
- return X;
840
+ return $;
841
841
  } };
842
- return Object.defineProperty(h, "__isScriptSetup", { enumerable: !1, value: !0 }), h;
842
+ return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
843
843
  }
844
844
  });
845
- function Dn(n, o, r, t, u, s) {
846
- return R(), W("div", { class: "canvas-container" }, [
847
- le("div", {
845
+ function En(t, o, r, n, u, s) {
846
+ return A(), W("div", { class: "canvas-container" }, [
847
+ re("div", {
848
848
  class: "canvas",
849
- style: Se(t.calcCanvasStyle)
849
+ style: Oe(n.calcCanvasStyle)
850
850
  }, [
851
- (R(!0), W(He, null, Le(t.componentData, (c, p) => (R(), $(t.ComponentWrapper, {
852
- key: p,
851
+ (A(!0), W(Ke, null, He(n.componentData, (c, d) => (A(), Q(n.ComponentWrapper, {
852
+ key: d,
853
853
  config: c,
854
854
  ref_for: !0,
855
- ref: (a) => t.setComponentRef(a, "VeP" + c.id)
855
+ ref: (l) => n.setComponentRef(l, "VeP" + c.id)
856
856
  }, null, 8, ["config"]))), 128))
857
857
  ], 4)
858
858
  ]);
859
859
  }
860
- const Fn = /* @__PURE__ */ Z(kn, [["render", Dn], ["__scopeId", "data-v-c471d52f"], ["__file", "index.vue"]]), En = Xt({
860
+ const Tn = /* @__PURE__ */ Z(Rn, [["render", En], ["__scopeId", "data-v-c471d52f"], ["__file", "index.vue"]]), An = en({
861
861
  name: "ve-comp-svg-icon",
862
862
  props: {
863
863
  iconClass: {
@@ -873,25 +873,25 @@ const Fn = /* @__PURE__ */ Z(kn, [["render", Dn], ["__scopeId", "data-v-c471d52f
873
873
  default: ""
874
874
  }
875
875
  },
876
- setup(n) {
876
+ setup(t) {
877
877
  return {
878
- iconName: O(() => `#icon-${n.iconClass}`),
879
- svgClass: O(() => n.className ? `ve-comp-svg-icon ${n.className}` : "ve-comp-svg-icon")
878
+ iconName: V(() => `#icon-${t.iconClass}`),
879
+ svgClass: V(() => t.className ? `ve-comp-svg-icon ${t.className}` : "ve-comp-svg-icon")
880
880
  };
881
881
  }
882
882
  });
883
- function Tn(n, o, r, t, u, s) {
884
- return R(), W("svg", {
885
- class: lt(n.svgClass),
883
+ function Fn(t, o, r, n, u, s) {
884
+ return A(), W("svg", {
885
+ class: rt(t.svgClass),
886
886
  "aria-hidden": "true"
887
887
  }, [
888
- le("use", {
889
- "xlink:href": n.iconName,
890
- fill: n.color
888
+ re("use", {
889
+ "xlink:href": t.iconName,
890
+ fill: t.color
891
891
  }, null, 8, ["xlink:href", "fill"])
892
892
  ], 2);
893
893
  }
894
- const yt = /* @__PURE__ */ Z(En, [["render", Tn], ["__file", "index.vue"]]), Rn = /* @__PURE__ */ Object.assign({
894
+ const gt = /* @__PURE__ */ Z(An, [["render", Fn], ["__file", "index.vue"]]), jn = /* @__PURE__ */ Object.assign({
895
895
  name: "CompositeIcon"
896
896
  }, {
897
897
  __name: "index",
@@ -910,72 +910,72 @@ const yt = /* @__PURE__ */ Z(En, [["render", Tn], ["__file", "index.vue"]]), Rn
910
910
  default: ""
911
911
  }
912
912
  },
913
- setup(n, { expose: o }) {
913
+ setup(t, { expose: o }) {
914
914
  o();
915
- const p = { props: n, isImage: (a) => a && a.toString().toLowerCase().startsWith("img#"), getImageSrc: (a) => a.toString().substring(4), isSvgIcon: (a) => a && a.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (a) => a.toString().substring(4), VeCompSvgIcon: yt };
916
- return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
915
+ const d = { props: t, isImage: (l) => l && l.toString().toLowerCase().startsWith("img#"), getImageSrc: (l) => l.toString().substring(4), isSvgIcon: (l) => l && l.toString().toLowerCase().indexOf("svg#") == 0, getSvgIconClass: (l) => l.toString().substring(4), VeCompSvgIcon: gt };
916
+ return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
917
917
  }
918
918
  });
919
- function An(n, o, r, t, u, s) {
920
- const c = B("el-icon");
921
- return R(), $(c, {
922
- size: t.props.iconSize,
923
- color: t.props.color
919
+ function Bn(t, o, r, n, u, s) {
920
+ const c = K("el-icon");
921
+ return A(), Q(c, {
922
+ size: n.props.iconSize,
923
+ color: n.props.color
924
924
  }, {
925
- default: A(() => [
926
- t.isImage(t.props.icon) ? (R(), W("img", {
925
+ default: F(() => [
926
+ n.isImage(n.props.icon) ? (A(), W("img", {
927
927
  key: 0,
928
- src: t.getImageSrc(t.props.icon)
929
- }, null, 8, ["src"])) : t.isSvgIcon(t.props.icon) ? (R(), $(t.VeCompSvgIcon, {
928
+ src: n.getImageSrc(n.props.icon)
929
+ }, null, 8, ["src"])) : n.isSvgIcon(n.props.icon) ? (A(), Q(n.VeCompSvgIcon, {
930
930
  key: 1,
931
- "icon-class": t.getSvgIconClass(t.props.icon),
932
- color: t.props.color
933
- }, null, 8, ["icon-class", "color"])) : (R(), $(xe(t.props.icon), { key: 2 }))
931
+ "icon-class": n.getSvgIconClass(n.props.icon),
932
+ color: n.props.color
933
+ }, null, 8, ["icon-class", "color"])) : (A(), Q(Me(n.props.icon), { key: 2 }))
934
934
  ]),
935
935
  _: 1
936
936
  }, 8, ["size", "color"]);
937
937
  }
938
- const Nn = /* @__PURE__ */ Z(Rn, [["render", An], ["__file", "index.vue"]]);
939
- let ke = null;
940
- const Ae = () => {
941
- if (!ke) {
942
- const n = he({}), o = T([]);
943
- ke = {
944
- dialogs: n,
938
+ const Nn = /* @__PURE__ */ Z(jn, [["render", Bn], ["__file", "index.vue"]]);
939
+ let Ee = null;
940
+ const Fe = () => {
941
+ if (!Ee) {
942
+ const t = pe({}), o = T([]);
943
+ Ee = {
944
+ dialogs: t,
945
945
  dialogStack: o,
946
946
  openDialog: (c = {}) => {
947
- const p = c.dialogId || "dialog-" + dt(), a = o.value.length;
948
- a >= 1 && (c.appendToBody = !0);
949
- const m = {
950
- id: p,
951
- level: a,
947
+ const d = c.dialogId || "dialog-" + dt(), l = o.value.length;
948
+ l >= 1 && (c.appendToBody = !0);
949
+ const p = {
950
+ id: d,
951
+ level: l,
952
952
  config: c
953
953
  };
954
- if (n[p] = m, o.value.length >= 1) {
955
- let y = !1;
956
- for (let h = 0; h < o.value.length; h++)
957
- if (p == o.value[h]) {
958
- y = !0;
954
+ if (t[d] = p, o.value.length >= 1) {
955
+ let _ = !1;
956
+ for (let y = 0; y < o.value.length; y++)
957
+ if (d == o.value[y]) {
958
+ _ = !0;
959
959
  break;
960
960
  }
961
- y || o.value.push(p);
961
+ _ || o.value.push(d);
962
962
  } else
963
- o.value.push(p);
964
- return p;
963
+ o.value.push(d);
964
+ return d;
965
965
  },
966
966
  closeDialog: (c) => {
967
- delete n[c], o.value = o.value.filter((p) => p !== c);
967
+ delete t[c], o.value = o.value.filter((d) => d !== c);
968
968
  },
969
969
  closeAllDialogs: () => {
970
- Object.keys(n).forEach((c) => {
971
- delete n[c];
970
+ Object.keys(t).forEach((c) => {
971
+ delete t[c];
972
972
  }), o.value = [];
973
973
  },
974
974
  getDialogCount: () => o.value.length
975
975
  };
976
976
  }
977
- return ke;
978
- }, jn = /* @__PURE__ */ Object.assign({
977
+ return Ee;
978
+ }, Kn = /* @__PURE__ */ Object.assign({
979
979
  name: "FullScreenDialog"
980
980
  }, {
981
981
  __name: "FullscreenDialog",
@@ -986,98 +986,98 @@ const Ae = () => {
986
986
  }
987
987
  },
988
988
  emits: ["confirm", "cancel"],
989
- setup(n, { expose: o, emit: r }) {
990
- const t = n, u = r, s = O(() => t.config), c = O(() => s.value.title || "对话框"), p = O(() => !!t.config.showHeader), a = T(s.value.fullscreen), m = T(s.value.width), y = T(!0), h = O(() => {
991
- let x = s.value.width ?? 800;
992
- return p.value ? x + 32 : x;
993
- }), _ = O(() => {
994
- let x = {};
995
- return x.style = {}, x.style.width = s.value.width ?? 800, x.style.height = s.value.height ?? 600, x.prop = {}, x.prop.subpageId = s.value.pageId, x.containerParam = s.value.pageParam || {}, x;
996
- }), b = O(() => {
997
- let x = {};
998
- return x.modal = s.value.modal, x["show-close"] = s.value.showClose, x.draggable = s.value.draggable, s.value.appendToBody && (x["append-to-body"] = s.value.appendToBody), p.value || (x.class = " no-header-dialog"), s.value.customPosition ? x["align-center"] = !1 : x["align-center"] = !0, x;
999
- }), w = O(() => {
1000
- let x = {};
989
+ setup(t, { expose: o, emit: r }) {
990
+ const n = t, u = r, s = V(() => n.config), c = V(() => s.value.title || "对话框"), d = V(() => !!n.config.showHeader), l = T(s.value.fullscreen), p = T(s.value.width), _ = T(!0), y = V(() => {
991
+ let b = s.value.width ?? 800;
992
+ return d.value ? b + 32 : b;
993
+ }), v = V(() => {
994
+ let b = {};
995
+ return b.style = {}, b.style.width = s.value.width ?? 800, b.style.height = s.value.height ?? 600, b.prop = {}, b.prop.subpageId = s.value.pageId, b.containerParam = s.value.pageParam || {}, b;
996
+ }), C = V(() => {
997
+ let b = {};
998
+ return b.modal = s.value.modal, b["show-close"] = s.value.showClose, b.draggable = s.value.draggable, s.value.appendToBody && (b["append-to-body"] = s.value.appendToBody), d.value || (b.class = " no-header-dialog"), s.value.customPosition ? b["align-center"] = !1 : b["align-center"] = !0, b;
999
+ }), w = V(() => {
1000
+ let b = {};
1001
1001
  if (s.value.customPosition) {
1002
- let j = s.value.absLeft ?? 100, D = s.value.absTop ?? 100;
1003
- Object.assign(x, {
1002
+ let N = s.value.absLeft ?? 100, D = s.value.absTop ?? 100;
1003
+ Object.assign(b, {
1004
1004
  position: "fixed",
1005
- left: `${j}px`,
1005
+ left: `${N}px`,
1006
1006
  top: `${D}px`,
1007
1007
  transform: "none",
1008
1008
  margin: "0 !important"
1009
1009
  });
1010
1010
  }
1011
- return s.value.noBackgroundColor && Object.assign(x, {
1011
+ return s.value.noBackgroundColor && Object.assign(b, {
1012
1012
  backgroundColor: "transparent"
1013
- }), x;
1014
- }), S = () => {
1013
+ }), b;
1014
+ }), x = () => {
1015
1015
  u("confirm");
1016
1016
  }, P = () => {
1017
- u("cancel"), C();
1018
- }, C = () => {
1019
- y.value = !1;
1020
- }, F = (x) => {
1017
+ u("cancel"), S();
1018
+ }, S = () => {
1019
+ _.value = !1;
1020
+ }, R = (b) => {
1021
1021
  u("cancel");
1022
1022
  };
1023
1023
  oe("VE-CompMethod", function() {
1024
- X("warning", "对话框模式,不提供compMethod函数实现");
1024
+ $("warning", "对话框模式,不提供compMethod函数实现");
1025
1025
  }), oe("VE-CompHideAndShow", function() {
1026
- X("warning", "对话框模式,不提供compHideAndShow函数实现");
1026
+ $("warning", "对话框模式,不提供compHideAndShow函数实现");
1027
1027
  }), oe("VE-CompWrapMethod", function() {
1028
- X("warning", "对话框模式,不提供compWrapMethod函数实现");
1028
+ $("warning", "对话框模式,不提供compWrapMethod函数实现");
1029
1029
  }), o({
1030
- close: C
1030
+ close: S
1031
1031
  });
1032
- const k = { props: t, emit: u, config: s, title: c, showTitle: p, isFullscreen: a, previousWidth: m, openDialog: y, dialogWidth: h, element: _, bindAttr: b, customStyle: w, confirmInner: S, cancel: P, close: C, handleClose: F, ref: T, computed: O, provide: oe, get consolePrint() {
1033
- return X;
1032
+ const k = { props: n, emit: u, config: s, title: c, showTitle: d, isFullscreen: l, previousWidth: p, openDialog: _, dialogWidth: y, element: v, bindAttr: C, customStyle: w, confirmInner: x, cancel: P, close: S, handleClose: R, ref: T, computed: V, provide: oe, get consolePrint() {
1033
+ return $;
1034
1034
  }, get isNotEmpty() {
1035
- return v;
1035
+ return g;
1036
1036
  } };
1037
1037
  return Object.defineProperty(k, "__isScriptSetup", { enumerable: !1, value: !0 }), k;
1038
1038
  }
1039
1039
  });
1040
- function Bn(n, o, r, t, u, s) {
1041
- const c = B("Subpage"), p = B("el-button"), a = B("el-dialog");
1042
- return R(), W("div", { class: "full-screen-dialog-wrapper" }, [
1043
- E(a, Zt({
1044
- modelValue: t.openDialog,
1045
- "onUpdate:modelValue": o[0] || (o[0] = (m) => t.openDialog = m),
1046
- width: t.dialogWidth,
1047
- fullscreen: t.isFullscreen
1048
- }, t.bindAttr, {
1049
- style: t.customStyle,
1050
- onClose: t.handleClose
1051
- }), en({
1052
- header: A(() => [
1053
- t.showTitle ? (R(), W("span", { key: 0 }, tn(t.title), 1)) : Je("", !0)
1040
+ function Hn(t, o, r, n, u, s) {
1041
+ const c = K("Subpage"), d = K("el-button"), l = K("el-dialog");
1042
+ return A(), W("div", { class: "full-screen-dialog-wrapper" }, [
1043
+ E(l, tn({
1044
+ modelValue: n.openDialog,
1045
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => n.openDialog = p),
1046
+ width: n.dialogWidth,
1047
+ fullscreen: n.isFullscreen
1048
+ }, n.bindAttr, {
1049
+ style: n.customStyle,
1050
+ onClose: n.handleClose
1051
+ }), nn({
1052
+ header: F(() => [
1053
+ n.showTitle ? (A(), W("span", { key: 0 }, on(n.title), 1)) : We("", !0)
1054
1054
  ]),
1055
- default: A(() => [
1056
- t.isNotEmpty(t.config.pageId) ? (R(), $(c, {
1055
+ default: F(() => [
1056
+ n.isNotEmpty(n.config.pageId) ? (A(), Q(c, {
1057
1057
  key: 0,
1058
- "prop-value": t.element.prop,
1059
- element: t.element
1060
- }, null, 8, ["prop-value", "element"])) : Je("", !0)
1058
+ "prop-value": n.element.prop,
1059
+ element: n.element
1060
+ }, null, 8, ["prop-value", "element"])) : We("", !0)
1061
1061
  ]),
1062
1062
  _: 2
1063
1063
  }, [
1064
- t.config.showFooter ? {
1064
+ n.config.showFooter ? {
1065
1065
  name: "footer",
1066
- fn: A(() => [
1067
- le("div", { class: "dialog-footer" }, [
1068
- E(p, {
1066
+ fn: F(() => [
1067
+ re("div", { class: "dialog-footer" }, [
1068
+ E(d, {
1069
1069
  type: "primary",
1070
- onClick: t.confirmInner
1070
+ onClick: n.confirmInner
1071
1071
  }, {
1072
- default: A(() => [
1073
- N("确定")
1072
+ default: F(() => [
1073
+ j("确定")
1074
1074
  ]),
1075
1075
  _: 1
1076
1076
  }),
1077
- N(),
1078
- E(p, { onClick: t.cancel }, {
1079
- default: A(() => [
1080
- N("关 闭")
1077
+ j(),
1078
+ E(d, { onClick: n.cancel }, {
1079
+ default: F(() => [
1080
+ j("关 闭")
1081
1081
  ]),
1082
1082
  _: 1
1083
1083
  })
@@ -1088,28 +1088,28 @@ function Bn(n, o, r, t, u, s) {
1088
1088
  ]), 1040, ["modelValue", "width", "fullscreen", "style"])
1089
1089
  ]);
1090
1090
  }
1091
- const Hn = /* @__PURE__ */ Z(jn, [["render", Bn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), Ln = /* @__PURE__ */ Object.assign({
1091
+ const Ln = /* @__PURE__ */ Z(Kn, [["render", Hn], ["__scopeId", "data-v-7c104f83"], ["__file", "FullscreenDialog.vue"]]), qn = /* @__PURE__ */ Object.assign({
1092
1092
  name: "DialogContainer"
1093
1093
  }, {
1094
1094
  __name: "DialogContainer",
1095
- setup(n, { expose: o }) {
1095
+ setup(t, { expose: o }) {
1096
1096
  o();
1097
- const { dialogs: r, closeDialog: t } = Ae(), u = O(() => Object.values(r)), c = { dialogs: r, closeDialog: t, dialogList: u, cancelHandler: (p) => {
1098
- t(p);
1097
+ const { dialogs: r, closeDialog: n } = Fe(), u = V(() => Object.values(r)), c = { dialogs: r, closeDialog: n, dialogList: u, cancelHandler: (d) => {
1098
+ n(d);
1099
1099
  }, get useDialogManager() {
1100
- return Ae;
1101
- }, computed: O, FullScreenDialog: Hn };
1100
+ return Fe;
1101
+ }, computed: V, FullScreenDialog: Ln };
1102
1102
  return Object.defineProperty(c, "__isScriptSetup", { enumerable: !1, value: !0 }), c;
1103
1103
  }
1104
1104
  });
1105
- function qn(n, o, r, t, u, s) {
1106
- return R(!0), W(He, null, Le(t.dialogList, (c) => (R(), $(t.FullScreenDialog, {
1105
+ function zn(t, o, r, n, u, s) {
1106
+ return A(!0), W(Ke, null, He(n.dialogList, (c) => (A(), Q(n.FullScreenDialog, {
1107
1107
  key: c.id,
1108
1108
  config: c.config,
1109
- onCancel: (p) => t.cancelHandler(c.id)
1109
+ onCancel: (d) => n.cancelHandler(c.id)
1110
1110
  }, null, 8, ["config", "onCancel"]))), 128);
1111
1111
  }
1112
- const Kn = /* @__PURE__ */ Z(Ln, [["render", qn], ["__file", "DialogContainer.vue"]]), zn = /* @__PURE__ */ Object.assign({
1112
+ const Un = /* @__PURE__ */ Z(qn, [["render", zn], ["__file", "DialogContainer.vue"]]), Wn = /* @__PURE__ */ Object.assign({
1113
1113
  name: "CommonDialog"
1114
1114
  }, {
1115
1115
  __name: "index",
@@ -1128,62 +1128,62 @@ const Kn = /* @__PURE__ */ Z(Ln, [["render", qn], ["__file", "DialogContainer.vu
1128
1128
  }
1129
1129
  },
1130
1130
  emits: ["confirm"],
1131
- setup(n, { expose: o, emit: r }) {
1132
- const t = T("弹框"), u = T(!1), s = n, c = r;
1133
- let p = null;
1134
- const a = O(() => t.value && v(t.value) ? t.value : s.title), m = () => {
1135
- c("confirm", { callBack: p });
1136
- }, y = () => {
1131
+ setup(t, { expose: o, emit: r }) {
1132
+ const n = T("弹框"), u = T(!1), s = t, c = r;
1133
+ let d = null;
1134
+ const l = V(() => n.value && g(n.value) ? n.value : s.title), p = () => {
1135
+ c("confirm", { callBack: d });
1136
+ }, _ = () => {
1137
1137
  u.value = !1;
1138
- }, h = (b = {}) => {
1139
- u.value = !0, p = b.callBack, t.value = b.title || "";
1138
+ }, y = (C = {}) => {
1139
+ u.value = !0, d = C.callBack, n.value = C.title || "";
1140
1140
  };
1141
1141
  o({
1142
- show: h,
1143
- cancel: y
1142
+ show: y,
1143
+ cancel: _
1144
1144
  });
1145
- const _ = { showTitle: t, openDialog: u, props: s, emit: c, get callBack() {
1146
- return p;
1147
- }, set callBack(b) {
1148
- p = b;
1149
- }, title: a, confirmInner: m, cancel: y, show: h, ref: T, computed: O, get isNotEmpty() {
1150
- return v;
1145
+ const v = { showTitle: n, openDialog: u, props: s, emit: c, get callBack() {
1146
+ return d;
1147
+ }, set callBack(C) {
1148
+ d = C;
1149
+ }, title: l, confirmInner: p, cancel: _, show: y, ref: T, computed: V, get isNotEmpty() {
1150
+ return g;
1151
1151
  } };
1152
- return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
1152
+ return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
1153
1153
  }
1154
1154
  });
1155
- function Un(n, o, r, t, u, s) {
1156
- const c = B("el-button"), p = B("el-dialog");
1157
- return R(), $(p, {
1158
- title: t.title,
1159
- modelValue: t.openDialog,
1160
- "onUpdate:modelValue": o[0] || (o[0] = (a) => t.openDialog = a),
1161
- width: t.props.width,
1162
- "before-close": t.cancel,
1155
+ function Jn(t, o, r, n, u, s) {
1156
+ const c = K("el-button"), d = K("el-dialog");
1157
+ return A(), Q(d, {
1158
+ title: n.title,
1159
+ modelValue: n.openDialog,
1160
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => n.openDialog = l),
1161
+ width: n.props.width,
1162
+ "before-close": n.cancel,
1163
1163
  "destroy-on-close": !0,
1164
- modal: t.props.modal,
1164
+ modal: n.props.modal,
1165
1165
  "show-close": !1,
1166
1166
  "align-center": !0,
1167
1167
  draggable: ""
1168
1168
  }, {
1169
- default: A(() => [
1170
- nn(n.$slots, "dialog-content")
1169
+ default: F(() => [
1170
+ rn(t.$slots, "dialog-content")
1171
1171
  ]),
1172
- footer: A(() => [
1173
- le("div", { class: "dialog-footer" }, [
1172
+ footer: F(() => [
1173
+ re("div", { class: "dialog-footer" }, [
1174
1174
  E(c, {
1175
1175
  type: "primary",
1176
- onClick: t.confirmInner
1176
+ onClick: n.confirmInner
1177
1177
  }, {
1178
- default: A(() => [
1179
- N("确定")
1178
+ default: F(() => [
1179
+ j("确定")
1180
1180
  ]),
1181
1181
  _: 1
1182
1182
  }),
1183
- N(),
1184
- E(c, { onClick: t.cancel }, {
1185
- default: A(() => [
1186
- N("关 闭")
1183
+ j(),
1184
+ E(c, { onClick: n.cancel }, {
1185
+ default: F(() => [
1186
+ j("关 闭")
1187
1187
  ]),
1188
1188
  _: 1
1189
1189
  })
@@ -1192,7 +1192,7 @@ function Un(n, o, r, t, u, s) {
1192
1192
  _: 3
1193
1193
  }, 8, ["title", "modelValue", "width", "modal"]);
1194
1194
  }
1195
- const Wn = /* @__PURE__ */ Z(zn, [["render", Un], ["__file", "index.vue"]]), Jn = /* @__PURE__ */ Object.assign({
1195
+ const Gn = /* @__PURE__ */ Z(Wn, [["render", Jn], ["__file", "index.vue"]]), $n = /* @__PURE__ */ Object.assign({
1196
1196
  name: "OmitInput"
1197
1197
  }, {
1198
1198
  __name: "index",
@@ -1211,59 +1211,59 @@ const Wn = /* @__PURE__ */ Z(zn, [["render", Un], ["__file", "index.vue"]]), Jn
1211
1211
  }
1212
1212
  },
1213
1213
  emits: ["update:modelValue"],
1214
- setup(n, { expose: o, emit: r }) {
1214
+ setup(t, { expose: o, emit: r }) {
1215
1215
  o();
1216
- const t = n, u = r, s = T(null), c = T(""), p = O({
1217
- get: () => t.modelValue,
1218
- set: (h) => u("update:modelValue", h)
1219
- }), y = { props: t, emits: u, inputDialogRef: s, inputTextArea: c, internalValue: p, openInputDialog: () => {
1220
- c.value = ge(p.value), s.value?.show();
1221
- }, confirmEdit: (h) => {
1222
- p.value = ge(c.value), s.value?.cancel();
1223
- }, ref: T, computed: O, get deepCopy() {
1224
- return ge;
1216
+ const n = t, u = r, s = T(null), c = T(""), d = V({
1217
+ get: () => n.modelValue,
1218
+ set: (y) => u("update:modelValue", y)
1219
+ }), _ = { props: n, emits: u, inputDialogRef: s, inputTextArea: c, internalValue: d, openInputDialog: () => {
1220
+ c.value = ye(d.value), s.value?.show();
1221
+ }, confirmEdit: (y) => {
1222
+ d.value = ye(c.value), s.value?.cancel();
1223
+ }, ref: T, computed: V, get deepCopy() {
1224
+ return ye;
1225
1225
  } };
1226
- return Object.defineProperty(y, "__isScriptSetup", { enumerable: !1, value: !0 }), y;
1226
+ return Object.defineProperty(_, "__isScriptSetup", { enumerable: !1, value: !0 }), _;
1227
1227
  }
1228
1228
  });
1229
- function Gn(n, o, r, t, u, s) {
1230
- const c = B("el-text"), p = B("el-input"), a = B("CommonDialog");
1231
- return R(), W("div", {
1232
- class: lt(["custom-omit-input-wrapper", n.$attrs.class])
1229
+ function Qn(t, o, r, n, u, s) {
1230
+ const c = K("el-text"), d = K("el-input"), l = K("CommonDialog");
1231
+ return A(), W("div", {
1232
+ class: rt(["custom-omit-input-wrapper", t.$attrs.class])
1233
1233
  }, [
1234
- E(p, {
1235
- modelValue: t.internalValue,
1236
- "onUpdate:modelValue": o[0] || (o[0] = (m) => t.internalValue = m),
1237
- placeholder: t.props.placeholder,
1234
+ E(d, {
1235
+ modelValue: n.internalValue,
1236
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => n.internalValue = p),
1237
+ placeholder: n.props.placeholder,
1238
1238
  clearable: "",
1239
1239
  type: "text",
1240
1240
  class: "custom-omit-input"
1241
1241
  }, {
1242
- append: A(() => [
1242
+ append: F(() => [
1243
1243
  E(c, {
1244
1244
  style: { width: "32px", "text-align": "center" },
1245
- onClick: t.openInputDialog
1245
+ onClick: n.openInputDialog
1246
1246
  }, {
1247
- default: A(() => [
1248
- N("...")
1247
+ default: F(() => [
1248
+ j("...")
1249
1249
  ]),
1250
1250
  _: 1
1251
1251
  })
1252
1252
  ]),
1253
1253
  _: 1
1254
1254
  }, 8, ["modelValue", "placeholder"]),
1255
- N(),
1256
- E(a, {
1255
+ j(),
1256
+ E(l, {
1257
1257
  ref: "inputDialogRef",
1258
- title: t.props.dialogTitle,
1258
+ title: n.props.dialogTitle,
1259
1259
  width: 700,
1260
- onConfirm: t.confirmEdit
1260
+ onConfirm: n.confirmEdit
1261
1261
  }, {
1262
- "dialog-content": A(() => [
1263
- le("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
1264
- E(p, {
1265
- modelValue: t.inputTextArea,
1266
- "onUpdate:modelValue": o[1] || (o[1] = (m) => t.inputTextArea = m),
1262
+ "dialog-content": F(() => [
1263
+ re("div", { style: { width: "100%", height: "500px", "overflow-y": "auto", "overflow-x": "hidden" } }, [
1264
+ E(d, {
1265
+ modelValue: n.inputTextArea,
1266
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => n.inputTextArea = p),
1267
1267
  type: "textarea",
1268
1268
  rows: 22
1269
1269
  }, null, 8, ["modelValue"])
@@ -1273,7 +1273,7 @@ function Gn(n, o, r, t, u, s) {
1273
1273
  }, 8, ["title"])
1274
1274
  ], 2);
1275
1275
  }
1276
- const $n = /* @__PURE__ */ Z(Jn, [["render", Gn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), ye = sn(
1276
+ const Yn = /* @__PURE__ */ Z($n, [["render", Qn], ["__scopeId", "data-v-956a5a3a"], ["__file", "index.vue"]]), Ce = un(
1277
1277
  "ve/dataCache",
1278
1278
  {
1279
1279
  state: () => ({
@@ -1290,330 +1290,334 @@ const $n = /* @__PURE__ */ Z(Jn, [["render", Gn], ["__scopeId", "data-v-956a5a3a
1290
1290
  // 暂时只考虑扁平结构
1291
1291
  }),
1292
1292
  actions: {
1293
- setData(n, o) {
1294
- this.data[n] = o;
1293
+ setData(t, o) {
1294
+ this.data[t] = o;
1295
1295
  },
1296
- setPageSource(n = "DB") {
1297
- this.pageSource = n;
1296
+ setPageSource(t = "DB") {
1297
+ this.pageSource = t;
1298
1298
  },
1299
- setContainerSymbol(n) {
1300
- this.containerSymbol = n;
1299
+ setContainerSymbol(t) {
1300
+ this.containerSymbol = t;
1301
1301
  },
1302
- setTdtApiKey(n = "") {
1303
- this.tdtApiKey = n;
1302
+ setTdtApiKey(t = "") {
1303
+ this.tdtApiKey = t;
1304
1304
  },
1305
- setRuleData(n, o, r = !1) {
1306
- r ? this.rules[n] = o : this.rules[n] || (this.rules[n] = o);
1305
+ setRuleData(t, o, r = !1) {
1306
+ r ? this.rules[t] = o : this.rules[t] || (this.rules[t] = o);
1307
1307
  }
1308
1308
  }
1309
1309
  }
1310
- ), Ne = (n) => {
1310
+ ), je = (t) => {
1311
1311
  const o = /* @__PURE__ */ new Map();
1312
1312
  return new Proxy({}, {
1313
- get(r, t = "undefinedKey") {
1314
- return o.has(t) || o.set(t, O(() => n.data[t] || {})), o.get(t);
1313
+ get(r, n = "undefinedKey") {
1314
+ return o.has(n) || o.set(n, V(() => t.data[n] ?? {})), o.get(n);
1315
1315
  },
1316
- set(r, t, u) {
1317
- return n.setData(t, u), !0;
1316
+ set(r, n, u) {
1317
+ return t.setData(n, u), !0;
1318
1318
  }
1319
1319
  });
1320
1320
  };
1321
- function Qn() {
1322
- const n = me("hflvloader-api");
1323
- if (!n)
1321
+ function Xn() {
1322
+ const t = ge("hflvloader-api");
1323
+ if (!t)
1324
1324
  throw new Error("组件注册时未提供API,请检查!");
1325
- return n;
1325
+ return t;
1326
1326
  }
1327
- function _e(n, o, r = {}) {
1328
- let t = {
1327
+ function we(t, o, r = {}) {
1328
+ let n = {
1329
1329
  ...r,
1330
1330
  message: o || "message",
1331
- type: n || "info"
1331
+ type: t || "info"
1332
1332
  };
1333
- cn(t);
1333
+ fn(n);
1334
1334
  }
1335
- function je(n, o, r = {}) {
1336
- let t = {
1335
+ function Be(t, o, r = {}) {
1336
+ let n = {
1337
1337
  ...r,
1338
1338
  message: o || "message",
1339
- type: n || "info"
1339
+ type: t || "info"
1340
1340
  };
1341
- un(t);
1341
+ dn(n);
1342
1342
  }
1343
- function _t(n = {}) {
1344
- const o = fn.service(n);
1345
- let r = n.timeout || 3e4;
1343
+ function yt(t = {}) {
1344
+ const o = pn.service(t);
1345
+ let r = t.timeout || 3e4;
1346
1346
  return setTimeout(() => {
1347
1347
  o && o.close();
1348
1348
  }, r), o;
1349
1349
  }
1350
- async function vt(n, o, r = {}) {
1351
- let t = [], u = {};
1350
+ async function _t(t, o, r = {}) {
1351
+ let n = [], u = {};
1352
1352
  try {
1353
- (await Promise.allSettled([at.confirm(o, n, r)])).forEach((c, p) => {
1353
+ (await Promise.allSettled([lt.confirm(o, t, r)])).forEach((c, d) => {
1354
1354
  if (c.status === "fulfilled")
1355
- p === 0 && (u = c.value);
1355
+ d === 0 && (u = c.value);
1356
1356
  else {
1357
- const a = c.reason;
1358
- t.push(a);
1357
+ const l = c.reason;
1358
+ n.push(l);
1359
1359
  }
1360
1360
  });
1361
1361
  } catch (s) {
1362
- console.error("showMessageBoxConfirmAsync 异常:", s), t.push(s);
1362
+ console.error("showMessageBoxConfirmAsync 异常:", s), n.push(s);
1363
1363
  }
1364
- return { errors: t, resultInfo: u };
1364
+ return { errors: n, resultInfo: u };
1365
1365
  }
1366
- async function bt(n, o, r = {}) {
1367
- let t = [], u = {};
1366
+ async function vt(t, o, r = {}) {
1367
+ let n = [], u = {};
1368
1368
  try {
1369
- (await Promise.allSettled([at.prompt(o, n, r)])).forEach((c, p) => {
1369
+ (await Promise.allSettled([lt.prompt(o, t, r)])).forEach((c, d) => {
1370
1370
  if (c.status === "fulfilled")
1371
- p === 0 && (u = c.value);
1371
+ d === 0 && (u = c.value);
1372
1372
  else {
1373
- const a = c.reason;
1374
- t.push(a);
1373
+ const l = c.reason;
1374
+ n.push(l);
1375
1375
  }
1376
1376
  });
1377
1377
  } catch (s) {
1378
- console.error("showMessageBoxPromptAsync 异常:", s), t.push(s);
1378
+ console.error("showMessageBoxPromptAsync 异常:", s), n.push(s);
1379
1379
  }
1380
- return { errors: t, resultInfo: u };
1380
+ return { errors: n, resultInfo: u };
1381
1381
  }
1382
- const mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1382
+ const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1383
1383
  __proto__: null,
1384
- showLoading: _t,
1385
- showMessage: _e,
1386
- showMessageBoxConfirmAsync: vt,
1387
- showMessageBoxPromptAsync: bt,
1388
- showNotification: je
1384
+ showLoading: yt,
1385
+ showMessage: we,
1386
+ showMessageBoxConfirmAsync: _t,
1387
+ showMessageBoxPromptAsync: vt,
1388
+ showNotification: Be
1389
1389
  }, Symbol.toStringTag, { value: "Module" })), fe = {
1390
- "==": (n, o) => n == o,
1391
- "!=": (n, o) => n != o,
1392
- ">": (n, o) => +n > +o,
1393
- ">=": (n, o) => +n >= +o,
1394
- "<": (n, o) => +n < +o,
1395
- "<=": (n, o) => +n <= +o,
1396
- contain: (n, o) => n != null && String(n).includes(String(o)),
1397
- unContain: (n, o) => n == null || !String(n).includes(String(o)),
1398
- equals: (n, o) => n != null && String(n) == String(o),
1399
- notEquals: (n, o) => n == null || !String(n) == String(o),
1400
- equalsIgnoreCase: (n, o) => n != null && String(n).toLowerCase() == String(o).toLowerCase()
1401
- }, pe = (n) => typeof n == "string" && n.trim() !== "" && !isNaN(n) ? +n : n;
1402
- function nt(n = {}, o = !0, r = {}) {
1403
- const t = n, u = o, s = r, c = /* @__PURE__ */ new Map(), p = Qn(), a = ye(), m = me("VE-ContainerParam"), y = me("VE-CompMethod"), h = [], { openDialog: _, closeDialog: b } = Ae();
1390
+ "==": (t, o) => t == o,
1391
+ "!=": (t, o) => t != o,
1392
+ ">": (t, o) => +t > +o,
1393
+ ">=": (t, o) => +t >= +o,
1394
+ "<": (t, o) => +t < +o,
1395
+ "<=": (t, o) => +t <= +o,
1396
+ contain: (t, o) => t != null && String(t).includes(String(o)),
1397
+ unContain: (t, o) => t == null || !String(t).includes(String(o)),
1398
+ equals: (t, o) => t != null && String(t) == String(o),
1399
+ notEquals: (t, o) => t == null || !String(t) == String(o),
1400
+ equalsIgnoreCase: (t, o) => t != null && String(t).toLowerCase() == String(o).toLowerCase(),
1401
+ isNull: (t, o) => t == null,
1402
+ isNotNull: (t, o) => t != null
1403
+ }, de = (t) => typeof t == "string" && t.trim() !== "" && !isNaN(t) ? +t : t;
1404
+ function tt(t = {}, o = !0, r = {}) {
1405
+ const n = t, u = o, s = r, c = /* @__PURE__ */ new Map(), d = Xn(), l = Ce(), p = ge("VE-ContainerParam"), _ = ge("VE-CompMethod"), y = [], { openDialog: v, closeDialog: C } = Fe();
1404
1406
  let w = null;
1405
- const S = 250, P = me("VE-CompHideAndShow"), C = [], F = me("VE-CompWrapMethod"), k = Ne(a);
1406
- let x = null;
1407
- const j = /* @__PURE__ */ new Map(), D = () => {
1408
- x && (x(), x = null);
1409
- }, V = (e) => {
1410
- if (m) {
1411
- if (st(m))
1412
- return m.value[e];
1413
- if (re(m))
1414
- return m[e];
1415
- }
1407
+ const x = 250, P = ge("VE-CompHideAndShow"), S = [], R = ge("VE-CompWrapMethod"), k = je(l);
1408
+ let b = null;
1409
+ const N = /* @__PURE__ */ new Map();
1410
+ let D = !1;
1411
+ const O = () => {
1412
+ b && (b(), b = null);
1416
1413
  }, J = (e) => {
1414
+ if (p) {
1415
+ if (st(p))
1416
+ return p.value[e];
1417
+ if (ee(p))
1418
+ return p[e];
1419
+ }
1420
+ }, z = (e) => {
1417
1421
  if (e && e.path) {
1418
- let i = e.params || [], l = {};
1419
- i.forEach((f, d) => {
1422
+ let a = e.params || [], i = {};
1423
+ a.forEach((f, m) => {
1420
1424
  if (ie(f)) {
1421
- let g = Q(f);
1422
- l[f.tarKey] = g;
1425
+ let h = Y(f);
1426
+ i[f.tarKey] = h;
1423
1427
  }
1424
- }), e.namedRouter ? U(s.routerPush) && s.routerPush(e.path, l) : U(s.routerPush2) && s.routerPush2(e.path, l);
1428
+ }), e.namedRouter ? U(s.routerPush) && s.routerPush(e.path, i) : U(s.routerPush2) && s.routerPush2(e.path, i);
1425
1429
  }
1426
- }, z = (e = []) => {
1427
- let i = [];
1428
- return e.forEach((l) => {
1429
- if (ie(l)) {
1430
- let f = Q(l);
1431
- i.push([
1432
- l.tarKey,
1430
+ }, me = (e = []) => {
1431
+ let a = [];
1432
+ return e.forEach((i) => {
1433
+ if (ie(i)) {
1434
+ let f = Y(i);
1435
+ a.push([
1436
+ i.tarKey,
1433
1437
  f
1434
1438
  ]);
1435
1439
  }
1436
- }), i;
1437
- }, ee = (e, i) => {
1438
- if (e.customFunc && v(e.successFunc)) {
1439
- const l = {
1440
+ }), a;
1441
+ }, le = (e, a) => {
1442
+ if (e.customFunc && g(e.successFunc)) {
1443
+ const i = {
1440
1444
  helper: { ...s, ...I }
1441
1445
  };
1442
1446
  try {
1443
1447
  let f = e.successFunc.toString().trim();
1444
- f.indexOf("function") < 0 && (f = `function(res) { ${f} }`), new Function("context", `with(context) {return ${f}}`)(l)(i);
1448
+ f.indexOf("function") < 0 && (f = `function(res) { ${f} }`), new Function("context", `with(context) {return ${f}}`)(i)(a);
1445
1449
  } catch (f) {
1446
1450
  console.error("[_dataRequestHandler4CustomSuccessFunc]处理自定义成功函数时出错:", f);
1447
1451
  }
1448
1452
  }
1449
- }, ae = (e, i, l) => {
1450
- if (e.customFunc && v(e.errorFunc)) {
1453
+ }, ae = (e, a, i) => {
1454
+ if (e.customFunc && g(e.errorFunc)) {
1451
1455
  const f = {
1452
1456
  helper: { ...s, ...I }
1453
1457
  };
1454
1458
  try {
1455
- let d = e.errorFunc.toString().trim();
1456
- d.indexOf("function") < 0 && (d = "function (res,err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(f)(i, l);
1457
- } catch (d) {
1458
- console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", d);
1459
+ let m = e.errorFunc.toString().trim();
1460
+ m.indexOf("function") < 0 && (m = "function (res,err){" + m + "}"), new Function("context", `with(context) {return ${m}}`)(f)(a, i);
1461
+ } catch (m) {
1462
+ console.error("[_dataRequestHandler4CustomErrorFunc]处理自定义失败函数时出错:", m);
1459
1463
  }
1460
1464
  }
1461
- }, ce = (e, i) => {
1462
- if (q(i) && i.length > 0) {
1463
- let l, f, d;
1464
- for (let g = 0; g < i.length; g++)
1465
- l = i[g], d = l.dataKey || "data", v(d) && Re(e, d) && (f = Te(e, d), v(l.ds) && v(l.tarKey) && Mt(l, f));
1465
+ }, ce = (e, a) => {
1466
+ if (q(a) && a.length > 0) {
1467
+ let i, f, m;
1468
+ for (let h = 0; h < a.length; h++)
1469
+ i = a[h], m = i.dataKey || "data", g(m) && De(e, m) && (f = Ie(e, m), g(i.ds) && g(i.tarKey) && Mt(i, f));
1466
1470
  }
1467
- }, Oe = async (e) => {
1468
- let i = [], l = {};
1471
+ }, G = async (e) => {
1472
+ let a = [], i = {};
1469
1473
  try {
1470
- (await Promise.allSettled([p.rawRequest(e)])).forEach((d, g) => {
1471
- if (d.status === "fulfilled")
1472
- g === 0 && (l = d.value);
1474
+ (await Promise.allSettled([d.rawRequest(e)])).forEach((m, h) => {
1475
+ if (m.status === "fulfilled")
1476
+ h === 0 && (i = m.value);
1473
1477
  else {
1474
- const M = d.reason;
1475
- i.push(M);
1478
+ const M = m.reason;
1479
+ a.push(M);
1476
1480
  }
1477
1481
  });
1478
1482
  } catch (f) {
1479
- console.error("_dataRequestHandler4Async 异常:", f), i.push(f);
1483
+ console.error("_dataRequestHandler4Async 异常:", f), a.push(f);
1480
1484
  }
1481
- return { errors: i, resultInfo: l };
1482
- }, G = (e) => {
1485
+ return { errors: a, resultInfo: i };
1486
+ }, ke = (e) => {
1483
1487
  if (e.method == "GET" || e.method == "get") {
1484
- let i = e.url;
1485
- if (/\{#.*?#\}/g.test(i)) {
1486
- let f = e.data || [], d = /* @__PURE__ */ new Set(), g = !1, M = null;
1487
- if (i = i.replace(/\{#(.*?)#\}/g, (H, ne) => {
1488
- g = !1, M = null;
1489
- for (let de = 0; de < f.length; de++)
1490
- if (ne == f[de][0]) {
1491
- g = !0, M = f[de][1];
1488
+ let a = e.url;
1489
+ if (/\{#.*?#\}/g.test(a)) {
1490
+ let f = e.data || [], m = /* @__PURE__ */ new Set(), h = !1, M = null;
1491
+ if (a = a.replace(/\{#(.*?)#\}/g, (H, ne) => {
1492
+ h = !1, M = null;
1493
+ for (let he = 0; he < f.length; he++)
1494
+ if (ne == f[he][0]) {
1495
+ h = !0, M = f[he][1];
1492
1496
  break;
1493
1497
  }
1494
- return g ? (d.add(ne), M) : H;
1495
- }), d.size > 0) {
1496
- let H = f.filter((ne, de) => !d.has(ne[0]));
1497
- e.url = i, e.data = H || [];
1498
+ return h ? (m.add(ne), M) : H;
1499
+ }), m.size > 0) {
1500
+ let H = f.filter((ne, he) => !m.has(ne[0]));
1501
+ e.url = a, e.data = H || [];
1498
1502
  }
1499
1503
  }
1500
1504
  }
1501
- }, Ve = async (e) => {
1502
- if (e && v(e.url)) {
1503
- let i = e.respParams || [], l = {};
1504
- l.url = e.url, l.externalRequest = e.external || !1, l.method = e.method || "GET", l.paramType = "object", l.data = z(e.params), l.headers = e.headers, e.series && (l.series = e.series, l.requestCount = e.requestCount || 0, l.time = e.time || 1e3), G(l);
1505
+ }, Ct = async (e) => {
1506
+ if (e && g(e.url)) {
1507
+ let a = e.respParams || [], i = {};
1508
+ i.url = e.url, i.externalRequest = e.external || !1, i.method = e.method || "GET", i.paramType = "object", i.data = me(e.params), i.headers = e.headers, e.series && (i.series = e.series, i.requestCount = e.requestCount || 0, i.time = e.time || 1e3), ke(i);
1505
1509
  let f = null;
1506
1510
  if (e.loading) {
1507
- let d = e.load || {}, g = {
1508
- ...d.extParam,
1509
- lock: d.lock,
1510
- background: d.background,
1511
- text: d.text
1511
+ let m = e.load || {}, h = {
1512
+ ...m.extParam,
1513
+ lock: m.lock,
1514
+ background: m.background,
1515
+ text: m.text
1512
1516
  };
1513
- f = _t(g);
1517
+ f = yt(h);
1514
1518
  }
1515
1519
  if (e.sync) {
1516
- l.series = !1;
1517
- const { errors: d, resultInfo: g } = await Oe(l);
1518
- if (f && f.close(), d && d.length > 0) {
1520
+ i.series = !1;
1521
+ const { errors: m, resultInfo: h } = await G(i);
1522
+ if (f && f.close(), m && m.length > 0) {
1519
1523
  if (e.enabledRespErrTip) {
1520
1524
  let M = e.respErrTip || {};
1521
1525
  te(M);
1522
1526
  }
1523
- ae(e, g, d[0]);
1524
- } else if (g)
1525
- if (l.externalRequest)
1526
- if (g && g.status == 200) {
1527
+ ae(e, h, m[0]);
1528
+ } else if (h)
1529
+ if (i.externalRequest)
1530
+ if (h && h.status == 200) {
1527
1531
  if (e.enabledRespTip) {
1528
1532
  let M = e.respTip || {};
1529
1533
  te(M);
1530
1534
  }
1531
- ce(g, i), ee(e, g);
1535
+ ce(h, a), le(e, h);
1532
1536
  } else {
1533
1537
  if (e.enabledRespErrTip) {
1534
1538
  let M = e.respErrTip || {};
1535
1539
  te(M);
1536
1540
  }
1537
- ae(e, g, null);
1541
+ ae(e, h, null);
1538
1542
  }
1539
1543
  else {
1540
- if (g) {
1544
+ if (h) {
1541
1545
  if (e.enabledRespTip) {
1542
1546
  let M = e.respTip || {};
1543
1547
  te(M);
1544
1548
  }
1545
- ce(g, i);
1549
+ ce(h, a);
1546
1550
  }
1547
- ee(e, g);
1551
+ le(e, h);
1548
1552
  }
1549
1553
  } else {
1550
- let d = p.request(l, function(g) {
1551
- if (f && f.close(), l.externalRequest)
1552
- if (g && g.status == 200) {
1554
+ let m = d.request(i, function(h) {
1555
+ if (f && f.close(), i.externalRequest)
1556
+ if (h && h.status == 200) {
1553
1557
  if (e.enabledRespTip) {
1554
1558
  let M = e.respTip || {};
1555
1559
  te(M);
1556
1560
  }
1557
- ce(g, i), ee(e, g);
1561
+ ce(h, a), le(e, h);
1558
1562
  } else {
1559
1563
  if (e.enabledRespErrTip) {
1560
1564
  let M = e.respErrTip || {};
1561
1565
  te(M);
1562
1566
  }
1563
- ae(e, g, null);
1567
+ ae(e, h, null);
1564
1568
  }
1565
1569
  else {
1566
- if (g) {
1570
+ if (h) {
1567
1571
  if (e.enabledRespTip) {
1568
1572
  let M = e.respTip || {};
1569
1573
  te(M);
1570
1574
  }
1571
- ce(g, i);
1575
+ ce(h, a);
1572
1576
  }
1573
- ee(e, g);
1577
+ le(e, h);
1574
1578
  }
1575
- }, function(g) {
1579
+ }, function(h) {
1576
1580
  if (f && f.close(), e.enabledRespErrTip) {
1577
1581
  let M = e.respErrTip || {};
1578
1582
  te(M);
1579
1583
  }
1580
- ae(e, null, g);
1584
+ ae(e, null, h);
1581
1585
  });
1582
- d && h.push(d);
1586
+ m && y.push(m);
1583
1587
  }
1584
1588
  }
1585
1589
  }, te = (e = {}) => {
1586
- e.tipType == "msg" ? _e(e.type, e.msg, e.extParam) : e.tipType == "notify" && je(e.type, e.msg, e.extParam);
1590
+ e.tipType == "msg" ? we(e.type, e.msg, e.extParam) : e.tipType == "notify" && Be(e.type, e.msg, e.extParam);
1587
1591
  }, wt = (e) => {
1588
1592
  if (e && q(e.params)) {
1589
- let i = e.params || [], l = null;
1590
- for (let f = 0; f < i.length; f++)
1591
- if (l = i[f], ie(l)) {
1592
- let d = Q(l);
1593
- I.setDataCache(l.tarKey, d);
1593
+ let a = e.params || [], i = null;
1594
+ for (let f = 0; f < a.length; f++)
1595
+ if (i = a[f], ie(i)) {
1596
+ let m = Y(i);
1597
+ I.setDataCache(i.tarKey, m);
1594
1598
  }
1595
1599
  }
1596
- }, xt = (e) => {
1600
+ }, bt = (e) => {
1597
1601
  if (e && q(e.params)) {
1598
- let i = e.params || [], l = null;
1599
- for (let f = 0; f < i.length; f++)
1600
- if (l = i[f], v(l.ipn) && v(l.opn) && c.has(l.ipn)) {
1601
- let d = c.get(l.ipn), g = fe.equals(d, l.ipv);
1602
- if (g)
1603
- c.set(l.opn, l.opv);
1602
+ let a = e.params || [], i = null;
1603
+ for (let f = 0; f < a.length; f++)
1604
+ if (i = a[f], g(i.ipn) && g(i.opn) && c.has(i.ipn)) {
1605
+ let m = c.get(i.ipn), h = fe.equals(m, i.ipv);
1606
+ if (h)
1607
+ c.set(i.opn, i.opv);
1604
1608
  else {
1605
- let M = pe(d), H = pe(l.ipv);
1606
- g = fe["=="](M, H), g && c.set(l.opn, l.opv);
1609
+ let M = de(m), H = de(i.ipv);
1610
+ h = fe["=="](M, H), h && c.set(i.opn, i.opv);
1607
1611
  }
1608
1612
  }
1609
1613
  }
1610
- }, St = (e) => {
1614
+ }, xt = (e) => {
1611
1615
  if (e && q(e.params)) {
1612
- let i = e.params || [], l = null;
1613
- for (let f = 0; f < i.length; f++)
1614
- if (l = i[f], ie(l)) {
1615
- let d = Q(l);
1616
- I.setParam(l.tarKey, d);
1616
+ let a = e.params || [], i = null;
1617
+ for (let f = 0; f < a.length; f++)
1618
+ if (i = a[f], ie(i)) {
1619
+ let m = Y(i);
1620
+ I.setParam(i.tarKey, m);
1617
1621
  }
1618
1622
  }
1619
1623
  }, I = {
@@ -1623,109 +1627,109 @@ function nt(n = {}, o = !0, r = {}) {
1623
1627
  getParam: function(e) {
1624
1628
  return c.get(e);
1625
1629
  },
1626
- setParam: function(e, i) {
1627
- c.set(e, i);
1630
+ setParam: function(e, a) {
1631
+ c.set(e, a);
1628
1632
  },
1629
1633
  getDataCache: function(e) {
1630
- return a.data[e];
1634
+ return l.data[e];
1631
1635
  },
1632
- setDataCache: function(e, i) {
1633
- a.data[e] = i;
1636
+ setDataCache: function(e, a) {
1637
+ l.setData(e, a);
1634
1638
  },
1635
1639
  getContainerParam: function(e) {
1636
- return V(e);
1640
+ return J(e);
1637
1641
  },
1638
- setSessionParam: function(e, i) {
1639
- sessionStorage.setItem(e, i);
1642
+ setSessionParam: function(e, a) {
1643
+ sessionStorage.setItem(e, a);
1640
1644
  },
1641
1645
  getSessionParam: function(e) {
1642
1646
  return sessionStorage.getItem(e);
1643
1647
  },
1644
- setLocalParam: function(e, i) {
1645
- localStorage.setItem(e, i);
1648
+ setLocalParam: function(e, a) {
1649
+ localStorage.setItem(e, a);
1646
1650
  },
1647
1651
  getLocalParam: function(e) {
1648
1652
  return localStorage.getItem(e);
1649
1653
  },
1650
- callCompMethod: function(e, i, l = {}) {
1651
- U(y) ? y(e, i, l) : console.error("compMethod is not function.");
1654
+ callCompMethod: function(e, a, i = {}) {
1655
+ U(_) ? _(e, a, i) : console.error("compMethod is not function.");
1652
1656
  },
1653
- setJsCookie: function(e, i, l = 30) {
1654
- Ie.set(e, i, { expires: l });
1657
+ setJsCookie: function(e, a, i = 30) {
1658
+ Re.set(e, a, { expires: i });
1655
1659
  },
1656
1660
  getJsCookie: function(e) {
1657
- return Ie.get(e);
1661
+ return Re.get(e);
1658
1662
  },
1659
1663
  removeJsCookie: function(e) {
1660
- Ie.remove(e);
1664
+ Re.remove(e);
1661
1665
  },
1662
- log: function(e = "log", i) {
1663
- e == "error" ? console.error(i) : e == "info" ? console.info(i) : e == "warn" ? console.warn(i) : console.log(i);
1666
+ log: function(e = "log", a) {
1667
+ e == "error" ? console.error(a) : e == "info" ? console.info(a) : e == "warn" ? console.warn(a) : console.log(a);
1664
1668
  },
1665
1669
  isNotEmptyStr: function(e) {
1666
- return v(e);
1670
+ return g(e);
1667
1671
  },
1668
1672
  md5: function(e) {
1669
- return mt(e);
1673
+ return pt(e);
1670
1674
  },
1671
1675
  getDate: function(e) {
1672
- return pt(e);
1676
+ return ft(e);
1673
1677
  },
1674
- formatDate: function(e, i = "yyyy-MM-dd") {
1675
- return ft(e, i);
1678
+ formatDate: function(e, a = "yyyy-MM-dd") {
1679
+ return ut(e, a);
1676
1680
  },
1677
1681
  closeDialog: function(e) {
1678
- b(e);
1682
+ C(e);
1679
1683
  },
1680
- hideAndShowComp: function(e, i, l = {}) {
1681
- U(P) ? P(e, i, l) : console.error("hideAndShowComp is not function.");
1684
+ hideAndShowComp: function(e, a, i = {}) {
1685
+ U(P) ? P(e, a, i) : console.error("hideAndShowComp is not function.");
1682
1686
  },
1683
- callCompWrapMethod: function(e, i, l = {}) {
1684
- if (U(F))
1685
- return F(e, i, l);
1687
+ callCompWrapMethod: function(e, a, i = {}) {
1688
+ if (U(R))
1689
+ return R(e, a, i);
1686
1690
  console.error("compWrapMethod is not function.");
1687
1691
  },
1688
1692
  getRuleDataCache: function(e) {
1689
- return a.rules[e];
1693
+ return l.rules[e];
1690
1694
  },
1691
- setRuleDataCache: function(e, i, l = !1) {
1692
- l ? a.rules[e] = i : a.rules[e] || (a.rules[e] = i);
1695
+ setRuleDataCache: function(e, a, i = !1) {
1696
+ l.setRuleData(e, a, i);
1693
1697
  },
1694
1698
  getNumberFormat: function() {
1695
- return NumberFormat;
1699
+ return B;
1696
1700
  },
1697
- formatNum: function(e, i = 0, l = 3, f = !1) {
1698
- return se(e) ? NumberFormat.formatDecimal(e, i, l, f) : e;
1701
+ formatNum: function(e, a = 0, i = 3, f = !1) {
1702
+ return se(e) ? B.formatDecimal(e, a, i, f) : e;
1699
1703
  }
1700
- }, Ct = (e) => {
1701
- if (e && v(e.funcBody)) {
1702
- const i = {
1704
+ }, St = (e) => {
1705
+ if (e && g(e.funcBody)) {
1706
+ const a = {
1703
1707
  helper: { ...s, ...I }
1704
1708
  };
1705
1709
  try {
1706
- let l = e.funcBody.toString().trim();
1707
- l.indexOf("function") < 0 && (l = "function(){" + l + "}"), new Function("context", `with(context) {return ${l}}`)(i)();
1708
- } catch (l) {
1709
- console.error("处理自定义函数时出错:", l);
1710
+ let i = e.funcBody.toString().trim();
1711
+ i.indexOf("function") < 0 && (i = "function(){" + i + "}"), new Function("context", `with(context) {return ${i}}`)(a)();
1712
+ } catch (i) {
1713
+ console.error("处理自定义函数时出错:", i);
1710
1714
  }
1711
1715
  }
1712
1716
  }, Pt = (e) => {
1713
- if (e && v(e.type)) {
1717
+ if (e && g(e.type)) {
1714
1718
  if (e.opType == "clear") {
1715
- let i = e.type;
1716
- i == "session" ? sessionStorage.clear() : i == "local" && localStorage.clear();
1719
+ let a = e.type;
1720
+ a == "session" ? sessionStorage.clear() : a == "local" && localStorage.clear();
1717
1721
  } else if (q(e.params) && e.params.length > 0) {
1718
- let i = e.type, l = e.params || [], f = null;
1719
- for (let d = 0; d < l.length; d++)
1720
- if (f = l[d], f.delete)
1721
- v(f.tarKey) && (i == "session" ? sessionStorage.removeItem(f.tarKey) : i == "local" ? localStorage.removeItem(f.tarKey) : i == "jsCookie" && I.removeJsCookie(f.tarKey));
1722
+ let a = e.type, i = e.params || [], f = null;
1723
+ for (let m = 0; m < i.length; m++)
1724
+ if (f = i[m], f.delete)
1725
+ g(f.tarKey) && (a == "session" ? sessionStorage.removeItem(f.tarKey) : a == "local" ? localStorage.removeItem(f.tarKey) : a == "jsCookie" && I.removeJsCookie(f.tarKey));
1722
1726
  else if (ie(f)) {
1723
- let g = Q(f);
1724
- i == "session" ? sessionStorage.setItem(f.tarKey, g) : i == "local" ? localStorage.setItem(f.tarKey, g) : i == "jsCookie" && I.setJsCookie(f.tarKey, g);
1727
+ let h = Y(f);
1728
+ a == "session" ? sessionStorage.setItem(f.tarKey, h) : a == "local" ? localStorage.setItem(f.tarKey, h) : a == "jsCookie" && I.setJsCookie(f.tarKey, h);
1725
1729
  }
1726
1730
  }
1727
1731
  }
1728
- }, ie = (e) => v(e.ds) && v(e.tarKey) ? e.ds != "inputV" ? v(e.key) : !0 : !1, Q = (e) => {
1732
+ }, ie = (e) => g(e.ds) && g(e.tarKey) ? e.ds != "inputV" ? g(e.key) : !0 : !1, Y = (e) => {
1729
1733
  if (e.ds == "inputP")
1730
1734
  return I.getParam(e.key);
1731
1735
  if (e.ds == "cacheP")
@@ -1743,394 +1747,412 @@ function nt(n = {}, o = !0, r = {}) {
1743
1747
  if (e.ds == "compStyle")
1744
1748
  return U(s.getStyleValue) ? s.getStyleValue(e.key) : null;
1745
1749
  if (e.ds == "_selectMenuValue" || e.ds == "_selectItemValue" || e.ds == "_changeItemValue") {
1746
- let i = I.getParam(e.ds);
1747
- return Pe(i) ? null : re(i) ? v(e.key) && Re(i, e.key) ? Te(i, e.key) : null : i;
1750
+ let a = I.getParam(e.ds);
1751
+ return _e(a) ? null : ee(a) ? g(e.key) && De(a, e.key) ? Ie(a, e.key) : null : a;
1748
1752
  } else {
1749
- let i = e.key;
1750
- return i.toString().trim().indexOf("#json#") == 0 ? (i = i.toString().trim().replace("#json#", ""), ct(i, {})) : e.key;
1753
+ let a = e.key;
1754
+ return a.toString().trim().indexOf("#json#") == 0 ? (a = a.toString().trim().replace("#json#", ""), at(a, {})) : e.key;
1751
1755
  }
1752
- }, Mt = (e, i) => {
1756
+ }, Mt = (e, a) => {
1753
1757
  if (e.ds == "cacheP")
1754
- return I.setDataCache(e.tarKey, i);
1758
+ return I.setDataCache(e.tarKey, a);
1755
1759
  if (e.ds == "inputP")
1756
- return I.setParam(e.tarKey, i);
1760
+ return I.setParam(e.tarKey, a);
1757
1761
  if (e.ds == "sessionP")
1758
- return I.setSessionParam(e.tarKey, i);
1762
+ return I.setSessionParam(e.tarKey, a);
1759
1763
  if (e.ds == "localP")
1760
- return I.setLocalParam(e.tarKey, i);
1761
- e.ds == "jsCookieP" ? I.setJsCookie(e.tarKey, i) : e.ds == "compProp" ? U(s.setPropValue) && s.setPropValue(e.tarKey, i) : e.ds == "compStyle" && U(s.setStyleValue) && s.setStyleValue(e.tarKey, i);
1764
+ return I.setLocalParam(e.tarKey, a);
1765
+ e.ds == "jsCookieP" ? I.setJsCookie(e.tarKey, a) : e.ds == "compProp" ? U(s.setPropValue) && s.setPropValue(e.tarKey, a) : e.ds == "compStyle" && U(s.setStyleValue) && s.setStyleValue(e.tarKey, a);
1762
1766
  }, Ot = (e) => {
1763
1767
  if (e) {
1764
- let i = e.styleSets || [], l = e.propSets || [];
1765
- q(l) && l.length > 0 && U(s.setPropValue) && l.forEach((f, d) => {
1768
+ let a = e.styleSets || [], i = e.propSets || [];
1769
+ q(i) && i.length > 0 && U(s.setPropValue) && i.forEach((f, m) => {
1766
1770
  if (ie(f)) {
1767
- let g = Q(f);
1768
- s.setPropValue(f.tarKey, g);
1771
+ let h = Y(f);
1772
+ s.setPropValue(f.tarKey, h);
1769
1773
  }
1770
- }), q(i) && i.length > 0 && U(s.setStyleValue) && i.forEach((f, d) => {
1774
+ }), q(a) && a.length > 0 && U(s.setStyleValue) && a.forEach((f, m) => {
1771
1775
  if (ie(f)) {
1772
- let g = Q(f);
1773
- s.setStyleValue(f.tarKey, g);
1776
+ let h = Y(f);
1777
+ s.setStyleValue(f.tarKey, h);
1774
1778
  }
1775
1779
  });
1776
1780
  }
1777
1781
  }, Vt = (e) => {
1778
- let i = !1;
1782
+ let a = !1;
1779
1783
  if (e && q(e.params)) {
1780
- let l = e.params || [], f = null, d = !1;
1781
- for (let g = 0; g < l.length; g++) {
1782
- f = l[g];
1783
- let M = Q(f), H = f.value;
1784
+ let i = e.params || [], f = null, m = !1;
1785
+ for (let h = 0; h < i.length; h++) {
1786
+ f = i[h];
1787
+ let M = Y(f), H = f.value;
1784
1788
  const ne = f.opType;
1785
- if ([">", ">=", "<", "<=", "=="].includes(ne) && (M = pe(M), H = pe(H)), fe[ne] ? d = fe[ne](M, H) : d = !1, d) {
1786
- i = !0;
1789
+ if ([">", ">=", "<", "<=", "=="].includes(ne) && (M = de(M), H = de(H)), fe[ne] ? m = fe[ne](M, H) : m = !1, m) {
1790
+ a = !0;
1787
1791
  break;
1788
1792
  }
1789
1793
  }
1790
- if (e.enabledTip && i) {
1791
- let g = e.tip || {};
1792
- g.tipType == "msg" ? _e(g.type, g.msg, g.extParam) : g.tipType == "notify" && je(g.type, g.msg, g.extParam);
1794
+ if (e.enabledTip && a) {
1795
+ let h = e.tip || {};
1796
+ h.tipType == "msg" ? we(h.type, h.msg, h.extParam) : h.tipType == "notify" && Be(h.type, h.msg, h.extParam);
1793
1797
  }
1794
1798
  }
1795
- return i;
1796
- }, Ke = (e, i) => {
1797
- if (e.customFunc && v(e.confirmFunc)) {
1798
- const l = {
1799
+ return a;
1800
+ }, Le = (e, a) => {
1801
+ if (e.customFunc && g(e.confirmFunc)) {
1802
+ const i = {
1799
1803
  helper: { ...s, ...I }
1800
1804
  };
1801
1805
  try {
1802
1806
  let f = e.confirmFunc.toString().trim();
1803
- f.indexOf("function") < 0 && (f = "function (promptValue){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(l)(i);
1807
+ f.indexOf("function") < 0 && (f = "function (promptValue){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(i)(a);
1804
1808
  } catch (f) {
1805
1809
  console.error("[__messageBoxHandler4CustomSuccessFunc]处理自定义失败函数时出错:", f);
1806
1810
  }
1807
1811
  }
1808
- }, It = (e, i) => {
1809
- if (e.customFunc && v(e.errorFunc)) {
1810
- const l = {
1812
+ }, It = (e, a) => {
1813
+ if (e.customFunc && g(e.errorFunc)) {
1814
+ const i = {
1811
1815
  helper: { ...s, ...I }
1812
1816
  };
1813
1817
  try {
1814
1818
  let f = e.errorFunc.toString().trim();
1815
- f.indexOf("function") < 0 && (f = "function (err){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(l)(i);
1819
+ f.indexOf("function") < 0 && (f = "function (err){" + f + "}"), new Function("context", `with(context) {return ${f}}`)(i)(a);
1816
1820
  } catch (f) {
1817
1821
  console.error("[__messageBoxHandler4CustomErrorFunc]处理自定义失败函数时出错:", f);
1818
1822
  }
1819
1823
  }
1820
- }, ve = (e, i) => {
1824
+ }, xe = (e, a) => {
1821
1825
  if (e.customFunc) {
1822
- let l = "";
1823
- if (i == "cancel" && v(e.cancelFunc))
1824
- l = e.cancelFunc;
1825
- else if (i == "close" && v(e.closeFunc))
1826
- l = e.closeFunc;
1826
+ let i = "";
1827
+ if (a == "cancel" && g(e.cancelFunc))
1828
+ i = e.cancelFunc;
1829
+ else if (a == "close" && g(e.closeFunc))
1830
+ i = e.closeFunc;
1827
1831
  else
1828
1832
  return;
1829
1833
  const f = {
1830
1834
  helper: { ...s, ...I }
1831
1835
  };
1832
1836
  try {
1833
- let d = l.toString().trim();
1834
- d.indexOf("function") < 0 && (d = "function (err){" + d + "}"), new Function("context", `with(context) {return ${d}}`)(f)();
1835
- } catch (d) {
1836
- console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", d);
1837
+ let m = i.toString().trim();
1838
+ m.indexOf("function") < 0 && (m = "function (err){" + m + "}"), new Function("context", `with(context) {return ${m}}`)(f)();
1839
+ } catch (m) {
1840
+ console.error("[__messageBoxHandler4CustomCancelOrCloseFunc]处理自定义失败函数时出错:", m);
1837
1841
  }
1838
1842
  }
1839
- }, kt = async (e) => {
1840
- let i = !1;
1841
- if (e && v(e.type)) {
1842
- let l = {
1843
+ }, Dt = async (e) => {
1844
+ let a = !1;
1845
+ if (e && g(e.type)) {
1846
+ let i = {
1843
1847
  ...e.params,
1844
1848
  type: e.msgType || "info",
1845
1849
  confirmButtonText: e.confirmText,
1846
1850
  cancelButtonText: e.cancelText
1847
1851
  };
1848
1852
  if (e.type == "confirm") {
1849
- const { errors: f, resultInfo: d } = await vt(e.title, e.message, l);
1850
- f && f.length > 0 ? f[0] == "cancel" ? ve(e, "cancel") : f[0] == "close" && ve(e, "close") : d == "confirm" && (i = !0, Ke(e, null));
1853
+ const { errors: f, resultInfo: m } = await _t(e.title, e.message, i);
1854
+ f && f.length > 0 ? f[0] == "cancel" ? xe(e, "cancel") : f[0] == "close" && xe(e, "close") : m == "confirm" && (a = !0, Le(e, null));
1851
1855
  } else if (e.type == "prompt") {
1852
- if (v(l.inputPattern)) {
1853
- const g = l.inputPattern.replace(/\\\\/g, "\\");
1854
- l.inputPattern = new RegExp(g);
1856
+ if (g(i.inputPattern)) {
1857
+ const h = i.inputPattern.replace(/\\\\/g, "\\");
1858
+ i.inputPattern = new RegExp(h);
1855
1859
  }
1856
- const { errors: f, resultInfo: d } = await bt(e.title, e.message, l);
1857
- f && f.length > 0 ? f[0] == "cancel" ? ve(e, "cancel") : f[0] == "close" ? ve(e, "close") : It(e, f[0]) : d.action == "confirm" && (i = !0, I.setParam("promptValue", d.value), Ke(e, d.value));
1860
+ const { errors: f, resultInfo: m } = await vt(e.title, e.message, i);
1861
+ f && f.length > 0 ? f[0] == "cancel" ? xe(e, "cancel") : f[0] == "close" ? xe(e, "close") : It(e, f[0]) : m.action == "confirm" && (a = !0, I.setParam("promptValue", m.value), Le(e, m.value));
1858
1862
  }
1859
- e.autoBlock || (i = !0);
1863
+ e.autoBlock || (a = !0);
1860
1864
  } else
1861
- i = !0;
1862
- return i;
1863
- }, Dt = (e) => {
1864
- if (e && v(e.pageId)) {
1865
- let i = { ...e };
1865
+ a = !0;
1866
+ return a;
1867
+ }, kt = (e) => {
1868
+ if (e && g(e.pageId)) {
1869
+ let a = { ...e };
1866
1870
  if (e.customPosition) {
1867
- let l = (I.getParam("elementRectLeft") ?? 0) + (se(e.leftOffset) ? e.leftOffset : 0), f = (I.getParam("elementRectTop") ?? 0) + (se(e.topOffset) ? e.topOffset : 0);
1868
- i.absLeft = l, i.absTop = f;
1871
+ let i = (I.getParam("elementRectLeft") ?? 0) + (se(e.leftOffset) ? e.leftOffset : 0), f = (I.getParam("elementRectTop") ?? 0) + (se(e.topOffset) ? e.topOffset : 0);
1872
+ a.absLeft = i, a.absTop = f;
1869
1873
  }
1870
- _(i);
1874
+ v(a);
1871
1875
  }
1872
- }, Ft = (e) => {
1876
+ }, Rt = (e) => {
1873
1877
  if (e && q(e.params)) {
1874
- let i = e.params || [], l = null;
1875
- for (let f = 0; f < i.length; f++)
1876
- if (l = i[f], v(l.compId)) {
1877
- let d = l.options || {};
1878
- l.type == "s" ? I.hideAndShowComp(l.compId, !0, d) : I.hideAndShowComp(l.compId, !1, d);
1878
+ let a = e.params || [], i = null;
1879
+ for (let f = 0; f < a.length; f++)
1880
+ if (i = a[f], g(i.compId)) {
1881
+ let m = i.options || {};
1882
+ i.type == "s" ? I.hideAndShowComp(i.compId, !0, m) : I.hideAndShowComp(i.compId, !1, m);
1879
1883
  }
1880
1884
  }
1881
1885
  }, Et = (e) => {
1882
1886
  if (e) {
1883
- let i = e.interval ?? 1e3, l = setInterval(
1887
+ let a = e.interval ?? 1e3, i = setInterval(
1884
1888
  () => {
1885
- X("debug", "定时器触发..."), We();
1889
+ $("debug", "定时器触发..."), Ue();
1886
1890
  },
1887
- i
1891
+ a
1888
1892
  );
1889
- C.push(l), We();
1893
+ S.push(i), Ue();
1890
1894
  }
1891
1895
  }, Tt = (e) => {
1892
1896
  if (e) {
1893
- let i = e.bindRefreshKey, l = e.clearFlag;
1894
- if (v(i))
1895
- if (l)
1896
- D();
1897
+ let a = e.bindRefreshKey, i = e.clearFlag;
1898
+ if (g(a))
1899
+ if (i)
1900
+ O();
1897
1901
  else {
1898
- D();
1899
- const f = k[i];
1902
+ O();
1903
+ const f = k[a];
1900
1904
  if (!f) return;
1901
- x = Me(f, (d, g) => {
1902
- Yt();
1905
+ b = be(f, (m, h) => {
1906
+ Zt();
1903
1907
  });
1904
1908
  }
1905
1909
  }
1906
- }, Rt = (e) => {
1910
+ }, At = (e) => {
1907
1911
  if (e) {
1908
- let i = e.interval ?? 1e3, l = setTimeout(
1912
+ let a = e.interval ?? 1e3, i = setTimeout(
1909
1913
  () => {
1910
- Qt(e.id);
1914
+ Xt(e.id);
1911
1915
  },
1912
- i
1916
+ a
1913
1917
  );
1914
- j.set(e.id, l);
1918
+ N.set(e.id, i);
1915
1919
  }
1916
- }, At = (e, i = {}) => {
1917
- if (e && v(e.eventId)) {
1918
- let l = i.eventIds || [];
1919
- if (l.findIndex((d) => d == e.eventId) < 0) {
1920
- let d = Object.keys(t);
1921
- for (let g = 0; g < d.length; g++) {
1922
- let M = t[d[g]] || [];
1920
+ }, Ft = (e, a = {}) => {
1921
+ if (e && g(e.eventId)) {
1922
+ let i = a.eventIds || [];
1923
+ if (i.findIndex((m) => m == e.eventId) < 0) {
1924
+ let m = Object.keys(n);
1925
+ for (let h = 0; h < m.length; h++) {
1926
+ let M = n[m[h]] || [];
1923
1927
  for (const H of M)
1924
1928
  if (H.id == e.eventId) {
1925
- if (l.push(H.id), i.eventIds = [...l], H.default) {
1926
- be(H.actionList, i);
1929
+ if (i.push(H.id), a.eventIds = [...i], H.default) {
1930
+ Se(H.actionList, a);
1927
1931
  break;
1928
- } else Ue(H) && be(H.actionList, i);
1932
+ } else ze(H) && Se(H.actionList, a);
1929
1933
  break;
1930
1934
  }
1931
1935
  }
1932
1936
  } else
1933
- X("error", "存在循环调用,不执行事件配置", e.eventId);
1937
+ $("error", "存在循环调用,不执行事件配置", e.eventId);
1934
1938
  }
1935
- }, be = async (e = [], i = {}) => {
1936
- let l = null;
1939
+ }, Se = async (e = [], a = {}) => {
1940
+ let i = null;
1937
1941
  for (let f = 0; f < e.length; f++)
1938
- if (l = e[f], l.action == "router")
1939
- J(l.config);
1940
- else if (l.action == "dataRequest")
1941
- await Ve(l.config);
1942
- else if (l.action == "cacheSet")
1943
- wt(l.config);
1944
- else if (l.action == "paramMap")
1945
- xt(l.config);
1946
- else if (l.action == "paramSet")
1947
- St(l.config);
1948
- else if (l.action == "customFunction")
1949
- Ct(l.config);
1950
- else if (l.action == "webStorage")
1951
- Pt(l.config);
1952
- else if (l.action == "componentSet")
1953
- Ot(l.config);
1954
- else if (l.action == "actionEnd") {
1955
- if (Vt(l.config)) {
1942
+ if (i = e[f], i.action == "router")
1943
+ z(i.config);
1944
+ else if (i.action == "dataRequest")
1945
+ await Ct(i.config);
1946
+ else if (i.action == "cacheSet")
1947
+ wt(i.config);
1948
+ else if (i.action == "paramMap")
1949
+ bt(i.config);
1950
+ else if (i.action == "paramSet")
1951
+ xt(i.config);
1952
+ else if (i.action == "customFunction")
1953
+ St(i.config);
1954
+ else if (i.action == "webStorage")
1955
+ Pt(i.config);
1956
+ else if (i.action == "componentSet")
1957
+ Ot(i.config);
1958
+ else if (i.action == "actionEnd") {
1959
+ if (Vt(i.config)) {
1956
1960
  console.log("actionEnd is true. break");
1957
1961
  break;
1958
1962
  }
1959
- } else if (l.action == "messageBox") {
1960
- if (!await kt(l.config)) {
1963
+ } else if (i.action == "messageBox") {
1964
+ if (!await Dt(i.config)) {
1961
1965
  console.log("messageBox is false. break");
1962
1966
  break;
1963
1967
  }
1964
- } else if (l.action == "openDialog") {
1965
- Dt(l.config);
1968
+ } else if (i.action == "openDialog") {
1969
+ kt(i.config);
1966
1970
  break;
1967
- } else l.action == "showAndHideSet" ? Ft(l.config) : l.action == "timerSet" ? Et(l.config) : l.action == "performEvent" ? At(l.config, i) : l.action == "bindRefreshSet" ? Tt(l.config) : l.action == "delaySet" && Rt(l.config);
1968
- }, ze = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", Nt = (e) => {
1969
- let i = !1, l, f, d = !1;
1970
- v(e.lType) && (ze(e.lType) ? d = !0 : d = v(e.lValue));
1971
- let g = !1;
1972
- if (v(e.rType) && (ze(e.rType) ? g = !0 : g = v(e.rValue)), d && g) {
1973
- l = Q({
1971
+ } else i.action == "showAndHideSet" ? Rt(i.config) : i.action == "timerSet" ? Et(i.config) : i.action == "performEvent" ? Ft(i.config, a) : i.action == "bindRefreshSet" ? Tt(i.config) : i.action == "delaySet" && At(i.config);
1972
+ }, qe = (e) => e == "inputV" || e == "_selectMenuValue" || e == "_selectItemValue" || e == "_changeItemValue", jt = (e) => {
1973
+ let a = !1, i, f, m = !1;
1974
+ g(e.lType) && (qe(e.lType) ? m = !0 : m = g(e.lValue));
1975
+ let h = !1;
1976
+ if (g(e.rType) && (qe(e.rType) ? h = !0 : h = g(e.rValue)), m && h) {
1977
+ i = Y({
1974
1978
  ds: e.lType,
1975
1979
  key: e.lValue
1976
- }), f = Q({
1980
+ }), f = Y({
1977
1981
  ds: e.rType,
1978
1982
  key: e.rValue
1979
1983
  });
1980
1984
  const M = e.opType;
1981
- [">", ">=", "<", "<=", "=="].includes(M) && (l = pe(l), f = pe(f)), fe[M] ? i = fe[M](l, f) : (i = !1, console.warn("useEventHandler Invalid operator: " + M));
1985
+ [">", ">=", "<", "<=", "=="].includes(M) && (i = de(i), f = de(f)), fe[M] ? a = fe[M](i, f) : (a = !1, console.warn("useEventHandler Invalid operator: " + M));
1982
1986
  } else
1983
1987
  console.warn("_judgeCondition warn: the condition config is error.");
1984
- return i;
1985
- }, Ue = (e) => {
1986
- let i = !1;
1988
+ return a;
1989
+ }, ze = (e) => {
1990
+ let a = !1;
1987
1991
  if (e.default)
1988
- i = !0;
1992
+ a = !0;
1989
1993
  else {
1990
- let l = e.condition || [];
1991
- if (l.length > 0) {
1994
+ let i = e.condition || [];
1995
+ if (i.length > 0) {
1992
1996
  let f = !0;
1993
- for (let d = 0; d < l.length; d++)
1994
- if (!Nt(l[d])) {
1997
+ for (let m = 0; m < i.length; m++)
1998
+ if (!jt(i[m])) {
1995
1999
  f = !1;
1996
2000
  break;
1997
2001
  }
1998
- f && (i = !0);
2002
+ f && (a = !0);
1999
2003
  } else
2000
- i = !0;
2004
+ a = !0;
2001
2005
  }
2002
- return i;
2003
- }, K = (e = []) => {
2004
- for (const i of e) {
2005
- let l = {};
2006
- if (l.eventIds = [i.id], i.default) {
2007
- be(i.actionList, l);
2006
+ return a;
2007
+ }, L = (e = []) => {
2008
+ for (const a of e) {
2009
+ let i = {};
2010
+ if (i.eventIds = [a.id], a.default) {
2011
+ Se(a.actionList, i);
2008
2012
  break;
2009
- } else Ue(i) && be(i.actionList, l);
2013
+ } else ze(a) && Se(a.actionList, i);
2010
2014
  }
2011
- }, jt = (e) => {
2015
+ }, Bt = (e) => {
2012
2016
  u || (w && clearTimeout(w), w = setTimeout(() => {
2013
- if (t && t.hasOwnProperty("onMouseClick")) {
2017
+ if (n && n.hasOwnProperty("onMouseClick")) {
2014
2018
  if (e && e.target) {
2015
- const l = e.target.getBoundingClientRect();
2016
- Y("elementRect", l), Y("elementRectLeft", l.left), Y("elementRectTop", l.top);
2019
+ const i = e.target.getBoundingClientRect();
2020
+ X("elementRect", i), X("elementRectLeft", i.left), X("elementRectTop", i.top);
2017
2021
  }
2018
- let i = t.onMouseClick;
2019
- K(i);
2022
+ let a = n.onMouseClick;
2023
+ L(a);
2020
2024
  }
2021
- }, S));
2022
- }, Bt = (e) => {
2023
- if (!u && (w && clearTimeout(w), t && t.hasOwnProperty("onMouseDblClick"))) {
2025
+ }, x));
2026
+ }, Nt = (e) => {
2027
+ if (!u && (w && clearTimeout(w), n && n.hasOwnProperty("onMouseDblClick"))) {
2024
2028
  if (e && e.target) {
2025
- const l = e.target.getBoundingClientRect();
2026
- Y("elementRect", l), Y("elementRectLeft", l.left), Y("elementRectTop", l.top);
2029
+ const i = e.target.getBoundingClientRect();
2030
+ X("elementRect", i), X("elementRectLeft", i.left), X("elementRectTop", i.top);
2027
2031
  }
2028
- let i = t.onMouseDblClick;
2029
- K(i);
2032
+ let a = n.onMouseDblClick;
2033
+ L(a);
2030
2034
  }
2031
- }, Ht = (e, i) => {
2032
- if (!u && (Y("_selectMenuValue", i), t && t.hasOwnProperty("onContextMenu"))) {
2033
- let l = t.onContextMenu;
2034
- K(l);
2035
+ }, Kt = (e, a) => {
2036
+ if (!u && (X("_selectMenuValue", a), n && n.hasOwnProperty("onContextMenu"))) {
2037
+ let i = n.onContextMenu;
2038
+ L(i);
2035
2039
  }
2036
- }, Lt = (e) => {
2037
- if (!u && (Y("_selectItemValue", e), t && t.hasOwnProperty("selectItem"))) {
2038
- let i = t.selectItem;
2039
- K(i);
2040
+ }, Ht = (e) => {
2041
+ if (!u && (X("_selectItemValue", e), n && n.hasOwnProperty("selectItem"))) {
2042
+ let a = n.selectItem;
2043
+ L(a);
2040
2044
  }
2041
- }, qt = (e) => {
2042
- if (!u && (Y("_changeItemValue", e), t && t.hasOwnProperty("changeValue"))) {
2043
- let i = t.changeValue;
2044
- K(i);
2045
+ }, Lt = (e) => {
2046
+ if (!u && (X("_changeItemValue", e), n && n.hasOwnProperty("changeValue"))) {
2047
+ let a = n.changeValue;
2048
+ L(a);
2045
2049
  }
2046
- }, Kt = () => {
2047
- if (!u && t && t.hasOwnProperty("keyEnter")) {
2048
- let e = t.keyEnter;
2049
- K(e);
2050
+ }, qt = () => {
2051
+ if (!u && n && n.hasOwnProperty("keyEnter")) {
2052
+ let e = n.keyEnter;
2053
+ L(e);
2050
2054
  }
2051
2055
  }, zt = () => {
2052
- if (!u && t && t.hasOwnProperty("onBeforeMount")) {
2053
- let e = t.onBeforeMount;
2054
- K(e);
2056
+ if (!u && n && n.hasOwnProperty("onBeforeMount")) {
2057
+ let e = n.onBeforeMount;
2058
+ L(e);
2055
2059
  }
2056
2060
  }, Ut = () => {
2057
- if (!u && t && t.hasOwnProperty("onMounted")) {
2058
- let e = t.onMounted;
2059
- K(e);
2061
+ if (!u && n && n.hasOwnProperty("onMounted")) {
2062
+ let e = n.onMounted;
2063
+ L(e);
2060
2064
  }
2061
2065
  }, Wt = () => {
2062
- if (C && C.length > 0)
2063
- for (let e = 0; e < C.length; e++)
2066
+ if (S && S.length > 0)
2067
+ for (let e = 0; e < S.length; e++)
2064
2068
  try {
2065
- clearInterval(C[e]);
2066
- } catch (i) {
2067
- console.error("cancel request error", i);
2069
+ clearInterval(S[e]);
2070
+ } catch (a) {
2071
+ console.error("cancel request error", a);
2068
2072
  }
2069
2073
  }, Jt = () => {
2070
- j && j.size > 0 && (j.forEach((e, i, l) => {
2074
+ N && N.size > 0 && (N.forEach((e, a, i) => {
2071
2075
  clearTimeout(e);
2072
- }), j.clear());
2076
+ }), N.clear());
2073
2077
  }, Gt = () => {
2074
2078
  if (Wt(), Jt(), !u) {
2075
- if (h && h.length > 0)
2076
- for (let e = 0; e < h.length; e++)
2079
+ if (y && y.length > 0)
2080
+ for (let e = 0; e < y.length; e++)
2077
2081
  try {
2078
- h[e] && h[e]();
2079
- } catch (i) {
2080
- console.error("cancel request error", i);
2082
+ y[e] && y[e]();
2083
+ } catch (a) {
2084
+ console.error("cancel request error", a);
2081
2085
  }
2082
- if (t && t.hasOwnProperty("onBeforeUnmount")) {
2083
- let e = t.onBeforeUnmount;
2084
- K(e);
2086
+ if (n && n.hasOwnProperty("onBeforeUnmount")) {
2087
+ let e = n.onBeforeUnmount;
2088
+ L(e);
2085
2089
  }
2086
2090
  }
2087
2091
  }, $t = () => {
2088
- if (!u && t && t.hasOwnProperty("onUnmounted")) {
2089
- let e = t.onUnmounted;
2090
- K(e);
2092
+ if (!u && n && n.hasOwnProperty("onUnmounted")) {
2093
+ let e = n.onUnmounted;
2094
+ L(e);
2095
+ }
2096
+ }, Qt = () => {
2097
+ if (!u && (D = !1, n && n.hasOwnProperty("onActivated"))) {
2098
+ let e = n.onActivated;
2099
+ L(e);
2091
2100
  }
2092
- }, We = () => {
2093
- if (!u && t && t.hasOwnProperty("timerTrigger")) {
2094
- let e = t.timerTrigger;
2095
- K(e);
2101
+ }, Yt = () => {
2102
+ if (!u && (D = !0, n && n.hasOwnProperty("onDeactivated"))) {
2103
+ let e = n.onDeactivated;
2104
+ L(e);
2096
2105
  }
2097
- }, Qt = (e) => {
2106
+ }, Ue = () => {
2098
2107
  if (!u) {
2099
- if (t && t.hasOwnProperty("delayTrigger")) {
2100
- let i = t.delayTrigger;
2101
- K(i);
2108
+ if (D) {
2109
+ $("DEBUG", "组件当前停用状态,不执行定时器触发操作");
2110
+ return;
2111
+ }
2112
+ if (n && n.hasOwnProperty("timerTrigger")) {
2113
+ let e = n.timerTrigger;
2114
+ L(e);
2102
2115
  }
2103
- j.has(e) && (clearTimeout(j.get(e)), j.delete(e));
2104
2116
  }
2105
- }, Yt = () => {
2106
- if (!u && t && t.hasOwnProperty("bindRefreshTrigger")) {
2107
- let e = t.bindRefreshTrigger;
2108
- K(e);
2117
+ }, Xt = (e) => {
2118
+ if (!u) {
2119
+ if (n && n.hasOwnProperty("delayTrigger")) {
2120
+ let a = n.delayTrigger;
2121
+ L(a);
2122
+ }
2123
+ N.has(e) && (clearTimeout(N.get(e)), N.delete(e));
2109
2124
  }
2110
- }, Y = (e, i) => {
2111
- I.setParam(e, i);
2125
+ }, Zt = () => {
2126
+ if (!u && n && n.hasOwnProperty("bindRefreshTrigger")) {
2127
+ let e = n.bindRefreshTrigger;
2128
+ L(e);
2129
+ }
2130
+ }, X = (e, a) => {
2131
+ I.setParam(e, a);
2112
2132
  };
2113
2133
  return {
2114
- handleClick: jt,
2115
- handleDblClick: Bt,
2116
- handleContextMenu: Ht,
2117
- selectItem: Lt,
2118
- changeValue: qt,
2134
+ handleClick: Bt,
2135
+ handleDblClick: Nt,
2136
+ handleContextMenu: Kt,
2137
+ selectItem: Ht,
2138
+ changeValue: Lt,
2119
2139
  beforeMount: zt,
2120
2140
  mounted: Ut,
2121
2141
  beforeUnmount: Gt,
2122
2142
  unmounted: $t,
2123
- setParam: Y,
2124
- keyEnter: Kt
2143
+ setParam: X,
2144
+ keyEnter: qt,
2145
+ activated: Qt,
2146
+ deactivated: Yt
2125
2147
  };
2126
2148
  }
2127
- function ot(n, o, r, t) {
2149
+ function nt(t, o, r, n) {
2128
2150
  return {
2129
2151
  setPropValue: function(s, c) {
2130
- n.value[s] = c;
2152
+ t.value[s] = c;
2131
2153
  },
2132
2154
  getPropValue: function(s) {
2133
- return n.value[s];
2155
+ return t.value[s];
2134
2156
  },
2135
2157
  setStyleValue: function(s, c) {
2136
2158
  o.value.style[s] = c;
@@ -2157,7 +2179,7 @@ function ot(n, o, r, t) {
2157
2179
  }
2158
2180
  };
2159
2181
  }
2160
- const Yn = /* @__PURE__ */ Object.assign({
2182
+ const Zn = /* @__PURE__ */ Object.assign({
2161
2183
  name: "Group"
2162
2184
  }, {
2163
2185
  __name: "Component",
@@ -2178,214 +2200,214 @@ const Yn = /* @__PURE__ */ Object.assign({
2178
2200
  default: !1
2179
2201
  }
2180
2202
  },
2181
- setup(n, { expose: o }) {
2182
- const r = n, t = ye(), u = Ne(t), s = T(null), c = O(() => r.propValue || {}), p = O(() => r.element || {}), a = O(() => c.value.components || []), m = O(() => a.value.map((D) => {
2183
- let V = { ...D }, J = P(D.groupStyle);
2184
- return V.computedStyle = J, V.style && (V.style.width = V.computedStyle.width, V.style.height = V.computedStyle.height), V;
2185
- })), y = O(() => p.value.events || []), h = Ye(), _ = Xe(), b = ot(c, p, h);
2186
- Ge(() => {
2187
- s.value = nt(y.value, r.designStatus, b), s.value?.beforeMount();
2188
- }), Ce(() => {
2203
+ setup(t, { expose: o }) {
2204
+ const r = t, n = Ce(), u = je(n), s = T(null), c = V(() => r.propValue || {}), d = V(() => r.element || {}), l = V(() => c.value.components || []), p = V(() => l.value.map((D) => {
2205
+ let O = { ...D }, J = P(D.groupStyle);
2206
+ return O.computedStyle = J, O.style && (O.style.width = O.computedStyle.width, O.style.height = O.computedStyle.height), O;
2207
+ })), _ = V(() => d.value.events || []), y = Qe(), v = Ye(), C = nt(c, d, y);
2208
+ Je(() => {
2209
+ s.value = tt(_.value, r.designStatus, C), s.value?.beforeMount();
2210
+ }), Ve(() => {
2189
2211
  s.value?.mounted();
2190
- }), $e(() => {
2212
+ }), Ge(() => {
2191
2213
  s.value?.beforeUnmount();
2192
- }), Qe(() => {
2214
+ }), $e(() => {
2193
2215
  s.value?.unmounted();
2194
2216
  });
2195
2217
  const w = (D) => {
2196
2218
  s.value?.setParam(D);
2197
- }, S = (D) => {
2219
+ }, x = (D) => {
2198
2220
  s.value?.handleDblClick(D);
2199
2221
  }, P = (D) => {
2200
- if (!D || !p.value?.style) return {};
2201
- let V = { ...D }, J = p.value.style.width, z = p.value.style.height;
2202
- return V.width = Math.floor(parseFloat(V.width) / 100 * J), V.height = Math.floor(parseFloat(V.height) / 100 * z), V.top = Math.floor(parseFloat(V.top) / 100 * z), V.left = Math.floor(parseFloat(V.left) / 100 * J), V;
2203
- }, C = he({}), F = (D, V) => {
2204
- D ? C[`Ve${V}`] = D : delete C[`Ve${V}`];
2205
- }, k = (D) => C[`Ve${D}`], x = (D, V, J) => {
2206
- if (v(D) && v(V)) {
2222
+ if (!D || !d.value?.style) return {};
2223
+ let O = { ...D }, J = d.value.style.width, z = d.value.style.height;
2224
+ return O.width = Math.floor(parseFloat(O.width) / 100 * J), O.height = Math.floor(parseFloat(O.height) / 100 * z), O.top = Math.floor(parseFloat(O.top) / 100 * z), O.left = Math.floor(parseFloat(O.left) / 100 * J), O;
2225
+ }, S = pe({}), R = (D, O) => {
2226
+ D ? S[`Ve${O}`] = D : delete S[`Ve${O}`];
2227
+ }, k = (D) => S[`Ve${D}`], b = (D, O, J) => {
2228
+ if (g(D) && g(O)) {
2207
2229
  const z = k(D);
2208
- z && z[V] && (J ? z[V](J) : z[V]());
2230
+ z && z[O] && (J ? z[O](J) : z[O]());
2209
2231
  }
2210
2232
  };
2211
2233
  o({
2212
- callGroupCompMethod: x
2234
+ callGroupCompMethod: b
2213
2235
  });
2214
- const j = { props: r, dataCache: t, smartData: u, eventHandler: s, propValue: c, element: p, components: a, computedComponents: m, events: y, router: h, route: _, compContext: b, handleClick: w, handleDblClick: S, calcCompStyle: P, componentRefs: C, setComponentRef: F, getComponentRef: k, callGroupCompMethod: x, get useDataCacheStore() {
2215
- return ye;
2236
+ const N = { props: r, dataCache: n, smartData: u, eventHandler: s, propValue: c, element: d, components: l, computedComponents: p, events: _, router: y, route: v, compContext: C, handleClick: w, handleDblClick: x, calcCompStyle: P, componentRefs: S, setComponentRef: R, getComponentRef: k, callGroupCompMethod: b, get useDataCacheStore() {
2237
+ return Ce;
2216
2238
  }, get createSmartAccessor() {
2217
- return Ne;
2218
- }, ref: T, computed: O, onMounted: Ce, onBeforeMount: Ge, onBeforeUnmount: $e, onUnmounted: Qe, watch: Me, reactive: he, get useEventHandler() {
2219
- return nt;
2239
+ return je;
2240
+ }, ref: T, computed: V, onMounted: Ve, onBeforeMount: Je, onBeforeUnmount: Ge, onUnmounted: $e, watch: be, reactive: pe, get useEventHandler() {
2241
+ return tt;
2220
2242
  }, get useRoute() {
2221
- return Xe;
2222
- }, get useRouter() {
2223
2243
  return Ye;
2244
+ }, get useRouter() {
2245
+ return Qe;
2224
2246
  }, get CreateCompContext() {
2225
- return ot;
2247
+ return nt;
2226
2248
  }, get getStyle() {
2227
2249
  return ht;
2228
2250
  }, get isNotEmpty() {
2229
- return v;
2251
+ return g;
2230
2252
  } };
2231
- return Object.defineProperty(j, "__isScriptSetup", { enumerable: !1, value: !0 }), j;
2253
+ return Object.defineProperty(N, "__isScriptSetup", { enumerable: !1, value: !0 }), N;
2232
2254
  }
2233
2255
  });
2234
- function Xn(n, o, r, t, u, s) {
2235
- return R(), W("div", { class: "group" }, [
2236
- le("div", null, [
2237
- (R(!0), W(He, null, Le(t.computedComponents, (c) => (R(), $(xe(c.component), {
2256
+ function eo(t, o, r, n, u, s) {
2257
+ return A(), W("div", { class: "group" }, [
2258
+ re("div", null, [
2259
+ (A(!0), W(Ke, null, He(n.computedComponents, (c) => (A(), Q(Me(c.component), {
2238
2260
  id: "component" + c.id,
2239
2261
  ref_for: !0,
2240
- ref: (p) => t.setComponentRef(p, c.id),
2262
+ ref: (d) => n.setComponentRef(d, c.id),
2241
2263
  key: c.id,
2242
2264
  class: "component",
2243
- style: Se(t.getStyle(c.computedStyle)),
2265
+ style: Oe(n.getStyle(c.computedStyle)),
2244
2266
  "prop-value": c.propValue,
2245
2267
  element: c
2246
2268
  }, null, 8, ["id", "style", "prop-value", "element"]))), 128))
2247
2269
  ])
2248
2270
  ]);
2249
2271
  }
2250
- const Zn = /* @__PURE__ */ Z(Yn, [["render", Xn], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), eo = /* @__PURE__ */ Object.assign({
2272
+ const to = /* @__PURE__ */ Z(Zn, [["render", eo], ["__scopeId", "data-v-20de9881"], ["__file", "Component.vue"]]), no = /* @__PURE__ */ Object.assign({
2251
2273
  name: "VEDataCache"
2252
2274
  }, {
2253
2275
  __name: "index",
2254
- setup(n, { expose: o }) {
2276
+ setup(t, { expose: o }) {
2255
2277
  o();
2256
- const r = T(null), t = T(null), u = T([]), s = T(0), c = ye(), p = T(!1), a = T({
2278
+ const r = T(null), n = T(null), u = T([]), s = T(0), c = Ce(), d = T(!1), l = T({
2257
2279
  id: "",
2258
2280
  fuzzyQry: !1,
2259
2281
  pageNum: 1,
2260
2282
  pageSize: 15
2261
- }), m = () => {
2262
- a.value.pageNum = 1, h();
2283
+ }), p = () => {
2284
+ l.value.pageNum = 1, y();
2285
+ }, _ = () => {
2286
+ r.value?.resetFields(), p();
2263
2287
  }, y = () => {
2264
- r.value?.resetFields(), m();
2265
- }, h = () => {
2266
- if (!v(a.value.id)) {
2288
+ if (!g(l.value.id)) {
2267
2289
  s.value = 0, u.value = [];
2268
2290
  return;
2269
2291
  }
2270
- if (p.value = !0, c.data)
2271
- if (a.value.fuzzyQry) {
2272
- let w = Object.keys(c.data), S = [];
2292
+ if (d.value = !0, c.data)
2293
+ if (l.value.fuzzyQry) {
2294
+ let w = Object.keys(c.data), x = [];
2273
2295
  for (let P = 0; P < w.length; P++)
2274
- w[P].startsWith(a.value.id) && S.push(w[P]);
2275
- if (s.value = S.length, s.value > 0) {
2276
- let P = (a.value.pageNum - 1) * a.value.pageSize, C = P + a.value.pageSize;
2296
+ w[P].startsWith(l.value.id) && x.push(w[P]);
2297
+ if (s.value = x.length, s.value > 0) {
2298
+ let P = (l.value.pageNum - 1) * l.value.pageSize, S = P + l.value.pageSize;
2277
2299
  if (P <= s.value) {
2278
- let F = [];
2279
- for (let k = P; k < C; k++)
2300
+ let R = [];
2301
+ for (let k = P; k < S; k++)
2280
2302
  if (k < s.value) {
2281
- let x = c.data[S[k]], j = re(x) ? we(x) : x;
2282
- F.push({
2283
- key: S[k],
2284
- value: j
2303
+ let b = c.data[x[k]], N = ee(b) ? Pe(b) : b;
2304
+ R.push({
2305
+ key: x[k],
2306
+ value: N
2285
2307
  });
2286
2308
  }
2287
- u.value = F;
2309
+ u.value = R;
2288
2310
  } else
2289
2311
  u.value = [];
2290
2312
  } else
2291
2313
  u.value = [];
2292
2314
  } else {
2293
- let w = c.data[a.value.id];
2294
- if (Pe(w))
2315
+ let w = c.data[l.value.id];
2316
+ if (_e(w))
2295
2317
  s.value = 0, u.value = [];
2296
2318
  else {
2297
2319
  s.value = 1;
2298
- let S = re(w) ? we(w) : w;
2320
+ let x = ee(w) ? Pe(w) : w;
2299
2321
  u.value = [{
2300
- key: a.value.id,
2301
- value: S
2322
+ key: l.value.id,
2323
+ value: x
2302
2324
  }];
2303
2325
  }
2304
2326
  }
2305
- p.value = !1;
2306
- }, b = { queryForm: r, resultTableRef: t, dataList: u, total: s, dataCache: c, loading: p, queryParams: a, handleQuery: m, resetQuery: y, getList: h, handleCopyData: (w) => {
2307
- w && Ee(w.value) && _e("success", "复制成功");
2327
+ d.value = !1;
2328
+ }, C = { queryForm: r, resultTableRef: n, dataList: u, total: s, dataCache: c, loading: d, queryParams: l, handleQuery: p, resetQuery: _, getList: y, handleCopyData: (w) => {
2329
+ w && Ae(w.value) && we("success", "复制成功");
2308
2330
  }, ref: T, get useDataCacheStore() {
2309
- return ye;
2331
+ return Ce;
2310
2332
  }, get copyToClipboard() {
2311
- return Ee;
2333
+ return Ae;
2312
2334
  }, get isNotEmpty() {
2313
- return v;
2335
+ return g;
2314
2336
  }, get isNullOrUndefined() {
2315
- return Pe;
2337
+ return _e;
2316
2338
  }, get isObject() {
2317
- return re;
2339
+ return ee;
2318
2340
  }, get toJsonStr() {
2319
- return we;
2341
+ return Pe;
2320
2342
  }, get showMessage() {
2321
- return _e;
2343
+ return we;
2322
2344
  } };
2323
- return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
2345
+ return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
2324
2346
  }
2325
2347
  });
2326
- function to(n, o, r, t, u, s) {
2327
- const c = B("el-input"), p = B("el-form-item"), a = B("el-switch"), m = B("el-button"), y = B("el-form"), h = B("el-table-column"), _ = B("el-table"), b = B("pagination"), w = on("loading");
2328
- return R(), W("div", { class: "panel-area" }, [
2329
- le("div", { class: "panel-condition" }, [
2330
- E(y, {
2331
- model: t.queryParams,
2348
+ function oo(t, o, r, n, u, s) {
2349
+ const c = K("el-input"), d = K("el-form-item"), l = K("el-switch"), p = K("el-button"), _ = K("el-form"), y = K("el-table-column"), v = K("el-table"), C = K("pagination"), w = ln("loading");
2350
+ return A(), W("div", { class: "panel-area" }, [
2351
+ re("div", { class: "panel-condition" }, [
2352
+ E(_, {
2353
+ model: n.queryParams,
2332
2354
  ref: "queryForm",
2333
2355
  inline: !0
2334
2356
  }, {
2335
- default: A(() => [
2336
- E(p, {
2357
+ default: F(() => [
2358
+ E(d, {
2337
2359
  label: "缓存key",
2338
2360
  prop: "id"
2339
2361
  }, {
2340
- default: A(() => [
2362
+ default: F(() => [
2341
2363
  E(c, {
2342
- modelValue: t.queryParams.id,
2343
- "onUpdate:modelValue": o[0] || (o[0] = (S) => t.queryParams.id = S),
2364
+ modelValue: n.queryParams.id,
2365
+ "onUpdate:modelValue": o[0] || (o[0] = (x) => n.queryParams.id = x),
2344
2366
  placeholder: "请输入缓存key",
2345
2367
  clearable: "",
2346
2368
  style: { width: "240px" },
2347
- onKeyup: rn(t.handleQuery, ["enter", "native"])
2369
+ onKeyup: sn(n.handleQuery, ["enter", "native"])
2348
2370
  }, null, 8, ["modelValue"])
2349
2371
  ]),
2350
2372
  _: 1
2351
2373
  }),
2352
- N(),
2353
- E(p, {
2374
+ j(),
2375
+ E(d, {
2354
2376
  label: "查询模式",
2355
2377
  prop: "name"
2356
2378
  }, {
2357
- default: A(() => [
2358
- E(a, {
2359
- modelValue: t.queryParams.fuzzyQry,
2360
- "onUpdate:modelValue": o[1] || (o[1] = (S) => t.queryParams.fuzzyQry = S),
2379
+ default: F(() => [
2380
+ E(l, {
2381
+ modelValue: n.queryParams.fuzzyQry,
2382
+ "onUpdate:modelValue": o[1] || (o[1] = (x) => n.queryParams.fuzzyQry = x),
2361
2383
  "active-text": "模糊",
2362
2384
  "inactive-text": "精确"
2363
2385
  }, null, 8, ["modelValue"])
2364
2386
  ]),
2365
2387
  _: 1
2366
2388
  }),
2367
- N(),
2368
- E(p, null, {
2369
- default: A(() => [
2370
- E(m, {
2389
+ j(),
2390
+ E(d, null, {
2391
+ default: F(() => [
2392
+ E(p, {
2371
2393
  type: "primary",
2372
2394
  icon: "search",
2373
2395
  size: "small",
2374
- onClick: t.handleQuery
2396
+ onClick: n.handleQuery
2375
2397
  }, {
2376
- default: A(() => [
2377
- N("搜索")
2398
+ default: F(() => [
2399
+ j("搜索")
2378
2400
  ]),
2379
2401
  _: 1
2380
2402
  }),
2381
- N(),
2382
- E(m, {
2403
+ j(),
2404
+ E(p, {
2383
2405
  icon: "refresh",
2384
2406
  size: "small",
2385
- onClick: t.resetQuery
2407
+ onClick: n.resetQuery
2386
2408
  }, {
2387
- default: A(() => [
2388
- N("重置")
2409
+ default: F(() => [
2410
+ j("重置")
2389
2411
  ]),
2390
2412
  _: 1
2391
2413
  })
@@ -2396,55 +2418,55 @@ function to(n, o, r, t, u, s) {
2396
2418
  _: 1
2397
2419
  }, 8, ["model"])
2398
2420
  ]),
2399
- N(),
2400
- le("div", { class: "panel-table" }, [
2401
- N(`\r
2421
+ j(),
2422
+ re("div", { class: "panel-table" }, [
2423
+ j(`\r
2402
2424
      \r
2403
2425
  `),
2404
- De((R(), $(_, {
2426
+ Te((A(), Q(v, {
2405
2427
  ref: "resultTableRef",
2406
- data: t.dataList,
2428
+ data: n.dataList,
2407
2429
  stripe: "",
2408
2430
  border: "",
2409
2431
  "highlight-current-row": ""
2410
2432
  }, {
2411
- default: A(() => [
2412
- E(h, {
2433
+ default: F(() => [
2434
+ E(y, {
2413
2435
  type: "index",
2414
2436
  align: "center",
2415
2437
  width: "60"
2416
2438
  }),
2417
- N(),
2418
- E(h, {
2439
+ j(),
2440
+ E(y, {
2419
2441
  label: "缓存Key",
2420
2442
  align: "center",
2421
2443
  property: "key",
2422
2444
  "show-overflow-tooltip": !0,
2423
2445
  "min-width": "200"
2424
2446
  }),
2425
- N(),
2426
- E(h, {
2447
+ j(),
2448
+ E(y, {
2427
2449
  label: "缓存值",
2428
2450
  align: "left",
2429
2451
  property: "value",
2430
2452
  "show-overflow-tooltip": !0,
2431
2453
  "min-width": "400"
2432
2454
  }),
2433
- N(),
2434
- E(h, {
2455
+ j(),
2456
+ E(y, {
2435
2457
  label: "操作",
2436
2458
  align: "center",
2437
2459
  "show-overflow-tooltip": !0,
2438
2460
  "min-width": "80"
2439
2461
  }, {
2440
- default: A((S) => [
2441
- E(m, {
2462
+ default: F((x) => [
2463
+ E(p, {
2442
2464
  link: "",
2443
2465
  icon: "document",
2444
- onClick: (P) => t.handleCopyData(S.row)
2466
+ onClick: (P) => n.handleCopyData(x.row)
2445
2467
  }, {
2446
- default: A(() => [
2447
- N(`复制数据\r
2468
+ default: F(() => [
2469
+ j(`复制数据\r
2448
2470
  `)
2449
2471
  ]),
2450
2472
  _: 1
@@ -2455,46 +2477,73 @@ function to(n, o, r, t, u, s) {
2455
2477
  ]),
2456
2478
  _: 1
2457
2479
  }, 8, ["data"])), [
2458
- [w, t.loading]
2480
+ [w, n.loading]
2459
2481
  ]),
2460
- N(),
2461
- De(E(b, {
2462
- total: t.total,
2463
- page: t.queryParams.pageNum,
2464
- "onUpdate:page": o[2] || (o[2] = (S) => t.queryParams.pageNum = S),
2465
- limit: t.queryParams.pageSize,
2466
- "onUpdate:limit": o[3] || (o[3] = (S) => t.queryParams.pageSize = S),
2482
+ j(),
2483
+ Te(E(C, {
2484
+ total: n.total,
2485
+ page: n.queryParams.pageNum,
2486
+ "onUpdate:page": o[2] || (o[2] = (x) => n.queryParams.pageNum = x),
2487
+ limit: n.queryParams.pageSize,
2488
+ "onUpdate:limit": o[3] || (o[3] = (x) => n.queryParams.pageSize = x),
2467
2489
  pageSizes: [15, 20, 30, 50],
2468
- onPagination: t.getList
2490
+ onPagination: n.getList
2469
2491
  }, null, 8, ["total", "page", "limit"]), [
2470
- [rt, t.total > 0]
2492
+ [ot, n.total > 0]
2471
2493
  ])
2472
2494
  ])
2473
2495
  ]);
2474
2496
  }
2475
- const no = /* @__PURE__ */ Z(eo, [["render", to], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]), oo = [
2476
- Fn,
2497
+ const ro = /* @__PURE__ */ Z(no, [["render", oo], ["__scopeId", "data-v-55cea49e"], ["__file", "index.vue"]]);
2498
+ function yo(t = {}, o, r) {
2499
+ const n = pe({
2500
+ dataColor: null,
2501
+ // 数据颜色
2502
+ backgroundColor: null,
2503
+ // 背景颜色
2504
+ lineColor: null,
2505
+ // 线颜色
2506
+ fillColor: null
2507
+ // 填充颜色
2508
+ }), u = o[t.colorCK], s = (l, p, _) => De(l, p) ? Ie(l, p) : _, c = (l, p) => g(p) && r ? r[p] ? r[p][l] : null : l, d = (l, p) => l === p ? !0 : l == null || p == null ? !1 : ve(l) && ve(p) ? l.trim() === p.trim() : l === p;
2509
+ return be(() => u?.value, (l) => {
2510
+ if (ee(l)) {
2511
+ if (!g(t.colorCK) || !t.dycFlag)
2512
+ return;
2513
+ let p;
2514
+ g(t.fColorKey) && (p = s(l, t.fColorKey, null), n.dataColor = c(p, t.fColorRule)), g(t.bgColorKey) && (p = s(l, t.bgColorKey, null), n.backgroundColor = c(p, t.bgColorRule)), g(t.lineColorKey) && (p = s(l, t.lineColorKey, null), n.lineColor = c(p, t.lineColorRule)), g(t.fillColorKey) && (p = s(l, t.fillColorKey, null), n.fillColor = c(p, t.fillColorRule));
2515
+ } else if (!_e(l)) {
2516
+ if (!g(t.colorCK) || !t.dycFlag)
2517
+ return;
2518
+ let p = String(l);
2519
+ g(t.fColorKey) && d(t.fColorKey, t.colorCK) && (n.dataColor = c(p, t.fColorRule)), g(t.bgColorKey) && d(t.bgColorKey, t.colorCK) && (n.backgroundColor = c(p, t.bgColorRule)), g(t.lineColorKey) && d(t.lineColorKey, t.colorCK) && (n.lineColor = c(p, t.lineColorRule)), g(t.fillColorKey) && d(t.fillColorKey, t.colorCK) && (n.fillColor = c(p, t.fillColorRule));
2520
+ }
2521
+ }, { immediate: !0 }), { dynamicColor: n };
2522
+ }
2523
+ const lo = [
2524
+ Tn,
2477
2525
  Nn,
2478
- Kn,
2479
- no,
2480
- Wn,
2481
- yt,
2482
- $n,
2483
- Zn
2484
- ], Be = (n, o) => {
2485
- Be.installed || (Be.installed = !0, n.provide("hflvloader-api", o), oo.forEach((r) => {
2486
- n.component(r.name, r);
2526
+ Un,
2527
+ ro,
2528
+ Gn,
2529
+ gt,
2530
+ Yn,
2531
+ to
2532
+ ], Ne = (t, o) => {
2533
+ Ne.installed || (Ne.installed = !0, t.provide("hflvloader-api", o), lo.forEach((r) => {
2534
+ t.component(r.name, r);
2487
2535
  }));
2488
- }, go = {
2489
- install: Be
2536
+ }, _o = {
2537
+ install: Ne
2490
2538
  };
2491
2539
  export {
2492
- fo as CommonUtils,
2493
- ot as CreateCompContext,
2494
- mo as MessageUtils,
2495
- Ne as createSmartAccessor,
2496
- go as default,
2497
- po as reCalcCanvasSize,
2498
- ye as useDataCacheStore,
2499
- nt as useEventHandler
2540
+ mo as CommonUtils,
2541
+ nt as CreateCompContext,
2542
+ go as MessageUtils,
2543
+ yo as createDynamicColor,
2544
+ je as createSmartAccessor,
2545
+ _o as default,
2546
+ ho as reCalcCanvasSize,
2547
+ Ce as useDataCacheStore,
2548
+ tt as useEventHandler
2500
2549
  };