@jsonjoy.com/json-pack 0.0.1 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +432 -0
- package/lib/JsonPackExtension.d.ts +5 -0
- package/lib/JsonPackExtension.js +11 -0
- package/lib/JsonPackExtension.js.map +1 -0
- package/lib/JsonPackValue.d.ts +4 -0
- package/lib/JsonPackValue.js +10 -0
- package/lib/JsonPackValue.js.map +1 -0
- package/lib/__demos__/cbor.d.ts +1 -0
- package/lib/__demos__/cbor.js +50 -0
- package/lib/__demos__/cbor.js.map +1 -0
- package/lib/__demos__/json.d.ts +1 -0
- package/lib/__demos__/json.js +27 -0
- package/lib/__demos__/json.js.map +1 -0
- package/lib/__demos__/msgpack.d.ts +1 -0
- package/lib/__demos__/msgpack.js +35 -0
- package/lib/__demos__/msgpack.js.map +1 -0
- package/lib/__demos__/ubjson.d.ts +1 -0
- package/lib/__demos__/ubjson.js +27 -0
- package/lib/__demos__/ubjson.js.map +1 -0
- package/lib/bencode/BencodeDecoder.d.ts +18 -0
- package/lib/bencode/BencodeDecoder.js +156 -0
- package/lib/bencode/BencodeDecoder.js.map +1 -0
- package/lib/bencode/BencodeEncoder.d.ts +24 -0
- package/lib/bencode/BencodeEncoder.js +147 -0
- package/lib/bencode/BencodeEncoder.js.map +1 -0
- package/lib/bencode/index.d.ts +3 -0
- package/lib/bencode/index.js +7 -0
- package/lib/bencode/index.js.map +1 -0
- package/lib/bencode/types.d.ts +4 -0
- package/lib/bencode/types.js +3 -0
- package/lib/bencode/types.js.map +1 -0
- package/lib/bson/BsonEncoder.d.ts +27 -0
- package/lib/bson/BsonEncoder.js +364 -0
- package/lib/bson/BsonEncoder.js.map +1 -0
- package/lib/bson/index.d.ts +2 -0
- package/lib/bson/index.js +6 -0
- package/lib/bson/index.js.map +1 -0
- package/lib/bson/values.d.ts +54 -0
- package/lib/bson/values.js +82 -0
- package/lib/bson/values.js.map +1 -0
- package/lib/cbor/CborDecoder.d.ts +41 -0
- package/lib/cbor/CborDecoder.js +356 -0
- package/lib/cbor/CborDecoder.js.map +1 -0
- package/lib/cbor/CborDecoderBase.d.ts +34 -0
- package/lib/cbor/CborDecoderBase.js +340 -0
- package/lib/cbor/CborDecoderBase.js.map +1 -0
- package/lib/cbor/CborDecoderDag.d.ts +5 -0
- package/lib/cbor/CborDecoderDag.js +13 -0
- package/lib/cbor/CborDecoderDag.js.map +1 -0
- package/lib/cbor/CborEncoder.d.ts +9 -0
- package/lib/cbor/CborEncoder.js +68 -0
- package/lib/cbor/CborEncoder.js.map +1 -0
- package/lib/cbor/CborEncoderDag.d.ts +6 -0
- package/lib/cbor/CborEncoderDag.js +23 -0
- package/lib/cbor/CborEncoderDag.js.map +1 -0
- package/lib/cbor/CborEncoderFast.d.ts +51 -0
- package/lib/cbor/CborEncoderFast.js +333 -0
- package/lib/cbor/CborEncoderFast.js.map +1 -0
- package/lib/cbor/CborEncoderStable.d.ts +6 -0
- package/lib/cbor/CborEncoderStable.js +71 -0
- package/lib/cbor/CborEncoderStable.js.map +1 -0
- package/lib/cbor/constants.d.ts +39 -0
- package/lib/cbor/constants.js +3 -0
- package/lib/cbor/constants.js.map +1 -0
- package/lib/cbor/index.d.ts +8 -0
- package/lib/cbor/index.js +12 -0
- package/lib/cbor/index.js.map +1 -0
- package/lib/cbor/shared.d.ts +8 -0
- package/lib/cbor/shared.js +12 -0
- package/lib/cbor/shared.js.map +1 -0
- package/lib/cbor/types.d.ts +4 -0
- package/lib/cbor/types.js +3 -0
- package/lib/cbor/types.js.map +1 -0
- package/lib/codecs/Codecs.d.ts +11 -0
- package/lib/codecs/Codecs.js +16 -0
- package/lib/codecs/Codecs.js.map +1 -0
- package/lib/codecs/cbor.d.ts +12 -0
- package/lib/codecs/cbor.js +15 -0
- package/lib/codecs/cbor.js.map +1 -0
- package/lib/codecs/json.d.ts +12 -0
- package/lib/codecs/json.js +15 -0
- package/lib/codecs/json.js.map +1 -0
- package/lib/codecs/msgpack.d.ts +12 -0
- package/lib/codecs/msgpack.js +15 -0
- package/lib/codecs/msgpack.js.map +1 -0
- package/lib/codecs/types.d.ts +8 -0
- package/lib/codecs/types.js +3 -0
- package/lib/codecs/types.js.map +1 -0
- package/lib/constants.d.ts +5 -0
- package/lib/constants.js +3 -0
- package/lib/constants.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/ion/Import.d.ts +14 -0
- package/lib/ion/Import.js +48 -0
- package/lib/ion/Import.js.map +1 -0
- package/lib/ion/IonEncoderFast.d.ts +22 -0
- package/lib/ion/IonEncoderFast.js +247 -0
- package/lib/ion/IonEncoderFast.js.map +1 -0
- package/lib/ion/ast.d.ts +68 -0
- package/lib/ion/ast.js +213 -0
- package/lib/ion/ast.js.map +1 -0
- package/lib/ion/constants.d.ts +24 -0
- package/lib/ion/constants.js +3 -0
- package/lib/ion/constants.js.map +1 -0
- package/lib/ion/index.d.ts +5 -0
- package/lib/ion/index.js +9 -0
- package/lib/ion/index.js.map +1 -0
- package/lib/ion/symbols.d.ts +4 -0
- package/lib/ion/symbols.js +17 -0
- package/lib/ion/symbols.js.map +1 -0
- package/lib/ion/types.d.ts +1 -0
- package/lib/ion/types.js +3 -0
- package/lib/ion/types.js.map +1 -0
- package/lib/json/JsonDecoder.d.ts +19 -0
- package/lib/json/JsonDecoder.js +594 -0
- package/lib/json/JsonDecoder.js.map +1 -0
- package/lib/json/JsonDecoderDag.d.ts +9 -0
- package/lib/json/JsonDecoderDag.js +118 -0
- package/lib/json/JsonDecoderDag.js.map +1 -0
- package/lib/json/JsonEncoder.d.ts +36 -0
- package/lib/json/JsonEncoder.js +253 -0
- package/lib/json/JsonEncoder.js.map +1 -0
- package/lib/json/JsonEncoderDag.d.ts +5 -0
- package/lib/json/JsonEncoderDag.js +44 -0
- package/lib/json/JsonEncoderDag.js.map +1 -0
- package/lib/json/JsonEncoderStable.d.ts +4 -0
- package/lib/json/JsonEncoderStable.js +28 -0
- package/lib/json/JsonEncoderStable.js.map +1 -0
- package/lib/json/index.d.ts +6 -0
- package/lib/json/index.js +10 -0
- package/lib/json/index.js.map +1 -0
- package/lib/json/types.d.ts +4 -0
- package/lib/json/types.js +3 -0
- package/lib/json/types.js.map +1 -0
- package/lib/json/util.d.ts +1 -0
- package/lib/json/util.js +22 -0
- package/lib/json/util.js.map +1 -0
- package/lib/json-binary/codec.d.ts +8 -0
- package/lib/json-binary/codec.js +129 -0
- package/lib/json-binary/codec.js.map +1 -0
- package/lib/json-binary/constants.d.ts +3 -0
- package/lib/json-binary/constants.js +8 -0
- package/lib/json-binary/constants.js.map +1 -0
- package/lib/json-binary/index.d.ts +3 -0
- package/lib/json-binary/index.js +7 -0
- package/lib/json-binary/index.js.map +1 -0
- package/lib/json-binary/types.d.ts +7 -0
- package/lib/json-binary/types.js +3 -0
- package/lib/json-binary/types.js.map +1 -0
- package/lib/json-brand/index.d.ts +3 -0
- package/lib/json-brand/index.js +5 -0
- package/lib/json-brand/index.js.map +1 -0
- package/lib/json-brand/types.d.ts +10 -0
- package/lib/json-brand/types.js +3 -0
- package/lib/json-brand/types.js.map +1 -0
- package/lib/json-equal/$$deepEqual/index.d.ts +1 -0
- package/lib/json-equal/$$deepEqual/index.js +5 -0
- package/lib/json-equal/$$deepEqual/index.js.map +1 -0
- package/lib/json-equal/$$deepEqual/v1.d.ts +2 -0
- package/lib/json-equal/$$deepEqual/v1.js +52 -0
- package/lib/json-equal/$$deepEqual/v1.js.map +1 -0
- package/lib/json-equal/deepEqual/index.d.ts +1 -0
- package/lib/json-equal/deepEqual/index.js +5 -0
- package/lib/json-equal/deepEqual/index.js.map +1 -0
- package/lib/json-equal/deepEqual/v1.d.ts +1 -0
- package/lib/json-equal/deepEqual/v1.js +34 -0
- package/lib/json-equal/deepEqual/v1.js.map +1 -0
- package/lib/json-equal/deepEqual/v2.d.ts +1 -0
- package/lib/json-equal/deepEqual/v2.js +37 -0
- package/lib/json-equal/deepEqual/v2.js.map +1 -0
- package/lib/json-equal/deepEqual/v3.d.ts +1 -0
- package/lib/json-equal/deepEqual/v3.js +37 -0
- package/lib/json-equal/deepEqual/v3.js.map +1 -0
- package/lib/json-equal/deepEqual/v4.d.ts +1 -0
- package/lib/json-equal/deepEqual/v4.js +34 -0
- package/lib/json-equal/deepEqual/v4.js.map +1 -0
- package/lib/json-pointer/index.d.ts +1 -0
- package/lib/json-pointer/index.js +5 -0
- package/lib/json-pointer/index.js.map +1 -0
- package/lib/json-pointer/types.d.ts +2 -0
- package/lib/json-pointer/types.js +3 -0
- package/lib/json-pointer/types.js.map +1 -0
- package/lib/json-random/RandomJson.d.ts +39 -0
- package/lib/json-random/RandomJson.js +267 -0
- package/lib/json-random/RandomJson.js.map +1 -0
- package/lib/json-random/__demos__/json-random.d.ts +1 -0
- package/lib/json-random/__demos__/json-random.js +35 -0
- package/lib/json-random/__demos__/json-random.js.map +1 -0
- package/lib/json-random/index.d.ts +1 -0
- package/lib/json-random/index.js +5 -0
- package/lib/json-random/index.js.map +1 -0
- package/lib/msgpack/MsgPackDecoder.d.ts +19 -0
- package/lib/msgpack/MsgPackDecoder.js +233 -0
- package/lib/msgpack/MsgPackDecoder.js.map +1 -0
- package/lib/msgpack/MsgPackDecoderFast.d.ts +18 -0
- package/lib/msgpack/MsgPackDecoderFast.js +182 -0
- package/lib/msgpack/MsgPackDecoderFast.js.map +1 -0
- package/lib/msgpack/MsgPackEncoder.d.ts +5 -0
- package/lib/msgpack/MsgPackEncoder.js +40 -0
- package/lib/msgpack/MsgPackEncoder.js.map +1 -0
- package/lib/msgpack/MsgPackEncoderFast.d.ts +45 -0
- package/lib/msgpack/MsgPackEncoderFast.js +296 -0
- package/lib/msgpack/MsgPackEncoderFast.js.map +1 -0
- package/lib/msgpack/MsgPackEncoderStable.d.ts +4 -0
- package/lib/msgpack/MsgPackEncoderStable.js +19 -0
- package/lib/msgpack/MsgPackEncoderStable.js.map +1 -0
- package/lib/msgpack/MsgPackToJsonConverter.d.ts +24 -0
- package/lib/msgpack/MsgPackToJsonConverter.js +218 -0
- package/lib/msgpack/MsgPackToJsonConverter.js.map +1 -0
- package/lib/msgpack/constants.d.ts +6 -0
- package/lib/msgpack/constants.js +3 -0
- package/lib/msgpack/constants.js.map +1 -0
- package/lib/msgpack/index.d.ts +8 -0
- package/lib/msgpack/index.js +20 -0
- package/lib/msgpack/index.js.map +1 -0
- package/lib/msgpack/shallow-read.d.ts +6 -0
- package/lib/msgpack/shallow-read.js +102 -0
- package/lib/msgpack/shallow-read.js.map +1 -0
- package/lib/msgpack/types.d.ts +15 -0
- package/lib/msgpack/types.js +3 -0
- package/lib/msgpack/types.js.map +1 -0
- package/lib/msgpack/util.d.ts +11 -0
- package/lib/msgpack/util.js +16 -0
- package/lib/msgpack/util.js.map +1 -0
- package/lib/resp/RespDecoder.d.ts +39 -0
- package/lib/resp/RespDecoder.js +388 -0
- package/lib/resp/RespDecoder.js.map +1 -0
- package/lib/resp/RespEncoder.d.ts +60 -0
- package/lib/resp/RespEncoder.js +424 -0
- package/lib/resp/RespEncoder.js.map +1 -0
- package/lib/resp/RespEncoderLegacy.d.ts +12 -0
- package/lib/resp/RespEncoderLegacy.js +105 -0
- package/lib/resp/RespEncoderLegacy.js.map +1 -0
- package/lib/resp/RespStreamingDecoder.d.ts +12 -0
- package/lib/resp/RespStreamingDecoder.js +79 -0
- package/lib/resp/RespStreamingDecoder.js.map +1 -0
- package/lib/resp/constants.d.ts +22 -0
- package/lib/resp/constants.js +3 -0
- package/lib/resp/constants.js.map +1 -0
- package/lib/resp/extensions.d.ts +13 -0
- package/lib/resp/extensions.js +26 -0
- package/lib/resp/extensions.js.map +1 -0
- package/lib/resp/index.d.ts +6 -0
- package/lib/resp/index.js +10 -0
- package/lib/resp/index.js.map +1 -0
- package/lib/types.d.ts +61 -0
- package/lib/types.js +3 -0
- package/lib/types.js.map +1 -0
- package/lib/ubjson/UbjsonDecoder.d.ts +8 -0
- package/lib/ubjson/UbjsonDecoder.js +128 -0
- package/lib/ubjson/UbjsonDecoder.js.map +1 -0
- package/lib/ubjson/UbjsonEncoder.d.ts +34 -0
- package/lib/ubjson/UbjsonEncoder.js +218 -0
- package/lib/ubjson/UbjsonEncoder.js.map +1 -0
- package/lib/ubjson/index.d.ts +2 -0
- package/lib/ubjson/index.js +6 -0
- package/lib/ubjson/index.js.map +1 -0
- package/lib/util/CompressionTable.d.ts +14 -0
- package/lib/util/CompressionTable.js +169 -0
- package/lib/util/CompressionTable.js.map +1 -0
- package/lib/util/DecompressionTable.d.ts +6 -0
- package/lib/util/DecompressionTable.js +96 -0
- package/lib/util/DecompressionTable.js.map +1 -0
- package/lib/util/Fuzzer.d.ts +13 -0
- package/lib/util/Fuzzer.js +59 -0
- package/lib/util/Fuzzer.js.map +1 -0
- package/lib/util/NullObject.d.ts +1 -0
- package/lib/util/NullObject.js +6 -0
- package/lib/util/NullObject.js.map +1 -0
- package/lib/util/buffers/Reader.d.ts +22 -0
- package/lib/util/buffers/Reader.js +91 -0
- package/lib/util/buffers/Reader.js.map +1 -0
- package/lib/util/buffers/Slice.d.ts +8 -0
- package/lib/util/buffers/Slice.js +16 -0
- package/lib/util/buffers/Slice.js.map +1 -0
- package/lib/util/buffers/StreamingOctetReader.d.ts +18 -0
- package/lib/util/buffers/StreamingOctetReader.js +168 -0
- package/lib/util/buffers/StreamingOctetReader.js.map +1 -0
- package/lib/util/buffers/StreamingReader.d.ts +31 -0
- package/lib/util/buffers/StreamingReader.js +131 -0
- package/lib/util/buffers/StreamingReader.js.map +1 -0
- package/lib/util/buffers/Uint8ArrayCut.d.ts +6 -0
- package/lib/util/buffers/Uint8ArrayCut.js +12 -0
- package/lib/util/buffers/Uint8ArrayCut.js.map +1 -0
- package/lib/util/buffers/Writer.d.ts +33 -0
- package/lib/util/buffers/Writer.js +217 -0
- package/lib/util/buffers/Writer.js.map +1 -0
- package/lib/util/buffers/b.d.ts +1 -0
- package/lib/util/buffers/b.js +6 -0
- package/lib/util/buffers/b.js.map +1 -0
- package/lib/util/buffers/bufferToUint8Array.d.ts +2 -0
- package/lib/util/buffers/bufferToUint8Array.js +6 -0
- package/lib/util/buffers/bufferToUint8Array.js.map +1 -0
- package/lib/util/buffers/cmpUint8Array.d.ts +1 -0
- package/lib/util/buffers/cmpUint8Array.js +14 -0
- package/lib/util/buffers/cmpUint8Array.js.map +1 -0
- package/lib/util/buffers/cmpUint8Array2.d.ts +1 -0
- package/lib/util/buffers/cmpUint8Array2.js +16 -0
- package/lib/util/buffers/cmpUint8Array2.js.map +1 -0
- package/lib/util/buffers/cmpUint8Array3.d.ts +1 -0
- package/lib/util/buffers/cmpUint8Array3.js +18 -0
- package/lib/util/buffers/cmpUint8Array3.js.map +1 -0
- package/lib/util/buffers/concat.d.ts +3 -0
- package/lib/util/buffers/concat.js +36 -0
- package/lib/util/buffers/concat.js.map +1 -0
- package/lib/util/buffers/copy.d.ts +1 -0
- package/lib/util/buffers/copy.js +10 -0
- package/lib/util/buffers/copy.js.map +1 -0
- package/lib/util/buffers/f16.d.ts +1 -0
- package/lib/util/buffers/f16.js +18 -0
- package/lib/util/buffers/f16.js.map +1 -0
- package/lib/util/buffers/index.d.ts +1 -0
- package/lib/util/buffers/index.js +5 -0
- package/lib/util/buffers/index.js.map +1 -0
- package/lib/util/buffers/isArrayBuffer.d.ts +1 -0
- package/lib/util/buffers/isArrayBuffer.js +8 -0
- package/lib/util/buffers/isArrayBuffer.js.map +1 -0
- package/lib/util/buffers/isFloat32.d.ts +1 -0
- package/lib/util/buffers/isFloat32.js +10 -0
- package/lib/util/buffers/isFloat32.js.map +1 -0
- package/lib/util/buffers/isUint8Array.d.ts +1 -0
- package/lib/util/buffers/isUint8Array.js +7 -0
- package/lib/util/buffers/isUint8Array.js.map +1 -0
- package/lib/util/buffers/printOctets.d.ts +1 -0
- package/lib/util/buffers/printOctets.js +23 -0
- package/lib/util/buffers/printOctets.js.map +1 -0
- package/lib/util/buffers/strings.d.ts +6 -0
- package/lib/util/buffers/strings.js +23 -0
- package/lib/util/buffers/strings.js.map +1 -0
- package/lib/util/buffers/toBuf.d.ts +1 -0
- package/lib/util/buffers/toBuf.js +12 -0
- package/lib/util/buffers/toBuf.js.map +1 -0
- package/lib/util/buffers/toDataUri.d.ts +1 -0
- package/lib/util/buffers/toDataUri.js +12 -0
- package/lib/util/buffers/toDataUri.js.map +1 -0
- package/lib/util/buffers/toUint8Array.d.ts +1 -0
- package/lib/util/buffers/toUint8Array.js +19 -0
- package/lib/util/buffers/toUint8Array.js.map +1 -0
- package/lib/util/buffers/types.d.ts +54 -0
- package/lib/util/buffers/types.js +3 -0
- package/lib/util/buffers/types.js.map +1 -0
- package/lib/util/buffers/utf8/CachedUtf8Decoder.d.ts +7 -0
- package/lib/util/buffers/utf8/CachedUtf8Decoder.js +54 -0
- package/lib/util/buffers/utf8/CachedUtf8Decoder.js.map +1 -0
- package/lib/util/buffers/utf8/decodeAscii.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeAscii.js +163 -0
- package/lib/util/buffers/utf8/decodeAscii.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/index.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/index.js +7 -0
- package/lib/util/buffers/utf8/decodeUtf8/index.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v1.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v1.js +46 -0
- package/lib/util/buffers/utf8/decodeUtf8/v1.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v10.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v10.js +43 -0
- package/lib/util/buffers/utf8/decodeUtf8/v10.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v11.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v11.js +5 -0
- package/lib/util/buffers/utf8/decodeUtf8/v11.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v12.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v12.js +7 -0
- package/lib/util/buffers/utf8/decodeUtf8/v12.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v13.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v13.js +26 -0
- package/lib/util/buffers/utf8/decodeUtf8/v13.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v14.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v14.js +10 -0
- package/lib/util/buffers/utf8/decodeUtf8/v14.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v15.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v15.js +18 -0
- package/lib/util/buffers/utf8/decodeUtf8/v15.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v16.d.ts +3 -0
- package/lib/util/buffers/utf8/decodeUtf8/v16.js +26 -0
- package/lib/util/buffers/utf8/decodeUtf8/v16.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v17.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v17.js +42 -0
- package/lib/util/buffers/utf8/decodeUtf8/v17.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v18.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v18.js +41 -0
- package/lib/util/buffers/utf8/decodeUtf8/v18.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v19.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v19.js +5 -0
- package/lib/util/buffers/utf8/decodeUtf8/v19.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v2.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v2.js +4 -0
- package/lib/util/buffers/utf8/decodeUtf8/v2.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v3.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v3.js +6 -0
- package/lib/util/buffers/utf8/decodeUtf8/v3.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v4.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v4.js +6 -0
- package/lib/util/buffers/utf8/decodeUtf8/v4.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v5.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v5.js +37 -0
- package/lib/util/buffers/utf8/decodeUtf8/v5.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v6.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v6.js +8 -0
- package/lib/util/buffers/utf8/decodeUtf8/v6.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v7.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v7.js +39 -0
- package/lib/util/buffers/utf8/decodeUtf8/v7.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v8.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v8.js +46 -0
- package/lib/util/buffers/utf8/decodeUtf8/v8.js.map +1 -0
- package/lib/util/buffers/utf8/decodeUtf8/v9.d.ts +2 -0
- package/lib/util/buffers/utf8/decodeUtf8/v9.js +39 -0
- package/lib/util/buffers/utf8/decodeUtf8/v9.js.map +1 -0
- package/lib/util/buffers/utf8/encode.d.ts +6 -0
- package/lib/util/buffers/utf8/encode.js +59 -0
- package/lib/util/buffers/utf8/encode.js.map +1 -0
- package/lib/util/buffers/utf8/isUtf8.d.ts +1 -0
- package/lib/util/buffers/utf8/isUtf8.js +43 -0
- package/lib/util/buffers/utf8/isUtf8.js.map +1 -0
- package/lib/util/buffers/utf8/sharedCachedUtf8Decoder.d.ts +3 -0
- package/lib/util/buffers/utf8/sharedCachedUtf8Decoder.js +5 -0
- package/lib/util/buffers/utf8/sharedCachedUtf8Decoder.js.map +1 -0
- package/lib/util/codegen/Codegen.d.ts +44 -0
- package/lib/util/codegen/Codegen.js +121 -0
- package/lib/util/codegen/Codegen.js.map +1 -0
- package/lib/util/codegen/compile.d.ts +4 -0
- package/lib/util/codegen/compile.js +8 -0
- package/lib/util/codegen/compile.js.map +1 -0
- package/lib/util/codegen/dynamicFunction.d.ts +1 -0
- package/lib/util/codegen/dynamicFunction.js +12 -0
- package/lib/util/codegen/dynamicFunction.js.map +1 -0
- package/lib/util/codegen/index.d.ts +3 -0
- package/lib/util/codegen/index.js +7 -0
- package/lib/util/codegen/index.js.map +1 -0
- package/lib/util/codegen/switch.d.ts +1 -0
- package/lib/util/codegen/switch.js +16 -0
- package/lib/util/codegen/switch.js.map +1 -0
- package/lib/util/codegen/types.d.ts +7 -0
- package/lib/util/codegen/types.js +3 -0
- package/lib/util/codegen/types.js.map +1 -0
- package/lib/util/codegen/util/JsExpression.d.ts +11 -0
- package/lib/util/codegen/util/JsExpression.js +30 -0
- package/lib/util/codegen/util/JsExpression.js.map +1 -0
- package/lib/util/codegen/util/helpers.d.ts +1 -0
- package/lib/util/codegen/util/helpers.js +11 -0
- package/lib/util/codegen/util/helpers.js.map +1 -0
- package/lib/util/codegen/util/normalizeAccessor.d.ts +1 -0
- package/lib/util/codegen/util/normalizeAccessor.js +13 -0
- package/lib/util/codegen/util/normalizeAccessor.js.map +1 -0
- package/lib/util/hasOwnProperty.d.ts +1 -0
- package/lib/util/hasOwnProperty.js +9 -0
- package/lib/util/hasOwnProperty.js.map +1 -0
- package/lib/util/isEmpty.d.ts +1 -0
- package/lib/util/isEmpty.js +11 -0
- package/lib/util/isEmpty.js.map +1 -0
- package/lib/util/lazyFunction.d.ts +1 -0
- package/lib/util/lazyFunction.js +14 -0
- package/lib/util/lazyFunction.js.map +1 -0
- package/lib/util/objKeyCmp.d.ts +1 -0
- package/lib/util/objKeyCmp.js +10 -0
- package/lib/util/objKeyCmp.js.map +1 -0
- package/lib/util/sort/insertion.d.ts +1 -0
- package/lib/util/sort/insertion.js +18 -0
- package/lib/util/sort/insertion.js.map +1 -0
- package/lib/util/sort/insertion2.d.ts +1 -0
- package/lib/util/sort/insertion2.js +18 -0
- package/lib/util/sort/insertion2.js.map +1 -0
- package/lib/util/strings/asString.d.ts +1 -0
- package/lib/util/strings/asString.js +28 -0
- package/lib/util/strings/asString.js.map +1 -0
- package/lib/util/strings/escape.d.ts +1 -0
- package/lib/util/strings/escape.js +135 -0
- package/lib/util/strings/escape.js.map +1 -0
- package/lib/util/strings/flatstr.d.ts +1 -0
- package/lib/util/strings/flatstr.js +10 -0
- package/lib/util/strings/flatstr.js.map +1 -0
- package/lib/util/strings/utf8.d.ts +1 -0
- package/lib/util/strings/utf8.js +28 -0
- package/lib/util/strings/utf8.js.map +1 -0
- package/lib/util/strings/util.d.ts +4 -0
- package/lib/util/strings/util.js +12 -0
- package/lib/util/strings/util.js.map +1 -0
- package/lib/util/strings/wordWrap.d.ts +4 -0
- package/lib/util/strings/wordWrap.js +19 -0
- package/lib/util/strings/wordWrap.js.map +1 -0
- package/lib/util/types.d.ts +9 -0
- package/lib/util/types.js +3 -0
- package/lib/util/types.js.map +1 -0
- package/package.json +138 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cmpUint8Array: (a: Uint8Array, b: Uint8Array) => boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cmpUint8Array = void 0;
|
|
4
|
+
const cmpUint8Array = (a, b) => {
|
|
5
|
+
const length = a.length;
|
|
6
|
+
if (length !== b.length)
|
|
7
|
+
return false;
|
|
8
|
+
for (let i = 0; i < length; i++)
|
|
9
|
+
if (a[i] !== b[i])
|
|
10
|
+
return false;
|
|
11
|
+
return true;
|
|
12
|
+
};
|
|
13
|
+
exports.cmpUint8Array = cmpUint8Array;
|
|
14
|
+
//# sourceMappingURL=cmpUint8Array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmpUint8Array.js","sourceRoot":"","sources":["../../../src/util/buffers/cmpUint8Array.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAAC,CAAa,EAAE,CAAa,EAAW,EAAE;IACrE,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;IACxB,IAAI,MAAM,KAAK,CAAC,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE;QAAE,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,KAAK,CAAC;IACjE,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AALW,QAAA,aAAa,iBAKxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cmpUint8Array2: (a: Uint8Array, b: Uint8Array) => number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cmpUint8Array2 = void 0;
|
|
4
|
+
const cmpUint8Array2 = (a, b) => {
|
|
5
|
+
const len1 = a.length;
|
|
6
|
+
const len2 = b.length;
|
|
7
|
+
const len = Math.min(len1, len2);
|
|
8
|
+
for (let i = 0; i < len; i++) {
|
|
9
|
+
const diffChar = a[i] - b[i];
|
|
10
|
+
if (diffChar !== 0)
|
|
11
|
+
return diffChar;
|
|
12
|
+
}
|
|
13
|
+
return len1 - len2;
|
|
14
|
+
};
|
|
15
|
+
exports.cmpUint8Array2 = cmpUint8Array2;
|
|
16
|
+
//# sourceMappingURL=cmpUint8Array2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmpUint8Array2.js","sourceRoot":"","sources":["../../../src/util/buffers/cmpUint8Array2.ts"],"names":[],"mappings":";;;AAQO,MAAM,cAAc,GAAG,CAAC,CAAa,EAAE,CAAa,EAAU,EAAE;IACrE,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,MAAM,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7B,IAAI,QAAQ,KAAK,CAAC;YAAE,OAAO,QAAQ,CAAC;IACtC,CAAC;IACD,OAAO,IAAI,GAAG,IAAI,CAAC;AACrB,CAAC,CAAC;AATW,QAAA,cAAc,kBASzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cmpUint8Array3: (a: Uint8Array, b: Uint8Array) => number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cmpUint8Array3 = void 0;
|
|
4
|
+
const cmpUint8Array3 = (a, b) => {
|
|
5
|
+
const len1 = a.length;
|
|
6
|
+
const len2 = b.length;
|
|
7
|
+
const diff = len1 - len2;
|
|
8
|
+
if (diff !== 0)
|
|
9
|
+
return diff;
|
|
10
|
+
for (let i = 0; i < len1; i++) {
|
|
11
|
+
const diff = a[i] - b[i];
|
|
12
|
+
if (diff !== 0)
|
|
13
|
+
return diff;
|
|
14
|
+
}
|
|
15
|
+
return 0;
|
|
16
|
+
};
|
|
17
|
+
exports.cmpUint8Array3 = cmpUint8Array3;
|
|
18
|
+
//# sourceMappingURL=cmpUint8Array3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmpUint8Array3.js","sourceRoot":"","sources":["../../../src/util/buffers/cmpUint8Array3.ts"],"names":[],"mappings":";;;AAQO,MAAM,cAAc,GAAG,CAAC,CAAa,EAAE,CAAa,EAAU,EAAE;IACrE,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,MAAM,IAAI,GAAG,CAAC,CAAC,MAAM,CAAC;IACtB,MAAM,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACzB,IAAI,IAAI,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC;QAC9B,MAAM,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,IAAI,IAAI,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;IAC9B,CAAC;IACD,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listToUint8 = exports.concatList = exports.concat = void 0;
|
|
4
|
+
const concat = (a, b) => {
|
|
5
|
+
const res = new Uint8Array(a.length + b.length);
|
|
6
|
+
res.set(a);
|
|
7
|
+
res.set(b, a.length);
|
|
8
|
+
return res;
|
|
9
|
+
};
|
|
10
|
+
exports.concat = concat;
|
|
11
|
+
const concatList = (list) => {
|
|
12
|
+
const length = list.length;
|
|
13
|
+
let size = 0, offset = 0;
|
|
14
|
+
for (let i = 0; i < length; i++)
|
|
15
|
+
size += list[i].length;
|
|
16
|
+
const res = new Uint8Array(size);
|
|
17
|
+
for (let i = 0; i < length; i++) {
|
|
18
|
+
const item = list[i];
|
|
19
|
+
res.set(item, offset);
|
|
20
|
+
offset += item.length;
|
|
21
|
+
}
|
|
22
|
+
return res;
|
|
23
|
+
};
|
|
24
|
+
exports.concatList = concatList;
|
|
25
|
+
const listToUint8 = (list) => {
|
|
26
|
+
switch (list.length) {
|
|
27
|
+
case 0:
|
|
28
|
+
return new Uint8Array(0);
|
|
29
|
+
case 1:
|
|
30
|
+
return list[0];
|
|
31
|
+
default:
|
|
32
|
+
return (0, exports.concatList)(list);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
exports.listToUint8 = listToUint8;
|
|
36
|
+
//# sourceMappingURL=concat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concat.js","sourceRoot":"","sources":["../../../src/util/buffers/concat.ts"],"names":[],"mappings":";;;AAAO,MAAM,MAAM,GAAG,CAAC,CAAa,EAAE,CAAa,EAAc,EAAE;IACjE,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC;IAChD,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACX,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AALW,QAAA,MAAM,UAKjB;AAEK,MAAM,UAAU,GAAG,CAAC,IAAkB,EAAc,EAAE;IAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;IAC3B,IAAI,IAAI,GAAG,CAAC,EACV,MAAM,GAAG,CAAC,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE;QAAE,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IACxD,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QAChC,MAAM,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QACrB,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACtB,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;IACxB,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAZW,QAAA,UAAU,cAYrB;AAEK,MAAM,WAAW,GAAG,CAAC,IAAkB,EAAc,EAAE;IAC5D,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC;QACpB,KAAK,CAAC;YACJ,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;QAC3B,KAAK,CAAC;YACJ,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC;QACjB;YACE,OAAO,IAAA,kBAAU,EAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;AACH,CAAC,CAAC;AATW,QAAA,WAAW,eAStB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const copy: <T extends Uint8Array>(arr: T) => T;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.copy = void 0;
|
|
4
|
+
const copy = (arr) => {
|
|
5
|
+
const dupe = new Uint8Array(arr.length);
|
|
6
|
+
dupe.set(arr);
|
|
7
|
+
return dupe;
|
|
8
|
+
};
|
|
9
|
+
exports.copy = copy;
|
|
10
|
+
//# sourceMappingURL=copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copy.js","sourceRoot":"","sources":["../../../src/util/buffers/copy.ts"],"names":[],"mappings":";;;AAAO,MAAM,IAAI,GAAG,CAAuB,GAAM,EAAK,EAAE;IACtD,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,CAAM,CAAC;IAC7C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAJW,QAAA,IAAI,QAIf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const decodeF16: (binary: number) => number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decodeF16 = void 0;
|
|
4
|
+
const pow = Math.pow;
|
|
5
|
+
const decodeF16 = (binary) => {
|
|
6
|
+
const exponent = (binary & 0x7c00) >> 10;
|
|
7
|
+
const fraction = binary & 0x03ff;
|
|
8
|
+
return ((binary >> 15 ? -1 : 1) *
|
|
9
|
+
(exponent
|
|
10
|
+
? exponent === 0x1f
|
|
11
|
+
? fraction
|
|
12
|
+
? NaN
|
|
13
|
+
: Infinity
|
|
14
|
+
: pow(2, exponent - 15) * (1 + fraction / 0x400)
|
|
15
|
+
: 6.103515625e-5 * (fraction / 0x400)));
|
|
16
|
+
};
|
|
17
|
+
exports.decodeF16 = decodeF16;
|
|
18
|
+
//# sourceMappingURL=f16.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"f16.js","sourceRoot":"","sources":["../../../src/util/buffers/f16.ts"],"names":[],"mappings":";;;AAAA,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;AAEd,MAAM,SAAS,GAAG,CAAC,MAAc,EAAU,EAAE;IAClD,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,EAAE,CAAC;IACzC,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,CACL,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,QAAQ;YACP,CAAC,CAAC,QAAQ,KAAK,IAAI;gBACjB,CAAC,CAAC,QAAQ;oBACR,CAAC,CAAC,GAAG;oBACL,CAAC,CAAC,QAAQ;gBACZ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,GAAG,KAAK,CAAC;YAClD,CAAC,CAAC,cAAc,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC,CACzC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,SAAS,aAapB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/util/buffers/index.ts"],"names":[],"mappings":";;;AAAA,kDAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isArrayBuffer: (value: unknown) => value is ArrayBuffer;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isArrayBuffer = void 0;
|
|
4
|
+
const isArrayBuffer = (value) => {
|
|
5
|
+
return value instanceof ArrayBuffer || toString.call(value) === '[object ArrayBuffer]';
|
|
6
|
+
};
|
|
7
|
+
exports.isArrayBuffer = isArrayBuffer;
|
|
8
|
+
//# sourceMappingURL=isArrayBuffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isArrayBuffer.js","sourceRoot":"","sources":["../../../src/util/buffers/isArrayBuffer.ts"],"names":[],"mappings":";;;AAAO,MAAM,aAAa,GAAG,CAAC,KAAc,EAAwB,EAAE;IACpE,OAAO,KAAK,YAAY,WAAW,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,sBAAsB,CAAC;AACzF,CAAC,CAAC;AAFW,QAAA,aAAa,iBAExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isFloat32: (n: number) => boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isFloat32 = void 0;
|
|
4
|
+
const view = new DataView(new ArrayBuffer(4));
|
|
5
|
+
const isFloat32 = (n) => {
|
|
6
|
+
view.setFloat32(0, n);
|
|
7
|
+
return n === view.getFloat32(0);
|
|
8
|
+
};
|
|
9
|
+
exports.isFloat32 = isFloat32;
|
|
10
|
+
//# sourceMappingURL=isFloat32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isFloat32.js","sourceRoot":"","sources":["../../../src/util/buffers/isFloat32.ts"],"names":[],"mappings":";;;AAAA,MAAM,IAAI,GAAG,IAAI,QAAQ,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAEvC,MAAM,SAAS,GAAG,CAAC,CAAS,EAAW,EAAE;IAC9C,IAAI,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACtB,OAAO,CAAC,KAAK,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAClC,CAAC,CAAC;AAHW,QAAA,SAAS,aAGpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isUint8Array: (x: unknown) => x is Uint8Array;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isUint8Array = void 0;
|
|
4
|
+
exports.isUint8Array = typeof Buffer === 'function'
|
|
5
|
+
? (x) => x instanceof Uint8Array || Buffer.isBuffer(x)
|
|
6
|
+
: (x) => x instanceof Uint8Array;
|
|
7
|
+
//# sourceMappingURL=isUint8Array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isUint8Array.js","sourceRoot":"","sources":["../../../src/util/buffers/isUint8Array.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GACvB,OAAO,MAAM,KAAK,UAAU;IAC1B,CAAC,CAAC,CAAC,CAAU,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChF,CAAC,CAAC,CAAC,CAAU,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const printOctets: (octets: Uint8Array, max?: number) => string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printOctets = void 0;
|
|
4
|
+
const printOctets = (octets, max = 16) => {
|
|
5
|
+
let str = '';
|
|
6
|
+
if (!octets.length)
|
|
7
|
+
return str;
|
|
8
|
+
if (octets[0] < 16)
|
|
9
|
+
str += '0';
|
|
10
|
+
str += octets[0].toString(16);
|
|
11
|
+
for (let i = 1; i < octets.length && i < max; i++) {
|
|
12
|
+
const n = octets[i];
|
|
13
|
+
str += ' ';
|
|
14
|
+
if (n < 16)
|
|
15
|
+
str += '0';
|
|
16
|
+
str += n.toString(16);
|
|
17
|
+
}
|
|
18
|
+
if (octets.length > max)
|
|
19
|
+
str += `… (${octets.length - max} more)`;
|
|
20
|
+
return str;
|
|
21
|
+
};
|
|
22
|
+
exports.printOctets = printOctets;
|
|
23
|
+
//# sourceMappingURL=printOctets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"printOctets.js","sourceRoot":"","sources":["../../../src/util/buffers/printOctets.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAC,MAAkB,EAAE,MAAc,EAAE,EAAU,EAAE;IAC1E,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,CAAC,MAAM,CAAC,MAAM;QAAE,OAAO,GAAG,CAAC;IAC/B,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE;QAAE,GAAG,IAAI,GAAG,CAAC;IAC/B,GAAG,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC9B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;QAClD,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACpB,GAAG,IAAI,GAAG,CAAC;QACX,IAAI,CAAC,GAAG,EAAE;YAAE,GAAG,IAAI,GAAG,CAAC;QACvB,GAAG,IAAI,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IACxB,CAAC;IACD,IAAI,MAAM,CAAC,MAAM,GAAG,GAAG;QAAE,GAAG,IAAI,MAAM,MAAM,CAAC,MAAM,GAAG,GAAG,QAAQ,CAAC;IAClE,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAbW,QAAA,WAAW,eAatB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.utf8 = exports.ascii = void 0;
|
|
4
|
+
const bufferToUint8Array_1 = require("./bufferToUint8Array");
|
|
5
|
+
const ascii = (txt) => {
|
|
6
|
+
if (typeof txt === 'string')
|
|
7
|
+
return (0, exports.ascii)([txt]);
|
|
8
|
+
[txt] = txt;
|
|
9
|
+
const len = txt.length;
|
|
10
|
+
const res = new Uint8Array(len);
|
|
11
|
+
for (let i = 0; i < len; i++)
|
|
12
|
+
res[i] = txt.charCodeAt(i);
|
|
13
|
+
return res;
|
|
14
|
+
};
|
|
15
|
+
exports.ascii = ascii;
|
|
16
|
+
const utf8 = (txt) => {
|
|
17
|
+
if (typeof txt === 'string')
|
|
18
|
+
return (0, exports.utf8)([txt]);
|
|
19
|
+
[txt] = txt;
|
|
20
|
+
return (0, bufferToUint8Array_1.bufferToUint8Array)(Buffer.from(txt, 'utf8'));
|
|
21
|
+
};
|
|
22
|
+
exports.utf8 = utf8;
|
|
23
|
+
//# sourceMappingURL=strings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.js","sourceRoot":"","sources":["../../../src/util/buffers/strings.ts"],"names":[],"mappings":";;;AAAA,6DAAwD;AAEjD,MAAM,KAAK,GAAG,CAAC,GAA6C,EAAc,EAAE;IACjF,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAA,aAAK,EAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IACjD,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACZ,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC;IACvB,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE;QAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACzD,OAAO,GAAG,CAAC;AACb,CAAC,CAAC;AAPW,QAAA,KAAK,SAOhB;AAEK,MAAM,IAAI,GAAG,CAAC,GAA6C,EAAc,EAAE;IAChF,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,IAAA,YAAI,EAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAChD,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;IACZ,OAAO,IAAA,uCAAkB,EAAC,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;AACtD,CAAC,CAAC;AAJW,QAAA,IAAI,QAIf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toBuf: (str: string) => Uint8Array;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toBuf = void 0;
|
|
4
|
+
const encode_1 = require("./utf8/encode");
|
|
5
|
+
const toBuf = (str) => {
|
|
6
|
+
const maxLength = str.length * 4;
|
|
7
|
+
const arr = new Uint8Array(maxLength);
|
|
8
|
+
const strBufferLength = (0, encode_1.encode)(arr, str, 0, maxLength);
|
|
9
|
+
return arr.slice(0, strBufferLength);
|
|
10
|
+
};
|
|
11
|
+
exports.toBuf = toBuf;
|
|
12
|
+
//# sourceMappingURL=toBuf.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toBuf.js","sourceRoot":"","sources":["../../../src/util/buffers/toBuf.ts"],"names":[],"mappings":";;;AAAA,0CAAqC;AAE9B,MAAM,KAAK,GAAG,CAAC,GAAW,EAAc,EAAE;IAC/C,MAAM,SAAS,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IACjC,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;IACtC,MAAM,eAAe,GAAG,IAAA,eAAM,EAAC,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,SAAS,CAAC,CAAC;IACvD,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;AACvC,CAAC,CAAC;AALW,QAAA,KAAK,SAKhB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toDataUri: (buf: Uint8Array, params?: Record<string, string | number>) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toDataUri = void 0;
|
|
4
|
+
const toBase64_1 = require("@jsonjoy.com/base64/lib/toBase64");
|
|
5
|
+
const toDataUri = (buf, params) => {
|
|
6
|
+
let uri = 'data:application/octet-stream;base64';
|
|
7
|
+
for (const key in params)
|
|
8
|
+
uri += `;${key}=${params[key]}`;
|
|
9
|
+
return uri + ',' + (0, toBase64_1.toBase64)(buf);
|
|
10
|
+
};
|
|
11
|
+
exports.toDataUri = toDataUri;
|
|
12
|
+
//# sourceMappingURL=toDataUri.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toDataUri.js","sourceRoot":"","sources":["../../../src/util/buffers/toDataUri.ts"],"names":[],"mappings":";;;AAAA,+DAA0D;AAEnD,MAAM,SAAS,GAAG,CAAC,GAAe,EAAE,MAAwC,EAAU,EAAE;IAC7F,IAAI,GAAG,GAAG,sCAAsC,CAAC;IACjD,KAAK,MAAM,GAAG,IAAI,MAAM;QAAE,GAAG,IAAI,IAAI,GAAG,IAAI,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IAC1D,OAAO,GAAG,GAAG,GAAG,GAAG,IAAA,mBAAQ,EAAC,GAAG,CAAC,CAAC;AACnC,CAAC,CAAC;AAJW,QAAA,SAAS,aAIpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const toUint8Array: (data: unknown) => Uint8Array;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toUint8Array = void 0;
|
|
4
|
+
const toUint8Array = (data) => {
|
|
5
|
+
if (data instanceof Uint8Array)
|
|
6
|
+
return data;
|
|
7
|
+
if (data instanceof ArrayBuffer)
|
|
8
|
+
return new Uint8Array(data);
|
|
9
|
+
if (Array.isArray(data))
|
|
10
|
+
return new Uint8Array(data);
|
|
11
|
+
if (typeof Buffer === 'function') {
|
|
12
|
+
if (Buffer.isBuffer(data))
|
|
13
|
+
return data;
|
|
14
|
+
return Buffer.from(data);
|
|
15
|
+
}
|
|
16
|
+
throw new Error('UINT8ARRAY_INCOMPATIBLE');
|
|
17
|
+
};
|
|
18
|
+
exports.toUint8Array = toUint8Array;
|
|
19
|
+
//# sourceMappingURL=toUint8Array.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toUint8Array.js","sourceRoot":"","sources":["../../../src/util/buffers/toUint8Array.ts"],"names":[],"mappings":";;;AAAO,MAAM,YAAY,GAAG,CAAC,IAAa,EAAc,EAAE;IACxD,IAAI,IAAI,YAAY,UAAU;QAAE,OAAO,IAAI,CAAC;IAC5C,IAAI,IAAI,YAAY,WAAW;QAAE,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAC7D,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IACrD,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;QACjC,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,OAAO,IAAI,CAAC;QACvC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAW,CAAC,CAAC;IAClC,CAAC;IACD,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;AAC7C,CAAC,CAAC;AATW,QAAA,YAAY,gBASvB"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { Slice } from './Slice';
|
|
2
|
+
export interface IWriter {
|
|
3
|
+
uint8: Uint8Array;
|
|
4
|
+
view: DataView;
|
|
5
|
+
x0: number;
|
|
6
|
+
x: number;
|
|
7
|
+
u8(char: number): void;
|
|
8
|
+
u16(word: number): void;
|
|
9
|
+
u32(dword: number): void;
|
|
10
|
+
i32(dword: number): void;
|
|
11
|
+
u64(qword: number | bigint): void;
|
|
12
|
+
u8u16(u8: number, u16: number): void;
|
|
13
|
+
u8u32(u8: number, u32: number): void;
|
|
14
|
+
u8u64(u8: number, u64: number | bigint): void;
|
|
15
|
+
u8f32(u8: number, f64: number): void;
|
|
16
|
+
u8f64(u8: number, f64: number): void;
|
|
17
|
+
f64(dword: number): void;
|
|
18
|
+
buf(buf: Uint8Array, length: number): void;
|
|
19
|
+
utf8(str: string): number;
|
|
20
|
+
ascii(str: string): void;
|
|
21
|
+
}
|
|
22
|
+
export interface IWriterGrowable {
|
|
23
|
+
reset(): void;
|
|
24
|
+
ensureCapacity(capacity: number): void;
|
|
25
|
+
move(length: number): void;
|
|
26
|
+
flush(): Uint8Array;
|
|
27
|
+
flushSlice(): Slice;
|
|
28
|
+
newBuffer(size: number): void;
|
|
29
|
+
}
|
|
30
|
+
export interface IReaderBase {
|
|
31
|
+
peak(): number;
|
|
32
|
+
skip(length: number): void;
|
|
33
|
+
buf(size: number): Uint8Array;
|
|
34
|
+
u8(): number;
|
|
35
|
+
i8(): number;
|
|
36
|
+
u16(): number;
|
|
37
|
+
i16(): number;
|
|
38
|
+
u32(): number;
|
|
39
|
+
u64(): bigint;
|
|
40
|
+
i64(): bigint;
|
|
41
|
+
i32(): number;
|
|
42
|
+
f32(): number;
|
|
43
|
+
f64(): number;
|
|
44
|
+
utf8(size: number): string;
|
|
45
|
+
ascii(length: number): string;
|
|
46
|
+
}
|
|
47
|
+
export interface IReader extends IReaderBase {
|
|
48
|
+
uint8: Uint8Array;
|
|
49
|
+
view: DataView;
|
|
50
|
+
x: number;
|
|
51
|
+
}
|
|
52
|
+
export interface IReaderResettable {
|
|
53
|
+
reset(uint8: Uint8Array): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/util/buffers/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CachedUtf8Decoder = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const v10_1 = tslib_1.__importDefault(require("./decodeUtf8/v10"));
|
|
6
|
+
const randomU32_1 = require("hyperdyperid/lib/randomU32");
|
|
7
|
+
class CacheItem {
|
|
8
|
+
constructor(bytes, value) {
|
|
9
|
+
this.bytes = bytes;
|
|
10
|
+
this.value = value;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
class CachedUtf8Decoder {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.caches = [];
|
|
16
|
+
for (let i = 0; i < 31; i++)
|
|
17
|
+
this.caches.push([]);
|
|
18
|
+
}
|
|
19
|
+
get(bytes, offset, size) {
|
|
20
|
+
const records = this.caches[size - 1];
|
|
21
|
+
const len = records.length;
|
|
22
|
+
FIND_CHUNK: for (let i = 0; i < len; i++) {
|
|
23
|
+
const record = records[i];
|
|
24
|
+
const recordBytes = record.bytes;
|
|
25
|
+
for (let j = 0; j < size; j++)
|
|
26
|
+
if (recordBytes[j] !== bytes[offset + j])
|
|
27
|
+
continue FIND_CHUNK;
|
|
28
|
+
return record.value;
|
|
29
|
+
}
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
store(bytes, value) {
|
|
33
|
+
const records = this.caches[bytes.length - 1];
|
|
34
|
+
const record = new CacheItem(bytes, value);
|
|
35
|
+
const length = records.length;
|
|
36
|
+
if (length >= 16)
|
|
37
|
+
records[(0, randomU32_1.randomU32)(0, 16 - 1)] = record;
|
|
38
|
+
else
|
|
39
|
+
records.push(record);
|
|
40
|
+
}
|
|
41
|
+
decode(bytes, offset, size) {
|
|
42
|
+
if (!size)
|
|
43
|
+
return '';
|
|
44
|
+
const cachedValue = this.get(bytes, offset, size);
|
|
45
|
+
if (cachedValue !== null)
|
|
46
|
+
return cachedValue;
|
|
47
|
+
const value = (0, v10_1.default)(bytes, offset, size);
|
|
48
|
+
const copy = Uint8Array.prototype.slice.call(bytes, offset, offset + size);
|
|
49
|
+
this.store(copy, value);
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.CachedUtf8Decoder = CachedUtf8Decoder;
|
|
54
|
+
//# sourceMappingURL=CachedUtf8Decoder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CachedUtf8Decoder.js","sourceRoot":"","sources":["../../../../src/util/buffers/utf8/CachedUtf8Decoder.ts"],"names":[],"mappings":";;;;AAAA,mEAA0C;AAC1C,0DAAqD;AAErD,MAAM,SAAS;IACb,YACkB,KAAiB,EACjB,KAAa;QADb,UAAK,GAAL,KAAK,CAAY;QACjB,UAAK,GAAL,KAAK,CAAQ;IAC5B,CAAC;CACL;AAOD,MAAa,iBAAiB;IAG5B;QACE,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,KAA2B,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC1E,CAAC;IAEO,GAAG,CAAC,KAAiB,EAAE,MAAc,EAAE,IAAY;QACzD,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAE,CAAC;QACvC,MAAM,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;QAC3B,UAAU,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YACzC,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC;YACjC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE;gBAAE,IAAI,WAAW,CAAC,CAAC,CAAC,KAAK,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC;oBAAE,SAAS,UAAU,CAAC;YAC7F,OAAO,MAAM,CAAC,KAAK,CAAC;QACtB,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAEO,KAAK,CAAC,KAAiB,EAAE,KAAa;QAC5C,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAE,CAAC;QAC/C,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC3C,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;QAC9B,IAAI,MAAM,MAA8B;YAAE,OAAO,CAAC,IAAA,qBAAS,EAAC,CAAC,EAAE,KAA6B,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;;YACpG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5B,CAAC;IAEM,MAAM,CAAC,KAAiB,EAAE,MAAc,EAAE,IAAY;QAC3D,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QAClD,IAAI,WAAW,KAAK,IAAI;YAAE,OAAO,WAAW,CAAC;QAC7C,MAAM,KAAK,GAAG,IAAA,aAAU,EAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;QAE9C,MAAM,IAAI,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACxB,OAAO,KAAK,CAAC;IACf,CAAC;CACF;AAtCD,8CAsCC"}
|