vue-jsx 0.2.8 → 3.3.0-beta.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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +91 -92
  3. package/dist/api.d.ts +7 -0
  4. package/dist/api.js +2 -0
  5. package/dist/astro.d.ts +11 -0
  6. package/dist/astro.js +11 -0
  7. package/dist/bun.d.ts +6 -0
  8. package/dist/bun.js +5 -0
  9. package/dist/core-D6A0aY-g.js +11 -0
  10. package/dist/esbuild.d.ts +7 -0
  11. package/dist/esbuild.js +5 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +2 -0
  14. package/dist/nuxt.d.ts +8 -0
  15. package/dist/nuxt.js +17 -0
  16. package/dist/options-DHzozgGn.d.ts +25 -0
  17. package/dist/raw.d.ts +7 -0
  18. package/dist/raw.js +64 -0
  19. package/dist/rolldown.d.ts +7 -0
  20. package/dist/rolldown.js +6 -0
  21. package/dist/rollup.d.ts +7 -0
  22. package/dist/rollup.js +5 -0
  23. package/dist/rsbuild.d.ts +9 -0
  24. package/dist/rsbuild.js +12 -0
  25. package/dist/rspack.d.ts +6 -0
  26. package/dist/rspack.js +5 -0
  27. package/dist/unplugin.d.ts +9 -0
  28. package/dist/unplugin.js +9 -0
  29. package/dist/vapor.d.ts +3 -0
  30. package/dist/vapor.js +3 -0
  31. package/dist/vite.d.ts +7 -0
  32. package/dist/vite.js +5 -0
  33. package/dist/volar.d.ts +7 -0
  34. package/dist/volar.js +770 -0
  35. package/dist/webpack.d.ts +7 -0
  36. package/dist/webpack.js +5 -0
  37. package/jsx-runtime/index.d.ts +10 -0
  38. package/jsx-runtime/index.js +11 -0
  39. package/package.json +107 -25
  40. package/.browserslistrc +0 -3
  41. package/.eslintrc.js +0 -17
  42. package/babel.config.js +0 -5
  43. package/dist/demo.html +0 -8
  44. package/dist/vue-jsx.common.js +0 -1645
  45. package/dist/vue-jsx.common.js.map +0 -1
  46. package/dist/vue-jsx.umd.js +0 -1655
  47. package/dist/vue-jsx.umd.js.map +0 -1
  48. package/dist/vue-jsx.umd.min.js +0 -2
  49. package/dist/vue-jsx.umd.min.js.map +0 -1
  50. package/postcss.config.js +0 -5
  51. package/public/favicon.ico +0 -0
  52. package/public/index.html +0 -17
  53. package/src/App.vue +0 -122
  54. package/src/assets/logo.png +0 -0
  55. package/src/components/HelloWorld.vue +0 -58
  56. package/src/index.js +0 -210
  57. package/src/main.js +0 -8
  58. package/vue.config.js +0 -11
@@ -1,1655 +0,0 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["vue-jsx"] = factory();
8
- else
9
- root["vue-jsx"] = factory();
10
- })((typeof self !== 'undefined' ? self : this), function() {
11
- return /******/ (function(modules) { // webpackBootstrap
12
- /******/ // The module cache
13
- /******/ var installedModules = {};
14
- /******/
15
- /******/ // The require function
16
- /******/ function __webpack_require__(moduleId) {
17
- /******/
18
- /******/ // Check if module is in cache
19
- /******/ if(installedModules[moduleId]) {
20
- /******/ return installedModules[moduleId].exports;
21
- /******/ }
22
- /******/ // Create a new module (and put it into the cache)
23
- /******/ var module = installedModules[moduleId] = {
24
- /******/ i: moduleId,
25
- /******/ l: false,
26
- /******/ exports: {}
27
- /******/ };
28
- /******/
29
- /******/ // Execute the module function
30
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
- /******/
32
- /******/ // Flag the module as loaded
33
- /******/ module.l = true;
34
- /******/
35
- /******/ // Return the exports of the module
36
- /******/ return module.exports;
37
- /******/ }
38
- /******/
39
- /******/
40
- /******/ // expose the modules object (__webpack_modules__)
41
- /******/ __webpack_require__.m = modules;
42
- /******/
43
- /******/ // expose the module cache
44
- /******/ __webpack_require__.c = installedModules;
45
- /******/
46
- /******/ // define getter function for harmony exports
47
- /******/ __webpack_require__.d = function(exports, name, getter) {
48
- /******/ if(!__webpack_require__.o(exports, name)) {
49
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
- /******/ }
51
- /******/ };
52
- /******/
53
- /******/ // define __esModule on exports
54
- /******/ __webpack_require__.r = function(exports) {
55
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
- /******/ }
58
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
- /******/ };
60
- /******/
61
- /******/ // create a fake namespace object
62
- /******/ // mode & 1: value is a module id, require it
63
- /******/ // mode & 2: merge all properties of value into the ns
64
- /******/ // mode & 4: return value when already ns object
65
- /******/ // mode & 8|1: behave like require
66
- /******/ __webpack_require__.t = function(value, mode) {
67
- /******/ if(mode & 1) value = __webpack_require__(value);
68
- /******/ if(mode & 8) return value;
69
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
- /******/ var ns = Object.create(null);
71
- /******/ __webpack_require__.r(ns);
72
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
- /******/ return ns;
75
- /******/ };
76
- /******/
77
- /******/ // getDefaultExport function for compatibility with non-harmony modules
78
- /******/ __webpack_require__.n = function(module) {
79
- /******/ var getter = module && module.__esModule ?
80
- /******/ function getDefault() { return module['default']; } :
81
- /******/ function getModuleExports() { return module; };
82
- /******/ __webpack_require__.d(getter, 'a', getter);
83
- /******/ return getter;
84
- /******/ };
85
- /******/
86
- /******/ // Object.prototype.hasOwnProperty.call
87
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
- /******/
89
- /******/ // __webpack_public_path__
90
- /******/ __webpack_require__.p = "";
91
- /******/
92
- /******/
93
- /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = "fb15");
95
- /******/ })
96
- /************************************************************************/
97
- /******/ ({
98
-
99
- /***/ "01f9":
100
- /***/ (function(module, exports, __webpack_require__) {
101
-
102
- "use strict";
103
-
104
- var LIBRARY = __webpack_require__("2d00");
105
- var $export = __webpack_require__("5ca1");
106
- var redefine = __webpack_require__("2aba");
107
- var hide = __webpack_require__("32e9");
108
- var Iterators = __webpack_require__("84f2");
109
- var $iterCreate = __webpack_require__("41a0");
110
- var setToStringTag = __webpack_require__("7f20");
111
- var getPrototypeOf = __webpack_require__("38fd");
112
- var ITERATOR = __webpack_require__("2b4c")('iterator');
113
- var BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`
114
- var FF_ITERATOR = '@@iterator';
115
- var KEYS = 'keys';
116
- var VALUES = 'values';
117
-
118
- var returnThis = function () { return this; };
119
-
120
- module.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {
121
- $iterCreate(Constructor, NAME, next);
122
- var getMethod = function (kind) {
123
- if (!BUGGY && kind in proto) return proto[kind];
124
- switch (kind) {
125
- case KEYS: return function keys() { return new Constructor(this, kind); };
126
- case VALUES: return function values() { return new Constructor(this, kind); };
127
- } return function entries() { return new Constructor(this, kind); };
128
- };
129
- var TAG = NAME + ' Iterator';
130
- var DEF_VALUES = DEFAULT == VALUES;
131
- var VALUES_BUG = false;
132
- var proto = Base.prototype;
133
- var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];
134
- var $default = $native || getMethod(DEFAULT);
135
- var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;
136
- var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;
137
- var methods, key, IteratorPrototype;
138
- // Fix native
139
- if ($anyNative) {
140
- IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));
141
- if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {
142
- // Set @@toStringTag to native iterators
143
- setToStringTag(IteratorPrototype, TAG, true);
144
- // fix for some old engines
145
- if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);
146
- }
147
- }
148
- // fix Array#{values, @@iterator}.name in V8 / FF
149
- if (DEF_VALUES && $native && $native.name !== VALUES) {
150
- VALUES_BUG = true;
151
- $default = function values() { return $native.call(this); };
152
- }
153
- // Define iterator
154
- if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {
155
- hide(proto, ITERATOR, $default);
156
- }
157
- // Plug for library
158
- Iterators[NAME] = $default;
159
- Iterators[TAG] = returnThis;
160
- if (DEFAULT) {
161
- methods = {
162
- values: DEF_VALUES ? $default : getMethod(VALUES),
163
- keys: IS_SET ? $default : getMethod(KEYS),
164
- entries: $entries
165
- };
166
- if (FORCED) for (key in methods) {
167
- if (!(key in proto)) redefine(proto, key, methods[key]);
168
- } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);
169
- }
170
- return methods;
171
- };
172
-
173
-
174
- /***/ }),
175
-
176
- /***/ "0bfb":
177
- /***/ (function(module, exports, __webpack_require__) {
178
-
179
- "use strict";
180
-
181
- // 21.2.5.3 get RegExp.prototype.flags
182
- var anObject = __webpack_require__("cb7c");
183
- module.exports = function () {
184
- var that = anObject(this);
185
- var result = '';
186
- if (that.global) result += 'g';
187
- if (that.ignoreCase) result += 'i';
188
- if (that.multiline) result += 'm';
189
- if (that.unicode) result += 'u';
190
- if (that.sticky) result += 'y';
191
- return result;
192
- };
193
-
194
-
195
- /***/ }),
196
-
197
- /***/ "0d58":
198
- /***/ (function(module, exports, __webpack_require__) {
199
-
200
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
201
- var $keys = __webpack_require__("ce10");
202
- var enumBugKeys = __webpack_require__("e11e");
203
-
204
- module.exports = Object.keys || function keys(O) {
205
- return $keys(O, enumBugKeys);
206
- };
207
-
208
-
209
- /***/ }),
210
-
211
- /***/ "1495":
212
- /***/ (function(module, exports, __webpack_require__) {
213
-
214
- var dP = __webpack_require__("86cc");
215
- var anObject = __webpack_require__("cb7c");
216
- var getKeys = __webpack_require__("0d58");
217
-
218
- module.exports = __webpack_require__("9e1e") ? Object.defineProperties : function defineProperties(O, Properties) {
219
- anObject(O);
220
- var keys = getKeys(Properties);
221
- var length = keys.length;
222
- var i = 0;
223
- var P;
224
- while (length > i) dP.f(O, P = keys[i++], Properties[P]);
225
- return O;
226
- };
227
-
228
-
229
- /***/ }),
230
-
231
- /***/ "214f":
232
- /***/ (function(module, exports, __webpack_require__) {
233
-
234
- "use strict";
235
-
236
- var hide = __webpack_require__("32e9");
237
- var redefine = __webpack_require__("2aba");
238
- var fails = __webpack_require__("79e5");
239
- var defined = __webpack_require__("be13");
240
- var wks = __webpack_require__("2b4c");
241
-
242
- module.exports = function (KEY, length, exec) {
243
- var SYMBOL = wks(KEY);
244
- var fns = exec(defined, SYMBOL, ''[KEY]);
245
- var strfn = fns[0];
246
- var rxfn = fns[1];
247
- if (fails(function () {
248
- var O = {};
249
- O[SYMBOL] = function () { return 7; };
250
- return ''[KEY](O) != 7;
251
- })) {
252
- redefine(String.prototype, KEY, strfn);
253
- hide(RegExp.prototype, SYMBOL, length == 2
254
- // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
255
- // 21.2.5.11 RegExp.prototype[@@split](string, limit)
256
- ? function (string, arg) { return rxfn.call(string, this, arg); }
257
- // 21.2.5.6 RegExp.prototype[@@match](string)
258
- // 21.2.5.9 RegExp.prototype[@@search](string)
259
- : function (string) { return rxfn.call(string, this); }
260
- );
261
- }
262
- };
263
-
264
-
265
- /***/ }),
266
-
267
- /***/ "230e":
268
- /***/ (function(module, exports, __webpack_require__) {
269
-
270
- var isObject = __webpack_require__("d3f4");
271
- var document = __webpack_require__("7726").document;
272
- // typeof document.createElement is 'object' in old IE
273
- var is = isObject(document) && isObject(document.createElement);
274
- module.exports = function (it) {
275
- return is ? document.createElement(it) : {};
276
- };
277
-
278
-
279
- /***/ }),
280
-
281
- /***/ "28a5":
282
- /***/ (function(module, exports, __webpack_require__) {
283
-
284
- // @@split logic
285
- __webpack_require__("214f")('split', 2, function (defined, SPLIT, $split) {
286
- 'use strict';
287
- var isRegExp = __webpack_require__("aae3");
288
- var _split = $split;
289
- var $push = [].push;
290
- var $SPLIT = 'split';
291
- var LENGTH = 'length';
292
- var LAST_INDEX = 'lastIndex';
293
- if (
294
- 'abbc'[$SPLIT](/(b)*/)[1] == 'c' ||
295
- 'test'[$SPLIT](/(?:)/, -1)[LENGTH] != 4 ||
296
- 'ab'[$SPLIT](/(?:ab)*/)[LENGTH] != 2 ||
297
- '.'[$SPLIT](/(.?)(.?)/)[LENGTH] != 4 ||
298
- '.'[$SPLIT](/()()/)[LENGTH] > 1 ||
299
- ''[$SPLIT](/.?/)[LENGTH]
300
- ) {
301
- var NPCG = /()??/.exec('')[1] === undefined; // nonparticipating capturing group
302
- // based on es5-shim implementation, need to rework it
303
- $split = function (separator, limit) {
304
- var string = String(this);
305
- if (separator === undefined && limit === 0) return [];
306
- // If `separator` is not a regex, use native split
307
- if (!isRegExp(separator)) return _split.call(string, separator, limit);
308
- var output = [];
309
- var flags = (separator.ignoreCase ? 'i' : '') +
310
- (separator.multiline ? 'm' : '') +
311
- (separator.unicode ? 'u' : '') +
312
- (separator.sticky ? 'y' : '');
313
- var lastLastIndex = 0;
314
- var splitLimit = limit === undefined ? 4294967295 : limit >>> 0;
315
- // Make `global` and avoid `lastIndex` issues by working with a copy
316
- var separatorCopy = new RegExp(separator.source, flags + 'g');
317
- var separator2, match, lastIndex, lastLength, i;
318
- // Doesn't need flags gy, but they don't hurt
319
- if (!NPCG) separator2 = new RegExp('^' + separatorCopy.source + '$(?!\\s)', flags);
320
- while (match = separatorCopy.exec(string)) {
321
- // `separatorCopy.lastIndex` is not reliable cross-browser
322
- lastIndex = match.index + match[0][LENGTH];
323
- if (lastIndex > lastLastIndex) {
324
- output.push(string.slice(lastLastIndex, match.index));
325
- // Fix browsers whose `exec` methods don't consistently return `undefined` for NPCG
326
- // eslint-disable-next-line no-loop-func
327
- if (!NPCG && match[LENGTH] > 1) match[0].replace(separator2, function () {
328
- for (i = 1; i < arguments[LENGTH] - 2; i++) if (arguments[i] === undefined) match[i] = undefined;
329
- });
330
- if (match[LENGTH] > 1 && match.index < string[LENGTH]) $push.apply(output, match.slice(1));
331
- lastLength = match[0][LENGTH];
332
- lastLastIndex = lastIndex;
333
- if (output[LENGTH] >= splitLimit) break;
334
- }
335
- if (separatorCopy[LAST_INDEX] === match.index) separatorCopy[LAST_INDEX]++; // Avoid an infinite loop
336
- }
337
- if (lastLastIndex === string[LENGTH]) {
338
- if (lastLength || !separatorCopy.test('')) output.push('');
339
- } else output.push(string.slice(lastLastIndex));
340
- return output[LENGTH] > splitLimit ? output.slice(0, splitLimit) : output;
341
- };
342
- // Chakra, V8
343
- } else if ('0'[$SPLIT](undefined, 0)[LENGTH]) {
344
- $split = function (separator, limit) {
345
- return separator === undefined && limit === 0 ? [] : _split.call(this, separator, limit);
346
- };
347
- }
348
- // 21.1.3.17 String.prototype.split(separator, limit)
349
- return [function split(separator, limit) {
350
- var O = defined(this);
351
- var fn = separator == undefined ? undefined : separator[SPLIT];
352
- return fn !== undefined ? fn.call(separator, O, limit) : $split.call(String(O), separator, limit);
353
- }, $split];
354
- });
355
-
356
-
357
- /***/ }),
358
-
359
- /***/ "2aba":
360
- /***/ (function(module, exports, __webpack_require__) {
361
-
362
- var global = __webpack_require__("7726");
363
- var hide = __webpack_require__("32e9");
364
- var has = __webpack_require__("69a8");
365
- var SRC = __webpack_require__("ca5a")('src');
366
- var TO_STRING = 'toString';
367
- var $toString = Function[TO_STRING];
368
- var TPL = ('' + $toString).split(TO_STRING);
369
-
370
- __webpack_require__("8378").inspectSource = function (it) {
371
- return $toString.call(it);
372
- };
373
-
374
- (module.exports = function (O, key, val, safe) {
375
- var isFunction = typeof val == 'function';
376
- if (isFunction) has(val, 'name') || hide(val, 'name', key);
377
- if (O[key] === val) return;
378
- if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
379
- if (O === global) {
380
- O[key] = val;
381
- } else if (!safe) {
382
- delete O[key];
383
- hide(O, key, val);
384
- } else if (O[key]) {
385
- O[key] = val;
386
- } else {
387
- hide(O, key, val);
388
- }
389
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
390
- })(Function.prototype, TO_STRING, function toString() {
391
- return typeof this == 'function' && this[SRC] || $toString.call(this);
392
- });
393
-
394
-
395
- /***/ }),
396
-
397
- /***/ "2aeb":
398
- /***/ (function(module, exports, __webpack_require__) {
399
-
400
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
401
- var anObject = __webpack_require__("cb7c");
402
- var dPs = __webpack_require__("1495");
403
- var enumBugKeys = __webpack_require__("e11e");
404
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
405
- var Empty = function () { /* empty */ };
406
- var PROTOTYPE = 'prototype';
407
-
408
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
409
- var createDict = function () {
410
- // Thrash, waste and sodomy: IE GC bug
411
- var iframe = __webpack_require__("230e")('iframe');
412
- var i = enumBugKeys.length;
413
- var lt = '<';
414
- var gt = '>';
415
- var iframeDocument;
416
- iframe.style.display = 'none';
417
- __webpack_require__("fab2").appendChild(iframe);
418
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
419
- // createDict = iframe.contentWindow.Object;
420
- // html.removeChild(iframe);
421
- iframeDocument = iframe.contentWindow.document;
422
- iframeDocument.open();
423
- iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);
424
- iframeDocument.close();
425
- createDict = iframeDocument.F;
426
- while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];
427
- return createDict();
428
- };
429
-
430
- module.exports = Object.create || function create(O, Properties) {
431
- var result;
432
- if (O !== null) {
433
- Empty[PROTOTYPE] = anObject(O);
434
- result = new Empty();
435
- Empty[PROTOTYPE] = null;
436
- // add "__proto__" for Object.getPrototypeOf polyfill
437
- result[IE_PROTO] = O;
438
- } else result = createDict();
439
- return Properties === undefined ? result : dPs(result, Properties);
440
- };
441
-
442
-
443
- /***/ }),
444
-
445
- /***/ "2b4c":
446
- /***/ (function(module, exports, __webpack_require__) {
447
-
448
- var store = __webpack_require__("5537")('wks');
449
- var uid = __webpack_require__("ca5a");
450
- var Symbol = __webpack_require__("7726").Symbol;
451
- var USE_SYMBOL = typeof Symbol == 'function';
452
-
453
- var $exports = module.exports = function (name) {
454
- return store[name] || (store[name] =
455
- USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));
456
- };
457
-
458
- $exports.store = store;
459
-
460
-
461
- /***/ }),
462
-
463
- /***/ "2d00":
464
- /***/ (function(module, exports) {
465
-
466
- module.exports = false;
467
-
468
-
469
- /***/ }),
470
-
471
- /***/ "2d95":
472
- /***/ (function(module, exports) {
473
-
474
- var toString = {}.toString;
475
-
476
- module.exports = function (it) {
477
- return toString.call(it).slice(8, -1);
478
- };
479
-
480
-
481
- /***/ }),
482
-
483
- /***/ "2fdb":
484
- /***/ (function(module, exports, __webpack_require__) {
485
-
486
- "use strict";
487
- // 21.1.3.7 String.prototype.includes(searchString, position = 0)
488
-
489
- var $export = __webpack_require__("5ca1");
490
- var context = __webpack_require__("d2c8");
491
- var INCLUDES = 'includes';
492
-
493
- $export($export.P + $export.F * __webpack_require__("5147")(INCLUDES), 'String', {
494
- includes: function includes(searchString /* , position = 0 */) {
495
- return !!~context(this, searchString, INCLUDES)
496
- .indexOf(searchString, arguments.length > 1 ? arguments[1] : undefined);
497
- }
498
- });
499
-
500
-
501
- /***/ }),
502
-
503
- /***/ "32e9":
504
- /***/ (function(module, exports, __webpack_require__) {
505
-
506
- var dP = __webpack_require__("86cc");
507
- var createDesc = __webpack_require__("4630");
508
- module.exports = __webpack_require__("9e1e") ? function (object, key, value) {
509
- return dP.f(object, key, createDesc(1, value));
510
- } : function (object, key, value) {
511
- object[key] = value;
512
- return object;
513
- };
514
-
515
-
516
- /***/ }),
517
-
518
- /***/ "3846":
519
- /***/ (function(module, exports, __webpack_require__) {
520
-
521
- // 21.2.5.3 get RegExp.prototype.flags()
522
- if (__webpack_require__("9e1e") && /./g.flags != 'g') __webpack_require__("86cc").f(RegExp.prototype, 'flags', {
523
- configurable: true,
524
- get: __webpack_require__("0bfb")
525
- });
526
-
527
-
528
- /***/ }),
529
-
530
- /***/ "38fd":
531
- /***/ (function(module, exports, __webpack_require__) {
532
-
533
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
534
- var has = __webpack_require__("69a8");
535
- var toObject = __webpack_require__("4bf8");
536
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
537
- var ObjectProto = Object.prototype;
538
-
539
- module.exports = Object.getPrototypeOf || function (O) {
540
- O = toObject(O);
541
- if (has(O, IE_PROTO)) return O[IE_PROTO];
542
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
543
- return O.constructor.prototype;
544
- } return O instanceof Object ? ObjectProto : null;
545
- };
546
-
547
-
548
- /***/ }),
549
-
550
- /***/ "41a0":
551
- /***/ (function(module, exports, __webpack_require__) {
552
-
553
- "use strict";
554
-
555
- var create = __webpack_require__("2aeb");
556
- var descriptor = __webpack_require__("4630");
557
- var setToStringTag = __webpack_require__("7f20");
558
- var IteratorPrototype = {};
559
-
560
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
561
- __webpack_require__("32e9")(IteratorPrototype, __webpack_require__("2b4c")('iterator'), function () { return this; });
562
-
563
- module.exports = function (Constructor, NAME, next) {
564
- Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });
565
- setToStringTag(Constructor, NAME + ' Iterator');
566
- };
567
-
568
-
569
- /***/ }),
570
-
571
- /***/ "456d":
572
- /***/ (function(module, exports, __webpack_require__) {
573
-
574
- // 19.1.2.14 Object.keys(O)
575
- var toObject = __webpack_require__("4bf8");
576
- var $keys = __webpack_require__("0d58");
577
-
578
- __webpack_require__("5eda")('keys', function () {
579
- return function keys(it) {
580
- return $keys(toObject(it));
581
- };
582
- });
583
-
584
-
585
- /***/ }),
586
-
587
- /***/ "4588":
588
- /***/ (function(module, exports) {
589
-
590
- // 7.1.4 ToInteger
591
- var ceil = Math.ceil;
592
- var floor = Math.floor;
593
- module.exports = function (it) {
594
- return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
595
- };
596
-
597
-
598
- /***/ }),
599
-
600
- /***/ "4630":
601
- /***/ (function(module, exports) {
602
-
603
- module.exports = function (bitmap, value) {
604
- return {
605
- enumerable: !(bitmap & 1),
606
- configurable: !(bitmap & 2),
607
- writable: !(bitmap & 4),
608
- value: value
609
- };
610
- };
611
-
612
-
613
- /***/ }),
614
-
615
- /***/ "4bf8":
616
- /***/ (function(module, exports, __webpack_require__) {
617
-
618
- // 7.1.13 ToObject(argument)
619
- var defined = __webpack_require__("be13");
620
- module.exports = function (it) {
621
- return Object(defined(it));
622
- };
623
-
624
-
625
- /***/ }),
626
-
627
- /***/ "5147":
628
- /***/ (function(module, exports, __webpack_require__) {
629
-
630
- var MATCH = __webpack_require__("2b4c")('match');
631
- module.exports = function (KEY) {
632
- var re = /./;
633
- try {
634
- '/./'[KEY](re);
635
- } catch (e) {
636
- try {
637
- re[MATCH] = false;
638
- return !'/./'[KEY](re);
639
- } catch (f) { /* empty */ }
640
- } return true;
641
- };
642
-
643
-
644
- /***/ }),
645
-
646
- /***/ "5537":
647
- /***/ (function(module, exports, __webpack_require__) {
648
-
649
- var core = __webpack_require__("8378");
650
- var global = __webpack_require__("7726");
651
- var SHARED = '__core-js_shared__';
652
- var store = global[SHARED] || (global[SHARED] = {});
653
-
654
- (module.exports = function (key, value) {
655
- return store[key] || (store[key] = value !== undefined ? value : {});
656
- })('versions', []).push({
657
- version: core.version,
658
- mode: __webpack_require__("2d00") ? 'pure' : 'global',
659
- copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
660
- });
661
-
662
-
663
- /***/ }),
664
-
665
- /***/ "5ca1":
666
- /***/ (function(module, exports, __webpack_require__) {
667
-
668
- var global = __webpack_require__("7726");
669
- var core = __webpack_require__("8378");
670
- var hide = __webpack_require__("32e9");
671
- var redefine = __webpack_require__("2aba");
672
- var ctx = __webpack_require__("9b43");
673
- var PROTOTYPE = 'prototype';
674
-
675
- var $export = function (type, name, source) {
676
- var IS_FORCED = type & $export.F;
677
- var IS_GLOBAL = type & $export.G;
678
- var IS_STATIC = type & $export.S;
679
- var IS_PROTO = type & $export.P;
680
- var IS_BIND = type & $export.B;
681
- var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];
682
- var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});
683
- var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
684
- var key, own, out, exp;
685
- if (IS_GLOBAL) source = name;
686
- for (key in source) {
687
- // contains in native
688
- own = !IS_FORCED && target && target[key] !== undefined;
689
- // export native or passed
690
- out = (own ? target : source)[key];
691
- // bind timers to global for call from export context
692
- exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
693
- // extend global
694
- if (target) redefine(target, key, out, type & $export.U);
695
- // export
696
- if (exports[key] != out) hide(exports, key, exp);
697
- if (IS_PROTO && expProto[key] != out) expProto[key] = out;
698
- }
699
- };
700
- global.core = core;
701
- // type bitmap
702
- $export.F = 1; // forced
703
- $export.G = 2; // global
704
- $export.S = 4; // static
705
- $export.P = 8; // proto
706
- $export.B = 16; // bind
707
- $export.W = 32; // wrap
708
- $export.U = 64; // safe
709
- $export.R = 128; // real proto method for `library`
710
- module.exports = $export;
711
-
712
-
713
- /***/ }),
714
-
715
- /***/ "5eda":
716
- /***/ (function(module, exports, __webpack_require__) {
717
-
718
- // most Object methods by ES6 should accept primitives
719
- var $export = __webpack_require__("5ca1");
720
- var core = __webpack_require__("8378");
721
- var fails = __webpack_require__("79e5");
722
- module.exports = function (KEY, exec) {
723
- var fn = (core.Object || {})[KEY] || Object[KEY];
724
- var exp = {};
725
- exp[KEY] = exec(fn);
726
- $export($export.S + $export.F * fails(function () { fn(1); }), 'Object', exp);
727
- };
728
-
729
-
730
- /***/ }),
731
-
732
- /***/ "613b":
733
- /***/ (function(module, exports, __webpack_require__) {
734
-
735
- var shared = __webpack_require__("5537")('keys');
736
- var uid = __webpack_require__("ca5a");
737
- module.exports = function (key) {
738
- return shared[key] || (shared[key] = uid(key));
739
- };
740
-
741
-
742
- /***/ }),
743
-
744
- /***/ "626a":
745
- /***/ (function(module, exports, __webpack_require__) {
746
-
747
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
748
- var cof = __webpack_require__("2d95");
749
- // eslint-disable-next-line no-prototype-builtins
750
- module.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {
751
- return cof(it) == 'String' ? it.split('') : Object(it);
752
- };
753
-
754
-
755
- /***/ }),
756
-
757
- /***/ "6762":
758
- /***/ (function(module, exports, __webpack_require__) {
759
-
760
- "use strict";
761
-
762
- // https://github.com/tc39/Array.prototype.includes
763
- var $export = __webpack_require__("5ca1");
764
- var $includes = __webpack_require__("c366")(true);
765
-
766
- $export($export.P, 'Array', {
767
- includes: function includes(el /* , fromIndex = 0 */) {
768
- return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
769
- }
770
- });
771
-
772
- __webpack_require__("9c6c")('includes');
773
-
774
-
775
- /***/ }),
776
-
777
- /***/ "6821":
778
- /***/ (function(module, exports, __webpack_require__) {
779
-
780
- // to indexed object, toObject with fallback for non-array-like ES3 strings
781
- var IObject = __webpack_require__("626a");
782
- var defined = __webpack_require__("be13");
783
- module.exports = function (it) {
784
- return IObject(defined(it));
785
- };
786
-
787
-
788
- /***/ }),
789
-
790
- /***/ "69a8":
791
- /***/ (function(module, exports) {
792
-
793
- var hasOwnProperty = {}.hasOwnProperty;
794
- module.exports = function (it, key) {
795
- return hasOwnProperty.call(it, key);
796
- };
797
-
798
-
799
- /***/ }),
800
-
801
- /***/ "6a99":
802
- /***/ (function(module, exports, __webpack_require__) {
803
-
804
- // 7.1.1 ToPrimitive(input [, PreferredType])
805
- var isObject = __webpack_require__("d3f4");
806
- // instead of the ES6 spec version, we didn't implement @@toPrimitive case
807
- // and the second argument - flag - preferred type is a string
808
- module.exports = function (it, S) {
809
- if (!isObject(it)) return it;
810
- var fn, val;
811
- if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
812
- if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;
813
- if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;
814
- throw TypeError("Can't convert object to primitive value");
815
- };
816
-
817
-
818
- /***/ }),
819
-
820
- /***/ "6b54":
821
- /***/ (function(module, exports, __webpack_require__) {
822
-
823
- "use strict";
824
-
825
- __webpack_require__("3846");
826
- var anObject = __webpack_require__("cb7c");
827
- var $flags = __webpack_require__("0bfb");
828
- var DESCRIPTORS = __webpack_require__("9e1e");
829
- var TO_STRING = 'toString';
830
- var $toString = /./[TO_STRING];
831
-
832
- var define = function (fn) {
833
- __webpack_require__("2aba")(RegExp.prototype, TO_STRING, fn, true);
834
- };
835
-
836
- // 21.2.5.14 RegExp.prototype.toString()
837
- if (__webpack_require__("79e5")(function () { return $toString.call({ source: 'a', flags: 'b' }) != '/a/b'; })) {
838
- define(function toString() {
839
- var R = anObject(this);
840
- return '/'.concat(R.source, '/',
841
- 'flags' in R ? R.flags : !DESCRIPTORS && R instanceof RegExp ? $flags.call(R) : undefined);
842
- });
843
- // FF44- RegExp#toString has a wrong name
844
- } else if ($toString.name != TO_STRING) {
845
- define(function toString() {
846
- return $toString.call(this);
847
- });
848
- }
849
-
850
-
851
- /***/ }),
852
-
853
- /***/ "7726":
854
- /***/ (function(module, exports) {
855
-
856
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
857
- var global = module.exports = typeof window != 'undefined' && window.Math == Math
858
- ? window : typeof self != 'undefined' && self.Math == Math ? self
859
- // eslint-disable-next-line no-new-func
860
- : Function('return this')();
861
- if (typeof __g == 'number') __g = global; // eslint-disable-line no-undef
862
-
863
-
864
- /***/ }),
865
-
866
- /***/ "77f1":
867
- /***/ (function(module, exports, __webpack_require__) {
868
-
869
- var toInteger = __webpack_require__("4588");
870
- var max = Math.max;
871
- var min = Math.min;
872
- module.exports = function (index, length) {
873
- index = toInteger(index);
874
- return index < 0 ? max(index + length, 0) : min(index, length);
875
- };
876
-
877
-
878
- /***/ }),
879
-
880
- /***/ "79e5":
881
- /***/ (function(module, exports) {
882
-
883
- module.exports = function (exec) {
884
- try {
885
- return !!exec();
886
- } catch (e) {
887
- return true;
888
- }
889
- };
890
-
891
-
892
- /***/ }),
893
-
894
- /***/ "7f20":
895
- /***/ (function(module, exports, __webpack_require__) {
896
-
897
- var def = __webpack_require__("86cc").f;
898
- var has = __webpack_require__("69a8");
899
- var TAG = __webpack_require__("2b4c")('toStringTag');
900
-
901
- module.exports = function (it, tag, stat) {
902
- if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });
903
- };
904
-
905
-
906
- /***/ }),
907
-
908
- /***/ "8378":
909
- /***/ (function(module, exports) {
910
-
911
- var core = module.exports = { version: '2.5.7' };
912
- if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
913
-
914
-
915
- /***/ }),
916
-
917
- /***/ "84f2":
918
- /***/ (function(module, exports) {
919
-
920
- module.exports = {};
921
-
922
-
923
- /***/ }),
924
-
925
- /***/ "86cc":
926
- /***/ (function(module, exports, __webpack_require__) {
927
-
928
- var anObject = __webpack_require__("cb7c");
929
- var IE8_DOM_DEFINE = __webpack_require__("c69a");
930
- var toPrimitive = __webpack_require__("6a99");
931
- var dP = Object.defineProperty;
932
-
933
- exports.f = __webpack_require__("9e1e") ? Object.defineProperty : function defineProperty(O, P, Attributes) {
934
- anObject(O);
935
- P = toPrimitive(P, true);
936
- anObject(Attributes);
937
- if (IE8_DOM_DEFINE) try {
938
- return dP(O, P, Attributes);
939
- } catch (e) { /* empty */ }
940
- if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');
941
- if ('value' in Attributes) O[P] = Attributes.value;
942
- return O;
943
- };
944
-
945
-
946
- /***/ }),
947
-
948
- /***/ "9b43":
949
- /***/ (function(module, exports, __webpack_require__) {
950
-
951
- // optional / simple context binding
952
- var aFunction = __webpack_require__("d8e8");
953
- module.exports = function (fn, that, length) {
954
- aFunction(fn);
955
- if (that === undefined) return fn;
956
- switch (length) {
957
- case 1: return function (a) {
958
- return fn.call(that, a);
959
- };
960
- case 2: return function (a, b) {
961
- return fn.call(that, a, b);
962
- };
963
- case 3: return function (a, b, c) {
964
- return fn.call(that, a, b, c);
965
- };
966
- }
967
- return function (/* ...args */) {
968
- return fn.apply(that, arguments);
969
- };
970
- };
971
-
972
-
973
- /***/ }),
974
-
975
- /***/ "9c6c":
976
- /***/ (function(module, exports, __webpack_require__) {
977
-
978
- // 22.1.3.31 Array.prototype[@@unscopables]
979
- var UNSCOPABLES = __webpack_require__("2b4c")('unscopables');
980
- var ArrayProto = Array.prototype;
981
- if (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__("32e9")(ArrayProto, UNSCOPABLES, {});
982
- module.exports = function (key) {
983
- ArrayProto[UNSCOPABLES][key] = true;
984
- };
985
-
986
-
987
- /***/ }),
988
-
989
- /***/ "9def":
990
- /***/ (function(module, exports, __webpack_require__) {
991
-
992
- // 7.1.15 ToLength
993
- var toInteger = __webpack_require__("4588");
994
- var min = Math.min;
995
- module.exports = function (it) {
996
- return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
997
- };
998
-
999
-
1000
- /***/ }),
1001
-
1002
- /***/ "9e1e":
1003
- /***/ (function(module, exports, __webpack_require__) {
1004
-
1005
- // Thank's IE8 for his funny defineProperty
1006
- module.exports = !__webpack_require__("79e5")(function () {
1007
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
1008
- });
1009
-
1010
-
1011
- /***/ }),
1012
-
1013
- /***/ "aae3":
1014
- /***/ (function(module, exports, __webpack_require__) {
1015
-
1016
- // 7.2.8 IsRegExp(argument)
1017
- var isObject = __webpack_require__("d3f4");
1018
- var cof = __webpack_require__("2d95");
1019
- var MATCH = __webpack_require__("2b4c")('match');
1020
- module.exports = function (it) {
1021
- var isRegExp;
1022
- return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : cof(it) == 'RegExp');
1023
- };
1024
-
1025
-
1026
- /***/ }),
1027
-
1028
- /***/ "ac6a":
1029
- /***/ (function(module, exports, __webpack_require__) {
1030
-
1031
- var $iterators = __webpack_require__("cadf");
1032
- var getKeys = __webpack_require__("0d58");
1033
- var redefine = __webpack_require__("2aba");
1034
- var global = __webpack_require__("7726");
1035
- var hide = __webpack_require__("32e9");
1036
- var Iterators = __webpack_require__("84f2");
1037
- var wks = __webpack_require__("2b4c");
1038
- var ITERATOR = wks('iterator');
1039
- var TO_STRING_TAG = wks('toStringTag');
1040
- var ArrayValues = Iterators.Array;
1041
-
1042
- var DOMIterables = {
1043
- CSSRuleList: true, // TODO: Not spec compliant, should be false.
1044
- CSSStyleDeclaration: false,
1045
- CSSValueList: false,
1046
- ClientRectList: false,
1047
- DOMRectList: false,
1048
- DOMStringList: false,
1049
- DOMTokenList: true,
1050
- DataTransferItemList: false,
1051
- FileList: false,
1052
- HTMLAllCollection: false,
1053
- HTMLCollection: false,
1054
- HTMLFormElement: false,
1055
- HTMLSelectElement: false,
1056
- MediaList: true, // TODO: Not spec compliant, should be false.
1057
- MimeTypeArray: false,
1058
- NamedNodeMap: false,
1059
- NodeList: true,
1060
- PaintRequestList: false,
1061
- Plugin: false,
1062
- PluginArray: false,
1063
- SVGLengthList: false,
1064
- SVGNumberList: false,
1065
- SVGPathSegList: false,
1066
- SVGPointList: false,
1067
- SVGStringList: false,
1068
- SVGTransformList: false,
1069
- SourceBufferList: false,
1070
- StyleSheetList: true, // TODO: Not spec compliant, should be false.
1071
- TextTrackCueList: false,
1072
- TextTrackList: false,
1073
- TouchList: false
1074
- };
1075
-
1076
- for (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {
1077
- var NAME = collections[i];
1078
- var explicit = DOMIterables[NAME];
1079
- var Collection = global[NAME];
1080
- var proto = Collection && Collection.prototype;
1081
- var key;
1082
- if (proto) {
1083
- if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);
1084
- if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);
1085
- Iterators[NAME] = ArrayValues;
1086
- if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);
1087
- }
1088
- }
1089
-
1090
-
1091
- /***/ }),
1092
-
1093
- /***/ "be13":
1094
- /***/ (function(module, exports) {
1095
-
1096
- // 7.2.1 RequireObjectCoercible(argument)
1097
- module.exports = function (it) {
1098
- if (it == undefined) throw TypeError("Can't call method on " + it);
1099
- return it;
1100
- };
1101
-
1102
-
1103
- /***/ }),
1104
-
1105
- /***/ "c366":
1106
- /***/ (function(module, exports, __webpack_require__) {
1107
-
1108
- // false -> Array#indexOf
1109
- // true -> Array#includes
1110
- var toIObject = __webpack_require__("6821");
1111
- var toLength = __webpack_require__("9def");
1112
- var toAbsoluteIndex = __webpack_require__("77f1");
1113
- module.exports = function (IS_INCLUDES) {
1114
- return function ($this, el, fromIndex) {
1115
- var O = toIObject($this);
1116
- var length = toLength(O.length);
1117
- var index = toAbsoluteIndex(fromIndex, length);
1118
- var value;
1119
- // Array#includes uses SameValueZero equality algorithm
1120
- // eslint-disable-next-line no-self-compare
1121
- if (IS_INCLUDES && el != el) while (length > index) {
1122
- value = O[index++];
1123
- // eslint-disable-next-line no-self-compare
1124
- if (value != value) return true;
1125
- // Array#indexOf ignores holes, Array#includes - not
1126
- } else for (;length > index; index++) if (IS_INCLUDES || index in O) {
1127
- if (O[index] === el) return IS_INCLUDES || index || 0;
1128
- } return !IS_INCLUDES && -1;
1129
- };
1130
- };
1131
-
1132
-
1133
- /***/ }),
1134
-
1135
- /***/ "c69a":
1136
- /***/ (function(module, exports, __webpack_require__) {
1137
-
1138
- module.exports = !__webpack_require__("9e1e") && !__webpack_require__("79e5")(function () {
1139
- return Object.defineProperty(__webpack_require__("230e")('div'), 'a', { get: function () { return 7; } }).a != 7;
1140
- });
1141
-
1142
-
1143
- /***/ }),
1144
-
1145
- /***/ "ca5a":
1146
- /***/ (function(module, exports) {
1147
-
1148
- var id = 0;
1149
- var px = Math.random();
1150
- module.exports = function (key) {
1151
- return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
1152
- };
1153
-
1154
-
1155
- /***/ }),
1156
-
1157
- /***/ "cadf":
1158
- /***/ (function(module, exports, __webpack_require__) {
1159
-
1160
- "use strict";
1161
-
1162
- var addToUnscopables = __webpack_require__("9c6c");
1163
- var step = __webpack_require__("d53b");
1164
- var Iterators = __webpack_require__("84f2");
1165
- var toIObject = __webpack_require__("6821");
1166
-
1167
- // 22.1.3.4 Array.prototype.entries()
1168
- // 22.1.3.13 Array.prototype.keys()
1169
- // 22.1.3.29 Array.prototype.values()
1170
- // 22.1.3.30 Array.prototype[@@iterator]()
1171
- module.exports = __webpack_require__("01f9")(Array, 'Array', function (iterated, kind) {
1172
- this._t = toIObject(iterated); // target
1173
- this._i = 0; // next index
1174
- this._k = kind; // kind
1175
- // 22.1.5.2.1 %ArrayIteratorPrototype%.next()
1176
- }, function () {
1177
- var O = this._t;
1178
- var kind = this._k;
1179
- var index = this._i++;
1180
- if (!O || index >= O.length) {
1181
- this._t = undefined;
1182
- return step(1);
1183
- }
1184
- if (kind == 'keys') return step(0, index);
1185
- if (kind == 'values') return step(0, O[index]);
1186
- return step(0, [index, O[index]]);
1187
- }, 'values');
1188
-
1189
- // argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)
1190
- Iterators.Arguments = Iterators.Array;
1191
-
1192
- addToUnscopables('keys');
1193
- addToUnscopables('values');
1194
- addToUnscopables('entries');
1195
-
1196
-
1197
- /***/ }),
1198
-
1199
- /***/ "cb7c":
1200
- /***/ (function(module, exports, __webpack_require__) {
1201
-
1202
- var isObject = __webpack_require__("d3f4");
1203
- module.exports = function (it) {
1204
- if (!isObject(it)) throw TypeError(it + ' is not an object!');
1205
- return it;
1206
- };
1207
-
1208
-
1209
- /***/ }),
1210
-
1211
- /***/ "ce10":
1212
- /***/ (function(module, exports, __webpack_require__) {
1213
-
1214
- var has = __webpack_require__("69a8");
1215
- var toIObject = __webpack_require__("6821");
1216
- var arrayIndexOf = __webpack_require__("c366")(false);
1217
- var IE_PROTO = __webpack_require__("613b")('IE_PROTO');
1218
-
1219
- module.exports = function (object, names) {
1220
- var O = toIObject(object);
1221
- var i = 0;
1222
- var result = [];
1223
- var key;
1224
- for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);
1225
- // Don't enum bug & hidden keys
1226
- while (names.length > i) if (has(O, key = names[i++])) {
1227
- ~arrayIndexOf(result, key) || result.push(key);
1228
- }
1229
- return result;
1230
- };
1231
-
1232
-
1233
- /***/ }),
1234
-
1235
- /***/ "d2c8":
1236
- /***/ (function(module, exports, __webpack_require__) {
1237
-
1238
- // helper for String#{startsWith, endsWith, includes}
1239
- var isRegExp = __webpack_require__("aae3");
1240
- var defined = __webpack_require__("be13");
1241
-
1242
- module.exports = function (that, searchString, NAME) {
1243
- if (isRegExp(searchString)) throw TypeError('String#' + NAME + " doesn't accept regex!");
1244
- return String(defined(that));
1245
- };
1246
-
1247
-
1248
- /***/ }),
1249
-
1250
- /***/ "d3f4":
1251
- /***/ (function(module, exports) {
1252
-
1253
- module.exports = function (it) {
1254
- return typeof it === 'object' ? it !== null : typeof it === 'function';
1255
- };
1256
-
1257
-
1258
- /***/ }),
1259
-
1260
- /***/ "d53b":
1261
- /***/ (function(module, exports) {
1262
-
1263
- module.exports = function (done, value) {
1264
- return { value: value, done: !!done };
1265
- };
1266
-
1267
-
1268
- /***/ }),
1269
-
1270
- /***/ "d8e8":
1271
- /***/ (function(module, exports) {
1272
-
1273
- module.exports = function (it) {
1274
- if (typeof it != 'function') throw TypeError(it + ' is not a function!');
1275
- return it;
1276
- };
1277
-
1278
-
1279
- /***/ }),
1280
-
1281
- /***/ "e11e":
1282
- /***/ (function(module, exports) {
1283
-
1284
- // IE 8- don't enum bug keys
1285
- module.exports = (
1286
- 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
1287
- ).split(',');
1288
-
1289
-
1290
- /***/ }),
1291
-
1292
- /***/ "fab2":
1293
- /***/ (function(module, exports, __webpack_require__) {
1294
-
1295
- var document = __webpack_require__("7726").document;
1296
- module.exports = document && document.documentElement;
1297
-
1298
-
1299
- /***/ }),
1300
-
1301
- /***/ "fb15":
1302
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
1303
-
1304
- "use strict";
1305
- __webpack_require__.r(__webpack_exports__);
1306
-
1307
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
1308
- // This file is imported into lib/wc client bundles.
1309
-
1310
- if (typeof window !== 'undefined') {
1311
- var setPublicPath_i
1312
- if ((setPublicPath_i = window.document.currentScript) && (setPublicPath_i = setPublicPath_i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))) {
1313
- __webpack_require__.p = setPublicPath_i[1] // eslint-disable-line
1314
- }
1315
- }
1316
-
1317
- // Indicate to webpack that this file can be concatenated
1318
- /* harmony default export */ var setPublicPath = (null);
1319
-
1320
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.array.iterator.js
1321
- var es6_array_iterator = __webpack_require__("cadf");
1322
-
1323
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.object.keys.js
1324
- var es6_object_keys = __webpack_require__("456d");
1325
-
1326
- // EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom.iterable.js
1327
- var web_dom_iterable = __webpack_require__("ac6a");
1328
-
1329
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js
1330
- function _arrayWithoutHoles(arr) {
1331
- if (Array.isArray(arr)) {
1332
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
1333
- arr2[i] = arr[i];
1334
- }
1335
-
1336
- return arr2;
1337
- }
1338
- }
1339
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArray.js
1340
- function _iterableToArray(iter) {
1341
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
1342
- }
1343
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js
1344
- function _nonIterableSpread() {
1345
- throw new TypeError("Invalid attempt to spread non-iterable instance");
1346
- }
1347
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js
1348
-
1349
-
1350
-
1351
- function _toConsumableArray(arr) {
1352
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
1353
- }
1354
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
1355
- function _arrayWithHoles(arr) {
1356
- if (Array.isArray(arr)) return arr;
1357
- }
1358
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
1359
- function _iterableToArrayLimit(arr, i) {
1360
- var _arr = [];
1361
- var _n = true;
1362
- var _d = false;
1363
- var _e = undefined;
1364
-
1365
- try {
1366
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
1367
- _arr.push(_s.value);
1368
-
1369
- if (i && _arr.length === i) break;
1370
- }
1371
- } catch (err) {
1372
- _d = true;
1373
- _e = err;
1374
- } finally {
1375
- try {
1376
- if (!_n && _i["return"] != null) _i["return"]();
1377
- } finally {
1378
- if (_d) throw _e;
1379
- }
1380
- }
1381
-
1382
- return _arr;
1383
- }
1384
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
1385
- function _nonIterableRest() {
1386
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
1387
- }
1388
- // CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js
1389
-
1390
-
1391
-
1392
- function _slicedToArray(arr, i) {
1393
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
1394
- }
1395
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es7.array.includes.js
1396
- var es7_array_includes = __webpack_require__("6762");
1397
-
1398
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.string.includes.js
1399
- var es6_string_includes = __webpack_require__("2fdb");
1400
-
1401
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.to-string.js
1402
- var es6_regexp_to_string = __webpack_require__("6b54");
1403
-
1404
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es6.regexp.split.js
1405
- var es6_regexp_split = __webpack_require__("28a5");
1406
-
1407
- // CONCATENATED MODULE: ./src/index.js
1408
-
1409
-
1410
-
1411
-
1412
-
1413
-
1414
-
1415
-
1416
-
1417
- var jsx = {
1418
- h: function h() {},
1419
- getProp: function getProp(context, prop) {
1420
- var props = prop.split('.'),
1421
- i;
1422
-
1423
- while (i = props.shift()) {
1424
- context = context[i];
1425
- }
1426
-
1427
- return context;
1428
- },
1429
- setProp: function setProp(context, prop, value) {
1430
- var props = prop.split('.'),
1431
- i;
1432
-
1433
- while (i = props.shift()) {
1434
- if (!props.length) {
1435
- break;
1436
- }
1437
-
1438
- context = context[i];
1439
- }
1440
-
1441
- context[i] = value;
1442
- },
1443
- use: function use(h) {
1444
- jsx.h = h;
1445
- },
1446
- create: function create() {
1447
- var node = {
1448
- tag: 'div',
1449
- props: {
1450
- 'class': {},
1451
- style: {},
1452
- attrs: {},
1453
- props: {},
1454
- domProps: {},
1455
- on: {},
1456
- nativeOn: {}
1457
- },
1458
- children: []
1459
- };
1460
-
1461
- for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {
1462
- params[_key] = arguments[_key];
1463
- }
1464
-
1465
- var plen = params.length;
1466
-
1467
- if (!plen) {
1468
- return node;
1469
- }
1470
-
1471
- if (plen > 1) {
1472
- var _node$children;
1473
-
1474
- var second = params[1];
1475
- var i = 1;
1476
- var secondIsObjeect = Object.prototype.toString.call(second).slice(8, -1) === 'Object'; // 如果第二个参数是 props
1477
-
1478
- if (secondIsObjeect && !('componentInstance' in second)) {
1479
- // 如果有vif===false,直接返回null
1480
- if (second['vif'] === false) {
1481
- return null;
1482
- }
1483
-
1484
- var table = {
1485
- c: 'class',
1486
- s: 'style',
1487
- a: 'attrs',
1488
- p: 'props',
1489
- dp: 'domProps',
1490
- o: 'on',
1491
- no: 'nativeOn'
1492
- };
1493
-
1494
- for (var k in second) {
1495
- // 如果值是null,则过滤
1496
- if (second[k] === null) {
1497
- continue;
1498
- }
1499
-
1500
- if (k.includes('_')) {
1501
- var _k$split = k.split('_'),
1502
- _k$split2 = _slicedToArray(_k$split, 2),
1503
- a = _k$split2[0],
1504
- b = _k$split2[1];
1505
-
1506
- var aa = table[a] || a;
1507
- node['props'][aa][b] = second[k];
1508
- } else {
1509
- node['props'][k] = second[k];
1510
- }
1511
- }
1512
-
1513
- i = 2;
1514
- }
1515
-
1516
- (_node$children = node.children).push.apply(_node$children, _toConsumableArray(params.slice(i)));
1517
- }
1518
-
1519
- var first = params[0];
1520
-
1521
- if (first.includes('.')) {
1522
- var _first$split = first.split('.'),
1523
- _first$split2 = _slicedToArray(_first$split, 2),
1524
- t = _first$split2[0],
1525
- s = _first$split2[1];
1526
-
1527
- node['tag'] = t;
1528
- s.split('+').forEach(function (i) {
1529
- node['props']['class'][i.trim()] = true;
1530
- });
1531
- } else {
1532
- node['tag'] = first;
1533
- } //- 处理 classes
1534
-
1535
-
1536
- if ('classes' in node.props) {
1537
- node.props.classes.split(' ').forEach(function (cls) {
1538
- node.props['class'][cls] = true;
1539
- });
1540
- delete node.props['classes'];
1541
- } //- 处理vmodel
1542
-
1543
-
1544
- if ('vmodel' in node.props) {
1545
- var _node$props$vmodel = _slicedToArray(node.props['vmodel'], 4),
1546
- context = _node$props$vmodel[0],
1547
- model = _node$props$vmodel[1],
1548
- modelProp = _node$props$vmodel[2],
1549
- modelEvent = _node$props$vmodel[3];
1550
-
1551
- var tag = node.tag;
1552
- var props = node.props;
1553
- var inputType = props['attrs']['type'] || props['domProps']['type'] || 'text';
1554
- var isInput = tag === 'input';
1555
- var isText = isInput && inputType === 'text' || tag === 'textarea';
1556
- var isRadio = isInput && inputType === 'radio';
1557
- var isCheckbox = isInput && inputType === 'checkbox';
1558
- var isSelect = tag === 'select';
1559
-
1560
- if (isText) {
1561
- props['domProps']['value'] = jsx.getProp(context, model);
1562
-
1563
- props['on']['input'] = function (e) {
1564
- jsx.setProp(context, model, e.target.value);
1565
- };
1566
- } else if (isRadio) {
1567
- props['domProps']['checked'] = props['attrs']['value'] === jsx.getProp(context, model) ? true : false;
1568
-
1569
- props['on']['change'] = function (e) {
1570
- jsx.setProp(context, model, e.target.value);
1571
- };
1572
- } else if (isCheckbox) {
1573
- //- 如果model是array
1574
- if (Array.isArray(jsx.getProp(context, model))) {
1575
- var value = props['attrs']['value'];
1576
- var isChecked = props['domProps']['checked'] = jsx.getProp(context, model).includes(value);
1577
-
1578
- props['on']['change'] = function () {
1579
- if (isChecked) {
1580
- jsx.getProp(context, model).splice(jsx.getProp(context, model).indexOf(value), 1);
1581
- } else {
1582
- jsx.getProp(context, model).push(value);
1583
- }
1584
- };
1585
- } else {
1586
- props['domProps']['checked'] = jsx.getProp(context, model) === true ? true : false;
1587
-
1588
- props['on']['change'] = function () {
1589
- jsx.setProp(context, model, !props['domProps']['checked']);
1590
- };
1591
- }
1592
- } else if (isSelect) {
1593
- //- 如果model是array
1594
- if (Array.isArray(jsx.getProp(context, model))) {//- 好像有点麻烦,需要反推option children
1595
- } else {
1596
- props['domProps']['value'] = jsx.getProp(context, model);
1597
-
1598
- props['on']['change'] = function (e) {
1599
- jsx.setProp(context, model, e.target.value);
1600
- };
1601
- }
1602
- } //- 假设其他都是自定义组件
1603
- else {
1604
- modelProp = modelProp || 'value';
1605
- modelEvent = modelEvent || 'input';
1606
- props['props'][modelProp] = jsx.getProp(context, model);
1607
-
1608
- props['on'][modelEvent] = function (val) {
1609
- jsx.setProp(context, model, val);
1610
- };
1611
- }
1612
-
1613
- delete node.props['vmodel'];
1614
- } // 清楚空的属性
1615
-
1616
-
1617
- ['class', 'style', 'attrs', 'props', 'domProps', 'on', 'nativeOn'].forEach(function (key) {
1618
- if (!Object.keys(node.props[key]).length) {
1619
- delete node.props[key];
1620
- }
1621
- });
1622
- return jsx.h(node.tag, node.props, node.children);
1623
- },
1624
- bind: function bind(tag) {
1625
- return function () {
1626
- for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1627
- params[_key2] = arguments[_key2];
1628
- }
1629
-
1630
- if (typeof params[0] === 'string' && params[0][0] === '.') {
1631
- params[0] = tag + params[0];
1632
- } else {
1633
- params.unshift(tag);
1634
- }
1635
-
1636
- return jsx.create.apply(jsx, params);
1637
- };
1638
- }
1639
- };
1640
- 'a,b,button,dd,div,dl,dt,em,form,i,iframe,img,input,textarea,label,li,ol,optgroup,option,p,select,span,table,th,thead,tbody,tr,td,col,colgroup,ul,h1,h2,h3,h4,h5,h6'.split(',').forEach(function (tag) {
1641
- jsx[tag] = jsx.bind(tag);
1642
- });
1643
- /* harmony default export */ var src = (jsx);
1644
- // CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
1645
-
1646
-
1647
- /* harmony default export */ var entry_lib = __webpack_exports__["default"] = (src);
1648
-
1649
-
1650
-
1651
- /***/ })
1652
-
1653
- /******/ });
1654
- });
1655
- //# sourceMappingURL=vue-jsx.umd.js.map