indexeddbshim 19.0.2 → 19.0.4
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/README.md +1 -6
- package/badges/coverage-badge.svg +1 -1
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/badges/tests-badge.svg +1 -1
- package/dist/IDBTransaction.d.ts +15 -0
- package/dist/IDBTransaction.d.ts.map +1 -1
- package/dist/indexeddbshim-Key.js +2 -2
- package/dist/indexeddbshim-Key.js.map +1 -1
- package/dist/indexeddbshim-Key.min.js +1 -1
- package/dist/indexeddbshim-Key.min.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +123 -73
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +123 -74
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +3 -3
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +121 -72
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +123 -74
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +3 -3
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +123 -74
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +3 -3
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/node-UnicodeIdentifiers.d.ts.map +1 -1
- package/dist/setGlobalVars.d.ts.map +1 -1
- package/dist/unicode-regex.d.ts +1 -1
- package/dist/unicode-regex.d.ts.map +1 -1
- package/dist/util.d.ts +0 -6
- package/dist/util.d.ts.map +1 -1
- package/package.json +100 -95
- package/src/CFG.js +1 -1
- package/src/IDBTransaction.js +76 -18
- package/src/node-UnicodeIdentifiers.js +2 -1
- package/src/setGlobalVars.js +2 -1
- package/src/unicode-regex.js +1 -16
- package/src/util.js +1 -11
- package/licenseInfo.json +0 -8
package/dist/indexeddbshim.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v19.0.
|
|
1
|
+
/*! indexeddbshim - v19.0.4 - 9/17/2026 */
|
|
2
2
|
|
|
3
3
|
(function (factory) {
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -1806,7 +1806,7 @@
|
|
|
1806
1806
|
'UnicodeIDStart',
|
|
1807
1807
|
// In the non-Unicode builds, defaults to /[$0-9A-Z_a-z]/
|
|
1808
1808
|
'UnicodeIDContinue',
|
|
1809
|
-
// Used by
|
|
1809
|
+
// Used by Sca.js for optional restructuring of typeson-registry
|
|
1810
1810
|
// Structured Cloning Algorithm; should only be needed for ensuring data
|
|
1811
1811
|
// created in 3.* versions of IndexedDBShim continue to work; see the
|
|
1812
1812
|
// library `typeson-registry-sca-reverter` to get a function to do this
|
|
@@ -1928,19 +1928,7 @@
|
|
|
1928
1928
|
|
|
1929
1929
|
// @ts-nocheck
|
|
1930
1930
|
|
|
1931
|
-
|
|
1932
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1933
|
-
}
|
|
1934
|
-
var regex$1;
|
|
1935
|
-
var hasRequiredRegex;
|
|
1936
|
-
function requireRegex() {
|
|
1937
|
-
if (hasRequiredRegex) return regex$1;
|
|
1938
|
-
hasRequiredRegex = 1;
|
|
1939
|
-
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]|\uD801[\uDDC9\uDDE4]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C\uDF83\uDF85\uDF8E\uDF91\uDFC5\uDFC7\uDFC8]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD818[\uDD21-\uDD28]|\uD81B[\uDD68-\uDD6A]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1940
|
-
return regex$1;
|
|
1941
|
-
}
|
|
1942
|
-
var regexExports = requireRegex();
|
|
1943
|
-
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1931
|
+
var regex = /[\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]|\uD801[\uDDC9\uDDE4]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C\uDF83\uDF85\uDF8E\uDF91\uDFC5\uDFC7\uDFC8]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD818[\uDD21-\uDD28]|\uD81B[\uDD68-\uDD6A]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1944
1932
|
|
|
1945
1933
|
/**
|
|
1946
1934
|
* @typedef {number} Integer
|
|
@@ -5382,6 +5370,7 @@
|
|
|
5382
5370
|
* __requestsFinished: boolean,
|
|
5383
5371
|
* __transFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5384
5372
|
* __callTransFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5373
|
+
* __usesStandardDriver: () => boolean,
|
|
5385
5374
|
* __transactionEndCallback: (() => void)|undefined,
|
|
5386
5375
|
* __transactionFinished: boolean,
|
|
5387
5376
|
* __completed: boolean,
|
|
@@ -5521,6 +5510,27 @@
|
|
|
5521
5510
|
cb(Boolean(err));
|
|
5522
5511
|
};
|
|
5523
5512
|
|
|
5513
|
+
/**
|
|
5514
|
+
* A standard (3-argument) `transaction()`/`readTransaction()` implementation
|
|
5515
|
+
* (browser WebSQL, `cordova-plugin-sqlite-2`, etc.) never invokes the
|
|
5516
|
+
* non-standard 4th callback that installs the real `__transFinishedCb`,
|
|
5517
|
+
* and finalizes its own underlying SQL transaction synchronously, as soon
|
|
5518
|
+
* as it sees no further `executeSql` call already in flight or queued --
|
|
5519
|
+
* with no way for it to know a JS-level continuation (e.g. an
|
|
5520
|
+
* `await`-deferred follow-up request) is still coming. Detected via
|
|
5521
|
+
* arity, checking whichever of the two methods this transaction's own
|
|
5522
|
+
* mode actually uses.
|
|
5523
|
+
* @this {IDBTransactionFull}
|
|
5524
|
+
* @returns {boolean}
|
|
5525
|
+
*/
|
|
5526
|
+
IDBTransaction.prototype.__usesStandardDriver = function () {
|
|
5527
|
+
var me = this;
|
|
5528
|
+
var dbConn = me.db && me.db.__db;
|
|
5529
|
+
var dbMethodName = me.mode === 'readonly' ? 'readTransaction' : 'transaction';
|
|
5530
|
+
var supportsNonstandardTransCb = Boolean(dbConn && typeof dbConn[dbMethodName] === 'function' && dbConn[dbMethodName].length >= 4);
|
|
5531
|
+
return !supportsNonstandardTransCb;
|
|
5532
|
+
};
|
|
5533
|
+
|
|
5524
5534
|
/**
|
|
5525
5535
|
* In Node, the real (SQL-commit-capable) `__transFinishedCb` is only
|
|
5526
5536
|
* installed once the underlying WebSQL driver's own SQL-queue-idle check
|
|
@@ -5555,17 +5565,11 @@
|
|
|
5555
5565
|
return;
|
|
5556
5566
|
}
|
|
5557
5567
|
if (me.__transFinishedCb === IDBTransaction.prototype.__transFinishedCb) {
|
|
5558
|
-
//
|
|
5559
|
-
//
|
|
5560
|
-
//
|
|
5561
|
-
//
|
|
5562
|
-
|
|
5563
|
-
// actually uses -- see `__executeRequests`) and, if it's not supported,
|
|
5564
|
-
// just call the default (the driver auto-commits on its own).
|
|
5565
|
-
var dbConn = me.db && me.db.__db;
|
|
5566
|
-
var dbMethodName = me.mode === 'readonly' ? 'readTransaction' : 'transaction';
|
|
5567
|
-
var supportsNonstandardTransCb = Boolean(dbConn && typeof dbConn[dbMethodName] === 'function' && dbConn[dbMethodName].length >= 4);
|
|
5568
|
-
if (!supportsNonstandardTransCb) {
|
|
5568
|
+
// Waiting here for the non-standard 4th callback to install the real
|
|
5569
|
+
// `__transFinishedCb` would defer forever on a standard driver, which
|
|
5570
|
+
// never invokes it -- call the default instead (the driver auto-commits
|
|
5571
|
+
// on its own).
|
|
5572
|
+
if (me.__usesStandardDriver()) {
|
|
5569
5573
|
me.__transFinishedCbFired = true;
|
|
5570
5574
|
me.__transFinishedCb(err, cb);
|
|
5571
5575
|
return;
|
|
@@ -5604,10 +5608,52 @@
|
|
|
5604
5608
|
// `readTransaction` is optimized, at least in `node-websql`
|
|
5605
5609
|
function executeRequests(tx) {
|
|
5606
5610
|
me.__tx = tx;
|
|
5611
|
+
var isStandardDriver = me.__usesStandardDriver();
|
|
5607
5612
|
/** @type {RequestInfo} */
|
|
5608
5613
|
var q,
|
|
5609
5614
|
i = -1;
|
|
5610
5615
|
|
|
5616
|
+
/**
|
|
5617
|
+
* A continuation that must still be able to observe the
|
|
5618
|
+
* transaction as safe to extend (e.g., re-checking whether an
|
|
5619
|
+
* `await`-based follow-up request has arrived yet, or giving a
|
|
5620
|
+
* same-tick microtask scheduled from a handler a chance to run
|
|
5621
|
+
* first) can normally just be deferred via `queueMicrotask`.
|
|
5622
|
+
* That alone isn't safe on a standard (3-argument) driver,
|
|
5623
|
+
* though: it finalizes its own underlying SQL transaction
|
|
5624
|
+
* synchronously, as soon as it sees no further `executeSql`
|
|
5625
|
+
* call already in flight or queued, and a microtask hop by
|
|
5626
|
+
* itself never issues one -- so the driver already considers
|
|
5627
|
+
* the transaction done by the time the deferred continuation
|
|
5628
|
+
* runs, silently dropping whatever it tries to do next. Issuing
|
|
5629
|
+
* a harmless `SELECT 1` instead keeps the driver's own queue
|
|
5630
|
+
* non-empty across that same gap, at the cost of a real SQL
|
|
5631
|
+
* round trip; Node's driver doesn't need this since its real
|
|
5632
|
+
* commit/rollback is already deferred separately, via
|
|
5633
|
+
* `nonstandardTransCb`.
|
|
5634
|
+
* @param {() => void} cb
|
|
5635
|
+
* @returns {void}
|
|
5636
|
+
*/
|
|
5637
|
+
function keepAliveAndWait(cb) {
|
|
5638
|
+
if (!isStandardDriver) {
|
|
5639
|
+
queueMicrotask(cb);
|
|
5640
|
+
return;
|
|
5641
|
+
}
|
|
5642
|
+
try {
|
|
5643
|
+
tx.executeSql('SELECT 1', [], function () {
|
|
5644
|
+
cb();
|
|
5645
|
+
}, function () {
|
|
5646
|
+
cb();
|
|
5647
|
+
return false; // Don't roll back the transaction over a keep-alive no-op
|
|
5648
|
+
});
|
|
5649
|
+
} catch (err) {
|
|
5650
|
+
// The driver has already finalized the transaction (or otherwise
|
|
5651
|
+
// rejected the call) -- nothing left to hold open, so fall back
|
|
5652
|
+
// to a plain microtask hop for the continuation itself.
|
|
5653
|
+
queueMicrotask(cb);
|
|
5654
|
+
}
|
|
5655
|
+
}
|
|
5656
|
+
|
|
5611
5657
|
/**
|
|
5612
5658
|
* @typedef {unknown} IDBRequestResult
|
|
5613
5659
|
*/
|
|
@@ -5801,9 +5847,9 @@
|
|
|
5801
5847
|
* from a microtask -- so if the JS-level queue is merely found
|
|
5802
5848
|
* empty here, that doesn't yet mean no more work is coming, only
|
|
5803
5849
|
* that none has been queued *yet*. Re-check across a small, bounded
|
|
5804
|
-
* number of further
|
|
5805
|
-
* chain like `await store.put(...); await store.get(...)`
|
|
5806
|
-
* up) before finally concluding the transaction is genuinely done.
|
|
5850
|
+
* number of further turns (see `keepAliveAndWait`, letting a typical
|
|
5851
|
+
* `await` chain like `await store.put(...); await store.get(...)`
|
|
5852
|
+
* catch up) before finally concluding the transaction is genuinely done.
|
|
5807
5853
|
* Applies to `readonly` transactions too, not just `readwrite`/
|
|
5808
5854
|
* `versionchange`: a `readonly` transaction's `complete` event
|
|
5809
5855
|
* can otherwise fire synchronously, immediately after its last
|
|
@@ -5833,7 +5879,7 @@
|
|
|
5833
5879
|
}
|
|
5834
5880
|
return;
|
|
5835
5881
|
}
|
|
5836
|
-
|
|
5882
|
+
keepAliveAndWait(function () {
|
|
5837
5883
|
checkQueueEntry(attemptsLeft - 1);
|
|
5838
5884
|
});
|
|
5839
5885
|
}
|
|
@@ -5888,7 +5934,7 @@
|
|
|
5888
5934
|
checkQueueEntry(10);
|
|
5889
5935
|
return;
|
|
5890
5936
|
}
|
|
5891
|
-
|
|
5937
|
+
keepAliveAndWait(function () {
|
|
5892
5938
|
if (me.__errored || me.__requestsFinished) {
|
|
5893
5939
|
return;
|
|
5894
5940
|
}
|
|
@@ -6682,8 +6728,8 @@
|
|
|
6682
6728
|
y = {},
|
|
6683
6729
|
p = [],
|
|
6684
6730
|
f = [],
|
|
6685
|
-
|
|
6686
|
-
|
|
6731
|
+
m = [],
|
|
6732
|
+
d = !("cyclic" in c) || c.cyclic,
|
|
6687
6733
|
h = c.encapsulateObserver,
|
|
6688
6734
|
b = c.encapsulateError,
|
|
6689
6735
|
finish = function finish(e) {
|
|
@@ -6767,19 +6813,19 @@
|
|
|
6767
6813
|
e[t] = n[r];
|
|
6768
6814
|
});
|
|
6769
6815
|
},
|
|
6770
|
-
_encapsulate2 = function _encapsulate(e, t, a, i, l,
|
|
6816
|
+
_encapsulate2 = function _encapsulate(e, t, a, i, l, m, d) {
|
|
6771
6817
|
var g,
|
|
6772
6818
|
v = {};
|
|
6773
6819
|
var w = h ? function (r) {
|
|
6774
6820
|
var _ref4;
|
|
6775
|
-
var n = (_ref4 =
|
|
6821
|
+
var n = (_ref4 = d !== null && d !== void 0 ? d : i.type) !== null && _ref4 !== void 0 ? _ref4 : getJSONType(t);
|
|
6776
6822
|
h(Object.assign(r !== null && r !== void 0 ? r : v, {
|
|
6777
6823
|
keypath: e,
|
|
6778
6824
|
value: t,
|
|
6779
6825
|
cyclic: a,
|
|
6780
6826
|
stateObj: i,
|
|
6781
6827
|
promisesData: l,
|
|
6782
|
-
resolvingTypesonPromise:
|
|
6828
|
+
resolvingTypesonPromise: m,
|
|
6783
6829
|
awaitingTypesonPromise: hasConstructorOf(t, TypesonPromise)
|
|
6784
6830
|
}, {
|
|
6785
6831
|
type: n
|
|
@@ -6788,12 +6834,12 @@
|
|
|
6788
6834
|
getEncapsulatedValue = function getEncapsulatedValue(e, t, r) {
|
|
6789
6835
|
try {
|
|
6790
6836
|
return {
|
|
6791
|
-
value: _encapsulate2(e, t[r], Boolean(a), i, l,
|
|
6837
|
+
value: _encapsulate2(e, t[r], Boolean(a), i, l, m)
|
|
6792
6838
|
};
|
|
6793
6839
|
} catch (n) {
|
|
6794
6840
|
var _ref5;
|
|
6795
6841
|
if (!b) throw n;
|
|
6796
|
-
var _o2 = (_ref5 =
|
|
6842
|
+
var _o2 = (_ref5 = d !== null && d !== void 0 ? d : i.type) !== null && _ref5 !== void 0 ? _ref5 : getJSONType(t),
|
|
6797
6843
|
_a = b({
|
|
6798
6844
|
keypath: e,
|
|
6799
6845
|
error: n,
|
|
@@ -6811,7 +6857,7 @@
|
|
|
6811
6857
|
throw n;
|
|
6812
6858
|
}
|
|
6813
6859
|
};
|
|
6814
|
-
if (["string", "boolean", "number", "undefined"].includes(_typeof(t))) return void 0 === t || t === 1 / 0 || 0 === t || t === -1 / 0 || Number.isNaN(t) ? (g = i.replaced ? t : replace(e, t, i, l, false,
|
|
6860
|
+
if (["string", "boolean", "number", "undefined"].includes(_typeof(t))) return void 0 === t || t === 1 / 0 || 0 === t || t === -1 / 0 || Number.isNaN(t) ? (g = i.replaced ? t : replace(e, t, i, l, false, m, w), g !== t && (v = {
|
|
6815
6861
|
replaced: g
|
|
6816
6862
|
})) : g = t, w && w(), g;
|
|
6817
6863
|
if (null === t) return w && w(), t;
|
|
@@ -6896,13 +6942,13 @@
|
|
|
6896
6942
|
o.push(u);
|
|
6897
6943
|
var p = o.length - 1,
|
|
6898
6944
|
f = "$symbolKeys.".concat(escapeKeyPathComponent(e), ".").concat(String(p), ".value"),
|
|
6899
|
-
|
|
6945
|
+
m = {
|
|
6900
6946
|
value: t[r]
|
|
6901
6947
|
};
|
|
6902
6948
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6903
6949
|
ownKeys: true
|
|
6904
6950
|
}, function () {
|
|
6905
|
-
var e = getEncapsulatedValue(f,
|
|
6951
|
+
var e = getEncapsulatedValue(f, m, "value"),
|
|
6906
6952
|
t = e && e.value;
|
|
6907
6953
|
hasConstructorOf(t, TypesonPromise) ? l.push([f, t, Boolean(a), i, u, "value", i.type]) : e && (void 0 !== t || "substitute" in e) && setOwnEnumerable(u, "value", t);
|
|
6908
6954
|
});
|
|
@@ -6918,7 +6964,7 @@
|
|
|
6918
6964
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6919
6965
|
ownKeys: false
|
|
6920
6966
|
}, function () {
|
|
6921
|
-
var e = _encapsulate2(r, void 0, Boolean(a), i, l,
|
|
6967
|
+
var e = _encapsulate2(r, void 0, Boolean(a), i, l, m);
|
|
6922
6968
|
hasConstructorOf(e, TypesonPromise) ? l.push([r, e, Boolean(a), i, S, _n, i.type]) : void 0 !== e && setOwnEnumerable(S, _n, e);
|
|
6923
6969
|
});
|
|
6924
6970
|
};
|
|
@@ -6948,7 +6994,7 @@
|
|
|
6948
6994
|
replaced: true
|
|
6949
6995
|
}), (l || !_o3.replaceAsync) && !_o3.replace) return s && s({
|
|
6950
6996
|
typeDetected: true
|
|
6951
|
-
}), _encapsulate2(e, t,
|
|
6997
|
+
}), _encapsulate2(e, t, d && "readonly", r, n, a, _i2);
|
|
6952
6998
|
var _c = void 0;
|
|
6953
6999
|
if (s && s({
|
|
6954
7000
|
replacing: true
|
|
@@ -6956,15 +7002,15 @@
|
|
|
6956
7002
|
if (void 0 === _o3.replace) throw new TypeError("Missing replacer");
|
|
6957
7003
|
_c = _o3.replace(t, r);
|
|
6958
7004
|
} else _c = _o3.replaceAsync(t, r);
|
|
6959
|
-
return _encapsulate2(e, _c,
|
|
7005
|
+
return _encapsulate2(e, _c, d && "readonly", r, n, a, _i2);
|
|
6960
7006
|
}
|
|
6961
7007
|
}
|
|
6962
7008
|
return t;
|
|
6963
7009
|
},
|
|
6964
|
-
g = _encapsulate2("", e,
|
|
6965
|
-
if (
|
|
7010
|
+
g = _encapsulate2("", e, d, t !== null && t !== void 0 ? t : {}, m);
|
|
7011
|
+
if (m.length) return l && c.throwOnBadSyncType ? function () {
|
|
6966
7012
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6967
|
-
}() : Promise.resolve(_checkPromises(g,
|
|
7013
|
+
}() : Promise.resolve(_checkPromises(g, m)).then(finish);
|
|
6968
7014
|
if (!l && c.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6969
7015
|
return l && c.stringification ? [finish(g)] : l ? finish(g) : Promise.resolve(finish(g));
|
|
6970
7016
|
}
|
|
@@ -7011,8 +7057,8 @@
|
|
|
7011
7057
|
var y = [],
|
|
7012
7058
|
p = Object.create(null),
|
|
7013
7059
|
f = {};
|
|
7014
|
-
var
|
|
7015
|
-
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$,
|
|
7060
|
+
var m = true;
|
|
7061
|
+
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$, m = false, u = false, void 0 !== l && isObject(e) && !n(e, "$symbolKeys") && (e.$symbolKeys = l, u = true));
|
|
7016
7062
|
var executeReviver = function executeReviver(e, t) {
|
|
7017
7063
|
var _this4$revivers$e;
|
|
7018
7064
|
var _ref6 = (_this4$revivers$e = _this4.revivers[e]) !== null && _this4$revivers$e !== void 0 ? _this4$revivers$e : [],
|
|
@@ -7024,7 +7070,7 @@
|
|
|
7024
7070
|
if (r.revive) return r.revive(t, f);
|
|
7025
7071
|
throw new Error("Missing reviver");
|
|
7026
7072
|
},
|
|
7027
|
-
|
|
7073
|
+
d = [];
|
|
7028
7074
|
function checkUndefined(e) {
|
|
7029
7075
|
return hasConstructorOf(e, Undefined) ? void 0 : e;
|
|
7030
7076
|
}
|
|
@@ -7100,8 +7146,8 @@
|
|
|
7100
7146
|
return hasConstructorOf(h, TypesonPromise) ? b = h.then(function () {
|
|
7101
7147
|
return e;
|
|
7102
7148
|
}) : (b = function _revive(e, t, a, s, l) {
|
|
7103
|
-
if (
|
|
7104
|
-
var u =
|
|
7149
|
+
if (m && "$types" === e) return;
|
|
7150
|
+
var u = d.length,
|
|
7105
7151
|
f = n(c, e) ? c[e] : void 0,
|
|
7106
7152
|
h = o(t);
|
|
7107
7153
|
if (h || isPlainObject(t)) {
|
|
@@ -7111,7 +7157,7 @@
|
|
|
7111
7157
|
set = function set(e) {
|
|
7112
7158
|
return hasConstructorOf(e, Undefined) ? setOwnEnumerable(_o4, r, void 0) : void 0 !== e && setOwnEnumerable(_o4, r, e), e;
|
|
7113
7159
|
};
|
|
7114
|
-
hasConstructorOf(n, TypesonPromise) ?
|
|
7160
|
+
hasConstructorOf(n, TypesonPromise) ? d.push(n.then(function (e) {
|
|
7115
7161
|
return set(e);
|
|
7116
7162
|
})) : set(n);
|
|
7117
7163
|
}), t = _o4; y.length;) {
|
|
@@ -7145,11 +7191,11 @@
|
|
|
7145
7191
|
return p[e] = t, t;
|
|
7146
7192
|
}) : (p[e] = r, r);
|
|
7147
7193
|
};
|
|
7148
|
-
return !i &&
|
|
7194
|
+
return !i && d.length > u ? TypesonPromise.all(d.slice(u)).then(function () {
|
|
7149
7195
|
return applyType(t);
|
|
7150
7196
|
}) : applyType(t);
|
|
7151
|
-
}("", e, null),
|
|
7152
|
-
return TypesonPromise.all([e].concat(
|
|
7197
|
+
}("", e, null), d.length && (b = TypesonPromise.resolve(b).then(function (e) {
|
|
7198
|
+
return TypesonPromise.all([e].concat(d));
|
|
7153
7199
|
}).then(function (_ref13) {
|
|
7154
7200
|
var _ref14 = _slicedToArray(_ref13, 1),
|
|
7155
7201
|
e = _ref14[0];
|
|
@@ -7294,7 +7340,7 @@
|
|
|
7294
7340
|
}
|
|
7295
7341
|
}
|
|
7296
7342
|
},
|
|
7297
|
-
|
|
7343
|
+
m = {
|
|
7298
7344
|
audiodata: {
|
|
7299
7345
|
test: function test(e) {
|
|
7300
7346
|
return "AudioData" === toStringTag(e);
|
|
@@ -7349,7 +7395,7 @@
|
|
|
7349
7395
|
}
|
|
7350
7396
|
}
|
|
7351
7397
|
},
|
|
7352
|
-
|
|
7398
|
+
d = {
|
|
7353
7399
|
bigintObject: {
|
|
7354
7400
|
test: function test(e) {
|
|
7355
7401
|
return "object" == _typeof(e) && hasConstructorOf(e, BigInt);
|
|
@@ -7706,7 +7752,7 @@
|
|
|
7706
7752
|
}
|
|
7707
7753
|
}
|
|
7708
7754
|
},
|
|
7709
|
-
|
|
7755
|
+
I = {
|
|
7710
7756
|
error: {
|
|
7711
7757
|
test: function test(e) {
|
|
7712
7758
|
return "Error" === toStringTag(e);
|
|
@@ -7735,9 +7781,9 @@
|
|
|
7735
7781
|
}
|
|
7736
7782
|
}
|
|
7737
7783
|
},
|
|
7738
|
-
|
|
7784
|
+
B = {};
|
|
7739
7785
|
function create$2(e) {
|
|
7740
|
-
|
|
7786
|
+
B[e.name.toLowerCase()] = {
|
|
7741
7787
|
test: function test(t) {
|
|
7742
7788
|
return hasConstructorOf(t, e);
|
|
7743
7789
|
},
|
|
@@ -7770,7 +7816,7 @@
|
|
|
7770
7816
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
7771
7817
|
return create$2(e);
|
|
7772
7818
|
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
7773
|
-
var
|
|
7819
|
+
var C = {
|
|
7774
7820
|
file: {
|
|
7775
7821
|
test: function test(e) {
|
|
7776
7822
|
return "File" === toStringTag(e);
|
|
@@ -7813,7 +7859,7 @@
|
|
|
7813
7859
|
}
|
|
7814
7860
|
},
|
|
7815
7861
|
U = {
|
|
7816
|
-
file:
|
|
7862
|
+
file: C.file,
|
|
7817
7863
|
filelist: {
|
|
7818
7864
|
test: function test(e) {
|
|
7819
7865
|
return "FileList" === toStringTag(e);
|
|
@@ -7848,7 +7894,7 @@
|
|
|
7848
7894
|
k = {
|
|
7849
7895
|
imagebitmap: {
|
|
7850
7896
|
test: function test(e) {
|
|
7851
|
-
return "ImageBitmap" === toStringTag(e)
|
|
7897
|
+
return "ImageBitmap" === toStringTag(e);
|
|
7852
7898
|
},
|
|
7853
7899
|
replace: function replace(e) {
|
|
7854
7900
|
var t = document.createElement("canvas");
|
|
@@ -7863,7 +7909,9 @@
|
|
|
7863
7909
|
r = t.getContext("2d"),
|
|
7864
7910
|
n = document.createElement("img");
|
|
7865
7911
|
return n.addEventListener("load", function () {
|
|
7866
|
-
|
|
7912
|
+
try {
|
|
7913
|
+
r.drawImage(n, 0, 0);
|
|
7914
|
+
} catch (_unused) {}
|
|
7867
7915
|
}), n.src = e.dataURL, "undefined" == typeof OffscreenCanvas ? t : t.transferToImageBitmap();
|
|
7868
7916
|
},
|
|
7869
7917
|
reviveAsync: function reviveAsync(e) {
|
|
@@ -7902,7 +7950,7 @@
|
|
|
7902
7950
|
}
|
|
7903
7951
|
}
|
|
7904
7952
|
},
|
|
7905
|
-
|
|
7953
|
+
R = {
|
|
7906
7954
|
imagedata: {
|
|
7907
7955
|
test: function test(e) {
|
|
7908
7956
|
return "ImageData" === toStringTag(e);
|
|
@@ -7933,7 +7981,7 @@
|
|
|
7933
7981
|
}
|
|
7934
7982
|
}
|
|
7935
7983
|
},
|
|
7936
|
-
|
|
7984
|
+
M = {
|
|
7937
7985
|
infinity: {
|
|
7938
7986
|
test: function test(e) {
|
|
7939
7987
|
return e === 1 / 0;
|
|
@@ -7946,7 +7994,7 @@
|
|
|
7946
7994
|
}
|
|
7947
7995
|
}
|
|
7948
7996
|
},
|
|
7949
|
-
|
|
7997
|
+
L = {
|
|
7950
7998
|
map: {
|
|
7951
7999
|
test: function test(e) {
|
|
7952
8000
|
return "Map" === toStringTag(e);
|
|
@@ -7985,7 +8033,7 @@
|
|
|
7985
8033
|
}
|
|
7986
8034
|
}
|
|
7987
8035
|
},
|
|
7988
|
-
|
|
8036
|
+
W = {
|
|
7989
8037
|
negativeZero: {
|
|
7990
8038
|
test: function test(e) {
|
|
7991
8039
|
return Object.is(e, -0);
|
|
@@ -8331,18 +8379,18 @@
|
|
|
8331
8379
|
revive: function revive() {}
|
|
8332
8380
|
}
|
|
8333
8381
|
}],
|
|
8334
|
-
se = [K,
|
|
8335
|
-
ye = [re, te, ae, z, se, A, H,
|
|
8382
|
+
se = [K, M, $, W],
|
|
8383
|
+
ye = [re, te, ae, z, se, A, H, R, k, C, U, b, I, B].concat("function" == typeof Map ? L : [], "function" == typeof Set ? X : [], "function" == typeof ArrayBuffer ? f : [], "function" == typeof Uint8Array ? ee : [], "function" == typeof DataView ? O : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, d] : [], "undefined" != typeof DOMException ? T : [], "undefined" != typeof QuotaExceededError ? J : [], "undefined" != typeof WebTransportError ? oe : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? P : [], "undefined" != typeof DOMQuad ? E : [], "undefined" != typeof DOMMatrix ? S : [], "undefined" != typeof AudioData ? m : [], "undefined" != typeof EncodedAudioChunk ? x : [], "undefined" != typeof EncodedVideoChunk ? j : [], "undefined" != typeof VideoFrame ? ne : []);
|
|
8336
8384
|
var pe = ye.concat({
|
|
8337
8385
|
checkDataCloneException: {
|
|
8338
8386
|
test: function test(e) {
|
|
8339
8387
|
var t = {}.toString.call(e).slice(8, -1);
|
|
8340
|
-
if (["symbol", "function"].includes(_typeof(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "Event", "MessageChannel", "MessagePort"].includes(t) || e && e.constructor && ["MessageChannel", "MessagePort"].includes(e.constructor.name) || ["ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"].includes(t) && function isBufferDetached(e) {
|
|
8388
|
+
if (["symbol", "function"].includes(_typeof(e)) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "WeakRef", "FinalizationRegistry", "Generator", "AsyncGenerator", "String Iterator", "Array Iterator", "Map Iterator", "Set Iterator", "RegExp String Iterator", "Intl.Collator", "Intl.DateTimeFormat", "Intl.DisplayNames", "Intl.DurationFormat", "Intl.ListFormat", "Intl.Locale", "Intl.NumberFormat", "Intl.PluralRules", "Intl.RelativeTimeFormat", "Intl.Segmenter", "Event", "MessageChannel", "MessagePort", "ReadableStream", "WritableStream", "TransformStream", "OffscreenCanvas"].includes(t) || e && e.constructor && ["MessageChannel", "MessagePort"].includes(e.constructor.name) || ["ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"].includes(t) && function isBufferDetached(e) {
|
|
8341
8389
|
if ("boolean" == typeof e.detached) return e.detached;
|
|
8342
8390
|
if (0 !== e.byteLength) return false;
|
|
8343
8391
|
try {
|
|
8344
8392
|
return new Uint8Array(e), !1;
|
|
8345
|
-
} catch (
|
|
8393
|
+
} catch (_unused2) {
|
|
8346
8394
|
return true;
|
|
8347
8395
|
}
|
|
8348
8396
|
}(e) || e && "object" == _typeof(e) && "number" == typeof e.nodeType && "function" == typeof e.insertBefore) throw new DOMException("The object cannot be cloned.", "DataCloneError");
|
|
@@ -13889,10 +13937,11 @@
|
|
|
13889
13937
|
setNonIDBGlobals();
|
|
13890
13938
|
}
|
|
13891
13939
|
}
|
|
13892
|
-
/*
|
|
13940
|
+
/* c8 ignore start -- TS guard */
|
|
13893
13941
|
if (!IDB.shimIndexedDB) {
|
|
13894
13942
|
return;
|
|
13895
13943
|
}
|
|
13944
|
+
/* c8 ignore stop -- TS guard */
|
|
13896
13945
|
IDB.shimIndexedDB.__setConnectionQueueOrigin();
|
|
13897
13946
|
}
|
|
13898
13947
|
};
|