indexeddbshim 15.2.0 → 16.0.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.
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/dist/DOMException.d.ts +2 -2
- package/dist/DOMException.d.ts.map +1 -1
- package/dist/DOMStringList.d.ts.map +1 -1
- package/dist/Event.d.ts +1 -1
- package/dist/Event.d.ts.map +1 -1
- package/dist/IDBCursor.d.ts +1 -1
- package/dist/IDBCursor.d.ts.map +1 -1
- package/dist/IDBDatabase.d.ts.map +1 -1
- package/dist/IDBFactory.d.ts +1 -1
- package/dist/IDBFactory.d.ts.map +1 -1
- package/dist/IDBIndex.d.ts +3 -3
- package/dist/IDBIndex.d.ts.map +1 -1
- package/dist/IDBKeyRange.d.ts +2 -2
- package/dist/IDBKeyRange.d.ts.map +1 -1
- package/dist/IDBObjectStore.d.ts +3 -3
- package/dist/IDBObjectStore.d.ts.map +1 -1
- package/dist/IDBTransaction.d.ts.map +1 -1
- package/dist/Key.d.ts +7 -7
- package/dist/Key.d.ts.map +1 -1
- package/dist/Sca.d.ts +1 -1
- package/dist/Sca.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +11 -12
- package/dist/indexeddbshim-Key.js.map +1 -1
- package/dist/indexeddbshim-Key.min.js +2 -2
- package/dist/indexeddbshim-Key.min.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +794 -696
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +301 -489
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +4 -2
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +794 -696
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +301 -489
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +4 -2
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +301 -489
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +4 -2
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/node.d.ts.map +1 -1
- package/dist/setGlobalVars.d.ts +1 -1
- package/dist/setGlobalVars.d.ts.map +1 -1
- package/dist/unicode-regex.d.ts +2 -2
- package/dist/unicode-regex.d.ts.map +1 -1
- package/dist/util.d.ts +1 -1
- package/dist/util.d.ts.map +1 -1
- package/package.json +27 -27
- package/src/DOMException.js +0 -1
- package/src/DOMStringList.js +0 -1
- package/src/IDBCursor.js +1 -1
- package/src/IDBFactory.js +2 -3
- package/src/IDBIndex.js +1 -2
- package/src/IDBKeyRange.js +1 -0
- package/src/IDBObjectStore.js +0 -1
- package/src/IDBTransaction.js +0 -1
- package/src/Key.js +1 -1
- package/src/setGlobalVars.js +1 -1
- package/src/unicode-regex.js +12 -3
- package/src/util.js +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v16.0.0 - 6/14/2025 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
function _defineProperties(e, r) {
|
|
56
56
|
for (var t = 0; t < r.length; t++) {
|
|
57
57
|
var o = r[t];
|
|
58
|
-
o.enumerable = o.enumerable ||
|
|
58
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey$1(o.key), o);
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
function _createClass$1(e, r, t) {
|
|
62
62
|
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
63
|
-
writable:
|
|
63
|
+
writable: false
|
|
64
64
|
}), e;
|
|
65
65
|
}
|
|
66
66
|
function _createForOfIteratorHelper(r, e) {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
s: F,
|
|
75
75
|
n: function () {
|
|
76
76
|
return n >= r.length ? {
|
|
77
|
-
done:
|
|
77
|
+
done: true
|
|
78
78
|
} : {
|
|
79
|
-
done:
|
|
79
|
+
done: false,
|
|
80
80
|
value: r[n++]
|
|
81
81
|
};
|
|
82
82
|
},
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
90
90
|
}
|
|
91
91
|
var o,
|
|
92
|
-
a =
|
|
93
|
-
u =
|
|
92
|
+
a = true,
|
|
93
|
+
u = false;
|
|
94
94
|
return {
|
|
95
95
|
s: function () {
|
|
96
96
|
t = t.call(r);
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
return a = r.done, r;
|
|
101
101
|
},
|
|
102
102
|
e: function (r) {
|
|
103
|
-
u =
|
|
103
|
+
u = true, o = r;
|
|
104
104
|
},
|
|
105
105
|
f: function () {
|
|
106
106
|
try {
|
|
@@ -113,17 +113,17 @@
|
|
|
113
113
|
}
|
|
114
114
|
function _defineAccessor(e, r, n, t) {
|
|
115
115
|
var c = {
|
|
116
|
-
configurable:
|
|
117
|
-
enumerable:
|
|
116
|
+
configurable: true,
|
|
117
|
+
enumerable: true
|
|
118
118
|
};
|
|
119
119
|
return c[e] = t, Object.defineProperty(r, n, c);
|
|
120
120
|
}
|
|
121
121
|
function _defineProperty$1(e, r, t) {
|
|
122
122
|
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
123
123
|
value: t,
|
|
124
|
-
enumerable:
|
|
125
|
-
configurable:
|
|
126
|
-
writable:
|
|
124
|
+
enumerable: true,
|
|
125
|
+
configurable: true,
|
|
126
|
+
writable: true
|
|
127
127
|
}) : e[r] = t, e;
|
|
128
128
|
}
|
|
129
129
|
function _isNativeReflectConstruct() {
|
|
@@ -145,12 +145,12 @@
|
|
|
145
145
|
i,
|
|
146
146
|
u,
|
|
147
147
|
a = [],
|
|
148
|
-
f =
|
|
149
|
-
o =
|
|
148
|
+
f = true,
|
|
149
|
+
o = false;
|
|
150
150
|
try {
|
|
151
151
|
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
152
152
|
} catch (r) {
|
|
153
|
-
o =
|
|
153
|
+
o = true, n = r;
|
|
154
154
|
} finally {
|
|
155
155
|
try {
|
|
156
156
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
function _objectSpread2$1(e) {
|
|
181
181
|
for (var r = 1; r < arguments.length; r++) {
|
|
182
182
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
183
|
-
r % 2 ? ownKeys$1(Object(t),
|
|
183
|
+
r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) {
|
|
184
184
|
_defineProperty$1(e, r, t[r]);
|
|
185
185
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
186
186
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -188,306 +188,115 @@
|
|
|
188
188
|
}
|
|
189
189
|
return e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
y = {};
|
|
248
|
-
function Generator() {}
|
|
249
|
-
function GeneratorFunction() {}
|
|
250
|
-
function GeneratorFunctionPrototype() {}
|
|
251
|
-
var p = {};
|
|
252
|
-
define(p, a, function () {
|
|
253
|
-
return this;
|
|
254
|
-
});
|
|
255
|
-
var d = Object.getPrototypeOf,
|
|
256
|
-
v = d && d(d(values([])));
|
|
257
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
258
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
259
|
-
function defineIteratorMethods(t) {
|
|
260
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
261
|
-
define(t, e, function (t) {
|
|
262
|
-
return this._invoke(e, t);
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
function AsyncIterator(t, e) {
|
|
267
|
-
function invoke(r, o, i, a) {
|
|
268
|
-
var c = tryCatch(t[r], t, o);
|
|
269
|
-
if ("throw" !== c.type) {
|
|
270
|
-
var u = c.arg,
|
|
271
|
-
h = u.value;
|
|
272
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
273
|
-
invoke("next", t, i, a);
|
|
274
|
-
}, function (t) {
|
|
275
|
-
invoke("throw", t, i, a);
|
|
276
|
-
}) : e.resolve(h).then(function (t) {
|
|
277
|
-
u.value = t, i(u);
|
|
278
|
-
}, function (t) {
|
|
279
|
-
return invoke("throw", t, i, a);
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
a(c.arg);
|
|
283
|
-
}
|
|
284
|
-
var r;
|
|
285
|
-
o(this, "_invoke", {
|
|
286
|
-
value: function (t, n) {
|
|
287
|
-
function callInvokeWithMethodAndArg() {
|
|
288
|
-
return new e(function (e, r) {
|
|
289
|
-
invoke(t, n, e, r);
|
|
290
|
-
});
|
|
191
|
+
function _regenerator() {
|
|
192
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
193
|
+
var e,
|
|
194
|
+
t,
|
|
195
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
196
|
+
n = r.iterator || "@@iterator",
|
|
197
|
+
o = r.toStringTag || "@@toStringTag";
|
|
198
|
+
function i(r, n, o, i) {
|
|
199
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
200
|
+
u = Object.create(c.prototype);
|
|
201
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
202
|
+
var i,
|
|
203
|
+
c,
|
|
204
|
+
u,
|
|
205
|
+
f = 0,
|
|
206
|
+
p = o || [],
|
|
207
|
+
y = false,
|
|
208
|
+
G = {
|
|
209
|
+
p: 0,
|
|
210
|
+
n: 0,
|
|
211
|
+
v: e,
|
|
212
|
+
a: d,
|
|
213
|
+
f: d.bind(e, 4),
|
|
214
|
+
d: function (t, r) {
|
|
215
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
function d(r, n) {
|
|
219
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
220
|
+
var o,
|
|
221
|
+
i = p[t],
|
|
222
|
+
d = G.p,
|
|
223
|
+
l = i[2];
|
|
224
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
225
|
+
}
|
|
226
|
+
if (o || r > 1) return a;
|
|
227
|
+
throw y = true, n;
|
|
228
|
+
}
|
|
229
|
+
return function (o, p, l) {
|
|
230
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
231
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
232
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
233
|
+
try {
|
|
234
|
+
if (f = 2, i) {
|
|
235
|
+
if (c || (o = "next"), t = i[o]) {
|
|
236
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
237
|
+
if (!t.done) return t;
|
|
238
|
+
u = t.value, c < 2 && (c = 0);
|
|
239
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
240
|
+
i = e;
|
|
241
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
242
|
+
} catch (t) {
|
|
243
|
+
i = e, c = 1, u = t;
|
|
244
|
+
} finally {
|
|
245
|
+
f = 1;
|
|
246
|
+
}
|
|
291
247
|
}
|
|
292
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
293
|
-
}
|
|
294
|
-
});
|
|
295
|
-
}
|
|
296
|
-
function makeInvokeMethod(e, r, n) {
|
|
297
|
-
var o = h;
|
|
298
|
-
return function (i, a) {
|
|
299
|
-
if (o === f) throw Error("Generator is already running");
|
|
300
|
-
if (o === s) {
|
|
301
|
-
if ("throw" === i) throw a;
|
|
302
248
|
return {
|
|
303
249
|
value: t,
|
|
304
|
-
done:
|
|
250
|
+
done: y
|
|
305
251
|
};
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
var c = n.delegate;
|
|
309
|
-
if (c) {
|
|
310
|
-
var u = maybeInvokeDelegate(c, n);
|
|
311
|
-
if (u) {
|
|
312
|
-
if (u === y) continue;
|
|
313
|
-
return u;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
317
|
-
if (o === h) throw o = s, n.arg;
|
|
318
|
-
n.dispatchException(n.arg);
|
|
319
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
320
|
-
o = f;
|
|
321
|
-
var p = tryCatch(e, r, n);
|
|
322
|
-
if ("normal" === p.type) {
|
|
323
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
324
|
-
return {
|
|
325
|
-
value: p.arg,
|
|
326
|
-
done: n.done
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
330
|
-
}
|
|
331
|
-
};
|
|
252
|
+
};
|
|
253
|
+
}(r, o, i), true), u;
|
|
332
254
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
function
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
347
|
-
}
|
|
348
|
-
function resetTryEntry(t) {
|
|
349
|
-
var e = t.completion || {};
|
|
350
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
351
|
-
}
|
|
352
|
-
function Context(t) {
|
|
353
|
-
this.tryEntries = [{
|
|
354
|
-
tryLoc: "root"
|
|
355
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
356
|
-
}
|
|
357
|
-
function values(e) {
|
|
358
|
-
if (e || "" === e) {
|
|
359
|
-
var r = e[a];
|
|
360
|
-
if (r) return r.call(e);
|
|
361
|
-
if ("function" == typeof e.next) return e;
|
|
362
|
-
if (!isNaN(e.length)) {
|
|
363
|
-
var o = -1,
|
|
364
|
-
i = function next() {
|
|
365
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
366
|
-
return next.value = t, next.done = !0, next;
|
|
367
|
-
};
|
|
368
|
-
return i.next = i;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
372
|
-
}
|
|
373
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
374
|
-
value: GeneratorFunctionPrototype,
|
|
375
|
-
configurable: !0
|
|
376
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
377
|
-
value: GeneratorFunction,
|
|
378
|
-
configurable: !0
|
|
379
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
380
|
-
var e = "function" == typeof t && t.constructor;
|
|
381
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
382
|
-
}, e.mark = function (t) {
|
|
383
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
384
|
-
}, e.awrap = function (t) {
|
|
385
|
-
return {
|
|
386
|
-
__await: t
|
|
387
|
-
};
|
|
388
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
389
|
-
return this;
|
|
390
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
391
|
-
void 0 === i && (i = Promise);
|
|
392
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
393
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
394
|
-
return t.done ? t.value : a.next();
|
|
395
|
-
});
|
|
396
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
255
|
+
var a = {};
|
|
256
|
+
function Generator() {}
|
|
257
|
+
function GeneratorFunction() {}
|
|
258
|
+
function GeneratorFunctionPrototype() {}
|
|
259
|
+
t = Object.getPrototypeOf;
|
|
260
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
261
|
+
return this;
|
|
262
|
+
}), t),
|
|
263
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
264
|
+
function f(e) {
|
|
265
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
266
|
+
}
|
|
267
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
397
268
|
return this;
|
|
398
|
-
}),
|
|
269
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
399
270
|
return "[object Generator]";
|
|
400
|
-
}),
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
return r.reverse(), function next() {
|
|
405
|
-
for (; r.length;) {
|
|
406
|
-
var t = r.pop();
|
|
407
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
408
|
-
}
|
|
409
|
-
return next.done = !0, next;
|
|
271
|
+
}), (_regenerator = function () {
|
|
272
|
+
return {
|
|
273
|
+
w: i,
|
|
274
|
+
m: f
|
|
410
275
|
};
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
432
|
-
if (i.tryLoc <= this.prev) {
|
|
433
|
-
var c = n.call(i, "catchLoc"),
|
|
434
|
-
u = n.call(i, "finallyLoc");
|
|
435
|
-
if (c && u) {
|
|
436
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
437
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
438
|
-
} else if (c) {
|
|
439
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
440
|
-
} else {
|
|
441
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
442
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
abrupt: function (t, e) {
|
|
448
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
449
|
-
var o = this.tryEntries[r];
|
|
450
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
451
|
-
var i = o;
|
|
452
|
-
break;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
456
|
-
var a = i ? i.completion : {};
|
|
457
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
458
|
-
},
|
|
459
|
-
complete: function (t, e) {
|
|
460
|
-
if ("throw" === t.type) throw t.arg;
|
|
461
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
462
|
-
},
|
|
463
|
-
finish: function (t) {
|
|
464
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
465
|
-
var r = this.tryEntries[e];
|
|
466
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
catch: function (t) {
|
|
470
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
471
|
-
var r = this.tryEntries[e];
|
|
472
|
-
if (r.tryLoc === t) {
|
|
473
|
-
var n = r.completion;
|
|
474
|
-
if ("throw" === n.type) {
|
|
475
|
-
var o = n.arg;
|
|
476
|
-
resetTryEntry(r);
|
|
477
|
-
}
|
|
478
|
-
return o;
|
|
479
|
-
}
|
|
276
|
+
})();
|
|
277
|
+
}
|
|
278
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
279
|
+
var i = Object.defineProperty;
|
|
280
|
+
try {
|
|
281
|
+
i({}, "", {});
|
|
282
|
+
} catch (e) {
|
|
283
|
+
i = 0;
|
|
284
|
+
}
|
|
285
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
286
|
+
if (r) i ? i(e, r, {
|
|
287
|
+
value: n,
|
|
288
|
+
enumerable: !t,
|
|
289
|
+
configurable: !t,
|
|
290
|
+
writable: !t
|
|
291
|
+
}) : e[r] = n;else {
|
|
292
|
+
function o(r, n) {
|
|
293
|
+
_regeneratorDefine(e, r, function (e) {
|
|
294
|
+
return this._invoke(r, n, e);
|
|
295
|
+
});
|
|
480
296
|
}
|
|
481
|
-
|
|
482
|
-
},
|
|
483
|
-
delegateYield: function (e, r, n) {
|
|
484
|
-
return this.delegate = {
|
|
485
|
-
iterator: values(e),
|
|
486
|
-
resultName: r,
|
|
487
|
-
nextLoc: n
|
|
488
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
297
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
489
298
|
}
|
|
490
|
-
}, e;
|
|
299
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
491
300
|
}
|
|
492
301
|
function _slicedToArray$1(r, e) {
|
|
493
302
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
@@ -506,7 +315,7 @@
|
|
|
506
315
|
if ("object" != typeof t || !t) return t;
|
|
507
316
|
var e = t[Symbol.toPrimitive];
|
|
508
317
|
if (void 0 !== e) {
|
|
509
|
-
var i = e.call(t, r
|
|
318
|
+
var i = e.call(t, r);
|
|
510
319
|
if ("object" != typeof i) return i;
|
|
511
320
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
512
321
|
}
|
|
@@ -1695,8 +1504,16 @@
|
|
|
1695
1504
|
function getDefaultExportFromCjs(x) {
|
|
1696
1505
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1697
1506
|
}
|
|
1698
|
-
var regex
|
|
1699
|
-
var
|
|
1507
|
+
var regex$1;
|
|
1508
|
+
var hasRequiredRegex;
|
|
1509
|
+
function requireRegex() {
|
|
1510
|
+
if (hasRequiredRegex) return regex$1;
|
|
1511
|
+
hasRequiredRegex = 1;
|
|
1512
|
+
regex$1 = /[\xC0-\xC5\xC7-\xCF\xD1-\xD6\xD9-\xDD\xE0-\xE5\xE7-\xEF\xF1-\xF6\xF9-\xFD\xFF-\u010F\u0112-\u0125\u0128-\u0130\u0134-\u0137\u0139-\u013E\u0143-\u0148\u014C-\u0151\u0154-\u0165\u0168-\u017E\u01A0\u01A1\u01AF\u01B0\u01CD-\u01DC\u01DE-\u01E3\u01E6-\u01F0\u01F4\u01F5\u01F8-\u021B\u021E\u021F\u0226-\u0233\u0344\u0385\u0386\u0388-\u038A\u038C\u038E-\u0390\u03AA-\u03B0\u03CA-\u03CE\u03D3\u03D4\u0400\u0401\u0403\u0407\u040C-\u040E\u0419\u0439\u0450\u0451\u0453\u0457\u045C-\u045E\u0476\u0477\u04C1\u04C2\u04D0-\u04D3\u04D6\u04D7\u04DA-\u04DF\u04E2-\u04E7\u04EA-\u04F5\u04F8\u04F9\u0622-\u0626\u06C0\u06C2\u06D3\u0929\u0931\u0934\u0958-\u095F\u09CB\u09CC\u09DC\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B48\u0B4B\u0B4C\u0B5C\u0B5D\u0B94\u0BCA-\u0BCC\u0C48\u0CC0\u0CC7\u0CC8\u0CCA\u0CCB\u0D4A-\u0D4C\u0DDA\u0DDC-\u0DDE\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2\u0FA7\u0FAC\u0FB9\u1026\u1B06\u1B08\u1B0A\u1B0C\u1B0E\u1B12\u1B3B\u1B3D\u1B40\u1B41\u1B43\u1E00-\u1E99\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FC1-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEE\u1FF2-\u1FF4\u1FF6-\u1FFC\u212B\u219A\u219B\u21AE\u21CD-\u21CF\u2204\u2209\u220C\u2224\u2226\u2241\u2244\u2247\u2249\u2260\u2262\u226D-\u2271\u2274\u2275\u2278\u2279\u2280\u2281\u2284\u2285\u2288\u2289\u22AC-\u22AF\u22E0-\u22E3\u22EA-\u22ED\u2ADC\u304C\u304E\u3050\u3052\u3054\u3056\u3058\u305A\u305C\u305E\u3060\u3062\u3065\u3067\u3069\u3070\u3071\u3073\u3074\u3076\u3077\u3079\u307A\u307C\u307D\u3094\u309E\u30AC\u30AE\u30B0\u30B2\u30B4\u30B6\u30B8\u30BA\u30BC\u30BE\u30C0\u30C2\u30C5\u30C7\u30C9\u30D0\u30D1\u30D3\u30D4\u30D6\u30D7\u30D9\u30DA\u30DC\u30DD\u30F4\u30F7-\u30FA\u30FE\uAC00-\uD7A3\uFB1D\uFB1F\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4E]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1513
|
+
return regex$1;
|
|
1514
|
+
}
|
|
1515
|
+
var regexExports = requireRegex();
|
|
1516
|
+
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1700
1517
|
|
|
1701
1518
|
/**
|
|
1702
1519
|
* @typedef {number} Integer
|
|
@@ -1791,7 +1608,7 @@
|
|
|
1791
1608
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1792
1609
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1793
1610
|
// ES6 copying of regex with different flags
|
|
1794
|
-
db = db.replaceAll(new RegExp(regex
|
|
1611
|
+
db = db.replaceAll(new RegExp(regex, 'gu'), function (expandable) {
|
|
1795
1612
|
return '^4' + /** @type {Integer} */expandable.codePointAt(0).toString(16).padStart(6, '0');
|
|
1796
1613
|
});
|
|
1797
1614
|
}
|
|
@@ -2609,7 +2426,6 @@
|
|
|
2609
2426
|
// Native DOMException works as expected
|
|
2610
2427
|
useNativeDOMException = true;
|
|
2611
2428
|
}
|
|
2612
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
2613
2429
|
} catch (err) {}
|
|
2614
2430
|
var createDOMException = useNativeDOMException
|
|
2615
2431
|
// eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
|
|
@@ -3365,7 +3181,7 @@
|
|
|
3365
3181
|
key = key.slice(2);
|
|
3366
3182
|
if (inArray) {
|
|
3367
3183
|
// remove the space at the end, and the dash before each character
|
|
3368
|
-
key = key.slice(0, -1).replaceAll(
|
|
3184
|
+
key = key.slice(0, -1).replaceAll(/-((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g, '$1');
|
|
3369
3185
|
}
|
|
3370
3186
|
return key;
|
|
3371
3187
|
}
|
|
@@ -3758,7 +3574,7 @@
|
|
|
3758
3574
|
value: date.getTime()
|
|
3759
3575
|
} : {
|
|
3760
3576
|
type: type,
|
|
3761
|
-
value: new Date(date
|
|
3577
|
+
value: new Date(date)
|
|
3762
3578
|
};
|
|
3763
3579
|
}
|
|
3764
3580
|
return {
|
|
@@ -4591,7 +4407,6 @@
|
|
|
4591
4407
|
if (testObject.test) {
|
|
4592
4408
|
cleanInterface = true;
|
|
4593
4409
|
}
|
|
4594
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
4595
4410
|
} catch (err) {
|
|
4596
4411
|
// Object.defineProperty does not work as intended.
|
|
4597
4412
|
}
|
|
@@ -4722,25 +4537,24 @@
|
|
|
4722
4537
|
}
|
|
4723
4538
|
this.sortList();
|
|
4724
4539
|
}
|
|
4725
|
-
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/
|
|
4540
|
+
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4726
4541
|
var i;
|
|
4727
|
-
return
|
|
4728
|
-
while (1) switch (_context.
|
|
4542
|
+
return _regenerator().w(function (_context) {
|
|
4543
|
+
while (1) switch (_context.n) {
|
|
4729
4544
|
case 0:
|
|
4730
4545
|
i = 0;
|
|
4731
4546
|
case 1:
|
|
4732
4547
|
if (!(i < this._items.length)) {
|
|
4733
|
-
_context.
|
|
4548
|
+
_context.n = 3;
|
|
4734
4549
|
break;
|
|
4735
4550
|
}
|
|
4736
|
-
_context.
|
|
4551
|
+
_context.n = 2;
|
|
4737
4552
|
return this._items[i++];
|
|
4738
|
-
case
|
|
4739
|
-
_context.
|
|
4553
|
+
case 2:
|
|
4554
|
+
_context.n = 1;
|
|
4740
4555
|
break;
|
|
4741
|
-
case
|
|
4742
|
-
|
|
4743
|
-
return _context.stop();
|
|
4556
|
+
case 3:
|
|
4557
|
+
return _context.a(2);
|
|
4744
4558
|
}
|
|
4745
4559
|
}, _callee, this);
|
|
4746
4560
|
}));
|
|
@@ -5470,7 +5284,6 @@
|
|
|
5470
5284
|
}
|
|
5471
5285
|
try {
|
|
5472
5286
|
me.__tx.executeSql('ROLLBACK', [], abort, /** @type {SQLStatementErrorCallback} */abort); // Not working in some circumstances, even in Node
|
|
5473
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
5474
5287
|
} catch (err) {
|
|
5475
5288
|
// Browser errs when transaction has ended and since it most likely already erred here,
|
|
5476
5289
|
// we call to abort
|
|
@@ -5597,7 +5410,7 @@
|
|
|
5597
5410
|
function _objectSpread2(e) {
|
|
5598
5411
|
for (var t = 1; t < arguments.length; t++) {
|
|
5599
5412
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
5600
|
-
t % 2 ? ownKeys(Object(r),
|
|
5413
|
+
t % 2 ? ownKeys(Object(r), true).forEach(function (t) {
|
|
5601
5414
|
_defineProperty(e, t, r[t]);
|
|
5602
5415
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (t) {
|
|
5603
5416
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
@@ -5619,18 +5432,18 @@
|
|
|
5619
5432
|
return t && function _defineProperties(e, t) {
|
|
5620
5433
|
for (var r = 0; r < t.length; r++) {
|
|
5621
5434
|
var n = t[r];
|
|
5622
|
-
n.enumerable = n.enumerable ||
|
|
5435
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(e, _toPropertyKey(n.key), n);
|
|
5623
5436
|
}
|
|
5624
5437
|
}(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
5625
|
-
writable:
|
|
5438
|
+
writable: false
|
|
5626
5439
|
}), e;
|
|
5627
5440
|
}
|
|
5628
5441
|
function _defineProperty(e, t, r) {
|
|
5629
5442
|
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5630
5443
|
value: r,
|
|
5631
|
-
enumerable:
|
|
5632
|
-
configurable:
|
|
5633
|
-
writable:
|
|
5444
|
+
enumerable: true,
|
|
5445
|
+
configurable: true,
|
|
5446
|
+
writable: true
|
|
5634
5447
|
}) : e[t] = r, e;
|
|
5635
5448
|
}
|
|
5636
5449
|
function _slicedToArray(e, t) {
|
|
@@ -5644,15 +5457,15 @@
|
|
|
5644
5457
|
o,
|
|
5645
5458
|
i,
|
|
5646
5459
|
c = [],
|
|
5647
|
-
s =
|
|
5648
|
-
u =
|
|
5460
|
+
s = true,
|
|
5461
|
+
u = false;
|
|
5649
5462
|
try {
|
|
5650
5463
|
if (o = (r = r.call(e)).next, 0 === t) {
|
|
5651
5464
|
if (Object(r) !== r) return;
|
|
5652
5465
|
s = !1;
|
|
5653
5466
|
} else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
|
|
5654
5467
|
} catch (e) {
|
|
5655
|
-
u =
|
|
5468
|
+
u = true, a = e;
|
|
5656
5469
|
} finally {
|
|
5657
5470
|
try {
|
|
5658
5471
|
if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
@@ -5739,13 +5552,13 @@
|
|
|
5739
5552
|
var t = Object.hasOwn,
|
|
5740
5553
|
r = Object.getPrototypeOf;
|
|
5741
5554
|
function isThenable(e, t) {
|
|
5742
|
-
return isObject(e) && "function" == typeof e.then && (
|
|
5555
|
+
return isObject(e) && "function" == typeof e.then && (true || "function" == typeof e["catch"]);
|
|
5743
5556
|
}
|
|
5744
5557
|
function toStringTag(e) {
|
|
5745
5558
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5746
5559
|
}
|
|
5747
5560
|
function hasConstructorOf(e, n) {
|
|
5748
|
-
if (!e || "object" !== _typeof(e)) return
|
|
5561
|
+
if (!e || "object" !== _typeof(e)) return false;
|
|
5749
5562
|
var a = r(e);
|
|
5750
5563
|
if (!a) return null === n;
|
|
5751
5564
|
var o = t(a, "constructor") && a.constructor;
|
|
@@ -5755,7 +5568,7 @@
|
|
|
5755
5568
|
return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
|
|
5756
5569
|
}
|
|
5757
5570
|
function isUserObject(e) {
|
|
5758
|
-
if (!e || "Object" !== toStringTag(e)) return
|
|
5571
|
+
if (!e || "Object" !== toStringTag(e)) return false;
|
|
5759
5572
|
var t = r(e);
|
|
5760
5573
|
return !t || hasConstructorOf(e, Object) || isUserObject(t);
|
|
5761
5574
|
}
|
|
@@ -5819,7 +5632,7 @@
|
|
|
5819
5632
|
key: "stringify",
|
|
5820
5633
|
value: function stringify(e, t, r, n) {
|
|
5821
5634
|
n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
|
|
5822
|
-
stringification:
|
|
5635
|
+
stringification: true
|
|
5823
5636
|
});
|
|
5824
5637
|
var a = this.encapsulate(e, null, n);
|
|
5825
5638
|
return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
|
|
@@ -5830,63 +5643,63 @@
|
|
|
5830
5643
|
key: "stringifySync",
|
|
5831
5644
|
value: function stringifySync(e, t, r, n) {
|
|
5832
5645
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5833
|
-
throwOnBadSyncType:
|
|
5646
|
+
throwOnBadSyncType: true
|
|
5834
5647
|
}, n), {}, {
|
|
5835
|
-
sync:
|
|
5648
|
+
sync: true
|
|
5836
5649
|
}));
|
|
5837
5650
|
}
|
|
5838
5651
|
}, {
|
|
5839
5652
|
key: "stringifyAsync",
|
|
5840
5653
|
value: function stringifyAsync(e, t, r, n) {
|
|
5841
5654
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5842
|
-
throwOnBadSyncType:
|
|
5655
|
+
throwOnBadSyncType: true
|
|
5843
5656
|
}, n), {}, {
|
|
5844
|
-
sync:
|
|
5657
|
+
sync: false
|
|
5845
5658
|
}));
|
|
5846
5659
|
}
|
|
5847
5660
|
}, {
|
|
5848
5661
|
key: "parse",
|
|
5849
5662
|
value: function parse(e, t, r) {
|
|
5850
5663
|
return r = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), r), {}, {
|
|
5851
|
-
parse:
|
|
5664
|
+
parse: true
|
|
5852
5665
|
}), this.revive(JSON.parse(e, t), r);
|
|
5853
5666
|
}
|
|
5854
5667
|
}, {
|
|
5855
5668
|
key: "parseSync",
|
|
5856
5669
|
value: function parseSync(e, t, r) {
|
|
5857
5670
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5858
|
-
throwOnBadSyncType:
|
|
5671
|
+
throwOnBadSyncType: true
|
|
5859
5672
|
}, r), {}, {
|
|
5860
|
-
sync:
|
|
5673
|
+
sync: true
|
|
5861
5674
|
}));
|
|
5862
5675
|
}
|
|
5863
5676
|
}, {
|
|
5864
5677
|
key: "parseAsync",
|
|
5865
5678
|
value: function parseAsync(e, t, r) {
|
|
5866
5679
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5867
|
-
throwOnBadSyncType:
|
|
5680
|
+
throwOnBadSyncType: true
|
|
5868
5681
|
}, r), {}, {
|
|
5869
|
-
sync:
|
|
5682
|
+
sync: false
|
|
5870
5683
|
}));
|
|
5871
5684
|
}
|
|
5872
5685
|
}, {
|
|
5873
5686
|
key: "specialTypeNames",
|
|
5874
5687
|
value: function specialTypeNames(e, t) {
|
|
5875
5688
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5876
|
-
return r.returnTypeNames =
|
|
5689
|
+
return r.returnTypeNames = true, this.encapsulate(e, t, r);
|
|
5877
5690
|
}
|
|
5878
5691
|
}, {
|
|
5879
5692
|
key: "rootTypeName",
|
|
5880
5693
|
value: function rootTypeName(e, t) {
|
|
5881
5694
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5882
|
-
return r.iterateNone =
|
|
5695
|
+
return r.iterateNone = true, this.encapsulate(e, t, r);
|
|
5883
5696
|
}
|
|
5884
5697
|
}, {
|
|
5885
5698
|
key: "encapsulate",
|
|
5886
5699
|
value: function encapsulate(t, r, c) {
|
|
5887
5700
|
var s = this,
|
|
5888
5701
|
u = _objectSpread2(_objectSpread2({
|
|
5889
|
-
sync:
|
|
5702
|
+
sync: true
|
|
5890
5703
|
}, this.options), c),
|
|
5891
5704
|
l = u.sync,
|
|
5892
5705
|
f = {},
|
|
@@ -5894,8 +5707,8 @@
|
|
|
5894
5707
|
p = [],
|
|
5895
5708
|
d = [],
|
|
5896
5709
|
v = !("cyclic" in u) || u.cyclic,
|
|
5897
|
-
|
|
5898
|
-
|
|
5710
|
+
b = u.encapsulateObserver,
|
|
5711
|
+
m = function finish(e) {
|
|
5899
5712
|
var t = Object.values(f);
|
|
5900
5713
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5901
5714
|
if (t.length) {
|
|
@@ -5916,7 +5729,7 @@
|
|
|
5916
5729
|
};
|
|
5917
5730
|
} else isObject(e) && a(e, "$types") && (e = {
|
|
5918
5731
|
$: e,
|
|
5919
|
-
$types:
|
|
5732
|
+
$types: true
|
|
5920
5733
|
});
|
|
5921
5734
|
return !u.returnTypeNames && e;
|
|
5922
5735
|
},
|
|
@@ -5925,7 +5738,7 @@
|
|
|
5925
5738
|
return e[1].p;
|
|
5926
5739
|
})), function (n) {
|
|
5927
5740
|
return _await(Promise.all(n.map(_async(function (n) {
|
|
5928
|
-
var a =
|
|
5741
|
+
var a = false,
|
|
5929
5742
|
o = [],
|
|
5930
5743
|
i = _slicedToArray(r.splice(0, 1), 1),
|
|
5931
5744
|
c = _slicedToArray(i[0], 7),
|
|
@@ -5935,7 +5748,7 @@
|
|
|
5935
5748
|
f = c[4],
|
|
5936
5749
|
y = c[5],
|
|
5937
5750
|
p = c[6],
|
|
5938
|
-
d = O(s, n, u, l, o,
|
|
5751
|
+
d = O(s, n, u, l, o, true, p),
|
|
5939
5752
|
v = hasConstructorOf(d, e);
|
|
5940
5753
|
return function _invoke(e, t) {
|
|
5941
5754
|
var r = e();
|
|
@@ -5944,7 +5757,7 @@
|
|
|
5944
5757
|
if (s && v) return _await(d.p, function (e) {
|
|
5945
5758
|
f[y] = e;
|
|
5946
5759
|
var r = h(t, o);
|
|
5947
|
-
return a =
|
|
5760
|
+
return a = true, r;
|
|
5948
5761
|
});
|
|
5949
5762
|
}, function (e) {
|
|
5950
5763
|
return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
|
|
@@ -5965,13 +5778,13 @@
|
|
|
5965
5778
|
});
|
|
5966
5779
|
},
|
|
5967
5780
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5968
|
-
var
|
|
5781
|
+
var m,
|
|
5969
5782
|
h = {},
|
|
5970
5783
|
O = _typeof(r),
|
|
5971
|
-
_ =
|
|
5784
|
+
_ = b ? function (n) {
|
|
5972
5785
|
var a,
|
|
5973
5786
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5974
|
-
|
|
5787
|
+
b(Object.assign(null != n ? n : h, {
|
|
5975
5788
|
keypath: t,
|
|
5976
5789
|
value: r,
|
|
5977
5790
|
cyclic: i,
|
|
@@ -5983,30 +5796,30 @@
|
|
|
5983
5796
|
type: o
|
|
5984
5797
|
}));
|
|
5985
5798
|
} : null;
|
|
5986
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5987
|
-
replaced:
|
|
5988
|
-
}) :
|
|
5799
|
+
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (m = c.replaced ? r : w(t, r, c, l, false, d, _)) !== r && (h = {
|
|
5800
|
+
replaced: m
|
|
5801
|
+
}) : m = r, _ && _(), m;
|
|
5989
5802
|
if (null === r) return _ && _(), r;
|
|
5990
5803
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5991
5804
|
var A = y.indexOf(r);
|
|
5992
5805
|
if (!(A < 0)) return f[t] = "#", _ && _({
|
|
5993
5806
|
cyclicKeypath: p[A]
|
|
5994
5807
|
}), "#" + p[A];
|
|
5995
|
-
|
|
5808
|
+
true === i && (y.push(r), p.push(t));
|
|
5996
5809
|
}
|
|
5997
5810
|
var S,
|
|
5998
5811
|
j,
|
|
5999
5812
|
T = isPlainObject(r),
|
|
6000
5813
|
I = o(r),
|
|
6001
5814
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
6002
|
-
if (N !== r ? (
|
|
5815
|
+
if (N !== r ? (m = N, h = {
|
|
6003
5816
|
replaced: N
|
|
6004
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5817
|
+
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), m = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), h = {
|
|
6005
5818
|
clone: S
|
|
6006
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5819
|
+
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? m = r : (S = {}, c.addLength && (S.length = r.length), h = {
|
|
6007
5820
|
clone: S
|
|
6008
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
6009
|
-
if (!S) return
|
|
5821
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
|
|
5822
|
+
if (!S) return m;
|
|
6010
5823
|
if (c.iterateIn) {
|
|
6011
5824
|
var P = function _loop(n) {
|
|
6012
5825
|
var o = {
|
|
@@ -6020,27 +5833,27 @@
|
|
|
6020
5833
|
};
|
|
6021
5834
|
for (var x in r) P(x);
|
|
6022
5835
|
_ && _({
|
|
6023
|
-
endIterateIn:
|
|
6024
|
-
end:
|
|
5836
|
+
endIterateIn: true,
|
|
5837
|
+
end: true
|
|
6025
5838
|
});
|
|
6026
5839
|
} else n(r).forEach(function (n) {
|
|
6027
5840
|
var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
|
|
6028
5841
|
g(c, {
|
|
6029
|
-
ownKeys:
|
|
5842
|
+
ownKeys: true
|
|
6030
5843
|
}, function () {
|
|
6031
5844
|
var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
|
|
6032
5845
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
6033
5846
|
});
|
|
6034
5847
|
}), _ && _({
|
|
6035
|
-
endIterateOwn:
|
|
6036
|
-
end:
|
|
5848
|
+
endIterateOwn: true,
|
|
5849
|
+
end: true
|
|
6037
5850
|
});
|
|
6038
5851
|
if (c.iterateUnsetNumeric) {
|
|
6039
5852
|
for (var E = r.length, C = function _loop2(n) {
|
|
6040
5853
|
if (!(n in r)) {
|
|
6041
5854
|
var a = "".concat(t).concat(t ? "." : "").concat(n);
|
|
6042
5855
|
g(c, {
|
|
6043
|
-
ownKeys:
|
|
5856
|
+
ownKeys: false
|
|
6044
5857
|
}, function () {
|
|
6045
5858
|
var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
|
|
6046
5859
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
@@ -6048,8 +5861,8 @@
|
|
|
6048
5861
|
}
|
|
6049
5862
|
}, B = 0; B < E; B++) C(B);
|
|
6050
5863
|
_ && _({
|
|
6051
|
-
endIterateUnsetNumeric:
|
|
6052
|
-
end:
|
|
5864
|
+
endIterateUnsetNumeric: true,
|
|
5865
|
+
end: true
|
|
6053
5866
|
});
|
|
6054
5867
|
}
|
|
6055
5868
|
return S;
|
|
@@ -6065,19 +5878,19 @@
|
|
|
6065
5878
|
}
|
|
6066
5879
|
if (Object.assign(r, {
|
|
6067
5880
|
type: p,
|
|
6068
|
-
replaced:
|
|
5881
|
+
replaced: true
|
|
6069
5882
|
}), (l || !y.replaceAsync) && !y.replace) return i && i({
|
|
6070
|
-
typeDetected:
|
|
5883
|
+
typeDetected: true
|
|
6071
5884
|
}), O(e, t, v && "readonly", r, n, o, p);
|
|
6072
5885
|
i && i({
|
|
6073
|
-
replacing:
|
|
5886
|
+
replacing: true
|
|
6074
5887
|
});
|
|
6075
|
-
var
|
|
5888
|
+
var b = void 0;
|
|
6076
5889
|
if (l || !y.replaceAsync) {
|
|
6077
5890
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6078
|
-
|
|
6079
|
-
} else
|
|
6080
|
-
return O(e,
|
|
5891
|
+
b = y.replace(t, r);
|
|
5892
|
+
} else b = y.replaceAsync(t, r);
|
|
5893
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6081
5894
|
}
|
|
6082
5895
|
}
|
|
6083
5896
|
return t;
|
|
@@ -6085,26 +5898,26 @@
|
|
|
6085
5898
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6086
5899
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6087
5900
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6088
|
-
}() : Promise.resolve(h(_, d)).then(
|
|
5901
|
+
}() : Promise.resolve(h(_, d)).then(m);
|
|
6089
5902
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6090
|
-
return u.stringification && l ? [
|
|
5903
|
+
return u.stringification && l ? [m(_)] : l ? m(_) : Promise.resolve(m(_));
|
|
6091
5904
|
}
|
|
6092
5905
|
}, {
|
|
6093
5906
|
key: "encapsulateSync",
|
|
6094
5907
|
value: function encapsulateSync(e, t, r) {
|
|
6095
5908
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6096
|
-
throwOnBadSyncType:
|
|
5909
|
+
throwOnBadSyncType: true
|
|
6097
5910
|
}, r), {}, {
|
|
6098
|
-
sync:
|
|
5911
|
+
sync: true
|
|
6099
5912
|
}));
|
|
6100
5913
|
}
|
|
6101
5914
|
}, {
|
|
6102
5915
|
key: "encapsulateAsync",
|
|
6103
5916
|
value: function encapsulateAsync(e, t, r) {
|
|
6104
5917
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6105
|
-
throwOnBadSyncType:
|
|
5918
|
+
throwOnBadSyncType: true
|
|
6106
5919
|
}, r), {}, {
|
|
6107
|
-
sync:
|
|
5920
|
+
sync: false
|
|
6108
5921
|
}));
|
|
6109
5922
|
}
|
|
6110
5923
|
}, {
|
|
@@ -6112,7 +5925,7 @@
|
|
|
6112
5925
|
value: function revive(t, r) {
|
|
6113
5926
|
var a = this,
|
|
6114
5927
|
i = _objectSpread2(_objectSpread2({
|
|
6115
|
-
sync:
|
|
5928
|
+
sync: true
|
|
6116
5929
|
}, this.options), r),
|
|
6117
5930
|
c = i.sync;
|
|
6118
5931
|
function finishRevival(e) {
|
|
@@ -6122,12 +5935,12 @@
|
|
|
6122
5935
|
}
|
|
6123
5936
|
if (!t || "object" !== _typeof(t) || Array.isArray(t)) return finishRevival(t);
|
|
6124
5937
|
var u = t.$types;
|
|
6125
|
-
if (
|
|
5938
|
+
if (true === u) return finishRevival(t.$);
|
|
6126
5939
|
if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
|
|
6127
5940
|
var l = [],
|
|
6128
5941
|
f = {},
|
|
6129
|
-
y =
|
|
6130
|
-
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y =
|
|
5942
|
+
y = true;
|
|
5943
|
+
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = false);
|
|
6131
5944
|
var p = function executeReviver(e, t) {
|
|
6132
5945
|
var r,
|
|
6133
5946
|
n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
|
|
@@ -6142,7 +5955,7 @@
|
|
|
6142
5955
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6143
5956
|
}
|
|
6144
5957
|
var v,
|
|
6145
|
-
|
|
5958
|
+
b = function revivePlainObjects() {
|
|
6146
5959
|
var r = [];
|
|
6147
5960
|
if (!u) throw new Error("Found bad `types`");
|
|
6148
5961
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6174,28 +5987,28 @@
|
|
|
6174
5987
|
c === i && (t = c);
|
|
6175
5988
|
}, void 0);
|
|
6176
5989
|
}();
|
|
6177
|
-
return hasConstructorOf(
|
|
5990
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6178
5991
|
return t;
|
|
6179
5992
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6180
5993
|
if (!y || "$types" !== t) {
|
|
6181
5994
|
var f = u[t],
|
|
6182
5995
|
v = o(r);
|
|
6183
5996
|
if (v || isPlainObject(r)) {
|
|
6184
|
-
var
|
|
5997
|
+
var b = v ? new Array(r.length) : {};
|
|
6185
5998
|
for (n(r).forEach(function (n) {
|
|
6186
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
5999
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6187
6000
|
i = function set(e) {
|
|
6188
|
-
return hasConstructorOf(e, s) ?
|
|
6001
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6189
6002
|
};
|
|
6190
6003
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6191
6004
|
return i(e);
|
|
6192
6005
|
})) : i(o);
|
|
6193
|
-
}), r =
|
|
6194
|
-
var
|
|
6195
|
-
h =
|
|
6196
|
-
g =
|
|
6197
|
-
O =
|
|
6198
|
-
w =
|
|
6006
|
+
}), r = b; l.length;) {
|
|
6007
|
+
var m = _slicedToArray(l[0], 4),
|
|
6008
|
+
h = m[0],
|
|
6009
|
+
g = m[1],
|
|
6010
|
+
O = m[2],
|
|
6011
|
+
w = m[3],
|
|
6199
6012
|
_ = getByKeyPath(h, g);
|
|
6200
6013
|
if (void 0 === _) break;
|
|
6201
6014
|
O[w] = _, l.splice(0, 1);
|
|
@@ -6228,18 +6041,18 @@
|
|
|
6228
6041
|
key: "reviveSync",
|
|
6229
6042
|
value: function reviveSync(e, t) {
|
|
6230
6043
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6231
|
-
throwOnBadSyncType:
|
|
6044
|
+
throwOnBadSyncType: true
|
|
6232
6045
|
}, t), {}, {
|
|
6233
|
-
sync:
|
|
6046
|
+
sync: true
|
|
6234
6047
|
}));
|
|
6235
6048
|
}
|
|
6236
6049
|
}, {
|
|
6237
6050
|
key: "reviveAsync",
|
|
6238
6051
|
value: function reviveAsync(e, t) {
|
|
6239
6052
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6240
|
-
throwOnBadSyncType:
|
|
6053
|
+
throwOnBadSyncType: true
|
|
6241
6054
|
}, t), {}, {
|
|
6242
|
-
sync:
|
|
6055
|
+
sync: false
|
|
6243
6056
|
}));
|
|
6244
6057
|
}
|
|
6245
6058
|
}, {
|
|
@@ -6338,19 +6151,20 @@
|
|
|
6338
6151
|
index: r
|
|
6339
6152
|
} : (t.buffers.push(e), {
|
|
6340
6153
|
s: p(e),
|
|
6341
|
-
maxByteLength: e.maxByteLength
|
|
6154
|
+
maxByteLength: e.maxByteLength,
|
|
6155
|
+
resizable: e.resizable
|
|
6342
6156
|
});
|
|
6343
6157
|
},
|
|
6344
6158
|
revive: function revive(e, t) {
|
|
6345
6159
|
if (t.buffers || (t.buffers = []), Object.hasOwn(e, "index")) return t.buffers[e.index];
|
|
6346
|
-
var r = d(e.s, {
|
|
6160
|
+
var r = d(e.s, e.resizable ? {
|
|
6347
6161
|
maxByteLength: e.maxByteLength
|
|
6348
|
-
});
|
|
6162
|
+
} : void 0);
|
|
6349
6163
|
return t.buffers.push(r), r;
|
|
6350
6164
|
}
|
|
6351
6165
|
}
|
|
6352
6166
|
},
|
|
6353
|
-
|
|
6167
|
+
b = {
|
|
6354
6168
|
bigintObject: {
|
|
6355
6169
|
test: function test(e) {
|
|
6356
6170
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6361,7 +6175,7 @@
|
|
|
6361
6175
|
}
|
|
6362
6176
|
}
|
|
6363
6177
|
},
|
|
6364
|
-
|
|
6178
|
+
m = {
|
|
6365
6179
|
bigint: {
|
|
6366
6180
|
test: function test(e) {
|
|
6367
6181
|
return "bigint" == typeof e;
|
|
@@ -6389,7 +6203,7 @@
|
|
|
6389
6203
|
},
|
|
6390
6204
|
replace: function replace(e) {
|
|
6391
6205
|
var t = new XMLHttpRequest();
|
|
6392
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6206
|
+
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e), false), t.send(), 200 !== t.status && 0 !== t.status) throw new Error("Bad Blob access: " + t.status);
|
|
6393
6207
|
return {
|
|
6394
6208
|
type: e.type,
|
|
6395
6209
|
stringContents: t.responseText
|
|
@@ -6424,33 +6238,32 @@
|
|
|
6424
6238
|
},
|
|
6425
6239
|
replaceAsync: function replaceAsync(t) {
|
|
6426
6240
|
return new e(/*#__PURE__*/function () {
|
|
6427
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
6428
|
-
var n;
|
|
6429
|
-
return
|
|
6430
|
-
while (1) switch (_context.
|
|
6241
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e, r) {
|
|
6242
|
+
var n, _t;
|
|
6243
|
+
return _regenerator().w(function (_context) {
|
|
6244
|
+
while (1) switch (_context.n) {
|
|
6431
6245
|
case 0:
|
|
6432
|
-
_context.
|
|
6433
|
-
_context.
|
|
6246
|
+
_context.p = 0;
|
|
6247
|
+
_context.n = 1;
|
|
6434
6248
|
return crypto.subtle.exportKey("jwk", t);
|
|
6435
|
-
case
|
|
6436
|
-
n = _context.
|
|
6437
|
-
_context.
|
|
6249
|
+
case 1:
|
|
6250
|
+
n = _context.v;
|
|
6251
|
+
_context.n = 3;
|
|
6438
6252
|
break;
|
|
6439
|
-
case
|
|
6440
|
-
_context.
|
|
6441
|
-
|
|
6442
|
-
return _context.
|
|
6443
|
-
case
|
|
6253
|
+
case 2:
|
|
6254
|
+
_context.p = 2;
|
|
6255
|
+
_t = _context.v;
|
|
6256
|
+
return _context.a(2, void r(_t));
|
|
6257
|
+
case 3:
|
|
6444
6258
|
e({
|
|
6445
6259
|
jwk: n,
|
|
6446
6260
|
algorithm: t.algorithm,
|
|
6447
6261
|
usages: t.usages
|
|
6448
6262
|
});
|
|
6449
|
-
case
|
|
6450
|
-
|
|
6451
|
-
return _context.stop();
|
|
6263
|
+
case 4:
|
|
6264
|
+
return _context.a(2);
|
|
6452
6265
|
}
|
|
6453
|
-
}, _callee, null, [[0,
|
|
6266
|
+
}, _callee, null, [[0, 2]]);
|
|
6454
6267
|
}));
|
|
6455
6268
|
return function (_x, _x2) {
|
|
6456
6269
|
return _ref.apply(this, arguments);
|
|
@@ -6461,7 +6274,7 @@
|
|
|
6461
6274
|
var t = e.jwk,
|
|
6462
6275
|
r = e.algorithm,
|
|
6463
6276
|
n = e.usages;
|
|
6464
|
-
return crypto.subtle.importKey("jwk", t, r,
|
|
6277
|
+
return crypto.subtle.importKey("jwk", t, r, true, n);
|
|
6465
6278
|
}
|
|
6466
6279
|
}
|
|
6467
6280
|
},
|
|
@@ -6483,6 +6296,7 @@
|
|
|
6483
6296
|
} : (n.buffers.push(e), {
|
|
6484
6297
|
encoded: p(e),
|
|
6485
6298
|
maxByteLength: e.maxByteLength,
|
|
6299
|
+
resizable: e.resizable,
|
|
6486
6300
|
byteOffset: t,
|
|
6487
6301
|
byteLength: r
|
|
6488
6302
|
});
|
|
@@ -6493,11 +6307,12 @@
|
|
|
6493
6307
|
n = e.byteLength,
|
|
6494
6308
|
a = e.encoded,
|
|
6495
6309
|
o = e.index,
|
|
6496
|
-
i = e.maxByteLength
|
|
6497
|
-
|
|
6498
|
-
|
|
6310
|
+
i = e.maxByteLength,
|
|
6311
|
+
c = e.resizable;
|
|
6312
|
+
var s;
|
|
6313
|
+
return "index" in e ? s = t.buffers[o] : (s = d(a, c ? {
|
|
6499
6314
|
maxByteLength: i
|
|
6500
|
-
}), t.buffers.push(
|
|
6315
|
+
} : i), t.buffers.push(s)), new DataView(s, r, n);
|
|
6501
6316
|
}
|
|
6502
6317
|
}
|
|
6503
6318
|
},
|
|
@@ -6713,7 +6528,7 @@
|
|
|
6713
6528
|
},
|
|
6714
6529
|
replace: function replace(e) {
|
|
6715
6530
|
var t = new XMLHttpRequest();
|
|
6716
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6531
|
+
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e), false), t.send(), 200 !== t.status && 0 !== t.status) throw new Error("Bad File access: " + t.status);
|
|
6717
6532
|
return {
|
|
6718
6533
|
type: e.type,
|
|
6719
6534
|
stringContents: t.responseText,
|
|
@@ -6809,31 +6624,31 @@
|
|
|
6809
6624
|
return a.addEventListener("load", function () {
|
|
6810
6625
|
n.drawImage(a, 0, 0);
|
|
6811
6626
|
}), a.src = t.dataURL, new e(/*#__PURE__*/function () {
|
|
6812
|
-
var
|
|
6813
|
-
|
|
6814
|
-
|
|
6627
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e, t) {
|
|
6628
|
+
var _t2, _t3, _t4;
|
|
6629
|
+
return _regenerator().w(function (_context2) {
|
|
6630
|
+
while (1) switch (_context2.n) {
|
|
6815
6631
|
case 0:
|
|
6816
|
-
_context2.
|
|
6817
|
-
|
|
6818
|
-
_context2.
|
|
6632
|
+
_context2.p = 0;
|
|
6633
|
+
_t2 = e;
|
|
6634
|
+
_context2.n = 1;
|
|
6819
6635
|
return createImageBitmap(r);
|
|
6820
|
-
case
|
|
6821
|
-
|
|
6822
|
-
(
|
|
6823
|
-
_context2.
|
|
6636
|
+
case 1:
|
|
6637
|
+
_t3 = _context2.v;
|
|
6638
|
+
_t2(_t3);
|
|
6639
|
+
_context2.n = 3;
|
|
6824
6640
|
break;
|
|
6825
|
-
case
|
|
6826
|
-
_context2.
|
|
6827
|
-
|
|
6828
|
-
t(
|
|
6829
|
-
case
|
|
6830
|
-
|
|
6831
|
-
return _context2.stop();
|
|
6641
|
+
case 2:
|
|
6642
|
+
_context2.p = 2;
|
|
6643
|
+
_t4 = _context2.v;
|
|
6644
|
+
t(_t4);
|
|
6645
|
+
case 3:
|
|
6646
|
+
return _context2.a(2);
|
|
6832
6647
|
}
|
|
6833
|
-
}, _callee2, null, [[0,
|
|
6648
|
+
}, _callee2, null, [[0, 2]]);
|
|
6834
6649
|
}));
|
|
6835
6650
|
return function (_x3, _x4) {
|
|
6836
|
-
return
|
|
6651
|
+
return _ref0.apply(this, arguments);
|
|
6837
6652
|
};
|
|
6838
6653
|
}());
|
|
6839
6654
|
}
|
|
@@ -6921,7 +6736,7 @@
|
|
|
6921
6736
|
}
|
|
6922
6737
|
}
|
|
6923
6738
|
},
|
|
6924
|
-
|
|
6739
|
+
J = {
|
|
6925
6740
|
StringObject: {
|
|
6926
6741
|
test: function test(e) {
|
|
6927
6742
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -6952,7 +6767,7 @@
|
|
|
6952
6767
|
}
|
|
6953
6768
|
}
|
|
6954
6769
|
},
|
|
6955
|
-
|
|
6770
|
+
q = {
|
|
6956
6771
|
regexp: {
|
|
6957
6772
|
test: function test(e) {
|
|
6958
6773
|
return "RegExp" === toStringTag(e);
|
|
@@ -6963,14 +6778,14 @@
|
|
|
6963
6778
|
flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
|
|
6964
6779
|
};
|
|
6965
6780
|
},
|
|
6966
|
-
revive: function revive(
|
|
6967
|
-
var e =
|
|
6968
|
-
t =
|
|
6781
|
+
revive: function revive(_ref10) {
|
|
6782
|
+
var e = _ref10.source,
|
|
6783
|
+
t = _ref10.flags;
|
|
6969
6784
|
return new RegExp(e, t);
|
|
6970
6785
|
}
|
|
6971
6786
|
}
|
|
6972
6787
|
},
|
|
6973
|
-
|
|
6788
|
+
G = {
|
|
6974
6789
|
set: {
|
|
6975
6790
|
test: function test(e) {
|
|
6976
6791
|
return "Set" === toStringTag(e);
|
|
@@ -7008,10 +6823,10 @@
|
|
|
7008
6823
|
test: function test(e) {
|
|
7009
6824
|
return toStringTag(e) === t;
|
|
7010
6825
|
},
|
|
7011
|
-
replace: function replace(
|
|
7012
|
-
var e =
|
|
7013
|
-
t =
|
|
7014
|
-
r =
|
|
6826
|
+
replace: function replace(_ref11, n) {
|
|
6827
|
+
var e = _ref11.buffer,
|
|
6828
|
+
t = _ref11.byteOffset,
|
|
6829
|
+
r = _ref11.length;
|
|
7015
6830
|
n.buffers || (n.buffers = []);
|
|
7016
6831
|
var a = n.buffers.indexOf(e);
|
|
7017
6832
|
return a > -1 ? {
|
|
@@ -7020,6 +6835,7 @@
|
|
|
7020
6835
|
length: r
|
|
7021
6836
|
} : (n.buffers.push(e), {
|
|
7022
6837
|
maxByteLength: e.maxByteLength,
|
|
6838
|
+
resizable: e.resizable,
|
|
7023
6839
|
encoded: p(e),
|
|
7024
6840
|
byteOffset: t,
|
|
7025
6841
|
length: r
|
|
@@ -7031,11 +6847,12 @@
|
|
|
7031
6847
|
a = t.length,
|
|
7032
6848
|
o = t.encoded,
|
|
7033
6849
|
i = t.index,
|
|
7034
|
-
c = t.maxByteLength
|
|
7035
|
-
|
|
7036
|
-
|
|
6850
|
+
c = t.maxByteLength,
|
|
6851
|
+
s = t.resizable;
|
|
6852
|
+
var u;
|
|
6853
|
+
return "index" in t ? u = r.buffers[i] : (u = d(o, s ? {
|
|
7037
6854
|
maxByteLength: c
|
|
7038
|
-
}), r.buffers.push(
|
|
6855
|
+
} : void 0), r.buffers.push(u)), new e(u, n, a);
|
|
7039
6856
|
}
|
|
7040
6857
|
};
|
|
7041
6858
|
}(e);
|
|
@@ -7068,22 +6885,22 @@
|
|
|
7068
6885
|
},
|
|
7069
6886
|
te = [{
|
|
7070
6887
|
arrayNonindexKeys: {
|
|
7071
|
-
testPlainObjects:
|
|
6888
|
+
testPlainObjects: true,
|
|
7072
6889
|
test: function test(e, t) {
|
|
7073
6890
|
return !!Array.isArray(e) && (Object.keys(e).some(function (e) {
|
|
7074
6891
|
return String(Number.parseInt(e)) !== e;
|
|
7075
|
-
}) && (t.iterateIn = "object", t.addLength =
|
|
6892
|
+
}) && (t.iterateIn = "object", t.addLength = true), true);
|
|
7076
6893
|
},
|
|
7077
6894
|
replace: function replace(e, t) {
|
|
7078
|
-
return t.iterateUnsetNumeric =
|
|
6895
|
+
return t.iterateUnsetNumeric = true, e;
|
|
7079
6896
|
},
|
|
7080
6897
|
revive: function revive(e) {
|
|
7081
6898
|
if (Array.isArray(e)) return e;
|
|
7082
6899
|
var t = [];
|
|
7083
|
-
return Object.entries(e).forEach(function (
|
|
7084
|
-
var
|
|
7085
|
-
e =
|
|
7086
|
-
r =
|
|
6900
|
+
return Object.entries(e).forEach(function (_ref12) {
|
|
6901
|
+
var _ref13 = _slicedToArray$1(_ref12, 2),
|
|
6902
|
+
e = _ref13[0],
|
|
6903
|
+
r = _ref13[1];
|
|
7087
6904
|
t[e] = r;
|
|
7088
6905
|
}), t;
|
|
7089
6906
|
}
|
|
@@ -7091,7 +6908,7 @@
|
|
|
7091
6908
|
}, {
|
|
7092
6909
|
sparseUndefined: {
|
|
7093
6910
|
test: function test(e, t) {
|
|
7094
|
-
return void 0 === e &&
|
|
6911
|
+
return void 0 === e && false === t.ownKeys;
|
|
7095
6912
|
},
|
|
7096
6913
|
replace: function replace() {
|
|
7097
6914
|
return 0;
|
|
@@ -7100,13 +6917,13 @@
|
|
|
7100
6917
|
}
|
|
7101
6918
|
}],
|
|
7102
6919
|
re = [K, U, F, $],
|
|
7103
|
-
ce = [ee, Z, te,
|
|
6920
|
+
ce = [ee, Z, te, J, re, A, q, k, B, E, C, h, P, x].concat("function" == typeof Map ? D : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? X : [], "function" == typeof DataView ? _ : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [m, b] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? I : [], "undefined" != typeof DOMMatrix ? j : []),
|
|
7104
6921
|
se = ce.concat({
|
|
7105
6922
|
checkDataCloneException: {
|
|
7106
6923
|
test: function test(e) {
|
|
7107
6924
|
var t = {}.toString.call(e).slice(8, -1);
|
|
7108
6925
|
if (["symbol", "function"].includes(_typeof$2(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "Event", "MessageChannel"].includes(t) || e && "object" == _typeof$2(e) && "number" == typeof e.nodeType && "function" == typeof e.insertBefore) throw new DOMException("The object cannot be cloned.", "DataCloneError");
|
|
7109
|
-
return
|
|
6926
|
+
return false;
|
|
7110
6927
|
}
|
|
7111
6928
|
}
|
|
7112
6929
|
});
|
|
@@ -7448,7 +7265,6 @@
|
|
|
7448
7265
|
tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
|
|
7449
7266
|
addIndexEntry(i + 1);
|
|
7450
7267
|
}, /** @type {SQLStatementErrorCallback} */error);
|
|
7451
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
7452
7268
|
} catch (err) {
|
|
7453
7269
|
// Not a valid value to insert into index, so just continue
|
|
7454
7270
|
addIndexEntry(i + 1);
|
|
@@ -7573,7 +7389,6 @@
|
|
|
7573
7389
|
IDBIndex.__updateIndexList = function (store, tx, success, failure) {
|
|
7574
7390
|
/** @type {IndexList} **/
|
|
7575
7391
|
var indexList = {};
|
|
7576
|
-
// eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
|
|
7577
7392
|
for (var i = 0; i < store.indexNames.length; i++) {
|
|
7578
7393
|
var idx = store.__indexes[store.indexNames[i]];
|
|
7579
7394
|
indexList[idx.name] = {
|
|
@@ -8555,7 +8370,6 @@
|
|
|
8555
8370
|
if ('invalid' in indexKey && indexKey.invalid || 'failure' in indexKey && indexKey.failure) {
|
|
8556
8371
|
throw new Error('Go to catch');
|
|
8557
8372
|
}
|
|
8558
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
8559
8373
|
} catch (err) {
|
|
8560
8374
|
resolve(undefined);
|
|
8561
8375
|
return;
|
|
@@ -9889,7 +9703,7 @@
|
|
|
9889
9703
|
*/
|
|
9890
9704
|
function getLatestCachedWebSQLVersion(name) {
|
|
9891
9705
|
return Object.keys(websqlDBCache[name]).map(Number).reduce(function (prev, curr) {
|
|
9892
|
-
return curr
|
|
9706
|
+
return Math.max(curr, prev);
|
|
9893
9707
|
}, 0);
|
|
9894
9708
|
}
|
|
9895
9709
|
|
|
@@ -10171,7 +9985,6 @@
|
|
|
10171
9985
|
if (err) {
|
|
10172
9986
|
try {
|
|
10173
9987
|
systx.executeSql('ROLLBACK', [], cb, cb);
|
|
10174
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
10175
9988
|
} catch (err) {
|
|
10176
9989
|
// Browser may fail with expired transaction above so
|
|
10177
9990
|
// no choice but to manually revert
|
|
@@ -10279,7 +10092,7 @@
|
|
|
10279
10092
|
// eslint-disable-next-line camelcase -- Clear API
|
|
10280
10093
|
req.transaction.on__complete = function () {
|
|
10281
10094
|
var pos = connection.__transactions.indexOf(req.transaction);
|
|
10282
|
-
if (pos
|
|
10095
|
+
if (pos !== -1) {
|
|
10283
10096
|
connection.__transactions.splice(pos, 1);
|
|
10284
10097
|
}
|
|
10285
10098
|
if (/** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
|
|
@@ -11716,7 +11529,6 @@
|
|
|
11716
11529
|
Object.getOwnPropertyDescriptor(o, name);
|
|
11717
11530
|
}
|
|
11718
11531
|
Object.defineProperty(IDB, name, desc);
|
|
11719
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
11720
11532
|
} catch (err) {
|
|
11721
11533
|
// With `indexedDB`, PhantomJS fails here and below but
|
|
11722
11534
|
// not above, while Chrome is reverse (and Firefox doesn't
|