@json-editor/json-editor 2.6.1 → 2.7.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 (68) hide show
  1. package/.github/workflows/build.yml +12 -3
  2. package/CHANGELOG.md +24 -0
  3. package/README.md +131 -18
  4. package/dist/jsoneditor.js +2 -2
  5. package/dist/nonmin/jsoneditor.js +2607 -582
  6. package/dist/nonmin/jsoneditor.js.map +1 -1
  7. package/docs/form-submission.html +76 -0
  8. package/package.json +4 -3
  9. package/release-notes.md +2 -0
  10. package/src/core.js +36 -37
  11. package/src/defaults.js +9 -2
  12. package/src/editors/array.js +12 -1
  13. package/src/editors/autocomplete.js +4 -3
  14. package/src/editors/button.js +1 -1
  15. package/src/editors/multiselect.js +14 -5
  16. package/src/editors/string.js +4 -0
  17. package/src/editors/table.js +20 -2
  18. package/src/editors/upload.js +1 -1
  19. package/src/editors/uuid.js +2 -12
  20. package/src/iconlib.js +1 -1
  21. package/src/schemaloader.js +231 -108
  22. package/src/style.css +3 -0
  23. package/src/style.css.js +1 -1
  24. package/src/theme.js +0 -2
  25. package/src/themes/bootstrap3.js +1 -0
  26. package/src/themes/spectre.js +2 -1
  27. package/src/utilities.js +18 -0
  28. package/src/validator.js +36 -34
  29. package/tests/codeceptjs/codecept.json +1 -1
  30. package/tests/codeceptjs/core_test.js +98 -0
  31. package/tests/codeceptjs/editors/advanced_test.js +1 -1
  32. package/tests/codeceptjs/editors/array_test.js +74 -0
  33. package/tests/codeceptjs/editors/autocomplete_test.js +16 -0
  34. package/tests/codeceptjs/editors/button_test.js +10 -3
  35. package/tests/codeceptjs/editors/integer_test.js +7 -2
  36. package/tests/codeceptjs/editors/jodit_test.js +3 -3
  37. package/tests/codeceptjs/editors/range_test.js +12 -0
  38. package/tests/codeceptjs/editors/uuid_test.js +31 -4
  39. package/tests/docker-compose.yml +1 -1
  40. package/tests/fixtures/definitions.json +22 -0
  41. package/tests/fixtures/properties.json +20 -0
  42. package/tests/pages/array-checkboxes-infotext.html +52 -0
  43. package/tests/pages/array-move-events.html +4 -2
  44. package/tests/pages/array-unique-items-sort.html +78 -0
  45. package/tests/pages/autocomplete.html +69 -0
  46. package/tests/pages/button-icons.html +38 -0
  47. package/tests/pages/core.html +4 -2
  48. package/tests/pages/error-messages.html +47 -0
  49. package/tests/pages/grid-strict.html +6 -10
  50. package/tests/pages/grid.html +0 -4
  51. package/tests/pages/issues/issue-gh-812.html +4 -2
  52. package/tests/pages/meta_schema.json +14 -0
  53. package/tests/pages/object-required-properties.html +7 -7
  54. package/tests/pages/range.html +60 -0
  55. package/tests/pages/ready.html +43 -0
  56. package/tests/pages/references.html +162 -0
  57. package/tests/pages/string-simplemde-editor.html +81 -0
  58. package/tests/pages/table-move-events.html +4 -1
  59. package/tests/pages/urn.html +11 -8
  60. package/tests/pages/uuid.html +89 -50
  61. package/tests/pages/validation-messages.json +705 -0
  62. package/tests/unit/core.spec.js +79 -66
  63. package/tests/unit/editor.spec.js +20 -8
  64. package/tests/unit/editors/array.spec.js +3 -2
  65. package/tests/unit/editors/object.spec.js +3 -1
  66. package/tests/unit/editors/table.spec.js +4 -2
  67. package/tests/unit/schemaloader.spec.js +77 -105
  68. package/tests/unit/validator.spec.js +2 -2
@@ -3,7 +3,7 @@
3
3
  * * @name JSON Editor
4
4
  * * @description JSON Schema Based Editor
5
5
  * * This library is the continuation of jdorn's great work (see also https://github.com/jdorn/json-editor/issues/800)
6
- * * @version "2.6.1"
6
+ * * @version "2.7.0"
7
7
  * * @author Jeremy Dorn
8
8
  * * @see https://github.com/jdorn/json-editor/
9
9
  * * @see https://github.com/json-editor/json-editor
@@ -192,6 +192,22 @@ module.exports = function (S, index, unicode) {
192
192
  };
193
193
 
194
194
 
195
+ /***/ }),
196
+
197
+ /***/ "./node_modules/core-js/internals/an-instance.js":
198
+ /*!*******************************************************!*\
199
+ !*** ./node_modules/core-js/internals/an-instance.js ***!
200
+ \*******************************************************/
201
+ /*! no static exports found */
202
+ /***/ (function(module, exports) {
203
+
204
+ module.exports = function (it, Constructor, name) {
205
+ if (!(it instanceof Constructor)) {
206
+ throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
207
+ } return it;
208
+ };
209
+
210
+
195
211
  /***/ }),
196
212
 
197
213
  /***/ "./node_modules/core-js/internals/an-object.js":
@@ -1042,6 +1058,32 @@ module.exports = {
1042
1058
  };
1043
1059
 
1044
1060
 
1061
+ /***/ }),
1062
+
1063
+ /***/ "./node_modules/core-js/internals/engine-is-browser.js":
1064
+ /*!*************************************************************!*\
1065
+ !*** ./node_modules/core-js/internals/engine-is-browser.js ***!
1066
+ \*************************************************************/
1067
+ /*! no static exports found */
1068
+ /***/ (function(module, exports) {
1069
+
1070
+ module.exports = typeof window == 'object';
1071
+
1072
+
1073
+ /***/ }),
1074
+
1075
+ /***/ "./node_modules/core-js/internals/engine-is-ios.js":
1076
+ /*!*********************************************************!*\
1077
+ !*** ./node_modules/core-js/internals/engine-is-ios.js ***!
1078
+ \*********************************************************/
1079
+ /*! no static exports found */
1080
+ /***/ (function(module, exports, __webpack_require__) {
1081
+
1082
+ var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
1083
+
1084
+ module.exports = /(?:iphone|ipod|ipad).*applewebkit/i.test(userAgent);
1085
+
1086
+
1045
1087
  /***/ }),
1046
1088
 
1047
1089
  /***/ "./node_modules/core-js/internals/engine-is-node.js":
@@ -1057,6 +1099,20 @@ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core
1057
1099
  module.exports = classof(global.process) == 'process';
1058
1100
 
1059
1101
 
1102
+ /***/ }),
1103
+
1104
+ /***/ "./node_modules/core-js/internals/engine-is-webos-webkit.js":
1105
+ /*!******************************************************************!*\
1106
+ !*** ./node_modules/core-js/internals/engine-is-webos-webkit.js ***!
1107
+ \******************************************************************/
1108
+ /*! no static exports found */
1109
+ /***/ (function(module, exports, __webpack_require__) {
1110
+
1111
+ var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
1112
+
1113
+ module.exports = /web0s(?!.*chrome)/i.test(userAgent);
1114
+
1115
+
1060
1116
  /***/ }),
1061
1117
 
1062
1118
  /***/ "./node_modules/core-js/internals/engine-user-agent.js":
@@ -1572,6 +1628,25 @@ module.exports = function hasOwn(it, key) {
1572
1628
  module.exports = {};
1573
1629
 
1574
1630
 
1631
+ /***/ }),
1632
+
1633
+ /***/ "./node_modules/core-js/internals/host-report-errors.js":
1634
+ /*!**************************************************************!*\
1635
+ !*** ./node_modules/core-js/internals/host-report-errors.js ***!
1636
+ \**************************************************************/
1637
+ /*! no static exports found */
1638
+ /***/ (function(module, exports, __webpack_require__) {
1639
+
1640
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
1641
+
1642
+ module.exports = function (a, b) {
1643
+ var console = global.console;
1644
+ if (console && console.error) {
1645
+ arguments.length === 1 ? console.error(a) : console.error(a, b);
1646
+ }
1647
+ };
1648
+
1649
+
1575
1650
  /***/ }),
1576
1651
 
1577
1652
  /***/ "./node_modules/core-js/internals/html.js":
@@ -1882,6 +1957,75 @@ module.exports = function (it) {
1882
1957
  };
1883
1958
 
1884
1959
 
1960
+ /***/ }),
1961
+
1962
+ /***/ "./node_modules/core-js/internals/iterate.js":
1963
+ /*!***************************************************!*\
1964
+ !*** ./node_modules/core-js/internals/iterate.js ***!
1965
+ \***************************************************/
1966
+ /*! no static exports found */
1967
+ /***/ (function(module, exports, __webpack_require__) {
1968
+
1969
+ var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
1970
+ var isArrayIteratorMethod = __webpack_require__(/*! ../internals/is-array-iterator-method */ "./node_modules/core-js/internals/is-array-iterator-method.js");
1971
+ var toLength = __webpack_require__(/*! ../internals/to-length */ "./node_modules/core-js/internals/to-length.js");
1972
+ var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
1973
+ var getIteratorMethod = __webpack_require__(/*! ../internals/get-iterator-method */ "./node_modules/core-js/internals/get-iterator-method.js");
1974
+ var iteratorClose = __webpack_require__(/*! ../internals/iterator-close */ "./node_modules/core-js/internals/iterator-close.js");
1975
+
1976
+ var Result = function (stopped, result) {
1977
+ this.stopped = stopped;
1978
+ this.result = result;
1979
+ };
1980
+
1981
+ module.exports = function (iterable, unboundFunction, options) {
1982
+ var that = options && options.that;
1983
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1984
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1985
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1986
+ var fn = bind(unboundFunction, that, 1 + AS_ENTRIES + INTERRUPTED);
1987
+ var iterator, iterFn, index, length, result, next, step;
1988
+
1989
+ var stop = function (condition) {
1990
+ if (iterator) iteratorClose(iterator);
1991
+ return new Result(true, condition);
1992
+ };
1993
+
1994
+ var callFn = function (value) {
1995
+ if (AS_ENTRIES) {
1996
+ anObject(value);
1997
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1998
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1999
+ };
2000
+
2001
+ if (IS_ITERATOR) {
2002
+ iterator = iterable;
2003
+ } else {
2004
+ iterFn = getIteratorMethod(iterable);
2005
+ if (typeof iterFn != 'function') throw TypeError('Target is not iterable');
2006
+ // optimisation for array iterators
2007
+ if (isArrayIteratorMethod(iterFn)) {
2008
+ for (index = 0, length = toLength(iterable.length); length > index; index++) {
2009
+ result = callFn(iterable[index]);
2010
+ if (result && result instanceof Result) return result;
2011
+ } return new Result(false);
2012
+ }
2013
+ iterator = iterFn.call(iterable);
2014
+ }
2015
+
2016
+ next = iterator.next;
2017
+ while (!(step = next.call(iterator)).done) {
2018
+ try {
2019
+ result = callFn(step.value);
2020
+ } catch (error) {
2021
+ iteratorClose(iterator);
2022
+ throw error;
2023
+ }
2024
+ if (typeof result == 'object' && result && result instanceof Result) return result;
2025
+ } return new Result(false);
2026
+ };
2027
+
2028
+
1885
2029
  /***/ }),
1886
2030
 
1887
2031
  /***/ "./node_modules/core-js/internals/iterator-close.js":
@@ -1970,6 +2114,113 @@ module.exports = {
1970
2114
  module.exports = {};
1971
2115
 
1972
2116
 
2117
+ /***/ }),
2118
+
2119
+ /***/ "./node_modules/core-js/internals/microtask.js":
2120
+ /*!*****************************************************!*\
2121
+ !*** ./node_modules/core-js/internals/microtask.js ***!
2122
+ \*****************************************************/
2123
+ /*! no static exports found */
2124
+ /***/ (function(module, exports, __webpack_require__) {
2125
+
2126
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
2127
+ var getOwnPropertyDescriptor = __webpack_require__(/*! ../internals/object-get-own-property-descriptor */ "./node_modules/core-js/internals/object-get-own-property-descriptor.js").f;
2128
+ var macrotask = __webpack_require__(/*! ../internals/task */ "./node_modules/core-js/internals/task.js").set;
2129
+ var IS_IOS = __webpack_require__(/*! ../internals/engine-is-ios */ "./node_modules/core-js/internals/engine-is-ios.js");
2130
+ var IS_WEBOS_WEBKIT = __webpack_require__(/*! ../internals/engine-is-webos-webkit */ "./node_modules/core-js/internals/engine-is-webos-webkit.js");
2131
+ var IS_NODE = __webpack_require__(/*! ../internals/engine-is-node */ "./node_modules/core-js/internals/engine-is-node.js");
2132
+
2133
+ var MutationObserver = global.MutationObserver || global.WebKitMutationObserver;
2134
+ var document = global.document;
2135
+ var process = global.process;
2136
+ var Promise = global.Promise;
2137
+ // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
2138
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global, 'queueMicrotask');
2139
+ var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
2140
+
2141
+ var flush, head, last, notify, toggle, node, promise, then;
2142
+
2143
+ // modern engines have queueMicrotask method
2144
+ if (!queueMicrotask) {
2145
+ flush = function () {
2146
+ var parent, fn;
2147
+ if (IS_NODE && (parent = process.domain)) parent.exit();
2148
+ while (head) {
2149
+ fn = head.fn;
2150
+ head = head.next;
2151
+ try {
2152
+ fn();
2153
+ } catch (error) {
2154
+ if (head) notify();
2155
+ else last = undefined;
2156
+ throw error;
2157
+ }
2158
+ } last = undefined;
2159
+ if (parent) parent.enter();
2160
+ };
2161
+
2162
+ // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
2163
+ // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
2164
+ if (!IS_IOS && !IS_NODE && !IS_WEBOS_WEBKIT && MutationObserver && document) {
2165
+ toggle = true;
2166
+ node = document.createTextNode('');
2167
+ new MutationObserver(flush).observe(node, { characterData: true });
2168
+ notify = function () {
2169
+ node.data = toggle = !toggle;
2170
+ };
2171
+ // environments with maybe non-completely correct, but existent Promise
2172
+ } else if (Promise && Promise.resolve) {
2173
+ // Promise.resolve without an argument throws an error in LG WebOS 2
2174
+ promise = Promise.resolve(undefined);
2175
+ // workaround of WebKit ~ iOS Safari 10.1 bug
2176
+ promise.constructor = Promise;
2177
+ then = promise.then;
2178
+ notify = function () {
2179
+ then.call(promise, flush);
2180
+ };
2181
+ // Node.js without promises
2182
+ } else if (IS_NODE) {
2183
+ notify = function () {
2184
+ process.nextTick(flush);
2185
+ };
2186
+ // for other environments - macrotask based on:
2187
+ // - setImmediate
2188
+ // - MessageChannel
2189
+ // - window.postMessag
2190
+ // - onreadystatechange
2191
+ // - setTimeout
2192
+ } else {
2193
+ notify = function () {
2194
+ // strange IE + webpack dev server bug - use .call(global)
2195
+ macrotask.call(global, flush);
2196
+ };
2197
+ }
2198
+ }
2199
+
2200
+ module.exports = queueMicrotask || function (fn) {
2201
+ var task = { fn: fn, next: undefined };
2202
+ if (last) last.next = task;
2203
+ if (!head) {
2204
+ head = task;
2205
+ notify();
2206
+ } last = task;
2207
+ };
2208
+
2209
+
2210
+ /***/ }),
2211
+
2212
+ /***/ "./node_modules/core-js/internals/native-promise-constructor.js":
2213
+ /*!**********************************************************************!*\
2214
+ !*** ./node_modules/core-js/internals/native-promise-constructor.js ***!
2215
+ \**********************************************************************/
2216
+ /*! no static exports found */
2217
+ /***/ (function(module, exports, __webpack_require__) {
2218
+
2219
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
2220
+
2221
+ module.exports = global.Promise;
2222
+
2223
+
1973
2224
  /***/ }),
1974
2225
 
1975
2226
  /***/ "./node_modules/core-js/internals/native-symbol.js":
@@ -2009,6 +2260,36 @@ var WeakMap = global.WeakMap;
2009
2260
  module.exports = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
2010
2261
 
2011
2262
 
2263
+ /***/ }),
2264
+
2265
+ /***/ "./node_modules/core-js/internals/new-promise-capability.js":
2266
+ /*!******************************************************************!*\
2267
+ !*** ./node_modules/core-js/internals/new-promise-capability.js ***!
2268
+ \******************************************************************/
2269
+ /*! no static exports found */
2270
+ /***/ (function(module, exports, __webpack_require__) {
2271
+
2272
+ "use strict";
2273
+
2274
+ var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
2275
+
2276
+ var PromiseCapability = function (C) {
2277
+ var resolve, reject;
2278
+ this.promise = new C(function ($$resolve, $$reject) {
2279
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
2280
+ resolve = $$resolve;
2281
+ reject = $$reject;
2282
+ });
2283
+ this.resolve = aFunction(resolve);
2284
+ this.reject = aFunction(reject);
2285
+ };
2286
+
2287
+ // 25.4.1.5 NewPromiseCapability(C)
2288
+ module.exports.f = function (C) {
2289
+ return new PromiseCapability(C);
2290
+ };
2291
+
2292
+
2012
2293
  /***/ }),
2013
2294
 
2014
2295
  /***/ "./node_modules/core-js/internals/not-a-regexp.js":
@@ -2633,6 +2914,64 @@ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core
2633
2914
  module.exports = global;
2634
2915
 
2635
2916
 
2917
+ /***/ }),
2918
+
2919
+ /***/ "./node_modules/core-js/internals/perform.js":
2920
+ /*!***************************************************!*\
2921
+ !*** ./node_modules/core-js/internals/perform.js ***!
2922
+ \***************************************************/
2923
+ /*! no static exports found */
2924
+ /***/ (function(module, exports) {
2925
+
2926
+ module.exports = function (exec) {
2927
+ try {
2928
+ return { error: false, value: exec() };
2929
+ } catch (error) {
2930
+ return { error: true, value: error };
2931
+ }
2932
+ };
2933
+
2934
+
2935
+ /***/ }),
2936
+
2937
+ /***/ "./node_modules/core-js/internals/promise-resolve.js":
2938
+ /*!***********************************************************!*\
2939
+ !*** ./node_modules/core-js/internals/promise-resolve.js ***!
2940
+ \***********************************************************/
2941
+ /*! no static exports found */
2942
+ /***/ (function(module, exports, __webpack_require__) {
2943
+
2944
+ var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
2945
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
2946
+ var newPromiseCapability = __webpack_require__(/*! ../internals/new-promise-capability */ "./node_modules/core-js/internals/new-promise-capability.js");
2947
+
2948
+ module.exports = function (C, x) {
2949
+ anObject(C);
2950
+ if (isObject(x) && x.constructor === C) return x;
2951
+ var promiseCapability = newPromiseCapability.f(C);
2952
+ var resolve = promiseCapability.resolve;
2953
+ resolve(x);
2954
+ return promiseCapability.promise;
2955
+ };
2956
+
2957
+
2958
+ /***/ }),
2959
+
2960
+ /***/ "./node_modules/core-js/internals/redefine-all.js":
2961
+ /*!********************************************************!*\
2962
+ !*** ./node_modules/core-js/internals/redefine-all.js ***!
2963
+ \********************************************************/
2964
+ /*! no static exports found */
2965
+ /***/ (function(module, exports, __webpack_require__) {
2966
+
2967
+ var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
2968
+
2969
+ module.exports = function (target, src, options) {
2970
+ for (var key in src) redefine(target, key, src[key], options);
2971
+ return target;
2972
+ };
2973
+
2974
+
2636
2975
  /***/ }),
2637
2976
 
2638
2977
  /***/ "./node_modules/core-js/internals/redefine.js":
@@ -3178,6 +3517,124 @@ module.exports = {
3178
3517
  };
3179
3518
 
3180
3519
 
3520
+ /***/ }),
3521
+
3522
+ /***/ "./node_modules/core-js/internals/task.js":
3523
+ /*!************************************************!*\
3524
+ !*** ./node_modules/core-js/internals/task.js ***!
3525
+ \************************************************/
3526
+ /*! no static exports found */
3527
+ /***/ (function(module, exports, __webpack_require__) {
3528
+
3529
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
3530
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
3531
+ var bind = __webpack_require__(/*! ../internals/function-bind-context */ "./node_modules/core-js/internals/function-bind-context.js");
3532
+ var html = __webpack_require__(/*! ../internals/html */ "./node_modules/core-js/internals/html.js");
3533
+ var createElement = __webpack_require__(/*! ../internals/document-create-element */ "./node_modules/core-js/internals/document-create-element.js");
3534
+ var IS_IOS = __webpack_require__(/*! ../internals/engine-is-ios */ "./node_modules/core-js/internals/engine-is-ios.js");
3535
+ var IS_NODE = __webpack_require__(/*! ../internals/engine-is-node */ "./node_modules/core-js/internals/engine-is-node.js");
3536
+
3537
+ var location = global.location;
3538
+ var set = global.setImmediate;
3539
+ var clear = global.clearImmediate;
3540
+ var process = global.process;
3541
+ var MessageChannel = global.MessageChannel;
3542
+ var Dispatch = global.Dispatch;
3543
+ var counter = 0;
3544
+ var queue = {};
3545
+ var ONREADYSTATECHANGE = 'onreadystatechange';
3546
+ var defer, channel, port;
3547
+
3548
+ var run = function (id) {
3549
+ // eslint-disable-next-line no-prototype-builtins -- safe
3550
+ if (queue.hasOwnProperty(id)) {
3551
+ var fn = queue[id];
3552
+ delete queue[id];
3553
+ fn();
3554
+ }
3555
+ };
3556
+
3557
+ var runner = function (id) {
3558
+ return function () {
3559
+ run(id);
3560
+ };
3561
+ };
3562
+
3563
+ var listener = function (event) {
3564
+ run(event.data);
3565
+ };
3566
+
3567
+ var post = function (id) {
3568
+ // old engines have not location.origin
3569
+ global.postMessage(id + '', location.protocol + '//' + location.host);
3570
+ };
3571
+
3572
+ // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
3573
+ if (!set || !clear) {
3574
+ set = function setImmediate(fn) {
3575
+ var args = [];
3576
+ var i = 1;
3577
+ while (arguments.length > i) args.push(arguments[i++]);
3578
+ queue[++counter] = function () {
3579
+ // eslint-disable-next-line no-new-func -- spec requirement
3580
+ (typeof fn == 'function' ? fn : Function(fn)).apply(undefined, args);
3581
+ };
3582
+ defer(counter);
3583
+ return counter;
3584
+ };
3585
+ clear = function clearImmediate(id) {
3586
+ delete queue[id];
3587
+ };
3588
+ // Node.js 0.8-
3589
+ if (IS_NODE) {
3590
+ defer = function (id) {
3591
+ process.nextTick(runner(id));
3592
+ };
3593
+ // Sphere (JS game engine) Dispatch API
3594
+ } else if (Dispatch && Dispatch.now) {
3595
+ defer = function (id) {
3596
+ Dispatch.now(runner(id));
3597
+ };
3598
+ // Browsers with MessageChannel, includes WebWorkers
3599
+ // except iOS - https://github.com/zloirock/core-js/issues/624
3600
+ } else if (MessageChannel && !IS_IOS) {
3601
+ channel = new MessageChannel();
3602
+ port = channel.port2;
3603
+ channel.port1.onmessage = listener;
3604
+ defer = bind(port.postMessage, port, 1);
3605
+ // Browsers with postMessage, skip WebWorkers
3606
+ // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
3607
+ } else if (
3608
+ global.addEventListener &&
3609
+ typeof postMessage == 'function' &&
3610
+ !global.importScripts &&
3611
+ location && location.protocol !== 'file:' &&
3612
+ !fails(post)
3613
+ ) {
3614
+ defer = post;
3615
+ global.addEventListener('message', listener, false);
3616
+ // IE8-
3617
+ } else if (ONREADYSTATECHANGE in createElement('script')) {
3618
+ defer = function (id) {
3619
+ html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
3620
+ html.removeChild(this);
3621
+ run(id);
3622
+ };
3623
+ };
3624
+ // Rest old browsers
3625
+ } else {
3626
+ defer = function (id) {
3627
+ setTimeout(runner(id), 0);
3628
+ };
3629
+ }
3630
+ }
3631
+
3632
+ module.exports = {
3633
+ set: set,
3634
+ clear: clear
3635
+ };
3636
+
3637
+
3181
3638
  /***/ }),
3182
3639
 
3183
3640
  /***/ "./node_modules/core-js/internals/this-number-value.js":
@@ -4725,26 +5182,430 @@ $({ global: true, forced: parseInt != parseIntImplementation }, {
4725
5182
 
4726
5183
  /***/ }),
4727
5184
 
4728
- /***/ "./node_modules/core-js/modules/es.reflect.construct.js":
4729
- /*!**************************************************************!*\
4730
- !*** ./node_modules/core-js/modules/es.reflect.construct.js ***!
4731
- \**************************************************************/
5185
+ /***/ "./node_modules/core-js/modules/es.promise.js":
5186
+ /*!****************************************************!*\
5187
+ !*** ./node_modules/core-js/modules/es.promise.js ***!
5188
+ \****************************************************/
4732
5189
  /*! no static exports found */
4733
5190
  /***/ (function(module, exports, __webpack_require__) {
4734
5191
 
5192
+ "use strict";
5193
+
4735
5194
  var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
5195
+ var IS_PURE = __webpack_require__(/*! ../internals/is-pure */ "./node_modules/core-js/internals/is-pure.js");
5196
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
4736
5197
  var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
4737
- var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
4738
- var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
5198
+ var NativePromise = __webpack_require__(/*! ../internals/native-promise-constructor */ "./node_modules/core-js/internals/native-promise-constructor.js");
5199
+ var redefine = __webpack_require__(/*! ../internals/redefine */ "./node_modules/core-js/internals/redefine.js");
5200
+ var redefineAll = __webpack_require__(/*! ../internals/redefine-all */ "./node_modules/core-js/internals/redefine-all.js");
5201
+ var setPrototypeOf = __webpack_require__(/*! ../internals/object-set-prototype-of */ "./node_modules/core-js/internals/object-set-prototype-of.js");
5202
+ var setToStringTag = __webpack_require__(/*! ../internals/set-to-string-tag */ "./node_modules/core-js/internals/set-to-string-tag.js");
5203
+ var setSpecies = __webpack_require__(/*! ../internals/set-species */ "./node_modules/core-js/internals/set-species.js");
4739
5204
  var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
4740
- var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
4741
- var bind = __webpack_require__(/*! ../internals/function-bind */ "./node_modules/core-js/internals/function-bind.js");
4742
- var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
4743
-
4744
- var nativeConstruct = getBuiltIn('Reflect', 'construct');
5205
+ var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
5206
+ var anInstance = __webpack_require__(/*! ../internals/an-instance */ "./node_modules/core-js/internals/an-instance.js");
5207
+ var inspectSource = __webpack_require__(/*! ../internals/inspect-source */ "./node_modules/core-js/internals/inspect-source.js");
5208
+ var iterate = __webpack_require__(/*! ../internals/iterate */ "./node_modules/core-js/internals/iterate.js");
5209
+ var checkCorrectnessOfIteration = __webpack_require__(/*! ../internals/check-correctness-of-iteration */ "./node_modules/core-js/internals/check-correctness-of-iteration.js");
5210
+ var speciesConstructor = __webpack_require__(/*! ../internals/species-constructor */ "./node_modules/core-js/internals/species-constructor.js");
5211
+ var task = __webpack_require__(/*! ../internals/task */ "./node_modules/core-js/internals/task.js").set;
5212
+ var microtask = __webpack_require__(/*! ../internals/microtask */ "./node_modules/core-js/internals/microtask.js");
5213
+ var promiseResolve = __webpack_require__(/*! ../internals/promise-resolve */ "./node_modules/core-js/internals/promise-resolve.js");
5214
+ var hostReportErrors = __webpack_require__(/*! ../internals/host-report-errors */ "./node_modules/core-js/internals/host-report-errors.js");
5215
+ var newPromiseCapabilityModule = __webpack_require__(/*! ../internals/new-promise-capability */ "./node_modules/core-js/internals/new-promise-capability.js");
5216
+ var perform = __webpack_require__(/*! ../internals/perform */ "./node_modules/core-js/internals/perform.js");
5217
+ var InternalStateModule = __webpack_require__(/*! ../internals/internal-state */ "./node_modules/core-js/internals/internal-state.js");
5218
+ var isForced = __webpack_require__(/*! ../internals/is-forced */ "./node_modules/core-js/internals/is-forced.js");
5219
+ var wellKnownSymbol = __webpack_require__(/*! ../internals/well-known-symbol */ "./node_modules/core-js/internals/well-known-symbol.js");
5220
+ var IS_BROWSER = __webpack_require__(/*! ../internals/engine-is-browser */ "./node_modules/core-js/internals/engine-is-browser.js");
5221
+ var IS_NODE = __webpack_require__(/*! ../internals/engine-is-node */ "./node_modules/core-js/internals/engine-is-node.js");
5222
+ var V8_VERSION = __webpack_require__(/*! ../internals/engine-v8-version */ "./node_modules/core-js/internals/engine-v8-version.js");
4745
5223
 
4746
- // `Reflect.construct` method
4747
- // https://tc39.es/ecma262/#sec-reflect.construct
5224
+ var SPECIES = wellKnownSymbol('species');
5225
+ var PROMISE = 'Promise';
5226
+ var getInternalState = InternalStateModule.get;
5227
+ var setInternalState = InternalStateModule.set;
5228
+ var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
5229
+ var NativePromisePrototype = NativePromise && NativePromise.prototype;
5230
+ var PromiseConstructor = NativePromise;
5231
+ var PromiseConstructorPrototype = NativePromisePrototype;
5232
+ var TypeError = global.TypeError;
5233
+ var document = global.document;
5234
+ var process = global.process;
5235
+ var newPromiseCapability = newPromiseCapabilityModule.f;
5236
+ var newGenericPromiseCapability = newPromiseCapability;
5237
+ var DISPATCH_EVENT = !!(document && document.createEvent && global.dispatchEvent);
5238
+ var NATIVE_REJECTION_EVENT = typeof PromiseRejectionEvent == 'function';
5239
+ var UNHANDLED_REJECTION = 'unhandledrejection';
5240
+ var REJECTION_HANDLED = 'rejectionhandled';
5241
+ var PENDING = 0;
5242
+ var FULFILLED = 1;
5243
+ var REJECTED = 2;
5244
+ var HANDLED = 1;
5245
+ var UNHANDLED = 2;
5246
+ var SUBCLASSING = false;
5247
+ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
5248
+
5249
+ var FORCED = isForced(PROMISE, function () {
5250
+ var GLOBAL_CORE_JS_PROMISE = inspectSource(PromiseConstructor) !== String(PromiseConstructor);
5251
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
5252
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
5253
+ // We can't detect it synchronously, so just check versions
5254
+ if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
5255
+ // We need Promise#finally in the pure version for preventing prototype pollution
5256
+ if (IS_PURE && !PromiseConstructorPrototype['finally']) return true;
5257
+ // We can't use @@species feature detection in V8 since it causes
5258
+ // deoptimization and performance degradation
5259
+ // https://github.com/zloirock/core-js/issues/679
5260
+ if (V8_VERSION >= 51 && /native code/.test(PromiseConstructor)) return false;
5261
+ // Detect correctness of subclassing with @@species support
5262
+ var promise = new PromiseConstructor(function (resolve) { resolve(1); });
5263
+ var FakePromise = function (exec) {
5264
+ exec(function () { /* empty */ }, function () { /* empty */ });
5265
+ };
5266
+ var constructor = promise.constructor = {};
5267
+ constructor[SPECIES] = FakePromise;
5268
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
5269
+ if (!SUBCLASSING) return true;
5270
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
5271
+ return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT;
5272
+ });
5273
+
5274
+ var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
5275
+ PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
5276
+ });
5277
+
5278
+ // helpers
5279
+ var isThenable = function (it) {
5280
+ var then;
5281
+ return isObject(it) && typeof (then = it.then) == 'function' ? then : false;
5282
+ };
5283
+
5284
+ var notify = function (state, isReject) {
5285
+ if (state.notified) return;
5286
+ state.notified = true;
5287
+ var chain = state.reactions;
5288
+ microtask(function () {
5289
+ var value = state.value;
5290
+ var ok = state.state == FULFILLED;
5291
+ var index = 0;
5292
+ // variable length - can't use forEach
5293
+ while (chain.length > index) {
5294
+ var reaction = chain[index++];
5295
+ var handler = ok ? reaction.ok : reaction.fail;
5296
+ var resolve = reaction.resolve;
5297
+ var reject = reaction.reject;
5298
+ var domain = reaction.domain;
5299
+ var result, then, exited;
5300
+ try {
5301
+ if (handler) {
5302
+ if (!ok) {
5303
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
5304
+ state.rejection = HANDLED;
5305
+ }
5306
+ if (handler === true) result = value;
5307
+ else {
5308
+ if (domain) domain.enter();
5309
+ result = handler(value); // can throw
5310
+ if (domain) {
5311
+ domain.exit();
5312
+ exited = true;
5313
+ }
5314
+ }
5315
+ if (result === reaction.promise) {
5316
+ reject(TypeError('Promise-chain cycle'));
5317
+ } else if (then = isThenable(result)) {
5318
+ then.call(result, resolve, reject);
5319
+ } else resolve(result);
5320
+ } else reject(value);
5321
+ } catch (error) {
5322
+ if (domain && !exited) domain.exit();
5323
+ reject(error);
5324
+ }
5325
+ }
5326
+ state.reactions = [];
5327
+ state.notified = false;
5328
+ if (isReject && !state.rejection) onUnhandled(state);
5329
+ });
5330
+ };
5331
+
5332
+ var dispatchEvent = function (name, promise, reason) {
5333
+ var event, handler;
5334
+ if (DISPATCH_EVENT) {
5335
+ event = document.createEvent('Event');
5336
+ event.promise = promise;
5337
+ event.reason = reason;
5338
+ event.initEvent(name, false, true);
5339
+ global.dispatchEvent(event);
5340
+ } else event = { promise: promise, reason: reason };
5341
+ if (!NATIVE_REJECTION_EVENT && (handler = global['on' + name])) handler(event);
5342
+ else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
5343
+ };
5344
+
5345
+ var onUnhandled = function (state) {
5346
+ task.call(global, function () {
5347
+ var promise = state.facade;
5348
+ var value = state.value;
5349
+ var IS_UNHANDLED = isUnhandled(state);
5350
+ var result;
5351
+ if (IS_UNHANDLED) {
5352
+ result = perform(function () {
5353
+ if (IS_NODE) {
5354
+ process.emit('unhandledRejection', value, promise);
5355
+ } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
5356
+ });
5357
+ // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
5358
+ state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
5359
+ if (result.error) throw result.value;
5360
+ }
5361
+ });
5362
+ };
5363
+
5364
+ var isUnhandled = function (state) {
5365
+ return state.rejection !== HANDLED && !state.parent;
5366
+ };
5367
+
5368
+ var onHandleUnhandled = function (state) {
5369
+ task.call(global, function () {
5370
+ var promise = state.facade;
5371
+ if (IS_NODE) {
5372
+ process.emit('rejectionHandled', promise);
5373
+ } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
5374
+ });
5375
+ };
5376
+
5377
+ var bind = function (fn, state, unwrap) {
5378
+ return function (value) {
5379
+ fn(state, value, unwrap);
5380
+ };
5381
+ };
5382
+
5383
+ var internalReject = function (state, value, unwrap) {
5384
+ if (state.done) return;
5385
+ state.done = true;
5386
+ if (unwrap) state = unwrap;
5387
+ state.value = value;
5388
+ state.state = REJECTED;
5389
+ notify(state, true);
5390
+ };
5391
+
5392
+ var internalResolve = function (state, value, unwrap) {
5393
+ if (state.done) return;
5394
+ state.done = true;
5395
+ if (unwrap) state = unwrap;
5396
+ try {
5397
+ if (state.facade === value) throw TypeError("Promise can't be resolved itself");
5398
+ var then = isThenable(value);
5399
+ if (then) {
5400
+ microtask(function () {
5401
+ var wrapper = { done: false };
5402
+ try {
5403
+ then.call(value,
5404
+ bind(internalResolve, wrapper, state),
5405
+ bind(internalReject, wrapper, state)
5406
+ );
5407
+ } catch (error) {
5408
+ internalReject(wrapper, error, state);
5409
+ }
5410
+ });
5411
+ } else {
5412
+ state.value = value;
5413
+ state.state = FULFILLED;
5414
+ notify(state, false);
5415
+ }
5416
+ } catch (error) {
5417
+ internalReject({ done: false }, error, state);
5418
+ }
5419
+ };
5420
+
5421
+ // constructor polyfill
5422
+ if (FORCED) {
5423
+ // 25.4.3.1 Promise(executor)
5424
+ PromiseConstructor = function Promise(executor) {
5425
+ anInstance(this, PromiseConstructor, PROMISE);
5426
+ aFunction(executor);
5427
+ Internal.call(this);
5428
+ var state = getInternalState(this);
5429
+ try {
5430
+ executor(bind(internalResolve, state), bind(internalReject, state));
5431
+ } catch (error) {
5432
+ internalReject(state, error);
5433
+ }
5434
+ };
5435
+ PromiseConstructorPrototype = PromiseConstructor.prototype;
5436
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
5437
+ Internal = function Promise(executor) {
5438
+ setInternalState(this, {
5439
+ type: PROMISE,
5440
+ done: false,
5441
+ notified: false,
5442
+ parent: false,
5443
+ reactions: [],
5444
+ rejection: false,
5445
+ state: PENDING,
5446
+ value: undefined
5447
+ });
5448
+ };
5449
+ Internal.prototype = redefineAll(PromiseConstructorPrototype, {
5450
+ // `Promise.prototype.then` method
5451
+ // https://tc39.es/ecma262/#sec-promise.prototype.then
5452
+ then: function then(onFulfilled, onRejected) {
5453
+ var state = getInternalPromiseState(this);
5454
+ var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
5455
+ reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;
5456
+ reaction.fail = typeof onRejected == 'function' && onRejected;
5457
+ reaction.domain = IS_NODE ? process.domain : undefined;
5458
+ state.parent = true;
5459
+ state.reactions.push(reaction);
5460
+ if (state.state != PENDING) notify(state, false);
5461
+ return reaction.promise;
5462
+ },
5463
+ // `Promise.prototype.catch` method
5464
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
5465
+ 'catch': function (onRejected) {
5466
+ return this.then(undefined, onRejected);
5467
+ }
5468
+ });
5469
+ OwnPromiseCapability = function () {
5470
+ var promise = new Internal();
5471
+ var state = getInternalState(promise);
5472
+ this.promise = promise;
5473
+ this.resolve = bind(internalResolve, state);
5474
+ this.reject = bind(internalReject, state);
5475
+ };
5476
+ newPromiseCapabilityModule.f = newPromiseCapability = function (C) {
5477
+ return C === PromiseConstructor || C === PromiseWrapper
5478
+ ? new OwnPromiseCapability(C)
5479
+ : newGenericPromiseCapability(C);
5480
+ };
5481
+
5482
+ if (!IS_PURE && typeof NativePromise == 'function' && NativePromisePrototype !== Object.prototype) {
5483
+ nativeThen = NativePromisePrototype.then;
5484
+
5485
+ if (!SUBCLASSING) {
5486
+ // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
5487
+ redefine(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) {
5488
+ var that = this;
5489
+ return new PromiseConstructor(function (resolve, reject) {
5490
+ nativeThen.call(that, resolve, reject);
5491
+ }).then(onFulfilled, onRejected);
5492
+ // https://github.com/zloirock/core-js/issues/640
5493
+ }, { unsafe: true });
5494
+
5495
+ // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
5496
+ redefine(NativePromisePrototype, 'catch', PromiseConstructorPrototype['catch'], { unsafe: true });
5497
+ }
5498
+
5499
+ // make `.constructor === Promise` work for native promise-based APIs
5500
+ try {
5501
+ delete NativePromisePrototype.constructor;
5502
+ } catch (error) { /* empty */ }
5503
+
5504
+ // make `instanceof Promise` work for native promise-based APIs
5505
+ if (setPrototypeOf) {
5506
+ setPrototypeOf(NativePromisePrototype, PromiseConstructorPrototype);
5507
+ }
5508
+ }
5509
+ }
5510
+
5511
+ $({ global: true, wrap: true, forced: FORCED }, {
5512
+ Promise: PromiseConstructor
5513
+ });
5514
+
5515
+ setToStringTag(PromiseConstructor, PROMISE, false, true);
5516
+ setSpecies(PROMISE);
5517
+
5518
+ PromiseWrapper = getBuiltIn(PROMISE);
5519
+
5520
+ // statics
5521
+ $({ target: PROMISE, stat: true, forced: FORCED }, {
5522
+ // `Promise.reject` method
5523
+ // https://tc39.es/ecma262/#sec-promise.reject
5524
+ reject: function reject(r) {
5525
+ var capability = newPromiseCapability(this);
5526
+ capability.reject.call(undefined, r);
5527
+ return capability.promise;
5528
+ }
5529
+ });
5530
+
5531
+ $({ target: PROMISE, stat: true, forced: IS_PURE || FORCED }, {
5532
+ // `Promise.resolve` method
5533
+ // https://tc39.es/ecma262/#sec-promise.resolve
5534
+ resolve: function resolve(x) {
5535
+ return promiseResolve(IS_PURE && this === PromiseWrapper ? PromiseConstructor : this, x);
5536
+ }
5537
+ });
5538
+
5539
+ $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
5540
+ // `Promise.all` method
5541
+ // https://tc39.es/ecma262/#sec-promise.all
5542
+ all: function all(iterable) {
5543
+ var C = this;
5544
+ var capability = newPromiseCapability(C);
5545
+ var resolve = capability.resolve;
5546
+ var reject = capability.reject;
5547
+ var result = perform(function () {
5548
+ var $promiseResolve = aFunction(C.resolve);
5549
+ var values = [];
5550
+ var counter = 0;
5551
+ var remaining = 1;
5552
+ iterate(iterable, function (promise) {
5553
+ var index = counter++;
5554
+ var alreadyCalled = false;
5555
+ values.push(undefined);
5556
+ remaining++;
5557
+ $promiseResolve.call(C, promise).then(function (value) {
5558
+ if (alreadyCalled) return;
5559
+ alreadyCalled = true;
5560
+ values[index] = value;
5561
+ --remaining || resolve(values);
5562
+ }, reject);
5563
+ });
5564
+ --remaining || resolve(values);
5565
+ });
5566
+ if (result.error) reject(result.value);
5567
+ return capability.promise;
5568
+ },
5569
+ // `Promise.race` method
5570
+ // https://tc39.es/ecma262/#sec-promise.race
5571
+ race: function race(iterable) {
5572
+ var C = this;
5573
+ var capability = newPromiseCapability(C);
5574
+ var reject = capability.reject;
5575
+ var result = perform(function () {
5576
+ var $promiseResolve = aFunction(C.resolve);
5577
+ iterate(iterable, function (promise) {
5578
+ $promiseResolve.call(C, promise).then(capability.resolve, reject);
5579
+ });
5580
+ });
5581
+ if (result.error) reject(result.value);
5582
+ return capability.promise;
5583
+ }
5584
+ });
5585
+
5586
+
5587
+ /***/ }),
5588
+
5589
+ /***/ "./node_modules/core-js/modules/es.reflect.construct.js":
5590
+ /*!**************************************************************!*\
5591
+ !*** ./node_modules/core-js/modules/es.reflect.construct.js ***!
5592
+ \**************************************************************/
5593
+ /*! no static exports found */
5594
+ /***/ (function(module, exports, __webpack_require__) {
5595
+
5596
+ var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
5597
+ var getBuiltIn = __webpack_require__(/*! ../internals/get-built-in */ "./node_modules/core-js/internals/get-built-in.js");
5598
+ var aFunction = __webpack_require__(/*! ../internals/a-function */ "./node_modules/core-js/internals/a-function.js");
5599
+ var anObject = __webpack_require__(/*! ../internals/an-object */ "./node_modules/core-js/internals/an-object.js");
5600
+ var isObject = __webpack_require__(/*! ../internals/is-object */ "./node_modules/core-js/internals/is-object.js");
5601
+ var create = __webpack_require__(/*! ../internals/object-create */ "./node_modules/core-js/internals/object-create.js");
5602
+ var bind = __webpack_require__(/*! ../internals/function-bind */ "./node_modules/core-js/internals/function-bind.js");
5603
+ var fails = __webpack_require__(/*! ../internals/fails */ "./node_modules/core-js/internals/fails.js");
5604
+
5605
+ var nativeConstruct = getBuiltIn('Reflect', 'construct');
5606
+
5607
+ // `Reflect.construct` method
5608
+ // https://tc39.es/ecma262/#sec-reflect.construct
4748
5609
  // MS Edge supports only 2 arguments and argumentsList argument is optional
4749
5610
  // FF Nightly sets third argument as `new.target`, but does not create `this` from it
4750
5611
  var NEW_TARGET_BUG = fails(function () {
@@ -5895,43 +6756,802 @@ for (var COLLECTION_NAME in DOMIterables) {
5895
6756
  }
5896
6757
 
5897
6758
 
5898
- /***/ }),
6759
+ /***/ }),
6760
+
6761
+ /***/ "./node_modules/core-js/modules/web.timers.js":
6762
+ /*!****************************************************!*\
6763
+ !*** ./node_modules/core-js/modules/web.timers.js ***!
6764
+ \****************************************************/
6765
+ /*! no static exports found */
6766
+ /***/ (function(module, exports, __webpack_require__) {
6767
+
6768
+ var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
6769
+ var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
6770
+ var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
6771
+
6772
+ var slice = [].slice;
6773
+ var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
6774
+
6775
+ var wrap = function (scheduler) {
6776
+ return function (handler, timeout /* , ...arguments */) {
6777
+ var boundArgs = arguments.length > 2;
6778
+ var args = boundArgs ? slice.call(arguments, 2) : undefined;
6779
+ return scheduler(boundArgs ? function () {
6780
+ // eslint-disable-next-line no-new-func -- spec requirement
6781
+ (typeof handler == 'function' ? handler : Function(handler)).apply(this, args);
6782
+ } : handler, timeout);
6783
+ };
6784
+ };
6785
+
6786
+ // ie9- setTimeout & setInterval additional parameters fix
6787
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
6788
+ $({ global: true, bind: true, forced: MSIE }, {
6789
+ // `setTimeout` method
6790
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
6791
+ setTimeout: wrap(global.setTimeout),
6792
+ // `setInterval` method
6793
+ // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
6794
+ setInterval: wrap(global.setInterval)
6795
+ });
6796
+
6797
+
6798
+ /***/ }),
6799
+
6800
+ /***/ "./node_modules/regenerator-runtime/runtime.js":
6801
+ /*!*****************************************************!*\
6802
+ !*** ./node_modules/regenerator-runtime/runtime.js ***!
6803
+ \*****************************************************/
6804
+ /*! no static exports found */
6805
+ /***/ (function(module, exports, __webpack_require__) {
6806
+
6807
+ /**
6808
+ * Copyright (c) 2014-present, Facebook, Inc.
6809
+ *
6810
+ * This source code is licensed under the MIT license found in the
6811
+ * LICENSE file in the root directory of this source tree.
6812
+ */
6813
+
6814
+ var runtime = (function (exports) {
6815
+ "use strict";
6816
+
6817
+ var Op = Object.prototype;
6818
+ var hasOwn = Op.hasOwnProperty;
6819
+ var undefined; // More compressible than void 0.
6820
+ var $Symbol = typeof Symbol === "function" ? Symbol : {};
6821
+ var iteratorSymbol = $Symbol.iterator || "@@iterator";
6822
+ var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
6823
+ var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
6824
+
6825
+ function define(obj, key, value) {
6826
+ Object.defineProperty(obj, key, {
6827
+ value: value,
6828
+ enumerable: true,
6829
+ configurable: true,
6830
+ writable: true
6831
+ });
6832
+ return obj[key];
6833
+ }
6834
+ try {
6835
+ // IE 8 has a broken Object.defineProperty that only works on DOM objects.
6836
+ define({}, "");
6837
+ } catch (err) {
6838
+ define = function(obj, key, value) {
6839
+ return obj[key] = value;
6840
+ };
6841
+ }
6842
+
6843
+ function wrap(innerFn, outerFn, self, tryLocsList) {
6844
+ // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
6845
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
6846
+ var generator = Object.create(protoGenerator.prototype);
6847
+ var context = new Context(tryLocsList || []);
6848
+
6849
+ // The ._invoke method unifies the implementations of the .next,
6850
+ // .throw, and .return methods.
6851
+ generator._invoke = makeInvokeMethod(innerFn, self, context);
6852
+
6853
+ return generator;
6854
+ }
6855
+ exports.wrap = wrap;
6856
+
6857
+ // Try/catch helper to minimize deoptimizations. Returns a completion
6858
+ // record like context.tryEntries[i].completion. This interface could
6859
+ // have been (and was previously) designed to take a closure to be
6860
+ // invoked without arguments, but in all the cases we care about we
6861
+ // already have an existing method we want to call, so there's no need
6862
+ // to create a new function object. We can even get away with assuming
6863
+ // the method takes exactly one argument, since that happens to be true
6864
+ // in every case, so we don't have to touch the arguments object. The
6865
+ // only additional allocation required is the completion record, which
6866
+ // has a stable shape and so hopefully should be cheap to allocate.
6867
+ function tryCatch(fn, obj, arg) {
6868
+ try {
6869
+ return { type: "normal", arg: fn.call(obj, arg) };
6870
+ } catch (err) {
6871
+ return { type: "throw", arg: err };
6872
+ }
6873
+ }
6874
+
6875
+ var GenStateSuspendedStart = "suspendedStart";
6876
+ var GenStateSuspendedYield = "suspendedYield";
6877
+ var GenStateExecuting = "executing";
6878
+ var GenStateCompleted = "completed";
6879
+
6880
+ // Returning this object from the innerFn has the same effect as
6881
+ // breaking out of the dispatch switch statement.
6882
+ var ContinueSentinel = {};
6883
+
6884
+ // Dummy constructor functions that we use as the .constructor and
6885
+ // .constructor.prototype properties for functions that return Generator
6886
+ // objects. For full spec compliance, you may wish to configure your
6887
+ // minifier not to mangle the names of these two functions.
6888
+ function Generator() {}
6889
+ function GeneratorFunction() {}
6890
+ function GeneratorFunctionPrototype() {}
6891
+
6892
+ // This is a polyfill for %IteratorPrototype% for environments that
6893
+ // don't natively support it.
6894
+ var IteratorPrototype = {};
6895
+ IteratorPrototype[iteratorSymbol] = function () {
6896
+ return this;
6897
+ };
6898
+
6899
+ var getProto = Object.getPrototypeOf;
6900
+ var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
6901
+ if (NativeIteratorPrototype &&
6902
+ NativeIteratorPrototype !== Op &&
6903
+ hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
6904
+ // This environment has a native %IteratorPrototype%; use it instead
6905
+ // of the polyfill.
6906
+ IteratorPrototype = NativeIteratorPrototype;
6907
+ }
6908
+
6909
+ var Gp = GeneratorFunctionPrototype.prototype =
6910
+ Generator.prototype = Object.create(IteratorPrototype);
6911
+ GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
6912
+ GeneratorFunctionPrototype.constructor = GeneratorFunction;
6913
+ GeneratorFunction.displayName = define(
6914
+ GeneratorFunctionPrototype,
6915
+ toStringTagSymbol,
6916
+ "GeneratorFunction"
6917
+ );
6918
+
6919
+ // Helper for defining the .next, .throw, and .return methods of the
6920
+ // Iterator interface in terms of a single ._invoke method.
6921
+ function defineIteratorMethods(prototype) {
6922
+ ["next", "throw", "return"].forEach(function(method) {
6923
+ define(prototype, method, function(arg) {
6924
+ return this._invoke(method, arg);
6925
+ });
6926
+ });
6927
+ }
6928
+
6929
+ exports.isGeneratorFunction = function(genFun) {
6930
+ var ctor = typeof genFun === "function" && genFun.constructor;
6931
+ return ctor
6932
+ ? ctor === GeneratorFunction ||
6933
+ // For the native GeneratorFunction constructor, the best we can
6934
+ // do is to check its .name property.
6935
+ (ctor.displayName || ctor.name) === "GeneratorFunction"
6936
+ : false;
6937
+ };
6938
+
6939
+ exports.mark = function(genFun) {
6940
+ if (Object.setPrototypeOf) {
6941
+ Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
6942
+ } else {
6943
+ genFun.__proto__ = GeneratorFunctionPrototype;
6944
+ define(genFun, toStringTagSymbol, "GeneratorFunction");
6945
+ }
6946
+ genFun.prototype = Object.create(Gp);
6947
+ return genFun;
6948
+ };
6949
+
6950
+ // Within the body of any async function, `await x` is transformed to
6951
+ // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
6952
+ // `hasOwn.call(value, "__await")` to determine if the yielded value is
6953
+ // meant to be awaited.
6954
+ exports.awrap = function(arg) {
6955
+ return { __await: arg };
6956
+ };
6957
+
6958
+ function AsyncIterator(generator, PromiseImpl) {
6959
+ function invoke(method, arg, resolve, reject) {
6960
+ var record = tryCatch(generator[method], generator, arg);
6961
+ if (record.type === "throw") {
6962
+ reject(record.arg);
6963
+ } else {
6964
+ var result = record.arg;
6965
+ var value = result.value;
6966
+ if (value &&
6967
+ typeof value === "object" &&
6968
+ hasOwn.call(value, "__await")) {
6969
+ return PromiseImpl.resolve(value.__await).then(function(value) {
6970
+ invoke("next", value, resolve, reject);
6971
+ }, function(err) {
6972
+ invoke("throw", err, resolve, reject);
6973
+ });
6974
+ }
6975
+
6976
+ return PromiseImpl.resolve(value).then(function(unwrapped) {
6977
+ // When a yielded Promise is resolved, its final value becomes
6978
+ // the .value of the Promise<{value,done}> result for the
6979
+ // current iteration.
6980
+ result.value = unwrapped;
6981
+ resolve(result);
6982
+ }, function(error) {
6983
+ // If a rejected Promise was yielded, throw the rejection back
6984
+ // into the async generator function so it can be handled there.
6985
+ return invoke("throw", error, resolve, reject);
6986
+ });
6987
+ }
6988
+ }
6989
+
6990
+ var previousPromise;
6991
+
6992
+ function enqueue(method, arg) {
6993
+ function callInvokeWithMethodAndArg() {
6994
+ return new PromiseImpl(function(resolve, reject) {
6995
+ invoke(method, arg, resolve, reject);
6996
+ });
6997
+ }
6998
+
6999
+ return previousPromise =
7000
+ // If enqueue has been called before, then we want to wait until
7001
+ // all previous Promises have been resolved before calling invoke,
7002
+ // so that results are always delivered in the correct order. If
7003
+ // enqueue has not been called before, then it is important to
7004
+ // call invoke immediately, without waiting on a callback to fire,
7005
+ // so that the async generator function has the opportunity to do
7006
+ // any necessary setup in a predictable way. This predictability
7007
+ // is why the Promise constructor synchronously invokes its
7008
+ // executor callback, and why async functions synchronously
7009
+ // execute code before the first await. Since we implement simple
7010
+ // async functions in terms of async generators, it is especially
7011
+ // important to get this right, even though it requires care.
7012
+ previousPromise ? previousPromise.then(
7013
+ callInvokeWithMethodAndArg,
7014
+ // Avoid propagating failures to Promises returned by later
7015
+ // invocations of the iterator.
7016
+ callInvokeWithMethodAndArg
7017
+ ) : callInvokeWithMethodAndArg();
7018
+ }
7019
+
7020
+ // Define the unified helper method that is used to implement .next,
7021
+ // .throw, and .return (see defineIteratorMethods).
7022
+ this._invoke = enqueue;
7023
+ }
7024
+
7025
+ defineIteratorMethods(AsyncIterator.prototype);
7026
+ AsyncIterator.prototype[asyncIteratorSymbol] = function () {
7027
+ return this;
7028
+ };
7029
+ exports.AsyncIterator = AsyncIterator;
7030
+
7031
+ // Note that simple async functions are implemented on top of
7032
+ // AsyncIterator objects; they just return a Promise for the value of
7033
+ // the final result produced by the iterator.
7034
+ exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
7035
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
7036
+
7037
+ var iter = new AsyncIterator(
7038
+ wrap(innerFn, outerFn, self, tryLocsList),
7039
+ PromiseImpl
7040
+ );
7041
+
7042
+ return exports.isGeneratorFunction(outerFn)
7043
+ ? iter // If outerFn is a generator, return the full iterator.
7044
+ : iter.next().then(function(result) {
7045
+ return result.done ? result.value : iter.next();
7046
+ });
7047
+ };
7048
+
7049
+ function makeInvokeMethod(innerFn, self, context) {
7050
+ var state = GenStateSuspendedStart;
7051
+
7052
+ return function invoke(method, arg) {
7053
+ if (state === GenStateExecuting) {
7054
+ throw new Error("Generator is already running");
7055
+ }
7056
+
7057
+ if (state === GenStateCompleted) {
7058
+ if (method === "throw") {
7059
+ throw arg;
7060
+ }
7061
+
7062
+ // Be forgiving, per 25.3.3.3.3 of the spec:
7063
+ // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
7064
+ return doneResult();
7065
+ }
7066
+
7067
+ context.method = method;
7068
+ context.arg = arg;
7069
+
7070
+ while (true) {
7071
+ var delegate = context.delegate;
7072
+ if (delegate) {
7073
+ var delegateResult = maybeInvokeDelegate(delegate, context);
7074
+ if (delegateResult) {
7075
+ if (delegateResult === ContinueSentinel) continue;
7076
+ return delegateResult;
7077
+ }
7078
+ }
7079
+
7080
+ if (context.method === "next") {
7081
+ // Setting context._sent for legacy support of Babel's
7082
+ // function.sent implementation.
7083
+ context.sent = context._sent = context.arg;
7084
+
7085
+ } else if (context.method === "throw") {
7086
+ if (state === GenStateSuspendedStart) {
7087
+ state = GenStateCompleted;
7088
+ throw context.arg;
7089
+ }
7090
+
7091
+ context.dispatchException(context.arg);
7092
+
7093
+ } else if (context.method === "return") {
7094
+ context.abrupt("return", context.arg);
7095
+ }
7096
+
7097
+ state = GenStateExecuting;
7098
+
7099
+ var record = tryCatch(innerFn, self, context);
7100
+ if (record.type === "normal") {
7101
+ // If an exception is thrown from innerFn, we leave state ===
7102
+ // GenStateExecuting and loop back for another invocation.
7103
+ state = context.done
7104
+ ? GenStateCompleted
7105
+ : GenStateSuspendedYield;
7106
+
7107
+ if (record.arg === ContinueSentinel) {
7108
+ continue;
7109
+ }
7110
+
7111
+ return {
7112
+ value: record.arg,
7113
+ done: context.done
7114
+ };
7115
+
7116
+ } else if (record.type === "throw") {
7117
+ state = GenStateCompleted;
7118
+ // Dispatch the exception by looping back around to the
7119
+ // context.dispatchException(context.arg) call above.
7120
+ context.method = "throw";
7121
+ context.arg = record.arg;
7122
+ }
7123
+ }
7124
+ };
7125
+ }
7126
+
7127
+ // Call delegate.iterator[context.method](context.arg) and handle the
7128
+ // result, either by returning a { value, done } result from the
7129
+ // delegate iterator, or by modifying context.method and context.arg,
7130
+ // setting context.delegate to null, and returning the ContinueSentinel.
7131
+ function maybeInvokeDelegate(delegate, context) {
7132
+ var method = delegate.iterator[context.method];
7133
+ if (method === undefined) {
7134
+ // A .throw or .return when the delegate iterator has no .throw
7135
+ // method always terminates the yield* loop.
7136
+ context.delegate = null;
7137
+
7138
+ if (context.method === "throw") {
7139
+ // Note: ["return"] must be used for ES3 parsing compatibility.
7140
+ if (delegate.iterator["return"]) {
7141
+ // If the delegate iterator has a return method, give it a
7142
+ // chance to clean up.
7143
+ context.method = "return";
7144
+ context.arg = undefined;
7145
+ maybeInvokeDelegate(delegate, context);
7146
+
7147
+ if (context.method === "throw") {
7148
+ // If maybeInvokeDelegate(context) changed context.method from
7149
+ // "return" to "throw", let that override the TypeError below.
7150
+ return ContinueSentinel;
7151
+ }
7152
+ }
7153
+
7154
+ context.method = "throw";
7155
+ context.arg = new TypeError(
7156
+ "The iterator does not provide a 'throw' method");
7157
+ }
7158
+
7159
+ return ContinueSentinel;
7160
+ }
7161
+
7162
+ var record = tryCatch(method, delegate.iterator, context.arg);
7163
+
7164
+ if (record.type === "throw") {
7165
+ context.method = "throw";
7166
+ context.arg = record.arg;
7167
+ context.delegate = null;
7168
+ return ContinueSentinel;
7169
+ }
7170
+
7171
+ var info = record.arg;
7172
+
7173
+ if (! info) {
7174
+ context.method = "throw";
7175
+ context.arg = new TypeError("iterator result is not an object");
7176
+ context.delegate = null;
7177
+ return ContinueSentinel;
7178
+ }
7179
+
7180
+ if (info.done) {
7181
+ // Assign the result of the finished delegate to the temporary
7182
+ // variable specified by delegate.resultName (see delegateYield).
7183
+ context[delegate.resultName] = info.value;
7184
+
7185
+ // Resume execution at the desired location (see delegateYield).
7186
+ context.next = delegate.nextLoc;
7187
+
7188
+ // If context.method was "throw" but the delegate handled the
7189
+ // exception, let the outer generator proceed normally. If
7190
+ // context.method was "next", forget context.arg since it has been
7191
+ // "consumed" by the delegate iterator. If context.method was
7192
+ // "return", allow the original .return call to continue in the
7193
+ // outer generator.
7194
+ if (context.method !== "return") {
7195
+ context.method = "next";
7196
+ context.arg = undefined;
7197
+ }
7198
+
7199
+ } else {
7200
+ // Re-yield the result returned by the delegate method.
7201
+ return info;
7202
+ }
7203
+
7204
+ // The delegate iterator is finished, so forget it and continue with
7205
+ // the outer generator.
7206
+ context.delegate = null;
7207
+ return ContinueSentinel;
7208
+ }
7209
+
7210
+ // Define Generator.prototype.{next,throw,return} in terms of the
7211
+ // unified ._invoke helper method.
7212
+ defineIteratorMethods(Gp);
7213
+
7214
+ define(Gp, toStringTagSymbol, "Generator");
7215
+
7216
+ // A Generator should always return itself as the iterator object when the
7217
+ // @@iterator function is called on it. Some browsers' implementations of the
7218
+ // iterator prototype chain incorrectly implement this, causing the Generator
7219
+ // object to not be returned from this call. This ensures that doesn't happen.
7220
+ // See https://github.com/facebook/regenerator/issues/274 for more details.
7221
+ Gp[iteratorSymbol] = function() {
7222
+ return this;
7223
+ };
7224
+
7225
+ Gp.toString = function() {
7226
+ return "[object Generator]";
7227
+ };
7228
+
7229
+ function pushTryEntry(locs) {
7230
+ var entry = { tryLoc: locs[0] };
7231
+
7232
+ if (1 in locs) {
7233
+ entry.catchLoc = locs[1];
7234
+ }
7235
+
7236
+ if (2 in locs) {
7237
+ entry.finallyLoc = locs[2];
7238
+ entry.afterLoc = locs[3];
7239
+ }
7240
+
7241
+ this.tryEntries.push(entry);
7242
+ }
7243
+
7244
+ function resetTryEntry(entry) {
7245
+ var record = entry.completion || {};
7246
+ record.type = "normal";
7247
+ delete record.arg;
7248
+ entry.completion = record;
7249
+ }
7250
+
7251
+ function Context(tryLocsList) {
7252
+ // The root entry object (effectively a try statement without a catch
7253
+ // or a finally block) gives us a place to store values thrown from
7254
+ // locations where there is no enclosing try statement.
7255
+ this.tryEntries = [{ tryLoc: "root" }];
7256
+ tryLocsList.forEach(pushTryEntry, this);
7257
+ this.reset(true);
7258
+ }
7259
+
7260
+ exports.keys = function(object) {
7261
+ var keys = [];
7262
+ for (var key in object) {
7263
+ keys.push(key);
7264
+ }
7265
+ keys.reverse();
7266
+
7267
+ // Rather than returning an object with a next method, we keep
7268
+ // things simple and return the next function itself.
7269
+ return function next() {
7270
+ while (keys.length) {
7271
+ var key = keys.pop();
7272
+ if (key in object) {
7273
+ next.value = key;
7274
+ next.done = false;
7275
+ return next;
7276
+ }
7277
+ }
7278
+
7279
+ // To avoid creating an additional object, we just hang the .value
7280
+ // and .done properties off the next function object itself. This
7281
+ // also ensures that the minifier will not anonymize the function.
7282
+ next.done = true;
7283
+ return next;
7284
+ };
7285
+ };
7286
+
7287
+ function values(iterable) {
7288
+ if (iterable) {
7289
+ var iteratorMethod = iterable[iteratorSymbol];
7290
+ if (iteratorMethod) {
7291
+ return iteratorMethod.call(iterable);
7292
+ }
7293
+
7294
+ if (typeof iterable.next === "function") {
7295
+ return iterable;
7296
+ }
7297
+
7298
+ if (!isNaN(iterable.length)) {
7299
+ var i = -1, next = function next() {
7300
+ while (++i < iterable.length) {
7301
+ if (hasOwn.call(iterable, i)) {
7302
+ next.value = iterable[i];
7303
+ next.done = false;
7304
+ return next;
7305
+ }
7306
+ }
7307
+
7308
+ next.value = undefined;
7309
+ next.done = true;
7310
+
7311
+ return next;
7312
+ };
7313
+
7314
+ return next.next = next;
7315
+ }
7316
+ }
7317
+
7318
+ // Return an iterator with no values.
7319
+ return { next: doneResult };
7320
+ }
7321
+ exports.values = values;
7322
+
7323
+ function doneResult() {
7324
+ return { value: undefined, done: true };
7325
+ }
7326
+
7327
+ Context.prototype = {
7328
+ constructor: Context,
7329
+
7330
+ reset: function(skipTempReset) {
7331
+ this.prev = 0;
7332
+ this.next = 0;
7333
+ // Resetting context._sent for legacy support of Babel's
7334
+ // function.sent implementation.
7335
+ this.sent = this._sent = undefined;
7336
+ this.done = false;
7337
+ this.delegate = null;
7338
+
7339
+ this.method = "next";
7340
+ this.arg = undefined;
7341
+
7342
+ this.tryEntries.forEach(resetTryEntry);
7343
+
7344
+ if (!skipTempReset) {
7345
+ for (var name in this) {
7346
+ // Not sure about the optimal order of these conditions:
7347
+ if (name.charAt(0) === "t" &&
7348
+ hasOwn.call(this, name) &&
7349
+ !isNaN(+name.slice(1))) {
7350
+ this[name] = undefined;
7351
+ }
7352
+ }
7353
+ }
7354
+ },
7355
+
7356
+ stop: function() {
7357
+ this.done = true;
7358
+
7359
+ var rootEntry = this.tryEntries[0];
7360
+ var rootRecord = rootEntry.completion;
7361
+ if (rootRecord.type === "throw") {
7362
+ throw rootRecord.arg;
7363
+ }
7364
+
7365
+ return this.rval;
7366
+ },
7367
+
7368
+ dispatchException: function(exception) {
7369
+ if (this.done) {
7370
+ throw exception;
7371
+ }
7372
+
7373
+ var context = this;
7374
+ function handle(loc, caught) {
7375
+ record.type = "throw";
7376
+ record.arg = exception;
7377
+ context.next = loc;
7378
+
7379
+ if (caught) {
7380
+ // If the dispatched exception was caught by a catch block,
7381
+ // then let that catch block handle the exception normally.
7382
+ context.method = "next";
7383
+ context.arg = undefined;
7384
+ }
7385
+
7386
+ return !! caught;
7387
+ }
7388
+
7389
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
7390
+ var entry = this.tryEntries[i];
7391
+ var record = entry.completion;
7392
+
7393
+ if (entry.tryLoc === "root") {
7394
+ // Exception thrown outside of any try block that could handle
7395
+ // it, so set the completion value of the entire function to
7396
+ // throw the exception.
7397
+ return handle("end");
7398
+ }
7399
+
7400
+ if (entry.tryLoc <= this.prev) {
7401
+ var hasCatch = hasOwn.call(entry, "catchLoc");
7402
+ var hasFinally = hasOwn.call(entry, "finallyLoc");
7403
+
7404
+ if (hasCatch && hasFinally) {
7405
+ if (this.prev < entry.catchLoc) {
7406
+ return handle(entry.catchLoc, true);
7407
+ } else if (this.prev < entry.finallyLoc) {
7408
+ return handle(entry.finallyLoc);
7409
+ }
7410
+
7411
+ } else if (hasCatch) {
7412
+ if (this.prev < entry.catchLoc) {
7413
+ return handle(entry.catchLoc, true);
7414
+ }
7415
+
7416
+ } else if (hasFinally) {
7417
+ if (this.prev < entry.finallyLoc) {
7418
+ return handle(entry.finallyLoc);
7419
+ }
7420
+
7421
+ } else {
7422
+ throw new Error("try statement without catch or finally");
7423
+ }
7424
+ }
7425
+ }
7426
+ },
7427
+
7428
+ abrupt: function(type, arg) {
7429
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
7430
+ var entry = this.tryEntries[i];
7431
+ if (entry.tryLoc <= this.prev &&
7432
+ hasOwn.call(entry, "finallyLoc") &&
7433
+ this.prev < entry.finallyLoc) {
7434
+ var finallyEntry = entry;
7435
+ break;
7436
+ }
7437
+ }
7438
+
7439
+ if (finallyEntry &&
7440
+ (type === "break" ||
7441
+ type === "continue") &&
7442
+ finallyEntry.tryLoc <= arg &&
7443
+ arg <= finallyEntry.finallyLoc) {
7444
+ // Ignore the finally entry if control is not jumping to a
7445
+ // location outside the try/catch block.
7446
+ finallyEntry = null;
7447
+ }
7448
+
7449
+ var record = finallyEntry ? finallyEntry.completion : {};
7450
+ record.type = type;
7451
+ record.arg = arg;
7452
+
7453
+ if (finallyEntry) {
7454
+ this.method = "next";
7455
+ this.next = finallyEntry.finallyLoc;
7456
+ return ContinueSentinel;
7457
+ }
7458
+
7459
+ return this.complete(record);
7460
+ },
7461
+
7462
+ complete: function(record, afterLoc) {
7463
+ if (record.type === "throw") {
7464
+ throw record.arg;
7465
+ }
7466
+
7467
+ if (record.type === "break" ||
7468
+ record.type === "continue") {
7469
+ this.next = record.arg;
7470
+ } else if (record.type === "return") {
7471
+ this.rval = this.arg = record.arg;
7472
+ this.method = "return";
7473
+ this.next = "end";
7474
+ } else if (record.type === "normal" && afterLoc) {
7475
+ this.next = afterLoc;
7476
+ }
7477
+
7478
+ return ContinueSentinel;
7479
+ },
7480
+
7481
+ finish: function(finallyLoc) {
7482
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
7483
+ var entry = this.tryEntries[i];
7484
+ if (entry.finallyLoc === finallyLoc) {
7485
+ this.complete(entry.completion, entry.afterLoc);
7486
+ resetTryEntry(entry);
7487
+ return ContinueSentinel;
7488
+ }
7489
+ }
7490
+ },
7491
+
7492
+ "catch": function(tryLoc) {
7493
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
7494
+ var entry = this.tryEntries[i];
7495
+ if (entry.tryLoc === tryLoc) {
7496
+ var record = entry.completion;
7497
+ if (record.type === "throw") {
7498
+ var thrown = record.arg;
7499
+ resetTryEntry(entry);
7500
+ }
7501
+ return thrown;
7502
+ }
7503
+ }
7504
+
7505
+ // The context.catch method must only be called with a location
7506
+ // argument that corresponds to a known catch block.
7507
+ throw new Error("illegal catch attempt");
7508
+ },
7509
+
7510
+ delegateYield: function(iterable, resultName, nextLoc) {
7511
+ this.delegate = {
7512
+ iterator: values(iterable),
7513
+ resultName: resultName,
7514
+ nextLoc: nextLoc
7515
+ };
5899
7516
 
5900
- /***/ "./node_modules/core-js/modules/web.timers.js":
5901
- /*!****************************************************!*\
5902
- !*** ./node_modules/core-js/modules/web.timers.js ***!
5903
- \****************************************************/
5904
- /*! no static exports found */
5905
- /***/ (function(module, exports, __webpack_require__) {
7517
+ if (this.method === "next") {
7518
+ // Deliberately forget the last sent value so that we don't
7519
+ // accidentally pass it on to the delegate.
7520
+ this.arg = undefined;
7521
+ }
5906
7522
 
5907
- var $ = __webpack_require__(/*! ../internals/export */ "./node_modules/core-js/internals/export.js");
5908
- var global = __webpack_require__(/*! ../internals/global */ "./node_modules/core-js/internals/global.js");
5909
- var userAgent = __webpack_require__(/*! ../internals/engine-user-agent */ "./node_modules/core-js/internals/engine-user-agent.js");
7523
+ return ContinueSentinel;
7524
+ }
7525
+ };
5910
7526
 
5911
- var slice = [].slice;
5912
- var MSIE = /MSIE .\./.test(userAgent); // <- dirty ie9- check
7527
+ // Regardless of whether this script is executing as a CommonJS module
7528
+ // or not, return the runtime object so that we can declare the variable
7529
+ // regeneratorRuntime in the outer scope, which allows this module to be
7530
+ // injected easily by `bin/regenerator --include-runtime script.js`.
7531
+ return exports;
5913
7532
 
5914
- var wrap = function (scheduler) {
5915
- return function (handler, timeout /* , ...arguments */) {
5916
- var boundArgs = arguments.length > 2;
5917
- var args = boundArgs ? slice.call(arguments, 2) : undefined;
5918
- return scheduler(boundArgs ? function () {
5919
- // eslint-disable-next-line no-new-func -- spec requirement
5920
- (typeof handler == 'function' ? handler : Function(handler)).apply(this, args);
5921
- } : handler, timeout);
5922
- };
5923
- };
7533
+ }(
7534
+ // If this script is executing as a CommonJS module, use module.exports
7535
+ // as the regeneratorRuntime namespace. Otherwise create a new empty
7536
+ // object. Either way, the resulting object will be used to initialize
7537
+ // the regeneratorRuntime variable at the top of this file.
7538
+ true ? module.exports : undefined
7539
+ ));
5924
7540
 
5925
- // ie9- setTimeout & setInterval additional parameters fix
5926
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
5927
- $({ global: true, bind: true, forced: MSIE }, {
5928
- // `setTimeout` method
5929
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
5930
- setTimeout: wrap(global.setTimeout),
5931
- // `setInterval` method
5932
- // https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
5933
- setInterval: wrap(global.setInterval)
5934
- });
7541
+ try {
7542
+ regeneratorRuntime = runtime;
7543
+ } catch (accidentalStrictMode) {
7544
+ // This module should not be running in strict mode, so the above
7545
+ // assignment should always work unless something is misconfigured. Just
7546
+ // in case runtime.js accidentally runs in strict mode, we can escape
7547
+ // strict mode using a global Function call. This could conceivably fail
7548
+ // if a Content Security Policy forbids using Function, but in that case
7549
+ // the proper solution is to fix the accidental strict mode problem. If
7550
+ // you've misconfigured your bundler to force strict mode and applied a
7551
+ // CSP to forbid Function, and you're not willing to fix either of those
7552
+ // problems, please detail your unique predicament in a GitHub issue.
7553
+ Function("r", "regeneratorRuntime = r")(runtime);
7554
+ }
5935
7555
 
5936
7556
 
5937
7557
  /***/ }),
@@ -5977,62 +7597,66 @@ module.exports = g;
5977
7597
  "use strict";
5978
7598
  __webpack_require__.r(__webpack_exports__);
5979
7599
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "JSONEditor", function() { return JSONEditor; });
5980
- /* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
5981
- /* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_0__);
5982
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
5983
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
5984
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
5985
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
5986
- /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");
5987
- /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_3__);
5988
- /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");
5989
- /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_4__);
5990
- /* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
5991
- /* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__);
5992
- /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.for-each.js */ "./node_modules/core-js/modules/es.array.for-each.js");
5993
- /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_6__);
5994
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
5995
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_7__);
5996
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
5997
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_8__);
5998
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
5999
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_9__);
6000
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");
6001
- /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_10__);
6002
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
6003
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_11__);
6004
- /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
6005
- /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_12__);
6006
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
6007
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13__);
6008
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
6009
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14__);
6010
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
6011
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
6012
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
6013
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
6014
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
6015
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
6016
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
6017
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
6018
- /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");
6019
- /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_19__);
6020
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");
6021
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_20__);
6022
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
6023
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_21__);
6024
- /* harmony import */ var _defaults_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./defaults.js */ "./src/defaults.js");
6025
- /* harmony import */ var _validator_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./validator.js */ "./src/validator.js");
6026
- /* harmony import */ var _schemaloader_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./schemaloader.js */ "./src/schemaloader.js");
6027
- /* harmony import */ var _editors_index_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./editors/index.js */ "./src/editors/index.js");
6028
- /* harmony import */ var _templates_index_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./templates/index.js */ "./src/templates/index.js");
6029
- /* harmony import */ var _iconlibs_index_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./iconlibs/index.js */ "./src/iconlibs/index.js");
6030
- /* harmony import */ var _themes_index_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./themes/index.js */ "./src/themes/index.js");
6031
- /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./utilities.js */ "./src/utilities.js");
6032
- /* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./editor */ "./src/editor.js");
6033
- /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
6034
- /* harmony import */ var _iconlib__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./iconlib */ "./src/iconlib.js");
6035
- /* harmony import */ var _style_css_js__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./style.css.js */ "./src/style.css.js");
7600
+ /* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ "./node_modules/regenerator-runtime/runtime.js");
7601
+ /* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__);
7602
+ /* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
7603
+ /* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
7604
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
7605
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
7606
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
7607
+ /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
7608
+ /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");
7609
+ /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_4__);
7610
+ /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");
7611
+ /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_5__);
7612
+ /* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ "./node_modules/core-js/modules/es.array.find.js");
7613
+ /* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_6__);
7614
+ /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.for-each.js */ "./node_modules/core-js/modules/es.array.for-each.js");
7615
+ /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_7__);
7616
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
7617
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_8__);
7618
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
7619
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__);
7620
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
7621
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_10__);
7622
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");
7623
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_11__);
7624
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
7625
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_12__);
7626
+ /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.promise.js */ "./node_modules/core-js/modules/es.promise.js");
7627
+ /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_13__);
7628
+ /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
7629
+ /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_14__);
7630
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
7631
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_15__);
7632
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
7633
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_16__);
7634
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
7635
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
7636
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
7637
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
7638
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
7639
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_19__);
7640
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
7641
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
7642
+ /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");
7643
+ /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_21__);
7644
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");
7645
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_22__);
7646
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
7647
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_23__);
7648
+ /* harmony import */ var _defaults_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./defaults.js */ "./src/defaults.js");
7649
+ /* harmony import */ var _validator_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./validator.js */ "./src/validator.js");
7650
+ /* harmony import */ var _schemaloader_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./schemaloader.js */ "./src/schemaloader.js");
7651
+ /* harmony import */ var _editors_index_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./editors/index.js */ "./src/editors/index.js");
7652
+ /* harmony import */ var _templates_index_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./templates/index.js */ "./src/templates/index.js");
7653
+ /* harmony import */ var _iconlibs_index_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./iconlibs/index.js */ "./src/iconlibs/index.js");
7654
+ /* harmony import */ var _themes_index_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./themes/index.js */ "./src/themes/index.js");
7655
+ /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./utilities.js */ "./src/utilities.js");
7656
+ /* harmony import */ var _editor__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./editor */ "./src/editor.js");
7657
+ /* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./theme */ "./src/theme.js");
7658
+ /* harmony import */ var _iconlib__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./iconlib */ "./src/iconlib.js");
7659
+ /* harmony import */ var _style_css_js__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./style.css.js */ "./src/style.css.js");
6036
7660
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6037
7661
 
6038
7662
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -6067,6 +7691,12 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
6067
7691
 
6068
7692
 
6069
7693
 
7694
+
7695
+
7696
+
7697
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
7698
+
7699
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
6070
7700
 
6071
7701
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6072
7702
 
@@ -6096,7 +7726,7 @@ var JSONEditor = /*#__PURE__*/function () {
6096
7726
 
6097
7727
  if (!(element instanceof Element)) throw new Error('element should be an instance of Element');
6098
7728
  this.element = element;
6099
- this.options = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_29__["extend"])({}, JSONEditor.defaults.options, options);
7729
+ this.options = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_31__["extend"])({}, JSONEditor.defaults.options, options);
6100
7730
  this.ready = false;
6101
7731
  this.copyClipboard = null;
6102
7732
  this.schema = this.options.schema;
@@ -6110,10 +7740,12 @@ var JSONEditor = /*#__PURE__*/function () {
6110
7740
  /* Load editors and selected theme style rules */
6111
7741
 
6112
7742
  if (!themeClass) throw new Error("Unknown theme ".concat(themeName));
6113
- this.element.setAttribute('data-theme', themeName); // eslint-disable-next-line new-cap
7743
+ this.element.setAttribute('data-theme', themeName);
7744
+ this.element.classList.add('je-not-loaded');
7745
+ this.element.classList.remove('je-ready'); // eslint-disable-next-line new-cap
6114
7746
 
6115
7747
  this.theme = new themeClass(this);
6116
- var rules = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_29__["extend"])(_style_css_js__WEBPACK_IMPORTED_MODULE_33__["default"], this.getEditorsRules());
7748
+ var rules = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_31__["extend"])(_style_css_js__WEBPACK_IMPORTED_MODULE_35__["default"], this.getEditorsRules());
6117
7749
  /* Call addNewStyleRulesToShadowRoot if shadowRoot is found, otherwise call addNewStyleRules */
6118
7750
 
6119
7751
  var addRules = function addRules(themeName, rules, shadowRoot) {
@@ -6122,7 +7754,7 @@ var JSONEditor = /*#__PURE__*/function () {
6122
7754
 
6123
7755
  if (!this.theme.options.disable_theme_rules) {
6124
7756
  /* Attempt to locate a shadowRoot parent (i.e. in Web Components) */
6125
- var shadowRoot = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_29__["getShadowParent"])(this.element);
7757
+ var shadowRoot = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_31__["getShadowParent"])(this.element);
6126
7758
  addRules('default', rules, shadowRoot);
6127
7759
 
6128
7760
  if (typeof themeClass.rules !== 'undefined') {
@@ -6137,82 +7769,103 @@ var JSONEditor = /*#__PURE__*/function () {
6137
7769
  if (iconClass) this.iconlib = new iconClass();
6138
7770
  this.root_container = this.theme.getContainer();
6139
7771
  this.element.appendChild(this.root_container);
6140
- /* Fetch all external refs via ajax */
6141
-
6142
- var fetchUrl = document.location.origin + document.location.pathname.toString();
6143
- var loader = new _schemaloader_js__WEBPACK_IMPORTED_MODULE_24__["SchemaLoader"](this.options);
6144
- var location = document.location.toString();
6145
-
6146
- this.expandSchema = function (schema, fileBase) {
6147
- return loader.expandSchema(schema, fileBase);
6148
- };
6149
-
6150
- this.expandRefs = function (schema, fileBase) {
6151
- return loader.expandRefs(schema, fileBase);
6152
- };
6153
-
6154
- this.refs = loader.refs;
6155
- loader.load(this.schema, function (schema) {
6156
- var validatorOptions = _this.options.custom_validators ? {
6157
- custom_validators: _this.options.custom_validators
6158
- } : {};
6159
- _this.validator = new _validator_js__WEBPACK_IMPORTED_MODULE_23__["Validator"](_this, null, validatorOptions, JSONEditor.defaults);
6160
-
6161
- var editorClass = _this.getEditorClass(schema);
6162
-
6163
- _this.root = _this.createEditor(editorClass, {
6164
- jsoneditor: _this,
6165
- schema: schema,
6166
- required: true,
6167
- container: _this.root_container
6168
- });
6169
-
6170
- _this.root.preBuild();
6171
-
6172
- _this.root.build();
7772
+ this.promise = this.load();
7773
+ }
6173
7774
 
6174
- _this.root.postBuild();
6175
- /* Starting data */
7775
+ _createClass(JSONEditor, [{
7776
+ key: "load",
7777
+ value: function () {
7778
+ var _load = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
7779
+ var _this2 = this;
6176
7780
 
7781
+ var fetchUrl, loader, location, schema, validatorOptions, editorClass;
7782
+ return regeneratorRuntime.wrap(function _callee$(_context) {
7783
+ while (1) {
7784
+ switch (_context.prev = _context.next) {
7785
+ case 0:
7786
+ fetchUrl = document.location.origin + document.location.pathname.toString();
7787
+ loader = new _schemaloader_js__WEBPACK_IMPORTED_MODULE_26__["SchemaLoader"](this.options);
7788
+
7789
+ this.expandSchema = function (schema) {
7790
+ return loader.expandSchema(schema);
7791
+ };
7792
+
7793
+ this.expandRefs = function (schema, fileBase) {
7794
+ return loader.expandRefs(schema, fileBase);
7795
+ };
7796
+
7797
+ location = document.location.toString();
7798
+ _context.next = 7;
7799
+ return loader.load(this.schema, fetchUrl, location);
7800
+
7801
+ case 7:
7802
+ schema = _context.sent;
7803
+ validatorOptions = this.options.custom_validators ? {
7804
+ custom_validators: this.options.custom_validators
7805
+ } : {};
7806
+ this.validator = new _validator_js__WEBPACK_IMPORTED_MODULE_25__["Validator"](this, null, validatorOptions, JSONEditor.defaults);
7807
+ editorClass = this.getEditorClass(schema);
7808
+ this.root = this.createEditor(editorClass, {
7809
+ jsoneditor: this,
7810
+ schema: schema,
7811
+ required: true,
7812
+ container: this.root_container
7813
+ });
7814
+ this.root.preBuild();
7815
+ this.root.build();
7816
+ this.root.postBuild();
7817
+ /* Starting data */
6177
7818
 
6178
- if (Object(_utilities_js__WEBPACK_IMPORTED_MODULE_29__["hasOwnProperty"])(_this.options, 'startval')) _this.root.setValue(_this.options.startval);
6179
- _this.validation_results = _this.validator.validate(_this.root.getValue());
7819
+ if (Object(_utilities_js__WEBPACK_IMPORTED_MODULE_31__["hasOwnProperty"])(this.options, 'startval')) this.root.setValue(this.options.startval);
7820
+ this.validation_results = this.validator.validate(this.root.getValue());
7821
+ this.root.showValidationErrors(this.validation_results);
7822
+ this.ready = true;
7823
+ this.element.classList.remove('je-not-loaded');
7824
+ this.element.classList.add('je-ready');
7825
+ /* Fire ready event asynchronously */
6180
7826
 
6181
- _this.root.showValidationErrors(_this.validation_results);
7827
+ window.requestAnimationFrame(function () {
7828
+ if (!_this2.ready) return;
7829
+ _this2.validation_results = _this2.validator.validate(_this2.root.getValue());
6182
7830
 
6183
- _this.ready = true;
6184
- /* Fire ready event asynchronously */
7831
+ _this2.root.showValidationErrors(_this2.validation_results);
6185
7832
 
6186
- window.requestAnimationFrame(function () {
6187
- if (!_this.ready) return;
6188
- _this.validation_results = _this.validator.validate(_this.root.getValue());
7833
+ _this2.trigger('ready');
6189
7834
 
6190
- _this.root.showValidationErrors(_this.validation_results);
7835
+ _this2.trigger('change');
7836
+ });
6191
7837
 
6192
- _this.trigger('ready');
7838
+ case 22:
7839
+ case "end":
7840
+ return _context.stop();
7841
+ }
7842
+ }
7843
+ }, _callee, this);
7844
+ }));
6193
7845
 
6194
- _this.trigger('change');
6195
- });
6196
- }, fetchUrl, location);
6197
- }
7846
+ function load() {
7847
+ return _load.apply(this, arguments);
7848
+ }
6198
7849
 
6199
- _createClass(JSONEditor, [{
7850
+ return load;
7851
+ }()
7852
+ }, {
6200
7853
  key: "getValue",
6201
7854
  value: function getValue() {
6202
- if (!this.ready) throw new Error("JSON Editor not ready yet. Listen for 'ready' event before getting the value");
7855
+ if (!this.ready) throw new Error('JSON Editor not ready yet. Make sure the load method is complete');
6203
7856
  return this.root.getValue();
6204
7857
  }
6205
7858
  }, {
6206
7859
  key: "setValue",
6207
7860
  value: function setValue(value) {
6208
- if (!this.ready) throw new Error("JSON Editor not ready yet. Listen for 'ready' event before setting the value");
7861
+ if (!this.ready) throw new Error('JSON Editor not ready yet. Make sure the load method is complete');
6209
7862
  this.root.setValue(value);
6210
7863
  return this;
6211
7864
  }
6212
7865
  }, {
6213
7866
  key: "validate",
6214
7867
  value: function validate(value) {
6215
- if (!this.ready) throw new Error("JSON Editor not ready yet. Listen for 'ready' event before validating");
7868
+ if (!this.ready) throw new Error('JSON Editor not ready yet. Make sure the load method is complete');
6216
7869
  /* Custom value */
6217
7870
 
6218
7871
  if (arguments.length === 1) {
@@ -6305,7 +7958,7 @@ var JSONEditor = /*#__PURE__*/function () {
6305
7958
  key: "getEditorsRules",
6306
7959
  value: function getEditorsRules() {
6307
7960
  var extendRule = function extendRule(rules, editorClass) {
6308
- return editorClass.rules ? Object(_utilities_js__WEBPACK_IMPORTED_MODULE_29__["extend"])(rules, editorClass.rules) : rules;
7961
+ return editorClass.rules ? Object(_utilities_js__WEBPACK_IMPORTED_MODULE_31__["extend"])(rules, editorClass.rules) : rules;
6309
7962
  };
6310
7963
 
6311
7964
  return Object.values(JSONEditor.defaults.editors).reduce(extendRule, {});
@@ -6327,34 +7980,34 @@ var JSONEditor = /*#__PURE__*/function () {
6327
7980
  key: "createEditor",
6328
7981
  value: function createEditor(editorClass, options) {
6329
7982
  var depthCounter = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
6330
- options = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_29__["extend"])({}, editorClass.options || {}, options); // eslint-disable-next-line new-cap
7983
+ options = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_31__["extend"])({}, editorClass.options || {}, options); // eslint-disable-next-line new-cap
6331
7984
 
6332
7985
  return new editorClass(options, JSONEditor.defaults, depthCounter);
6333
7986
  }
6334
7987
  }, {
6335
7988
  key: "onChange",
6336
7989
  value: function onChange() {
6337
- var _this2 = this;
7990
+ var _this3 = this;
6338
7991
 
6339
7992
  if (!this.ready) return;
6340
7993
  if (this.firing_change) return;
6341
7994
  this.firing_change = true;
6342
7995
  window.requestAnimationFrame(function () {
6343
- _this2.firing_change = false;
6344
- if (!_this2.ready) return;
7996
+ _this3.firing_change = false;
7997
+ if (!_this3.ready) return;
6345
7998
  /* Validate and cache results */
6346
7999
 
6347
- _this2.validation_results = _this2.validator.validate(_this2.root.getValue());
8000
+ _this3.validation_results = _this3.validator.validate(_this3.root.getValue());
6348
8001
 
6349
- if (_this2.options.show_errors !== 'never') {
6350
- _this2.root.showValidationErrors(_this2.validation_results);
8002
+ if (_this3.options.show_errors !== 'never') {
8003
+ _this3.root.showValidationErrors(_this3.validation_results);
6351
8004
  } else {
6352
- _this2.root.showValidationErrors([]);
8005
+ _this3.root.showValidationErrors([]);
6353
8006
  }
6354
8007
  /* Fire change event */
6355
8008
 
6356
8009
 
6357
- _this2.trigger('change');
8010
+ _this3.trigger('change');
6358
8011
  });
6359
8012
  return this;
6360
8013
  }
@@ -6526,14 +8179,14 @@ var JSONEditor = /*#__PURE__*/function () {
6526
8179
 
6527
8180
  return JSONEditor;
6528
8181
  }();
6529
- JSONEditor.defaults = _defaults_js__WEBPACK_IMPORTED_MODULE_22__["defaults"];
6530
- JSONEditor.AbstractEditor = _editor__WEBPACK_IMPORTED_MODULE_30__["AbstractEditor"];
6531
- JSONEditor.AbstractTheme = _theme__WEBPACK_IMPORTED_MODULE_31__["AbstractTheme"];
6532
- JSONEditor.AbstractIconLib = _iconlib__WEBPACK_IMPORTED_MODULE_32__["AbstractIconLib"];
6533
- Object.assign(JSONEditor.defaults.themes, _themes_index_js__WEBPACK_IMPORTED_MODULE_28__["themes"]);
6534
- Object.assign(JSONEditor.defaults.editors, _editors_index_js__WEBPACK_IMPORTED_MODULE_25__["editors"]);
6535
- Object.assign(JSONEditor.defaults.templates, _templates_index_js__WEBPACK_IMPORTED_MODULE_26__["templates"]);
6536
- Object.assign(JSONEditor.defaults.iconlibs, _iconlibs_index_js__WEBPACK_IMPORTED_MODULE_27__["iconlibs"]);
8182
+ JSONEditor.defaults = _defaults_js__WEBPACK_IMPORTED_MODULE_24__["defaults"];
8183
+ JSONEditor.AbstractEditor = _editor__WEBPACK_IMPORTED_MODULE_32__["AbstractEditor"];
8184
+ JSONEditor.AbstractTheme = _theme__WEBPACK_IMPORTED_MODULE_33__["AbstractTheme"];
8185
+ JSONEditor.AbstractIconLib = _iconlib__WEBPACK_IMPORTED_MODULE_34__["AbstractIconLib"];
8186
+ Object.assign(JSONEditor.defaults.themes, _themes_index_js__WEBPACK_IMPORTED_MODULE_30__["themes"]);
8187
+ Object.assign(JSONEditor.defaults.editors, _editors_index_js__WEBPACK_IMPORTED_MODULE_27__["editors"]);
8188
+ Object.assign(JSONEditor.defaults.templates, _templates_index_js__WEBPACK_IMPORTED_MODULE_28__["templates"]);
8189
+ Object.assign(JSONEditor.defaults.iconlibs, _iconlibs_index_js__WEBPACK_IMPORTED_MODULE_29__["iconlibs"]);
6537
8190
 
6538
8191
  /***/ }),
6539
8192
 
@@ -7040,10 +8693,16 @@ function upload(type, file, cbs) {
7040
8693
  /* String translate function */
7041
8694
 
7042
8695
 
7043
- function translate(key, variables) {
8696
+ function translate(key, variables, schema) {
8697
+ var schemaMessages = {};
8698
+
8699
+ if (schema && schema.options && schema.options.error_messages && schema.options.error_messages[defaults.language]) {
8700
+ schemaMessages = schema.options.error_messages[defaults.language];
8701
+ }
8702
+
7044
8703
  var lang = defaults.languages[defaults.language];
7045
8704
  if (!lang) throw new Error("Unknown language ".concat(defaults.language));
7046
- var string = lang[key] || defaults.languages[default_language][key] || key;
8705
+ var string = schemaMessages[key] || lang[key] || defaults.languages[default_language][key] || key;
7047
8706
 
7048
8707
  if (variables) {
7049
8708
  for (var i = 0; i < variables.length; i++) {
@@ -8246,33 +9905,35 @@ __webpack_require__.r(__webpack_exports__);
8246
9905
  /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);
8247
9906
  /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
8248
9907
  /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_10__);
8249
- /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
8250
- /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__);
8251
- /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
8252
- /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__);
8253
- /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
8254
- /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_13__);
8255
- /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
8256
- /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_14__);
8257
- /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
8258
- /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15__);
8259
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
8260
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16__);
8261
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
8262
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17__);
8263
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
8264
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__);
8265
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
8266
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_19__);
8267
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
8268
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
8269
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
8270
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
8271
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
8272
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22__);
8273
- /* harmony import */ var _editor_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../editor.js */ "./src/editor.js");
8274
- /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utilities.js */ "./src/utilities.js");
8275
- /* harmony import */ var _array_css_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./array.css.js */ "./src/editors/array.css.js");
9908
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
9909
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__);
9910
+ /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
9911
+ /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__);
9912
+ /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
9913
+ /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_13__);
9914
+ /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
9915
+ /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_14__);
9916
+ /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
9917
+ /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_15__);
9918
+ /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
9919
+ /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_16__);
9920
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
9921
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_17__);
9922
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
9923
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_18__);
9924
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
9925
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_19__);
9926
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
9927
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
9928
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
9929
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
9930
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
9931
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_22__);
9932
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
9933
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_23__);
9934
+ /* harmony import */ var _editor_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../editor.js */ "./src/editor.js");
9935
+ /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../utilities.js */ "./src/utilities.js");
9936
+ /* harmony import */ var _array_css_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./array.css.js */ "./src/editors/array.css.js");
8276
9937
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
8277
9938
 
8278
9939
 
@@ -8297,6 +9958,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
8297
9958
 
8298
9959
 
8299
9960
 
9961
+
8300
9962
 
8301
9963
 
8302
9964
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -8550,13 +10212,13 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
8550
10212
  if (this.schema.additionalItems === true) {
8551
10213
  return {};
8552
10214
  } else if (this.schema.additionalItems) {
8553
- return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["extend"])({}, this.schema.additionalItems);
10215
+ return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_25__["extend"])({}, this.schema.additionalItems);
8554
10216
  }
8555
10217
  } else {
8556
- return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["extend"])({}, this.schema.items[i]);
10218
+ return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_25__["extend"])({}, this.schema.items[i]);
8557
10219
  }
8558
10220
  } else if (this.schema.items) {
8559
- return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["extend"])({}, this.schema.items);
10221
+ return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_25__["extend"])({}, this.schema.items);
8560
10222
  } else {
8561
10223
  return {};
8562
10224
  }
@@ -8969,6 +10631,7 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
8969
10631
  var _this9 = this;
8970
10632
 
8971
10633
  var button = this.getButton(this.getItemTitle(), 'copy', 'button_copy_row_title', [this.getItemTitle()]);
10634
+ var schema = this.schema;
8972
10635
  button.classList.add('copy', 'json-editor-btntype-copy');
8973
10636
  button.setAttribute('data-i', i);
8974
10637
  button.addEventListener('click', function (e) {
@@ -8979,6 +10642,19 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
8979
10642
  var i = e.currentTarget.getAttribute('data-i') * 1;
8980
10643
  value.forEach(function (row, j) {
8981
10644
  if (j === i) {
10645
+ /* Force generation of new UUID if the item has been cloned. */
10646
+ if (schema.items.type === 'string' && schema.items.format === 'uuid') {
10647
+ row = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_25__["generateUUID"])();
10648
+ } else if (schema.items.type === 'object' && schema.items.properties) {
10649
+ for (var _i = 0, _Object$keys = Object.keys(row); _i < _Object$keys.length; _i++) {
10650
+ var key = _Object$keys[_i];
10651
+
10652
+ if (schema.items.properties && schema.items.properties[key] && schema.items.properties[key].format === 'uuid') {
10653
+ row[key] = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_25__["generateUUID"])();
10654
+ }
10655
+ }
10656
+ }
10657
+
8982
10658
  value.push(row);
8983
10659
  }
8984
10660
  });
@@ -9074,7 +10750,7 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
9074
10750
  /* If it should start collapsed */
9075
10751
 
9076
10752
  if (this.options.collapsed) {
9077
- Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["trigger"])(this.toggle_button, 'click');
10753
+ Object(_utilities_js__WEBPACK_IMPORTED_MODULE_25__["trigger"])(this.toggle_button, 'click');
9078
10754
  }
9079
10755
  /* Collapse button disabled */
9080
10756
 
@@ -9272,8 +10948,8 @@ var ArrayEditor = /*#__PURE__*/function (_AbstractEditor) {
9272
10948
  }]);
9273
10949
 
9274
10950
  return ArrayEditor;
9275
- }(_editor_js__WEBPACK_IMPORTED_MODULE_23__["AbstractEditor"]);
9276
- ArrayEditor.rules = _array_css_js__WEBPACK_IMPORTED_MODULE_25__["default"];
10951
+ }(_editor_js__WEBPACK_IMPORTED_MODULE_24__["AbstractEditor"]);
10952
+ ArrayEditor.rules = _array_css_js__WEBPACK_IMPORTED_MODULE_26__["default"];
9277
10953
 
9278
10954
  /***/ }),
9279
10955
 
@@ -10096,6 +11772,8 @@ var AutocompleteEditor = /*#__PURE__*/function (_StringEditor) {
10096
11772
  }, {
10097
11773
  key: "afterInputReady",
10098
11774
  value: function afterInputReady() {
11775
+ var _this = this;
11776
+
10099
11777
  var options;
10100
11778
 
10101
11779
  if (window.Autocomplete && !this.autocomplete_instance) {
@@ -10103,17 +11781,18 @@ var AutocompleteEditor = /*#__PURE__*/function (_StringEditor) {
10103
11781
 
10104
11782
  /* single property options from schema "options.autocomplete" */
10105
11783
  options = this.expandCallbacks('autocomplete', Object(_utilities_js__WEBPACK_IMPORTED_MODULE_15__["extend"])({}, {
10106
- search: function search(jseditor, input) {
11784
+ search: function search(jseditor) {
10107
11785
  // eslint-disable-next-line no-console
10108
11786
  console.log("No \"search\" callback defined for autocomplete in property \"".concat(jseditor.key, "\""));
10109
11787
  return [];
10110
11788
  },
11789
+ onSubmit: function onSubmit() {
11790
+ _this.input.blur();
11791
+ },
10111
11792
  baseClass: 'autocomplete'
10112
11793
  }, this.defaults.options.autocomplete || {}, this.options.autocomplete || {}));
10113
11794
  this.autocomplete_wrapper.classList.add(options.baseClass);
10114
11795
  this.autocomplete_dropdown.classList.add("".concat(options.baseClass, "-result-list"));
10115
- /* this.input.classList.add(options.baseClass + '-input'); */
10116
-
10117
11796
  this.autocomplete_instance = new window.Autocomplete(this.autocomplete_wrapper, options);
10118
11797
  }
10119
11798
 
@@ -10586,7 +12265,7 @@ var ButtonEditor = /*#__PURE__*/function (_AbstractEditor) {
10586
12265
  window.alert("No button action defined for \"".concat(jseditor.path, "\""));
10587
12266
  }
10588
12267
  }, this.defaults.options.button || {}, this.options.button || {}));
10589
- this.input = this.theme.getFormButton(title, options.icon, title);
12268
+ this.input = this.getButton(title, options.icon, title);
10590
12269
  this.input.addEventListener('click', options.action, false);
10591
12270
 
10592
12271
  if (this.schema.readOnly || this.schema.readonly || this.schema.template) {
@@ -13629,10 +15308,10 @@ __webpack_require__.r(__webpack_exports__);
13629
15308
  /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_6__);
13630
15309
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
13631
15310
  /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
13632
- /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
13633
- /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_8__);
13634
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
13635
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_9__);
15311
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
15312
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_8__);
15313
+ /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
15314
+ /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_9__);
13636
15315
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
13637
15316
  /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_10__);
13638
15317
  /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");
@@ -13787,17 +15466,22 @@ var MultiSelectEditor = /*#__PURE__*/function (_AbstractEditor) {
13787
15466
  this.select_options = {};
13788
15467
  this.select_values = {};
13789
15468
  this.option_keys = [];
13790
- this.option_titles = [];
15469
+ this.option_enum = [];
13791
15470
  var i;
13792
15471
  var itemsSchema = this.jsoneditor.expandRefs(this.schema.items || {});
13793
15472
  var e = itemsSchema["enum"] || [];
15473
+ var oe = itemsSchema.options ? itemsSchema.options["enum"] || [] : [];
15474
+ /* fallback to enum_titles, when options.enum is not present */
15475
+
13794
15476
  var t = itemsSchema.options ? itemsSchema.options.enum_titles || [] : [];
13795
15477
 
13796
15478
  for (i = 0; i < e.length; i++) {
13797
15479
  /* If the sanitized value is different from the enum value, don't include it */
13798
15480
  if (this.sanitize(e[i]) !== e[i]) continue;
15481
+ var d = oe[i] || {};
15482
+ if (!('title' in d)) d.title = "".concat(t[i] || e[i]);
13799
15483
  this.option_keys.push("".concat(e[i]));
13800
- this.option_titles.push("".concat(t[i] || e[i]));
15484
+ this.option_enum.push(d);
13801
15485
  this.select_values["".concat(e[i])] = e[i];
13802
15486
  }
13803
15487
  }
@@ -13822,9 +15506,15 @@ var MultiSelectEditor = /*#__PURE__*/function (_AbstractEditor) {
13822
15506
  this.inputs[this.option_keys[i]] = this.theme.getCheckbox();
13823
15507
  this.inputs[this.option_keys[i]].id = id;
13824
15508
  this.select_options[this.option_keys[i]] = this.inputs[this.option_keys[i]];
13825
- var label = this.theme.getCheckboxLabel(this.option_titles[i]);
15509
+ var label = this.theme.getCheckboxLabel(this.option_enum[i].title);
13826
15510
  label.htmlFor = id;
13827
- this.controls[this.option_keys[i]] = this.theme.getFormControl(label, this.inputs[this.option_keys[i]]);
15511
+
15512
+ if (this.option_enum[i].infoText) {
15513
+ var infoButton = this.theme.getInfoButton(this.translateProperty(this.option_enum[i].infoText));
15514
+ label.appendChild(infoButton);
15515
+ }
15516
+
15517
+ this.controls['_' + this.option_keys[i]] = this.theme.getFormControl(label, this.inputs[this.option_keys[i]]);
13828
15518
  }
13829
15519
 
13830
15520
  this.control = this.theme.getMultiCheckboxHolder(this.controls, this.label, this.description, this.infoButton);
@@ -13833,7 +15523,9 @@ var MultiSelectEditor = /*#__PURE__*/function (_AbstractEditor) {
13833
15523
  } else {
13834
15524
  this.input_type = 'select';
13835
15525
  this.input = this.theme.getSelectInput(this.option_keys, true);
13836
- this.theme.setSelectOptions(this.input, this.option_keys, this.option_titles);
15526
+ this.theme.setSelectOptions(this.input, this.option_keys, this.option_enum.map(function (e) {
15527
+ return e.title;
15528
+ }));
13837
15529
  /* this.input.multiple = true; */
13838
15530
 
13839
15531
  this.input.setAttribute('multiple', 'multiple');
@@ -18613,6 +20305,12 @@ var StringEditor = /*#__PURE__*/function (_AbstractEditor) {
18613
20305
  /* it will generate an error trying to append it to the missing parentNode */
18614
20306
  if (_this.input.parentNode) _this.afterInputReady();
18615
20307
  if (_this.adjust_height) _this.adjust_height(_this.input);
20308
+
20309
+ if (_this.format === 'range') {
20310
+ var output = _this.control.querySelector('output');
20311
+
20312
+ output.value = _this.input.value;
20313
+ }
18616
20314
  });
18617
20315
  /* Compile and store the template */
18618
20316
 
@@ -18840,32 +20538,34 @@ __webpack_require__.r(__webpack_exports__);
18840
20538
  /* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_8__);
18841
20539
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.splice.js */ "./node_modules/core-js/modules/es.array.splice.js");
18842
20540
  /* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_9__);
18843
- /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
18844
- /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_10__);
18845
- /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
18846
- /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__);
18847
- /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
18848
- /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_12__);
18849
- /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
18850
- /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_13__);
18851
- /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
18852
- /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_14__);
18853
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
18854
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_15__);
18855
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
18856
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_16__);
18857
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
18858
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_17__);
18859
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
18860
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
18861
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
18862
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_19__);
18863
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
18864
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
18865
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
18866
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
18867
- /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./array.js */ "./src/editors/array.js");
18868
- /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../utilities.js */ "./src/utilities.js");
20541
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.assign.js */ "./node_modules/core-js/modules/es.object.assign.js");
20542
+ /* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_10__);
20543
+ /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
20544
+ /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__);
20545
+ /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
20546
+ /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__);
20547
+ /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
20548
+ /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_13__);
20549
+ /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
20550
+ /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_14__);
20551
+ /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
20552
+ /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_15__);
20553
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
20554
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_16__);
20555
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
20556
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17__);
20557
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
20558
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__);
20559
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
20560
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_19__);
20561
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
20562
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_20__);
20563
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
20564
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
20565
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
20566
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_22__);
20567
+ /* harmony import */ var _array_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./array.js */ "./src/editors/array.js");
20568
+ /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../utilities.js */ "./src/utilities.js");
18869
20569
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
18870
20570
 
18871
20571
 
@@ -18889,6 +20589,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
18889
20589
 
18890
20590
 
18891
20591
 
20592
+
18892
20593
 
18893
20594
 
18894
20595
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -19055,7 +20756,7 @@ var TableEditor = /*#__PURE__*/function (_ArrayEditor) {
19055
20756
  }, {
19056
20757
  key: "getItemDefault",
19057
20758
  value: function getItemDefault() {
19058
- return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_23__["extend"])({}, {
20759
+ return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["extend"])({}, {
19059
20760
  "default": this.item_default
19060
20761
  })["default"];
19061
20762
  }
@@ -19067,7 +20768,7 @@ var TableEditor = /*#__PURE__*/function (_ArrayEditor) {
19067
20768
  }, {
19068
20769
  key: "getElementEditor",
19069
20770
  value: function getElementEditor(i, ignore) {
19070
- var schemaCopy = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_23__["extend"])({}, this.schema.items);
20771
+ var schemaCopy = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["extend"])({}, this.schema.items);
19071
20772
  var editor = this.jsoneditor.getEditorClass(schemaCopy, this.jsoneditor);
19072
20773
  var row = this.row_holder.appendChild(this.theme.getTableRow());
19073
20774
  var holder = row;
@@ -19322,6 +21023,7 @@ var TableEditor = /*#__PURE__*/function (_ArrayEditor) {
19322
21023
  var _this5 = this;
19323
21024
 
19324
21025
  var button = this.getButton('', 'copy', 'button_copy_row_title_short');
21026
+ var schema = this.schema;
19325
21027
  button.classList.add('copy', 'json-editor-btntype-copy');
19326
21028
  button.setAttribute('data-i', i);
19327
21029
  button.addEventListener('click', function (e) {
@@ -19331,7 +21033,27 @@ var TableEditor = /*#__PURE__*/function (_ArrayEditor) {
19331
21033
 
19332
21034
  var value = _this5.getValue();
19333
21035
 
19334
- value.splice(j + 1, 0, value[j]);
21036
+ var newValue = value[j];
21037
+ /* On copy, recreate uuid if needed. */
21038
+
21039
+ if (schema.items.type === 'string' && schema.items.format === 'uuid') {
21040
+ newValue = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["generateUUID"])();
21041
+ } else if (schema.items.type === 'object' && schema.items.properties) {
21042
+ value.forEach(function (row, i) {
21043
+ if (j === i) {
21044
+ for (var _i = 0, _Object$keys = Object.keys(row); _i < _Object$keys.length; _i++) {
21045
+ var key = _Object$keys[_i];
21046
+
21047
+ if (schema.items.properties && schema.items.properties[key] && schema.items.properties[key].format === 'uuid') {
21048
+ newValue = Object.assign({}, value[j]);
21049
+ newValue[key] = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["generateUUID"])();
21050
+ }
21051
+ }
21052
+ }
21053
+ });
21054
+ }
21055
+
21056
+ value.splice(j + 1, 0, newValue);
19335
21057
 
19336
21058
  _this5.setValue(value);
19337
21059
 
@@ -19423,7 +21145,7 @@ var TableEditor = /*#__PURE__*/function (_ArrayEditor) {
19423
21145
  /* If it should start collapsed */
19424
21146
 
19425
21147
  if (this.options.collapsed) {
19426
- Object(_utilities_js__WEBPACK_IMPORTED_MODULE_23__["trigger"])(this.toggle_button, 'click');
21148
+ Object(_utilities_js__WEBPACK_IMPORTED_MODULE_24__["trigger"])(this.toggle_button, 'click');
19427
21149
  }
19428
21150
  /* Collapse button disabled */
19429
21151
 
@@ -19527,7 +21249,7 @@ var TableEditor = /*#__PURE__*/function (_ArrayEditor) {
19527
21249
  }]);
19528
21250
 
19529
21251
  return TableEditor;
19530
- }(_array_js__WEBPACK_IMPORTED_MODULE_22__["ArrayEditor"]);
21252
+ }(_array_js__WEBPACK_IMPORTED_MODULE_23__["ArrayEditor"]);
19531
21253
 
19532
21254
  /***/ }),
19533
21255
 
@@ -19962,7 +21684,7 @@ var UploadEditor = /*#__PURE__*/function (_AbstractEditor) {
19962
21684
 
19963
21685
  if (this.options.auto_upload) {
19964
21686
  uploadButton.dispatchEvent(new window.MouseEvent('click'));
19965
- this.preview.removeChild(uploadButton);
21687
+ uploadButton.parentNode.removeChild(uploadButton);
19966
21688
  }
19967
21689
  }
19968
21690
  }, {
@@ -20054,43 +21776,36 @@ var UploadEditor = /*#__PURE__*/function (_AbstractEditor) {
20054
21776
  "use strict";
20055
21777
  __webpack_require__.r(__webpack_exports__);
20056
21778
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UuidEditor", function() { return UuidEditor; });
20057
- /* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.date.to-string.js */ "./node_modules/core-js/modules/es.date.to-string.js");
20058
- /* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_0__);
20059
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
20060
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_1__);
20061
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
20062
- /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_2__);
20063
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
20064
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
20065
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ "./node_modules/core-js/modules/es.regexp.to-string.js");
20066
- /* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_4__);
20067
- /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
20068
- /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_5__);
20069
- /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
20070
- /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_6__);
20071
- /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
20072
- /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_7__);
20073
- /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
20074
- /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_8__);
20075
- /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
20076
- /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_9__);
20077
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
20078
- /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_10__);
20079
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
20080
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_11__);
20081
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
20082
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12__);
20083
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
20084
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13__);
20085
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
20086
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_14__);
20087
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
20088
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
20089
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
20090
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
20091
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
20092
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
20093
- /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./string.js */ "./src/editors/string.js");
21779
+ /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ "./node_modules/core-js/modules/es.object.set-prototype-of.js");
21780
+ /* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_0__);
21781
+ /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ "./node_modules/core-js/modules/es.object.get-prototype-of.js");
21782
+ /* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_1__);
21783
+ /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ "./node_modules/core-js/modules/es.reflect.construct.js");
21784
+ /* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_2__);
21785
+ /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ "./node_modules/core-js/modules/es.object.create.js");
21786
+ /* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_3__);
21787
+ /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.reflect.get.js */ "./node_modules/core-js/modules/es.reflect.get.js");
21788
+ /* harmony import */ var core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_get_js__WEBPACK_IMPORTED_MODULE_4__);
21789
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
21790
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_5__);
21791
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
21792
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6__);
21793
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
21794
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_7__);
21795
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
21796
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_8__);
21797
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
21798
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_9__);
21799
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
21800
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_10__);
21801
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
21802
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_11__);
21803
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
21804
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12__);
21805
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
21806
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
21807
+ /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../utilities.js */ "./src/utilities.js");
21808
+ /* harmony import */ var _string_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./string.js */ "./src/editors/string.js");
20094
21809
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
20095
21810
 
20096
21811
 
@@ -20108,10 +21823,6 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
20108
21823
 
20109
21824
 
20110
21825
 
20111
-
20112
-
20113
-
20114
-
20115
21826
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
20116
21827
 
20117
21828
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
@@ -20137,6 +21848,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
20137
21848
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
20138
21849
 
20139
21850
 
21851
+
20140
21852
  var UuidEditor = /*#__PURE__*/function (_StringEditor) {
20141
21853
  _inherits(UuidEditor, _StringEditor);
20142
21854
 
@@ -20194,19 +21906,7 @@ var UuidEditor = /*#__PURE__*/function (_StringEditor) {
20194
21906
  }, {
20195
21907
  key: "getUuid",
20196
21908
  value: function getUuid() {
20197
- /* https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript */
20198
- var d = new Date().getTime();
20199
-
20200
- if (typeof performance !== 'undefined' && typeof performance.now === 'function') {
20201
- d += performance.now();
20202
- /* use high-precision timer if available */
20203
- }
20204
-
20205
- return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
20206
- var r = (d + Math.random() * 16) % 16 | 0;
20207
- d = Math.floor(d / 16);
20208
- return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
20209
- });
21909
+ return Object(_utilities_js__WEBPACK_IMPORTED_MODULE_14__["generateUUID"])();
20210
21910
  }
20211
21911
  }, {
20212
21912
  key: "testUuid",
@@ -20216,7 +21916,7 @@ var UuidEditor = /*#__PURE__*/function (_StringEditor) {
20216
21916
  }]);
20217
21917
 
20218
21918
  return UuidEditor;
20219
- }(_string_js__WEBPACK_IMPORTED_MODULE_18__["StringEditor"]);
21919
+ }(_string_js__WEBPACK_IMPORTED_MODULE_15__["StringEditor"]);
20220
21920
 
20221
21921
  /***/ }),
20222
21922
 
@@ -20316,7 +22016,7 @@ var AbstractIconLib = /*#__PURE__*/function () {
20316
22016
  _createClass(AbstractIconLib, [{
20317
22017
  key: "getIconClass",
20318
22018
  value: function getIconClass(key) {
20319
- return this.mapping[key] ? this.icon_prefix + this.mapping[key] : null;
22019
+ return this.mapping[key] ? this.icon_prefix + this.mapping[key] : this.icon_prefix + key;
20320
22020
  }
20321
22021
  }, {
20322
22022
  key: "getIcon",
@@ -21303,63 +23003,73 @@ var resolvers = [colorPicker, ip, ace, xhtml, markdown, jodit, autoComplete, uui
21303
23003
  "use strict";
21304
23004
  __webpack_require__.r(__webpack_exports__);
21305
23005
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SchemaLoader", function() { return SchemaLoader; });
21306
- /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.for-each.js */ "./node_modules/core-js/modules/es.array.for-each.js");
21307
- /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_0__);
21308
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
21309
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_1__);
21310
- /* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");
21311
- /* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_2__);
21312
- /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
21313
- /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_3__);
21314
- /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");
21315
- /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_4__);
21316
- /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");
21317
- /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_5__);
21318
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
21319
- /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_6__);
21320
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
21321
- /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_7__);
21322
- /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");
21323
- /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_8__);
21324
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
21325
- /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_9__);
21326
- /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");
21327
- /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_10__);
21328
- /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");
21329
- /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_11__);
23006
+ /* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ "./node_modules/regenerator-runtime/runtime.js");
23007
+ /* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_0__);
23008
+ /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.for-each.js */ "./node_modules/core-js/modules/es.array.for-each.js");
23009
+ /* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_1__);
23010
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
23011
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
23012
+ /* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.object.entries.js */ "./node_modules/core-js/modules/es.object.entries.js");
23013
+ /* harmony import */ var core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_entries_js__WEBPACK_IMPORTED_MODULE_3__);
23014
+ /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
23015
+ /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_4__);
23016
+ /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.reduce.js */ "./node_modules/core-js/modules/es.array.reduce.js");
23017
+ /* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_5__);
23018
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ "./node_modules/core-js/modules/es.regexp.exec.js");
23019
+ /* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);
23020
+ /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.string.split.js */ "./node_modules/core-js/modules/es.string.split.js");
23021
+ /* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_7__);
23022
+ /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.string.starts-with.js */ "./node_modules/core-js/modules/es.string.starts-with.js");
23023
+ /* harmony import */ var core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_starts_with_js__WEBPACK_IMPORTED_MODULE_8__);
23024
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
23025
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_9__);
23026
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");
23027
+ /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_10__);
23028
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
23029
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_11__);
21330
23030
  /* harmony import */ var core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.array.index-of.js */ "./node_modules/core-js/modules/es.array.index-of.js");
21331
23031
  /* harmony import */ var core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_12__);
21332
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
21333
- /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_13__);
21334
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
21335
- /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_14__);
21336
- /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");
21337
- /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_15__);
21338
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
21339
- /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_16__);
21340
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
21341
- /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_17__);
21342
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
21343
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_18__);
21344
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
21345
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_19__);
21346
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
21347
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_20__);
21348
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
21349
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_21__);
21350
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
21351
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_22__);
21352
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
21353
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_23__);
21354
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
21355
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_24__);
21356
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ "./node_modules/core-js/modules/es.array.slice.js");
21357
- /* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_25__);
21358
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
21359
- /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_26__);
21360
- /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");
21361
- /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_27__);
21362
- /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./utilities.js */ "./src/utilities.js");
23032
+ /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.object.values.js */ "./node_modules/core-js/modules/es.object.values.js");
23033
+ /* harmony import */ var core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_values_js__WEBPACK_IMPORTED_MODULE_13__);
23034
+ /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ "./node_modules/core-js/modules/es.array.join.js");
23035
+ /* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_14__);
23036
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
23037
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
23038
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
23039
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
23040
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
23041
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
23042
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
23043
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_18__);
23044
+ /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.promise.js */ "./node_modules/core-js/modules/es.promise.js");
23045
+ /* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_19__);
23046
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
23047
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_20__);
23048
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.array.includes.js */ "./node_modules/core-js/modules/es.array.includes.js");
23049
+ /* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_21__);
23050
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.string.includes.js */ "./node_modules/core-js/modules/es.string.includes.js");
23051
+ /* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_22__);
23052
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
23053
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_23__);
23054
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ "./node_modules/core-js/modules/es.object.define-property.js");
23055
+ /* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_24__);
23056
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
23057
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_25__);
23058
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
23059
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_26___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_26__);
23060
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
23061
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_27__);
23062
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/core-js/modules/es.function.name.js");
23063
+ /* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_28___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_28__);
23064
+ /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ "./node_modules/core-js/modules/es.array.from.js");
23065
+ /* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_29___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_29__);
23066
+ /* harmony import */ var _utilities_js__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./utilities.js */ "./src/utilities.js");
23067
+
23068
+
23069
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
23070
+
23071
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
23072
+
21363
23073
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
21364
23074
 
21365
23075
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -21399,6 +23109,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
21399
23109
 
21400
23110
 
21401
23111
 
23112
+
21402
23113
 
21403
23114
 
21404
23115
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
@@ -21410,14 +23121,56 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
21410
23121
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
21411
23122
 
21412
23123
 
23124
+ /**
23125
+ * Handles loading Schema and tracking references.
23126
+ */
23127
+
21413
23128
  var SchemaLoader = /*#__PURE__*/function () {
21414
23129
  function SchemaLoader(options) {
21415
23130
  _classCallCheck(this, SchemaLoader);
21416
23131
 
23132
+ /**
23133
+ * @prop {object}
23134
+ * Options of the schema. @see readme.
23135
+ */
21417
23136
  this.options = options || {};
23137
+ /**
23138
+ * @prop {object}
23139
+ * The orginial schema to load
23140
+ */
23141
+
23142
+ this.schema = {};
23143
+ /**
23144
+ * @prop {object}
23145
+ * Storage of External ref. Exemple :
23146
+ * refs = {
23147
+ * "fully/realized/path/to/schema.json": { ... }
23148
+ * "mylocalschema.json": { ... }
23149
+ * }
23150
+ */
23151
+
21418
23152
  this.refs = this.options.refs || {};
23153
+ /**
23154
+ * @prop {object}
23155
+ * Mapping between the schema and ref. Exemple:
23156
+ * refs_with_info = {
23157
+ * "#/counter/1": "fully/realized/path/to/schema.json"
23158
+ * "#/counter/2": "mylocalschema.json"
23159
+ * }
23160
+ */
23161
+
21419
23162
  this.refs_with_info = {};
23163
+ /**
23164
+ * @prop {string}
23165
+ * String to eewrite external ref with.
23166
+ */
23167
+
21420
23168
  this.refs_prefix = '#/counter/';
23169
+ /**
23170
+ * @prop {int}
23171
+ * Counter of ref
23172
+ */
23173
+
21421
23174
  this.refs_counter = 1;
21422
23175
  this._subSchema1 = {
21423
23176
  /* Version 3 `type` */
@@ -21472,7 +23225,7 @@ var SchemaLoader = /*#__PURE__*/function () {
21472
23225
  allOf: function allOf(schema, extended) {
21473
23226
  var _this3 = this;
21474
23227
 
21475
- var _extended = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["extend"])({}, extended);
23228
+ var _extended = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["extend"])({}, extended);
21476
23229
 
21477
23230
  Object.entries(schema.allOf).forEach(function (_ref5) {
21478
23231
  var _ref6 = _slicedToArray(_ref5, 2),
@@ -21511,7 +23264,7 @@ var SchemaLoader = /*#__PURE__*/function () {
21511
23264
  oneOf: function oneOf(schema, extended) {
21512
23265
  var _this5 = this;
21513
23266
 
21514
- var tmp = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["extend"])({}, extended);
23267
+ var tmp = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["extend"])({}, extended);
21515
23268
  delete tmp.oneOf;
21516
23269
  schema.oneOf.reduce(function (e, s, i) {
21517
23270
  e.oneOf[i] = _this5.extendSchemas(_this5.expandSchema(s), tmp);
@@ -21521,27 +23274,78 @@ var SchemaLoader = /*#__PURE__*/function () {
21521
23274
  }
21522
23275
  };
21523
23276
  }
23277
+ /**
23278
+ * Fully loads and expands JSON schema for a provided schema object and URL.
23279
+ *
23280
+ * The callback receives a expanded JSON Schema object with references
23281
+ * replaced with loaded schemas.
23282
+ *
23283
+ * @param {object} schema - A JSON Schema.
23284
+ * @param {string} fetchUrl - Base path from which to store the definitions.
23285
+ * Typically the URI of the schema.
23286
+ * @param {*} location - The base URL from which to load relative paths.
23287
+ * @returns {object} A JSON Schema with references expanded.
23288
+ */
23289
+
21524
23290
 
21525
23291
  _createClass(SchemaLoader, [{
21526
23292
  key: "load",
21527
- value: function load(schema, callback, fetchUrl, location) {
21528
- var _this6 = this;
23293
+ value: function () {
23294
+ var _load = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(schema, fetchUrl, location) {
23295
+ return regeneratorRuntime.wrap(function _callee$(_context) {
23296
+ while (1) {
23297
+ switch (_context.prev = _context.next) {
23298
+ case 0:
23299
+ this.schema = schema;
23300
+ _context.next = 3;
23301
+ return this._asyncloadExternalRefs(schema, fetchUrl, this._getFileBase(location), true);
23302
+
23303
+ case 3:
23304
+ return _context.abrupt("return", this.expandRefs(schema));
23305
+
23306
+ case 4:
23307
+ case "end":
23308
+ return _context.stop();
23309
+ }
23310
+ }
23311
+ }, _callee, this);
23312
+ }));
21529
23313
 
21530
- this._loadExternalRefs(schema, function () {
21531
- _this6._getDefinitions(schema, "".concat(fetchUrl, "#/definitions/"));
23314
+ function load(_x, _x2, _x3) {
23315
+ return _load.apply(this, arguments);
23316
+ }
23317
+
23318
+ return load;
23319
+ }()
23320
+ /**
23321
+ * Recursively expands loaded references in a provided schema.
23322
+ *
23323
+ * @param {object} schema - A JSON Schema with references already loaded.
23324
+ * @param {boolean} recurseAllOf - Set true to recurse allOf properties.
23325
+ * @returns {object} A JSON Schema with references expanded.
23326
+ */
21532
23327
 
21533
- callback(_this6.expandRefs(schema));
21534
- }, fetchUrl, this._getFileBase(location));
21535
- }
21536
23328
  }, {
21537
23329
  key: "expandRefs",
21538
23330
  value: function expandRefs(schema, recurseAllOf) {
21539
- var _this7 = this;
23331
+ var _this6 = this;
23332
+
23333
+ var _schema = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["extend"])({}, schema);
23334
+
23335
+ if (!_schema.$ref) return _schema; // This split the ref to get the Json point if it exists
23336
+ // exemple #/counter/1#/definition/address +
23337
+ // [1] -> /counter/1
23338
+ // [2] -> /definition/address
23339
+
23340
+ var refWithPointerSplit = _schema.$ref.split('#'); // If local ref
21540
23341
 
21541
- var _schema = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["extend"])({}, schema);
21542
23342
 
21543
- if (!_schema.$ref) return _schema;
21544
- var refObj = this.refs_with_info[_schema.$ref];
23343
+ if (refWithPointerSplit.length === 2 && !this.refs_with_info[_schema.$ref]) {
23344
+ var sub = this.expandRecursivePointer(this.schema, refWithPointerSplit[1]);
23345
+ return this.extendSchemas(_schema, this.expandSchema(sub));
23346
+ }
23347
+
23348
+ var refObj = refWithPointerSplit.length > 2 ? this.refs_with_info['#' + refWithPointerSplit[1]] : this.refs_with_info[_schema.$ref];
21545
23349
  delete _schema.$ref;
21546
23350
  var fetchUrl = refObj.$ref.startsWith('#') ? refObj.fetchUrl : '';
21547
23351
 
@@ -21551,19 +23355,54 @@ var SchemaLoader = /*#__PURE__*/function () {
21551
23355
  /* if reference not found */
21552
23356
  // eslint-disable-next-line no-console
21553
23357
  console.warn("reference:'".concat(ref, "' not found!"));
21554
- } else if (recurseAllOf && Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["hasOwnProperty"])(this.refs[ref], 'allOf')) {
23358
+ } else if (recurseAllOf && Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["hasOwnProperty"])(this.refs[ref], 'allOf')) {
21555
23359
  var allOf = this.refs[ref].allOf;
21556
23360
  Object.keys(allOf).forEach(function (key) {
21557
- allOf[key] = _this7.expandRefs(allOf[key], true);
23361
+ allOf[key] = _this6.expandRefs(allOf[key], true);
21558
23362
  });
21559
23363
  }
21560
23364
 
21561
- return this.extendSchemas(_schema, this.expandSchema(this.refs[ref]));
23365
+ if (refWithPointerSplit.length > 2) {
23366
+ return this.extendSchemas(_schema, this.expandSchema(this.expandRecursivePointer(this.refs[ref], refWithPointerSplit[2])));
23367
+ } else {
23368
+ return this.extendSchemas(_schema, this.expandSchema(this.refs[ref]));
23369
+ }
23370
+ }
23371
+ /**
23372
+ * Returns a subschema based on a JSON Pointer path.
23373
+ * @param {object} schema - Schema too into
23374
+ * @param {string} pointer - path to look for
23375
+ * @param {object} original_schema - the Original schema
23376
+ * @returns the subschema pointed to by the path
23377
+ */
23378
+
23379
+ }, {
23380
+ key: "expandRecursivePointer",
23381
+ value: function expandRecursivePointer(schema, pointer) {
23382
+ var subschema = schema;
23383
+ pointer.split('/').slice(1).forEach(function (i) {
23384
+ if (subschema[i]) {
23385
+ subschema = subschema[i];
23386
+ }
23387
+ }); // If the result is a pointer, let's go for another turn
23388
+
23389
+ if (subschema.$refs && subschema.$refs.startsWith('#')) {
23390
+ return this.expandRecursivePointer(schema, subschema.$refs);
23391
+ }
23392
+
23393
+ return subschema;
21562
23394
  }
23395
+ /**
23396
+ * Expands a JSON schema and its references.
23397
+ *
23398
+ * @param {object} schema - A JSON Schema with references already loaded.
23399
+ * @returns {object} A JSON Schema with references expanded.
23400
+ */
23401
+
21563
23402
  }, {
21564
23403
  key: "expandSchema",
21565
- value: function expandSchema(schema, fileBase) {
21566
- var _this8 = this;
23404
+ value: function expandSchema(schema) {
23405
+ var _this7 = this;
21567
23406
 
21568
23407
  Object.entries(this._subSchema1).forEach(function (_ref7) {
21569
23408
  var _ref8 = _slicedToArray(_ref7, 2),
@@ -21571,17 +23410,17 @@ var SchemaLoader = /*#__PURE__*/function () {
21571
23410
  func = _ref8[1];
21572
23411
 
21573
23412
  if (schema[key]) {
21574
- func.call(_this8, schema);
23413
+ func.call(_this7, schema);
21575
23414
  }
21576
23415
  });
21577
- var extended = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["extend"])({}, schema);
23416
+ var extended = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["extend"])({}, schema);
21578
23417
  Object.entries(this._subSchema2).forEach(function (_ref9) {
21579
23418
  var _ref10 = _slicedToArray(_ref9, 2),
21580
23419
  key = _ref10[0],
21581
23420
  func = _ref10[1];
21582
23421
 
21583
23422
  if (schema[key]) {
21584
- extended = func.call(_this8, schema, extended);
23423
+ extended = func.call(_this7, schema, extended);
21585
23424
  }
21586
23425
  });
21587
23426
  return this.expandRefs(extended);
@@ -21595,36 +23434,55 @@ var SchemaLoader = /*#__PURE__*/function () {
21595
23434
  }, {
21596
23435
  key: "_expandSubSchema",
21597
23436
  value: function _expandSubSchema(subschema) {
21598
- var _this9 = this;
23437
+ var _this8 = this;
21599
23438
 
21600
23439
  /* Array of types */
21601
23440
  if (Array.isArray(subschema)) return subschema.map(function (m) {
21602
- return _typeof(m) === 'object' ? _this9.expandSchema(m) : m;
23441
+ return _typeof(m) === 'object' ? _this8.expandSchema(m) : m;
21603
23442
  });
21604
23443
  /* Schema */
21605
23444
 
21606
23445
  return this.expandSchema(subschema);
21607
23446
  }
21608
- }, {
21609
- key: "_getDefinitions",
21610
- value: function _getDefinitions(schema, path) {
21611
- var _this10 = this;
21612
-
21613
- if (schema.definitions) {
21614
- Object.keys(schema.definitions).forEach(function (i) {
21615
- _this10.refs[path + i] = schema.definitions[i];
23447
+ /**
23448
+ * Rewrite the passed schema's JSON pointers to prepend with the current reference's path, so that it will be converted to a reference "counter".
23449
+ *
23450
+ * @example
23451
+ * In file "../otherreferencedfile.json", referenced from "schema.json":
23452
+ *
23453
+ * "$ref": "#/definitions/myschema" => "$ref": "../path/to/my/referenced/schemafile.json#/definitions/myschema"
23454
+ * ...which will then be parsed later in loadExternalReferences() to "$ref": "#/counter/1#/definitions/myschema"
23455
+ *
23456
+ * @param {object} schema - A JSON Schema with the definitions key present.
23457
+ * @param {string} path - Base path from which to store the definitions in refs. (exemple ../path/to/my/referenced/schemafile.json)
23458
+ * Typically the URI of the schema.
23459
+ */
21616
23460
 
21617
- if (schema.definitions[i].definitions) {
21618
- _this10._getDefinitions(schema.definitions[i], "".concat(path + i, "/definitions/"));
21619
- }
21620
- });
21621
- }
23461
+ }, {
23462
+ key: "_manageRecursivePointer",
23463
+ value: function _manageRecursivePointer(schema, path) {
23464
+ Object.keys(schema).forEach(function (i) {
23465
+ if (schema[i].$ref && schema[i].$ref.indexOf('#') === 0) {
23466
+ schema[i].$ref = path + schema[i].$ref;
23467
+ }
23468
+ });
21622
23469
  }
23470
+ /**
23471
+ * Recursively parse a (sub)schema to populate loader reference info.
23472
+ *
23473
+ * @param {object} schema - A JSON Schema
23474
+ * @param {string} fetchUrl - Base path from which to store the definitions.
23475
+ * @param {boolean} firstIteration - Is it the first time we load this function? Help making difference between external ref vs internal pointer
23476
+ * @returns {array} Refs in the format of uri => true if external.
23477
+ */
23478
+
21623
23479
  }, {
21624
23480
  key: "_getExternalRefs",
21625
23481
  value: function _getExternalRefs(schema, fetchUrl) {
21626
- var _this11 = this;
23482
+ var _this9 = this;
21627
23483
 
23484
+ var firstIteration = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
23485
+ if (!firstIteration) this._manageRecursivePointer(schema, fetchUrl);
21628
23486
  var refs = {};
21629
23487
 
21630
23488
  var mergeRefs = function mergeRefs(newrefs) {
@@ -21633,18 +23491,25 @@ var SchemaLoader = /*#__PURE__*/function () {
21633
23491
  });
21634
23492
  };
21635
23493
 
21636
- if (schema.$ref && _typeof(schema.$ref) !== 'object') {
23494
+ if (schema.$ref && _typeof(schema.$ref) !== 'object' && !(schema.$ref.indexOf('#') === 0 && firstIteration)) {
23495
+ var refBase = schema.$ref;
23496
+ var pointer = ''; // Strip any JSON pointers found for external refs.
23497
+
23498
+ if (refBase.indexOf('#') > 0) refBase = refBase.substr(0, refBase.indexOf('#'));
23499
+ if (refBase !== schema.$ref) pointer = schema.$ref.substr(schema.$ref.indexOf('#')); // We use a fragment idenfier to track json pointer in top of our pointer
23500
+
21637
23501
  var refCounter = this.refs_prefix + this.refs_counter++;
23502
+ var refPointer = refCounter + pointer;
21638
23503
 
21639
23504
  if (schema.$ref.substr(0, 1) !== '#' && !this.refs[schema.$ref]) {
21640
- refs[schema.$ref] = true;
23505
+ refs[refBase] = true;
21641
23506
  }
21642
23507
 
21643
23508
  this.refs_with_info[refCounter] = {
21644
23509
  fetchUrl: fetchUrl,
21645
- $ref: schema.$ref
23510
+ $ref: refBase
21646
23511
  };
21647
- schema.$ref = refCounter;
23512
+ schema.$ref = refPointer;
21648
23513
  }
21649
23514
 
21650
23515
  Object.values(schema).forEach(function (value) {
@@ -21653,11 +23518,14 @@ var SchemaLoader = /*#__PURE__*/function () {
21653
23518
  if (Array.isArray(value)) {
21654
23519
  Object.values(value).forEach(function (e) {
21655
23520
  if (e && _typeof(e) === 'object') {
21656
- mergeRefs(_this11._getExternalRefs(e, fetchUrl));
23521
+ mergeRefs(_this9._getExternalRefs(e, fetchUrl, firstIteration));
21657
23522
  }
21658
23523
  });
21659
23524
  } else {
21660
- mergeRefs(_this11._getExternalRefs(value, fetchUrl));
23525
+ // Merge Ref if it's not a Pointer
23526
+ if (!value.$ref || !(typeof value.$ref === 'string' && value.$ref.startsWith('#'))) {
23527
+ mergeRefs(_this9._getExternalRefs(value, fetchUrl, firstIteration));
23528
+ }
21661
23529
  }
21662
23530
  });
21663
23531
 
@@ -21701,147 +23569,279 @@ var SchemaLoader = /*#__PURE__*/function () {
21701
23569
  value: function _isUniformResourceName(uri) {
21702
23570
  return uri.substr(0, 4) === 'urn:';
21703
23571
  }
21704
- }, {
21705
- key: "_loadExternalRefs",
21706
- value: function _loadExternalRefs(schema, callback, fetchUrl, fileBase) {
21707
- var _this12 = this;
21708
-
21709
- var refs = this._getExternalRefs(schema, fetchUrl);
21710
-
21711
- var done = false;
21712
- var waiting = 0;
21713
- Object.keys(refs).forEach(function (uri) {
21714
- if (_this12.refs[uri]) return;
21715
-
21716
- if (_this12._isUniformResourceName(uri)) {
21717
- _this12.refs[uri] = 'loading';
21718
- waiting++;
21719
- var urnResolver = _this12.options.urn_resolver;
21720
- var urn = uri;
21721
-
21722
- if (typeof urnResolver !== 'function') {
21723
- // eslint-disable-next-line no-console
21724
- console.log("No \"urn_resolver\" callback defined to resolve \"".concat(urn, "\""));
21725
- throw new Error("Must set urn_resolver option to a callback to resolve ".concat(urn));
21726
- } // theoretically a URN can contain a JSON pointer
21727
-
21728
-
21729
- if (urn.indexOf('#') > 0) urn = urn.substr(0, urn.indexOf('#'));
21730
- var response;
21731
-
21732
- try {
21733
- response = urnResolver(urn, function (responseText) {
21734
- try {
21735
- schema = JSON.parse(responseText);
21736
- } catch (e) {
21737
- // eslint-disable-next-line no-console
21738
- console.log(e);
21739
- throw new Error("Failed to parse external ref ".concat(urn));
21740
- }
21741
-
21742
- if (!(typeof schema === 'boolean' || _typeof(schema) === 'object') || schema === null || Array.isArray(schema)) {
21743
- throw new Error("External ref does not contain a valid schema - ".concat(urn));
21744
- }
21745
-
21746
- _this12.refs[uri] = schema;
23572
+ /**
23573
+ * Loads external references via AJAX.
23574
+ *
23575
+ * Will fail if this.options.ajax is not set to true.
23576
+ *
23577
+ * @param {object} schema - JSON Schema with external references.
23578
+ * @param {string} fetchUrl - Base path from which to store the definitions.
23579
+ * Typically the URI of the schema.
23580
+ * @param {string} fileBase - The base URL from which to load relative paths.
23581
+ * Typically the URI of the schema minus filename, with trailing slash.
23582
+ * @param {boolean} firstIteration - Is it the first time we load this function? Help making difference between external ref vs internal pointer
23583
+ *
23584
+ * @return {boolean}
23585
+ * @throws Error
23586
+ */
21747
23587
 
21748
- _this12._getDefinitions(schema, "".concat(urn, "#/definitions/"));
23588
+ }, {
23589
+ key: "_asyncloadExternalRefs",
23590
+ value: function () {
23591
+ var _asyncloadExternalRefs2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(schema, fetchUrl, fileBase) {
23592
+ var _this10 = this;
21749
23593
 
21750
- _this12._loadExternalRefs(schema, function () {
21751
- waiting--;
23594
+ var firstIteration,
23595
+ refs,
23596
+ waiting,
23597
+ _loop,
23598
+ _i2,
23599
+ _Object$keys,
23600
+ _ret,
23601
+ _args3 = arguments;
23602
+
23603
+ return regeneratorRuntime.wrap(function _callee2$(_context3) {
23604
+ while (1) {
23605
+ switch (_context3.prev = _context3.next) {
23606
+ case 0:
23607
+ firstIteration = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : false;
23608
+ refs = this._getExternalRefs(schema, fetchUrl, firstIteration);
23609
+ waiting = 0; // Loop into all schema references
23610
+
23611
+ _loop = /*#__PURE__*/regeneratorRuntime.mark(function _loop() {
23612
+ var uri, urnResolver, urn, _response, _externalSchema, url, response, externalSchema, newfileBase, pathItems;
23613
+
23614
+ return regeneratorRuntime.wrap(function _loop$(_context2) {
23615
+ while (1) {
23616
+ switch (_context2.prev = _context2.next) {
23617
+ case 0:
23618
+ uri = _Object$keys[_i2];
23619
+
23620
+ if (!(typeof uri === 'undefined')) {
23621
+ _context2.next = 3;
23622
+ break;
23623
+ }
23624
+
23625
+ return _context2.abrupt("return", "continue");
23626
+
23627
+ case 3:
23628
+ if (!_this10.refs[uri]) {
23629
+ _context2.next = 5;
23630
+ break;
23631
+ }
23632
+
23633
+ return _context2.abrupt("return", "continue");
23634
+
23635
+ case 5:
23636
+ if (!_this10._isUniformResourceName(uri)) {
23637
+ _context2.next = 40;
23638
+ break;
23639
+ }
23640
+
23641
+ _this10.refs[uri] = 'loading';
23642
+ waiting++;
23643
+ urnResolver = _this10.options.urn_resolver;
23644
+ urn = uri;
23645
+
23646
+ if (!(typeof urnResolver !== 'function')) {
23647
+ _context2.next = 13;
23648
+ break;
23649
+ }
23650
+
23651
+ // eslint-disable-next-line no-console
23652
+ console.log("No \"urn_resolver\" callback defined to resolve \"".concat(urn, "\""));
23653
+ throw new Error("Must set urn_resolver option to a callback to resolve ".concat(urn));
23654
+
23655
+ case 13:
23656
+ // theoretically a URN can contain a JSON pointer
23657
+ if (urn.indexOf('#') > 0) urn = urn.substr(0, urn.indexOf('#'));
23658
+ _context2.prev = 14;
23659
+ _context2.next = 17;
23660
+ return urnResolver(urn);
23661
+
23662
+ case 17:
23663
+ _response = _context2.sent;
23664
+ _context2.prev = 18;
23665
+ _externalSchema = JSON.parse(_response);
23666
+ _context2.next = 26;
23667
+ break;
23668
+
23669
+ case 22:
23670
+ _context2.prev = 22;
23671
+ _context2.t0 = _context2["catch"](18);
23672
+ // eslint-disable-next-line no-console
23673
+ console.log(_context2.t0);
23674
+ throw new Error("Failed to parse external ref ".concat(urn));
23675
+
23676
+ case 26:
23677
+ if (!(!(typeof _externalSchema === 'boolean' || _typeof(_externalSchema) === 'object') || _externalSchema === null || Array.isArray(_externalSchema))) {
23678
+ _context2.next = 28;
23679
+ break;
23680
+ }
23681
+
23682
+ throw new Error("External ref does not contain a valid schema - ".concat(urn));
23683
+
23684
+ case 28:
23685
+ _this10.refs[uri] = _externalSchema;
23686
+ _context2.next = 31;
23687
+ return _this10._asyncloadExternalRefs(_externalSchema, uri, fileBase);
23688
+
23689
+ case 31:
23690
+ _context2.next = 37;
23691
+ break;
23692
+
23693
+ case 33:
23694
+ _context2.prev = 33;
23695
+ _context2.t1 = _context2["catch"](14);
23696
+ // eslint-disable-next-line no-console
23697
+ console.log(_context2.t1);
23698
+ throw new Error("Failed to parse external ref ".concat(urn));
23699
+
23700
+ case 37:
23701
+ if (!(typeof _response === 'boolean')) {
23702
+ _context2.next = 39;
23703
+ break;
23704
+ }
23705
+
23706
+ throw new Error("External ref does not contain a valid schema - ".concat(urn));
23707
+
23708
+ case 39:
23709
+ return _context2.abrupt("return", "continue");
23710
+
23711
+ case 40:
23712
+ if (_this10.options.ajax) {
23713
+ _context2.next = 42;
23714
+ break;
23715
+ }
23716
+
23717
+ throw new Error("Must set ajax option to true to load external ref ".concat(uri));
23718
+
23719
+ case 42:
23720
+ waiting++;
23721
+ url = _this10._joinUrl(uri, fileBase);
23722
+ _context2.next = 46;
23723
+ return new Promise(function (resolve) {
23724
+ var r = new XMLHttpRequest();
23725
+ if (_this10.options.ajaxCredentials) r.withCredentials = _this10.options.ajaxCredentials;
23726
+ r.overrideMimeType('application/json');
23727
+ r.open('GET', url, true);
23728
+
23729
+ r.onload = function () {
23730
+ resolve(r);
23731
+ };
23732
+
23733
+ r.onerror = function (e) {
23734
+ resolve(undefined);
23735
+ };
23736
+
23737
+ r.send();
23738
+ });
23739
+
23740
+ case 46:
23741
+ response = _context2.sent;
23742
+
23743
+ if (!(typeof response === 'undefined')) {
23744
+ _context2.next = 49;
23745
+ break;
23746
+ }
23747
+
23748
+ throw new Error("Failed to fetch ref via ajax - ".concat(uri));
23749
+
23750
+ case 49:
23751
+ externalSchema = void 0;
23752
+ _context2.prev = 50;
23753
+ externalSchema = JSON.parse(response.responseText);
23754
+ _context2.next = 58;
23755
+ break;
23756
+
23757
+ case 54:
23758
+ _context2.prev = 54;
23759
+ _context2.t2 = _context2["catch"](50);
23760
+ // eslint-disable-next-line no-console
23761
+ console.log(_context2.t2);
23762
+ throw new Error("Failed to parse external ref ".concat(url));
23763
+
23764
+ case 58:
23765
+ if (!(!(typeof externalSchema === 'boolean' || _typeof(externalSchema) === 'object') || externalSchema === null || Array.isArray(externalSchema))) {
23766
+ _context2.next = 60;
23767
+ break;
23768
+ }
23769
+
23770
+ throw new Error("External ref does not contain a valid schema - ".concat(url));
23771
+
23772
+ case 60:
23773
+ _this10.refs[uri] = externalSchema;
23774
+ newfileBase = _this10._getFileBaseFromFileLocation(url); // Add leading slash.
23775
+
23776
+ if (url !== uri) {
23777
+ pathItems = url.split('/');
23778
+ url = (uri.substr(0, 1) === '/' ? '/' : '') + pathItems.pop();
23779
+ }
23780
+
23781
+ _context2.next = 65;
23782
+ return _this10._asyncloadExternalRefs(externalSchema, url, newfileBase);
23783
+
23784
+ case 65:
23785
+ case "end":
23786
+ return _context2.stop();
23787
+ }
23788
+ }
23789
+ }, _loop, null, [[14, 33], [18, 22], [50, 54]]);
23790
+ });
23791
+ _i2 = 0, _Object$keys = Object.keys(refs);
21752
23792
 
21753
- if (done && !waiting) {
21754
- callback();
23793
+ case 5:
23794
+ if (!(_i2 < _Object$keys.length)) {
23795
+ _context3.next = 13;
23796
+ break;
21755
23797
  }
21756
- }, uri, '/');
21757
- });
21758
- } catch (e) {
21759
- // eslint-disable-next-line no-console
21760
- console.log(e);
21761
- throw new Error("Failed to parse external ref ".concat(urn));
21762
- }
21763
-
21764
- if (typeof response !== 'boolean') {
21765
- throw new Error("External ref does not contain a valid schema - ".concat(urn));
21766
- } else if (response !== true) {
21767
- throw new Error("External ref did not resolve - ".concat(urn));
21768
- }
21769
-
21770
- return;
21771
- }
21772
-
21773
- if (!_this12.options.ajax) throw new Error("Must set ajax option to true to load external ref ".concat(uri));
21774
- _this12.refs[uri] = 'loading';
21775
- waiting++;
21776
-
21777
- var url = _this12._joinUrl(uri, fileBase);
21778
23798
 
21779
- var r = new XMLHttpRequest();
21780
- r.overrideMimeType('application/json');
21781
- r.open('GET', url, true);
21782
- if (_this12.options.ajaxCredentials) r.withCredentials = _this12.options.ajaxCredentials;
23799
+ return _context3.delegateYield(_loop(), "t0", 7);
21783
23800
 
21784
- r.onreadystatechange = function () {
21785
- if (r.readyState !== 4) return;
21786
- /* Request succeeded */
23801
+ case 7:
23802
+ _ret = _context3.t0;
21787
23803
 
21788
- if (r.status === 200) {
21789
- var _schema2;
21790
-
21791
- try {
21792
- _schema2 = JSON.parse(r.responseText);
21793
- } catch (e) {
21794
- // eslint-disable-next-line no-console
21795
- console.log(e);
21796
- throw new Error("Failed to parse external ref ".concat(url));
21797
- }
23804
+ if (!(_ret === "continue")) {
23805
+ _context3.next = 10;
23806
+ break;
23807
+ }
21798
23808
 
21799
- if (!(typeof _schema2 === 'boolean' || _typeof(_schema2) === 'object') || _schema2 === null || Array.isArray(_schema2)) {
21800
- throw new Error("External ref does not contain a valid schema - ".concat(url));
21801
- }
23809
+ return _context3.abrupt("continue", 10);
21802
23810
 
21803
- _this12.refs[uri] = _schema2;
23811
+ case 10:
23812
+ _i2++;
23813
+ _context3.next = 5;
23814
+ break;
21804
23815
 
21805
- var _fileBase = _this12._getFileBaseFromFileLocation(url); // add leading slash
23816
+ case 13:
23817
+ if (waiting) {
23818
+ _context3.next = 15;
23819
+ break;
23820
+ }
21806
23821
 
23822
+ return _context3.abrupt("return", true);
21807
23823
 
21808
- if (url !== uri) {
21809
- var pathItems = url.split('/');
21810
- url = (uri.substr(0, 1) === '/' ? '/' : '') + pathItems.pop();
23824
+ case 15:
23825
+ case "end":
23826
+ return _context3.stop();
21811
23827
  }
21812
-
21813
- _this12._getDefinitions(_schema2, "".concat(url, "#/definitions/"));
21814
-
21815
- _this12._loadExternalRefs(_schema2, function () {
21816
- waiting--;
21817
-
21818
- if (done && !waiting) {
21819
- callback();
21820
- }
21821
- }, url, _fileBase);
21822
- } else {
21823
- /* Request failed */
21824
- // eslint-disable-next-line no-console
21825
- console.log(r);
21826
- throw new Error("Failed to fetch ref via ajax - ".concat(uri));
21827
23828
  }
21828
- };
21829
-
21830
- r.send();
21831
- });
21832
- done = true;
23829
+ }, _callee2, this);
23830
+ }));
21833
23831
 
21834
- if (!waiting) {
21835
- callback();
23832
+ function _asyncloadExternalRefs(_x4, _x5, _x6) {
23833
+ return _asyncloadExternalRefs2.apply(this, arguments);
21836
23834
  }
21837
- }
23835
+
23836
+ return _asyncloadExternalRefs;
23837
+ }()
21838
23838
  }, {
21839
23839
  key: "extendSchemas",
21840
23840
  value: function extendSchemas(obj1, obj2) {
21841
- var _this13 = this;
23841
+ var _this11 = this;
21842
23842
 
21843
- obj1 = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["extend"])({}, obj1);
21844
- obj2 = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_28__["extend"])({}, obj2);
23843
+ obj1 = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["extend"])({}, obj1);
23844
+ obj2 = Object(_utilities_js__WEBPACK_IMPORTED_MODULE_30__["extend"])({}, obj2);
21845
23845
  var extended = {};
21846
23846
 
21847
23847
  var isRequiredOrDefaultProperties = function isRequiredOrDefaultProperties(prop, val) {
@@ -21860,7 +23860,7 @@ var SchemaLoader = /*#__PURE__*/function () {
21860
23860
  mergeType(val);
21861
23861
  } else if (_typeof(val) === 'object' && !Array.isArray(val) && val !== null) {
21862
23862
  /* Objects should be recursively merged */
21863
- extended[prop] = _this13.extendSchemas(val, obj2[prop]);
23863
+ extended[prop] = _this11.extendSchemas(val, obj2[prop]);
21864
23864
  } else {
21865
23865
  /* Otherwise, use the first value */
21866
23866
  extended[prop] = val;
@@ -21942,6 +23942,7 @@ __webpack_require__.r(__webpack_exports__);
21942
23942
  ".je-modal": "background-color:white;border:1px%20solid%20black;box-shadow:3px%203px%20black;position:absolute;z-index:10",
21943
23943
  ".je-infobutton-icon": "font-size:16px;font-weight:bold;padding:0.25rem;position:relative;display:inline-block",
21944
23944
  ".je-infobutton-tooltip": "font-size:12px;font-weight:normal;font-family:sans-serif;visibility:hidden;background-color:rgba(50%2C%2050%2C%2050%2C%200.75);margin:0%200.25rem;color:%23fafafa;padding:0.5rem%201rem;border-radius:0.25rem;width:20rem;position:absolute",
23945
+ ".je-not-loaded": "pointer-events:none",
21945
23946
  ".je-header": "display:inline-block",
21946
23947
  ".je-upload-preview img": "float:left;margin:0%200.5rem%200.5rem%200;max-width:100%25;max-height:5rem",
21947
23948
  ".je-checkbox": "display:inline-block;width:auto",
@@ -22658,7 +24659,6 @@ var AbstractTheme = /*#__PURE__*/function () {
22658
24659
  key: "getRangeOutput",
22659
24660
  value: function getRangeOutput(input, startvalue) {
22660
24661
  var output = document.createElement('output');
22661
- output.value = startvalue || 0;
22662
24662
 
22663
24663
  var updateOutput = function updateOutput(e) {
22664
24664
  output.value = e.currentTarget.value;
@@ -23398,6 +25398,7 @@ var bootstrap3Theme = /*#__PURE__*/function (_AbstractTheme) {
23398
25398
 
23399
25399
  if (label && (input.type === 'checkbox' || input.type === 'radio')) {
23400
25400
  group.classList.add(input.type);
25401
+ if (infoText) label.appendChild(infoText);
23401
25402
  label.insertBefore(input, label.firstChild);
23402
25403
  group.appendChild(label);
23403
25404
  } else {
@@ -25474,7 +27475,7 @@ var spectreTheme = /*#__PURE__*/function (_AbstractTheme) {
25474
27475
 
25475
27476
  var icon = document.createElement('i');
25476
27477
  icon.classList.add('form-icon');
25477
- el.classList.add('form-checkbox', 'mr-5');
27478
+ el.classList.add('form-checkbox', 'pr-0');
25478
27479
  el.insertBefore(icon, el.firstChild);
25479
27480
  return el;
25480
27481
  }
@@ -25587,6 +27588,7 @@ var spectreTheme = /*#__PURE__*/function (_AbstractTheme) {
25587
27588
 
25588
27589
  if (label && (input.type === 'checkbox' || input.type === 'radio')) {
25589
27590
  group.classList.add(input.type);
27591
+ if (infoText) label.appendChild(infoText);
25590
27592
  label.insertBefore(input, label.firstChild);
25591
27593
  group.appendChild(label);
25592
27594
  } else {
@@ -26495,7 +28497,7 @@ tailwindTheme.rules = _tailwind_css_js__WEBPACK_IMPORTED_MODULE_17__["default"];
26495
28497
  /*!**************************!*\
26496
28498
  !*** ./src/utilities.js ***!
26497
28499
  \**************************/
26498
- /*! exports provided: isPlainObject, deepCopy, extend, trigger, getShadowParent, hasOwnProperty, isNumber, isInteger */
28500
+ /*! exports provided: isPlainObject, deepCopy, extend, trigger, getShadowParent, hasOwnProperty, isNumber, isInteger, generateUUID */
26499
28501
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
26500
28502
 
26501
28503
  "use strict";
@@ -26508,6 +28510,7 @@ __webpack_require__.r(__webpack_exports__);
26508
28510
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasOwnProperty", function() { return hasOwnProperty; });
26509
28511
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isNumber", function() { return isNumber; });
26510
28512
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isInteger", function() { return isInteger; });
28513
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "generateUUID", function() { return generateUUID; });
26511
28514
  /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ "./node_modules/core-js/modules/es.array.is-array.js");
26512
28515
  /* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_0__);
26513
28516
  /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
@@ -26532,18 +28535,21 @@ __webpack_require__.r(__webpack_exports__);
26532
28535
  /* harmony import */ var core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_parse_float_js__WEBPACK_IMPORTED_MODULE_10__);
26533
28536
  /* harmony import */ var core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.parse-int.js */ "./node_modules/core-js/modules/es.parse-int.js");
26534
28537
  /* harmony import */ var core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_parse_int_js__WEBPACK_IMPORTED_MODULE_11__);
26535
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
26536
- /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_12__);
26537
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
26538
- /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_13__);
26539
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
26540
- /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_14__);
26541
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
26542
- /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
26543
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
26544
- /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
26545
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
26546
- /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
28538
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.string.replace.js */ "./node_modules/core-js/modules/es.string.replace.js");
28539
+ /* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_12__);
28540
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
28541
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_13__);
28542
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ "./node_modules/core-js/modules/es.symbol.description.js");
28543
+ /* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_14__);
28544
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ "./node_modules/core-js/modules/es.symbol.iterator.js");
28545
+ /* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
28546
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ "./node_modules/core-js/modules/es.array.iterator.js");
28547
+ /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_16__);
28548
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ "./node_modules/core-js/modules/es.string.iterator.js");
28549
+ /* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_17__);
28550
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ "./node_modules/core-js/modules/web.dom-collections.iterator.js");
28551
+ /* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_18__);
28552
+
26547
28553
 
26548
28554
 
26549
28555
 
@@ -26647,6 +28653,25 @@ function isInteger(value) {
26647
28653
  var v = parseInt(value);
26648
28654
  return match !== null && !isNaN(v) && isFinite(v);
26649
28655
  }
28656
+ /* This function generates a uuid.
28657
+ https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
28658
+ TODO: It will be probably better to move to: https://www.npmjs.com/package/uuid
28659
+ */
28660
+
28661
+ function generateUUID() {
28662
+ var d = new Date().getTime();
28663
+
28664
+ if (typeof performance !== 'undefined' && typeof performance.now === 'function') {
28665
+ d += performance.now();
28666
+ /* use high-precision timer if available */
28667
+ }
28668
+
28669
+ return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
28670
+ var r = (d + Math.random() * 16) % 16 | 0;
28671
+ d = Math.floor(d / 16);
28672
+ return (c === 'x' ? r : r & 0x3 | 0x8).toString(16);
28673
+ });
28674
+ }
26650
28675
 
26651
28676
  /***/ }),
26652
28677
 
@@ -26818,7 +28843,7 @@ var Validator = /*#__PURE__*/function () {
26818
28843
  return [{
26819
28844
  path: path,
26820
28845
  property: 'const',
26821
- message: this.translate('error_const')
28846
+ message: this.translate('error_const', null, schema)
26822
28847
  }];
26823
28848
  }
26824
28849
 
@@ -26834,7 +28859,7 @@ var Validator = /*#__PURE__*/function () {
26834
28859
  return [{
26835
28860
  path: path,
26836
28861
  property: 'enum',
26837
- message: this.translate('error_enum')
28862
+ message: this.translate('error_enum', null, schema)
26838
28863
  }];
26839
28864
  }
26840
28865
 
@@ -26871,7 +28896,7 @@ var Validator = /*#__PURE__*/function () {
26871
28896
  return [{
26872
28897
  path: path,
26873
28898
  property: 'anyOf',
26874
- message: this.translate('error_anyOf')
28899
+ message: this.translate('error_anyOf', null, schema)
26875
28900
  }];
26876
28901
  }
26877
28902
 
@@ -26901,7 +28926,7 @@ var Validator = /*#__PURE__*/function () {
26901
28926
  errors.push({
26902
28927
  path: path,
26903
28928
  property: 'oneOf',
26904
- message: this.translate('error_oneOf', [valid])
28929
+ message: this.translate('error_oneOf', [valid], schema)
26905
28930
  });
26906
28931
  errors.push.apply(errors, oneofErrors);
26907
28932
  }
@@ -26913,7 +28938,7 @@ var Validator = /*#__PURE__*/function () {
26913
28938
  return [{
26914
28939
  path: path,
26915
28940
  property: 'not',
26916
- message: this.translate('error_not')
28941
+ message: this.translate('error_not', null, schema)
26917
28942
  }];
26918
28943
  }
26919
28944
 
@@ -26932,7 +28957,7 @@ var Validator = /*#__PURE__*/function () {
26932
28957
  return [{
26933
28958
  path: path,
26934
28959
  property: 'type',
26935
- message: this.translate('error_type_union')
28960
+ message: this.translate('error_type_union', null, schema)
26936
28961
  }];
26937
28962
  }
26938
28963
  } else {
@@ -26945,14 +28970,14 @@ var Validator = /*#__PURE__*/function () {
26945
28970
  return [{
26946
28971
  path: path,
26947
28972
  property: 'type',
26948
- message: this.translate('error_type', [schema.format])
28973
+ message: this.translate('error_type', [schema.format], schema)
26949
28974
  }];
26950
28975
  }
26951
28976
  } else if (!this._checkType(schema.type, value)) {
26952
28977
  return [{
26953
28978
  path: path,
26954
28979
  property: 'type',
26955
- message: this.translate('error_type', [schema.type])
28980
+ message: this.translate('error_type', [schema.type], schema)
26956
28981
  }];
26957
28982
  }
26958
28983
  }
@@ -26972,7 +28997,7 @@ var Validator = /*#__PURE__*/function () {
26972
28997
  return [{
26973
28998
  path: path,
26974
28999
  property: 'disallow',
26975
- message: this.translate('error_disallow_union')
29000
+ message: this.translate('error_disallow_union', null, schema)
26976
29001
  }];
26977
29002
  }
26978
29003
  } else {
@@ -26981,7 +29006,7 @@ var Validator = /*#__PURE__*/function () {
26981
29006
  return [{
26982
29007
  path: path,
26983
29008
  property: 'disallow',
26984
- message: this.translate('error_disallow', [schema.disallow])
29009
+ message: this.translate('error_disallow', [schema.disallow], schema)
26985
29010
  }];
26986
29011
  }
26987
29012
  }
@@ -27012,7 +29037,7 @@ var Validator = /*#__PURE__*/function () {
27012
29037
  return [{
27013
29038
  path: path,
27014
29039
  property: 'maximum',
27015
- message: this.translate(schema.exclusiveMaximum ? 'error_maximum_excl' : 'error_maximum_incl', [schema.maximum])
29040
+ message: this.translate(schema.exclusiveMaximum ? 'error_maximum_excl' : 'error_maximum_incl', [schema.maximum], schema)
27016
29041
  }];
27017
29042
  }
27018
29043
 
@@ -27034,7 +29059,7 @@ var Validator = /*#__PURE__*/function () {
27034
29059
  return [{
27035
29060
  path: path,
27036
29061
  property: 'minimum',
27037
- message: this.translate(schema.exclusiveMinimum ? 'error_minimum_excl' : 'error_minimum_incl', [schema.minimum])
29062
+ message: this.translate(schema.exclusiveMinimum ? 'error_minimum_excl' : 'error_minimum_incl', [schema.minimum], schema)
27038
29063
  }];
27039
29064
  }
27040
29065
 
@@ -27049,7 +29074,7 @@ var Validator = /*#__PURE__*/function () {
27049
29074
  errors.push({
27050
29075
  path: path,
27051
29076
  property: 'maxLength',
27052
- message: this.translate('error_maxLength', [schema.maxLength])
29077
+ message: this.translate('error_maxLength', [schema.maxLength], schema)
27053
29078
  });
27054
29079
  }
27055
29080
 
@@ -27062,7 +29087,7 @@ var Validator = /*#__PURE__*/function () {
27062
29087
  return [{
27063
29088
  path: path,
27064
29089
  property: 'minLength',
27065
- message: this.translate(schema.minLength === 1 ? 'error_notempty' : 'error_minLength', [schema.minLength])
29090
+ message: this.translate(schema.minLength === 1 ? 'error_notempty' : 'error_minLength', [schema.minLength], schema)
27066
29091
  }];
27067
29092
  }
27068
29093
 
@@ -27075,7 +29100,7 @@ var Validator = /*#__PURE__*/function () {
27075
29100
  return [{
27076
29101
  path: path,
27077
29102
  property: 'pattern',
27078
- message: schema.options && schema.options.patternmessage ? schema.options.patternmessage : this.translate('error_pattern', [schema.pattern])
29103
+ message: schema.options && schema.options.patternmessage ? schema.options.patternmessage : this.translate('error_pattern', [schema.pattern], schema)
27079
29104
  }];
27080
29105
  }
27081
29106
 
@@ -27108,7 +29133,7 @@ var Validator = /*#__PURE__*/function () {
27108
29133
  errors.push({
27109
29134
  path: path,
27110
29135
  property: 'additionalItems',
27111
- message: this.translate('error_additionalItems')
29136
+ message: this.translate('error_additionalItems', null, schema)
27112
29137
  });
27113
29138
  break;
27114
29139
  /* Default for `additionalItems` is an empty schema */
@@ -27132,7 +29157,7 @@ var Validator = /*#__PURE__*/function () {
27132
29157
  return [{
27133
29158
  path: path,
27134
29159
  property: 'maxItems',
27135
- message: this.translate('error_maxItems', [schema.maxItems])
29160
+ message: this.translate('error_maxItems', [schema.maxItems], schema)
27136
29161
  }];
27137
29162
  }
27138
29163
 
@@ -27143,7 +29168,7 @@ var Validator = /*#__PURE__*/function () {
27143
29168
  return [{
27144
29169
  path: path,
27145
29170
  property: 'minItems',
27146
- message: this.translate('error_minItems', [schema.minItems])
29171
+ message: this.translate('error_minItems', [schema.minItems], schema)
27147
29172
  }];
27148
29173
  }
27149
29174
 
@@ -27159,7 +29184,7 @@ var Validator = /*#__PURE__*/function () {
27159
29184
  return [{
27160
29185
  path: path,
27161
29186
  property: 'uniqueItems',
27162
- message: this.translate('error_uniqueItems')
29187
+ message: this.translate('error_uniqueItems', null, schema)
27163
29188
  }];
27164
29189
  }
27165
29190
 
@@ -27175,7 +29200,7 @@ var Validator = /*#__PURE__*/function () {
27175
29200
  return [{
27176
29201
  path: path,
27177
29202
  property: 'maxProperties',
27178
- message: this.translate('error_maxProperties', [schema.maxProperties])
29203
+ message: this.translate('error_maxProperties', [schema.maxProperties], schema)
27179
29204
  }];
27180
29205
  }
27181
29206
 
@@ -27186,7 +29211,7 @@ var Validator = /*#__PURE__*/function () {
27186
29211
  return [{
27187
29212
  path: path,
27188
29213
  property: 'minProperties',
27189
- message: this.translate('error_minProperties', [schema.minProperties])
29214
+ message: this.translate('error_minProperties', [schema.minProperties], schema)
27190
29215
  }];
27191
29216
  }
27192
29217
 
@@ -27210,7 +29235,7 @@ var Validator = /*#__PURE__*/function () {
27210
29235
  errors.push({
27211
29236
  path: path,
27212
29237
  property: 'required',
27213
- message: _this8.translate('error_required', [schema && schema.properties && schema.properties[e] && schema.properties[e].title ? schema.properties[e].title : e])
29238
+ message: _this8.translate('error_required', [schema && schema.properties && schema.properties[e] && schema.properties[e].title ? schema.properties[e].title : e], schema)
27214
29239
  });
27215
29240
  });
27216
29241
  }
@@ -27279,7 +29304,7 @@ var Validator = /*#__PURE__*/function () {
27279
29304
  errors.push({
27280
29305
  path: path,
27281
29306
  property: 'propertyNames',
27282
- message: _this11.translate('error_property_names_false', [k])
29307
+ message: _this11.translate('error_property_names_false', [k], schema)
27283
29308
  });
27284
29309
  return "break";
27285
29310
  }
@@ -27352,7 +29377,7 @@ var Validator = /*#__PURE__*/function () {
27352
29377
  errors.push({
27353
29378
  path: path,
27354
29379
  property: 'propertyNames',
27355
- message: _this11.translate('error_property_names_unsupported', [j])
29380
+ message: _this11.translate('error_property_names_unsupported', [j], schema)
27356
29381
  });
27357
29382
  return false;
27358
29383
  }
@@ -27360,7 +29385,7 @@ var Validator = /*#__PURE__*/function () {
27360
29385
  errors.push({
27361
29386
  path: path,
27362
29387
  property: 'propertyNames',
27363
- message: _this11.translate(msg, [k])
29388
+ message: _this11.translate(msg, [k], schema)
27364
29389
  });
27365
29390
  return false;
27366
29391
  });
@@ -27389,7 +29414,7 @@ var Validator = /*#__PURE__*/function () {
27389
29414
  errors.push({
27390
29415
  path: path,
27391
29416
  property: 'additionalProperties',
27392
- message: this.translate('error_additional_properties', [k])
29417
+ message: this.translate('error_additional_properties', [k], schema)
27393
29418
  });
27394
29419
  break;
27395
29420
  /* Allowed */
@@ -27424,7 +29449,7 @@ var Validator = /*#__PURE__*/function () {
27424
29449
  errors.push({
27425
29450
  path: path,
27426
29451
  property: 'dependencies',
27427
- message: _this12.translate('error_dependency', [d])
29452
+ message: _this12.translate('error_dependency', [d], schema)
27428
29453
  });
27429
29454
  }
27430
29455
  });
@@ -27588,7 +29613,7 @@ var Validator = /*#__PURE__*/function () {
27588
29613
  return [{
27589
29614
  path: path,
27590
29615
  property: 'required',
27591
- message: this.translate('error_notset')
29616
+ message: this.translate('error_notset', null, schema)
27592
29617
  }];
27593
29618
  }
27594
29619
 
@@ -27677,7 +29702,7 @@ var Validator = /*#__PURE__*/function () {
27677
29702
  return [{
27678
29703
  path: path,
27679
29704
  property: 'format',
27680
- message: this.translate('error_pattern', ['^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$'])
29705
+ message: this.translate('error_pattern', ['^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$'], schema)
27681
29706
  }];
27682
29707
  }
27683
29708
 
@@ -27703,7 +29728,7 @@ var Validator = /*#__PURE__*/function () {
27703
29728
  return [{
27704
29729
  path: path,
27705
29730
  property: schema.multipleOf ? 'multipleOf' : 'divisibleBy',
27706
- message: this.translate('error_multipleOf', [divisor])
29731
+ message: this.translate('error_multipleOf', [divisor], schema)
27707
29732
  }];
27708
29733
  }
27709
29734
 
@@ -27721,14 +29746,14 @@ var Validator = /*#__PURE__*/function () {
27721
29746
  return [{
27722
29747
  path: path,
27723
29748
  property: 'format',
27724
- message: _this15.translate('error_invalid_epoch')
29749
+ message: _this15.translate('error_invalid_epoch', null, schema)
27725
29750
  }];
27726
29751
  } else if (value !== Math.abs(parseInt(value))) {
27727
29752
  /* not much to check for, so we assume value is ok if it's a positive number */
27728
29753
  return [{
27729
29754
  path: path,
27730
29755
  property: 'format',
27731
- message: _this15.translate("error_".concat(schema.format.replace(/-/g, '_')), [dateFormat])
29756
+ message: _this15.translate("error_".concat(schema.format.replace(/-/g, '_')), [dateFormat], schema)
27732
29757
  }];
27733
29758
  }
27734
29759
 
@@ -27761,7 +29786,7 @@ var Validator = /*#__PURE__*/function () {
27761
29786
  return [{
27762
29787
  path: path,
27763
29788
  property: 'format',
27764
- message: _this15.translate("error_".concat(editor.format.replace(/-/g, '_')), [errorDateFormat])
29789
+ message: _this15.translate("error_".concat(editor.format.replace(/-/g, '_')), [errorDateFormat], schema)
27765
29790
  }];
27766
29791
  }
27767
29792
  }
@@ -27790,7 +29815,7 @@ var Validator = /*#__PURE__*/function () {
27790
29815
  return [{
27791
29816
  path: path,
27792
29817
  property: 'format',
27793
- message: this.translate("error_".concat(schema.format.replace(/-/g, '_')), [dateFormat])
29818
+ message: this.translate("error_".concat(schema.format.replace(/-/g, '_')), [dateFormat], schema)
27794
29819
  }];
27795
29820
  }
27796
29821
  } else if (editor) {