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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v19.0.
|
|
1
|
+
/*! indexeddbshim - v19.0.4 - 9/17/2026 */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1814,7 +1814,7 @@
|
|
|
1814
1814
|
'UnicodeIDStart',
|
|
1815
1815
|
// In the non-Unicode builds, defaults to /[$0-9A-Z_a-z]/
|
|
1816
1816
|
'UnicodeIDContinue',
|
|
1817
|
-
// Used by
|
|
1817
|
+
// Used by Sca.js for optional restructuring of typeson-registry
|
|
1818
1818
|
// Structured Cloning Algorithm; should only be needed for ensuring data
|
|
1819
1819
|
// created in 3.* versions of IndexedDBShim continue to work; see the
|
|
1820
1820
|
// library `typeson-registry-sca-reverter` to get a function to do this
|
|
@@ -1936,19 +1936,7 @@
|
|
|
1936
1936
|
|
|
1937
1937
|
// @ts-nocheck
|
|
1938
1938
|
|
|
1939
|
-
|
|
1940
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1941
|
-
}
|
|
1942
|
-
var regex$1;
|
|
1943
|
-
var hasRequiredRegex;
|
|
1944
|
-
function requireRegex() {
|
|
1945
|
-
if (hasRequiredRegex) return regex$1;
|
|
1946
|
-
hasRequiredRegex = 1;
|
|
1947
|
-
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]/;
|
|
1948
|
-
return regex$1;
|
|
1949
|
-
}
|
|
1950
|
-
var regexExports = requireRegex();
|
|
1951
|
-
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1939
|
+
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]/;
|
|
1952
1940
|
|
|
1953
1941
|
/**
|
|
1954
1942
|
* @typedef {number} Integer
|
|
@@ -5390,6 +5378,7 @@
|
|
|
5390
5378
|
* __requestsFinished: boolean,
|
|
5391
5379
|
* __transFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5392
5380
|
* __callTransFinishedCb: (err: boolean, cb: ((bool?: boolean) => void)) => void,
|
|
5381
|
+
* __usesStandardDriver: () => boolean,
|
|
5393
5382
|
* __transactionEndCallback: (() => void)|undefined,
|
|
5394
5383
|
* __transactionFinished: boolean,
|
|
5395
5384
|
* __completed: boolean,
|
|
@@ -5529,6 +5518,27 @@
|
|
|
5529
5518
|
cb(Boolean(err));
|
|
5530
5519
|
};
|
|
5531
5520
|
|
|
5521
|
+
/**
|
|
5522
|
+
* A standard (3-argument) `transaction()`/`readTransaction()` implementation
|
|
5523
|
+
* (browser WebSQL, `cordova-plugin-sqlite-2`, etc.) never invokes the
|
|
5524
|
+
* non-standard 4th callback that installs the real `__transFinishedCb`,
|
|
5525
|
+
* and finalizes its own underlying SQL transaction synchronously, as soon
|
|
5526
|
+
* as it sees no further `executeSql` call already in flight or queued --
|
|
5527
|
+
* with no way for it to know a JS-level continuation (e.g. an
|
|
5528
|
+
* `await`-deferred follow-up request) is still coming. Detected via
|
|
5529
|
+
* arity, checking whichever of the two methods this transaction's own
|
|
5530
|
+
* mode actually uses.
|
|
5531
|
+
* @this {IDBTransactionFull}
|
|
5532
|
+
* @returns {boolean}
|
|
5533
|
+
*/
|
|
5534
|
+
IDBTransaction.prototype.__usesStandardDriver = function () {
|
|
5535
|
+
var me = this;
|
|
5536
|
+
var dbConn = me.db && me.db.__db;
|
|
5537
|
+
var dbMethodName = me.mode === 'readonly' ? 'readTransaction' : 'transaction';
|
|
5538
|
+
var supportsNonstandardTransCb = Boolean(dbConn && typeof dbConn[dbMethodName] === 'function' && dbConn[dbMethodName].length >= 4);
|
|
5539
|
+
return !supportsNonstandardTransCb;
|
|
5540
|
+
};
|
|
5541
|
+
|
|
5532
5542
|
/**
|
|
5533
5543
|
* In Node, the real (SQL-commit-capable) `__transFinishedCb` is only
|
|
5534
5544
|
* installed once the underlying WebSQL driver's own SQL-queue-idle check
|
|
@@ -5563,17 +5573,11 @@
|
|
|
5563
5573
|
return;
|
|
5564
5574
|
}
|
|
5565
5575
|
if (me.__transFinishedCb === IDBTransaction.prototype.__transFinishedCb) {
|
|
5566
|
-
//
|
|
5567
|
-
//
|
|
5568
|
-
//
|
|
5569
|
-
//
|
|
5570
|
-
|
|
5571
|
-
// actually uses -- see `__executeRequests`) and, if it's not supported,
|
|
5572
|
-
// just call the default (the driver auto-commits on its own).
|
|
5573
|
-
var dbConn = me.db && me.db.__db;
|
|
5574
|
-
var dbMethodName = me.mode === 'readonly' ? 'readTransaction' : 'transaction';
|
|
5575
|
-
var supportsNonstandardTransCb = Boolean(dbConn && typeof dbConn[dbMethodName] === 'function' && dbConn[dbMethodName].length >= 4);
|
|
5576
|
-
if (!supportsNonstandardTransCb) {
|
|
5576
|
+
// Waiting here for the non-standard 4th callback to install the real
|
|
5577
|
+
// `__transFinishedCb` would defer forever on a standard driver, which
|
|
5578
|
+
// never invokes it -- call the default instead (the driver auto-commits
|
|
5579
|
+
// on its own).
|
|
5580
|
+
if (me.__usesStandardDriver()) {
|
|
5577
5581
|
me.__transFinishedCbFired = true;
|
|
5578
5582
|
me.__transFinishedCb(err, cb);
|
|
5579
5583
|
return;
|
|
@@ -5612,10 +5616,52 @@
|
|
|
5612
5616
|
// `readTransaction` is optimized, at least in `node-websql`
|
|
5613
5617
|
function executeRequests(tx) {
|
|
5614
5618
|
me.__tx = tx;
|
|
5619
|
+
var isStandardDriver = me.__usesStandardDriver();
|
|
5615
5620
|
/** @type {RequestInfo} */
|
|
5616
5621
|
var q,
|
|
5617
5622
|
i = -1;
|
|
5618
5623
|
|
|
5624
|
+
/**
|
|
5625
|
+
* A continuation that must still be able to observe the
|
|
5626
|
+
* transaction as safe to extend (e.g., re-checking whether an
|
|
5627
|
+
* `await`-based follow-up request has arrived yet, or giving a
|
|
5628
|
+
* same-tick microtask scheduled from a handler a chance to run
|
|
5629
|
+
* first) can normally just be deferred via `queueMicrotask`.
|
|
5630
|
+
* That alone isn't safe on a standard (3-argument) driver,
|
|
5631
|
+
* though: it finalizes its own underlying SQL transaction
|
|
5632
|
+
* synchronously, as soon as it sees no further `executeSql`
|
|
5633
|
+
* call already in flight or queued, and a microtask hop by
|
|
5634
|
+
* itself never issues one -- so the driver already considers
|
|
5635
|
+
* the transaction done by the time the deferred continuation
|
|
5636
|
+
* runs, silently dropping whatever it tries to do next. Issuing
|
|
5637
|
+
* a harmless `SELECT 1` instead keeps the driver's own queue
|
|
5638
|
+
* non-empty across that same gap, at the cost of a real SQL
|
|
5639
|
+
* round trip; Node's driver doesn't need this since its real
|
|
5640
|
+
* commit/rollback is already deferred separately, via
|
|
5641
|
+
* `nonstandardTransCb`.
|
|
5642
|
+
* @param {() => void} cb
|
|
5643
|
+
* @returns {void}
|
|
5644
|
+
*/
|
|
5645
|
+
function keepAliveAndWait(cb) {
|
|
5646
|
+
if (!isStandardDriver) {
|
|
5647
|
+
queueMicrotask(cb);
|
|
5648
|
+
return;
|
|
5649
|
+
}
|
|
5650
|
+
try {
|
|
5651
|
+
tx.executeSql('SELECT 1', [], function () {
|
|
5652
|
+
cb();
|
|
5653
|
+
}, function () {
|
|
5654
|
+
cb();
|
|
5655
|
+
return false; // Don't roll back the transaction over a keep-alive no-op
|
|
5656
|
+
});
|
|
5657
|
+
} catch (err) {
|
|
5658
|
+
// The driver has already finalized the transaction (or otherwise
|
|
5659
|
+
// rejected the call) -- nothing left to hold open, so fall back
|
|
5660
|
+
// to a plain microtask hop for the continuation itself.
|
|
5661
|
+
queueMicrotask(cb);
|
|
5662
|
+
}
|
|
5663
|
+
}
|
|
5664
|
+
|
|
5619
5665
|
/**
|
|
5620
5666
|
* @typedef {unknown} IDBRequestResult
|
|
5621
5667
|
*/
|
|
@@ -5809,9 +5855,9 @@
|
|
|
5809
5855
|
* from a microtask -- so if the JS-level queue is merely found
|
|
5810
5856
|
* empty here, that doesn't yet mean no more work is coming, only
|
|
5811
5857
|
* that none has been queued *yet*. Re-check across a small, bounded
|
|
5812
|
-
* number of further
|
|
5813
|
-
* chain like `await store.put(...); await store.get(...)`
|
|
5814
|
-
* up) before finally concluding the transaction is genuinely done.
|
|
5858
|
+
* number of further turns (see `keepAliveAndWait`, letting a typical
|
|
5859
|
+
* `await` chain like `await store.put(...); await store.get(...)`
|
|
5860
|
+
* catch up) before finally concluding the transaction is genuinely done.
|
|
5815
5861
|
* Applies to `readonly` transactions too, not just `readwrite`/
|
|
5816
5862
|
* `versionchange`: a `readonly` transaction's `complete` event
|
|
5817
5863
|
* can otherwise fire synchronously, immediately after its last
|
|
@@ -5841,7 +5887,7 @@
|
|
|
5841
5887
|
}
|
|
5842
5888
|
return;
|
|
5843
5889
|
}
|
|
5844
|
-
|
|
5890
|
+
keepAliveAndWait(function () {
|
|
5845
5891
|
checkQueueEntry(attemptsLeft - 1);
|
|
5846
5892
|
});
|
|
5847
5893
|
}
|
|
@@ -5896,7 +5942,7 @@
|
|
|
5896
5942
|
checkQueueEntry(10);
|
|
5897
5943
|
return;
|
|
5898
5944
|
}
|
|
5899
|
-
|
|
5945
|
+
keepAliveAndWait(function () {
|
|
5900
5946
|
if (me.__errored || me.__requestsFinished) {
|
|
5901
5947
|
return;
|
|
5902
5948
|
}
|
|
@@ -6690,8 +6736,8 @@
|
|
|
6690
6736
|
y = {},
|
|
6691
6737
|
p = [],
|
|
6692
6738
|
f = [],
|
|
6693
|
-
|
|
6694
|
-
|
|
6739
|
+
m = [],
|
|
6740
|
+
d = !("cyclic" in c) || c.cyclic,
|
|
6695
6741
|
h = c.encapsulateObserver,
|
|
6696
6742
|
b = c.encapsulateError,
|
|
6697
6743
|
finish = function finish(e) {
|
|
@@ -6775,19 +6821,19 @@
|
|
|
6775
6821
|
e[t] = n[r];
|
|
6776
6822
|
});
|
|
6777
6823
|
},
|
|
6778
|
-
_encapsulate2 = function _encapsulate(e, t, a, i, l,
|
|
6824
|
+
_encapsulate2 = function _encapsulate(e, t, a, i, l, m, d) {
|
|
6779
6825
|
var g,
|
|
6780
6826
|
v = {};
|
|
6781
6827
|
var w = h ? function (r) {
|
|
6782
6828
|
var _ref4;
|
|
6783
|
-
var n = (_ref4 =
|
|
6829
|
+
var n = (_ref4 = d !== null && d !== void 0 ? d : i.type) !== null && _ref4 !== void 0 ? _ref4 : getJSONType(t);
|
|
6784
6830
|
h(Object.assign(r !== null && r !== void 0 ? r : v, {
|
|
6785
6831
|
keypath: e,
|
|
6786
6832
|
value: t,
|
|
6787
6833
|
cyclic: a,
|
|
6788
6834
|
stateObj: i,
|
|
6789
6835
|
promisesData: l,
|
|
6790
|
-
resolvingTypesonPromise:
|
|
6836
|
+
resolvingTypesonPromise: m,
|
|
6791
6837
|
awaitingTypesonPromise: hasConstructorOf(t, TypesonPromise)
|
|
6792
6838
|
}, {
|
|
6793
6839
|
type: n
|
|
@@ -6796,12 +6842,12 @@
|
|
|
6796
6842
|
getEncapsulatedValue = function getEncapsulatedValue(e, t, r) {
|
|
6797
6843
|
try {
|
|
6798
6844
|
return {
|
|
6799
|
-
value: _encapsulate2(e, t[r], Boolean(a), i, l,
|
|
6845
|
+
value: _encapsulate2(e, t[r], Boolean(a), i, l, m)
|
|
6800
6846
|
};
|
|
6801
6847
|
} catch (n) {
|
|
6802
6848
|
var _ref5;
|
|
6803
6849
|
if (!b) throw n;
|
|
6804
|
-
var _o2 = (_ref5 =
|
|
6850
|
+
var _o2 = (_ref5 = d !== null && d !== void 0 ? d : i.type) !== null && _ref5 !== void 0 ? _ref5 : getJSONType(t),
|
|
6805
6851
|
_a = b({
|
|
6806
6852
|
keypath: e,
|
|
6807
6853
|
error: n,
|
|
@@ -6819,7 +6865,7 @@
|
|
|
6819
6865
|
throw n;
|
|
6820
6866
|
}
|
|
6821
6867
|
};
|
|
6822
|
-
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,
|
|
6868
|
+
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 = {
|
|
6823
6869
|
replaced: g
|
|
6824
6870
|
})) : g = t, w && w(), g;
|
|
6825
6871
|
if (null === t) return w && w(), t;
|
|
@@ -6904,13 +6950,13 @@
|
|
|
6904
6950
|
o.push(u);
|
|
6905
6951
|
var p = o.length - 1,
|
|
6906
6952
|
f = "$symbolKeys.".concat(escapeKeyPathComponent(e), ".").concat(String(p), ".value"),
|
|
6907
|
-
|
|
6953
|
+
m = {
|
|
6908
6954
|
value: t[r]
|
|
6909
6955
|
};
|
|
6910
6956
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6911
6957
|
ownKeys: true
|
|
6912
6958
|
}, function () {
|
|
6913
|
-
var e = getEncapsulatedValue(f,
|
|
6959
|
+
var e = getEncapsulatedValue(f, m, "value"),
|
|
6914
6960
|
t = e && e.value;
|
|
6915
6961
|
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);
|
|
6916
6962
|
});
|
|
@@ -6926,7 +6972,7 @@
|
|
|
6926
6972
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6927
6973
|
ownKeys: false
|
|
6928
6974
|
}, function () {
|
|
6929
|
-
var e = _encapsulate2(r, void 0, Boolean(a), i, l,
|
|
6975
|
+
var e = _encapsulate2(r, void 0, Boolean(a), i, l, m);
|
|
6930
6976
|
hasConstructorOf(e, TypesonPromise) ? l.push([r, e, Boolean(a), i, S, _n, i.type]) : void 0 !== e && setOwnEnumerable(S, _n, e);
|
|
6931
6977
|
});
|
|
6932
6978
|
};
|
|
@@ -6956,7 +7002,7 @@
|
|
|
6956
7002
|
replaced: true
|
|
6957
7003
|
}), (l || !_o3.replaceAsync) && !_o3.replace) return s && s({
|
|
6958
7004
|
typeDetected: true
|
|
6959
|
-
}), _encapsulate2(e, t,
|
|
7005
|
+
}), _encapsulate2(e, t, d && "readonly", r, n, a, _i2);
|
|
6960
7006
|
var _c = void 0;
|
|
6961
7007
|
if (s && s({
|
|
6962
7008
|
replacing: true
|
|
@@ -6964,15 +7010,15 @@
|
|
|
6964
7010
|
if (void 0 === _o3.replace) throw new TypeError("Missing replacer");
|
|
6965
7011
|
_c = _o3.replace(t, r);
|
|
6966
7012
|
} else _c = _o3.replaceAsync(t, r);
|
|
6967
|
-
return _encapsulate2(e, _c,
|
|
7013
|
+
return _encapsulate2(e, _c, d && "readonly", r, n, a, _i2);
|
|
6968
7014
|
}
|
|
6969
7015
|
}
|
|
6970
7016
|
return t;
|
|
6971
7017
|
},
|
|
6972
|
-
g = _encapsulate2("", e,
|
|
6973
|
-
if (
|
|
7018
|
+
g = _encapsulate2("", e, d, t !== null && t !== void 0 ? t : {}, m);
|
|
7019
|
+
if (m.length) return l && c.throwOnBadSyncType ? function () {
|
|
6974
7020
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6975
|
-
}() : Promise.resolve(_checkPromises(g,
|
|
7021
|
+
}() : Promise.resolve(_checkPromises(g, m)).then(finish);
|
|
6976
7022
|
if (!l && c.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6977
7023
|
return l && c.stringification ? [finish(g)] : l ? finish(g) : Promise.resolve(finish(g));
|
|
6978
7024
|
}
|
|
@@ -7019,8 +7065,8 @@
|
|
|
7019
7065
|
var y = [],
|
|
7020
7066
|
p = Object.create(null),
|
|
7021
7067
|
f = {};
|
|
7022
|
-
var
|
|
7023
|
-
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$,
|
|
7068
|
+
var m = true;
|
|
7069
|
+
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$, m = false, u = false, void 0 !== l && isObject(e) && !n(e, "$symbolKeys") && (e.$symbolKeys = l, u = true));
|
|
7024
7070
|
var executeReviver = function executeReviver(e, t) {
|
|
7025
7071
|
var _this4$revivers$e;
|
|
7026
7072
|
var _ref6 = (_this4$revivers$e = _this4.revivers[e]) !== null && _this4$revivers$e !== void 0 ? _this4$revivers$e : [],
|
|
@@ -7032,7 +7078,7 @@
|
|
|
7032
7078
|
if (r.revive) return r.revive(t, f);
|
|
7033
7079
|
throw new Error("Missing reviver");
|
|
7034
7080
|
},
|
|
7035
|
-
|
|
7081
|
+
d = [];
|
|
7036
7082
|
function checkUndefined(e) {
|
|
7037
7083
|
return hasConstructorOf(e, Undefined) ? void 0 : e;
|
|
7038
7084
|
}
|
|
@@ -7108,8 +7154,8 @@
|
|
|
7108
7154
|
return hasConstructorOf(h, TypesonPromise) ? b = h.then(function () {
|
|
7109
7155
|
return e;
|
|
7110
7156
|
}) : (b = function _revive(e, t, a, s, l) {
|
|
7111
|
-
if (
|
|
7112
|
-
var u =
|
|
7157
|
+
if (m && "$types" === e) return;
|
|
7158
|
+
var u = d.length,
|
|
7113
7159
|
f = n(c, e) ? c[e] : void 0,
|
|
7114
7160
|
h = o(t);
|
|
7115
7161
|
if (h || isPlainObject(t)) {
|
|
@@ -7119,7 +7165,7 @@
|
|
|
7119
7165
|
set = function set(e) {
|
|
7120
7166
|
return hasConstructorOf(e, Undefined) ? setOwnEnumerable(_o4, r, void 0) : void 0 !== e && setOwnEnumerable(_o4, r, e), e;
|
|
7121
7167
|
};
|
|
7122
|
-
hasConstructorOf(n, TypesonPromise) ?
|
|
7168
|
+
hasConstructorOf(n, TypesonPromise) ? d.push(n.then(function (e) {
|
|
7123
7169
|
return set(e);
|
|
7124
7170
|
})) : set(n);
|
|
7125
7171
|
}), t = _o4; y.length;) {
|
|
@@ -7153,11 +7199,11 @@
|
|
|
7153
7199
|
return p[e] = t, t;
|
|
7154
7200
|
}) : (p[e] = r, r);
|
|
7155
7201
|
};
|
|
7156
|
-
return !i &&
|
|
7202
|
+
return !i && d.length > u ? TypesonPromise.all(d.slice(u)).then(function () {
|
|
7157
7203
|
return applyType(t);
|
|
7158
7204
|
}) : applyType(t);
|
|
7159
|
-
}("", e, null),
|
|
7160
|
-
return TypesonPromise.all([e].concat(
|
|
7205
|
+
}("", e, null), d.length && (b = TypesonPromise.resolve(b).then(function (e) {
|
|
7206
|
+
return TypesonPromise.all([e].concat(d));
|
|
7161
7207
|
}).then(function (_ref13) {
|
|
7162
7208
|
var _ref14 = _slicedToArray(_ref13, 1),
|
|
7163
7209
|
e = _ref14[0];
|
|
@@ -7302,7 +7348,7 @@
|
|
|
7302
7348
|
}
|
|
7303
7349
|
}
|
|
7304
7350
|
},
|
|
7305
|
-
|
|
7351
|
+
m = {
|
|
7306
7352
|
audiodata: {
|
|
7307
7353
|
test: function test(e) {
|
|
7308
7354
|
return "AudioData" === toStringTag(e);
|
|
@@ -7357,7 +7403,7 @@
|
|
|
7357
7403
|
}
|
|
7358
7404
|
}
|
|
7359
7405
|
},
|
|
7360
|
-
|
|
7406
|
+
d = {
|
|
7361
7407
|
bigintObject: {
|
|
7362
7408
|
test: function test(e) {
|
|
7363
7409
|
return "object" == _typeof(e) && hasConstructorOf(e, BigInt);
|
|
@@ -7714,7 +7760,7 @@
|
|
|
7714
7760
|
}
|
|
7715
7761
|
}
|
|
7716
7762
|
},
|
|
7717
|
-
|
|
7763
|
+
I = {
|
|
7718
7764
|
error: {
|
|
7719
7765
|
test: function test(e) {
|
|
7720
7766
|
return "Error" === toStringTag(e);
|
|
@@ -7743,9 +7789,9 @@
|
|
|
7743
7789
|
}
|
|
7744
7790
|
}
|
|
7745
7791
|
},
|
|
7746
|
-
|
|
7792
|
+
B = {};
|
|
7747
7793
|
function create$2(e) {
|
|
7748
|
-
|
|
7794
|
+
B[e.name.toLowerCase()] = {
|
|
7749
7795
|
test: function test(t) {
|
|
7750
7796
|
return hasConstructorOf(t, e);
|
|
7751
7797
|
},
|
|
@@ -7778,7 +7824,7 @@
|
|
|
7778
7824
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
|
|
7779
7825
|
return create$2(e);
|
|
7780
7826
|
}), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
7781
|
-
var
|
|
7827
|
+
var C = {
|
|
7782
7828
|
file: {
|
|
7783
7829
|
test: function test(e) {
|
|
7784
7830
|
return "File" === toStringTag(e);
|
|
@@ -7821,7 +7867,7 @@
|
|
|
7821
7867
|
}
|
|
7822
7868
|
},
|
|
7823
7869
|
U = {
|
|
7824
|
-
file:
|
|
7870
|
+
file: C.file,
|
|
7825
7871
|
filelist: {
|
|
7826
7872
|
test: function test(e) {
|
|
7827
7873
|
return "FileList" === toStringTag(e);
|
|
@@ -7856,7 +7902,7 @@
|
|
|
7856
7902
|
k = {
|
|
7857
7903
|
imagebitmap: {
|
|
7858
7904
|
test: function test(e) {
|
|
7859
|
-
return "ImageBitmap" === toStringTag(e)
|
|
7905
|
+
return "ImageBitmap" === toStringTag(e);
|
|
7860
7906
|
},
|
|
7861
7907
|
replace: function replace(e) {
|
|
7862
7908
|
var t = document.createElement("canvas");
|
|
@@ -7871,7 +7917,9 @@
|
|
|
7871
7917
|
r = t.getContext("2d"),
|
|
7872
7918
|
n = document.createElement("img");
|
|
7873
7919
|
return n.addEventListener("load", function () {
|
|
7874
|
-
|
|
7920
|
+
try {
|
|
7921
|
+
r.drawImage(n, 0, 0);
|
|
7922
|
+
} catch (_unused) {}
|
|
7875
7923
|
}), n.src = e.dataURL, "undefined" == typeof OffscreenCanvas ? t : t.transferToImageBitmap();
|
|
7876
7924
|
},
|
|
7877
7925
|
reviveAsync: function reviveAsync(e) {
|
|
@@ -7910,7 +7958,7 @@
|
|
|
7910
7958
|
}
|
|
7911
7959
|
}
|
|
7912
7960
|
},
|
|
7913
|
-
|
|
7961
|
+
R = {
|
|
7914
7962
|
imagedata: {
|
|
7915
7963
|
test: function test(e) {
|
|
7916
7964
|
return "ImageData" === toStringTag(e);
|
|
@@ -7941,7 +7989,7 @@
|
|
|
7941
7989
|
}
|
|
7942
7990
|
}
|
|
7943
7991
|
},
|
|
7944
|
-
|
|
7992
|
+
M = {
|
|
7945
7993
|
infinity: {
|
|
7946
7994
|
test: function test(e) {
|
|
7947
7995
|
return e === 1 / 0;
|
|
@@ -7954,7 +8002,7 @@
|
|
|
7954
8002
|
}
|
|
7955
8003
|
}
|
|
7956
8004
|
},
|
|
7957
|
-
|
|
8005
|
+
L = {
|
|
7958
8006
|
map: {
|
|
7959
8007
|
test: function test(e) {
|
|
7960
8008
|
return "Map" === toStringTag(e);
|
|
@@ -7993,7 +8041,7 @@
|
|
|
7993
8041
|
}
|
|
7994
8042
|
}
|
|
7995
8043
|
},
|
|
7996
|
-
|
|
8044
|
+
W = {
|
|
7997
8045
|
negativeZero: {
|
|
7998
8046
|
test: function test(e) {
|
|
7999
8047
|
return Object.is(e, -0);
|
|
@@ -8339,18 +8387,18 @@
|
|
|
8339
8387
|
revive: function revive() {}
|
|
8340
8388
|
}
|
|
8341
8389
|
}],
|
|
8342
|
-
se = [K,
|
|
8343
|
-
ye = [re, te, ae, z, se, A, H,
|
|
8390
|
+
se = [K, M, $, W],
|
|
8391
|
+
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 : []);
|
|
8344
8392
|
var pe = ye.concat({
|
|
8345
8393
|
checkDataCloneException: {
|
|
8346
8394
|
test: function test(e) {
|
|
8347
8395
|
var t = {}.toString.call(e).slice(8, -1);
|
|
8348
|
-
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) {
|
|
8396
|
+
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) {
|
|
8349
8397
|
if ("boolean" == typeof e.detached) return e.detached;
|
|
8350
8398
|
if (0 !== e.byteLength) return false;
|
|
8351
8399
|
try {
|
|
8352
8400
|
return new Uint8Array(e), !1;
|
|
8353
|
-
} catch (
|
|
8401
|
+
} catch (_unused2) {
|
|
8354
8402
|
return true;
|
|
8355
8403
|
}
|
|
8356
8404
|
}(e) || e && "object" == _typeof(e) && "number" == typeof e.nodeType && "function" == typeof e.insertBefore) throw new DOMException("The object cannot be cloned.", "DataCloneError");
|
|
@@ -13900,10 +13948,11 @@
|
|
|
13900
13948
|
setNonIDBGlobals();
|
|
13901
13949
|
}
|
|
13902
13950
|
}
|
|
13903
|
-
/*
|
|
13951
|
+
/* c8 ignore start -- TS guard */
|
|
13904
13952
|
if (!IDB.shimIndexedDB) {
|
|
13905
13953
|
return;
|
|
13906
13954
|
}
|
|
13955
|
+
/* c8 ignore stop -- TS guard */
|
|
13907
13956
|
IDB.shimIndexedDB.__setConnectionQueueOrigin();
|
|
13908
13957
|
}
|
|
13909
13958
|
};
|