@ajaxjs/ui 1.3.11 → 1.4.0

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 (52) hide show
  1. package/README.md +1 -30
  2. package/dist/ajaxjs-ui.cjs.js +1 -0
  3. package/dist/ajaxjs-ui.es.js +33 -0
  4. package/dist/ajaxjs-ui.umd.js +1 -0
  5. package/dist/types/index.d.ts +1 -0
  6. package/dist/utils.d.ts +18 -0
  7. package/package.json +54 -49
  8. package/.browserslistrc +0 -3
  9. package/.eslintrc.js +0 -26
  10. package/babel.config.js +0 -5
  11. package/deprecated/api-helper.zip +0 -0
  12. package/deprecated/api-helper2.zip +0 -0
  13. package/deprecated/api-selector.zip +0 -0
  14. package/deprecated/common-ui.zip +0 -0
  15. package/deprecated/data-source.zip +0 -0
  16. package/deprecated/table-selector.zip +0 -0
  17. package/deprecated/utils.js +0 -220
  18. package/dist/@ajaxjs/ui.common.js +0 -4321
  19. package/dist/@ajaxjs/ui.common.js.map +0 -1
  20. package/dist/@ajaxjs/ui.css +0 -1
  21. package/dist/@ajaxjs/ui.umd.js +0 -4332
  22. package/dist/@ajaxjs/ui.umd.js.map +0 -1
  23. package/dist/@ajaxjs/ui.umd.min.js +0 -2
  24. package/dist/@ajaxjs/ui.umd.min.js.map +0 -1
  25. package/dist/demo.html +0 -1
  26. package/examples/App.vue +0 -137
  27. package/public/favicon.ico +0 -0
  28. package/public/index.html +0 -17
  29. package/src/data-source/data-source.less +0 -46
  30. package/src/data-source/data-source.ts +0 -97
  31. package/src/data-source/data-source.vue +0 -59
  32. package/src/iam/iam.ts +0 -65
  33. package/src/iam/user.vue +0 -53
  34. package/src/index.js +0 -52
  35. package/src/iview-ext/fast-iview-table.ts +0 -133
  36. package/src/iview-ext/fast-iview-table.vue +0 -67
  37. package/src/iview-ext/list.ts +0 -108
  38. package/src/iview-ext/table-selector.vue +0 -185
  39. package/src/iview-ext/tips.vue +0 -17
  40. package/src/libs/api-helper.d.ts +0 -194
  41. package/src/libs/api-list.d.ts +0 -15
  42. package/src/libs/common.d.ts +0 -201
  43. package/src/libs/entity.ts +0 -31
  44. package/src/libs/iview-widgets.ts +0 -73
  45. package/src/main.ts +0 -7
  46. package/src/shims-tsx.d.ts +0 -11
  47. package/src/shims-vue.d.ts +0 -4
  48. package/src/style/common-functions.less +0 -286
  49. package/src/style/reset.less +0 -19
  50. package/src/style/reset2.less +0 -49
  51. package/tsconfig.json +0 -40
  52. package/vue.config.js +0 -14
@@ -1,4321 +0,0 @@
1
- /******/ (function() { // webpackBootstrap
2
- /******/ var __webpack_modules__ = ({
3
-
4
- /***/ 4043:
5
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6
-
7
- "use strict";
8
- // ESM COMPAT FLAG
9
- __webpack_require__.r(__webpack_exports__);
10
-
11
- // EXPORTS
12
- __webpack_require__.d(__webpack_exports__, {
13
- "default": function() { return /* binding */ data_source; }
14
- });
15
-
16
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/data-source/data-source.vue?vue&type=template&id=79e01278&scoped=true
17
- var render = function render() {
18
- var _vm = this,
19
- _c = _vm._self._c,
20
- _setup = _vm._self._setupProxy;
21
- return _c('div', {
22
- staticClass: "datasource",
23
- staticStyle: {
24
- "overflow": "hidden"
25
- }
26
- }, [_c('div', {
27
- staticClass: "left"
28
- }, [_c('ul', _vm._l(_vm.datasources, function (datasource) {
29
- return _c('li', {
30
- key: datasource.id,
31
- class: {
32
- actived: _vm.activedItem == datasource.id
33
- },
34
- on: {
35
- "click": function ($event) {
36
- return _vm.active(datasource);
37
- }
38
- }
39
- }, [_c('span', [_c('Icon', {
40
- staticClass: "del-icon",
41
- attrs: {
42
- "type": "md-trash",
43
- "title": "删除此数据源"
44
- },
45
- on: {
46
- "click": function ($event) {
47
- return _vm.del(datasource.id, datasource.name);
48
- }
49
- }
50
- })], 1), _vm._v(" " + _vm._s(datasource.name) + " ")]);
51
- }), 0), _c('a', {
52
- staticClass: "add",
53
- on: {
54
- "click": _vm.add
55
- }
56
- }, [_vm._v("+ 新建……")])]), _c('div', {
57
- staticClass: "right"
58
- }, [_c('i-Form', {
59
- ref: "editForm",
60
- staticStyle: {
61
- "margin-right": "100px"
62
- },
63
- attrs: {
64
- "model": _vm.form.data,
65
- "rules": _vm.form.rules,
66
- "label-width": 120
67
- }
68
- }, [_c('form-item', {
69
- attrs: {
70
- "label": "数据源名称",
71
- "prop": "name"
72
- }
73
- }, [_c('i-Input', {
74
- attrs: {
75
- "placeholder": "数据源名称"
76
- },
77
- model: {
78
- value: _vm.form.data.name,
79
- callback: function ($$v) {
80
- _vm.$set(_vm.form.data, "name", $$v);
81
- },
82
- expression: "form.data.name"
83
- }
84
- })], 1), _c('form-item', {
85
- attrs: {
86
- "label": "数据源编码",
87
- "prop": "urlDir"
88
- }
89
- }, [_c('i-Input', {
90
- attrs: {
91
- "placeholder": "数据源编码全局唯一不重复"
92
- },
93
- model: {
94
- value: _vm.form.data.urlDir,
95
- callback: function ($$v) {
96
- _vm.$set(_vm.form.data, "urlDir", $$v);
97
- },
98
- expression: "form.data.urlDir"
99
- }
100
- })], 1), _c('form-item', {
101
- attrs: {
102
- "label": "数据库类型",
103
- "prop": "type"
104
- }
105
- }, [_c('i-Select', {
106
- model: {
107
- value: _vm.form.data.type,
108
- callback: function ($$v) {
109
- _vm.$set(_vm.form.data, "type", $$v);
110
- },
111
- expression: "form.data.type"
112
- }
113
- }, _vm._l(_vm.DBType, function (value, key) {
114
- return _c('i-Option', {
115
- key: key,
116
- attrs: {
117
- "value": key
118
- }
119
- }, [_vm._v(_vm._s(value))]);
120
- }), 1)], 1), _c('form-item', {
121
- attrs: {
122
- "label": "连接地址",
123
- "prop": "url"
124
- }
125
- }, [_c('i-Input', {
126
- attrs: {
127
- "maxlength": "200",
128
- "show-word-limit": "",
129
- "type": "textarea",
130
- "rows": 4,
131
- "placeholder": "数据库连接 URL,注意无须携带用户名和密码,且不需要 URL 转义"
132
- },
133
- model: {
134
- value: _vm.form.data.url,
135
- callback: function ($$v) {
136
- _vm.$set(_vm.form.data, "url", $$v);
137
- },
138
- expression: "form.data.url"
139
- }
140
- })], 1), _c('form-item', {
141
- attrs: {
142
- "label": "登录用户",
143
- "prop": "username"
144
- }
145
- }, [_c('i-Input', {
146
- attrs: {
147
- "placeholder": "请输入数据库用户账号"
148
- },
149
- model: {
150
- value: _vm.form.data.username,
151
- callback: function ($$v) {
152
- _vm.$set(_vm.form.data, "username", $$v);
153
- },
154
- expression: "form.data.username"
155
- }
156
- })], 1), _c('form-item', {
157
- attrs: {
158
- "label": "登录密码",
159
- "prop": "password"
160
- }
161
- }, [_c('i-Input', {
162
- attrs: {
163
- "type": "password",
164
- "password": "",
165
- "placeholder": "请输入账号密码"
166
- },
167
- model: {
168
- value: _vm.form.data.password,
169
- callback: function ($$v) {
170
- _vm.$set(_vm.form.data, "password", $$v);
171
- },
172
- expression: "form.data.password"
173
- }
174
- })], 1), _c('form-item', {
175
- attrs: {
176
- "label": "是否跨库",
177
- "prop": "crossDb"
178
- }
179
- }, [_c('i-switch', {
180
- model: {
181
- value: _vm.form.data.crossDb,
182
- callback: function ($$v) {
183
- _vm.$set(_vm.form.data, "crossDb", $$v);
184
- },
185
- expression: "form.data.crossDb"
186
- }
187
- })], 1)], 1), _c('div', {
188
- attrs: {
189
- "align": "center"
190
- }
191
- }, [!_vm.activedItem ? _c('i-Button', {
192
- attrs: {
193
- "icon": "md-checkmark"
194
- },
195
- on: {
196
- "click": _vm.create
197
- }
198
- }, [_vm._v("保存新建")]) : _vm._e(), _vm.activedItem ? _c('i-Button', {
199
- on: {
200
- "click": _vm.update
201
- }
202
- }, [_vm._v("保存")]) : _vm._e(), _vm._v("   "), _vm.activedItem ? _c('i-Button', {
203
- on: {
204
- "click": _vm.test
205
- }
206
- }, [_vm._v("测试连接")]) : _vm._e(), _vm._v("   "), _vm.activedItem ? _c('i-Button', {
207
- on: {
208
- "click": function ($event) {
209
- return _vm.$emit('change_datasource', _vm.form.data);
210
- }
211
- }
212
- }, [_vm._v("切换")]) : _vm._e()], 1)], 1)]);
213
- };
214
- var staticRenderFns = [];
215
-
216
- // EXTERNAL MODULE: ./node_modules/@ajaxjs/util/dist/index.esm.js
217
- var index_esm = __webpack_require__(2957);
218
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
219
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
220
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
221
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./src/data-source/data-source.ts?vue&type=script&lang=ts&external
222
-
223
-
224
- const DBType = {
225
- 'MY_SQL': 'MySQL',
226
- 'ORACLE': 'Oracle',
227
- 'SQL_SERVER': 'Sql Server',
228
- 'SPARK': 'Spark',
229
- 'SQLITE': 'SQLite',
230
- DB2: 'DB2'
231
- };
232
- // @ts-ignore xxxxxxxx
233
- const DATASOURCE_API = window.API_ROOT ? API_ROOT + '/data_service/datasource' : '../../data_service/datasource';
234
- // @ts-ignore xxxxxxxxxx
235
- const DATA_SERVICE_API = window.API_ROOT ? API_ROOT + '/data_service/admin' : '../../data_service/admin';
236
- /* harmony default export */ var data_sourcevue_type_script_lang_ts_external = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
237
- name: 'DataSource',
238
- data() {
239
- return {
240
- isCreate: true,
241
- datasources: [{
242
- id: 1,
243
- name: '加载中……'
244
- }],
245
- activedItem: null,
246
- editing: {},
247
- form: {
248
- data: {},
249
- rules: {
250
- name: [{
251
- required: true,
252
- message: '数据源名称不能为空',
253
- trigger: 'blur'
254
- }]
255
- }
256
- },
257
- DBType: DBType
258
- };
259
- },
260
- mounted() {
261
- this.getList();
262
- },
263
- methods: {
264
- active(item) {
265
- this.activedItem = item.id;
266
- this.form.data = item;
267
- },
268
- getList(cb) {
269
- // @ts-ignore xxxx
270
- xhr_get(`${window.config.dsApiRoot}/datasource`, j => {
271
- this.datasources = j.data;
272
- }, {
273
- start: 0,
274
- limit: 99
275
- });
276
- },
277
- add() {
278
- this.activedItem = null;
279
- this.form.data = {
280
- name: ''
281
- };
282
- },
283
- create() {
284
- this.$refs.editForm.validate(valid => {
285
- if (valid) {
286
- index_esm/* Xhr */.TF.xhr_post(DATASOURCE_API, this.form.data, j => {
287
- if (j.status === 1) {
288
- const newlyId = j.data;
289
- this.getList(() => this.activedItem = newlyId);
290
- this.$Message.success('创建数据源成功');
291
- this.form.data.id = newlyId;
292
- }
293
- });
294
- } else this.$Message.error('表单验证不通过');
295
- });
296
- },
297
- update() {
298
- const entity = Object.assign({}, this.form.data);
299
- index_esm/* Xhr */.TF.xhr_put(DATASOURCE_API, entity, j => {
300
- if (j.status === 1) {
301
- this.$Message.success('修改数据源成功');
302
- }
303
- });
304
- },
305
- del(id, name) {
306
- this.$Modal.confirm({
307
- title: '删除数据源',
308
- content: `是否删除数据源 #${name}?`,
309
- onOk: () => {
310
- index_esm/* Xhr */.TF.xhr_del(DATASOURCE_API + id, j => {
311
- this.$Message.success('删除数据源成功');
312
- this.getList(() => this.add());
313
- });
314
- }
315
- });
316
- },
317
- test() {
318
- // @ts-ignore xxxxxx
319
- xhr_get(`${window.config.dsApiRoot}/datasource/test/` + this.activedItem, j => {
320
- if (j.status) this.$Modal.success({
321
- title: '连接数据源成功'
322
- });
323
- });
324
- }
325
- }
326
- }));
327
- ;// CONCATENATED MODULE: ./src/data-source/data-source.ts?vue&type=script&lang=ts&external
328
- /* harmony default export */ var data_source_data_sourcevue_type_script_lang_ts_external = (data_sourcevue_type_script_lang_ts_external);
329
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
330
- var componentNormalizer = __webpack_require__(1656);
331
- ;// CONCATENATED MODULE: ./src/data-source/data-source.vue
332
-
333
-
334
-
335
- ;
336
-
337
-
338
- /* normalize component */
339
-
340
- var component = (0,componentNormalizer/* default */.A)(
341
- data_source_data_sourcevue_type_script_lang_ts_external,
342
- render,
343
- staticRenderFns,
344
- false,
345
- null,
346
- "79e01278",
347
- null
348
-
349
- )
350
-
351
- /* harmony default export */ var data_source = (component.exports);
352
-
353
- /***/ }),
354
-
355
- /***/ 2070:
356
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
357
-
358
- "use strict";
359
- // ESM COMPAT FLAG
360
- __webpack_require__.r(__webpack_exports__);
361
-
362
- // EXPORTS
363
- __webpack_require__.d(__webpack_exports__, {
364
- "default": function() { return /* binding */ user; }
365
- });
366
-
367
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iam/user.vue?vue&type=template&id=c2329cb6
368
- var render = function render() {
369
- var _vm = this,
370
- _c = _vm._self._c,
371
- _setup = _vm._self._setupProxy;
372
- return _c('a', {
373
- on: {
374
- "click": _vm.showUserInfo
375
- }
376
- }, [_vm._v(_vm._s(_vm.state))]);
377
- };
378
- var staticRenderFns = [];
379
-
380
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
381
- var web_dom_exception_stack = __webpack_require__(4979);
382
- // EXTERNAL MODULE: ./node_modules/@ajaxjs/util/dist/index.esm.js
383
- var index_esm = __webpack_require__(2957);
384
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
385
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
386
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
387
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iam/user.vue?vue&type=script&lang=ts
388
-
389
-
390
-
391
- const logout = "localStorage.removeItem('accessToken');location.reload();";
392
- /* harmony default export */ var uservue_type_script_lang_ts = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
393
- name: 'IamUser',
394
- data() {
395
- return {
396
- state: "未登录",
397
- isShowInfo: false,
398
- payload: null
399
- };
400
- },
401
- mounted() {
402
- // localStorage.setItem("accessToken", 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxIiwibmFtZSI6ImFkbWluIiwiYXVkIjoiREVGQVVMVF9TQ09QRTt0ZW5hbnRJZD0wIiwiZXhwIjoxNzIxMjMzMTE0LCJpc3MiOiJmb29AYmFyLm5ldCIsImlhdCI6MTcyMTE0NjcxNH0.mykPFQv2fkqmEk1UJs6vErtwATIdUmmbNvJDCMP4pMI');
403
- let accessToken = localStorage.getItem("accessToken");
404
- if (accessToken) {
405
- // 将 JWT Token 拆分为三个部分
406
- const tokenParts = accessToken.split(".");
407
- const payload = JSON.parse(atob(tokenParts[1])); // 解析载荷
408
- this.payload = payload;
409
- this.state = payload.name + "已登录";
410
- }
411
- },
412
- methods: {
413
- showUserInfo() {
414
- if (this.state === "未登录") {
415
- // @ts-ignore xxx
416
- location.assign(window.config.loginUrl);
417
- } else {
418
- this.$Modal.info({
419
- title: "当前用户信息",
420
- content: `<p>用户名: ${this.payload.name}</p><p>Token 过期时间:${index_esm/* Utils */.Aq.dateFormat.call(new Date(this.payload.exp * 1000), "yyyy-MM-dd hh:mm:ss")}</p><p><a href="#" onclick="${logout}">用户登出</a></p>`
421
- });
422
- }
423
- }
424
- }
425
- }));
426
- ;// CONCATENATED MODULE: ./src/iam/user.vue?vue&type=script&lang=ts
427
- /* harmony default export */ var iam_uservue_type_script_lang_ts = (uservue_type_script_lang_ts);
428
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
429
- var componentNormalizer = __webpack_require__(1656);
430
- ;// CONCATENATED MODULE: ./src/iam/user.vue
431
-
432
-
433
-
434
-
435
-
436
- /* normalize component */
437
- ;
438
- var component = (0,componentNormalizer/* default */.A)(
439
- iam_uservue_type_script_lang_ts,
440
- render,
441
- staticRenderFns,
442
- false,
443
- null,
444
- null,
445
- null
446
-
447
- )
448
-
449
- /* harmony default export */ var user = (component.exports);
450
-
451
- /***/ }),
452
-
453
- /***/ 4192:
454
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
455
-
456
- "use strict";
457
- // ESM COMPAT FLAG
458
- __webpack_require__.r(__webpack_exports__);
459
-
460
- // EXPORTS
461
- __webpack_require__.d(__webpack_exports__, {
462
- "default": function() { return /* binding */ fast_iview_table; }
463
- });
464
-
465
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/fast-iview-table.vue?vue&type=template&id=75ca7672&scoped=true
466
- var render = function render() {
467
- var _vm = this,
468
- _c = _vm._self._c,
469
- _setup = _vm._self._setupProxy;
470
- return _c('div', [_c('Card', {
471
- staticClass: "common-search-panel",
472
- staticStyle: {
473
- "text-align": "left"
474
- },
475
- attrs: {
476
- "bordered": false,
477
- "dis-hover": ""
478
- }
479
- }, [_c('span', {
480
- staticStyle: {
481
- "float": "right"
482
- }
483
- }, [_c('Button', {
484
- attrs: {
485
- "type": "primary",
486
- "icon": "ios-search"
487
- },
488
- on: {
489
- "click": function ($event) {
490
- return _vm.$parent.getData();
491
- }
492
- }
493
- }, [_vm._v("查询")]), _c('Button', {
494
- staticStyle: {
495
- "margin-left": "10px"
496
- },
497
- on: {
498
- "click": _vm.reset
499
- }
500
- }, [_vm._v("重置")])], 1), _c('Input', {
501
- attrs: {
502
- "suffix": "ios-search",
503
- "clearable": "",
504
- "placeholder": '请输入' + _vm.widgetName_ + '名称'
505
- },
506
- on: {
507
- "on-enter": _vm.getData
508
- },
509
- model: {
510
- value: _vm.list.search.name,
511
- callback: function ($$v) {
512
- _vm.$set(_vm.list.search, "name", $$v);
513
- },
514
- expression: "list.search.name"
515
- }
516
- })], 1), _c('div', [_c('Card', {
517
- attrs: {
518
- "bordered": false,
519
- "dis-hover": ""
520
- }
521
- }, [_c('div', {
522
- staticClass: "toolbar"
523
- }, [_c('Tooltip', {
524
- staticClass: "ivu-ml",
525
- attrs: {
526
- "content": "刷新",
527
- "placement": "top"
528
- }
529
- }, [_c('Icon', {
530
- staticStyle: {
531
- "cursor": "pointer"
532
- },
533
- attrs: {
534
- "size": "20",
535
- "type": "ios-refresh"
536
- },
537
- on: {
538
- "click": _vm.getData
539
- }
540
- })], 1), _vm._t("toolbar"), !!_vm.createRoute || !!_vm.$parent.onCreate ? _c('Button', {
541
- attrs: {
542
- "type": "primary",
543
- "icon": "md-add"
544
- },
545
- on: {
546
- "click": _vm.onCreate
547
- }
548
- }, [_vm._v("新建" + _vm._s(_vm.widgetName_))]) : _vm._e()], 2), _c('Table', {
549
- attrs: {
550
- "columns": _vm.list.columns,
551
- "data": _vm.list.data,
552
- "loading": _vm.list.loading,
553
- "height": "500"
554
- },
555
- scopedSlots: _vm._u([{
556
- key: "action",
557
- fn: function ({
558
- row,
559
- index
560
- }) {
561
- return [_vm._t("list_action", null, {
562
- "item": row
563
- }), _vm.pickup ? _c('a', {
564
- staticStyle: {
565
- "color": "green"
566
- },
567
- on: {
568
- "click": function ($event) {
569
- return _vm.doPickup(row);
570
- }
571
- }
572
- }, [_vm._v("选择")]) : _vm._e(), !_vm.pickup ? _c('span', [_c('a', {
573
- staticStyle: {
574
- "color": "green"
575
- },
576
- on: {
577
- "click": function ($event) {
578
- return _vm.onEdit(row.id);
579
- }
580
- }
581
- }, [_vm._v("编辑")]), _c('Divider', {
582
- attrs: {
583
- "type": "vertical"
584
- }
585
- }), _c('Poptip', {
586
- attrs: {
587
- "confirm": "",
588
- "transfer": "",
589
- "title": "是否要删除此行?"
590
- },
591
- on: {
592
- "on-ok": function ($event) {
593
- return _vm.deleteInfo(row.id, index);
594
- }
595
- }
596
- }, [_c('a', {
597
- staticStyle: {
598
- "color": "red"
599
- }
600
- }, [_vm._v("删除")])])], 1) : _vm._e()];
601
- }
602
- }], null, true)
603
- }), _c('Page', {
604
- staticClass: "ivu-mt ivu-text-right",
605
- attrs: {
606
- "total": _vm.list.total,
607
- "current": _vm.list.pageNo,
608
- "show-total": "",
609
- "show-sizer": "",
610
- "page-size": _vm.list.limit
611
- },
612
- on: {
613
- "update:current": function ($event) {
614
- return _vm.$set(_vm.list, "pageNo", $event);
615
- },
616
- "on-page-size-change": _vm.handleChangePageSize
617
- }
618
- })], 1)], 1)], 1);
619
- };
620
- var staticRenderFns = [];
621
-
622
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
623
- var es_array_push = __webpack_require__(4114);
624
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
625
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
626
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
627
- // EXTERNAL MODULE: ./src/iview-ext/list.ts
628
- var list = __webpack_require__(7184);
629
- // EXTERNAL MODULE: ./node_modules/@ajaxjs/util/dist/index.esm.js
630
- var index_esm = __webpack_require__(2957);
631
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./src/iview-ext/fast-iview-table.ts?vue&type=script&lang=ts&external
632
-
633
-
634
-
635
-
636
- /* harmony default export */ var fast_iview_tablevue_type_script_lang_ts_external = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
637
- name: "FastViewTable",
638
- props: {
639
- widgetName: {
640
- type: String,
641
- required: false
642
- },
643
- apiUrl: {
644
- type: String,
645
- required: false
646
- },
647
- columnsDef: {
648
- type: Array,
649
- required: false
650
- },
651
- listApiUrl: {
652
- type: String,
653
- required: true
654
- },
655
- createRoute: {
656
- type: String,
657
- required: false
658
- },
659
- editRoute: {
660
- type: String,
661
- required: false
662
- },
663
- pickup: {
664
- type: Boolean,
665
- required: false
666
- } // 编辑事件触发时候,进入的路由地址
667
- },
668
- data() {
669
- return {
670
- widgetName_: this.widgetName,
671
- listApiUrl_: this.listApiUrl,
672
- colDefId: 0,
673
- list: {
674
- columns: this.columnsDef || [],
675
- data: [],
676
- total: 0,
677
- start: 0,
678
- limit: 9,
679
- pageNo: 1,
680
- pageSize: 9,
681
- loading: false,
682
- search: {
683
- name: ''
684
- }
685
- }
686
- };
687
- },
688
- mounted() {
689
- this.getData();
690
- },
691
- methods: {
692
- getData() {
693
- this.list.loading = true;
694
- const params = {
695
- pageNo: this.list.pageNo,
696
- pageSize: this.list.pageSize
697
- };
698
- // if (this.list.search.name)
699
- // params.where = `name LIKE '%${this.list.search.name}%'`;
700
- this.listApiUrl_ && index_esm/* Xhr */.TF.xhr_get(this.listApiUrl_, j => {
701
- this.list.loading = false;
702
- if (j.status) {
703
- this.list.data = j.data.rows;
704
- this.list.total = j.data.total;
705
- } else this.$Message.warning(j.message || '获取列表失败');
706
- }, params);
707
- },
708
- /**
709
- * 分页记录数
710
- */
711
- handleChangePageSize(pageSize) {
712
- this.list.limit = pageSize;
713
- this.getData();
714
- },
715
- reset() {
716
- for (const i in this.search) this.search[i] = "";
717
- this.getData();
718
- },
719
- /**
720
- * 新建
721
- */
722
- onCreate() {
723
- if (this.createRoute) this.$router.push({
724
- path: this.createRoute
725
- }); // 进入详情页,采用相对路径
726
- else {
727
- if (!this.$parent.onCreate) throw '请设置父组件的 onCreate 事件处理器';
728
- this.$parent.onCreate();
729
- }
730
- },
731
- /**
732
- * 编辑
733
- */
734
- onEdit(id) {
735
- if (this.editRoute) this.$router.push({
736
- path: this.editRoute,
737
- query: {
738
- id
739
- }
740
- }); // 进入详情页,采用相对路径
741
- else {
742
- if (!this.$parent.onEdit) throw '请设置父组件的 onEdit 事件处理器';
743
- this.$parent.onEdit(id);
744
- }
745
- },
746
- doPickup(data) {
747
- this.$emit("on-select", data);
748
- },
749
- deleteInfo(id, index) {
750
- this.list.loading = true;
751
- index_esm/* Xhr */.TF.xhr_del(`${this.apiUrl}/${id}`, list/* default */.A.afterDelete(() => {
752
- this.list.data.splice(index, 1);
753
- this.list.total--;
754
- this.list.loading = false;
755
- }).bind(this));
756
- }
757
- },
758
- watch: {
759
- listApiUrl(v) {
760
- // debugger
761
- this.listApiUrl_ = v;
762
- this.getData();
763
- },
764
- /**
765
- * 分页
766
- *
767
- * @param v
768
- */
769
- current(v) {
770
- this.start = (v - 1) * this.list.limit;
771
- this.getData();
772
- },
773
- 'list.pageNo'(v) {
774
- this.list.start = (v - 1) * this.list.limit;
775
- this.getData();
776
- }
777
- }
778
- }));
779
- ;// CONCATENATED MODULE: ./src/iview-ext/fast-iview-table.ts?vue&type=script&lang=ts&external
780
- /* harmony default export */ var iview_ext_fast_iview_tablevue_type_script_lang_ts_external = (fast_iview_tablevue_type_script_lang_ts_external);
781
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-12.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-12.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-12.use[2]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/fast-iview-table.vue?vue&type=style&index=0&id=75ca7672&prod&scoped=true&lang=css
782
- // extracted by mini-css-extract-plugin
783
-
784
- ;// CONCATENATED MODULE: ./src/iview-ext/fast-iview-table.vue?vue&type=style&index=0&id=75ca7672&prod&scoped=true&lang=css
785
-
786
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
787
- var componentNormalizer = __webpack_require__(1656);
788
- ;// CONCATENATED MODULE: ./src/iview-ext/fast-iview-table.vue
789
-
790
-
791
-
792
- ;
793
-
794
-
795
- /* normalize component */
796
-
797
- var component = (0,componentNormalizer/* default */.A)(
798
- iview_ext_fast_iview_tablevue_type_script_lang_ts_external,
799
- render,
800
- staticRenderFns,
801
- false,
802
- null,
803
- "75ca7672",
804
- null
805
-
806
- )
807
-
808
- /* harmony default export */ var fast_iview_table = (component.exports);
809
-
810
- /***/ }),
811
-
812
- /***/ 2122:
813
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
814
-
815
- "use strict";
816
- // ESM COMPAT FLAG
817
- __webpack_require__.r(__webpack_exports__);
818
-
819
- // EXPORTS
820
- __webpack_require__.d(__webpack_exports__, {
821
- "default": function() { return /* binding */ table_selector; }
822
- });
823
-
824
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/table-selector.vue?vue&type=template&id=33269380
825
- var render = function render() {
826
- var _vm = this,
827
- _c = _vm._self._c,
828
- _setup = _vm._self._setupProxy;
829
- return _c('div', {
830
- staticClass: "table-selector"
831
- }, [_c('Row', {
832
- staticStyle: {
833
- "margin": "20px 0"
834
- },
835
- attrs: {
836
- "type": "flex",
837
- "justify": "center",
838
- "align": "middle"
839
- }
840
- }, [_vm.isCrossDb ? _c('i-Col', {
841
- staticStyle: {
842
- "padding-right": "10px"
843
- },
844
- attrs: {
845
- "span": "6"
846
- }
847
- }, [_c('i-Select', {
848
- attrs: {
849
- "placeholder": "请选择数据库名"
850
- },
851
- model: {
852
- value: _vm.databaseName,
853
- callback: function ($$v) {
854
- _vm.databaseName = $$v;
855
- },
856
- expression: "databaseName"
857
- }
858
- }, _vm._l(_vm.databaseList, function (d) {
859
- return _c('i-Option', {
860
- key: d,
861
- attrs: {
862
- "value": d
863
- }
864
- }, [_vm._v(_vm._s(d))]);
865
- }), 1)], 1) : _vm._e(), _c('i-Col', {
866
- attrs: {
867
- "span": _vm.isCrossDb ? 6 : 12
868
- }
869
- }, [_c('i-Input', {
870
- ref: "inputEl",
871
- attrs: {
872
- "search": "",
873
- "enter-button": "",
874
- "placeholder": "按表名模糊搜索"
875
- },
876
- on: {
877
- "on-keyup": _vm.search
878
- }
879
- })], 1), _c('i-Col', {
880
- attrs: {
881
- "span": "12"
882
- }
883
- }, [_vm._v("    "), _c('a', {
884
- on: {
885
- "click": _vm.resetData
886
- }
887
- }, [_vm._v("重置")])])], 1), _c('i-Table', {
888
- staticClass: "table-selector-table",
889
- attrs: {
890
- "columns": _vm.list_column,
891
- "data": _vm.data,
892
- "width": "100%",
893
- "max-height": "300",
894
- "loading": _vm.loading
895
- },
896
- on: {
897
- "on-selection-change": _vm.onSelect
898
- },
899
- scopedSlots: _vm._u([{
900
- key: "select",
901
- fn: function ({
902
- row
903
- }) {
904
- return [_c('a', {
905
- on: {
906
- "click": function ($event) {
907
- return _vm.$emit('on-select', row, _vm.databaseName);
908
- }
909
- }
910
- }, [_vm._v("选择")])];
911
- }
912
- }])
913
- }), _c('br'), !_vm.isFilter ? _c('div', {
914
- staticClass: "ivu-mt ivu-text-right"
915
- }, [_c('Page', {
916
- attrs: {
917
- "total": _vm.total,
918
- "current": _vm.current,
919
- "show-total": "",
920
- "page-size": _vm.pageSize
921
- },
922
- on: {
923
- "update:current": function ($event) {
924
- _vm.current = $event;
925
- }
926
- }
927
- })], 1) : _vm._e()], 1);
928
- };
929
- var staticRenderFns = [];
930
-
931
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
932
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
933
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
934
- // EXTERNAL MODULE: ./node_modules/@ajaxjs/util/dist/index.esm.js
935
- var index_esm = __webpack_require__(2957);
936
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/table-selector.vue?vue&type=script&lang=js
937
-
938
-
939
-
940
- // 选择表
941
- /* harmony default export */ var table_selectorvue_type_script_lang_js = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
942
- name: "TableSelector",
943
- data() {
944
- return {
945
- // isCrossDb: false,
946
- list_column: [{
947
- title: "#",
948
- // key: 'id',
949
- width: 60,
950
- type: "index"
951
- // type: 'selection'
952
- }, {
953
- title: "表名",
954
- key: "tableName"
955
- }, {
956
- title: "说明",
957
- key: "comment"
958
- }, {
959
- title: "操作",
960
- slot: "select"
961
- }],
962
- listData: [],
963
- // 显示数据
964
- data: [],
965
- // 全部数据
966
- total: 0,
967
- current: 1,
968
- pageSize: 5,
969
- isFilter: false,
970
- start: 0,
971
- searchKeyword: "",
972
- loading: false,
973
- databaseList: [],
974
- databaseName: ""
975
- };
976
- },
977
- props: {
978
- isCrossDb: {
979
- type: Boolean,
980
- required: true
981
- },
982
- dataSourceId: {
983
- type: Number,
984
- required: true
985
- }
986
- },
987
- mounted() {
988
- // this.isCrossDb = true;
989
- this.getData();
990
- },
991
- methods: {
992
- getData() {
993
- this.loading = true;
994
- let url = `${window.config.dsApiRoot}/datasource/${this.dataSourceId}/get_all_tables?start=${this.start}&limit=${this.pageSize}`;
995
- // let url = `${DS_CONFIG.API_ROOT}/admin0/${this.dataSourceId}/getAllTables?start=${this.start}&limit=${this.pageSize}`;
996
-
997
- if (this.searchKeyword) url += `&tableName=${this.searchKeyword}`;
998
- if (this.databaseName) url += `&dbName=${this.databaseName}`;
999
- index_esm/* Xhr */.TF.xhr_get(url, j => {
1000
- if (j.status) {
1001
- this.data = j.data.rows;
1002
- this.total = j.data.total;
1003
- } else this.$Message.error(j.message);
1004
- this.loading = false;
1005
- });
1006
- },
1007
- handleChangePageSize() {
1008
- let start = (this.current - 1) * this.pageSize,
1009
- end = start + this.pageSize;
1010
- this.listData = this.data.slice(start, end);
1011
- },
1012
- onSelect(arr) {
1013
- // arr.forEach((item) => {
1014
- // this.data.forEach((_item) => {});
1015
- // });
1016
- },
1017
- resetData() {
1018
- this.searchKeyword = "";
1019
- this.start = 0;
1020
- this.getData();
1021
- this.$refs.inputEl.$el.querySelector("input").value = "";
1022
- },
1023
- search(ev) {
1024
- let input = ev.target,
1025
- v = input.value;
1026
- if (v) {
1027
- this.searchKeyword = v;
1028
- this.start = 0;
1029
- this.current = 1;
1030
- this.getData();
1031
- }
1032
- },
1033
- onkeypress(ev) {
1034
- let input = ev.target,
1035
- v = input.value;
1036
- if (v) {
1037
- this.isFilter = true;
1038
- let arr = this.data.filter(item => item.tableName.indexOf(v) != -1);
1039
- this.listData = arr;
1040
- } else {
1041
- this.resetData();
1042
- }
1043
- }
1044
- },
1045
- watch: {
1046
- /**
1047
- * 分页
1048
- *
1049
- * @param v
1050
- */
1051
- current(v) {
1052
- this.start = (v - 1) * this.pageSize;
1053
- this.getData();
1054
- },
1055
- dataSourceId(id) {
1056
- if (id) {
1057
- if (this.isCrossDb) index_esm/* Xhr */.TF.xhr_get(`/admin/${this.dataSourceId}/get_databases`, j => {
1058
- if (j.status) {
1059
- // 过滤 mysql 自带的库
1060
- let not = ["information_schema", "performance_schema", "sys", "mysql"];
1061
- let arr = j.data.filter(db => !not.includes(db));
1062
- this.databaseList = arr;
1063
-
1064
- // 默认选中第一个
1065
- this.start = 0;
1066
- this.current = 1;
1067
- this.databaseName = arr[0];
1068
- } else this.$Message.error(j.message);
1069
- });else {
1070
- this.databaseName = null;
1071
- this.getData();
1072
- }
1073
- }
1074
- },
1075
- databaseName(v) {
1076
- this.getData(); // 会重复请求
1077
- }
1078
- }
1079
- }));
1080
- ;// CONCATENATED MODULE: ./src/iview-ext/table-selector.vue?vue&type=script&lang=js
1081
- /* harmony default export */ var iview_ext_table_selectorvue_type_script_lang_js = (table_selectorvue_type_script_lang_js);
1082
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1083
- var componentNormalizer = __webpack_require__(1656);
1084
- ;// CONCATENATED MODULE: ./src/iview-ext/table-selector.vue
1085
-
1086
-
1087
-
1088
-
1089
-
1090
- /* normalize component */
1091
- ;
1092
- var component = (0,componentNormalizer/* default */.A)(
1093
- iview_ext_table_selectorvue_type_script_lang_js,
1094
- render,
1095
- staticRenderFns,
1096
- false,
1097
- null,
1098
- null,
1099
- null
1100
-
1101
- )
1102
-
1103
- /* harmony default export */ var table_selector = (component.exports);
1104
-
1105
- /***/ }),
1106
-
1107
- /***/ 3761:
1108
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1109
-
1110
- "use strict";
1111
- // ESM COMPAT FLAG
1112
- __webpack_require__.r(__webpack_exports__);
1113
-
1114
- // EXPORTS
1115
- __webpack_require__.d(__webpack_exports__, {
1116
- "default": function() { return /* binding */ tips; }
1117
- });
1118
-
1119
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/tips.vue?vue&type=template&id=71713021
1120
- var render = function render() {
1121
- var _vm = this,
1122
- _c = _vm._self._c,
1123
- _setup = _vm._self._setupProxy;
1124
- return _c('i', {
1125
- staticClass: "ivu-icon ivu-icon-ios-help-circle-outline",
1126
- staticStyle: {
1127
- "cursor": "pointer"
1128
- },
1129
- attrs: {
1130
- "title": _vm.text
1131
- }
1132
- });
1133
- };
1134
- var staticRenderFns = [];
1135
-
1136
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
1137
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
1138
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
1139
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/iview-ext/tips.vue?vue&type=script&lang=js
1140
-
1141
-
1142
- /**
1143
- * 帮助图标
1144
- */
1145
- /* harmony default export */ var tipsvue_type_script_lang_js = (external_commonjs_vue_commonjs2_vue_root_Vue_default().extend({
1146
- name: 'Tips',
1147
- props: {
1148
- text: {
1149
- type: String,
1150
- required: true
1151
- }
1152
- }
1153
- }));
1154
- ;// CONCATENATED MODULE: ./src/iview-ext/tips.vue?vue&type=script&lang=js
1155
- /* harmony default export */ var iview_ext_tipsvue_type_script_lang_js = (tipsvue_type_script_lang_js);
1156
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1157
- var componentNormalizer = __webpack_require__(1656);
1158
- ;// CONCATENATED MODULE: ./src/iview-ext/tips.vue
1159
-
1160
-
1161
-
1162
-
1163
-
1164
- /* normalize component */
1165
- ;
1166
- var component = (0,componentNormalizer/* default */.A)(
1167
- iview_ext_tipsvue_type_script_lang_js,
1168
- render,
1169
- staticRenderFns,
1170
- false,
1171
- null,
1172
- null,
1173
- null
1174
-
1175
- )
1176
-
1177
- /* harmony default export */ var tips = (component.exports);
1178
-
1179
- /***/ }),
1180
-
1181
- /***/ 1656:
1182
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1183
-
1184
- "use strict";
1185
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1186
- /* harmony export */ A: function() { return /* binding */ normalizeComponent; }
1187
- /* harmony export */ });
1188
- /* globals __VUE_SSR_CONTEXT__ */
1189
-
1190
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
1191
- // This module is a runtime utility for cleaner component module output and will
1192
- // be included in the final webpack user bundle.
1193
-
1194
- function normalizeComponent(
1195
- scriptExports,
1196
- render,
1197
- staticRenderFns,
1198
- functionalTemplate,
1199
- injectStyles,
1200
- scopeId,
1201
- moduleIdentifier /* server only */,
1202
- shadowMode /* vue-cli only */
1203
- ) {
1204
- // Vue.extend constructor export interop
1205
- var options =
1206
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
1207
-
1208
- // render functions
1209
- if (render) {
1210
- options.render = render
1211
- options.staticRenderFns = staticRenderFns
1212
- options._compiled = true
1213
- }
1214
-
1215
- // functional template
1216
- if (functionalTemplate) {
1217
- options.functional = true
1218
- }
1219
-
1220
- // scopedId
1221
- if (scopeId) {
1222
- options._scopeId = 'data-v-' + scopeId
1223
- }
1224
-
1225
- var hook
1226
- if (moduleIdentifier) {
1227
- // server build
1228
- hook = function (context) {
1229
- // 2.3 injection
1230
- context =
1231
- context || // cached call
1232
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1233
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
1234
- // 2.2 with runInNewContext: true
1235
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1236
- context = __VUE_SSR_CONTEXT__
1237
- }
1238
- // inject component styles
1239
- if (injectStyles) {
1240
- injectStyles.call(this, context)
1241
- }
1242
- // register component module identifier for async chunk inferrence
1243
- if (context && context._registeredComponents) {
1244
- context._registeredComponents.add(moduleIdentifier)
1245
- }
1246
- }
1247
- // used by ssr in case component is cached and beforeCreate
1248
- // never gets called
1249
- options._ssrRegister = hook
1250
- } else if (injectStyles) {
1251
- hook = shadowMode
1252
- ? function () {
1253
- injectStyles.call(
1254
- this,
1255
- (options.functional ? this.parent : this).$root.$options.shadowRoot
1256
- )
1257
- }
1258
- : injectStyles
1259
- }
1260
-
1261
- if (hook) {
1262
- if (options.functional) {
1263
- // for template-only hot-reload because in that case the render fn doesn't
1264
- // go through the normalizer
1265
- options._injectStyles = hook
1266
- // register for functional component in vue file
1267
- var originalRender = options.render
1268
- options.render = function renderWithStyleInjection(h, context) {
1269
- hook.call(context)
1270
- return originalRender(h, context)
1271
- }
1272
- } else {
1273
- // inject component registration as beforeCreate hook
1274
- var existing = options.beforeCreate
1275
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
1276
- }
1277
- }
1278
-
1279
- return {
1280
- exports: scriptExports,
1281
- options: options
1282
- }
1283
- }
1284
-
1285
-
1286
- /***/ }),
1287
-
1288
- /***/ 7184:
1289
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1290
-
1291
- "use strict";
1292
- /* harmony import */ var _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2957);
1293
-
1294
- /* harmony default export */ __webpack_exports__.A = ({
1295
- afterDelete(cb) {
1296
- return function (j) {
1297
- if (j.status) {
1298
- cb && cb(j);
1299
- this.$Message.success('删除成功');
1300
- } else this.$Message.info('删除失败。' + j.message);
1301
- };
1302
- },
1303
- delInfo(index) {
1304
- _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__/* .Xhr */ .TF.xhr_del(`${this.API}/${this.list.data[index].id}`, j => {
1305
- if (j.status) {
1306
- this.list.data.splice(index, 1);
1307
- this.list.total--;
1308
- this.$Message.success('删除成功');
1309
- } else this.$Message.info('删除失败。' + j.message);
1310
- });
1311
- },
1312
- /**
1313
- * id 列
1314
- */
1315
- id: {
1316
- title: '#',
1317
- width: 60,
1318
- key: 'id',
1319
- align: 'center'
1320
- },
1321
- /**
1322
- * 创建日期
1323
- */
1324
- createDate: {
1325
- title: '创建日期',
1326
- /* key: 'createDate', */width: 160,
1327
- align: 'center',
1328
- render(h, params) {
1329
- return h('div', _ajaxjs_util__WEBPACK_IMPORTED_MODULE_0__/* .Utils */ .Aq.dateFormat.call(new Date(params.row.createDate), 'yyyy-MM-dd hh:mm'));
1330
- }
1331
- },
1332
- /**
1333
- * 分类标签
1334
- */
1335
- tags: {
1336
- title: '分类标签',
1337
- minWidth: 100,
1338
- key: 'tagsNames',
1339
- align: 'center',
1340
- ellipsis: true
1341
- },
1342
- status: {
1343
- title: '状态',
1344
- width: 80,
1345
- render(h, params) {
1346
- let str = '',
1347
- color = '';
1348
- switch (params.row.stat) {
1349
- case -1:
1350
- str = '草稿';
1351
- color = 'gray';
1352
- break;
1353
- case 2:
1354
- color = 'red';
1355
- str = '禁用';
1356
- break;
1357
- case 1:
1358
- color = 'red';
1359
- str = '已删除';
1360
- break;
1361
- case null:
1362
- case 0:
1363
- default:
1364
- color = 'green';
1365
- str = "启用";
1366
- }
1367
- return h('div', {
1368
- style: {
1369
- color: color
1370
- }
1371
- }, str);
1372
- }
1373
- },
1374
- getPageList(self, listArray, callback) {
1375
- return j => {
1376
- if (j.status) {
1377
- listArray.total = j.data.total;
1378
- listArray.data = j.data.rows;
1379
- callback && callback();
1380
- } else self.$Message.warning(j.message || '获取数据失败');
1381
- };
1382
- },
1383
- copyBeanClean(bean) {
1384
- const deepCopy = JSON.parse(JSON.stringify(bean));
1385
- delete deepCopy.createDate;
1386
- delete deepCopy.updateDate;
1387
- delete deepCopy.updateDate;
1388
- delete deepCopy.creatorId;
1389
- delete deepCopy.updaterId;
1390
- delete deepCopy.creator;
1391
- delete deepCopy.updater;
1392
- delete deepCopy.extend;
1393
- return deepCopy;
1394
- }
1395
- });
1396
-
1397
- /***/ }),
1398
-
1399
- /***/ 9887:
1400
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1401
-
1402
- var map = {
1403
- "./data-source/data-source.vue": 4043,
1404
- "./iam/user.vue": 2070,
1405
- "./iview-ext/fast-iview-table.vue": 4192,
1406
- "./iview-ext/table-selector.vue": 2122,
1407
- "./iview-ext/tips.vue": 3761
1408
- };
1409
-
1410
-
1411
- function webpackContext(req) {
1412
- var id = webpackContextResolve(req);
1413
- return __webpack_require__(id);
1414
- }
1415
- function webpackContextResolve(req) {
1416
- if(!__webpack_require__.o(map, req)) {
1417
- var e = new Error("Cannot find module '" + req + "'");
1418
- e.code = 'MODULE_NOT_FOUND';
1419
- throw e;
1420
- }
1421
- return map[req];
1422
- }
1423
- webpackContext.keys = function webpackContextKeys() {
1424
- return Object.keys(map);
1425
- };
1426
- webpackContext.resolve = webpackContextResolve;
1427
- module.exports = webpackContext;
1428
- webpackContext.id = 9887;
1429
-
1430
- /***/ }),
1431
-
1432
- /***/ 4100:
1433
- /***/ (function(module) {
1434
-
1435
- "use strict";
1436
- module.exports = require("vue");
1437
-
1438
- /***/ }),
1439
-
1440
- /***/ 9306:
1441
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1442
-
1443
- "use strict";
1444
-
1445
- var isCallable = __webpack_require__(4901);
1446
- var tryToString = __webpack_require__(6823);
1447
-
1448
- var $TypeError = TypeError;
1449
-
1450
- // `Assert: IsCallable(argument) is true`
1451
- module.exports = function (argument) {
1452
- if (isCallable(argument)) return argument;
1453
- throw new $TypeError(tryToString(argument) + ' is not a function');
1454
- };
1455
-
1456
-
1457
- /***/ }),
1458
-
1459
- /***/ 3506:
1460
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1461
-
1462
- "use strict";
1463
-
1464
- var isPossiblePrototype = __webpack_require__(3925);
1465
-
1466
- var $String = String;
1467
- var $TypeError = TypeError;
1468
-
1469
- module.exports = function (argument) {
1470
- if (isPossiblePrototype(argument)) return argument;
1471
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1472
- };
1473
-
1474
-
1475
- /***/ }),
1476
-
1477
- /***/ 679:
1478
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1479
-
1480
- "use strict";
1481
-
1482
- var isPrototypeOf = __webpack_require__(1625);
1483
-
1484
- var $TypeError = TypeError;
1485
-
1486
- module.exports = function (it, Prototype) {
1487
- if (isPrototypeOf(Prototype, it)) return it;
1488
- throw new $TypeError('Incorrect invocation');
1489
- };
1490
-
1491
-
1492
- /***/ }),
1493
-
1494
- /***/ 8551:
1495
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1496
-
1497
- "use strict";
1498
-
1499
- var isObject = __webpack_require__(34);
1500
-
1501
- var $String = String;
1502
- var $TypeError = TypeError;
1503
-
1504
- // `Assert: Type(argument) is Object`
1505
- module.exports = function (argument) {
1506
- if (isObject(argument)) return argument;
1507
- throw new $TypeError($String(argument) + ' is not an object');
1508
- };
1509
-
1510
-
1511
- /***/ }),
1512
-
1513
- /***/ 9617:
1514
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1515
-
1516
- "use strict";
1517
-
1518
- var toIndexedObject = __webpack_require__(5397);
1519
- var toAbsoluteIndex = __webpack_require__(5610);
1520
- var lengthOfArrayLike = __webpack_require__(6198);
1521
-
1522
- // `Array.prototype.{ indexOf, includes }` methods implementation
1523
- var createMethod = function (IS_INCLUDES) {
1524
- return function ($this, el, fromIndex) {
1525
- var O = toIndexedObject($this);
1526
- var length = lengthOfArrayLike(O);
1527
- if (length === 0) return !IS_INCLUDES && -1;
1528
- var index = toAbsoluteIndex(fromIndex, length);
1529
- var value;
1530
- // Array#includes uses SameValueZero equality algorithm
1531
- // eslint-disable-next-line no-self-compare -- NaN check
1532
- if (IS_INCLUDES && el !== el) while (length > index) {
1533
- value = O[index++];
1534
- // eslint-disable-next-line no-self-compare -- NaN check
1535
- if (value !== value) return true;
1536
- // Array#indexOf ignores holes, Array#includes - not
1537
- } else for (;length > index; index++) {
1538
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1539
- } return !IS_INCLUDES && -1;
1540
- };
1541
- };
1542
-
1543
- module.exports = {
1544
- // `Array.prototype.includes` method
1545
- // https://tc39.es/ecma262/#sec-array.prototype.includes
1546
- includes: createMethod(true),
1547
- // `Array.prototype.indexOf` method
1548
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
1549
- indexOf: createMethod(false)
1550
- };
1551
-
1552
-
1553
- /***/ }),
1554
-
1555
- /***/ 4527:
1556
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1557
-
1558
- "use strict";
1559
-
1560
- var DESCRIPTORS = __webpack_require__(3724);
1561
- var isArray = __webpack_require__(4376);
1562
-
1563
- var $TypeError = TypeError;
1564
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1565
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1566
-
1567
- // Safari < 13 does not throw an error in this case
1568
- var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
1569
- // makes no sense without proper strict mode support
1570
- if (this !== undefined) return true;
1571
- try {
1572
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1573
- Object.defineProperty([], 'length', { writable: false }).length = 1;
1574
- } catch (error) {
1575
- return error instanceof TypeError;
1576
- }
1577
- }();
1578
-
1579
- module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1580
- if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1581
- throw new $TypeError('Cannot set read only .length');
1582
- } return O.length = length;
1583
- } : function (O, length) {
1584
- return O.length = length;
1585
- };
1586
-
1587
-
1588
- /***/ }),
1589
-
1590
- /***/ 2195:
1591
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1592
-
1593
- "use strict";
1594
-
1595
- var uncurryThis = __webpack_require__(9504);
1596
-
1597
- var toString = uncurryThis({}.toString);
1598
- var stringSlice = uncurryThis(''.slice);
1599
-
1600
- module.exports = function (it) {
1601
- return stringSlice(toString(it), 8, -1);
1602
- };
1603
-
1604
-
1605
- /***/ }),
1606
-
1607
- /***/ 6955:
1608
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1609
-
1610
- "use strict";
1611
-
1612
- var TO_STRING_TAG_SUPPORT = __webpack_require__(2140);
1613
- var isCallable = __webpack_require__(4901);
1614
- var classofRaw = __webpack_require__(2195);
1615
- var wellKnownSymbol = __webpack_require__(8227);
1616
-
1617
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1618
- var $Object = Object;
1619
-
1620
- // ES3 wrong here
1621
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1622
-
1623
- // fallback for IE11 Script Access Denied error
1624
- var tryGet = function (it, key) {
1625
- try {
1626
- return it[key];
1627
- } catch (error) { /* empty */ }
1628
- };
1629
-
1630
- // getting tag from ES6+ `Object.prototype.toString`
1631
- module.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1632
- var O, tag, result;
1633
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1634
- // @@toStringTag case
1635
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1636
- // builtinTag case
1637
- : CORRECT_ARGUMENTS ? classofRaw(O)
1638
- // ES3 arguments fallback
1639
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1640
- };
1641
-
1642
-
1643
- /***/ }),
1644
-
1645
- /***/ 7740:
1646
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1647
-
1648
- "use strict";
1649
-
1650
- var hasOwn = __webpack_require__(9297);
1651
- var ownKeys = __webpack_require__(5031);
1652
- var getOwnPropertyDescriptorModule = __webpack_require__(7347);
1653
- var definePropertyModule = __webpack_require__(4913);
1654
-
1655
- module.exports = function (target, source, exceptions) {
1656
- var keys = ownKeys(source);
1657
- var defineProperty = definePropertyModule.f;
1658
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1659
- for (var i = 0; i < keys.length; i++) {
1660
- var key = keys[i];
1661
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1662
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1663
- }
1664
- }
1665
- };
1666
-
1667
-
1668
- /***/ }),
1669
-
1670
- /***/ 6699:
1671
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1672
-
1673
- "use strict";
1674
-
1675
- var DESCRIPTORS = __webpack_require__(3724);
1676
- var definePropertyModule = __webpack_require__(4913);
1677
- var createPropertyDescriptor = __webpack_require__(6980);
1678
-
1679
- module.exports = DESCRIPTORS ? function (object, key, value) {
1680
- return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));
1681
- } : function (object, key, value) {
1682
- object[key] = value;
1683
- return object;
1684
- };
1685
-
1686
-
1687
- /***/ }),
1688
-
1689
- /***/ 6980:
1690
- /***/ (function(module) {
1691
-
1692
- "use strict";
1693
-
1694
- module.exports = function (bitmap, value) {
1695
- return {
1696
- enumerable: !(bitmap & 1),
1697
- configurable: !(bitmap & 2),
1698
- writable: !(bitmap & 4),
1699
- value: value
1700
- };
1701
- };
1702
-
1703
-
1704
- /***/ }),
1705
-
1706
- /***/ 2106:
1707
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1708
-
1709
- "use strict";
1710
-
1711
- var makeBuiltIn = __webpack_require__(283);
1712
- var defineProperty = __webpack_require__(4913);
1713
-
1714
- module.exports = function (target, name, descriptor) {
1715
- if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1716
- if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1717
- return defineProperty.f(target, name, descriptor);
1718
- };
1719
-
1720
-
1721
- /***/ }),
1722
-
1723
- /***/ 6840:
1724
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1725
-
1726
- "use strict";
1727
-
1728
- var isCallable = __webpack_require__(4901);
1729
- var definePropertyModule = __webpack_require__(4913);
1730
- var makeBuiltIn = __webpack_require__(283);
1731
- var defineGlobalProperty = __webpack_require__(9433);
1732
-
1733
- module.exports = function (O, key, value, options) {
1734
- if (!options) options = {};
1735
- var simple = options.enumerable;
1736
- var name = options.name !== undefined ? options.name : key;
1737
- if (isCallable(value)) makeBuiltIn(value, name, options);
1738
- if (options.global) {
1739
- if (simple) O[key] = value;
1740
- else defineGlobalProperty(key, value);
1741
- } else {
1742
- try {
1743
- if (!options.unsafe) delete O[key];
1744
- else if (O[key]) simple = true;
1745
- } catch (error) { /* empty */ }
1746
- if (simple) O[key] = value;
1747
- else definePropertyModule.f(O, key, {
1748
- value: value,
1749
- enumerable: false,
1750
- configurable: !options.nonConfigurable,
1751
- writable: !options.nonWritable
1752
- });
1753
- } return O;
1754
- };
1755
-
1756
-
1757
- /***/ }),
1758
-
1759
- /***/ 9433:
1760
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1761
-
1762
- "use strict";
1763
-
1764
- var globalThis = __webpack_require__(4576);
1765
-
1766
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1767
- var defineProperty = Object.defineProperty;
1768
-
1769
- module.exports = function (key, value) {
1770
- try {
1771
- defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
1772
- } catch (error) {
1773
- globalThis[key] = value;
1774
- } return value;
1775
- };
1776
-
1777
-
1778
- /***/ }),
1779
-
1780
- /***/ 3724:
1781
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1782
-
1783
- "use strict";
1784
-
1785
- var fails = __webpack_require__(9039);
1786
-
1787
- // Detect IE8's incomplete defineProperty implementation
1788
- module.exports = !fails(function () {
1789
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1790
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
1791
- });
1792
-
1793
-
1794
- /***/ }),
1795
-
1796
- /***/ 4055:
1797
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1798
-
1799
- "use strict";
1800
-
1801
- var globalThis = __webpack_require__(4576);
1802
- var isObject = __webpack_require__(34);
1803
-
1804
- var document = globalThis.document;
1805
- // typeof document.createElement is 'object' in old IE
1806
- var EXISTS = isObject(document) && isObject(document.createElement);
1807
-
1808
- module.exports = function (it) {
1809
- return EXISTS ? document.createElement(it) : {};
1810
- };
1811
-
1812
-
1813
- /***/ }),
1814
-
1815
- /***/ 6837:
1816
- /***/ (function(module) {
1817
-
1818
- "use strict";
1819
-
1820
- var $TypeError = TypeError;
1821
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1822
-
1823
- module.exports = function (it) {
1824
- if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
1825
- return it;
1826
- };
1827
-
1828
-
1829
- /***/ }),
1830
-
1831
- /***/ 5002:
1832
- /***/ (function(module) {
1833
-
1834
- "use strict";
1835
-
1836
- module.exports = {
1837
- IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },
1838
- DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },
1839
- HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },
1840
- WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },
1841
- InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },
1842
- NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },
1843
- NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },
1844
- NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },
1845
- NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },
1846
- InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },
1847
- InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },
1848
- SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },
1849
- InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },
1850
- NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },
1851
- InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },
1852
- ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },
1853
- TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },
1854
- SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },
1855
- NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },
1856
- AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },
1857
- URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },
1858
- QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },
1859
- TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },
1860
- InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },
1861
- DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }
1862
- };
1863
-
1864
-
1865
- /***/ }),
1866
-
1867
- /***/ 8727:
1868
- /***/ (function(module) {
1869
-
1870
- "use strict";
1871
-
1872
- // IE8- don't enum bug keys
1873
- module.exports = [
1874
- 'constructor',
1875
- 'hasOwnProperty',
1876
- 'isPrototypeOf',
1877
- 'propertyIsEnumerable',
1878
- 'toLocaleString',
1879
- 'toString',
1880
- 'valueOf'
1881
- ];
1882
-
1883
-
1884
- /***/ }),
1885
-
1886
- /***/ 2839:
1887
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1888
-
1889
- "use strict";
1890
-
1891
- var globalThis = __webpack_require__(4576);
1892
-
1893
- var navigator = globalThis.navigator;
1894
- var userAgent = navigator && navigator.userAgent;
1895
-
1896
- module.exports = userAgent ? String(userAgent) : '';
1897
-
1898
-
1899
- /***/ }),
1900
-
1901
- /***/ 9519:
1902
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1903
-
1904
- "use strict";
1905
-
1906
- var globalThis = __webpack_require__(4576);
1907
- var userAgent = __webpack_require__(2839);
1908
-
1909
- var process = globalThis.process;
1910
- var Deno = globalThis.Deno;
1911
- var versions = process && process.versions || Deno && Deno.version;
1912
- var v8 = versions && versions.v8;
1913
- var match, version;
1914
-
1915
- if (v8) {
1916
- match = v8.split('.');
1917
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
1918
- // but their correct versions are not interesting for us
1919
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
1920
- }
1921
-
1922
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
1923
- // so check `userAgent` even if `.v8` exists, but 0
1924
- if (!version && userAgent) {
1925
- match = userAgent.match(/Edge\/(\d+)/);
1926
- if (!match || match[1] >= 74) {
1927
- match = userAgent.match(/Chrome\/(\d+)/);
1928
- if (match) version = +match[1];
1929
- }
1930
- }
1931
-
1932
- module.exports = version;
1933
-
1934
-
1935
- /***/ }),
1936
-
1937
- /***/ 6193:
1938
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1939
-
1940
- "use strict";
1941
-
1942
- var uncurryThis = __webpack_require__(9504);
1943
-
1944
- var $Error = Error;
1945
- var replace = uncurryThis(''.replace);
1946
-
1947
- var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
1948
- // eslint-disable-next-line redos/no-vulnerable -- safe
1949
- var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
1950
- var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
1951
-
1952
- module.exports = function (stack, dropEntries) {
1953
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
1954
- while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
1955
- } return stack;
1956
- };
1957
-
1958
-
1959
- /***/ }),
1960
-
1961
- /***/ 6518:
1962
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1963
-
1964
- "use strict";
1965
-
1966
- var globalThis = __webpack_require__(4576);
1967
- var getOwnPropertyDescriptor = (__webpack_require__(7347).f);
1968
- var createNonEnumerableProperty = __webpack_require__(6699);
1969
- var defineBuiltIn = __webpack_require__(6840);
1970
- var defineGlobalProperty = __webpack_require__(9433);
1971
- var copyConstructorProperties = __webpack_require__(7740);
1972
- var isForced = __webpack_require__(2796);
1973
-
1974
- /*
1975
- options.target - name of the target object
1976
- options.global - target is the global object
1977
- options.stat - export as static methods of target
1978
- options.proto - export as prototype methods of target
1979
- options.real - real prototype method for the `pure` version
1980
- options.forced - export even if the native feature is available
1981
- options.bind - bind methods to the target, required for the `pure` version
1982
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1983
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1984
- options.sham - add a flag to not completely full polyfills
1985
- options.enumerable - export as enumerable property
1986
- options.dontCallGetSet - prevent calling a getter on target
1987
- options.name - the .name of the function if it does not match the key
1988
- */
1989
- module.exports = function (options, source) {
1990
- var TARGET = options.target;
1991
- var GLOBAL = options.global;
1992
- var STATIC = options.stat;
1993
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1994
- if (GLOBAL) {
1995
- target = globalThis;
1996
- } else if (STATIC) {
1997
- target = globalThis[TARGET] || defineGlobalProperty(TARGET, {});
1998
- } else {
1999
- target = globalThis[TARGET] && globalThis[TARGET].prototype;
2000
- }
2001
- if (target) for (key in source) {
2002
- sourceProperty = source[key];
2003
- if (options.dontCallGetSet) {
2004
- descriptor = getOwnPropertyDescriptor(target, key);
2005
- targetProperty = descriptor && descriptor.value;
2006
- } else targetProperty = target[key];
2007
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
2008
- // contained in target
2009
- if (!FORCED && targetProperty !== undefined) {
2010
- if (typeof sourceProperty == typeof targetProperty) continue;
2011
- copyConstructorProperties(sourceProperty, targetProperty);
2012
- }
2013
- // add a flag to not completely full polyfills
2014
- if (options.sham || (targetProperty && targetProperty.sham)) {
2015
- createNonEnumerableProperty(sourceProperty, 'sham', true);
2016
- }
2017
- defineBuiltIn(target, key, sourceProperty, options);
2018
- }
2019
- };
2020
-
2021
-
2022
- /***/ }),
2023
-
2024
- /***/ 9039:
2025
- /***/ (function(module) {
2026
-
2027
- "use strict";
2028
-
2029
- module.exports = function (exec) {
2030
- try {
2031
- return !!exec();
2032
- } catch (error) {
2033
- return true;
2034
- }
2035
- };
2036
-
2037
-
2038
- /***/ }),
2039
-
2040
- /***/ 616:
2041
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2042
-
2043
- "use strict";
2044
-
2045
- var fails = __webpack_require__(9039);
2046
-
2047
- module.exports = !fails(function () {
2048
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
2049
- var test = (function () { /* empty */ }).bind();
2050
- // eslint-disable-next-line no-prototype-builtins -- safe
2051
- return typeof test != 'function' || test.hasOwnProperty('prototype');
2052
- });
2053
-
2054
-
2055
- /***/ }),
2056
-
2057
- /***/ 9565:
2058
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2059
-
2060
- "use strict";
2061
-
2062
- var NATIVE_BIND = __webpack_require__(616);
2063
-
2064
- var call = Function.prototype.call;
2065
-
2066
- module.exports = NATIVE_BIND ? call.bind(call) : function () {
2067
- return call.apply(call, arguments);
2068
- };
2069
-
2070
-
2071
- /***/ }),
2072
-
2073
- /***/ 350:
2074
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2075
-
2076
- "use strict";
2077
-
2078
- var DESCRIPTORS = __webpack_require__(3724);
2079
- var hasOwn = __webpack_require__(9297);
2080
-
2081
- var FunctionPrototype = Function.prototype;
2082
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2083
- var getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;
2084
-
2085
- var EXISTS = hasOwn(FunctionPrototype, 'name');
2086
- // additional protection from minified / mangled / dropped function names
2087
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
2088
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));
2089
-
2090
- module.exports = {
2091
- EXISTS: EXISTS,
2092
- PROPER: PROPER,
2093
- CONFIGURABLE: CONFIGURABLE
2094
- };
2095
-
2096
-
2097
- /***/ }),
2098
-
2099
- /***/ 6706:
2100
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2101
-
2102
- "use strict";
2103
-
2104
- var uncurryThis = __webpack_require__(9504);
2105
- var aCallable = __webpack_require__(9306);
2106
-
2107
- module.exports = function (object, key, method) {
2108
- try {
2109
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2110
- return uncurryThis(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
2111
- } catch (error) { /* empty */ }
2112
- };
2113
-
2114
-
2115
- /***/ }),
2116
-
2117
- /***/ 9504:
2118
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2119
-
2120
- "use strict";
2121
-
2122
- var NATIVE_BIND = __webpack_require__(616);
2123
-
2124
- var FunctionPrototype = Function.prototype;
2125
- var call = FunctionPrototype.call;
2126
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call);
2127
-
2128
- module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
2129
- return function () {
2130
- return call.apply(fn, arguments);
2131
- };
2132
- };
2133
-
2134
-
2135
- /***/ }),
2136
-
2137
- /***/ 7751:
2138
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2139
-
2140
- "use strict";
2141
-
2142
- var globalThis = __webpack_require__(4576);
2143
- var isCallable = __webpack_require__(4901);
2144
-
2145
- var aFunction = function (argument) {
2146
- return isCallable(argument) ? argument : undefined;
2147
- };
2148
-
2149
- module.exports = function (namespace, method) {
2150
- return arguments.length < 2 ? aFunction(globalThis[namespace]) : globalThis[namespace] && globalThis[namespace][method];
2151
- };
2152
-
2153
-
2154
- /***/ }),
2155
-
2156
- /***/ 5966:
2157
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2158
-
2159
- "use strict";
2160
-
2161
- var aCallable = __webpack_require__(9306);
2162
- var isNullOrUndefined = __webpack_require__(4117);
2163
-
2164
- // `GetMethod` abstract operation
2165
- // https://tc39.es/ecma262/#sec-getmethod
2166
- module.exports = function (V, P) {
2167
- var func = V[P];
2168
- return isNullOrUndefined(func) ? undefined : aCallable(func);
2169
- };
2170
-
2171
-
2172
- /***/ }),
2173
-
2174
- /***/ 4576:
2175
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2176
-
2177
- "use strict";
2178
-
2179
- var check = function (it) {
2180
- return it && it.Math === Math && it;
2181
- };
2182
-
2183
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
2184
- module.exports =
2185
- // eslint-disable-next-line es/no-global-this -- safe
2186
- check(typeof globalThis == 'object' && globalThis) ||
2187
- check(typeof window == 'object' && window) ||
2188
- // eslint-disable-next-line no-restricted-globals -- safe
2189
- check(typeof self == 'object' && self) ||
2190
- check(typeof __webpack_require__.g == 'object' && __webpack_require__.g) ||
2191
- check(typeof this == 'object' && this) ||
2192
- // eslint-disable-next-line no-new-func -- fallback
2193
- (function () { return this; })() || Function('return this')();
2194
-
2195
-
2196
- /***/ }),
2197
-
2198
- /***/ 9297:
2199
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2200
-
2201
- "use strict";
2202
-
2203
- var uncurryThis = __webpack_require__(9504);
2204
- var toObject = __webpack_require__(8981);
2205
-
2206
- var hasOwnProperty = uncurryThis({}.hasOwnProperty);
2207
-
2208
- // `HasOwnProperty` abstract operation
2209
- // https://tc39.es/ecma262/#sec-hasownproperty
2210
- // eslint-disable-next-line es/no-object-hasown -- safe
2211
- module.exports = Object.hasOwn || function hasOwn(it, key) {
2212
- return hasOwnProperty(toObject(it), key);
2213
- };
2214
-
2215
-
2216
- /***/ }),
2217
-
2218
- /***/ 421:
2219
- /***/ (function(module) {
2220
-
2221
- "use strict";
2222
-
2223
- module.exports = {};
2224
-
2225
-
2226
- /***/ }),
2227
-
2228
- /***/ 5917:
2229
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2230
-
2231
- "use strict";
2232
-
2233
- var DESCRIPTORS = __webpack_require__(3724);
2234
- var fails = __webpack_require__(9039);
2235
- var createElement = __webpack_require__(4055);
2236
-
2237
- // Thanks to IE8 for its funny defineProperty
2238
- module.exports = !DESCRIPTORS && !fails(function () {
2239
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2240
- return Object.defineProperty(createElement('div'), 'a', {
2241
- get: function () { return 7; }
2242
- }).a !== 7;
2243
- });
2244
-
2245
-
2246
- /***/ }),
2247
-
2248
- /***/ 7055:
2249
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2250
-
2251
- "use strict";
2252
-
2253
- var uncurryThis = __webpack_require__(9504);
2254
- var fails = __webpack_require__(9039);
2255
- var classof = __webpack_require__(2195);
2256
-
2257
- var $Object = Object;
2258
- var split = uncurryThis(''.split);
2259
-
2260
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
2261
- module.exports = fails(function () {
2262
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
2263
- // eslint-disable-next-line no-prototype-builtins -- safe
2264
- return !$Object('z').propertyIsEnumerable(0);
2265
- }) ? function (it) {
2266
- return classof(it) === 'String' ? split(it, '') : $Object(it);
2267
- } : $Object;
2268
-
2269
-
2270
- /***/ }),
2271
-
2272
- /***/ 3167:
2273
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2274
-
2275
- "use strict";
2276
-
2277
- var isCallable = __webpack_require__(4901);
2278
- var isObject = __webpack_require__(34);
2279
- var setPrototypeOf = __webpack_require__(2967);
2280
-
2281
- // makes subclassing work correct for wrapped built-ins
2282
- module.exports = function ($this, dummy, Wrapper) {
2283
- var NewTarget, NewTargetPrototype;
2284
- if (
2285
- // it can work only with native `setPrototypeOf`
2286
- setPrototypeOf &&
2287
- // we haven't completely correct pre-ES6 way for getting `new.target`, so use this
2288
- isCallable(NewTarget = dummy.constructor) &&
2289
- NewTarget !== Wrapper &&
2290
- isObject(NewTargetPrototype = NewTarget.prototype) &&
2291
- NewTargetPrototype !== Wrapper.prototype
2292
- ) setPrototypeOf($this, NewTargetPrototype);
2293
- return $this;
2294
- };
2295
-
2296
-
2297
- /***/ }),
2298
-
2299
- /***/ 3706:
2300
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2301
-
2302
- "use strict";
2303
-
2304
- var uncurryThis = __webpack_require__(9504);
2305
- var isCallable = __webpack_require__(4901);
2306
- var store = __webpack_require__(7629);
2307
-
2308
- var functionToString = uncurryThis(Function.toString);
2309
-
2310
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
2311
- if (!isCallable(store.inspectSource)) {
2312
- store.inspectSource = function (it) {
2313
- return functionToString(it);
2314
- };
2315
- }
2316
-
2317
- module.exports = store.inspectSource;
2318
-
2319
-
2320
- /***/ }),
2321
-
2322
- /***/ 1181:
2323
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2324
-
2325
- "use strict";
2326
-
2327
- var NATIVE_WEAK_MAP = __webpack_require__(8622);
2328
- var globalThis = __webpack_require__(4576);
2329
- var isObject = __webpack_require__(34);
2330
- var createNonEnumerableProperty = __webpack_require__(6699);
2331
- var hasOwn = __webpack_require__(9297);
2332
- var shared = __webpack_require__(7629);
2333
- var sharedKey = __webpack_require__(6119);
2334
- var hiddenKeys = __webpack_require__(421);
2335
-
2336
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
2337
- var TypeError = globalThis.TypeError;
2338
- var WeakMap = globalThis.WeakMap;
2339
- var set, get, has;
2340
-
2341
- var enforce = function (it) {
2342
- return has(it) ? get(it) : set(it, {});
2343
- };
2344
-
2345
- var getterFor = function (TYPE) {
2346
- return function (it) {
2347
- var state;
2348
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
2349
- throw new TypeError('Incompatible receiver, ' + TYPE + ' required');
2350
- } return state;
2351
- };
2352
- };
2353
-
2354
- if (NATIVE_WEAK_MAP || shared.state) {
2355
- var store = shared.state || (shared.state = new WeakMap());
2356
- /* eslint-disable no-self-assign -- prototype methods protection */
2357
- store.get = store.get;
2358
- store.has = store.has;
2359
- store.set = store.set;
2360
- /* eslint-enable no-self-assign -- prototype methods protection */
2361
- set = function (it, metadata) {
2362
- if (store.has(it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2363
- metadata.facade = it;
2364
- store.set(it, metadata);
2365
- return metadata;
2366
- };
2367
- get = function (it) {
2368
- return store.get(it) || {};
2369
- };
2370
- has = function (it) {
2371
- return store.has(it);
2372
- };
2373
- } else {
2374
- var STATE = sharedKey('state');
2375
- hiddenKeys[STATE] = true;
2376
- set = function (it, metadata) {
2377
- if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
2378
- metadata.facade = it;
2379
- createNonEnumerableProperty(it, STATE, metadata);
2380
- return metadata;
2381
- };
2382
- get = function (it) {
2383
- return hasOwn(it, STATE) ? it[STATE] : {};
2384
- };
2385
- has = function (it) {
2386
- return hasOwn(it, STATE);
2387
- };
2388
- }
2389
-
2390
- module.exports = {
2391
- set: set,
2392
- get: get,
2393
- has: has,
2394
- enforce: enforce,
2395
- getterFor: getterFor
2396
- };
2397
-
2398
-
2399
- /***/ }),
2400
-
2401
- /***/ 4376:
2402
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2403
-
2404
- "use strict";
2405
-
2406
- var classof = __webpack_require__(2195);
2407
-
2408
- // `IsArray` abstract operation
2409
- // https://tc39.es/ecma262/#sec-isarray
2410
- // eslint-disable-next-line es/no-array-isarray -- safe
2411
- module.exports = Array.isArray || function isArray(argument) {
2412
- return classof(argument) === 'Array';
2413
- };
2414
-
2415
-
2416
- /***/ }),
2417
-
2418
- /***/ 4901:
2419
- /***/ (function(module) {
2420
-
2421
- "use strict";
2422
-
2423
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
2424
- var documentAll = typeof document == 'object' && document.all;
2425
-
2426
- // `IsCallable` abstract operation
2427
- // https://tc39.es/ecma262/#sec-iscallable
2428
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
2429
- module.exports = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
2430
- return typeof argument == 'function' || argument === documentAll;
2431
- } : function (argument) {
2432
- return typeof argument == 'function';
2433
- };
2434
-
2435
-
2436
- /***/ }),
2437
-
2438
- /***/ 2796:
2439
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2440
-
2441
- "use strict";
2442
-
2443
- var fails = __webpack_require__(9039);
2444
- var isCallable = __webpack_require__(4901);
2445
-
2446
- var replacement = /#|\.prototype\./;
2447
-
2448
- var isForced = function (feature, detection) {
2449
- var value = data[normalize(feature)];
2450
- return value === POLYFILL ? true
2451
- : value === NATIVE ? false
2452
- : isCallable(detection) ? fails(detection)
2453
- : !!detection;
2454
- };
2455
-
2456
- var normalize = isForced.normalize = function (string) {
2457
- return String(string).replace(replacement, '.').toLowerCase();
2458
- };
2459
-
2460
- var data = isForced.data = {};
2461
- var NATIVE = isForced.NATIVE = 'N';
2462
- var POLYFILL = isForced.POLYFILL = 'P';
2463
-
2464
- module.exports = isForced;
2465
-
2466
-
2467
- /***/ }),
2468
-
2469
- /***/ 4117:
2470
- /***/ (function(module) {
2471
-
2472
- "use strict";
2473
-
2474
- // we can't use just `it == null` since of `document.all` special case
2475
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
2476
- module.exports = function (it) {
2477
- return it === null || it === undefined;
2478
- };
2479
-
2480
-
2481
- /***/ }),
2482
-
2483
- /***/ 34:
2484
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2485
-
2486
- "use strict";
2487
-
2488
- var isCallable = __webpack_require__(4901);
2489
-
2490
- module.exports = function (it) {
2491
- return typeof it == 'object' ? it !== null : isCallable(it);
2492
- };
2493
-
2494
-
2495
- /***/ }),
2496
-
2497
- /***/ 3925:
2498
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2499
-
2500
- "use strict";
2501
-
2502
- var isObject = __webpack_require__(34);
2503
-
2504
- module.exports = function (argument) {
2505
- return isObject(argument) || argument === null;
2506
- };
2507
-
2508
-
2509
- /***/ }),
2510
-
2511
- /***/ 6395:
2512
- /***/ (function(module) {
2513
-
2514
- "use strict";
2515
-
2516
- module.exports = false;
2517
-
2518
-
2519
- /***/ }),
2520
-
2521
- /***/ 757:
2522
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2523
-
2524
- "use strict";
2525
-
2526
- var getBuiltIn = __webpack_require__(7751);
2527
- var isCallable = __webpack_require__(4901);
2528
- var isPrototypeOf = __webpack_require__(1625);
2529
- var USE_SYMBOL_AS_UID = __webpack_require__(7040);
2530
-
2531
- var $Object = Object;
2532
-
2533
- module.exports = USE_SYMBOL_AS_UID ? function (it) {
2534
- return typeof it == 'symbol';
2535
- } : function (it) {
2536
- var $Symbol = getBuiltIn('Symbol');
2537
- return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, $Object(it));
2538
- };
2539
-
2540
-
2541
- /***/ }),
2542
-
2543
- /***/ 6198:
2544
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2545
-
2546
- "use strict";
2547
-
2548
- var toLength = __webpack_require__(8014);
2549
-
2550
- // `LengthOfArrayLike` abstract operation
2551
- // https://tc39.es/ecma262/#sec-lengthofarraylike
2552
- module.exports = function (obj) {
2553
- return toLength(obj.length);
2554
- };
2555
-
2556
-
2557
- /***/ }),
2558
-
2559
- /***/ 283:
2560
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2561
-
2562
- "use strict";
2563
-
2564
- var uncurryThis = __webpack_require__(9504);
2565
- var fails = __webpack_require__(9039);
2566
- var isCallable = __webpack_require__(4901);
2567
- var hasOwn = __webpack_require__(9297);
2568
- var DESCRIPTORS = __webpack_require__(3724);
2569
- var CONFIGURABLE_FUNCTION_NAME = (__webpack_require__(350).CONFIGURABLE);
2570
- var inspectSource = __webpack_require__(3706);
2571
- var InternalStateModule = __webpack_require__(1181);
2572
-
2573
- var enforceInternalState = InternalStateModule.enforce;
2574
- var getInternalState = InternalStateModule.get;
2575
- var $String = String;
2576
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2577
- var defineProperty = Object.defineProperty;
2578
- var stringSlice = uncurryThis(''.slice);
2579
- var replace = uncurryThis(''.replace);
2580
- var join = uncurryThis([].join);
2581
-
2582
- var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails(function () {
2583
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
2584
- });
2585
-
2586
- var TEMPLATE = String(String).split('String');
2587
-
2588
- var makeBuiltIn = module.exports = function (value, name, options) {
2589
- if (stringSlice($String(name), 0, 7) === 'Symbol(') {
2590
- name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
2591
- }
2592
- if (options && options.getter) name = 'get ' + name;
2593
- if (options && options.setter) name = 'set ' + name;
2594
- if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
2595
- if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
2596
- else value.name = name;
2597
- }
2598
- if (CONFIGURABLE_LENGTH && options && hasOwn(options, 'arity') && value.length !== options.arity) {
2599
- defineProperty(value, 'length', { value: options.arity });
2600
- }
2601
- try {
2602
- if (options && hasOwn(options, 'constructor') && options.constructor) {
2603
- if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
2604
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
2605
- } else if (value.prototype) value.prototype = undefined;
2606
- } catch (error) { /* empty */ }
2607
- var state = enforceInternalState(value);
2608
- if (!hasOwn(state, 'source')) {
2609
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
2610
- } return value;
2611
- };
2612
-
2613
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
2614
- // eslint-disable-next-line no-extend-native -- required
2615
- Function.prototype.toString = makeBuiltIn(function toString() {
2616
- return isCallable(this) && getInternalState(this).source || inspectSource(this);
2617
- }, 'toString');
2618
-
2619
-
2620
- /***/ }),
2621
-
2622
- /***/ 741:
2623
- /***/ (function(module) {
2624
-
2625
- "use strict";
2626
-
2627
- var ceil = Math.ceil;
2628
- var floor = Math.floor;
2629
-
2630
- // `Math.trunc` method
2631
- // https://tc39.es/ecma262/#sec-math.trunc
2632
- // eslint-disable-next-line es/no-math-trunc -- safe
2633
- module.exports = Math.trunc || function trunc(x) {
2634
- var n = +x;
2635
- return (n > 0 ? floor : ceil)(n);
2636
- };
2637
-
2638
-
2639
- /***/ }),
2640
-
2641
- /***/ 2603:
2642
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2643
-
2644
- "use strict";
2645
-
2646
- var toString = __webpack_require__(655);
2647
-
2648
- module.exports = function (argument, $default) {
2649
- return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
2650
- };
2651
-
2652
-
2653
- /***/ }),
2654
-
2655
- /***/ 4913:
2656
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2657
-
2658
- "use strict";
2659
-
2660
- var DESCRIPTORS = __webpack_require__(3724);
2661
- var IE8_DOM_DEFINE = __webpack_require__(5917);
2662
- var V8_PROTOTYPE_DEFINE_BUG = __webpack_require__(8686);
2663
- var anObject = __webpack_require__(8551);
2664
- var toPropertyKey = __webpack_require__(6969);
2665
-
2666
- var $TypeError = TypeError;
2667
- // eslint-disable-next-line es/no-object-defineproperty -- safe
2668
- var $defineProperty = Object.defineProperty;
2669
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2670
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2671
- var ENUMERABLE = 'enumerable';
2672
- var CONFIGURABLE = 'configurable';
2673
- var WRITABLE = 'writable';
2674
-
2675
- // `Object.defineProperty` method
2676
- // https://tc39.es/ecma262/#sec-object.defineproperty
2677
- exports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
2678
- anObject(O);
2679
- P = toPropertyKey(P);
2680
- anObject(Attributes);
2681
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
2682
- var current = $getOwnPropertyDescriptor(O, P);
2683
- if (current && current[WRITABLE]) {
2684
- O[P] = Attributes.value;
2685
- Attributes = {
2686
- configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],
2687
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
2688
- writable: false
2689
- };
2690
- }
2691
- } return $defineProperty(O, P, Attributes);
2692
- } : $defineProperty : function defineProperty(O, P, Attributes) {
2693
- anObject(O);
2694
- P = toPropertyKey(P);
2695
- anObject(Attributes);
2696
- if (IE8_DOM_DEFINE) try {
2697
- return $defineProperty(O, P, Attributes);
2698
- } catch (error) { /* empty */ }
2699
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
2700
- if ('value' in Attributes) O[P] = Attributes.value;
2701
- return O;
2702
- };
2703
-
2704
-
2705
- /***/ }),
2706
-
2707
- /***/ 7347:
2708
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2709
-
2710
- "use strict";
2711
-
2712
- var DESCRIPTORS = __webpack_require__(3724);
2713
- var call = __webpack_require__(9565);
2714
- var propertyIsEnumerableModule = __webpack_require__(8773);
2715
- var createPropertyDescriptor = __webpack_require__(6980);
2716
- var toIndexedObject = __webpack_require__(5397);
2717
- var toPropertyKey = __webpack_require__(6969);
2718
- var hasOwn = __webpack_require__(9297);
2719
- var IE8_DOM_DEFINE = __webpack_require__(5917);
2720
-
2721
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2722
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2723
-
2724
- // `Object.getOwnPropertyDescriptor` method
2725
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
2726
- exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
2727
- O = toIndexedObject(O);
2728
- P = toPropertyKey(P);
2729
- if (IE8_DOM_DEFINE) try {
2730
- return $getOwnPropertyDescriptor(O, P);
2731
- } catch (error) { /* empty */ }
2732
- if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);
2733
- };
2734
-
2735
-
2736
- /***/ }),
2737
-
2738
- /***/ 8480:
2739
- /***/ (function(__unused_webpack_module, exports, __webpack_require__) {
2740
-
2741
- "use strict";
2742
-
2743
- var internalObjectKeys = __webpack_require__(1828);
2744
- var enumBugKeys = __webpack_require__(8727);
2745
-
2746
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
2747
-
2748
- // `Object.getOwnPropertyNames` method
2749
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
2750
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
2751
- exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
2752
- return internalObjectKeys(O, hiddenKeys);
2753
- };
2754
-
2755
-
2756
- /***/ }),
2757
-
2758
- /***/ 3717:
2759
- /***/ (function(__unused_webpack_module, exports) {
2760
-
2761
- "use strict";
2762
-
2763
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
2764
- exports.f = Object.getOwnPropertySymbols;
2765
-
2766
-
2767
- /***/ }),
2768
-
2769
- /***/ 1625:
2770
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2771
-
2772
- "use strict";
2773
-
2774
- var uncurryThis = __webpack_require__(9504);
2775
-
2776
- module.exports = uncurryThis({}.isPrototypeOf);
2777
-
2778
-
2779
- /***/ }),
2780
-
2781
- /***/ 1828:
2782
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2783
-
2784
- "use strict";
2785
-
2786
- var uncurryThis = __webpack_require__(9504);
2787
- var hasOwn = __webpack_require__(9297);
2788
- var toIndexedObject = __webpack_require__(5397);
2789
- var indexOf = (__webpack_require__(9617).indexOf);
2790
- var hiddenKeys = __webpack_require__(421);
2791
-
2792
- var push = uncurryThis([].push);
2793
-
2794
- module.exports = function (object, names) {
2795
- var O = toIndexedObject(object);
2796
- var i = 0;
2797
- var result = [];
2798
- var key;
2799
- for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);
2800
- // Don't enum bug & hidden keys
2801
- while (names.length > i) if (hasOwn(O, key = names[i++])) {
2802
- ~indexOf(result, key) || push(result, key);
2803
- }
2804
- return result;
2805
- };
2806
-
2807
-
2808
- /***/ }),
2809
-
2810
- /***/ 8773:
2811
- /***/ (function(__unused_webpack_module, exports) {
2812
-
2813
- "use strict";
2814
-
2815
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
2816
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2817
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2818
-
2819
- // Nashorn ~ JDK8 bug
2820
- var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
2821
-
2822
- // `Object.prototype.propertyIsEnumerable` method implementation
2823
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
2824
- exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
2825
- var descriptor = getOwnPropertyDescriptor(this, V);
2826
- return !!descriptor && descriptor.enumerable;
2827
- } : $propertyIsEnumerable;
2828
-
2829
-
2830
- /***/ }),
2831
-
2832
- /***/ 2967:
2833
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2834
-
2835
- "use strict";
2836
-
2837
- /* eslint-disable no-proto -- safe */
2838
- var uncurryThisAccessor = __webpack_require__(6706);
2839
- var isObject = __webpack_require__(34);
2840
- var requireObjectCoercible = __webpack_require__(7750);
2841
- var aPossiblePrototype = __webpack_require__(3506);
2842
-
2843
- // `Object.setPrototypeOf` method
2844
- // https://tc39.es/ecma262/#sec-object.setprototypeof
2845
- // Works with __proto__ only. Old v8 can't work with null proto objects.
2846
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
2847
- module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2848
- var CORRECT_SETTER = false;
2849
- var test = {};
2850
- var setter;
2851
- try {
2852
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
2853
- setter(test, []);
2854
- CORRECT_SETTER = test instanceof Array;
2855
- } catch (error) { /* empty */ }
2856
- return function setPrototypeOf(O, proto) {
2857
- requireObjectCoercible(O);
2858
- aPossiblePrototype(proto);
2859
- if (!isObject(O)) return O;
2860
- if (CORRECT_SETTER) setter(O, proto);
2861
- else O.__proto__ = proto;
2862
- return O;
2863
- };
2864
- }() : undefined);
2865
-
2866
-
2867
- /***/ }),
2868
-
2869
- /***/ 4270:
2870
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2871
-
2872
- "use strict";
2873
-
2874
- var call = __webpack_require__(9565);
2875
- var isCallable = __webpack_require__(4901);
2876
- var isObject = __webpack_require__(34);
2877
-
2878
- var $TypeError = TypeError;
2879
-
2880
- // `OrdinaryToPrimitive` abstract operation
2881
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
2882
- module.exports = function (input, pref) {
2883
- var fn, val;
2884
- if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
2885
- if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;
2886
- if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;
2887
- throw new $TypeError("Can't convert object to primitive value");
2888
- };
2889
-
2890
-
2891
- /***/ }),
2892
-
2893
- /***/ 5031:
2894
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2895
-
2896
- "use strict";
2897
-
2898
- var getBuiltIn = __webpack_require__(7751);
2899
- var uncurryThis = __webpack_require__(9504);
2900
- var getOwnPropertyNamesModule = __webpack_require__(8480);
2901
- var getOwnPropertySymbolsModule = __webpack_require__(3717);
2902
- var anObject = __webpack_require__(8551);
2903
-
2904
- var concat = uncurryThis([].concat);
2905
-
2906
- // all object keys, includes non-enumerable and symbols
2907
- module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
2908
- var keys = getOwnPropertyNamesModule.f(anObject(it));
2909
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2910
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
2911
- };
2912
-
2913
-
2914
- /***/ }),
2915
-
2916
- /***/ 7750:
2917
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2918
-
2919
- "use strict";
2920
-
2921
- var isNullOrUndefined = __webpack_require__(4117);
2922
-
2923
- var $TypeError = TypeError;
2924
-
2925
- // `RequireObjectCoercible` abstract operation
2926
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
2927
- module.exports = function (it) {
2928
- if (isNullOrUndefined(it)) throw new $TypeError("Can't call method on " + it);
2929
- return it;
2930
- };
2931
-
2932
-
2933
- /***/ }),
2934
-
2935
- /***/ 6119:
2936
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2937
-
2938
- "use strict";
2939
-
2940
- var shared = __webpack_require__(5745);
2941
- var uid = __webpack_require__(3392);
2942
-
2943
- var keys = shared('keys');
2944
-
2945
- module.exports = function (key) {
2946
- return keys[key] || (keys[key] = uid(key));
2947
- };
2948
-
2949
-
2950
- /***/ }),
2951
-
2952
- /***/ 7629:
2953
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2954
-
2955
- "use strict";
2956
-
2957
- var IS_PURE = __webpack_require__(6395);
2958
- var globalThis = __webpack_require__(4576);
2959
- var defineGlobalProperty = __webpack_require__(9433);
2960
-
2961
- var SHARED = '__core-js_shared__';
2962
- var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
2963
-
2964
- (store.versions || (store.versions = [])).push({
2965
- version: '3.38.1',
2966
- mode: IS_PURE ? 'pure' : 'global',
2967
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
2968
- license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
2969
- source: 'https://github.com/zloirock/core-js'
2970
- });
2971
-
2972
-
2973
- /***/ }),
2974
-
2975
- /***/ 5745:
2976
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2977
-
2978
- "use strict";
2979
-
2980
- var store = __webpack_require__(7629);
2981
-
2982
- module.exports = function (key, value) {
2983
- return store[key] || (store[key] = value || {});
2984
- };
2985
-
2986
-
2987
- /***/ }),
2988
-
2989
- /***/ 4495:
2990
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2991
-
2992
- "use strict";
2993
-
2994
- /* eslint-disable es/no-symbol -- required for testing */
2995
- var V8_VERSION = __webpack_require__(9519);
2996
- var fails = __webpack_require__(9039);
2997
- var globalThis = __webpack_require__(4576);
2998
-
2999
- var $String = globalThis.String;
3000
-
3001
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
3002
- module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
3003
- var symbol = Symbol('symbol detection');
3004
- // Chrome 38 Symbol has incorrect toString conversion
3005
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
3006
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
3007
- // of course, fail.
3008
- return !$String(symbol) || !(Object(symbol) instanceof Symbol) ||
3009
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
3010
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
3011
- });
3012
-
3013
-
3014
- /***/ }),
3015
-
3016
- /***/ 5610:
3017
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3018
-
3019
- "use strict";
3020
-
3021
- var toIntegerOrInfinity = __webpack_require__(1291);
3022
-
3023
- var max = Math.max;
3024
- var min = Math.min;
3025
-
3026
- // Helper for a popular repeating case of the spec:
3027
- // Let integer be ? ToInteger(index).
3028
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
3029
- module.exports = function (index, length) {
3030
- var integer = toIntegerOrInfinity(index);
3031
- return integer < 0 ? max(integer + length, 0) : min(integer, length);
3032
- };
3033
-
3034
-
3035
- /***/ }),
3036
-
3037
- /***/ 5397:
3038
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3039
-
3040
- "use strict";
3041
-
3042
- // toObject with fallback for non-array-like ES3 strings
3043
- var IndexedObject = __webpack_require__(7055);
3044
- var requireObjectCoercible = __webpack_require__(7750);
3045
-
3046
- module.exports = function (it) {
3047
- return IndexedObject(requireObjectCoercible(it));
3048
- };
3049
-
3050
-
3051
- /***/ }),
3052
-
3053
- /***/ 1291:
3054
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3055
-
3056
- "use strict";
3057
-
3058
- var trunc = __webpack_require__(741);
3059
-
3060
- // `ToIntegerOrInfinity` abstract operation
3061
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
3062
- module.exports = function (argument) {
3063
- var number = +argument;
3064
- // eslint-disable-next-line no-self-compare -- NaN check
3065
- return number !== number || number === 0 ? 0 : trunc(number);
3066
- };
3067
-
3068
-
3069
- /***/ }),
3070
-
3071
- /***/ 8014:
3072
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3073
-
3074
- "use strict";
3075
-
3076
- var toIntegerOrInfinity = __webpack_require__(1291);
3077
-
3078
- var min = Math.min;
3079
-
3080
- // `ToLength` abstract operation
3081
- // https://tc39.es/ecma262/#sec-tolength
3082
- module.exports = function (argument) {
3083
- var len = toIntegerOrInfinity(argument);
3084
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
3085
- };
3086
-
3087
-
3088
- /***/ }),
3089
-
3090
- /***/ 8981:
3091
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3092
-
3093
- "use strict";
3094
-
3095
- var requireObjectCoercible = __webpack_require__(7750);
3096
-
3097
- var $Object = Object;
3098
-
3099
- // `ToObject` abstract operation
3100
- // https://tc39.es/ecma262/#sec-toobject
3101
- module.exports = function (argument) {
3102
- return $Object(requireObjectCoercible(argument));
3103
- };
3104
-
3105
-
3106
- /***/ }),
3107
-
3108
- /***/ 2777:
3109
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3110
-
3111
- "use strict";
3112
-
3113
- var call = __webpack_require__(9565);
3114
- var isObject = __webpack_require__(34);
3115
- var isSymbol = __webpack_require__(757);
3116
- var getMethod = __webpack_require__(5966);
3117
- var ordinaryToPrimitive = __webpack_require__(4270);
3118
- var wellKnownSymbol = __webpack_require__(8227);
3119
-
3120
- var $TypeError = TypeError;
3121
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
3122
-
3123
- // `ToPrimitive` abstract operation
3124
- // https://tc39.es/ecma262/#sec-toprimitive
3125
- module.exports = function (input, pref) {
3126
- if (!isObject(input) || isSymbol(input)) return input;
3127
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
3128
- var result;
3129
- if (exoticToPrim) {
3130
- if (pref === undefined) pref = 'default';
3131
- result = call(exoticToPrim, input, pref);
3132
- if (!isObject(result) || isSymbol(result)) return result;
3133
- throw new $TypeError("Can't convert object to primitive value");
3134
- }
3135
- if (pref === undefined) pref = 'number';
3136
- return ordinaryToPrimitive(input, pref);
3137
- };
3138
-
3139
-
3140
- /***/ }),
3141
-
3142
- /***/ 6969:
3143
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3144
-
3145
- "use strict";
3146
-
3147
- var toPrimitive = __webpack_require__(2777);
3148
- var isSymbol = __webpack_require__(757);
3149
-
3150
- // `ToPropertyKey` abstract operation
3151
- // https://tc39.es/ecma262/#sec-topropertykey
3152
- module.exports = function (argument) {
3153
- var key = toPrimitive(argument, 'string');
3154
- return isSymbol(key) ? key : key + '';
3155
- };
3156
-
3157
-
3158
- /***/ }),
3159
-
3160
- /***/ 2140:
3161
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3162
-
3163
- "use strict";
3164
-
3165
- var wellKnownSymbol = __webpack_require__(8227);
3166
-
3167
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3168
- var test = {};
3169
-
3170
- test[TO_STRING_TAG] = 'z';
3171
-
3172
- module.exports = String(test) === '[object z]';
3173
-
3174
-
3175
- /***/ }),
3176
-
3177
- /***/ 655:
3178
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3179
-
3180
- "use strict";
3181
-
3182
- var classof = __webpack_require__(6955);
3183
-
3184
- var $String = String;
3185
-
3186
- module.exports = function (argument) {
3187
- if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
3188
- return $String(argument);
3189
- };
3190
-
3191
-
3192
- /***/ }),
3193
-
3194
- /***/ 6823:
3195
- /***/ (function(module) {
3196
-
3197
- "use strict";
3198
-
3199
- var $String = String;
3200
-
3201
- module.exports = function (argument) {
3202
- try {
3203
- return $String(argument);
3204
- } catch (error) {
3205
- return 'Object';
3206
- }
3207
- };
3208
-
3209
-
3210
- /***/ }),
3211
-
3212
- /***/ 3392:
3213
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3214
-
3215
- "use strict";
3216
-
3217
- var uncurryThis = __webpack_require__(9504);
3218
-
3219
- var id = 0;
3220
- var postfix = Math.random();
3221
- var toString = uncurryThis(1.0.toString);
3222
-
3223
- module.exports = function (key) {
3224
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
3225
- };
3226
-
3227
-
3228
- /***/ }),
3229
-
3230
- /***/ 7040:
3231
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3232
-
3233
- "use strict";
3234
-
3235
- /* eslint-disable es/no-symbol -- required for testing */
3236
- var NATIVE_SYMBOL = __webpack_require__(4495);
3237
-
3238
- module.exports = NATIVE_SYMBOL
3239
- && !Symbol.sham
3240
- && typeof Symbol.iterator == 'symbol';
3241
-
3242
-
3243
- /***/ }),
3244
-
3245
- /***/ 8686:
3246
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3247
-
3248
- "use strict";
3249
-
3250
- var DESCRIPTORS = __webpack_require__(3724);
3251
- var fails = __webpack_require__(9039);
3252
-
3253
- // V8 ~ Chrome 36-
3254
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
3255
- module.exports = DESCRIPTORS && fails(function () {
3256
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
3257
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
3258
- value: 42,
3259
- writable: false
3260
- }).prototype !== 42;
3261
- });
3262
-
3263
-
3264
- /***/ }),
3265
-
3266
- /***/ 2812:
3267
- /***/ (function(module) {
3268
-
3269
- "use strict";
3270
-
3271
- var $TypeError = TypeError;
3272
-
3273
- module.exports = function (passed, required) {
3274
- if (passed < required) throw new $TypeError('Not enough arguments');
3275
- return passed;
3276
- };
3277
-
3278
-
3279
- /***/ }),
3280
-
3281
- /***/ 8622:
3282
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3283
-
3284
- "use strict";
3285
-
3286
- var globalThis = __webpack_require__(4576);
3287
- var isCallable = __webpack_require__(4901);
3288
-
3289
- var WeakMap = globalThis.WeakMap;
3290
-
3291
- module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
3292
-
3293
-
3294
- /***/ }),
3295
-
3296
- /***/ 8227:
3297
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3298
-
3299
- "use strict";
3300
-
3301
- var globalThis = __webpack_require__(4576);
3302
- var shared = __webpack_require__(5745);
3303
- var hasOwn = __webpack_require__(9297);
3304
- var uid = __webpack_require__(3392);
3305
- var NATIVE_SYMBOL = __webpack_require__(4495);
3306
- var USE_SYMBOL_AS_UID = __webpack_require__(7040);
3307
-
3308
- var Symbol = globalThis.Symbol;
3309
- var WellKnownSymbolsStore = shared('wks');
3310
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
3311
-
3312
- module.exports = function (name) {
3313
- if (!hasOwn(WellKnownSymbolsStore, name)) {
3314
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn(Symbol, name)
3315
- ? Symbol[name]
3316
- : createWellKnownSymbol('Symbol.' + name);
3317
- } return WellKnownSymbolsStore[name];
3318
- };
3319
-
3320
-
3321
- /***/ }),
3322
-
3323
- /***/ 4114:
3324
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3325
-
3326
- "use strict";
3327
-
3328
- var $ = __webpack_require__(6518);
3329
- var toObject = __webpack_require__(8981);
3330
- var lengthOfArrayLike = __webpack_require__(6198);
3331
- var setArrayLength = __webpack_require__(4527);
3332
- var doesNotExceedSafeInteger = __webpack_require__(6837);
3333
- var fails = __webpack_require__(9039);
3334
-
3335
- var INCORRECT_TO_LENGTH = fails(function () {
3336
- return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
3337
- });
3338
-
3339
- // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
3340
- // https://bugs.chromium.org/p/v8/issues/detail?id=12681
3341
- var properErrorOnNonWritableLength = function () {
3342
- try {
3343
- // eslint-disable-next-line es/no-object-defineproperty -- safe
3344
- Object.defineProperty([], 'length', { writable: false }).push();
3345
- } catch (error) {
3346
- return error instanceof TypeError;
3347
- }
3348
- };
3349
-
3350
- var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
3351
-
3352
- // `Array.prototype.push` method
3353
- // https://tc39.es/ecma262/#sec-array.prototype.push
3354
- $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
3355
- // eslint-disable-next-line no-unused-vars -- required for `.length`
3356
- push: function push(item) {
3357
- var O = toObject(this);
3358
- var len = lengthOfArrayLike(O);
3359
- var argCount = arguments.length;
3360
- doesNotExceedSafeInteger(len + argCount);
3361
- for (var i = 0; i < argCount; i++) {
3362
- O[len] = arguments[i];
3363
- len++;
3364
- }
3365
- setArrayLength(O, len);
3366
- return len;
3367
- }
3368
- });
3369
-
3370
-
3371
- /***/ }),
3372
-
3373
- /***/ 4979:
3374
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3375
-
3376
- "use strict";
3377
-
3378
- var $ = __webpack_require__(6518);
3379
- var globalThis = __webpack_require__(4576);
3380
- var getBuiltIn = __webpack_require__(7751);
3381
- var createPropertyDescriptor = __webpack_require__(6980);
3382
- var defineProperty = (__webpack_require__(4913).f);
3383
- var hasOwn = __webpack_require__(9297);
3384
- var anInstance = __webpack_require__(679);
3385
- var inheritIfRequired = __webpack_require__(3167);
3386
- var normalizeStringArgument = __webpack_require__(2603);
3387
- var DOMExceptionConstants = __webpack_require__(5002);
3388
- var clearErrorStack = __webpack_require__(6193);
3389
- var DESCRIPTORS = __webpack_require__(3724);
3390
- var IS_PURE = __webpack_require__(6395);
3391
-
3392
- var DOM_EXCEPTION = 'DOMException';
3393
- var Error = getBuiltIn('Error');
3394
- var NativeDOMException = getBuiltIn(DOM_EXCEPTION);
3395
-
3396
- var $DOMException = function DOMException() {
3397
- anInstance(this, DOMExceptionPrototype);
3398
- var argumentsLength = arguments.length;
3399
- var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);
3400
- var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');
3401
- var that = new NativeDOMException(message, name);
3402
- var error = new Error(message);
3403
- error.name = DOM_EXCEPTION;
3404
- defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
3405
- inheritIfRequired(that, this, $DOMException);
3406
- return that;
3407
- };
3408
-
3409
- var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
3410
-
3411
- var ERROR_HAS_STACK = 'stack' in new Error(DOM_EXCEPTION);
3412
- var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
3413
-
3414
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
3415
- var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(globalThis, DOM_EXCEPTION);
3416
-
3417
- // Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
3418
- // https://github.com/Jarred-Sumner/bun/issues/399
3419
- var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);
3420
-
3421
- var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
3422
-
3423
- // `DOMException` constructor patch for `.stack` where it's required
3424
- // https://webidl.spec.whatwg.org/#es-DOMException-specialness
3425
- $({ global: true, constructor: true, forced: IS_PURE || FORCED_CONSTRUCTOR }, { // TODO: fix export logic
3426
- DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
3427
- });
3428
-
3429
- var PolyfilledDOMException = getBuiltIn(DOM_EXCEPTION);
3430
- var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
3431
-
3432
- if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
3433
- if (!IS_PURE) {
3434
- defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));
3435
- }
3436
-
3437
- for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {
3438
- var constant = DOMExceptionConstants[key];
3439
- var constantName = constant.s;
3440
- if (!hasOwn(PolyfilledDOMException, constantName)) {
3441
- defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
3442
- }
3443
- }
3444
- }
3445
-
3446
-
3447
- /***/ }),
3448
-
3449
- /***/ 4603:
3450
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3451
-
3452
- "use strict";
3453
-
3454
- var defineBuiltIn = __webpack_require__(6840);
3455
- var uncurryThis = __webpack_require__(9504);
3456
- var toString = __webpack_require__(655);
3457
- var validateArgumentsLength = __webpack_require__(2812);
3458
-
3459
- var $URLSearchParams = URLSearchParams;
3460
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
3461
- var append = uncurryThis(URLSearchParamsPrototype.append);
3462
- var $delete = uncurryThis(URLSearchParamsPrototype['delete']);
3463
- var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
3464
- var push = uncurryThis([].push);
3465
- var params = new $URLSearchParams('a=1&a=2&b=3');
3466
-
3467
- params['delete']('a', 1);
3468
- // `undefined` case is a Chromium 117 bug
3469
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
3470
- params['delete']('b', undefined);
3471
-
3472
- if (params + '' !== 'a=2') {
3473
- defineBuiltIn(URLSearchParamsPrototype, 'delete', function (name /* , value */) {
3474
- var length = arguments.length;
3475
- var $value = length < 2 ? undefined : arguments[1];
3476
- if (length && $value === undefined) return $delete(this, name);
3477
- var entries = [];
3478
- forEach(this, function (v, k) { // also validates `this`
3479
- push(entries, { key: k, value: v });
3480
- });
3481
- validateArgumentsLength(length, 1);
3482
- var key = toString(name);
3483
- var value = toString($value);
3484
- var index = 0;
3485
- var dindex = 0;
3486
- var found = false;
3487
- var entriesLength = entries.length;
3488
- var entry;
3489
- while (index < entriesLength) {
3490
- entry = entries[index++];
3491
- if (found || entry.key === key) {
3492
- found = true;
3493
- $delete(this, entry.key);
3494
- } else dindex++;
3495
- }
3496
- while (dindex < entriesLength) {
3497
- entry = entries[dindex++];
3498
- if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
3499
- }
3500
- }, { enumerable: true, unsafe: true });
3501
- }
3502
-
3503
-
3504
- /***/ }),
3505
-
3506
- /***/ 7566:
3507
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3508
-
3509
- "use strict";
3510
-
3511
- var defineBuiltIn = __webpack_require__(6840);
3512
- var uncurryThis = __webpack_require__(9504);
3513
- var toString = __webpack_require__(655);
3514
- var validateArgumentsLength = __webpack_require__(2812);
3515
-
3516
- var $URLSearchParams = URLSearchParams;
3517
- var URLSearchParamsPrototype = $URLSearchParams.prototype;
3518
- var getAll = uncurryThis(URLSearchParamsPrototype.getAll);
3519
- var $has = uncurryThis(URLSearchParamsPrototype.has);
3520
- var params = new $URLSearchParams('a=1');
3521
-
3522
- // `undefined` case is a Chromium 117 bug
3523
- // https://bugs.chromium.org/p/v8/issues/detail?id=14222
3524
- if (params.has('a', 2) || !params.has('a', undefined)) {
3525
- defineBuiltIn(URLSearchParamsPrototype, 'has', function has(name /* , value */) {
3526
- var length = arguments.length;
3527
- var $value = length < 2 ? undefined : arguments[1];
3528
- if (length && $value === undefined) return $has(this, name);
3529
- var values = getAll(this, name); // also validates `this`
3530
- validateArgumentsLength(length, 1);
3531
- var value = toString($value);
3532
- var index = 0;
3533
- while (index < values.length) {
3534
- if (values[index++] === value) return true;
3535
- } return false;
3536
- }, { enumerable: true, unsafe: true });
3537
- }
3538
-
3539
-
3540
- /***/ }),
3541
-
3542
- /***/ 8721:
3543
- /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
3544
-
3545
- "use strict";
3546
-
3547
- var DESCRIPTORS = __webpack_require__(3724);
3548
- var uncurryThis = __webpack_require__(9504);
3549
- var defineBuiltInAccessor = __webpack_require__(2106);
3550
-
3551
- var URLSearchParamsPrototype = URLSearchParams.prototype;
3552
- var forEach = uncurryThis(URLSearchParamsPrototype.forEach);
3553
-
3554
- // `URLSearchParams.prototype.size` getter
3555
- // https://github.com/whatwg/url/pull/734
3556
- if (DESCRIPTORS && !('size' in URLSearchParamsPrototype)) {
3557
- defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
3558
- get: function size() {
3559
- var count = 0;
3560
- forEach(this, function () { count++; });
3561
- return count;
3562
- },
3563
- configurable: true,
3564
- enumerable: true
3565
- });
3566
- }
3567
-
3568
-
3569
- /***/ }),
3570
-
3571
- /***/ 2957:
3572
- /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
3573
-
3574
- "use strict";
3575
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
3576
- /* harmony export */ Aq: function() { return /* binding */ utils; },
3577
- /* harmony export */ TF: function() { return /* binding */ xhr; }
3578
- /* harmony export */ });
3579
- /* unused harmony exports Cookies, Dom */
3580
- /**
3581
- * 获取某个 Cookie
3582
- *
3583
- * @param name 键名称
3584
- * @returns 值
3585
- */
3586
- function getCookie(name) {
3587
- let arr,
3588
- reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
3589
- // @ts-ignore
3590
- if (arr = document.cookie.match(reg)) return unescape(arr[2]);else return null;
3591
- }
3592
- /**
3593
- * 设置某个 Cookie
3594
- *
3595
- * @param name 键名称
3596
- * @param value 值
3597
- */
3598
- function setCookie(name, value) {
3599
- let days = 2,
3600
- exp = new Date();
3601
- exp.setTime(exp.getTime() + days * 24 * 60 * 60 * 1000);
3602
- // @ts-ignore
3603
- document.cookie = name + "=" + escape(value) + ";path=/;expires=" + exp.toGMTString();
3604
- }
3605
- /**
3606
- * 清空 Cookie
3607
- */
3608
- function delCookie() {
3609
- let keys = document.cookie.match(/[^ =;]+(?==)/g);
3610
- if (keys) {
3611
- let date = new Date(0).toUTCString();
3612
- for (let i = keys.length; i--;) {
3613
- document.cookie = keys[i] + '=0;path=/;expires=' + date; // 清除当前域名下的,例如:m.ratingdog.cn
3614
- document.cookie = keys[i] + '=0;path=/;domain=' + document.domain + ';expires=' + date; // 清除当前域名下的,例如 .m.ratingdog.cn
3615
- document.cookie = keys[i] + '=0;path=/;domain=' + location.host + ';expires=' + date; // 清除一级域名下的或指定的,例如 .ratingdog.cn
3616
- }
3617
- }
3618
- }
3619
- var cookies = /*#__PURE__*/Object.freeze({
3620
- __proto__: null,
3621
- delCookie: delCookie,
3622
- getCookie: getCookie,
3623
- setCookie: setCookie
3624
- });
3625
-
3626
- /**
3627
- * 向父级元素递归搜索
3628
- *
3629
- * @param _el 当前所在元素
3630
- * @param tagName 目标标签名称
3631
- * @param className 目标元素样式类
3632
- * @returns 目标元素,找不到为 null
3633
- */
3634
- function up(_el, tagName, className) {
3635
- if (tagName && className) throw '只能任选一种参数,不能同时传';
3636
- let el = _el.parentNode;
3637
- tagName = tagName && tagName.toUpperCase();
3638
- while (el) {
3639
- if (tagName && el.tagName == tagName) return el;
3640
- if (className && el.className && ~el.className.indexOf(className)) return el;
3641
- el = el.parentNode;
3642
- }
3643
- return null;
3644
- }
3645
- /**
3646
- * 加载脚本
3647
- *
3648
- * @param url 脚本地址
3649
- * @param id 脚本元素 id,可选的
3650
- * @param cb 回调函数,可选的
3651
- */
3652
- function loadScript(url, id, cb) {
3653
- let script = document.createElement("script");
3654
- script.src = url;
3655
- if (cb) script.onload = cb;
3656
- if (id) script.id = id;
3657
- document.getElementsByTagName("head")[0].appendChild(script);
3658
- }
3659
- var dom = /*#__PURE__*/Object.freeze({
3660
- __proto__: null,
3661
- loadScript: loadScript,
3662
- up: up
3663
- });
3664
-
3665
- /**
3666
- * 通用工具类
3667
- */
3668
- /**
3669
- * 是否调试模式中
3670
- *
3671
- * 打包成组件之后不能用
3672
- *
3673
- * @returns
3674
- */
3675
- function isDebug() {
3676
- // @ts-ignore
3677
- return "production" === 'development';
3678
- }
3679
- function isDev() {
3680
- let currentHostname = window.location.hostname;
3681
- // 判断主机名是否是内网地址
3682
- return currentHostname.startsWith('192.168.') || currentHostname.startsWith('10.') || currentHostname === 'localhost';
3683
- }
3684
- /**
3685
- * 日期格式化。详见博客文章:http://blog.csdn.net/zhangxin09/archive/2011/01/01/6111294.aspx
3686
- * e.g: new Date().format("yyyy-MM-dd hh:mm:ss")
3687
- *
3688
- * @param {String} format
3689
- * @return {String}
3690
- */
3691
- function dateFormat(format) {
3692
- let $1,
3693
- o = {
3694
- "M+": this.getMonth() + 1,
3695
- // 月份,从0开始算
3696
- "d+": this.getDate(),
3697
- // 日期
3698
- "h+": this.getHours(),
3699
- // 小时
3700
- "m+": this.getMinutes(),
3701
- // 分钟
3702
- "s+": this.getSeconds(),
3703
- // 秒钟
3704
- // 季度 quarter
3705
- "q+": Math.floor((this.getMonth() + 3) / 3),
3706
- "S": this.getMilliseconds() // 千秒
3707
- };
3708
- if (/(y+)/.test(format))
3709
- // @ts-ignore
3710
- $1 = RegExp.$1, format = format.replace($1, String(this.getFullYear()).substr(4 - $1));
3711
- let key, value;
3712
- for (key in o) {
3713
- // 如果没有指定该参数,则子字符串将延续到 stringvar 的最后。
3714
- if (new RegExp("(" + key + ")").test(format)) {
3715
- $1 = RegExp.$1, value = String(o[key]), value = $1.length == 1 ? value : ("00" + value).substr(value.length), format = format.replace($1, value);
3716
- }
3717
- }
3718
- return format;
3719
- }
3720
- /**
3721
- * 日期格式化
3722
- * @author meizz
3723
- * @param date 日期,必须为 Date 类型
3724
- * @param fmt 格式模板
3725
- * @returns 格式化后的字符串
3726
- */
3727
- function dateFormat2(date, fmt) {
3728
- let o = {
3729
- "M+": date.getMonth() + 1,
3730
- // 月份
3731
- "d+": date.getDate(),
3732
- // 日
3733
- "h+": date.getHours(),
3734
- // 小时
3735
- "m+": date.getMinutes(),
3736
- // 分
3737
- "s+": date.getSeconds(),
3738
- // 秒
3739
- "q+": Math.floor((date.getMonth() + 3) / 3),
3740
- // 季度
3741
- "S": date.getMilliseconds() // 毫秒
3742
- };
3743
- if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
3744
- for (var k in o) if (new RegExp("(" + k + ")").test(fmt)) {
3745
- let obj = RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length);
3746
- // @ts-ignore
3747
- fmt = fmt.replace(RegExp.$1, obj);
3748
- }
3749
- return fmt;
3750
- }
3751
- /**
3752
- * 并行和串行任务
3753
- *
3754
- * @author https://segmentfault.com/a/1190000013265925
3755
- * @param arr
3756
- * @param finnaly
3757
- */
3758
- function parallel(arr, _finally) {
3759
- let fn,
3760
- index = 0;
3761
- // @ts-ignore
3762
- let statusArr = Array(arr.length).fill().map(() => ({
3763
- isActive: false,
3764
- data: null
3765
- }));
3766
- let isFinished = function () {
3767
- return statusArr.every(item => item.isActive === true);
3768
- };
3769
- let resolve = function (index) {
3770
- return function (data) {
3771
- statusArr[index].data = data;
3772
- statusArr[index].isActive = true;
3773
- let isFinish = isFinished();
3774
- if (isFinish) {
3775
- let datas = statusArr.map(item => item.data);
3776
- _finally(datas);
3777
- }
3778
- };
3779
- };
3780
- // @ts-ignore
3781
- while (fn = arr.shift()) {
3782
- fn(resolve(index)); // 给 resolve 函数追加参数,可以使用 bind 函数实现,这里使用了柯里化
3783
- index++;
3784
- }
3785
- }
3786
- /**
3787
- * 函数节流
3788
- *
3789
- * @author https://www.cnblogs.com/moqiutao/p/6875955.html
3790
- * @param fn
3791
- * @param delay
3792
- * @param mustRunDelay
3793
- */
3794
- function throttle(fn, delay, mustRunDelay) {
3795
- var timer, t_start;
3796
- return function () {
3797
- var t_curr = +new Date();
3798
- window.clearTimeout(timer);
3799
- if (!t_start) t_start = t_curr;
3800
- if (t_curr - t_start >= mustRunDelay) {
3801
- // @ts-ignore
3802
- fn.apply(this, arguments);
3803
- t_start = t_curr;
3804
- } else {
3805
- var args = arguments;
3806
- // @ts-ignore
3807
- timer = window.setTimeout(() => fn.apply(this, args), delay);
3808
- }
3809
- };
3810
- }
3811
- /**
3812
- * 复制文字到剪切板
3813
- *
3814
- * @param {string} text
3815
- */
3816
- function copyToClipboard(text) {
3817
- if (navigator.clipboard) navigator.clipboard.writeText(text); // clipboard api 复制
3818
- else {
3819
- let textarea = document.createElement('textarea');
3820
- document.body.appendChild(textarea); // 隐藏此输入框
3821
- textarea.style.position = 'fixed';
3822
- textarea.style.clip = 'rect(0 0 0 0)';
3823
- textarea.style.top = '10px';
3824
- textarea.value = text; // 赋值
3825
- textarea.select(); // 选中
3826
- document.execCommand('copy', true); // 复制
3827
- document.body.removeChild(textarea); // 移除输入框
3828
- }
3829
- }
3830
- var utils = /*#__PURE__*/Object.freeze({
3831
- __proto__: null,
3832
- copyToClipboard: copyToClipboard,
3833
- dateFormat: dateFormat,
3834
- dateFormat2: dateFormat2,
3835
- isDebug: isDebug,
3836
- isDev: isDev,
3837
- parallel: parallel,
3838
- throttle: throttle
3839
- });
3840
-
3841
- /**
3842
- * 默认的请求配置
3843
- */
3844
- const DEFAULT_XHR_CFG = {
3845
- timeout: 5000,
3846
- withCredentials: false,
3847
- parseContentType: 'json'
3848
- };
3849
- /**
3850
- * 全局请求的 head 参数
3851
- */
3852
- let BASE_HEAD_PARAMS = null;
3853
- /**
3854
- * 设置全局请求的 head 参数
3855
- *
3856
- * @param param
3857
- */
3858
- function setBaseHeadParams(params) {
3859
- if (BASE_HEAD_PARAMS === null) BASE_HEAD_PARAMS = {};
3860
- Object.assign(BASE_HEAD_PARAMS, params);
3861
- }
3862
- /**
3863
- *
3864
- * @param getOrDel
3865
- * @param url
3866
- * @param cb
3867
- * @param params
3868
- * @param cfg
3869
- */
3870
- function getOrDel(getOrDel, url, cb, params, cfg = DEFAULT_XHR_CFG) {
3871
- let xhr = initXhr(cfg);
3872
- if (params != null) {
3873
- if (url.indexOf('?') != -1) url += '&' + toParams(params);else url += '?' + toParams(params);
3874
- }
3875
- xhr.open(getOrDel.toUpperCase(), url, true);
3876
- xhr.onreadystatechange = function () {
3877
- responseHandle(this, cb, cfg);
3878
- };
3879
- if (BASE_HEAD_PARAMS)
3880
- // 设置自定义请求头
3881
- for (let key in BASE_HEAD_PARAMS) xhr.setRequestHeader(key, BASE_HEAD_PARAMS[key]);
3882
- xhr.send();
3883
- }
3884
- /**
3885
- *
3886
- * @param method
3887
- * @param url
3888
- * @param cb
3889
- * @param params
3890
- * @param cfg
3891
- */
3892
- function postOrPut(method, url, cb, params, cfg = DEFAULT_XHR_CFG) {
3893
- let xhr = initXhr(cfg);
3894
- xhr.open(method, url, true);
3895
- xhr.onreadystatechange = function () {
3896
- responseHandle(this, cb, cfg);
3897
- };
3898
- if (BASE_HEAD_PARAMS)
3899
- // 设置自定义请求头
3900
- for (let key in BASE_HEAD_PARAMS) xhr.setRequestHeader(key, BASE_HEAD_PARAMS[key]);
3901
- // 此方法必须在 open() 方法和 send() 之间调用
3902
- if (!cfg.contentType)
3903
- // 如未设置,默认为表单请求
3904
- xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");else xhr.setRequestHeader("Content-Type", cfg.contentType);
3905
- let _params = typeof params != 'string' ? toParams(params) : params;
3906
- if (_params) xhr.send(_params);else xhr.send();
3907
- }
3908
- /**
3909
- *
3910
- * @param url
3911
- * @param cb
3912
- * @param params
3913
- * @param cfg
3914
- */
3915
- function xhr_post_upload(url, cb, params, cfg = DEFAULT_XHR_CFG) {
3916
- let xhr = initXhr(cfg);
3917
- xhr.open('post', url, true);
3918
- xhr.onreadystatechange = function () {
3919
- responseHandle(this, cb, cfg);
3920
- };
3921
- if (BASE_HEAD_PARAMS)
3922
- // 设置自定义请求头
3923
- for (let key in BASE_HEAD_PARAMS) xhr.setRequestHeader(key, BASE_HEAD_PARAMS[key]);
3924
- // 什么 Content-Type 都不设置
3925
- xhr.send(params);
3926
- }
3927
- /**
3928
- * XHR GET 请求
3929
- *
3930
- * @param url 请求地址
3931
- * @param cb 回调函数 @example (json: {}, text: string) => void;
3932
- * @param params 参数,必填,如无填空字符串 "";参数类型是json;参数值会进行 URL 编码,最后附加到 QueryString 中
3933
- * @param cfg 配置,可选的
3934
- */
3935
- function xhr_get(url, cb, params, cfg = DEFAULT_XHR_CFG) {
3936
- getOrDel('get', url, cb, params, cfg);
3937
- }
3938
- /**
3939
- * XHR DELETE 请求
3940
- *
3941
- * @param url 请求地址
3942
- * @param cb 回调函数 @example (json: {}, text: string) => void;
3943
- * @param params 参数,必填,如无填空字符串 "";参数类型是json;参数值会进行 URL 编码,最后附加到 QueryString 中
3944
- * @param cfg 配置,可选的
3945
- */
3946
- function xhr_del(url, cb, params, cfg = DEFAULT_XHR_CFG) {
3947
- getOrDel('delete', url, cb, params, cfg);
3948
- }
3949
- /**
3950
- * XHR POST 请求
3951
- *
3952
- * @param url 请求地址
3953
- * @param cb 回调函数 @example (json: {}, text: string) => void;
3954
- * @param params 参数,必填,如无填空字符串 "";参数类型可以是字符串或 json;参数值会进行 URL 编码
3955
- * @param cfg 配置,可选的
3956
- */
3957
- function xhr_post(url, cb, params, cfg = DEFAULT_XHR_CFG) {
3958
- postOrPut('post', url, cb, params, cfg);
3959
- }
3960
- /**
3961
- * XHR PUT 请求
3962
- *
3963
- * @param url 请求地址
3964
- * @param cb 回调函数 @example (json: {}, text: string) => void;
3965
- * @param params 参数,必填,如无填空字符串 "";参数类型可以是字符串或 json;参数值会进行 URL 编码
3966
- * @param cfg 配置,可选的
3967
- */
3968
- function xhr_put(url, cb, params, cfg = DEFAULT_XHR_CFG) {
3969
- postOrPut('put', url, cb, params, cfg);
3970
- }
3971
- /**
3972
- * 初始化 XHR
3973
- *
3974
- * @param cfg
3975
- * @returns
3976
- */
3977
- function initXhr(cfg) {
3978
- let xhr = new XMLHttpRequest();
3979
- if (cfg && cfg.timeout) {
3980
- xhr.timeout = cfg.timeout;
3981
- xhr.ontimeout = e => console.error('系统异常,XHR 连接服务超时');
3982
- }
3983
- if (cfg && cfg.withCredentials) xhr.withCredentials = true;
3984
- return xhr;
3985
- }
3986
- /**
3987
- * 错误处理
3988
- *
3989
- * @param xhr
3990
- */
3991
- function errHandle(xhr) {
3992
- let msg;
3993
- if (xhr.status <= 400) msg = '请求参数错误或者权限不足。';else if (xhr.status <= 500) msg = '服务端异常。';else msg = `未知异常,HTTP code:${xhr.status}。`;
3994
- if (!xhr.responseText) msg += " 服务端返回空的字符串!";
3995
- console.error(msg, xhr.responseText);
3996
- }
3997
- /**
3998
- * 响应处理
3999
- *
4000
- * @param xhr
4001
- * @param cb
4002
- * @param cfg
4003
- */
4004
- function responseHandle(xhr, cb, cfg) {
4005
- if (xhr.readyState == 4) {
4006
- if (xhr.status >= 200 && xhr.status < 300 || xhr.status == 304) {
4007
- let text = xhr.responseText;
4008
- let json;
4009
- if (!text) console.warn('服务端没有返回任何字符串');
4010
- switch (cfg.parseContentType) {
4011
- case 'text':
4012
- break;
4013
- case 'xml':
4014
- json = xhr.responseXML;
4015
- break;
4016
- case 'json':
4017
- default:
4018
- try {
4019
- json = JSON.parse(text);
4020
- } catch (e) {
4021
- console.error('解析 JSON 时候发生错误,非法 JSON');
4022
- console.warn(e);
4023
- }
4024
- }
4025
- cb && cb(json, text);
4026
- } else errHandle(xhr);
4027
- }
4028
- }
4029
- /**
4030
- * 对象转换为 URL 参数列表,用 & 分隔
4031
- *
4032
- * @param {Object} param JSON 对象
4033
- * @returns URL 参数列表
4034
- */
4035
- function toParams(param) {
4036
- let result = "";
4037
- for (let name in param) {
4038
- if (typeof param[name] != "function") result += "&" + name + "=" + encodeURIComponent(param[name]);
4039
- }
4040
- return result.substring(1);
4041
- }
4042
- /**
4043
- * 获取 QueryString 的某个参数
4044
- *
4045
- * @param val
4046
- * @returns
4047
- */
4048
- function getQuery(val) {
4049
- const w = location.hash.indexOf('?');
4050
- const query = location.hash.substring(w + 1);
4051
- let vars = query.split('&');
4052
- for (let i = 0; i < vars.length; i++) {
4053
- const pair = vars[i].split('=');
4054
- if (pair[0] == val) return pair[1];
4055
- }
4056
- return '';
4057
- }
4058
- function getPageList(self, listArray, callback) {
4059
- return j => {
4060
- if (j.status) {
4061
- listArray.total = j.total;
4062
- listArray.data = j.data;
4063
- callback && callback();
4064
- } else self.$Message.warning(j.message || '获取数据失败');
4065
- };
4066
- }
4067
- var xhr = /*#__PURE__*/Object.freeze({
4068
- __proto__: null,
4069
- getPageList: getPageList,
4070
- getQuery: getQuery,
4071
- setBaseHeadParams: setBaseHeadParams,
4072
- toParams: toParams,
4073
- xhr_del: xhr_del,
4074
- xhr_get: xhr_get,
4075
- xhr_post: xhr_post,
4076
- xhr_post_upload: xhr_post_upload,
4077
- xhr_put: xhr_put
4078
- });
4079
-
4080
-
4081
- /***/ })
4082
-
4083
- /******/ });
4084
- /************************************************************************/
4085
- /******/ // The module cache
4086
- /******/ var __webpack_module_cache__ = {};
4087
- /******/
4088
- /******/ // The require function
4089
- /******/ function __webpack_require__(moduleId) {
4090
- /******/ // Check if module is in cache
4091
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
4092
- /******/ if (cachedModule !== undefined) {
4093
- /******/ return cachedModule.exports;
4094
- /******/ }
4095
- /******/ // Create a new module (and put it into the cache)
4096
- /******/ var module = __webpack_module_cache__[moduleId] = {
4097
- /******/ // no module.id needed
4098
- /******/ // no module.loaded needed
4099
- /******/ exports: {}
4100
- /******/ };
4101
- /******/
4102
- /******/ // Execute the module function
4103
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);
4104
- /******/
4105
- /******/ // Return the exports of the module
4106
- /******/ return module.exports;
4107
- /******/ }
4108
- /******/
4109
- /************************************************************************/
4110
- /******/ /* webpack/runtime/compat get default export */
4111
- /******/ !function() {
4112
- /******/ // getDefaultExport function for compatibility with non-harmony modules
4113
- /******/ __webpack_require__.n = function(module) {
4114
- /******/ var getter = module && module.__esModule ?
4115
- /******/ function() { return module['default']; } :
4116
- /******/ function() { return module; };
4117
- /******/ __webpack_require__.d(getter, { a: getter });
4118
- /******/ return getter;
4119
- /******/ };
4120
- /******/ }();
4121
- /******/
4122
- /******/ /* webpack/runtime/define property getters */
4123
- /******/ !function() {
4124
- /******/ // define getter functions for harmony exports
4125
- /******/ __webpack_require__.d = function(exports, definition) {
4126
- /******/ for(var key in definition) {
4127
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
4128
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
4129
- /******/ }
4130
- /******/ }
4131
- /******/ };
4132
- /******/ }();
4133
- /******/
4134
- /******/ /* webpack/runtime/global */
4135
- /******/ !function() {
4136
- /******/ __webpack_require__.g = (function() {
4137
- /******/ if (typeof globalThis === 'object') return globalThis;
4138
- /******/ try {
4139
- /******/ return this || new Function('return this')();
4140
- /******/ } catch (e) {
4141
- /******/ if (typeof window === 'object') return window;
4142
- /******/ }
4143
- /******/ })();
4144
- /******/ }();
4145
- /******/
4146
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
4147
- /******/ !function() {
4148
- /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
4149
- /******/ }();
4150
- /******/
4151
- /******/ /* webpack/runtime/make namespace object */
4152
- /******/ !function() {
4153
- /******/ // define __esModule on exports
4154
- /******/ __webpack_require__.r = function(exports) {
4155
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
4156
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4157
- /******/ }
4158
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
4159
- /******/ };
4160
- /******/ }();
4161
- /******/
4162
- /******/ /* webpack/runtime/publicPath */
4163
- /******/ !function() {
4164
- /******/ __webpack_require__.p = "";
4165
- /******/ }();
4166
- /******/
4167
- /************************************************************************/
4168
- var __webpack_exports__ = {};
4169
- // This entry need to be wrapped in an IIFE because it need to be in strict mode.
4170
- !function() {
4171
- "use strict";
4172
- // ESM COMPAT FLAG
4173
- __webpack_require__.r(__webpack_exports__);
4174
-
4175
- // EXPORTS
4176
- __webpack_require__.d(__webpack_exports__, {
4177
- "default": function() { return /* binding */ entry_lib; }
4178
- });
4179
-
4180
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
4181
- /* eslint-disable no-var */
4182
- // This file is imported into lib/wc client bundles.
4183
-
4184
- if (typeof window !== 'undefined') {
4185
- var currentScript = window.document.currentScript
4186
- if (false) { var getCurrentScript; }
4187
-
4188
- var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
4189
- if (src) {
4190
- __webpack_require__.p = src[1] // eslint-disable-line
4191
- }
4192
- }
4193
-
4194
- // Indicate to webpack that this file can be concatenated
4195
- /* harmony default export */ var setPublicPath = (null);
4196
-
4197
- // EXTERNAL MODULE: ./src/iview-ext/list.ts
4198
- var list = __webpack_require__(7184);
4199
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-exception.stack.js
4200
- var web_dom_exception_stack = __webpack_require__(4979);
4201
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.delete.js
4202
- var web_url_search_params_delete = __webpack_require__(4603);
4203
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.has.js
4204
- var web_url_search_params_has = __webpack_require__(7566);
4205
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.url-search-params.size.js
4206
- var web_url_search_params_size = __webpack_require__(8721);
4207
- // EXTERNAL MODULE: ./node_modules/@ajaxjs/util/dist/index.esm.js
4208
- var index_esm = __webpack_require__(2957);
4209
- ;// CONCATENATED MODULE: ./src/iam/iam.ts
4210
-
4211
-
4212
-
4213
-
4214
-
4215
- /**
4216
- * 获取登录信息
4217
- *
4218
- * @returns 用户 JWT
4219
- */
4220
- /* harmony default export */ var iam = ({
4221
- /**
4222
- *
4223
- *
4224
- * @param loginUrl 登录页面地址
4225
- * @param thisPageUrl 前端页面的地址,最后返回这里
4226
- * @returns
4227
- */
4228
- getLoginInfo(loginUrl, thisPageUrl) {
4229
- const token = getQueryParam("token", false);
4230
- let accessToken = localStorage.getItem("accessToken");
4231
- if (!accessToken && !token) {
4232
- console.log('你未登录!');
4233
- const target = `${loginUrl}?web_url=${encodeURIComponent(thisPageUrl)}`;
4234
- confirm('你未登录。是否跳转到登录页面?') && location.assign(target);
4235
- return;
4236
- }
4237
- if (token) {
4238
- accessToken = decodeURIComponent(token);
4239
- localStorage.setItem("accessToken", accessToken);
4240
- // 只需要第一次的参数,之后不需要,现在清除
4241
- const url = new URL(location.href); // 创建一个包含查询参数的URL
4242
- const params = new URLSearchParams(url.search); // 获取URL中的查询参数
4243
- params.delete('token'); // 删除名为'b'的参数
4244
- url.search = params.toString(); // 更新URL的查询参数
4245
- location.assign(url.href);
4246
- }
4247
- // window.JWT_TOKEN = JSON.parse(accessToken);
4248
- index_esm/* Xhr */.TF.setBaseHeadParams({
4249
- Authorization: 'Bearer ' + accessToken
4250
- });
4251
- // 将 JWT Token 拆分为三个部分
4252
- const tokenParts = accessToken.split('.');
4253
- const payload = JSON.parse(atob(tokenParts[1])); // 解析载荷
4254
- return payload;
4255
- }
4256
- });
4257
- function getQueryParam(variable, isParent) {
4258
- const query = (isParent ? parent.location : window.location).search.substring(1);
4259
- const vars = query.split("&");
4260
- for (let i = 0; i < vars.length; i++) {
4261
- const pair = vars[i].split("=");
4262
- if (pair[0] == variable) return pair[1];
4263
- }
4264
- return null;
4265
- }
4266
- ;// CONCATENATED MODULE: ./src/index.js
4267
- // 动态引入组件
4268
- const requireComponent = __webpack_require__(9887);
4269
-
4270
-
4271
- const components = {};
4272
- requireComponent.keys().forEach(fileName => {
4273
- if (fileName != './App.vue') {
4274
- const cmp = requireComponent(fileName).default || requireComponent(fileName);
4275
- if (cmp.extendOptions) components[cmp.extendOptions.name] = cmp;
4276
- }
4277
- });
4278
-
4279
- // 插件
4280
- const install = Vue => {
4281
- if (install.installed) return install.installed;
4282
- requireComponent.keys().forEach(fileName => {
4283
- if (fileName != './App.vue') {
4284
- // 第i个组件
4285
- const cmp = requireComponent(fileName).default || requireComponent(fileName);
4286
- if (cmp.extendOptions && cmp.extendOptions.name) {
4287
- // console.log(fileName, cmp.extendOptions.name);
4288
-
4289
- // 注册组件(组件名,组件)
4290
- Vue.component(cmp.extendOptions.name, cmp);
4291
- }
4292
- }
4293
- });
4294
-
4295
- // 全局自定义指令
4296
- Vue.directive('focus', {
4297
- inserted: function (el) {
4298
- el.focus();
4299
- }
4300
- });
4301
- };
4302
-
4303
- // 环境检测
4304
- if (typeof window !== 'undefined' && window.Vue) install(window.Vue);
4305
- /* harmony default export */ var src_0 = ({
4306
- install,
4307
- List: list/* default */.A,
4308
- IAM: iam,
4309
- ...components //组件也一样要暴露
4310
- });
4311
- ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
4312
-
4313
-
4314
- /* harmony default export */ var entry_lib = (src_0);
4315
-
4316
-
4317
- }();
4318
- module.exports = __webpack_exports__;
4319
- /******/ })()
4320
- ;
4321
- //# sourceMappingURL=ui.common.js.map