@utogether/udp-core 1.0.1-beta.10 → 1.0.1-beta.12

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 (84) hide show
  1. package/dist/{403-Ctxjn4q8.js → 403-D7L5zm05.js} +1 -1
  2. package/dist/{404-W5yzyiZ9.js → 404-BQKzkK5W.js} +1 -1
  3. package/dist/{500-DXuGEOm4.js → 500-BM6k8XR5.js} +1 -1
  4. package/dist/{AuthorityInfo-C2tflCt8.js → AuthorityInfo-Dc-7W4L_.js} +1 -1
  5. package/dist/{AuthorityInfo.vue_vue_type_style_index_0_lang-SVgy3HX7.js → AuthorityInfo.vue_vue_type_style_index_0_lang-CKvlh3lm.js} +1 -1
  6. package/dist/{Company-PLez5GoH.js → Company-BgwMUr-I.js} +3 -3
  7. package/dist/{CompanyPanel-CIGaQooL.js → CompanyPanel-CDfVCPKC.js} +1 -1
  8. package/dist/{Department-B9wLsXFm.js → Department-CFvEB4Ys.js} +3 -3
  9. package/dist/{DepartmentPanel-DSM4lTaz.js → DepartmentPanel-11Ytcj2u.js} +1 -1
  10. package/dist/{DesignPanel-B6a9wW_A.js → DesignPanel-CP8z6teZ.js} +1 -1
  11. package/dist/{DesignPanel.vue_vue_type_style_index_0_lang-DtHfoDQk.js → DesignPanel.vue_vue_type_style_index_0_lang-Cp-WR8yE.js} +2 -2
  12. package/dist/{DictView-DhFbQxdJ.js → DictView-13NoDgPW.js} +1 -1
  13. package/dist/InvOrganization-DOD4QdEX.js +72 -0
  14. package/dist/{Org-DxBkYabD.js → Org-cezJs-6P.js} +1 -1
  15. package/dist/{Preview-BFtRpBxw.js → Preview-DzOKwnp8.js} +1 -1
  16. package/dist/{ReportDefine-BIa2QryC.js → ReportDefine-DWJq2q0f.js} +1 -1
  17. package/dist/{ReportDesign-CnyjI-WD.js → ReportDesign-f_ed8u_q.js} +2 -2
  18. package/dist/{ReportQuery-BiK7yEhV.js → ReportQuery-D58gv_yZ.js} +1 -1
  19. package/dist/{ReportQueryFrom-C2rqdFTm.js → ReportQueryFrom-R0R6EbYv.js} +1 -1
  20. package/dist/{ReportQueryFrom.vue_vue_type_style_index_0_lang-Ba9HLnXQ.js → ReportQueryFrom.vue_vue_type_style_index_0_lang-CIFpgUAH.js} +1 -1
  21. package/dist/{ReportTemplate-DdkLscP3.js → ReportTemplate-BTknctTT.js} +1 -1
  22. package/dist/{Role-BrsxgK8D.js → Role-QTDJ16h8.js} +3 -3
  23. package/dist/{RoleAssign-DiqwJqDa.js → RoleAssign-7aZ3ufp5.js} +3 -3
  24. package/dist/{RolePanel-Dqx5dI3f.js → RolePanel-CSe-UoR5.js} +1 -1
  25. package/dist/{RolePanel-BDusGyo7.js → RolePanel-XXwmaAgy.js} +1 -1
  26. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-2Z1q_5uW.js → RolePanel.vue_vue_type_script_setup_true_lang-BsNhkvFo.js} +1 -1
  27. package/dist/{RolePanel.vue_vue_type_script_setup_true_lang-B5lUnaMI.js → RolePanel.vue_vue_type_script_setup_true_lang-kConrKpo.js} +3 -3
  28. package/dist/{ScrollPanel.vue_vue_type_style_index_0_lang-vSP23fEq.js → ScrollPanel.vue_vue_type_style_index_0_lang-DtaqM_iA.js} +1 -1
  29. package/dist/{Staff-Cwi9LQiZ.js → Staff-BsREgfrQ.js} +3 -3
  30. package/dist/{StaffInfo-XjVtyaMv.js → StaffInfo-CQtVXfvS.js} +1 -1
  31. package/dist/{StaffInfo.vue_vue_type_script_setup_true_lang-wSrAuyet.js → StaffInfo.vue_vue_type_script_setup_true_lang-BRRtcGIH.js} +1 -1
  32. package/dist/{StaffPanel-C-wYcFdv.js → StaffPanel-cQTAulcP.js} +1 -1
  33. package/dist/{StaffPanel.vue_vue_type_script_setup_true_lang-DZNArmnC.js → StaffPanel.vue_vue_type_script_setup_true_lang-BLeXlrI1.js} +2 -2
  34. package/dist/{SysUser-O4tvr-Ur.js → SysUser-DN5_46io.js} +2 -2
  35. package/dist/{SysUserPanel-B853docZ.js → SysUserPanel-DTBNR42y.js} +1 -1
  36. package/dist/{SysUserPanel.vue_vue_type_script_setup_true_lang-DhiYYC97.js → SysUserPanel.vue_vue_type_script_setup_true_lang-CF2pHcPP.js} +1 -1
  37. package/dist/{SystemMenu-CXR6mrXr.js → SystemMenu-D9TKZwgb.js} +2 -2
  38. package/dist/{UserInfo-BkP8pE2a.js → UserInfo-DJ5LRTMe.js} +1 -1
  39. package/dist/{UserInfo.vue_vue_type_style_index_0_lang-D4r_umjV.js → UserInfo.vue_vue_type_style_index_0_lang-CIpPef_S.js} +1 -1
  40. package/dist/{childView-D0HwbgDT.js → childView-CGZSd19y.js} +1 -1
  41. package/dist/{childView-TRqUkSDC.js → childView-DrL_Qi-q.js} +1 -1
  42. package/dist/{childView.vue_vue_type_style_index_0_lang-BzISq0Jf.js → childView.vue_vue_type_style_index_0_lang-B8wEeuFX.js} +1 -1
  43. package/dist/{childView.vue_vue_type_style_index_0_lang-DQRgNsJY.js → childView.vue_vue_type_style_index_0_lang-D2AzjPNV.js} +1 -1
  44. package/dist/{code-rule-BV7PQWhK.js → code-rule-DVEoh1Z4.js} +1 -1
  45. package/dist/core.es.js +1 -1
  46. package/dist/{cron-task-9ZS9bi7K.js → cron-task-BBpccUV_.js} +1 -1
  47. package/dist/{frameView-DE83AN50.js → frameView-Cw6_EqfJ.js} +1 -1
  48. package/dist/index-BAkwQh8m.js +4467 -0
  49. package/dist/{layoutView-D1U-c4By.js → layoutView-CL2Ef3bw.js} +1187 -1183
  50. package/dist/{login-sPCEiTGT.js → login-BDocwo7t.js} +115 -108
  51. package/dist/{lov-view-76NcYTYl.js → lov-view-R8nnUEbA.js} +2 -2
  52. package/dist/{menuInfo-CxjfjFpm.js → menuInfo-B-nGOcSv.js} +1 -1
  53. package/dist/{menuInfo.vue_vue_type_style_index_0_lang-C2qahH3r.js → menuInfo.vue_vue_type_style_index_0_lang-1VuzxMb0.js} +1 -1
  54. package/dist/{pda-app-BUH16bLj.js → pda-app-D5wBClj0.js} +1 -1
  55. package/dist/{resource-CCuHzoA6.js → resource-BXGSsXzw.js} +1 -1
  56. package/dist/{su-welcome-mRArONsd.js → su-welcome-DISZAkBB.js} +1 -1
  57. package/dist/sys-config-DuyYdzXL.js +290 -0
  58. package/dist/udp-core.css +2 -2
  59. package/dist/{utogether-Dm_VBQHR.js → utogether-C2KGHvut.js} +1 -1
  60. package/package.json +18 -18
  61. package/src/api/index.ts +31 -31
  62. package/src/components/udp/form.vue +2 -2
  63. package/src/components/udp/modal-form.vue +2 -1
  64. package/src/components/udp/modal-grid.vue +11 -1
  65. package/src/layout/components/lay-navbar/index.vue +239 -237
  66. package/src/layout/components/lay-search/index.vue +1 -1
  67. package/src/layout/components/lay-select-org/index.vue +64 -69
  68. package/src/layout/components/lay-sidebar/horizontal.vue +190 -191
  69. package/src/layout/components/lay-sidebar/mixNav.vue +260 -258
  70. package/src/layout/components/lay-sidebar/sidebar-logo.vue +92 -98
  71. package/src/layout/hooks/useNav.ts +173 -173
  72. package/src/main.ts +119 -119
  73. package/src/plugins/i18n/zh.ts +1 -0
  74. package/src/router/index.ts +3 -13
  75. package/src/store/modules/permission.ts +1 -4
  76. package/src/utils/propTypes.ts +42 -47
  77. package/src/utils/udp/http/index.ts +283 -281
  78. package/src/views/login/login-view.vue +300 -314
  79. package/src/views/organization/inv-org/InvOrganization.vue +68 -53
  80. package/src/views/system/sys/sys-config.vue +287 -291
  81. package/src/views/ulogin/login.vue +3 -4
  82. package/dist/InvOrganization-D90AbR3b.js +0 -66
  83. package/dist/index-DVARtten.js +0 -2623
  84. package/dist/sys-config-Cvt05yF6.js +0 -277
@@ -0,0 +1,4467 @@
1
+ var In = Object.defineProperty;
2
+ var Ln = (e, t, n) => t in e ? In(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var U = (e, t, n) => Ln(e, typeof t != "symbol" ? t + "" : t, n);
4
+ import * as Kt from "vue";
5
+ import { isRef as De, defineComponent as W, resolveComponent as Me, createBlock as Bn, openBlock as Un, withCtx as Mn, createVNode as Wt, toRaw as dt, isProxy as ft, defineAsyncComponent as jn, h as _, createApp as _n } from "vue";
6
+ import { ElConfigProvider as pt } from "element-plus";
7
+ import { checkVersion as qn } from "version-rocket";
8
+ import { useI18n as zn, createI18n as $n } from "vue-i18n";
9
+ import { NProgress as ae, cookies as Z, errorMessage as Ne, storageLocal as D, http as be, buildHierarchyTree as Ye, dbstorage as ve, isUrl as Gt, openLink as Hn, VxetableRender as Vn } from "@utogether/utils";
10
+ import { has as Pe, merge as Xe, clone as ee, debounce as Jn, findLastIndexOf as Kn, isBoolean as Wn, isEqual as mt, findIndexOf as Gn, isEmpty as Yn, isArray as Xn } from "xe-utils";
11
+ import { createPinia as Qn, defineStore as Qe } from "pinia";
12
+ import { useTimeoutFn as Zn } from "@vueuse/core";
13
+ import Yt, { VxeUI as Ze } from "vxe-table";
14
+ import er from "v-viewer";
15
+ import { Icon as ht } from "@iconify/vue";
16
+ import tr from "vue-tippy";
17
+ import nr from "element-resize-detector";
18
+ var rr = {
19
+ name: "en",
20
+ el: {
21
+ breadcrumb: {
22
+ label: "Breadcrumb"
23
+ },
24
+ colorpicker: {
25
+ confirm: "OK",
26
+ clear: "Clear",
27
+ defaultLabel: "color picker",
28
+ description: "current color is {color}. press enter to select a new color.",
29
+ alphaLabel: "pick alpha value"
30
+ },
31
+ datepicker: {
32
+ now: "Now",
33
+ today: "Today",
34
+ cancel: "Cancel",
35
+ clear: "Clear",
36
+ confirm: "OK",
37
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
38
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
39
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
40
+ selectedDate: "Selected date",
41
+ selectDate: "Select date",
42
+ selectTime: "Select time",
43
+ startDate: "Start Date",
44
+ startTime: "Start Time",
45
+ endDate: "End Date",
46
+ endTime: "End Time",
47
+ prevYear: "Previous Year",
48
+ nextYear: "Next Year",
49
+ prevMonth: "Previous Month",
50
+ nextMonth: "Next Month",
51
+ year: "",
52
+ month1: "January",
53
+ month2: "February",
54
+ month3: "March",
55
+ month4: "April",
56
+ month5: "May",
57
+ month6: "June",
58
+ month7: "July",
59
+ month8: "August",
60
+ month9: "September",
61
+ month10: "October",
62
+ month11: "November",
63
+ month12: "December",
64
+ week: "week",
65
+ weeks: {
66
+ sun: "Sun",
67
+ mon: "Mon",
68
+ tue: "Tue",
69
+ wed: "Wed",
70
+ thu: "Thu",
71
+ fri: "Fri",
72
+ sat: "Sat"
73
+ },
74
+ weeksFull: {
75
+ sun: "Sunday",
76
+ mon: "Monday",
77
+ tue: "Tuesday",
78
+ wed: "Wednesday",
79
+ thu: "Thursday",
80
+ fri: "Friday",
81
+ sat: "Saturday"
82
+ },
83
+ months: {
84
+ jan: "Jan",
85
+ feb: "Feb",
86
+ mar: "Mar",
87
+ apr: "Apr",
88
+ may: "May",
89
+ jun: "Jun",
90
+ jul: "Jul",
91
+ aug: "Aug",
92
+ sep: "Sep",
93
+ oct: "Oct",
94
+ nov: "Nov",
95
+ dec: "Dec"
96
+ }
97
+ },
98
+ inputNumber: {
99
+ decrease: "decrease number",
100
+ increase: "increase number"
101
+ },
102
+ select: {
103
+ loading: "Loading",
104
+ noMatch: "No matching data",
105
+ noData: "No data",
106
+ placeholder: "Select"
107
+ },
108
+ mention: {
109
+ loading: "Loading"
110
+ },
111
+ dropdown: {
112
+ toggleDropdown: "Toggle Dropdown"
113
+ },
114
+ cascader: {
115
+ noMatch: "No matching data",
116
+ loading: "Loading",
117
+ placeholder: "Select",
118
+ noData: "No data"
119
+ },
120
+ pagination: {
121
+ goto: "Go to",
122
+ pagesize: "/page",
123
+ total: "Total {total}",
124
+ pageClassifier: "",
125
+ page: "Page",
126
+ prev: "Go to previous page",
127
+ next: "Go to next page",
128
+ currentPage: "page {pager}",
129
+ prevPages: "Previous {pager} pages",
130
+ nextPages: "Next {pager} pages",
131
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
132
+ },
133
+ dialog: {
134
+ close: "Close this dialog"
135
+ },
136
+ drawer: {
137
+ close: "Close this dialog"
138
+ },
139
+ messagebox: {
140
+ title: "Message",
141
+ confirm: "OK",
142
+ cancel: "Cancel",
143
+ error: "Illegal input",
144
+ close: "Close this dialog"
145
+ },
146
+ upload: {
147
+ deleteTip: "press delete to remove",
148
+ delete: "Delete",
149
+ preview: "Preview",
150
+ continue: "Continue"
151
+ },
152
+ slider: {
153
+ defaultLabel: "slider between {min} and {max}",
154
+ defaultRangeStartLabel: "pick start value",
155
+ defaultRangeEndLabel: "pick end value"
156
+ },
157
+ table: {
158
+ emptyText: "No Data",
159
+ confirmFilter: "Confirm",
160
+ resetFilter: "Reset",
161
+ clearFilter: "All",
162
+ sumText: "Sum"
163
+ },
164
+ tour: {
165
+ next: "Next",
166
+ previous: "Previous",
167
+ finish: "Finish"
168
+ },
169
+ tree: {
170
+ emptyText: "No Data"
171
+ },
172
+ transfer: {
173
+ noMatch: "No matching data",
174
+ noData: "No data",
175
+ titles: ["List 1", "List 2"],
176
+ filterPlaceholder: "Enter keyword",
177
+ noCheckedFormat: "{total} items",
178
+ hasCheckedFormat: "{checked}/{total} checked"
179
+ },
180
+ image: {
181
+ error: "FAILED"
182
+ },
183
+ pageHeader: {
184
+ title: "Back"
185
+ },
186
+ popconfirm: {
187
+ confirmButtonText: "Yes",
188
+ cancelButtonText: "No"
189
+ },
190
+ carousel: {
191
+ leftArrow: "Carousel arrow left",
192
+ rightArrow: "Carousel arrow right",
193
+ indicator: "Carousel switch to index {index}"
194
+ }
195
+ }
196
+ }, or = {
197
+ name: "zh-cn",
198
+ el: {
199
+ breadcrumb: {
200
+ label: "面包屑"
201
+ },
202
+ colorpicker: {
203
+ confirm: "确定",
204
+ clear: "清空",
205
+ defaultLabel: "颜色选择器",
206
+ description: "当前颜色 {color},按 Enter 键选择新颜色",
207
+ alphaLabel: "选择透明度的值"
208
+ },
209
+ datepicker: {
210
+ now: "此刻",
211
+ today: "今天",
212
+ cancel: "取消",
213
+ clear: "清空",
214
+ confirm: "确定",
215
+ dateTablePrompt: "使用方向键与 Enter 键可选择日期",
216
+ monthTablePrompt: "使用方向键与 Enter 键可选择月份",
217
+ yearTablePrompt: "使用方向键与 Enter 键可选择年份",
218
+ selectedDate: "已选日期",
219
+ selectDate: "选择日期",
220
+ selectTime: "选择时间",
221
+ startDate: "开始日期",
222
+ startTime: "开始时间",
223
+ endDate: "结束日期",
224
+ endTime: "结束时间",
225
+ prevYear: "前一年",
226
+ nextYear: "后一年",
227
+ prevMonth: "上个月",
228
+ nextMonth: "下个月",
229
+ year: "年",
230
+ month1: "1 月",
231
+ month2: "2 月",
232
+ month3: "3 月",
233
+ month4: "4 月",
234
+ month5: "5 月",
235
+ month6: "6 月",
236
+ month7: "7 月",
237
+ month8: "8 月",
238
+ month9: "9 月",
239
+ month10: "10 月",
240
+ month11: "11 月",
241
+ month12: "12 月",
242
+ weeks: {
243
+ sun: "日",
244
+ mon: "一",
245
+ tue: "二",
246
+ wed: "三",
247
+ thu: "四",
248
+ fri: "五",
249
+ sat: "六"
250
+ },
251
+ weeksFull: {
252
+ sun: "星期日",
253
+ mon: "星期一",
254
+ tue: "星期二",
255
+ wed: "星期三",
256
+ thu: "星期四",
257
+ fri: "星期五",
258
+ sat: "星期六"
259
+ },
260
+ months: {
261
+ jan: "一月",
262
+ feb: "二月",
263
+ mar: "三月",
264
+ apr: "四月",
265
+ may: "五月",
266
+ jun: "六月",
267
+ jul: "七月",
268
+ aug: "八月",
269
+ sep: "九月",
270
+ oct: "十月",
271
+ nov: "十一月",
272
+ dec: "十二月"
273
+ }
274
+ },
275
+ inputNumber: {
276
+ decrease: "减少数值",
277
+ increase: "增加数值"
278
+ },
279
+ select: {
280
+ loading: "加载中",
281
+ noMatch: "无匹配数据",
282
+ noData: "无数据",
283
+ placeholder: "请选择"
284
+ },
285
+ dropdown: {
286
+ toggleDropdown: "切换下拉选项"
287
+ },
288
+ mention: {
289
+ loading: "加载中"
290
+ },
291
+ cascader: {
292
+ noMatch: "无匹配数据",
293
+ loading: "加载中",
294
+ placeholder: "请选择",
295
+ noData: "暂无数据"
296
+ },
297
+ pagination: {
298
+ goto: "前往",
299
+ pagesize: "条/页",
300
+ total: "共 {total} 条",
301
+ pageClassifier: "页",
302
+ page: "页",
303
+ prev: "上一页",
304
+ next: "下一页",
305
+ currentPage: "第 {pager} 页",
306
+ prevPages: "向前 {pager} 页",
307
+ nextPages: "向后 {pager} 页",
308
+ deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
309
+ },
310
+ dialog: {
311
+ close: "关闭此对话框"
312
+ },
313
+ drawer: {
314
+ close: "关闭此对话框"
315
+ },
316
+ messagebox: {
317
+ title: "提示",
318
+ confirm: "确定",
319
+ cancel: "取消",
320
+ error: "输入的数据不合法!",
321
+ close: "关闭此对话框"
322
+ },
323
+ upload: {
324
+ deleteTip: "按 Delete 键可删除",
325
+ delete: "删除",
326
+ preview: "查看图片",
327
+ continue: "继续上传"
328
+ },
329
+ slider: {
330
+ defaultLabel: "滑块介于 {min} 至 {max}",
331
+ defaultRangeStartLabel: "选择起始值",
332
+ defaultRangeEndLabel: "选择结束值"
333
+ },
334
+ table: {
335
+ emptyText: "暂无数据",
336
+ confirmFilter: "筛选",
337
+ resetFilter: "重置",
338
+ clearFilter: "全部",
339
+ sumText: "合计"
340
+ },
341
+ tour: {
342
+ next: "下一步",
343
+ previous: "上一步",
344
+ finish: "结束导览"
345
+ },
346
+ tree: {
347
+ emptyText: "暂无数据"
348
+ },
349
+ transfer: {
350
+ noMatch: "无匹配数据",
351
+ noData: "无数据",
352
+ titles: ["列表 1", "列表 2"],
353
+ filterPlaceholder: "请输入搜索内容",
354
+ noCheckedFormat: "共 {total} 项",
355
+ hasCheckedFormat: "已选 {checked}/{total} 项"
356
+ },
357
+ image: {
358
+ error: "加载失败"
359
+ },
360
+ pageHeader: {
361
+ title: "返回"
362
+ },
363
+ popconfirm: {
364
+ confirmButtonText: "确定",
365
+ cancelButtonText: "取消"
366
+ },
367
+ carousel: {
368
+ leftArrow: "上一张幻灯片",
369
+ rightArrow: "下一张幻灯片",
370
+ indicator: "幻灯片切换至索引 {index}"
371
+ }
372
+ }
373
+ };
374
+ const sr = "menu_zh", ir = "menu_en", $i = "authorized-token", Hi = "kCookies_token", ar = "kSysConfig", ur = "loginer";
375
+ function Xt(e, t) {
376
+ return function() {
377
+ return e.apply(t, arguments);
378
+ };
379
+ }
380
+ const { toString: lr } = Object.prototype, { getPrototypeOf: et } = Object, { iterator: Ee, toStringTag: Qt } = Symbol, Se = /* @__PURE__ */ ((e) => (t) => {
381
+ const n = lr.call(t);
382
+ return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
383
+ })(/* @__PURE__ */ Object.create(null)), P = (e) => (e = e.toLowerCase(), (t) => Se(t) === e), Te = (e) => (t) => typeof t === e, { isArray: G } = Array, te = Te("undefined");
384
+ function cr(e) {
385
+ return e !== null && !te(e) && e.constructor !== null && !te(e.constructor) && A(e.constructor.isBuffer) && e.constructor.isBuffer(e);
386
+ }
387
+ const Zt = P("ArrayBuffer");
388
+ function dr(e) {
389
+ let t;
390
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Zt(e.buffer), t;
391
+ }
392
+ const fr = Te("string"), A = Te("function"), en = Te("number"), Ce = (e) => e !== null && typeof e == "object", pr = (e) => e === !0 || e === !1, ue = (e) => {
393
+ if (Se(e) !== "object")
394
+ return !1;
395
+ const t = et(e);
396
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Qt in e) && !(Ee in e);
397
+ }, mr = P("Date"), hr = P("File"), gr = P("Blob"), yr = P("FileList"), wr = (e) => Ce(e) && A(e.pipe), br = (e) => {
398
+ let t;
399
+ return e && (typeof FormData == "function" && e instanceof FormData || A(e.append) && ((t = Se(e)) === "formdata" || // detect form-data instance
400
+ t === "object" && A(e.toString) && e.toString() === "[object FormData]"));
401
+ }, Er = P("URLSearchParams"), [Sr, Tr, Cr, Rr] = ["ReadableStream", "Request", "Response", "Headers"].map(P), xr = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
402
+ function re(e, t, { allOwnKeys: n = !1 } = {}) {
403
+ if (e === null || typeof e > "u")
404
+ return;
405
+ let r, o;
406
+ if (typeof e != "object" && (e = [e]), G(e))
407
+ for (r = 0, o = e.length; r < o; r++)
408
+ t.call(null, e[r], r, e);
409
+ else {
410
+ const s = n ? Object.getOwnPropertyNames(e) : Object.keys(e), i = s.length;
411
+ let a;
412
+ for (r = 0; r < i; r++)
413
+ a = s[r], t.call(null, e[a], a, e);
414
+ }
415
+ }
416
+ function tn(e, t) {
417
+ t = t.toLowerCase();
418
+ const n = Object.keys(e);
419
+ let r = n.length, o;
420
+ for (; r-- > 0; )
421
+ if (o = n[r], t === o.toLowerCase())
422
+ return o;
423
+ return null;
424
+ }
425
+ const $ = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, nn = (e) => !te(e) && e !== $;
426
+ function je() {
427
+ const { caseless: e } = nn(this) && this || {}, t = {}, n = (r, o) => {
428
+ const s = e && tn(t, o) || o;
429
+ ue(t[s]) && ue(r) ? t[s] = je(t[s], r) : ue(r) ? t[s] = je({}, r) : G(r) ? t[s] = r.slice() : t[s] = r;
430
+ };
431
+ for (let r = 0, o = arguments.length; r < o; r++)
432
+ arguments[r] && re(arguments[r], n);
433
+ return t;
434
+ }
435
+ const kr = (e, t, n, { allOwnKeys: r } = {}) => (re(t, (o, s) => {
436
+ n && A(o) ? e[s] = Xt(o, n) : e[s] = o;
437
+ }, { allOwnKeys: r }), e), Fr = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), Ar = (e, t, n, r) => {
438
+ e.prototype = Object.create(t.prototype, r), e.prototype.constructor = e, Object.defineProperty(e, "super", {
439
+ value: t.prototype
440
+ }), n && Object.assign(e.prototype, n);
441
+ }, Or = (e, t, n, r) => {
442
+ let o, s, i;
443
+ const a = {};
444
+ if (t = t || {}, e == null) return t;
445
+ do {
446
+ for (o = Object.getOwnPropertyNames(e), s = o.length; s-- > 0; )
447
+ i = o[s], (!r || r(i, e, t)) && !a[i] && (t[i] = e[i], a[i] = !0);
448
+ e = n !== !1 && et(e);
449
+ } while (e && (!n || n(e, t)) && e !== Object.prototype);
450
+ return t;
451
+ }, Dr = (e, t, n) => {
452
+ e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
453
+ const r = e.indexOf(t, n);
454
+ return r !== -1 && r === n;
455
+ }, Nr = (e) => {
456
+ if (!e) return null;
457
+ if (G(e)) return e;
458
+ let t = e.length;
459
+ if (!en(t)) return null;
460
+ const n = new Array(t);
461
+ for (; t-- > 0; )
462
+ n[t] = e[t];
463
+ return n;
464
+ }, vr = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && et(Uint8Array)), Pr = (e, t) => {
465
+ const r = (e && e[Ee]).call(e);
466
+ let o;
467
+ for (; (o = r.next()) && !o.done; ) {
468
+ const s = o.value;
469
+ t.call(e, s[0], s[1]);
470
+ }
471
+ }, Ir = (e, t) => {
472
+ let n;
473
+ const r = [];
474
+ for (; (n = e.exec(t)) !== null; )
475
+ r.push(n);
476
+ return r;
477
+ }, Lr = P("HTMLFormElement"), Br = (e) => e.toLowerCase().replace(
478
+ /[-_\s]([a-z\d])(\w*)/g,
479
+ function(n, r, o) {
480
+ return r.toUpperCase() + o;
481
+ }
482
+ ), gt = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), Ur = P("RegExp"), rn = (e, t) => {
483
+ const n = Object.getOwnPropertyDescriptors(e), r = {};
484
+ re(n, (o, s) => {
485
+ let i;
486
+ (i = t(o, s, e)) !== !1 && (r[s] = i || o);
487
+ }), Object.defineProperties(e, r);
488
+ }, Mr = (e) => {
489
+ rn(e, (t, n) => {
490
+ if (A(e) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
491
+ return !1;
492
+ const r = e[n];
493
+ if (A(r)) {
494
+ if (t.enumerable = !1, "writable" in t) {
495
+ t.writable = !1;
496
+ return;
497
+ }
498
+ t.set || (t.set = () => {
499
+ throw Error("Can not rewrite read-only method '" + n + "'");
500
+ });
501
+ }
502
+ });
503
+ }, jr = (e, t) => {
504
+ const n = {}, r = (o) => {
505
+ o.forEach((s) => {
506
+ n[s] = !0;
507
+ });
508
+ };
509
+ return G(e) ? r(e) : r(String(e).split(t)), n;
510
+ }, _r = () => {
511
+ }, qr = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
512
+ function zr(e) {
513
+ return !!(e && A(e.append) && e[Qt] === "FormData" && e[Ee]);
514
+ }
515
+ const $r = (e) => {
516
+ const t = new Array(10), n = (r, o) => {
517
+ if (Ce(r)) {
518
+ if (t.indexOf(r) >= 0)
519
+ return;
520
+ if (!("toJSON" in r)) {
521
+ t[o] = r;
522
+ const s = G(r) ? [] : {};
523
+ return re(r, (i, a) => {
524
+ const c = n(i, o + 1);
525
+ !te(c) && (s[a] = c);
526
+ }), t[o] = void 0, s;
527
+ }
528
+ }
529
+ return r;
530
+ };
531
+ return n(e, 0);
532
+ }, Hr = P("AsyncFunction"), Vr = (e) => e && (Ce(e) || A(e)) && A(e.then) && A(e.catch), on = ((e, t) => e ? setImmediate : t ? ((n, r) => ($.addEventListener("message", ({ source: o, data: s }) => {
533
+ o === $ && s === n && r.length && r.shift()();
534
+ }, !1), (o) => {
535
+ r.push(o), $.postMessage(n, "*");
536
+ }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
537
+ typeof setImmediate == "function",
538
+ A($.postMessage)
539
+ ), Jr = typeof queueMicrotask < "u" ? queueMicrotask.bind($) : typeof process < "u" && process.nextTick || on, Kr = (e) => e != null && A(e[Ee]), l = {
540
+ isArray: G,
541
+ isArrayBuffer: Zt,
542
+ isBuffer: cr,
543
+ isFormData: br,
544
+ isArrayBufferView: dr,
545
+ isString: fr,
546
+ isNumber: en,
547
+ isBoolean: pr,
548
+ isObject: Ce,
549
+ isPlainObject: ue,
550
+ isReadableStream: Sr,
551
+ isRequest: Tr,
552
+ isResponse: Cr,
553
+ isHeaders: Rr,
554
+ isUndefined: te,
555
+ isDate: mr,
556
+ isFile: hr,
557
+ isBlob: gr,
558
+ isRegExp: Ur,
559
+ isFunction: A,
560
+ isStream: wr,
561
+ isURLSearchParams: Er,
562
+ isTypedArray: vr,
563
+ isFileList: yr,
564
+ forEach: re,
565
+ merge: je,
566
+ extend: kr,
567
+ trim: xr,
568
+ stripBOM: Fr,
569
+ inherits: Ar,
570
+ toFlatObject: Or,
571
+ kindOf: Se,
572
+ kindOfTest: P,
573
+ endsWith: Dr,
574
+ toArray: Nr,
575
+ forEachEntry: Pr,
576
+ matchAll: Ir,
577
+ isHTMLForm: Lr,
578
+ hasOwnProperty: gt,
579
+ hasOwnProp: gt,
580
+ // an alias to avoid ESLint no-prototype-builtins detection
581
+ reduceDescriptors: rn,
582
+ freezeMethods: Mr,
583
+ toObjectSet: jr,
584
+ toCamelCase: Br,
585
+ noop: _r,
586
+ toFiniteNumber: qr,
587
+ findKey: tn,
588
+ global: $,
589
+ isContextDefined: nn,
590
+ isSpecCompliantForm: zr,
591
+ toJSONObject: $r,
592
+ isAsyncFn: Hr,
593
+ isThenable: Vr,
594
+ setImmediate: on,
595
+ asap: Jr,
596
+ isIterable: Kr
597
+ };
598
+ function g(e, t, n, r, o) {
599
+ Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
600
+ }
601
+ l.inherits(g, Error, {
602
+ toJSON: function() {
603
+ return {
604
+ // Standard
605
+ message: this.message,
606
+ name: this.name,
607
+ // Microsoft
608
+ description: this.description,
609
+ number: this.number,
610
+ // Mozilla
611
+ fileName: this.fileName,
612
+ lineNumber: this.lineNumber,
613
+ columnNumber: this.columnNumber,
614
+ stack: this.stack,
615
+ // Axios
616
+ config: l.toJSONObject(this.config),
617
+ code: this.code,
618
+ status: this.status
619
+ };
620
+ }
621
+ });
622
+ const sn = g.prototype, an = {};
623
+ [
624
+ "ERR_BAD_OPTION_VALUE",
625
+ "ERR_BAD_OPTION",
626
+ "ECONNABORTED",
627
+ "ETIMEDOUT",
628
+ "ERR_NETWORK",
629
+ "ERR_FR_TOO_MANY_REDIRECTS",
630
+ "ERR_DEPRECATED",
631
+ "ERR_BAD_RESPONSE",
632
+ "ERR_BAD_REQUEST",
633
+ "ERR_CANCELED",
634
+ "ERR_NOT_SUPPORT",
635
+ "ERR_INVALID_URL"
636
+ // eslint-disable-next-line func-names
637
+ ].forEach((e) => {
638
+ an[e] = { value: e };
639
+ });
640
+ Object.defineProperties(g, an);
641
+ Object.defineProperty(sn, "isAxiosError", { value: !0 });
642
+ g.from = (e, t, n, r, o, s) => {
643
+ const i = Object.create(sn);
644
+ return l.toFlatObject(e, i, function(c) {
645
+ return c !== Error.prototype;
646
+ }, (a) => a !== "isAxiosError"), g.call(i, e.message, t, n, r, o), i.cause = e, i.name = e.name, s && Object.assign(i, s), i;
647
+ };
648
+ const Wr = null;
649
+ function _e(e) {
650
+ return l.isPlainObject(e) || l.isArray(e);
651
+ }
652
+ function un(e) {
653
+ return l.endsWith(e, "[]") ? e.slice(0, -2) : e;
654
+ }
655
+ function yt(e, t, n) {
656
+ return e ? e.concat(t).map(function(o, s) {
657
+ return o = un(o), !n && s ? "[" + o + "]" : o;
658
+ }).join(n ? "." : "") : t;
659
+ }
660
+ function Gr(e) {
661
+ return l.isArray(e) && !e.some(_e);
662
+ }
663
+ const Yr = l.toFlatObject(l, {}, null, function(t) {
664
+ return /^is[A-Z]/.test(t);
665
+ });
666
+ function Re(e, t, n) {
667
+ if (!l.isObject(e))
668
+ throw new TypeError("target must be an object");
669
+ t = t || new FormData(), n = l.toFlatObject(n, {
670
+ metaTokens: !0,
671
+ dots: !1,
672
+ indexes: !1
673
+ }, !1, function(p, f) {
674
+ return !l.isUndefined(f[p]);
675
+ });
676
+ const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, c = (n.Blob || typeof Blob < "u" && Blob) && l.isSpecCompliantForm(t);
677
+ if (!l.isFunction(o))
678
+ throw new TypeError("visitor must be a function");
679
+ function u(h) {
680
+ if (h === null) return "";
681
+ if (l.isDate(h))
682
+ return h.toISOString();
683
+ if (!c && l.isBlob(h))
684
+ throw new g("Blob is not supported. Use a Buffer instead.");
685
+ return l.isArrayBuffer(h) || l.isTypedArray(h) ? c && typeof Blob == "function" ? new Blob([h]) : Buffer.from(h) : h;
686
+ }
687
+ function d(h, p, f) {
688
+ let b = h;
689
+ if (h && !f && typeof h == "object") {
690
+ if (l.endsWith(p, "{}"))
691
+ p = r ? p : p.slice(0, -2), h = JSON.stringify(h);
692
+ else if (l.isArray(h) && Gr(h) || (l.isFileList(h) || l.endsWith(p, "[]")) && (b = l.toArray(h)))
693
+ return p = un(p), b.forEach(function(E, C) {
694
+ !(l.isUndefined(E) || E === null) && t.append(
695
+ // eslint-disable-next-line no-nested-ternary
696
+ i === !0 ? yt([p], C, s) : i === null ? p : p + "[]",
697
+ u(E)
698
+ );
699
+ }), !1;
700
+ }
701
+ return _e(h) ? !0 : (t.append(yt(f, p, s), u(h)), !1);
702
+ }
703
+ const m = [], y = Object.assign(Yr, {
704
+ defaultVisitor: d,
705
+ convertValue: u,
706
+ isVisitable: _e
707
+ });
708
+ function w(h, p) {
709
+ if (!l.isUndefined(h)) {
710
+ if (m.indexOf(h) !== -1)
711
+ throw Error("Circular reference detected in " + p.join("."));
712
+ m.push(h), l.forEach(h, function(b, S) {
713
+ (!(l.isUndefined(b) || b === null) && o.call(
714
+ t,
715
+ b,
716
+ l.isString(S) ? S.trim() : S,
717
+ p,
718
+ y
719
+ )) === !0 && w(b, p ? p.concat(S) : [S]);
720
+ }), m.pop();
721
+ }
722
+ }
723
+ if (!l.isObject(e))
724
+ throw new TypeError("data must be an object");
725
+ return w(e), t;
726
+ }
727
+ function wt(e) {
728
+ const t = {
729
+ "!": "%21",
730
+ "'": "%27",
731
+ "(": "%28",
732
+ ")": "%29",
733
+ "~": "%7E",
734
+ "%20": "+",
735
+ "%00": "\0"
736
+ };
737
+ return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g, function(r) {
738
+ return t[r];
739
+ });
740
+ }
741
+ function tt(e, t) {
742
+ this._pairs = [], e && Re(e, this, t);
743
+ }
744
+ const ln = tt.prototype;
745
+ ln.append = function(t, n) {
746
+ this._pairs.push([t, n]);
747
+ };
748
+ ln.toString = function(t) {
749
+ const n = t ? function(r) {
750
+ return t.call(this, r, wt);
751
+ } : wt;
752
+ return this._pairs.map(function(o) {
753
+ return n(o[0]) + "=" + n(o[1]);
754
+ }, "").join("&");
755
+ };
756
+ function Xr(e) {
757
+ return encodeURIComponent(e).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
758
+ }
759
+ function cn(e, t, n) {
760
+ if (!t)
761
+ return e;
762
+ const r = n && n.encode || Xr;
763
+ l.isFunction(n) && (n = {
764
+ serialize: n
765
+ });
766
+ const o = n && n.serialize;
767
+ let s;
768
+ if (o ? s = o(t, n) : s = l.isURLSearchParams(t) ? t.toString() : new tt(t, n).toString(r), s) {
769
+ const i = e.indexOf("#");
770
+ i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
771
+ }
772
+ return e;
773
+ }
774
+ class bt {
775
+ constructor() {
776
+ this.handlers = [];
777
+ }
778
+ /**
779
+ * Add a new interceptor to the stack
780
+ *
781
+ * @param {Function} fulfilled The function to handle `then` for a `Promise`
782
+ * @param {Function} rejected The function to handle `reject` for a `Promise`
783
+ *
784
+ * @return {Number} An ID used to remove interceptor later
785
+ */
786
+ use(t, n, r) {
787
+ return this.handlers.push({
788
+ fulfilled: t,
789
+ rejected: n,
790
+ synchronous: r ? r.synchronous : !1,
791
+ runWhen: r ? r.runWhen : null
792
+ }), this.handlers.length - 1;
793
+ }
794
+ /**
795
+ * Remove an interceptor from the stack
796
+ *
797
+ * @param {Number} id The ID that was returned by `use`
798
+ *
799
+ * @returns {Boolean} `true` if the interceptor was removed, `false` otherwise
800
+ */
801
+ eject(t) {
802
+ this.handlers[t] && (this.handlers[t] = null);
803
+ }
804
+ /**
805
+ * Clear all interceptors from the stack
806
+ *
807
+ * @returns {void}
808
+ */
809
+ clear() {
810
+ this.handlers && (this.handlers = []);
811
+ }
812
+ /**
813
+ * Iterate over all the registered interceptors
814
+ *
815
+ * This method is particularly useful for skipping over any
816
+ * interceptors that may have become `null` calling `eject`.
817
+ *
818
+ * @param {Function} fn The function to call for each interceptor
819
+ *
820
+ * @returns {void}
821
+ */
822
+ forEach(t) {
823
+ l.forEach(this.handlers, function(r) {
824
+ r !== null && t(r);
825
+ });
826
+ }
827
+ }
828
+ const dn = {
829
+ silentJSONParsing: !0,
830
+ forcedJSONParsing: !0,
831
+ clarifyTimeoutError: !1
832
+ }, Qr = typeof URLSearchParams < "u" ? URLSearchParams : tt, Zr = typeof FormData < "u" ? FormData : null, eo = typeof Blob < "u" ? Blob : null, to = {
833
+ isBrowser: !0,
834
+ classes: {
835
+ URLSearchParams: Qr,
836
+ FormData: Zr,
837
+ Blob: eo
838
+ },
839
+ protocols: ["http", "https", "file", "blob", "url", "data"]
840
+ }, nt = typeof window < "u" && typeof document < "u", qe = typeof navigator == "object" && navigator || void 0, no = nt && (!qe || ["ReactNative", "NativeScript", "NS"].indexOf(qe.product) < 0), ro = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
841
+ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", oo = nt && window.location.href || "http://localhost", so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
842
+ __proto__: null,
843
+ hasBrowserEnv: nt,
844
+ hasStandardBrowserEnv: no,
845
+ hasStandardBrowserWebWorkerEnv: ro,
846
+ navigator: qe,
847
+ origin: oo
848
+ }, Symbol.toStringTag, { value: "Module" })), k = {
849
+ ...so,
850
+ ...to
851
+ };
852
+ function io(e, t) {
853
+ return Re(e, new k.classes.URLSearchParams(), Object.assign({
854
+ visitor: function(n, r, o, s) {
855
+ return k.isNode && l.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
856
+ }
857
+ }, t));
858
+ }
859
+ function ao(e) {
860
+ return l.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
861
+ }
862
+ function uo(e) {
863
+ const t = {}, n = Object.keys(e);
864
+ let r;
865
+ const o = n.length;
866
+ let s;
867
+ for (r = 0; r < o; r++)
868
+ s = n[r], t[s] = e[s];
869
+ return t;
870
+ }
871
+ function fn(e) {
872
+ function t(n, r, o, s) {
873
+ let i = n[s++];
874
+ if (i === "__proto__") return !0;
875
+ const a = Number.isFinite(+i), c = s >= n.length;
876
+ return i = !i && l.isArray(o) ? o.length : i, c ? (l.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !l.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && l.isArray(o[i]) && (o[i] = uo(o[i])), !a);
877
+ }
878
+ if (l.isFormData(e) && l.isFunction(e.entries)) {
879
+ const n = {};
880
+ return l.forEachEntry(e, (r, o) => {
881
+ t(ao(r), o, n, 0);
882
+ }), n;
883
+ }
884
+ return null;
885
+ }
886
+ function lo(e, t, n) {
887
+ if (l.isString(e))
888
+ try {
889
+ return (t || JSON.parse)(e), l.trim(e);
890
+ } catch (r) {
891
+ if (r.name !== "SyntaxError")
892
+ throw r;
893
+ }
894
+ return (n || JSON.stringify)(e);
895
+ }
896
+ const oe = {
897
+ transitional: dn,
898
+ adapter: ["xhr", "http", "fetch"],
899
+ transformRequest: [function(t, n) {
900
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = l.isObject(t);
901
+ if (s && l.isHTMLForm(t) && (t = new FormData(t)), l.isFormData(t))
902
+ return o ? JSON.stringify(fn(t)) : t;
903
+ if (l.isArrayBuffer(t) || l.isBuffer(t) || l.isStream(t) || l.isFile(t) || l.isBlob(t) || l.isReadableStream(t))
904
+ return t;
905
+ if (l.isArrayBufferView(t))
906
+ return t.buffer;
907
+ if (l.isURLSearchParams(t))
908
+ return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
909
+ let a;
910
+ if (s) {
911
+ if (r.indexOf("application/x-www-form-urlencoded") > -1)
912
+ return io(t, this.formSerializer).toString();
913
+ if ((a = l.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
914
+ const c = this.env && this.env.FormData;
915
+ return Re(
916
+ a ? { "files[]": t } : t,
917
+ c && new c(),
918
+ this.formSerializer
919
+ );
920
+ }
921
+ }
922
+ return s || o ? (n.setContentType("application/json", !1), lo(t)) : t;
923
+ }],
924
+ transformResponse: [function(t) {
925
+ const n = this.transitional || oe.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
926
+ if (l.isResponse(t) || l.isReadableStream(t))
927
+ return t;
928
+ if (t && l.isString(t) && (r && !this.responseType || o)) {
929
+ const i = !(n && n.silentJSONParsing) && o;
930
+ try {
931
+ return JSON.parse(t);
932
+ } catch (a) {
933
+ if (i)
934
+ throw a.name === "SyntaxError" ? g.from(a, g.ERR_BAD_RESPONSE, this, null, this.response) : a;
935
+ }
936
+ }
937
+ return t;
938
+ }],
939
+ /**
940
+ * A timeout in milliseconds to abort a request. If set to 0 (default) a
941
+ * timeout is not created.
942
+ */
943
+ timeout: 0,
944
+ xsrfCookieName: "XSRF-TOKEN",
945
+ xsrfHeaderName: "X-XSRF-TOKEN",
946
+ maxContentLength: -1,
947
+ maxBodyLength: -1,
948
+ env: {
949
+ FormData: k.classes.FormData,
950
+ Blob: k.classes.Blob
951
+ },
952
+ validateStatus: function(t) {
953
+ return t >= 200 && t < 300;
954
+ },
955
+ headers: {
956
+ common: {
957
+ Accept: "application/json, text/plain, */*",
958
+ "Content-Type": void 0
959
+ }
960
+ }
961
+ };
962
+ l.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
963
+ oe.headers[e] = {};
964
+ });
965
+ const co = l.toObjectSet([
966
+ "age",
967
+ "authorization",
968
+ "content-length",
969
+ "content-type",
970
+ "etag",
971
+ "expires",
972
+ "from",
973
+ "host",
974
+ "if-modified-since",
975
+ "if-unmodified-since",
976
+ "last-modified",
977
+ "location",
978
+ "max-forwards",
979
+ "proxy-authorization",
980
+ "referer",
981
+ "retry-after",
982
+ "user-agent"
983
+ ]), fo = (e) => {
984
+ const t = {};
985
+ let n, r, o;
986
+ return e && e.split(`
987
+ `).forEach(function(i) {
988
+ o = i.indexOf(":"), n = i.substring(0, o).trim().toLowerCase(), r = i.substring(o + 1).trim(), !(!n || t[n] && co[n]) && (n === "set-cookie" ? t[n] ? t[n].push(r) : t[n] = [r] : t[n] = t[n] ? t[n] + ", " + r : r);
989
+ }), t;
990
+ }, Et = Symbol("internals");
991
+ function X(e) {
992
+ return e && String(e).trim().toLowerCase();
993
+ }
994
+ function le(e) {
995
+ return e === !1 || e == null ? e : l.isArray(e) ? e.map(le) : String(e);
996
+ }
997
+ function po(e) {
998
+ const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
999
+ let r;
1000
+ for (; r = n.exec(e); )
1001
+ t[r[1]] = r[2];
1002
+ return t;
1003
+ }
1004
+ const mo = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1005
+ function Ie(e, t, n, r, o) {
1006
+ if (l.isFunction(r))
1007
+ return r.call(this, t, n);
1008
+ if (o && (t = n), !!l.isString(t)) {
1009
+ if (l.isString(r))
1010
+ return t.indexOf(r) !== -1;
1011
+ if (l.isRegExp(r))
1012
+ return r.test(t);
1013
+ }
1014
+ }
1015
+ function ho(e) {
1016
+ return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1017
+ }
1018
+ function go(e, t) {
1019
+ const n = l.toCamelCase(" " + t);
1020
+ ["get", "set", "has"].forEach((r) => {
1021
+ Object.defineProperty(e, r + n, {
1022
+ value: function(o, s, i) {
1023
+ return this[r].call(this, t, o, s, i);
1024
+ },
1025
+ configurable: !0
1026
+ });
1027
+ });
1028
+ }
1029
+ let O = class {
1030
+ constructor(t) {
1031
+ t && this.set(t);
1032
+ }
1033
+ set(t, n, r) {
1034
+ const o = this;
1035
+ function s(a, c, u) {
1036
+ const d = X(c);
1037
+ if (!d)
1038
+ throw new Error("header name must be a non-empty string");
1039
+ const m = l.findKey(o, d);
1040
+ (!m || o[m] === void 0 || u === !0 || u === void 0 && o[m] !== !1) && (o[m || c] = le(a));
1041
+ }
1042
+ const i = (a, c) => l.forEach(a, (u, d) => s(u, d, c));
1043
+ if (l.isPlainObject(t) || t instanceof this.constructor)
1044
+ i(t, n);
1045
+ else if (l.isString(t) && (t = t.trim()) && !mo(t))
1046
+ i(fo(t), n);
1047
+ else if (l.isObject(t) && l.isIterable(t)) {
1048
+ let a = {}, c, u;
1049
+ for (const d of t) {
1050
+ if (!l.isArray(d))
1051
+ throw TypeError("Object iterator must return a key-value pair");
1052
+ a[u = d[0]] = (c = a[u]) ? l.isArray(c) ? [...c, d[1]] : [c, d[1]] : d[1];
1053
+ }
1054
+ i(a, n);
1055
+ } else
1056
+ t != null && s(n, t, r);
1057
+ return this;
1058
+ }
1059
+ get(t, n) {
1060
+ if (t = X(t), t) {
1061
+ const r = l.findKey(this, t);
1062
+ if (r) {
1063
+ const o = this[r];
1064
+ if (!n)
1065
+ return o;
1066
+ if (n === !0)
1067
+ return po(o);
1068
+ if (l.isFunction(n))
1069
+ return n.call(this, o, r);
1070
+ if (l.isRegExp(n))
1071
+ return n.exec(o);
1072
+ throw new TypeError("parser must be boolean|regexp|function");
1073
+ }
1074
+ }
1075
+ }
1076
+ has(t, n) {
1077
+ if (t = X(t), t) {
1078
+ const r = l.findKey(this, t);
1079
+ return !!(r && this[r] !== void 0 && (!n || Ie(this, this[r], r, n)));
1080
+ }
1081
+ return !1;
1082
+ }
1083
+ delete(t, n) {
1084
+ const r = this;
1085
+ let o = !1;
1086
+ function s(i) {
1087
+ if (i = X(i), i) {
1088
+ const a = l.findKey(r, i);
1089
+ a && (!n || Ie(r, r[a], a, n)) && (delete r[a], o = !0);
1090
+ }
1091
+ }
1092
+ return l.isArray(t) ? t.forEach(s) : s(t), o;
1093
+ }
1094
+ clear(t) {
1095
+ const n = Object.keys(this);
1096
+ let r = n.length, o = !1;
1097
+ for (; r--; ) {
1098
+ const s = n[r];
1099
+ (!t || Ie(this, this[s], s, t, !0)) && (delete this[s], o = !0);
1100
+ }
1101
+ return o;
1102
+ }
1103
+ normalize(t) {
1104
+ const n = this, r = {};
1105
+ return l.forEach(this, (o, s) => {
1106
+ const i = l.findKey(r, s);
1107
+ if (i) {
1108
+ n[i] = le(o), delete n[s];
1109
+ return;
1110
+ }
1111
+ const a = t ? ho(s) : String(s).trim();
1112
+ a !== s && delete n[s], n[a] = le(o), r[a] = !0;
1113
+ }), this;
1114
+ }
1115
+ concat(...t) {
1116
+ return this.constructor.concat(this, ...t);
1117
+ }
1118
+ toJSON(t) {
1119
+ const n = /* @__PURE__ */ Object.create(null);
1120
+ return l.forEach(this, (r, o) => {
1121
+ r != null && r !== !1 && (n[o] = t && l.isArray(r) ? r.join(", ") : r);
1122
+ }), n;
1123
+ }
1124
+ [Symbol.iterator]() {
1125
+ return Object.entries(this.toJSON())[Symbol.iterator]();
1126
+ }
1127
+ toString() {
1128
+ return Object.entries(this.toJSON()).map(([t, n]) => t + ": " + n).join(`
1129
+ `);
1130
+ }
1131
+ getSetCookie() {
1132
+ return this.get("set-cookie") || [];
1133
+ }
1134
+ get [Symbol.toStringTag]() {
1135
+ return "AxiosHeaders";
1136
+ }
1137
+ static from(t) {
1138
+ return t instanceof this ? t : new this(t);
1139
+ }
1140
+ static concat(t, ...n) {
1141
+ const r = new this(t);
1142
+ return n.forEach((o) => r.set(o)), r;
1143
+ }
1144
+ static accessor(t) {
1145
+ const r = (this[Et] = this[Et] = {
1146
+ accessors: {}
1147
+ }).accessors, o = this.prototype;
1148
+ function s(i) {
1149
+ const a = X(i);
1150
+ r[a] || (go(o, i), r[a] = !0);
1151
+ }
1152
+ return l.isArray(t) ? t.forEach(s) : s(t), this;
1153
+ }
1154
+ };
1155
+ O.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1156
+ l.reduceDescriptors(O.prototype, ({ value: e }, t) => {
1157
+ let n = t[0].toUpperCase() + t.slice(1);
1158
+ return {
1159
+ get: () => e,
1160
+ set(r) {
1161
+ this[n] = r;
1162
+ }
1163
+ };
1164
+ });
1165
+ l.freezeMethods(O);
1166
+ function Le(e, t) {
1167
+ const n = this || oe, r = t || n, o = O.from(r.headers);
1168
+ let s = r.data;
1169
+ return l.forEach(e, function(a) {
1170
+ s = a.call(n, s, o.normalize(), t ? t.status : void 0);
1171
+ }), o.normalize(), s;
1172
+ }
1173
+ function pn(e) {
1174
+ return !!(e && e.__CANCEL__);
1175
+ }
1176
+ function Y(e, t, n) {
1177
+ g.call(this, e ?? "canceled", g.ERR_CANCELED, t, n), this.name = "CanceledError";
1178
+ }
1179
+ l.inherits(Y, g, {
1180
+ __CANCEL__: !0
1181
+ });
1182
+ function mn(e, t, n) {
1183
+ const r = n.config.validateStatus;
1184
+ !n.status || !r || r(n.status) ? e(n) : t(new g(
1185
+ "Request failed with status code " + n.status,
1186
+ [g.ERR_BAD_REQUEST, g.ERR_BAD_RESPONSE][Math.floor(n.status / 100) - 4],
1187
+ n.config,
1188
+ n.request,
1189
+ n
1190
+ ));
1191
+ }
1192
+ function yo(e) {
1193
+ const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
1194
+ return t && t[1] || "";
1195
+ }
1196
+ function wo(e, t) {
1197
+ e = e || 10;
1198
+ const n = new Array(e), r = new Array(e);
1199
+ let o = 0, s = 0, i;
1200
+ return t = t !== void 0 ? t : 1e3, function(c) {
1201
+ const u = Date.now(), d = r[s];
1202
+ i || (i = u), n[o] = c, r[o] = u;
1203
+ let m = s, y = 0;
1204
+ for (; m !== o; )
1205
+ y += n[m++], m = m % e;
1206
+ if (o = (o + 1) % e, o === s && (s = (s + 1) % e), u - i < t)
1207
+ return;
1208
+ const w = d && u - d;
1209
+ return w ? Math.round(y * 1e3 / w) : void 0;
1210
+ };
1211
+ }
1212
+ function bo(e, t) {
1213
+ let n = 0, r = 1e3 / t, o, s;
1214
+ const i = (u, d = Date.now()) => {
1215
+ n = d, o = null, s && (clearTimeout(s), s = null), e.apply(null, u);
1216
+ };
1217
+ return [(...u) => {
1218
+ const d = Date.now(), m = d - n;
1219
+ m >= r ? i(u, d) : (o = u, s || (s = setTimeout(() => {
1220
+ s = null, i(o);
1221
+ }, r - m)));
1222
+ }, () => o && i(o)];
1223
+ }
1224
+ const he = (e, t, n = 3) => {
1225
+ let r = 0;
1226
+ const o = wo(50, 250);
1227
+ return bo((s) => {
1228
+ const i = s.loaded, a = s.lengthComputable ? s.total : void 0, c = i - r, u = o(c), d = i <= a;
1229
+ r = i;
1230
+ const m = {
1231
+ loaded: i,
1232
+ total: a,
1233
+ progress: a ? i / a : void 0,
1234
+ bytes: c,
1235
+ rate: u || void 0,
1236
+ estimated: u && a && d ? (a - i) / u : void 0,
1237
+ event: s,
1238
+ lengthComputable: a != null,
1239
+ [t ? "download" : "upload"]: !0
1240
+ };
1241
+ e(m);
1242
+ }, n);
1243
+ }, St = (e, t) => {
1244
+ const n = e != null;
1245
+ return [(r) => t[0]({
1246
+ lengthComputable: n,
1247
+ total: e,
1248
+ loaded: r
1249
+ }), t[1]];
1250
+ }, Tt = (e) => (...t) => l.asap(() => e(...t)), Eo = k.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, k.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1251
+ new URL(k.origin),
1252
+ k.navigator && /(msie|trident)/i.test(k.navigator.userAgent)
1253
+ ) : () => !0, So = k.hasStandardBrowserEnv ? (
1254
+ // Standard browser envs support document.cookie
1255
+ {
1256
+ write(e, t, n, r, o, s) {
1257
+ const i = [e + "=" + encodeURIComponent(t)];
1258
+ l.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), l.isString(r) && i.push("path=" + r), l.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
1259
+ },
1260
+ read(e) {
1261
+ const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
1262
+ return t ? decodeURIComponent(t[3]) : null;
1263
+ },
1264
+ remove(e) {
1265
+ this.write(e, "", Date.now() - 864e5);
1266
+ }
1267
+ }
1268
+ ) : (
1269
+ // Non-standard browser env (web workers, react-native) lack needed support.
1270
+ {
1271
+ write() {
1272
+ },
1273
+ read() {
1274
+ return null;
1275
+ },
1276
+ remove() {
1277
+ }
1278
+ }
1279
+ );
1280
+ function To(e) {
1281
+ return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(e);
1282
+ }
1283
+ function Co(e, t) {
1284
+ return t ? e.replace(/\/?\/$/, "") + "/" + t.replace(/^\/+/, "") : e;
1285
+ }
1286
+ function hn(e, t, n) {
1287
+ let r = !To(t);
1288
+ return e && (r || n == !1) ? Co(e, t) : t;
1289
+ }
1290
+ const Ct = (e) => e instanceof O ? { ...e } : e;
1291
+ function V(e, t) {
1292
+ t = t || {};
1293
+ const n = {};
1294
+ function r(u, d, m, y) {
1295
+ return l.isPlainObject(u) && l.isPlainObject(d) ? l.merge.call({ caseless: y }, u, d) : l.isPlainObject(d) ? l.merge({}, d) : l.isArray(d) ? d.slice() : d;
1296
+ }
1297
+ function o(u, d, m, y) {
1298
+ if (l.isUndefined(d)) {
1299
+ if (!l.isUndefined(u))
1300
+ return r(void 0, u, m, y);
1301
+ } else return r(u, d, m, y);
1302
+ }
1303
+ function s(u, d) {
1304
+ if (!l.isUndefined(d))
1305
+ return r(void 0, d);
1306
+ }
1307
+ function i(u, d) {
1308
+ if (l.isUndefined(d)) {
1309
+ if (!l.isUndefined(u))
1310
+ return r(void 0, u);
1311
+ } else return r(void 0, d);
1312
+ }
1313
+ function a(u, d, m) {
1314
+ if (m in t)
1315
+ return r(u, d);
1316
+ if (m in e)
1317
+ return r(void 0, u);
1318
+ }
1319
+ const c = {
1320
+ url: s,
1321
+ method: s,
1322
+ data: s,
1323
+ baseURL: i,
1324
+ transformRequest: i,
1325
+ transformResponse: i,
1326
+ paramsSerializer: i,
1327
+ timeout: i,
1328
+ timeoutMessage: i,
1329
+ withCredentials: i,
1330
+ withXSRFToken: i,
1331
+ adapter: i,
1332
+ responseType: i,
1333
+ xsrfCookieName: i,
1334
+ xsrfHeaderName: i,
1335
+ onUploadProgress: i,
1336
+ onDownloadProgress: i,
1337
+ decompress: i,
1338
+ maxContentLength: i,
1339
+ maxBodyLength: i,
1340
+ beforeRedirect: i,
1341
+ transport: i,
1342
+ httpAgent: i,
1343
+ httpsAgent: i,
1344
+ cancelToken: i,
1345
+ socketPath: i,
1346
+ responseEncoding: i,
1347
+ validateStatus: a,
1348
+ headers: (u, d, m) => o(Ct(u), Ct(d), m, !0)
1349
+ };
1350
+ return l.forEach(Object.keys(Object.assign({}, e, t)), function(d) {
1351
+ const m = c[d] || o, y = m(e[d], t[d], d);
1352
+ l.isUndefined(y) && m !== a || (n[d] = y);
1353
+ }), n;
1354
+ }
1355
+ const gn = (e) => {
1356
+ const t = V({}, e);
1357
+ let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
1358
+ t.headers = i = O.from(i), t.url = cn(hn(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1359
+ "Authorization",
1360
+ "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1361
+ );
1362
+ let c;
1363
+ if (l.isFormData(n)) {
1364
+ if (k.hasStandardBrowserEnv || k.hasStandardBrowserWebWorkerEnv)
1365
+ i.setContentType(void 0);
1366
+ else if ((c = i.getContentType()) !== !1) {
1367
+ const [u, ...d] = c ? c.split(";").map((m) => m.trim()).filter(Boolean) : [];
1368
+ i.setContentType([u || "multipart/form-data", ...d].join("; "));
1369
+ }
1370
+ }
1371
+ if (k.hasStandardBrowserEnv && (r && l.isFunction(r) && (r = r(t)), r || r !== !1 && Eo(t.url))) {
1372
+ const u = o && s && So.read(s);
1373
+ u && i.set(o, u);
1374
+ }
1375
+ return t;
1376
+ }, Ro = typeof XMLHttpRequest < "u", xo = Ro && function(e) {
1377
+ return new Promise(function(n, r) {
1378
+ const o = gn(e);
1379
+ let s = o.data;
1380
+ const i = O.from(o.headers).normalize();
1381
+ let { responseType: a, onUploadProgress: c, onDownloadProgress: u } = o, d, m, y, w, h;
1382
+ function p() {
1383
+ w && w(), h && h(), o.cancelToken && o.cancelToken.unsubscribe(d), o.signal && o.signal.removeEventListener("abort", d);
1384
+ }
1385
+ let f = new XMLHttpRequest();
1386
+ f.open(o.method.toUpperCase(), o.url, !0), f.timeout = o.timeout;
1387
+ function b() {
1388
+ if (!f)
1389
+ return;
1390
+ const E = O.from(
1391
+ "getAllResponseHeaders" in f && f.getAllResponseHeaders()
1392
+ ), F = {
1393
+ data: !a || a === "text" || a === "json" ? f.responseText : f.response,
1394
+ status: f.status,
1395
+ statusText: f.statusText,
1396
+ headers: E,
1397
+ config: e,
1398
+ request: f
1399
+ };
1400
+ mn(function(z) {
1401
+ n(z), p();
1402
+ }, function(z) {
1403
+ r(z), p();
1404
+ }, F), f = null;
1405
+ }
1406
+ "onloadend" in f ? f.onloadend = b : f.onreadystatechange = function() {
1407
+ !f || f.readyState !== 4 || f.status === 0 && !(f.responseURL && f.responseURL.indexOf("file:") === 0) || setTimeout(b);
1408
+ }, f.onabort = function() {
1409
+ f && (r(new g("Request aborted", g.ECONNABORTED, e, f)), f = null);
1410
+ }, f.onerror = function() {
1411
+ r(new g("Network Error", g.ERR_NETWORK, e, f)), f = null;
1412
+ }, f.ontimeout = function() {
1413
+ let C = o.timeout ? "timeout of " + o.timeout + "ms exceeded" : "timeout exceeded";
1414
+ const F = o.transitional || dn;
1415
+ o.timeoutErrorMessage && (C = o.timeoutErrorMessage), r(new g(
1416
+ C,
1417
+ F.clarifyTimeoutError ? g.ETIMEDOUT : g.ECONNABORTED,
1418
+ e,
1419
+ f
1420
+ )), f = null;
1421
+ }, s === void 0 && i.setContentType(null), "setRequestHeader" in f && l.forEach(i.toJSON(), function(C, F) {
1422
+ f.setRequestHeader(F, C);
1423
+ }), l.isUndefined(o.withCredentials) || (f.withCredentials = !!o.withCredentials), a && a !== "json" && (f.responseType = o.responseType), u && ([y, h] = he(u, !0), f.addEventListener("progress", y)), c && f.upload && ([m, w] = he(c), f.upload.addEventListener("progress", m), f.upload.addEventListener("loadend", w)), (o.cancelToken || o.signal) && (d = (E) => {
1424
+ f && (r(!E || E.type ? new Y(null, e, f) : E), f.abort(), f = null);
1425
+ }, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
1426
+ const S = yo(o.url);
1427
+ if (S && k.protocols.indexOf(S) === -1) {
1428
+ r(new g("Unsupported protocol " + S + ":", g.ERR_BAD_REQUEST, e));
1429
+ return;
1430
+ }
1431
+ f.send(s || null);
1432
+ });
1433
+ }, ko = (e, t) => {
1434
+ const { length: n } = e = e ? e.filter(Boolean) : [];
1435
+ if (t || n) {
1436
+ let r = new AbortController(), o;
1437
+ const s = function(u) {
1438
+ if (!o) {
1439
+ o = !0, a();
1440
+ const d = u instanceof Error ? u : this.reason;
1441
+ r.abort(d instanceof g ? d : new Y(d instanceof Error ? d.message : d));
1442
+ }
1443
+ };
1444
+ let i = t && setTimeout(() => {
1445
+ i = null, s(new g(`timeout ${t} of ms exceeded`, g.ETIMEDOUT));
1446
+ }, t);
1447
+ const a = () => {
1448
+ e && (i && clearTimeout(i), i = null, e.forEach((u) => {
1449
+ u.unsubscribe ? u.unsubscribe(s) : u.removeEventListener("abort", s);
1450
+ }), e = null);
1451
+ };
1452
+ e.forEach((u) => u.addEventListener("abort", s));
1453
+ const { signal: c } = r;
1454
+ return c.unsubscribe = () => l.asap(a), c;
1455
+ }
1456
+ }, Fo = function* (e, t) {
1457
+ let n = e.byteLength;
1458
+ if (n < t) {
1459
+ yield e;
1460
+ return;
1461
+ }
1462
+ let r = 0, o;
1463
+ for (; r < n; )
1464
+ o = r + t, yield e.slice(r, o), r = o;
1465
+ }, Ao = async function* (e, t) {
1466
+ for await (const n of Oo(e))
1467
+ yield* Fo(n, t);
1468
+ }, Oo = async function* (e) {
1469
+ if (e[Symbol.asyncIterator]) {
1470
+ yield* e;
1471
+ return;
1472
+ }
1473
+ const t = e.getReader();
1474
+ try {
1475
+ for (; ; ) {
1476
+ const { done: n, value: r } = await t.read();
1477
+ if (n)
1478
+ break;
1479
+ yield r;
1480
+ }
1481
+ } finally {
1482
+ await t.cancel();
1483
+ }
1484
+ }, Rt = (e, t, n, r) => {
1485
+ const o = Ao(e, t);
1486
+ let s = 0, i, a = (c) => {
1487
+ i || (i = !0, r && r(c));
1488
+ };
1489
+ return new ReadableStream({
1490
+ async pull(c) {
1491
+ try {
1492
+ const { done: u, value: d } = await o.next();
1493
+ if (u) {
1494
+ a(), c.close();
1495
+ return;
1496
+ }
1497
+ let m = d.byteLength;
1498
+ if (n) {
1499
+ let y = s += m;
1500
+ n(y);
1501
+ }
1502
+ c.enqueue(new Uint8Array(d));
1503
+ } catch (u) {
1504
+ throw a(u), u;
1505
+ }
1506
+ },
1507
+ cancel(c) {
1508
+ return a(c), o.return();
1509
+ }
1510
+ }, {
1511
+ highWaterMark: 2
1512
+ });
1513
+ }, xe = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", yn = xe && typeof ReadableStream == "function", Do = xe && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((e) => (t) => e.encode(t))(new TextEncoder()) : async (e) => new Uint8Array(await new Response(e).arrayBuffer())), wn = (e, ...t) => {
1514
+ try {
1515
+ return !!e(...t);
1516
+ } catch {
1517
+ return !1;
1518
+ }
1519
+ }, No = yn && wn(() => {
1520
+ let e = !1;
1521
+ const t = new Request(k.origin, {
1522
+ body: new ReadableStream(),
1523
+ method: "POST",
1524
+ get duplex() {
1525
+ return e = !0, "half";
1526
+ }
1527
+ }).headers.has("Content-Type");
1528
+ return e && !t;
1529
+ }), xt = 64 * 1024, ze = yn && wn(() => l.isReadableStream(new Response("").body)), ge = {
1530
+ stream: ze && ((e) => e.body)
1531
+ };
1532
+ xe && ((e) => {
1533
+ ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((t) => {
1534
+ !ge[t] && (ge[t] = l.isFunction(e[t]) ? (n) => n[t]() : (n, r) => {
1535
+ throw new g(`Response type '${t}' is not supported`, g.ERR_NOT_SUPPORT, r);
1536
+ });
1537
+ });
1538
+ })(new Response());
1539
+ const vo = async (e) => {
1540
+ if (e == null)
1541
+ return 0;
1542
+ if (l.isBlob(e))
1543
+ return e.size;
1544
+ if (l.isSpecCompliantForm(e))
1545
+ return (await new Request(k.origin, {
1546
+ method: "POST",
1547
+ body: e
1548
+ }).arrayBuffer()).byteLength;
1549
+ if (l.isArrayBufferView(e) || l.isArrayBuffer(e))
1550
+ return e.byteLength;
1551
+ if (l.isURLSearchParams(e) && (e = e + ""), l.isString(e))
1552
+ return (await Do(e)).byteLength;
1553
+ }, Po = async (e, t) => {
1554
+ const n = l.toFiniteNumber(e.getContentLength());
1555
+ return n ?? vo(t);
1556
+ }, Io = xe && (async (e) => {
1557
+ let {
1558
+ url: t,
1559
+ method: n,
1560
+ data: r,
1561
+ signal: o,
1562
+ cancelToken: s,
1563
+ timeout: i,
1564
+ onDownloadProgress: a,
1565
+ onUploadProgress: c,
1566
+ responseType: u,
1567
+ headers: d,
1568
+ withCredentials: m = "same-origin",
1569
+ fetchOptions: y
1570
+ } = gn(e);
1571
+ u = u ? (u + "").toLowerCase() : "text";
1572
+ let w = ko([o, s && s.toAbortSignal()], i), h;
1573
+ const p = w && w.unsubscribe && (() => {
1574
+ w.unsubscribe();
1575
+ });
1576
+ let f;
1577
+ try {
1578
+ if (c && No && n !== "get" && n !== "head" && (f = await Po(d, r)) !== 0) {
1579
+ let F = new Request(t, {
1580
+ method: "POST",
1581
+ body: r,
1582
+ duplex: "half"
1583
+ }), B;
1584
+ if (l.isFormData(r) && (B = F.headers.get("content-type")) && d.setContentType(B), F.body) {
1585
+ const [z, ie] = St(
1586
+ f,
1587
+ he(Tt(c))
1588
+ );
1589
+ r = Rt(F.body, xt, z, ie);
1590
+ }
1591
+ }
1592
+ l.isString(m) || (m = m ? "include" : "omit");
1593
+ const b = "credentials" in Request.prototype;
1594
+ h = new Request(t, {
1595
+ ...y,
1596
+ signal: w,
1597
+ method: n.toUpperCase(),
1598
+ headers: d.normalize().toJSON(),
1599
+ body: r,
1600
+ duplex: "half",
1601
+ credentials: b ? m : void 0
1602
+ });
1603
+ let S = await fetch(h);
1604
+ const E = ze && (u === "stream" || u === "response");
1605
+ if (ze && (a || E && p)) {
1606
+ const F = {};
1607
+ ["status", "statusText", "headers"].forEach((ct) => {
1608
+ F[ct] = S[ct];
1609
+ });
1610
+ const B = l.toFiniteNumber(S.headers.get("content-length")), [z, ie] = a && St(
1611
+ B,
1612
+ he(Tt(a), !0)
1613
+ ) || [];
1614
+ S = new Response(
1615
+ Rt(S.body, xt, z, () => {
1616
+ ie && ie(), p && p();
1617
+ }),
1618
+ F
1619
+ );
1620
+ }
1621
+ u = u || "text";
1622
+ let C = await ge[l.findKey(ge, u) || "text"](S, e);
1623
+ return !E && p && p(), await new Promise((F, B) => {
1624
+ mn(F, B, {
1625
+ data: C,
1626
+ headers: O.from(S.headers),
1627
+ status: S.status,
1628
+ statusText: S.statusText,
1629
+ config: e,
1630
+ request: h
1631
+ });
1632
+ });
1633
+ } catch (b) {
1634
+ throw p && p(), b && b.name === "TypeError" && /Load failed|fetch/i.test(b.message) ? Object.assign(
1635
+ new g("Network Error", g.ERR_NETWORK, e, h),
1636
+ {
1637
+ cause: b.cause || b
1638
+ }
1639
+ ) : g.from(b, b && b.code, e, h);
1640
+ }
1641
+ }), $e = {
1642
+ http: Wr,
1643
+ xhr: xo,
1644
+ fetch: Io
1645
+ };
1646
+ l.forEach($e, (e, t) => {
1647
+ if (e) {
1648
+ try {
1649
+ Object.defineProperty(e, "name", { value: t });
1650
+ } catch {
1651
+ }
1652
+ Object.defineProperty(e, "adapterName", { value: t });
1653
+ }
1654
+ });
1655
+ const kt = (e) => `- ${e}`, Lo = (e) => l.isFunction(e) || e === null || e === !1, bn = {
1656
+ getAdapter: (e) => {
1657
+ e = l.isArray(e) ? e : [e];
1658
+ const { length: t } = e;
1659
+ let n, r;
1660
+ const o = {};
1661
+ for (let s = 0; s < t; s++) {
1662
+ n = e[s];
1663
+ let i;
1664
+ if (r = n, !Lo(n) && (r = $e[(i = String(n)).toLowerCase()], r === void 0))
1665
+ throw new g(`Unknown adapter '${i}'`);
1666
+ if (r)
1667
+ break;
1668
+ o[i || "#" + s] = r;
1669
+ }
1670
+ if (!r) {
1671
+ const s = Object.entries(o).map(
1672
+ ([a, c]) => `adapter ${a} ` + (c === !1 ? "is not supported by the environment" : "is not available in the build")
1673
+ );
1674
+ let i = t ? s.length > 1 ? `since :
1675
+ ` + s.map(kt).join(`
1676
+ `) : " " + kt(s[0]) : "as no adapter specified";
1677
+ throw new g(
1678
+ "There is no suitable adapter to dispatch the request " + i,
1679
+ "ERR_NOT_SUPPORT"
1680
+ );
1681
+ }
1682
+ return r;
1683
+ },
1684
+ adapters: $e
1685
+ };
1686
+ function Be(e) {
1687
+ if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
1688
+ throw new Y(null, e);
1689
+ }
1690
+ function Ft(e) {
1691
+ return Be(e), e.headers = O.from(e.headers), e.data = Le.call(
1692
+ e,
1693
+ e.transformRequest
1694
+ ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), bn.getAdapter(e.adapter || oe.adapter)(e).then(function(r) {
1695
+ return Be(e), r.data = Le.call(
1696
+ e,
1697
+ e.transformResponse,
1698
+ r
1699
+ ), r.headers = O.from(r.headers), r;
1700
+ }, function(r) {
1701
+ return pn(r) || (Be(e), r && r.response && (r.response.data = Le.call(
1702
+ e,
1703
+ e.transformResponse,
1704
+ r.response
1705
+ ), r.response.headers = O.from(r.response.headers))), Promise.reject(r);
1706
+ });
1707
+ }
1708
+ const En = "1.9.0", ke = {};
1709
+ ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
1710
+ ke[e] = function(r) {
1711
+ return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
1712
+ };
1713
+ });
1714
+ const At = {};
1715
+ ke.transitional = function(t, n, r) {
1716
+ function o(s, i) {
1717
+ return "[Axios v" + En + "] Transitional option '" + s + "'" + i + (r ? ". " + r : "");
1718
+ }
1719
+ return (s, i, a) => {
1720
+ if (t === !1)
1721
+ throw new g(
1722
+ o(i, " has been removed" + (n ? " in " + n : "")),
1723
+ g.ERR_DEPRECATED
1724
+ );
1725
+ return n && !At[i] && (At[i] = !0, console.warn(
1726
+ o(
1727
+ i,
1728
+ " has been deprecated since v" + n + " and will be removed in the near future"
1729
+ )
1730
+ )), t ? t(s, i, a) : !0;
1731
+ };
1732
+ };
1733
+ ke.spelling = function(t) {
1734
+ return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
1735
+ };
1736
+ function Bo(e, t, n) {
1737
+ if (typeof e != "object")
1738
+ throw new g("options must be an object", g.ERR_BAD_OPTION_VALUE);
1739
+ const r = Object.keys(e);
1740
+ let o = r.length;
1741
+ for (; o-- > 0; ) {
1742
+ const s = r[o], i = t[s];
1743
+ if (i) {
1744
+ const a = e[s], c = a === void 0 || i(a, s, e);
1745
+ if (c !== !0)
1746
+ throw new g("option " + s + " must be " + c, g.ERR_BAD_OPTION_VALUE);
1747
+ continue;
1748
+ }
1749
+ if (n !== !0)
1750
+ throw new g("Unknown option " + s, g.ERR_BAD_OPTION);
1751
+ }
1752
+ }
1753
+ const ce = {
1754
+ assertOptions: Bo,
1755
+ validators: ke
1756
+ }, I = ce.validators;
1757
+ let H = class {
1758
+ constructor(t) {
1759
+ this.defaults = t || {}, this.interceptors = {
1760
+ request: new bt(),
1761
+ response: new bt()
1762
+ };
1763
+ }
1764
+ /**
1765
+ * Dispatch a request
1766
+ *
1767
+ * @param {String|Object} configOrUrl The config specific for this request (merged with this.defaults)
1768
+ * @param {?Object} config
1769
+ *
1770
+ * @returns {Promise} The Promise to be fulfilled
1771
+ */
1772
+ async request(t, n) {
1773
+ try {
1774
+ return await this._request(t, n);
1775
+ } catch (r) {
1776
+ if (r instanceof Error) {
1777
+ let o = {};
1778
+ Error.captureStackTrace ? Error.captureStackTrace(o) : o = new Error();
1779
+ const s = o.stack ? o.stack.replace(/^.+\n/, "") : "";
1780
+ try {
1781
+ r.stack ? s && !String(r.stack).endsWith(s.replace(/^.+\n.+\n/, "")) && (r.stack += `
1782
+ ` + s) : r.stack = s;
1783
+ } catch {
1784
+ }
1785
+ }
1786
+ throw r;
1787
+ }
1788
+ }
1789
+ _request(t, n) {
1790
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = V(this.defaults, n);
1791
+ const { transitional: r, paramsSerializer: o, headers: s } = n;
1792
+ r !== void 0 && ce.assertOptions(r, {
1793
+ silentJSONParsing: I.transitional(I.boolean),
1794
+ forcedJSONParsing: I.transitional(I.boolean),
1795
+ clarifyTimeoutError: I.transitional(I.boolean)
1796
+ }, !1), o != null && (l.isFunction(o) ? n.paramsSerializer = {
1797
+ serialize: o
1798
+ } : ce.assertOptions(o, {
1799
+ encode: I.function,
1800
+ serialize: I.function
1801
+ }, !0)), n.allowAbsoluteUrls !== void 0 || (this.defaults.allowAbsoluteUrls !== void 0 ? n.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls : n.allowAbsoluteUrls = !0), ce.assertOptions(n, {
1802
+ baseUrl: I.spelling("baseURL"),
1803
+ withXsrfToken: I.spelling("withXSRFToken")
1804
+ }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
1805
+ let i = s && l.merge(
1806
+ s.common,
1807
+ s[n.method]
1808
+ );
1809
+ s && l.forEach(
1810
+ ["delete", "get", "head", "post", "put", "patch", "common"],
1811
+ (h) => {
1812
+ delete s[h];
1813
+ }
1814
+ ), n.headers = O.concat(i, s);
1815
+ const a = [];
1816
+ let c = !0;
1817
+ this.interceptors.request.forEach(function(p) {
1818
+ typeof p.runWhen == "function" && p.runWhen(n) === !1 || (c = c && p.synchronous, a.unshift(p.fulfilled, p.rejected));
1819
+ });
1820
+ const u = [];
1821
+ this.interceptors.response.forEach(function(p) {
1822
+ u.push(p.fulfilled, p.rejected);
1823
+ });
1824
+ let d, m = 0, y;
1825
+ if (!c) {
1826
+ const h = [Ft.bind(this), void 0];
1827
+ for (h.unshift.apply(h, a), h.push.apply(h, u), y = h.length, d = Promise.resolve(n); m < y; )
1828
+ d = d.then(h[m++], h[m++]);
1829
+ return d;
1830
+ }
1831
+ y = a.length;
1832
+ let w = n;
1833
+ for (m = 0; m < y; ) {
1834
+ const h = a[m++], p = a[m++];
1835
+ try {
1836
+ w = h(w);
1837
+ } catch (f) {
1838
+ p.call(this, f);
1839
+ break;
1840
+ }
1841
+ }
1842
+ try {
1843
+ d = Ft.call(this, w);
1844
+ } catch (h) {
1845
+ return Promise.reject(h);
1846
+ }
1847
+ for (m = 0, y = u.length; m < y; )
1848
+ d = d.then(u[m++], u[m++]);
1849
+ return d;
1850
+ }
1851
+ getUri(t) {
1852
+ t = V(this.defaults, t);
1853
+ const n = hn(t.baseURL, t.url, t.allowAbsoluteUrls);
1854
+ return cn(n, t.params, t.paramsSerializer);
1855
+ }
1856
+ };
1857
+ l.forEach(["delete", "get", "head", "options"], function(t) {
1858
+ H.prototype[t] = function(n, r) {
1859
+ return this.request(V(r || {}, {
1860
+ method: t,
1861
+ url: n,
1862
+ data: (r || {}).data
1863
+ }));
1864
+ };
1865
+ });
1866
+ l.forEach(["post", "put", "patch"], function(t) {
1867
+ function n(r) {
1868
+ return function(s, i, a) {
1869
+ return this.request(V(a || {}, {
1870
+ method: t,
1871
+ headers: r ? {
1872
+ "Content-Type": "multipart/form-data"
1873
+ } : {},
1874
+ url: s,
1875
+ data: i
1876
+ }));
1877
+ };
1878
+ }
1879
+ H.prototype[t] = n(), H.prototype[t + "Form"] = n(!0);
1880
+ });
1881
+ let Uo = class Sn {
1882
+ constructor(t) {
1883
+ if (typeof t != "function")
1884
+ throw new TypeError("executor must be a function.");
1885
+ let n;
1886
+ this.promise = new Promise(function(s) {
1887
+ n = s;
1888
+ });
1889
+ const r = this;
1890
+ this.promise.then((o) => {
1891
+ if (!r._listeners) return;
1892
+ let s = r._listeners.length;
1893
+ for (; s-- > 0; )
1894
+ r._listeners[s](o);
1895
+ r._listeners = null;
1896
+ }), this.promise.then = (o) => {
1897
+ let s;
1898
+ const i = new Promise((a) => {
1899
+ r.subscribe(a), s = a;
1900
+ }).then(o);
1901
+ return i.cancel = function() {
1902
+ r.unsubscribe(s);
1903
+ }, i;
1904
+ }, t(function(s, i, a) {
1905
+ r.reason || (r.reason = new Y(s, i, a), n(r.reason));
1906
+ });
1907
+ }
1908
+ /**
1909
+ * Throws a `CanceledError` if cancellation has been requested.
1910
+ */
1911
+ throwIfRequested() {
1912
+ if (this.reason)
1913
+ throw this.reason;
1914
+ }
1915
+ /**
1916
+ * Subscribe to the cancel signal
1917
+ */
1918
+ subscribe(t) {
1919
+ if (this.reason) {
1920
+ t(this.reason);
1921
+ return;
1922
+ }
1923
+ this._listeners ? this._listeners.push(t) : this._listeners = [t];
1924
+ }
1925
+ /**
1926
+ * Unsubscribe from the cancel signal
1927
+ */
1928
+ unsubscribe(t) {
1929
+ if (!this._listeners)
1930
+ return;
1931
+ const n = this._listeners.indexOf(t);
1932
+ n !== -1 && this._listeners.splice(n, 1);
1933
+ }
1934
+ toAbortSignal() {
1935
+ const t = new AbortController(), n = (r) => {
1936
+ t.abort(r);
1937
+ };
1938
+ return this.subscribe(n), t.signal.unsubscribe = () => this.unsubscribe(n), t.signal;
1939
+ }
1940
+ /**
1941
+ * Returns an object that contains a new `CancelToken` and a function that, when called,
1942
+ * cancels the `CancelToken`.
1943
+ */
1944
+ static source() {
1945
+ let t;
1946
+ return {
1947
+ token: new Sn(function(o) {
1948
+ t = o;
1949
+ }),
1950
+ cancel: t
1951
+ };
1952
+ }
1953
+ };
1954
+ function Mo(e) {
1955
+ return function(n) {
1956
+ return e.apply(null, n);
1957
+ };
1958
+ }
1959
+ function jo(e) {
1960
+ return l.isObject(e) && e.isAxiosError === !0;
1961
+ }
1962
+ const He = {
1963
+ Continue: 100,
1964
+ SwitchingProtocols: 101,
1965
+ Processing: 102,
1966
+ EarlyHints: 103,
1967
+ Ok: 200,
1968
+ Created: 201,
1969
+ Accepted: 202,
1970
+ NonAuthoritativeInformation: 203,
1971
+ NoContent: 204,
1972
+ ResetContent: 205,
1973
+ PartialContent: 206,
1974
+ MultiStatus: 207,
1975
+ AlreadyReported: 208,
1976
+ ImUsed: 226,
1977
+ MultipleChoices: 300,
1978
+ MovedPermanently: 301,
1979
+ Found: 302,
1980
+ SeeOther: 303,
1981
+ NotModified: 304,
1982
+ UseProxy: 305,
1983
+ Unused: 306,
1984
+ TemporaryRedirect: 307,
1985
+ PermanentRedirect: 308,
1986
+ BadRequest: 400,
1987
+ Unauthorized: 401,
1988
+ PaymentRequired: 402,
1989
+ Forbidden: 403,
1990
+ NotFound: 404,
1991
+ MethodNotAllowed: 405,
1992
+ NotAcceptable: 406,
1993
+ ProxyAuthenticationRequired: 407,
1994
+ RequestTimeout: 408,
1995
+ Conflict: 409,
1996
+ Gone: 410,
1997
+ LengthRequired: 411,
1998
+ PreconditionFailed: 412,
1999
+ PayloadTooLarge: 413,
2000
+ UriTooLong: 414,
2001
+ UnsupportedMediaType: 415,
2002
+ RangeNotSatisfiable: 416,
2003
+ ExpectationFailed: 417,
2004
+ ImATeapot: 418,
2005
+ MisdirectedRequest: 421,
2006
+ UnprocessableEntity: 422,
2007
+ Locked: 423,
2008
+ FailedDependency: 424,
2009
+ TooEarly: 425,
2010
+ UpgradeRequired: 426,
2011
+ PreconditionRequired: 428,
2012
+ TooManyRequests: 429,
2013
+ RequestHeaderFieldsTooLarge: 431,
2014
+ UnavailableForLegalReasons: 451,
2015
+ InternalServerError: 500,
2016
+ NotImplemented: 501,
2017
+ BadGateway: 502,
2018
+ ServiceUnavailable: 503,
2019
+ GatewayTimeout: 504,
2020
+ HttpVersionNotSupported: 505,
2021
+ VariantAlsoNegotiates: 506,
2022
+ InsufficientStorage: 507,
2023
+ LoopDetected: 508,
2024
+ NotExtended: 510,
2025
+ NetworkAuthenticationRequired: 511
2026
+ };
2027
+ Object.entries(He).forEach(([e, t]) => {
2028
+ He[t] = e;
2029
+ });
2030
+ function Tn(e) {
2031
+ const t = new H(e), n = Xt(H.prototype.request, t);
2032
+ return l.extend(n, H.prototype, t, { allOwnKeys: !0 }), l.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2033
+ return Tn(V(e, o));
2034
+ }, n;
2035
+ }
2036
+ const T = Tn(oe);
2037
+ T.Axios = H;
2038
+ T.CanceledError = Y;
2039
+ T.CancelToken = Uo;
2040
+ T.isCancel = pn;
2041
+ T.VERSION = En;
2042
+ T.toFormData = Re;
2043
+ T.AxiosError = g;
2044
+ T.Cancel = T.CanceledError;
2045
+ T.all = function(t) {
2046
+ return Promise.all(t);
2047
+ };
2048
+ T.spread = Mo;
2049
+ T.isAxiosError = jo;
2050
+ T.mergeConfig = V;
2051
+ T.AxiosHeaders = O;
2052
+ T.formToJSON = (e) => fn(l.isHTMLForm(e) ? new FormData(e) : e);
2053
+ T.getAdapter = bn.getAdapter;
2054
+ T.HttpStatusCode = He;
2055
+ T.default = T;
2056
+ const {
2057
+ Axios: Ki,
2058
+ AxiosError: Wi,
2059
+ CanceledError: Gi,
2060
+ isCancel: Yi,
2061
+ CancelToken: Xi,
2062
+ VERSION: Qi,
2063
+ all: Zi,
2064
+ Cancel: ea,
2065
+ isAxiosError: ta,
2066
+ spread: na,
2067
+ toFormData: ra,
2068
+ AxiosHeaders: oa,
2069
+ HttpStatusCode: sa,
2070
+ formToJSON: ia,
2071
+ getAdapter: aa,
2072
+ mergeConfig: ua
2073
+ } = T, Ot = "authorized-token", _o = {
2074
+ timeout: 18e4,
2075
+ headers: {
2076
+ Accept: "application/json, text/plain, */*",
2077
+ "Content-Type": "application/json",
2078
+ "X-Requested-With": "XMLHttpRequest"
2079
+ }
2080
+ }, R = class R {
2081
+ constructor() {
2082
+ U(this, "router");
2083
+ U(this, "baseUrl", null);
2084
+ U(this, "getNetworkError", (t) => t ? {
2085
+ 400: "错误的请求",
2086
+ 401: "服务未授权,请重新登录",
2087
+ 403: "拒绝访问",
2088
+ 404: "请求错误,未找到该资源",
2089
+ 408: "请求超时",
2090
+ 500: "服务器端出差",
2091
+ 502: "网络超时",
2092
+ 503: "服务不可用",
2093
+ 504: "网络超时"
2094
+ }[t] : null);
2095
+ this.httpInterceptorsRequest(), this.httpInterceptorsResponse();
2096
+ }
2097
+ /** 设置router调整 */
2098
+ setRouter(t) {
2099
+ this.router = t;
2100
+ }
2101
+ setBaseUrl(t) {
2102
+ this.baseUrl = t;
2103
+ }
2104
+ /** 重连原始请求 */
2105
+ static retryOriginalRequest(t) {
2106
+ return new Promise((n) => {
2107
+ R.requests.push((r) => {
2108
+ t.headers.Authorization = "Bearer " + r, n(t);
2109
+ });
2110
+ });
2111
+ }
2112
+ // 请求拦截
2113
+ httpInterceptorsRequest() {
2114
+ R.axiosInstance.interceptors.request.use(
2115
+ (t) => (Pe(t, "loading") && De(t.loading) && (t.loading.value = !0), ae.start(), typeof t.beforeRequestCallback == "function" ? (t.beforeRequestCallback(t), t) : R.initConfig.beforeRequestCallback ? (R.initConfig.beforeRequestCallback(t), t) : ["/refreshToken", "/login"].some((r) => t.url.indexOf(r) > -1) ? t : new Promise((r) => {
2116
+ const o = Z.get(Ot);
2117
+ if (o) {
2118
+ const s = JSON.parse(o), i = (/* @__PURE__ */ new Date()).getTime();
2119
+ s.expires - i <= 0 ? (R.isRefreshing || (R.isRefreshing = !0, this.get((this.baseUrl || "") + "/uath/refreshToken", {
2120
+ refreshToken: s.refreshToken
2121
+ }).then((c) => {
2122
+ this.setToken(c), t.headers.Authorization = "Bearer " + c.access_token, R.requests.forEach((u) => u(c.access_token)), R.requests = [];
2123
+ }).finally(() => {
2124
+ R.isRefreshing = !1, this.router.push({ name: "login" });
2125
+ })), r(R.retryOriginalRequest(t))) : (t.headers.Authorization = "Bearer " + s.accessToken, r(t));
2126
+ } else {
2127
+ const s = Z.get("kCookies_token");
2128
+ s && (t.headers["X-Token"] = s), r(t);
2129
+ }
2130
+ })),
2131
+ (t) => Promise.reject(t)
2132
+ );
2133
+ }
2134
+ setToken(t) {
2135
+ const { access_token: n, expires_in: r, refresh_token: o } = t, s = {
2136
+ accessToken: n,
2137
+ refreshToken: o,
2138
+ expires: Date.now() + r * 1e3
2139
+ };
2140
+ Z.set(Ot, JSON.stringify(s));
2141
+ }
2142
+ // 响应拦截
2143
+ httpInterceptorsResponse() {
2144
+ R.axiosInstance.interceptors.response.use(
2145
+ (n) => {
2146
+ const r = n.config;
2147
+ return Pe(r, "loading") && De(r.loading) && (r.loading.value = !1), ae.done(), typeof r.beforeResponseCallback == "function" ? (r.beforeResponseCallback(n), n.data) : (R.initConfig.beforeResponseCallback && R.initConfig.beforeResponseCallback(n), n.data);
2148
+ },
2149
+ (n) => {
2150
+ var o;
2151
+ const r = n;
2152
+ return Pe(n.config, "loading") && De((o = n == null ? void 0 : n.config) == null ? void 0 : o.loading) && (n.config.loading.value = !1), r.isCancelRequest = T.isCancel(r), ae.done(), Promise.reject(r);
2153
+ }
2154
+ );
2155
+ }
2156
+ transformConfigByMethod(t, n) {
2157
+ const { method: r } = n, o = ["get"], s = r.toLocaleLowerCase(), i = o.includes(s) ? "params" : "data";
2158
+ return {
2159
+ ...n,
2160
+ [i]: t
2161
+ };
2162
+ }
2163
+ // 通用请求工具函数
2164
+ request(t, n, r, o) {
2165
+ const s = this.transformConfigByMethod(r, {
2166
+ method: t,
2167
+ url: n,
2168
+ ...o
2169
+ });
2170
+ return new Promise((i, a) => {
2171
+ R.axiosInstance.request(s).then((c) => {
2172
+ if (c && (c == null ? void 0 : c.code) === "0")
2173
+ i(c.data);
2174
+ else if (c.code === "500")
2175
+ Ne(c.msg, { duration: 8e3 }), s.method === "get" ? i(c) : a(c.msg);
2176
+ else if ((c == null ? void 0 : c.code) !== "-1")
2177
+ i(c);
2178
+ else {
2179
+ const u = (c == null ? void 0 : c.msg) || "服务异常";
2180
+ Ne(u, { duration: 8e3 }), a(u);
2181
+ }
2182
+ }).catch((c) => {
2183
+ var u, d, m;
2184
+ if (c != null && c.code) {
2185
+ if (((u = c == null ? void 0 : c.response) == null ? void 0 : u.status) === 401)
2186
+ return (d = this.router) == null ? void 0 : d.push({ path: "/login" });
2187
+ Ne(this.getNetworkError((m = c == null ? void 0 : c.response) == null ? void 0 : m.status) || (c == null ? void 0 : c.message), { duration: 8e3 });
2188
+ }
2189
+ c.config.method === "get" ? i(c) : a(c);
2190
+ });
2191
+ });
2192
+ }
2193
+ // 单独抽离的post工具函数
2194
+ post(t, n, r) {
2195
+ return this.request("post", t, n, r);
2196
+ }
2197
+ // 单独抽离的delete工具函数
2198
+ delete(t, n, r) {
2199
+ return this.request("delete", t, n, r);
2200
+ }
2201
+ // 单独抽离的put工具函数
2202
+ put(t, n, r) {
2203
+ return this.request("put", t, n, r);
2204
+ }
2205
+ // 单独抽离的get工具函数
2206
+ get(t, n, r) {
2207
+ for (const o in n)
2208
+ n[o] || delete n[o];
2209
+ return this.request("get", t, n, r);
2210
+ }
2211
+ postRouter(t) {
2212
+ return this.request("post", "route/service", t);
2213
+ }
2214
+ };
2215
+ /** token过期后,暂存待执行的请求 */
2216
+ U(R, "requests", []), /** 防止重复刷新token */
2217
+ U(R, "isRefreshing", !1), // 初始化配置对象
2218
+ U(R, "initConfig", {}), // 保存当前Axios实例对象
2219
+ U(R, "axiosInstance", T.create(_o));
2220
+ let Ve = R;
2221
+ const Q = new Ve();
2222
+ let Je = {}, Cn = {};
2223
+ const qo = (e, t) => {
2224
+ Je = Object.assign(Je, t), e.config.globalProperties.$config = rt();
2225
+ }, rt = () => Je, zo = (e = {}) => {
2226
+ Cn = e;
2227
+ }, Dt = () => Cn, M = () => rt().ResponsiveStorageNameSpace, Fe = () => ({
2228
+ post: (e, t, n) => Q.post(`${L()}${e}`, t, n),
2229
+ get: (e, t, n) => Q.get(`${L()}${e}`, t, n),
2230
+ put: (e, t) => Q.put(`${L()}${e}`, t),
2231
+ delete: (e, t) => Q.delete(`${L()}${e}`, t)
2232
+ }), $o = (e) => {
2233
+ Q.setRouter(e);
2234
+ }, Ho = window.location.origin + "/gateway", L = () => Dt().VITE_BASE_URL === "origin" ? Ho : Dt().VITE_BASE_URL, Vo = W({
2235
+ name: "app",
2236
+ components: {
2237
+ [pt.name]: pt
2238
+ },
2239
+ beforeRouteEnter(e, t, n) {
2240
+ Fe().get("/upfm/v1/sysConfig", {}).then((r) => {
2241
+ n();
2242
+ });
2243
+ },
2244
+ computed: {
2245
+ currentLocale() {
2246
+ var e, t;
2247
+ return ((t = (e = this.$storage) == null ? void 0 : e.locale) == null ? void 0 : t.locale) === "zh" ? or : rr;
2248
+ }
2249
+ },
2250
+ beforeCreate() {
2251
+ const { t: e } = zn(), r = (D.getItem(ar) || { title: "U-DP" }).title;
2252
+ qn(
2253
+ {
2254
+ pollingTime: 3e5,
2255
+ checkOriginSpecifiedFilesUrl: [`${location.origin}/index.html`],
2256
+ enable: process.env.NODE_ENV !== "development"
2257
+ },
2258
+ {
2259
+ title: r,
2260
+ description: e("message.udp.newVersion"),
2261
+ buttonText: e("message.udp.updatenow"),
2262
+ cancelButtonText: e("message.udp.updateLater")
2263
+ }
2264
+ );
2265
+ }
2266
+ }), Jo = (e, t) => {
2267
+ const n = e.__vccOpts || e;
2268
+ for (const [r, o] of t)
2269
+ n[r] = o;
2270
+ return n;
2271
+ };
2272
+ function Ko(e, t, n, r, o, s) {
2273
+ const i = Me("router-view"), a = Me("el-config-provider");
2274
+ return Un(), Bn(a, {
2275
+ size: "small",
2276
+ "z-index": 5555,
2277
+ locale: e.currentLocale
2278
+ }, {
2279
+ default: Mn(() => [
2280
+ Wt(i)
2281
+ ]),
2282
+ _: 1
2283
+ }, 8, ["locale"]);
2284
+ }
2285
+ const Wo = /* @__PURE__ */ Jo(Vo, [["render", Ko]]), Ae = Qn();
2286
+ function Go(e) {
2287
+ e.use(Ae);
2288
+ }
2289
+ const ot = [
2290
+ {
2291
+ path: "/welcome",
2292
+ meta: {
2293
+ title: "message.udp.home",
2294
+ icon: "home-filled"
2295
+ }
2296
+ }
2297
+ ], Yo = (e, t) => {
2298
+ const n = [];
2299
+ for (const r of e)
2300
+ r[t] && n.push(r[t]);
2301
+ return Array.from(new Set(n));
2302
+ }, Rn = (e) => {
2303
+ const t = e.replace("#", "").match(/../g);
2304
+ for (let n = 0; n < 3; n++) t[n] = parseInt(t[n], 16);
2305
+ return t;
2306
+ }, xn = (e, t, n) => {
2307
+ const r = [e.toString(16), t.toString(16), n.toString(16)];
2308
+ for (let o = 0; o < 3; o++)
2309
+ r[o].length == 1 && (r[o] = `0${r[o]}`);
2310
+ return `#${r.join("")}`;
2311
+ }, la = (e, t) => {
2312
+ const n = Rn(e);
2313
+ for (let r = 0; r < 3; r++) n[r] = Math.floor(n[r] * (1 - t));
2314
+ return xn(n[0], n[1], n[2]);
2315
+ }, ca = (e, t) => {
2316
+ const n = Rn(e);
2317
+ for (let r = 0; r < 3; r++) n[r] = Math.floor((255 - n[r]) * t + n[r]);
2318
+ return xn(n[0], n[1], n[2]);
2319
+ }, Nt = {
2320
+ zh: {
2321
+ message: {
2322
+ reportCode: "报表编号",
2323
+ tempPath: "模版路径",
2324
+ tempFile: "模版文件",
2325
+ exportFileType: "文件类型",
2326
+ parameterType: "参数类型",
2327
+ valueType: "值类型",
2328
+ parameterField: "参数字段名",
2329
+ parameterName: "参数名称",
2330
+ showField: "显示字段",
2331
+ valueField: "值字段",
2332
+ exportNo: "导出编号",
2333
+ moduleName: "模块名称",
2334
+ exportResult: "导出结果",
2335
+ exportStatus: "导出状态",
2336
+ exportMsg: "提示信息",
2337
+ fileType: "文件类型",
2338
+ exportDate: "完成时间"
2339
+ }
2340
+ },
2341
+ en: {
2342
+ message: {
2343
+ tempPath: "tempPath",
2344
+ tempFile: "tempFile",
2345
+ exportFileType: "exportFileType",
2346
+ parameterType: "parameterType",
2347
+ valueType: "valueType",
2348
+ serviceCode: "serviceCode",
2349
+ parameterField: "parameterField",
2350
+ parameterName: "parameterName",
2351
+ showField: "showField",
2352
+ valueField: "valueField",
2353
+ exportNo: "exportNo",
2354
+ moduleName: "moduleName",
2355
+ printPosition: "Print Position",
2356
+ exportResult: "exportResult",
2357
+ exportStatus: "exportStatus",
2358
+ exportMsg: "exportMsg",
2359
+ fileType: "fileType",
2360
+ exportDate: "Export Date",
2361
+ dataSetCode: "Dataset Code",
2362
+ dataSetName: "Dataset Name",
2363
+ dataSetType: "Dataset Type",
2364
+ dataSetUrl: "Dataset Url",
2365
+ defaultValue: "Default Value",
2366
+ isRequired: "Required"
2367
+ }
2368
+ }
2369
+ }, Xo = {
2370
+ zh: { ...Nt.zh.message },
2371
+ en: { ...Nt.en.message }
2372
+ }, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2373
+ __proto__: null,
2374
+ default: Xo
2375
+ }, Symbol.toStringTag, { value: "Module" })), Zo = {
2376
+ zh: {
2377
+ message: {
2378
+ taskName: "任务名称",
2379
+ processInstId: "任务编码",
2380
+ taskTitle: "任务标题",
2381
+ taskPhase: "流程阶段",
2382
+ agreement: "审批意见",
2383
+ description: "备注",
2384
+ actuatorCode: "执行器编码",
2385
+ actuatorName: "执行器名称",
2386
+ actuatorType: "注册方式",
2387
+ actuatorAddress: "机器地址"
2388
+ }
2389
+ },
2390
+ en: {
2391
+ message: {
2392
+ taskName: "taskName",
2393
+ processInstId: "processInstId",
2394
+ taskTitle: "taskTitle",
2395
+ taskPhase: "taskPhase",
2396
+ agreement: "agreement",
2397
+ description: "description",
2398
+ actuatorCode: "Actuator Code",
2399
+ actuatorName: "Actuator Name",
2400
+ actuatorType: "Actuator Type",
2401
+ actuatorAddress: "Actuator Adress"
2402
+ }
2403
+ }
2404
+ }, es = {
2405
+ zh: {
2406
+ message: {
2407
+ flowId: "流程标识",
2408
+ flowName: "流程名称",
2409
+ flowCode: "流程编码",
2410
+ description: "流程描述",
2411
+ flowDesign: "流程设计",
2412
+ version: "版本",
2413
+ effectDate: "生效日期"
2414
+ }
2415
+ },
2416
+ en: {
2417
+ message: {
2418
+ flowId: "flowId",
2419
+ flowName: "flowName",
2420
+ flowCode: "flowCode",
2421
+ description: "description",
2422
+ flowDesign: "Flow Design"
2423
+ }
2424
+ }
2425
+ }, vt = [Zo, es], ts = {
2426
+ zh: {
2427
+ ...Object.assign({}, ...vt.map((e) => e.zh.message))
2428
+ },
2429
+ en: {
2430
+ ...Object.assign({}, ...vt.map((e) => e.en.message))
2431
+ }
2432
+ }, ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2433
+ __proto__: null,
2434
+ default: ts
2435
+ }, Symbol.toStringTag, { value: "Module" })), rs = {
2436
+ zh: {
2437
+ message: {
2438
+ msgtemplateCode: "模板代码",
2439
+ msgtemplateName: "模板名称",
2440
+ msgTitle: "消息标题",
2441
+ msgType: "消息类型",
2442
+ language: "语言",
2443
+ templateContent: "模板内容",
2444
+ msgCode: "消息代码",
2445
+ msgName: "消息名称",
2446
+ msgService: "消息服务",
2447
+ msgServiceName: "消息服务名称"
2448
+ }
2449
+ },
2450
+ en: {
2451
+ message: {
2452
+ xx: "xxx"
2453
+ }
2454
+ }
2455
+ }, os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2456
+ __proto__: null,
2457
+ default: rs
2458
+ }, Symbol.toStringTag, { value: "Module" })), ss = {
2459
+ udp: {
2460
+ dark: "深色",
2461
+ light: "浅色",
2462
+ smart: "灵动",
2463
+ card: "卡片",
2464
+ theme: "主题色",
2465
+ pageStyle: "整体风格",
2466
+ navigationMode: "导航模式",
2467
+ tagStyle: "页签风格",
2468
+ collapse: "折叠",
2469
+ expand: "展开",
2470
+ login: "登 陆",
2471
+ home: "首页",
2472
+ logout: "退出系统",
2473
+ password: "密码",
2474
+ passwordReset: "密码重置",
2475
+ oldPwd: "旧密码",
2476
+ newPwd: "新密码",
2477
+ confirmPwd: "确认密码",
2478
+ reload: "重新加载",
2479
+ closeCurrentTab: "关闭当前标签页",
2480
+ closeLeftTabs: "关闭左侧标签页",
2481
+ closeRightTabs: "关闭右侧标签页",
2482
+ closeOtherTabs: "关闭其他标签页",
2483
+ closeAllTabs: "关闭全部标签页",
2484
+ wholeFullScreen: "整体页面全屏",
2485
+ wholeExitFullScreen: "整体页面退出全屏",
2486
+ contentFullScreen: "内容区全屏",
2487
+ contentExitFullScreen: "内容区退出全屏",
2488
+ fourZeroFour: "404",
2489
+ fourZeroThree: "403",
2490
+ five: "500",
2491
+ backtop: "回到顶部",
2492
+ error: "Error Page",
2493
+ continueAdd: "连续添加",
2494
+ menuQuery: "菜单搜索",
2495
+ systemTitle: "系统标题",
2496
+ systemLogo: "LOGO",
2497
+ systemFavicon: "favicon",
2498
+ homeBackimg: "首页背景",
2499
+ baseUrl: "服务路径",
2500
+ copyright: "版权信息",
2501
+ i18nEnabled: "国际化",
2502
+ orgTaggle: "启用组织切换",
2503
+ defaultLanguage: "默认语言",
2504
+ roleName: "角色名称",
2505
+ roleCode: "角色编码",
2506
+ roleDesc: "角色说明",
2507
+ loginTime: "登录时间",
2508
+ operatingSystem: "操作系统",
2509
+ ip: "ip地址",
2510
+ browserVersion: "浏览器版本",
2511
+ browser: "浏览器",
2512
+ dictCode: "字典编码",
2513
+ dictName: "字典名称",
2514
+ dictType: "字典类型",
2515
+ ruleCode: "规则代码",
2516
+ ruleName: "规则名称",
2517
+ fieldType: "段类型",
2518
+ fieldValue: "段值",
2519
+ dateMask: "日期掩码",
2520
+ resetFrequency: "重置频率",
2521
+ seqLength: "位数",
2522
+ startValue: "开始值",
2523
+ currentValue: "当前值",
2524
+ haveBeenUsed: "使用中",
2525
+ unitName: "单位名称",
2526
+ unitCode: "单位编码",
2527
+ unitNote: "单位介绍",
2528
+ deleteCompany: "部门存在子级,请先删除子级",
2529
+ tip: "温馨提示",
2530
+ today: "今天",
2531
+ yesterday: "昨天",
2532
+ lastWeek: "一周内",
2533
+ lastMonth: "1月内",
2534
+ threeMonth: "3月内",
2535
+ halfYear: "半年内",
2536
+ anniversary: "1年内",
2537
+ newVersion: "检测到新版本",
2538
+ updatenow: "立即更新",
2539
+ updateLater: "稍后更新",
2540
+ appVersion: "版本号",
2541
+ buildNo: "构建号",
2542
+ versionInfo: "版本信息",
2543
+ isForceUpdate: "安装方式",
2544
+ downloadUrl: "APK文件",
2545
+ forceUpdate: "强制更新",
2546
+ freeUpdate: "自主更新",
2547
+ userName: "用户姓名",
2548
+ userCode: "用户编码",
2549
+ userType: "用户类型",
2550
+ roleList: "角色列表",
2551
+ userList: "用户列表",
2552
+ orgCode: "业务实体编码",
2553
+ orgName: "业务实体名称",
2554
+ orgAlias: "业务实体简称",
2555
+ orgDesc: "业务实体描述",
2556
+ organizationName: "组织名称",
2557
+ organizationCode: "组织编码"
2558
+ },
2559
+ btn: {
2560
+ passwordReset: "密码重置",
2561
+ add: "新增",
2562
+ agree: "同意",
2563
+ approve: "审批",
2564
+ appupper: "上架",
2565
+ applower: "下架",
2566
+ auth: "权限",
2567
+ back: "返回",
2568
+ cancel: "取消",
2569
+ completed: "完工",
2570
+ close: "关闭",
2571
+ toggle: "切换",
2572
+ confirm: "确认",
2573
+ config: "配置",
2574
+ copy: "复制",
2575
+ customSize: "自定义纸张",
2576
+ detail: "详情",
2577
+ directPrint: "直接打印",
2578
+ design: "设 计",
2579
+ delete: "删除",
2580
+ del: "删除",
2581
+ download: "下载",
2582
+ dispatchUser: "分配用户",
2583
+ dispatchAuth: "分配权限",
2584
+ FAQ: "常见问题",
2585
+ finish: "完成",
2586
+ fetch: "查询",
2587
+ edit: "编辑",
2588
+ export: "导出",
2589
+ import: "导入",
2590
+ encode: "编码",
2591
+ importJSON: "导入模板数据",
2592
+ downloadTemp: "模板下载",
2593
+ inv: "库存组织",
2594
+ look: "查看",
2595
+ lov: "值集",
2596
+ inbound: "入库",
2597
+ more: "更多",
2598
+ outbound: "出库",
2599
+ preview: "预览",
2600
+ print: "打印",
2601
+ paramSet: "参数集",
2602
+ reset: "重置",
2603
+ resumeTask: "继续",
2604
+ role: "角色",
2605
+ repaint: "重绘",
2606
+ save: "保存",
2607
+ scan: "扫码下载",
2608
+ stopTask: "停止",
2609
+ suspendTask: "暂停",
2610
+ search: "搜索",
2611
+ sync: "同步",
2612
+ submit: "提交",
2613
+ taskLog: "任务日志",
2614
+ revoke: "撤销",
2615
+ reject: "拒绝",
2616
+ upload: "上传",
2617
+ goback: "返回",
2618
+ disabled: "禁用",
2619
+ enable: "启用"
2620
+ },
2621
+ urpt: {
2622
+ templateName: "模版名称",
2623
+ templateCode: "模版编码",
2624
+ paperType: "纸张类型",
2625
+ printPosition: "打印视图",
2626
+ buttonCode: "按钮编码",
2627
+ resourceCode: "资源编码",
2628
+ resourceName: "资源名称",
2629
+ resourceUrl: "资源路径",
2630
+ fileName: "文件名称",
2631
+ fileSize: "文件大小",
2632
+ filePath: "文件路径",
2633
+ fileExtend: "文件类型",
2634
+ textAlign: "对齐方式",
2635
+ color: "色彩",
2636
+ fillOpacity: "透明度",
2637
+ fontSize: "字体大小",
2638
+ rotation: "倾斜角度",
2639
+ watermarkCode: "水印编码",
2640
+ watermarkContent: "水印内容",
2641
+ watermarkTrigger: "触发时机",
2642
+ watermarkType: "水印类型",
2643
+ xAxis: "横坐标",
2644
+ yAxis: "纵坐标"
2645
+ },
2646
+ add: "新增",
2647
+ operate: "操作",
2648
+ emptyData: "暂无数据",
2649
+ creationDate: "创建时间",
2650
+ createdByName: "创建人",
2651
+ creationName: "创建人",
2652
+ lastUpdateDate: "更新日期",
2653
+ lastUpdatedByName: "更新人",
2654
+ sort: "序号",
2655
+ seqNo: "序号",
2656
+ remark: "备注",
2657
+ loading: "加载中...",
2658
+ keyword: "关键字",
2659
+ required: "请录入",
2660
+ isRequired: "必填否",
2661
+ dataSetCode: "数据集编码",
2662
+ dataSetName: "数据集名称",
2663
+ dataSetType: "数据集类型",
2664
+ dataSetUrl: "URL/服务编码",
2665
+ paramCode: "参数编码",
2666
+ paramName: "参数名称",
2667
+ defaultValue: "默认值",
2668
+ enabled: "启用",
2669
+ disabled: "禁用",
2670
+ to: "至",
2671
+ startDate: "开始日期",
2672
+ endDate: "截至日期",
2673
+ operateSuccess: "操作成功!",
2674
+ operateFailed: "操作失败!",
2675
+ selectedRecord: "请至少选择一条记录",
2676
+ delRecord: "您确定要删除选择的数据吗?",
2677
+ importSuccess: "导入成功!",
2678
+ importFailed: "数据导入失败,请往下滚动以便查看错误信息",
2679
+ importRecord: "您确定要导入数据吗?",
2680
+ importEmpty: "数据列表为空,请先导入数据列表",
2681
+ importTip: `1、表格模板的【列标题】不可修改;
2682
+ 2、单次导入数据数量应小于2000条;
2683
+ 3、数据字典直接录入字典值表示,能极大的提高表格渲染速度哦。例如: 数据字典【是否】Y/N
2684
+ 4、导入成功,系统提示【导入成功数量xxx条】其中的数量包括表头行`,
2685
+ errorInfo: "异常信息",
2686
+ publish: "发布",
2687
+ menuName: "菜单名称(中文)",
2688
+ menuNameEn: "菜单名称(英文)",
2689
+ menuType: "菜单类型",
2690
+ menuCode: "菜单编码",
2691
+ permissionCode: "权限编码",
2692
+ permissionName: "权限名称",
2693
+ menuPath: "路由",
2694
+ frameSrc: "内链URI",
2695
+ externalURI: "外链URI",
2696
+ redirect: "重定向路径",
2697
+ i18nField: "标题字段",
2698
+ extraIcon: "额外图标",
2699
+ icon: "图标",
2700
+ jobResult: "执行结果",
2701
+ endTime: "结束时间",
2702
+ startTime: "开始时间",
2703
+ errorMessage: "异常信息",
2704
+ jobStatus: "任务状态",
2705
+ jobParam: "执行器任务参数",
2706
+ jobHandler: "任务处理类",
2707
+ jobClassName: "实现类",
2708
+ jobCron: "任务执行corn",
2709
+ jobName: "任务名称",
2710
+ jobDescription: "任务描述",
2711
+ interfaceName: "接口名称",
2712
+ interfaceUrl: "接口地址",
2713
+ requestDate: "请求日期",
2714
+ requestStatus: "请求状态",
2715
+ requestParameter: "body参数",
2716
+ responseTimeConsume: "响应时间(ms)",
2717
+ responseContent: "响应内容",
2718
+ stacktrace: "错误堆栈",
2719
+ status: "状态",
2720
+ email: "邮箱",
2721
+ userPassword: "登录密码",
2722
+ remarks: "备注",
2723
+ userPwd: "用户密码",
2724
+ unitName: "用户单位",
2725
+ employeeCode: "编号",
2726
+ employeeName: "姓名",
2727
+ department: "部门",
2728
+ gender: "性别",
2729
+ releateUser: "关联用户",
2730
+ identity: "身份证号码",
2731
+ employeeDate: "入职日期",
2732
+ solarDay: "出生日期",
2733
+ phone: "座机号",
2734
+ mobile: "手机号",
2735
+ deptName: "部门名称",
2736
+ deptCode: "部门编码",
2737
+ deptType: "部门类型",
2738
+ deletePartment: "部门存在子级,请先删除子级",
2739
+ lovCode: "视图编码",
2740
+ lovName: "视图名称",
2741
+ valueField: "值字段名",
2742
+ displayField: "显示字段名",
2743
+ lovTitle: "视图标题",
2744
+ lovType: "视图类型",
2745
+ lovUrl: "视图URI",
2746
+ colField: "表格字段名",
2747
+ colTitle: "表格列标题",
2748
+ colWidth: "列宽度",
2749
+ fieldType: "字段类型",
2750
+ dictName: "数据字典",
2751
+ isSearch: "查询字段",
2752
+ isCol: "表格列",
2753
+ sqlStatement: "SQL语句",
2754
+ fileName: "附件名称",
2755
+ fileSize: "附件大小",
2756
+ tip: {
2757
+ projectConfig: "项目配置",
2758
+ closeConfig: "关闭配置",
2759
+ clearCache: "清空缓存",
2760
+ toLogin: "清空缓存并返回登录页",
2761
+ del: "确定要删除{msg}吗?",
2762
+ uploadFormat: "上传格式{type}",
2763
+ imageSize: "图片尺寸{size}",
2764
+ imageCapacity: "图片大小{capacity}",
2765
+ singleImg: "仅支持设置单张图",
2766
+ emptyAuth: "无系统权限, 请先给用户分配角色重试",
2767
+ initPassword: "初始密码为:【123456】,请及时修改密码",
2768
+ loginFailure: "用户名或密码不能为空",
2769
+ updatenow: "立即更新",
2770
+ newVersion: "检测到新版本",
2771
+ updateLater: "稍后更新"
2772
+ },
2773
+ title: {
2774
+ employeeInfo: "员工信息",
2775
+ cronLog: "执行日志",
2776
+ memuInfo: "菜单配置",
2777
+ authority: "【{role}】权限明细",
2778
+ authUser: "【{role}】分配用户",
2779
+ authEdit: "角色编辑",
2780
+ roleInfo: "角色列表",
2781
+ appAdd: "App版本新增",
2782
+ dictList: "【{name}】字典值列表",
2783
+ dictInfo: "【{name}】字典值",
2784
+ lovView: "值集视图",
2785
+ lovColConfig: "值集列配置",
2786
+ sequenceInfo: "{name}单据序列配置"
2787
+ }
2788
+ }, is = {
2789
+ udp: {
2790
+ dark: "深色",
2791
+ light: "浅色",
2792
+ smart: "灵动",
2793
+ card: "卡片",
2794
+ theme: "主题色",
2795
+ pageStyle: "Page Style",
2796
+ navigationMode: "Navigation Node",
2797
+ tagStyle: "Tag Style",
2798
+ collapse: "Collapse",
2799
+ expand: "Expand",
2800
+ login: "Login",
2801
+ home: "Home",
2802
+ logout: "Logout",
2803
+ password: "Password",
2804
+ passwordReset: "Password Reset",
2805
+ oldPwd: "Old Password",
2806
+ newPwd: "New Password",
2807
+ confirmPwd: "Confirm Password",
2808
+ reload: "Reload",
2809
+ closeCurrentTab: "Close Current Tab",
2810
+ closeLeftTabs: "Close Left Tabs",
2811
+ closeRightTabs: "Close Right Tabs",
2812
+ closeOtherTabs: "Close Other Tabs",
2813
+ closeAllTabs: "Close All Tabs",
2814
+ wholeFullScreen: "Whole Full Screen",
2815
+ wholeExitFullScreen: "Whole Exit Full Screen",
2816
+ contentFullScreen: "Content Fulll Screen",
2817
+ contentExitFullScreen: "Content Exit Full Screen",
2818
+ fourZeroFour: "404",
2819
+ fourZeroThree: "403",
2820
+ five: "500",
2821
+ backtop: "Back Top",
2822
+ error: "Error Page",
2823
+ continueAdd: "Continue Add",
2824
+ menuQuery: "Menu Search",
2825
+ systemTitle: "System Title",
2826
+ systemLogo: "LOGO",
2827
+ systemFavicon: "favicon",
2828
+ homeBackimg: "Home Background Image",
2829
+ baseUrl: "Base Url",
2830
+ copyright: "Copy Right",
2831
+ i18nEnabled: "Internationalize",
2832
+ defaultLanguage: "Language",
2833
+ roleName: "Role Name",
2834
+ roleCode: "Role Code",
2835
+ roleDesc: "Role Desc",
2836
+ loginTime: "Login Time",
2837
+ operatingSystem: "Operate System",
2838
+ ip: "ip",
2839
+ browserVersion: "Browser Version",
2840
+ browser: "Browser",
2841
+ dictCode: "Dict Code",
2842
+ dictName: "Dict Name",
2843
+ dictType: "Dict Type",
2844
+ ruleCode: "Rule Code",
2845
+ ruleName: "Rule Name",
2846
+ fieldType: "Field Type",
2847
+ fieldValue: "Field Value",
2848
+ dateMask: "Data Mask",
2849
+ resetFrequency: "Reset Frequency",
2850
+ seqLength: "Seq Length",
2851
+ startValue: "Start Value",
2852
+ currentValue: "Current Value",
2853
+ haveBeenUsed: "Have Been Used",
2854
+ unitName: "Unit Name",
2855
+ unitCode: "Unit Code",
2856
+ unitNote: "Unit Note",
2857
+ deleteCompany: "There are child levels in the Company, please delete the child level first",
2858
+ tip: "tip",
2859
+ today: "Today",
2860
+ yesterday: "Yesterday",
2861
+ lastWeek: "Last Week",
2862
+ lastMonth: "Last Month",
2863
+ threeMonth: "Three Month",
2864
+ halfYear: "Half Year",
2865
+ anniversary: "Anniversary",
2866
+ newVersion: "检测到新版本",
2867
+ updatenow: "立即更新",
2868
+ updateLater: "稍后更新",
2869
+ appVersion: "版本号",
2870
+ buildNo: "构建号",
2871
+ versionInfo: "版本信息",
2872
+ isForceUpdate: "安装方式",
2873
+ downloadUrl: "APK文件",
2874
+ forceUpdate: "强制更新",
2875
+ freeUpdate: "自主更新",
2876
+ userName: "User Name",
2877
+ userCode: "user Code",
2878
+ sysType: "User Type",
2879
+ orgCode: "Business Unit Code",
2880
+ orgName: "Business Unit Name",
2881
+ orgAlias: "Business Unit Alias",
2882
+ orgDesc: "Business Unit Descript",
2883
+ organizationName: "Organization Name",
2884
+ organizationCode: "Organization Code"
2885
+ },
2886
+ btn: {
2887
+ add: "Add",
2888
+ agree: "Agree",
2889
+ approve: "Approval",
2890
+ appupper: "App Add",
2891
+ applower: "App Remove",
2892
+ auth: "Authority",
2893
+ back: "Back",
2894
+ cancel: "Cancel",
2895
+ completed: "Completed",
2896
+ close: "Close",
2897
+ toggle: "Toggle",
2898
+ confirm: "Confirm",
2899
+ config: "Config",
2900
+ copy: "Copy",
2901
+ customSize: "Custom Size",
2902
+ detail: "Detail",
2903
+ directPrint: "Direct Print",
2904
+ design: "Design",
2905
+ delete: "Delete",
2906
+ del: "Delete",
2907
+ download: "Download",
2908
+ dispatchUser: "Dispatch User",
2909
+ dispatchAuth: "Dispatch Authority",
2910
+ finish: "Finish",
2911
+ fetch: "Fetch",
2912
+ edit: "Edit",
2913
+ export: "Export",
2914
+ import: "Import",
2915
+ encode: "Encode",
2916
+ importJSON: "Import Data",
2917
+ look: "Look",
2918
+ lov: "Lov",
2919
+ inbound: "Inbound",
2920
+ more: "More",
2921
+ outbound: "Outbound",
2922
+ preview: "Preview",
2923
+ print: "Print",
2924
+ paramSet: "Param Set",
2925
+ reset: "Reset",
2926
+ resumeTask: "Resume",
2927
+ role: "Role",
2928
+ repaint: "Repaint",
2929
+ save: "Save",
2930
+ scan: "Scan Download",
2931
+ stopTask: "Stop",
2932
+ suspendTask: "Suspend",
2933
+ search: "Search",
2934
+ sync: "Sync",
2935
+ submit: "Submit",
2936
+ taskLog: "Log",
2937
+ revoke: "Revoke",
2938
+ reject: "Reject",
2939
+ upload: "Upload"
2940
+ },
2941
+ file: {
2942
+ templateName: "Template Name",
2943
+ templateCode: "Template Code",
2944
+ paperType: "Paper Type",
2945
+ printPosition: "Print Position",
2946
+ buttonCode: "Button Code",
2947
+ resourceCode: "Resource Code",
2948
+ resourceName: "Resource Name",
2949
+ resourceUrl: "Resource Url",
2950
+ fileName: "File Name",
2951
+ fileSize: "File Size",
2952
+ filePath: "File Path",
2953
+ fileExtend: "File Extend",
2954
+ textAlign: "Text Align",
2955
+ color: "Color",
2956
+ fillOpacity: "Fill Opacity",
2957
+ fontSize: "Font Size",
2958
+ rotation: "Rotation",
2959
+ watermarkCode: "Watermark Code",
2960
+ watermarkContent: "Watermark Content",
2961
+ watermarkTrigger: "Watermark Trigger",
2962
+ watermarkType: "Watermark Type",
2963
+ xAxis: "xAxis",
2964
+ yAxis: "yAxis"
2965
+ },
2966
+ add: "Add",
2967
+ operate: "Operate",
2968
+ emptyData: "Empty Data",
2969
+ creationDate: "Creation Date",
2970
+ createdByName: "CreatedBy Name",
2971
+ creationName: "Creation Name",
2972
+ lastUpdateDate: "LastUpdate Date",
2973
+ lastUpdatedByName: "LastUpdatedBy Name",
2974
+ sort: "Sort",
2975
+ seqNo: "Seq No",
2976
+ remark: "Remark",
2977
+ loading: "Loading...",
2978
+ keyword: "Keyword",
2979
+ required: "Required",
2980
+ isRequired: "Is Required",
2981
+ dataSetCode: "Dataset Code",
2982
+ dataSetName: "Dataset Name",
2983
+ dataSetType: "Dataset Type",
2984
+ dataSetUrl: "Dataset Url",
2985
+ paramCode: "Param Code",
2986
+ paramName: "Param Name",
2987
+ defaultValue: "Default Value",
2988
+ enabled: "Enabled",
2989
+ disabled: "Disabled",
2990
+ to: "To",
2991
+ startDate: "Start Date",
2992
+ endDate: "End Date",
2993
+ operateSuccess: "Operate Success!",
2994
+ operateFailed: "Operate Failed!",
2995
+ selectedRecord: "Please select at least one record",
2996
+ delRecord: "Are you sure you want to delete this record?",
2997
+ importSuccess: "Import Success!",
2998
+ importFailed: "Data import failed, please scroll down to view the error message",
2999
+ importRecord: "Are you sure you want to import the data?",
3000
+ importEmpty: "The data list is empty, please import the data list first",
3001
+ importTip: `1. The column headings in the table template cannot be modified;
3002
+ 2. The number of data imported at a time should be less than 2000;
3003
+ 3. Directly entering dictionary values into the data dictionary can greatly improve the speed of table rendering. For example: Data Dictionary [Yes/No] Y/N
3004
+ 4. Import successful, system prompts' xxx successful imports', including header rows`,
3005
+ errorInfo: "Error Info",
3006
+ publish: "Publish",
3007
+ menuName: "Menu Name",
3008
+ menuNameEn: "Menu Name",
3009
+ menuType: "Menu Type",
3010
+ menuCode: "Menu Code",
3011
+ permissionCode: "Permission Code",
3012
+ permissionName: "Permission Name",
3013
+ menuPath: "Menu Path",
3014
+ frameSrc: "Internal Link URI",
3015
+ externalURI: "External Link URI",
3016
+ redirect: "Redirect",
3017
+ i18nField: "Language Field",
3018
+ extraIcon: "Extra Icon",
3019
+ icon: "Icon",
3020
+ jobResult: "Job Result",
3021
+ endTime: "End Time",
3022
+ startTime: "Start Time",
3023
+ errorMessage: "Error Message",
3024
+ jobStatus: "Job Status",
3025
+ jobParam: "Job Param",
3026
+ jobHandler: "Job Handler",
3027
+ jobClassName: "Job ClassName",
3028
+ jobCron: "Job Cron",
3029
+ jobName: "Job Name",
3030
+ jobDescription: "Job Description",
3031
+ interfaceName: "Interface Name",
3032
+ interfaceUrl: "Interface Url",
3033
+ requestDate: "Request Date",
3034
+ requestStatus: "Request Status",
3035
+ requestParameter: "Request Parameter",
3036
+ responseTimeConsume: "Response TimeConsume(ms)",
3037
+ responseContent: "Response Content",
3038
+ stacktrace: "Stacktrace",
3039
+ status: "Status",
3040
+ email: "Email",
3041
+ userPassword: "Password",
3042
+ remarks: "Remarks",
3043
+ userPwd: "Password",
3044
+ unitName: "Department",
3045
+ employeeCode: "Employee Code",
3046
+ employeeName: "Employee Name",
3047
+ department: "Department",
3048
+ gender: "Sex",
3049
+ releateUser: "Releate User",
3050
+ identity: "Identity",
3051
+ employeeDate: "Employee Date",
3052
+ solarDay: "Solar Day",
3053
+ phone: "Phone",
3054
+ mobile: "Mobile",
3055
+ deptName: "Department Name",
3056
+ deptCode: "Department Code",
3057
+ deptType: "Department Type",
3058
+ deletePartment: "There are child levels in the department, please delete the child level first",
3059
+ lovCode: "LovCode",
3060
+ lovName: "lovName",
3061
+ valueField: "valueField",
3062
+ displayField: "displayField",
3063
+ lovTitle: "lovTitle",
3064
+ colField: "colField",
3065
+ colTitle: "colTitle",
3066
+ width: "width",
3067
+ dictDispose: "dictDispose",
3068
+ isSearch: "isSearch",
3069
+ isCol: "isCol"
3070
+ }, Pt = /* @__PURE__ */ Object.assign({ "./module/u-report.ts": Qo, "./module/u-workflow.ts": ns, "./module/umsg.ts": os }), de = {};
3071
+ for (const e in Pt)
3072
+ de[e.replace(/(\.\/module\/|\.ts)/g, "")] = Pt[e].default;
3073
+ const It = Object.keys(de).filter((e) => de[e]).map((e) => de[e]), as = {
3074
+ zh: {
3075
+ ...D.getItem(sr),
3076
+ message: Xe(ss, ...It.map((e) => e.zh.message))
3077
+ },
3078
+ en: {
3079
+ ...D.getItem(ir),
3080
+ message: Object.assign(is, ...It.map((e) => e.en.message))
3081
+ }
3082
+ };
3083
+ let K = null;
3084
+ function us(e, t = { messages: {} }) {
3085
+ var n;
3086
+ K = $n({
3087
+ legacy: !1,
3088
+ locale: ((n = D.getItem(`${M()}locale`)) == null ? void 0 : n.locale) ?? "zh",
3089
+ fallbackLocale: "en",
3090
+ globalInjection: !0,
3091
+ messages: Xe(as, t.messages)
3092
+ }), Ze.setLanguage("zh-CN"), e.use(K);
3093
+ }
3094
+ const fe = () => K;
3095
+ function ls(e = "", t = !0) {
3096
+ if (!e)
3097
+ return "";
3098
+ if (typeof e == "object") {
3099
+ const n = K.global.locale;
3100
+ return e[n.value];
3101
+ }
3102
+ return t ? K.global.t.call(K.global, e) : e;
3103
+ }
3104
+ const cs = Qe("udp-system", {
3105
+ state: () => ({
3106
+ baseURL: "",
3107
+ userInfo: {},
3108
+ systemInfo: {},
3109
+ dataDict: {},
3110
+ sysConfig: {},
3111
+ menui18n: {},
3112
+ i18n: {},
3113
+ dicts: [],
3114
+ orgList: [],
3115
+ invOrgList: [],
3116
+ homeMenus: [],
3117
+ sessionKey: "",
3118
+ orgId: "",
3119
+ userName: "",
3120
+ organizationId: "",
3121
+ isAdminRole: !1
3122
+ }),
3123
+ getters: {
3124
+ getBaseURL() {
3125
+ return this.baseURL;
3126
+ },
3127
+ getUserInfo() {
3128
+ return this.userInfo;
3129
+ },
3130
+ getSysConfig() {
3131
+ return this.sysConfig;
3132
+ },
3133
+ getEmployee() {
3134
+ return this.employee;
3135
+ },
3136
+ getSessionKey() {
3137
+ return this.sessionKey;
3138
+ },
3139
+ getMenuI18n() {
3140
+ return this.menui18n;
3141
+ },
3142
+ getI18n() {
3143
+ return this.i18n;
3144
+ },
3145
+ getOrglist() {
3146
+ return this.orgList;
3147
+ },
3148
+ getOrgId() {
3149
+ return this.orgId;
3150
+ },
3151
+ getOrganizationId() {
3152
+ return this.organizationId;
3153
+ },
3154
+ getDataDict() {
3155
+ return this.dataDict;
3156
+ },
3157
+ getUserName() {
3158
+ return this.userName;
3159
+ },
3160
+ getAdminRole(e) {
3161
+ return e.isAdminRole;
3162
+ },
3163
+ getHomeMenus(e) {
3164
+ return e.homeMenus;
3165
+ },
3166
+ getOrganizationCode(e) {
3167
+ var t, n;
3168
+ return (n = (t = e.invOrgList) == null ? void 0 : t.find((r) => r.id === e.organizationId)) == null ? void 0 : n.organizationCode;
3169
+ },
3170
+ getOrg(e) {
3171
+ return e.orgList.find((t) => t.id === e.orgId);
3172
+ }
3173
+ },
3174
+ actions: {
3175
+ // baseURL
3176
+ setBaseURL(e) {
3177
+ this.sessionKey = e;
3178
+ },
3179
+ setSessionKey(e) {
3180
+ this.sessionKey = e.access_token || e;
3181
+ },
3182
+ // sysConfig
3183
+ setSysConfig(e) {
3184
+ this.sysConfig = e;
3185
+ },
3186
+ // orgId
3187
+ setOrgId(e) {
3188
+ this.orgId = e;
3189
+ },
3190
+ setOrganizationId(e) {
3191
+ this.organizationId = e;
3192
+ },
3193
+ setMenuI18n(e) {
3194
+ this.menui18n = e;
3195
+ },
3196
+ setI18n(e) {
3197
+ this.i18n = e;
3198
+ },
3199
+ setUserName(e) {
3200
+ this.userName = e;
3201
+ },
3202
+ // 首页子菜单列表
3203
+ setHomeMenus(e) {
3204
+ this.homeMenus = e;
3205
+ },
3206
+ // 库存组织列表
3207
+ setInvOrgList(e) {
3208
+ this.invOrgList = e;
3209
+ },
3210
+ setOrgList(e) {
3211
+ this.orgList = e;
3212
+ },
3213
+ setDict(e) {
3214
+ this.dicts = e, e == null || e.forEach((t) => {
3215
+ this.dataDict[t.dictCode] = t;
3216
+ }), D.setItem("kLov", this.dataDict);
3217
+ },
3218
+ // 系统信息
3219
+ setSystemInfo(e) {
3220
+ var r;
3221
+ this.systemInfo = e;
3222
+ const t = (r = e.employeeList) != null && r.length ? e.employeeList[0] : "";
3223
+ this.userInfo = e.user || {}, this.employee = Object.assign({}, t, e.user), this.orgId = e.orgId, this.organizationId = e.organizationId, this.orgList = e.orgList;
3224
+ const n = {
3225
+ orgId: e.orgId,
3226
+ organizationId: e.organizationId
3227
+ };
3228
+ Z.set("kCookies_param", JSON.stringify(n)), this.isAdminRole = this.employee.sysRoles.some(
3229
+ (o) => o.roleCode === "admin" || ["管理员"].includes(o.roleName)
3230
+ ), N().setAuthButton(e.dataMenus);
3231
+ }
3232
+ }
3233
+ });
3234
+ function pe() {
3235
+ return cs(Ae);
3236
+ }
3237
+ function ds(e, t) {
3238
+ return /* @__PURE__ */ W({
3239
+ name: e,
3240
+ components: {
3241
+ asyncComponent: t
3242
+ },
3243
+ setup() {
3244
+ return () => Wt(Me("async-component"), null, null);
3245
+ }
3246
+ });
3247
+ }
3248
+ be.setBaseUrl(L());
3249
+ const fs = () => be.get(`${L()}/uums/roleMenu`), ps = () => be.get(`${L()}/upfm/v1/lov/selectAll`), Lt = (e) => be.get(`${L()}/uums/roleMenu/userMenu`, e), ms = () => import("./layoutView-CL2Ef3bw.js"), hs = () => import("./frameView-Cw6_EqfJ.js");
3250
+ function se(e) {
3251
+ return e.forEach((t) => {
3252
+ var n, r;
3253
+ ((n = t == null ? void 0 : t.meta) == null ? void 0 : n.rank) === null && (t.meta.rank = void 0), ((r = t == null ? void 0 : t.meta) == null ? void 0 : r.rank) === 0 && t.name !== "home" && t.path !== "/" && console.warn("rank only the home page can be 0");
3254
+ }), e.sort((t, n) => {
3255
+ var r, o;
3256
+ return ((r = t == null ? void 0 : t.meta) == null ? void 0 : r.rank) - ((o = n == null ? void 0 : n.meta) == null ? void 0 : o.rank);
3257
+ });
3258
+ }
3259
+ function kn(e) {
3260
+ const t = ee(e, !0).filter(
3261
+ (n) => {
3262
+ var r;
3263
+ return n && ((r = n.meta) == null ? void 0 : r.showLink) !== !1;
3264
+ }
3265
+ );
3266
+ return t.forEach((n) => n.children && (n.children = kn(n.children))), t;
3267
+ }
3268
+ function da(e, t, n = "path") {
3269
+ function r(o, s, i) {
3270
+ for (let a = 0; a < o.length; a++) {
3271
+ const c = o[a];
3272
+ if (c[n] === s) return i;
3273
+ if (!(!c.children || !c.children.length)) {
3274
+ if (i.push(c.path), r(c.children, s, i).length) return i;
3275
+ i.pop();
3276
+ }
3277
+ }
3278
+ return [];
3279
+ }
3280
+ return r(t, e, []);
3281
+ }
3282
+ function Fn(e, t) {
3283
+ let n = t.find((r) => r.path == e);
3284
+ if (n)
3285
+ return ft(n) ? dt(n) : n;
3286
+ for (let r = 0; r < t.length; r++)
3287
+ if (t[r].children instanceof Array && t[r].children.length > 0 && (n = Fn(e, t[r].children), n))
3288
+ return ft(n) ? dt(n) : n;
3289
+ return null;
3290
+ }
3291
+ function gs() {
3292
+ x.hasRoute("pathMatch") || x.addRoute({
3293
+ path: "/:pathMatch(.*)",
3294
+ name: "pathMatch",
3295
+ redirect: "/error/404"
3296
+ });
3297
+ }
3298
+ function ys() {
3299
+ var t, n;
3300
+ const e = fe();
3301
+ (t = e.global) == null || t.mergeLocaleMessage("zh", J.zh), (n = e.global) == null || n.mergeLocaleMessage("en", J.en), D.setItem("menu_zh", J.zh), D.setItem("menu_en", J.en);
3302
+ }
3303
+ function Bt(e) {
3304
+ if (e != null && e.length) {
3305
+ const t = e.findIndex((r) => r.menuCode === "SysHome");
3306
+ if (t !== -1) {
3307
+ const r = [], o = [];
3308
+ e[t].children.forEach((s) => {
3309
+ s.menuCategory !== "1" ? r.push(s) : o.push(s);
3310
+ }), e[t].children = o, pe().setHomeMenus(r);
3311
+ }
3312
+ const n = ee(On(e), !0);
3313
+ ys(), Oe(n).map((r) => {
3314
+ const { options: o } = x;
3315
+ o.routes[0].children.findIndex((s) => s.path === r.path) === -1 && (x.options.routes[0].children.push(r), se(x.options.routes[0].children), x.hasRoute(r == null ? void 0 : r.name) || x.addRoute(r));
3316
+ });
3317
+ }
3318
+ N().changeSetting(e), q().getMultiTagsCache || q().handleTags("equal", [
3319
+ ...ot,
3320
+ ...N().flatteningRoutes.filter((t) => {
3321
+ var n;
3322
+ return (n = t == null ? void 0 : t.meta) == null ? void 0 : n.fixedTag;
3323
+ })
3324
+ ]), gs();
3325
+ }
3326
+ async function ws(e) {
3327
+ let t = [];
3328
+ const n = `U-${e}-ROUTES`;
3329
+ return rt().CachingAsyncRoutes && await ve.getItem(n).then((r) => t = r), ps().then((r) => pe().setDict(r)), await fs().then(async (r) => {
3330
+ pe().setSystemInfo(r), await Fe().get("/uums/cusOrganization", { pageSize: 100, pageNum: 1, orgId: r.orgId }).then((o) => pe().setInvOrgList((o == null ? void 0 : o.list) || []));
3331
+ }), t != null && t.length ? new Promise((r) => {
3332
+ Bt(t), Lt({ userName: e }).then((o) => {
3333
+ ve.setItem(n, o);
3334
+ }), r(x);
3335
+ }) : new Promise((r) => {
3336
+ Lt({ userName: e }).then((o) => {
3337
+ Bt(ee(o, !0)), ve.setItem(n, o), r(x);
3338
+ });
3339
+ });
3340
+ }
3341
+ function Oe(e) {
3342
+ if (e.length === 0) return e;
3343
+ let t = Ye(e);
3344
+ for (let n = 0; n < t.length; n++)
3345
+ t[n].children && (t = t.slice(0, n + 1).concat(t[n].children, t.slice(n + 1)));
3346
+ return t;
3347
+ }
3348
+ function An(e) {
3349
+ if (e.length === 0) return e;
3350
+ const t = [];
3351
+ return e.forEach((n) => {
3352
+ n.path === "/" ? t.push({
3353
+ component: n.component,
3354
+ name: n.name,
3355
+ path: n.path,
3356
+ redirect: n.redirect,
3357
+ meta: n.meta,
3358
+ children: []
3359
+ }) : t[0].children.push({ ...n });
3360
+ }), t;
3361
+ }
3362
+ function bs({ name: e }, t) {
3363
+ switch (t) {
3364
+ case "add":
3365
+ N().cacheOperate({ mode: "add", name: e });
3366
+ break;
3367
+ case "delete":
3368
+ N().cacheOperate({ mode: "delete", name: e });
3369
+ break;
3370
+ case "refresh":
3371
+ N().cacheOperate({ mode: "refresh", name: e });
3372
+ break;
3373
+ default:
3374
+ N().cacheOperate({ mode: "delete", name: e }), Zn(() => {
3375
+ N().cacheOperate({ mode: "add", name: e });
3376
+ }, 100);
3377
+ }
3378
+ }
3379
+ const J = {
3380
+ zh: {},
3381
+ en: {}
3382
+ }, On = (e) => {
3383
+ var r;
3384
+ const t = Ds();
3385
+ if (!e || !e.length) return;
3386
+ const n = Object.keys(t);
3387
+ for (let o = 0; o < e.length; o++) {
3388
+ const s = e[o];
3389
+ s != null && s.children && s.children.length && !s.redirect && (s.redirect = s.children[0].path);
3390
+ const { icon: i, permissionCode: a, extraIcon: c, frameSrc: u } = s;
3391
+ if (s.meta = { keepAlive: !0, rank: s.sort, title: `${s.i18nField}` }, Object.assign(s.meta, { icon: i, permissionCode: a, extraIcon: c, frameSrc: u }), J.zh[s.i18nField] = s.menuName || s.menuNameEn, J.en[s.i18nField] = s.menuNameEn || s.menuName, s.name = s.menuCode || s.name, s.path = s.menuPath || s.path, !s.parentId)
3392
+ s.component = ms;
3393
+ else if ((r = s.meta) != null && r.frameSrc)
3394
+ s.component = hs;
3395
+ else if (s.menuCategory === "10") {
3396
+ const d = n.findIndex((m) => m.includes("lowcode-contain"));
3397
+ s.component = ds(
3398
+ s.name,
3399
+ jn(() => import(
3400
+ /* @vite-ignore */
3401
+ n[d]
3402
+ ))
3403
+ ), Object.assign(s.meta, { moduleType: s.moduleType });
3404
+ } else if (s.menuCategory !== "5") {
3405
+ const d = n.findIndex((m) => m.includes(s.path));
3406
+ s.component = t[n[d]];
3407
+ }
3408
+ s != null && s.children && s.children.length ? On(s.children) : delete s.children;
3409
+ }
3410
+ return e;
3411
+ };
3412
+ function fa(e, t = !0) {
3413
+ const n = q().multiTags.findIndex((r) => {
3414
+ if (e.query) {
3415
+ if (e.path === r.path)
3416
+ return e.query === r.query;
3417
+ } else
3418
+ return e.path === r.path;
3419
+ });
3420
+ if (q().handleTags("splice", "", { startIndex: n, length: 1 }), bs(e.matched, "delete"), t) {
3421
+ const r = q().handleTags("slice");
3422
+ x.push({
3423
+ path: r[0].path,
3424
+ query: r[0].query
3425
+ });
3426
+ }
3427
+ }
3428
+ const Es = Qe("udp-permission", {
3429
+ state: () => ({
3430
+ // 静态路由生成的菜单
3431
+ constantMenus: As,
3432
+ // 整体路由生成的菜单(静态、动态)
3433
+ wholeMenus: [],
3434
+ // 深拷贝一个菜单树,与导航菜单不冲突
3435
+ menusTree: [],
3436
+ // 整体路由(一维数组格式)
3437
+ flatteningRoutes: [],
3438
+ buttonAuth: [],
3439
+ // 缓存页面keepAlive
3440
+ cachePageList: []
3441
+ }),
3442
+ getters: {
3443
+ getButtonAuth() {
3444
+ return this.buttonAuth;
3445
+ }
3446
+ },
3447
+ actions: {
3448
+ asyncActionRoutes(e = []) {
3449
+ if (this.wholeMenus.length > 0) return;
3450
+ const t = Kn(e, (r) => r.menuCode === "SysHome"), n = ee(this.constantMenus, !0);
3451
+ if (t !== -1) {
3452
+ const r = this.constantMenus.find((o) => o.name === "home");
3453
+ e[t].children && r.children.push(...e[t].children), e.splice(t, 1);
3454
+ }
3455
+ this.wholeMenus = kn(se(this.constantMenus.concat(e))), this.flatteningRoutes = Oe(this.constantMenus.concat(e)), this.menusTree = ee(this.wholeMenus, !0), this.constantMenus = n;
3456
+ },
3457
+ async changeSetting(e) {
3458
+ await this.asyncActionRoutes(e);
3459
+ },
3460
+ setAuthButton(e) {
3461
+ this.buttonAuth = e;
3462
+ },
3463
+ setWholeMenus(e) {
3464
+ this.wholeMenus = e;
3465
+ },
3466
+ cacheOperate({ mode: e, name: t }) {
3467
+ const n = this.cachePageList.findIndex((r) => r === t);
3468
+ switch (e) {
3469
+ case "refresh":
3470
+ this.cachePageList = this.cachePageList.filter((r) => r !== t);
3471
+ break;
3472
+ case "add":
3473
+ this.cachePageList.push(t);
3474
+ break;
3475
+ case "delete":
3476
+ n !== -1 && this.cachePageList.splice(n, 1);
3477
+ break;
3478
+ case "reset":
3479
+ this.cachePageList = [];
3480
+ break;
3481
+ }
3482
+ Jn(() => {
3483
+ let r = this.cachePageList.length;
3484
+ const o = Yo(q().multiTags, "name");
3485
+ for (; r > 0; )
3486
+ o.findIndex((s) => s === this.cachePageList[r - 1]) === -1 && this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[r - 1]), 1), r--;
3487
+ }, 500)();
3488
+ },
3489
+ /** 清空缓存页面 */
3490
+ clearAllCachePage() {
3491
+ this.wholeMenus = [], this.menusTree = [], this.buttonAuth = [], this.cachePageList = [];
3492
+ }
3493
+ }
3494
+ });
3495
+ function N() {
3496
+ return Es(Ae);
3497
+ }
3498
+ const Ss = Qe("udp-multiTags", {
3499
+ state: () => {
3500
+ var e, t;
3501
+ return {
3502
+ // 存储标签页信息(路由信息)
3503
+ multiTags: (e = D.getItem(`${M()}configure`)) != null && e.multiTagsCache ? D.getItem(`${M()}tags`) : [...ot, ...N().flatteningRoutes.filter((n) => {
3504
+ var r;
3505
+ return (r = n == null ? void 0 : n.meta) == null ? void 0 : r.fixedTag;
3506
+ })],
3507
+ multiTagsCache: (t = D.getItem(`${M()}configure`)) == null ? void 0 : t.multiTagsCache
3508
+ };
3509
+ },
3510
+ getters: {
3511
+ getMultiTagsCache(e) {
3512
+ return e.multiTagsCache;
3513
+ }
3514
+ },
3515
+ actions: {
3516
+ multiTagsCacheChange(e) {
3517
+ this.multiTagsCache = e, e ? D.setItem(`${M()}tags`, this.multiTags) : D.removeItem(`${M()}tags`);
3518
+ },
3519
+ tagsCache(e) {
3520
+ this.getMultiTagsCache && D.setItem(`${M()}tags`, e);
3521
+ },
3522
+ handleTags(e, t, n) {
3523
+ var r, o, s, i, a, c;
3524
+ switch (e) {
3525
+ case "equal":
3526
+ this.multiTags = t, this.tagsCache(this.multiTags);
3527
+ break;
3528
+ case "push":
3529
+ {
3530
+ const u = t;
3531
+ if ((r = u == null ? void 0 : u.meta) != null && r.hiddenTag || Gt(u == null ? void 0 : u.name) || ((s = (o = u == null ? void 0 : u.meta) == null ? void 0 : o.title) == null ? void 0 : s.length) === 0 || Wn((i = u == null ? void 0 : u.meta) == null ? void 0 : i.showLink) && !((a = u == null ? void 0 : u.meta) != null && a.showLink)) return;
3532
+ const d = u.path, m = this.multiTags.some((p) => p.path === d), y = this.multiTags.some((p) => mt(p == null ? void 0 : p.query, u == null ? void 0 : u.query)), w = this.multiTags.some((p) => mt(p == null ? void 0 : p.params, u == null ? void 0 : u.params));
3533
+ if (m && y && w) return;
3534
+ const h = ((c = u == null ? void 0 : u.meta) == null ? void 0 : c.dynamicLevel) ?? -1;
3535
+ if (h > 0 && this.multiTags.filter((p) => (p == null ? void 0 : p.path) === d).length >= h) {
3536
+ const p = this.multiTags.findIndex((f) => (f == null ? void 0 : f.path) === d);
3537
+ p !== -1 && this.multiTags.splice(p, 1);
3538
+ }
3539
+ this.multiTags.push(t), this.tagsCache(this.multiTags);
3540
+ }
3541
+ break;
3542
+ case "splice":
3543
+ if (n)
3544
+ this.multiTags.splice(n == null ? void 0 : n.startIndex, n == null ? void 0 : n.length);
3545
+ else {
3546
+ const u = this.multiTags.findIndex((d) => d.path === t);
3547
+ if (u === -1) return;
3548
+ this.multiTags.splice(u, 1);
3549
+ }
3550
+ return this.tagsCache(this.multiTags), this.multiTags;
3551
+ case "slice":
3552
+ return this.multiTags.slice(-1);
3553
+ }
3554
+ }
3555
+ }
3556
+ });
3557
+ function q() {
3558
+ return Ss(Ae);
3559
+ }
3560
+ const Ts = () => import("./layoutView-CL2Ef3bw.js"), Cs = {
3561
+ path: "/",
3562
+ name: "home",
3563
+ component: Ts,
3564
+ redirect: "/welcome",
3565
+ meta: {
3566
+ icon: "home-filled",
3567
+ title: "message.udp.home",
3568
+ rank: 0
3569
+ },
3570
+ children: [
3571
+ {
3572
+ path: "/welcome",
3573
+ name: "SuHome",
3574
+ component: () => import("./su-welcome-DISZAkBB.js"),
3575
+ meta: {
3576
+ title: "message.udp.home",
3577
+ keepAlive: !0
3578
+ }
3579
+ }
3580
+ ]
3581
+ }, Rs = () => import("./layoutView-CL2Ef3bw.js"), xs = {
3582
+ path: "/error",
3583
+ name: "error",
3584
+ component: Rs,
3585
+ redirect: "/error/403",
3586
+ meta: {
3587
+ showLink: !1,
3588
+ icon: "information-line",
3589
+ title: "message.udp.error",
3590
+ rank: 999
3591
+ },
3592
+ children: [
3593
+ {
3594
+ path: "/error/403",
3595
+ name: "403",
3596
+ component: () => import("./403-D7L5zm05.js"),
3597
+ meta: {
3598
+ title: "message.udp.fourZeroThree"
3599
+ }
3600
+ }
3601
+ ]
3602
+ }, ks = () => import("./layoutView-CL2Ef3bw.js"), ne = [
3603
+ {
3604
+ path: "/login",
3605
+ name: "login",
3606
+ component: () => import("./login-BDocwo7t.js"),
3607
+ meta: {
3608
+ title: "message.udp.login",
3609
+ showLink: !1
3610
+ }
3611
+ },
3612
+ {
3613
+ path: "/error/404",
3614
+ name: "404",
3615
+ component: () => import("./404-BQKzkK5W.js"),
3616
+ meta: {
3617
+ title: "message.udp.fourZeroFour",
3618
+ showLink: !1
3619
+ }
3620
+ },
3621
+ {
3622
+ path: "/error/500",
3623
+ name: "500",
3624
+ component: () => import("./500-BM6k8XR5.js"),
3625
+ meta: {
3626
+ title: "message.udp.five",
3627
+ showLink: !1
3628
+ }
3629
+ },
3630
+ {
3631
+ path: "/redirect",
3632
+ name: "redirect",
3633
+ component: ks,
3634
+ meta: {
3635
+ icon: "home-filled",
3636
+ title: "message.udp.home",
3637
+ showLink: !1,
3638
+ rank: 104
3639
+ },
3640
+ children: [
3641
+ {
3642
+ path: "/redirect/:path(.*)",
3643
+ // 2024-12-17
3644
+ name: "redirectView",
3645
+ component: () => import("./redirect-BqegffKC.js")
3646
+ }
3647
+ ]
3648
+ }
3649
+ ], Fs = /* @__PURE__ */ Object.assign({
3650
+ "../views/organization/company/Company.vue": () => import("./Company-BgwMUr-I.js"),
3651
+ "../views/organization/company/CompanyPanel.vue": () => import("./CompanyPanel-CDfVCPKC.js"),
3652
+ "../views/organization/department/Department.vue": () => import("./Department-CFvEB4Ys.js"),
3653
+ "../views/organization/department/DepartmentPanel.vue": () => import("./DepartmentPanel-11Ytcj2u.js"),
3654
+ "../views/organization/inv-org/InvOrganization.vue": () => import("./InvOrganization-DOD4QdEX.js"),
3655
+ "../views/organization/org/Org.vue": () => import("./Org-cezJs-6P.js"),
3656
+ "../views/organization/staff/Staff.vue": () => import("./Staff-BsREgfrQ.js"),
3657
+ "../views/organization/staff/StaffInfo.vue": () => import("./StaffInfo-CQtVXfvS.js"),
3658
+ "../views/organization/staff/StaffPanel.vue": () => import("./StaffPanel-cQTAulcP.js"),
3659
+ "../views/system/cron/cron-task.vue": () => import("./cron-task-BBpccUV_.js"),
3660
+ "../views/system/menu/AuthorityPanel.vue": () => import("./AuthorityPanel-BeBNiwqc.js"),
3661
+ "../views/system/menu/SystemMenu.vue": () => import("./SystemMenu-D9TKZwgb.js"),
3662
+ "../views/system/menu/menuInfo.vue": () => import("./menuInfo-B-nGOcSv.js"),
3663
+ "../views/system/role-assign/RoleAssign.vue": () => import("./RoleAssign-7aZ3ufp5.js"),
3664
+ "../views/system/role-assign/RolePanel.vue": () => import("./RolePanel-CSe-UoR5.js"),
3665
+ "../views/system/role/AuthorityInfo.vue": () => import("./AuthorityInfo-Dc-7W4L_.js"),
3666
+ "../views/system/role/Role.vue": () => import("./Role-QTDJ16h8.js"),
3667
+ "../views/system/role/RolePanel.vue": () => import("./RolePanel-XXwmaAgy.js"),
3668
+ "../views/system/role/UserInfo.vue": () => import("./UserInfo-DJ5LRTMe.js"),
3669
+ "../views/system/sys/sys-config.vue": () => import("./sys-config-DuyYdzXL.js"),
3670
+ "../views/system/sysUser/SysUser.vue": () => import("./SysUser-DN5_46io.js"),
3671
+ "../views/system/sysUser/SysUserPanel.vue": () => import("./SysUserPanel-DTBNR42y.js"),
3672
+ "../views/uapp/pda/pda-app.vue": () => import("./pda-app-D5wBClj0.js"),
3673
+ "../views/udev/coderule/code-rule.vue": () => import("./code-rule-DVEoh1Z4.js"),
3674
+ "../views/udev/dict/DictView.vue": () => import("./DictView-13NoDgPW.js"),
3675
+ "../views/udev/dict/childView.vue": () => import("./childView-DrL_Qi-q.js"),
3676
+ "../views/udev/lov/childView.vue": () => import("./childView-CGZSd19y.js"),
3677
+ "../views/udev/lov/lov-view.vue": () => import("./lov-view-R8nnUEbA.js"),
3678
+ "../views/upms/interface/log-in.vue": () => import("./log-in-e7D5Ss1P.js"),
3679
+ "../views/upms/interface/log-out.vue": () => import("./log-out--RRncZhN.js"),
3680
+ "../views/upms/user/login-log.vue": () => import("./login-log-kqKzKTto.js"),
3681
+ "../views/urpt/dataSet/DataSet.vue": () => import("./DataSet-DT-rGICv.js"),
3682
+ "../views/urpt/design/DesignPanel.vue": () => import("./DesignPanel-CP8z6teZ.js"),
3683
+ "../views/urpt/design/Preview.vue": () => import("./Preview-DzOKwnp8.js"),
3684
+ "../views/urpt/design/ReportDesign.vue": () => import("./ReportDesign-f_ed8u_q.js"),
3685
+ "../views/urpt/query/ReportQuery.vue": () => import("./ReportQuery-D58gv_yZ.js"),
3686
+ "../views/urpt/query/ReportQueryFrom.vue": () => import("./ReportQueryFrom-R0R6EbYv.js"),
3687
+ "../views/urpt/report-request/ReportDefine.vue": () => import("./ReportDefine-DWJq2q0f.js"),
3688
+ "../views/urpt/static-resource/resource.vue": () => import("./resource-BXGSsXzw.js"),
3689
+ "../views/urpt/template/ReportTemplate.vue": () => import("./ReportTemplate-BTknctTT.js")
3690
+ }), pa = ne, st = [Cs, xs], ma = An(
3691
+ Oe(Ye(se(st)))
3692
+ ), As = se(st).concat(...ne), ha = Object.keys(ne).map((e) => ne[e].path);
3693
+ function ga() {
3694
+ x.getRoutes().forEach((e) => {
3695
+ const { name: t, meta: n } = e;
3696
+ t && x.hasRoute(t) && (n != null && n.backstage) && (x.removeRoute(t), x.options.routes = An(Oe(Ye(se(st)))));
3697
+ }), N().clearAllCachePage();
3698
+ }
3699
+ let Ke = null, x = null;
3700
+ function Os(e, t) {
3701
+ Ke = e, x = t, Object.assign(Ke, Fs);
3702
+ }
3703
+ function Ds() {
3704
+ return Ke;
3705
+ }
3706
+ const Ns = ["/login"], ya = (e, t, n) => {
3707
+ var i, a, c;
3708
+ const r = Z.get(ur), o = Gt(e == null ? void 0 : e.name);
3709
+ function s() {
3710
+ Ns.includes(e.fullPath) ? n(t.fullPath) : n();
3711
+ }
3712
+ if (t != null && t.name && (t == null ? void 0 : t.name) !== "login") {
3713
+ const u = (i = e.matched.find((d) => d.path === e.path || d.name === e.name && e.params)) == null ? void 0 : i.components;
3714
+ o ? (Hn(e == null ? void 0 : e.name), (a = ae) == null || a.done()) : u != null && u.default || e.name === "redirect" ? s() : n({ path: "/error/404" });
3715
+ } else
3716
+ N().wholeMenus.length === 0 && ws(r).then((u) => {
3717
+ var d;
3718
+ if (!q().getMultiTagsCache) {
3719
+ const { path: m } = e, w = Gn(ne, (p) => p.path === m) === -1 ? u.options.routes[0].children : u.options.routes, h = Fn(m, w);
3720
+ if (h && ((d = h.meta) != null && d.title)) {
3721
+ const { path: p, name: f, meta: b } = h;
3722
+ q().handleTags("push", { path: p, name: f, meta: b });
3723
+ }
3724
+ }
3725
+ Yn(e.name) && u.push(e.fullPath);
3726
+ }), t.fullPath === "/" && e.fullPath === "/login" && !((c = e.query) != null && c.tokenExpire) ? (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome") : t.fullPath === "/" && e.path === "/workflow/approve/index" && (e.path = "/welcome", e.fullPath = "/welcome", e.name = "SuHome", e.query = {}), s();
3727
+ };
3728
+ Vn(Yt, { serviceApi: Fe(), i18n: ls });
3729
+ const vs = {
3730
+ // 对组件内置的提示语进行国际化翻译
3731
+ // @ts-ignore
3732
+ i18n: (e, t) => fe().global.t(e, t),
3733
+ // 可选,对参数中的列头、校验提示..等进行自动翻译(只对支持国际化的有效)
3734
+ translate(e) {
3735
+ return e && ["message.", "el."].findIndex((n) => e.includes(n)) !== -1 ? fe().global.t.call(fe().global.locale, e) : e;
3736
+ }
3737
+ };
3738
+ function Ps(e = {}) {
3739
+ Yt.setConfig(Xe(vs, e)), Ze.interceptor.add("event.clearEdit", {
3740
+ tableInterceptorMethod(t) {
3741
+ const { $event: n } = t;
3742
+ if (n.target.className.indexOf("vxe-table--ignore-clear") > -1) return !1;
3743
+ }
3744
+ });
3745
+ }
3746
+ function wa(e) {
3747
+ Ze.setTheme(e);
3748
+ }
3749
+ var it = Object.defineProperty, Is = Object.getOwnPropertyDescriptor, Ls = Object.getOwnPropertyNames, Bs = Object.prototype.hasOwnProperty, Us = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ms = (e, t) => {
3750
+ for (var n in t) it(e, n, { get: t[n], enumerable: !0 });
3751
+ }, js = (e, t, n, r) => {
3752
+ if (t && typeof t == "object" || typeof t == "function") for (let o of Ls(t)) !Bs.call(e, o) && o !== n && it(e, o, { get: () => t[o], enumerable: !(r = Is(t, o)) || r.enumerable });
3753
+ return e;
3754
+ }, _s = (e, t, n) => (js(e, t, "default"), n), Ut = (e, t, n) => (Us(e, typeof t != "symbol" ? t + "" : t, n), n), at = {};
3755
+ Ms(at, { Vue: () => Kt });
3756
+ _s(at, Kt);
3757
+ var ye = class {
3758
+ static install(e, t) {
3759
+ let { nameSpace: n = this._nameSpace, memory: r } = t;
3760
+ return r && this.clearAll(n, r), new ye(e, t);
3761
+ }
3762
+ static clearAll(e, t) {
3763
+ Object.keys(t).forEach((n) => {
3764
+ let r = e + n;
3765
+ Object.prototype.hasOwnProperty.call(window.localStorage, r) && window.localStorage.removeItem(r);
3766
+ });
3767
+ }
3768
+ static get(e) {
3769
+ return JSON.parse(window.localStorage.getItem(e));
3770
+ }
3771
+ static set(e, t) {
3772
+ t = typeof t == "object" ? JSON.stringify(t) : t, window.localStorage.setItem(e, t);
3773
+ }
3774
+ static getData(e, t) {
3775
+ if (Object.prototype.hasOwnProperty.call(window.localStorage, this._getStaticKey(t, e))) return JSON.parse(window.localStorage.getItem(this._getStaticKey(t, e)));
3776
+ }
3777
+ constructor(e, t) {
3778
+ let n = ye, { version: r = 3, nameSpace: o = n._nameSpace, memory: s } = t, i = (u) => o + u, a = r === 3 ? (0, at.reactive)(s) : s;
3779
+ Object.keys(a).length === 0 && console.warn("key cannot be empty"), Object.keys(a).forEach((u) => {
3780
+ let d = a[u];
3781
+ n.set(i(u), d), Reflect.defineProperty(a, u, { get: () => n.get(i(u)), set: (m) => n.set(i(u), m), configurable: !0 }), r === 2 && e.util.defineReactive(a, u, a[u]);
3782
+ });
3783
+ let c = r === 3 ? e.config.globalProperties : e.prototype;
3784
+ Reflect.defineProperty(c, "$storage", { get: () => a });
3785
+ }
3786
+ }, j = ye;
3787
+ Ut(j, "_nameSpace", "rs-"), Ut(j, "_getStaticKey", (e, t) => `${e ?? ye._nameSpace}${t}`);
3788
+ const qs = (e, t) => {
3789
+ const n = M(), r = Object.assign(
3790
+ {
3791
+ // 国际化 默认中文zh
3792
+ locale: j.getData("locale", n) ?? {
3793
+ locale: t.Locale ?? "zh"
3794
+ },
3795
+ // layout模式以及主题
3796
+ layout: j.getData("layout", n) ?? {
3797
+ layout: t.Layout ?? "vertical",
3798
+ theme: t.Theme ?? "default",
3799
+ darkMode: t.DarkMode ?? !1,
3800
+ sidebarStatus: t.SidebarStatus ?? !0,
3801
+ epThemeColor: t.EpThemeColor ?? "#409EFF",
3802
+ themeColor: t.Theme ?? "light",
3803
+ // 主题色(对应项目配置中的主题色,与theme不同的是它不会受到浅色、深色整体风格切换的影响,只会在手动点击主题色时改变)
3804
+ overallStyle: t.OverallStyle ?? "light"
3805
+ // 整体风格(浅色:light、深色:dark、自动:system)
3806
+ },
3807
+ configure: j.getData("configure", n) ?? {
3808
+ grey: t.Grey ?? !1,
3809
+ weak: t.Weak ?? !1,
3810
+ hideTabs: t.HideTabs ?? !1,
3811
+ showLogo: t.ShowLogo ?? !0,
3812
+ showModel: t.ShowModel ?? "smart",
3813
+ multiTagsCache: t.MultiTagsCache ?? !1
3814
+ },
3815
+ cnd: j.getData("cnd", n) ?? {}
3816
+ },
3817
+ t.MultiTagsCache ? {
3818
+ // 默认显示首页tag
3819
+ tags: j.getData("tags", n) ?? ot
3820
+ } : {}
3821
+ );
3822
+ e.use(j, { nameSpace: n, memory: r });
3823
+ }, zs = (e) => {
3824
+ var o;
3825
+ if (!e) return !0;
3826
+ const t = (o = x.currentRoute.value.meta) == null ? void 0 : o.permissionCode;
3827
+ if (!t) return !0;
3828
+ Xn(e) || (e = [e]);
3829
+ const n = N().getButtonAuth;
3830
+ if (!n) return !0;
3831
+ let r = !1;
3832
+ return e.forEach((s) => {
3833
+ if (!r) {
3834
+ const i = `${t}.${s}`;
3835
+ r = n.includes(i);
3836
+ }
3837
+ }), r;
3838
+ }, Dn = Object.freeze(
3839
+ {
3840
+ left: 0,
3841
+ top: 0,
3842
+ width: 16,
3843
+ height: 16
3844
+ }
3845
+ ), we = Object.freeze({
3846
+ rotate: 0,
3847
+ vFlip: !1,
3848
+ hFlip: !1
3849
+ }), ut = Object.freeze({
3850
+ ...Dn,
3851
+ ...we
3852
+ }), We = Object.freeze({
3853
+ ...ut,
3854
+ body: "",
3855
+ hidden: !1
3856
+ });
3857
+ function $s(e, t) {
3858
+ const n = {};
3859
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
3860
+ const r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
3861
+ return r && (n.rotate = r), n;
3862
+ }
3863
+ function Mt(e, t) {
3864
+ const n = $s(e, t);
3865
+ for (const r in We)
3866
+ r in we ? r in e && !(r in n) && (n[r] = we[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
3867
+ return n;
3868
+ }
3869
+ function Hs(e, t) {
3870
+ const n = e.icons, r = e.aliases || /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ Object.create(null);
3871
+ function s(i) {
3872
+ if (n[i])
3873
+ return o[i] = [];
3874
+ if (!(i in o)) {
3875
+ o[i] = null;
3876
+ const a = r[i] && r[i].parent, c = a && s(a);
3877
+ c && (o[i] = [a].concat(c));
3878
+ }
3879
+ return o[i];
3880
+ }
3881
+ return Object.keys(n).concat(Object.keys(r)).forEach(s), o;
3882
+ }
3883
+ function Vs(e, t, n) {
3884
+ const r = e.icons, o = e.aliases || /* @__PURE__ */ Object.create(null);
3885
+ let s = {};
3886
+ function i(a) {
3887
+ s = Mt(
3888
+ r[a] || o[a],
3889
+ s
3890
+ );
3891
+ }
3892
+ return i(t), n.forEach(i), Mt(e, s);
3893
+ }
3894
+ function Js(e, t) {
3895
+ const n = [];
3896
+ if (typeof e != "object" || typeof e.icons != "object")
3897
+ return n;
3898
+ e.not_found instanceof Array && e.not_found.forEach((o) => {
3899
+ t(o, null), n.push(o);
3900
+ });
3901
+ const r = Hs(e);
3902
+ for (const o in r) {
3903
+ const s = r[o];
3904
+ s && (t(o, Vs(e, o, s)), n.push(o));
3905
+ }
3906
+ return n;
3907
+ }
3908
+ const Ks = {
3909
+ provider: "",
3910
+ aliases: {},
3911
+ not_found: {},
3912
+ ...Dn
3913
+ };
3914
+ function Ue(e, t) {
3915
+ for (const n in t)
3916
+ if (n in e && typeof e[n] != typeof t[n])
3917
+ return !1;
3918
+ return !0;
3919
+ }
3920
+ function Ws(e) {
3921
+ if (typeof e != "object" || e === null)
3922
+ return null;
3923
+ const t = e;
3924
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !Ue(e, Ks))
3925
+ return null;
3926
+ const n = t.icons;
3927
+ for (const o in n) {
3928
+ const s = n[o];
3929
+ if (
3930
+ // Name cannot be empty
3931
+ !o || // Must have body
3932
+ typeof s.body != "string" || // Check other props
3933
+ !Ue(
3934
+ s,
3935
+ We
3936
+ )
3937
+ )
3938
+ return null;
3939
+ }
3940
+ const r = t.aliases || /* @__PURE__ */ Object.create(null);
3941
+ for (const o in r) {
3942
+ const s = r[o], i = s.parent;
3943
+ if (
3944
+ // Name cannot be empty
3945
+ !o || // Parent must be set and point to existing icon
3946
+ typeof i != "string" || !n[i] && !r[i] || // Check other props
3947
+ !Ue(
3948
+ s,
3949
+ We
3950
+ )
3951
+ )
3952
+ return null;
3953
+ }
3954
+ return t;
3955
+ }
3956
+ const Nn = Object.freeze({
3957
+ width: null,
3958
+ height: null
3959
+ }), vn = Object.freeze({
3960
+ // Dimensions
3961
+ ...Nn,
3962
+ // Transformations
3963
+ ...we
3964
+ });
3965
+ function Gs(e, t) {
3966
+ const n = {
3967
+ ...e
3968
+ };
3969
+ for (const r in t) {
3970
+ const o = t[r], s = typeof o;
3971
+ r in Nn ? (o === null || o && (s === "string" || s === "number")) && (n[r] = o) : s === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
3972
+ }
3973
+ return n;
3974
+ }
3975
+ const Ys = /[\s,]+/;
3976
+ function Xs(e, t) {
3977
+ t.split(Ys).forEach((n) => {
3978
+ switch (n.trim()) {
3979
+ case "horizontal":
3980
+ e.hFlip = !0;
3981
+ break;
3982
+ case "vertical":
3983
+ e.vFlip = !0;
3984
+ break;
3985
+ }
3986
+ });
3987
+ }
3988
+ function Qs(e, t = 0) {
3989
+ const n = e.replace(/^-?[0-9.]*/, "");
3990
+ function r(o) {
3991
+ for (; o < 0; )
3992
+ o += 4;
3993
+ return o % 4;
3994
+ }
3995
+ if (n === "") {
3996
+ const o = parseInt(e);
3997
+ return isNaN(o) ? 0 : r(o);
3998
+ } else if (n !== e) {
3999
+ let o = 0;
4000
+ switch (n) {
4001
+ case "%":
4002
+ o = 25;
4003
+ break;
4004
+ case "deg":
4005
+ o = 90;
4006
+ }
4007
+ if (o) {
4008
+ let s = parseFloat(e.slice(0, e.length - n.length));
4009
+ return isNaN(s) ? 0 : (s = s / o, s % 1 === 0 ? r(s) : 0);
4010
+ }
4011
+ }
4012
+ return t;
4013
+ }
4014
+ const Zs = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ei = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
4015
+ function jt(e, t, n) {
4016
+ if (t === 1)
4017
+ return e;
4018
+ if (n = n || 100, typeof e == "number")
4019
+ return Math.ceil(e * t * n) / n;
4020
+ if (typeof e != "string")
4021
+ return e;
4022
+ const r = e.split(Zs);
4023
+ if (r === null || !r.length)
4024
+ return e;
4025
+ const o = [];
4026
+ let s = r.shift(), i = ei.test(s);
4027
+ for (; ; ) {
4028
+ if (i) {
4029
+ const a = parseFloat(s);
4030
+ isNaN(a) ? o.push(s) : o.push(Math.ceil(a * t * n) / n);
4031
+ } else
4032
+ o.push(s);
4033
+ if (s = r.shift(), s === void 0)
4034
+ return o.join("");
4035
+ i = !i;
4036
+ }
4037
+ }
4038
+ function ti(e, t = "defs") {
4039
+ let n = "";
4040
+ const r = e.indexOf("<" + t);
4041
+ for (; r >= 0; ) {
4042
+ const o = e.indexOf(">", r), s = e.indexOf("</" + t);
4043
+ if (o === -1 || s === -1)
4044
+ break;
4045
+ const i = e.indexOf(">", s);
4046
+ if (i === -1)
4047
+ break;
4048
+ n += e.slice(o + 1, s).trim(), e = e.slice(0, r).trim() + e.slice(i + 1);
4049
+ }
4050
+ return {
4051
+ defs: n,
4052
+ content: e
4053
+ };
4054
+ }
4055
+ function ni(e, t) {
4056
+ return e ? "<defs>" + e + "</defs>" + t : t;
4057
+ }
4058
+ function ri(e, t, n) {
4059
+ const r = ti(e);
4060
+ return ni(r.defs, t + r.content + n);
4061
+ }
4062
+ const oi = (e) => e === "unset" || e === "undefined" || e === "none";
4063
+ function si(e, t) {
4064
+ const n = {
4065
+ ...ut,
4066
+ ...e
4067
+ }, r = {
4068
+ ...vn,
4069
+ ...t
4070
+ }, o = {
4071
+ left: n.left,
4072
+ top: n.top,
4073
+ width: n.width,
4074
+ height: n.height
4075
+ };
4076
+ let s = n.body;
4077
+ [n, r].forEach((p) => {
4078
+ const f = [], b = p.hFlip, S = p.vFlip;
4079
+ let E = p.rotate;
4080
+ b ? S ? E += 2 : (f.push(
4081
+ "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
4082
+ ), f.push("scale(-1 1)"), o.top = o.left = 0) : S && (f.push(
4083
+ "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
4084
+ ), f.push("scale(1 -1)"), o.top = o.left = 0);
4085
+ let C;
4086
+ switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
4087
+ case 1:
4088
+ C = o.height / 2 + o.top, f.unshift(
4089
+ "rotate(90 " + C.toString() + " " + C.toString() + ")"
4090
+ );
4091
+ break;
4092
+ case 2:
4093
+ f.unshift(
4094
+ "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
4095
+ );
4096
+ break;
4097
+ case 3:
4098
+ C = o.width / 2 + o.left, f.unshift(
4099
+ "rotate(-90 " + C.toString() + " " + C.toString() + ")"
4100
+ );
4101
+ break;
4102
+ }
4103
+ E % 2 === 1 && (o.left !== o.top && (C = o.left, o.left = o.top, o.top = C), o.width !== o.height && (C = o.width, o.width = o.height, o.height = C)), f.length && (s = ri(
4104
+ s,
4105
+ '<g transform="' + f.join(" ") + '">',
4106
+ "</g>"
4107
+ ));
4108
+ });
4109
+ const i = r.width, a = r.height, c = o.width, u = o.height;
4110
+ let d, m;
4111
+ i === null ? (m = a === null ? "1em" : a === "auto" ? u : a, d = jt(m, c / u)) : (d = i === "auto" ? c : i, m = a === null ? jt(d, u / c) : a === "auto" ? u : a);
4112
+ const y = {}, w = (p, f) => {
4113
+ oi(f) || (y[p] = f.toString());
4114
+ };
4115
+ w("width", d), w("height", m);
4116
+ const h = [o.left, o.top, c, u];
4117
+ return y.viewBox = h.join(" "), {
4118
+ attributes: y,
4119
+ viewBox: h,
4120
+ body: s
4121
+ };
4122
+ }
4123
+ const ii = /\sid="(\S+)"/g, ai = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
4124
+ let ui = 0;
4125
+ function li(e, t = ai) {
4126
+ const n = [];
4127
+ let r;
4128
+ for (; r = ii.exec(e); )
4129
+ n.push(r[1]);
4130
+ if (!n.length)
4131
+ return e;
4132
+ const o = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
4133
+ return n.forEach((s) => {
4134
+ const i = typeof t == "function" ? t(s) : t + (ui++).toString(), a = s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
4135
+ e = e.replace(
4136
+ // Allowed characters before id: [#;"]
4137
+ // Allowed characters after id: [)"], .[a-z]
4138
+ new RegExp('([#;"])(' + a + ')([")]|\\.[a-z])', "g"),
4139
+ "$1" + i + o + "$3"
4140
+ );
4141
+ }), e = e.replace(new RegExp(o, "g"), ""), e;
4142
+ }
4143
+ function ci(e, t) {
4144
+ let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
4145
+ for (const r in t)
4146
+ n += " " + r + '="' + t[r] + '"';
4147
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
4148
+ }
4149
+ function di(e) {
4150
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
4151
+ }
4152
+ function fi(e) {
4153
+ return "data:image/svg+xml," + di(e);
4154
+ }
4155
+ function pi(e) {
4156
+ return 'url("' + fi(e) + '")';
4157
+ }
4158
+ const _t = {
4159
+ ...vn,
4160
+ inline: !1
4161
+ }, mi = {
4162
+ xmlns: "http://www.w3.org/2000/svg",
4163
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
4164
+ "aria-hidden": !0,
4165
+ role: "img"
4166
+ }, hi = {
4167
+ display: "inline-block"
4168
+ }, Ge = {
4169
+ backgroundColor: "currentColor"
4170
+ }, Pn = {
4171
+ backgroundColor: "transparent"
4172
+ }, qt = {
4173
+ Image: "var(--svg)",
4174
+ Repeat: "no-repeat",
4175
+ Size: "100% 100%"
4176
+ }, zt = {
4177
+ webkitMask: Ge,
4178
+ mask: Ge,
4179
+ background: Pn
4180
+ };
4181
+ for (const e in zt) {
4182
+ const t = zt[e];
4183
+ for (const n in qt)
4184
+ t[e + n] = qt[n];
4185
+ }
4186
+ const me = {};
4187
+ ["horizontal", "vertical"].forEach((e) => {
4188
+ const t = e.slice(0, 1) + "Flip";
4189
+ me[e + "-flip"] = t, me[e.slice(0, 1) + "-flip"] = t, me[e + "Flip"] = t;
4190
+ });
4191
+ function $t(e) {
4192
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
4193
+ }
4194
+ const gi = (e, t) => {
4195
+ const n = Gs(_t, t), r = { ...mi }, o = t.mode || "svg", s = {}, i = t.style, a = typeof i == "object" && !(i instanceof Array) ? i : {};
4196
+ for (let p in t) {
4197
+ const f = t[p];
4198
+ if (f !== void 0)
4199
+ switch (p) {
4200
+ // Properties to ignore
4201
+ case "icon":
4202
+ case "style":
4203
+ case "onLoad":
4204
+ case "mode":
4205
+ case "ssr":
4206
+ break;
4207
+ // Boolean attributes
4208
+ case "inline":
4209
+ case "hFlip":
4210
+ case "vFlip":
4211
+ n[p] = f === !0 || f === "true" || f === 1;
4212
+ break;
4213
+ // Flip as string: 'horizontal,vertical'
4214
+ case "flip":
4215
+ typeof f == "string" && Xs(n, f);
4216
+ break;
4217
+ // Color: override style
4218
+ case "color":
4219
+ s.color = f;
4220
+ break;
4221
+ // Rotation as string
4222
+ case "rotate":
4223
+ typeof f == "string" ? n[p] = Qs(f) : typeof f == "number" && (n[p] = f);
4224
+ break;
4225
+ // Remove aria-hidden
4226
+ case "ariaHidden":
4227
+ case "aria-hidden":
4228
+ f !== !0 && f !== "true" && delete r["aria-hidden"];
4229
+ break;
4230
+ default: {
4231
+ const b = me[p];
4232
+ b ? (f === !0 || f === "true" || f === 1) && (n[b] = !0) : _t[p] === void 0 && (r[p] = f);
4233
+ }
4234
+ }
4235
+ }
4236
+ const c = si(e, n), u = c.attributes;
4237
+ if (n.inline && (s.verticalAlign = "-0.125em"), o === "svg") {
4238
+ r.style = {
4239
+ ...s,
4240
+ ...a
4241
+ }, Object.assign(r, u);
4242
+ let p = 0, f = t.id;
4243
+ return typeof f == "string" && (f = f.replace(/-/g, "_")), r.innerHTML = li(c.body, f ? () => f + "ID" + p++ : "iconifyVue"), _("svg", r);
4244
+ }
4245
+ const { body: d, width: m, height: y } = e, w = o === "mask" || (o === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = ci(d, {
4246
+ ...u,
4247
+ width: m + "",
4248
+ height: y + ""
4249
+ });
4250
+ return r.style = {
4251
+ ...s,
4252
+ "--svg": pi(h),
4253
+ width: $t(u.width),
4254
+ height: $t(u.height),
4255
+ ...hi,
4256
+ ...w ? Ge : Pn,
4257
+ ...a
4258
+ }, _("span", r);
4259
+ }, lt = /* @__PURE__ */ Object.create(null);
4260
+ function yi(e, t) {
4261
+ lt[e] = t;
4262
+ }
4263
+ function ba(e, t) {
4264
+ const n = typeof e.prefix == "string" ? e.prefix + ":" : "";
4265
+ Ws(e) && Js(e, (r, o) => {
4266
+ o && (lt[n + r] = o);
4267
+ });
4268
+ }
4269
+ const Ht = W({
4270
+ // Do not inherit other attributes: it is handled by render()
4271
+ inheritAttrs: !1,
4272
+ // Render icon
4273
+ render() {
4274
+ const e = this.$attrs, t = e.icon, n = typeof t == "string" ? lt[t] : typeof t == "object" ? t : null;
4275
+ return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : gi({
4276
+ ...ut,
4277
+ ...n
4278
+ }, e);
4279
+ }
4280
+ }), wi = W({
4281
+ name: "IconOffline",
4282
+ components: { IconifyIcon: Ht },
4283
+ props: {
4284
+ icon: {
4285
+ default: null
4286
+ }
4287
+ },
4288
+ render() {
4289
+ typeof this.icon == "object" && yi(this.icon, this.icon);
4290
+ const e = this.$attrs;
4291
+ return _(
4292
+ Ht,
4293
+ {
4294
+ icon: this.icon,
4295
+ style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4296
+ ...e
4297
+ },
4298
+ {
4299
+ default: () => []
4300
+ }
4301
+ );
4302
+ }
4303
+ });
4304
+ W({
4305
+ name: "IconifyIconOnline",
4306
+ components: { IconifyIcon: ht },
4307
+ props: {
4308
+ icon: {
4309
+ type: String,
4310
+ default: ""
4311
+ }
4312
+ },
4313
+ render() {
4314
+ const e = this.$attrs;
4315
+ return _(
4316
+ ht,
4317
+ {
4318
+ icon: `${this.icon}`,
4319
+ style: e != null && e.style ? Object.assign(e.style, { outline: "none" }) : { outline: "none" },
4320
+ ...e
4321
+ },
4322
+ {
4323
+ default: () => []
4324
+ }
4325
+ );
4326
+ }
4327
+ });
4328
+ const bi = W({
4329
+ name: "FontIcon",
4330
+ props: {
4331
+ icon: {
4332
+ type: String,
4333
+ default: ""
4334
+ }
4335
+ },
4336
+ render() {
4337
+ const e = this.$attrs;
4338
+ return Object.keys(e).includes("uni") || (e == null ? void 0 : e.iconType) === "uni" ? _(
4339
+ "i",
4340
+ {
4341
+ class: "iconfont",
4342
+ ...e
4343
+ },
4344
+ this.icon
4345
+ ) : Object.keys(e).includes("svg") || (e == null ? void 0 : e.iconType) === "svg" ? _(
4346
+ "svg",
4347
+ {
4348
+ class: "icon-svg",
4349
+ "aria-hidden": !0
4350
+ },
4351
+ {
4352
+ default: () => [
4353
+ _("use", {
4354
+ "xlink:href": `#${this.icon}`
4355
+ })
4356
+ ]
4357
+ }
4358
+ ) : _("i", {
4359
+ class: `iconfont ${this.icon}`,
4360
+ ...e
4361
+ });
4362
+ }
4363
+ }), Ei = wi, Si = bi, Ti = {
4364
+ mounted(e, t) {
4365
+ var r;
4366
+ const { value: n } = t;
4367
+ if (n) {
4368
+ const s = `${(r = x.currentRoute.value.meta) == null ? void 0 : r.prefixAuth}.${n}`;
4369
+ N().getButtonAuth.includes(s) || e.parentNode.removeChild(e);
4370
+ } else
4371
+ throw new Error(`need roles! Like v-auth="['admin','test']"`);
4372
+ }
4373
+ };
4374
+ function Ci(e) {
4375
+ return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, n) {
4376
+ var r = e.get(t);
4377
+ r ? r.push(n) : e.set(t, [n]);
4378
+ }, off: function(t, n) {
4379
+ var r = e.get(t);
4380
+ r && (n ? r.splice(r.indexOf(n) >>> 0, 1) : e.set(t, []));
4381
+ }, emit: function(t, n) {
4382
+ var r = e.get(t);
4383
+ r && r.slice().map(function(o) {
4384
+ o(n);
4385
+ }), (r = e.get("*")) && r.slice().map(function(o) {
4386
+ o(t, n);
4387
+ });
4388
+ } };
4389
+ }
4390
+ const Ri = Ci(), Vt = nr({
4391
+ strategy: "scroll"
4392
+ }), xi = {
4393
+ mounted(e, t, n) {
4394
+ Vt.listenTo(e, (r) => {
4395
+ const o = r.offsetWidth, s = r.offsetHeight;
4396
+ t != null && t.instance ? Ri.emit("resize", { detail: { width: o, height: s } }) : n.el.dispatchEvent(new CustomEvent("resize", { detail: { width: o, height: s } }));
4397
+ });
4398
+ },
4399
+ unmounted(e) {
4400
+ Vt.uninstall(e);
4401
+ }
4402
+ }, Jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4403
+ __proto__: null,
4404
+ auth: Ti,
4405
+ resize: xi
4406
+ }, Symbol.toStringTag, { value: "Module" })), v = _n(Wo);
4407
+ v.use(tr, {
4408
+ defaultProps: { animation: "perspective" }
4409
+ });
4410
+ const ki = (e) => {
4411
+ e.config.globalProperties.$hasAuthority = zs, e.config.globalProperties.$serviceApi = Fe(), e.config.globalProperties.$url = L();
4412
+ }, Fi = (e) => {
4413
+ Object.keys(Jt).forEach((t) => {
4414
+ e.directive(t, Jt[t]);
4415
+ });
4416
+ }, Ea = ({ router: e, config: t, lang: n, views: r, env: o, tableConfig: s }) => (Os(r, e), v.use(e), $o(e), qo(v, t), zo(o), Ps(s), new Promise((i) => {
4417
+ us(v, n), v.component("IconifyIconOffline", Ei), v.component("FontIcon", Si), v.use(er, { defaultOptions: { zIndex: 9999 } }), ki(v), Fi(v), Go(v), qs(v, t), i({ app: v, router: e });
4418
+ })), Ai = {
4419
+ onLogined: () => {
4420
+ },
4421
+ onBeforeLogout: () => {
4422
+ }
4423
+ }, Sa = () => {
4424
+ Ai.onLogined();
4425
+ };
4426
+ export {
4427
+ la as A,
4428
+ ca as B,
4429
+ fa as C,
4430
+ ps as D,
4431
+ Sa as E,
4432
+ Si as F,
4433
+ Ea as G,
4434
+ zs as H,
4435
+ Ei as I,
4436
+ Ai as J,
4437
+ ya as K,
4438
+ ma as L,
4439
+ pa as M,
4440
+ Jo as _,
4441
+ ba as a,
4442
+ yi as b,
4443
+ da as c,
4444
+ N as d,
4445
+ pe as e,
4446
+ Fn as f,
4447
+ rt as g,
4448
+ Ri as h,
4449
+ Dt as i,
4450
+ ot as j,
4451
+ ar as k,
4452
+ Hi as l,
4453
+ $i as m,
4454
+ ur as n,
4455
+ ga as o,
4456
+ ha as p,
4457
+ Fe as q,
4458
+ x as r,
4459
+ Ae as s,
4460
+ ls as t,
4461
+ q as u,
4462
+ M as v,
4463
+ bs as w,
4464
+ L as x,
4465
+ Ss as y,
4466
+ wa as z
4467
+ };