indexeddbshim 19.0.2 → 19.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/badges/licenses-badge-dev.svg +1 -1
- package/badges/licenses-badge.svg +1 -1
- package/dist/indexeddbshim-Key.js +1 -1
- package/dist/indexeddbshim-Key.min.js +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs +44 -54
- package/dist/indexeddbshim-UnicodeIdentifiers-node.cjs.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.js +46 -56
- package/dist/indexeddbshim-UnicodeIdentifiers.js.map +1 -1
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js +3 -3
- package/dist/indexeddbshim-UnicodeIdentifiers.min.js.map +1 -1
- package/dist/indexeddbshim-node.cjs +44 -54
- package/dist/indexeddbshim-node.cjs.map +1 -1
- package/dist/indexeddbshim-noninvasive.js +46 -56
- package/dist/indexeddbshim-noninvasive.js.map +1 -1
- package/dist/indexeddbshim-noninvasive.min.js +3 -3
- package/dist/indexeddbshim-noninvasive.min.js.map +1 -1
- package/dist/indexeddbshim.js +46 -56
- package/dist/indexeddbshim.js.map +1 -1
- package/dist/indexeddbshim.min.js +3 -3
- package/dist/indexeddbshim.min.js.map +1 -1
- package/dist/unicode-regex.d.ts +1 -1
- package/dist/unicode-regex.d.ts.map +1 -1
- package/package.json +95 -94
- package/src/unicode-regex.js +1 -16
- package/licenseInfo.json +0 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="593" height="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="593" height="176"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" fill="#fff" rx="3"/></mask></defs><g id="bg" mask="url(#round)"><path fill="navy" d="M0 0h88v176H0z"/><path fill="#006400" d="M88 0h131v176H88z"/><path fill="green" d="M219 0h266v176H219z"/><path fill="#cc0" d="M485 0h108v176H485z"/><path fill="url(#smooth)" d="M0 0h593v176H0z"/></g><g id="fg"><text x="5.5" y="15" class="shadow">License types</text><text x="5" y="14" class="high">License types</text><text x="5.5" y="27" class="shadow">(all devDeps)</text><text x="5" y="26" class="high">(all devDeps)</text><text x="93.5" y="15" class="shadow">Public</text><text x="93" y="14" class="high">Public</text><text x="93.5" y="27" class="shadow">domain</text><text x="93" y="26" class="high">domain</text><text x="93.5" y="51" class="shadow">1. (MIT OR CC0-1.0)</text><text x="93" y="50" class="high">1. (MIT OR CC0-1.0)</text><text x="93.5" y="63" class="shadow">2. CC0-1.0</text><text x="93" y="62" class="high">2. CC0-1.0</text><text x="224.5" y="15" class="shadow">Permissive</text><text x="224" y="14" class="high">Permissive</text><text x="224.5" y="39" class="shadow">1. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text x="224" y="38" class="high">1. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text x="224.5" y="51" class="shadow">2. (MIT OR WTFPL)</text><text x="224" y="50" class="high">2. (MIT OR WTFPL)</text><text x="224.5" y="63" class="shadow">3. Apache-2.0</text><text x="224" y="62" class="high">3. Apache-2.0</text><text x="224.5" y="75" class="shadow">4. BSD-2-Clause</text><text x="224" y="74" class="high">4. BSD-2-Clause</text><text x="224.5" y="87" class="shadow">5. BSD-3-Clause</text><text x="224" y="86" class="high">5. BSD-3-Clause</text><text x="224.5" y="99" class="shadow">6. BlueOak-1.0.0</text><text x="224" y="98" class="high">6. BlueOak-1.0.0</text><text x="224.5" y="111" class="shadow">7. CC-BY-3.0</text><text x="224" y="110" class="high">7. CC-BY-3.0</text><text x="224.5" y="123" class="shadow">8. CC-BY-4.0</text><text x="224" y="122" class="high">8. CC-BY-4.0</text><text x="224.5" y="135" class="shadow">9. ISC</text><text x="224" y="134" class="high">9. ISC</text><text x="224.5" y="147" class="shadow">10. MIT</text><text x="224" y="146" class="high">10. MIT</text><text x="224.5" y="159" class="shadow">11. MIT-0</text><text x="224" y="158" class="high">11. MIT-0</text><text x="224.5" y="171" class="shadow">12. WTFPL</text><text x="224" y="170" class="high">12. WTFPL</text><text x="490.5" y="15" class="shadow">Weakly</text><text x="490" y="14" class="high">Weakly</text><text x="490.5" y="27" class="shadow">protective</text><text x="490" y="26" class="high">protective</text><text x="490.5" y="51" class="shadow">1. LGPL-3.0-only</text><text x="490" y="50" class="high">1. LGPL-3.0-only</text><text x="490.5" y="63" class="shadow">2. MPL-2.0</text><text x="490" y="62" class="high">2. MPL-2.0</text></g></svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="624" height="
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="624" height="152"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" fill="#fff" rx="3"/></mask></defs><g id="bg" mask="url(#round)"><path fill="navy" d="M0 0h227v152H0z"/><path fill="#006400" d="M227 0h131v152H227z"/><path fill="green" d="M358 0h266v152H358z"/><path fill="url(#smooth)" d="M0 0h624v152H0z"/></g><g id="fg"><text x="5.5" y="15" class="shadow">License types</text><text x="5" y="14" class="high">License types</text><text x="5.5" y="27" class="shadow">(project, deps, and bundled devDeps)</text><text x="5" y="26" class="high">(project, deps, and bundled devDeps)</text><text x="232.5" y="15" class="shadow">Public</text><text x="232" y="14" class="high">Public</text><text x="232.5" y="27" class="shadow">domain</text><text x="232" y="26" class="high">domain</text><text x="232.5" y="51" class="shadow">1. (MIT OR CC0-1.0)</text><text x="232" y="50" class="high">1. (MIT OR CC0-1.0)</text><text x="363.5" y="15" class="shadow">Permissive</text><text x="363" y="14" class="high">Permissive</text><text x="363.5" y="39" class="shadow">1. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text x="363" y="38" class="high">1. (BSD-2-Clause OR (MIT OR Apache-2.0))</text><text x="363.5" y="51" class="shadow">2. (MIT OR Apache-2.0)</text><text x="363" y="50" class="high">2. (MIT OR Apache-2.0)</text><text x="363.5" y="63" class="shadow">3. (MIT OR WTFPL)</text><text x="363" y="62" class="high">3. (MIT OR WTFPL)</text><text x="363.5" y="75" class="shadow">4. Apache-2.0</text><text x="363" y="74" class="high">4. Apache-2.0</text><text x="363.5" y="87" class="shadow">5. BSD-2-Clause</text><text x="363" y="86" class="high">5. BSD-2-Clause</text><text x="363.5" y="99" class="shadow">6. BSD-3-Clause</text><text x="363" y="98" class="high">6. BSD-3-Clause</text><text x="363.5" y="111" class="shadow">7. BlueOak-1.0.0</text><text x="363" y="110" class="high">7. BlueOak-1.0.0</text><text x="363.5" y="123" class="shadow">8. ISC</text><text x="363" y="122" class="high">8. ISC</text><text x="363.5" y="135" class="shadow">9. MIT</text><text x="363" y="134" class="high">9. MIT</text><text x="363.5" y="147" class="shadow">10. WTFPL</text><text x="363" y="146" class="high">10. WTFPL</text></g></svg>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! indexeddbshim - v19.0.
|
|
1
|
+
/*! indexeddbshim - v19.0.3 - 9/15/2026 */
|
|
2
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"),"object"===i(b=v)&&null!==b&&"name"in 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,i=o.length,u=0;u<i;){var c=e(o[u]);A(a,u,c),u++}return a;case"date":return new Date(n);case"binary":var l=n,f=l.length,s=new ArrayBuffer(f);return new Uint8Array(s,l.byteOffset||0,l.byteLength).set(l),s;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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! indexeddbshim - v19.0.
|
|
1
|
+
/*! indexeddbshim - v19.0.3 - 9/15/2026 */
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -1565,19 +1565,7 @@ val => {
|
|
|
1565
1565
|
|
|
1566
1566
|
// @ts-nocheck
|
|
1567
1567
|
|
|
1568
|
-
|
|
1569
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
1570
|
-
}
|
|
1571
|
-
var regex$1;
|
|
1572
|
-
var hasRequiredRegex;
|
|
1573
|
-
function requireRegex() {
|
|
1574
|
-
if (hasRequiredRegex) return regex$1;
|
|
1575
|
-
hasRequiredRegex = 1;
|
|
1576
|
-
regex$1 = /[\xC0-\xC5\xC7-\xCF\xD1-\xD6\xD9-\xDD\xE0-\xE5\xE7-\xEF\xF1-\xF6\xF9-\xFD\xFF-\u010F\u0112-\u0125\u0128-\u0130\u0134-\u0137\u0139-\u013E\u0143-\u0148\u014C-\u0151\u0154-\u0165\u0168-\u017E\u01A0\u01A1\u01AF\u01B0\u01CD-\u01DC\u01DE-\u01E3\u01E6-\u01F0\u01F4\u01F5\u01F8-\u021B\u021E\u021F\u0226-\u0233\u0344\u0385\u0386\u0388-\u038A\u038C\u038E-\u0390\u03AA-\u03B0\u03CA-\u03CE\u03D3\u03D4\u0400\u0401\u0403\u0407\u040C-\u040E\u0419\u0439\u0450\u0451\u0453\u0457\u045C-\u045E\u0476\u0477\u04C1\u04C2\u04D0-\u04D3\u04D6\u04D7\u04DA-\u04DF\u04E2-\u04E7\u04EA-\u04F5\u04F8\u04F9\u0622-\u0626\u06C0\u06C2\u06D3\u0929\u0931\u0934\u0958-\u095F\u09CB\u09CC\u09DC\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B48\u0B4B\u0B4C\u0B5C\u0B5D\u0B94\u0BCA-\u0BCC\u0C48\u0CC0\u0CC7\u0CC8\u0CCA\u0CCB\u0D4A-\u0D4C\u0DDA\u0DDC-\u0DDE\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2\u0FA7\u0FAC\u0FB9\u1026\u1B06\u1B08\u1B0A\u1B0C\u1B0E\u1B12\u1B3B\u1B3D\u1B40\u1B41\u1B43\u1E00-\u1E99\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FC1-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEE\u1FF2-\u1FF4\u1FF6-\u1FFC\u212B\u219A\u219B\u21AE\u21CD-\u21CF\u2204\u2209\u220C\u2224\u2226\u2241\u2244\u2247\u2249\u2260\u2262\u226D-\u2271\u2274\u2275\u2278\u2279\u2280\u2281\u2284\u2285\u2288\u2289\u22AC-\u22AF\u22E0-\u22E3\u22EA-\u22ED\u2ADC\u304C\u304E\u3050\u3052\u3054\u3056\u3058\u305A\u305C\u305E\u3060\u3062\u3065\u3067\u3069\u3070\u3071\u3073\u3074\u3076\u3077\u3079\u307A\u307C\u307D\u3094\u309E\u30AC\u30AE\u30B0\u30B2\u30B4\u30B6\u30B8\u30BA\u30BC\u30BE\u30C0\u30C2\u30C5\u30C7\u30C9\u30D0\u30D1\u30D3\u30D4\u30D6\u30D7\u30D9\u30DA\u30DC\u30DD\u30F4\u30F7-\u30FA\u30FE\uAC00-\uD7A3\uFB1D\uFB1F\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4E]|\uD801[\uDDC9\uDDE4]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C\uDF83\uDF85\uDF8E\uDF91\uDFC5\uDFC7\uDFC8]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD818[\uDD21-\uDD28]|\uD81B[\uDD68-\uDD6A]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1577
|
-
return regex$1;
|
|
1578
|
-
}
|
|
1579
|
-
var regexExports = requireRegex();
|
|
1580
|
-
var regex = /*@__PURE__*/getDefaultExportFromCjs(regexExports);
|
|
1568
|
+
var regex = /[\xC0-\xC5\xC7-\xCF\xD1-\xD6\xD9-\xDD\xE0-\xE5\xE7-\xEF\xF1-\xF6\xF9-\xFD\xFF-\u010F\u0112-\u0125\u0128-\u0130\u0134-\u0137\u0139-\u013E\u0143-\u0148\u014C-\u0151\u0154-\u0165\u0168-\u017E\u01A0\u01A1\u01AF\u01B0\u01CD-\u01DC\u01DE-\u01E3\u01E6-\u01F0\u01F4\u01F5\u01F8-\u021B\u021E\u021F\u0226-\u0233\u0344\u0385\u0386\u0388-\u038A\u038C\u038E-\u0390\u03AA-\u03B0\u03CA-\u03CE\u03D3\u03D4\u0400\u0401\u0403\u0407\u040C-\u040E\u0419\u0439\u0450\u0451\u0453\u0457\u045C-\u045E\u0476\u0477\u04C1\u04C2\u04D0-\u04D3\u04D6\u04D7\u04DA-\u04DF\u04E2-\u04E7\u04EA-\u04F5\u04F8\u04F9\u0622-\u0626\u06C0\u06C2\u06D3\u0929\u0931\u0934\u0958-\u095F\u09CB\u09CC\u09DC\u09DD\u09DF\u0A33\u0A36\u0A59-\u0A5B\u0A5E\u0B48\u0B4B\u0B4C\u0B5C\u0B5D\u0B94\u0BCA-\u0BCC\u0C48\u0CC0\u0CC7\u0CC8\u0CCA\u0CCB\u0D4A-\u0D4C\u0DDA\u0DDC-\u0DDE\u0F43\u0F4D\u0F52\u0F57\u0F5C\u0F69\u0F73\u0F75\u0F76\u0F78\u0F81\u0F93\u0F9D\u0FA2\u0FA7\u0FAC\u0FB9\u1026\u1B06\u1B08\u1B0A\u1B0C\u1B0E\u1B12\u1B3B\u1B3D\u1B40\u1B41\u1B43\u1E00-\u1E99\u1E9B\u1EA0-\u1EF9\u1F00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FC1-\u1FC4\u1FC6-\u1FD3\u1FD6-\u1FDB\u1FDD-\u1FEE\u1FF2-\u1FF4\u1FF6-\u1FFC\u212B\u219A\u219B\u21AE\u21CD-\u21CF\u2204\u2209\u220C\u2224\u2226\u2241\u2244\u2247\u2249\u2260\u2262\u226D-\u2271\u2274\u2275\u2278\u2279\u2280\u2281\u2284\u2285\u2288\u2289\u22AC-\u22AF\u22E0-\u22E3\u22EA-\u22ED\u2ADC\u304C\u304E\u3050\u3052\u3054\u3056\u3058\u305A\u305C\u305E\u3060\u3062\u3065\u3067\u3069\u3070\u3071\u3073\u3074\u3076\u3077\u3079\u307A\u307C\u307D\u3094\u309E\u30AC\u30AE\u30B0\u30B2\u30B4\u30B6\u30B8\u30BA\u30BC\u30BE\u30C0\u30C2\u30C5\u30C7\u30C9\u30D0\u30D1\u30D3\u30D4\u30D6\u30D7\u30D9\u30DA\u30DC\u30DD\u30F4\u30F7-\u30FA\u30FE\uAC00-\uD7A3\uFB1D\uFB1F\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFB4E]|\uD801[\uDDC9\uDDE4]|\uD804[\uDC9A\uDC9C\uDCAB\uDD2E\uDD2F\uDF4B\uDF4C\uDF83\uDF85\uDF8E\uDF91\uDFC5\uDFC7\uDFC8]|\uD805[\uDCBB\uDCBC\uDCBE\uDDBA\uDDBB]|\uD806\uDD38|\uD818[\uDD21-\uDD28]|\uD81B[\uDD68-\uDD6A]|\uD834[\uDD5E-\uDD64\uDDBB-\uDDC0]/;
|
|
1581
1569
|
|
|
1582
1570
|
/* eslint-disable new-cap -- ToString is how it is defined */
|
|
1583
1571
|
|
|
@@ -6223,8 +6211,8 @@ class Typeson {
|
|
|
6223
6211
|
y = {},
|
|
6224
6212
|
p = [],
|
|
6225
6213
|
f = [],
|
|
6226
|
-
|
|
6227
|
-
|
|
6214
|
+
m = [],
|
|
6215
|
+
d = !("cyclic" in c) || c.cyclic,
|
|
6228
6216
|
{
|
|
6229
6217
|
encapsulateObserver: h,
|
|
6230
6218
|
encapsulateError: b
|
|
@@ -6266,18 +6254,18 @@ class Typeson {
|
|
|
6266
6254
|
e[t] = n[r];
|
|
6267
6255
|
});
|
|
6268
6256
|
},
|
|
6269
|
-
_encapsulate = (e, t, a, i, l,
|
|
6257
|
+
_encapsulate = (e, t, a, i, l, m, d) => {
|
|
6270
6258
|
let g,
|
|
6271
6259
|
v = {};
|
|
6272
6260
|
const w = h ? function (r) {
|
|
6273
|
-
const n =
|
|
6261
|
+
const n = d ?? i.type ?? getJSONType(t);
|
|
6274
6262
|
h(Object.assign(r ?? v, {
|
|
6275
6263
|
keypath: e,
|
|
6276
6264
|
value: t,
|
|
6277
6265
|
cyclic: a,
|
|
6278
6266
|
stateObj: i,
|
|
6279
6267
|
promisesData: l,
|
|
6280
|
-
resolvingTypesonPromise:
|
|
6268
|
+
resolvingTypesonPromise: m,
|
|
6281
6269
|
awaitingTypesonPromise: hasConstructorOf(t, TypesonPromise)
|
|
6282
6270
|
}, {
|
|
6283
6271
|
type: n
|
|
@@ -6286,11 +6274,11 @@ class Typeson {
|
|
|
6286
6274
|
getEncapsulatedValue = (e, t, r) => {
|
|
6287
6275
|
try {
|
|
6288
6276
|
return {
|
|
6289
|
-
value: _encapsulate(e, t[r], Boolean(a), i, l,
|
|
6277
|
+
value: _encapsulate(e, t[r], Boolean(a), i, l, m)
|
|
6290
6278
|
};
|
|
6291
6279
|
} catch (n) {
|
|
6292
6280
|
if (!b) throw n;
|
|
6293
|
-
const o =
|
|
6281
|
+
const o = d ?? i.type ?? getJSONType(t),
|
|
6294
6282
|
a = b({
|
|
6295
6283
|
keypath: e,
|
|
6296
6284
|
error: n,
|
|
@@ -6308,7 +6296,7 @@ class Typeson {
|
|
|
6308
6296
|
throw n;
|
|
6309
6297
|
}
|
|
6310
6298
|
};
|
|
6311
|
-
if (["string", "boolean", "number", "undefined"].includes(typeof t)) return void 0 === t || t === 1 / 0 || 0 === t || t === -1 / 0 || Number.isNaN(t) ? (g = i.replaced ? t : replace(e, t, i, l, false,
|
|
6299
|
+
if (["string", "boolean", "number", "undefined"].includes(typeof t)) return void 0 === t || t === 1 / 0 || 0 === t || t === -1 / 0 || Number.isNaN(t) ? (g = i.replaced ? t : replace(e, t, i, l, false, m, w), g !== t && (v = {
|
|
6312
6300
|
replaced: g
|
|
6313
6301
|
})) : g = t, w && w(), g;
|
|
6314
6302
|
if (null === t) return w && w(), t;
|
|
@@ -6385,13 +6373,13 @@ class Typeson {
|
|
|
6385
6373
|
o.push(u);
|
|
6386
6374
|
const p = o.length - 1,
|
|
6387
6375
|
f = `$symbolKeys.${escapeKeyPathComponent(e)}.${String(p)}.value`,
|
|
6388
|
-
|
|
6376
|
+
m = {
|
|
6389
6377
|
value: t[r]
|
|
6390
6378
|
};
|
|
6391
6379
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6392
6380
|
ownKeys: true
|
|
6393
6381
|
}, () => {
|
|
6394
|
-
const e = getEncapsulatedValue(f,
|
|
6382
|
+
const e = getEncapsulatedValue(f, m, "value"),
|
|
6395
6383
|
t = e && e.value;
|
|
6396
6384
|
hasConstructorOf(t, TypesonPromise) ? l.push([f, t, Boolean(a), i, u, "value", i.type]) : e && (void 0 !== t || "substitute" in e) && setOwnEnumerable(u, "value", t);
|
|
6397
6385
|
});
|
|
@@ -6407,7 +6395,7 @@ class Typeson {
|
|
|
6407
6395
|
_adaptBuiltinStateObjectProperties(i, {
|
|
6408
6396
|
ownKeys: false
|
|
6409
6397
|
}, () => {
|
|
6410
|
-
const e = _encapsulate(r, void 0, Boolean(a), i, l,
|
|
6398
|
+
const e = _encapsulate(r, void 0, Boolean(a), i, l, m);
|
|
6411
6399
|
hasConstructorOf(e, TypesonPromise) ? l.push([r, e, Boolean(a), i, S, n, i.type]) : void 0 !== e && setOwnEnumerable(S, n, e);
|
|
6412
6400
|
});
|
|
6413
6401
|
}
|
|
@@ -6436,7 +6424,7 @@ class Typeson {
|
|
|
6436
6424
|
replaced: true
|
|
6437
6425
|
}), (l || !o.replaceAsync) && !o.replace) return s && s({
|
|
6438
6426
|
typeDetected: true
|
|
6439
|
-
}), _encapsulate(e, t,
|
|
6427
|
+
}), _encapsulate(e, t, d && "readonly", r, n, a, i);
|
|
6440
6428
|
let c;
|
|
6441
6429
|
if (s && s({
|
|
6442
6430
|
replacing: true
|
|
@@ -6444,15 +6432,15 @@ class Typeson {
|
|
|
6444
6432
|
if (void 0 === o.replace) throw new TypeError("Missing replacer");
|
|
6445
6433
|
c = o.replace(t, r);
|
|
6446
6434
|
} else c = o.replaceAsync(t, r);
|
|
6447
|
-
return _encapsulate(e, c,
|
|
6435
|
+
return _encapsulate(e, c, d && "readonly", r, n, a, i);
|
|
6448
6436
|
}
|
|
6449
6437
|
}
|
|
6450
6438
|
return t;
|
|
6451
6439
|
},
|
|
6452
|
-
g = _encapsulate("", e,
|
|
6453
|
-
if (
|
|
6440
|
+
g = _encapsulate("", e, d, t ?? {}, m);
|
|
6441
|
+
if (m.length) return l && c.throwOnBadSyncType ? (() => {
|
|
6454
6442
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6455
|
-
})() : Promise.resolve(checkPromises(g,
|
|
6443
|
+
})() : Promise.resolve(checkPromises(g, m)).then(finish);
|
|
6456
6444
|
if (!l && c.throwOnBadSyncType) throw new TypeError("Async method requested but sync result obtained");
|
|
6457
6445
|
return l && c.stringification ? [finish(g)] : l ? finish(g) : Promise.resolve(finish(g));
|
|
6458
6446
|
}
|
|
@@ -6496,8 +6484,8 @@ class Typeson {
|
|
|
6496
6484
|
const y = [],
|
|
6497
6485
|
p = Object.create(null),
|
|
6498
6486
|
f = {};
|
|
6499
|
-
let
|
|
6500
|
-
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$,
|
|
6487
|
+
let m = true;
|
|
6488
|
+
c.$ && isPlainObject(c.$) && (e = e.$, c = c.$, m = false, u = false, void 0 !== l && isObject(e) && !n(e, "$symbolKeys") && (e.$symbolKeys = l, u = true));
|
|
6501
6489
|
const executeReviver = (e, t) => {
|
|
6502
6490
|
const [r] = this.revivers[e] ?? [];
|
|
6503
6491
|
if (!r) throw new Error("Unregistered type: " + e);
|
|
@@ -6506,7 +6494,7 @@ class Typeson {
|
|
|
6506
6494
|
if (r.revive) return r.revive(t, f);
|
|
6507
6495
|
throw new Error("Missing reviver");
|
|
6508
6496
|
},
|
|
6509
|
-
|
|
6497
|
+
d = [];
|
|
6510
6498
|
function checkUndefined(e) {
|
|
6511
6499
|
return hasConstructorOf(e, Undefined) ? void 0 : e;
|
|
6512
6500
|
}
|
|
@@ -6570,8 +6558,8 @@ class Typeson {
|
|
|
6570
6558
|
})();
|
|
6571
6559
|
let b;
|
|
6572
6560
|
return hasConstructorOf(h, TypesonPromise) ? b = h.then(() => e) : (b = function _revive(e, t, a, s, l) {
|
|
6573
|
-
if (
|
|
6574
|
-
const u =
|
|
6561
|
+
if (m && "$types" === e) return;
|
|
6562
|
+
const u = d.length,
|
|
6575
6563
|
f = n(c, e) ? c[e] : void 0,
|
|
6576
6564
|
h = o(t);
|
|
6577
6565
|
if (h || isPlainObject(t)) {
|
|
@@ -6579,7 +6567,7 @@ class Typeson {
|
|
|
6579
6567
|
for (r(t).forEach(r => {
|
|
6580
6568
|
const n = _revive(e + (e ? "." : "") + escapeKeyPathComponent(r), t[r], a ?? o, o, r),
|
|
6581
6569
|
set = e => (hasConstructorOf(e, Undefined) ? setOwnEnumerable(o, r, void 0) : void 0 !== e && setOwnEnumerable(o, r, e), e);
|
|
6582
|
-
hasConstructorOf(n, TypesonPromise) ?
|
|
6570
|
+
hasConstructorOf(n, TypesonPromise) ? d.push(n.then(e => set(e))) : set(n);
|
|
6583
6571
|
}), t = o; y.length;) {
|
|
6584
6572
|
const [[e, t, r, o]] = y,
|
|
6585
6573
|
a = n(p, t),
|
|
@@ -6603,8 +6591,8 @@ class Typeson {
|
|
|
6603
6591
|
}, t);
|
|
6604
6592
|
return hasConstructorOf(r, TypesonPromise) ? r.then(t => (p[e] = t, t)) : (p[e] = r, r);
|
|
6605
6593
|
};
|
|
6606
|
-
return !i &&
|
|
6607
|
-
}("", e, null),
|
|
6594
|
+
return !i && d.length > u ? TypesonPromise.all(d.slice(u)).then(() => applyType(t)) : applyType(t);
|
|
6595
|
+
}("", e, null), d.length && (b = TypesonPromise.resolve(b).then(e => TypesonPromise.all([e, ...d])).then(([e]) => e))), l && (isThenable(b) ? b = b.then(e => (reHomeSymbolKeys(e), e)) : reHomeSymbolKeys(b)), isThenable(b) ? i && a.throwOnBadSyncType ? (() => {
|
|
6608
6596
|
throw new TypeError("Sync method requested but async result obtained");
|
|
6609
6597
|
})() : hasConstructorOf(b, TypesonPromise) ? b.p.then(checkUndefined) : b : !i && a.throwOnBadSyncType ? (() => {
|
|
6610
6598
|
throw new TypeError("Async method requested but sync result obtained");
|
|
@@ -6719,7 +6707,7 @@ const f = {
|
|
|
6719
6707
|
}
|
|
6720
6708
|
}
|
|
6721
6709
|
},
|
|
6722
|
-
|
|
6710
|
+
m = {
|
|
6723
6711
|
audiodata: {
|
|
6724
6712
|
test: e => "AudioData" === toStringTag(e),
|
|
6725
6713
|
replace(e) {
|
|
@@ -6773,7 +6761,7 @@ const f = {
|
|
|
6773
6761
|
})
|
|
6774
6762
|
}
|
|
6775
6763
|
},
|
|
6776
|
-
|
|
6764
|
+
d = {
|
|
6777
6765
|
bigintObject: {
|
|
6778
6766
|
test: e => "object" == typeof e && hasConstructorOf(e, BigInt),
|
|
6779
6767
|
replace: String,
|
|
@@ -7070,7 +7058,7 @@ const x = {
|
|
|
7070
7058
|
}
|
|
7071
7059
|
}
|
|
7072
7060
|
},
|
|
7073
|
-
|
|
7061
|
+
I = {
|
|
7074
7062
|
error: {
|
|
7075
7063
|
test: e => "Error" === toStringTag(e),
|
|
7076
7064
|
replace: ({
|
|
@@ -7096,9 +7084,9 @@ const x = {
|
|
|
7096
7084
|
}
|
|
7097
7085
|
}
|
|
7098
7086
|
},
|
|
7099
|
-
|
|
7087
|
+
B = {};
|
|
7100
7088
|
function create$2(e) {
|
|
7101
|
-
|
|
7089
|
+
B[e.name.toLowerCase()] = {
|
|
7102
7090
|
test: t => hasConstructorOf(t, e),
|
|
7103
7091
|
replace: ({
|
|
7104
7092
|
name: e,
|
|
@@ -7126,7 +7114,7 @@ function create$2(e) {
|
|
|
7126
7114
|
};
|
|
7127
7115
|
}
|
|
7128
7116
|
[TypeError, RangeError, SyntaxError, ReferenceError, EvalError, URIError].forEach(e => create$2(e)), "undefined" != typeof AggregateError && create$2(AggregateError), "function" == typeof InternalError && create$2(InternalError);
|
|
7129
|
-
const
|
|
7117
|
+
const C = {
|
|
7130
7118
|
file: {
|
|
7131
7119
|
test: e => "File" === toStringTag(e),
|
|
7132
7120
|
replace(e) {
|
|
@@ -7164,7 +7152,7 @@ const I = {
|
|
|
7164
7152
|
}
|
|
7165
7153
|
},
|
|
7166
7154
|
U = {
|
|
7167
|
-
file:
|
|
7155
|
+
file: C.file,
|
|
7168
7156
|
filelist: {
|
|
7169
7157
|
test: e => "FileList" === toStringTag(e),
|
|
7170
7158
|
replace(e) {
|
|
@@ -7190,7 +7178,7 @@ const I = {
|
|
|
7190
7178
|
},
|
|
7191
7179
|
k = {
|
|
7192
7180
|
imagebitmap: {
|
|
7193
|
-
test: e => "ImageBitmap" === toStringTag(e)
|
|
7181
|
+
test: e => "ImageBitmap" === toStringTag(e),
|
|
7194
7182
|
replace(e) {
|
|
7195
7183
|
const t = document.createElement("canvas");
|
|
7196
7184
|
return t.getContext("2d").drawImage(e, 0, 0), {
|
|
@@ -7204,7 +7192,9 @@ const I = {
|
|
|
7204
7192
|
r = t.getContext("2d"),
|
|
7205
7193
|
n = document.createElement("img");
|
|
7206
7194
|
return n.addEventListener("load", function () {
|
|
7207
|
-
|
|
7195
|
+
try {
|
|
7196
|
+
r.drawImage(n, 0, 0);
|
|
7197
|
+
} catch {}
|
|
7208
7198
|
}), n.src = e.dataURL, "undefined" == typeof OffscreenCanvas ? t : t.transferToImageBitmap();
|
|
7209
7199
|
},
|
|
7210
7200
|
reviveAsync(e) {
|
|
@@ -7223,7 +7213,7 @@ const I = {
|
|
|
7223
7213
|
}
|
|
7224
7214
|
}
|
|
7225
7215
|
},
|
|
7226
|
-
|
|
7216
|
+
R = {
|
|
7227
7217
|
imagedata: {
|
|
7228
7218
|
test: e => "ImageData" === toStringTag(e),
|
|
7229
7219
|
replace(e) {
|
|
@@ -7254,14 +7244,14 @@ const I = {
|
|
|
7254
7244
|
}
|
|
7255
7245
|
}
|
|
7256
7246
|
},
|
|
7257
|
-
|
|
7247
|
+
M = {
|
|
7258
7248
|
infinity: {
|
|
7259
7249
|
test: e => e === 1 / 0,
|
|
7260
7250
|
replace: () => "Infinity",
|
|
7261
7251
|
revive: () => 1 / 0
|
|
7262
7252
|
}
|
|
7263
7253
|
},
|
|
7264
|
-
|
|
7254
|
+
L = {
|
|
7265
7255
|
map: {
|
|
7266
7256
|
test: e => "Map" === toStringTag(e),
|
|
7267
7257
|
replace: e => e.entries().toArray(),
|
|
@@ -7282,7 +7272,7 @@ const I = {
|
|
|
7282
7272
|
revive: () => -1 / 0
|
|
7283
7273
|
}
|
|
7284
7274
|
},
|
|
7285
|
-
|
|
7275
|
+
W = {
|
|
7286
7276
|
negativeZero: {
|
|
7287
7277
|
test: e => Object.is(e, -0),
|
|
7288
7278
|
replace: () => 0,
|
|
@@ -7552,13 +7542,13 @@ const te = {
|
|
|
7552
7542
|
revive() {}
|
|
7553
7543
|
}
|
|
7554
7544
|
}],
|
|
7555
|
-
se = [K,
|
|
7556
|
-
ye = [re, te, ae, z, se, A, H,
|
|
7545
|
+
se = [K, M, $, W],
|
|
7546
|
+
ye = [re, te, ae, z, se, A, H, R, k, C, U, b, I, B].concat("function" == typeof Map ? L : [], "function" == typeof Set ? X : [], "function" == typeof ArrayBuffer ? f : [], "function" == typeof Uint8Array ? ee : [], "function" == typeof DataView ? O : [], "undefined" != typeof crypto ? w : [], "undefined" != typeof BigInt ? [h, d] : [], "undefined" != typeof DOMException ? T : [], "undefined" != typeof QuotaExceededError ? J : [], "undefined" != typeof WebTransportError ? oe : [], "undefined" != typeof DOMRect ? N : [], "undefined" != typeof DOMPoint ? P : [], "undefined" != typeof DOMQuad ? E : [], "undefined" != typeof DOMMatrix ? S : [], "undefined" != typeof AudioData ? m : [], "undefined" != typeof EncodedAudioChunk ? x : [], "undefined" != typeof EncodedVideoChunk ? j : [], "undefined" != typeof VideoFrame ? ne : []);
|
|
7557
7547
|
const pe = ye.concat({
|
|
7558
7548
|
checkDataCloneException: {
|
|
7559
7549
|
test(e) {
|
|
7560
7550
|
const t = {}.toString.call(e).slice(8, -1);
|
|
7561
|
-
if (["symbol", "function"].includes(typeof e) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "Event", "MessageChannel", "MessagePort"].includes(t) || e && e.constructor && ["MessageChannel", "MessagePort"].includes(e.constructor.name) || ["ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"].includes(t) && function isBufferDetached(e) {
|
|
7551
|
+
if (["symbol", "function"].includes(typeof e) || ["Arguments", "Module", "Promise", "WeakMap", "WeakSet", "WeakRef", "FinalizationRegistry", "Generator", "AsyncGenerator", "String Iterator", "Array Iterator", "Map Iterator", "Set Iterator", "RegExp String Iterator", "Intl.Collator", "Intl.DateTimeFormat", "Intl.DisplayNames", "Intl.DurationFormat", "Intl.ListFormat", "Intl.Locale", "Intl.NumberFormat", "Intl.PluralRules", "Intl.RelativeTimeFormat", "Intl.Segmenter", "Event", "MessageChannel", "MessagePort", "ReadableStream", "WritableStream", "TransformStream", "OffscreenCanvas"].includes(t) || e && e.constructor && ["MessageChannel", "MessagePort"].includes(e.constructor.name) || ["ArrayBuffer", "DataView", "Int8Array", "Uint8Array", "Uint8ClampedArray", "Int16Array", "Uint16Array", "Int32Array", "Uint32Array", "Float32Array", "Float64Array", "BigInt64Array", "BigUint64Array"].includes(t) && function isBufferDetached(e) {
|
|
7562
7552
|
if ("boolean" == typeof e.detached) return e.detached;
|
|
7563
7553
|
if (0 !== e.byteLength) return false;
|
|
7564
7554
|
try {
|