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