@dxos/util 0.9.1-main.c7dcc2e112 → 0.10.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.
@@ -1 +1 @@
1
- {"inputs":{"src/array-to-hex.ts":{"bytes":2379,"imports":[],"format":"esm"},"src/array.ts":{"bytes":11929,"imports":[],"format":"esm"},"src/assume.ts":{"bytes":1259,"imports":[],"format":"esm"},"src/binder.ts":{"bytes":1230,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}],"format":"esm"},"src/bitfield.ts":{"bytes":8147,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/browser-storage.ts":{"bytes":6825,"imports":[],"format":"esm"},"src/callback-collection.ts":{"bytes":3085,"imports":[],"format":"esm"},"src/callback.ts":{"bytes":4733,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/case.ts":{"bytes":4504,"imports":[],"format":"esm"},"src/chunk-array.ts":{"bytes":1118,"imports":[],"format":"esm"},"src/circular-buffer.ts":{"bytes":6300,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/clear-undefined.ts":{"bytes":1473,"imports":[],"format":"esm"},"src/complex.ts":{"bytes":25202,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/composite-key.ts":{"bytes":1461,"imports":[],"format":"esm"},"src/deep.ts":{"bytes":3594,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/defer-function.ts":{"bytes":1474,"imports":[],"format":"esm"},"src/defer.ts":{"bytes":3584,"imports":[{"path":"@hazae41/symbol-dispose-polyfill","kind":"import-statement","external":true}],"format":"esm"},"src/entry.ts":{"bytes":2931,"imports":[],"format":"esm"},"src/error-format.ts":{"bytes":2089,"imports":[],"format":"esm"},"src/filename.ts":{"bytes":1273,"imports":[],"format":"esm"},"src/for-each-async.ts":{"bytes":701,"imports":[],"format":"esm"},"src/human-hash.ts":{"bytes":19681,"imports":[{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/id.ts":{"bytes":5229,"imports":[],"format":"esm"},"src/map.ts":{"bytes":1420,"imports":[],"format":"esm"},"src/instance-id.ts":{"bytes":4145,"imports":[{"path":"src/map.ts","kind":"import-statement","original":"./map"}],"format":"esm"},"src/interval.ts":{"bytes":1745,"imports":[],"format":"esm"},"src/join-tables.ts":{"bytes":2986,"imports":[],"format":"esm"},"src/uint8array.ts":{"bytes":8452,"imports":[],"format":"esm"},"src/json.ts":{"bytes":13202,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"src/human-hash.ts","kind":"import-statement","original":"./human-hash"},{"path":"src/uint8array.ts","kind":"import-statement","original":"./uint8array"}],"format":"esm"},"src/map-values.ts":{"bytes":13773,"imports":[],"format":"esm"},"src/no-infer.ts":{"bytes":396,"imports":[],"format":"esm"},"src/object.ts":{"bytes":998,"imports":[],"format":"esm"},"src/order-keys.ts":{"bytes":1518,"imports":[],"format":"esm"},"src/order.ts":{"bytes":4900,"imports":[],"format":"esm"},"src/pick.ts":{"bytes":3578,"imports":[],"format":"esm"},"src/platform.ts":{"bytes":17349,"imports":[],"format":"esm"},"src/position.ts":{"bytes":2211,"imports":[],"format":"esm"},"src/random.ts":{"bytes":1231,"imports":[],"format":"esm"},"src/range.ts":{"bytes":2540,"imports":[],"format":"esm"},"src/reducers.ts":{"bytes":12738,"imports":[{"path":"src/map.ts","kind":"import-statement","original":"./map"}],"format":"esm"},"src/remove-undefined-keys.ts":{"bytes":4473,"imports":[],"format":"esm"},"src/retry.ts":{"bytes":4890,"imports":[],"format":"esm"},"src/safe-await.ts":{"bytes":2767,"imports":[],"format":"esm"},"src/safe-instanceof.ts":{"bytes":2599,"imports":[],"format":"esm"},"src/safe-parse.ts":{"bytes":3850,"imports":[],"format":"esm"},"src/safe-stringify.ts":{"bytes":13259,"imports":[],"format":"esm"},"src/sliding-window-summary.ts":{"bytes":7195,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/circular-buffer.ts","kind":"import-statement","original":"./circular-buffer"}],"format":"esm"},"src/sort.ts":{"bytes":3861,"imports":[],"format":"esm"},"src/string.ts":{"bytes":7221,"imports":[],"format":"esm"},"src/sum.ts":{"bytes":606,"imports":[],"format":"esm"},"src/throw-unhandled-error.ts":{"bytes":1076,"imports":[],"format":"esm"},"src/to-fallback.ts":{"bytes":12393,"imports":[],"format":"esm"},"src/tracer.ts":{"bytes":7153,"imports":[{"path":"src/map.ts","kind":"import-statement","original":"./map"}],"format":"esm"},"src/tree.ts":{"bytes":6176,"imports":[{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":10311,"imports":[],"format":"esm"},"src/unit.ts":{"bytes":9344,"imports":[],"format":"esm"},"src/url.ts":{"bytes":1558,"imports":[],"format":"esm"},"src/weak.ts":{"bytes":13604,"imports":[],"format":"esm"},"src/index.ts":{"bytes":5551,"imports":[{"path":"src/array-to-hex.ts","kind":"import-statement","original":"./array-to-hex"},{"path":"src/array.ts","kind":"import-statement","original":"./array"},{"path":"src/assume.ts","kind":"import-statement","original":"./assume"},{"path":"src/binder.ts","kind":"import-statement","original":"./binder"},{"path":"src/bitfield.ts","kind":"import-statement","original":"./bitfield"},{"path":"src/browser-storage.ts","kind":"import-statement","original":"./browser-storage"},{"path":"src/callback-collection.ts","kind":"import-statement","original":"./callback-collection"},{"path":"src/callback.ts","kind":"import-statement","original":"./callback"},{"path":"src/case.ts","kind":"import-statement","original":"./case"},{"path":"src/chunk-array.ts","kind":"import-statement","original":"./chunk-array"},{"path":"src/circular-buffer.ts","kind":"import-statement","original":"./circular-buffer"},{"path":"src/clear-undefined.ts","kind":"import-statement","original":"./clear-undefined"},{"path":"src/complex.ts","kind":"import-statement","original":"./complex"},{"path":"src/composite-key.ts","kind":"import-statement","original":"./composite-key"},{"path":"src/deep.ts","kind":"import-statement","original":"./deep"},{"path":"src/defer-function.ts","kind":"import-statement","original":"./defer-function"},{"path":"src/defer.ts","kind":"import-statement","original":"./defer"},{"path":"src/entry.ts","kind":"import-statement","original":"./entry"},{"path":"src/error-format.ts","kind":"import-statement","original":"./error-format"},{"path":"src/filename.ts","kind":"import-statement","original":"./filename"},{"path":"src/for-each-async.ts","kind":"import-statement","original":"./for-each-async"},{"path":"src/human-hash.ts","kind":"import-statement","original":"./human-hash"},{"path":"src/id.ts","kind":"import-statement","original":"./id"},{"path":"src/instance-id.ts","kind":"import-statement","original":"./instance-id"},{"path":"src/interval.ts","kind":"import-statement","original":"./interval"},{"path":"src/join-tables.ts","kind":"import-statement","original":"./join-tables"},{"path":"src/json.ts","kind":"import-statement","original":"./json"},{"path":"src/map-values.ts","kind":"import-statement","original":"./map-values"},{"path":"src/map.ts","kind":"import-statement","original":"./map"},{"path":"src/no-infer.ts","kind":"import-statement","original":"./no-infer"},{"path":"src/object.ts","kind":"import-statement","original":"./object"},{"path":"src/order-keys.ts","kind":"import-statement","original":"./order-keys"},{"path":"src/order.ts","kind":"import-statement","original":"./order"},{"path":"src/pick.ts","kind":"import-statement","original":"./pick"},{"path":"src/platform.ts","kind":"import-statement","original":"./platform"},{"path":"src/position.ts","kind":"import-statement","original":"./position"},{"path":"src/random.ts","kind":"import-statement","original":"./random"},{"path":"src/range.ts","kind":"import-statement","original":"./range"},{"path":"src/reducers.ts","kind":"import-statement","original":"./reducers"},{"path":"src/remove-undefined-keys.ts","kind":"import-statement","original":"./remove-undefined-keys"},{"path":"src/retry.ts","kind":"import-statement","original":"./retry"},{"path":"src/safe-await.ts","kind":"import-statement","original":"./safe-await"},{"path":"src/safe-instanceof.ts","kind":"import-statement","original":"./safe-instanceof"},{"path":"src/safe-parse.ts","kind":"import-statement","original":"./safe-parse"},{"path":"src/safe-stringify.ts","kind":"import-statement","original":"./safe-stringify"},{"path":"src/sliding-window-summary.ts","kind":"import-statement","original":"./sliding-window-summary"},{"path":"src/sort.ts","kind":"import-statement","original":"./sort"},{"path":"src/string.ts","kind":"import-statement","original":"./string"},{"path":"src/sum.ts","kind":"import-statement","original":"./sum"},{"path":"src/throw-unhandled-error.ts","kind":"import-statement","original":"./throw-unhandled-error"},{"path":"src/to-fallback.ts","kind":"import-statement","original":"./to-fallback"},{"path":"src/tracer.ts","kind":"import-statement","original":"./tracer"},{"path":"src/tree.ts","kind":"import-statement","original":"./tree"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/uint8array.ts","kind":"import-statement","original":"./uint8array"},{"path":"src/unit.ts","kind":"import-statement","original":"./unit"},{"path":"src/url.ts","kind":"import-statement","original":"./url"},{"path":"src/weak.ts","kind":"import-statement","original":"./weak"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":163918},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@hazae41/symbol-dispose-polyfill","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"exports":["BitField","Callback","CallbackCollection","CircularBuffer","ComplexMap","ComplexSet","HumanHasher","MapEntry","SKIP","SlidingWindowSummary","Tracer","Unit","WeakDictionary","accessBy","arrayMove","arraySwap","arrayToBuffer","arrayToHex","arrayToString","arraysEqual","assumeType","bufferToArray","byPosition","capitalize","chunkArray","clamp","clearCaches","clearIndexedDB","clearOPFS","clearServiceWorkers","clearUndefined","coerceArray","compareMulti","compareObject","compareScalar","compareString","compositeKey","createBinder","createBucketReducer","createFilename","createGroupReducer","createReplacer","createSetDispatch","createUrl","decamelize","decodeUint8ArrayFromJson","deepMapValues","deepMapValuesAsync","defaultFilter","defaultMap","defer","deferAsync","deferFunction","diff","distinctBy","doAsync","encodeUint8ArrayToJson","entries","entry","exponentialBackoffInterval","forEachAsync","formatErrorWithCauses","getAsyncProviderValue","getDate","getDebugName","getDeep","getHostPlatform","getPrototypeSpecificInstanceId","getProviderValue","hexToEmoji","hexToFallback","hexToHue","humanize","hyphenize","id","idEmoji","idHue","inferObjectOrder","inferRecordOrder","inline","intersectBy","intersection","iosCheck","isBun","isEncodedUint8Array","isMobile","isMobileOrTablet","isNode","isNonNullable","isTauri","isTruthy","isWellFormedId","isWellFormedIdPart","joinTables","jsonKeyReplacer","jsonReplacer","jsonify","jsonlogify","kebabize","keyToEmoji","keyToFallback","keyToHue","keys","makeMap","makeSet","mapValues","median","numericalValues","omit","orderKeys","partition","pick","pickBy","randomInt","range","rangeFromTo","reduceGroupBy","reduceSeries","reduceSet","removeBy","removeProperties","removeUndefinedProperties","retry","safariCheck","safeAwaitAll","safeInstanceof","safeParseFloat","safeParseInt","safeParseJson","safeStringify","safeUrl","setDeep","sortKeys","splitCompositeKey","stringToArray","stringifyTree","stripUndefined","sum","throwUnhandledError","toEmoji","toFallback","toHue","tracer","trim","visitValues"],"entryPoint":"src/index.ts","inputs":{"src/array-to-hex.ts":{"bytesInOutput":341},"src/index.ts":{"bytesInOutput":0},"src/array.ts":{"bytesInOutput":1931},"src/assume.ts":{"bytesInOutput":31},"src/binder.ts":{"bytesInOutput":153},"src/bitfield.ts":{"bytesInOutput":1637},"src/browser-storage.ts":{"bytesInOutput":1360},"src/callback-collection.ts":{"bytesInOutput":558},"src/callback.ts":{"bytesInOutput":763},"src/case.ts":{"bytesInOutput":940},"src/chunk-array.ts":{"bytesInOutput":173},"src/circular-buffer.ts":{"bytesInOutput":1390},"src/clear-undefined.ts":{"bytesInOutput":223},"src/complex.ts":{"bytesInOutput":5568},"src/composite-key.ts":{"bytesInOutput":132},"src/deep.ts":{"bytesInOutput":530},"src/defer-function.ts":{"bytesInOutput":72},"src/defer.ts":{"bytesInOutput":603},"src/entry.ts":{"bytesInOutput":487},"src/error-format.ts":{"bytesInOutput":380},"src/filename.ts":{"bytesInOutput":176},"src/for-each-async.ts":{"bytesInOutput":62},"src/human-hash.ts":{"bytesInOutput":5674},"src/id.ts":{"bytesInOutput":552},"src/map.ts":{"bytesInOutput":193},"src/instance-id.ts":{"bytesInOutput":805},"src/interval.ts":{"bytesInOutput":290},"src/join-tables.ts":{"bytesInOutput":493},"src/json.ts":{"bytesInOutput":2958},"src/uint8array.ts":{"bytesInOutput":1261},"src/map-values.ts":{"bytesInOutput":2618},"src/object.ts":{"bytesInOutput":82},"src/order-keys.ts":{"bytesInOutput":266},"src/order.ts":{"bytesInOutput":687},"src/pick.ts":{"bytesInOutput":482},"src/platform.ts":{"bytesInOutput":5437},"src/position.ts":{"bytesInOutput":241},"src/random.ts":{"bytesInOutput":148},"src/range.ts":{"bytesInOutput":371},"src/reducers.ts":{"bytesInOutput":2326},"src/remove-undefined-keys.ts":{"bytesInOutput":935},"src/retry.ts":{"bytesInOutput":903},"src/safe-await.ts":{"bytesInOutput":345},"src/safe-instanceof.ts":{"bytesInOutput":387},"src/safe-parse.ts":{"bytesInOutput":634},"src/safe-stringify.ts":{"bytesInOutput":2691},"src/sliding-window-summary.ts":{"bytesInOutput":1569},"src/sort.ts":{"bytesInOutput":643},"src/string.ts":{"bytesInOutput":1136},"src/sum.ts":{"bytesInOutput":57},"src/throw-unhandled-error.ts":{"bytesInOutput":90},"src/to-fallback.ts":{"bytesInOutput":3114},"src/tracer.ts":{"bytesInOutput":1402},"src/tree.ts":{"bytesInOutput":1193},"src/types.ts":{"bytesInOutput":1044},"src/unit.ts":{"bytesInOutput":2338},"src/url.ts":{"bytesInOutput":246},"src/weak.ts":{"bytesInOutput":3309}},"bytes":67904}}}
1
+ {"inputs":{"src/array-to-hex.ts":{"bytes":2379,"imports":[],"format":"esm"},"src/array.ts":{"bytes":11929,"imports":[],"format":"esm"},"src/assume.ts":{"bytes":1259,"imports":[],"format":"esm"},"src/binder.ts":{"bytes":1230,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true}],"format":"esm"},"src/bitfield.ts":{"bytes":8147,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/browser-storage.ts":{"bytes":6825,"imports":[],"format":"esm"},"src/callback-collection.ts":{"bytes":3085,"imports":[],"format":"esm"},"src/callback.ts":{"bytes":4733,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/case.ts":{"bytes":4504,"imports":[],"format":"esm"},"src/chunk-array.ts":{"bytes":1118,"imports":[],"format":"esm"},"src/circular-buffer.ts":{"bytes":6300,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/clear-undefined.ts":{"bytes":1473,"imports":[],"format":"esm"},"src/complex.ts":{"bytes":25202,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/composite-key.ts":{"bytes":1461,"imports":[],"format":"esm"},"src/deep.ts":{"bytes":3594,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"src/defer-function.ts":{"bytes":1474,"imports":[],"format":"esm"},"src/defer.ts":{"bytes":3584,"imports":[{"path":"@hazae41/symbol-dispose-polyfill","kind":"import-statement","external":true}],"format":"esm"},"src/entry.ts":{"bytes":2931,"imports":[],"format":"esm"},"src/error-format.ts":{"bytes":2089,"imports":[],"format":"esm"},"src/filename.ts":{"bytes":1273,"imports":[],"format":"esm"},"src/for-each-async.ts":{"bytes":701,"imports":[],"format":"esm"},"src/human-hash.ts":{"bytes":19681,"imports":[{"path":"@dxos/keys","kind":"import-statement","external":true}],"format":"esm"},"src/id.ts":{"bytes":5229,"imports":[],"format":"esm"},"src/map.ts":{"bytes":1420,"imports":[],"format":"esm"},"src/instance-id.ts":{"bytes":4145,"imports":[{"path":"src/map.ts","kind":"import-statement","original":"./map"}],"format":"esm"},"src/interval.ts":{"bytes":1745,"imports":[],"format":"esm"},"src/join-tables.ts":{"bytes":2986,"imports":[],"format":"esm"},"src/uint8array.ts":{"bytes":8452,"imports":[],"format":"esm"},"src/json.ts":{"bytes":13202,"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"src/human-hash.ts","kind":"import-statement","original":"./human-hash"},{"path":"src/uint8array.ts","kind":"import-statement","original":"./uint8array"}],"format":"esm"},"src/map-values.ts":{"bytes":13773,"imports":[],"format":"esm"},"src/no-infer.ts":{"bytes":396,"imports":[],"format":"esm"},"src/object.ts":{"bytes":998,"imports":[],"format":"esm"},"src/order-keys.ts":{"bytes":1518,"imports":[],"format":"esm"},"src/order.ts":{"bytes":4900,"imports":[],"format":"esm"},"src/pick.ts":{"bytes":3578,"imports":[],"format":"esm"},"src/platform.ts":{"bytes":17349,"imports":[],"format":"esm"},"src/Position.ts":{"bytes":2443,"imports":[],"format":"esm"},"src/random.ts":{"bytes":1231,"imports":[],"format":"esm"},"src/range.ts":{"bytes":2540,"imports":[],"format":"esm"},"src/reducers.ts":{"bytes":12738,"imports":[{"path":"src/map.ts","kind":"import-statement","original":"./map"}],"format":"esm"},"src/remove-undefined-keys.ts":{"bytes":4473,"imports":[],"format":"esm"},"src/retry.ts":{"bytes":4890,"imports":[],"format":"esm"},"src/safe-await.ts":{"bytes":2767,"imports":[],"format":"esm"},"src/safe-instanceof.ts":{"bytes":2599,"imports":[],"format":"esm"},"src/safe-parse.ts":{"bytes":3850,"imports":[],"format":"esm"},"src/safe-stringify.ts":{"bytes":13259,"imports":[],"format":"esm"},"src/sliding-window-summary.ts":{"bytes":7195,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"src/circular-buffer.ts","kind":"import-statement","original":"./circular-buffer"}],"format":"esm"},"src/sort.ts":{"bytes":3861,"imports":[],"format":"esm"},"src/string.ts":{"bytes":7221,"imports":[],"format":"esm"},"src/sum.ts":{"bytes":606,"imports":[],"format":"esm"},"src/throw-unhandled-error.ts":{"bytes":1076,"imports":[],"format":"esm"},"src/to-fallback.ts":{"bytes":12393,"imports":[],"format":"esm"},"src/tracer.ts":{"bytes":7153,"imports":[{"path":"src/map.ts","kind":"import-statement","original":"./map"}],"format":"esm"},"src/tree.ts":{"bytes":6176,"imports":[{"path":"@dxos/debug","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":10835,"imports":[],"format":"esm"},"src/unit.ts":{"bytes":9344,"imports":[],"format":"esm"},"src/url.ts":{"bytes":1558,"imports":[],"format":"esm"},"src/weak.ts":{"bytes":13604,"imports":[],"format":"esm"},"src/index.ts":{"bytes":5611,"imports":[{"path":"src/array-to-hex.ts","kind":"import-statement","original":"./array-to-hex"},{"path":"src/array.ts","kind":"import-statement","original":"./array"},{"path":"src/assume.ts","kind":"import-statement","original":"./assume"},{"path":"src/binder.ts","kind":"import-statement","original":"./binder"},{"path":"src/bitfield.ts","kind":"import-statement","original":"./bitfield"},{"path":"src/browser-storage.ts","kind":"import-statement","original":"./browser-storage"},{"path":"src/callback-collection.ts","kind":"import-statement","original":"./callback-collection"},{"path":"src/callback.ts","kind":"import-statement","original":"./callback"},{"path":"src/case.ts","kind":"import-statement","original":"./case"},{"path":"src/chunk-array.ts","kind":"import-statement","original":"./chunk-array"},{"path":"src/circular-buffer.ts","kind":"import-statement","original":"./circular-buffer"},{"path":"src/clear-undefined.ts","kind":"import-statement","original":"./clear-undefined"},{"path":"src/complex.ts","kind":"import-statement","original":"./complex"},{"path":"src/composite-key.ts","kind":"import-statement","original":"./composite-key"},{"path":"src/deep.ts","kind":"import-statement","original":"./deep"},{"path":"src/defer-function.ts","kind":"import-statement","original":"./defer-function"},{"path":"src/defer.ts","kind":"import-statement","original":"./defer"},{"path":"src/entry.ts","kind":"import-statement","original":"./entry"},{"path":"src/error-format.ts","kind":"import-statement","original":"./error-format"},{"path":"src/filename.ts","kind":"import-statement","original":"./filename"},{"path":"src/for-each-async.ts","kind":"import-statement","original":"./for-each-async"},{"path":"src/human-hash.ts","kind":"import-statement","original":"./human-hash"},{"path":"src/id.ts","kind":"import-statement","original":"./id"},{"path":"src/instance-id.ts","kind":"import-statement","original":"./instance-id"},{"path":"src/interval.ts","kind":"import-statement","original":"./interval"},{"path":"src/join-tables.ts","kind":"import-statement","original":"./join-tables"},{"path":"src/json.ts","kind":"import-statement","original":"./json"},{"path":"src/map-values.ts","kind":"import-statement","original":"./map-values"},{"path":"src/map.ts","kind":"import-statement","original":"./map"},{"path":"src/no-infer.ts","kind":"import-statement","original":"./no-infer"},{"path":"src/object.ts","kind":"import-statement","original":"./object"},{"path":"src/order-keys.ts","kind":"import-statement","original":"./order-keys"},{"path":"src/order.ts","kind":"import-statement","original":"./order"},{"path":"src/pick.ts","kind":"import-statement","original":"./pick"},{"path":"src/platform.ts","kind":"import-statement","original":"./platform"},{"path":"src/Position.ts","kind":"import-statement","original":"./Position"},{"path":"src/random.ts","kind":"import-statement","original":"./random"},{"path":"src/range.ts","kind":"import-statement","original":"./range"},{"path":"src/reducers.ts","kind":"import-statement","original":"./reducers"},{"path":"src/remove-undefined-keys.ts","kind":"import-statement","original":"./remove-undefined-keys"},{"path":"src/retry.ts","kind":"import-statement","original":"./retry"},{"path":"src/safe-await.ts","kind":"import-statement","original":"./safe-await"},{"path":"src/safe-instanceof.ts","kind":"import-statement","original":"./safe-instanceof"},{"path":"src/safe-parse.ts","kind":"import-statement","original":"./safe-parse"},{"path":"src/safe-stringify.ts","kind":"import-statement","original":"./safe-stringify"},{"path":"src/sliding-window-summary.ts","kind":"import-statement","original":"./sliding-window-summary"},{"path":"src/sort.ts","kind":"import-statement","original":"./sort"},{"path":"src/string.ts","kind":"import-statement","original":"./string"},{"path":"src/sum.ts","kind":"import-statement","original":"./sum"},{"path":"src/throw-unhandled-error.ts","kind":"import-statement","original":"./throw-unhandled-error"},{"path":"src/to-fallback.ts","kind":"import-statement","original":"./to-fallback"},{"path":"src/tracer.ts","kind":"import-statement","original":"./tracer"},{"path":"src/tree.ts","kind":"import-statement","original":"./tree"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/uint8array.ts","kind":"import-statement","original":"./uint8array"},{"path":"src/unit.ts","kind":"import-statement","original":"./unit"},{"path":"src/url.ts","kind":"import-statement","original":"./url"},{"path":"src/weak.ts","kind":"import-statement","original":"./weak"}],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":164456},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@hazae41/symbol-dispose-polyfill","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/node-std/util","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true}],"exports":["BitField","Callback","CallbackCollection","CircularBuffer","ComplexMap","ComplexSet","HumanHasher","MapEntry","Position","SKIP","SlidingWindowSummary","Tracer","Unit","WeakDictionary","accessBy","arrayMove","arraySwap","arrayToBuffer","arrayToHex","arrayToString","arraysEqual","assumeType","bufferToArray","capitalize","chunkArray","clamp","clearCaches","clearIndexedDB","clearOPFS","clearServiceWorkers","clearUndefined","coerceArray","compareMulti","compareObject","compareScalar","compareString","compositeKey","createBinder","createBucketReducer","createFilename","createGroupReducer","createReplacer","createSetDispatch","createUrl","decamelize","decodeUint8ArrayFromJson","deepMapValues","deepMapValuesAsync","defaultFilter","defaultMap","defer","deferAsync","deferFunction","diff","distinctBy","doAsync","encodeUint8ArrayToJson","entries","entry","exponentialBackoffInterval","forEachAsync","formatErrorWithCauses","getAsyncProviderValue","getDate","getDebugName","getDeep","getHostPlatform","getPrototypeSpecificInstanceId","getProviderValue","hexToEmoji","hexToFallback","hexToHue","humanize","hyphenize","id","idEmoji","idHue","inferObjectOrder","inferRecordOrder","inline","intersectBy","intersection","iosCheck","isBun","isEncodedUint8Array","isMobile","isMobileOrTablet","isNode","isNonNullable","isTauri","isTruthy","isWellFormedId","isWellFormedIdPart","joinTables","jsonKeyReplacer","jsonReplacer","jsonify","jsonlogify","kebabize","keyToEmoji","keyToFallback","keyToHue","keys","makeMap","makeSet","mapValues","median","numericalValues","omit","orderKeys","partition","pick","pickBy","randomInt","range","rangeFromTo","reduceGroupBy","reduceSeries","reduceSet","removeBy","removeProperties","removeUndefinedProperties","retry","safariCheck","safeAwaitAll","safeInstanceof","safeParseFloat","safeParseInt","safeParseJson","safeStringify","safeUrl","setDeep","sortKeys","splitCompositeKey","stringToArray","stringifyTree","stripUndefined","sum","throwUnhandledError","toEmoji","toFallback","toHue","tracer","trim","visitValues"],"entryPoint":"src/index.ts","inputs":{"src/array-to-hex.ts":{"bytesInOutput":341},"src/index.ts":{"bytesInOutput":0},"src/array.ts":{"bytesInOutput":1933},"src/assume.ts":{"bytesInOutput":31},"src/binder.ts":{"bytesInOutput":153},"src/bitfield.ts":{"bytesInOutput":1642},"src/browser-storage.ts":{"bytesInOutput":1360},"src/callback-collection.ts":{"bytesInOutput":558},"src/callback.ts":{"bytesInOutput":763},"src/case.ts":{"bytesInOutput":940},"src/chunk-array.ts":{"bytesInOutput":173},"src/circular-buffer.ts":{"bytesInOutput":1390},"src/clear-undefined.ts":{"bytesInOutput":223},"src/complex.ts":{"bytesInOutput":5568},"src/composite-key.ts":{"bytesInOutput":132},"src/deep.ts":{"bytesInOutput":530},"src/defer-function.ts":{"bytesInOutput":72},"src/defer.ts":{"bytesInOutput":603},"src/entry.ts":{"bytesInOutput":487},"src/error-format.ts":{"bytesInOutput":380},"src/filename.ts":{"bytesInOutput":176},"src/for-each-async.ts":{"bytesInOutput":62},"src/human-hash.ts":{"bytesInOutput":5674},"src/id.ts":{"bytesInOutput":552},"src/map.ts":{"bytesInOutput":193},"src/instance-id.ts":{"bytesInOutput":805},"src/interval.ts":{"bytesInOutput":290},"src/join-tables.ts":{"bytesInOutput":493},"src/json.ts":{"bytesInOutput":2958},"src/uint8array.ts":{"bytesInOutput":1261},"src/map-values.ts":{"bytesInOutput":2618},"src/object.ts":{"bytesInOutput":82},"src/order-keys.ts":{"bytesInOutput":266},"src/order.ts":{"bytesInOutput":687},"src/pick.ts":{"bytesInOutput":482},"src/platform.ts":{"bytesInOutput":5437},"src/Position.ts":{"bytesInOutput":346},"src/random.ts":{"bytesInOutput":148},"src/range.ts":{"bytesInOutput":371},"src/reducers.ts":{"bytesInOutput":2326},"src/remove-undefined-keys.ts":{"bytesInOutput":935},"src/retry.ts":{"bytesInOutput":903},"src/safe-await.ts":{"bytesInOutput":345},"src/safe-instanceof.ts":{"bytesInOutput":387},"src/safe-parse.ts":{"bytesInOutput":634},"src/safe-stringify.ts":{"bytesInOutput":2691},"src/sliding-window-summary.ts":{"bytesInOutput":1569},"src/sort.ts":{"bytesInOutput":643},"src/string.ts":{"bytesInOutput":1136},"src/sum.ts":{"bytesInOutput":57},"src/throw-unhandled-error.ts":{"bytesInOutput":90},"src/to-fallback.ts":{"bytesInOutput":3114},"src/tracer.ts":{"bytesInOutput":1402},"src/tree.ts":{"bytesInOutput":1197},"src/types.ts":{"bytesInOutput":1044},"src/unit.ts":{"bytesInOutput":2338},"src/url.ts":{"bytesInOutput":246},"src/weak.ts":{"bytesInOutput":3309}},"bytes":68205}}}
@@ -1,4 +1,9 @@
1
1
  import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, { get: all[name], enumerable: true });
6
+ };
2
7
 
3
8
  // src/array-to-hex.ts
4
9
  var byteToHex = [];
@@ -84,7 +89,7 @@ var intersectBy = (arrays, selector) => {
84
89
  ...arrays[0]
85
90
  ];
86
91
  }
87
- const [first, ...rest] = arrays;
92
+ const [first2, ...rest] = arrays;
88
93
  const lookups = rest.map((array) => {
89
94
  const map = /* @__PURE__ */ new Map();
90
95
  for (const item of array) {
@@ -92,7 +97,7 @@ var intersectBy = (arrays, selector) => {
92
97
  }
93
98
  return map;
94
99
  });
95
- return first.filter((item) => {
100
+ return first2.filter((item) => {
96
101
  const key = selector(item);
97
102
  return lookups.every((lookup) => lookup.has(key));
98
103
  });
@@ -149,11 +154,11 @@ var BitField = class _BitField {
149
154
  }
150
155
  return result;
151
156
  }
152
- static and(first, second) {
153
- invariant(first.length === second.length, "Bitfields must be of the same length");
154
- const result = new Uint8Array(first.length);
155
- for (let i = 0; i < first.length; i++) {
156
- result[i] = first[i] & second[i];
157
+ static and(first2, second) {
158
+ invariant(first2.length === second.length, "Bitfields must be of the same length");
159
+ const result = new Uint8Array(first2.length);
160
+ for (let i = 0; i < first2.length; i++) {
161
+ result[i] = first2[i] & second[i];
157
162
  }
158
163
  return result;
159
164
  }
@@ -1507,17 +1512,22 @@ var getHostPlatform = () => {
1507
1512
  }
1508
1513
  };
1509
1514
 
1510
- // src/position.ts
1511
- var byPosition = ({ position: a }, { position: b }) => {
1512
- if (a === b) {
1513
- return 0;
1514
- } else if (a === "first" || b === "last") {
1515
- return -1;
1516
- } else if (b === "first" || a === "last") {
1517
- return 1;
1518
- } else {
1515
+ // src/Position.ts
1516
+ var Position_exports = {};
1517
+ __export(Position_exports, {
1518
+ compare: () => compare,
1519
+ first: () => first,
1520
+ last: () => last
1521
+ });
1522
+ var first = -Infinity;
1523
+ var last = Infinity;
1524
+ var compare = ({ position: a }, { position: b }) => {
1525
+ const aVal = a ?? 0;
1526
+ const bVal = b ?? 0;
1527
+ if (aVal === bVal) {
1519
1528
  return 0;
1520
1529
  }
1530
+ return aVal < bVal ? -1 : 1;
1521
1531
  };
1522
1532
 
1523
1533
  // src/random.ts
@@ -2227,11 +2237,11 @@ var stringifyTree = (node, ancestors = [], rows = []) => {
2227
2237
  const name = (node2) => truncateKey(node2.id, keyLen);
2228
2238
  const parts = [];
2229
2239
  ancestors.forEach(([node2, i], j) => {
2230
- const first = ancestors.slice(j).every(([_, i2]) => i2 === 0);
2231
- parts.push(j === 0 ? first ? "\u251C" : " " : "");
2232
- parts.push(first ? `\u2500(${name(node2)})\u2500` : "".padEnd(keyLen + 4));
2240
+ const first2 = ancestors.slice(j).every(([_, i2]) => i2 === 0);
2241
+ parts.push(j === 0 ? first2 ? "\u251C" : " " : "");
2242
+ parts.push(first2 ? `\u2500(${name(node2)})\u2500` : "".padEnd(keyLen + 4));
2233
2243
  if (node2.children) {
2234
- if (first) {
2244
+ if (first2) {
2235
2245
  parts.push(node2.children.length > 1 ? "\u252C" : "\u2500");
2236
2246
  } else {
2237
2247
  const childFirst = ancestors.slice(j + 1).every(([_, i2]) => i2 === 0);
@@ -2545,6 +2555,7 @@ export {
2545
2555
  ComplexSet,
2546
2556
  HumanHasher,
2547
2557
  MapEntry,
2558
+ Position_exports as Position,
2548
2559
  SKIP,
2549
2560
  SlidingWindowSummary,
2550
2561
  Tracer,
@@ -2559,7 +2570,6 @@ export {
2559
2570
  arraysEqual,
2560
2571
  assumeType,
2561
2572
  bufferToArray,
2562
- byPosition,
2563
2573
  capitalize,
2564
2574
  chunkArray,
2565
2575
  clamp,