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
package/dist/indexeddbshim.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim -
|
|
1
|
+
/*! indexeddbshim - v16.0.0 - 6/14/2025 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
function _defineProperties(e, r) {
|
|
55
55
|
for (var t = 0; t < r.length; t++) {
|
|
56
56
|
var o = r[t];
|
|
57
|
-
o.enumerable = o.enumerable ||
|
|
57
|
+
o.enumerable = o.enumerable || false, o.configurable = true, "value" in o && (o.writable = true), Object.defineProperty(e, _toPropertyKey$1(o.key), o);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
function _createClass$1(e, r, t) {
|
|
61
61
|
return r && _defineProperties(e.prototype, r), Object.defineProperty(e, "prototype", {
|
|
62
|
-
writable:
|
|
62
|
+
writable: false
|
|
63
63
|
}), e;
|
|
64
64
|
}
|
|
65
65
|
function _createForOfIteratorHelper(r, e) {
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
s: F,
|
|
74
74
|
n: function () {
|
|
75
75
|
return n >= r.length ? {
|
|
76
|
-
done:
|
|
76
|
+
done: true
|
|
77
77
|
} : {
|
|
78
|
-
done:
|
|
78
|
+
done: false,
|
|
79
79
|
value: r[n++]
|
|
80
80
|
};
|
|
81
81
|
},
|
|
@@ -88,8 +88,8 @@
|
|
|
88
88
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
89
89
|
}
|
|
90
90
|
var o,
|
|
91
|
-
a =
|
|
92
|
-
u =
|
|
91
|
+
a = true,
|
|
92
|
+
u = false;
|
|
93
93
|
return {
|
|
94
94
|
s: function () {
|
|
95
95
|
t = t.call(r);
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
return a = r.done, r;
|
|
100
100
|
},
|
|
101
101
|
e: function (r) {
|
|
102
|
-
u =
|
|
102
|
+
u = true, o = r;
|
|
103
103
|
},
|
|
104
104
|
f: function () {
|
|
105
105
|
try {
|
|
@@ -112,17 +112,17 @@
|
|
|
112
112
|
}
|
|
113
113
|
function _defineAccessor(e, r, n, t) {
|
|
114
114
|
var c = {
|
|
115
|
-
configurable:
|
|
116
|
-
enumerable:
|
|
115
|
+
configurable: true,
|
|
116
|
+
enumerable: true
|
|
117
117
|
};
|
|
118
118
|
return c[e] = t, Object.defineProperty(r, n, c);
|
|
119
119
|
}
|
|
120
120
|
function _defineProperty$1(e, r, t) {
|
|
121
121
|
return (r = _toPropertyKey$1(r)) in e ? Object.defineProperty(e, r, {
|
|
122
122
|
value: t,
|
|
123
|
-
enumerable:
|
|
124
|
-
configurable:
|
|
125
|
-
writable:
|
|
123
|
+
enumerable: true,
|
|
124
|
+
configurable: true,
|
|
125
|
+
writable: true
|
|
126
126
|
}) : e[r] = t, e;
|
|
127
127
|
}
|
|
128
128
|
function _isNativeReflectConstruct() {
|
|
@@ -144,12 +144,12 @@
|
|
|
144
144
|
i,
|
|
145
145
|
u,
|
|
146
146
|
a = [],
|
|
147
|
-
f =
|
|
148
|
-
o =
|
|
147
|
+
f = true,
|
|
148
|
+
o = false;
|
|
149
149
|
try {
|
|
150
150
|
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);
|
|
151
151
|
} catch (r) {
|
|
152
|
-
o =
|
|
152
|
+
o = true, n = r;
|
|
153
153
|
} finally {
|
|
154
154
|
try {
|
|
155
155
|
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
function _objectSpread2$1(e) {
|
|
180
180
|
for (var r = 1; r < arguments.length; r++) {
|
|
181
181
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
182
|
-
r % 2 ? ownKeys$1(Object(t),
|
|
182
|
+
r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) {
|
|
183
183
|
_defineProperty$1(e, r, t[r]);
|
|
184
184
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
|
|
185
185
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
@@ -187,306 +187,115 @@
|
|
|
187
187
|
}
|
|
188
188
|
return e;
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
|
|
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
|
-
y = {};
|
|
247
|
-
function Generator() {}
|
|
248
|
-
function GeneratorFunction() {}
|
|
249
|
-
function GeneratorFunctionPrototype() {}
|
|
250
|
-
var p = {};
|
|
251
|
-
define(p, a, function () {
|
|
252
|
-
return this;
|
|
253
|
-
});
|
|
254
|
-
var d = Object.getPrototypeOf,
|
|
255
|
-
v = d && d(d(values([])));
|
|
256
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
257
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
258
|
-
function defineIteratorMethods(t) {
|
|
259
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
260
|
-
define(t, e, function (t) {
|
|
261
|
-
return this._invoke(e, t);
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function AsyncIterator(t, e) {
|
|
266
|
-
function invoke(r, o, i, a) {
|
|
267
|
-
var c = tryCatch(t[r], t, o);
|
|
268
|
-
if ("throw" !== c.type) {
|
|
269
|
-
var u = c.arg,
|
|
270
|
-
h = u.value;
|
|
271
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
272
|
-
invoke("next", t, i, a);
|
|
273
|
-
}, function (t) {
|
|
274
|
-
invoke("throw", t, i, a);
|
|
275
|
-
}) : e.resolve(h).then(function (t) {
|
|
276
|
-
u.value = t, i(u);
|
|
277
|
-
}, function (t) {
|
|
278
|
-
return invoke("throw", t, i, a);
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
a(c.arg);
|
|
282
|
-
}
|
|
283
|
-
var r;
|
|
284
|
-
o(this, "_invoke", {
|
|
285
|
-
value: function (t, n) {
|
|
286
|
-
function callInvokeWithMethodAndArg() {
|
|
287
|
-
return new e(function (e, r) {
|
|
288
|
-
invoke(t, n, e, r);
|
|
289
|
-
});
|
|
190
|
+
function _regenerator() {
|
|
191
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
192
|
+
var e,
|
|
193
|
+
t,
|
|
194
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
195
|
+
n = r.iterator || "@@iterator",
|
|
196
|
+
o = r.toStringTag || "@@toStringTag";
|
|
197
|
+
function i(r, n, o, i) {
|
|
198
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
199
|
+
u = Object.create(c.prototype);
|
|
200
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
201
|
+
var i,
|
|
202
|
+
c,
|
|
203
|
+
u,
|
|
204
|
+
f = 0,
|
|
205
|
+
p = o || [],
|
|
206
|
+
y = false,
|
|
207
|
+
G = {
|
|
208
|
+
p: 0,
|
|
209
|
+
n: 0,
|
|
210
|
+
v: e,
|
|
211
|
+
a: d,
|
|
212
|
+
f: d.bind(e, 4),
|
|
213
|
+
d: function (t, r) {
|
|
214
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
function d(r, n) {
|
|
218
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
219
|
+
var o,
|
|
220
|
+
i = p[t],
|
|
221
|
+
d = G.p,
|
|
222
|
+
l = i[2];
|
|
223
|
+
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));
|
|
224
|
+
}
|
|
225
|
+
if (o || r > 1) return a;
|
|
226
|
+
throw y = true, n;
|
|
227
|
+
}
|
|
228
|
+
return function (o, p, l) {
|
|
229
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
230
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
231
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
232
|
+
try {
|
|
233
|
+
if (f = 2, i) {
|
|
234
|
+
if (c || (o = "next"), t = i[o]) {
|
|
235
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
236
|
+
if (!t.done) return t;
|
|
237
|
+
u = t.value, c < 2 && (c = 0);
|
|
238
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
239
|
+
i = e;
|
|
240
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
241
|
+
} catch (t) {
|
|
242
|
+
i = e, c = 1, u = t;
|
|
243
|
+
} finally {
|
|
244
|
+
f = 1;
|
|
245
|
+
}
|
|
290
246
|
}
|
|
291
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
function makeInvokeMethod(e, r, n) {
|
|
296
|
-
var o = h;
|
|
297
|
-
return function (i, a) {
|
|
298
|
-
if (o === f) throw Error("Generator is already running");
|
|
299
|
-
if (o === s) {
|
|
300
|
-
if ("throw" === i) throw a;
|
|
301
247
|
return {
|
|
302
248
|
value: t,
|
|
303
|
-
done:
|
|
249
|
+
done: y
|
|
304
250
|
};
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
var c = n.delegate;
|
|
308
|
-
if (c) {
|
|
309
|
-
var u = maybeInvokeDelegate(c, n);
|
|
310
|
-
if (u) {
|
|
311
|
-
if (u === y) continue;
|
|
312
|
-
return u;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
316
|
-
if (o === h) throw o = s, n.arg;
|
|
317
|
-
n.dispatchException(n.arg);
|
|
318
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
319
|
-
o = f;
|
|
320
|
-
var p = tryCatch(e, r, n);
|
|
321
|
-
if ("normal" === p.type) {
|
|
322
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
323
|
-
return {
|
|
324
|
-
value: p.arg,
|
|
325
|
-
done: n.done
|
|
326
|
-
};
|
|
327
|
-
}
|
|
328
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
329
|
-
}
|
|
330
|
-
};
|
|
251
|
+
};
|
|
252
|
+
}(r, o, i), true), u;
|
|
331
253
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
function
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
346
|
-
}
|
|
347
|
-
function resetTryEntry(t) {
|
|
348
|
-
var e = t.completion || {};
|
|
349
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
350
|
-
}
|
|
351
|
-
function Context(t) {
|
|
352
|
-
this.tryEntries = [{
|
|
353
|
-
tryLoc: "root"
|
|
354
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
355
|
-
}
|
|
356
|
-
function values(e) {
|
|
357
|
-
if (e || "" === e) {
|
|
358
|
-
var r = e[a];
|
|
359
|
-
if (r) return r.call(e);
|
|
360
|
-
if ("function" == typeof e.next) return e;
|
|
361
|
-
if (!isNaN(e.length)) {
|
|
362
|
-
var o = -1,
|
|
363
|
-
i = function next() {
|
|
364
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
365
|
-
return next.value = t, next.done = !0, next;
|
|
366
|
-
};
|
|
367
|
-
return i.next = i;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
371
|
-
}
|
|
372
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
373
|
-
value: GeneratorFunctionPrototype,
|
|
374
|
-
configurable: !0
|
|
375
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
376
|
-
value: GeneratorFunction,
|
|
377
|
-
configurable: !0
|
|
378
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
379
|
-
var e = "function" == typeof t && t.constructor;
|
|
380
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
381
|
-
}, e.mark = function (t) {
|
|
382
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
383
|
-
}, e.awrap = function (t) {
|
|
384
|
-
return {
|
|
385
|
-
__await: t
|
|
386
|
-
};
|
|
387
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
|
|
388
|
-
return this;
|
|
389
|
-
}), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
|
|
390
|
-
void 0 === i && (i = Promise);
|
|
391
|
-
var a = new AsyncIterator(wrap(t, r, n, o), i);
|
|
392
|
-
return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
|
|
393
|
-
return t.done ? t.value : a.next();
|
|
394
|
-
});
|
|
395
|
-
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
|
|
254
|
+
var a = {};
|
|
255
|
+
function Generator() {}
|
|
256
|
+
function GeneratorFunction() {}
|
|
257
|
+
function GeneratorFunctionPrototype() {}
|
|
258
|
+
t = Object.getPrototypeOf;
|
|
259
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
260
|
+
return this;
|
|
261
|
+
}), t),
|
|
262
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
263
|
+
function f(e) {
|
|
264
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
265
|
+
}
|
|
266
|
+
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 () {
|
|
396
267
|
return this;
|
|
397
|
-
}),
|
|
268
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
398
269
|
return "[object Generator]";
|
|
399
|
-
}),
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
return r.reverse(), function next() {
|
|
404
|
-
for (; r.length;) {
|
|
405
|
-
var t = r.pop();
|
|
406
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
407
|
-
}
|
|
408
|
-
return next.done = !0, next;
|
|
270
|
+
}), (_regenerator = function () {
|
|
271
|
+
return {
|
|
272
|
+
w: i,
|
|
273
|
+
m: f
|
|
409
274
|
};
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
431
|
-
if (i.tryLoc <= this.prev) {
|
|
432
|
-
var c = n.call(i, "catchLoc"),
|
|
433
|
-
u = n.call(i, "finallyLoc");
|
|
434
|
-
if (c && u) {
|
|
435
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
436
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
437
|
-
} else if (c) {
|
|
438
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
439
|
-
} else {
|
|
440
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
441
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
},
|
|
446
|
-
abrupt: function (t, e) {
|
|
447
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
448
|
-
var o = this.tryEntries[r];
|
|
449
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
450
|
-
var i = o;
|
|
451
|
-
break;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
455
|
-
var a = i ? i.completion : {};
|
|
456
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
457
|
-
},
|
|
458
|
-
complete: function (t, e) {
|
|
459
|
-
if ("throw" === t.type) throw t.arg;
|
|
460
|
-
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;
|
|
461
|
-
},
|
|
462
|
-
finish: function (t) {
|
|
463
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
464
|
-
var r = this.tryEntries[e];
|
|
465
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
466
|
-
}
|
|
467
|
-
},
|
|
468
|
-
catch: function (t) {
|
|
469
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
470
|
-
var r = this.tryEntries[e];
|
|
471
|
-
if (r.tryLoc === t) {
|
|
472
|
-
var n = r.completion;
|
|
473
|
-
if ("throw" === n.type) {
|
|
474
|
-
var o = n.arg;
|
|
475
|
-
resetTryEntry(r);
|
|
476
|
-
}
|
|
477
|
-
return o;
|
|
478
|
-
}
|
|
275
|
+
})();
|
|
276
|
+
}
|
|
277
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
278
|
+
var i = Object.defineProperty;
|
|
279
|
+
try {
|
|
280
|
+
i({}, "", {});
|
|
281
|
+
} catch (e) {
|
|
282
|
+
i = 0;
|
|
283
|
+
}
|
|
284
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
285
|
+
if (r) i ? i(e, r, {
|
|
286
|
+
value: n,
|
|
287
|
+
enumerable: !t,
|
|
288
|
+
configurable: !t,
|
|
289
|
+
writable: !t
|
|
290
|
+
}) : e[r] = n;else {
|
|
291
|
+
function o(r, n) {
|
|
292
|
+
_regeneratorDefine(e, r, function (e) {
|
|
293
|
+
return this._invoke(r, n, e);
|
|
294
|
+
});
|
|
479
295
|
}
|
|
480
|
-
|
|
481
|
-
},
|
|
482
|
-
delegateYield: function (e, r, n) {
|
|
483
|
-
return this.delegate = {
|
|
484
|
-
iterator: values(e),
|
|
485
|
-
resultName: r,
|
|
486
|
-
nextLoc: n
|
|
487
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
296
|
+
o("next", 0), o("throw", 1), o("return", 2);
|
|
488
297
|
}
|
|
489
|
-
}, e;
|
|
298
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
490
299
|
}
|
|
491
300
|
function _slicedToArray$1(r, e) {
|
|
492
301
|
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray$1(r, e) || _nonIterableRest();
|
|
@@ -498,7 +307,7 @@
|
|
|
498
307
|
if ("object" != typeof t || !t) return t;
|
|
499
308
|
var e = t[Symbol.toPrimitive];
|
|
500
309
|
if (void 0 !== e) {
|
|
501
|
-
var i = e.call(t, r
|
|
310
|
+
var i = e.call(t, r);
|
|
502
311
|
if ("object" != typeof i) return i;
|
|
503
312
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
504
313
|
}
|
|
@@ -1680,8 +1489,16 @@
|
|
|
1680
1489
|
function getDefaultExportFromCjs(x) {
|
|
1681
1490
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1682
1491
|
}
|
|
1683
|
-
var regex
|
|
1684
|
-
var
|
|
1492
|
+
var regex$1;
|
|
1493
|
+
var hasRequiredRegex;
|
|
1494
|
+
function requireRegex() {
|
|
1495
|
+
if (hasRequiredRegex) return regex$1;
|
|
1496
|
+
hasRequiredRegex = 1;
|
|
1497
|
+
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]/;
|
|
1498
|
+
return regex$1;
|
|
1499
|
+
}
|
|
1500
|
+
var regexExports = requireRegex();
|
|
1501
|
+
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1685
1502
|
|
|
1686
1503
|
/**
|
|
1687
1504
|
* @typedef {number} Integer
|
|
@@ -1776,7 +1593,7 @@
|
|
|
1776
1593
|
db = 'D' + escapeNameForSQLiteIdentifier(db);
|
|
1777
1594
|
if (CFG.escapeNFDForDatabaseNames !== false) {
|
|
1778
1595
|
// ES6 copying of regex with different flags
|
|
1779
|
-
db = db.replaceAll(new RegExp(regex
|
|
1596
|
+
db = db.replaceAll(new RegExp(regex, 'gu'), function (expandable) {
|
|
1780
1597
|
return '^4' + /** @type {Integer} */expandable.codePointAt(0).toString(16).padStart(6, '0');
|
|
1781
1598
|
});
|
|
1782
1599
|
}
|
|
@@ -1831,12 +1648,13 @@
|
|
|
1831
1648
|
}
|
|
1832
1649
|
|
|
1833
1650
|
/**
|
|
1651
|
+
* @todo Didn't need to escape `%`. Do we still need this escape?
|
|
1834
1652
|
* @param {string} str
|
|
1835
1653
|
* @returns {string}
|
|
1836
1654
|
*/
|
|
1837
1655
|
function sqlLIKEEscape(str) {
|
|
1838
1656
|
// https://www.sqlite.org/lang_expr.html#like
|
|
1839
|
-
return
|
|
1657
|
+
return str.replaceAll('^', '^^');
|
|
1840
1658
|
}
|
|
1841
1659
|
|
|
1842
1660
|
/**
|
|
@@ -2593,7 +2411,6 @@
|
|
|
2593
2411
|
// Native DOMException works as expected
|
|
2594
2412
|
useNativeDOMException = true;
|
|
2595
2413
|
}
|
|
2596
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
2597
2414
|
} catch (err) {}
|
|
2598
2415
|
var createDOMException = useNativeDOMException
|
|
2599
2416
|
// eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
|
|
@@ -3349,7 +3166,7 @@
|
|
|
3349
3166
|
key = key.slice(2);
|
|
3350
3167
|
if (inArray) {
|
|
3351
3168
|
// remove the space at the end, and the dash before each character
|
|
3352
|
-
key = key.slice(0, -1).replaceAll(
|
|
3169
|
+
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');
|
|
3353
3170
|
}
|
|
3354
3171
|
return key;
|
|
3355
3172
|
}
|
|
@@ -3742,7 +3559,7 @@
|
|
|
3742
3559
|
value: date.getTime()
|
|
3743
3560
|
} : {
|
|
3744
3561
|
type: type,
|
|
3745
|
-
value: new Date(date
|
|
3562
|
+
value: new Date(date)
|
|
3746
3563
|
};
|
|
3747
3564
|
}
|
|
3748
3565
|
return {
|
|
@@ -4575,7 +4392,6 @@
|
|
|
4575
4392
|
if (testObject.test) {
|
|
4576
4393
|
cleanInterface = true;
|
|
4577
4394
|
}
|
|
4578
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
4579
4395
|
} catch (err) {
|
|
4580
4396
|
// Object.defineProperty does not work as intended.
|
|
4581
4397
|
}
|
|
@@ -4706,25 +4522,24 @@
|
|
|
4706
4522
|
}
|
|
4707
4523
|
this.sortList();
|
|
4708
4524
|
}
|
|
4709
|
-
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/
|
|
4525
|
+
}, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regenerator().m(function _callee() {
|
|
4710
4526
|
var i;
|
|
4711
|
-
return
|
|
4712
|
-
while (1) switch (_context.
|
|
4527
|
+
return _regenerator().w(function (_context) {
|
|
4528
|
+
while (1) switch (_context.n) {
|
|
4713
4529
|
case 0:
|
|
4714
4530
|
i = 0;
|
|
4715
4531
|
case 1:
|
|
4716
4532
|
if (!(i < this._items.length)) {
|
|
4717
|
-
_context.
|
|
4533
|
+
_context.n = 3;
|
|
4718
4534
|
break;
|
|
4719
4535
|
}
|
|
4720
|
-
_context.
|
|
4536
|
+
_context.n = 2;
|
|
4721
4537
|
return this._items[i++];
|
|
4722
|
-
case
|
|
4723
|
-
_context.
|
|
4538
|
+
case 2:
|
|
4539
|
+
_context.n = 1;
|
|
4724
4540
|
break;
|
|
4725
|
-
case
|
|
4726
|
-
|
|
4727
|
-
return _context.stop();
|
|
4541
|
+
case 3:
|
|
4542
|
+
return _context.a(2);
|
|
4728
4543
|
}
|
|
4729
4544
|
}, _callee, this);
|
|
4730
4545
|
}));
|
|
@@ -5454,7 +5269,6 @@
|
|
|
5454
5269
|
}
|
|
5455
5270
|
try {
|
|
5456
5271
|
me.__tx.executeSql('ROLLBACK', [], abort, /** @type {SQLStatementErrorCallback} */abort); // Not working in some circumstances, even in Node
|
|
5457
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
5458
5272
|
} catch (err) {
|
|
5459
5273
|
// Browser errs when transaction has ended and since it most likely already erred here,
|
|
5460
5274
|
// we call to abort
|
|
@@ -5581,7 +5395,7 @@
|
|
|
5581
5395
|
function _objectSpread2(e) {
|
|
5582
5396
|
for (var t = 1; t < arguments.length; t++) {
|
|
5583
5397
|
var r = null != arguments[t] ? arguments[t] : {};
|
|
5584
|
-
t % 2 ? ownKeys(Object(r),
|
|
5398
|
+
t % 2 ? ownKeys(Object(r), true).forEach(function (t) {
|
|
5585
5399
|
_defineProperty(e, t, r[t]);
|
|
5586
5400
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ownKeys(Object(r)).forEach(function (t) {
|
|
5587
5401
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
@@ -5603,18 +5417,18 @@
|
|
|
5603
5417
|
return t && function _defineProperties(e, t) {
|
|
5604
5418
|
for (var r = 0; r < t.length; r++) {
|
|
5605
5419
|
var n = t[r];
|
|
5606
|
-
n.enumerable = n.enumerable ||
|
|
5420
|
+
n.enumerable = n.enumerable || false, n.configurable = true, "value" in n && (n.writable = true), Object.defineProperty(e, _toPropertyKey(n.key), n);
|
|
5607
5421
|
}
|
|
5608
5422
|
}(e.prototype, t), Object.defineProperty(e, "prototype", {
|
|
5609
|
-
writable:
|
|
5423
|
+
writable: false
|
|
5610
5424
|
}), e;
|
|
5611
5425
|
}
|
|
5612
5426
|
function _defineProperty(e, t, r) {
|
|
5613
5427
|
return (t = _toPropertyKey(t)) in e ? Object.defineProperty(e, t, {
|
|
5614
5428
|
value: r,
|
|
5615
|
-
enumerable:
|
|
5616
|
-
configurable:
|
|
5617
|
-
writable:
|
|
5429
|
+
enumerable: true,
|
|
5430
|
+
configurable: true,
|
|
5431
|
+
writable: true
|
|
5618
5432
|
}) : e[t] = r, e;
|
|
5619
5433
|
}
|
|
5620
5434
|
function _slicedToArray(e, t) {
|
|
@@ -5628,15 +5442,15 @@
|
|
|
5628
5442
|
o,
|
|
5629
5443
|
i,
|
|
5630
5444
|
c = [],
|
|
5631
|
-
s =
|
|
5632
|
-
u =
|
|
5445
|
+
s = true,
|
|
5446
|
+
u = false;
|
|
5633
5447
|
try {
|
|
5634
5448
|
if (o = (r = r.call(e)).next, 0 === t) {
|
|
5635
5449
|
if (Object(r) !== r) return;
|
|
5636
5450
|
s = !1;
|
|
5637
5451
|
} else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
|
|
5638
5452
|
} catch (e) {
|
|
5639
|
-
u =
|
|
5453
|
+
u = true, a = e;
|
|
5640
5454
|
} finally {
|
|
5641
5455
|
try {
|
|
5642
5456
|
if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
@@ -5723,13 +5537,13 @@
|
|
|
5723
5537
|
var t = Object.hasOwn,
|
|
5724
5538
|
r = Object.getPrototypeOf;
|
|
5725
5539
|
function isThenable(e, t) {
|
|
5726
|
-
return isObject(e) && "function" == typeof e.then && (
|
|
5540
|
+
return isObject(e) && "function" == typeof e.then && (true || "function" == typeof e["catch"]);
|
|
5727
5541
|
}
|
|
5728
5542
|
function toStringTag(e) {
|
|
5729
5543
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
5730
5544
|
}
|
|
5731
5545
|
function hasConstructorOf(e, n) {
|
|
5732
|
-
if (!e || "object" !== _typeof(e)) return
|
|
5546
|
+
if (!e || "object" !== _typeof(e)) return false;
|
|
5733
5547
|
var a = r(e);
|
|
5734
5548
|
if (!a) return null === n;
|
|
5735
5549
|
var o = t(a, "constructor") && a.constructor;
|
|
@@ -5739,7 +5553,7 @@
|
|
|
5739
5553
|
return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
|
|
5740
5554
|
}
|
|
5741
5555
|
function isUserObject(e) {
|
|
5742
|
-
if (!e || "Object" !== toStringTag(e)) return
|
|
5556
|
+
if (!e || "Object" !== toStringTag(e)) return false;
|
|
5743
5557
|
var t = r(e);
|
|
5744
5558
|
return !t || hasConstructorOf(e, Object) || isUserObject(t);
|
|
5745
5559
|
}
|
|
@@ -5803,7 +5617,7 @@
|
|
|
5803
5617
|
key: "stringify",
|
|
5804
5618
|
value: function stringify(e, t, r, n) {
|
|
5805
5619
|
n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
|
|
5806
|
-
stringification:
|
|
5620
|
+
stringification: true
|
|
5807
5621
|
});
|
|
5808
5622
|
var a = this.encapsulate(e, null, n);
|
|
5809
5623
|
return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
|
|
@@ -5814,63 +5628,63 @@
|
|
|
5814
5628
|
key: "stringifySync",
|
|
5815
5629
|
value: function stringifySync(e, t, r, n) {
|
|
5816
5630
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5817
|
-
throwOnBadSyncType:
|
|
5631
|
+
throwOnBadSyncType: true
|
|
5818
5632
|
}, n), {}, {
|
|
5819
|
-
sync:
|
|
5633
|
+
sync: true
|
|
5820
5634
|
}));
|
|
5821
5635
|
}
|
|
5822
5636
|
}, {
|
|
5823
5637
|
key: "stringifyAsync",
|
|
5824
5638
|
value: function stringifyAsync(e, t, r, n) {
|
|
5825
5639
|
return this.stringify(e, t, r, _objectSpread2(_objectSpread2({
|
|
5826
|
-
throwOnBadSyncType:
|
|
5640
|
+
throwOnBadSyncType: true
|
|
5827
5641
|
}, n), {}, {
|
|
5828
|
-
sync:
|
|
5642
|
+
sync: false
|
|
5829
5643
|
}));
|
|
5830
5644
|
}
|
|
5831
5645
|
}, {
|
|
5832
5646
|
key: "parse",
|
|
5833
5647
|
value: function parse(e, t, r) {
|
|
5834
5648
|
return r = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), r), {}, {
|
|
5835
|
-
parse:
|
|
5649
|
+
parse: true
|
|
5836
5650
|
}), this.revive(JSON.parse(e, t), r);
|
|
5837
5651
|
}
|
|
5838
5652
|
}, {
|
|
5839
5653
|
key: "parseSync",
|
|
5840
5654
|
value: function parseSync(e, t, r) {
|
|
5841
5655
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5842
|
-
throwOnBadSyncType:
|
|
5656
|
+
throwOnBadSyncType: true
|
|
5843
5657
|
}, r), {}, {
|
|
5844
|
-
sync:
|
|
5658
|
+
sync: true
|
|
5845
5659
|
}));
|
|
5846
5660
|
}
|
|
5847
5661
|
}, {
|
|
5848
5662
|
key: "parseAsync",
|
|
5849
5663
|
value: function parseAsync(e, t, r) {
|
|
5850
5664
|
return this.parse(e, t, _objectSpread2(_objectSpread2({
|
|
5851
|
-
throwOnBadSyncType:
|
|
5665
|
+
throwOnBadSyncType: true
|
|
5852
5666
|
}, r), {}, {
|
|
5853
|
-
sync:
|
|
5667
|
+
sync: false
|
|
5854
5668
|
}));
|
|
5855
5669
|
}
|
|
5856
5670
|
}, {
|
|
5857
5671
|
key: "specialTypeNames",
|
|
5858
5672
|
value: function specialTypeNames(e, t) {
|
|
5859
5673
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5860
|
-
return r.returnTypeNames =
|
|
5674
|
+
return r.returnTypeNames = true, this.encapsulate(e, t, r);
|
|
5861
5675
|
}
|
|
5862
5676
|
}, {
|
|
5863
5677
|
key: "rootTypeName",
|
|
5864
5678
|
value: function rootTypeName(e, t) {
|
|
5865
5679
|
var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {};
|
|
5866
|
-
return r.iterateNone =
|
|
5680
|
+
return r.iterateNone = true, this.encapsulate(e, t, r);
|
|
5867
5681
|
}
|
|
5868
5682
|
}, {
|
|
5869
5683
|
key: "encapsulate",
|
|
5870
5684
|
value: function encapsulate(t, r, c) {
|
|
5871
5685
|
var s = this,
|
|
5872
5686
|
u = _objectSpread2(_objectSpread2({
|
|
5873
|
-
sync:
|
|
5687
|
+
sync: true
|
|
5874
5688
|
}, this.options), c),
|
|
5875
5689
|
l = u.sync,
|
|
5876
5690
|
f = {},
|
|
@@ -5878,8 +5692,8 @@
|
|
|
5878
5692
|
p = [],
|
|
5879
5693
|
d = [],
|
|
5880
5694
|
v = !("cyclic" in u) || u.cyclic,
|
|
5881
|
-
|
|
5882
|
-
|
|
5695
|
+
b = u.encapsulateObserver,
|
|
5696
|
+
m = function finish(e) {
|
|
5883
5697
|
var t = Object.values(f);
|
|
5884
5698
|
if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
|
|
5885
5699
|
if (t.length) {
|
|
@@ -5900,7 +5714,7 @@
|
|
|
5900
5714
|
};
|
|
5901
5715
|
} else isObject(e) && a(e, "$types") && (e = {
|
|
5902
5716
|
$: e,
|
|
5903
|
-
$types:
|
|
5717
|
+
$types: true
|
|
5904
5718
|
});
|
|
5905
5719
|
return !u.returnTypeNames && e;
|
|
5906
5720
|
},
|
|
@@ -5909,7 +5723,7 @@
|
|
|
5909
5723
|
return e[1].p;
|
|
5910
5724
|
})), function (n) {
|
|
5911
5725
|
return _await(Promise.all(n.map(_async(function (n) {
|
|
5912
|
-
var a =
|
|
5726
|
+
var a = false,
|
|
5913
5727
|
o = [],
|
|
5914
5728
|
i = _slicedToArray(r.splice(0, 1), 1),
|
|
5915
5729
|
c = _slicedToArray(i[0], 7),
|
|
@@ -5919,7 +5733,7 @@
|
|
|
5919
5733
|
f = c[4],
|
|
5920
5734
|
y = c[5],
|
|
5921
5735
|
p = c[6],
|
|
5922
|
-
d = O(s, n, u, l, o,
|
|
5736
|
+
d = O(s, n, u, l, o, true, p),
|
|
5923
5737
|
v = hasConstructorOf(d, e);
|
|
5924
5738
|
return function _invoke(e, t) {
|
|
5925
5739
|
var r = e();
|
|
@@ -5928,7 +5742,7 @@
|
|
|
5928
5742
|
if (s && v) return _await(d.p, function (e) {
|
|
5929
5743
|
f[y] = e;
|
|
5930
5744
|
var r = h(t, o);
|
|
5931
|
-
return a =
|
|
5745
|
+
return a = true, r;
|
|
5932
5746
|
});
|
|
5933
5747
|
}, function (e) {
|
|
5934
5748
|
return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
|
|
@@ -5949,13 +5763,13 @@
|
|
|
5949
5763
|
});
|
|
5950
5764
|
},
|
|
5951
5765
|
O = function _encapsulate(t, r, i, c, l, d, v) {
|
|
5952
|
-
var
|
|
5766
|
+
var m,
|
|
5953
5767
|
h = {},
|
|
5954
5768
|
O = _typeof(r),
|
|
5955
|
-
_ =
|
|
5769
|
+
_ = b ? function (n) {
|
|
5956
5770
|
var a,
|
|
5957
5771
|
o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
|
|
5958
|
-
|
|
5772
|
+
b(Object.assign(null != n ? n : h, {
|
|
5959
5773
|
keypath: t,
|
|
5960
5774
|
value: r,
|
|
5961
5775
|
cyclic: i,
|
|
@@ -5967,30 +5781,30 @@
|
|
|
5967
5781
|
type: o
|
|
5968
5782
|
}));
|
|
5969
5783
|
} : null;
|
|
5970
|
-
if (["string", "boolean", "number", "undefined"].includes(O)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (
|
|
5971
|
-
replaced:
|
|
5972
|
-
}) :
|
|
5784
|
+
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 = {
|
|
5785
|
+
replaced: m
|
|
5786
|
+
}) : m = r, _ && _(), m;
|
|
5973
5787
|
if (null === r) return _ && _(), r;
|
|
5974
5788
|
if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
|
|
5975
5789
|
var A = y.indexOf(r);
|
|
5976
5790
|
if (!(A < 0)) return f[t] = "#", _ && _({
|
|
5977
5791
|
cyclicKeypath: p[A]
|
|
5978
5792
|
}), "#" + p[A];
|
|
5979
|
-
|
|
5793
|
+
true === i && (y.push(r), p.push(t));
|
|
5980
5794
|
}
|
|
5981
5795
|
var S,
|
|
5982
5796
|
j,
|
|
5983
5797
|
T = isPlainObject(r),
|
|
5984
5798
|
I = o(r),
|
|
5985
5799
|
N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : w(t, r, c, l, T || I, null, _);
|
|
5986
|
-
if (N !== r ? (
|
|
5800
|
+
if (N !== r ? (m = N, h = {
|
|
5987
5801
|
replaced: N
|
|
5988
|
-
}) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]),
|
|
5802
|
+
}) : "" === 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 = {
|
|
5989
5803
|
clone: S
|
|
5990
|
-
}) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ?
|
|
5804
|
+
}) : (["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 = {
|
|
5991
5805
|
clone: S
|
|
5992
|
-
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j :
|
|
5993
|
-
if (!S) return
|
|
5806
|
+
}), _ && _(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
|
|
5807
|
+
if (!S) return m;
|
|
5994
5808
|
if (c.iterateIn) {
|
|
5995
5809
|
var P = function _loop(n) {
|
|
5996
5810
|
var o = {
|
|
@@ -6004,27 +5818,27 @@
|
|
|
6004
5818
|
};
|
|
6005
5819
|
for (var x in r) P(x);
|
|
6006
5820
|
_ && _({
|
|
6007
|
-
endIterateIn:
|
|
6008
|
-
end:
|
|
5821
|
+
endIterateIn: true,
|
|
5822
|
+
end: true
|
|
6009
5823
|
});
|
|
6010
5824
|
} else n(r).forEach(function (n) {
|
|
6011
5825
|
var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
|
|
6012
5826
|
g(c, {
|
|
6013
|
-
ownKeys:
|
|
5827
|
+
ownKeys: true
|
|
6014
5828
|
}, function () {
|
|
6015
5829
|
var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
|
|
6016
5830
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
6017
5831
|
});
|
|
6018
5832
|
}), _ && _({
|
|
6019
|
-
endIterateOwn:
|
|
6020
|
-
end:
|
|
5833
|
+
endIterateOwn: true,
|
|
5834
|
+
end: true
|
|
6021
5835
|
});
|
|
6022
5836
|
if (c.iterateUnsetNumeric) {
|
|
6023
5837
|
for (var E = r.length, C = function _loop2(n) {
|
|
6024
5838
|
if (!(n in r)) {
|
|
6025
5839
|
var a = "".concat(t).concat(t ? "." : "").concat(n);
|
|
6026
5840
|
g(c, {
|
|
6027
|
-
ownKeys:
|
|
5841
|
+
ownKeys: false
|
|
6028
5842
|
}, function () {
|
|
6029
5843
|
var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
|
|
6030
5844
|
hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
|
|
@@ -6032,8 +5846,8 @@
|
|
|
6032
5846
|
}
|
|
6033
5847
|
}, B = 0; B < E; B++) C(B);
|
|
6034
5848
|
_ && _({
|
|
6035
|
-
endIterateUnsetNumeric:
|
|
6036
|
-
end:
|
|
5849
|
+
endIterateUnsetNumeric: true,
|
|
5850
|
+
end: true
|
|
6037
5851
|
});
|
|
6038
5852
|
}
|
|
6039
5853
|
return S;
|
|
@@ -6049,19 +5863,19 @@
|
|
|
6049
5863
|
}
|
|
6050
5864
|
if (Object.assign(r, {
|
|
6051
5865
|
type: p,
|
|
6052
|
-
replaced:
|
|
5866
|
+
replaced: true
|
|
6053
5867
|
}), (l || !y.replaceAsync) && !y.replace) return i && i({
|
|
6054
|
-
typeDetected:
|
|
5868
|
+
typeDetected: true
|
|
6055
5869
|
}), O(e, t, v && "readonly", r, n, o, p);
|
|
6056
5870
|
i && i({
|
|
6057
|
-
replacing:
|
|
5871
|
+
replacing: true
|
|
6058
5872
|
});
|
|
6059
|
-
var
|
|
5873
|
+
var b = void 0;
|
|
6060
5874
|
if (l || !y.replaceAsync) {
|
|
6061
5875
|
if (void 0 === y.replace) throw new TypeError("Missing replacer");
|
|
6062
|
-
|
|
6063
|
-
} else
|
|
6064
|
-
return O(e,
|
|
5876
|
+
b = y.replace(t, r);
|
|
5877
|
+
} else b = y.replaceAsync(t, r);
|
|
5878
|
+
return O(e, b, v && "readonly", r, n, o, p);
|
|
6065
5879
|
}
|
|
6066
5880
|
}
|
|
6067
5881
|
return t;
|
|
@@ -6069,26 +5883,26 @@
|
|
|
6069
5883
|
_ = O("", t, v, null != r ? r : {}, d);
|
|
6070
5884
|
if (d.length) return l && u.throwOnBadSyncType ? function () {
|
|
6071
5885
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6072
|
-
}() : Promise.resolve(h(_, d)).then(
|
|
5886
|
+
}() : Promise.resolve(h(_, d)).then(m);
|
|
6073
5887
|
if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6074
|
-
return u.stringification && l ? [
|
|
5888
|
+
return u.stringification && l ? [m(_)] : l ? m(_) : Promise.resolve(m(_));
|
|
6075
5889
|
}
|
|
6076
5890
|
}, {
|
|
6077
5891
|
key: "encapsulateSync",
|
|
6078
5892
|
value: function encapsulateSync(e, t, r) {
|
|
6079
5893
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6080
|
-
throwOnBadSyncType:
|
|
5894
|
+
throwOnBadSyncType: true
|
|
6081
5895
|
}, r), {}, {
|
|
6082
|
-
sync:
|
|
5896
|
+
sync: true
|
|
6083
5897
|
}));
|
|
6084
5898
|
}
|
|
6085
5899
|
}, {
|
|
6086
5900
|
key: "encapsulateAsync",
|
|
6087
5901
|
value: function encapsulateAsync(e, t, r) {
|
|
6088
5902
|
return this.encapsulate(e, t, _objectSpread2(_objectSpread2({
|
|
6089
|
-
throwOnBadSyncType:
|
|
5903
|
+
throwOnBadSyncType: true
|
|
6090
5904
|
}, r), {}, {
|
|
6091
|
-
sync:
|
|
5905
|
+
sync: false
|
|
6092
5906
|
}));
|
|
6093
5907
|
}
|
|
6094
5908
|
}, {
|
|
@@ -6096,7 +5910,7 @@
|
|
|
6096
5910
|
value: function revive(t, r) {
|
|
6097
5911
|
var a = this,
|
|
6098
5912
|
i = _objectSpread2(_objectSpread2({
|
|
6099
|
-
sync:
|
|
5913
|
+
sync: true
|
|
6100
5914
|
}, this.options), r),
|
|
6101
5915
|
c = i.sync;
|
|
6102
5916
|
function finishRevival(e) {
|
|
@@ -6106,12 +5920,12 @@
|
|
|
6106
5920
|
}
|
|
6107
5921
|
if (!t || "object" !== _typeof(t) || Array.isArray(t)) return finishRevival(t);
|
|
6108
5922
|
var u = t.$types;
|
|
6109
|
-
if (
|
|
5923
|
+
if (true === u) return finishRevival(t.$);
|
|
6110
5924
|
if (!u || "object" !== _typeof(u) || Array.isArray(u)) return finishRevival(t);
|
|
6111
5925
|
var l = [],
|
|
6112
5926
|
f = {},
|
|
6113
|
-
y =
|
|
6114
|
-
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y =
|
|
5927
|
+
y = true;
|
|
5928
|
+
u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = false);
|
|
6115
5929
|
var p = function executeReviver(e, t) {
|
|
6116
5930
|
var r,
|
|
6117
5931
|
n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
|
|
@@ -6126,7 +5940,7 @@
|
|
|
6126
5940
|
return hasConstructorOf(e, s) ? void 0 : e;
|
|
6127
5941
|
}
|
|
6128
5942
|
var v,
|
|
6129
|
-
|
|
5943
|
+
b = function revivePlainObjects() {
|
|
6130
5944
|
var r = [];
|
|
6131
5945
|
if (!u) throw new Error("Found bad `types`");
|
|
6132
5946
|
if (Object.entries(u).forEach(function (e) {
|
|
@@ -6158,28 +5972,28 @@
|
|
|
6158
5972
|
c === i && (t = c);
|
|
6159
5973
|
}, void 0);
|
|
6160
5974
|
}();
|
|
6161
|
-
return hasConstructorOf(
|
|
5975
|
+
return hasConstructorOf(b, e) ? v = b.then(function () {
|
|
6162
5976
|
return t;
|
|
6163
5977
|
}) : (v = function _revive(t, r, a, i, c) {
|
|
6164
5978
|
if (!y || "$types" !== t) {
|
|
6165
5979
|
var f = u[t],
|
|
6166
5980
|
v = o(r);
|
|
6167
5981
|
if (v || isPlainObject(r)) {
|
|
6168
|
-
var
|
|
5982
|
+
var b = v ? new Array(r.length) : {};
|
|
6169
5983
|
for (n(r).forEach(function (n) {
|
|
6170
|
-
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a :
|
|
5984
|
+
var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
|
|
6171
5985
|
i = function set(e) {
|
|
6172
|
-
return hasConstructorOf(e, s) ?
|
|
5986
|
+
return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
|
|
6173
5987
|
};
|
|
6174
5988
|
hasConstructorOf(o, e) ? d.push(o.then(function (e) {
|
|
6175
5989
|
return i(e);
|
|
6176
5990
|
})) : i(o);
|
|
6177
|
-
}), r =
|
|
6178
|
-
var
|
|
6179
|
-
h =
|
|
6180
|
-
g =
|
|
6181
|
-
O =
|
|
6182
|
-
w =
|
|
5991
|
+
}), r = b; l.length;) {
|
|
5992
|
+
var m = _slicedToArray(l[0], 4),
|
|
5993
|
+
h = m[0],
|
|
5994
|
+
g = m[1],
|
|
5995
|
+
O = m[2],
|
|
5996
|
+
w = m[3],
|
|
6183
5997
|
_ = getByKeyPath(h, g);
|
|
6184
5998
|
if (void 0 === _) break;
|
|
6185
5999
|
O[w] = _, l.splice(0, 1);
|
|
@@ -6212,18 +6026,18 @@
|
|
|
6212
6026
|
key: "reviveSync",
|
|
6213
6027
|
value: function reviveSync(e, t) {
|
|
6214
6028
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6215
|
-
throwOnBadSyncType:
|
|
6029
|
+
throwOnBadSyncType: true
|
|
6216
6030
|
}, t), {}, {
|
|
6217
|
-
sync:
|
|
6031
|
+
sync: true
|
|
6218
6032
|
}));
|
|
6219
6033
|
}
|
|
6220
6034
|
}, {
|
|
6221
6035
|
key: "reviveAsync",
|
|
6222
6036
|
value: function reviveAsync(e, t) {
|
|
6223
6037
|
return this.revive(e, _objectSpread2(_objectSpread2({
|
|
6224
|
-
throwOnBadSyncType:
|
|
6038
|
+
throwOnBadSyncType: true
|
|
6225
6039
|
}, t), {}, {
|
|
6226
|
-
sync:
|
|
6040
|
+
sync: false
|
|
6227
6041
|
}));
|
|
6228
6042
|
}
|
|
6229
6043
|
}, {
|
|
@@ -6322,19 +6136,20 @@
|
|
|
6322
6136
|
index: r
|
|
6323
6137
|
} : (t.buffers.push(e), {
|
|
6324
6138
|
s: p(e),
|
|
6325
|
-
maxByteLength: e.maxByteLength
|
|
6139
|
+
maxByteLength: e.maxByteLength,
|
|
6140
|
+
resizable: e.resizable
|
|
6326
6141
|
});
|
|
6327
6142
|
},
|
|
6328
6143
|
revive: function revive(e, t) {
|
|
6329
6144
|
if (t.buffers || (t.buffers = []), Object.hasOwn(e, "index")) return t.buffers[e.index];
|
|
6330
|
-
var r = d(e.s, {
|
|
6145
|
+
var r = d(e.s, e.resizable ? {
|
|
6331
6146
|
maxByteLength: e.maxByteLength
|
|
6332
|
-
});
|
|
6147
|
+
} : void 0);
|
|
6333
6148
|
return t.buffers.push(r), r;
|
|
6334
6149
|
}
|
|
6335
6150
|
}
|
|
6336
6151
|
},
|
|
6337
|
-
|
|
6152
|
+
b = {
|
|
6338
6153
|
bigintObject: {
|
|
6339
6154
|
test: function test(e) {
|
|
6340
6155
|
return "object" == _typeof$2(e) && hasConstructorOf(e, BigInt);
|
|
@@ -6345,7 +6160,7 @@
|
|
|
6345
6160
|
}
|
|
6346
6161
|
}
|
|
6347
6162
|
},
|
|
6348
|
-
|
|
6163
|
+
m = {
|
|
6349
6164
|
bigint: {
|
|
6350
6165
|
test: function test(e) {
|
|
6351
6166
|
return "bigint" == typeof e;
|
|
@@ -6373,7 +6188,7 @@
|
|
|
6373
6188
|
},
|
|
6374
6189
|
replace: function replace(e) {
|
|
6375
6190
|
var t = new XMLHttpRequest();
|
|
6376
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6191
|
+
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);
|
|
6377
6192
|
return {
|
|
6378
6193
|
type: e.type,
|
|
6379
6194
|
stringContents: t.responseText
|
|
@@ -6408,33 +6223,32 @@
|
|
|
6408
6223
|
},
|
|
6409
6224
|
replaceAsync: function replaceAsync(t) {
|
|
6410
6225
|
return new e(/*#__PURE__*/function () {
|
|
6411
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
6412
|
-
var n;
|
|
6413
|
-
return
|
|
6414
|
-
while (1) switch (_context.
|
|
6226
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(e, r) {
|
|
6227
|
+
var n, _t;
|
|
6228
|
+
return _regenerator().w(function (_context) {
|
|
6229
|
+
while (1) switch (_context.n) {
|
|
6415
6230
|
case 0:
|
|
6416
|
-
_context.
|
|
6417
|
-
_context.
|
|
6231
|
+
_context.p = 0;
|
|
6232
|
+
_context.n = 1;
|
|
6418
6233
|
return crypto.subtle.exportKey("jwk", t);
|
|
6419
|
-
case
|
|
6420
|
-
n = _context.
|
|
6421
|
-
_context.
|
|
6234
|
+
case 1:
|
|
6235
|
+
n = _context.v;
|
|
6236
|
+
_context.n = 3;
|
|
6422
6237
|
break;
|
|
6423
|
-
case
|
|
6424
|
-
_context.
|
|
6425
|
-
|
|
6426
|
-
return _context.
|
|
6427
|
-
case
|
|
6238
|
+
case 2:
|
|
6239
|
+
_context.p = 2;
|
|
6240
|
+
_t = _context.v;
|
|
6241
|
+
return _context.a(2, void r(_t));
|
|
6242
|
+
case 3:
|
|
6428
6243
|
e({
|
|
6429
6244
|
jwk: n,
|
|
6430
6245
|
algorithm: t.algorithm,
|
|
6431
6246
|
usages: t.usages
|
|
6432
6247
|
});
|
|
6433
|
-
case
|
|
6434
|
-
|
|
6435
|
-
return _context.stop();
|
|
6248
|
+
case 4:
|
|
6249
|
+
return _context.a(2);
|
|
6436
6250
|
}
|
|
6437
|
-
}, _callee, null, [[0,
|
|
6251
|
+
}, _callee, null, [[0, 2]]);
|
|
6438
6252
|
}));
|
|
6439
6253
|
return function (_x, _x2) {
|
|
6440
6254
|
return _ref.apply(this, arguments);
|
|
@@ -6445,7 +6259,7 @@
|
|
|
6445
6259
|
var t = e.jwk,
|
|
6446
6260
|
r = e.algorithm,
|
|
6447
6261
|
n = e.usages;
|
|
6448
|
-
return crypto.subtle.importKey("jwk", t, r,
|
|
6262
|
+
return crypto.subtle.importKey("jwk", t, r, true, n);
|
|
6449
6263
|
}
|
|
6450
6264
|
}
|
|
6451
6265
|
},
|
|
@@ -6467,6 +6281,7 @@
|
|
|
6467
6281
|
} : (n.buffers.push(e), {
|
|
6468
6282
|
encoded: p(e),
|
|
6469
6283
|
maxByteLength: e.maxByteLength,
|
|
6284
|
+
resizable: e.resizable,
|
|
6470
6285
|
byteOffset: t,
|
|
6471
6286
|
byteLength: r
|
|
6472
6287
|
});
|
|
@@ -6477,11 +6292,12 @@
|
|
|
6477
6292
|
n = e.byteLength,
|
|
6478
6293
|
a = e.encoded,
|
|
6479
6294
|
o = e.index,
|
|
6480
|
-
i = e.maxByteLength
|
|
6481
|
-
|
|
6482
|
-
|
|
6295
|
+
i = e.maxByteLength,
|
|
6296
|
+
c = e.resizable;
|
|
6297
|
+
var s;
|
|
6298
|
+
return "index" in e ? s = t.buffers[o] : (s = d(a, c ? {
|
|
6483
6299
|
maxByteLength: i
|
|
6484
|
-
}), t.buffers.push(
|
|
6300
|
+
} : i), t.buffers.push(s)), new DataView(s, r, n);
|
|
6485
6301
|
}
|
|
6486
6302
|
}
|
|
6487
6303
|
},
|
|
@@ -6697,7 +6513,7 @@
|
|
|
6697
6513
|
},
|
|
6698
6514
|
replace: function replace(e) {
|
|
6699
6515
|
var t = new XMLHttpRequest();
|
|
6700
|
-
if (t.overrideMimeType("text/plain; charset=x-user-defined"), t.open("GET", URL.createObjectURL(e),
|
|
6516
|
+
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);
|
|
6701
6517
|
return {
|
|
6702
6518
|
type: e.type,
|
|
6703
6519
|
stringContents: t.responseText,
|
|
@@ -6793,31 +6609,31 @@
|
|
|
6793
6609
|
return a.addEventListener("load", function () {
|
|
6794
6610
|
n.drawImage(a, 0, 0);
|
|
6795
6611
|
}), a.src = t.dataURL, new e(/*#__PURE__*/function () {
|
|
6796
|
-
var
|
|
6797
|
-
|
|
6798
|
-
|
|
6612
|
+
var _ref0 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e, t) {
|
|
6613
|
+
var _t2, _t3, _t4;
|
|
6614
|
+
return _regenerator().w(function (_context2) {
|
|
6615
|
+
while (1) switch (_context2.n) {
|
|
6799
6616
|
case 0:
|
|
6800
|
-
_context2.
|
|
6801
|
-
|
|
6802
|
-
_context2.
|
|
6617
|
+
_context2.p = 0;
|
|
6618
|
+
_t2 = e;
|
|
6619
|
+
_context2.n = 1;
|
|
6803
6620
|
return createImageBitmap(r);
|
|
6804
|
-
case
|
|
6805
|
-
|
|
6806
|
-
(
|
|
6807
|
-
_context2.
|
|
6621
|
+
case 1:
|
|
6622
|
+
_t3 = _context2.v;
|
|
6623
|
+
_t2(_t3);
|
|
6624
|
+
_context2.n = 3;
|
|
6808
6625
|
break;
|
|
6809
|
-
case
|
|
6810
|
-
_context2.
|
|
6811
|
-
|
|
6812
|
-
t(
|
|
6813
|
-
case
|
|
6814
|
-
|
|
6815
|
-
return _context2.stop();
|
|
6626
|
+
case 2:
|
|
6627
|
+
_context2.p = 2;
|
|
6628
|
+
_t4 = _context2.v;
|
|
6629
|
+
t(_t4);
|
|
6630
|
+
case 3:
|
|
6631
|
+
return _context2.a(2);
|
|
6816
6632
|
}
|
|
6817
|
-
}, _callee2, null, [[0,
|
|
6633
|
+
}, _callee2, null, [[0, 2]]);
|
|
6818
6634
|
}));
|
|
6819
6635
|
return function (_x3, _x4) {
|
|
6820
|
-
return
|
|
6636
|
+
return _ref0.apply(this, arguments);
|
|
6821
6637
|
};
|
|
6822
6638
|
}());
|
|
6823
6639
|
}
|
|
@@ -6905,7 +6721,7 @@
|
|
|
6905
6721
|
}
|
|
6906
6722
|
}
|
|
6907
6723
|
},
|
|
6908
|
-
|
|
6724
|
+
J = {
|
|
6909
6725
|
StringObject: {
|
|
6910
6726
|
test: function test(e) {
|
|
6911
6727
|
return "String" === toStringTag(e) && "object" == _typeof$2(e);
|
|
@@ -6936,7 +6752,7 @@
|
|
|
6936
6752
|
}
|
|
6937
6753
|
}
|
|
6938
6754
|
},
|
|
6939
|
-
|
|
6755
|
+
q = {
|
|
6940
6756
|
regexp: {
|
|
6941
6757
|
test: function test(e) {
|
|
6942
6758
|
return "RegExp" === toStringTag(e);
|
|
@@ -6947,14 +6763,14 @@
|
|
|
6947
6763
|
flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
|
|
6948
6764
|
};
|
|
6949
6765
|
},
|
|
6950
|
-
revive: function revive(
|
|
6951
|
-
var e =
|
|
6952
|
-
t =
|
|
6766
|
+
revive: function revive(_ref10) {
|
|
6767
|
+
var e = _ref10.source,
|
|
6768
|
+
t = _ref10.flags;
|
|
6953
6769
|
return new RegExp(e, t);
|
|
6954
6770
|
}
|
|
6955
6771
|
}
|
|
6956
6772
|
},
|
|
6957
|
-
|
|
6773
|
+
G = {
|
|
6958
6774
|
set: {
|
|
6959
6775
|
test: function test(e) {
|
|
6960
6776
|
return "Set" === toStringTag(e);
|
|
@@ -6992,10 +6808,10 @@
|
|
|
6992
6808
|
test: function test(e) {
|
|
6993
6809
|
return toStringTag(e) === t;
|
|
6994
6810
|
},
|
|
6995
|
-
replace: function replace(
|
|
6996
|
-
var e =
|
|
6997
|
-
t =
|
|
6998
|
-
r =
|
|
6811
|
+
replace: function replace(_ref11, n) {
|
|
6812
|
+
var e = _ref11.buffer,
|
|
6813
|
+
t = _ref11.byteOffset,
|
|
6814
|
+
r = _ref11.length;
|
|
6999
6815
|
n.buffers || (n.buffers = []);
|
|
7000
6816
|
var a = n.buffers.indexOf(e);
|
|
7001
6817
|
return a > -1 ? {
|
|
@@ -7004,6 +6820,7 @@
|
|
|
7004
6820
|
length: r
|
|
7005
6821
|
} : (n.buffers.push(e), {
|
|
7006
6822
|
maxByteLength: e.maxByteLength,
|
|
6823
|
+
resizable: e.resizable,
|
|
7007
6824
|
encoded: p(e),
|
|
7008
6825
|
byteOffset: t,
|
|
7009
6826
|
length: r
|
|
@@ -7015,11 +6832,12 @@
|
|
|
7015
6832
|
a = t.length,
|
|
7016
6833
|
o = t.encoded,
|
|
7017
6834
|
i = t.index,
|
|
7018
|
-
c = t.maxByteLength
|
|
7019
|
-
|
|
7020
|
-
|
|
6835
|
+
c = t.maxByteLength,
|
|
6836
|
+
s = t.resizable;
|
|
6837
|
+
var u;
|
|
6838
|
+
return "index" in t ? u = r.buffers[i] : (u = d(o, s ? {
|
|
7021
6839
|
maxByteLength: c
|
|
7022
|
-
}), r.buffers.push(
|
|
6840
|
+
} : void 0), r.buffers.push(u)), new e(u, n, a);
|
|
7023
6841
|
}
|
|
7024
6842
|
};
|
|
7025
6843
|
}(e);
|
|
@@ -7052,22 +6870,22 @@
|
|
|
7052
6870
|
},
|
|
7053
6871
|
te = [{
|
|
7054
6872
|
arrayNonindexKeys: {
|
|
7055
|
-
testPlainObjects:
|
|
6873
|
+
testPlainObjects: true,
|
|
7056
6874
|
test: function test(e, t) {
|
|
7057
6875
|
return !!Array.isArray(e) && (Object.keys(e).some(function (e) {
|
|
7058
6876
|
return String(Number.parseInt(e)) !== e;
|
|
7059
|
-
}) && (t.iterateIn = "object", t.addLength =
|
|
6877
|
+
}) && (t.iterateIn = "object", t.addLength = true), true);
|
|
7060
6878
|
},
|
|
7061
6879
|
replace: function replace(e, t) {
|
|
7062
|
-
return t.iterateUnsetNumeric =
|
|
6880
|
+
return t.iterateUnsetNumeric = true, e;
|
|
7063
6881
|
},
|
|
7064
6882
|
revive: function revive(e) {
|
|
7065
6883
|
if (Array.isArray(e)) return e;
|
|
7066
6884
|
var t = [];
|
|
7067
|
-
return Object.entries(e).forEach(function (
|
|
7068
|
-
var
|
|
7069
|
-
e =
|
|
7070
|
-
r =
|
|
6885
|
+
return Object.entries(e).forEach(function (_ref12) {
|
|
6886
|
+
var _ref13 = _slicedToArray$1(_ref12, 2),
|
|
6887
|
+
e = _ref13[0],
|
|
6888
|
+
r = _ref13[1];
|
|
7071
6889
|
t[e] = r;
|
|
7072
6890
|
}), t;
|
|
7073
6891
|
}
|
|
@@ -7075,7 +6893,7 @@
|
|
|
7075
6893
|
}, {
|
|
7076
6894
|
sparseUndefined: {
|
|
7077
6895
|
test: function test(e, t) {
|
|
7078
|
-
return void 0 === e &&
|
|
6896
|
+
return void 0 === e && false === t.ownKeys;
|
|
7079
6897
|
},
|
|
7080
6898
|
replace: function replace() {
|
|
7081
6899
|
return 0;
|
|
@@ -7084,13 +6902,13 @@
|
|
|
7084
6902
|
}
|
|
7085
6903
|
}],
|
|
7086
6904
|
re = [K, U, F, $],
|
|
7087
|
-
ce = [ee, Z, te,
|
|
6905
|
+
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 : []),
|
|
7088
6906
|
se = ce.concat({
|
|
7089
6907
|
checkDataCloneException: {
|
|
7090
6908
|
test: function test(e) {
|
|
7091
6909
|
var t = {}.toString.call(e).slice(8, -1);
|
|
7092
6910
|
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");
|
|
7093
|
-
return
|
|
6911
|
+
return false;
|
|
7094
6912
|
}
|
|
7095
6913
|
}
|
|
7096
6914
|
});
|
|
@@ -7432,7 +7250,6 @@
|
|
|
7432
7250
|
tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
|
|
7433
7251
|
addIndexEntry(i + 1);
|
|
7434
7252
|
}, /** @type {SQLStatementErrorCallback} */error);
|
|
7435
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
7436
7253
|
} catch (err) {
|
|
7437
7254
|
// Not a valid value to insert into index, so just continue
|
|
7438
7255
|
addIndexEntry(i + 1);
|
|
@@ -7557,7 +7374,6 @@
|
|
|
7557
7374
|
IDBIndex.__updateIndexList = function (store, tx, success, failure) {
|
|
7558
7375
|
/** @type {IndexList} **/
|
|
7559
7376
|
var indexList = {};
|
|
7560
|
-
// eslint-disable-next-line sonarjs/prefer-for-of -- Implement iterability?
|
|
7561
7377
|
for (var i = 0; i < store.indexNames.length; i++) {
|
|
7562
7378
|
var idx = store.__indexes[store.indexNames[i]];
|
|
7563
7379
|
indexList[idx.name] = {
|
|
@@ -7950,8 +7766,11 @@
|
|
|
7950
7766
|
return rowKey.includes(check);
|
|
7951
7767
|
}) ||
|
|
7952
7768
|
// More precise than our SQL
|
|
7953
|
-
isMultiEntryMatch(
|
|
7954
|
-
|
|
7769
|
+
isMultiEntryMatch(
|
|
7770
|
+
// Added `JSON.stringify` as was having problems with
|
|
7771
|
+
// `JSON.stringify` encoding added to nested
|
|
7772
|
+
// array keys
|
|
7773
|
+
JSON.stringify(encodedKey).slice(1, -1), row[escapedIndexNameForKeyCol]))) {
|
|
7955
7774
|
recordCount++;
|
|
7956
7775
|
record = row;
|
|
7957
7776
|
} else if (!hasKey && !multiChecks) {
|
|
@@ -8027,7 +7846,13 @@
|
|
|
8027
7846
|
sql.push(')');
|
|
8028
7847
|
} else if (index.multiEntry) {
|
|
8029
7848
|
sql.push('AND', escapeIndexNameForSQL(index.name), "LIKE ? ESCAPE '^'");
|
|
8030
|
-
|
|
7849
|
+
if (Array.isArray(range)) {
|
|
7850
|
+
// Todo: For nesting deeper than one level, we probably need to
|
|
7851
|
+
// run `JSON.stringify` again
|
|
7852
|
+
sqlValues.push('%' + sqlLIKEEscape(JSON.stringify(/** @type {string} */_encode(range, index.multiEntry)).slice(1, -1)) + '%');
|
|
7853
|
+
} else {
|
|
7854
|
+
sqlValues.push('%' + sqlLIKEEscape(/** @type {string} */_encode(range, index.multiEntry)) + '%');
|
|
7855
|
+
}
|
|
8031
7856
|
} else {
|
|
8032
7857
|
var convertedRange = convertValueToKeyRange(range, nullDisallowed);
|
|
8033
7858
|
setSQLForKeyRange(convertedRange, escapeIndexNameForSQL(index.name), sql, sqlValues, true, false);
|
|
@@ -8530,7 +8355,6 @@
|
|
|
8530
8355
|
if ('invalid' in indexKey && indexKey.invalid || 'failure' in indexKey && indexKey.failure) {
|
|
8531
8356
|
throw new Error('Go to catch');
|
|
8532
8357
|
}
|
|
8533
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
8534
8358
|
} catch (err) {
|
|
8535
8359
|
resolve(undefined);
|
|
8536
8360
|
return;
|
|
@@ -9864,7 +9688,7 @@
|
|
|
9864
9688
|
*/
|
|
9865
9689
|
function getLatestCachedWebSQLVersion(name) {
|
|
9866
9690
|
return Object.keys(websqlDBCache[name]).map(Number).reduce(function (prev, curr) {
|
|
9867
|
-
return curr
|
|
9691
|
+
return Math.max(curr, prev);
|
|
9868
9692
|
}, 0);
|
|
9869
9693
|
}
|
|
9870
9694
|
|
|
@@ -10146,7 +9970,6 @@
|
|
|
10146
9970
|
if (err) {
|
|
10147
9971
|
try {
|
|
10148
9972
|
systx.executeSql('ROLLBACK', [], cb, cb);
|
|
10149
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
10150
9973
|
} catch (err) {
|
|
10151
9974
|
// Browser may fail with expired transaction above so
|
|
10152
9975
|
// no choice but to manually revert
|
|
@@ -10254,7 +10077,7 @@
|
|
|
10254
10077
|
// eslint-disable-next-line camelcase -- Clear API
|
|
10255
10078
|
req.transaction.on__complete = function () {
|
|
10256
10079
|
var pos = connection.__transactions.indexOf(req.transaction);
|
|
10257
|
-
if (pos
|
|
10080
|
+
if (pos !== -1) {
|
|
10258
10081
|
connection.__transactions.splice(pos, 1);
|
|
10259
10082
|
}
|
|
10260
10083
|
if (/** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
|
|
@@ -11688,7 +11511,6 @@
|
|
|
11688
11511
|
Object.getOwnPropertyDescriptor(o, name);
|
|
11689
11512
|
}
|
|
11690
11513
|
Object.defineProperty(IDB, name, desc);
|
|
11691
|
-
// eslint-disable-next-line no-unused-vars -- Problem with commonJS rollup
|
|
11692
11514
|
} catch (err) {
|
|
11693
11515
|
// With `indexedDB`, PhantomJS fails here and below but
|
|
11694
11516
|
// not above, while Chrome is reverse (and Firefox doesn't
|