indexeddbshim 13.0.0-pre.1 → 13.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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/badges/licenses-badge-dev.svg +1 -1
  3. package/dist/indexeddbshim-Key.js +90 -82
  4. package/dist/indexeddbshim-Key.js.map +1 -1
  5. package/dist/indexeddbshim-Key.min.js +2 -2
  6. package/dist/indexeddbshim-Key.min.js.map +1 -1
  7. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +824 -487
  8. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
  9. package/dist/indexeddbshim-UnicodeIdentifiers.js +947 -774
  10. package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
  11. package/dist/indexeddbshim-UnicodeIdentifiers.min.js +2 -2
  12. package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
  13. package/dist/indexeddbshim-node.cjs +824 -487
  14. package/dist/indexeddbshim-node.cjs.map +1 -1
  15. package/dist/indexeddbshim-noninvasive.js +947 -774
  16. package/dist/indexeddbshim-noninvasive.js.map +1 -1
  17. package/dist/indexeddbshim-noninvasive.min.js +2 -2
  18. package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
  19. package/dist/indexeddbshim.js +947 -774
  20. package/dist/indexeddbshim.js.map +1 -1
  21. package/dist/indexeddbshim.min.js +2 -2
  22. package/dist/indexeddbshim.min.js.map +1 -1
  23. package/index.html +1 -1
  24. package/package.json +35 -34
  25. package/src/DOMException.js +3 -4
  26. package/src/DOMStringList.js +1 -1
  27. package/src/IDBCursor.js +19 -17
  28. package/src/IDBDatabase.js +1 -0
  29. package/src/IDBFactory.js +23 -16
  30. package/src/IDBIndex.js +17 -23
  31. package/src/IDBKeyRange.js +4 -4
  32. package/src/IDBObjectStore.js +29 -26
  33. package/src/IDBTransaction.js +7 -8
  34. package/src/Key.d.ts +1 -0
  35. package/src/Key.js +11 -12
  36. package/src/setGlobalVars.js +3 -1
  37. package/src/util.js +1 -0
@@ -1,4 +1,4 @@
1
- /*! indexeddbshim - v12.0.0-pre.0 - 6/7/2023 */
1
+ /*! indexeddbshim - v13.0.0 - 12/7/2023 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -12,370 +12,370 @@
12
12
  // ID_Continue (includes Other_ID_Continue)
13
13
  var UnicodeIDContinue = "(?:[$0-9A-Z_a-z\\xAA\\xB5\\xB7\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B4\\u08B6-\\u08BD\\u08D4-\\u08E1\\u08E3-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0AF9\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58-\\u0C5A\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C80-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D54-\\u0D57\\u0D5F-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1369-\\u1371\\u1380-\\u138F\\u13A0-\\u13F5\\u13F8-\\u13FD\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19DA\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1C80-\\u1C88\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFB-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2118-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FD5\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA7AE\\uA7B0-\\uA7B7\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C5\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA8FD\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB65\\uAB70-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2F\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]|\\uD800[\\uDC00-\\uDC0B\\uDC0D-\\uDC26\\uDC28-\\uDC3A\\uDC3C\\uDC3D\\uDC3F-\\uDC4D\\uDC50-\\uDC5D\\uDC80-\\uDCFA\\uDD40-\\uDD74\\uDDFD\\uDE80-\\uDE9C\\uDEA0-\\uDED0\\uDEE0\\uDF00-\\uDF1F\\uDF30-\\uDF4A\\uDF50-\\uDF7A\\uDF80-\\uDF9D\\uDFA0-\\uDFC3\\uDFC8-\\uDFCF\\uDFD1-\\uDFD5]|\\uD801[\\uDC00-\\uDC9D\\uDCA0-\\uDCA9\\uDCB0-\\uDCD3\\uDCD8-\\uDCFB\\uDD00-\\uDD27\\uDD30-\\uDD63\\uDE00-\\uDF36\\uDF40-\\uDF55\\uDF60-\\uDF67]|\\uD802[\\uDC00-\\uDC05\\uDC08\\uDC0A-\\uDC35\\uDC37\\uDC38\\uDC3C\\uDC3F-\\uDC55\\uDC60-\\uDC76\\uDC80-\\uDC9E\\uDCE0-\\uDCF2\\uDCF4\\uDCF5\\uDD00-\\uDD15\\uDD20-\\uDD39\\uDD80-\\uDDB7\\uDDBE\\uDDBF\\uDE00-\\uDE03\\uDE05\\uDE06\\uDE0C-\\uDE13\\uDE15-\\uDE17\\uDE19-\\uDE33\\uDE38-\\uDE3A\\uDE3F\\uDE60-\\uDE7C\\uDE80-\\uDE9C\\uDEC0-\\uDEC7\\uDEC9-\\uDEE6\\uDF00-\\uDF35\\uDF40-\\uDF55\\uDF60-\\uDF72\\uDF80-\\uDF91]|\\uD803[\\uDC00-\\uDC48\\uDC80-\\uDCB2\\uDCC0-\\uDCF2]|\\uD804[\\uDC00-\\uDC46\\uDC66-\\uDC6F\\uDC7F-\\uDCBA\\uDCD0-\\uDCE8\\uDCF0-\\uDCF9\\uDD00-\\uDD34\\uDD36-\\uDD3F\\uDD50-\\uDD73\\uDD76\\uDD80-\\uDDC4\\uDDCA-\\uDDCC\\uDDD0-\\uDDDA\\uDDDC\\uDE00-\\uDE11\\uDE13-\\uDE37\\uDE3E\\uDE80-\\uDE86\\uDE88\\uDE8A-\\uDE8D\\uDE8F-\\uDE9D\\uDE9F-\\uDEA8\\uDEB0-\\uDEEA\\uDEF0-\\uDEF9\\uDF00-\\uDF03\\uDF05-\\uDF0C\\uDF0F\\uDF10\\uDF13-\\uDF28\\uDF2A-\\uDF30\\uDF32\\uDF33\\uDF35-\\uDF39\\uDF3C-\\uDF44\\uDF47\\uDF48\\uDF4B-\\uDF4D\\uDF50\\uDF57\\uDF5D-\\uDF63\\uDF66-\\uDF6C\\uDF70-\\uDF74]|\\uD805[\\uDC00-\\uDC4A\\uDC50-\\uDC59\\uDC80-\\uDCC5\\uDCC7\\uDCD0-\\uDCD9\\uDD80-\\uDDB5\\uDDB8-\\uDDC0\\uDDD8-\\uDDDD\\uDE00-\\uDE40\\uDE44\\uDE50-\\uDE59\\uDE80-\\uDEB7\\uDEC0-\\uDEC9\\uDF00-\\uDF19\\uDF1D-\\uDF2B\\uDF30-\\uDF39]|\\uD806[\\uDCA0-\\uDCE9\\uDCFF\\uDEC0-\\uDEF8]|\\uD807[\\uDC00-\\uDC08\\uDC0A-\\uDC36\\uDC38-\\uDC40\\uDC50-\\uDC59\\uDC72-\\uDC8F\\uDC92-\\uDCA7\\uDCA9-\\uDCB6]|\\uD808[\\uDC00-\\uDF99]|\\uD809[\\uDC00-\\uDC6E\\uDC80-\\uDD43]|[\\uD80C\\uD81C-\\uD820\\uD840-\\uD868\\uD86A-\\uD86C\\uD86F-\\uD872][\\uDC00-\\uDFFF]|\\uD80D[\\uDC00-\\uDC2E]|\\uD811[\\uDC00-\\uDE46]|\\uD81A[\\uDC00-\\uDE38\\uDE40-\\uDE5E\\uDE60-\\uDE69\\uDED0-\\uDEED\\uDEF0-\\uDEF4\\uDF00-\\uDF36\\uDF40-\\uDF43\\uDF50-\\uDF59\\uDF63-\\uDF77\\uDF7D-\\uDF8F]|\\uD81B[\\uDF00-\\uDF44\\uDF50-\\uDF7E\\uDF8F-\\uDF9F\\uDFE0]|\\uD821[\\uDC00-\\uDFEC]|\\uD822[\\uDC00-\\uDEF2]|\\uD82C[\\uDC00\\uDC01]|\\uD82F[\\uDC00-\\uDC6A\\uDC70-\\uDC7C\\uDC80-\\uDC88\\uDC90-\\uDC99\\uDC9D\\uDC9E]|\\uD834[\\uDD65-\\uDD69\\uDD6D-\\uDD72\\uDD7B-\\uDD82\\uDD85-\\uDD8B\\uDDAA-\\uDDAD\\uDE42-\\uDE44]|\\uD835[\\uDC00-\\uDC54\\uDC56-\\uDC9C\\uDC9E\\uDC9F\\uDCA2\\uDCA5\\uDCA6\\uDCA9-\\uDCAC\\uDCAE-\\uDCB9\\uDCBB\\uDCBD-\\uDCC3\\uDCC5-\\uDD05\\uDD07-\\uDD0A\\uDD0D-\\uDD14\\uDD16-\\uDD1C\\uDD1E-\\uDD39\\uDD3B-\\uDD3E\\uDD40-\\uDD44\\uDD46\\uDD4A-\\uDD50\\uDD52-\\uDEA5\\uDEA8-\\uDEC0\\uDEC2-\\uDEDA\\uDEDC-\\uDEFA\\uDEFC-\\uDF14\\uDF16-\\uDF34\\uDF36-\\uDF4E\\uDF50-\\uDF6E\\uDF70-\\uDF88\\uDF8A-\\uDFA8\\uDFAA-\\uDFC2\\uDFC4-\\uDFCB\\uDFCE-\\uDFFF]|\\uD836[\\uDE00-\\uDE36\\uDE3B-\\uDE6C\\uDE75\\uDE84\\uDE9B-\\uDE9F\\uDEA1-\\uDEAF]|\\uD838[\\uDC00-\\uDC06\\uDC08-\\uDC18\\uDC1B-\\uDC21\\uDC23\\uDC24\\uDC26-\\uDC2A]|\\uD83A[\\uDC00-\\uDCC4\\uDCD0-\\uDCD6\\uDD00-\\uDD4A\\uDD50-\\uDD59]|\\uD83B[\\uDE00-\\uDE03\\uDE05-\\uDE1F\\uDE21\\uDE22\\uDE24\\uDE27\\uDE29-\\uDE32\\uDE34-\\uDE37\\uDE39\\uDE3B\\uDE42\\uDE47\\uDE49\\uDE4B\\uDE4D-\\uDE4F\\uDE51\\uDE52\\uDE54\\uDE57\\uDE59\\uDE5B\\uDE5D\\uDE5F\\uDE61\\uDE62\\uDE64\\uDE67-\\uDE6A\\uDE6C-\\uDE72\\uDE74-\\uDE77\\uDE79-\\uDE7C\\uDE7E\\uDE80-\\uDE89\\uDE8B-\\uDE9B\\uDEA1-\\uDEA3\\uDEA5-\\uDEA9\\uDEAB-\\uDEBB]|\\uD869[\\uDC00-\\uDED6\\uDF00-\\uDFFF]|\\uD86D[\\uDC00-\\uDF34\\uDF40-\\uDFFF]|\\uD86E[\\uDC00-\\uDC1D\\uDC20-\\uDFFF]|\\uD873[\\uDC00-\\uDEA1]|\\uD87E[\\uDC00-\\uDE1D]|\\uDB40[\\uDD00-\\uDDEF])";
14
14
 
15
- function _defineAccessor(type, obj, key, fn) {
16
- var desc = {
15
+ function _defineAccessor(e, r, n, t) {
16
+ var c = {
17
17
  configurable: !0,
18
18
  enumerable: !0
19
19
  };
20
- return desc[type] = fn, Object.defineProperty(obj, key, desc);
21
- }
22
- function _iterableToArrayLimit(arr, i) {
23
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
24
- if (null != _i) {
25
- var _s,
26
- _e,
27
- _x,
28
- _r,
29
- _arr = [],
30
- _n = !0,
31
- _d = !1;
20
+ return c[e] = t, Object.defineProperty(r, n, c);
21
+ }
22
+ function _iterableToArrayLimit(r, l) {
23
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
24
+ if (null != t) {
25
+ var e,
26
+ n,
27
+ i,
28
+ u,
29
+ a = [],
30
+ f = !0,
31
+ o = !1;
32
32
  try {
33
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
34
- if (Object(_i) !== _i) return;
35
- _n = !1;
36
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
37
- } catch (err) {
38
- _d = !0, _e = err;
33
+ if (i = (t = t.call(r)).next, 0 === l) {
34
+ if (Object(t) !== t) return;
35
+ f = !1;
36
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
37
+ } catch (r) {
38
+ o = !0, n = r;
39
39
  } finally {
40
40
  try {
41
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
41
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
42
42
  } finally {
43
- if (_d) throw _e;
43
+ if (o) throw n;
44
44
  }
45
45
  }
46
- return _arr;
46
+ return a;
47
47
  }
48
48
  }
49
- function ownKeys$1(object, enumerableOnly) {
50
- var keys = Object.keys(object);
49
+ function ownKeys$1(e, r) {
50
+ var t = Object.keys(e);
51
51
  if (Object.getOwnPropertySymbols) {
52
- var symbols = Object.getOwnPropertySymbols(object);
53
- enumerableOnly && (symbols = symbols.filter(function (sym) {
54
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
55
- })), keys.push.apply(keys, symbols);
56
- }
57
- return keys;
58
- }
59
- function _objectSpread2$1(target) {
60
- for (var i = 1; i < arguments.length; i++) {
61
- var source = null != arguments[i] ? arguments[i] : {};
62
- i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) {
63
- _defineProperty$1(target, key, source[key]);
64
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) {
65
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
52
+ var o = Object.getOwnPropertySymbols(e);
53
+ r && (o = o.filter(function (r) {
54
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
55
+ })), t.push.apply(t, o);
56
+ }
57
+ return t;
58
+ }
59
+ function _objectSpread2$1(e) {
60
+ for (var r = 1; r < arguments.length; r++) {
61
+ var t = null != arguments[r] ? arguments[r] : {};
62
+ r % 2 ? ownKeys$1(Object(t), !0).forEach(function (r) {
63
+ _defineProperty$1(e, r, t[r]);
64
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) {
65
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
66
66
  });
67
67
  }
68
- return target;
68
+ return e;
69
69
  }
70
70
  function _regeneratorRuntime() {
71
71
  _regeneratorRuntime = function () {
72
- return exports;
72
+ return e;
73
73
  };
74
- var exports = {},
75
- Op = Object.prototype,
76
- hasOwn = Op.hasOwnProperty,
77
- defineProperty = Object.defineProperty || function (obj, key, desc) {
78
- obj[key] = desc.value;
74
+ var t,
75
+ e = {},
76
+ r = Object.prototype,
77
+ n = r.hasOwnProperty,
78
+ o = Object.defineProperty || function (t, e, r) {
79
+ t[e] = r.value;
79
80
  },
80
- $Symbol = "function" == typeof Symbol ? Symbol : {},
81
- iteratorSymbol = $Symbol.iterator || "@@iterator",
82
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
83
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
84
- function define(obj, key, value) {
85
- return Object.defineProperty(obj, key, {
86
- value: value,
81
+ i = "function" == typeof Symbol ? Symbol : {},
82
+ a = i.iterator || "@@iterator",
83
+ c = i.asyncIterator || "@@asyncIterator",
84
+ u = i.toStringTag || "@@toStringTag";
85
+ function define(t, e, r) {
86
+ return Object.defineProperty(t, e, {
87
+ value: r,
87
88
  enumerable: !0,
88
89
  configurable: !0,
89
90
  writable: !0
90
- }), obj[key];
91
+ }), t[e];
91
92
  }
92
93
  try {
93
94
  define({}, "");
94
- } catch (err) {
95
- define = function (obj, key, value) {
96
- return obj[key] = value;
95
+ } catch (t) {
96
+ define = function (t, e, r) {
97
+ return t[e] = r;
97
98
  };
98
99
  }
99
- function wrap(innerFn, outerFn, self, tryLocsList) {
100
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
101
- generator = Object.create(protoGenerator.prototype),
102
- context = new Context(tryLocsList || []);
103
- return defineProperty(generator, "_invoke", {
104
- value: makeInvokeMethod(innerFn, self, context)
105
- }), generator;
100
+ function wrap(t, e, r, n) {
101
+ var i = e && e.prototype instanceof Generator ? e : Generator,
102
+ a = Object.create(i.prototype),
103
+ c = new Context(n || []);
104
+ return o(a, "_invoke", {
105
+ value: makeInvokeMethod(t, r, c)
106
+ }), a;
106
107
  }
107
- function tryCatch(fn, obj, arg) {
108
+ function tryCatch(t, e, r) {
108
109
  try {
109
110
  return {
110
111
  type: "normal",
111
- arg: fn.call(obj, arg)
112
+ arg: t.call(e, r)
112
113
  };
113
- } catch (err) {
114
+ } catch (t) {
114
115
  return {
115
116
  type: "throw",
116
- arg: err
117
+ arg: t
117
118
  };
118
119
  }
119
120
  }
120
- exports.wrap = wrap;
121
- var ContinueSentinel = {};
121
+ e.wrap = wrap;
122
+ var h = "suspendedStart",
123
+ l = "suspendedYield",
124
+ f = "executing",
125
+ s = "completed",
126
+ y = {};
122
127
  function Generator() {}
123
128
  function GeneratorFunction() {}
124
129
  function GeneratorFunctionPrototype() {}
125
- var IteratorPrototype = {};
126
- define(IteratorPrototype, iteratorSymbol, function () {
130
+ var p = {};
131
+ define(p, a, function () {
127
132
  return this;
128
133
  });
129
- var getProto = Object.getPrototypeOf,
130
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
131
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
132
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
133
- function defineIteratorMethods(prototype) {
134
- ["next", "throw", "return"].forEach(function (method) {
135
- define(prototype, method, function (arg) {
136
- return this._invoke(method, arg);
134
+ var d = Object.getPrototypeOf,
135
+ v = d && d(d(values([])));
136
+ v && v !== r && n.call(v, a) && (p = v);
137
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
138
+ function defineIteratorMethods(t) {
139
+ ["next", "throw", "return"].forEach(function (e) {
140
+ define(t, e, function (t) {
141
+ return this._invoke(e, t);
137
142
  });
138
143
  });
139
144
  }
140
- function AsyncIterator(generator, PromiseImpl) {
141
- function invoke(method, arg, resolve, reject) {
142
- var record = tryCatch(generator[method], generator, arg);
143
- if ("throw" !== record.type) {
144
- var result = record.arg,
145
- value = result.value;
146
- return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
147
- invoke("next", value, resolve, reject);
148
- }, function (err) {
149
- invoke("throw", err, resolve, reject);
150
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
151
- result.value = unwrapped, resolve(result);
152
- }, function (error) {
153
- return invoke("throw", error, resolve, reject);
145
+ function AsyncIterator(t, e) {
146
+ function invoke(r, o, i, a) {
147
+ var c = tryCatch(t[r], t, o);
148
+ if ("throw" !== c.type) {
149
+ var u = c.arg,
150
+ h = u.value;
151
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
152
+ invoke("next", t, i, a);
153
+ }, function (t) {
154
+ invoke("throw", t, i, a);
155
+ }) : e.resolve(h).then(function (t) {
156
+ u.value = t, i(u);
157
+ }, function (t) {
158
+ return invoke("throw", t, i, a);
154
159
  });
155
160
  }
156
- reject(record.arg);
161
+ a(c.arg);
157
162
  }
158
- var previousPromise;
159
- defineProperty(this, "_invoke", {
160
- value: function (method, arg) {
163
+ var r;
164
+ o(this, "_invoke", {
165
+ value: function (t, n) {
161
166
  function callInvokeWithMethodAndArg() {
162
- return new PromiseImpl(function (resolve, reject) {
163
- invoke(method, arg, resolve, reject);
167
+ return new e(function (e, r) {
168
+ invoke(t, n, e, r);
164
169
  });
165
170
  }
166
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
171
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
167
172
  }
168
173
  });
169
174
  }
170
- function makeInvokeMethod(innerFn, self, context) {
171
- var state = "suspendedStart";
172
- return function (method, arg) {
173
- if ("executing" === state) throw new Error("Generator is already running");
174
- if ("completed" === state) {
175
- if ("throw" === method) throw arg;
176
- return doneResult();
177
- }
178
- for (context.method = method, context.arg = arg;;) {
179
- var delegate = context.delegate;
180
- if (delegate) {
181
- var delegateResult = maybeInvokeDelegate(delegate, context);
182
- if (delegateResult) {
183
- if (delegateResult === ContinueSentinel) continue;
184
- return delegateResult;
175
+ function makeInvokeMethod(e, r, n) {
176
+ var o = h;
177
+ return function (i, a) {
178
+ if (o === f) throw new Error("Generator is already running");
179
+ if (o === s) {
180
+ if ("throw" === i) throw a;
181
+ return {
182
+ value: t,
183
+ done: !0
184
+ };
185
+ }
186
+ for (n.method = i, n.arg = a;;) {
187
+ var c = n.delegate;
188
+ if (c) {
189
+ var u = maybeInvokeDelegate(c, n);
190
+ if (u) {
191
+ if (u === y) continue;
192
+ return u;
185
193
  }
186
194
  }
187
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
188
- if ("suspendedStart" === state) throw state = "completed", context.arg;
189
- context.dispatchException(context.arg);
190
- } else "return" === context.method && context.abrupt("return", context.arg);
191
- state = "executing";
192
- var record = tryCatch(innerFn, self, context);
193
- if ("normal" === record.type) {
194
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
195
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
196
+ if (o === h) throw o = s, n.arg;
197
+ n.dispatchException(n.arg);
198
+ } else "return" === n.method && n.abrupt("return", n.arg);
199
+ o = f;
200
+ var p = tryCatch(e, r, n);
201
+ if ("normal" === p.type) {
202
+ if (o = n.done ? s : l, p.arg === y) continue;
195
203
  return {
196
- value: record.arg,
197
- done: context.done
204
+ value: p.arg,
205
+ done: n.done
198
206
  };
199
207
  }
200
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
208
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
201
209
  }
202
210
  };
203
211
  }
204
- function maybeInvokeDelegate(delegate, context) {
205
- var methodName = context.method,
206
- method = delegate.iterator[methodName];
207
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
208
- var record = tryCatch(method, delegate.iterator, context.arg);
209
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
210
- var info = record.arg;
211
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
212
- }
213
- function pushTryEntry(locs) {
214
- var entry = {
215
- tryLoc: locs[0]
212
+ function maybeInvokeDelegate(e, r) {
213
+ var n = r.method,
214
+ o = e.iterator[n];
215
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
216
+ var i = tryCatch(o, e.iterator, r.arg);
217
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
218
+ var a = i.arg;
219
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
220
+ }
221
+ function pushTryEntry(t) {
222
+ var e = {
223
+ tryLoc: t[0]
216
224
  };
217
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
225
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
218
226
  }
219
- function resetTryEntry(entry) {
220
- var record = entry.completion || {};
221
- record.type = "normal", delete record.arg, entry.completion = record;
227
+ function resetTryEntry(t) {
228
+ var e = t.completion || {};
229
+ e.type = "normal", delete e.arg, t.completion = e;
222
230
  }
223
- function Context(tryLocsList) {
231
+ function Context(t) {
224
232
  this.tryEntries = [{
225
233
  tryLoc: "root"
226
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
227
- }
228
- function values(iterable) {
229
- if (iterable) {
230
- var iteratorMethod = iterable[iteratorSymbol];
231
- if (iteratorMethod) return iteratorMethod.call(iterable);
232
- if ("function" == typeof iterable.next) return iterable;
233
- if (!isNaN(iterable.length)) {
234
- var i = -1,
235
- next = function next() {
236
- for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
237
- return next.value = undefined, next.done = !0, next;
234
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
235
+ }
236
+ function values(e) {
237
+ if (e || "" === e) {
238
+ var r = e[a];
239
+ if (r) return r.call(e);
240
+ if ("function" == typeof e.next) return e;
241
+ if (!isNaN(e.length)) {
242
+ var o = -1,
243
+ i = function next() {
244
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
245
+ return next.value = t, next.done = !0, next;
238
246
  };
239
- return next.next = next;
247
+ return i.next = i;
240
248
  }
241
249
  }
242
- return {
243
- next: doneResult
244
- };
245
- }
246
- function doneResult() {
247
- return {
248
- value: undefined,
249
- done: !0
250
- };
250
+ throw new TypeError(typeof e + " is not iterable");
251
251
  }
252
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
252
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
253
253
  value: GeneratorFunctionPrototype,
254
254
  configurable: !0
255
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
255
+ }), o(GeneratorFunctionPrototype, "constructor", {
256
256
  value: GeneratorFunction,
257
257
  configurable: !0
258
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
259
- var ctor = "function" == typeof genFun && genFun.constructor;
260
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
261
- }, exports.mark = function (genFun) {
262
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
263
- }, exports.awrap = function (arg) {
258
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
259
+ var e = "function" == typeof t && t.constructor;
260
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
261
+ }, e.mark = function (t) {
262
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
263
+ }, e.awrap = function (t) {
264
264
  return {
265
- __await: arg
265
+ __await: t
266
266
  };
267
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
267
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
268
268
  return this;
269
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
270
- void 0 === PromiseImpl && (PromiseImpl = Promise);
271
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
272
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
273
- return result.done ? result.value : iter.next();
269
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
270
+ void 0 === i && (i = Promise);
271
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
272
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
273
+ return t.done ? t.value : a.next();
274
274
  });
275
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
275
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
276
276
  return this;
277
- }), define(Gp, "toString", function () {
277
+ }), define(g, "toString", function () {
278
278
  return "[object Generator]";
279
- }), exports.keys = function (val) {
280
- var object = Object(val),
281
- keys = [];
282
- for (var key in object) keys.push(key);
283
- return keys.reverse(), function next() {
284
- for (; keys.length;) {
285
- var key = keys.pop();
286
- if (key in object) return next.value = key, next.done = !1, next;
279
+ }), e.keys = function (t) {
280
+ var e = Object(t),
281
+ r = [];
282
+ for (var n in e) r.push(n);
283
+ return r.reverse(), function next() {
284
+ for (; r.length;) {
285
+ var t = r.pop();
286
+ if (t in e) return next.value = t, next.done = !1, next;
287
287
  }
288
288
  return next.done = !0, next;
289
289
  };
290
- }, exports.values = values, Context.prototype = {
290
+ }, e.values = values, Context.prototype = {
291
291
  constructor: Context,
292
- reset: function (skipTempReset) {
293
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
292
+ reset: function (e) {
293
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
294
294
  },
295
295
  stop: function () {
296
296
  this.done = !0;
297
- var rootRecord = this.tryEntries[0].completion;
298
- if ("throw" === rootRecord.type) throw rootRecord.arg;
297
+ var t = this.tryEntries[0].completion;
298
+ if ("throw" === t.type) throw t.arg;
299
299
  return this.rval;
300
300
  },
301
- dispatchException: function (exception) {
302
- if (this.done) throw exception;
303
- var context = this;
304
- function handle(loc, caught) {
305
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
306
- }
307
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
308
- var entry = this.tryEntries[i],
309
- record = entry.completion;
310
- if ("root" === entry.tryLoc) return handle("end");
311
- if (entry.tryLoc <= this.prev) {
312
- var hasCatch = hasOwn.call(entry, "catchLoc"),
313
- hasFinally = hasOwn.call(entry, "finallyLoc");
314
- if (hasCatch && hasFinally) {
315
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
316
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
317
- } else if (hasCatch) {
318
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
301
+ dispatchException: function (e) {
302
+ if (this.done) throw e;
303
+ var r = this;
304
+ function handle(n, o) {
305
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
306
+ }
307
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
308
+ var i = this.tryEntries[o],
309
+ a = i.completion;
310
+ if ("root" === i.tryLoc) return handle("end");
311
+ if (i.tryLoc <= this.prev) {
312
+ var c = n.call(i, "catchLoc"),
313
+ u = n.call(i, "finallyLoc");
314
+ if (c && u) {
315
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
316
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
317
+ } else if (c) {
318
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
319
319
  } else {
320
- if (!hasFinally) throw new Error("try statement without catch or finally");
321
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
320
+ if (!u) throw new Error("try statement without catch or finally");
321
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
322
322
  }
323
323
  }
324
324
  }
325
325
  },
326
- abrupt: function (type, arg) {
327
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
328
- var entry = this.tryEntries[i];
329
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
330
- var finallyEntry = entry;
326
+ abrupt: function (t, e) {
327
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
328
+ var o = this.tryEntries[r];
329
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
330
+ var i = o;
331
331
  break;
332
332
  }
333
333
  }
334
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
335
- var record = finallyEntry ? finallyEntry.completion : {};
336
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
334
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
335
+ var a = i ? i.completion : {};
336
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
337
337
  },
338
- complete: function (record, afterLoc) {
339
- if ("throw" === record.type) throw record.arg;
340
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
338
+ complete: function (t, e) {
339
+ if ("throw" === t.type) throw t.arg;
340
+ 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;
341
341
  },
342
- finish: function (finallyLoc) {
343
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
344
- var entry = this.tryEntries[i];
345
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
342
+ finish: function (t) {
343
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
344
+ var r = this.tryEntries[e];
345
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
346
346
  }
347
347
  },
348
- catch: function (tryLoc) {
349
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
350
- var entry = this.tryEntries[i];
351
- if (entry.tryLoc === tryLoc) {
352
- var record = entry.completion;
353
- if ("throw" === record.type) {
354
- var thrown = record.arg;
355
- resetTryEntry(entry);
348
+ catch: function (t) {
349
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
350
+ var r = this.tryEntries[e];
351
+ if (r.tryLoc === t) {
352
+ var n = r.completion;
353
+ if ("throw" === n.type) {
354
+ var o = n.arg;
355
+ resetTryEntry(r);
356
356
  }
357
- return thrown;
357
+ return o;
358
358
  }
359
359
  }
360
360
  throw new Error("illegal catch attempt");
361
361
  },
362
- delegateYield: function (iterable, resultName, nextLoc) {
362
+ delegateYield: function (e, r, n) {
363
363
  return this.delegate = {
364
- iterator: values(iterable),
365
- resultName: resultName,
366
- nextLoc: nextLoc
367
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
364
+ iterator: values(e),
365
+ resultName: r,
366
+ nextLoc: n
367
+ }, "next" === this.method && (this.arg = t), y;
368
368
  }
369
- }, exports;
369
+ }, e;
370
370
  }
371
- function _typeof$2(obj) {
371
+ function _typeof$2(o) {
372
372
  "@babel/helpers - typeof";
373
373
 
374
- return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
375
- return typeof obj;
376
- } : function (obj) {
377
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
378
- }, _typeof$2(obj);
374
+ return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
375
+ return typeof o;
376
+ } : function (o) {
377
+ return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
378
+ }, _typeof$2(o);
379
379
  }
380
380
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
381
381
  try {
@@ -720,10 +720,9 @@
720
720
  pr;
721
721
  Object.defineProperty(_this, prop, {
722
722
  get: function get() {
723
- return (/* prop in _evCfg && */_evCfg[prop] !== undefined ? _evCfg[prop] : prop in _ev ? _ev[prop] :
724
- // Defaults
725
- prop === 'eventPhase' ? 0 : prop === 'defaultPrevented' ? false : null
726
- );
723
+ return /* prop in _evCfg && */_evCfg[prop] !== undefined ? _evCfg[prop] : prop in _ev ? _ev[prop] :
724
+ // Defaults
725
+ prop === 'eventPhase' ? 0 : prop === 'defaultPrevented' ? false : null;
727
726
  }
728
727
  });
729
728
  });
@@ -1218,7 +1217,6 @@
1218
1217
  }
1219
1218
  });
1220
1219
  }
1221
-
1222
1220
  var _eventCopy = eventCopy,
1223
1221
  type = _eventCopy.type;
1224
1222
 
@@ -1972,12 +1970,11 @@
1972
1970
  */
1973
1971
  function defineOuterInterface(obj, props) {
1974
1972
  props.forEach(function (prop) {
1975
- var _o;
1976
- var o = (_o = {}, _defineAccessor("get", _o, prop, function () {
1973
+ var o = _defineAccessor("set", _defineAccessor("get", {}, prop, function () {
1977
1974
  throw new TypeError('Illegal invocation');
1978
- }), _defineAccessor("set", _o, prop, function (val) {
1975
+ }), prop, function (val) {
1979
1976
  throw new TypeError('Illegal invocation');
1980
- }), _o);
1977
+ });
1981
1978
  var desc = /** @type {PropertyDescriptor} */
1982
1979
  Object.getOwnPropertyDescriptor(o, prop);
1983
1980
  Object.defineProperty(obj, prop, desc);
@@ -2012,12 +2009,11 @@
2012
2009
  function defineListenerProperties(obj, listeners) {
2013
2010
  listeners = typeof listeners === 'string' ? [listeners] : listeners;
2014
2011
  listeners.forEach(function (listener) {
2015
- var _o3;
2016
- var o = (_o3 = {}, _defineAccessor("get", _o3, listener, function () {
2012
+ var o = _defineAccessor("set", _defineAccessor("get", {}, listener, function () {
2017
2013
  return obj['__' + listener];
2018
- }), _defineAccessor("set", _o3, listener, function (val) {
2014
+ }), listener, function (val) {
2019
2015
  obj['__' + listener] = val;
2020
- }), _o3);
2016
+ });
2021
2017
  var desc = /** @type {PropertyDescriptor} */
2022
2018
  Object.getOwnPropertyDescriptor(o, listener);
2023
2019
  // desc.enumerable = true; // Default
@@ -2400,7 +2396,7 @@
2400
2396
  function DOMException(message, name) {
2401
2397
  // const err = Error.prototype.constructor.call(this, message); // Any use to this? Won't set this.message
2402
2398
  this[Symbol.toStringTag] = 'DOMException';
2403
- this._code = name in codes ? codes[/** @type {Code} */name] : legacyCodes[/** @type {LegacyCode} */name] || 0;
2399
+ this._code = name in codes ? codes[( /** @type {Code} */name)] : legacyCodes[( /** @type {LegacyCode} */name)] || 0;
2404
2400
  this._name = name || 'Error';
2405
2401
  // We avoid `String()` in this next line as it converts Symbols
2406
2402
  this._message = message === undefined ? '' : '' + message; // eslint-disable-line no-implicit-coercion
@@ -2537,10 +2533,12 @@
2537
2533
  */
2538
2534
  function logError(name, message, error) {
2539
2535
  if (CFG.DEBUG) {
2540
- var msg = error && _typeof$2(error) === 'object' && error.message ? error.message : /** @type {string} */error;
2536
+ var msg = error && _typeof$2(error) === 'object' && error.message ? error.message : ( /** @type {string} */error);
2541
2537
  var method = typeof console.error === 'function' ? 'error' : 'log';
2542
2538
  console[method](name + ': ' + message + '. ' + (msg || ''));
2543
- console.trace && console.trace();
2539
+ if (console.trace) {
2540
+ console.trace();
2541
+ }
2544
2542
  }
2545
2543
  }
2546
2544
 
@@ -2648,7 +2646,7 @@
2648
2646
  }
2649
2647
  } catch (e) {}
2650
2648
  var createDOMException = useNativeDOMException
2651
- // eslint-disable-next-line operator-linebreak -- Need JSDoc
2649
+ // eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
2652
2650
  ?
2653
2651
  /**
2654
2652
  * @param {string} name
@@ -2660,7 +2658,7 @@
2660
2658
  logError(name, message, error);
2661
2659
  return createNativeDOMException(name, message);
2662
2660
  }
2663
- // eslint-disable-next-line operator-linebreak -- Need JSDoc
2661
+ // eslint-disable-next-line @stylistic/operator-linebreak -- Need JSDoc
2664
2662
  :
2665
2663
  /**
2666
2664
  * @param {string} name
@@ -2720,7 +2718,6 @@
2720
2718
  this.__setOptions({
2721
2719
  legacyOutputDidListenersThrowFlag: true // Event hook for IndexedB
2722
2720
  });
2723
-
2724
2721
  doneFlagGetters.forEach(function (prop) {
2725
2722
  Object.defineProperty(_this, '__' + prop, {
2726
2723
  enumerable: false,
@@ -3249,17 +3246,15 @@
3249
3246
  var types = {
3250
3247
  invalid: {
3251
3248
  /**
3252
- * @param {AnyValue} _key
3253
3249
  * @returns {string}
3254
3250
  */
3255
- encode: function encode(_key) {
3251
+ encode: function encode() {
3256
3252
  return keyTypeToEncodedChar.invalid + '-';
3257
3253
  },
3258
3254
  /**
3259
- * @param {string} _key
3260
3255
  * @returns {undefined}
3261
3256
  */
3262
- decode: function decode(_key) {
3257
+ decode: function decode() {
3263
3258
  return undefined;
3264
3259
  }
3265
3260
  },
@@ -3597,11 +3592,17 @@
3597
3592
  * @returns {KeyType|"invalid"}
3598
3593
  */
3599
3594
  function getKeyType(key) {
3600
- if (Array.isArray(key)) return 'array';
3601
- if (isDate(key)) return 'date';
3602
- if (isBinary(key)) return 'binary';
3595
+ if (Array.isArray(key)) {
3596
+ return 'array';
3597
+ }
3598
+ if (isDate(key)) {
3599
+ return 'date';
3600
+ }
3601
+ if (isBinary(key)) {
3602
+ return 'binary';
3603
+ }
3603
3604
  var keyType = _typeof$2(key);
3604
- return ['string', 'number'].includes(keyType) ? /** @type {"string"|"number"} */keyType : 'invalid';
3605
+ return ['string', 'number'].includes(keyType) ? ( /** @type {"string"|"number"} */keyType) : 'invalid';
3605
3606
  }
3606
3607
 
3607
3608
  /**
@@ -3698,13 +3699,11 @@
3698
3699
  value: 0
3699
3700
  };
3700
3701
  }
3701
- return (/** @type {{type: KeyType; value: Value}} */ret
3702
- );
3702
+ return /** @type {{type: KeyType; value: Value}} */ret;
3703
3703
  }
3704
3704
  case 'string':
3705
3705
  {
3706
- return (/** @type {{type: KeyType; value: Value}} */ret
3707
- );
3706
+ return /** @type {{type: KeyType; value: Value}} */ret;
3708
3707
  }
3709
3708
  case 'binary':
3710
3709
  {
@@ -3727,48 +3726,49 @@
3727
3726
  /** @type {(KeyValueObject|Value)[]} */
3728
3727
  var keys = [];
3729
3728
  var _loop = function _loop() {
3730
- // We cannot iterate here with array extras as we must ensure sparse arrays are invalidated
3731
- if (!multiEntry && !Object.hasOwn(arr, i)) {
3732
- return {
3733
- v: {
3734
- type: type,
3735
- invalid: true,
3736
- message: 'Does not have own index property'
3737
- }
3738
- };
3739
- }
3740
- try {
3741
- var entry = arr[i];
3742
- var key = convertValueToKeyValueDecoded(entry, seen, false, fullKeys); // Though steps do not list rethrowing, the next is returnifabrupt when not multiEntry
3743
- if (key.invalid) {
3744
- if (multiEntry) {
3745
- return "continue";
3746
- }
3729
+ // We cannot iterate here with array extras as we must ensure sparse arrays are invalidated
3730
+ if (!multiEntry && !Object.hasOwn(arr, i)) {
3747
3731
  return {
3748
3732
  v: {
3749
3733
  type: type,
3750
3734
  invalid: true,
3751
- message: 'Bad array entry value-to-key conversion'
3735
+ message: 'Does not have own index property'
3752
3736
  }
3753
3737
  };
3754
3738
  }
3755
- if (!multiEntry || !fullKeys && keys.every(function (k) {
3756
- return cmp(k, key.value) !== 0;
3757
- }) || fullKeys && keys.every(function (k) {
3758
- return cmp(k, key) !== 0;
3759
- })) {
3760
- keys.push(fullKeys ? key : key.value);
3761
- }
3762
- } catch (err) {
3763
- if (!multiEntry) {
3764
- throw err;
3739
+ try {
3740
+ var entry = arr[i];
3741
+ var key = convertValueToKeyValueDecoded(entry, seen, false, fullKeys); // Though steps do not list rethrowing, the next is returnifabrupt when not multiEntry
3742
+ if (key.invalid) {
3743
+ if (multiEntry) {
3744
+ return 0; // continue
3745
+ }
3746
+ return {
3747
+ v: {
3748
+ type: type,
3749
+ invalid: true,
3750
+ message: 'Bad array entry value-to-key conversion'
3751
+ }
3752
+ };
3753
+ }
3754
+ if (!multiEntry || !fullKeys && keys.every(function (k) {
3755
+ return cmp(k, key.value) !== 0;
3756
+ }) || fullKeys && keys.every(function (k) {
3757
+ return cmp(k, key) !== 0;
3758
+ })) {
3759
+ keys.push(fullKeys ? key : key.value);
3760
+ }
3761
+ } catch (err) {
3762
+ if (!multiEntry) {
3763
+ throw err;
3764
+ }
3765
3765
  }
3766
- }
3767
- };
3766
+ },
3767
+ _ret;
3768
3768
  for (var i = 0; i < len; i++) {
3769
- var _ret = _loop();
3770
- if (_ret === "continue") continue;
3771
- if (_typeof$2(_ret) === "object") return _ret.v;
3769
+ _ret = _loop();
3770
+ if (_ret === 0) continue;
3771
+ if (_ret) return _ret.v;
3772
3772
  }
3773
3773
  return {
3774
3774
  type: type,
@@ -3930,7 +3930,7 @@
3930
3930
  };
3931
3931
  }
3932
3932
  var identifiers = keyPath.split('.');
3933
- return identifiers.some(function (idntfr, i) {
3933
+ return identifiers.some(function (idntfr) {
3934
3934
  if (idntfr === 'length' && (typeof value === 'string' || Array.isArray(value))) {
3935
3935
  value = value.length;
3936
3936
  } else if (isBlob(value)) {
@@ -3981,7 +3981,7 @@
3981
3981
  }
3982
3982
  value = value[identifier];
3983
3983
  });
3984
- value[/** @type {string} */last] = key; // key is already a `keyValue` in our processing so no need to convert
3984
+ value[( /** @type {string} */last)] = key; // key is already a `keyValue` in our processing so no need to convert
3985
3985
  }
3986
3986
 
3987
3987
  /**
@@ -4153,6 +4153,7 @@
4153
4153
  return null;
4154
4154
  }
4155
4155
  // array, date, number, string, binary (should already have detected "invalid")
4156
+ // @ts-expect-error Argument may be ignored
4156
4157
  return types[getKeyType(key)].encode(key, inArray);
4157
4158
  }
4158
4159
 
@@ -4214,7 +4215,7 @@
4214
4215
  }
4215
4216
  }, function (tx, error) {
4216
4217
  sqlFailCb(createDOMException('DataError', 'Could not get the auto increment value for key', error));
4217
- return true;
4218
+ return false;
4218
4219
  });
4219
4220
  }
4220
4221
 
@@ -4230,12 +4231,14 @@
4230
4231
  function assignCurrentNumber(tx, store, num, successCb, failCb) {
4231
4232
  var sql = 'UPDATE __sys__ SET "currNum" = ? WHERE "name" = ?';
4232
4233
  var sqlValues = [num, escapeSQLiteStatement(store.__currentName)];
4233
- CFG.DEBUG && console.log(sql, sqlValues);
4234
- tx.executeSql(sql, sqlValues, function (tx, data) {
4234
+ if (CFG.DEBUG) {
4235
+ console.log(sql, sqlValues);
4236
+ }
4237
+ tx.executeSql(sql, sqlValues, function () {
4235
4238
  successCb(num);
4236
4239
  }, function (tx, err) {
4237
4240
  failCb(createDOMException('UnknownError', 'Could not set the auto increment value for key', err));
4238
- return true;
4241
+ return false;
4239
4242
  });
4240
4243
  }
4241
4244
 
@@ -4402,7 +4405,7 @@
4402
4405
  convertValueToKeyRethrowingAndIfInvalid(upper);
4403
4406
  }
4404
4407
  if (lower !== undefined && upper !== undefined && lower !== upper) {
4405
- if ( /** @type {string} */_encode(lower) > /** @type {string} */_encode(upper)) {
4408
+ if ( /** @type {string} */_encode(lower) > ( /** @type {string} */_encode(upper))) {
4406
4409
  throw createDOMException('DataError', '`lower` must not be greater than `upper` argument in `bound()` call.');
4407
4410
  }
4408
4411
  }
@@ -4449,7 +4452,7 @@
4449
4452
  * @param {import('./Key.js').Value} value
4450
4453
  * @returns {globalThis.IDBKeyRange}
4451
4454
  */
4452
- IDBKeyRange.lowerBound = function (value /*, open */) {
4455
+ IDBKeyRange.lowerBound = function (value /* , open */) {
4453
4456
  if (!arguments.length) {
4454
4457
  throw new TypeError('IDBKeyRange.lowerBound requires a value argument');
4455
4458
  }
@@ -4461,7 +4464,7 @@
4461
4464
  * @param {import('./Key.js').Value} value
4462
4465
  * @returns {globalThis.IDBKeyRange}
4463
4466
  */
4464
- IDBKeyRange.upperBound = function (value /*, open */) {
4467
+ IDBKeyRange.upperBound = function (value /* , open */) {
4465
4468
  if (!arguments.length) {
4466
4469
  throw new TypeError('IDBKeyRange.upperBound requires a value argument');
4467
4470
  }
@@ -4527,7 +4530,9 @@
4527
4530
  */
4528
4531
  function setSQLForKeyRange(range, quotedKeyColumnName, sql, sqlValues, addAnd, checkCached) {
4529
4532
  if (range && (range.lower !== undefined || range.upper !== undefined)) {
4530
- if (addAnd) sql.push('AND');
4533
+ if (addAnd) {
4534
+ sql.push('AND');
4535
+ }
4531
4536
  var encodedLowerKey, encodedUpperKey;
4532
4537
  var hasLower = range.lower !== undefined;
4533
4538
  var hasUpper = range.upper !== undefined;
@@ -4545,7 +4550,9 @@
4545
4550
  }
4546
4551
  sql.push(quotedKeyColumnName, range.lowerOpen ? '>' : '>=', '?');
4547
4552
  }
4548
- hasLower && hasUpper && sql.push('AND');
4553
+ if (hasLower && hasUpper) {
4554
+ sql.push('AND');
4555
+ }
4549
4556
  if (hasUpper) {
4550
4557
  sql.push(quotedKeyColumnName, range.upperOpen ? '<' : '<=', '?');
4551
4558
  sqlValues.push(escapeSQLiteStatement( /** @type {string} */encodedUpperKey));
@@ -4573,12 +4580,10 @@
4573
4580
  }
4574
4581
  return undefined; // Represents unbounded
4575
4582
  }
4576
-
4577
4583
  convertValueToKeyRethrowingAndIfInvalid(value);
4578
4584
  return IDBKeyRange.only(value);
4579
4585
  }
4580
4586
 
4581
- var _DOMStringList$protot;
4582
4587
  /**
4583
4588
  * @typedef {number} Integer
4584
4589
  */
@@ -4631,7 +4636,7 @@
4631
4636
  };
4632
4637
 
4633
4638
  // @ts-expect-error It's ok
4634
- DOMStringList.prototype = (_DOMStringList$protot = {
4639
+ DOMStringList.prototype = _defineProperty$1(_defineProperty$1({
4635
4640
  constructor: DOMStringList,
4636
4641
  // Interface.
4637
4642
  /**
@@ -4742,7 +4747,7 @@
4742
4747
  }
4743
4748
  this.sortList();
4744
4749
  }
4745
- }, _defineProperty$1(_DOMStringList$protot, Symbol.toStringTag, 'DOMStringListPrototype'), _defineProperty$1(_DOMStringList$protot, Symbol.iterator, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
4750
+ }, Symbol.toStringTag, 'DOMStringListPrototype'), Symbol.iterator, /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
4746
4751
  var i;
4747
4752
  return _regeneratorRuntime().wrap(function _callee$(_context) {
4748
4753
  while (1) switch (_context.prev = _context.next) {
@@ -4763,7 +4768,7 @@
4763
4768
  return _context.stop();
4764
4769
  }
4765
4770
  }, _callee, this);
4766
- })), _DOMStringList$protot);
4771
+ }));
4767
4772
 
4768
4773
  /**
4769
4774
  * @typedef {any} AnyValue
@@ -4802,8 +4807,7 @@
4802
4807
  this._length = 0;
4803
4808
  };
4804
4809
  DOMStringList.prototype = DOMStringListAlias.prototype;
4805
- return (/** @type {DOMStringListFull} */new DOMStringList()
4806
- );
4810
+ return /** @type {DOMStringListFull} */new DOMStringList();
4807
4811
  }
4808
4812
  });
4809
4813
  if (cleanInterface) {
@@ -4950,7 +4954,6 @@
4950
4954
  me.__setOptions({
4951
4955
  legacyOutputDidListenersThrowFlag: true // Event hook for IndexedB
4952
4956
  });
4953
-
4954
4957
  readonlyProperties$3.forEach(function (readonlyProp) {
4955
4958
  Object.defineProperty(_this, readonlyProp, {
4956
4959
  configurable: true
@@ -4972,6 +4975,7 @@
4972
4975
 
4973
4976
  // @ts-expect-error It's ok
4974
4977
  IDBTransaction.prototype = EventTargetFactory.createInstance({
4978
+ // eslint-disable-next-line n/no-sync -- API
4975
4979
  defaultSync: true,
4976
4980
  // Ensure EventTarget preserves our properties
4977
4981
  extraProperties: ['complete']
@@ -4993,7 +4997,9 @@
4993
4997
  IDBTransaction.prototype.__executeRequests = function () {
4994
4998
  var me = this;
4995
4999
  if (me.__running) {
4996
- CFG.DEBUG && console.log('Looks like the request set is already running', me.mode);
5000
+ if (CFG.DEBUG) {
5001
+ console.log('Looks like the request set is already running', me.mode);
5002
+ }
4997
5003
  return;
4998
5004
  }
4999
5005
  me.__running = true;
@@ -5022,7 +5028,6 @@
5022
5028
  if (req) {
5023
5029
  q.req = req; // Need to do this in case of cursors
5024
5030
  }
5025
-
5026
5031
  if (!q.req) {
5027
5032
  // TS guard
5028
5033
  return;
@@ -5186,7 +5191,9 @@
5186
5191
  */
5187
5192
  function complete() {
5188
5193
  me.__completed = true;
5189
- CFG.DEBUG && console.log('Transaction completed');
5194
+ if (CFG.DEBUG) {
5195
+ console.log('Transaction completed');
5196
+ }
5190
5197
  var evt = createEvent('complete');
5191
5198
  try {
5192
5199
  me.__internal = true;
@@ -5411,11 +5418,15 @@
5411
5418
  */
5412
5419
  function abort(tx, errOrResult) {
5413
5420
  if (!tx) {
5414
- CFG.DEBUG && console.log('Rollback not possible due to missing transaction', me);
5421
+ if (CFG.DEBUG) {
5422
+ console.log('Rollback not possible due to missing transaction', me);
5423
+ }
5415
5424
  } else if (errOrResult && 'code' in errOrResult && typeof errOrResult.code === 'number') {
5416
- CFG.DEBUG && console.log('Rollback erred; feature is probably not supported as per WebSQL', me);
5417
- } else {
5418
- CFG.DEBUG && console.log('Rollback succeeded', me);
5425
+ if (CFG.DEBUG) {
5426
+ console.log('Rollback erred; feature is probably not supported as per WebSQL', me);
5427
+ }
5428
+ } else if (CFG.DEBUG) {
5429
+ console.log('Rollback succeeded', me);
5419
5430
  }
5420
5431
  me.dispatchEvent(createEvent('__preabort'));
5421
5432
  me.__requests.filter(function (q, i, arr) {
@@ -5507,7 +5518,9 @@
5507
5518
  if (!(me instanceof IDBTransaction)) {
5508
5519
  throw new TypeError('Illegal invocation');
5509
5520
  }
5510
- CFG.DEBUG && console.log('The transaction was aborted', me);
5521
+ if (CFG.DEBUG) {
5522
+ console.log('The transaction was aborted', me);
5523
+ }
5511
5524
  IDBTransaction.__assertNotFinished(me);
5512
5525
  me.__abortTransaction(null);
5513
5526
  };
@@ -5653,24 +5666,24 @@
5653
5666
  var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
5654
5667
  if (null != r) {
5655
5668
  var n,
5656
- o,
5657
5669
  a,
5670
+ o,
5658
5671
  i,
5659
5672
  c = [],
5660
5673
  s = !0,
5661
5674
  u = !1;
5662
5675
  try {
5663
- if (a = (r = r.call(e)).next, 0 === t) {
5676
+ if (o = (r = r.call(e)).next, 0 === t) {
5664
5677
  if (Object(r) !== r) return;
5665
5678
  s = !1;
5666
- } else for (; !(s = (n = a.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
5679
+ } else for (; !(s = (n = o.call(r)).done) && (c.push(n.value), c.length !== t); s = !0);
5667
5680
  } catch (e) {
5668
- u = !0, o = e;
5681
+ u = !0, a = e;
5669
5682
  } finally {
5670
5683
  try {
5671
5684
  if (!s && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
5672
5685
  } finally {
5673
- if (u) throw o;
5686
+ if (u) throw a;
5674
5687
  }
5675
5688
  }
5676
5689
  return c;
@@ -5713,12 +5726,12 @@
5713
5726
  }
5714
5727
  }), e.prototype.then = function (t, r) {
5715
5728
  var n = this;
5716
- return new e(function (e, o) {
5729
+ return new e(function (e, a) {
5717
5730
  n.p.then(function (r) {
5718
5731
  e(t ? t(r) : r);
5719
5732
  })["catch"](function (e) {
5720
5733
  return r ? r(e) : Promise.reject(e);
5721
- }).then(e, o);
5734
+ }).then(e, a);
5722
5735
  });
5723
5736
  }, e.prototype["catch"] = function (e) {
5724
5737
  return this.then(function () {}, e);
@@ -5759,10 +5772,10 @@
5759
5772
  }
5760
5773
  function hasConstructorOf(e, n) {
5761
5774
  if (!e || "object" !== _typeof(e)) return !1;
5762
- var o = r(e);
5763
- if (!o) return null === n;
5764
- var a = t(o, "constructor") && o.constructor;
5765
- return "function" != typeof a ? null === n : n === a || null !== n && Function.prototype.toString.call(a) === Function.prototype.toString.call(n) || "function" == typeof n && "string" == typeof a.__typeson__type__ && a.__typeson__type__ === n.__typeson__type__;
5775
+ var a = r(e);
5776
+ if (!a) return null === n;
5777
+ var o = t(a, "constructor") && a.constructor;
5778
+ return "function" != typeof o ? null === n : n === o || null !== n && Function.prototype.toString.call(o) === Function.prototype.toString.call(n) || "function" == typeof n && "string" == typeof o.__typeson__type__ && o.__typeson__type__ === n.__typeson__type__;
5766
5779
  }
5767
5780
  function isPlainObject(e) {
5768
5781
  return !(!e || "Object" !== toStringTag(e)) && (!r(e) || hasConstructorOf(e, Object));
@@ -5776,10 +5789,10 @@
5776
5789
  return null !== e && "object" === _typeof(e);
5777
5790
  }
5778
5791
  function escapeKeyPathComponent(e) {
5779
- return e.replace(/''/g, "''''").replace(/^$/, "''").replace(/~/g, "~0").replace(/\./g, "~1");
5792
+ return e.replaceAll("''", "''''").replace(/^$/, "''").replaceAll("~", "~0").replaceAll(".", "~1");
5780
5793
  }
5781
5794
  function unescapeKeyPathComponent(e) {
5782
- return e.replace(/~1/g, ".").replace(/~0/g, "~").replace(/^''$/, "").replace(/''''/g, "''");
5795
+ return e.replaceAll("~1", ".").replaceAll("~0", "~").replace(/^''$/, "").replaceAll("''''", "''");
5783
5796
  }
5784
5797
  function getByKeyPath(e, t) {
5785
5798
  if ("" === t) return e;
@@ -5804,8 +5817,8 @@
5804
5817
  return r ? t ? t(e) : e : (e && e.then || (e = Promise.resolve(e)), t ? e.then(t) : e);
5805
5818
  }
5806
5819
  var n = Object.keys,
5807
- o = Object.hasOwn,
5808
- a = Array.isArray,
5820
+ a = Object.hasOwn,
5821
+ o = Array.isArray,
5809
5822
  i = ["type", "replaced", "iterateIn", "iterateUnsetNumeric", "addLength"];
5810
5823
  function _async(e) {
5811
5824
  return function () {
@@ -5820,9 +5833,9 @@
5820
5833
  function nestedPathsFirst(e, t) {
5821
5834
  var r, n;
5822
5835
  if ("" === e.keypath) return -1;
5823
- var o = null !== (r = e.keypath.match(/\./g)) && void 0 !== r ? r : 0,
5824
- a = null !== (n = t.keypath.match(/\./g)) && void 0 !== n ? n : 0;
5825
- return o && (o = o.length), a && (a = a.length), o > a ? -1 : o < a ? 1 : e.keypath < t.keypath ? -1 : e.keypath > t.keypath ? 1 : 0;
5836
+ var a = null !== (r = e.keypath.match(/\./g)) && void 0 !== r ? r : 0,
5837
+ o = null !== (n = t.keypath.match(/\./g)) && void 0 !== n ? n : 0;
5838
+ return a && (a = a.length), o && (o = o.length), a > o ? -1 : a < o ? 1 : e.keypath < t.keypath ? -1 : e.keypath > t.keypath ? 1 : 0;
5826
5839
  }
5827
5840
  var c = function () {
5828
5841
  function Typeson(e) {
@@ -5834,8 +5847,8 @@
5834
5847
  n = _objectSpread2(_objectSpread2(_objectSpread2({}, this.options), n), {}, {
5835
5848
  stringification: !0
5836
5849
  });
5837
- var o = this.encapsulate(e, null, n);
5838
- return a(o) ? JSON.stringify(o[0], t, r) : o.then(function (e) {
5850
+ var a = this.encapsulate(e, null, n);
5851
+ return o(a) ? JSON.stringify(a[0], t, r) : a.then(function (e) {
5839
5852
  return JSON.stringify(e, t, r);
5840
5853
  });
5841
5854
  }
@@ -5908,7 +5921,7 @@
5908
5921
  d = [],
5909
5922
  v = !("cyclic" in u) || u.cyclic,
5910
5923
  b = u.encapsulateObserver,
5911
- h = function finish(e) {
5924
+ m = function finish(e) {
5912
5925
  var t = Object.values(f);
5913
5926
  if (u.iterateNone) return t.length ? t[0] : getJSONType(e);
5914
5927
  if (t.length) {
@@ -5921,25 +5934,25 @@
5921
5934
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5922
5935
  }();
5923
5936
  }(new Set(t));
5924
- e && isPlainObject(e) && !o(e, "$types") ? e.$types = f : e = {
5937
+ e && isPlainObject(e) && !a(e, "$types") ? e.$types = f : e = {
5925
5938
  $: e,
5926
5939
  $types: {
5927
5940
  $: f
5928
5941
  }
5929
5942
  };
5930
- } else isObject(e) && o(e, "$types") && (e = {
5943
+ } else isObject(e) && a(e, "$types") && (e = {
5931
5944
  $: e,
5932
5945
  $types: !0
5933
5946
  });
5934
5947
  return !u.returnTypeNames && e;
5935
5948
  },
5936
- g = _async(function (t, r) {
5949
+ h = _async(function (t, r) {
5937
5950
  return _await(Promise.all(r.map(function (e) {
5938
5951
  return e[1].p;
5939
5952
  })), function (n) {
5940
5953
  return _await(Promise.all(n.map(_async(function (n) {
5941
- var o = !1,
5942
- a = [],
5954
+ var a = !1,
5955
+ o = [],
5943
5956
  i = _slicedToArray(r.splice(0, 1), 1),
5944
5957
  c = _slicedToArray(i[0], 7),
5945
5958
  s = c[0],
@@ -5948,7 +5961,7 @@
5948
5961
  f = c[4],
5949
5962
  y = c[5],
5950
5963
  p = c[6],
5951
- d = _(s, n, u, l, a, !0, p),
5964
+ d = O(s, n, u, l, o, !0, p),
5952
5965
  v = hasConstructorOf(d, e);
5953
5966
  return function _invoke(e, t) {
5954
5967
  var r = e();
@@ -5956,18 +5969,18 @@
5956
5969
  }(function () {
5957
5970
  if (s && v) return _await(d.p, function (e) {
5958
5971
  f[y] = e;
5959
- var r = g(t, a);
5960
- return o = !0, r;
5972
+ var r = h(t, o);
5973
+ return a = !0, r;
5961
5974
  });
5962
5975
  }, function (e) {
5963
- return o ? e : (s ? f[y] = d : t = v ? d.p : d, g(t, a));
5976
+ return a ? e : (s ? f[y] = d : t = v ? d.p : d, h(t, o));
5964
5977
  });
5965
5978
  }))), function () {
5966
5979
  return t;
5967
5980
  });
5968
5981
  });
5969
5982
  }),
5970
- m = function _adaptBuiltinStateObjectProperties(e, t, r) {
5983
+ g = function _adaptBuiltinStateObjectProperties(e, t, r) {
5971
5984
  Object.assign(e, t);
5972
5985
  var n = i.map(function (t) {
5973
5986
  var r = e[t];
@@ -5977,14 +5990,14 @@
5977
5990
  e[t] = n[r];
5978
5991
  });
5979
5992
  },
5980
- _ = function _encapsulate(t, r, i, c, l, d, v) {
5981
- var h,
5982
- g = {},
5983
- _ = _typeof(r),
5993
+ O = function _encapsulate(t, r, i, c, l, d, v) {
5994
+ var m,
5995
+ h = {},
5996
+ O = _typeof(r),
5984
5997
  w = b ? function (n) {
5985
- var o,
5986
- a = null !== (o = null != v ? v : c.type) && void 0 !== o ? o : getJSONType(r);
5987
- b(Object.assign(null != n ? n : g, {
5998
+ var a,
5999
+ o = null !== (a = null != v ? v : c.type) && void 0 !== a ? a : getJSONType(r);
6000
+ b(Object.assign(null != n ? n : h, {
5988
6001
  keypath: t,
5989
6002
  value: r,
5990
6003
  cyclic: i,
@@ -5993,12 +6006,12 @@
5993
6006
  resolvingTypesonPromise: d,
5994
6007
  awaitingTypesonPromise: hasConstructorOf(r, e)
5995
6008
  }, {
5996
- type: a
6009
+ type: o
5997
6010
  }));
5998
6011
  } : null;
5999
- if (["string", "boolean", "number", "undefined"].includes(_)) return void 0 === r || Number.isNaN(r) || r === Number.NEGATIVE_INFINITY || r === Number.POSITIVE_INFINITY || 0 === r ? (h = c.replaced ? r : O(t, r, c, l, !1, d, w)) !== r && (g = {
6000
- replaced: h
6001
- }) : h = r, w && w(), h;
6012
+ 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 : _(t, r, c, l, !1, d, w)) !== r && (h = {
6013
+ replaced: m
6014
+ }) : m = r, w && w(), m;
6002
6015
  if (null === r) return w && w(), r;
6003
6016
  if (i && !c.iterateIn && !c.iterateUnsetNumeric && r && "object" === _typeof(r)) {
6004
6017
  var A = y.indexOf(r);
@@ -6010,25 +6023,25 @@
6010
6023
  var S,
6011
6024
  j,
6012
6025
  T = isPlainObject(r),
6013
- I = a(r),
6014
- N = (T || I) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : O(t, r, c, l, T || I, null, w);
6015
- if (N !== r ? (h = N, g = {
6016
- replaced: N
6017
- }) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), h = r) : I && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), g = {
6026
+ N = o(r),
6027
+ I = (T || N) && (!s.plainObjectReplacers.length || c.replaced) || c.iterateIn ? r : _(t, r, c, l, T || N, null, w);
6028
+ if (I !== r ? (m = I, h = {
6029
+ replaced: I
6030
+ }) : "" === t && hasConstructorOf(r, e) ? (l.push([t, r, i, c, void 0, void 0, c.type]), m = r) : N && "object" !== c.iterateIn || "array" === c.iterateIn ? (S = new Array(r.length), h = {
6018
6031
  clone: S
6019
- }) : (["function", "symbol"].includes(_typeof(r)) || "toJSON" in r || hasConstructorOf(r, e) || hasConstructorOf(r, Promise) || hasConstructorOf(r, ArrayBuffer)) && !T && "object" !== c.iterateIn ? h = r : (S = {}, c.addLength && (S.length = r.length), g = {
6032
+ }) : (["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 = {
6020
6033
  clone: S
6021
- }), w && w(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : h;
6022
- if (!S) return h;
6034
+ }), w && w(), u.iterateNone) return null !== (j = S) && void 0 !== j ? j : m;
6035
+ if (!S) return m;
6023
6036
  if (c.iterateIn) {
6024
6037
  var P = function _loop(n) {
6025
- var a = {
6026
- ownKeys: o(r, n)
6038
+ var o = {
6039
+ ownKeys: a(r, n)
6027
6040
  };
6028
- m(c, a, function () {
6029
- var o = t + (t ? "." : "") + escapeKeyPathComponent(n),
6030
- a = _encapsulate(o, r[n], Boolean(i), c, l, d);
6031
- hasConstructorOf(a, e) ? l.push([o, a, Boolean(i), c, S, n, c.type]) : void 0 !== a && (S[n] = a);
6041
+ g(c, o, function () {
6042
+ var a = t + (t ? "." : "") + escapeKeyPathComponent(n),
6043
+ o = _encapsulate(a, r[n], Boolean(i), c, l, d);
6044
+ hasConstructorOf(o, e) ? l.push([a, o, Boolean(i), c, S, n, c.type]) : void 0 !== o && (S[n] = o);
6032
6045
  });
6033
6046
  };
6034
6047
  for (var E in r) P(E);
@@ -6037,29 +6050,29 @@
6037
6050
  end: !0
6038
6051
  });
6039
6052
  } else n(r).forEach(function (n) {
6040
- var o = t + (t ? "." : "") + escapeKeyPathComponent(n);
6041
- m(c, {
6053
+ var a = t + (t ? "." : "") + escapeKeyPathComponent(n);
6054
+ g(c, {
6042
6055
  ownKeys: !0
6043
6056
  }, function () {
6044
- var t = _encapsulate(o, r[n], Boolean(i), c, l, d);
6045
- hasConstructorOf(t, e) ? l.push([o, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
6057
+ var t = _encapsulate(a, r[n], Boolean(i), c, l, d);
6058
+ hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
6046
6059
  });
6047
6060
  }), w && w({
6048
6061
  endIterateOwn: !0,
6049
6062
  end: !0
6050
6063
  });
6051
6064
  if (c.iterateUnsetNumeric) {
6052
- for (var C = r.length, x = function _loop2(n) {
6065
+ for (var x = r.length, C = function _loop2(n) {
6053
6066
  if (!(n in r)) {
6054
- var o = "".concat(t).concat(t ? "." : "").concat(n);
6055
- m(c, {
6067
+ var a = "".concat(t).concat(t ? "." : "").concat(n);
6068
+ g(c, {
6056
6069
  ownKeys: !1
6057
6070
  }, function () {
6058
- var t = _encapsulate(o, void 0, Boolean(i), c, l, d);
6059
- hasConstructorOf(t, e) ? l.push([o, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
6071
+ var t = _encapsulate(a, void 0, Boolean(i), c, l, d);
6072
+ hasConstructorOf(t, e) ? l.push([a, t, Boolean(i), c, S, n, c.type]) : void 0 !== t && (S[n] = t);
6060
6073
  });
6061
6074
  }
6062
- }, k = 0; k < C; k++) x(k);
6075
+ }, k = 0; k < x; k++) C(k);
6063
6076
  w && w({
6064
6077
  endIterateUnsetNumeric: !0,
6065
6078
  end: !0
@@ -6067,8 +6080,8 @@
6067
6080
  }
6068
6081
  return S;
6069
6082
  },
6070
- O = function replace(e, t, r, n, o, a, i) {
6071
- for (var c = o ? s.plainObjectReplacers : s.nonplainObjectReplacers, u = c.length; u--;) {
6083
+ _ = function replace(e, t, r, n, a, o, i) {
6084
+ for (var c = a ? s.plainObjectReplacers : s.nonplainObjectReplacers, u = c.length; u--;) {
6072
6085
  var y = c[u];
6073
6086
  if (y.test(t, r)) {
6074
6087
  var p = y.type;
@@ -6081,7 +6094,7 @@
6081
6094
  replaced: !0
6082
6095
  }), (l || !y.replaceAsync) && !y.replace) return i && i({
6083
6096
  typeDetected: !0
6084
- }), _(e, t, v && "readonly", r, n, a, p);
6097
+ }), O(e, t, v && "readonly", r, n, o, p);
6085
6098
  i && i({
6086
6099
  replacing: !0
6087
6100
  });
@@ -6090,17 +6103,17 @@
6090
6103
  if (void 0 === y.replace) throw new TypeError("Missing replacer");
6091
6104
  b = y.replace(t, r);
6092
6105
  } else b = y.replaceAsync(t, r);
6093
- return _(e, b, v && "readonly", r, n, a, p);
6106
+ return O(e, b, v && "readonly", r, n, o, p);
6094
6107
  }
6095
6108
  }
6096
6109
  return t;
6097
6110
  },
6098
- w = _("", t, v, null != r ? r : {}, d);
6111
+ w = O("", t, v, null != r ? r : {}, d);
6099
6112
  if (d.length) return l && u.throwOnBadSyncType ? function () {
6100
6113
  throw new TypeError("Sync method requested but async result obtained");
6101
- }() : Promise.resolve(g(w, d)).then(h);
6114
+ }() : Promise.resolve(h(w, d)).then(m);
6102
6115
  if (!l && u.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
6103
- return u.stringification && l ? [h(w)] : l ? h(w) : Promise.resolve(h(w));
6116
+ return u.stringification && l ? [m(w)] : l ? m(w) : Promise.resolve(m(w));
6104
6117
  }
6105
6118
  }, {
6106
6119
  key: "encapsulateSync",
@@ -6123,7 +6136,7 @@
6123
6136
  }, {
6124
6137
  key: "revive",
6125
6138
  value: function revive(t, r) {
6126
- var o = this,
6139
+ var a = this,
6127
6140
  i = _objectSpread2(_objectSpread2({
6128
6141
  sync: !0
6129
6142
  }, this.options), r),
@@ -6143,7 +6156,7 @@
6143
6156
  u.$ && isPlainObject(u.$) && (t = t.$, u = u.$, y = !1);
6144
6157
  var p = function executeReviver(e, t) {
6145
6158
  var r,
6146
- n = _slicedToArray(null !== (r = o.revivers[e]) && void 0 !== r ? r : [], 1)[0];
6159
+ n = _slicedToArray(null !== (r = a.revivers[e]) && void 0 !== r ? r : [], 1)[0];
6147
6160
  if (!n) throw new Error("Unregistered type: " + e);
6148
6161
  if (c && !("revive" in n)) return t;
6149
6162
  if (!c && n.reviveAsync) return n.reviveAsync(t, f);
@@ -6161,63 +6174,63 @@
6161
6174
  if (Object.entries(u).forEach(function (e) {
6162
6175
  var t = _slicedToArray(e, 2),
6163
6176
  n = t[0],
6164
- a = t[1];
6165
- "#" !== a && [].concat(a).forEach(function (e) {
6177
+ o = t[1];
6178
+ "#" !== o && [].concat(o).forEach(function (e) {
6166
6179
  var t;
6167
- _slicedToArray(null !== (t = o.revivers[e]) && void 0 !== t ? t : [null, {}], 2)[1].plain && (r.push({
6180
+ _slicedToArray(null !== (t = a.revivers[e]) && void 0 !== t ? t : [null, {}], 2)[1].plain && (r.push({
6168
6181
  keypath: n,
6169
6182
  type: e
6170
6183
  }), delete u[n]);
6171
6184
  });
6172
6185
  }), r.length) return r.sort(nestedPathsFirst).reduce(function reducer(r, n) {
6173
- var o = n.keypath,
6174
- a = n.type;
6186
+ var a = n.keypath,
6187
+ o = n.type;
6175
6188
  if (isThenable(r)) return r.then(function (e) {
6176
6189
  return reducer(e, {
6177
- keypath: o,
6178
- type: a
6190
+ keypath: a,
6191
+ type: o
6179
6192
  });
6180
6193
  });
6181
- var i = getByKeyPath(t, o);
6182
- if (hasConstructorOf(i = p(a, i), e)) return i.then(function (e) {
6183
- var r = setAtKeyPath(t, o, e);
6194
+ var i = getByKeyPath(t, a);
6195
+ if (hasConstructorOf(i = p(o, i), e)) return i.then(function (e) {
6196
+ var r = setAtKeyPath(t, a, e);
6184
6197
  r === e && (t = r);
6185
6198
  });
6186
- var c = setAtKeyPath(t, o, i);
6199
+ var c = setAtKeyPath(t, a, i);
6187
6200
  c === i && (t = c);
6188
6201
  }, void 0);
6189
6202
  }();
6190
6203
  return hasConstructorOf(b, e) ? v = b.then(function () {
6191
6204
  return t;
6192
- }) : (v = function _revive(t, r, o, i, c) {
6205
+ }) : (v = function _revive(t, r, a, i, c) {
6193
6206
  if (!y || "$types" !== t) {
6194
6207
  var f = u[t],
6195
- v = a(r);
6208
+ v = o(r);
6196
6209
  if (v || isPlainObject(r)) {
6197
6210
  var b = v ? new Array(r.length) : {};
6198
6211
  for (n(r).forEach(function (n) {
6199
- var a = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != o ? o : b, b, n),
6212
+ var o = _revive(t + (t ? "." : "") + escapeKeyPathComponent(n), r[n], null != a ? a : b, b, n),
6200
6213
  i = function set(e) {
6201
6214
  return hasConstructorOf(e, s) ? b[n] = void 0 : void 0 !== e && (b[n] = e), e;
6202
6215
  };
6203
- hasConstructorOf(a, e) ? d.push(a.then(function (e) {
6216
+ hasConstructorOf(o, e) ? d.push(o.then(function (e) {
6204
6217
  return i(e);
6205
- })) : i(a);
6218
+ })) : i(o);
6206
6219
  }), r = b; l.length;) {
6207
- var h = _slicedToArray(l[0], 4),
6208
- g = h[0],
6209
- m = h[1],
6210
- _ = h[2],
6211
- O = h[3],
6212
- w = getByKeyPath(g, m);
6220
+ var m = _slicedToArray(l[0], 4),
6221
+ h = m[0],
6222
+ g = m[1],
6223
+ O = m[2],
6224
+ _ = m[3],
6225
+ w = getByKeyPath(h, g);
6213
6226
  if (void 0 === w) break;
6214
- _[O] = w, l.splice(0, 1);
6227
+ O[_] = w, l.splice(0, 1);
6215
6228
  }
6216
6229
  }
6217
6230
  if (!f) return r;
6218
6231
  if ("#" === f) {
6219
- var A = getByKeyPath(o, r.slice(1));
6220
- return void 0 === A && l.push([o, r.slice(1), i, c]), A;
6232
+ var A = getByKeyPath(a, r.slice(1));
6233
+ return void 0 === A && l.push([a, r.slice(1), i, c]), A;
6221
6234
  }
6222
6235
  return [].concat(f).reduce(function reducer(t, r) {
6223
6236
  if (hasConstructorOf(t, e)) return t.then(function (e) {
@@ -6259,9 +6272,9 @@
6259
6272
  key: "register",
6260
6273
  value: function register(e, t) {
6261
6274
  var r = this,
6262
- o = null != t ? t : {},
6275
+ a = null != t ? t : {},
6263
6276
  i = function R(e) {
6264
- a(e) ? e.forEach(function (e) {
6277
+ o(e) ? e.forEach(function (e) {
6265
6278
  return R(e);
6266
6279
  }) : n(e).forEach(function (t) {
6267
6280
  var n;
@@ -6285,7 +6298,7 @@
6285
6298
  return Object.assign(Object.create(l.prototype), e);
6286
6299
  }
6287
6300
  };
6288
- } else if (a(i)) {
6301
+ } else if (o(i)) {
6289
6302
  var f = _slicedToArray(i, 3);
6290
6303
  i = {
6291
6304
  test: f[0],
@@ -6299,7 +6312,7 @@
6299
6312
  test: i.test.bind(i)
6300
6313
  };
6301
6314
  i.replace && (y.replace = i.replace.bind(i)), i.replaceAsync && (y.replaceAsync = i.replaceAsync.bind(i));
6302
- var p = "number" == typeof o.fallback ? o.fallback : o.fallback ? 0 : Number.POSITIVE_INFINITY;
6315
+ var p = "number" == typeof a.fallback ? a.fallback : a.fallback ? 0 : Number.POSITIVE_INFINITY;
6303
6316
  if (i.testPlainObjects ? r.plainObjectReplacers.splice(p, 0, y) : r.nonplainObjectReplacers.splice(p, 0, y), i.revive || i.reviveAsync) {
6304
6317
  var d = {};
6305
6318
  i.revive && (d.revive = i.revive.bind(i)), i.reviveAsync && (d.reviveAsync = i.reviveAsync.bind(i)), r.revivers[t] = [d, {
@@ -6323,20 +6336,20 @@
6323
6336
  for (var u = ["null", "boolean", "number", "string", "array", "object"], l = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", f = new Uint8Array(256), y = 0; y < 64; y++) f[l.codePointAt(y)] = y;
6324
6337
  var p = function encode(e, t, r) {
6325
6338
  null == r && (r = e.byteLength);
6326
- for (var n = new Uint8Array(e, t || 0, r), o = n.length, a = "", i = 0; i < o; i += 3) a += l[n[i] >> 2], a += l[(3 & n[i]) << 4 | n[i + 1] >> 4], a += l[(15 & n[i + 1]) << 2 | n[i + 2] >> 6], a += l[63 & n[i + 2]];
6327
- return o % 3 == 2 ? a = a.slice(0, -1) + "=" : o % 3 == 1 && (a = a.slice(0, -2) + "=="), a;
6339
+ for (var n = new Uint8Array(e, t || 0, r), a = n.length, o = "", i = 0; i < a; i += 3) o += l[n[i] >> 2], o += l[(3 & n[i]) << 4 | n[i + 1] >> 4], o += l[(15 & n[i + 1]) << 2 | n[i + 2] >> 6], o += l[63 & n[i + 2]];
6340
+ return a % 3 == 2 ? o = o.slice(0, -1) + "=" : a % 3 == 1 && (o = o.slice(0, -2) + "=="), o;
6328
6341
  },
6329
6342
  d = function decode(e) {
6330
6343
  var t = e.length;
6331
6344
  if (t % 4) throw new Error("Bad base64 length: not divisible by four");
6332
6345
  var r,
6333
6346
  n,
6334
- o,
6335
6347
  a,
6348
+ o,
6336
6349
  i = .75 * e.length,
6337
6350
  c = 0;
6338
6351
  "=" === e[e.length - 1] && (i--, "=" === e[e.length - 2] && i--);
6339
- for (var s = new ArrayBuffer(i), u = new Uint8Array(s), l = 0; l < t; l += 4) r = f[e.codePointAt(l)], n = f[e.codePointAt(l + 1)], o = f[e.codePointAt(l + 2)], a = f[e.codePointAt(l + 3)], u[c++] = r << 2 | n >> 4, u[c++] = (15 & n) << 4 | o >> 2, u[c++] = (3 & o) << 6 | 63 & a;
6352
+ for (var s = new ArrayBuffer(i), u = new Uint8Array(s), l = 0; l < t; l += 4) r = f[e.codePointAt(l)], n = f[e.codePointAt(l + 1)], a = f[e.codePointAt(l + 2)], o = f[e.codePointAt(l + 3)], u[c++] = r << 2 | n >> 4, u[c++] = (15 & n) << 4 | a >> 2, u[c++] = (3 & a) << 6 | 63 & o;
6340
6353
  return s;
6341
6354
  };
6342
6355
  var v = {
@@ -6369,7 +6382,7 @@
6369
6382
  }
6370
6383
  }
6371
6384
  },
6372
- h = {
6385
+ m = {
6373
6386
  bigint: {
6374
6387
  test: function test(e) {
6375
6388
  return "bigint" == typeof e;
@@ -6385,7 +6398,7 @@
6385
6398
  for (var _r = 0; _r < e.length; _r++) t[_r] = e.charCodeAt(_r);
6386
6399
  return t.buffer;
6387
6400
  }
6388
- var g = {
6401
+ var h = {
6389
6402
  blob: {
6390
6403
  test: function test(e) {
6391
6404
  return "Blob" === toStringTag(e);
@@ -6420,7 +6433,7 @@
6420
6433
  }
6421
6434
  }
6422
6435
  };
6423
- var O = {
6436
+ var _ = {
6424
6437
  cryptokey: {
6425
6438
  test: function test(e) {
6426
6439
  return "CryptoKey" === toStringTag(e) && e.extractable;
@@ -6478,9 +6491,9 @@
6478
6491
  t = _ref2.byteOffset,
6479
6492
  r = _ref2.byteLength;
6480
6493
  n.buffers || (n.buffers = []);
6481
- var o = n.buffers.indexOf(e);
6482
- return o > -1 ? {
6483
- index: o,
6494
+ var a = n.buffers.indexOf(e);
6495
+ return a > -1 ? {
6496
+ index: a,
6484
6497
  byteOffset: t,
6485
6498
  byteLength: r
6486
6499
  } : (n.buffers.push(e), {
@@ -6493,10 +6506,10 @@
6493
6506
  t.buffers || (t.buffers = []);
6494
6507
  var r = e.byteOffset,
6495
6508
  n = e.byteLength,
6496
- o = e.encoded,
6497
- a = e.index;
6509
+ a = e.encoded,
6510
+ o = e.index;
6498
6511
  var i;
6499
- return "index" in e ? i = t.buffers[a] : (i = d(o), t.buffers.push(i)), new DataView(i, r, n);
6512
+ return "index" in e ? i = t.buffers[o] : (i = d(a), t.buffers.push(i)), new DataView(i, r, n);
6500
6513
  }
6501
6514
  }
6502
6515
  },
@@ -6515,25 +6528,152 @@
6515
6528
  }
6516
6529
  },
6517
6530
  S = {
6531
+ domexception: {
6532
+ test: function test(e) {
6533
+ return "DOMException" === toStringTag(e);
6534
+ },
6535
+ replace: function replace(e) {
6536
+ return {
6537
+ name: e.name,
6538
+ message: e.message
6539
+ };
6540
+ },
6541
+ revive: function revive(_ref3) {
6542
+ var e = _ref3.message,
6543
+ t = _ref3.name;
6544
+ return new DOMException(e, t);
6545
+ }
6546
+ }
6547
+ },
6548
+ j = {};
6549
+ function create$5(e) {
6550
+ j[e.name.toLowerCase()] = {
6551
+ test: function test(t) {
6552
+ return toStringTag(t) === e.name;
6553
+ },
6554
+ replace: function replace(e) {
6555
+ return e.is2D ? {
6556
+ a: e.a,
6557
+ b: e.b,
6558
+ c: e.c,
6559
+ d: e.d,
6560
+ e: e.e,
6561
+ f: e.f
6562
+ } : {
6563
+ m11: e.m11,
6564
+ m12: e.m12,
6565
+ m13: e.m13,
6566
+ m14: e.m14,
6567
+ m21: e.m21,
6568
+ m22: e.m22,
6569
+ m23: e.m23,
6570
+ m24: e.m24,
6571
+ m31: e.m31,
6572
+ m32: e.m32,
6573
+ m33: e.m33,
6574
+ m34: e.m34,
6575
+ m41: e.m41,
6576
+ m42: e.m42,
6577
+ m43: e.m43,
6578
+ m44: e.m44
6579
+ };
6580
+ },
6581
+ revive: function revive(t) {
6582
+ return Object.hasOwn(t, "a") ? new e([t.a, t.b, t.c, t.d, t.e, t.f]) : new e([t.m11, t.m12, t.m13, t.m14, t.m21, t.m22, t.m23, t.m24, t.m31, t.m32, t.m33, t.m34, t.m41, t.m42, t.m43, t.m44]);
6583
+ }
6584
+ };
6585
+ }
6586
+ "undefined" != typeof DOMMatrix && create$5(DOMMatrix), "undefined" != typeof DOMMatrixReadOnly && create$5(DOMMatrixReadOnly);
6587
+ var T = {};
6588
+ function create$4(e) {
6589
+ T[e.name.toLowerCase()] = {
6590
+ test: function test(t) {
6591
+ return toStringTag(t) === e.name;
6592
+ },
6593
+ replace: function replace(e) {
6594
+ return {
6595
+ x: e.x,
6596
+ y: e.y,
6597
+ z: e.z,
6598
+ w: e.w
6599
+ };
6600
+ },
6601
+ revive: function revive(_ref4) {
6602
+ var t = _ref4.x,
6603
+ r = _ref4.y,
6604
+ n = _ref4.z,
6605
+ a = _ref4.w;
6606
+ return new e(t, r, n, a);
6607
+ }
6608
+ };
6609
+ }
6610
+ "undefined" != typeof DOMPoint && create$4(DOMPoint), "undefined" != typeof DOMPointReadOnly && create$4(DOMPointReadOnly);
6611
+ var N = {
6612
+ domquad: {
6613
+ test: function test(e) {
6614
+ return "DOMQuad" === toStringTag(e);
6615
+ },
6616
+ replace: function replace(e) {
6617
+ return {
6618
+ p1: e.p1,
6619
+ p2: e.p2,
6620
+ p3: e.p3,
6621
+ p4: e.p4
6622
+ };
6623
+ },
6624
+ revive: function revive(_ref5) {
6625
+ var e = _ref5.p1,
6626
+ t = _ref5.p2,
6627
+ r = _ref5.p3,
6628
+ n = _ref5.p4;
6629
+ return new DOMQuad(e, t, r, n);
6630
+ }
6631
+ }
6632
+ },
6633
+ I = {};
6634
+ function create$3(e) {
6635
+ I[e.name.toLowerCase()] = {
6636
+ test: function test(t) {
6637
+ return toStringTag(t) === e.name;
6638
+ },
6639
+ replace: function replace(e) {
6640
+ return {
6641
+ x: e.x,
6642
+ y: e.y,
6643
+ width: e.width,
6644
+ height: e.height
6645
+ };
6646
+ },
6647
+ revive: function revive(_ref6) {
6648
+ var t = _ref6.x,
6649
+ r = _ref6.y,
6650
+ n = _ref6.width,
6651
+ a = _ref6.height;
6652
+ return new e(t, r, n, a);
6653
+ }
6654
+ };
6655
+ }
6656
+ "undefined" != typeof DOMRect && create$3(DOMRect), "undefined" != typeof DOMRectReadOnly && create$3(DOMRectReadOnly);
6657
+ var P = {
6518
6658
  error: {
6519
6659
  test: function test(e) {
6520
6660
  return "Error" === toStringTag(e);
6521
6661
  },
6522
- replace: function replace(_ref3) {
6523
- var e = _ref3.name,
6524
- t = _ref3.message,
6525
- r = _ref3.cause,
6526
- n = _ref3.stack,
6527
- o = _ref3.fileName,
6528
- a = _ref3.lineNumber,
6529
- i = _ref3.columnNumber;
6662
+ replace: function replace(_ref7) {
6663
+ var e = _ref7.name,
6664
+ t = _ref7.message,
6665
+ r = _ref7.cause,
6666
+ n = _ref7.stack,
6667
+ a = _ref7.fileName,
6668
+ o = _ref7.lineNumber,
6669
+ i = _ref7.columnNumber;
6530
6670
  return {
6531
6671
  name: e,
6532
6672
  message: t,
6533
6673
  cause: r,
6534
6674
  stack: n,
6535
- fileName: o,
6536
- lineNumber: a,
6675
+ fileName: a,
6676
+ lineNumber: o,
6537
6677
  columnNumber: i
6538
6678
  };
6539
6679
  },
@@ -6543,43 +6683,42 @@
6543
6683
  }
6544
6684
  }
6545
6685
  },
6546
- j = {};
6686
+ E = {};
6547
6687
  function create$2(e) {
6548
- j[e.name.toLowerCase()] = {
6688
+ E[e.name.toLowerCase()] = {
6549
6689
  test: function test(t) {
6550
6690
  return hasConstructorOf(t, e);
6551
6691
  },
6552
- replace: function replace(_ref4) {
6553
- var e = _ref4.name,
6554
- t = _ref4.message,
6555
- r = _ref4.cause,
6556
- n = _ref4.stack,
6557
- o = _ref4.fileName,
6558
- a = _ref4.lineNumber,
6559
- i = _ref4.columnNumber,
6560
- c = _ref4.errors;
6692
+ replace: function replace(_ref8) {
6693
+ var e = _ref8.name,
6694
+ t = _ref8.message,
6695
+ r = _ref8.cause,
6696
+ n = _ref8.stack,
6697
+ a = _ref8.fileName,
6698
+ o = _ref8.lineNumber,
6699
+ i = _ref8.columnNumber,
6700
+ c = _ref8.errors;
6561
6701
  return {
6562
6702
  name: e,
6563
6703
  message: t,
6564
6704
  cause: r,
6565
6705
  stack: n,
6566
- fileName: o,
6567
- lineNumber: a,
6706
+ fileName: a,
6707
+ lineNumber: o,
6568
6708
  columnNumber: i,
6569
6709
  errors: c
6570
6710
  };
6571
6711
  },
6572
6712
  revive: function revive(t) {
6573
- var r = "undefined" != typeof AggregateError && e === AggregateError,
6574
- n = r ? new e(t.errors, t.message) : new e(t.message);
6575
- return n.name = t.name, n.cause = t.cause, n.stack = t.stack, n.fileName = t.fileName, n.lineNumber = t.lineNumber, n.columnNumber = t.columnNumber, r && (n.errors = t.errors), n;
6713
+ var r = "undefined" != typeof AggregateError && e === AggregateError ? new e(t.errors, t.message) : new e(t.message);
6714
+ return r.name = t.name, r.cause = t.cause, r.stack = t.stack, r.fileName = t.fileName, r.lineNumber = t.lineNumber, r.columnNumber = t.columnNumber, r;
6576
6715
  }
6577
6716
  };
6578
6717
  }
6579
6718
  [TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(function (e) {
6580
6719
  return create$2(e);
6581
6720
  }), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
6582
- var T = {
6721
+ var x = {
6583
6722
  file: {
6584
6723
  test: function test(e) {
6585
6724
  return "File" === toStringTag(e);
@@ -6594,11 +6733,11 @@
6594
6733
  lastModified: e.lastModified
6595
6734
  };
6596
6735
  },
6597
- revive: function revive(_ref5) {
6598
- var e = _ref5.name,
6599
- t = _ref5.type,
6600
- r = _ref5.stringContents,
6601
- n = _ref5.lastModified;
6736
+ revive: function revive(_ref9) {
6737
+ var e = _ref9.name,
6738
+ t = _ref9.type,
6739
+ r = _ref9.stringContents,
6740
+ n = _ref9.lastModified;
6602
6741
  return new File([string2arraybuffer(r)], e, {
6603
6742
  type: t,
6604
6743
  lastModified: n
@@ -6621,8 +6760,8 @@
6621
6760
  }
6622
6761
  }
6623
6762
  },
6624
- I = {
6625
- file: T.file,
6763
+ C = {
6764
+ file: x.file,
6626
6765
  filelist: {
6627
6766
  test: function test(e) {
6628
6767
  return "FileList" === toStringTag(e);
@@ -6655,7 +6794,7 @@
6655
6794
  }
6656
6795
  }
6657
6796
  },
6658
- N = {
6797
+ k = {
6659
6798
  imagebitmap: {
6660
6799
  test: function test(e) {
6661
6800
  return "ImageBitmap" === toStringTag(e) || e && e.dataset && "ImageBitmap" === e.dataset.toStringTag;
@@ -6675,11 +6814,11 @@
6675
6814
  reviveAsync: function reviveAsync(t) {
6676
6815
  var r = document.createElement("canvas"),
6677
6816
  n = r.getContext("2d"),
6678
- o = document.createElement("img");
6679
- return o.addEventListener("load", function () {
6680
- n.drawImage(o, 0, 0);
6681
- }), o.src = t, new e( /*#__PURE__*/function () {
6682
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e, t) {
6817
+ a = document.createElement("img");
6818
+ return a.addEventListener("load", function () {
6819
+ n.drawImage(a, 0, 0);
6820
+ }), a.src = t, new e( /*#__PURE__*/function () {
6821
+ var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e, t) {
6683
6822
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
6684
6823
  while (1) switch (_context2.prev = _context2.next) {
6685
6824
  case 0:
@@ -6703,13 +6842,13 @@
6703
6842
  }, _callee2, null, [[0, 8]]);
6704
6843
  }));
6705
6844
  return function (_x3, _x4) {
6706
- return _ref6.apply(this, arguments);
6845
+ return _ref10.apply(this, arguments);
6707
6846
  };
6708
6847
  }());
6709
6848
  }
6710
6849
  }
6711
6850
  },
6712
- P = {
6851
+ B = {
6713
6852
  imagedata: {
6714
6853
  test: function test(e) {
6715
6854
  return "ImageData" === toStringTag(e);
@@ -6726,56 +6865,20 @@
6726
6865
  }
6727
6866
  }
6728
6867
  },
6729
- E = {
6868
+ U = {
6730
6869
  infinity: {
6731
6870
  test: function test(e) {
6732
6871
  return e === Number.POSITIVE_INFINITY;
6733
6872
  },
6734
- replace: function replace(e) {
6873
+ replace: function replace() {
6735
6874
  return "Infinity";
6736
6875
  },
6737
- revive: function revive(e) {
6876
+ revive: function revive() {
6738
6877
  return Number.POSITIVE_INFINITY;
6739
6878
  }
6740
6879
  }
6741
6880
  },
6742
- C = {
6743
- test: function test(e) {
6744
- return hasConstructorOf(e, Intl.Collator);
6745
- },
6746
- replace: function replace(e) {
6747
- return e.resolvedOptions();
6748
- },
6749
- revive: function revive(e) {
6750
- return new Intl.Collator(e.locale, e);
6751
- }
6752
- },
6753
- x = {
6754
- IntlCollator: C,
6755
- IntlDateTimeFormat: {
6756
- test: function test(e) {
6757
- return hasConstructorOf(e, Intl.DateTimeFormat);
6758
- },
6759
- replace: function replace(e) {
6760
- return e.resolvedOptions();
6761
- },
6762
- revive: function revive(e) {
6763
- return new Intl.DateTimeFormat(e.locale, e);
6764
- }
6765
- },
6766
- IntlNumberFormat: {
6767
- test: function test(e) {
6768
- return hasConstructorOf(e, Intl.NumberFormat);
6769
- },
6770
- replace: function replace(e) {
6771
- return e.resolvedOptions();
6772
- },
6773
- revive: function revive(e) {
6774
- return new Intl.NumberFormat(e.locale, e);
6775
- }
6776
- }
6777
- },
6778
- k = {
6881
+ K = {
6779
6882
  map: {
6780
6883
  test: function test(e) {
6781
6884
  return "Map" === toStringTag(e);
@@ -6788,46 +6891,46 @@
6788
6891
  }
6789
6892
  }
6790
6893
  },
6791
- B = {
6894
+ L = {
6792
6895
  nan: {
6793
6896
  test: function test(e) {
6794
6897
  return Number.isNaN(e);
6795
6898
  },
6796
- replace: function replace(e) {
6899
+ replace: function replace() {
6797
6900
  return "NaN";
6798
6901
  },
6799
- revive: function revive(e) {
6902
+ revive: function revive() {
6800
6903
  return Number.NaN;
6801
6904
  }
6802
6905
  }
6803
6906
  },
6804
- U = {
6907
+ F = {
6805
6908
  negativeInfinity: {
6806
6909
  test: function test(e) {
6807
6910
  return e === Number.NEGATIVE_INFINITY;
6808
6911
  },
6809
- replace: function replace(e) {
6912
+ replace: function replace() {
6810
6913
  return "-Infinity";
6811
6914
  },
6812
- revive: function revive(e) {
6915
+ revive: function revive() {
6813
6916
  return Number.NEGATIVE_INFINITY;
6814
6917
  }
6815
6918
  }
6816
6919
  },
6817
- K = {
6920
+ $ = {
6818
6921
  negativeZero: {
6819
6922
  test: function test(e) {
6820
6923
  return Object.is(e, -0);
6821
6924
  },
6822
- replace: function replace(e) {
6925
+ replace: function replace() {
6823
6926
  return 0;
6824
6927
  },
6825
- revive: function revive(e) {
6928
+ revive: function revive() {
6826
6929
  return -0;
6827
6930
  }
6828
6931
  }
6829
6932
  },
6830
- F = {
6933
+ V = {
6831
6934
  StringObject: {
6832
6935
  test: function test(e) {
6833
6936
  return "String" === toStringTag(e) && "object" == _typeof$2(e);
@@ -6856,7 +6959,7 @@
6856
6959
  }
6857
6960
  }
6858
6961
  },
6859
- M = {
6962
+ q = {
6860
6963
  regexp: {
6861
6964
  test: function test(e) {
6862
6965
  return "RegExp" === toStringTag(e);
@@ -6867,14 +6970,14 @@
6867
6970
  flags: (e.global ? "g" : "") + (e.ignoreCase ? "i" : "") + (e.multiline ? "m" : "") + (e.sticky ? "y" : "") + (e.unicode ? "u" : "")
6868
6971
  };
6869
6972
  },
6870
- revive: function revive(_ref7) {
6871
- var e = _ref7.source,
6872
- t = _ref7.flags;
6973
+ revive: function revive(_ref11) {
6974
+ var e = _ref11.source,
6975
+ t = _ref11.flags;
6873
6976
  return new RegExp(e, t);
6874
6977
  }
6875
6978
  }
6876
6979
  },
6877
- J = {
6980
+ G = {
6878
6981
  set: {
6879
6982
  test: function test(e) {
6880
6983
  return "Set" === toStringTag(e);
@@ -6887,11 +6990,11 @@
6887
6990
  }
6888
6991
  }
6889
6992
  },
6890
- V = {};
6993
+ H = {};
6891
6994
  "function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].concat(_toConsumableArray("function" == typeof BigInt64Array ? [BigInt64Array, BigUint64Array] : [])).forEach(function (e) {
6892
6995
  return function create$1(e) {
6893
6996
  var t = e.name;
6894
- V[t.toLowerCase()] = {
6997
+ H[t.toLowerCase()] = {
6895
6998
  test: function test(e) {
6896
6999
  return toStringTag(e) === t;
6897
7000
  },
@@ -6904,22 +7007,22 @@
6904
7007
  };
6905
7008
  }(e);
6906
7009
  });
6907
- var Y = {};
7010
+ var z = {};
6908
7011
  "function" == typeof Int8Array && [Int8Array, Uint8Array, Uint8ClampedArray, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array].concat(_toConsumableArray("function" == typeof BigInt64Array ? [BigInt64Array, BigUint64Array] : [])).forEach(function (e) {
6909
7012
  return function create(e) {
6910
7013
  var t = e.name;
6911
- Y[t.toLowerCase()] = {
7014
+ z[t.toLowerCase()] = {
6912
7015
  test: function test(e) {
6913
7016
  return toStringTag(e) === t;
6914
7017
  },
6915
- replace: function replace(_ref8, n) {
6916
- var e = _ref8.buffer,
6917
- t = _ref8.byteOffset,
6918
- r = _ref8.length;
7018
+ replace: function replace(_ref12, n) {
7019
+ var e = _ref12.buffer,
7020
+ t = _ref12.byteOffset,
7021
+ r = _ref12.length;
6919
7022
  n.buffers || (n.buffers = []);
6920
- var o = n.buffers.indexOf(e);
6921
- return o > -1 ? {
6922
- index: o,
7023
+ var a = n.buffers.indexOf(e);
7024
+ return a > -1 ? {
7025
+ index: a,
6923
7026
  byteOffset: t,
6924
7027
  length: r
6925
7028
  } : (n.buffers.push(e), {
@@ -6931,31 +7034,31 @@
6931
7034
  revive: function revive(t, r) {
6932
7035
  r.buffers || (r.buffers = []);
6933
7036
  var n = t.byteOffset,
6934
- o = t.length,
6935
- a = t.encoded,
7037
+ a = t.length,
7038
+ o = t.encoded,
6936
7039
  i = t.index;
6937
7040
  var c;
6938
- return "index" in t ? c = r.buffers[i] : (c = d(a), r.buffers.push(c)), new e(c, n, o);
7041
+ return "index" in t ? c = r.buffers[i] : (c = d(o), r.buffers.push(c)), new e(c, n, a);
6939
7042
  }
6940
7043
  };
6941
7044
  }(e);
6942
7045
  });
6943
- var q = {
7046
+ var Q = {
6944
7047
  undef: {
6945
7048
  test: function test(e, t) {
6946
7049
  return void 0 === e && (t.ownKeys || !("ownKeys" in t));
6947
7050
  },
6948
- replace: function replace(e) {
7051
+ replace: function replace() {
6949
7052
  return 0;
6950
7053
  },
6951
- revive: function revive(e) {
7054
+ revive: function revive() {
6952
7055
  return new s();
6953
7056
  }
6954
7057
  }
6955
7058
  },
6956
- W = {
7059
+ X = {
6957
7060
  userObject: {
6958
- test: function test(e, t) {
7061
+ test: function test(e) {
6959
7062
  return isUserObject(e);
6960
7063
  },
6961
7064
  replace: function replace(e) {
@@ -6966,7 +7069,7 @@
6966
7069
  }
6967
7070
  }
6968
7071
  },
6969
- G = [{
7072
+ Z = [{
6970
7073
  arrayNonindexKeys: {
6971
7074
  testPlainObjects: !0,
6972
7075
  test: function test(e, t) {
@@ -6980,10 +7083,10 @@
6980
7083
  revive: function revive(e) {
6981
7084
  if (Array.isArray(e)) return e;
6982
7085
  var t = [];
6983
- return Object.entries(e).forEach(function (_ref9) {
6984
- var _ref10 = _slicedToArray$1(_ref9, 2),
6985
- e = _ref10[0],
6986
- r = _ref10[1];
7086
+ return Object.entries(e).forEach(function (_ref13) {
7087
+ var _ref14 = _slicedToArray$1(_ref13, 2),
7088
+ e = _ref14[0],
7089
+ r = _ref14[1];
6987
7090
  t[e] = r;
6988
7091
  }), t;
6989
7092
  }
@@ -6993,19 +7096,19 @@
6993
7096
  test: function test(e, t) {
6994
7097
  return void 0 === e && !1 === t.ownKeys;
6995
7098
  },
6996
- replace: function replace(e) {
7099
+ replace: function replace() {
6997
7100
  return 0;
6998
7101
  },
6999
- revive: function revive(e) {}
7102
+ revive: function revive() {}
7000
7103
  }
7001
7104
  }],
7002
- H = [B, E, U, K],
7003
- ee = [W, q, G, F, H, A, M, P, N, T, I, g, S, j].concat("function" == typeof Map ? k : [], "function" == typeof Set ? J : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? Y : [], "function" == typeof DataView ? w : [], "undefined" != typeof Intl ? x : [], "undefined" != typeof crypto ? O : [], "undefined" != typeof BigInt ? [h, b] : []),
7004
- te = ee.concat({
7105
+ ee = [L, U, F, $],
7106
+ oe = [X, Q, Z, V, ee, A, q, B, k, x, C, h, P, E].concat("function" == typeof Map ? K : [], "function" == typeof Set ? G : [], "function" == typeof ArrayBuffer ? v : [], "function" == typeof Uint8Array ? z : [], "function" == typeof DataView ? w : [], "undefined" != typeof crypto ? _ : [], "undefined" != typeof BigInt ? [m, b] : [], "undefined" != typeof DOMException ? S : [], "undefined" != typeof DOMRect ? I : [], "undefined" != typeof DOMPoint ? T : [], "undefined" != typeof DOMQuad ? N : [], "undefined" != typeof DOMMatrix ? j : []),
7107
+ ie = oe.concat({
7005
7108
  checkDataCloneException: {
7006
7109
  test: function test(e) {
7007
7110
  var t = {}.toString.call(e).slice(8, -1);
7008
- if (["symbol", "function"].includes(_typeof$2(e)) || ["Arguments", "Module", "Error", "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");
7111
+ 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");
7009
7112
  return !1;
7010
7113
  }
7011
7114
  }
@@ -7013,7 +7116,7 @@
7013
7116
 
7014
7117
  // See: http://stackoverflow.com/questions/42170826/categories-for-rejection-by-the-structured-cloning-algorithm
7015
7118
 
7016
- var typeson = new c().register(te);
7119
+ var typeson = new c().register(ie);
7017
7120
 
7018
7121
  /**
7019
7122
  * @param {(preset: import('typeson-registry').Preset) =>
@@ -7021,7 +7124,7 @@
7021
7124
  * @returns {void}
7022
7125
  */
7023
7126
  function register(func) {
7024
- typeson = new c().register(func(te));
7127
+ typeson = new c().register(func(ie));
7025
7128
  }
7026
7129
 
7027
7130
  /**
@@ -7170,7 +7273,7 @@
7170
7273
  * @returns {string}
7171
7274
  */
7172
7275
  get: function get() {
7173
- return '__pendingName' in me ? /** @type {string} */me.__pendingName : me.name;
7276
+ return '__pendingName' in me ? ( /** @type {string} */me.__pendingName) : me.name;
7174
7277
  }
7175
7278
  });
7176
7279
  Object.defineProperty(me, 'name', {
@@ -7318,7 +7421,9 @@
7318
7421
  IDBIndex.__updateIndexList(store, tx, function () {
7319
7422
  // Add index entries for all existing records
7320
7423
  tx.executeSql('SELECT "key", "value" FROM ' + escapeStoreNameForSQL(storeName), [], function (tx, data) {
7321
- CFG.DEBUG && console.log('Adding existing ' + storeName + ' records to the ' + indexName + ' index');
7424
+ if (CFG.DEBUG) {
7425
+ console.log('Adding existing ' + storeName + ' records to the ' + indexName + ' index');
7426
+ }
7322
7427
  addIndexEntry(0);
7323
7428
 
7324
7429
  /**
@@ -7344,7 +7449,7 @@
7344
7449
  }
7345
7450
  indexValues[indexKeyStr] = true;
7346
7451
  }
7347
- tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function (tx, data) {
7452
+ tx.executeSql('UPDATE ' + escapeStoreNameForSQL(storeName) + ' SET ' + escapeIndexNameForSQL(indexName) + ' = ? WHERE "key" = ?', [escapeSQLiteStatement(indexKeyStr), data.rows.item(i).key], function () {
7348
7453
  addIndexEntry(i + 1);
7349
7454
  }, /** @type {SQLStatementErrorCallback} */error);
7350
7455
  } catch (e) {
@@ -7393,7 +7498,9 @@
7393
7498
  } else {
7394
7499
  // For a new index, add a new column to the object store, then apply the index
7395
7500
  var sql = ['ALTER TABLE', escapedStoreNameSQL, 'ADD', escapedIndexNameSQL, 'BLOB'].join(' ');
7396
- CFG.DEBUG && console.log(sql);
7501
+ if (CFG.DEBUG) {
7502
+ console.log(sql);
7503
+ }
7397
7504
  tx.executeSql(sql, [], addIndexSQL, /** @type {SQLStatementErrorCallback} */error);
7398
7505
  }
7399
7506
  });
@@ -7481,7 +7588,9 @@
7481
7588
  deleted: Boolean(idx.__deleted)
7482
7589
  };
7483
7590
  }
7484
- CFG.DEBUG && console.log('Updating the index list for ' + store.__currentName, indexList);
7591
+ if (CFG.DEBUG) {
7592
+ console.log('Updating the index list for ' + store.__currentName, indexList);
7593
+ }
7485
7594
  tx.executeSql('UPDATE __sys__ SET "indexList" = ? WHERE "name" = ?', [JSON.stringify(indexList), escapeSQLiteStatement(store.__currentName)], function () {
7486
7595
  success(store);
7487
7596
  }, /** @type {SQLStatementErrorCallback} */failure);
@@ -7515,13 +7624,12 @@
7515
7624
  throw createDOMException('DataError', 'No key or range was specified');
7516
7625
  }
7517
7626
  var fetchArgs = buildFetchIndexDataSQL(nullDisallowed, me, range, opType, false);
7518
- return (/** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.objectStore.transaction.__addToTransactionQueue(function () {
7519
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7520
- args[_key] = arguments[_key];
7521
- }
7522
- executeFetchIndexData.apply(void 0, [count].concat(_toConsumableArray(fetchArgs), args));
7523
- }, undefined, me)
7524
- );
7627
+ return /** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.objectStore.transaction.__addToTransactionQueue(function () {
7628
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
7629
+ args[_key] = arguments[_key];
7630
+ }
7631
+ executeFetchIndexData.apply(void 0, [count].concat(_toConsumableArray(fetchArgs), args));
7632
+ }, undefined, me);
7525
7633
  };
7526
7634
 
7527
7635
  /**
@@ -7692,17 +7800,25 @@
7692
7800
  // We don't query for indexes as we already have the info
7693
7801
  // This approach has the advantage of auto-deleting indexes via the DROP TABLE
7694
7802
  var sql = 'CREATE TABLE ' + escapedTmpStoreNameSQL + '(' + listColInfoToPreserve + escapedNewIndexNameSQL + ' ' + newNameType + ')';
7695
- CFG.DEBUG && console.log(sql);
7803
+ if (CFG.DEBUG) {
7804
+ console.log(sql);
7805
+ }
7696
7806
  tx.executeSql(sql, [], function () {
7697
7807
  var sql = 'INSERT INTO ' + escapedTmpStoreNameSQL + '(' + listColsToPreserve + escapedNewIndexNameSQL + ') SELECT ' + listColsToPreserve + escapeIndexNameForSQL(oldName) + ' FROM ' + escapedStoreNameSQL;
7698
- CFG.DEBUG && console.log(sql);
7808
+ if (CFG.DEBUG) {
7809
+ console.log(sql);
7810
+ }
7699
7811
  tx.executeSql(sql, [], function () {
7700
7812
  var sql = 'DROP TABLE ' + escapedStoreNameSQL;
7701
- CFG.DEBUG && console.log(sql);
7813
+ if (CFG.DEBUG) {
7814
+ console.log(sql);
7815
+ }
7702
7816
  tx.executeSql(sql, [], function () {
7703
7817
  var sql = 'ALTER TABLE ' + escapedTmpStoreNameSQL + ' RENAME TO ' + escapedStoreNameSQL;
7704
- CFG.DEBUG && console.log(sql);
7705
- tx.executeSql(sql, [], function (tx, data) {
7818
+ if (CFG.DEBUG) {
7819
+ console.log(sql);
7820
+ }
7821
+ tx.executeSql(sql, [], function (tx) {
7706
7822
  if (!CFG.useSQLiteIndexes) {
7707
7823
  finish();
7708
7824
  return;
@@ -7712,40 +7828,39 @@
7712
7828
  return new SyncPromise(function (resolve, reject) {
7713
7829
  var escapedIndexToRecreate = sqlQuote(escapedStoreNameSQL.slice(1, -1) + '^5' + escapedIndexNameSQL.slice(1, -1));
7714
7830
  // const sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
7715
- // CFG.DEBUG && console.log(sql);
7831
+ // if (CFG.DEBUG) { console.log(sql); }
7716
7832
  // tx.executeSql(sql, [], function () {
7717
7833
  var sql = 'CREATE INDEX ' + escapedIndexToRecreate + ' ON ' + escapedStoreNameSQL + '(' + escapedIndexNameSQL + ')';
7718
- CFG.DEBUG && console.log(sql);
7719
- tx.executeSql(sql, [], resolve, /* eslint-disable no-extra-parens -- TS */
7720
- /** @type {SQLStatementErrorCallback} */
7834
+ if (CFG.DEBUG) {
7835
+ console.log(sql);
7836
+ }
7837
+ tx.executeSql(sql, [], resolve, /** @type {SQLStatementErrorCallback} */
7721
7838
  function (tx, err) {
7722
7839
  reject(err);
7723
- }
7724
- /* eslint-enable no-extra-parens -- TS */);
7840
+ });
7725
7841
  // }, function (tx, err) {
7726
7842
  // reject(err);
7727
7843
  // });
7728
7844
  });
7729
7845
  });
7730
-
7731
7846
  indexCreations.push(new SyncPromise(function (resolve, reject) {
7732
7847
  var escapedIndexToRecreate = sqlQuote('sk_' + escapedStoreNameSQL.slice(1, -1));
7733
7848
  // Chrome erring here if not dropped first; Node does not
7734
7849
  var sql = 'DROP INDEX IF EXISTS ' + escapedIndexToRecreate;
7735
- CFG.DEBUG && console.log(sql);
7850
+ if (CFG.DEBUG) {
7851
+ console.log(sql);
7852
+ }
7736
7853
  tx.executeSql(sql, [], function () {
7737
7854
  var sql = 'CREATE INDEX ' + escapedIndexToRecreate + ' ON ' + escapedStoreNameSQL + '("key")';
7738
- CFG.DEBUG && console.log(sql);
7739
- tx.executeSql(sql, [], resolve, /* eslint-disable no-extra-parens -- TS */
7740
- /** @type {SQLStatementErrorCallback} */
7855
+ if (CFG.DEBUG) {
7856
+ console.log(sql);
7857
+ }
7858
+ tx.executeSql(sql, [], resolve, /** @type {SQLStatementErrorCallback} */
7741
7859
  function (tx, err) {
7742
- /* eslint-enable no-extra-parens -- TS */
7743
7860
  reject(err);
7744
7861
  });
7745
- }, /* eslint-disable no-extra-parens -- TS */
7746
- /** @type {SQLStatementErrorCallback} */
7862
+ }, /** @type {SQLStatementErrorCallback} */
7747
7863
  function (tx, err) {
7748
- /* eslint-enable no-extra-parens -- TS */
7749
7864
  reject(err);
7750
7865
  });
7751
7866
  }));
@@ -7805,12 +7920,14 @@
7805
7920
  sql.push('LIMIT', String(count));
7806
7921
  }
7807
7922
  var isCount = opType === 'count';
7808
- CFG.DEBUG && console.log('Trying to fetch data for Index', sql.join(' '), sqlValues);
7923
+ if (CFG.DEBUG) {
7924
+ console.log('Trying to fetch data for Index', sql.join(' '), sqlValues);
7925
+ }
7809
7926
  tx.executeSql(sql.join(' '), sqlValues, function (tx, data) {
7810
7927
  var records = [];
7811
7928
  var recordCount = 0;
7812
7929
  var decode$1 = isCount ? function () {/* */} : opType === 'key'
7813
- // eslint-disable-next-line operator-linebreak -- JSDoc
7930
+ // eslint-disable-next-line @stylistic/operator-linebreak -- JSDoc
7814
7931
  ?
7815
7932
  /**
7816
7933
  * @param {{
@@ -7822,7 +7939,7 @@
7822
7939
  // Key.convertValueToKey(record.key); // Already validated before storage
7823
7940
  return _decode(unescapeSQLiteResponse(record.key));
7824
7941
  }
7825
- // eslint-disable-next-line operator-linebreak -- JSDoc
7942
+ // eslint-disable-next-line @stylistic/operator-linebreak -- JSDoc
7826
7943
  :
7827
7944
  /**
7828
7945
  * @param {{
@@ -7864,13 +7981,12 @@
7864
7981
  if (record) {
7865
7982
  records.push(decode$1(record));
7866
7983
  if (unboundedDisallowed) {
7867
- return "break";
7984
+ return 1; // break
7868
7985
  }
7869
7986
  }
7870
7987
  };
7871
7988
  for (var i = 0; i < data.rows.length; i++) {
7872
- var _ret = _loop();
7873
- if (_ret === "break") break;
7989
+ if (_loop()) break;
7874
7990
  }
7875
7991
  } else {
7876
7992
  for (var _i = 0; _i < data.rows.length; _i++) {
@@ -7920,7 +8036,9 @@
7920
8036
  sql.push('AND (');
7921
8037
  /** @type {import('./Key.js').KeyPathArray} */
7922
8038
  range.forEach(function (innerKey, i) {
7923
- if (i > 0) sql.push('OR');
8039
+ if (i > 0) {
8040
+ sql.push('OR');
8041
+ }
7924
8042
  sql.push(escapeIndexNameForSQL(index.name), "LIKE ? ESCAPE '^' ");
7925
8043
  sqlValues.push('%' + sqlLIKEEscape( /** @type {string} */_encode(innerKey, index.multiEntry)) + '%');
7926
8044
  });
@@ -8068,20 +8186,24 @@
8068
8186
  me.__pendingName = oldName;
8069
8187
  var sql = 'UPDATE __sys__ SET "name" = ? WHERE "name" = ?';
8070
8188
  var sqlValues = [escapeSQLiteStatement(name), escapeSQLiteStatement(oldName)];
8071
- CFG.DEBUG && console.log(sql, sqlValues);
8189
+ if (CFG.DEBUG) {
8190
+ console.log(sql, sqlValues);
8191
+ }
8072
8192
  /** @type {import('./IDBTransaction.js').IDBTransactionFull} */
8073
8193
  me.transaction.__addNonRequestToTransactionQueue(function objectStoreClear(tx, args, success, error) {
8074
- tx.executeSql(sql, sqlValues, function (tx, data) {
8194
+ tx.executeSql(sql, sqlValues, function (tx) {
8075
8195
  // This SQL preserves indexes per https://www.sqlite.org/lang_altertable.html
8076
8196
  var sql = 'ALTER TABLE ' + escapeStoreNameForSQL(oldName) + ' RENAME TO ' + escapeStoreNameForSQL(name);
8077
- CFG.DEBUG && console.log(sql);
8078
- tx.executeSql(sql, [], function (tx, data) {
8197
+ if (CFG.DEBUG) {
8198
+ console.log(sql);
8199
+ }
8200
+ tx.executeSql(sql, [], function () {
8079
8201
  delete me.__pendingName;
8080
8202
  success();
8081
8203
  });
8082
8204
  }, function (tx, err) {
8083
8205
  error(err);
8084
- return true;
8206
+ return false;
8085
8207
  });
8086
8208
  });
8087
8209
  }
@@ -8160,15 +8282,19 @@
8160
8282
  * @returns {boolean}
8161
8283
  */
8162
8284
  function error(tx, err) {
8163
- CFG.DEBUG && console.log(err);
8285
+ if (CFG.DEBUG) {
8286
+ console.log(err);
8287
+ }
8164
8288
  failure(createDOMException('UnknownError', 'Could not create object store "' + storeName + '"', err));
8165
- return true;
8289
+ return false;
8166
8290
  }
8167
8291
  var escapedStoreNameSQL = escapeStoreNameForSQL(storeName);
8168
8292
  // key INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE
8169
8293
  var sql = ['CREATE TABLE', escapedStoreNameSQL, '(key BLOB', store.autoIncrement ? 'UNIQUE, inc INTEGER PRIMARY KEY AUTOINCREMENT' : 'PRIMARY KEY', ', value BLOB)'].join(' ');
8170
- CFG.DEBUG && console.log(sql);
8171
- tx.executeSql(sql, [], function (tx, data) {
8294
+ if (CFG.DEBUG) {
8295
+ console.log(sql);
8296
+ }
8297
+ tx.executeSql(sql, [], function (tx) {
8172
8298
  /**
8173
8299
  * @returns {void}
8174
8300
  */
@@ -8222,9 +8348,11 @@
8222
8348
  * @returns {boolean}
8223
8349
  */
8224
8350
  function error(tx, err) {
8225
- CFG.DEBUG && console.log(err);
8351
+ if (CFG.DEBUG) {
8352
+ console.log(err);
8353
+ }
8226
8354
  failure(createDOMException('UnknownError', 'Could not delete ObjectStore', err));
8227
- return true;
8355
+ return false;
8228
8356
  }
8229
8357
  tx.executeSql('SELECT "name" FROM __sys__ WHERE "name" = ?', [escapeSQLiteStatement(store.__currentName)], function (tx, data) {
8230
8358
  if (data.rows.length > 0) {
@@ -8341,6 +8469,7 @@
8341
8469
  if (me.autoIncrement) {
8342
8470
  // If auto-increment and no valid primaryKey found on the keyPath, get and set the new value, and use
8343
8471
  if (key === undefined) {
8472
+ // @ts-expect-error Due to re-exporting `Key.d.ts` file (needed for `node_modules` imports)
8344
8473
  generateKeyForStore(tx, me, function (failure, key, oldCn) {
8345
8474
  if (failure) {
8346
8475
  failCb(createDOMException('ConstraintError', 'The key generator\'s current number has reached the maximum safe integer limit'));
@@ -8354,6 +8483,7 @@
8354
8483
  success(key, oldCn);
8355
8484
  }, failCb);
8356
8485
  } else {
8486
+ // @ts-expect-error Due to re-exporting `Key.d.ts` file (needed for `node_modules` imports)
8357
8487
  possiblyUpdateKeyGenerator(tx, me, key, keyCloneThenSuccess, failCb);
8358
8488
  }
8359
8489
  // Not auto-increment
@@ -8476,13 +8606,15 @@
8476
8606
  sqlEnd.push('?)');
8477
8607
  insertSqlValues.push(escapeSQLiteStatement(encoded));
8478
8608
  var insertSql = sqlStart.join(' ') + sqlEnd.join(' ');
8479
- CFG.DEBUG && console.log('SQL for adding', insertSql, insertSqlValues);
8480
- tx.executeSql(insertSql, insertSqlValues, function (tx, data) {
8609
+ if (CFG.DEBUG) {
8610
+ console.log('SQL for adding', insertSql, insertSqlValues);
8611
+ }
8612
+ tx.executeSql(insertSql, insertSqlValues, function () {
8481
8613
  success(clonedKeyOrCurrentNumber);
8482
8614
  }, function (tx, err) {
8483
8615
  // Should occur for `add` operation
8484
8616
  error(createDOMException('ConstraintError', /** @type {string} */err.message, err));
8485
- return true;
8617
+ return false;
8486
8618
  });
8487
8619
  return undefined;
8488
8620
  })["catch"](function (err) {
@@ -8495,6 +8627,7 @@
8495
8627
  error(err);
8496
8628
  }
8497
8629
  if (typeof oldCn === 'number') {
8630
+ // @ts-expect-error Due to re-exporting `Key.d.ts` file (needed for `node_modules` imports)
8498
8631
  assignCurrentNumber(tx, me, oldCn, fail, fail);
8499
8632
  return null;
8500
8633
  }
@@ -8539,7 +8672,7 @@
8539
8672
  * @this {IDBObjectStoreFull}
8540
8673
  * @returns {import('./IDBRequest.js').IDBRequestFull}
8541
8674
  */
8542
- IDBObjectStore.prototype.put = function (value /*, key */) {
8675
+ IDBObjectStore.prototype.put = function (value /* , key */) {
8543
8676
  var me = this;
8544
8677
  // eslint-disable-next-line prefer-rest-params
8545
8678
  var key = arguments[1];
@@ -8578,11 +8711,13 @@
8578
8711
  var sql = 'DELETE FROM ' + escapeStoreNameForSQL(me.__currentName) + ' WHERE "key" = ?';
8579
8712
  var encodedKey = /** @type {string} */_encode(key);
8580
8713
  tx.executeSql(sql, [escapeSQLiteStatement(encodedKey)], function (tx, data) {
8581
- CFG.DEBUG && console.log('Did the row with the', key, 'exist?', data.rowsAffected);
8714
+ if (CFG.DEBUG) {
8715
+ console.log('Did the row with the', key, 'exist?', data.rowsAffected);
8716
+ }
8582
8717
  cb(tx);
8583
8718
  }, function (tx, err) {
8584
8719
  error(err);
8585
- return true;
8720
+ return false;
8586
8721
  });
8587
8722
  };
8588
8723
 
@@ -8661,46 +8796,51 @@
8661
8796
  sql.push('LIMIT', String(count));
8662
8797
  }
8663
8798
  var sqlStr = sql.join(' ');
8664
- return (/** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.transaction.__addToTransactionQueue(function objectStoreGet(tx, args, success, error) {
8665
- CFG.DEBUG && console.log('Fetching', me.__currentName, sqlValues);
8666
- tx.executeSql(sqlStr, sqlValues, function (tx, data) {
8667
- CFG.DEBUG && console.log('Fetched data', data);
8668
- var ret;
8669
- try {
8670
- // Opera can't deal with the try-catch here.
8671
- if (data.rows.length === 0) {
8672
- if (getAll) {
8673
- success([]);
8674
- } else {
8675
- success();
8676
- }
8677
- return;
8678
- }
8679
- ret = [];
8680
- if (getKey) {
8681
- for (var i = 0; i < data.rows.length; i++) {
8682
- // Key.convertValueToKey(data.rows.item(i).key); // Already validated before storage
8683
- ret.push(_decode(unescapeSQLiteResponse(data.rows.item(i).key), false));
8684
- }
8799
+ return /** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.transaction.__addToTransactionQueue(function objectStoreGet(tx, args, success, error) {
8800
+ if (CFG.DEBUG) {
8801
+ console.log('Fetching', me.__currentName, sqlValues);
8802
+ }
8803
+ tx.executeSql(sqlStr, sqlValues, function (tx, data) {
8804
+ if (CFG.DEBUG) {
8805
+ console.log('Fetched data', data);
8806
+ }
8807
+ var ret;
8808
+ try {
8809
+ // Opera can't deal with the try-catch here.
8810
+ if (data.rows.length === 0) {
8811
+ if (getAll) {
8812
+ success([]);
8685
8813
  } else {
8686
- for (var _i = 0; _i < data.rows.length; _i++) {
8687
- ret.push(decode(unescapeSQLiteResponse(data.rows.item(_i).value)));
8688
- }
8814
+ success();
8689
8815
  }
8690
- if (!getAll) {
8691
- ret = ret[0];
8816
+ return;
8817
+ }
8818
+ ret = [];
8819
+ if (getKey) {
8820
+ for (var i = 0; i < data.rows.length; i++) {
8821
+ // Key.convertValueToKey(data.rows.item(i).key); // Already validated before storage
8822
+ ret.push(_decode(unescapeSQLiteResponse(data.rows.item(i).key), false));
8823
+ }
8824
+ } else {
8825
+ for (var _i = 0; _i < data.rows.length; _i++) {
8826
+ ret.push(decode(unescapeSQLiteResponse(data.rows.item(_i).value)));
8692
8827
  }
8693
- } catch (e) {
8694
- // If no result is returned, or error occurs when parsing JSON
8695
- CFG.DEBUG && console.log(e);
8696
8828
  }
8697
- success(ret);
8698
- }, function (tx, err) {
8699
- error(err);
8700
- return true;
8701
- });
8702
- }, undefined, me)
8703
- );
8829
+ if (!getAll) {
8830
+ ret = ret[0];
8831
+ }
8832
+ } catch (e) {
8833
+ // If no result is returned, or error occurs when parsing JSON
8834
+ if (CFG.DEBUG) {
8835
+ console.log(e);
8836
+ }
8837
+ }
8838
+ success(ret);
8839
+ }, function (tx, err) {
8840
+ error(err);
8841
+ return false;
8842
+ });
8843
+ }, undefined, me);
8704
8844
  };
8705
8845
 
8706
8846
  /**
@@ -8781,21 +8921,23 @@
8781
8921
  var sqlValues = [];
8782
8922
  setSQLForKeyRange(range, sqlQuote('key'), sqlArr, sqlValues);
8783
8923
  var sql = sqlArr.join(' ');
8784
- return (/** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.transaction.__addToTransactionQueue(function objectStoreDelete(tx, args, success, error) {
8785
- CFG.DEBUG && console.log('Deleting', me.__currentName, sqlValues);
8786
- tx.executeSql(sql, sqlValues, function (tx, data) {
8787
- CFG.DEBUG && console.log('Deleted from database', data.rowsAffected);
8788
- me.__cursors.forEach(function (cursor) {
8789
- cursor.__invalidateCache(); // Delete
8790
- });
8791
-
8792
- success();
8793
- }, function (tx, err) {
8794
- error(err);
8795
- return true;
8924
+ return /** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.transaction.__addToTransactionQueue(function objectStoreDelete(tx, args, success, error) {
8925
+ if (CFG.DEBUG) {
8926
+ console.log('Deleting', me.__currentName, sqlValues);
8927
+ }
8928
+ tx.executeSql(sql, sqlValues, function (tx, data) {
8929
+ if (CFG.DEBUG) {
8930
+ console.log('Deleted from database', data.rowsAffected);
8931
+ }
8932
+ me.__cursors.forEach(function (cursor) {
8933
+ cursor.__invalidateCache(); // Delete
8796
8934
  });
8797
- }, undefined, me)
8798
- );
8935
+ success();
8936
+ }, function (tx, err) {
8937
+ error(err);
8938
+ return false;
8939
+ });
8940
+ }, undefined, me);
8799
8941
  };
8800
8942
 
8801
8943
  /**
@@ -8811,20 +8953,20 @@
8811
8953
  IDBTransaction.__assertActive(me.transaction);
8812
8954
  /** @type {import('./IDBTransaction.js').IDBTransactionFull} */
8813
8955
  me.transaction.__assertWritable();
8814
- return (/** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.transaction.__addToTransactionQueue(function objectStoreClear(tx, args, success, error) {
8815
- tx.executeSql('DELETE FROM ' + escapeStoreNameForSQL(me.__currentName), [], function (tx, data) {
8816
- CFG.DEBUG && console.log('Cleared all records from database', data.rowsAffected);
8817
- me.__cursors.forEach(function (cursor) {
8818
- cursor.__invalidateCache(); // Clear
8819
- });
8820
-
8821
- success();
8822
- }, function (tx, err) {
8823
- error(err);
8824
- return true;
8956
+ return /** @type {import('./IDBTransaction.js').IDBTransactionFull} */me.transaction.__addToTransactionQueue(function objectStoreClear(tx, args, success, error) {
8957
+ tx.executeSql('DELETE FROM ' + escapeStoreNameForSQL(me.__currentName), [], function (tx, data) {
8958
+ if (CFG.DEBUG) {
8959
+ console.log('Cleared all records from database', data.rowsAffected);
8960
+ }
8961
+ me.__cursors.forEach(function (cursor) {
8962
+ cursor.__invalidateCache(); // Clear
8825
8963
  });
8826
- }, undefined, me)
8827
- );
8964
+ success();
8965
+ }, function (tx, err) {
8966
+ error(err);
8967
+ return false;
8968
+ });
8969
+ }, undefined, me);
8828
8970
  };
8829
8971
 
8830
8972
  /**
@@ -9287,7 +9429,6 @@
9287
9429
  this.__setOptions({
9288
9430
  legacyOutputDidListenersThrowFlag: true // Event hook for IndexedB
9289
9431
  });
9290
-
9291
9432
  this.__transactions = [];
9292
9433
 
9293
9434
  /** @type {{[key: string]: IDBObjectStore}} */
@@ -9502,6 +9643,7 @@
9502
9643
  me.close();
9503
9644
  var ct = 0;
9504
9645
  me.__transactions.forEach(function (trans) {
9646
+ // eslint-disable-next-line camelcase -- Clear API
9505
9647
  trans.on__abort = function () {
9506
9648
  ct++;
9507
9649
  if (ct === me.__transactions.length) {
@@ -9813,14 +9955,14 @@
9813
9955
  deleteTables(i + 1);
9814
9956
  }, function () {
9815
9957
  deleteTables(i + 1);
9816
- return true;
9958
+ return false;
9817
9959
  });
9818
9960
  }
9819
9961
  })(0);
9820
- }, function (e) {
9962
+ }, function () {
9821
9963
  // __sys__ table does not exist, but that does not mean delete did not happen
9822
9964
  databaseDeleted();
9823
- return true;
9965
+ return false;
9824
9966
  });
9825
9967
  });
9826
9968
  }
@@ -9846,7 +9988,9 @@
9846
9988
  */
9847
9989
  function sysDbCreateError(tx, err) {
9848
9990
  var er = webSQLErrback( /** @type {SQLError} */err || tx);
9849
- CFG.DEBUG && console.log('Error in sysdb transaction - when creating dbVersions', err);
9991
+ if (CFG.DEBUG) {
9992
+ console.log('Error in sysdb transaction - when creating dbVersions', err);
9993
+ }
9850
9994
  failure(er);
9851
9995
  }
9852
9996
  if (sysdb) {
@@ -9961,9 +10105,9 @@
9961
10105
  */
9962
10106
  function dbCreateError(tx, err) {
9963
10107
  if (calledDbCreateError) {
9964
- return true;
10108
+ return false;
9965
10109
  }
9966
- var er = err ? webSQLErrback(err) : /** @type {Error} */tx;
10110
+ var er = err ? webSQLErrback(err) : ( /** @type {Error} */tx);
9967
10111
  calledDbCreateError = true;
9968
10112
  // Re: why bubbling here (and how cancelable is only really relevant for `window.onerror`) see: https://github.com/w3c/IndexedDB/issues/86
9969
10113
  var evt = createEvent('error', er, {
@@ -9974,7 +10118,7 @@
9974
10118
  req.__error = er;
9975
10119
  req.__result = undefined; // Must be undefined if an error per `result` getter
9976
10120
  req.dispatchEvent(evt);
9977
- return true;
10121
+ return false;
9978
10122
  }
9979
10123
 
9980
10124
  /**
@@ -10047,7 +10191,6 @@
10047
10191
  // In browser, should auto-commit
10048
10192
  cb(); // eslint-disable-line promise/no-callback-in-promise
10049
10193
  };
10050
-
10051
10194
  sysdb.transaction(function (systx) {
10052
10195
  /**
10053
10196
  * @returns {void}
@@ -10061,7 +10204,7 @@
10061
10204
  req.__result = connection;
10062
10205
  connection.__upgradeTransaction = req.__transaction = req.__result.__versionTransaction = IDBTransaction.__createInstance(req.__result, req.__result.objectStoreNames, 'versionchange');
10063
10206
  req.__done = true;
10064
- req.transaction.__addNonRequestToTransactionQueue(function onupgradeneeded(tx, args, finished, error) {
10207
+ req.transaction.__addNonRequestToTransactionQueue(function onupgradeneeded(tx, args, finished /* , error */) {
10065
10208
  req.dispatchEvent(e);
10066
10209
  if (e.__legacyOutputDidListenersThrowError) {
10067
10210
  logError('Error', 'An error occurred in an upgradeneeded handler attached to request chain', /** @type {Error} */e.__legacyOutputDidListenersThrowError); // We do nothing else with this error as per spec
@@ -10070,6 +10213,8 @@
10070
10213
  }
10071
10214
  finished();
10072
10215
  });
10216
+
10217
+ // eslint-disable-next-line camelcase -- Clear API
10073
10218
  req.transaction.on__beforecomplete = function (ev) {
10074
10219
  connection.__upgradeTransaction = null;
10075
10220
  /** @type {import('./IDBDatabase.js').IDBDatabaseFull} */
@@ -10079,9 +10224,11 @@
10079
10224
  ev.complete();
10080
10225
  req.__transaction = null;
10081
10226
  });
10082
- return true;
10227
+ return false;
10083
10228
  });
10084
10229
  };
10230
+
10231
+ // eslint-disable-next-line camelcase -- Clear API
10085
10232
  req.transaction.on__preabort = function () {
10086
10233
  connection.__upgradeTransaction = null;
10087
10234
  // We ensure any cache is deleted before any request error events fire and try to reopen
@@ -10091,6 +10238,8 @@
10091
10238
  }
10092
10239
  }
10093
10240
  };
10241
+
10242
+ // eslint-disable-next-line camelcase -- Clear API
10094
10243
  req.transaction.on__abort = function () {
10095
10244
  req.__transaction = null;
10096
10245
  // `readyState` and `result` will be reset anyways by `dbCreateError` but we follow spec.
@@ -10104,13 +10253,15 @@
10104
10253
  cleanupDatabaseResources(me.__openDatabase, name, escapedDatabaseName, dbCreateError.bind(null, err),
10105
10254
  // @ts-expect-error It's ok
10106
10255
  reportError || dbCreateError);
10107
- return true;
10256
+ return false;
10108
10257
  }
10109
10258
  dbCreateError(err);
10110
- return true;
10259
+ return false;
10111
10260
  });
10112
10261
  });
10113
10262
  };
10263
+
10264
+ // eslint-disable-next-line camelcase -- Clear API
10114
10265
  req.transaction.on__complete = function () {
10115
10266
  if ( /** @type {import('./IDBDatabase.js').IDBDatabaseFull} */req.__result.__closePending) {
10116
10267
  req.__transaction = null;
@@ -10137,7 +10288,6 @@
10137
10288
  // });
10138
10289
  };
10139
10290
  }
10140
-
10141
10291
  if (oldVersion === 0) {
10142
10292
  systx.executeSql('INSERT INTO dbVersions VALUES (?,?)', [sqlSafeName, version], versionSet, dbCreateError);
10143
10293
  } else {
@@ -10218,7 +10368,7 @@
10218
10368
  }, /** @type {SQLStatementErrorCallback} */dbCreateError);
10219
10369
  }, dbCreateError);
10220
10370
  }
10221
- addRequestToConnectionQueue(req, name, /* origin */undefined, function (req) {
10371
+ addRequestToConnectionQueue(req, name, /* origin */undefined, function () {
10222
10372
  var latestCachedVersion;
10223
10373
  if (useDatabaseCache) {
10224
10374
  if (!(name in websqlDBCache)) {
@@ -10275,7 +10425,6 @@
10275
10425
  } catch (err) {
10276
10426
  throw err; // throw new TypeError('You have supplied a database name which does not match the currently supported configuration, possibly due to a length limit enforced for Node compatibility.');
10277
10427
  }
10278
-
10279
10428
  var useMemoryDatabase = typeof CFG.memoryDatabase === 'string';
10280
10429
  var useDatabaseCache = CFG.cacheDatabaseInstances !== false || useMemoryDatabase;
10281
10430
  var req = IDBOpenDBRequest.__createInstance();
@@ -10303,7 +10452,7 @@
10303
10452
  */
10304
10453
  function dbError(tx, err) {
10305
10454
  if (calledDBError || err === true) {
10306
- return true;
10455
+ return false;
10307
10456
  }
10308
10457
  var er = webSQLErrback( /** @type {SQLError} */err || tx);
10309
10458
  sysdbFinishedCbDelete(true, function () {
@@ -10318,7 +10467,7 @@
10318
10467
  req.dispatchEvent(e);
10319
10468
  calledDBError = true;
10320
10469
  });
10321
- return true;
10470
+ return false;
10322
10471
  }
10323
10472
  addRequestToConnectionQueue(req, name, /* origin */undefined, function (req) {
10324
10473
  createSysDB(me.__openDatabase, function () {
@@ -10345,7 +10494,6 @@
10345
10494
  if (useDatabaseCache && name in websqlDBCache) {
10346
10495
  delete websqlDBCache[name]; // New calls will treat as though never existed
10347
10496
  }
10348
-
10349
10497
  delete me.__connections[name];
10350
10498
  completeDatabaseDelete();
10351
10499
  });
@@ -10447,12 +10595,12 @@
10447
10595
  */
10448
10596
  function dbGetDatabaseNamesError(tx, err) {
10449
10597
  if (calledDbCreateError) {
10450
- return true;
10598
+ return false;
10451
10599
  }
10452
10600
  var er = err ? webSQLErrback( /** @type {SQLError} */err) : tx;
10453
10601
  calledDbCreateError = true;
10454
10602
  reject(er);
10455
- return true;
10603
+ return false;
10456
10604
  }
10457
10605
  createSysDB(me.__openDatabase, function () {
10458
10606
  sysdb.readTransaction(function (sysReadTx) {
@@ -10767,25 +10915,33 @@
10767
10915
  sql.push('LIMIT', String(recordsToLoad));
10768
10916
  }
10769
10917
  var sqlStr = sql.join(' ');
10770
- CFG.DEBUG && console.log(sqlStr, sqlValues);
10918
+ if (CFG.DEBUG) {
10919
+ console.log(sqlStr, sqlValues);
10920
+ }
10771
10921
  tx.executeSql(sqlStr, sqlValues, function (tx, data) {
10772
10922
  if (me.__count) {
10773
10923
  success(undefined, data.rows.length, undefined);
10774
10924
  } else if (data.rows.length > 1) {
10775
10925
  me.__prefetchedIndex = 0;
10776
10926
  me.__prefetchedData = data.rows;
10777
- CFG.DEBUG && console.log('Preloaded ' + me.__prefetchedData.length + ' records for cursor');
10927
+ if (CFG.DEBUG) {
10928
+ console.log('Preloaded ' + me.__prefetchedData.length + ' records for cursor');
10929
+ }
10778
10930
  me.__decode(data.rows.item(0), success);
10779
10931
  } else if (data.rows.length === 1) {
10780
10932
  me.__decode(data.rows.item(0), success);
10781
10933
  } else {
10782
- CFG.DEBUG && console.log('Reached end of cursors');
10934
+ if (CFG.DEBUG) {
10935
+ console.log('Reached end of cursors');
10936
+ }
10783
10937
  success(undefined, undefined, undefined);
10784
10938
  }
10785
10939
  }, function (tx, err) {
10786
- CFG.DEBUG && console.log('Could not execute Cursor.continue', sqlStr, sqlValues);
10940
+ if (CFG.DEBUG) {
10941
+ console.log('Could not execute Cursor.continue', sqlStr, sqlValues);
10942
+ }
10787
10943
  error(err);
10788
- return true;
10944
+ return false;
10789
10945
  });
10790
10946
  };
10791
10947
  var leftBracketRegex = /\[/g;
@@ -10803,7 +10959,9 @@
10803
10959
  IDBCursor.prototype.__findMultiEntry = function (key, primaryKey, tx, success, error) {
10804
10960
  var me = this;
10805
10961
  if (me.__prefetchedData && me.__prefetchedData.length === me.__prefetchedIndex) {
10806
- CFG.DEBUG && console.log('Reached end of multiEntry cursor');
10962
+ if (CFG.DEBUG) {
10963
+ console.log('Reached end of multiEntry cursor');
10964
+ }
10807
10965
  success(undefined, undefined, undefined);
10808
10966
  return;
10809
10967
  }
@@ -10855,7 +11013,9 @@
10855
11013
  }
10856
11014
  }
10857
11015
  var sqlStr = sql.join(' ');
10858
- CFG.DEBUG && console.log(sqlStr, sqlValues);
11016
+ if (CFG.DEBUG) {
11017
+ console.log(sqlStr, sqlValues);
11018
+ }
10859
11019
  tx.executeSql(sqlStr, sqlValues, function (tx, data) {
10860
11020
  if (data.rows.length > 0) {
10861
11021
  if (me.__count) {
@@ -10884,8 +11044,8 @@
10884
11044
  * @type {RowItemNonNull}
10885
11045
  */
10886
11046
  var clone = {
10887
- matchingKey: /** @type {string} */
10888
- _encode(matchingKey, true),
11047
+ matchingKey: ( /** @type {string} */
11048
+ _encode(matchingKey, true)),
10889
11049
  key: _rowItem.key
10890
11050
  };
10891
11051
  clone[me.__keyColumnName] = _rowItem[me.__keyColumnName];
@@ -10927,23 +11087,33 @@
10927
11087
  return this.data[index];
10928
11088
  }
10929
11089
  };
10930
- CFG.DEBUG && console.log('Preloaded ' + me.__prefetchedData.length + ' records for multiEntry cursor');
11090
+ if (CFG.DEBUG) {
11091
+ console.log('Preloaded ' + me.__prefetchedData.length + ' records for multiEntry cursor');
11092
+ }
10931
11093
  me.__decode(rows[0], success);
10932
11094
  } else if (rows.length === 1) {
10933
- CFG.DEBUG && console.log('Reached end of multiEntry cursor');
11095
+ if (CFG.DEBUG) {
11096
+ console.log('Reached end of multiEntry cursor');
11097
+ }
10934
11098
  me.__decode(rows[0], success);
10935
11099
  } else {
10936
- CFG.DEBUG && console.log('Reached end of multiEntry cursor');
11100
+ if (CFG.DEBUG) {
11101
+ console.log('Reached end of multiEntry cursor');
11102
+ }
10937
11103
  success(undefined, undefined, undefined);
10938
11104
  }
10939
11105
  } else {
10940
- CFG.DEBUG && console.log('Reached end of multiEntry cursor');
11106
+ if (CFG.DEBUG) {
11107
+ console.log('Reached end of multiEntry cursor');
11108
+ }
10941
11109
  success(undefined, undefined, undefined);
10942
11110
  }
10943
11111
  }, function (tx, err) {
10944
- CFG.DEBUG && console.log('Could not execute Cursor.continue', sqlStr, sqlValues);
11112
+ if (CFG.DEBUG) {
11113
+ console.log('Could not execute Cursor.continue', sqlStr, sqlValues);
11114
+ }
10945
11115
  error(err);
10946
- return true;
11116
+ return false;
10947
11117
  });
10948
11118
  };
10949
11119
 
@@ -11032,7 +11202,7 @@
11032
11202
  var key = _decode(encKey, me.__multiEntryIndex);
11033
11203
  var val = me.__valueDecoder.decode(encVal);
11034
11204
  var primaryKey = _decode(encPrimaryKey);
11035
- callback(key, val, primaryKey, encKey /*, encVal, encPrimaryKey */);
11205
+ callback(key, val, primaryKey, encKey /* , encVal, encPrimaryKey */);
11036
11206
  };
11037
11207
 
11038
11208
  /**
@@ -11244,7 +11414,9 @@
11244
11414
  */
11245
11415
  IDBCursor.prototype.update = function (valueToUpdate) {
11246
11416
  var me = this;
11247
- if (!arguments.length) throw new TypeError('A value must be passed to update()');
11417
+ if (!arguments.length) {
11418
+ throw new TypeError('A value must be passed to update()');
11419
+ }
11248
11420
  IDBTransaction.__assertActive(me.__store.transaction);
11249
11421
  /** @type {import('./IDBTransaction.js').IDBTransactionFull} */
11250
11422
  me.__store.transaction.__assertWritable();
@@ -11298,28 +11470,29 @@
11298
11470
  if (me.__keyOnly) {
11299
11471
  throw createDOMException('InvalidStateError', 'This cursor method cannot be called when the key only flag has been set.');
11300
11472
  }
11301
- return (/** @type {import('./IDBTransaction.js').IDBTransactionFull} */this.__store.transaction.__addToTransactionQueue(function cursorDelete(tx, args, success, error) {
11302
- me.__find(undefined, undefined, tx, /** @type {KeySuccess} */
11303
- function (key, value, primaryKey) {
11304
- var sql = 'DELETE FROM ' + escapeStoreNameForSQL(me.__store.__currentName) + ' WHERE "key" = ?';
11305
- CFG.DEBUG && console.log(sql, key, primaryKey);
11306
- // Key.convertValueToKey(primaryKey); // Already checked when entered
11307
- tx.executeSql(sql, [escapeSQLiteStatement( /** @type {string} */_encode(primaryKey))], function (tx, data) {
11308
- if (data.rowsAffected === 1) {
11309
- // We don't invalidate the cache (as we don't access it anymore
11310
- // and it will set the index off)
11311
- success(undefined);
11312
- } else {
11313
- // @ts-expect-error Apparently ok
11314
- error('No rows with key found' + key);
11315
- }
11316
- }, function (tx, data) {
11317
- error(data);
11318
- return true;
11319
- });
11320
- }, error);
11321
- }, undefined, me)
11322
- );
11473
+ return /** @type {import('./IDBTransaction.js').IDBTransactionFull} */this.__store.transaction.__addToTransactionQueue(function cursorDelete(tx, args, success, error) {
11474
+ me.__find(undefined, undefined, tx, /** @type {KeySuccess} */
11475
+ function (key, value, primaryKey) {
11476
+ var sql = 'DELETE FROM ' + escapeStoreNameForSQL(me.__store.__currentName) + ' WHERE "key" = ?';
11477
+ if (CFG.DEBUG) {
11478
+ console.log(sql, key, primaryKey);
11479
+ }
11480
+ // Key.convertValueToKey(primaryKey); // Already checked when entered
11481
+ tx.executeSql(sql, [escapeSQLiteStatement( /** @type {string} */_encode(primaryKey))], function (tx, data) {
11482
+ if (data.rowsAffected === 1) {
11483
+ // We don't invalidate the cache (as we don't access it anymore
11484
+ // and it will set the index off)
11485
+ success(undefined);
11486
+ } else {
11487
+ // @ts-expect-error Apparently ok
11488
+ error('No rows with key found' + key);
11489
+ }
11490
+ }, function (tx, data) {
11491
+ error(data);
11492
+ return false;
11493
+ });
11494
+ }, error);
11495
+ }, undefined, me);
11323
11496
  };
11324
11497
  IDBCursor.prototype[Symbol.toStringTag] = 'IDBCursorPrototype';
11325
11498
  defineReadonlyOuterInterface(IDBCursor.prototype, ['source', 'direction', 'key', 'primaryKey', 'request']);
@@ -11517,8 +11690,7 @@
11517
11690
  }
11518
11691
  } else {
11519
11692
  var o = _defineAccessor("get", {}, name, function () {
11520
- return (/** @type {AnyFunction} */ /** @type {PropertyDescriptor} */propDesc.get.call(this)
11521
- );
11693
+ return /** @type {AnyFunction} */( /** @type {PropertyDescriptor} */propDesc.get).call(this);
11522
11694
  });
11523
11695
  desc = /** @type {PropertyDescriptor} */
11524
11696
  Object.getOwnPropertyDescriptor(o, name);
@@ -11533,7 +11705,9 @@
11533
11705
 
11534
11706
  // @ts-expect-error It's ok
11535
11707
  if (IDB[name] !== value) {
11536
- typeof console !== 'undefined' && console.warn && console.warn('Unable to shim ' + name);
11708
+ if (typeof console !== 'undefined' && console.warn) {
11709
+ console.warn('Unable to shim ' + name);
11710
+ }
11537
11711
  }
11538
11712
  }
11539
11713
  if (CFG.win.openDatabase !== undefined) {
@@ -11712,8 +11886,7 @@
11712
11886
  IDB.IDBCursor = IDB.IDBCursor || 'webkitIDBCursor' in IDB && IDB.webkitIDBCursor;
11713
11887
  IDB.IDBKeyRange = IDB.IDBKeyRange || 'webkitIDBKeyRange' in IDB && IDB.webkitIDBKeyRange;
11714
11888
  }
11715
- return (/** @type {ShimmedObject} */IDB
11716
- );
11889
+ return /** @type {ShimmedObject} */IDB;
11717
11890
  }
11718
11891
 
11719
11892
  /* eslint-env browser, worker */