indexeddbshim 17.3.3 → 17.4.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 (43) hide show
  1. package/README.md +3 -146
  2. package/dist/CFG.d.ts +1 -0
  3. package/dist/CFG.d.ts.map +1 -1
  4. package/dist/DOMException.d.ts +4 -4
  5. package/dist/DOMException.d.ts.map +1 -1
  6. package/dist/IDBFactory.d.ts.map +1 -1
  7. package/dist/IDBTransaction.d.ts +8 -6
  8. package/dist/IDBTransaction.d.ts.map +1 -1
  9. package/dist/Key.d.ts.map +1 -1
  10. package/dist/Sca.d.ts.map +1 -1
  11. package/dist/indexeddbshim-Key.js +54 -14
  12. package/dist/indexeddbshim-Key.js.map +1 -1
  13. package/dist/indexeddbshim-Key.min.js +2 -2
  14. package/dist/indexeddbshim-Key.min.js.map +1 -1
  15. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +212 -80
  16. package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
  17. package/dist/indexeddbshim-UnicodeIdentifiers.js +201 -79
  18. package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
  19. package/dist/indexeddbshim-UnicodeIdentifiers.min.js +3 -3
  20. package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
  21. package/dist/indexeddbshim-node.cjs +212 -80
  22. package/dist/indexeddbshim-node.cjs.map +1 -1
  23. package/dist/indexeddbshim-noninvasive.js +201 -79
  24. package/dist/indexeddbshim-noninvasive.js.map +1 -1
  25. package/dist/indexeddbshim-noninvasive.min.js +3 -3
  26. package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
  27. package/dist/indexeddbshim.js +201 -79
  28. package/dist/indexeddbshim.js.map +1 -1
  29. package/dist/indexeddbshim.min.js +3 -3
  30. package/dist/indexeddbshim.min.js.map +1 -1
  31. package/dist/nodeSQLiteDatabase.d.ts.map +1 -1
  32. package/dist/nodeWebSQL.d.ts.map +1 -1
  33. package/package.json +8 -9
  34. package/src/CFG.js +2 -0
  35. package/src/DOMException.js +21 -21
  36. package/src/IDBFactory.js +88 -39
  37. package/src/IDBObjectStore.js +1 -1
  38. package/src/IDBTransaction.js +7 -1
  39. package/src/Key.js +34 -12
  40. package/src/Sca.js +53 -3
  41. package/src/nodeSQLiteDatabase.js +10 -1
  42. package/src/nodeWebSQL.js +3 -0
  43. package/src/setGlobalVars.js +3 -3
@@ -1,3 +1,3 @@
1
- /*! indexeddbshim - v17.3.3 - 8/25/2026 */
2
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).IDBKeyUtils={})}(this,function(e){"use strict";function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function t(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))||r){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw o}}}}function n(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,u=[],c=!0,l=!1;try{if(o=(t=t.call(e)).next,0===r);else for(;!(c=(n=o.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw a}}return u}}(e,r)||u(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}var c={},l={};function s(e,r){return new DOMException.prototype.constructor(r,e||"DOMException")}["DEBUG","cacheDatabaseInstances","autoName","fullIDLSupport","checkOrigin","cursorPreloadPackSize","UnicodeIDStart","UnicodeIDContinue","registerSCA","avoidAutoShim","win","DEFAULT_DB_SIZE","useSQLiteIndexes","fs","addNonIDBGlobals","replaceNonIDBGlobals","escapeDatabaseName","unescapeDatabaseName","databaseCharacterEscapeList","databaseNameLengthLimit","escapeNFDForDatabaseNames","addSQLiteExtension",["memoryDatabase",function(e){if(!/^(?::memory:|file::memory:(\?(?:[\0-"\$-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?(#(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?)?$/.test(e))throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a "file::memory:[?queryString][#hash] URL".')}],"deleteDatabaseFiles","databaseBasePath","sysDatabaseBasePath","sqlBusyTimeout","sqlTrace","sqlProfile","escapeNULForSQLiteStatements","createIndexes"].forEach(function(e){var r;if(Array.isArray(e)){var t=n(e,2);e=t[0],r=t[1]}Object.defineProperty(l,e,{get:function(){return c[e]},set:function(t){r&&r(t),c[e]=t}})});var f={IndexSizeError:1,HierarchyRequestError:3,WrongDocumentError:4,InvalidCharacterError:5,NoModificationAllowedError:7,NotFoundError:8,NotSupportedError:9,InUseAttributeError:10,InvalidStateError:11,SyntaxError:12,InvalidModificationError:13,NamespaceError:14,InvalidAccessError:15,TypeMismatchError:17,SecurityError:18,NetworkError:19,AbortError:20,URLMismatchError:21,QuotaExceededError:22,TimeoutError:23,InvalidNodeTypeError:24,DataCloneError:25,EncodingError:0,NotReadableError:0,UnknownError:0,ConstraintError:0,DataError:0,TransactionInactiveError:0,ReadOnlyError:0,VersionError:0,OperationError:0,NotAllowedError:0},y={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};var d=function(){function e(e,r){this[Symbol.toStringTag]="DOMException",this._code=Object.hasOwn(f,r)?f[r]:y[r]||0,this._name=r||"Error",this._message=void 0===e?"":""+e,Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,writable:!0,value:this._code}),void 0!==r&&Object.defineProperty(this,"name",{configurable:!0,enumerable:!0,writable:!0,value:this._name}),void 0!==e&&Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,writable:!0,value:this._message})}var r=function(){};return r.prototype=Object.create(Error.prototype),["name","message"].forEach(function(t){Object.defineProperty(r.prototype,t,{enumerable:!0,get:function(){if(!(this instanceof e||this instanceof r||this instanceof Error))throw new TypeError("Illegal invocation");return this["name"===t?"_name":"_message"]}})}),Object.defineProperty(r.prototype,"code",{configurable:!0,enumerable:!0,get:function(){throw new TypeError("Illegal invocation")}}),e.prototype=new r,e.prototype[Symbol.toStringTag]="DOMExceptionPrototype",Object.defineProperty(e,"prototype",{writable:!1}),Object.keys(f).forEach(function(r){Object.defineProperty(e.prototype,r,{enumerable:!0,configurable:!1,value:f[r]}),Object.defineProperty(e,r,{enumerable:!0,configurable:!1,value:f[r]})}),Object.keys(y).forEach(function(r){Object.defineProperty(e.prototype,r,{enumerable:!0,configurable:!1,value:y[r]}),Object.defineProperty(e,r,{enumerable:!0,configurable:!1,value:y[r]})}),Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),e}();function p(e,r,t){if(l.DEBUG){var n=t&&"object"===i(t)&&t.message?t.message:t,a="function"==typeof console.error?"error":"log";console[a](e+": "+r+". "+(n||"")),console.trace&&console.trace()}}var v,b,m=!1;try{v=s("test name","test message"),(b=v)&&"object"===i(b)&&"string"==typeof b.name&&"test name"===v.name&&"test message"===v.message&&(m=!0)}catch(e){}var F,D,E=m?function(e,r,t){return p(e,r,t),s(e,r)}:function(e,r,t){return p(e,r,t),function(e,r){return new d(r,e)}(e,r)};function h(e){var r=e.replaceAll("^","^^");return function(e){return e.replaceAll(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))((?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,function(e,r,t,n){return r?"^2"+r.codePointAt().toString(16).padStart(4,"0"):(t||"")+"^3"+n.codePointAt().toString(16).padStart(4,"0")})}(!1===l.escapeNULForSQLiteStatements?r:r.replaceAll("\0","^0"))}function g(e){return null!==e&&"object"===i(e)}function N(e){return null==e}function O(e,r){var t=H(e),n=H(r),a=t>n?1:t===n?0:-1;if(l.DEBUG){var o=q(t),u=q(n);"object"===i(e)&&(e=JSON.stringify(e),o=JSON.stringify(o)),"object"===i(r)&&(r=JSON.stringify(r),u=JSON.stringify(u)),o!==e&&console.warn(e+" was incorrectly encoded as "+o),u!==r&&console.warn(r+" was incorrectly encoded as "+u)}return a}var A={invalid:100,number:200,date:300,string:400,binary:500,array:600},S=Object.keys(A);S.forEach(function(e){A[e]=String.fromCodePoint(A[e])});var w=S.reduce(function(e,r){return e[A[r]]=r,e},{}),I=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],R={invalid:{encode:function(){return A.invalid+"-"},decode:function(){}},number:{encode:function(e){var r,t,n,a=e===Number.MIN_VALUE?"0."+"0".repeat(214)+"2":Math.abs(e).toString(32),o=a.indexOf("."),i=(a=-1!==o?a.replace(".",""):a).search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);return a=a.slice(i),Number.isFinite(Number(e))?e<0?(e>-1?(r=I.indexOf("smallNegative"),t=_(i)):(r=I.indexOf("bigNegative"),t=C(_(-1!==o?o:a.length))),n=C(T(a))):e<1?(r=I.indexOf("smallPositive"),t=C(_(i)),n=T(a)):(r=I.indexOf("bigPositive"),t=_(-1!==o?o:a.length),n=T(a)):(t=j(2),n=j(11),r=I.indexOf(e>0?"positiveInfinity":"negativeInfinity")),A.number+"-"+r+t+n},decode:function(e){var r=Number(e.slice(2,3)),t=e.slice(3,5),n=e.slice(5,16);switch(I[r]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return B(n,t);case"smallPositive":return B(n,t=L(C(t)));case"smallNegative":return t=L(t),-B(n=C(n),t);case"bigNegative":return t=C(t),-B(n=C(n),t);default:throw new Error("Invalid number.")}}},string:{encode:function(e,r){return r&&(e=e.replaceAll(/((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,"-$1")+" "),A.string+"-"+e},decode:function(e,r){return e=e.slice(2),r&&(e=e.slice(0,-1).replaceAll(/-((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,"$1")),e}},array:{encode:function(e){var r,o=[],i=t(e.entries());try{for(i.s();!(r=i.n()).done;){var u=n(r.value,2),c=u[0],s=H(u[1],!0);o[c]=s}}catch(e){i.e(e)}finally{i.f()}o.push(A.invalid+"-");var f=JSON.stringify(o);return!1===l.escapeNULForSQLiteStatements&&(f=f.replaceAll(String.raw(F||(F=a(["\0"],["\\u0000"]))),"\0")),A.array+"-"+f},decode:function(e){var r=e.slice(2);!1===l.escapeNULForSQLiteStatements&&(r=r.replaceAll("\0",String.raw(D||(D=a(["\0"],["\\u0000"])))));var t=JSON.parse(r);t.pop();for(var n=0;n<t.length;n++){var o=q(t[n],!0);t[n]=o}return t}},date:{encode:function(e){return A.date+"-"+e.toJSON()},decode:function(e){return new Date(e.slice(2))}},binary:{encode:function(e){return A.binary+"-"+(e.byteLength?o(x(e)).map(function(e){return String(e).padStart(3,"0")}):"")},decode:function(e){var r=e.slice(2),t=r.length?r.split(",").map(Number):[],n=new ArrayBuffer(t.length);return new Uint8Array(n).set(t),n}}};function _(e){var r=e.toString(32);return 1===r.length?"0"+r:r}function T(e){return(e+j(11)).slice(0,11)}function C(e){var r,n="",a=t(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;n+=(31-Number.parseInt(o,32)).toString(32)}}catch(e){a.e(e)}finally{a.f()}return n}function B(e,r){var t=Number.parseInt(r,32);if(t<0)return P(Number.parseInt(e,32)*Math.pow(32,t-10));if(t<11){var n=e.slice(0,t),a=Number.parseInt(n,32),o=e.slice(t);return P(a+Number.parseInt(o,32)*Math.pow(32,t-11))}var i=e+j(t-11);return Number.parseInt(i,32)}function P(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return Number(e.toPrecision(r))}function j(e){return"0".repeat(e)}function L(e){return"-"+e}function M(e){if(Array.isArray(e))return"array";if(function(e){return g(e)&&"getDate"in e&&"function"==typeof e.getDate}(e))return"date";if(function(e){return g(e)&&"byteLength"in e&&"number"==typeof e.byteLength&&("slice"in e&&"function"==typeof e.slice||"getFloat64"in e&&"function"==typeof e.getFloat64)}(e))return"binary";var r=i(e);return["string","number"].includes(r)?r:"invalid"}function U(e,r){return V(e,r,!1,!0)}function x(e){var r,t=0;if(ArrayBuffer.isView(e)){if(void 0===e.buffer)throw new TypeError("Could not copy the bytes held by a buffer source as the buffer was undefined.");t=e.byteOffset,r=e.byteLength}else r=e.byteLength;return new Uint8Array("buffer"in e&&e.buffer||e,t,r)}function V(e,r,t,n){if(r||(r=[]),r.includes(e))return{type:"array",invalid:!0,message:"An array key cannot be circular"};var a=M(e),o={type:a,value:e};switch(a){case"number":return Number.isNaN(e)?{type:"NaN",invalid:!0}:Object.is(e,-0)?{type:a,value:0}:o;case"string":return o;case"binary":var u;try{u=x(e)}catch(e){return{type:a,invalid:!0,message:"Could not read the buffer source (it may be detached)"}}return{type:"binary",value:u};case"array":var c=e,l=c.length;r.push(e);for(var s,f=[],y=function(){if(!t&&!Object.hasOwn(c,d))return{v:{type:a,invalid:!0,message:"Does not have own index property"}};try{var e=V(c[d],r,!1,n);if(e.invalid)return t?0:{v:{type:a,invalid:!0,message:"Bad array entry value-to-key conversion"}};(!t||!n&&f.every(function(r){return 0!==O(r,e.value)})||n&&f.every(function(r){return 0!==O(r,e)}))&&f.push(n?e:e.value)}catch(e){if(!t)throw e}},d=0;d<l;d++)if(0!==(s=y())&&s)return s.v;return{type:a,value:f};case"date":var p=e;return Number.isNaN(p.getTime())?{type:a,invalid:!0,message:"Not a valid date"}:n?{type:a,value:p.getTime()}:{type:a,value:new Date(p)};default:var v=null===e?"null":i(e);return{type:v,invalid:!0,message:"Not a valid key; type "+v}}}function K(e,r){return V(e,null,!0,r)}function k(e,r,t,n){var a=G(e,r);return a.failure?a:t?K(a.value,n):V(a.value,null,!1,n)}function G(e,r,t,n){if(Array.isArray(r)){var a=[];return r.some(function(r){var t=G(e,r);return!!t.failure||(a.push(t.value),!1)})?{failure:!0}:{value:a}}return""===r?{value:e}:r.split(".").some(function(r){if("length"!==r||"string"!=typeof e&&!Array.isArray(e))if(function(e){return g(e)&&"size"in e&&"number"==typeof e.size&&"slice"in e&&"function"==typeof e.slice&&!("lastModified"in e)}(e))switch(r){case"size":case"type":e=e[r]}else{if(!function(e){return g(e)&&"name"in e&&"string"==typeof e.name&&"slice"in e&&"function"==typeof e.slice&&"lastModified"in e}(e))return!g(e)||!Object.hasOwn(e,r)||void 0===(e=e[r]);switch(r){case"name":case"lastModified":e=e[r];break;case"lastModifiedDate":e=new Date(e.lastModified)}}else e=e.length;return!1})?{failure:!0}:{value:e}}function Q(e,r,t){var n=void 0===r.lower,a=void 0===r.upper,o=H(e,!0),i=t?r.__lowerCached:H(r.lower,!0),u=t?r.__upperCached:H(r.upper,!0);return!n&&(r.lowerOpen&&null!==o&&null!==i&&o>i||!r.lowerOpen&&(!o&&!i||null!==o&&null!==i&&o>=i))&&(n=!0),!a&&(r.upperOpen&&null!==o&&null!==u&&o<u||!r.upperOpen&&(!o&&!u||null!==o&&null!==u&&o<=u))&&(a=!0),n&&a}function H(e,r){return void 0===e?null:R[M(e)].encode(e,r)}function q(e,r){if("string"==typeof e)return R[w[e.slice(0,1)]].decode(e,r)}var z=9007199254740992;function J(e,r,t,n){e.executeSql('SELECT "currNum" FROM __sys__ WHERE "name" = ?',[h(r.__currentName)],function(e,r){1!==r.rows.length?t(1):t(r.rows.item(0).currNum)},function(e,r){return n(E("DataError","Could not get the auto increment value for key",r)),!1})}function W(e,r,t,n,a){var o='UPDATE __sys__ SET "currNum" = ? WHERE "name" = ?',i=[t,h(r.__currentName)];l.DEBUG&&console.log(o,i),e.executeSql(o,i,function(){n(t)},function(e,r){return a(E("UnknownError","Could not set the auto increment value for key",r)),!1})}function Y(e,r,t,n,a){return W(e,r,t+=t===z?2:1,n,a)}e.assignCurrentNumber=W,e.checkKeyCouldBeInjectedIntoValue=function(e,r){var n=r.split(".");n.pop();var a,o=t(n);try{for(o.s();!(a=o.n()).done;){var i=a.value;if(!g(e))return!1;if(!Object.hasOwn(e,i))return!0;e=e[i]}}catch(e){o.e(e)}finally{o.f()}return g(e)},e.convertKeyToValue=function e(r){var t=r.type,n=r.value;switch(t){case"number":case"string":return n;case"array":for(var a=[],o=n.length,i=0;i<o;){var u=e(n[i]);a[i]=u,i++}return a;case"date":return new Date(n);case"binary":var c=n.length,l=new ArrayBuffer(c);return new Uint8Array(l,n.byteOffset||0,n.byteLength).set(n),l;default:throw new Error("Bad key")}},e.convertValueToKey=U,e.convertValueToKeyRethrowingAndIfInvalid=function(e,r){var t=U(e,r);if(t.invalid)throw E("DataError",t.message||"Not a valid key; type: "+t.type);return t},e.convertValueToKeyValueDecoded=V,e.convertValueToMultiEntryKey=function(e){return V(e,null,!0,!0)},e.convertValueToMultiEntryKeyDecoded=K,e.decode=q,e.encode=H,e.evaluateKeyPathOnValue=function(e,r,t){return G(e,r)},e.extractKeyFromValueUsingKeyPath=function(e,r,t){return k(e,r,t,!0)},e.extractKeyValueDecodedFromValueUsingKeyPath=k,e.findMultiEntryMatches=function e(r,n){var a=[];if(Array.isArray(r)){var o,i=t(r);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(Array.isArray(u)){if(n&&n.lower===n.upper)continue;if(1!==u.length){e(u,n).length>0&&a.push(u);continue}u=u[0]}(N(n)||Q(u,n,!0))&&a.push(u)}}catch(e){i.e(e)}finally{i.f()}}else(N(n)||Q(r,n,!0))&&a.push(r);return a},e.generateKeyForStore=function(e,r,t,n){J(e,r,function(a){a>z?t("failure"):Y(e,r,a,function(){t(null,a,a)},n)},n)},e.injectKeyIntoValueUsingKeyPath=function(e,r,t){var n=t.split("."),a=n.pop();n.forEach(function(r){Object.hasOwn(e,r)||(e[r]={}),e=e[r]}),e[a]=r},e.isKeyInRange=Q,e.isMultiEntryMatch=function(e,r){return"array"===w[r.slice(0,1)]?r.indexOf(e)>1:r===e},e.possiblyUpdateKeyGenerator=function(e,r,t,n,a){"number"!=typeof t||t<1?n():J(e,r,function(o){var i=Math.floor(Math.min(t,z));i>=o?Y(e,r,i,function(){n(o)},a):n()},a)},e.roundTrip=function(e,r){return q(H(e,r),r)}});
1
+ /*! indexeddbshim - v17.4.0 - 8/27/2026 */
2
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).IDBKeyUtils={})}(this,function(e){"use strict";function r(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}function t(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=u(e))||r){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,c=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){c=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(c)throw o}}}}function n(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,i,u=[],c=!0,l=!1;try{if(o=(t=t.call(e)).next,0===r);else for(;!(c=(n=o.call(t)).done)&&(u.push(n.value),u.length!==r);c=!0);}catch(e){l=!0,a=e}finally{try{if(!c&&null!=t.return&&(i=t.return(),Object(i)!==i))return}finally{if(l)throw a}}return u}}(e,r)||u(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}function o(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||u(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function u(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}var c={},l={};function f(e,r){return new DOMException.prototype.constructor(r,e||"DOMException")}["DEBUG","cacheDatabaseInstances","autoName","fullIDLSupport","checkOrigin","cursorPreloadPackSize","UnicodeIDStart","UnicodeIDContinue","registerSCA","avoidAutoShim","win","DEFAULT_DB_SIZE","useSQLiteIndexes","fs","addNonIDBGlobals","replaceNonIDBGlobals","escapeDatabaseName","unescapeDatabaseName","databaseCharacterEscapeList","databaseNameLengthLimit","escapeNFDForDatabaseNames","addSQLiteExtension",["memoryDatabase",function(e){if(!/^(?::memory:|file::memory:(\?(?:[\0-"\$-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?(#(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?)?$/.test(e))throw new TypeError('`memoryDatabase` must be the empty string, ":memory:", or a "file::memory:[?queryString][#hash] URL".')}],"deleteDatabaseFiles","databaseBasePath","sysDatabaseBasePath","sqlBusyTimeout","sqlTrace","sqlProfile","escapeNULForSQLiteStatements","sqlMemoryQuota","createIndexes"].forEach(function(e){var r;if(Array.isArray(e)){var t=n(e,2);e=t[0],r=t[1]}Object.defineProperty(l,e,{get:function(){return c[e]},set:function(t){r&&r(t),c[e]=t}})});var s={IndexSizeError:1,HierarchyRequestError:3,WrongDocumentError:4,InvalidCharacterError:5,NoModificationAllowedError:7,NotFoundError:8,NotSupportedError:9,InUseAttributeError:10,InvalidStateError:11,SyntaxError:12,InvalidModificationError:13,NamespaceError:14,InvalidAccessError:15,TypeMismatchError:17,SecurityError:18,NetworkError:19,AbortError:20,URLMismatchError:21,QuotaExceededError:22,TimeoutError:23,InvalidNodeTypeError:24,DataCloneError:25,EncodingError:0,NotReadableError:0,UnknownError:0,ConstraintError:0,DataError:0,TransactionInactiveError:0,ReadOnlyError:0,VersionError:0,OperationError:0,NotAllowedError:0},y={INDEX_SIZE_ERR:1,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:3,WRONG_DOCUMENT_ERR:4,INVALID_CHARACTER_ERR:5,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:7,NOT_FOUND_ERR:8,NOT_SUPPORTED_ERR:9,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:11,SYNTAX_ERR:12,INVALID_MODIFICATION_ERR:13,NAMESPACE_ERR:14,INVALID_ACCESS_ERR:15,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:17,SECURITY_ERR:18,NETWORK_ERR:19,ABORT_ERR:20,URL_MISMATCH_ERR:21,QUOTA_EXCEEDED_ERR:22,TIMEOUT_ERR:23,INVALID_NODE_TYPE_ERR:24,DATA_CLONE_ERR:25};var d=function(){function e(e,r){this[Symbol.toStringTag]="DOMException",this._code=Object.hasOwn(s,r)?s[r]:y[r]||0,this._name=r||"Error",this._message=void 0===e?"":""+e,Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,writable:!0,value:this._code}),void 0!==r&&Object.defineProperty(this,"name",{configurable:!0,enumerable:!0,writable:!0,value:this._name}),void 0!==e&&Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,writable:!0,value:this._message})}var r=function(){};return r.prototype=Object.create(Error.prototype),["name","message"].forEach(function(t){Object.defineProperty(r.prototype,t,{enumerable:!0,get:function(){if(!(this instanceof e||this instanceof r||this instanceof Error))throw new TypeError("Illegal invocation");return this["name"===t?"_name":"_message"]}})}),Object.defineProperty(r.prototype,"code",{configurable:!0,enumerable:!0,get:function(){throw new TypeError("Illegal invocation")}}),e.prototype=new r,e.prototype[Symbol.toStringTag]="DOMExceptionPrototype",Object.defineProperty(e,"prototype",{writable:!1}),Object.keys(s).forEach(function(r){Object.defineProperty(e.prototype,r,{enumerable:!0,configurable:!1,value:s[r]}),Object.defineProperty(e,r,{enumerable:!0,configurable:!1,value:s[r]})}),Object.keys(y).forEach(function(r){Object.defineProperty(e.prototype,r,{enumerable:!0,configurable:!1,value:y[r]}),Object.defineProperty(e,r,{enumerable:!0,configurable:!1,value:y[r]})}),Object.defineProperty(e.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:e}),e}();function p(e,r,t){if(l.DEBUG){var n=t&&"object"===i(t)&&t.message?t.message:t,a="function"==typeof console.error?"error":"log";console[a](e+": "+r+". "+(n||"")),console.trace&&console.trace()}}var v,b,m=!1;try{v=f("test name","test message"),(b=v)&&"object"===i(b)&&"string"==typeof b.name&&"test name"===v.name&&"test message"===v.message&&(m=!0)}catch(e){}var F,D,E=m?function(e,r,t){return p(e,r,t),f(e,r)}:function(e,r,t){return p(e,r,t),function(e,r){return new d(r,e)}(e,r)};function g(e){var r=e.replaceAll("^","^^");return function(e){return e.replaceAll(/((?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])))(?!(?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))|(^|(?:[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))((?:(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,function(e,r,t,n){return r?"^2"+r.codePointAt().toString(16).padStart(4,"0"):(t||"")+"^3"+n.codePointAt().toString(16).padStart(4,"0")})}(!1===l.escapeNULForSQLiteStatements?r:r.replaceAll("\0","^0"))}function h(e){return null!==e&&"object"===i(e)}function N(e){return null==e}function O(e,r){var t=z(e),n=z(r),a=t>n?1:t===n?0:-1;if(l.DEBUG){var o=J(t),u=J(n);"object"===i(e)&&(e=JSON.stringify(e),o=JSON.stringify(o)),"object"===i(r)&&(r=JSON.stringify(r),u=JSON.stringify(u)),o!==e&&console.warn(e+" was incorrectly encoded as "+o),u!==r&&console.warn(r+" was incorrectly encoded as "+u)}return a}var A=function(e,r,t){Reflect.has(Array.prototype,r)?Object.defineProperty(e,r,{value:t,enumerable:!0,writable:!0,configurable:!0}):e[r]=t},w=function(e,r){return A(e,e.length,r)},S={invalid:100,number:200,date:300,string:400,binary:500,array:600},I=Object.keys(S);I.forEach(function(e){S[e]=String.fromCodePoint(S[e])});var R=I.reduce(function(e,r){return e[S[r]]=r,e},{}),_=["negativeInfinity","bigNegative","smallNegative","smallPositive","bigPositive","positiveInfinity"],T={invalid:{encode:function(){return S.invalid+"-"},decode:function(){}},number:{encode:function(e){var r,t,n,a=e===Number.MIN_VALUE?"0."+"0".repeat(214)+"2":Math.abs(e).toString(32),o=a.indexOf("."),i=(a=-1!==o?a.replace(".",""):a).search(/(?:[\0-\/1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/);return a=a.slice(i),Number.isFinite(Number(e))?e<0?(e>-1?(r=_.indexOf("smallNegative"),t=C(i)):(r=_.indexOf("bigNegative"),t=P(C(-1!==o?o:a.length))),n=P(B(a))):e<1?(r=_.indexOf("smallPositive"),t=P(C(i)),n=B(a)):(r=_.indexOf("bigPositive"),t=C(-1!==o?o:a.length),n=B(a)):(t=L(2),n=L(11),r=_.indexOf(e>0?"positiveInfinity":"negativeInfinity")),S.number+"-"+r+t+n},decode:function(e){var r=Number(e.slice(2,3)),t=e.slice(3,5),n=e.slice(5,16);switch(_[r]){case"negativeInfinity":return-1/0;case"positiveInfinity":return 1/0;case"bigPositive":return j(n,t);case"smallPositive":return j(n,t=U(P(t)));case"smallNegative":return t=U(t),-j(n=P(n),t);case"bigNegative":return t=P(t),-j(n=P(n),t);default:throw new Error("Invalid number.")}}},string:{encode:function(e,r){return r&&(e=e.replaceAll(/((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,"-$1")+" "),S.string+"-"+e},decode:function(e,r){return e=e.slice(2),r&&(e=e.slice(0,-1).replaceAll(/-((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]))/g,"$1")),e}},array:{encode:function(e){var r,o=[],i=t(e.entries());try{for(i.s();!(r=i.n()).done;){var u=n(r.value,2),c=u[0],f=z(u[1],!0);A(o,c,f)}}catch(e){i.e(e)}finally{i.f()}w(o,S.invalid+"-");var s=JSON.stringify(o);return!1===l.escapeNULForSQLiteStatements&&(s=s.replaceAll(String.raw(F||(F=a(["\0"],["\\u0000"]))),"\0")),S.array+"-"+s},decode:function(e){var r=e.slice(2);!1===l.escapeNULForSQLiteStatements&&(r=r.replaceAll("\0",String.raw(D||(D=a(["\0"],["\\u0000"])))));var t=JSON.parse(r);t.pop();for(var n=0;n<t.length;n++){var o=J(t[n],!0);A(t,n,o)}return t}},date:{encode:function(e){return S.date+"-"+e.toJSON()},decode:function(e){return new Date(e.slice(2))}},binary:{encode:function(e){return S.binary+"-"+(e.byteLength?o(K(e)).map(function(e){return String(e).padStart(3,"0")}):"")},decode:function(e){var r=e.slice(2),t=r.length?r.split(",").map(Number):[],n=new ArrayBuffer(t.length);return new Uint8Array(n).set(t),n}}};function C(e){var r=e.toString(32);return 1===r.length?"0"+r:r}function B(e){return(e+L(11)).slice(0,11)}function P(e){var r,n="",a=t(e);try{for(a.s();!(r=a.n()).done;){var o=r.value;n+=(31-Number.parseInt(o,32)).toString(32)}}catch(e){a.e(e)}finally{a.f()}return n}function j(e,r){var t=Number.parseInt(r,32);if(t<0)return M(Number.parseInt(e,32)*Math.pow(32,t-10));if(t<11){var n=e.slice(0,t),a=Number.parseInt(n,32),o=e.slice(t);return M(a+Number.parseInt(o,32)*Math.pow(32,t-11))}var i=e+L(t-11);return Number.parseInt(i,32)}function M(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16;return Number(e.toPrecision(r))}function L(e){return"0".repeat(e)}function U(e){return"-"+e}function x(e){if(Array.isArray(e))return"array";if(function(e){return h(e)&&"getDate"in e&&"function"==typeof e.getDate}(e))return"date";if(function(e){return h(e)&&"byteLength"in e&&"number"==typeof e.byteLength&&("slice"in e&&"function"==typeof e.slice||"getFloat64"in e&&"function"==typeof e.getFloat64)}(e))return"binary";var r=i(e);return["string","number"].includes(r)?r:"invalid"}function V(e,r){return k(e,r,!1,!0)}function K(e){var r,t=0;if(ArrayBuffer.isView(e)){if(void 0===e.buffer)throw new TypeError("Could not copy the bytes held by a buffer source as the buffer was undefined.");t=e.byteOffset,r=e.byteLength}else r=e.byteLength;return new Uint8Array("buffer"in e&&e.buffer||e,t,r)}function k(e,r,t,n){if(r||(r=[]),r.includes(e))return{type:"array",invalid:!0,message:"An array key cannot be circular"};var a=x(e),o={type:a,value:e};switch(a){case"number":return Number.isNaN(e)?{type:"NaN",invalid:!0}:Object.is(e,-0)?{type:a,value:0}:o;case"string":return o;case"binary":var u;try{u=K(e)}catch(e){return{type:a,invalid:!0,message:"Could not read the buffer source (it may be detached)"}}return{type:"binary",value:u};case"array":var c=e,l=c.length;w(r,e);for(var f,s=[],y=function(){if(!t&&!Object.hasOwn(c,d))return{v:{type:a,invalid:!0,message:"Does not have own index property"}};try{var e=k(c[d],r,!1,n);if(e.invalid)return t?0:{v:{type:a,invalid:!0,message:"Bad array entry value-to-key conversion"}};(!t||!n&&s.every(function(r){return 0!==O(r,e.value)})||n&&s.every(function(r){return 0!==O(r,e)}))&&w(s,n?e:e.value)}catch(e){if(!t)throw e}},d=0;d<l;d++)if(0!==(f=y())&&f)return f.v;return{type:a,value:s};case"date":var p=e;return Number.isNaN(p.getTime())?{type:a,invalid:!0,message:"Not a valid date"}:n?{type:a,value:p.getTime()}:{type:a,value:new Date(p)};default:var v=null===e?"null":i(e);return{type:v,invalid:!0,message:"Not a valid key; type "+v}}}function Q(e,r){return k(e,null,!0,r)}function G(e,r,t,n){var a=q(e,r);return a.failure?a:t?Q(a.value,n):k(a.value,null,!1,n)}function q(e,r,t,n){if(Array.isArray(r)){var a=[];return r.some(function(r){var t=q(e,r);return!!t.failure||(w(a,t.value),!1)})?{failure:!0}:{value:a}}return""===r?{value:e}:r.split(".").some(function(r){if("length"!==r||"string"!=typeof e&&!Array.isArray(e))if(function(e){return h(e)&&"size"in e&&"number"==typeof e.size&&"slice"in e&&"function"==typeof e.slice&&!("lastModified"in e)}(e))switch(r){case"size":case"type":e=e[r]}else{if(!function(e){return h(e)&&"name"in e&&"string"==typeof e.name&&"slice"in e&&"function"==typeof e.slice&&"lastModified"in e}(e))return!h(e)||!Object.hasOwn(e,r)||void 0===(e=e[r]);switch(r){case"name":case"lastModified":e=e[r];break;case"lastModifiedDate":e=new Date(e.lastModified)}}else e=e.length;return!1})?{failure:!0}:{value:e}}function H(e,r,t){var n=void 0===r.lower,a=void 0===r.upper,o=z(e,!0),i=t?r.__lowerCached:z(r.lower,!0),u=t?r.__upperCached:z(r.upper,!0);return!n&&(r.lowerOpen&&null!==o&&null!==i&&o>i||!r.lowerOpen&&(!o&&!i||null!==o&&null!==i&&o>=i))&&(n=!0),!a&&(r.upperOpen&&null!==o&&null!==u&&o<u||!r.upperOpen&&(!o&&!u||null!==o&&null!==u&&o<=u))&&(a=!0),n&&a}function z(e,r){return void 0===e?null:T[x(e)].encode(e,r)}function J(e,r){if("string"==typeof e)return T[R[e.slice(0,1)]].decode(e,r)}var W=9007199254740992;function Y(e,r,t,n){e.executeSql('SELECT "currNum" FROM __sys__ WHERE "name" = ?',[g(r.__currentName)],function(e,r){1!==r.rows.length?t(1):t(r.rows.item(0).currNum)},function(e,r){return n(E("DataError","Could not get the auto increment value for key",r)),!1})}function $(e,r,t,n,a){var o='UPDATE __sys__ SET "currNum" = ? WHERE "name" = ?',i=[t,g(r.__currentName)];l.DEBUG&&console.log(o,i),e.executeSql(o,i,function(){n(t)},function(e,r){return a(E("UnknownError","Could not set the auto increment value for key",r)),!1})}function X(e,r,t,n,a){return $(e,r,t+=t===W?2:1,n,a)}e.assignCurrentNumber=$,e.checkKeyCouldBeInjectedIntoValue=function(e,r){var n=r.split(".");n.pop();var a,o=t(n);try{for(o.s();!(a=o.n()).done;){var i=a.value;if(!h(e))return!1;if(!Object.hasOwn(e,i))return!0;e=e[i]}}catch(e){o.e(e)}finally{o.f()}return h(e)},e.convertKeyToValue=function e(r){var t=r.type,n=r.value;switch(t){case"number":case"string":return n;case"array":for(var a=[],o=n.length,i=0;i<o;){var u=e(n[i]);A(a,i,u),i++}return a;case"date":return new Date(n);case"binary":var c=n.length,l=new ArrayBuffer(c);return new Uint8Array(l,n.byteOffset||0,n.byteLength).set(n),l;default:throw new Error("Bad key")}},e.convertValueToKey=V,e.convertValueToKeyRethrowingAndIfInvalid=function(e,r){var t=V(e,r);if(t.invalid)throw E("DataError",t.message||"Not a valid key; type: "+t.type);return t},e.convertValueToKeyValueDecoded=k,e.convertValueToMultiEntryKey=function(e){return k(e,null,!0,!0)},e.convertValueToMultiEntryKeyDecoded=Q,e.decode=J,e.encode=z,e.evaluateKeyPathOnValue=function(e,r,t){return q(e,r)},e.extractKeyFromValueUsingKeyPath=function(e,r,t){return G(e,r,t,!0)},e.extractKeyValueDecodedFromValueUsingKeyPath=G,e.findMultiEntryMatches=function e(r,n){var a=[];if(Array.isArray(r)){var o,i=t(r);try{for(i.s();!(o=i.n()).done;){var u=o.value;if(Array.isArray(u)){if(n&&n.lower===n.upper)continue;if(1!==u.length){e(u,n).length>0&&w(a,u);continue}u=u[0]}(N(n)||H(u,n,!0))&&w(a,u)}}catch(e){i.e(e)}finally{i.f()}}else(N(n)||H(r,n,!0))&&w(a,r);return a},e.generateKeyForStore=function(e,r,t,n){Y(e,r,function(a){a>W?t("failure"):X(e,r,a,function(){t(null,a,a)},n)},n)},e.injectKeyIntoValueUsingKeyPath=function(e,r,t){var n=t.split("."),a=n.pop();n.forEach(function(r){Object.hasOwn(e,r)||Object.defineProperty(e,r,{value:{},enumerable:!0,writable:!0,configurable:!0}),e=e[r]}),Object.defineProperty(e,a,{value:r,enumerable:!0,writable:!0,configurable:!0})},e.isKeyInRange=H,e.isMultiEntryMatch=function(e,r){return"array"===R[r.slice(0,1)]?r.indexOf(e)>1:r===e},e.possiblyUpdateKeyGenerator=function(e,r,t,n,a){"number"!=typeof t||t<1?n():Y(e,r,function(o){var i=Math.floor(Math.min(t,W));i>=o?X(e,r,i,function(){n(o)},a):n()},a)},e.roundTrip=function(e,r){return J(z(e,r),r)}});
3
3
  //# sourceMappingURL=indexeddbshim-Key.min.js.map