@openclaw/feishu 2026.7.2-beta.7 → 2026.7.33
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 +1 -1
- package/dist/.setup/accounts-CfuPSCip.mjs +516 -0
- package/dist/.setup/app-registration-D18iu_PK.mjs +204 -0
- package/dist/.setup/channel-CiFS4inh.mjs +2661 -0
- package/dist/.setup/channel.runtime-B9LCBnp3.mjs +641 -0
- package/dist/.setup/client-DLqNWY5r.mjs +161 -0
- package/dist/.setup/conversation-id-CdLdoot3.mjs +143 -0
- package/dist/.setup/drive-Cy1tmfSn.mjs +934 -0
- package/dist/.setup/json-response-DXajw_FU.mjs +9 -0
- package/dist/.setup/legacy-state-migrations-api-CVW3tHfw.mjs +73 -0
- package/dist/.setup/legacy-state-migrations-api-jN6Z0iq0.mjs +2 -0
- package/dist/.setup/monitor-C4sFALTA.mjs +232 -0
- package/dist/.setup/monitor.account-Do7egFpi.mjs +5853 -0
- package/dist/.setup/probe-DbUBx0Px.mjs +162 -0
- package/dist/.setup/runtime-setter-api-CG-RC4_r.mjs +3 -0
- package/dist/.setup/secret-contract-DLaBl9m4.mjs +137 -0
- package/dist/.setup/secret-contract-api-ZtO0BWHd.mjs +3 -0
- package/dist/.setup/security-audit-Duuj2PkP.mjs +11 -0
- package/dist/.setup/security-audit-shared-BIHeF-S_.mjs +38 -0
- package/dist/.setup/send-DkB3ifwO.mjs +1264 -0
- package/dist/.setup/send-result-COI_ANtb.mjs +287 -0
- package/dist/.setup/session-conversation-CWBrUzmY.mjs +27 -0
- package/dist/.setup/setup-api-DY9H9ISg.mjs +3 -0
- package/dist/.setup/subagent-hooks-BQhuBlyy.mjs +235 -0
- package/dist/.setup/thread-bindings-V0bwk0A1.mjs +222 -0
- package/dist/api.js +256 -431
- package/dist/channel-plugin-api.js +1 -1
- package/dist/contract-api.js +3 -3
- package/dist/legacy-state-migrations-api.js +2 -0
- package/dist/runtime-api.js +3 -2
- package/dist/runtime-setter-api.js +1 -1
- package/dist/secret-contract-api.js +1 -1
- package/dist/security-contract-api.js +1 -1
- package/dist/session-binding-contract-api.js +1 -1
- package/dist/session-key-api.js +1 -1
- package/dist/setup-api.js +1 -1
- package/dist/setup-entry.js +9 -3
- package/dist/subagent-hooks-api.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/README.md +0 -13
- package/node_modules/@larksuiteoapi/node-sdk/README.zh.md +0 -12
- package/node_modules/@larksuiteoapi/node-sdk/es/index.js +3084 -8950
- package/node_modules/@larksuiteoapi/node-sdk/lib/index.js +3083 -8951
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/index.js +52 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/README.md +19 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/index.d.ts +32 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/index.js +139 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/base64/tests/index.js +46 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/README.md +49 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/index.d.ts +31 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/index.js +112 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/package.json +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/CHANGELOG.md +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/README.md +22 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/index.d.ts +45 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/index.js +86 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/eventemitter/tests/index.js +83 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/CHANGELOG.md +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/index.d.ts +56 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/index.js +112 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/package.json +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/tests/data/file.txt +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/tests/index.js +158 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/fetch/util/fs.js +11 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/README.md +102 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/bench/index.js +87 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/bench/suite.js +46 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/index.js +335 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/package.json +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/float/tests/index.js +100 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/CHANGELOG.md +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/index.d.ts +10 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/index.js +38 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/inquire/tests/index.js +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/README.md +19 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/index.d.ts +22 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/index.js +65 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/path/tests/index.js +60 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/.npmignore +3 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/README.md +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/index.d.ts +32 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/index.js +48 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/pool/tests/index.js +33 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/LICENSE +26 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/README.md +20 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/index.js +104 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/package.json +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/data/surrogate_pair_bug.txt +207 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@protobufjs/utf8/tests/index.js +74 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/README.md +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/assert/strict.d.ts +68 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/assert.d.ts +1077 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/async_hooks.d.ts +711 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/buffer.d.ts +1799 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/child_process.d.ts +1362 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/cluster.d.ts +432 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/console.d.ts +93 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/constants.d.ts +14 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/crypto.d.ts +3954 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dgram.d.ts +537 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/diagnostics_channel.d.ts +794 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dns/promises.d.ts +497 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/dns.d.ts +876 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/domain.d.ts +150 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/events.d.ts +1008 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ffi.d.ts +486 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/fs/promises.d.ts +1471 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/fs.d.ts +4786 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/globals.d.ts +150 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/http.d.ts +2172 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/http2.d.ts +2489 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/https.d.ts +400 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/index.d.ts +115 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector/promises.d.ts +35 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector.d.ts +264 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/inspector.generated.d.ts +4406 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/module.d.ts +726 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/net.d.ts +970 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/os.d.ts +498 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/package.json +155 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path/posix.d.ts +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path/win32.d.ts +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/path.d.ts +178 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/perf_hooks.d.ts +604 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/process.d.ts +2217 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/punycode.d.ts +89 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/querystring.d.ts +139 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/quic.d.ts +978 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/readline/promises.d.ts +158 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/readline.d.ts +508 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/repl.d.ts +420 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/sea.d.ts +47 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/sqlite.d.ts +1123 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/consumers.d.ts +114 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/iter.d.ts +451 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream/web.d.ts +300 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/stream.d.ts +1806 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/string_decoder.d.ts +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/test/reporters.d.ts +59 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/test.d.ts +2389 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/timers/promises.d.ts +93 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/timers.d.ts +149 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/tls.d.ts +1193 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/trace_events.d.ts +103 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.6/index.d.ts +117 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/ts5.7/index.d.ts +117 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/tty.d.ts +225 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/url.d.ts +556 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/util/types.d.ts +558 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/util.d.ts +1677 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/v8.d.ts +1062 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/vm.d.ts +1136 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/wasi.d.ts +131 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/domexception.d.ts +83 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/worker_threads.d.ts +669 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/zlib/iter.d.ts +131 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/@types/node/zlib.d.ts +589 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/CHANGELOG.md +62 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/README.md +297 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.js +728 -170
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/browser/axios.cjs +871 -188
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.js +871 -188
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js +2 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/dist/node/axios.cjs +1037 -225
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.cts +102 -74
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/index.d.ts +100 -68
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/fetch.js +64 -11
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/http.js +140 -67
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/adapters/xhr.js +52 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/Axios.js +43 -20
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosError.js +33 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/AxiosHeaders.js +124 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/InterceptorManager.js +107 -8
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/buildFullPath.js +41 -15
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/dispatchRequest.js +8 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/mergeConfig.js +19 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/methodList.js +17 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/defaults/index.js +2 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/Http2Sessions.js +2 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/HttpStatusCode.js +12 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/combineURLs.js +11 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/composeSignals.js +12 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +115 -54
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/formDataToJSON.js +11 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/fromDataURI.js +5 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/normalizeURLForProtocolCheck.js +24 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/parseHeaders.js +5 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/progressEventReducer.js +4 -4
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/resolveConfig.js +5 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/shouldBypassProxy.js +300 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/throttle.js +3 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/helpers/toFormData.js +17 -23
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/lib/utils.js +151 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/axios/package.json +21 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/CHANGELOG.md +1 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/README.md +41 -46
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/index.d.ts +2 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/lib/form_data.js +83 -75
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/lib/populate.js +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/form-data/package.json +7 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/README.md +553 -266
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js +1985 -3177
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js +1244 -1966
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js +2005 -3330
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/README.md +70 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/index.d.ts +193 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/index.js +1185 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/api/annotations.json +1 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/api/http.json +1 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/api.json +6 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.json +87 -170
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/descriptor.proto +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/source_context.json +1 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/type.json +7 -14
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/index.d.ts +703 -1066
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/package.json +52 -25
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/scripts/postinstall.js +32 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/common.js +8 -14
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/converter.js +51 -85
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/decoder.js +61 -205
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/encoder.js +7 -27
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/enum.js +5 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/field.js +19 -71
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index-light.js +29 -29
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index-minimal.js +13 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/index.js +6 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/mapfield.js +8 -26
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/message.js +11 -5
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/method.js +7 -30
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/namespace.js +10 -26
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/object.js +31 -41
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/oneof.js +1 -12
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/parse.js +47 -169
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader.js +50 -412
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/reader_buffer.js +5 -31
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/root.js +4 -16
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/rpc/service.js +5 -18
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/service.js +2 -15
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/tokenize.js +1 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/type.js +36 -80
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/longbits.js +6 -10
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/minimal.js +54 -71
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util.js +17 -51
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/verifier.js +14 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/wrappers.js +3 -2
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/writer.js +191 -424
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/writer_buffer.js +26 -41
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/tsconfig.json +5 -3
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/CHANGELOG.md +0 -11
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/dist/qs.js +17 -17
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/parse.js +8 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/lib/utils.js +8 -47
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/package.json +5 -6
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/parse.js +0 -230
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/qs/test/utils.js +0 -194
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/LICENSE +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/README.md +584 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/index.d.ts +187 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/index.js +65 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/safe-buffer/package.json +51 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/LICENSE +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/README.md +6 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/agent.d.ts +30 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cache-interceptor.d.ts +179 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/client-stats.d.ts +15 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/client.d.ts +129 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/connector.d.ts +36 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/cookies.d.ts +30 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/dispatcher.d.ts +253 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/errors.d.ts +177 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/eventsource.d.ts +66 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/fetch.d.ts +231 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/handlers.d.ts +14 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/header.d.ts +165 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/index.d.ts +93 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/interceptors.d.ts +80 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-client.d.ts +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/package.json +55 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/patch.d.ts +29 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/pool.d.ts +39 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/readable.d.ts +68 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/round-robin-pool.d.ts +39 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/snapshot-agent.d.ts +113 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/socks5-proxy-agent.d.ts +25 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/util.d.ts +18 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/utility.d.ts +7 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/webidl.d.ts +346 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/undici-types/websocket.d.ts +188 -0
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/lib/permessage-deflate.js +3 -1
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/ws/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/package.json +1 -1
- package/node_modules/@larksuiteoapi/node-sdk/types/index.d.ts +698 -12522
- package/node_modules/typebox/build/compile/validator.d.mts +4 -1
- package/node_modules/typebox/build/guard/guard.d.mts +1 -1
- package/node_modules/typebox/build/guard/guard.mjs +2 -5
- package/node_modules/typebox/build/guard/string.mjs +4 -16
- package/node_modules/typebox/build/schema/engine/_functions.mjs +15 -34
- package/node_modules/typebox/build/type/action/readonly_object.d.mts +0 -5
- package/node_modules/typebox/build/type/action/readonly_object.mjs +0 -8
- package/node_modules/typebox/build/typebox.d.mts +1 -1
- package/node_modules/typebox/build/typebox.mjs +1 -1
- package/node_modules/typebox/package.json +1 -1
- package/node_modules/typebox/readme.md +32 -29
- package/openclaw.plugin.json +105 -190
- package/package.json +10 -26
- package/skills/feishu-doc/SKILL.md +0 -4
- package/skills/feishu-drive/SKILL.md +2 -5
- package/dist/accounts-u9X5Wsan.js +0 -469
- package/dist/app-registration-cN1bVV6s.js +0 -201
- package/dist/channel-CScE82zY.js +0 -2795
- package/dist/channel.runtime-B21e1E0r.js +0 -889
- package/dist/client-Dcbs6vml.js +0 -248
- package/dist/conversation-id-BeJL-wq7.js +0 -146
- package/dist/doctor-contract-BiD9tyIv.js +0 -102
- package/dist/doctor-contract-api.js +0 -2
- package/dist/drive-hSi_Utp0.js +0 -1075
- package/dist/json-response-CheljwGr.js +0 -9
- package/dist/media-CEUraFOR.js +0 -1348
- package/dist/monitor-DngbaA6a.js +0 -62
- package/dist/monitor.account-BnTWCw55.js +0 -7153
- package/dist/monitor.startup-CqH2tiJq.js +0 -143
- package/dist/probe-p3POS2RN.js +0 -219
- package/dist/secret-contract-BCpDLdg9.js +0 -73
- package/dist/security-audit-D7WK_BHh.js +0 -11
- package/dist/security-audit-shared-BgpY7AiJ.js +0 -33
- package/dist/send-result-B9_BpUPx.js +0 -770
- package/dist/session-conversation-BksWrfzm.js +0 -27
- package/dist/subagent-hooks-Cx1cX7rW.js +0 -239
- package/dist/thread-bindings-N3wkgkIN.js +0 -220
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/README.md +0 -70
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.d.ts +0 -87
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.generated.d.ts +0 -417
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/descriptor.js +0 -1356
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.LICENSE +0 -201
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.d.ts +0 -20
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.generated.d.ts +0 -49
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/protojson.js +0 -951
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.d.ts +0 -19
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.generated.d.ts +0 -33
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/ext/textformat.js +0 -1276
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/compiler/plugin.json +0 -126
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/google/protobuf/compiler/plugin.proto +0 -47
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/typescript.js +0 -25
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/aspromise.d.ts +0 -13
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/aspromise.js +0 -52
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/base64.d.ts +0 -32
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/base64.js +0 -146
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/codegen.d.ts +0 -31
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/codegen.js +0 -118
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/eventemitter.d.ts +0 -45
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/eventemitter.js +0 -86
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/fetch.d.ts +0 -56
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/fetch.js +0 -112
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/float.js +0 -335
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/path.d.ts +0 -22
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/path.js +0 -100
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/pool.d.ts +0 -32
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/pool.js +0 -48
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/utf8.d.ts +0 -24
- package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/src/util/utf8.js +0 -190
- package/node_modules/mdast-util-from-markdown/dev/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/dev/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/dev/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/dev/lib/index.js +0 -1348
- package/node_modules/mdast-util-from-markdown/dev/lib/types.d.ts +0 -295
- package/node_modules/mdast-util-from-markdown/dev/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts +0 -53
- package/node_modules/mdast-util-from-markdown/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/lib/index.js +0 -1177
- package/node_modules/mdast-util-from-markdown/lib/types.d.ts +0 -295
- package/node_modules/mdast-util-from-markdown/lib/types.js +0 -2
- package/node_modules/mdast-util-from-markdown/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/README.md +0 -69
- package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/index.d.ts +0 -50
- package/node_modules/mdast-util-from-markdown/node_modules/@types/debug/package.json +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/LICENSE +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/README.md +0 -15
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/index.d.ts +0 -1123
- package/node_modules/mdast-util-from-markdown/node_modules/@types/mdast/package.json +0 -47
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/LICENSE +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/README.md +0 -82
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/index.d.ts +0 -63
- package/node_modules/mdast-util-from-markdown/node_modules/@types/ms/package.json +0 -26
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/LICENSE +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/README.md +0 -15
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/index.d.ts +0 -119
- package/node_modules/mdast-util-from-markdown/node_modules/@types/unist/package.json +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/index.d.ts +0 -6
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/index.js +0 -2132
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/package.json +0 -78
- package/node_modules/mdast-util-from-markdown/node_modules/character-entities/readme.md +0 -152
- package/node_modules/mdast-util-from-markdown/node_modules/debug/LICENSE +0 -20
- package/node_modules/mdast-util-from-markdown/node_modules/debug/README.md +0 -481
- package/node_modules/mdast-util-from-markdown/node_modules/debug/package.json +0 -64
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/browser.js +0 -272
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/common.js +0 -292
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/index.js +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/debug/src/node.js +0 -263
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.d.ts +0 -13
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.dom.js +0 -32
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/index.js +0 -19
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/package.json +0 -90
- package/node_modules/mdast-util-from-markdown/node_modules/decode-named-character-reference/readme.md +0 -136
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/license +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/dequal/readme.md +0 -112
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/package.json +0 -80
- package/node_modules/mdast-util-from-markdown/node_modules/devlop/readme.md +0 -360
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/index.d.ts +0 -2
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/index.js +0 -5
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/lib/index.js +0 -108
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/package.json +0 -78
- package/node_modules/mdast-util-from-markdown/node_modules/mdast-util-to-string/readme.md +0 -218
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.d.ts +0 -82
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/index.js +0 -68
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/compile.js +0 -1152
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.d.ts +0 -73
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/constructs.js +0 -101
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/create-tokenizer.js +0 -717
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/content.js +0 -99
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/document.js +0 -445
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/flow.js +0 -86
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.d.ts +0 -8
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/initialize/text.js +0 -244
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/parse.js +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.d.ts +0 -9
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/postprocess.js +0 -19
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.d.ts +0 -13
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/lib/preprocess.js +0 -141
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.d.ts +0 -35
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/dev/stream.js +0 -270
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.d.ts +0 -82
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/index.js +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/compile.js +0 -1060
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.d.ts +0 -73
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/constructs.js +0 -85
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.d.ts +0 -46
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/create-tokenizer.js +0 -611
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/content.js +0 -79
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/document.js +0 -362
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/flow.js +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.d.ts +0 -8
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/initialize/text.js +0 -212
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.d.ts +0 -10
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/parse.js +0 -56
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.d.ts +0 -9
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/postprocess.js +0 -18
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.d.ts +0 -13
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/lib/preprocess.js +0 -115
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/package.json +0 -100
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/readme.md +0 -488
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.d.ts +0 -35
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark/stream.js +0 -256
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/index.js +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/attention.js +0 -300
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/autolink.js +0 -269
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/blank-line.js +0 -62
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/block-quote.js +0 -162
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-escape.js +0 -69
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/character-reference.js +0 -166
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-fenced.js +0 -514
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-indented.js +0 -202
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/code-text.js +0 -257
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.d.ts +0 -7
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/content.js +0 -185
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/definition.js +0 -295
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/hard-break-escape.js +0 -65
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/heading-atx.js +0 -233
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-flow.js +0 -989
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/html-text.js +0 -783
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-end.js +0 -656
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-image.js +0 -110
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/label-start-link.js +0 -62
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/line-ending.js +0 -34
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/list.js +0 -306
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/setext-underline.js +0 -210
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/dev/lib/thematic-break.js +0 -120
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.d.ts +0 -23
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/index.js +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/attention.js +0 -241
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/autolink.js +0 -233
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/blank-line.js +0 -61
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/block-quote.js +0 -143
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-escape.js +0 -64
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/character-reference.js +0 -149
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-fenced.js +0 -460
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-indented.js +0 -177
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/code-text.js +0 -225
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.d.ts +0 -7
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/content.js +0 -163
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/definition.js +0 -254
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/heading-atx.js +0 -195
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-flow.js +0 -876
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/html-text.js +0 -678
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-end.js +0 -560
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-image.js +0 -102
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/label-start-link.js +0 -55
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/line-ending.js +0 -33
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/list.js +0 -213
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/setext-underline.js +0 -185
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/lib/thematic-break.js +0 -102
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/package.json +0 -74
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-core-commonmark/readme.md +0 -171
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.d.ts +0 -42
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/dev/index.js +0 -255
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.d.ts +0 -42
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/index.js +0 -206
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-destination/readme.md +0 -234
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/dev/index.js +0 -172
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/index.js +0 -148
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/package.json +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-label/readme.md +0 -224
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/dev/index.js +0 -67
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/index.js +0 -64
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/package.json +0 -55
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-space/readme.md +0 -225
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/dev/index.js +0 -169
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/index.js +0 -158
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/package.json +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-title/readme.md +0 -229
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/dev/index.js +0 -53
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/index.js +0 -44
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-factory-whitespace/readme.md +0 -205
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.d.ts +0 -41
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/dev/index.js +0 -89
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.d.ts +0 -41
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/index.js +0 -81
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/package.json +0 -57
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-chunked/readme.md +0 -219
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/dev/index.js +0 -38
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.d.ts +0 -18
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/index.js +0 -27
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/package.json +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-classify-character/readme.md +0 -205
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/index.js +0 -143
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/package.json +0 -52
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-combine-extensions/readme.md +0 -201
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/dev/index.js +0 -53
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.d.ts +0 -14
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/index.js +0 -45
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/package.json +0 -63
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-decode-string/readme.md +0 -179
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.d.ts +0 -14
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/index.js +0 -33
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/package.json +0 -47
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-encode/readme.md +0 -176
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.d.ts +0 -30
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/index.js +0 -93
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/package.json +0 -47
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-html-tag-name/readme.md +0 -193
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.d.ts +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/dev/index.js +0 -38
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.d.ts +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/index.js +0 -33
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/package.json +0 -58
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-normalize-identifier/readme.md +0 -187
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.d.ts +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/index.js +0 -32
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/package.json +0 -48
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-resolve-all/readme.md +0 -238
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/dev/index.js +0 -124
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.d.ts +0 -36
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/index.js +0 -107
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/package.json +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-sanitize-uri/readme.md +0 -214
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.d.ts +0 -12
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/index.js +0 -284
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts +0 -161
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/dev/lib/splice-buffer.js +0 -288
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.d.ts +0 -12
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/index.js +0 -228
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts +0 -161
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +0 -251
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/package.json +0 -60
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-subtokenize/readme.md +0 -181
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/index.d.ts +0 -1312
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/package.json +0 -71
- package/node_modules/mdast-util-from-markdown/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/mdast-util-from-markdown/node_modules/ms/index.js +0 -162
- package/node_modules/mdast-util-from-markdown/node_modules/ms/license.md +0 -21
- package/node_modules/mdast-util-from-markdown/node_modules/ms/package.json +0 -38
- package/node_modules/mdast-util-from-markdown/node_modules/ms/readme.md +0 -59
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/index.d.ts +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/index.js +0 -1
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.d.ts +0 -61
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/lib/index.js +0 -84
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/license +0 -22
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/package.json +0 -80
- package/node_modules/mdast-util-from-markdown/node_modules/unist-util-stringify-position/readme.md +0 -206
- package/node_modules/mdast-util-from-markdown/package.json +0 -99
- package/node_modules/mdast-util-from-markdown/readme.md +0 -535
- package/node_modules/mdast-util-gfm-table/index.d.ts +0 -54
- package/node_modules/mdast-util-gfm-table/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/lib/index.d.ts +0 -51
- package/node_modules/mdast-util-gfm-table/lib/index.js +0 -300
- package/node_modules/mdast-util-gfm-table/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/LICENSE +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/README.md +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/index.d.ts +0 -1123
- package/node_modules/mdast-util-gfm-table/node_modules/@types/mdast/package.json +0 -47
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/LICENSE +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/README.md +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/index.d.ts +0 -119
- package/node_modules/mdast-util-gfm-table/node_modules/@types/unist/package.json +0 -60
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/index.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/index.js +0 -2132
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/package.json +0 -78
- package/node_modules/mdast-util-gfm-table/node_modules/character-entities/readme.md +0 -152
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.dom.js +0 -32
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/index.js +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/package.json +0 -90
- package/node_modules/mdast-util-gfm-table/node_modules/decode-named-character-reference/readme.md +0 -136
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/license +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/package.json +0 -57
- package/node_modules/mdast-util-gfm-table/node_modules/dequal/readme.md +0 -112
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/package.json +0 -80
- package/node_modules/mdast-util-gfm-table/node_modules/devlop/readme.md +0 -360
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/index.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/index.js +0 -36
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/package.json +0 -73
- package/node_modules/mdast-util-gfm-table/node_modules/longest-streak/readme.md +0 -150
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.d.ts +0 -171
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/index.js +0 -393
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/package.json +0 -77
- package/node_modules/mdast-util-gfm-table/node_modules/markdown-table/readme.md +0 -344
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/index.d.ts +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/index.js +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/lib/index.d.ts +0 -3
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/lib/index.js +0 -45
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/license +0 -23
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/package.json +0 -78
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-phrasing/readme.md +0 -200
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/index.d.ts +0 -16
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/index.js +0 -3
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/configure.js +0 -79
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts +0 -17
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +0 -29
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/break.js +0 -30
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/code.js +0 -75
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/definition.js +0 -76
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +0 -69
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/heading.js +0 -75
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/html.js +0 -20
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +0 -63
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/image.js +0 -82
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts +0 -42
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/index.js +0 -45
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +0 -76
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +0 -63
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/link.js +0 -114
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +0 -62
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/list.js +0 -100
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts +0 -17
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +0 -20
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/root.js +0 -23
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/strong.js +0 -69
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts +0 -17
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/text.js +0 -15
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/index.js +0 -187
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.d.ts +0 -4
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/join.js +0 -39
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/types.d.ts +0 -965
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/types.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts +0 -4
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/unsafe.js +0 -146
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/association.js +0 -33
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts +0 -8
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +0 -38
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +0 -21
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/compile-pattern.js +0 -24
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-flow.js +0 -84
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts +0 -19
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/container-phrasing.js +0 -125
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/emphasis-strong-marker.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts +0 -10
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +0 -11
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts +0 -33
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +0 -82
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts +0 -13
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +0 -34
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +0 -34
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/indent-lines.js +0 -35
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts +0 -12
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +0 -41
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts +0 -29
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/safe.js +0 -174
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/lib/util/track.js +0 -55
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/package.json +0 -132
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-markdown/readme.md +0 -750
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/index.d.ts +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/index.js +0 -5
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/lib/index.d.ts +0 -31
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/lib/index.js +0 -108
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/package.json +0 -78
- package/node_modules/mdast-util-gfm-table/node_modules/mdast-util-to-string/readme.md +0 -218
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.d.ts +0 -18
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/dev/index.js +0 -38
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.d.ts +0 -18
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/index.js +0 -27
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/package.json +0 -59
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-classify-character/readme.md +0 -205
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts +0 -16
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/dev/index.js +0 -42
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts +0 -16
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/index.js +0 -32
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/package.json +0 -59
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-numeric-character-reference/readme.md +0 -184
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/dev/index.js +0 -53
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/index.js +0 -45
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/package.json +0 -63
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-decode-string/readme.md +0 -179
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/index.d.ts +0 -1312
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/package.json +0 -71
- package/node_modules/mdast-util-gfm-table/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.d.ts +0 -5
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/index.js +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.d.ts +0 -111
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/lib/index.js +0 -296
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/package.json +0 -103
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-is/readme.md +0 -351
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/index.d.ts +0 -9
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.d.ts +0 -195
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/lib/index.js +0 -312
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/package.json +0 -108
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit/readme.md +0 -313
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/index.d.ts +0 -14
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/index.js +0 -2
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.js +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.d.ts +0 -6
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/color.node.js +0 -7
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.d.ts +0 -219
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.d.ts.map +0 -1
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/lib/index.js +0 -399
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/package.json +0 -106
- package/node_modules/mdast-util-gfm-table/node_modules/unist-util-visit-parents/readme.md +0 -388
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/index.d.ts +0 -67
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/index.js +0 -118
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/license +0 -22
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/package.json +0 -72
- package/node_modules/mdast-util-gfm-table/node_modules/zwitch/readme.md +0 -226
- package/node_modules/mdast-util-gfm-table/package.json +0 -101
- package/node_modules/mdast-util-gfm-table/readme.md +0 -605
- package/node_modules/micromark-extension-gfm-table/dev/index.d.ts +0 -55
- package/node_modules/micromark-extension-gfm-table/dev/index.js +0 -2
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts +0 -38
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/edit-map.js +0 -212
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts +0 -11
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/html.js +0 -148
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts +0 -14
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/infer.js +0 -64
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts +0 -18
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/dev/lib/syntax.js +0 -941
- package/node_modules/micromark-extension-gfm-table/index.d.ts +0 -55
- package/node_modules/micromark-extension-gfm-table/index.js +0 -2
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts +0 -38
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/edit-map.js +0 -202
- package/node_modules/micromark-extension-gfm-table/lib/html.d.ts +0 -11
- package/node_modules/micromark-extension-gfm-table/lib/html.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/html.js +0 -130
- package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts +0 -14
- package/node_modules/micromark-extension-gfm-table/lib/infer.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/infer.js +0 -52
- package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts +0 -18
- package/node_modules/micromark-extension-gfm-table/lib/syntax.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/lib/syntax.js +0 -819
- package/node_modules/micromark-extension-gfm-table/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.js +0 -86
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.min.js +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/dist/index.mjs +0 -84
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/index.d.ts +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/license +0 -21
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.d.ts +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.js +0 -31
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.min.js +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/lite/index.mjs +0 -29
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/package.json +0 -57
- package/node_modules/micromark-extension-gfm-table/node_modules/dequal/readme.md +0 -112
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/default.js +0 -9
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/development.d.ts +0 -84
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/lib/development.js +0 -238
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/package.json +0 -80
- package/node_modules/micromark-extension-gfm-table/node_modules/devlop/readme.md +0 -360
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.d.ts +0 -37
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/dev/index.js +0 -67
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.d.ts +0 -37
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/index.js +0 -64
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/package.json +0 -55
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-factory-space/readme.md +0 -225
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.d.ts +0 -195
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/dev/index.js +0 -252
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.d.ts +0 -195
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/index.js +0 -246
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/package.json +0 -57
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-character/readme.md +0 -446
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts +0 -139
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/codes.js +0 -158
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts +0 -37
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/constants.js +0 -44
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts +0 -5
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/default.js +0 -4
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts +0 -106
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/types.js +0 -453
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts +0 -102
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.d.ts.map +0 -1
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/lib/values.js +0 -109
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/package.json +0 -43
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-symbol/readme.md +0 -168
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/index.d.ts +0 -1312
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/index.js +0 -2
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/license +0 -22
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/package.json +0 -71
- package/node_modules/micromark-extension-gfm-table/node_modules/micromark-util-types/readme.md +0 -151
- package/node_modules/micromark-extension-gfm-table/package.json +0 -128
- package/node_modules/micromark-extension-gfm-table/readme.md +0 -515
- /package/dist/{audio-preflight.runtime-BBfC9elv.js → .setup/audio-preflight.runtime-BBfC9elv.mjs} +0 -0
- /package/dist/{rolldown-runtime-8H4AJuhK.js → .setup/rolldown-runtime-8H4AJuhK.mjs} +0 -0
- /package/dist/{runtime-C5JxBWZp.js → .setup/runtime-C5JxBWZp.mjs} +0 -0
- /package/dist/{targets-BUjQ1TcA.js → .setup/targets-BUjQ1TcA.mjs} +0 -0
- /package/node_modules/@larksuiteoapi/node-sdk/node_modules/{protobufjs/src/util/float.d.ts → @protobufjs/float/index.d.ts} +0 -0
- /package/node_modules/{mdast-util-from-markdown/node_modules/@types/debug → @larksuiteoapi/node-sdk/node_modules/@types/node}/LICENSE +0 -0
package/node_modules/@larksuiteoapi/node-sdk/node_modules/protobufjs/dist/minimal/protobuf.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* protobuf.js
|
|
3
|
-
* compiled
|
|
2
|
+
* protobuf.js v7.6.3 (c) 2016, daniel wirtz
|
|
3
|
+
* compiled tue, 09 jun 2026 20:47:47 utc
|
|
4
4
|
* licensed under the bsd-3-clause license
|
|
5
5
|
* see: https://github.com/dcodeio/protobuf.js for details
|
|
6
6
|
*/
|
|
@@ -38,7 +38,824 @@
|
|
|
38
38
|
module.exports = protobuf;
|
|
39
39
|
|
|
40
40
|
})/* end of prelude */({1:[function(require,module,exports){
|
|
41
|
+
"use strict";
|
|
42
|
+
module.exports = asPromise;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Callback as used by {@link util.asPromise}.
|
|
46
|
+
* @typedef asPromiseCallback
|
|
47
|
+
* @type {function}
|
|
48
|
+
* @param {Error|null} error Error, if any
|
|
49
|
+
* @param {...*} params Additional arguments
|
|
50
|
+
* @returns {undefined}
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Returns a promise from a node-style callback function.
|
|
55
|
+
* @memberof util
|
|
56
|
+
* @param {asPromiseCallback} fn Function to call
|
|
57
|
+
* @param {*} ctx Function context
|
|
58
|
+
* @param {...*} params Function arguments
|
|
59
|
+
* @returns {Promise<*>} Promisified function
|
|
60
|
+
*/
|
|
61
|
+
function asPromise(fn, ctx/*, varargs */) {
|
|
62
|
+
var params = new Array(arguments.length - 1),
|
|
63
|
+
offset = 0,
|
|
64
|
+
index = 2,
|
|
65
|
+
pending = true;
|
|
66
|
+
while (index < arguments.length)
|
|
67
|
+
params[offset++] = arguments[index++];
|
|
68
|
+
return new Promise(function executor(resolve, reject) {
|
|
69
|
+
params[offset] = function callback(err/*, varargs */) {
|
|
70
|
+
if (pending) {
|
|
71
|
+
pending = false;
|
|
72
|
+
if (err)
|
|
73
|
+
reject(err);
|
|
74
|
+
else {
|
|
75
|
+
var params = new Array(arguments.length - 1),
|
|
76
|
+
offset = 0;
|
|
77
|
+
while (offset < params.length)
|
|
78
|
+
params[offset++] = arguments[offset];
|
|
79
|
+
resolve.apply(null, params);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
try {
|
|
84
|
+
fn.apply(ctx || null, params);
|
|
85
|
+
} catch (err) {
|
|
86
|
+
if (pending) {
|
|
87
|
+
pending = false;
|
|
88
|
+
reject(err);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
},{}],2:[function(require,module,exports){
|
|
95
|
+
"use strict";
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* A minimal base64 implementation for number arrays.
|
|
99
|
+
* @memberof util
|
|
100
|
+
* @namespace
|
|
101
|
+
*/
|
|
102
|
+
var base64 = exports;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Calculates the byte length of a base64 encoded string.
|
|
106
|
+
* @param {string} string Base64 encoded string
|
|
107
|
+
* @returns {number} Byte length
|
|
108
|
+
*/
|
|
109
|
+
base64.length = function length(string) {
|
|
110
|
+
var p = string.length;
|
|
111
|
+
if (!p)
|
|
112
|
+
return 0;
|
|
113
|
+
var n = 0;
|
|
114
|
+
while (--p % 4 > 1 && string.charAt(p) === "=")
|
|
115
|
+
++n;
|
|
116
|
+
return Math.ceil(string.length * 3) / 4 - n;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
// Base64 encoding table
|
|
120
|
+
var b64 = new Array(64);
|
|
121
|
+
|
|
122
|
+
// Base64 decoding table
|
|
123
|
+
var s64 = new Array(123);
|
|
124
|
+
|
|
125
|
+
// 65..90, 97..122, 48..57, 43, 47
|
|
126
|
+
for (var i = 0; i < 64;)
|
|
127
|
+
s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++;
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Encodes a buffer to a base64 encoded string.
|
|
131
|
+
* @param {Uint8Array} buffer Source buffer
|
|
132
|
+
* @param {number} start Source start
|
|
133
|
+
* @param {number} end Source end
|
|
134
|
+
* @returns {string} Base64 encoded string
|
|
135
|
+
*/
|
|
136
|
+
base64.encode = function encode(buffer, start, end) {
|
|
137
|
+
var parts = null,
|
|
138
|
+
chunk = [];
|
|
139
|
+
var i = 0, // output index
|
|
140
|
+
j = 0, // goto index
|
|
141
|
+
t; // temporary
|
|
142
|
+
while (start < end) {
|
|
143
|
+
var b = buffer[start++];
|
|
144
|
+
switch (j) {
|
|
145
|
+
case 0:
|
|
146
|
+
chunk[i++] = b64[b >> 2];
|
|
147
|
+
t = (b & 3) << 4;
|
|
148
|
+
j = 1;
|
|
149
|
+
break;
|
|
150
|
+
case 1:
|
|
151
|
+
chunk[i++] = b64[t | b >> 4];
|
|
152
|
+
t = (b & 15) << 2;
|
|
153
|
+
j = 2;
|
|
154
|
+
break;
|
|
155
|
+
case 2:
|
|
156
|
+
chunk[i++] = b64[t | b >> 6];
|
|
157
|
+
chunk[i++] = b64[b & 63];
|
|
158
|
+
j = 0;
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
if (i > 8191) {
|
|
162
|
+
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
163
|
+
i = 0;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (j) {
|
|
167
|
+
chunk[i++] = b64[t];
|
|
168
|
+
chunk[i++] = 61;
|
|
169
|
+
if (j === 1)
|
|
170
|
+
chunk[i++] = 61;
|
|
171
|
+
}
|
|
172
|
+
if (parts) {
|
|
173
|
+
if (i)
|
|
174
|
+
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
175
|
+
return parts.join("");
|
|
176
|
+
}
|
|
177
|
+
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
var invalidEncoding = "invalid encoding";
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Decodes a base64 encoded string to a buffer.
|
|
184
|
+
* @param {string} string Source string
|
|
185
|
+
* @param {Uint8Array} buffer Destination buffer
|
|
186
|
+
* @param {number} offset Destination offset
|
|
187
|
+
* @returns {number} Number of bytes written
|
|
188
|
+
* @throws {Error} If encoding is invalid
|
|
189
|
+
*/
|
|
190
|
+
base64.decode = function decode(string, buffer, offset) {
|
|
191
|
+
var start = offset;
|
|
192
|
+
var j = 0, // goto index
|
|
193
|
+
t; // temporary
|
|
194
|
+
for (var i = 0; i < string.length;) {
|
|
195
|
+
var c = string.charCodeAt(i++);
|
|
196
|
+
if (c === 61 && j > 1)
|
|
197
|
+
break;
|
|
198
|
+
if ((c = s64[c]) === undefined)
|
|
199
|
+
throw Error(invalidEncoding);
|
|
200
|
+
switch (j) {
|
|
201
|
+
case 0:
|
|
202
|
+
t = c;
|
|
203
|
+
j = 1;
|
|
204
|
+
break;
|
|
205
|
+
case 1:
|
|
206
|
+
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
207
|
+
t = c;
|
|
208
|
+
j = 2;
|
|
209
|
+
break;
|
|
210
|
+
case 2:
|
|
211
|
+
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
212
|
+
t = c;
|
|
213
|
+
j = 3;
|
|
214
|
+
break;
|
|
215
|
+
case 3:
|
|
216
|
+
buffer[offset++] = (t & 3) << 6 | c;
|
|
217
|
+
j = 0;
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
if (j === 1)
|
|
222
|
+
throw Error(invalidEncoding);
|
|
223
|
+
return offset - start;
|
|
224
|
+
};
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Tests if the specified string appears to be base64 encoded.
|
|
228
|
+
* @param {string} string String to test
|
|
229
|
+
* @returns {boolean} `true` if probably base64 encoded, otherwise false
|
|
230
|
+
*/
|
|
231
|
+
base64.test = function test(string) {
|
|
232
|
+
return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string);
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
},{}],3:[function(require,module,exports){
|
|
236
|
+
"use strict";
|
|
237
|
+
module.exports = EventEmitter;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Constructs a new event emitter instance.
|
|
241
|
+
* @classdesc A minimal event emitter.
|
|
242
|
+
* @memberof util
|
|
243
|
+
* @constructor
|
|
244
|
+
*/
|
|
245
|
+
function EventEmitter() {
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Registered listeners.
|
|
249
|
+
* @type {Object.<string,*>}
|
|
250
|
+
* @private
|
|
251
|
+
*/
|
|
252
|
+
this._listeners = Object.create(null);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Event listener as used by {@link util.EventEmitter}.
|
|
257
|
+
* @typedef EventEmitterListener
|
|
258
|
+
* @type {function}
|
|
259
|
+
* @param {...*} args Arguments
|
|
260
|
+
* @returns {undefined}
|
|
261
|
+
*/
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Registers an event listener.
|
|
265
|
+
* @param {string} evt Event name
|
|
266
|
+
* @param {EventEmitterListener} fn Listener
|
|
267
|
+
* @param {*} [ctx] Listener context
|
|
268
|
+
* @returns {this} `this`
|
|
269
|
+
*/
|
|
270
|
+
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
271
|
+
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
272
|
+
fn : fn,
|
|
273
|
+
ctx : ctx || this
|
|
274
|
+
});
|
|
275
|
+
return this;
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* Removes an event listener or any matching listeners if arguments are omitted.
|
|
280
|
+
* @param {string} [evt] Event name. Removes all listeners if omitted.
|
|
281
|
+
* @param {EventEmitterListener} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
|
|
282
|
+
* @returns {this} `this`
|
|
283
|
+
*/
|
|
284
|
+
EventEmitter.prototype.off = function off(evt, fn) {
|
|
285
|
+
if (evt === undefined)
|
|
286
|
+
this._listeners = Object.create(null);
|
|
287
|
+
else {
|
|
288
|
+
if (fn === undefined)
|
|
289
|
+
this._listeners[evt] = [];
|
|
290
|
+
else {
|
|
291
|
+
var listeners = this._listeners[evt];
|
|
292
|
+
if (!listeners)
|
|
293
|
+
return this;
|
|
294
|
+
for (var i = 0; i < listeners.length;)
|
|
295
|
+
if (listeners[i].fn === fn)
|
|
296
|
+
listeners.splice(i, 1);
|
|
297
|
+
else
|
|
298
|
+
++i;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
return this;
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Emits an event by calling its listeners with the specified arguments.
|
|
306
|
+
* @param {string} evt Event name
|
|
307
|
+
* @param {...*} args Arguments
|
|
308
|
+
* @returns {this} `this`
|
|
309
|
+
*/
|
|
310
|
+
EventEmitter.prototype.emit = function emit(evt) {
|
|
311
|
+
var listeners = this._listeners[evt];
|
|
312
|
+
if (listeners) {
|
|
313
|
+
var args = [],
|
|
314
|
+
i = 1;
|
|
315
|
+
for (; i < arguments.length;)
|
|
316
|
+
args.push(arguments[i++]);
|
|
317
|
+
for (i = 0; i < listeners.length;)
|
|
318
|
+
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
319
|
+
}
|
|
320
|
+
return this;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
},{}],4:[function(require,module,exports){
|
|
324
|
+
"use strict";
|
|
325
|
+
|
|
326
|
+
module.exports = factory(factory);
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Reads / writes floats / doubles from / to buffers.
|
|
330
|
+
* @name util.float
|
|
331
|
+
* @namespace
|
|
332
|
+
*/
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Writes a 32 bit float to a buffer using little endian byte order.
|
|
336
|
+
* @name util.float.writeFloatLE
|
|
337
|
+
* @function
|
|
338
|
+
* @param {number} val Value to write
|
|
339
|
+
* @param {Uint8Array} buf Target buffer
|
|
340
|
+
* @param {number} pos Target buffer offset
|
|
341
|
+
* @returns {undefined}
|
|
342
|
+
*/
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Writes a 32 bit float to a buffer using big endian byte order.
|
|
346
|
+
* @name util.float.writeFloatBE
|
|
347
|
+
* @function
|
|
348
|
+
* @param {number} val Value to write
|
|
349
|
+
* @param {Uint8Array} buf Target buffer
|
|
350
|
+
* @param {number} pos Target buffer offset
|
|
351
|
+
* @returns {undefined}
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Reads a 32 bit float from a buffer using little endian byte order.
|
|
356
|
+
* @name util.float.readFloatLE
|
|
357
|
+
* @function
|
|
358
|
+
* @param {Uint8Array} buf Source buffer
|
|
359
|
+
* @param {number} pos Source buffer offset
|
|
360
|
+
* @returns {number} Value read
|
|
361
|
+
*/
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Reads a 32 bit float from a buffer using big endian byte order.
|
|
365
|
+
* @name util.float.readFloatBE
|
|
366
|
+
* @function
|
|
367
|
+
* @param {Uint8Array} buf Source buffer
|
|
368
|
+
* @param {number} pos Source buffer offset
|
|
369
|
+
* @returns {number} Value read
|
|
370
|
+
*/
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* Writes a 64 bit double to a buffer using little endian byte order.
|
|
374
|
+
* @name util.float.writeDoubleLE
|
|
375
|
+
* @function
|
|
376
|
+
* @param {number} val Value to write
|
|
377
|
+
* @param {Uint8Array} buf Target buffer
|
|
378
|
+
* @param {number} pos Target buffer offset
|
|
379
|
+
* @returns {undefined}
|
|
380
|
+
*/
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Writes a 64 bit double to a buffer using big endian byte order.
|
|
384
|
+
* @name util.float.writeDoubleBE
|
|
385
|
+
* @function
|
|
386
|
+
* @param {number} val Value to write
|
|
387
|
+
* @param {Uint8Array} buf Target buffer
|
|
388
|
+
* @param {number} pos Target buffer offset
|
|
389
|
+
* @returns {undefined}
|
|
390
|
+
*/
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Reads a 64 bit double from a buffer using little endian byte order.
|
|
394
|
+
* @name util.float.readDoubleLE
|
|
395
|
+
* @function
|
|
396
|
+
* @param {Uint8Array} buf Source buffer
|
|
397
|
+
* @param {number} pos Source buffer offset
|
|
398
|
+
* @returns {number} Value read
|
|
399
|
+
*/
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Reads a 64 bit double from a buffer using big endian byte order.
|
|
403
|
+
* @name util.float.readDoubleBE
|
|
404
|
+
* @function
|
|
405
|
+
* @param {Uint8Array} buf Source buffer
|
|
406
|
+
* @param {number} pos Source buffer offset
|
|
407
|
+
* @returns {number} Value read
|
|
408
|
+
*/
|
|
409
|
+
|
|
410
|
+
// Factory function for the purpose of node-based testing in modified global environments
|
|
411
|
+
function factory(exports) {
|
|
412
|
+
|
|
413
|
+
// float: typed array
|
|
414
|
+
if (typeof Float32Array !== "undefined") (function() {
|
|
415
|
+
|
|
416
|
+
var f32 = new Float32Array([ -0 ]),
|
|
417
|
+
f8b = new Uint8Array(f32.buffer),
|
|
418
|
+
le = f8b[3] === 128;
|
|
419
|
+
|
|
420
|
+
function writeFloat_f32_cpy(val, buf, pos) {
|
|
421
|
+
f32[0] = val;
|
|
422
|
+
buf[pos ] = f8b[0];
|
|
423
|
+
buf[pos + 1] = f8b[1];
|
|
424
|
+
buf[pos + 2] = f8b[2];
|
|
425
|
+
buf[pos + 3] = f8b[3];
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
function writeFloat_f32_rev(val, buf, pos) {
|
|
429
|
+
f32[0] = val;
|
|
430
|
+
buf[pos ] = f8b[3];
|
|
431
|
+
buf[pos + 1] = f8b[2];
|
|
432
|
+
buf[pos + 2] = f8b[1];
|
|
433
|
+
buf[pos + 3] = f8b[0];
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/* istanbul ignore next */
|
|
437
|
+
exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
438
|
+
/* istanbul ignore next */
|
|
439
|
+
exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
440
|
+
|
|
441
|
+
function readFloat_f32_cpy(buf, pos) {
|
|
442
|
+
f8b[0] = buf[pos ];
|
|
443
|
+
f8b[1] = buf[pos + 1];
|
|
444
|
+
f8b[2] = buf[pos + 2];
|
|
445
|
+
f8b[3] = buf[pos + 3];
|
|
446
|
+
return f32[0];
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
function readFloat_f32_rev(buf, pos) {
|
|
450
|
+
f8b[3] = buf[pos ];
|
|
451
|
+
f8b[2] = buf[pos + 1];
|
|
452
|
+
f8b[1] = buf[pos + 2];
|
|
453
|
+
f8b[0] = buf[pos + 3];
|
|
454
|
+
return f32[0];
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* istanbul ignore next */
|
|
458
|
+
exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
459
|
+
/* istanbul ignore next */
|
|
460
|
+
exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
461
|
+
|
|
462
|
+
// float: ieee754
|
|
463
|
+
})(); else (function() {
|
|
464
|
+
|
|
465
|
+
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
466
|
+
var sign = val < 0 ? 1 : 0;
|
|
467
|
+
if (sign)
|
|
468
|
+
val = -val;
|
|
469
|
+
if (val === 0)
|
|
470
|
+
writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos);
|
|
471
|
+
else if (isNaN(val))
|
|
472
|
+
writeUint(2143289344, buf, pos);
|
|
473
|
+
else if (val > 3.4028234663852886e+38) // +-Infinity
|
|
474
|
+
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
475
|
+
else if (val < 1.1754943508222875e-38) // denormal
|
|
476
|
+
writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos);
|
|
477
|
+
else {
|
|
478
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2),
|
|
479
|
+
mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
480
|
+
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
485
|
+
exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
486
|
+
|
|
487
|
+
function readFloat_ieee754(readUint, buf, pos) {
|
|
488
|
+
var uint = readUint(buf, pos),
|
|
489
|
+
sign = (uint >> 31) * 2 + 1,
|
|
490
|
+
exponent = uint >>> 23 & 255,
|
|
491
|
+
mantissa = uint & 8388607;
|
|
492
|
+
return exponent === 255
|
|
493
|
+
? mantissa
|
|
494
|
+
? NaN
|
|
495
|
+
: sign * Infinity
|
|
496
|
+
: exponent === 0 // denormal
|
|
497
|
+
? sign * 1.401298464324817e-45 * mantissa
|
|
498
|
+
: sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
502
|
+
exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
503
|
+
|
|
504
|
+
})();
|
|
505
|
+
|
|
506
|
+
// double: typed array
|
|
507
|
+
if (typeof Float64Array !== "undefined") (function() {
|
|
508
|
+
|
|
509
|
+
var f64 = new Float64Array([-0]),
|
|
510
|
+
f8b = new Uint8Array(f64.buffer),
|
|
511
|
+
le = f8b[7] === 128;
|
|
512
|
+
|
|
513
|
+
function writeDouble_f64_cpy(val, buf, pos) {
|
|
514
|
+
f64[0] = val;
|
|
515
|
+
buf[pos ] = f8b[0];
|
|
516
|
+
buf[pos + 1] = f8b[1];
|
|
517
|
+
buf[pos + 2] = f8b[2];
|
|
518
|
+
buf[pos + 3] = f8b[3];
|
|
519
|
+
buf[pos + 4] = f8b[4];
|
|
520
|
+
buf[pos + 5] = f8b[5];
|
|
521
|
+
buf[pos + 6] = f8b[6];
|
|
522
|
+
buf[pos + 7] = f8b[7];
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
function writeDouble_f64_rev(val, buf, pos) {
|
|
526
|
+
f64[0] = val;
|
|
527
|
+
buf[pos ] = f8b[7];
|
|
528
|
+
buf[pos + 1] = f8b[6];
|
|
529
|
+
buf[pos + 2] = f8b[5];
|
|
530
|
+
buf[pos + 3] = f8b[4];
|
|
531
|
+
buf[pos + 4] = f8b[3];
|
|
532
|
+
buf[pos + 5] = f8b[2];
|
|
533
|
+
buf[pos + 6] = f8b[1];
|
|
534
|
+
buf[pos + 7] = f8b[0];
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
/* istanbul ignore next */
|
|
538
|
+
exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
539
|
+
/* istanbul ignore next */
|
|
540
|
+
exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
541
|
+
|
|
542
|
+
function readDouble_f64_cpy(buf, pos) {
|
|
543
|
+
f8b[0] = buf[pos ];
|
|
544
|
+
f8b[1] = buf[pos + 1];
|
|
545
|
+
f8b[2] = buf[pos + 2];
|
|
546
|
+
f8b[3] = buf[pos + 3];
|
|
547
|
+
f8b[4] = buf[pos + 4];
|
|
548
|
+
f8b[5] = buf[pos + 5];
|
|
549
|
+
f8b[6] = buf[pos + 6];
|
|
550
|
+
f8b[7] = buf[pos + 7];
|
|
551
|
+
return f64[0];
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
function readDouble_f64_rev(buf, pos) {
|
|
555
|
+
f8b[7] = buf[pos ];
|
|
556
|
+
f8b[6] = buf[pos + 1];
|
|
557
|
+
f8b[5] = buf[pos + 2];
|
|
558
|
+
f8b[4] = buf[pos + 3];
|
|
559
|
+
f8b[3] = buf[pos + 4];
|
|
560
|
+
f8b[2] = buf[pos + 5];
|
|
561
|
+
f8b[1] = buf[pos + 6];
|
|
562
|
+
f8b[0] = buf[pos + 7];
|
|
563
|
+
return f64[0];
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/* istanbul ignore next */
|
|
567
|
+
exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
568
|
+
/* istanbul ignore next */
|
|
569
|
+
exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
570
|
+
|
|
571
|
+
// double: ieee754
|
|
572
|
+
})(); else (function() {
|
|
573
|
+
|
|
574
|
+
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
575
|
+
var sign = val < 0 ? 1 : 0;
|
|
576
|
+
if (sign)
|
|
577
|
+
val = -val;
|
|
578
|
+
if (val === 0) {
|
|
579
|
+
writeUint(0, buf, pos + off0);
|
|
580
|
+
writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1);
|
|
581
|
+
} else if (isNaN(val)) {
|
|
582
|
+
writeUint(0, buf, pos + off0);
|
|
583
|
+
writeUint(2146959360, buf, pos + off1);
|
|
584
|
+
} else if (val > 1.7976931348623157e+308) { // +-Infinity
|
|
585
|
+
writeUint(0, buf, pos + off0);
|
|
586
|
+
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
587
|
+
} else {
|
|
588
|
+
var mantissa;
|
|
589
|
+
if (val < 2.2250738585072014e-308) { // denormal
|
|
590
|
+
mantissa = val / 5e-324;
|
|
591
|
+
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
592
|
+
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
593
|
+
} else {
|
|
594
|
+
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
595
|
+
if (exponent === 1024)
|
|
596
|
+
exponent = 1023;
|
|
597
|
+
mantissa = val * Math.pow(2, -exponent);
|
|
598
|
+
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
599
|
+
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
605
|
+
exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
606
|
+
|
|
607
|
+
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
608
|
+
var lo = readUint(buf, pos + off0),
|
|
609
|
+
hi = readUint(buf, pos + off1);
|
|
610
|
+
var sign = (hi >> 31) * 2 + 1,
|
|
611
|
+
exponent = hi >>> 20 & 2047,
|
|
612
|
+
mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
613
|
+
return exponent === 2047
|
|
614
|
+
? mantissa
|
|
615
|
+
? NaN
|
|
616
|
+
: sign * Infinity
|
|
617
|
+
: exponent === 0 // denormal
|
|
618
|
+
? sign * 5e-324 * mantissa
|
|
619
|
+
: sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
623
|
+
exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
624
|
+
|
|
625
|
+
})();
|
|
626
|
+
|
|
627
|
+
return exports;
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
// uint helpers
|
|
631
|
+
|
|
632
|
+
function writeUintLE(val, buf, pos) {
|
|
633
|
+
buf[pos ] = val & 255;
|
|
634
|
+
buf[pos + 1] = val >>> 8 & 255;
|
|
635
|
+
buf[pos + 2] = val >>> 16 & 255;
|
|
636
|
+
buf[pos + 3] = val >>> 24;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
function writeUintBE(val, buf, pos) {
|
|
640
|
+
buf[pos ] = val >>> 24;
|
|
641
|
+
buf[pos + 1] = val >>> 16 & 255;
|
|
642
|
+
buf[pos + 2] = val >>> 8 & 255;
|
|
643
|
+
buf[pos + 3] = val & 255;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
function readUintLE(buf, pos) {
|
|
647
|
+
return (buf[pos ]
|
|
648
|
+
| buf[pos + 1] << 8
|
|
649
|
+
| buf[pos + 2] << 16
|
|
650
|
+
| buf[pos + 3] << 24) >>> 0;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
function readUintBE(buf, pos) {
|
|
654
|
+
return (buf[pos ] << 24
|
|
655
|
+
| buf[pos + 1] << 16
|
|
656
|
+
| buf[pos + 2] << 8
|
|
657
|
+
| buf[pos + 3]) >>> 0;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
},{}],5:[function(require,module,exports){
|
|
661
|
+
"use strict";
|
|
662
|
+
module.exports = inquire;
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* Requires a module only if available.
|
|
666
|
+
* @memberof util
|
|
667
|
+
* @param {string} moduleName Module to require
|
|
668
|
+
* @returns {?Object} Required module if available and not empty, otherwise `null`
|
|
669
|
+
* @deprecated Legacy optional require helper. Will be removed in a future release.
|
|
670
|
+
*/
|
|
671
|
+
function inquire(moduleName) {
|
|
672
|
+
try {
|
|
673
|
+
if (typeof require !== "function") {
|
|
674
|
+
return null;
|
|
675
|
+
}
|
|
676
|
+
var mod = require(moduleName);
|
|
677
|
+
if (mod && (mod.length || Object.keys(mod).length)) return mod;
|
|
678
|
+
return null;
|
|
679
|
+
} catch (err) {
|
|
680
|
+
// ignore
|
|
681
|
+
return null;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
/*
|
|
686
|
+
// maybe worth a shot to prevent renaming issues:
|
|
687
|
+
// see: https://github.com/webpack/webpack/blob/master/lib/dependencies/CommonJsRequireDependencyParserPlugin.js
|
|
688
|
+
// triggers on:
|
|
689
|
+
// - expression require.cache
|
|
690
|
+
// - expression require (???)
|
|
691
|
+
// - call require
|
|
692
|
+
// - call require:commonjs:item
|
|
693
|
+
// - call require:commonjs:context
|
|
694
|
+
|
|
695
|
+
Object.defineProperty(Function.prototype, "__self", { get: function() { return this; } });
|
|
696
|
+
var r = require.__self;
|
|
697
|
+
delete Function.prototype.__self;
|
|
698
|
+
*/
|
|
699
|
+
|
|
700
|
+
},{}],6:[function(require,module,exports){
|
|
701
|
+
"use strict";
|
|
702
|
+
module.exports = pool;
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* An allocator as used by {@link util.pool}.
|
|
706
|
+
* @typedef PoolAllocator
|
|
707
|
+
* @type {function}
|
|
708
|
+
* @param {number} size Buffer size
|
|
709
|
+
* @returns {Uint8Array} Buffer
|
|
710
|
+
*/
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* A slicer as used by {@link util.pool}.
|
|
714
|
+
* @typedef PoolSlicer
|
|
715
|
+
* @type {function}
|
|
716
|
+
* @param {number} start Start offset
|
|
717
|
+
* @param {number} end End offset
|
|
718
|
+
* @returns {Uint8Array} Buffer slice
|
|
719
|
+
* @this {Uint8Array}
|
|
720
|
+
*/
|
|
721
|
+
|
|
722
|
+
/**
|
|
723
|
+
* A general purpose buffer pool.
|
|
724
|
+
* @memberof util
|
|
725
|
+
* @function
|
|
726
|
+
* @param {PoolAllocator} alloc Allocator
|
|
727
|
+
* @param {PoolSlicer} slice Slicer
|
|
728
|
+
* @param {number} [size=8192] Slab size
|
|
729
|
+
* @returns {PoolAllocator} Pooled allocator
|
|
730
|
+
*/
|
|
731
|
+
function pool(alloc, slice, size) {
|
|
732
|
+
var SIZE = size || 8192;
|
|
733
|
+
var MAX = SIZE >>> 1;
|
|
734
|
+
var slab = null;
|
|
735
|
+
var offset = SIZE;
|
|
736
|
+
return function pool_alloc(size) {
|
|
737
|
+
if (size < 1 || size > MAX)
|
|
738
|
+
return alloc(size);
|
|
739
|
+
if (offset + size > SIZE) {
|
|
740
|
+
slab = alloc(SIZE);
|
|
741
|
+
offset = 0;
|
|
742
|
+
}
|
|
743
|
+
var buf = slice.call(slab, offset, offset += size);
|
|
744
|
+
if (offset & 7) // align to 32 bit
|
|
745
|
+
offset = (offset | 7) + 1;
|
|
746
|
+
return buf;
|
|
747
|
+
};
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
},{}],7:[function(require,module,exports){
|
|
751
|
+
"use strict";
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* A minimal UTF8 implementation for number arrays.
|
|
755
|
+
* @memberof util
|
|
756
|
+
* @namespace
|
|
757
|
+
*/
|
|
758
|
+
var utf8 = exports,
|
|
759
|
+
replacementChar = "\ufffd";
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Calculates the UTF8 byte length of a string.
|
|
763
|
+
* @param {string} string String
|
|
764
|
+
* @returns {number} Byte length
|
|
765
|
+
*/
|
|
766
|
+
utf8.length = function utf8_length(string) {
|
|
767
|
+
var len = 0,
|
|
768
|
+
c = 0;
|
|
769
|
+
for (var i = 0; i < string.length; ++i) {
|
|
770
|
+
c = string.charCodeAt(i);
|
|
771
|
+
if (c < 128)
|
|
772
|
+
len += 1;
|
|
773
|
+
else if (c < 2048)
|
|
774
|
+
len += 2;
|
|
775
|
+
else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) {
|
|
776
|
+
++i;
|
|
777
|
+
len += 4;
|
|
778
|
+
} else
|
|
779
|
+
len += 3;
|
|
780
|
+
}
|
|
781
|
+
return len;
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Reads UTF8 bytes as a string.
|
|
786
|
+
* @param {Uint8Array} buffer Source buffer
|
|
787
|
+
* @param {number} start Source start
|
|
788
|
+
* @param {number} end Source end
|
|
789
|
+
* @returns {string} String read
|
|
790
|
+
*/
|
|
791
|
+
utf8.read = function utf8_read(buffer, start, end) {
|
|
792
|
+
if (end - start < 1) {
|
|
793
|
+
return "";
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
var str = "";
|
|
797
|
+
for (var i = start; i < end;) {
|
|
798
|
+
var t = buffer[i++];
|
|
799
|
+
if (t <= 0x7F) {
|
|
800
|
+
str += String.fromCharCode(t);
|
|
801
|
+
} else if (t >= 0xC0 && t < 0xE0) {
|
|
802
|
+
var c2 = (t & 0x1F) << 6 | buffer[i++] & 0x3F;
|
|
803
|
+
str += c2 >= 0x80 ? String.fromCharCode(c2) : replacementChar;
|
|
804
|
+
} else if (t >= 0xE0 && t < 0xF0) {
|
|
805
|
+
var c3 = (t & 0xF) << 12 | (buffer[i++] & 0x3F) << 6 | buffer[i++] & 0x3F;
|
|
806
|
+
str += c3 >= 0x800 ? String.fromCharCode(c3) : replacementChar;
|
|
807
|
+
} else if (t >= 0xF0) {
|
|
808
|
+
var t2 = (t & 7) << 18 | (buffer[i++] & 0x3F) << 12 | (buffer[i++] & 0x3F) << 6 | buffer[i++] & 0x3F;
|
|
809
|
+
if (t2 < 0x10000 || t2 > 0x10FFFF)
|
|
810
|
+
str += replacementChar;
|
|
811
|
+
else {
|
|
812
|
+
t2 -= 0x10000;
|
|
813
|
+
str += String.fromCharCode(0xD800 + (t2 >> 10));
|
|
814
|
+
str += String.fromCharCode(0xDC00 + (t2 & 0x3FF));
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
return str;
|
|
820
|
+
};
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* Writes a string as UTF8 bytes.
|
|
824
|
+
* @param {string} string Source string
|
|
825
|
+
* @param {Uint8Array} buffer Destination buffer
|
|
826
|
+
* @param {number} offset Destination offset
|
|
827
|
+
* @returns {number} Bytes written
|
|
828
|
+
*/
|
|
829
|
+
utf8.write = function utf8_write(string, buffer, offset) {
|
|
830
|
+
var start = offset,
|
|
831
|
+
c1, // character 1
|
|
832
|
+
c2; // character 2
|
|
833
|
+
for (var i = 0; i < string.length; ++i) {
|
|
834
|
+
c1 = string.charCodeAt(i);
|
|
835
|
+
if (c1 < 128) {
|
|
836
|
+
buffer[offset++] = c1;
|
|
837
|
+
} else if (c1 < 2048) {
|
|
838
|
+
buffer[offset++] = c1 >> 6 | 192;
|
|
839
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
840
|
+
} else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) {
|
|
841
|
+
c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF);
|
|
842
|
+
++i;
|
|
843
|
+
buffer[offset++] = c1 >> 18 | 240;
|
|
844
|
+
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
845
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
846
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
847
|
+
} else {
|
|
848
|
+
buffer[offset++] = c1 >> 12 | 224;
|
|
849
|
+
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
850
|
+
buffer[offset++] = c1 & 63 | 128;
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
return offset - start;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
},{}],8:[function(require,module,exports){
|
|
41
857
|
"use strict";
|
|
858
|
+
var protobuf = exports;
|
|
42
859
|
|
|
43
860
|
/**
|
|
44
861
|
* Build type, one of `"full"`, `"light"` or `"minimal"`.
|
|
@@ -46,19 +863,19 @@
|
|
|
46
863
|
* @type {string}
|
|
47
864
|
* @const
|
|
48
865
|
*/
|
|
49
|
-
|
|
866
|
+
protobuf.build = "minimal";
|
|
50
867
|
|
|
51
868
|
// Serialization
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
869
|
+
protobuf.Writer = require(16);
|
|
870
|
+
protobuf.BufferWriter = require(17);
|
|
871
|
+
protobuf.Reader = require(9);
|
|
872
|
+
protobuf.BufferReader = require(10);
|
|
56
873
|
|
|
57
874
|
// Utility
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
875
|
+
protobuf.util = require(15);
|
|
876
|
+
protobuf.rpc = require(12);
|
|
877
|
+
protobuf.roots = require(11);
|
|
878
|
+
protobuf.configure = configure;
|
|
62
879
|
|
|
63
880
|
/* istanbul ignore next */
|
|
64
881
|
/**
|
|
@@ -66,19 +883,19 @@ exports.configure = configure;
|
|
|
66
883
|
* @returns {undefined}
|
|
67
884
|
*/
|
|
68
885
|
function configure() {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
886
|
+
protobuf.util._configure();
|
|
887
|
+
protobuf.Writer._configure(protobuf.BufferWriter);
|
|
888
|
+
protobuf.Reader._configure(protobuf.BufferReader);
|
|
72
889
|
}
|
|
73
890
|
|
|
74
891
|
// Set up buffer utility according to the environment
|
|
75
892
|
configure();
|
|
76
893
|
|
|
77
|
-
},{"
|
|
894
|
+
},{"10":10,"11":11,"12":12,"15":15,"16":16,"17":17,"9":9}],9:[function(require,module,exports){
|
|
78
895
|
"use strict";
|
|
79
896
|
module.exports = Reader;
|
|
80
897
|
|
|
81
|
-
var util = require(
|
|
898
|
+
var util = require(15);
|
|
82
899
|
|
|
83
900
|
var BufferReader; // cyclic
|
|
84
901
|
|
|
@@ -92,7 +909,7 @@ function indexOutOfRange(reader, writeLength) {
|
|
|
92
909
|
|
|
93
910
|
/**
|
|
94
911
|
* Constructs a new reader instance using the specified buffer.
|
|
95
|
-
* @classdesc Wire format reader using `Uint8Array`.
|
|
912
|
+
* @classdesc Wire format reader using `Uint8Array` if available, otherwise `Array`.
|
|
96
913
|
* @constructor
|
|
97
914
|
* @param {Uint8Array} buffer Buffer to read from
|
|
98
915
|
*/
|
|
@@ -115,28 +932,20 @@ function Reader(buffer) {
|
|
|
115
932
|
* @type {number}
|
|
116
933
|
*/
|
|
117
934
|
this.len = buffer.length;
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* Cached DataView for packed reads.
|
|
121
|
-
* @type {DataView|null}
|
|
122
|
-
*/
|
|
123
|
-
this.view = null;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Whether to discard unknown fields while decoding.
|
|
127
|
-
* @type {boolean}
|
|
128
|
-
*/
|
|
129
|
-
this.discardUnknown = Reader.discardUnknown;
|
|
130
935
|
}
|
|
131
936
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
937
|
+
var create_array = typeof Uint8Array !== "undefined"
|
|
938
|
+
? function create_typed_array(buffer) {
|
|
939
|
+
if (buffer instanceof Uint8Array || Array.isArray(buffer))
|
|
940
|
+
return new Reader(buffer);
|
|
941
|
+
throw Error("illegal buffer");
|
|
942
|
+
}
|
|
943
|
+
/* istanbul ignore next */
|
|
944
|
+
: function create_array(buffer) {
|
|
945
|
+
if (Array.isArray(buffer))
|
|
946
|
+
return new Reader(buffer);
|
|
947
|
+
throw Error("illegal buffer");
|
|
948
|
+
};
|
|
140
949
|
|
|
141
950
|
var create = function create() {
|
|
142
951
|
return util.Buffer
|
|
@@ -161,103 +970,30 @@ var create = function create() {
|
|
|
161
970
|
*/
|
|
162
971
|
Reader.create = create();
|
|
163
972
|
|
|
164
|
-
|
|
165
|
-
* Returns raw bytes from the backing buffer without advancing the reader.
|
|
166
|
-
* @param {number} start Start offset
|
|
167
|
-
* @param {number} end End offset
|
|
168
|
-
* @returns {Uint8Array} Raw bytes
|
|
169
|
-
*/
|
|
170
|
-
Reader.prototype.raw = function read_raw(start, end) {
|
|
171
|
-
return this.buf.subarray(start, end);
|
|
172
|
-
};
|
|
973
|
+
Reader.prototype._slice = util.Array.prototype.subarray || /* istanbul ignore next */ util.Array.prototype.slice;
|
|
173
974
|
|
|
174
975
|
/**
|
|
175
976
|
* Reads a varint as an unsigned 32 bit value.
|
|
176
977
|
* @function
|
|
177
978
|
* @returns {number} Value read
|
|
178
979
|
*/
|
|
179
|
-
Reader.prototype.uint32 = function
|
|
180
|
-
var
|
|
181
|
-
|
|
182
|
-
value = (buf[pos] & 127) >>> 0;
|
|
183
|
-
|
|
184
|
-
this.pos
|
|
185
|
-
return value;
|
|
186
|
-
|
|
187
|
-
value = (value | (buf[pos] & 127) << 7) >>> 0;
|
|
188
|
-
if (buf[pos++] < 128) {
|
|
189
|
-
this.pos = pos;
|
|
190
|
-
return value;
|
|
191
|
-
}
|
|
192
|
-
value = (value | (buf[pos] & 127) << 14) >>> 0;
|
|
193
|
-
if (buf[pos++] < 128) {
|
|
194
|
-
this.pos = pos;
|
|
195
|
-
return value;
|
|
196
|
-
}
|
|
197
|
-
value = (value | (buf[pos] & 127) << 21) >>> 0;
|
|
198
|
-
if (buf[pos++] < 128) {
|
|
199
|
-
this.pos = pos;
|
|
200
|
-
return value;
|
|
201
|
-
}
|
|
202
|
-
value = (value | (buf[pos] & 15) << 28) >>> 0;
|
|
203
|
-
if (buf[pos++] < 128) {
|
|
204
|
-
this.pos = pos;
|
|
205
|
-
return value;
|
|
206
|
-
}
|
|
980
|
+
Reader.prototype.uint32 = (function read_uint32_setup() {
|
|
981
|
+
var value = 4294967295; // optimizer type-hint, tends to deopt otherwise (?!)
|
|
982
|
+
return function read_uint32() {
|
|
983
|
+
value = ( this.buf[this.pos] & 127 ) >>> 0; if (this.buf[this.pos++] < 128) return value;
|
|
984
|
+
value = (value | (this.buf[this.pos] & 127) << 7) >>> 0; if (this.buf[this.pos++] < 128) return value;
|
|
985
|
+
value = (value | (this.buf[this.pos] & 127) << 14) >>> 0; if (this.buf[this.pos++] < 128) return value;
|
|
986
|
+
value = (value | (this.buf[this.pos] & 127) << 21) >>> 0; if (this.buf[this.pos++] < 128) return value;
|
|
987
|
+
value = (value | (this.buf[this.pos] & 15) << 28) >>> 0; if (this.buf[this.pos++] < 128) return value;
|
|
207
988
|
|
|
208
|
-
for (var i = 0; i < 5; ++i) {
|
|
209
989
|
/* istanbul ignore if */
|
|
210
|
-
if (pos
|
|
211
|
-
this.pos =
|
|
212
|
-
throw indexOutOfRange(this);
|
|
990
|
+
if ((this.pos += 5) > this.len) {
|
|
991
|
+
this.pos = this.len;
|
|
992
|
+
throw indexOutOfRange(this, 10);
|
|
213
993
|
}
|
|
214
|
-
if (buf[pos++] < 128) {
|
|
215
|
-
this.pos = pos;
|
|
216
|
-
return value;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
/* istanbul ignore next */
|
|
220
|
-
this.pos = pos;
|
|
221
|
-
throw Error("invalid varint encoding");
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
/**
|
|
225
|
-
* Reads a field tag.
|
|
226
|
-
* @function
|
|
227
|
-
* @returns {number} Tag read
|
|
228
|
-
*/
|
|
229
|
-
Reader.prototype.tag = function read_tag() {
|
|
230
|
-
var buf = this.buf,
|
|
231
|
-
pos = this.pos,
|
|
232
|
-
value = (buf[pos] & 127) >>> 0;
|
|
233
|
-
if (buf[pos++] < 128) {
|
|
234
|
-
this.pos = pos;
|
|
235
|
-
return value;
|
|
236
|
-
}
|
|
237
|
-
value = (value | (buf[pos] & 127) << 7) >>> 0;
|
|
238
|
-
if (buf[pos++] < 128) {
|
|
239
|
-
this.pos = pos;
|
|
240
|
-
return value;
|
|
241
|
-
}
|
|
242
|
-
value = (value | (buf[pos] & 127) << 14) >>> 0;
|
|
243
|
-
if (buf[pos++] < 128) {
|
|
244
|
-
this.pos = pos;
|
|
245
994
|
return value;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
if (buf[pos++] < 128) {
|
|
249
|
-
this.pos = pos;
|
|
250
|
-
return value;
|
|
251
|
-
}
|
|
252
|
-
value = (value | (buf[pos] & 15) << 28) >>> 0;
|
|
253
|
-
if (buf[pos] < 128 && (buf[pos] & 112) === 0) {
|
|
254
|
-
this.pos = pos + 1;
|
|
255
|
-
return value;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
this.pos = pos + 1;
|
|
259
|
-
throw Error("invalid tag encoding");
|
|
260
|
-
};
|
|
995
|
+
};
|
|
996
|
+
})();
|
|
261
997
|
|
|
262
998
|
/**
|
|
263
999
|
* Reads a varint as a signed 32 bit value.
|
|
@@ -296,16 +1032,18 @@ function readLongVarint() {
|
|
|
296
1032
|
return bits;
|
|
297
1033
|
i = 0;
|
|
298
1034
|
} else {
|
|
299
|
-
for (; i <
|
|
1035
|
+
for (; i < 3; ++i) {
|
|
300
1036
|
/* istanbul ignore if */
|
|
301
1037
|
if (this.pos >= this.len)
|
|
302
1038
|
throw indexOutOfRange(this);
|
|
303
|
-
// 1st..
|
|
1039
|
+
// 1st..3th
|
|
304
1040
|
bits.lo = (bits.lo | (this.buf[this.pos] & 127) << i * 7) >>> 0;
|
|
305
1041
|
if (this.buf[this.pos++] < 128)
|
|
306
1042
|
return bits;
|
|
307
1043
|
}
|
|
308
|
-
|
|
1044
|
+
// 4th
|
|
1045
|
+
bits.lo = (bits.lo | (this.buf[this.pos++] & 127) << i * 7) >>> 0;
|
|
1046
|
+
return bits;
|
|
309
1047
|
}
|
|
310
1048
|
if (this.len - this.pos > 4) { // fast route (hi)
|
|
311
1049
|
for (; i < 5; ++i) {
|
|
@@ -357,20 +1095,7 @@ function readLongVarint() {
|
|
|
357
1095
|
* @returns {boolean} Value read
|
|
358
1096
|
*/
|
|
359
1097
|
Reader.prototype.bool = function read_bool() {
|
|
360
|
-
|
|
361
|
-
b;
|
|
362
|
-
for (var i = 0; i < 10; ++i) {
|
|
363
|
-
/* istanbul ignore if */
|
|
364
|
-
if (this.pos >= this.len)
|
|
365
|
-
throw indexOutOfRange(this);
|
|
366
|
-
b = this.buf[this.pos++];
|
|
367
|
-
if (b & 127)
|
|
368
|
-
value = true;
|
|
369
|
-
if (b < 128)
|
|
370
|
-
return value;
|
|
371
|
-
}
|
|
372
|
-
/* istanbul ignore next */
|
|
373
|
-
throw Error("invalid varint encoding");
|
|
1098
|
+
return this.uint32() !== 0;
|
|
374
1099
|
};
|
|
375
1100
|
|
|
376
1101
|
function readFixed32_end(buf, end) { // note that this uses `end`, not `pos`
|
|
@@ -465,241 +1190,6 @@ Reader.prototype.double = function read_double() {
|
|
|
465
1190
|
return value;
|
|
466
1191
|
};
|
|
467
1192
|
|
|
468
|
-
/**
|
|
469
|
-
* Reads a packed repeated field of unsigned 32 bit varints.
|
|
470
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
471
|
-
* @returns {number[]} Array read into
|
|
472
|
-
*/
|
|
473
|
-
Reader.prototype.uint32s = function read_uint32s(array) {
|
|
474
|
-
if (array === undefined) array = [];
|
|
475
|
-
var end = this.uint32() + this.pos;
|
|
476
|
-
while (this.pos < end)
|
|
477
|
-
array.push(this.uint32());
|
|
478
|
-
return array;
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Reads a packed repeated field of signed 32 bit varints.
|
|
483
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
484
|
-
* @returns {number[]} Array read into
|
|
485
|
-
*/
|
|
486
|
-
Reader.prototype.int32s = function read_int32s(array) {
|
|
487
|
-
if (array === undefined) array = [];
|
|
488
|
-
var end = this.uint32() + this.pos;
|
|
489
|
-
while (this.pos < end)
|
|
490
|
-
array.push(this.int32());
|
|
491
|
-
return array;
|
|
492
|
-
};
|
|
493
|
-
|
|
494
|
-
/**
|
|
495
|
-
* Reads a packed repeated field of zig-zag encoded signed 32 bit varints.
|
|
496
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
497
|
-
* @returns {number[]} Array read into
|
|
498
|
-
*/
|
|
499
|
-
Reader.prototype.sint32s = function read_sint32s(array) {
|
|
500
|
-
if (array === undefined) array = [];
|
|
501
|
-
var end = this.uint32() + this.pos;
|
|
502
|
-
while (this.pos < end)
|
|
503
|
-
array.push(this.sint32());
|
|
504
|
-
return array;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
/**
|
|
508
|
-
* Reads a packed repeated field of booleans.
|
|
509
|
-
* @param {boolean[]} [array] Array to read into; a new one is created if omitted
|
|
510
|
-
* @returns {boolean[]} Array read into
|
|
511
|
-
*/
|
|
512
|
-
Reader.prototype.bools = function read_bools(array) {
|
|
513
|
-
if (array === undefined) array = [];
|
|
514
|
-
var end = this.uint32() + this.pos;
|
|
515
|
-
while (this.pos < end)
|
|
516
|
-
array.push(this.bool());
|
|
517
|
-
return array;
|
|
518
|
-
};
|
|
519
|
-
|
|
520
|
-
// The view allocation only pays off when amortized over enough reads
|
|
521
|
-
var VIEW_THRESHOLD_FLOAT = 8,
|
|
522
|
-
VIEW_THRESHOLD_INT = 128;
|
|
523
|
-
|
|
524
|
-
function getLazyView(reader, count, threshold) {
|
|
525
|
-
var view = reader.view;
|
|
526
|
-
if (view || count < threshold)
|
|
527
|
-
return view;
|
|
528
|
-
var buf = reader.buf;
|
|
529
|
-
return reader.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* Reads a packed repeated field of unsigned 32 bit fixed values.
|
|
534
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
535
|
-
* @returns {number[]} Array read into
|
|
536
|
-
*/
|
|
537
|
-
Reader.prototype.fixed32s = function read_fixed32s(array) {
|
|
538
|
-
if (array === undefined) array = [];
|
|
539
|
-
var len = this.uint32(), end = this.pos + len;
|
|
540
|
-
/* istanbul ignore if */
|
|
541
|
-
if (end > this.len) throw indexOutOfRange(this, len);
|
|
542
|
-
var count = len >>> 2, i = array.length, pos = this.pos;
|
|
543
|
-
array.length = i + count;
|
|
544
|
-
var dv = getLazyView(this, count, VIEW_THRESHOLD_INT);
|
|
545
|
-
if (dv)
|
|
546
|
-
for (var k = 0; k < count; ++k, pos += 4) array[i++] = dv.getUint32(pos, true);
|
|
547
|
-
else {
|
|
548
|
-
var buf = this.buf;
|
|
549
|
-
for (var j = 0; j < count; ++j, pos += 4) array[i++] = readFixed32_end(buf, pos + 4);
|
|
550
|
-
}
|
|
551
|
-
this.pos = pos;
|
|
552
|
-
if (pos !== end) throw indexOutOfRange(this, 4);
|
|
553
|
-
return array;
|
|
554
|
-
};
|
|
555
|
-
|
|
556
|
-
/**
|
|
557
|
-
* Reads a packed repeated field of signed 32 bit fixed values.
|
|
558
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
559
|
-
* @returns {number[]} Array read into
|
|
560
|
-
*/
|
|
561
|
-
Reader.prototype.sfixed32s = function read_sfixed32s(array) {
|
|
562
|
-
if (array === undefined) array = [];
|
|
563
|
-
var len = this.uint32(), end = this.pos + len;
|
|
564
|
-
/* istanbul ignore if */
|
|
565
|
-
if (end > this.len) throw indexOutOfRange(this, len);
|
|
566
|
-
var count = len >>> 2, i = array.length, pos = this.pos;
|
|
567
|
-
array.length = i + count;
|
|
568
|
-
var dv = getLazyView(this, count, VIEW_THRESHOLD_INT);
|
|
569
|
-
if (dv)
|
|
570
|
-
for (var k = 0; k < count; ++k, pos += 4) array[i++] = dv.getInt32(pos, true);
|
|
571
|
-
else {
|
|
572
|
-
var buf = this.buf;
|
|
573
|
-
for (var j = 0; j < count; ++j, pos += 4) array[i++] = readFixed32_end(buf, pos + 4) | 0;
|
|
574
|
-
}
|
|
575
|
-
this.pos = pos;
|
|
576
|
-
if (pos !== end) throw indexOutOfRange(this, 4);
|
|
577
|
-
return array;
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
/**
|
|
581
|
-
* Reads a packed repeated field of floats (32 bit).
|
|
582
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
583
|
-
* @returns {number[]} Array read into
|
|
584
|
-
*/
|
|
585
|
-
Reader.prototype.floats = function read_floats(array) {
|
|
586
|
-
if (array === undefined) array = [];
|
|
587
|
-
var len = this.uint32(), end = this.pos + len;
|
|
588
|
-
/* istanbul ignore if */
|
|
589
|
-
if (end > this.len) throw indexOutOfRange(this, len);
|
|
590
|
-
var count = len >>> 2, i = array.length, pos = this.pos;
|
|
591
|
-
array.length = i + count;
|
|
592
|
-
var dv = getLazyView(this, count, VIEW_THRESHOLD_FLOAT);
|
|
593
|
-
if (dv)
|
|
594
|
-
for (var k = 0; k < count; ++k, pos += 4) array[i++] = dv.getFloat32(pos, true);
|
|
595
|
-
else {
|
|
596
|
-
var buf = this.buf;
|
|
597
|
-
for (var j = 0; j < count; ++j, pos += 4) array[i++] = util.float.readFloatLE(buf, pos);
|
|
598
|
-
}
|
|
599
|
-
this.pos = pos;
|
|
600
|
-
if (pos !== end) throw indexOutOfRange(this, 4);
|
|
601
|
-
return array;
|
|
602
|
-
};
|
|
603
|
-
|
|
604
|
-
/**
|
|
605
|
-
* Reads a packed repeated field of doubles (64 bit float).
|
|
606
|
-
* @param {number[]} [array] Array to read into; a new one is created if omitted
|
|
607
|
-
* @returns {number[]} Array read into
|
|
608
|
-
*/
|
|
609
|
-
Reader.prototype.doubles = function read_doubles(array) {
|
|
610
|
-
if (array === undefined) array = [];
|
|
611
|
-
var len = this.uint32(), end = this.pos + len;
|
|
612
|
-
/* istanbul ignore if */
|
|
613
|
-
if (end > this.len) throw indexOutOfRange(this, len);
|
|
614
|
-
var count = len >>> 3, i = array.length, pos = this.pos;
|
|
615
|
-
array.length = i + count;
|
|
616
|
-
var dv = getLazyView(this, count, VIEW_THRESHOLD_FLOAT);
|
|
617
|
-
if (dv)
|
|
618
|
-
for (var k = 0; k < count; ++k, pos += 8) array[i++] = dv.getFloat64(pos, true);
|
|
619
|
-
else {
|
|
620
|
-
var buf = this.buf;
|
|
621
|
-
for (var j = 0; j < count; ++j, pos += 8) array[i++] = util.float.readDoubleLE(buf, pos);
|
|
622
|
-
}
|
|
623
|
-
this.pos = pos;
|
|
624
|
-
if (pos !== end) throw indexOutOfRange(this, 8);
|
|
625
|
-
return array;
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Reads a packed repeated field of unsigned 64 bit varints.
|
|
630
|
-
* @param {Array.<Long|number>} [array] Array to read into; a new one is created if omitted
|
|
631
|
-
* @returns {Array.<Long|number>} Array read into
|
|
632
|
-
*/
|
|
633
|
-
Reader.prototype.uint64s = function read_uint64s(array) {
|
|
634
|
-
if (array === undefined) array = [];
|
|
635
|
-
var end = this.uint32() + this.pos;
|
|
636
|
-
while (this.pos < end)
|
|
637
|
-
array.push(this.uint64());
|
|
638
|
-
return array;
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
/**
|
|
642
|
-
* Reads a packed repeated field of signed 64 bit varints.
|
|
643
|
-
* @param {Array.<Long|number>} [array] Array to read into; a new one is created if omitted
|
|
644
|
-
* @returns {Array.<Long|number>} Array read into
|
|
645
|
-
*/
|
|
646
|
-
Reader.prototype.int64s = function read_int64s(array) {
|
|
647
|
-
if (array === undefined) array = [];
|
|
648
|
-
var end = this.uint32() + this.pos;
|
|
649
|
-
while (this.pos < end)
|
|
650
|
-
array.push(this.int64());
|
|
651
|
-
return array;
|
|
652
|
-
};
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Reads a packed repeated field of zig-zag encoded signed 64 bit varints.
|
|
656
|
-
* @param {Array.<Long|number>} [array] Array to read into; a new one is created if omitted
|
|
657
|
-
* @returns {Array.<Long|number>} Array read into
|
|
658
|
-
*/
|
|
659
|
-
Reader.prototype.sint64s = function read_sint64s(array) {
|
|
660
|
-
if (array === undefined) array = [];
|
|
661
|
-
var end = this.uint32() + this.pos;
|
|
662
|
-
while (this.pos < end)
|
|
663
|
-
array.push(this.sint64());
|
|
664
|
-
return array;
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* Reads a packed repeated field of unsigned 64 bit fixed values.
|
|
669
|
-
* @param {Array.<Long|number>} [array] Array to read into; a new one is created if omitted
|
|
670
|
-
* @returns {Array.<Long|number>} Array read into
|
|
671
|
-
*/
|
|
672
|
-
Reader.prototype.fixed64s = function read_fixed64s(array) {
|
|
673
|
-
if (array === undefined) array = [];
|
|
674
|
-
var len = this.uint32(), end = this.pos + len, i = array.length;
|
|
675
|
-
/* istanbul ignore if */
|
|
676
|
-
if (end > this.len) throw indexOutOfRange(this, len);
|
|
677
|
-
var count = len >>> 3;
|
|
678
|
-
array.length = i + count; // 8 bytes per value, count is known
|
|
679
|
-
for (var j = 0; j < count; ++j)
|
|
680
|
-
array[i++] = this.fixed64();
|
|
681
|
-
if (this.pos !== end) throw indexOutOfRange(this, 8);
|
|
682
|
-
return array;
|
|
683
|
-
};
|
|
684
|
-
|
|
685
|
-
/**
|
|
686
|
-
* Reads a packed repeated field of signed 64 bit fixed values.
|
|
687
|
-
* @param {Array.<Long|number>} [array] Array to read into; a new one is created if omitted
|
|
688
|
-
* @returns {Array.<Long|number>} Array read into
|
|
689
|
-
*/
|
|
690
|
-
Reader.prototype.sfixed64s = function read_sfixed64s(array) {
|
|
691
|
-
if (array === undefined) array = [];
|
|
692
|
-
var len = this.uint32(), end = this.pos + len, i = array.length;
|
|
693
|
-
/* istanbul ignore if */
|
|
694
|
-
if (end > this.len) throw indexOutOfRange(this, len);
|
|
695
|
-
var count = len >>> 3;
|
|
696
|
-
array.length = i + count; // 8 bytes per value, count is known
|
|
697
|
-
for (var j = 0; j < count; ++j)
|
|
698
|
-
array[i++] = this.sfixed64();
|
|
699
|
-
if (this.pos !== end) throw indexOutOfRange(this, 8);
|
|
700
|
-
return array;
|
|
701
|
-
};
|
|
702
|
-
|
|
703
1193
|
/**
|
|
704
1194
|
* Reads a sequence of bytes preceeded by its length as a varint.
|
|
705
1195
|
* @returns {Uint8Array} Value read
|
|
@@ -713,8 +1203,17 @@ Reader.prototype.bytes = function read_bytes() {
|
|
|
713
1203
|
if (end > this.len)
|
|
714
1204
|
throw indexOutOfRange(this, length);
|
|
715
1205
|
|
|
716
|
-
this.pos
|
|
717
|
-
|
|
1206
|
+
this.pos += length;
|
|
1207
|
+
if (Array.isArray(this.buf)) // plain array
|
|
1208
|
+
return this.buf.slice(start, end);
|
|
1209
|
+
|
|
1210
|
+
if (start === end) { // fix for IE 10/Win8 and others' subarray returning array of size 1
|
|
1211
|
+
var nativeBuffer = util.Buffer;
|
|
1212
|
+
return nativeBuffer
|
|
1213
|
+
? nativeBuffer.alloc(0)
|
|
1214
|
+
: new this.buf.constructor(0);
|
|
1215
|
+
}
|
|
1216
|
+
return this._slice.call(this.buf, start, end);
|
|
718
1217
|
};
|
|
719
1218
|
|
|
720
1219
|
/**
|
|
@@ -722,33 +1221,8 @@ Reader.prototype.bytes = function read_bytes() {
|
|
|
722
1221
|
* @returns {string} Value read
|
|
723
1222
|
*/
|
|
724
1223
|
Reader.prototype.string = function read_string() {
|
|
725
|
-
var
|
|
726
|
-
|
|
727
|
-
end = this.pos + length;
|
|
728
|
-
|
|
729
|
-
/* istanbul ignore if */
|
|
730
|
-
if (end > this.len)
|
|
731
|
-
throw indexOutOfRange(this, length);
|
|
732
|
-
|
|
733
|
-
this.pos = end;
|
|
734
|
-
return utf8.read(this.buf, start, end);
|
|
735
|
-
};
|
|
736
|
-
|
|
737
|
-
/**
|
|
738
|
-
* Reads a string preceeded by its byte length as a varint, rejecting invalid UTF8.
|
|
739
|
-
* @returns {string} Value read
|
|
740
|
-
*/
|
|
741
|
-
Reader.prototype.stringVerify = function read_string_verify() {
|
|
742
|
-
var length = this.uint32(),
|
|
743
|
-
start = this.pos,
|
|
744
|
-
end = this.pos + length;
|
|
745
|
-
|
|
746
|
-
/* istanbul ignore if */
|
|
747
|
-
if (end > this.len)
|
|
748
|
-
throw indexOutOfRange(this, length);
|
|
749
|
-
|
|
750
|
-
this.pos = end;
|
|
751
|
-
return utf8.readStrict(this.buf, start, end);
|
|
1224
|
+
var bytes = this.bytes();
|
|
1225
|
+
return utf8.read(bytes, 0, bytes.length);
|
|
752
1226
|
};
|
|
753
1227
|
|
|
754
1228
|
/**
|
|
@@ -778,25 +1252,16 @@ Reader.prototype.skip = function skip(length) {
|
|
|
778
1252
|
*/
|
|
779
1253
|
Reader.recursionLimit = util.recursionLimit;
|
|
780
1254
|
|
|
781
|
-
/**
|
|
782
|
-
* Whether readers discard unknown fields while decoding.
|
|
783
|
-
* @type {boolean}
|
|
784
|
-
*/
|
|
785
|
-
Reader.discardUnknown = true;
|
|
786
|
-
|
|
787
1255
|
/**
|
|
788
1256
|
* Skips the next element of the specified wire type.
|
|
789
1257
|
* @param {number} wireType Wire type received
|
|
790
1258
|
* @param {number} [depth] Depth of recursion to control nested calls; 0 if omitted
|
|
791
|
-
* @param {number} [fieldNumber] Field number for validating group end tags
|
|
792
1259
|
* @returns {Reader} `this`
|
|
793
1260
|
*/
|
|
794
|
-
Reader.prototype.skipType = function(wireType, depth
|
|
1261
|
+
Reader.prototype.skipType = function(wireType, depth) {
|
|
795
1262
|
if (depth === undefined) depth = 0;
|
|
796
1263
|
if (depth > Reader.recursionLimit)
|
|
797
|
-
throw Error("
|
|
798
|
-
if (fieldNumber === 0)
|
|
799
|
-
throw Error("illegal tag: field number 0");
|
|
1264
|
+
throw Error("maximum nesting depth exceeded");
|
|
800
1265
|
switch (wireType) {
|
|
801
1266
|
case 0:
|
|
802
1267
|
this.skip();
|
|
@@ -808,18 +1273,8 @@ Reader.prototype.skipType = function(wireType, depth, fieldNumber) {
|
|
|
808
1273
|
this.skip(this.uint32());
|
|
809
1274
|
break;
|
|
810
1275
|
case 3:
|
|
811
|
-
while (
|
|
812
|
-
|
|
813
|
-
var nestedField = tag >>> 3;
|
|
814
|
-
wireType = tag & 7;
|
|
815
|
-
if (!nestedField)
|
|
816
|
-
throw Error("illegal tag: field number 0");
|
|
817
|
-
if (wireType === 4) {
|
|
818
|
-
if (fieldNumber !== undefined && nestedField !== fieldNumber)
|
|
819
|
-
throw Error("invalid end group tag");
|
|
820
|
-
break;
|
|
821
|
-
}
|
|
822
|
-
this.skipType(wireType, depth + 1, nestedField);
|
|
1276
|
+
while ((wireType = this.uint32() & 7) !== 4) {
|
|
1277
|
+
this.skipType(wireType, depth + 1);
|
|
823
1278
|
}
|
|
824
1279
|
break;
|
|
825
1280
|
case 5:
|
|
@@ -864,22 +1319,15 @@ Reader._configure = function(BufferReader_) {
|
|
|
864
1319
|
});
|
|
865
1320
|
};
|
|
866
1321
|
|
|
867
|
-
},{"
|
|
1322
|
+
},{"15":15}],10:[function(require,module,exports){
|
|
868
1323
|
"use strict";
|
|
869
1324
|
module.exports = BufferReader;
|
|
870
1325
|
|
|
871
1326
|
// extends Reader
|
|
872
|
-
var Reader = require(
|
|
873
|
-
BufferReader.prototype = Object.create(Reader.prototype
|
|
874
|
-
constructor: {
|
|
875
|
-
value: BufferReader,
|
|
876
|
-
writable: true,
|
|
877
|
-
enumerable: false,
|
|
878
|
-
configurable: true
|
|
879
|
-
}
|
|
880
|
-
});
|
|
1327
|
+
var Reader = require(9);
|
|
1328
|
+
(BufferReader.prototype = Object.create(Reader.prototype)).constructor = BufferReader;
|
|
881
1329
|
|
|
882
|
-
var util = require(
|
|
1330
|
+
var util = require(15);
|
|
883
1331
|
|
|
884
1332
|
/**
|
|
885
1333
|
* Constructs a new buffer reader instance.
|
|
@@ -895,7 +1343,7 @@ function BufferReader(buffer) {
|
|
|
895
1343
|
* Read buffer.
|
|
896
1344
|
* @name BufferReader#buf
|
|
897
1345
|
* @type {Buffer}
|
|
898
|
-
|
|
1346
|
+
*/
|
|
899
1347
|
}
|
|
900
1348
|
|
|
901
1349
|
BufferReader._configure = function () {
|
|
@@ -904,34 +1352,15 @@ BufferReader._configure = function () {
|
|
|
904
1352
|
BufferReader.prototype._slice = util.Buffer.prototype.slice;
|
|
905
1353
|
};
|
|
906
1354
|
|
|
907
|
-
/**
|
|
908
|
-
* Returns raw bytes from the backing buffer without advancing the reader.
|
|
909
|
-
* @name BufferReader#raw
|
|
910
|
-
* @function
|
|
911
|
-
* @param {number} start Start offset
|
|
912
|
-
* @param {number} end End offset
|
|
913
|
-
* @returns {Buffer} Raw bytes
|
|
914
|
-
*/
|
|
915
|
-
BufferReader.prototype.raw = function read_raw_buffer(start, end) {
|
|
916
|
-
return this._slice.call(this.buf, start, end);
|
|
917
|
-
};
|
|
918
1355
|
|
|
919
1356
|
/**
|
|
920
1357
|
* @override
|
|
921
1358
|
*/
|
|
922
1359
|
BufferReader.prototype.string = function read_string_buffer() {
|
|
923
|
-
var len = this.uint32()
|
|
924
|
-
start = this.pos,
|
|
925
|
-
end = this.pos + len;
|
|
926
|
-
|
|
927
|
-
/* istanbul ignore if */
|
|
928
|
-
if (end > this.len)
|
|
929
|
-
throw RangeError("index out of range: " + this.pos + " + " + len + " > " + this.len);
|
|
930
|
-
|
|
931
|
-
this.pos = end;
|
|
1360
|
+
var len = this.uint32(); // modifies pos
|
|
932
1361
|
return this.buf.utf8Slice
|
|
933
|
-
? this.buf.utf8Slice(
|
|
934
|
-
: this.buf.toString("utf-8",
|
|
1362
|
+
? this.buf.utf8Slice(this.pos, this.pos = Math.min(this.pos + len, this.len))
|
|
1363
|
+
: this.buf.toString("utf-8", this.pos, this.pos = Math.min(this.pos + len, this.len));
|
|
935
1364
|
};
|
|
936
1365
|
|
|
937
1366
|
/**
|
|
@@ -943,7 +1372,7 @@ BufferReader.prototype.string = function read_string_buffer() {
|
|
|
943
1372
|
|
|
944
1373
|
BufferReader._configure();
|
|
945
1374
|
|
|
946
|
-
},{"
|
|
1375
|
+
},{"15":15,"9":9}],11:[function(require,module,exports){
|
|
947
1376
|
"use strict";
|
|
948
1377
|
module.exports = Object.create(null);
|
|
949
1378
|
|
|
@@ -963,7 +1392,7 @@ module.exports = Object.create(null);
|
|
|
963
1392
|
* var root = protobuf.roots["myroot"];
|
|
964
1393
|
*/
|
|
965
1394
|
|
|
966
|
-
},{}],
|
|
1395
|
+
},{}],12:[function(require,module,exports){
|
|
967
1396
|
"use strict";
|
|
968
1397
|
|
|
969
1398
|
/**
|
|
@@ -999,23 +1428,16 @@ var rpc = exports;
|
|
|
999
1428
|
* @returns {undefined}
|
|
1000
1429
|
*/
|
|
1001
1430
|
|
|
1002
|
-
rpc.Service = require(
|
|
1431
|
+
rpc.Service = require(13);
|
|
1003
1432
|
|
|
1004
|
-
},{"
|
|
1433
|
+
},{"13":13}],13:[function(require,module,exports){
|
|
1005
1434
|
"use strict";
|
|
1006
1435
|
module.exports = Service;
|
|
1007
1436
|
|
|
1008
|
-
var util = require(
|
|
1437
|
+
var util = require(15);
|
|
1009
1438
|
|
|
1010
1439
|
// Extends EventEmitter
|
|
1011
|
-
Service.prototype = Object.create(util.EventEmitter.prototype
|
|
1012
|
-
constructor: {
|
|
1013
|
-
value: Service,
|
|
1014
|
-
writable: true,
|
|
1015
|
-
enumerable: false,
|
|
1016
|
-
configurable: true
|
|
1017
|
-
}
|
|
1018
|
-
});
|
|
1440
|
+
(Service.prototype = Object.create(util.EventEmitter.prototype)).constructor = Service;
|
|
1019
1441
|
|
|
1020
1442
|
/**
|
|
1021
1443
|
* A service method callback as used by {@link rpc.ServiceMethod|ServiceMethod}.
|
|
@@ -1034,16 +1456,10 @@ Service.prototype = Object.create(util.EventEmitter.prototype, {
|
|
|
1034
1456
|
* @typedef rpc.ServiceMethod
|
|
1035
1457
|
* @template TReq extends Message<TReq>
|
|
1036
1458
|
* @template TRes extends Message<TRes>
|
|
1037
|
-
* @type {
|
|
1038
|
-
*
|
|
1039
|
-
*
|
|
1040
|
-
*
|
|
1041
|
-
* readonly path: string;
|
|
1042
|
-
* readonly requestType: string;
|
|
1043
|
-
* readonly responseType: string;
|
|
1044
|
-
* readonly requestStream: true|undefined;
|
|
1045
|
-
* readonly responseStream: true|undefined;
|
|
1046
|
-
* }}
|
|
1459
|
+
* @type {function}
|
|
1460
|
+
* @param {TReq|Properties<TReq>} request Request message or plain object
|
|
1461
|
+
* @param {rpc.ServiceMethodCallback<TRes>} [callback] Node-style callback called with the error, if any, and the response message
|
|
1462
|
+
* @returns {Promise<Message<TRes>>} Promise if `callback` has been omitted, otherwise `undefined`
|
|
1047
1463
|
*/
|
|
1048
1464
|
|
|
1049
1465
|
/**
|
|
@@ -1158,724 +1574,97 @@ Service.prototype.end = function end(endedByRPC) {
|
|
|
1158
1574
|
return this;
|
|
1159
1575
|
};
|
|
1160
1576
|
|
|
1161
|
-
},{"
|
|
1577
|
+
},{"15":15}],14:[function(require,module,exports){
|
|
1162
1578
|
"use strict";
|
|
1163
|
-
module.exports =
|
|
1579
|
+
module.exports = LongBits;
|
|
1164
1580
|
|
|
1165
|
-
|
|
1166
|
-
* Callback as used by {@link util.asPromise}.
|
|
1167
|
-
* @typedef asPromiseCallback
|
|
1168
|
-
* @type {function}
|
|
1169
|
-
* @param {Error|null} error Error, if any
|
|
1170
|
-
* @param {...*} params Additional arguments
|
|
1171
|
-
* @returns {undefined}
|
|
1172
|
-
*/
|
|
1581
|
+
var util = require(15);
|
|
1173
1582
|
|
|
1174
1583
|
/**
|
|
1175
|
-
*
|
|
1584
|
+
* Constructs new long bits.
|
|
1585
|
+
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
|
|
1176
1586
|
* @memberof util
|
|
1177
|
-
* @
|
|
1178
|
-
* @param {
|
|
1179
|
-
* @param {
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
function asPromise(fn, ctx/*, varargs */) {
|
|
1183
|
-
var params = new Array(arguments.length - 1),
|
|
1184
|
-
offset = 0,
|
|
1185
|
-
index = 2,
|
|
1186
|
-
pending = true;
|
|
1187
|
-
while (index < arguments.length)
|
|
1188
|
-
params[offset++] = arguments[index++];
|
|
1189
|
-
return new Promise(function executor(resolve, reject) {
|
|
1190
|
-
params[offset] = function callback(err/*, varargs */) {
|
|
1191
|
-
if (pending) {
|
|
1192
|
-
pending = false;
|
|
1193
|
-
if (err)
|
|
1194
|
-
reject(err);
|
|
1195
|
-
else {
|
|
1196
|
-
var params = new Array(arguments.length - 1),
|
|
1197
|
-
offset = 0;
|
|
1198
|
-
while (offset < params.length)
|
|
1199
|
-
params[offset++] = arguments[offset];
|
|
1200
|
-
resolve.apply(null, params);
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
};
|
|
1204
|
-
try {
|
|
1205
|
-
fn.apply(ctx || null, params);
|
|
1206
|
-
} catch (err) {
|
|
1207
|
-
if (pending) {
|
|
1208
|
-
pending = false;
|
|
1209
|
-
reject(err);
|
|
1210
|
-
}
|
|
1211
|
-
}
|
|
1212
|
-
});
|
|
1213
|
-
}
|
|
1587
|
+
* @constructor
|
|
1588
|
+
* @param {number} lo Low 32 bits, unsigned
|
|
1589
|
+
* @param {number} hi High 32 bits, unsigned
|
|
1590
|
+
*/
|
|
1591
|
+
function LongBits(lo, hi) {
|
|
1214
1592
|
|
|
1215
|
-
|
|
1216
|
-
|
|
1593
|
+
// note that the casts below are theoretically unnecessary as of today, but older statically
|
|
1594
|
+
// generated converter code might still call the ctor with signed 32bits. kept for compat.
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* Low bits.
|
|
1598
|
+
* @type {number}
|
|
1599
|
+
*/
|
|
1600
|
+
this.lo = lo >>> 0;
|
|
1601
|
+
|
|
1602
|
+
/**
|
|
1603
|
+
* High bits.
|
|
1604
|
+
* @type {number}
|
|
1605
|
+
*/
|
|
1606
|
+
this.hi = hi >>> 0;
|
|
1607
|
+
}
|
|
1217
1608
|
|
|
1218
1609
|
/**
|
|
1219
|
-
*
|
|
1220
|
-
* @memberof util
|
|
1221
|
-
* @
|
|
1610
|
+
* Zero bits.
|
|
1611
|
+
* @memberof util.LongBits
|
|
1612
|
+
* @type {util.LongBits}
|
|
1222
1613
|
*/
|
|
1223
|
-
var
|
|
1614
|
+
var zero = LongBits.zero = new LongBits(0, 0);
|
|
1615
|
+
|
|
1616
|
+
zero.toNumber = function() { return 0; };
|
|
1617
|
+
zero.zzEncode = zero.zzDecode = function() { return this; };
|
|
1618
|
+
zero.length = function() { return 1; };
|
|
1224
1619
|
|
|
1225
1620
|
/**
|
|
1226
|
-
*
|
|
1227
|
-
* @
|
|
1228
|
-
* @
|
|
1621
|
+
* Zero hash.
|
|
1622
|
+
* @memberof util.LongBits
|
|
1623
|
+
* @type {string}
|
|
1229
1624
|
*/
|
|
1230
|
-
|
|
1231
|
-
var p = string.length;
|
|
1232
|
-
if (!p)
|
|
1233
|
-
return 0;
|
|
1234
|
-
while (p > 0 && string.charAt(p - 1) === "=")
|
|
1235
|
-
--p;
|
|
1236
|
-
return Math.floor(p * 3 / 4);
|
|
1237
|
-
};
|
|
1625
|
+
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
1238
1626
|
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
base64.encode = function encode(buffer, start, end) {
|
|
1260
|
-
var parts = null,
|
|
1261
|
-
chunk = [];
|
|
1262
|
-
var i = 0, // output index
|
|
1263
|
-
j = 0, // goto index
|
|
1264
|
-
t; // temporary
|
|
1265
|
-
while (start < end) {
|
|
1266
|
-
var b = buffer[start++];
|
|
1267
|
-
switch (j) {
|
|
1268
|
-
case 0:
|
|
1269
|
-
chunk[i++] = b64[b >> 2];
|
|
1270
|
-
t = (b & 3) << 4;
|
|
1271
|
-
j = 1;
|
|
1272
|
-
break;
|
|
1273
|
-
case 1:
|
|
1274
|
-
chunk[i++] = b64[t | b >> 4];
|
|
1275
|
-
t = (b & 15) << 2;
|
|
1276
|
-
j = 2;
|
|
1277
|
-
break;
|
|
1278
|
-
case 2:
|
|
1279
|
-
chunk[i++] = b64[t | b >> 6];
|
|
1280
|
-
chunk[i++] = b64[b & 63];
|
|
1281
|
-
j = 0;
|
|
1282
|
-
break;
|
|
1283
|
-
}
|
|
1284
|
-
if (i > 8191) {
|
|
1285
|
-
(parts || (parts = [])).push(String.fromCharCode.apply(String, chunk));
|
|
1286
|
-
i = 0;
|
|
1627
|
+
/**
|
|
1628
|
+
* Constructs new long bits from the specified number.
|
|
1629
|
+
* @param {number} value Value
|
|
1630
|
+
* @returns {util.LongBits} Instance
|
|
1631
|
+
*/
|
|
1632
|
+
LongBits.fromNumber = function fromNumber(value) {
|
|
1633
|
+
if (value === 0)
|
|
1634
|
+
return zero;
|
|
1635
|
+
var sign = value < 0;
|
|
1636
|
+
if (sign)
|
|
1637
|
+
value = -value;
|
|
1638
|
+
var lo = value >>> 0,
|
|
1639
|
+
hi = (value - lo) / 4294967296 >>> 0;
|
|
1640
|
+
if (sign) {
|
|
1641
|
+
hi = ~hi >>> 0;
|
|
1642
|
+
lo = ~lo >>> 0;
|
|
1643
|
+
if (++lo > 4294967295) {
|
|
1644
|
+
lo = 0;
|
|
1645
|
+
if (++hi > 4294967295)
|
|
1646
|
+
hi = 0;
|
|
1287
1647
|
}
|
|
1288
1648
|
}
|
|
1289
|
-
|
|
1290
|
-
chunk[i++] = b64[t];
|
|
1291
|
-
chunk[i++] = 61;
|
|
1292
|
-
if (j === 1)
|
|
1293
|
-
chunk[i++] = 61;
|
|
1294
|
-
}
|
|
1295
|
-
if (parts) {
|
|
1296
|
-
if (i)
|
|
1297
|
-
parts.push(String.fromCharCode.apply(String, chunk.slice(0, i)));
|
|
1298
|
-
return parts.join("");
|
|
1299
|
-
}
|
|
1300
|
-
return String.fromCharCode.apply(String, chunk.slice(0, i));
|
|
1649
|
+
return new LongBits(lo, hi);
|
|
1301
1650
|
};
|
|
1302
1651
|
|
|
1303
|
-
var invalidEncoding = "invalid encoding";
|
|
1304
|
-
|
|
1305
1652
|
/**
|
|
1306
|
-
*
|
|
1307
|
-
* @param {string}
|
|
1308
|
-
* @
|
|
1309
|
-
* @param {number} offset Destination offset
|
|
1310
|
-
* @returns {number} Number of bytes written
|
|
1311
|
-
* @throws {Error} If encoding is invalid
|
|
1653
|
+
* Constructs new long bits from a number, long or string.
|
|
1654
|
+
* @param {Long|number|string} value Value
|
|
1655
|
+
* @returns {util.LongBits} Instance
|
|
1312
1656
|
*/
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
throw Error(invalidEncoding);
|
|
1323
|
-
switch (j) {
|
|
1324
|
-
case 0:
|
|
1325
|
-
t = c;
|
|
1326
|
-
j = 1;
|
|
1327
|
-
break;
|
|
1328
|
-
case 1:
|
|
1329
|
-
buffer[offset++] = t << 2 | (c & 48) >> 4;
|
|
1330
|
-
t = c;
|
|
1331
|
-
j = 2;
|
|
1332
|
-
break;
|
|
1333
|
-
case 2:
|
|
1334
|
-
buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2;
|
|
1335
|
-
t = c;
|
|
1336
|
-
j = 3;
|
|
1337
|
-
break;
|
|
1338
|
-
case 3:
|
|
1339
|
-
buffer[offset++] = (t & 3) << 6 | c;
|
|
1340
|
-
j = 0;
|
|
1341
|
-
break;
|
|
1342
|
-
}
|
|
1657
|
+
LongBits.from = function from(value) {
|
|
1658
|
+
if (typeof value === "number")
|
|
1659
|
+
return LongBits.fromNumber(value);
|
|
1660
|
+
if (util.isString(value)) {
|
|
1661
|
+
/* istanbul ignore else */
|
|
1662
|
+
if (util.Long)
|
|
1663
|
+
value = util.Long.fromString(value);
|
|
1664
|
+
else
|
|
1665
|
+
return LongBits.fromNumber(parseInt(value, 10));
|
|
1343
1666
|
}
|
|
1344
|
-
|
|
1345
|
-
throw Error(invalidEncoding);
|
|
1346
|
-
return offset - start;
|
|
1347
|
-
};
|
|
1348
|
-
|
|
1349
|
-
var base64Re = /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,
|
|
1350
|
-
base64UrlRe = /[-_]/,
|
|
1351
|
-
base64UrlNoPaddingRe = /^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?)?$/;
|
|
1352
|
-
|
|
1353
|
-
/**
|
|
1354
|
-
* Tests if the specified string appears to be base64 encoded.
|
|
1355
|
-
* @param {string} string String to test
|
|
1356
|
-
* @returns {boolean} `true` if probably base64 encoded, otherwise false
|
|
1357
|
-
*/
|
|
1358
|
-
base64.test = function test(string) {
|
|
1359
|
-
return base64Re.test(string)
|
|
1360
|
-
|| base64UrlRe.test(string) && base64UrlNoPaddingRe.test(string);
|
|
1361
|
-
};
|
|
1362
|
-
|
|
1363
|
-
},{}],9:[function(require,module,exports){
|
|
1364
|
-
"use strict";
|
|
1365
|
-
module.exports = EventEmitter;
|
|
1366
|
-
|
|
1367
|
-
/**
|
|
1368
|
-
* Constructs a new event emitter instance.
|
|
1369
|
-
* @classdesc A minimal event emitter.
|
|
1370
|
-
* @memberof util
|
|
1371
|
-
* @constructor
|
|
1372
|
-
*/
|
|
1373
|
-
function EventEmitter() {
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* Registered listeners.
|
|
1377
|
-
* @type {Object.<string,*>}
|
|
1378
|
-
* @private
|
|
1379
|
-
*/
|
|
1380
|
-
this._listeners = Object.create(null);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
/**
|
|
1384
|
-
* Event listener as used by {@link util.EventEmitter}.
|
|
1385
|
-
* @typedef EventEmitterListener
|
|
1386
|
-
* @type {function}
|
|
1387
|
-
* @param {...*} args Arguments
|
|
1388
|
-
* @returns {undefined}
|
|
1389
|
-
*/
|
|
1390
|
-
|
|
1391
|
-
/**
|
|
1392
|
-
* Registers an event listener.
|
|
1393
|
-
* @param {string} evt Event name
|
|
1394
|
-
* @param {EventEmitterListener} fn Listener
|
|
1395
|
-
* @param {*} [ctx] Listener context
|
|
1396
|
-
* @returns {this} `this`
|
|
1397
|
-
*/
|
|
1398
|
-
EventEmitter.prototype.on = function on(evt, fn, ctx) {
|
|
1399
|
-
(this._listeners[evt] || (this._listeners[evt] = [])).push({
|
|
1400
|
-
fn : fn,
|
|
1401
|
-
ctx : ctx || this
|
|
1402
|
-
});
|
|
1403
|
-
return this;
|
|
1404
|
-
};
|
|
1405
|
-
|
|
1406
|
-
/**
|
|
1407
|
-
* Removes an event listener or any matching listeners if arguments are omitted.
|
|
1408
|
-
* @param {string} [evt] Event name. Removes all listeners if omitted.
|
|
1409
|
-
* @param {EventEmitterListener} [fn] Listener to remove. Removes all listeners of `evt` if omitted.
|
|
1410
|
-
* @returns {this} `this`
|
|
1411
|
-
*/
|
|
1412
|
-
EventEmitter.prototype.off = function off(evt, fn) {
|
|
1413
|
-
if (evt === undefined)
|
|
1414
|
-
this._listeners = Object.create(null);
|
|
1415
|
-
else {
|
|
1416
|
-
if (fn === undefined)
|
|
1417
|
-
this._listeners[evt] = [];
|
|
1418
|
-
else {
|
|
1419
|
-
var listeners = this._listeners[evt];
|
|
1420
|
-
if (!listeners)
|
|
1421
|
-
return this;
|
|
1422
|
-
for (var i = 0; i < listeners.length;)
|
|
1423
|
-
if (listeners[i].fn === fn)
|
|
1424
|
-
listeners.splice(i, 1);
|
|
1425
|
-
else
|
|
1426
|
-
++i;
|
|
1427
|
-
}
|
|
1428
|
-
}
|
|
1429
|
-
return this;
|
|
1430
|
-
};
|
|
1431
|
-
|
|
1432
|
-
/**
|
|
1433
|
-
* Emits an event by calling its listeners with the specified arguments.
|
|
1434
|
-
* @param {string} evt Event name
|
|
1435
|
-
* @param {...*} args Arguments
|
|
1436
|
-
* @returns {this} `this`
|
|
1437
|
-
*/
|
|
1438
|
-
EventEmitter.prototype.emit = function emit(evt) {
|
|
1439
|
-
var listeners = this._listeners[evt];
|
|
1440
|
-
if (listeners) {
|
|
1441
|
-
var args = [],
|
|
1442
|
-
i = 1;
|
|
1443
|
-
for (; i < arguments.length;)
|
|
1444
|
-
args.push(arguments[i++]);
|
|
1445
|
-
for (i = 0; i < listeners.length;)
|
|
1446
|
-
listeners[i].fn.apply(listeners[i++].ctx, args);
|
|
1447
|
-
}
|
|
1448
|
-
return this;
|
|
1449
|
-
};
|
|
1450
|
-
|
|
1451
|
-
},{}],10:[function(require,module,exports){
|
|
1452
|
-
"use strict";
|
|
1453
|
-
|
|
1454
|
-
module.exports = factory(factory);
|
|
1455
|
-
|
|
1456
|
-
/**
|
|
1457
|
-
* Reads / writes floats / doubles from / to buffers.
|
|
1458
|
-
* @name util.float
|
|
1459
|
-
* @namespace
|
|
1460
|
-
*/
|
|
1461
|
-
|
|
1462
|
-
/**
|
|
1463
|
-
* Writes a 32 bit float to a buffer using little endian byte order.
|
|
1464
|
-
* @name util.float.writeFloatLE
|
|
1465
|
-
* @function
|
|
1466
|
-
* @param {number} val Value to write
|
|
1467
|
-
* @param {Uint8Array} buf Target buffer
|
|
1468
|
-
* @param {number} pos Target buffer offset
|
|
1469
|
-
* @returns {undefined}
|
|
1470
|
-
*/
|
|
1471
|
-
|
|
1472
|
-
/**
|
|
1473
|
-
* Writes a 32 bit float to a buffer using big endian byte order.
|
|
1474
|
-
* @name util.float.writeFloatBE
|
|
1475
|
-
* @function
|
|
1476
|
-
* @param {number} val Value to write
|
|
1477
|
-
* @param {Uint8Array} buf Target buffer
|
|
1478
|
-
* @param {number} pos Target buffer offset
|
|
1479
|
-
* @returns {undefined}
|
|
1480
|
-
*/
|
|
1481
|
-
|
|
1482
|
-
/**
|
|
1483
|
-
* Reads a 32 bit float from a buffer using little endian byte order.
|
|
1484
|
-
* @name util.float.readFloatLE
|
|
1485
|
-
* @function
|
|
1486
|
-
* @param {Uint8Array} buf Source buffer
|
|
1487
|
-
* @param {number} pos Source buffer offset
|
|
1488
|
-
* @returns {number} Value read
|
|
1489
|
-
*/
|
|
1490
|
-
|
|
1491
|
-
/**
|
|
1492
|
-
* Reads a 32 bit float from a buffer using big endian byte order.
|
|
1493
|
-
* @name util.float.readFloatBE
|
|
1494
|
-
* @function
|
|
1495
|
-
* @param {Uint8Array} buf Source buffer
|
|
1496
|
-
* @param {number} pos Source buffer offset
|
|
1497
|
-
* @returns {number} Value read
|
|
1498
|
-
*/
|
|
1499
|
-
|
|
1500
|
-
/**
|
|
1501
|
-
* Writes a 64 bit double to a buffer using little endian byte order.
|
|
1502
|
-
* @name util.float.writeDoubleLE
|
|
1503
|
-
* @function
|
|
1504
|
-
* @param {number} val Value to write
|
|
1505
|
-
* @param {Uint8Array} buf Target buffer
|
|
1506
|
-
* @param {number} pos Target buffer offset
|
|
1507
|
-
* @returns {undefined}
|
|
1508
|
-
*/
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* Writes a 64 bit double to a buffer using big endian byte order.
|
|
1512
|
-
* @name util.float.writeDoubleBE
|
|
1513
|
-
* @function
|
|
1514
|
-
* @param {number} val Value to write
|
|
1515
|
-
* @param {Uint8Array} buf Target buffer
|
|
1516
|
-
* @param {number} pos Target buffer offset
|
|
1517
|
-
* @returns {undefined}
|
|
1518
|
-
*/
|
|
1519
|
-
|
|
1520
|
-
/**
|
|
1521
|
-
* Reads a 64 bit double from a buffer using little endian byte order.
|
|
1522
|
-
* @name util.float.readDoubleLE
|
|
1523
|
-
* @function
|
|
1524
|
-
* @param {Uint8Array} buf Source buffer
|
|
1525
|
-
* @param {number} pos Source buffer offset
|
|
1526
|
-
* @returns {number} Value read
|
|
1527
|
-
*/
|
|
1528
|
-
|
|
1529
|
-
/**
|
|
1530
|
-
* Reads a 64 bit double from a buffer using big endian byte order.
|
|
1531
|
-
* @name util.float.readDoubleBE
|
|
1532
|
-
* @function
|
|
1533
|
-
* @param {Uint8Array} buf Source buffer
|
|
1534
|
-
* @param {number} pos Source buffer offset
|
|
1535
|
-
* @returns {number} Value read
|
|
1536
|
-
*/
|
|
1537
|
-
|
|
1538
|
-
// Factory function for the purpose of node-based testing in modified global environments
|
|
1539
|
-
function factory(exports) {
|
|
1540
|
-
|
|
1541
|
-
// float: typed array
|
|
1542
|
-
if (typeof Float32Array !== "undefined") (function() {
|
|
1543
|
-
|
|
1544
|
-
var f32 = new Float32Array([ -0 ]),
|
|
1545
|
-
f8b = new Uint8Array(f32.buffer),
|
|
1546
|
-
le = f8b[3] === 128;
|
|
1547
|
-
|
|
1548
|
-
function writeFloat_f32_cpy(val, buf, pos) {
|
|
1549
|
-
f32[0] = val;
|
|
1550
|
-
buf[pos ] = f8b[0];
|
|
1551
|
-
buf[pos + 1] = f8b[1];
|
|
1552
|
-
buf[pos + 2] = f8b[2];
|
|
1553
|
-
buf[pos + 3] = f8b[3];
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
function writeFloat_f32_rev(val, buf, pos) {
|
|
1557
|
-
f32[0] = val;
|
|
1558
|
-
buf[pos ] = f8b[3];
|
|
1559
|
-
buf[pos + 1] = f8b[2];
|
|
1560
|
-
buf[pos + 2] = f8b[1];
|
|
1561
|
-
buf[pos + 3] = f8b[0];
|
|
1562
|
-
}
|
|
1563
|
-
|
|
1564
|
-
/* istanbul ignore next */
|
|
1565
|
-
exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev;
|
|
1566
|
-
/* istanbul ignore next */
|
|
1567
|
-
exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy;
|
|
1568
|
-
|
|
1569
|
-
function readFloat_f32_cpy(buf, pos) {
|
|
1570
|
-
f8b[0] = buf[pos ];
|
|
1571
|
-
f8b[1] = buf[pos + 1];
|
|
1572
|
-
f8b[2] = buf[pos + 2];
|
|
1573
|
-
f8b[3] = buf[pos + 3];
|
|
1574
|
-
return f32[0];
|
|
1575
|
-
}
|
|
1576
|
-
|
|
1577
|
-
function readFloat_f32_rev(buf, pos) {
|
|
1578
|
-
f8b[3] = buf[pos ];
|
|
1579
|
-
f8b[2] = buf[pos + 1];
|
|
1580
|
-
f8b[1] = buf[pos + 2];
|
|
1581
|
-
f8b[0] = buf[pos + 3];
|
|
1582
|
-
return f32[0];
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
/* istanbul ignore next */
|
|
1586
|
-
exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev;
|
|
1587
|
-
/* istanbul ignore next */
|
|
1588
|
-
exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy;
|
|
1589
|
-
|
|
1590
|
-
// float: ieee754
|
|
1591
|
-
})(); else (function() {
|
|
1592
|
-
|
|
1593
|
-
function writeFloat_ieee754(writeUint, val, buf, pos) {
|
|
1594
|
-
var sign = val < 0 ? 1 : 0;
|
|
1595
|
-
if (sign)
|
|
1596
|
-
val = -val;
|
|
1597
|
-
if (val === 0)
|
|
1598
|
-
writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos);
|
|
1599
|
-
else if (isNaN(val))
|
|
1600
|
-
writeUint(2143289344, buf, pos);
|
|
1601
|
-
else if (val > 3.4028234663852886e+38) // +-Infinity
|
|
1602
|
-
writeUint((sign << 31 | 2139095040) >>> 0, buf, pos);
|
|
1603
|
-
else if (val < 1.1754943508222875e-38) // denormal
|
|
1604
|
-
writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos);
|
|
1605
|
-
else {
|
|
1606
|
-
var exponent = Math.floor(Math.log(val) / Math.LN2),
|
|
1607
|
-
mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607;
|
|
1608
|
-
writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos);
|
|
1609
|
-
}
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE);
|
|
1613
|
-
exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE);
|
|
1614
|
-
|
|
1615
|
-
function readFloat_ieee754(readUint, buf, pos) {
|
|
1616
|
-
var uint = readUint(buf, pos),
|
|
1617
|
-
sign = (uint >> 31) * 2 + 1,
|
|
1618
|
-
exponent = uint >>> 23 & 255,
|
|
1619
|
-
mantissa = uint & 8388607;
|
|
1620
|
-
return exponent === 255
|
|
1621
|
-
? mantissa
|
|
1622
|
-
? NaN
|
|
1623
|
-
: sign * Infinity
|
|
1624
|
-
: exponent === 0 // denormal
|
|
1625
|
-
? sign * 1.401298464324817e-45 * mantissa
|
|
1626
|
-
: sign * Math.pow(2, exponent - 150) * (mantissa + 8388608);
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE);
|
|
1630
|
-
exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE);
|
|
1631
|
-
|
|
1632
|
-
})();
|
|
1633
|
-
|
|
1634
|
-
// double: typed array
|
|
1635
|
-
if (typeof Float64Array !== "undefined") (function() {
|
|
1636
|
-
|
|
1637
|
-
var f64 = new Float64Array([-0]),
|
|
1638
|
-
f8b = new Uint8Array(f64.buffer),
|
|
1639
|
-
le = f8b[7] === 128;
|
|
1640
|
-
|
|
1641
|
-
function writeDouble_f64_cpy(val, buf, pos) {
|
|
1642
|
-
f64[0] = val;
|
|
1643
|
-
buf[pos ] = f8b[0];
|
|
1644
|
-
buf[pos + 1] = f8b[1];
|
|
1645
|
-
buf[pos + 2] = f8b[2];
|
|
1646
|
-
buf[pos + 3] = f8b[3];
|
|
1647
|
-
buf[pos + 4] = f8b[4];
|
|
1648
|
-
buf[pos + 5] = f8b[5];
|
|
1649
|
-
buf[pos + 6] = f8b[6];
|
|
1650
|
-
buf[pos + 7] = f8b[7];
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
function writeDouble_f64_rev(val, buf, pos) {
|
|
1654
|
-
f64[0] = val;
|
|
1655
|
-
buf[pos ] = f8b[7];
|
|
1656
|
-
buf[pos + 1] = f8b[6];
|
|
1657
|
-
buf[pos + 2] = f8b[5];
|
|
1658
|
-
buf[pos + 3] = f8b[4];
|
|
1659
|
-
buf[pos + 4] = f8b[3];
|
|
1660
|
-
buf[pos + 5] = f8b[2];
|
|
1661
|
-
buf[pos + 6] = f8b[1];
|
|
1662
|
-
buf[pos + 7] = f8b[0];
|
|
1663
|
-
}
|
|
1664
|
-
|
|
1665
|
-
/* istanbul ignore next */
|
|
1666
|
-
exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev;
|
|
1667
|
-
/* istanbul ignore next */
|
|
1668
|
-
exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy;
|
|
1669
|
-
|
|
1670
|
-
function readDouble_f64_cpy(buf, pos) {
|
|
1671
|
-
f8b[0] = buf[pos ];
|
|
1672
|
-
f8b[1] = buf[pos + 1];
|
|
1673
|
-
f8b[2] = buf[pos + 2];
|
|
1674
|
-
f8b[3] = buf[pos + 3];
|
|
1675
|
-
f8b[4] = buf[pos + 4];
|
|
1676
|
-
f8b[5] = buf[pos + 5];
|
|
1677
|
-
f8b[6] = buf[pos + 6];
|
|
1678
|
-
f8b[7] = buf[pos + 7];
|
|
1679
|
-
return f64[0];
|
|
1680
|
-
}
|
|
1681
|
-
|
|
1682
|
-
function readDouble_f64_rev(buf, pos) {
|
|
1683
|
-
f8b[7] = buf[pos ];
|
|
1684
|
-
f8b[6] = buf[pos + 1];
|
|
1685
|
-
f8b[5] = buf[pos + 2];
|
|
1686
|
-
f8b[4] = buf[pos + 3];
|
|
1687
|
-
f8b[3] = buf[pos + 4];
|
|
1688
|
-
f8b[2] = buf[pos + 5];
|
|
1689
|
-
f8b[1] = buf[pos + 6];
|
|
1690
|
-
f8b[0] = buf[pos + 7];
|
|
1691
|
-
return f64[0];
|
|
1692
|
-
}
|
|
1693
|
-
|
|
1694
|
-
/* istanbul ignore next */
|
|
1695
|
-
exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev;
|
|
1696
|
-
/* istanbul ignore next */
|
|
1697
|
-
exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy;
|
|
1698
|
-
|
|
1699
|
-
// double: ieee754
|
|
1700
|
-
})(); else (function() {
|
|
1701
|
-
|
|
1702
|
-
function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) {
|
|
1703
|
-
var sign = val < 0 ? 1 : 0;
|
|
1704
|
-
if (sign)
|
|
1705
|
-
val = -val;
|
|
1706
|
-
if (val === 0) {
|
|
1707
|
-
writeUint(0, buf, pos + off0);
|
|
1708
|
-
writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1);
|
|
1709
|
-
} else if (isNaN(val)) {
|
|
1710
|
-
writeUint(0, buf, pos + off0);
|
|
1711
|
-
writeUint(2146959360, buf, pos + off1);
|
|
1712
|
-
} else if (val > 1.7976931348623157e+308) { // +-Infinity
|
|
1713
|
-
writeUint(0, buf, pos + off0);
|
|
1714
|
-
writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1);
|
|
1715
|
-
} else {
|
|
1716
|
-
var mantissa;
|
|
1717
|
-
if (val < 2.2250738585072014e-308) { // denormal
|
|
1718
|
-
mantissa = val / 5e-324;
|
|
1719
|
-
writeUint(mantissa >>> 0, buf, pos + off0);
|
|
1720
|
-
writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1);
|
|
1721
|
-
} else {
|
|
1722
|
-
var exponent = Math.floor(Math.log(val) / Math.LN2);
|
|
1723
|
-
if (exponent === 1024)
|
|
1724
|
-
exponent = 1023;
|
|
1725
|
-
mantissa = val * Math.pow(2, -exponent);
|
|
1726
|
-
writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0);
|
|
1727
|
-
writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1);
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4);
|
|
1733
|
-
exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0);
|
|
1734
|
-
|
|
1735
|
-
function readDouble_ieee754(readUint, off0, off1, buf, pos) {
|
|
1736
|
-
var lo = readUint(buf, pos + off0),
|
|
1737
|
-
hi = readUint(buf, pos + off1);
|
|
1738
|
-
var sign = (hi >> 31) * 2 + 1,
|
|
1739
|
-
exponent = hi >>> 20 & 2047,
|
|
1740
|
-
mantissa = 4294967296 * (hi & 1048575) + lo;
|
|
1741
|
-
return exponent === 2047
|
|
1742
|
-
? mantissa
|
|
1743
|
-
? NaN
|
|
1744
|
-
: sign * Infinity
|
|
1745
|
-
: exponent === 0 // denormal
|
|
1746
|
-
? sign * 5e-324 * mantissa
|
|
1747
|
-
: sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496);
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4);
|
|
1751
|
-
exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0);
|
|
1752
|
-
|
|
1753
|
-
})();
|
|
1754
|
-
|
|
1755
|
-
return exports;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
// uint helpers
|
|
1759
|
-
|
|
1760
|
-
function writeUintLE(val, buf, pos) {
|
|
1761
|
-
buf[pos ] = val & 255;
|
|
1762
|
-
buf[pos + 1] = val >>> 8 & 255;
|
|
1763
|
-
buf[pos + 2] = val >>> 16 & 255;
|
|
1764
|
-
buf[pos + 3] = val >>> 24;
|
|
1765
|
-
}
|
|
1766
|
-
|
|
1767
|
-
function writeUintBE(val, buf, pos) {
|
|
1768
|
-
buf[pos ] = val >>> 24;
|
|
1769
|
-
buf[pos + 1] = val >>> 16 & 255;
|
|
1770
|
-
buf[pos + 2] = val >>> 8 & 255;
|
|
1771
|
-
buf[pos + 3] = val & 255;
|
|
1772
|
-
}
|
|
1773
|
-
|
|
1774
|
-
function readUintLE(buf, pos) {
|
|
1775
|
-
return (buf[pos ]
|
|
1776
|
-
| buf[pos + 1] << 8
|
|
1777
|
-
| buf[pos + 2] << 16
|
|
1778
|
-
| buf[pos + 3] << 24) >>> 0;
|
|
1779
|
-
}
|
|
1780
|
-
|
|
1781
|
-
function readUintBE(buf, pos) {
|
|
1782
|
-
return (buf[pos ] << 24
|
|
1783
|
-
| buf[pos + 1] << 16
|
|
1784
|
-
| buf[pos + 2] << 8
|
|
1785
|
-
| buf[pos + 3]) >>> 0;
|
|
1786
|
-
}
|
|
1787
|
-
|
|
1788
|
-
},{}],11:[function(require,module,exports){
|
|
1789
|
-
"use strict";
|
|
1790
|
-
module.exports = LongBits;
|
|
1791
|
-
|
|
1792
|
-
var Long;
|
|
1793
|
-
|
|
1794
|
-
/**
|
|
1795
|
-
* Constructs new long bits.
|
|
1796
|
-
* @classdesc Helper class for working with the low and high bits of a 64 bit value.
|
|
1797
|
-
* @memberof util
|
|
1798
|
-
* @constructor
|
|
1799
|
-
* @param {number} lo Low 32 bits, unsigned
|
|
1800
|
-
* @param {number} hi High 32 bits, unsigned
|
|
1801
|
-
*/
|
|
1802
|
-
function LongBits(lo, hi) {
|
|
1803
|
-
|
|
1804
|
-
// note that the casts below are theoretically unnecessary as of today, but older statically
|
|
1805
|
-
// generated converter code might still call the ctor with signed 32bits. kept for compat.
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* Low bits.
|
|
1809
|
-
* @type {number}
|
|
1810
|
-
*/
|
|
1811
|
-
this.lo = lo >>> 0;
|
|
1812
|
-
|
|
1813
|
-
/**
|
|
1814
|
-
* High bits.
|
|
1815
|
-
* @type {number}
|
|
1816
|
-
*/
|
|
1817
|
-
this.hi = hi >>> 0;
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
/**
|
|
1821
|
-
* Zero bits.
|
|
1822
|
-
* @memberof util.LongBits
|
|
1823
|
-
* @type {util.LongBits}
|
|
1824
|
-
*/
|
|
1825
|
-
var zero = LongBits.zero = new LongBits(0, 0);
|
|
1826
|
-
|
|
1827
|
-
zero.toNumber = function() { return 0; };
|
|
1828
|
-
zero.zzEncode = zero.zzDecode = function() { return this; };
|
|
1829
|
-
zero.length = function() { return 1; };
|
|
1830
|
-
|
|
1831
|
-
/**
|
|
1832
|
-
* Zero hash.
|
|
1833
|
-
* @memberof util.LongBits
|
|
1834
|
-
* @type {string}
|
|
1835
|
-
*/
|
|
1836
|
-
var zeroHash = LongBits.zeroHash = "\0\0\0\0\0\0\0\0";
|
|
1837
|
-
|
|
1838
|
-
/**
|
|
1839
|
-
* Constructs new long bits from the specified number.
|
|
1840
|
-
* @param {number} value Value
|
|
1841
|
-
* @returns {util.LongBits} Instance
|
|
1842
|
-
*/
|
|
1843
|
-
LongBits.fromNumber = function fromNumber(value) {
|
|
1844
|
-
if (value === 0)
|
|
1845
|
-
return zero;
|
|
1846
|
-
var sign = value < 0;
|
|
1847
|
-
if (sign)
|
|
1848
|
-
value = -value;
|
|
1849
|
-
var lo = value >>> 0,
|
|
1850
|
-
hi = (value - lo) / 4294967296 >>> 0;
|
|
1851
|
-
if (sign) {
|
|
1852
|
-
hi = ~hi >>> 0;
|
|
1853
|
-
lo = ~lo >>> 0;
|
|
1854
|
-
if (++lo > 4294967295) {
|
|
1855
|
-
lo = 0;
|
|
1856
|
-
if (++hi > 4294967295)
|
|
1857
|
-
hi = 0;
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
return new LongBits(lo, hi);
|
|
1861
|
-
};
|
|
1862
|
-
|
|
1863
|
-
/**
|
|
1864
|
-
* Constructs new long bits from a number, long or string.
|
|
1865
|
-
* @param {Long|number|string} value Value
|
|
1866
|
-
* @returns {util.LongBits} Instance
|
|
1867
|
-
*/
|
|
1868
|
-
LongBits.from = function from(value) {
|
|
1869
|
-
if (typeof value === "number")
|
|
1870
|
-
return LongBits.fromNumber(value);
|
|
1871
|
-
if (typeof value === "string" || value instanceof String) {
|
|
1872
|
-
/* istanbul ignore else */
|
|
1873
|
-
if (Long)
|
|
1874
|
-
value = Long.fromString(value);
|
|
1875
|
-
else
|
|
1876
|
-
return LongBits.fromNumber(parseInt(value, 10));
|
|
1877
|
-
}
|
|
1878
|
-
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
1667
|
+
return value.low || value.high ? new LongBits(value.low >>> 0, value.high >>> 0) : zero;
|
|
1879
1668
|
};
|
|
1880
1669
|
|
|
1881
1670
|
/**
|
|
@@ -1900,8 +1689,8 @@ LongBits.prototype.toNumber = function toNumber(unsigned) {
|
|
|
1900
1689
|
* @returns {Long} Long
|
|
1901
1690
|
*/
|
|
1902
1691
|
LongBits.prototype.toLong = function toLong(unsigned) {
|
|
1903
|
-
return Long
|
|
1904
|
-
? new Long(this.lo | 0, this.hi | 0, Boolean(unsigned))
|
|
1692
|
+
return util.Long
|
|
1693
|
+
? new util.Long(this.lo | 0, this.hi | 0, Boolean(unsigned))
|
|
1905
1694
|
/* istanbul ignore next */
|
|
1906
1695
|
: { low: this.lo | 0, high: this.hi | 0, unsigned: Boolean(unsigned) };
|
|
1907
1696
|
};
|
|
@@ -1987,35 +1776,33 @@ LongBits.prototype.length = function length() {
|
|
|
1987
1776
|
: part2 < 128 ? 9 : 10;
|
|
1988
1777
|
};
|
|
1989
1778
|
|
|
1990
|
-
|
|
1991
|
-
Long = Long_;
|
|
1992
|
-
};
|
|
1993
|
-
|
|
1994
|
-
},{}],12:[function(require,module,exports){
|
|
1779
|
+
},{"15":15}],15:[function(require,module,exports){
|
|
1995
1780
|
"use strict";
|
|
1996
|
-
/* global globalThis */
|
|
1997
1781
|
var util = exports;
|
|
1998
1782
|
|
|
1999
1783
|
// used to return a Promise where callback is omitted
|
|
2000
|
-
util.asPromise = require(
|
|
1784
|
+
util.asPromise = require(1);
|
|
2001
1785
|
|
|
2002
1786
|
// converts to / from base64 encoded strings
|
|
2003
|
-
util.base64 = require(
|
|
1787
|
+
util.base64 = require(2);
|
|
2004
1788
|
|
|
2005
1789
|
// base class of rpc.Service
|
|
2006
|
-
util.EventEmitter = require(
|
|
1790
|
+
util.EventEmitter = require(3);
|
|
2007
1791
|
|
|
2008
1792
|
// float handling accross browsers
|
|
2009
|
-
util.float = require(
|
|
1793
|
+
util.float = require(4);
|
|
1794
|
+
|
|
1795
|
+
// requires modules optionally and hides the call from bundlers
|
|
1796
|
+
util.inquire = require(5);
|
|
2010
1797
|
|
|
2011
1798
|
// converts to / from utf8 encoded strings
|
|
2012
|
-
util.utf8 = require(
|
|
1799
|
+
util.utf8 = require(7);
|
|
2013
1800
|
|
|
2014
1801
|
// provides a node-like buffer pool in the browser
|
|
2015
|
-
util.pool = require(
|
|
1802
|
+
util.pool = require(6);
|
|
2016
1803
|
|
|
2017
1804
|
// utility to work with the low and high bits of a 64 bit value
|
|
2018
|
-
util.LongBits = require(
|
|
1805
|
+
util.LongBits = require(14);
|
|
2019
1806
|
|
|
2020
1807
|
/**
|
|
2021
1808
|
* Tests if the specified key can affect object prototypes.
|
|
@@ -2048,7 +1835,6 @@ util.isNode = Boolean(typeof global !== "undefined"
|
|
|
2048
1835
|
util.global = util.isNode && global
|
|
2049
1836
|
|| typeof window !== "undefined" && window
|
|
2050
1837
|
|| typeof self !== "undefined" && self
|
|
2051
|
-
|| typeof globalThis !== "undefined" && globalThis
|
|
2052
1838
|
|| this; // eslint-disable-line no-invalid-this
|
|
2053
1839
|
|
|
2054
1840
|
/**
|
|
@@ -2131,59 +1917,43 @@ util.isSet = function isSet(obj, prop) {
|
|
|
2131
1917
|
util.Buffer = (function() {
|
|
2132
1918
|
try {
|
|
2133
1919
|
var Buffer = util.global.Buffer;
|
|
2134
|
-
// refuse to use non-node buffers if not explicitly assigned (perf reasons)
|
|
2135
|
-
return Buffer.prototype.utf8Write
|
|
1920
|
+
// refuse to use non-node buffers if not explicitly assigned (perf reasons):
|
|
1921
|
+
return Buffer.prototype.utf8Write ? Buffer : /* istanbul ignore next */ null;
|
|
2136
1922
|
} catch (e) {
|
|
2137
1923
|
/* istanbul ignore next */
|
|
2138
1924
|
return null;
|
|
2139
1925
|
}
|
|
2140
1926
|
})();
|
|
2141
1927
|
|
|
1928
|
+
// Internal alias of or polyfull for Buffer.from.
|
|
1929
|
+
util._Buffer_from = null;
|
|
1930
|
+
|
|
1931
|
+
// Internal alias of or polyfill for Buffer.allocUnsafe.
|
|
1932
|
+
util._Buffer_allocUnsafe = null;
|
|
1933
|
+
|
|
2142
1934
|
/**
|
|
2143
1935
|
* Creates a new buffer of whatever type supported by the environment.
|
|
2144
1936
|
* @param {number|number[]} [sizeOrArray=0] Buffer size or number array
|
|
2145
1937
|
* @returns {Uint8Array|Buffer} Buffer
|
|
2146
1938
|
*/
|
|
2147
1939
|
util.newBuffer = function newBuffer(sizeOrArray) {
|
|
2148
|
-
var Buffer = util.Buffer;
|
|
2149
1940
|
/* istanbul ignore next */
|
|
2150
1941
|
return typeof sizeOrArray === "number"
|
|
2151
|
-
? Buffer
|
|
2152
|
-
?
|
|
2153
|
-
: new
|
|
2154
|
-
: Buffer
|
|
2155
|
-
?
|
|
2156
|
-
:
|
|
1942
|
+
? util.Buffer
|
|
1943
|
+
? util._Buffer_allocUnsafe(sizeOrArray)
|
|
1944
|
+
: new util.Array(sizeOrArray)
|
|
1945
|
+
: util.Buffer
|
|
1946
|
+
? util._Buffer_from(sizeOrArray)
|
|
1947
|
+
: typeof Uint8Array === "undefined"
|
|
1948
|
+
? sizeOrArray
|
|
1949
|
+
: new Uint8Array(sizeOrArray);
|
|
2157
1950
|
};
|
|
2158
1951
|
|
|
2159
1952
|
/**
|
|
2160
|
-
*
|
|
2161
|
-
* @param {number} id Field id
|
|
2162
|
-
* @param {number} wireType Wire type
|
|
2163
|
-
* @param {Uint8Array} data Raw field data
|
|
2164
|
-
* @returns {Uint8Array|Buffer} Raw field bytes
|
|
2165
|
-
* @ignore
|
|
2166
|
-
*/
|
|
2167
|
-
util.rawField = function rawField(id, wireType, data) {
|
|
2168
|
-
var out = [],
|
|
2169
|
-
tag = id << 3 | wireType;
|
|
2170
|
-
tag >>>= 0;
|
|
2171
|
-
while (tag > 127) {
|
|
2172
|
-
out.push(tag & 127 | 128);
|
|
2173
|
-
tag >>>= 7;
|
|
2174
|
-
}
|
|
2175
|
-
out.push(tag);
|
|
2176
|
-
for (var i = 0; i < data.length; ++i)
|
|
2177
|
-
out.push(data[i]);
|
|
2178
|
-
return util.newBuffer(out);
|
|
2179
|
-
};
|
|
2180
|
-
|
|
2181
|
-
/**
|
|
2182
|
-
* Array implementation used in the browser.
|
|
1953
|
+
* Array implementation used in the browser. `Uint8Array` if supported, otherwise `Array`.
|
|
2183
1954
|
* @type {Constructor<Uint8Array>}
|
|
2184
|
-
* @deprecated Use `Uint8Array` instead.
|
|
2185
1955
|
*/
|
|
2186
|
-
util.Array = Uint8Array;
|
|
1956
|
+
util.Array = typeof Uint8Array !== "undefined" ? Uint8Array /* istanbul ignore next */ : Array;
|
|
2187
1957
|
|
|
2188
1958
|
/**
|
|
2189
1959
|
* Any compatible Long instance.
|
|
@@ -2215,7 +1985,7 @@ util.Long = /* istanbul ignore next */ util.global.dcodeIO && /* istanbul ignore
|
|
|
2215
1985
|
* @type {RegExp}
|
|
2216
1986
|
* @const
|
|
2217
1987
|
*/
|
|
2218
|
-
util.key2Re = /^
|
|
1988
|
+
util.key2Re = /^true|false|0|1$/;
|
|
2219
1989
|
|
|
2220
1990
|
/**
|
|
2221
1991
|
* Regular expression used to verify 32 bit (`int32` etc.) map keys.
|
|
@@ -2229,7 +1999,7 @@ util.key32Re = /^-?(?:0|[1-9][0-9]*)$/;
|
|
|
2229
1999
|
* @type {RegExp}
|
|
2230
2000
|
* @const
|
|
2231
2001
|
*/
|
|
2232
|
-
util.key64Re = /^(?:[
|
|
2002
|
+
util.key64Re = /^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/;
|
|
2233
2003
|
|
|
2234
2004
|
/**
|
|
2235
2005
|
* Converts a number or long to an 8 characters long hash string.
|
|
@@ -2255,27 +2025,6 @@ util.longFromHash = function longFromHash(hash, unsigned) {
|
|
|
2255
2025
|
return bits.toNumber(Boolean(unsigned));
|
|
2256
2026
|
};
|
|
2257
2027
|
|
|
2258
|
-
/**
|
|
2259
|
-
* Converts a 64 bit key to a long or number if it is an 8 characters long hash string.
|
|
2260
|
-
* @param {string} key Map key
|
|
2261
|
-
* @param {boolean} [unsigned=false] Whether unsigned or not
|
|
2262
|
-
* @returns {Long|number|string} Original value
|
|
2263
|
-
*/
|
|
2264
|
-
util.longFromKey = function longFromKey(key, unsigned) {
|
|
2265
|
-
return util.key64Re.test(key) && !util.key32Re.test(key)
|
|
2266
|
-
? util.longFromHash(key, unsigned)
|
|
2267
|
-
: key;
|
|
2268
|
-
};
|
|
2269
|
-
|
|
2270
|
-
/**
|
|
2271
|
-
* Converts a boolean key to a boolean value.
|
|
2272
|
-
* @param {string} key Map key
|
|
2273
|
-
* @returns {boolean} Boolean value
|
|
2274
|
-
*/
|
|
2275
|
-
util.boolFromKey = function boolFromKey(key) {
|
|
2276
|
-
return key === "true" || key === "1";
|
|
2277
|
-
};
|
|
2278
|
-
|
|
2279
2028
|
/**
|
|
2280
2029
|
* Merges the properties of the source object into the destination object.
|
|
2281
2030
|
* @memberof util
|
|
@@ -2292,7 +2041,7 @@ function merge(dst) { // used by converters
|
|
|
2292
2041
|
if (!src)
|
|
2293
2042
|
continue;
|
|
2294
2043
|
for (var keys = Object.keys(src), i = 0; i < keys.length; ++i)
|
|
2295
|
-
if (!isUnsafeProperty(keys[i]) && (
|
|
2044
|
+
if (!isUnsafeProperty(keys[i]) && (dst[keys[i]] === undefined || !ifNotSet))
|
|
2296
2045
|
dst[keys[i]] = src[keys[i]];
|
|
2297
2046
|
}
|
|
2298
2047
|
return dst;
|
|
@@ -2319,14 +2068,11 @@ util.recursionLimit = 100; // protoc: CodedInputStream::default_recursion_limit_
|
|
|
2319
2068
|
* @memberof util
|
|
2320
2069
|
* @param {Object.<string,*>} obj Object
|
|
2321
2070
|
* @param {string} key Property key
|
|
2322
|
-
* @param {boolean} [enumerable=true] Whether the property should be enumerable
|
|
2323
2071
|
* @returns {undefined}
|
|
2324
2072
|
*/
|
|
2325
|
-
util.makeProp = function makeProp(obj, key
|
|
2326
|
-
if (Object.prototype.hasOwnProperty.call(obj, key))
|
|
2327
|
-
return;
|
|
2073
|
+
util.makeProp = function makeProp(obj, key) {
|
|
2328
2074
|
Object.defineProperty(obj, key, {
|
|
2329
|
-
enumerable:
|
|
2075
|
+
enumerable: true,
|
|
2330
2076
|
configurable: true,
|
|
2331
2077
|
writable: true
|
|
2332
2078
|
});
|
|
@@ -2504,305 +2250,151 @@ util.toJSONOptions = {
|
|
|
2504
2250
|
json: true
|
|
2505
2251
|
};
|
|
2506
2252
|
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
/**
|
|
2530
|
-
* A general purpose buffer pool.
|
|
2531
|
-
* @memberof util
|
|
2532
|
-
* @function
|
|
2533
|
-
* @param {PoolAllocator} alloc Allocator
|
|
2534
|
-
* @param {PoolSlicer} slice Slicer
|
|
2535
|
-
* @param {number} [size=8192] Slab size
|
|
2536
|
-
* @returns {PoolAllocator} Pooled allocator
|
|
2537
|
-
*/
|
|
2538
|
-
function pool(alloc, slice, size) {
|
|
2539
|
-
var SIZE = size || 8192;
|
|
2540
|
-
var MAX = SIZE >>> 1;
|
|
2541
|
-
var slab = null;
|
|
2542
|
-
var offset = SIZE;
|
|
2543
|
-
return function pool_alloc(size) {
|
|
2544
|
-
if (size < 1 || size > MAX)
|
|
2545
|
-
return alloc(size);
|
|
2546
|
-
if (offset + size > SIZE) {
|
|
2547
|
-
slab = alloc(SIZE);
|
|
2548
|
-
offset = 0;
|
|
2549
|
-
}
|
|
2550
|
-
var buf = slice.call(slab, offset, offset += size);
|
|
2551
|
-
if (offset & 7) // align to 32 bit
|
|
2552
|
-
offset = (offset | 7) + 1;
|
|
2553
|
-
return buf;
|
|
2554
|
-
};
|
|
2555
|
-
}
|
|
2253
|
+
// Sets up buffer utility according to the environment (called in index-minimal)
|
|
2254
|
+
util._configure = function() {
|
|
2255
|
+
var Buffer = util.Buffer;
|
|
2256
|
+
/* istanbul ignore if */
|
|
2257
|
+
if (!Buffer) {
|
|
2258
|
+
util._Buffer_from = util._Buffer_allocUnsafe = null;
|
|
2259
|
+
return;
|
|
2260
|
+
}
|
|
2261
|
+
// because node 4.x buffers are incompatible & immutable
|
|
2262
|
+
// see: https://github.com/dcodeIO/protobuf.js/pull/665
|
|
2263
|
+
util._Buffer_from = Buffer.from !== Uint8Array.from && Buffer.from ||
|
|
2264
|
+
/* istanbul ignore next */
|
|
2265
|
+
function Buffer_from(value, encoding) {
|
|
2266
|
+
return new Buffer(value, encoding);
|
|
2267
|
+
};
|
|
2268
|
+
util._Buffer_allocUnsafe = Buffer.allocUnsafe ||
|
|
2269
|
+
/* istanbul ignore next */
|
|
2270
|
+
function Buffer_allocUnsafe(size) {
|
|
2271
|
+
return new Buffer(size);
|
|
2272
|
+
};
|
|
2273
|
+
};
|
|
2556
2274
|
|
|
2557
|
-
},{}],
|
|
2275
|
+
},{"1":1,"14":14,"2":2,"3":3,"4":4,"5":5,"6":6,"7":7,"long":"long"}],16:[function(require,module,exports){
|
|
2558
2276
|
"use strict";
|
|
2277
|
+
module.exports = Writer;
|
|
2559
2278
|
|
|
2560
|
-
|
|
2561
|
-
* A minimal UTF8 implementation.
|
|
2562
|
-
* @memberof util
|
|
2563
|
-
* @namespace
|
|
2564
|
-
*/
|
|
2565
|
-
var utf8 = exports,
|
|
2566
|
-
replacementChar = "\ufffd",
|
|
2567
|
-
looseDecoder = new TextDecoder("utf-8", { ignoreBOM: true }),
|
|
2568
|
-
strictDecoder;
|
|
2569
|
-
var TEXT_DECODER_MIN_LENGTH = 64;
|
|
2570
|
-
|
|
2571
|
-
try {
|
|
2572
|
-
strictDecoder = new TextDecoder("utf-8", { fatal: true, ignoreBOM: true });
|
|
2573
|
-
} catch (err) {
|
|
2574
|
-
// "fatal" option is not supported on Node.js compiled without ICU
|
|
2575
|
-
strictDecoder = looseDecoder;
|
|
2576
|
-
}
|
|
2577
|
-
|
|
2578
|
-
/**
|
|
2579
|
-
* Calculates the UTF8 byte length of a string.
|
|
2580
|
-
* @param {string} string String
|
|
2581
|
-
* @returns {number} Byte length
|
|
2582
|
-
*/
|
|
2583
|
-
utf8.length = function utf8_length(string) {
|
|
2584
|
-
var len = 0,
|
|
2585
|
-
c = 0;
|
|
2586
|
-
for (var i = 0; i < string.length; ++i) {
|
|
2587
|
-
c = string.charCodeAt(i);
|
|
2588
|
-
if (c < 128)
|
|
2589
|
-
len += 1;
|
|
2590
|
-
else if (c < 2048)
|
|
2591
|
-
len += 2;
|
|
2592
|
-
else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) {
|
|
2593
|
-
++i;
|
|
2594
|
-
len += 4;
|
|
2595
|
-
} else
|
|
2596
|
-
len += 3;
|
|
2597
|
-
}
|
|
2598
|
-
return len;
|
|
2599
|
-
};
|
|
2279
|
+
var util = require(15);
|
|
2600
2280
|
|
|
2601
|
-
|
|
2602
|
-
for (var i = start; i < end;) {
|
|
2603
|
-
var t = buffer[i++];
|
|
2604
|
-
if (t <= 0x7F) {
|
|
2605
|
-
str += String.fromCharCode(t);
|
|
2606
|
-
} else if (t >= 0xC0 && t < 0xE0) {
|
|
2607
|
-
var c2 = (t & 0x1F) << 6 | buffer[i++] & 0x3F;
|
|
2608
|
-
str += c2 >= 0x80 ? String.fromCharCode(c2) : replacementChar;
|
|
2609
|
-
} else if (t >= 0xE0 && t < 0xF0) {
|
|
2610
|
-
var c3 = (t & 0xF) << 12 | (buffer[i++] & 0x3F) << 6 | buffer[i++] & 0x3F;
|
|
2611
|
-
str += c3 >= 0x800 ? String.fromCharCode(c3) : replacementChar;
|
|
2612
|
-
} else if (t >= 0xF0) {
|
|
2613
|
-
var t2 = (t & 7) << 18 | (buffer[i++] & 0x3F) << 12 | (buffer[i++] & 0x3F) << 6 | buffer[i++] & 0x3F;
|
|
2614
|
-
if (t2 < 0x10000 || t2 > 0x10FFFF)
|
|
2615
|
-
str += replacementChar;
|
|
2616
|
-
else {
|
|
2617
|
-
t2 -= 0x10000;
|
|
2618
|
-
str += String.fromCharCode(0xD800 + (t2 >> 10));
|
|
2619
|
-
str += String.fromCharCode(0xDC00 + (t2 & 0x3FF));
|
|
2620
|
-
}
|
|
2621
|
-
}
|
|
2622
|
-
}
|
|
2623
|
-
return str;
|
|
2624
|
-
}
|
|
2281
|
+
var BufferWriter; // cyclic
|
|
2625
2282
|
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
: buffer.subarray(start, end);
|
|
2630
|
-
return decoder.decode(source);
|
|
2631
|
-
}
|
|
2283
|
+
var LongBits = util.LongBits,
|
|
2284
|
+
base64 = util.base64,
|
|
2285
|
+
utf8 = util.utf8;
|
|
2632
2286
|
|
|
2633
2287
|
/**
|
|
2634
|
-
*
|
|
2635
|
-
* @
|
|
2636
|
-
* @
|
|
2637
|
-
* @param {number}
|
|
2638
|
-
* @
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
if (end - start >= TEXT_DECODER_MIN_LENGTH)
|
|
2644
|
-
return utf8_read_decoder(looseDecoder, buffer, start, end);
|
|
2645
|
-
|
|
2646
|
-
var str = "",
|
|
2647
|
-
i = start,
|
|
2648
|
-
c1, c2, c3, c4, c5, c6, c7, c8;
|
|
2649
|
-
|
|
2650
|
-
for (; i + 7 < end; i += 8) {
|
|
2651
|
-
c1 = buffer[i];
|
|
2652
|
-
c2 = buffer[i + 1];
|
|
2653
|
-
c3 = buffer[i + 2];
|
|
2654
|
-
c4 = buffer[i + 3];
|
|
2655
|
-
c5 = buffer[i + 4];
|
|
2656
|
-
c6 = buffer[i + 5];
|
|
2657
|
-
c7 = buffer[i + 6];
|
|
2658
|
-
c8 = buffer[i + 7];
|
|
2659
|
-
if ((c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8) & 0x80)
|
|
2660
|
-
return utf8_read_js(buffer, i, end, str);
|
|
2661
|
-
str += String.fromCharCode(c1, c2, c3, c4, c5, c6, c7, c8);
|
|
2662
|
-
}
|
|
2288
|
+
* Constructs a new writer operation instance.
|
|
2289
|
+
* @classdesc Scheduled writer operation.
|
|
2290
|
+
* @constructor
|
|
2291
|
+
* @param {function(*, Uint8Array, number)} fn Function to call
|
|
2292
|
+
* @param {number} len Value byte length
|
|
2293
|
+
* @param {*} val Value to write
|
|
2294
|
+
* @ignore
|
|
2295
|
+
*/
|
|
2296
|
+
function Op(fn, len, val) {
|
|
2663
2297
|
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
}
|
|
2298
|
+
/**
|
|
2299
|
+
* Function to call.
|
|
2300
|
+
* @type {function(Uint8Array, number, *)}
|
|
2301
|
+
*/
|
|
2302
|
+
this.fn = fn;
|
|
2670
2303
|
|
|
2671
|
-
|
|
2672
|
-
|
|
2304
|
+
/**
|
|
2305
|
+
* Value byte length.
|
|
2306
|
+
* @type {number}
|
|
2307
|
+
*/
|
|
2308
|
+
this.len = len;
|
|
2673
2309
|
|
|
2674
|
-
/**
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
* @returns {string} String read
|
|
2680
|
-
*/
|
|
2681
|
-
utf8.readStrict = function utf8_read_strict(buffer, start, end) {
|
|
2682
|
-
if (end - start < 1)
|
|
2683
|
-
return "";
|
|
2684
|
-
if (end - start >= TEXT_DECODER_MIN_LENGTH)
|
|
2685
|
-
return utf8_read_decoder(strictDecoder, buffer, start, end);
|
|
2686
|
-
|
|
2687
|
-
var str = "",
|
|
2688
|
-
i = start,
|
|
2689
|
-
c1, c2, c3, c4, c5, c6, c7, c8;
|
|
2690
|
-
|
|
2691
|
-
for (; i + 7 < end; i += 8) {
|
|
2692
|
-
c1 = buffer[i];
|
|
2693
|
-
c2 = buffer[i + 1];
|
|
2694
|
-
c3 = buffer[i + 2];
|
|
2695
|
-
c4 = buffer[i + 3];
|
|
2696
|
-
c5 = buffer[i + 4];
|
|
2697
|
-
c6 = buffer[i + 5];
|
|
2698
|
-
c7 = buffer[i + 6];
|
|
2699
|
-
c8 = buffer[i + 7];
|
|
2700
|
-
if ((c1 | c2 | c3 | c4 | c5 | c6 | c7 | c8) & 0x80)
|
|
2701
|
-
return str + utf8_read_decoder(strictDecoder, buffer, i, end);
|
|
2702
|
-
str += String.fromCharCode(c1, c2, c3, c4, c5, c6, c7, c8);
|
|
2703
|
-
}
|
|
2310
|
+
/**
|
|
2311
|
+
* Next operation.
|
|
2312
|
+
* @type {Writer.Op|undefined}
|
|
2313
|
+
*/
|
|
2314
|
+
this.next = undefined;
|
|
2704
2315
|
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2316
|
+
/**
|
|
2317
|
+
* Value to write.
|
|
2318
|
+
* @type {*}
|
|
2319
|
+
*/
|
|
2320
|
+
this.val = val; // type varies
|
|
2321
|
+
}
|
|
2711
2322
|
|
|
2712
|
-
|
|
2713
|
-
}
|
|
2323
|
+
/* istanbul ignore next */
|
|
2324
|
+
function noop() {} // eslint-disable-line no-empty-function
|
|
2714
2325
|
|
|
2715
2326
|
/**
|
|
2716
|
-
*
|
|
2717
|
-
* @
|
|
2718
|
-
* @
|
|
2719
|
-
* @
|
|
2720
|
-
* @
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
c1, // character 1
|
|
2725
|
-
c2; // character 2
|
|
2726
|
-
for (var i = 0; i < string.length; ++i) {
|
|
2727
|
-
c1 = string.charCodeAt(i);
|
|
2728
|
-
if (c1 < 128) {
|
|
2729
|
-
buffer[offset++] = c1;
|
|
2730
|
-
} else if (c1 < 2048) {
|
|
2731
|
-
buffer[offset++] = c1 >> 6 | 192;
|
|
2732
|
-
buffer[offset++] = c1 & 63 | 128;
|
|
2733
|
-
} else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) {
|
|
2734
|
-
c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF);
|
|
2735
|
-
++i;
|
|
2736
|
-
buffer[offset++] = c1 >> 18 | 240;
|
|
2737
|
-
buffer[offset++] = c1 >> 12 & 63 | 128;
|
|
2738
|
-
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
2739
|
-
buffer[offset++] = c1 & 63 | 128;
|
|
2740
|
-
} else {
|
|
2741
|
-
buffer[offset++] = c1 >> 12 | 224;
|
|
2742
|
-
buffer[offset++] = c1 >> 6 & 63 | 128;
|
|
2743
|
-
buffer[offset++] = c1 & 63 | 128;
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
return offset - start;
|
|
2747
|
-
};
|
|
2327
|
+
* Constructs a new writer state instance.
|
|
2328
|
+
* @classdesc Copied writer state.
|
|
2329
|
+
* @memberof Writer
|
|
2330
|
+
* @constructor
|
|
2331
|
+
* @param {Writer} writer Writer to copy state from
|
|
2332
|
+
* @ignore
|
|
2333
|
+
*/
|
|
2334
|
+
function State(writer) {
|
|
2748
2335
|
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2336
|
+
/**
|
|
2337
|
+
* Current head.
|
|
2338
|
+
* @type {Writer.Op}
|
|
2339
|
+
*/
|
|
2340
|
+
this.head = writer.head;
|
|
2752
2341
|
|
|
2753
|
-
|
|
2342
|
+
/**
|
|
2343
|
+
* Current tail.
|
|
2344
|
+
* @type {Writer.Op}
|
|
2345
|
+
*/
|
|
2346
|
+
this.tail = writer.tail;
|
|
2754
2347
|
|
|
2755
|
-
|
|
2348
|
+
/**
|
|
2349
|
+
* Current buffer length.
|
|
2350
|
+
* @type {number}
|
|
2351
|
+
*/
|
|
2352
|
+
this.len = writer.len;
|
|
2756
2353
|
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2354
|
+
/**
|
|
2355
|
+
* Next state.
|
|
2356
|
+
* @type {State|null}
|
|
2357
|
+
*/
|
|
2358
|
+
this.next = writer.states;
|
|
2359
|
+
}
|
|
2760
2360
|
|
|
2761
2361
|
/**
|
|
2762
2362
|
* Constructs a new writer instance.
|
|
2763
|
-
* @classdesc Wire format writer using `Uint8Array`.
|
|
2363
|
+
* @classdesc Wire format writer using `Uint8Array` if available, otherwise `Array`.
|
|
2764
2364
|
* @constructor
|
|
2765
2365
|
*/
|
|
2766
2366
|
function Writer() {
|
|
2767
2367
|
|
|
2768
2368
|
/**
|
|
2769
|
-
*
|
|
2369
|
+
* Current length.
|
|
2770
2370
|
* @type {number}
|
|
2771
2371
|
*/
|
|
2772
|
-
this.
|
|
2372
|
+
this.len = 0;
|
|
2773
2373
|
|
|
2774
2374
|
/**
|
|
2775
|
-
*
|
|
2776
|
-
* @type {
|
|
2375
|
+
* Operations head.
|
|
2376
|
+
* @type {Object}
|
|
2777
2377
|
*/
|
|
2778
|
-
this.
|
|
2378
|
+
this.head = new Op(noop, 0, 0);
|
|
2779
2379
|
|
|
2780
2380
|
/**
|
|
2781
|
-
*
|
|
2782
|
-
* @type {
|
|
2381
|
+
* Operations tail
|
|
2382
|
+
* @type {Object}
|
|
2783
2383
|
*/
|
|
2784
|
-
this.
|
|
2384
|
+
this.tail = this.head;
|
|
2785
2385
|
|
|
2786
2386
|
/**
|
|
2787
|
-
*
|
|
2788
|
-
* @type {
|
|
2387
|
+
* Linked forked states.
|
|
2388
|
+
* @type {Object|null}
|
|
2789
2389
|
*/
|
|
2790
2390
|
this.states = null;
|
|
2791
|
-
}
|
|
2792
2391
|
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
Object.defineProperty(Writer.prototype, "len", {
|
|
2800
|
-
configurable: true,
|
|
2801
|
-
enumerable: true,
|
|
2802
|
-
get: function get_len() {
|
|
2803
|
-
return this.pos;
|
|
2804
|
-
}
|
|
2805
|
-
});
|
|
2392
|
+
// When a value is written, the writer calculates its byte length and puts it into a linked
|
|
2393
|
+
// list of operations to perform when finish() is called. This both allows us to allocate
|
|
2394
|
+
// buffers of the exact required size and reduces the amount of work we have to do compared
|
|
2395
|
+
// to first calculating over objects and then encoding over objects. In our case, the encoding
|
|
2396
|
+
// part is just a linked list walk calling operations with already prepared values.
|
|
2397
|
+
}
|
|
2806
2398
|
|
|
2807
2399
|
var create = function create() {
|
|
2808
2400
|
return util.Buffer
|
|
@@ -2830,48 +2422,30 @@ Writer.create = create();
|
|
|
2830
2422
|
* @returns {Uint8Array} Buffer
|
|
2831
2423
|
*/
|
|
2832
2424
|
Writer.alloc = function alloc(size) {
|
|
2833
|
-
return new
|
|
2425
|
+
return new util.Array(size);
|
|
2834
2426
|
};
|
|
2835
2427
|
|
|
2836
2428
|
// Use Uint8Array buffer pool in the browser, just like node does with buffers
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
* Calculates the number of bytes a value occupies as a varint.
|
|
2841
|
-
* @param {number} value Value to size (unsigned)
|
|
2842
|
-
* @returns {number} Byte length (1..5)
|
|
2843
|
-
* @ignore
|
|
2844
|
-
*/
|
|
2845
|
-
function sizeVarint32(value) {
|
|
2846
|
-
return value < 128 ? 1
|
|
2847
|
-
: value < 16384 ? 2
|
|
2848
|
-
: value < 2097152 ? 3
|
|
2849
|
-
: value < 268435456 ? 4
|
|
2850
|
-
: 5;
|
|
2851
|
-
}
|
|
2429
|
+
/* istanbul ignore else */
|
|
2430
|
+
if (util.Array !== Array)
|
|
2431
|
+
Writer.alloc = util.pool(Writer.alloc, util.Array.prototype.subarray);
|
|
2852
2432
|
|
|
2853
2433
|
/**
|
|
2854
|
-
*
|
|
2855
|
-
* @param {number}
|
|
2856
|
-
* @
|
|
2434
|
+
* Pushes a new operation to the queue.
|
|
2435
|
+
* @param {function(Uint8Array, number, *)} fn Function to call
|
|
2436
|
+
* @param {number} len Value byte length
|
|
2437
|
+
* @param {number} val Value to write
|
|
2438
|
+
* @returns {Writer} `this`
|
|
2857
2439
|
* @private
|
|
2858
2440
|
*/
|
|
2859
|
-
Writer.prototype.
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
if (size < need)
|
|
2864
|
-
size = need;
|
|
2865
|
-
var buf = this.constructor.alloc(size);
|
|
2866
|
-
buf.set(this.buf.subarray(0, this.pos), 0);
|
|
2867
|
-
this.buf = buf;
|
|
2868
|
-
this.view = null; // invalidate
|
|
2869
|
-
}
|
|
2441
|
+
Writer.prototype._push = function push(fn, len, val) {
|
|
2442
|
+
this.tail = this.tail.next = new Op(fn, len, val);
|
|
2443
|
+
this.len += len;
|
|
2444
|
+
return this;
|
|
2870
2445
|
};
|
|
2871
2446
|
|
|
2872
|
-
function
|
|
2873
|
-
|
|
2874
|
-
buf[pos++] = val.charCodeAt(i++);
|
|
2447
|
+
function writeByte(val, buf, pos) {
|
|
2448
|
+
buf[pos] = val & 255;
|
|
2875
2449
|
}
|
|
2876
2450
|
|
|
2877
2451
|
function writeVarint32(val, buf, pos) {
|
|
@@ -2880,19 +2454,42 @@ function writeVarint32(val, buf, pos) {
|
|
|
2880
2454
|
val >>>= 7;
|
|
2881
2455
|
}
|
|
2882
2456
|
buf[pos] = val;
|
|
2883
|
-
return pos + 1;
|
|
2884
2457
|
}
|
|
2885
2458
|
|
|
2459
|
+
/**
|
|
2460
|
+
* Constructs a new varint writer operation instance.
|
|
2461
|
+
* @classdesc Scheduled varint writer operation.
|
|
2462
|
+
* @extends Op
|
|
2463
|
+
* @constructor
|
|
2464
|
+
* @param {number} len Value byte length
|
|
2465
|
+
* @param {number} val Value to write
|
|
2466
|
+
* @ignore
|
|
2467
|
+
*/
|
|
2468
|
+
function VarintOp(len, val) {
|
|
2469
|
+
this.len = len;
|
|
2470
|
+
this.next = undefined;
|
|
2471
|
+
this.val = val;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
VarintOp.prototype = Object.create(Op.prototype);
|
|
2475
|
+
VarintOp.prototype.fn = writeVarint32;
|
|
2476
|
+
|
|
2886
2477
|
/**
|
|
2887
2478
|
* Writes an unsigned 32 bit value as a varint.
|
|
2888
2479
|
* @param {number} value Value to write
|
|
2889
2480
|
* @returns {Writer} `this`
|
|
2890
2481
|
*/
|
|
2891
2482
|
Writer.prototype.uint32 = function write_uint32(value) {
|
|
2892
|
-
|
|
2893
|
-
this.
|
|
2894
|
-
|
|
2895
|
-
|
|
2483
|
+
// here, the call to this.push has been inlined and a varint specific Op subclass is used.
|
|
2484
|
+
// uint32 is by far the most frequently used operation and benefits significantly from this.
|
|
2485
|
+
this.len += (this.tail = this.tail.next = new VarintOp(
|
|
2486
|
+
(value = value >>> 0)
|
|
2487
|
+
< 128 ? 1
|
|
2488
|
+
: value < 16384 ? 2
|
|
2489
|
+
: value < 2097152 ? 3
|
|
2490
|
+
: value < 268435456 ? 4
|
|
2491
|
+
: 5,
|
|
2492
|
+
value)).len;
|
|
2896
2493
|
return this;
|
|
2897
2494
|
};
|
|
2898
2495
|
|
|
@@ -2903,13 +2500,9 @@ Writer.prototype.uint32 = function write_uint32(value) {
|
|
|
2903
2500
|
* @returns {Writer} `this`
|
|
2904
2501
|
*/
|
|
2905
2502
|
Writer.prototype.int32 = function write_int32(value) {
|
|
2906
|
-
|
|
2907
|
-
this.
|
|
2908
|
-
|
|
2909
|
-
this.pos += 10;
|
|
2910
|
-
return this;
|
|
2911
|
-
}
|
|
2912
|
-
return this.uint32(value);
|
|
2503
|
+
return (value |= 0) < 0
|
|
2504
|
+
? this._push(writeVarint64, 10, LongBits.fromNumber(value)) // 10 bytes per spec
|
|
2505
|
+
: this.uint32(value);
|
|
2913
2506
|
};
|
|
2914
2507
|
|
|
2915
2508
|
/**
|
|
@@ -2933,8 +2526,7 @@ function writeVarint64(val, buf, pos) {
|
|
|
2933
2526
|
buf[pos++] = lo & 127 | 128;
|
|
2934
2527
|
lo = lo >>> 7;
|
|
2935
2528
|
}
|
|
2936
|
-
buf[pos] = lo;
|
|
2937
|
-
return pos + 1;
|
|
2529
|
+
buf[pos++] = lo;
|
|
2938
2530
|
}
|
|
2939
2531
|
|
|
2940
2532
|
/**
|
|
@@ -2945,10 +2537,7 @@ function writeVarint64(val, buf, pos) {
|
|
|
2945
2537
|
*/
|
|
2946
2538
|
Writer.prototype.uint64 = function write_uint64(value) {
|
|
2947
2539
|
var bits = LongBits.from(value);
|
|
2948
|
-
this.
|
|
2949
|
-
var pos = this.pos;
|
|
2950
|
-
this.pos = writeVarint64(bits, this.buf, pos);
|
|
2951
|
-
return this;
|
|
2540
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
2952
2541
|
};
|
|
2953
2542
|
|
|
2954
2543
|
/**
|
|
@@ -2968,10 +2557,7 @@ Writer.prototype.int64 = Writer.prototype.uint64;
|
|
|
2968
2557
|
*/
|
|
2969
2558
|
Writer.prototype.sint64 = function write_sint64(value) {
|
|
2970
2559
|
var bits = LongBits.from(value).zzEncode();
|
|
2971
|
-
this.
|
|
2972
|
-
var pos = this.pos;
|
|
2973
|
-
this.pos = writeVarint64(bits, this.buf, pos);
|
|
2974
|
-
return this;
|
|
2560
|
+
return this._push(writeVarint64, bits.length(), bits);
|
|
2975
2561
|
};
|
|
2976
2562
|
|
|
2977
2563
|
/**
|
|
@@ -2980,9 +2566,7 @@ Writer.prototype.sint64 = function write_sint64(value) {
|
|
|
2980
2566
|
* @returns {Writer} `this`
|
|
2981
2567
|
*/
|
|
2982
2568
|
Writer.prototype.bool = function write_bool(value) {
|
|
2983
|
-
this.
|
|
2984
|
-
this.buf[this.pos++] = value ? 1 : 0;
|
|
2985
|
-
return this;
|
|
2569
|
+
return this._push(writeByte, 1, value ? 1 : 0);
|
|
2986
2570
|
};
|
|
2987
2571
|
|
|
2988
2572
|
function writeFixed32(val, buf, pos) {
|
|
@@ -2998,10 +2582,7 @@ function writeFixed32(val, buf, pos) {
|
|
|
2998
2582
|
* @returns {Writer} `this`
|
|
2999
2583
|
*/
|
|
3000
2584
|
Writer.prototype.fixed32 = function write_fixed32(value) {
|
|
3001
|
-
this.
|
|
3002
|
-
writeFixed32(value >>> 0, this.buf, this.pos);
|
|
3003
|
-
this.pos += 4;
|
|
3004
|
-
return this;
|
|
2585
|
+
return this._push(writeFixed32, 4, value >>> 0);
|
|
3005
2586
|
};
|
|
3006
2587
|
|
|
3007
2588
|
/**
|
|
@@ -3020,11 +2601,7 @@ Writer.prototype.sfixed32 = Writer.prototype.fixed32;
|
|
|
3020
2601
|
*/
|
|
3021
2602
|
Writer.prototype.fixed64 = function write_fixed64(value) {
|
|
3022
2603
|
var bits = LongBits.from(value);
|
|
3023
|
-
this.
|
|
3024
|
-
writeFixed32(bits.lo, this.buf, this.pos);
|
|
3025
|
-
writeFixed32(bits.hi, this.buf, this.pos + 4);
|
|
3026
|
-
this.pos += 8;
|
|
3027
|
-
return this;
|
|
2604
|
+
return this._push(writeFixed32, 4, bits.lo)._push(writeFixed32, 4, bits.hi);
|
|
3028
2605
|
};
|
|
3029
2606
|
|
|
3030
2607
|
/**
|
|
@@ -3043,10 +2620,7 @@ Writer.prototype.sfixed64 = Writer.prototype.fixed64;
|
|
|
3043
2620
|
* @returns {Writer} `this`
|
|
3044
2621
|
*/
|
|
3045
2622
|
Writer.prototype.float = function write_float(value) {
|
|
3046
|
-
this.
|
|
3047
|
-
util.float.writeFloatLE(value, this.buf, this.pos);
|
|
3048
|
-
this.pos += 4;
|
|
3049
|
-
return this;
|
|
2623
|
+
return this._push(util.float.writeFloatLE, 4, value);
|
|
3050
2624
|
};
|
|
3051
2625
|
|
|
3052
2626
|
/**
|
|
@@ -3056,12 +2630,19 @@ Writer.prototype.float = function write_float(value) {
|
|
|
3056
2630
|
* @returns {Writer} `this`
|
|
3057
2631
|
*/
|
|
3058
2632
|
Writer.prototype.double = function write_double(value) {
|
|
3059
|
-
this.
|
|
3060
|
-
util.float.writeDoubleLE(value, this.buf, this.pos);
|
|
3061
|
-
this.pos += 8;
|
|
3062
|
-
return this;
|
|
2633
|
+
return this._push(util.float.writeDoubleLE, 8, value);
|
|
3063
2634
|
};
|
|
3064
2635
|
|
|
2636
|
+
var writeBytes = util.Array.prototype.set
|
|
2637
|
+
? function writeBytes_set(val, buf, pos) {
|
|
2638
|
+
buf.set(val, pos); // also works for plain array values
|
|
2639
|
+
}
|
|
2640
|
+
/* istanbul ignore next */
|
|
2641
|
+
: function writeBytes_for(val, buf, pos) {
|
|
2642
|
+
for (var i = 0; i < val.length; ++i)
|
|
2643
|
+
buf[pos + i] = val[i];
|
|
2644
|
+
};
|
|
2645
|
+
|
|
3065
2646
|
/**
|
|
3066
2647
|
* Writes a sequence of bytes.
|
|
3067
2648
|
* @param {Uint8Array|string} value Buffer or base64 encoded string to write
|
|
@@ -3069,52 +2650,14 @@ Writer.prototype.double = function write_double(value) {
|
|
|
3069
2650
|
*/
|
|
3070
2651
|
Writer.prototype.bytes = function write_bytes(value) {
|
|
3071
2652
|
var len = value.length >>> 0;
|
|
3072
|
-
if (!len)
|
|
3073
|
-
this.
|
|
3074
|
-
this.buf[this.pos++] = 0;
|
|
3075
|
-
return this;
|
|
3076
|
-
}
|
|
2653
|
+
if (!len)
|
|
2654
|
+
return this._push(writeByte, 1, 0);
|
|
3077
2655
|
if (util.isString(value)) {
|
|
3078
2656
|
var buf = Writer.alloc(len = base64.length(value));
|
|
3079
2657
|
base64.decode(value, buf, 0);
|
|
3080
2658
|
value = buf;
|
|
3081
2659
|
}
|
|
3082
|
-
this.uint32(len);
|
|
3083
|
-
this._reserve(len);
|
|
3084
|
-
this.buf.set(value, this.pos);
|
|
3085
|
-
this.pos += len;
|
|
3086
|
-
return this;
|
|
3087
|
-
};
|
|
3088
|
-
|
|
3089
|
-
/**
|
|
3090
|
-
* Writes raw bytes without a tag or length prefix.
|
|
3091
|
-
* @param {Uint8Array} value Raw bytes
|
|
3092
|
-
* @returns {Writer} `this`
|
|
3093
|
-
*/
|
|
3094
|
-
Writer.prototype.raw = function write_raw(value) {
|
|
3095
|
-
var len = value.length >>> 0;
|
|
3096
|
-
if (!len)
|
|
3097
|
-
return this;
|
|
3098
|
-
this._reserve(len);
|
|
3099
|
-
this.buf.set(value, this.pos);
|
|
3100
|
-
this.pos += len;
|
|
3101
|
-
return this;
|
|
3102
|
-
};
|
|
3103
|
-
|
|
3104
|
-
/**
|
|
3105
|
-
* Backfills the length varint.
|
|
3106
|
-
* @param {number} pos Position of reserved length byte
|
|
3107
|
-
* @param {number} len Length of content after length varint
|
|
3108
|
-
* @returns {Writer} `this`
|
|
3109
|
-
* @private
|
|
3110
|
-
*/
|
|
3111
|
-
Writer.prototype._delim = function _delim(pos, len) {
|
|
3112
|
-
var n = sizeVarint32(len);
|
|
3113
|
-
if (n > 1)
|
|
3114
|
-
this.buf.copyWithin(pos + n, pos + 1, pos + 1 + len);
|
|
3115
|
-
writeVarint32(len, this.buf, pos);
|
|
3116
|
-
this.pos = pos + n + len;
|
|
3117
|
-
return this;
|
|
2660
|
+
return this.uint32(len)._push(writeBytes, len, value);
|
|
3118
2661
|
};
|
|
3119
2662
|
|
|
3120
2663
|
/**
|
|
@@ -3123,245 +2666,21 @@ Writer.prototype._delim = function _delim(pos, len) {
|
|
|
3123
2666
|
* @returns {Writer} `this`
|
|
3124
2667
|
*/
|
|
3125
2668
|
Writer.prototype.string = function write_string(value) {
|
|
3126
|
-
var n = value.length;
|
|
3127
|
-
if (!n) {
|
|
3128
|
-
this._reserve(1);
|
|
3129
|
-
this.buf[this.pos++] = 0;
|
|
3130
|
-
return this;
|
|
3131
|
-
}
|
|
3132
|
-
if (n < 0x80) {
|
|
3133
|
-
this._reserve(n * 3 + 5); // worst case
|
|
3134
|
-
var lenPos = this.pos;
|
|
3135
|
-
return this._delim(lenPos, utf8.write(value, this.buf, lenPos + 1));
|
|
3136
|
-
}
|
|
3137
2669
|
var len = utf8.length(value);
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
writeStringAscii(value, this.buf, this.pos);
|
|
3142
|
-
else
|
|
3143
|
-
utf8.write(value, this.buf, this.pos);
|
|
3144
|
-
this.pos += len;
|
|
3145
|
-
return this;
|
|
3146
|
-
};
|
|
3147
|
-
|
|
3148
|
-
/**
|
|
3149
|
-
* Writes an array of unsigned 32 bit values as a packed repeated field.
|
|
3150
|
-
* @param {number[]} value Values to write
|
|
3151
|
-
* @returns {Writer} `this`
|
|
3152
|
-
*/
|
|
3153
|
-
Writer.prototype.uint32s = function write_uint32s(value) {
|
|
3154
|
-
var n = value.length;
|
|
3155
|
-
this._reserve(n * 5 + 5); // worst case: 5 bytes per value + length varint
|
|
3156
|
-
var buf = this.buf, lenPos = this.pos, p = lenPos + 1;
|
|
3157
|
-
for (var i = 0; i < n; ++i)
|
|
3158
|
-
p = writeVarint32(value[i] >>> 0, buf, p);
|
|
3159
|
-
return this._delim(lenPos, p - lenPos - 1);
|
|
3160
|
-
};
|
|
3161
|
-
|
|
3162
|
-
/**
|
|
3163
|
-
* Writes an array of signed 32 bit values as a packed repeated field.
|
|
3164
|
-
* @param {number[]} value Values to write
|
|
3165
|
-
* @returns {Writer} `this`
|
|
3166
|
-
*/
|
|
3167
|
-
Writer.prototype.int32s = function write_int32s(value) {
|
|
3168
|
-
var n = value.length;
|
|
3169
|
-
this._reserve(n * 10 + 5); // worst case: 10 bytes per negative value + length varint
|
|
3170
|
-
var buf = this.buf, lenPos = this.pos, pos = lenPos + 1, val;
|
|
3171
|
-
for (var i = 0; i < n; ++i) {
|
|
3172
|
-
if ((val = value[i] | 0) < 0) { // negatives are 10 bytes per spec
|
|
3173
|
-
pos = writeVarint64(LongBits.fromNumber(val), buf, pos);
|
|
3174
|
-
} else {
|
|
3175
|
-
pos = writeVarint32(val, buf, pos);
|
|
3176
|
-
}
|
|
3177
|
-
}
|
|
3178
|
-
return this._delim(lenPos, pos - lenPos - 1);
|
|
3179
|
-
};
|
|
3180
|
-
|
|
3181
|
-
/**
|
|
3182
|
-
* Writes an array of 32 bit values as packed, zig-zag encoded varints.
|
|
3183
|
-
* @param {number[]} value Values to write
|
|
3184
|
-
* @returns {Writer} `this`
|
|
3185
|
-
*/
|
|
3186
|
-
Writer.prototype.sint32s = function write_sint32s(value) {
|
|
3187
|
-
var n = value.length;
|
|
3188
|
-
this._reserve(n * 5 + 5);
|
|
3189
|
-
var buf = this.buf, lenPos = this.pos, pos = lenPos + 1;
|
|
3190
|
-
for (var i = 0; i < n; ++i)
|
|
3191
|
-
pos = writeVarint32((value[i] << 1 ^ value[i] >> 31) >>> 0, buf, pos);
|
|
3192
|
-
return this._delim(lenPos, pos - lenPos - 1);
|
|
3193
|
-
};
|
|
3194
|
-
|
|
3195
|
-
/**
|
|
3196
|
-
* Writes an array of unsigned 64 bit values as a packed repeated field.
|
|
3197
|
-
* @param {Array.<Long|number|string>} value Values to write
|
|
3198
|
-
* @returns {Writer} `this`
|
|
3199
|
-
*/
|
|
3200
|
-
Writer.prototype.uint64s = function write_uint64s(value) {
|
|
3201
|
-
var n = value.length;
|
|
3202
|
-
this._reserve(n * 10 + 5);
|
|
3203
|
-
var buf = this.buf, lenPos = this.pos, pos = lenPos + 1;
|
|
3204
|
-
for (var i = 0; i < n; ++i) {
|
|
3205
|
-
pos = writeVarint64(LongBits.from(value[i]), buf, pos);
|
|
3206
|
-
}
|
|
3207
|
-
return this._delim(lenPos, pos - lenPos - 1);
|
|
3208
|
-
};
|
|
3209
|
-
|
|
3210
|
-
/**
|
|
3211
|
-
* Writes an array of signed 64 bit values as a packed repeated field.
|
|
3212
|
-
* @function
|
|
3213
|
-
* @param {Array.<Long|number|string>} value Values to write
|
|
3214
|
-
* @returns {Writer} `this`
|
|
3215
|
-
*/
|
|
3216
|
-
Writer.prototype.int64s = Writer.prototype.uint64s;
|
|
3217
|
-
|
|
3218
|
-
/**
|
|
3219
|
-
* Writes an array of 64 bit values as packed, zig-zag encoded varints.
|
|
3220
|
-
* @param {Array.<Long|number|string>} value Values to write
|
|
3221
|
-
* @returns {Writer} `this`
|
|
3222
|
-
*/
|
|
3223
|
-
Writer.prototype.sint64s = function write_sint64s(value) {
|
|
3224
|
-
var n = value.length;
|
|
3225
|
-
this._reserve(n * 10 + 5);
|
|
3226
|
-
var buf = this.buf, lenPos = this.pos, pos = lenPos + 1;
|
|
3227
|
-
for (var i = 0; i < n; ++i) {
|
|
3228
|
-
pos = writeVarint64(LongBits.from(value[i]).zzEncode(), buf, pos);
|
|
3229
|
-
}
|
|
3230
|
-
return this._delim(lenPos, pos - lenPos - 1);
|
|
3231
|
-
};
|
|
3232
|
-
|
|
3233
|
-
/**
|
|
3234
|
-
* Writes an array of boolish values as a packed repeated field.
|
|
3235
|
-
* @param {boolean[]} value Values to write
|
|
3236
|
-
* @returns {Writer} `this`
|
|
3237
|
-
*/
|
|
3238
|
-
Writer.prototype.bools = function write_bools(value) {
|
|
3239
|
-
var n = value.length;
|
|
3240
|
-
this.uint32(n); // one byte per value
|
|
3241
|
-
this._reserve(n);
|
|
3242
|
-
var buf = this.buf, p = this.pos;
|
|
3243
|
-
for (var i = 0; i < n; ++i)
|
|
3244
|
-
buf[p++] = value[i] ? 1 : 0;
|
|
3245
|
-
this.pos += n;
|
|
3246
|
-
return this;
|
|
3247
|
-
};
|
|
3248
|
-
|
|
3249
|
-
// The view allocation only pays off when amortized over enough writes
|
|
3250
|
-
var VIEW_THRESHOLD_FLOAT = 16,
|
|
3251
|
-
VIEW_THRESHOLD_INT = 128;
|
|
3252
|
-
|
|
3253
|
-
function getLazyView(writer, count, threshold) {
|
|
3254
|
-
var view = writer.view;
|
|
3255
|
-
if (view || count < threshold)
|
|
3256
|
-
return view;
|
|
3257
|
-
var buf = writer.buf;
|
|
3258
|
-
return writer.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
3259
|
-
}
|
|
3260
|
-
|
|
3261
|
-
/**
|
|
3262
|
-
* Writes an array of unsigned 32 bit values as packed, fixed 32 bits.
|
|
3263
|
-
* @param {number[]} value Values to write
|
|
3264
|
-
* @returns {Writer} `this`
|
|
3265
|
-
*/
|
|
3266
|
-
Writer.prototype.fixed32s = function write_fixed32s(value) {
|
|
3267
|
-
var n = value.length, bytes = n * 4;
|
|
3268
|
-
this.uint32(bytes); // length is known exactly
|
|
3269
|
-
this._reserve(bytes);
|
|
3270
|
-
var p = this.pos, i, dv = getLazyView(this, n, VIEW_THRESHOLD_INT);
|
|
3271
|
-
if (dv)
|
|
3272
|
-
for (i = 0; i < n; ++i) { dv.setUint32(p, value[i] >>> 0, true); p += 4; }
|
|
3273
|
-
else {
|
|
3274
|
-
var buf = this.buf;
|
|
3275
|
-
for (i = 0; i < n; ++i) { writeFixed32(value[i] >>> 0, buf, p); p += 4; }
|
|
3276
|
-
}
|
|
3277
|
-
this.pos += bytes;
|
|
3278
|
-
return this;
|
|
3279
|
-
};
|
|
3280
|
-
|
|
3281
|
-
/**
|
|
3282
|
-
* Writes an array of signed 32 bit values as packed, fixed 32 bits.
|
|
3283
|
-
* @function
|
|
3284
|
-
* @param {number[]} value Values to write
|
|
3285
|
-
* @returns {Writer} `this`
|
|
3286
|
-
*/
|
|
3287
|
-
Writer.prototype.sfixed32s = Writer.prototype.fixed32s;
|
|
3288
|
-
|
|
3289
|
-
/**
|
|
3290
|
-
* Writes an array of unsigned 64 bit values as packed, fixed 64 bits.
|
|
3291
|
-
* @param {Array.<Long|number|string>} value Values to write
|
|
3292
|
-
* @returns {Writer} `this`
|
|
3293
|
-
*/
|
|
3294
|
-
Writer.prototype.fixed64s = function write_fixed64s(value) {
|
|
3295
|
-
var n = value.length, bytes = n * 8;
|
|
3296
|
-
this.uint32(bytes);
|
|
3297
|
-
this._reserve(bytes);
|
|
3298
|
-
var p = this.pos, i, bits, dv = getLazyView(this, n, VIEW_THRESHOLD_INT);
|
|
3299
|
-
if (dv)
|
|
3300
|
-
for (i = 0; i < n; ++i) { bits = LongBits.from(value[i]); dv.setUint32(p, bits.lo, true); dv.setUint32(p + 4, bits.hi, true); p += 8; }
|
|
3301
|
-
else {
|
|
3302
|
-
var buf = this.buf;
|
|
3303
|
-
for (i = 0; i < n; ++i) { bits = LongBits.from(value[i]); writeFixed32(bits.lo, buf, p); writeFixed32(bits.hi, buf, p + 4); p += 8; }
|
|
3304
|
-
}
|
|
3305
|
-
this.pos += bytes;
|
|
3306
|
-
return this;
|
|
3307
|
-
};
|
|
3308
|
-
|
|
3309
|
-
/**
|
|
3310
|
-
* Writes an array of signed 64 bit values as packed, fixed 64 bits.
|
|
3311
|
-
* @function
|
|
3312
|
-
* @param {Array.<Long|number|string>} value Values to write
|
|
3313
|
-
* @returns {Writer} `this`
|
|
3314
|
-
*/
|
|
3315
|
-
Writer.prototype.sfixed64s = Writer.prototype.fixed64s;
|
|
3316
|
-
|
|
3317
|
-
/**
|
|
3318
|
-
* Writes an array of floats (32 bit) as a packed repeated field.
|
|
3319
|
-
* @param {number[]} value Values to write
|
|
3320
|
-
* @returns {Writer} `this`
|
|
3321
|
-
*/
|
|
3322
|
-
Writer.prototype.floats = function write_floats(value) {
|
|
3323
|
-
var n = value.length, bytes = n * 4;
|
|
3324
|
-
this.uint32(bytes);
|
|
3325
|
-
this._reserve(bytes);
|
|
3326
|
-
var p = this.pos, i, dv = getLazyView(this, n, VIEW_THRESHOLD_FLOAT);
|
|
3327
|
-
if (dv)
|
|
3328
|
-
for (i = 0; i < n; ++i) { dv.setFloat32(p, value[i], true); p += 4; }
|
|
3329
|
-
else {
|
|
3330
|
-
var buf = this.buf;
|
|
3331
|
-
for (i = 0; i < n; ++i) { util.float.writeFloatLE(value[i], buf, p); p += 4; }
|
|
3332
|
-
}
|
|
3333
|
-
this.pos += bytes;
|
|
3334
|
-
return this;
|
|
3335
|
-
};
|
|
3336
|
-
|
|
3337
|
-
/**
|
|
3338
|
-
* Writes an array of doubles (64 bit float) as a packed repeated field.
|
|
3339
|
-
* @param {number[]} value Values to write
|
|
3340
|
-
* @returns {Writer} `this`
|
|
3341
|
-
*/
|
|
3342
|
-
Writer.prototype.doubles = function write_doubles(value) {
|
|
3343
|
-
var n = value.length, bytes = n * 8;
|
|
3344
|
-
this.uint32(bytes);
|
|
3345
|
-
this._reserve(bytes);
|
|
3346
|
-
var p = this.pos, i, dv = getLazyView(this, n, VIEW_THRESHOLD_FLOAT);
|
|
3347
|
-
if (dv)
|
|
3348
|
-
for (i = 0; i < n; ++i) { dv.setFloat64(p, value[i], true); p += 8; }
|
|
3349
|
-
else {
|
|
3350
|
-
var buf = this.buf;
|
|
3351
|
-
for (i = 0; i < n; ++i) { util.float.writeDoubleLE(value[i], buf, p); p += 8; }
|
|
3352
|
-
}
|
|
3353
|
-
this.pos += bytes;
|
|
3354
|
-
return this;
|
|
2670
|
+
return len
|
|
2671
|
+
? this.uint32(len)._push(utf8.write, len, value)
|
|
2672
|
+
: this._push(writeByte, 1, 0);
|
|
3355
2673
|
};
|
|
3356
2674
|
|
|
3357
2675
|
/**
|
|
3358
2676
|
* Forks this writer's state by pushing it to a stack.
|
|
2677
|
+
* Calling {@link Writer#reset|reset} or {@link Writer#ldelim|ldelim} resets the writer to the previous state.
|
|
3359
2678
|
* @returns {Writer} `this`
|
|
3360
2679
|
*/
|
|
3361
2680
|
Writer.prototype.fork = function fork() {
|
|
3362
|
-
this.
|
|
3363
|
-
|
|
3364
|
-
this.
|
|
2681
|
+
this.states = new State(this);
|
|
2682
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
2683
|
+
this.len = 0;
|
|
3365
2684
|
return this;
|
|
3366
2685
|
};
|
|
3367
2686
|
|
|
@@ -3370,75 +2689,49 @@ Writer.prototype.fork = function fork() {
|
|
|
3370
2689
|
* @returns {Writer} `this`
|
|
3371
2690
|
*/
|
|
3372
2691
|
Writer.prototype.reset = function reset() {
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
this.
|
|
2692
|
+
if (this.states) {
|
|
2693
|
+
this.head = this.states.head;
|
|
2694
|
+
this.tail = this.states.tail;
|
|
2695
|
+
this.len = this.states.len;
|
|
2696
|
+
this.states = this.states.next;
|
|
3376
2697
|
} else {
|
|
3377
|
-
this.
|
|
2698
|
+
this.head = this.tail = new Op(noop, 0, 0);
|
|
2699
|
+
this.len = 0;
|
|
3378
2700
|
}
|
|
3379
2701
|
return this;
|
|
3380
2702
|
};
|
|
3381
2703
|
|
|
3382
2704
|
/**
|
|
3383
|
-
* Resets to the last state and
|
|
2705
|
+
* Resets to the last state and appends the fork state's current write length as a varint followed by its operations.
|
|
3384
2706
|
* @returns {Writer} `this`
|
|
3385
2707
|
*/
|
|
3386
2708
|
Writer.prototype.ldelim = function ldelim() {
|
|
3387
|
-
var
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
this._reserve(vlen - 1);
|
|
3396
|
-
this.buf.copyWithin(lenPos + vlen, lenPos + 1, lenPos + 1 + len);
|
|
3397
|
-
this.pos += vlen - 1;
|
|
3398
|
-
writeVarint32(len, this.buf, lenPos);
|
|
3399
|
-
} else {
|
|
3400
|
-
this.buf[lenPos] = len;
|
|
3401
|
-
}
|
|
3402
|
-
} else { // not forked: prefix the entire buffer with its length
|
|
3403
|
-
// TODO: Compatibility with older generated code.
|
|
3404
|
-
// Remove this branch in the next major release.
|
|
3405
|
-
len = this.pos;
|
|
3406
|
-
vlen = sizeVarint32(len);
|
|
3407
|
-
this._reserve(vlen);
|
|
3408
|
-
this.buf.copyWithin(vlen, 0, len);
|
|
3409
|
-
writeVarint32(len, this.buf, 0);
|
|
3410
|
-
this.pos += vlen;
|
|
2709
|
+
var head = this.head,
|
|
2710
|
+
tail = this.tail,
|
|
2711
|
+
len = this.len;
|
|
2712
|
+
this.reset().uint32(len);
|
|
2713
|
+
if (len) {
|
|
2714
|
+
this.tail.next = head.next; // skip noop
|
|
2715
|
+
this.tail = tail;
|
|
2716
|
+
this.len += len;
|
|
3411
2717
|
}
|
|
3412
2718
|
return this;
|
|
3413
2719
|
};
|
|
3414
2720
|
|
|
3415
2721
|
/**
|
|
3416
2722
|
* Finishes the write operation.
|
|
3417
|
-
* Returns a buffer sized to the written data by default.
|
|
3418
|
-
* @param {boolean} [shared=false] Whether to return a shared view instead of a unique copy
|
|
3419
2723
|
* @returns {Uint8Array} Finished buffer
|
|
3420
2724
|
*/
|
|
3421
|
-
Writer.prototype.finish = function finish(
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
* The caller must ensure that `buf` has enough space starting at `offset`
|
|
3432
|
-
* to hold {@link Writer#pos} bytes.
|
|
3433
|
-
* @param {T} buf Target buffer
|
|
3434
|
-
* @param {number} [offset=0] Offset to start writing at
|
|
3435
|
-
* @returns {T} The provided buffer
|
|
3436
|
-
* @template T extends Uint8Array
|
|
3437
|
-
*/
|
|
3438
|
-
Writer.prototype.finishInto = function finishInto(buf, offset) {
|
|
3439
|
-
if (offset === undefined)
|
|
3440
|
-
offset = 0;
|
|
3441
|
-
buf.set(this.buf.subarray(0, this.pos), offset);
|
|
2725
|
+
Writer.prototype.finish = function finish() {
|
|
2726
|
+
var head = this.head.next, // skip noop
|
|
2727
|
+
buf = this.constructor.alloc(this.len),
|
|
2728
|
+
pos = 0;
|
|
2729
|
+
while (head) {
|
|
2730
|
+
head.fn(head.val, buf, pos);
|
|
2731
|
+
pos += head.len;
|
|
2732
|
+
head = head.next;
|
|
2733
|
+
}
|
|
2734
|
+
// this.head = this.tail = null;
|
|
3442
2735
|
return buf;
|
|
3443
2736
|
};
|
|
3444
2737
|
|
|
@@ -3448,22 +2741,15 @@ Writer._configure = function(BufferWriter_) {
|
|
|
3448
2741
|
BufferWriter._configure();
|
|
3449
2742
|
};
|
|
3450
2743
|
|
|
3451
|
-
},{"
|
|
2744
|
+
},{"15":15}],17:[function(require,module,exports){
|
|
3452
2745
|
"use strict";
|
|
3453
2746
|
module.exports = BufferWriter;
|
|
3454
2747
|
|
|
3455
2748
|
// extends Writer
|
|
3456
|
-
var Writer = require(
|
|
3457
|
-
BufferWriter.prototype = Object.create(Writer.prototype
|
|
3458
|
-
constructor: {
|
|
3459
|
-
value: BufferWriter,
|
|
3460
|
-
writable: true,
|
|
3461
|
-
enumerable: false,
|
|
3462
|
-
configurable: true
|
|
3463
|
-
}
|
|
3464
|
-
});
|
|
2749
|
+
var Writer = require(16);
|
|
2750
|
+
(BufferWriter.prototype = Object.create(Writer.prototype)).constructor = BufferWriter;
|
|
3465
2751
|
|
|
3466
|
-
var util = require(
|
|
2752
|
+
var util = require(15);
|
|
3467
2753
|
|
|
3468
2754
|
/**
|
|
3469
2755
|
* Constructs a new buffer writer instance.
|
|
@@ -3475,8 +2761,6 @@ function BufferWriter() {
|
|
|
3475
2761
|
Writer.call(this);
|
|
3476
2762
|
}
|
|
3477
2763
|
|
|
3478
|
-
var writeStringBuffer;
|
|
3479
|
-
|
|
3480
2764
|
BufferWriter._configure = function () {
|
|
3481
2765
|
/**
|
|
3482
2766
|
* Allocates a buffer of the specified size.
|
|
@@ -3484,14 +2768,19 @@ BufferWriter._configure = function () {
|
|
|
3484
2768
|
* @param {number} size Buffer size
|
|
3485
2769
|
* @returns {Buffer} Buffer
|
|
3486
2770
|
*/
|
|
3487
|
-
BufferWriter.alloc = util.
|
|
2771
|
+
BufferWriter.alloc = util._Buffer_allocUnsafe;
|
|
3488
2772
|
|
|
3489
|
-
|
|
3490
|
-
? function
|
|
3491
|
-
|
|
2773
|
+
BufferWriter.writeBytesBuffer = util.Buffer && util.Buffer.prototype instanceof Uint8Array && util.Buffer.prototype.set.name === "set"
|
|
2774
|
+
? function writeBytesBuffer_set(val, buf, pos) {
|
|
2775
|
+
buf.set(val, pos); // faster than copy (requires node >= 4 where Buffers extend Uint8Array and set is properly inherited)
|
|
2776
|
+
// also works for plain array values
|
|
3492
2777
|
}
|
|
3493
|
-
|
|
3494
|
-
|
|
2778
|
+
/* istanbul ignore next */
|
|
2779
|
+
: function writeBytesBuffer_copy(val, buf, pos) {
|
|
2780
|
+
if (val.copy) // Buffer values
|
|
2781
|
+
val.copy(buf, pos, 0, val.length);
|
|
2782
|
+
else for (var i = 0; i < val.length;) // plain array values
|
|
2783
|
+
buf[pos++] = val[i++];
|
|
3495
2784
|
};
|
|
3496
2785
|
};
|
|
3497
2786
|
|
|
@@ -3501,42 +2790,31 @@ BufferWriter._configure = function () {
|
|
|
3501
2790
|
*/
|
|
3502
2791
|
BufferWriter.prototype.bytes = function write_bytes_buffer(value) {
|
|
3503
2792
|
if (util.isString(value))
|
|
3504
|
-
value = util.
|
|
2793
|
+
value = util._Buffer_from(value, "base64");
|
|
3505
2794
|
var len = value.length >>> 0;
|
|
3506
2795
|
this.uint32(len);
|
|
3507
|
-
if (len)
|
|
3508
|
-
this.
|
|
3509
|
-
this.buf.set(value, this.pos);
|
|
3510
|
-
this.pos += len;
|
|
3511
|
-
}
|
|
2796
|
+
if (len)
|
|
2797
|
+
this._push(BufferWriter.writeBytesBuffer, len, value);
|
|
3512
2798
|
return this;
|
|
3513
2799
|
};
|
|
3514
2800
|
|
|
2801
|
+
function writeStringBuffer(val, buf, pos) {
|
|
2802
|
+
if (val.length < 40) // plain js is faster for short strings (probably due to redundant assertions)
|
|
2803
|
+
util.utf8.write(val, buf, pos);
|
|
2804
|
+
else if (buf.utf8Write)
|
|
2805
|
+
buf.utf8Write(val, pos);
|
|
2806
|
+
else
|
|
2807
|
+
buf.write(val, pos);
|
|
2808
|
+
}
|
|
2809
|
+
|
|
3515
2810
|
/**
|
|
3516
2811
|
* @override
|
|
3517
2812
|
*/
|
|
3518
2813
|
BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
3519
|
-
var n = value.length;
|
|
3520
|
-
if (!n) {
|
|
3521
|
-
this._reserve(1);
|
|
3522
|
-
this.buf[this.pos++] = 0;
|
|
3523
|
-
return this;
|
|
3524
|
-
}
|
|
3525
|
-
if (n < 0x80) {
|
|
3526
|
-
this._reserve(n * 3 + 5); // worst case
|
|
3527
|
-
var pos = this.pos,
|
|
3528
|
-
buf = this.buf;
|
|
3529
|
-
return this._delim(pos,
|
|
3530
|
-
n < 40
|
|
3531
|
-
? util.utf8.write(value, buf, pos + 1)
|
|
3532
|
-
: writeStringBuffer(value, buf, pos + 1)
|
|
3533
|
-
);
|
|
3534
|
-
}
|
|
3535
2814
|
var len = util.Buffer.byteLength(value);
|
|
3536
2815
|
this.uint32(len);
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
this.pos += len;
|
|
2816
|
+
if (len)
|
|
2817
|
+
this._push(writeStringBuffer, len, value);
|
|
3540
2818
|
return this;
|
|
3541
2819
|
};
|
|
3542
2820
|
|
|
@@ -3550,7 +2828,7 @@ BufferWriter.prototype.string = function write_string_buffer(value) {
|
|
|
3550
2828
|
|
|
3551
2829
|
BufferWriter._configure();
|
|
3552
2830
|
|
|
3553
|
-
},{"
|
|
2831
|
+
},{"15":15,"16":16}]},{},[8])
|
|
3554
2832
|
|
|
3555
2833
|
})();
|
|
3556
2834
|
//# sourceMappingURL=protobuf.js.map
|