indexeddbshim 15.1.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 +808 -700
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +315 -493
- 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 +808 -700
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +315 -493
- 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 +315 -493
- 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 +2 -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 +18 -6
- 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 +3 -1
|
@@ -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
|
}
|
|
@@ -1846,12 +1663,13 @@
|
|
|
1846
1663
|
}
|
|
1847
1664
|
|
|
1848
1665
|
/**
|
|
1666
|
+
* @todo Didn't need to escape `%`. Do we still need this escape?
|
|
1849
1667
|
* @param {string} str
|
|
1850
1668
|
* @returns {string}
|
|
1851
1669
|
*/
|
|
1852
1670
|
function sqlLIKEEscape(str) {
|
|
1853
1671
|
// https://www.sqlite.org/lang_expr.html#like
|
|
1854
|
-
return
|
|
1672
|
+
return str.replaceAll('^', '^^');
|
|
1855
1673
|
}
|
|
1856
1674
|
|
|
1857
1675
|
/**
|
|
@@ -2608,7 +2426,6 @@
|
|
|
2608
2426
|
// Native DOMException works as expected
|
|
2609
2427
|
useNativeDOMException = true;
|
|
2610
2428
|
}
|
|
2611
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
2612
2429
|
} catch (err) {}
|
|
2613
2430
|
var createDOMException = useNativeDOMException
|
|
2614
2431
|
// eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
|
|
@@ -3364,7 +3181,7 @@
|
|
|
3364
3181
|
key = key.slice(2);
|
|
3365
3182
|
if (inArray) {
|
|
3366
3183
|
// remove the space at the end, and the dash before each character
|
|
3367
|
-
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');
|
|
3368
3185
|
}
|
|
3369
3186
|
return key;
|
|
3370
3187
|
}
|
|
@@ -3757,7 +3574,7 @@
|
|
|
3757
3574
|
value: date.getTime()
|
|
3758
3575
|
} : {
|
|
3759
3576
|
type: type,
|
|
3760
|
-
value: new Date(date
|
|
3577
|
+
value: new Date(date)
|
|
3761
3578
|
};
|
|
3762
3579
|
}
|
|
3763
3580
|
return {
|
|
@@ -4590,7 +4407,6 @@
|
|
|
4590
4407
|
if (testObject.test) {
|
|
4591
4408
|
cleanInterface = true;
|
|
4592
4409
|
}
|
|
4593
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
4594
4410
|
} catch (err) {
|
|
4595
4411
|
// Object.defineProperty does not work as intended.
|
|
4596
4412
|
}
|
|
@@ -4721,25 +4537,24 @@
|
|
|
4721
4537
|
}
|
|
4722
4538
|
this.sortList();
|
|
4723
4539
|
}
|
|
4724
|
-
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/
|
|
4540
|
+
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4725
4541
|
var i;
|
|
4726
|
-
return
|
|
4727
|
-
while (1) switch (_context.
|
|
4542
|
+
return _regenerator().w(function (_context) {
|
|
4543
|
+
while (1) switch (_context.n) {
|
|
4728
4544
|
case 0:
|
|
4729
4545
|
i = 0;
|
|
4730
4546
|
case 1:
|
|
4731
4547
|
if (!(i < this._items.length)) {
|
|
4732
|
-
_context.
|
|
4548
|
+
_context.n = 3;
|
|
4733
4549
|
break;
|
|
4734
4550
|
}
|
|
4735
|
-
_context.
|
|
4551
|
+
_context.n = 2;
|
|
4736
4552
|
return this._items[i++];
|
|
4737
|
-
case
|
|
4738
|
-
_context.
|
|
4553
|
+
case 2:
|
|
4554
|
+
_context.n = 1;
|
|
4739
4555
|
break;
|
|
4740
|
-
case
|
|
4741
|
-
|
|
4742
|
-
return _context.stop();
|
|
4556
|
+
case 3:
|
|
4557
|
+
return _context.a(2);
|
|
4743
4558
|
}
|
|
4744
4559
|
}, _callee, this);
|
|
4745
4560
|
}));
|
|
@@ -5469,7 +5284,6 @@
|
|
|
5469
5284
|
}
|
|
5470
5285
|
try {
|
|
5471
5286
|
me.__tx.executeSql('ROLLBACK', [], abort, /** @type {SQLStatementErrorCallback} */abort); // Not working in some circumstances, even in Node
|
|
5472
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
5473
5287
|
} catch (err) {
|
|
5474
5288
|
// Browser errs when transaction has ended and since it most likely already erred here,
|
|
5475
5289
|
// we call to abort
|
|
@@ -5596,7 +5410,7 @@
|
|
|
5596
5410
|
function _objectSpread2(e) {
|
|
5597
5411
|
for (var t = 1; t < arguments.length; t++) {
|
|
5598
5412
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
5599
|
-
t % 2 ? ownKeys(Object(r),
|
|
5413
|
+
t % 2 ? ownKeys(Object(r), true).forEach(function (t) {
|
|
5600
5414
|
_defineProperty(e, t, r[t]);
|
|
5601
5415
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (t) {
|
|
5602
5416
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
@@ -5618,18 +5432,18 @@
|
|
|
5618
5432
|
return t && function _defineProperties(e, t) {
|
|
5619
5433
|
for (var r = 0; r < t.length; r++) {
|
|
5620
5434
|
var n = t[r];
|
|
5621
|
-
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);
|
|
5622
5436
|
}
|
|
5623
5437
|
}(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
5624
|
-
writable:
|
|
5438
|
+
writable: false
|
|
5625
5439
|
}), e;
|
|
5626
5440
|
}
|
|
5627
5441
|
function _defineProperty(e, t, r) {
|
|
5628
5442
|
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5629
5443
|
value: r,
|
|
5630
|
-
enumerable:
|
|
5631
|
-
configurable:
|
|
5632
|
-
writable:
|
|
5444
|
+
enumerable: true,
|
|
5445
|
+
configurable: true,
|
|
5446
|
+
writable: true
|
|
5633
5447
|
}) : e[t] = r, e;
|
|
5634
5448
|
}
|
|
5635
5449
|
function _slicedToArray(e, t) {
|
|
@@ -5643,15 +5457,15 @@
|
|
|
5643
5457
|
o,
|
|
5644
5458
|
i,
|
|
5645
5459
|
c = [],
|
|
5646
|
-
s =
|
|
5647
|
-
u =
|
|
5460
|
+
s = true,
|
|
5461
|
+
u = false;
|
|
5648
5462
|
try {
|
|
5649
5463
|
if (o = (r = r.call(e)).next, 0 === t) {
|
|
5650
5464
|
if (Object(r) !== r) return;
|
|
5651
5465
|
s = !1;
|
|
5652
5466
|
} else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
|
|
5653
5467
|
} catch (e) {
|
|
5654
|
-
u =
|
|
5468
|
+
u = true, a = e;
|
|
5655
5469
|
} finally {
|
|
5656
5470
|
try {
|
|
5657
5471
|
if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
@@ -5738,13 +5552,13 @@
|
|
|
5738
5552
|
var t = Object.hasOwn,
|
|
5739
5553
|
r = Object.getPrototypeOf;
|
|
5740
5554
|
function isThenable(e, t) {
|
|
5741
|
-
return isObject(e) && "function" == typeof e.then && (
|
|
5555
|
+
return isObject(e) && "function" == typeof e.then && (true || "function" == typeof e["catch"]);
|
|
5742
5556
|
}
|
|
5743
5557
|
function toStringTag(e) {
|
|
5744
5558
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5745
5559
|
}
|
|
5746
5560
|
function hasConstructorOf(e, n) {
|
|
5747
|
-
if (!e || "object" !== _typeof(e)) return
|
|
5561
|
+
if (!e || "object" !== _typeof(e)) return false;
|
|
5748
5562
|
var a = r(e);
|
|
5749
5563
|
if (!a) return null === n;
|
|
5750
5564
|
var o = t(a, "constructor") && a.constructor;
|
|
@@ -5754,7 +5568,7 @@
|
|
|
5754
5568
|
return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
|
|
5755
5569
|
}
|
|
5756
5570
|
function isUserObject(e) {
|
|
5757
|
-
if (!e || "Object" !== toStringTag(e)) return
|
|
5571
|
+
if (!e || "Object" !== toStringTag(e)) return false;
|
|
5758
5572
|
var t = r(e);
|
|
5759
5573
|
return !t || hasConstructorOf(e, Object) || isUserObject(t);
|
|
5760
5574
|
}
|
|
@@ -5818,7 +5632,7 @@
|
|
|
5818
5632
|
key: "stringify",
|
|
5819
5633
|
value: function stringify(e, t, r, n) {
|
|
5820
5634
|
n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
|
|
5821
|
-
stringification:
|
|
5635
|
+
stringification: true
|
|
5822
5636
|
});
|
|
5823
5637
|
var a = this.encapsulate(e, null, n);
|
|
5824
5638
|
return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
|
|
@@ -5829,63 +5643,63 @@
|
|
|
5829
5643
|
key: "stringifySync",
|
|
5830
5644
|
value: function stringifySync(e, t, r, n) {
|
|
5831
5645
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5832
|
-
throwOnBadSyncType:
|
|
5646
|
+
throwOnBadSyncType: true
|
|
5833
5647
|
}, n), {}, {
|
|
5834
|
-
sync:
|
|
5648
|
+
sync: true
|
|
5835
5649
|
}));
|
|
5836
5650
|
}
|
|
5837
5651
|
}, {
|
|
5838
5652
|
key: "stringifyAsync",
|
|
5839
5653
|
value: function stringifyAsync(e, t, r, n) {
|
|
5840
5654
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5841
|
-
throwOnBadSyncType:
|
|
5655
|
+
throwOnBadSyncType: true
|
|
5842
5656
|
}, n), {}, {
|
|
5843
|
-
sync:
|
|
5657
|
+
sync: false
|
|
5844
5658
|
}));
|
|
5845
5659
|
}
|
|
5846
5660
|
}, {
|
|
5847
5661
|
key: "parse",
|
|
5848
5662
|
value: function parse(e, t, r) {
|
|
5849
5663
|
return r = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), r), {}, {
|
|
5850
|
-
parse:
|
|
5664
|
+
parse: true
|
|
5851
5665
|
}), this.revive(JSON.parse(e, t), r);
|
|
5852
5666
|
}
|
|
5853
5667
|
}, {
|
|
5854
5668
|
key: "parseSync",
|
|
5855
5669
|
value: function parseSync(e, t, r) {
|
|
5856
5670
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5857
|
-
throwOnBadSyncType:
|
|
5671
|
+
throwOnBadSyncType: true
|
|
5858
5672
|
}, r), {}, {
|
|
5859
|
-
sync:
|
|
5673
|
+
sync: true
|
|
5860
5674
|
}));
|
|
5861
5675
|
}
|
|
5862
5676
|
}, {
|
|
5863
5677
|
key: "parseAsync",
|
|
5864
5678
|
value: function parseAsync(e, t, r) {
|
|
5865
5679
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5866
|
-
throwOnBadSyncType:
|
|
5680
|
+
throwOnBadSyncType: true
|
|
5867
5681
|
}, r), {}, {
|
|
5868
|
-
sync:
|
|
5682
|
+
sync: false
|
|
5869
5683
|
}));
|
|
5870
5684
|
}
|
|
5871
5685
|
}, {
|
|
5872
5686
|
key: "specialTypeNames",
|
|
5873
5687
|
value: function specialTypeNames(e, t) {
|
|
5874
5688
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5875
|
-
return r.returnTypeNames =
|
|
5689
|
+
return r.returnTypeNames = true, this.encapsulate(e, t, r);
|
|
5876
5690
|
}
|
|
5877
5691
|
}, {
|
|
5878
5692
|
key: "rootTypeName",
|
|
5879
5693
|
value: function rootTypeName(e, t) {
|
|
5880
5694
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5881
|
-
return r.iterateNone =
|
|
5695
|
+
return r.iterateNone = true, this.encapsulate(e, t, r);
|
|
5882
5696
|
}
|
|
5883
5697
|
}, {
|
|
5884
5698
|
key: "encapsulate",
|
|
5885
5699
|
value: function encapsulate(t, r, c) {
|
|
5886
5700
|
var s = this,
|
|
5887
5701
|
u = _objectSpread2(_objectSpread2({
|
|
5888
|
-
sync:
|
|
5702
|
+
sync: true
|
|
5889
5703
|
}, this.options), c),
|
|
5890
5704
|
l = u.sync,
|
|
5891
5705
|
f = {},
|
|
@@ -5893,8 +5707,8 @@
|
|
|
5893
5707
|
p = [],
|
|
5894
5708
|
d = [],
|
|
5895
5709
|
v = !("cyclic" in u) || u.cyclic,
|
|
5896
|
-
|
|
5897
|
-
|
|
5710
|
+
b = u.encapsulateObserver,
|
|
5711
|
+
m = function finish(e) {
|
|
5898
5712
|
var t = Object.values(f);
|
|
5899
5713
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5900
5714
|
if (t.length) {
|
|
@@ -5915,7 +5729,7 @@
|
|
|
5915
5729
|
};
|
|
5916
5730
|
} else isObject(e) && a(e, "$types") && (e = {
|
|
5917
5731
|
$: e,
|
|
5918
|
-
$types:
|
|
5732
|
+
$types: true
|
|
5919
5733
|
});
|
|
5920
5734
|
return !u.returnTypeNames && e;
|
|
5921
5735
|
},
|
|
@@ -5924,7 +5738,7 @@
|
|
|
5924
5738
|
return e[1].p;
|
|
5925
5739
|
})), function (n) {
|
|
5926
5740
|
return _await(Promise.all(n.map(_async(function (n) {
|
|
5927
|
-
var a =
|
|
5741
|
+
var a = false,
|
|
5928
5742
|
o = [],
|
|
5929
5743
|
i = _slicedToArray(r.splice(0, 1), 1),
|
|
5930
5744
|
c = _slicedToArray(i[0], 7),
|
|
@@ -5934,7 +5748,7 @@
|
|
|
5934
5748
|
f = c[4],
|
|
5935
5749
|
y = c[5],
|
|
5936
5750
|
p = c[6],
|
|
5937
|
-
d = O(s, n, u, l, o,
|
|
5751
|
+
d = O(s, n, u, l, o, true, p),
|
|
5938
5752
|
v = hasConstructorOf(d, e);
|
|
5939
5753
|
return function _invoke(e, t) {
|
|
5940
5754
|
var r = e();
|
|
@@ -5943,7 +5757,7 @@
|
|
|
5943
5757
|
if (s && v) return _await(d.p, function (e) {
|
|
5944
5758
|
f[y] = e;
|
|
5945
5759
|
var r = h(t, o);
|
|
5946
|
-
return a =
|
|
5760
|
+
return a = true, r;
|
|
5947
5761
|
});
|
|
5948
5762
|
}, function (e) {
|
|
5949
5763
|
return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
|
|
@@ -5964,13 +5778,13 @@
|
|
|
5964
5778
|
});
|
|
5965
5779
|
},
|
|
5966
5780
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5967
|
-
var
|
|
5781
|
+
var m,
|
|
5968
5782
|
h = {},
|
|
5969
5783
|
O = _typeof(r),
|
|
5970
|
-
_ =
|
|
5784
|
+
_ = b ? function (n) {
|
|
5971
5785
|
var a,
|
|
5972
5786
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5973
|
-
|
|
5787
|
+
b(Object.assign(null != n ? n : h, {
|
|
5974
5788
|
keypath: t,
|
|
5975
5789
|
value: r,
|
|
5976
5790
|
cyclic: i,
|
|
@@ -5982,30 +5796,30 @@
|
|
|
5982
5796
|
type: o
|
|
5983
5797
|
}));
|
|
5984
5798
|
} : null;
|
|
5985
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5986
|
-
replaced:
|
|
5987
|
-
}) :
|
|
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;
|
|
5988
5802
|
if (null === r) return _ && _(), r;
|
|
5989
5803
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5990
5804
|
var A = y.indexOf(r);
|
|
5991
5805
|
if (!(A < 0)) return f[t] = "#", _ && _({
|
|
5992
5806
|
cyclicKeypath: p[A]
|
|
5993
5807
|
}), "#" + p[A];
|
|
5994
|
-
|
|
5808
|
+
true === i && (y.push(r), p.push(t));
|
|
5995
5809
|
}
|
|
5996
5810
|
var S,
|
|
5997
5811
|
j,
|
|
5998
5812
|
T = isPlainObject(r),
|
|
5999
5813
|
I = o(r),
|
|
6000
5814
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
6001
|
-
if (N !== r ? (
|
|
5815
|
+
if (N !== r ? (m = N, h = {
|
|
6002
5816
|
replaced: N
|
|
6003
|
-
}) : "" === 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 = {
|
|
6004
5818
|
clone: S
|
|
6005
|
-
}) : (["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 = {
|
|
6006
5820
|
clone: S
|
|
6007
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
6008
|
-
if (!S) return
|
|
5821
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
|
|
5822
|
+
if (!S) return m;
|
|
6009
5823
|
if (c.iterateIn) {
|
|
6010
5824
|
var P = function _loop(n) {
|
|
6011
5825
|
var o = {
|
|
@@ -6019,27 +5833,27 @@
|
|
|
6019
5833
|
};
|
|
6020
5834
|
for (var x in r) P(x);
|
|
6021
5835
|
_ && _({
|
|
6022
|
-
endIterateIn:
|
|
6023
|
-
end:
|
|
5836
|
+
endIterateIn: true,
|
|
5837
|
+
end: true
|
|
6024
5838
|
});
|
|
6025
5839
|
} else n(r).forEach(function (n) {
|
|
6026
5840
|
var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
|
|
6027
5841
|
g(c, {
|
|
6028
|
-
ownKeys:
|
|
5842
|
+
ownKeys: true
|
|
6029
5843
|
}, function () {
|
|
6030
5844
|
var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
|
|
6031
5845
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
6032
5846
|
});
|
|
6033
5847
|
}), _ && _({
|
|
6034
|
-
endIterateOwn:
|
|
6035
|
-
end:
|
|
5848
|
+
endIterateOwn: true,
|
|
5849
|
+
end: true
|
|
6036
5850
|
});
|
|
6037
5851
|
if (c.iterateUnsetNumeric) {
|
|
6038
5852
|
for (var E = r.length, C = function _loop2(n) {
|
|
6039
5853
|
if (!(n in r)) {
|
|
6040
5854
|
var a = "".concat(t).concat(t ? "." : "").concat(n);
|
|
6041
5855
|
g(c, {
|
|
6042
|
-
ownKeys:
|
|
5856
|
+
ownKeys: false
|
|
6043
5857
|
}, function () {
|
|
6044
5858
|
var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
|
|
6045
5859
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
@@ -6047,8 +5861,8 @@
|
|
|
6047
5861
|
}
|
|
6048
5862
|
}, B = 0; B < E; B++) C(B);
|
|
6049
5863
|
_ && _({
|
|
6050
|
-
endIterateUnsetNumeric:
|
|
6051
|
-
end:
|
|
5864
|
+
endIterateUnsetNumeric: true,
|
|
5865
|
+
end: true
|
|
6052
5866
|
});
|
|
6053
5867
|
}
|
|
6054
5868
|
return S;
|
|
@@ -6064,19 +5878,19 @@
|
|
|
6064
5878
|
}
|
|
6065
5879
|
if (Object.assign(r, {
|
|
6066
5880
|
type: p,
|
|
6067
|
-
replaced:
|
|
5881
|
+
replaced: true
|
|
6068
5882
|
}), (l || !y.replaceAsync) && !y.replace) return i && i({
|
|
6069
|
-
typeDetected:
|
|
5883
|
+
typeDetected: true
|
|
6070
5884
|
}), O(e, t, v && "readonly", r, n, o, p);
|
|
6071
5885
|
i && i({
|
|
6072
|
-
replacing:
|
|
5886
|
+
replacing: true
|
|
6073
5887
|
});
|
|
6074
|
-
var
|
|
5888
|
+
var b = void 0;
|
|
6075
5889
|
if (l || !y.replaceAsync) {
|
|
6076
5890
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6077
|
-
|
|
6078
|
-
} else
|
|
6079
|
-
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);
|
|
6080
5894
|
}
|
|
6081
5895
|
}
|
|
6082
5896
|
return t;
|
|
@@ -6084,26 +5898,26 @@
|
|
|
6084
5898
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6085
5899
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6086
5900
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6087
|
-
}() : Promise.resolve(h(_, d)).then(
|
|
5901
|
+
}() : Promise.resolve(h(_, d)).then(m);
|
|
6088
5902
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6089
|
-
return u.stringification && l ? [
|
|
5903
|
+
return u.stringification && l ? [m(_)] : l ? m(_) : Promise.resolve(m(_));
|
|
6090
5904
|
}
|
|
6091
5905
|
}, {
|
|
6092
5906
|
key: "encapsulateSync",
|
|
6093
5907
|
value: function encapsulateSync(e, t, r) {
|
|
6094
5908
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6095
|
-
throwOnBadSyncType:
|
|
5909
|
+
throwOnBadSyncType: true
|
|
6096
5910
|
}, r), {}, {
|
|
6097
|
-
sync:
|
|
5911
|
+
sync: true
|
|
6098
5912
|
}));
|
|
6099
5913
|
}
|
|
6100
5914
|
}, {
|
|
6101
5915
|
key: "encapsulateAsync",
|
|
6102
5916
|
value: function encapsulateAsync(e, t, r) {
|
|
6103
5917
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6104
|
-
throwOnBadSyncType:
|
|
5918
|
+
throwOnBadSyncType: true
|
|
6105
5919
|
}, r), {}, {
|
|
6106
|
-
sync:
|
|
5920
|
+
sync: false
|
|
6107
5921
|
}));
|
|
6108
5922
|
}
|
|
6109
5923
|
}, {
|
|
@@ -6111,7 +5925,7 @@
|
|
|
6111
5925
|
value: function revive(t, r) {
|
|
6112
5926
|
var a = this,
|
|
6113
5927
|
i = _objectSpread2(_objectSpread2({
|
|
6114
|
-
sync:
|
|
5928
|
+
sync: true
|
|
6115
5929
|
}, this.options), r),
|
|
6116
5930
|
c = i.sync;
|
|
6117
5931
|
function finishRevival(e) {
|
|
@@ -6121,12 +5935,12 @@
|
|
|
6121
5935
|
}
|
|
6122
5936
|
if (!t || "object" !== _typeof(t) || Array.isArray(t)) return finishRevival(t);
|
|
6123
5937
|
var u = t.$types;
|
|
6124
|
-
if (
|
|
5938
|
+
if (true === u) return finishRevival(t.$);
|
|
6125
5939
|
if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
|
|
6126
5940
|
var l = [],
|
|
6127
5941
|
f = {},
|
|
6128
|
-
y =
|
|
6129
|
-
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y =
|
|
5942
|
+
y = true;
|
|
5943
|
+
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = false);
|
|
6130
5944
|
var p = function executeReviver(e, t) {
|
|
6131
5945
|
var r,
|
|
6132
5946
|
n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
|
|
@@ -6141,7 +5955,7 @@
|
|
|
6141
5955
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6142
5956
|
}
|
|
6143
5957
|
var v,
|
|
6144
|
-
|
|
5958
|
+
b = function revivePlainObjects() {
|
|
6145
5959
|
var r = [];
|
|
6146
5960
|
if (!u) throw new Error("Found bad `types`");
|
|
6147
5961
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6173,28 +5987,28 @@
|
|
|
6173
5987
|
c === i && (t = c);
|
|
6174
5988
|
}, void 0);
|
|
6175
5989
|
}();
|
|
6176
|
-
return hasConstructorOf(
|
|
5990
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6177
5991
|
return t;
|
|
6178
5992
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6179
5993
|
if (!y || "$types" !== t) {
|
|
6180
5994
|
var f = u[t],
|
|
6181
5995
|
v = o(r);
|
|
6182
5996
|
if (v || isPlainObject(r)) {
|
|
6183
|
-
var
|
|
5997
|
+
var b = v ? new Array(r.length) : {};
|
|
6184
5998
|
for (n(r).forEach(function (n) {
|
|
6185
|
-
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),
|
|
6186
6000
|
i = function set(e) {
|
|
6187
|
-
return hasConstructorOf(e, s) ?
|
|
6001
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6188
6002
|
};
|
|
6189
6003
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6190
6004
|
return i(e);
|
|
6191
6005
|
})) : i(o);
|
|
6192
|
-
}), r =
|
|
6193
|
-
var
|
|
6194
|
-
h =
|
|
6195
|
-
g =
|
|
6196
|
-
O =
|
|
6197
|
-
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],
|
|
6198
6012
|
_ = getByKeyPath(h, g);
|
|
6199
6013
|
if (void 0 === _) break;
|
|
6200
6014
|
O[w] = _, l.splice(0, 1);
|
|
@@ -6227,18 +6041,18 @@
|
|
|
6227
6041
|
key: "reviveSync",
|
|
6228
6042
|
value: function reviveSync(e, t) {
|
|
6229
6043
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6230
|
-
throwOnBadSyncType:
|
|
6044
|
+
throwOnBadSyncType: true
|
|
6231
6045
|
}, t), {}, {
|
|
6232
|
-
sync:
|
|
6046
|
+
sync: true
|
|
6233
6047
|
}));
|
|
6234
6048
|
}
|
|
6235
6049
|
}, {
|
|
6236
6050
|
key: "reviveAsync",
|
|
6237
6051
|
value: function reviveAsync(e, t) {
|
|
6238
6052
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6239
|
-
throwOnBadSyncType:
|
|
6053
|
+
throwOnBadSyncType: true
|
|
6240
6054
|
}, t), {}, {
|
|
6241
|
-
sync:
|
|
6055
|
+
sync: false
|
|
6242
6056
|
}));
|
|
6243
6057
|
}
|
|
6244
6058
|
}, {
|
|
@@ -6337,19 +6151,20 @@
|
|
|
6337
6151
|
index: r
|
|
6338
6152
|
} : (t.buffers.push(e), {
|
|
6339
6153
|
s: p(e),
|
|
6340
|
-
maxByteLength: e.maxByteLength
|
|
6154
|
+
maxByteLength: e.maxByteLength,
|
|
6155
|
+
resizable: e.resizable
|
|
6341
6156
|
});
|
|
6342
6157
|
},
|
|
6343
6158
|
revive: function revive(e, t) {
|
|
6344
6159
|
if (t.buffers || (t.buffers = []), Object.hasOwn(e, "index")) return t.buffers[e.index];
|
|
6345
|
-
var r = d(e.s, {
|
|
6160
|
+
var r = d(e.s, e.resizable ? {
|
|
6346
6161
|
maxByteLength: e.maxByteLength
|
|
6347
|
-
});
|
|
6162
|
+
} : void 0);
|
|
6348
6163
|
return t.buffers.push(r), r;
|
|
6349
6164
|
}
|
|
6350
6165
|
}
|
|
6351
6166
|
},
|
|
6352
|
-
|
|
6167
|
+
b = {
|
|
6353
6168
|
bigintObject: {
|
|
6354
6169
|
test: function test(e) {
|
|
6355
6170
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6360,7 +6175,7 @@
|
|
|
6360
6175
|
}
|
|
6361
6176
|
}
|
|
6362
6177
|
},
|
|
6363
|
-
|
|
6178
|
+
m = {
|
|
6364
6179
|
bigint: {
|
|
6365
6180
|
test: function test(e) {
|
|
6366
6181
|
return "bigint" == typeof e;
|
|
@@ -6388,7 +6203,7 @@
|
|
|
6388
6203
|
},
|
|
6389
6204
|
replace: function replace(e) {
|
|
6390
6205
|
var t = new XMLHttpRequest();
|
|
6391
|
-
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);
|
|
6392
6207
|
return {
|
|
6393
6208
|
type: e.type,
|
|
6394
6209
|
stringContents: t.responseText
|
|
@@ -6423,33 +6238,32 @@
|
|
|
6423
6238
|
},
|
|
6424
6239
|
replaceAsync: function replaceAsync(t) {
|
|
6425
6240
|
return new e(/*#__PURE__*/function () {
|
|
6426
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
6427
|
-
var n;
|
|
6428
|
-
return
|
|
6429
|
-
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) {
|
|
6430
6245
|
case 0:
|
|
6431
|
-
_context.
|
|
6432
|
-
_context.
|
|
6246
|
+
_context.p = 0;
|
|
6247
|
+
_context.n = 1;
|
|
6433
6248
|
return crypto.subtle.exportKey("jwk", t);
|
|
6434
|
-
case
|
|
6435
|
-
n = _context.
|
|
6436
|
-
_context.
|
|
6249
|
+
case 1:
|
|
6250
|
+
n = _context.v;
|
|
6251
|
+
_context.n = 3;
|
|
6437
6252
|
break;
|
|
6438
|
-
case
|
|
6439
|
-
_context.
|
|
6440
|
-
|
|
6441
|
-
return _context.
|
|
6442
|
-
case
|
|
6253
|
+
case 2:
|
|
6254
|
+
_context.p = 2;
|
|
6255
|
+
_t = _context.v;
|
|
6256
|
+
return _context.a(2, void r(_t));
|
|
6257
|
+
case 3:
|
|
6443
6258
|
e({
|
|
6444
6259
|
jwk: n,
|
|
6445
6260
|
algorithm: t.algorithm,
|
|
6446
6261
|
usages: t.usages
|
|
6447
6262
|
});
|
|
6448
|
-
case
|
|
6449
|
-
|
|
6450
|
-
return _context.stop();
|
|
6263
|
+
case 4:
|
|
6264
|
+
return _context.a(2);
|
|
6451
6265
|
}
|
|
6452
|
-
}, _callee, null, [[0,
|
|
6266
|
+
}, _callee, null, [[0, 2]]);
|
|
6453
6267
|
}));
|
|
6454
6268
|
return function (_x, _x2) {
|
|
6455
6269
|
return _ref.apply(this, arguments);
|
|
@@ -6460,7 +6274,7 @@
|
|
|
6460
6274
|
var t = e.jwk,
|
|
6461
6275
|
r = e.algorithm,
|
|
6462
6276
|
n = e.usages;
|
|
6463
|
-
return crypto.subtle.importKey("jwk", t, r,
|
|
6277
|
+
return crypto.subtle.importKey("jwk", t, r, true, n);
|
|
6464
6278
|
}
|
|
6465
6279
|
}
|
|
6466
6280
|
},
|
|
@@ -6482,6 +6296,7 @@
|
|
|
6482
6296
|
} : (n.buffers.push(e), {
|
|
6483
6297
|
encoded: p(e),
|
|
6484
6298
|
maxByteLength: e.maxByteLength,
|
|
6299
|
+
resizable: e.resizable,
|
|
6485
6300
|
byteOffset: t,
|
|
6486
6301
|
byteLength: r
|
|
6487
6302
|
});
|
|
@@ -6492,11 +6307,12 @@
|
|
|
6492
6307
|
n = e.byteLength,
|
|
6493
6308
|
a = e.encoded,
|
|
6494
6309
|
o = e.index,
|
|
6495
|
-
i = e.maxByteLength
|
|
6496
|
-
|
|
6497
|
-
|
|
6310
|
+
i = e.maxByteLength,
|
|
6311
|
+
c = e.resizable;
|
|
6312
|
+
var s;
|
|
6313
|
+
return "index" in e ? s = t.buffers[o] : (s = d(a, c ? {
|
|
6498
6314
|
maxByteLength: i
|
|
6499
|
-
}), t.buffers.push(
|
|
6315
|
+
} : i), t.buffers.push(s)), new DataView(s, r, n);
|
|
6500
6316
|
}
|
|
6501
6317
|
}
|
|
6502
6318
|
},
|
|
@@ -6712,7 +6528,7 @@
|
|
|
6712
6528
|
},
|
|
6713
6529
|
replace: function replace(e) {
|
|
6714
6530
|
var t = new XMLHttpRequest();
|
|
6715
|
-
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);
|
|
6716
6532
|
return {
|
|
6717
6533
|
type: e.type,
|
|
6718
6534
|
stringContents: t.responseText,
|
|
@@ -6808,31 +6624,31 @@
|
|
|
6808
6624
|
return a.addEventListener("load", function () {
|
|
6809
6625
|
n.drawImage(a, 0, 0);
|
|
6810
6626
|
}), a.src = t.dataURL, new e(/*#__PURE__*/function () {
|
|
6811
|
-
var
|
|
6812
|
-
|
|
6813
|
-
|
|
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) {
|
|
6814
6631
|
case 0:
|
|
6815
|
-
_context2.
|
|
6816
|
-
|
|
6817
|
-
_context2.
|
|
6632
|
+
_context2.p = 0;
|
|
6633
|
+
_t2 = e;
|
|
6634
|
+
_context2.n = 1;
|
|
6818
6635
|
return createImageBitmap(r);
|
|
6819
|
-
case
|
|
6820
|
-
|
|
6821
|
-
(
|
|
6822
|
-
_context2.
|
|
6636
|
+
case 1:
|
|
6637
|
+
_t3 = _context2.v;
|
|
6638
|
+
_t2(_t3);
|
|
6639
|
+
_context2.n = 3;
|
|
6823
6640
|
break;
|
|
6824
|
-
case
|
|
6825
|
-
_context2.
|
|
6826
|
-
|
|
6827
|
-
t(
|
|
6828
|
-
case
|
|
6829
|
-
|
|
6830
|
-
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);
|
|
6831
6647
|
}
|
|
6832
|
-
}, _callee2, null, [[0,
|
|
6648
|
+
}, _callee2, null, [[0, 2]]);
|
|
6833
6649
|
}));
|
|
6834
6650
|
return function (_x3, _x4) {
|
|
6835
|
-
return
|
|
6651
|
+
return _ref0.apply(this, arguments);
|
|
6836
6652
|
};
|
|
6837
6653
|
}());
|
|
6838
6654
|
}
|
|
@@ -6920,7 +6736,7 @@
|
|
|
6920
6736
|
}
|
|
6921
6737
|
}
|
|
6922
6738
|
},
|
|
6923
|
-
|
|
6739
|
+
J = {
|
|
6924
6740
|
StringObject: {
|
|
6925
6741
|
test: function test(e) {
|
|
6926
6742
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -6951,7 +6767,7 @@
|
|
|
6951
6767
|
}
|
|
6952
6768
|
}
|
|
6953
6769
|
},
|
|
6954
|
-
|
|
6770
|
+
q = {
|
|
6955
6771
|
regexp: {
|
|
6956
6772
|
test: function test(e) {
|
|
6957
6773
|
return "RegExp" === toStringTag(e);
|
|
@@ -6962,14 +6778,14 @@
|
|
|
6962
6778
|
flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
|
|
6963
6779
|
};
|
|
6964
6780
|
},
|
|
6965
|
-
revive: function revive(
|
|
6966
|
-
var e =
|
|
6967
|
-
t =
|
|
6781
|
+
revive: function revive(_ref10) {
|
|
6782
|
+
var e = _ref10.source,
|
|
6783
|
+
t = _ref10.flags;
|
|
6968
6784
|
return new RegExp(e, t);
|
|
6969
6785
|
}
|
|
6970
6786
|
}
|
|
6971
6787
|
},
|
|
6972
|
-
|
|
6788
|
+
G = {
|
|
6973
6789
|
set: {
|
|
6974
6790
|
test: function test(e) {
|
|
6975
6791
|
return "Set" === toStringTag(e);
|
|
@@ -7007,10 +6823,10 @@
|
|
|
7007
6823
|
test: function test(e) {
|
|
7008
6824
|
return toStringTag(e) === t;
|
|
7009
6825
|
},
|
|
7010
|
-
replace: function replace(
|
|
7011
|
-
var e =
|
|
7012
|
-
t =
|
|
7013
|
-
r =
|
|
6826
|
+
replace: function replace(_ref11, n) {
|
|
6827
|
+
var e = _ref11.buffer,
|
|
6828
|
+
t = _ref11.byteOffset,
|
|
6829
|
+
r = _ref11.length;
|
|
7014
6830
|
n.buffers || (n.buffers = []);
|
|
7015
6831
|
var a = n.buffers.indexOf(e);
|
|
7016
6832
|
return a > -1 ? {
|
|
@@ -7019,6 +6835,7 @@
|
|
|
7019
6835
|
length: r
|
|
7020
6836
|
} : (n.buffers.push(e), {
|
|
7021
6837
|
maxByteLength: e.maxByteLength,
|
|
6838
|
+
resizable: e.resizable,
|
|
7022
6839
|
encoded: p(e),
|
|
7023
6840
|
byteOffset: t,
|
|
7024
6841
|
length: r
|
|
@@ -7030,11 +6847,12 @@
|
|
|
7030
6847
|
a = t.length,
|
|
7031
6848
|
o = t.encoded,
|
|
7032
6849
|
i = t.index,
|
|
7033
|
-
c = t.maxByteLength
|
|
7034
|
-
|
|
7035
|
-
|
|
6850
|
+
c = t.maxByteLength,
|
|
6851
|
+
s = t.resizable;
|
|
6852
|
+
var u;
|
|
6853
|
+
return "index" in t ? u = r.buffers[i] : (u = d(o, s ? {
|
|
7036
6854
|
maxByteLength: c
|
|
7037
|
-
}), r.buffers.push(
|
|
6855
|
+
} : void 0), r.buffers.push(u)), new e(u, n, a);
|
|
7038
6856
|
}
|
|
7039
6857
|
};
|
|
7040
6858
|
}(e);
|
|
@@ -7067,22 +6885,22 @@
|
|
|
7067
6885
|
},
|
|
7068
6886
|
te = [{
|
|
7069
6887
|
arrayNonindexKeys: {
|
|
7070
|
-
testPlainObjects:
|
|
6888
|
+
testPlainObjects: true,
|
|
7071
6889
|
test: function test(e, t) {
|
|
7072
6890
|
return !!Array.isArray(e) && (Object.keys(e).some(function (e) {
|
|
7073
6891
|
return String(Number.parseInt(e)) !== e;
|
|
7074
|
-
}) && (t.iterateIn = "object", t.addLength =
|
|
6892
|
+
}) && (t.iterateIn = "object", t.addLength = true), true);
|
|
7075
6893
|
},
|
|
7076
6894
|
replace: function replace(e, t) {
|
|
7077
|
-
return t.iterateUnsetNumeric =
|
|
6895
|
+
return t.iterateUnsetNumeric = true, e;
|
|
7078
6896
|
},
|
|
7079
6897
|
revive: function revive(e) {
|
|
7080
6898
|
if (Array.isArray(e)) return e;
|
|
7081
6899
|
var t = [];
|
|
7082
|
-
return Object.entries(e).forEach(function (
|
|
7083
|
-
var
|
|
7084
|
-
e =
|
|
7085
|
-
r =
|
|
6900
|
+
return Object.entries(e).forEach(function (_ref12) {
|
|
6901
|
+
var _ref13 = _slicedToArray$1(_ref12, 2),
|
|
6902
|
+
e = _ref13[0],
|
|
6903
|
+
r = _ref13[1];
|
|
7086
6904
|
t[e] = r;
|
|
7087
6905
|
}), t;
|
|
7088
6906
|
}
|
|
@@ -7090,7 +6908,7 @@
|
|
|
7090
6908
|
}, {
|
|
7091
6909
|
sparseUndefined: {
|
|
7092
6910
|
test: function test(e, t) {
|
|
7093
|
-
return void 0 === e &&
|
|
6911
|
+
return void 0 === e && false === t.ownKeys;
|
|
7094
6912
|
},
|
|
7095
6913
|
replace: function replace() {
|
|
7096
6914
|
return 0;
|
|
@@ -7099,13 +6917,13 @@
|
|
|
7099
6917
|
}
|
|
7100
6918
|
}],
|
|
7101
6919
|
re = [K, U, F, $],
|
|
7102
|
-
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 : []),
|
|
7103
6921
|
se = ce.concat({
|
|
7104
6922
|
checkDataCloneException: {
|
|
7105
6923
|
test: function test(e) {
|
|
7106
6924
|
var t = {}.toString.call(e).slice(8, -1);
|
|
7107
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");
|
|
7108
|
-
return
|
|
6926
|
+
return false;
|
|
7109
6927
|
}
|
|
7110
6928
|
}
|
|
7111
6929
|
});
|
|
@@ -7447,7 +7265,6 @@
|
|
|
7447
7265
|
tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
|
|
7448
7266
|
addIndexEntry(i + 1);
|
|
7449
7267
|
}, /** @type {SQLStatementErrorCallback} */error);
|
|
7450
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
7451
7268
|
} catch (err) {
|
|
7452
7269
|
// Not a valid value to insert into index, so just continue
|
|
7453
7270
|
addIndexEntry(i + 1);
|
|
@@ -7572,7 +7389,6 @@
|
|
|
7572
7389
|
IDBIndex.__updateIndexList = function (store, tx, success, failure) {
|
|
7573
7390
|
/** @type {IndexList} **/
|
|
7574
7391
|
var indexList = {};
|
|
7575
|
-
// eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
|
|
7576
7392
|
for (var i = 0; i < store.indexNames.length; i++) {
|
|
7577
7393
|
var idx = store.__indexes[store.indexNames[i]];
|
|
7578
7394
|
indexList[idx.name] = {
|
|
@@ -7965,8 +7781,11 @@
|
|
|
7965
7781
|
return rowKey.includes(check);
|
|
7966
7782
|
}) ||
|
|
7967
7783
|
// More precise than our SQL
|
|
7968
|
-
isMultiEntryMatch(
|
|
7969
|
-
|
|
7784
|
+
isMultiEntryMatch(
|
|
7785
|
+
// Added `JSON.stringify` as was having problems with
|
|
7786
|
+
// `JSON.stringify` encoding added to nested
|
|
7787
|
+
// array keys
|
|
7788
|
+
JSON.stringify(encodedKey).slice(1, -1), row[escapedIndexNameForKeyCol]))) {
|
|
7970
7789
|
recordCount++;
|
|
7971
7790
|
record = row;
|
|
7972
7791
|
} else if (!hasKey && !multiChecks) {
|
|
@@ -8042,7 +7861,13 @@
|
|
|
8042
7861
|
sql.push(')');
|
|
8043
7862
|
} else if (index.multiEntry) {
|
|
8044
7863
|
sql.push('AND', escapeIndexNameForSQL(index.name), "LIKE ? ESCAPE '^'");
|
|
8045
|
-
|
|
7864
|
+
if (Array.isArray(range)) {
|
|
7865
|
+
// Todo: For nesting deeper than one level, we probably need to
|
|
7866
|
+
// run `JSON.stringify` again
|
|
7867
|
+
sqlValues.push('%' + sqlLIKEEscape(JSON.stringify(/** @type {string} */_encode(range, index.multiEntry)).slice(1, -1)) + '%');
|
|
7868
|
+
} else {
|
|
7869
|
+
sqlValues.push('%' + sqlLIKEEscape(/** @type {string} */_encode(range, index.multiEntry)) + '%');
|
|
7870
|
+
}
|
|
8046
7871
|
} else {
|
|
8047
7872
|
var convertedRange = convertValueToKeyRange(range, nullDisallowed);
|
|
8048
7873
|
setSQLForKeyRange(convertedRange, escapeIndexNameForSQL(index.name), sql, sqlValues, true, false);
|
|
@@ -8545,7 +8370,6 @@
|
|
|
8545
8370
|
if ('invalid' in indexKey && indexKey.invalid || 'failure' in indexKey && indexKey.failure) {
|
|
8546
8371
|
throw new Error('Go to catch');
|
|
8547
8372
|
}
|
|
8548
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
8549
8373
|
} catch (err) {
|
|
8550
8374
|
resolve(undefined);
|
|
8551
8375
|
return;
|
|
@@ -9879,7 +9703,7 @@
|
|
|
9879
9703
|
*/
|
|
9880
9704
|
function getLatestCachedWebSQLVersion(name) {
|
|
9881
9705
|
return Object.keys(websqlDBCache[name]).map(Number).reduce(function (prev, curr) {
|
|
9882
|
-
return curr
|
|
9706
|
+
return Math.max(curr, prev);
|
|
9883
9707
|
}, 0);
|
|
9884
9708
|
}
|
|
9885
9709
|
|
|
@@ -10161,7 +9985,6 @@
|
|
|
10161
9985
|
if (err) {
|
|
10162
9986
|
try {
|
|
10163
9987
|
systx.executeSql('ROLLBACK', [], cb, cb);
|
|
10164
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
10165
9988
|
} catch (err) {
|
|
10166
9989
|
// Browser may fail with expired transaction above so
|
|
10167
9990
|
// no choice but to manually revert
|
|
@@ -10269,7 +10092,7 @@
|
|
|
10269
10092
|
// eslint-disable-next-line camelcase -- Clear API
|
|
10270
10093
|
req.transaction.on__complete = function () {
|
|
10271
10094
|
var pos = connection.__transactions.indexOf(req.transaction);
|
|
10272
|
-
if (pos
|
|
10095
|
+
if (pos !== -1) {
|
|
10273
10096
|
connection.__transactions.splice(pos, 1);
|
|
10274
10097
|
}
|
|
10275
10098
|
if (/** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
|
|
@@ -11706,7 +11529,6 @@
|
|
|
11706
11529
|
Object.getOwnPropertyDescriptor(o, name);
|
|
11707
11530
|
}
|
|
11708
11531
|
Object.defineProperty(IDB, name, desc);
|
|
11709
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
11710
11532
|
} catch (err) {
|
|
11711
11533
|
// With `indexedDB`, PhantomJS fails here and below but
|
|
11712
11534
|
// not above, while Chrome is reverse (and Firefox doesn't
|