@zuplo/cli 7.0.2 → 7.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (594) hide show
  1. package/dist/delete/handler.js +2 -2
  2. package/dist/delete/handler.js.map +1 -1
  3. package/dist/deploy/handler.js +1 -1
  4. package/dist/deploy/handler.js.map +1 -1
  5. package/dist/deploy/poll-deployment.js +1 -1
  6. package/dist/deploy/poll-deployment.js.map +1 -1
  7. package/dist/tsconfig.tsbuildinfo +1 -1
  8. package/node_modules/@pinojs/redact/.github/dependabot.yml +13 -0
  9. package/node_modules/@pinojs/redact/.github/workflows/ci.yml +48 -0
  10. package/node_modules/@pinojs/redact/.github/workflows/publish-release.yml +43 -0
  11. package/node_modules/{event-target-shim → @pinojs/redact}/LICENSE +2 -3
  12. package/node_modules/@pinojs/redact/README.md +350 -0
  13. package/node_modules/@pinojs/redact/benchmarks/basic.js +184 -0
  14. package/node_modules/@pinojs/redact/eslint.config.js +1 -0
  15. package/node_modules/@pinojs/redact/index.d.ts +52 -0
  16. package/node_modules/@pinojs/redact/index.js +529 -0
  17. package/node_modules/@pinojs/redact/index.test-d.ts +22 -0
  18. package/node_modules/@pinojs/redact/package.json +37 -0
  19. package/node_modules/@pinojs/redact/scripts/sync-version.mjs +20 -0
  20. package/node_modules/@pinojs/redact/test/actual-redact-comparison.test.js +211 -0
  21. package/node_modules/@pinojs/redact/test/index.test.js +824 -0
  22. package/node_modules/@pinojs/redact/test/integration.test.js +390 -0
  23. package/node_modules/@pinojs/redact/test/multiple-wildcards.test.js +227 -0
  24. package/node_modules/@pinojs/redact/test/prototype-pollution.test.js +223 -0
  25. package/node_modules/@pinojs/redact/test/selective-clone.test.js +115 -0
  26. package/node_modules/@pinojs/redact/tsconfig.json +19 -0
  27. package/node_modules/@zuplo/core/customer.cli.minified.js +240 -240
  28. package/node_modules/@zuplo/core/index.minified.js +258 -258
  29. package/node_modules/@zuplo/core/package.json +1 -1
  30. package/node_modules/{abort-controller → @zuplo/editor/node_modules/fast-copy}/LICENSE +1 -1
  31. package/node_modules/@zuplo/editor/node_modules/fast-copy/README.md +395 -0
  32. package/node_modules/@zuplo/editor/node_modules/fast-copy/dist/cjs/index.cjs +406 -0
  33. package/node_modules/@zuplo/editor/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -0
  34. package/node_modules/@zuplo/editor/node_modules/fast-copy/dist/umd/index.js +412 -0
  35. package/node_modules/@zuplo/editor/node_modules/fast-copy/dist/umd/index.js.map +1 -0
  36. package/node_modules/@zuplo/editor/node_modules/fast-copy/index.d.ts +55 -0
  37. package/node_modules/@zuplo/editor/node_modules/fast-copy/package.json +103 -0
  38. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/.github/workflows/ci.yml +97 -0
  39. package/node_modules/{fast-redact → @zuplo/editor/node_modules/pino-abstract-transport}/LICENSE +3 -3
  40. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/README.md +172 -0
  41. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/index.d.ts +122 -0
  42. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/index.js +128 -0
  43. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/package.json +40 -0
  44. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/base.test.js +445 -0
  45. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/fixtures/transport-async-iteration.js +22 -0
  46. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/fixtures/transport-on-data.js +22 -0
  47. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/fixtures/transport-transform.js +24 -0
  48. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/fixtures/worker-pipeline.js +15 -0
  49. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/types/index.test-d.ts +31 -0
  50. package/node_modules/@zuplo/editor/node_modules/pino-abstract-transport/test/worker.test.js +357 -0
  51. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/.airtap.yml +7 -0
  52. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/.github/dependabot.yml +13 -0
  53. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/.github/stale.yml +21 -0
  54. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/.github/workflows/ci.yml +137 -0
  55. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/README.md +126 -0
  56. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/benchmarks/ignore.js +35 -0
  57. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/benchmarks/no__proto__.js +40 -0
  58. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/benchmarks/package.json +15 -0
  59. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/benchmarks/remove.js +39 -0
  60. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/benchmarks/throw.js +49 -0
  61. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/benchmarks/valid.js +49 -0
  62. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/index.js +126 -0
  63. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/package.json +41 -0
  64. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/test/index.test.js +505 -0
  65. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/types/index.d.ts +57 -0
  66. package/node_modules/@zuplo/editor/node_modules/secure-json-parse/types/index.test-d.ts +31 -0
  67. package/node_modules/@zuplo/editor/node_modules/strip-json-comments/index.d.ts +36 -0
  68. package/node_modules/@zuplo/editor/node_modules/strip-json-comments/index.js +77 -0
  69. package/node_modules/@zuplo/editor/node_modules/strip-json-comments/license +9 -0
  70. package/node_modules/@zuplo/editor/node_modules/strip-json-comments/package.json +47 -0
  71. package/node_modules/@zuplo/editor/node_modules/strip-json-comments/readme.md +78 -0
  72. package/node_modules/@zuplo/editor/node_modules/thread-stream/.claude/settings.local.json +15 -0
  73. package/node_modules/@zuplo/editor/node_modules/thread-stream/.github/dependabot.yml +13 -0
  74. package/node_modules/{pino → @zuplo/editor/node_modules/thread-stream}/.github/workflows/ci.yml +25 -19
  75. package/node_modules/@zuplo/editor/node_modules/thread-stream/.husky/pre-commit +4 -0
  76. package/node_modules/@zuplo/editor/node_modules/{process-warning → thread-stream}/LICENSE +1 -1
  77. package/node_modules/@zuplo/editor/node_modules/thread-stream/README.md +136 -0
  78. package/node_modules/@zuplo/editor/node_modules/thread-stream/bench.js +85 -0
  79. package/node_modules/@zuplo/editor/node_modules/thread-stream/index.d.ts +92 -0
  80. package/node_modules/@zuplo/editor/node_modules/thread-stream/index.js +565 -0
  81. package/node_modules/@zuplo/editor/node_modules/thread-stream/lib/indexes.js +11 -0
  82. package/node_modules/@zuplo/editor/node_modules/thread-stream/lib/wait.js +61 -0
  83. package/node_modules/@zuplo/editor/node_modules/thread-stream/lib/worker.js +186 -0
  84. package/node_modules/@zuplo/editor/node_modules/thread-stream/package.json +57 -0
  85. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/base.test.js +258 -0
  86. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/bench.test.js +38 -0
  87. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/bundlers.test.js +60 -0
  88. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/close-on-gc.js +37 -0
  89. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/commonjs-fallback.test.js +80 -0
  90. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/context.test.js +21 -0
  91. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/create-and-exit.js +16 -0
  92. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/custom-worker.js +9 -0
  93. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/dir with spaces/test-package.zip +0 -0
  94. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/emit-event.js +22 -0
  95. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/end.test.js +61 -0
  96. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/error.js +14 -0
  97. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/esm.test.mjs +47 -0
  98. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/event.test.js +23 -0
  99. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/exit.js +14 -0
  100. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/get-context.js +22 -0
  101. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/helper.d.ts +1 -0
  102. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/helper.js +35 -0
  103. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/indexes.test.js +11 -0
  104. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/message-without-code.js +19 -0
  105. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/multibyte-chars.test.mjs +74 -0
  106. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/on-message.js +18 -0
  107. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/pkg/index.js +37 -0
  108. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/pkg/pkg.config.json +15 -0
  109. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/pkg/pkg.test.js +46 -0
  110. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/port.js +16 -0
  111. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/post-message.test.js +24 -0
  112. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/string-limit-2.test.js +41 -0
  113. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/string-limit.test.js +42 -0
  114. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/syntax-error.mjs +2 -0
  115. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/thread-management.test.js +121 -0
  116. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/to-file-on-destroy.js +23 -0
  117. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/to-file-on-final.js +24 -0
  118. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/to-file.js +12 -0
  119. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/to-file.mjs +8 -0
  120. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/to-next.js +9 -0
  121. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/transpiled.test.js +30 -0
  122. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/ts/to-file.ts +10 -0
  123. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/ts/transpile.sh +19 -0
  124. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/ts-commonjs-default-export.zip +0 -0
  125. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/uncaughtException.js +21 -0
  126. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/unhandledRejection.js +21 -0
  127. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/watch-mode.test.js +28 -0
  128. package/node_modules/@zuplo/editor/node_modules/thread-stream/test/yarnrc.yml +7 -0
  129. package/node_modules/@zuplo/editor/node_modules/thread-stream/tsconfig.json +8 -0
  130. package/node_modules/@zuplo/graphql/package.json +1 -1
  131. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  132. package/node_modules/@zuplo/otel/package.json +1 -1
  133. package/node_modules/@zuplo/runtime/out/esm/{chunk-XLNOQPTE.js → chunk-RS7HF7BL.js} +63 -63
  134. package/node_modules/@zuplo/runtime/out/esm/chunk-RS7HF7BL.js.map +1 -0
  135. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  136. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  137. package/node_modules/@zuplo/runtime/out/types/index.d.ts +16 -19
  138. package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +1 -2
  139. package/node_modules/@zuplo/runtime/out/types/mcp/messages/index.d.ts +1 -2
  140. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +1 -2
  141. package/node_modules/@zuplo/runtime/out/types/mocks/index.d.ts +1 -2
  142. package/node_modules/@zuplo/runtime/out/types/sdks/aws/index.d.ts +1 -2
  143. package/node_modules/@zuplo/runtime/package.json +1 -1
  144. package/node_modules/fast-copy/LICENSE +1 -1
  145. package/node_modules/fast-copy/README.md +186 -154
  146. package/node_modules/fast-copy/dist/cjs/index.cjs +143 -214
  147. package/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -1
  148. package/node_modules/fast-copy/dist/cjs/index.d.cts +54 -0
  149. package/node_modules/fast-copy/dist/es/index.d.mts +54 -0
  150. package/node_modules/fast-copy/dist/es/index.mjs +331 -0
  151. package/node_modules/fast-copy/dist/es/index.mjs.map +1 -0
  152. package/node_modules/fast-copy/dist/umd/index.d.ts +54 -0
  153. package/node_modules/fast-copy/dist/umd/index.js +143 -214
  154. package/node_modules/fast-copy/dist/umd/index.js.map +1 -1
  155. package/node_modules/fast-copy/index.d.ts +37 -38
  156. package/node_modules/fast-copy/package.json +68 -61
  157. package/node_modules/pino/CONTRIBUTING.md +4 -4
  158. package/node_modules/pino/LICENSE +1 -1
  159. package/node_modules/pino/README.md +18 -2
  160. package/node_modules/pino/SECURITY.md +19 -0
  161. package/node_modules/pino/browser.js +76 -13
  162. package/node_modules/pino/build/sync-version.js +16 -1
  163. package/node_modules/pino/docs/api.md +128 -5
  164. package/node_modules/pino/docs/browser.md +51 -0
  165. package/node_modules/pino/docs/diagnostics.md +16 -0
  166. package/node_modules/pino/docs/ecosystem.md +15 -12
  167. package/node_modules/pino/docs/help.md +28 -2
  168. package/node_modules/pino/docs/transports.md +188 -20
  169. package/node_modules/pino/docs/web.md +40 -0
  170. package/node_modules/pino/eslint.config.js +28 -0
  171. package/node_modules/pino/lib/meta.js +1 -1
  172. package/node_modules/pino/lib/multistream.js +17 -2
  173. package/node_modules/pino/lib/proto.js +34 -10
  174. package/node_modules/pino/lib/redaction.js +9 -13
  175. package/node_modules/pino/lib/time.js +29 -1
  176. package/node_modules/pino/lib/tools.js +42 -9
  177. package/node_modules/pino/lib/transport.js +125 -3
  178. package/node_modules/pino/package.json +25 -25
  179. package/node_modules/pino/pino.d.ts +228 -203
  180. package/node_modules/pino/pino.js +2 -1
  181. package/node_modules/pino/test/basic.test.js +179 -167
  182. package/node_modules/pino/test/broken-pipe.test.js +16 -14
  183. package/node_modules/pino/test/browser-is-level-enabled.test.js +101 -0
  184. package/node_modules/pino/test/browser.test.js +39 -0
  185. package/node_modules/pino/test/complex-objects.test.js +8 -6
  186. package/node_modules/pino/test/crlf.test.js +7 -5
  187. package/node_modules/pino/test/custom-levels.test.js +80 -66
  188. package/node_modules/pino/test/diagnostics.test.js +107 -0
  189. package/node_modules/pino/test/error-key.test.js +37 -0
  190. package/node_modules/pino/test/error.test.js +47 -42
  191. package/node_modules/pino/test/escaping.test.js +7 -5
  192. package/node_modules/pino/test/esm/esm.mjs +5 -3
  193. package/node_modules/pino/test/esm/index.test.js +14 -27
  194. package/node_modules/pino/test/esm/named-exports.mjs +8 -6
  195. package/node_modules/pino/test/exit.test.js +17 -15
  196. package/node_modules/pino/test/fixtures/crashing-transport.js +13 -0
  197. package/node_modules/pino/test/fixtures/transport-invalid-node-options.js +26 -0
  198. package/node_modules/pino/test/fixtures/transport-preload-main.mjs +13 -0
  199. package/node_modules/pino/test/fixtures/transport-preload.mjs +13 -0
  200. package/node_modules/pino/test/fixtures/transport-worker-name.js +24 -0
  201. package/node_modules/pino/test/fixtures/ts/to-file-transport-native.mts +15 -0
  202. package/node_modules/pino/test/fixtures/ts/to-file-transport-with-transform.ts +1 -1
  203. package/node_modules/pino/test/formatters.test.js +43 -34
  204. package/node_modules/pino/test/helper.d.ts +3 -3
  205. package/node_modules/pino/test/helper.js +36 -9
  206. package/node_modules/pino/test/hooks.test.js +45 -28
  207. package/node_modules/pino/test/http.test.js +38 -66
  208. package/node_modules/pino/test/internals/version.test.js +9 -7
  209. package/node_modules/pino/test/is-level-enabled.test.js +66 -72
  210. package/node_modules/pino/test/levels.test.js +191 -153
  211. package/node_modules/pino/test/metadata.test.js +44 -30
  212. package/node_modules/pino/test/mixin-merge-strategy.test.js +9 -7
  213. package/node_modules/pino/test/mixin.test.js +62 -39
  214. package/node_modules/pino/test/multistream.test.js +173 -117
  215. package/node_modules/pino/test/redact.test.js +172 -126
  216. package/node_modules/pino/test/serializers.test.js +61 -57
  217. package/node_modules/pino/test/stdout-protection.test.js +12 -10
  218. package/node_modules/pino/test/syncfalse.test.js +24 -26
  219. package/node_modules/pino/test/timestamp-nano.test.js +37 -0
  220. package/node_modules/pino/test/timestamp.test.js +37 -34
  221. package/node_modules/pino/test/transport/big.test.js +8 -9
  222. package/node_modules/pino/test/transport/bundlers-support.test.js +12 -10
  223. package/node_modules/pino/test/transport/caller.test.js +8 -7
  224. package/node_modules/pino/test/transport/core.test.js +232 -143
  225. package/node_modules/pino/test/transport/core.transpiled.test.ts +15 -13
  226. package/node_modules/pino/test/transport/crash.test.js +36 -0
  227. package/node_modules/pino/test/transport/module-link.test.js +17 -15
  228. package/node_modules/pino/test/transport/native-type-stripping.test.mjs +151 -0
  229. package/node_modules/pino/test/transport/node-options.test.js +116 -0
  230. package/node_modules/pino/test/transport/pipeline.test.js +14 -12
  231. package/node_modules/pino/test/transport/preload.test.js +54 -0
  232. package/node_modules/pino/test/transport/repl.test.js +4 -3
  233. package/node_modules/pino/test/transport/{syncfalse.test.js → sync-false.test.js} +15 -16
  234. package/node_modules/pino/test/transport/{syncTrue.test.js → sync-true.test.js} +6 -4
  235. package/node_modules/pino/test/transport/targets.test.js +13 -9
  236. package/node_modules/pino/test/transport/uses-pino-config.test.js +13 -14
  237. package/node_modules/pino/test/transport-stream.test.js +22 -8
  238. package/node_modules/pino/test/types/{pino-import.test-d.ts → pino-import.test-d.cts} +4 -3
  239. package/node_modules/pino/test/types/pino-multistream.test-d.ts +4 -4
  240. package/node_modules/pino/test/types/pino-top-export.test-d.ts +26 -27
  241. package/node_modules/pino/test/types/pino-transport.test-d.ts +99 -88
  242. package/node_modules/pino/test/types/pino-type-only.test-d.ts +55 -44
  243. package/node_modules/pino/test/types/pino.test-d.ts +500 -281
  244. package/node_modules/pino/test/types/pino.ts +50 -37
  245. package/node_modules/pino/tsconfig.json +1 -1
  246. package/node_modules/pino-abstract-transport/.github/workflows/ci.yml +5 -22
  247. package/node_modules/pino-abstract-transport/README.md +0 -1
  248. package/node_modules/pino-abstract-transport/package.json +6 -5
  249. package/node_modules/pino-abstract-transport/test/base.test.js +108 -80
  250. package/node_modules/pino-abstract-transport/test/match.js +24 -0
  251. package/node_modules/pino-abstract-transport/test/worker.test.js +46 -31
  252. package/node_modules/pino-pretty/.borp.yaml +6 -0
  253. package/node_modules/pino-pretty/.github/dependabot.yml +1 -1
  254. package/node_modules/pino-pretty/.github/workflows/ci.yml +5 -12
  255. package/node_modules/pino-pretty/Readme.md +24 -3
  256. package/node_modules/pino-pretty/bin.js +5 -4
  257. package/node_modules/pino-pretty/eslint.config.js +3 -0
  258. package/node_modules/pino-pretty/index.d.ts +7 -7
  259. package/node_modules/pino-pretty/index.js +1 -1
  260. package/node_modules/pino-pretty/lib/colors.js +9 -4
  261. package/node_modules/pino-pretty/lib/colors.test.js +36 -36
  262. package/node_modules/pino-pretty/lib/pretty.js +7 -5
  263. package/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.js +2 -4
  264. package/node_modules/pino-pretty/lib/utils/build-safe-sonic-boom.test.js +17 -19
  265. package/node_modules/pino-pretty/lib/utils/create-date.test.js +7 -7
  266. package/node_modules/pino-pretty/lib/utils/delete-log-property.test.js +7 -7
  267. package/node_modules/pino-pretty/lib/utils/filter-log.test.js +33 -40
  268. package/node_modules/pino-pretty/lib/utils/format-time.js +1 -1
  269. package/node_modules/pino-pretty/lib/utils/format-time.test.js +25 -25
  270. package/node_modules/pino-pretty/lib/utils/get-property-value.test.js +11 -11
  271. package/node_modules/pino-pretty/lib/utils/handle-custom-levels-names-opts.test.js +15 -14
  272. package/node_modules/pino-pretty/lib/utils/handle-custom-levels-opts.test.js +11 -11
  273. package/node_modules/pino-pretty/lib/utils/index.test.js +8 -8
  274. package/node_modules/pino-pretty/lib/utils/interpret-conditionals.test.js +23 -23
  275. package/node_modules/pino-pretty/lib/utils/is-object.test.js +5 -5
  276. package/node_modules/pino-pretty/lib/utils/is-valid-date.test.js +6 -6
  277. package/node_modules/pino-pretty/lib/utils/join-lines-with-indentation.test.js +5 -5
  278. package/node_modules/pino-pretty/lib/utils/noop.test.js +5 -5
  279. package/node_modules/pino-pretty/lib/utils/prettify-error-log.test.js +26 -26
  280. package/node_modules/pino-pretty/lib/utils/prettify-error.test.js +3 -4
  281. package/node_modules/pino-pretty/lib/utils/prettify-level.test.js +9 -9
  282. package/node_modules/pino-pretty/lib/utils/prettify-message.js +2 -1
  283. package/node_modules/pino-pretty/lib/utils/prettify-message.test.js +73 -41
  284. package/node_modules/pino-pretty/lib/utils/prettify-metadata.test.js +37 -37
  285. package/node_modules/pino-pretty/lib/utils/prettify-object.js +1 -1
  286. package/node_modules/pino-pretty/lib/utils/prettify-object.test.js +71 -32
  287. package/node_modules/pino-pretty/lib/utils/prettify-time.test.js +29 -29
  288. package/node_modules/pino-pretty/lib/utils/split-property-key.test.js +11 -11
  289. package/node_modules/pino-pretty/package.json +22 -24
  290. package/node_modules/pino-pretty/test/basic.test.js +190 -181
  291. package/node_modules/pino-pretty/test/cli-rc.test.js +93 -73
  292. package/node_modules/pino-pretty/test/cli.test.js +169 -144
  293. package/node_modules/pino-pretty/test/crlf.test.js +6 -8
  294. package/node_modules/pino-pretty/test/error-objects.test.js +85 -90
  295. package/node_modules/pino-pretty/test/example/example.js +3 -1
  296. package/node_modules/pino-pretty/test/helper.js +19 -0
  297. package/node_modules/pino-pretty/test/types/pino-pretty.test-d.ts +4 -1
  298. package/node_modules/process-warning/.github/dependabot.yml +41 -1
  299. package/node_modules/process-warning/.github/workflows/ci.yml +12 -3
  300. package/node_modules/process-warning/LICENSE +1 -1
  301. package/node_modules/process-warning/README.md +42 -3
  302. package/node_modules/process-warning/index.js +85 -17
  303. package/node_modules/process-warning/package.json +7 -8
  304. package/node_modules/process-warning/test/emit-interpolated-string.test.js +11 -6
  305. package/node_modules/process-warning/test/emit-once-only.test.js +14 -9
  306. package/node_modules/process-warning/test/emit-reset.test.js +14 -10
  307. package/node_modules/process-warning/test/emit-set.test.js +10 -5
  308. package/node_modules/process-warning/test/emit-unlimited.test.js +14 -9
  309. package/node_modules/process-warning/test/index.test.js +20 -20
  310. package/node_modules/process-warning/test/issue-88.test.js +8 -3
  311. package/node_modules/process-warning/test/jest.test.js +17 -15
  312. package/node_modules/process-warning/test/no-warnings.test.js +7 -7
  313. package/node_modules/process-warning/types/index.d.ts +15 -1
  314. package/node_modules/secure-json-parse/.github/dependabot.yml +1 -1
  315. package/node_modules/secure-json-parse/.github/workflows/ci.yml +31 -19
  316. package/node_modules/{ieee754 → secure-json-parse}/LICENSE +9 -1
  317. package/node_modules/secure-json-parse/README.md +14 -8
  318. package/node_modules/secure-json-parse/benchmarks/ignore.js +1 -1
  319. package/node_modules/secure-json-parse/benchmarks/throw.js +3 -3
  320. package/node_modules/secure-json-parse/index.js +39 -4
  321. package/node_modules/secure-json-parse/package.json +41 -8
  322. package/node_modules/secure-json-parse/test/index.test.js +150 -6
  323. package/node_modules/secure-json-parse/types/index.d.ts +9 -6
  324. package/node_modules/secure-json-parse/types/index.test-d.ts +13 -1
  325. package/node_modules/strip-json-comments/index.d.ts +18 -13
  326. package/node_modules/strip-json-comments/index.js +75 -39
  327. package/node_modules/strip-json-comments/package.json +14 -5
  328. package/node_modules/strip-json-comments/readme.md +15 -18
  329. package/node_modules/thread-stream/.github/workflows/ci.yml +4 -24
  330. package/node_modules/thread-stream/README.md +2 -0
  331. package/node_modules/thread-stream/eslint.config.js +10 -0
  332. package/node_modules/thread-stream/index.d.ts +7 -0
  333. package/node_modules/thread-stream/index.js +189 -109
  334. package/node_modules/thread-stream/lib/wait.js +58 -42
  335. package/node_modules/thread-stream/lib/worker.js +126 -14
  336. package/node_modules/thread-stream/node_modules/real-require/LICENSE.md +21 -0
  337. package/node_modules/thread-stream/node_modules/real-require/README.md +51 -0
  338. package/node_modules/thread-stream/node_modules/real-require/package.json +38 -0
  339. package/node_modules/thread-stream/node_modules/real-require/src/index.js +14 -0
  340. package/node_modules/thread-stream/package.json +18 -25
  341. package/node_modules/thread-stream/test/base.test.js +97 -96
  342. package/node_modules/thread-stream/test/bench.test.js +3 -3
  343. package/node_modules/thread-stream/test/bundlers.test.js +8 -9
  344. package/node_modules/thread-stream/test/commonjs-fallback.test.js +17 -22
  345. package/node_modules/thread-stream/test/context.test.js +6 -6
  346. package/node_modules/thread-stream/test/end.test.js +22 -27
  347. package/node_modules/thread-stream/test/esm.test.mjs +8 -9
  348. package/node_modules/thread-stream/test/event.test.js +10 -9
  349. package/node_modules/thread-stream/test/flush-worker.js +68 -0
  350. package/node_modules/thread-stream/test/flush.test.js +112 -0
  351. package/node_modules/thread-stream/test/helper.js +1 -10
  352. package/node_modules/thread-stream/test/indexes.test.js +4 -4
  353. package/node_modules/thread-stream/test/multibyte-chars.test.mjs +14 -13
  354. package/node_modules/thread-stream/test/multibyte-overrun.test.mjs +33 -0
  355. package/node_modules/thread-stream/test/pkg/index.js +23 -23
  356. package/node_modules/thread-stream/test/pkg/pkg.config.json +3 -4
  357. package/node_modules/thread-stream/test/pkg/pkg.test.js +5 -6
  358. package/node_modules/thread-stream/test/post-message.test.js +4 -5
  359. package/node_modules/thread-stream/test/report-thread-name.js +16 -0
  360. package/node_modules/thread-stream/test/string-limit-2.test.js +24 -30
  361. package/node_modules/thread-stream/test/string-limit.test.js +24 -29
  362. package/node_modules/thread-stream/test/thread-management.test.js +46 -17
  363. package/node_modules/thread-stream/test/transpiled.test.js +5 -6
  364. package/node_modules/thread-stream/test/ts-native.test.mjs +35 -0
  365. package/node_modules/thread-stream/test/ts-node-fallback.test.js +35 -0
  366. package/node_modules/thread-stream/test/watch-mode.test.js +13 -11
  367. package/node_modules/thread-stream/test/worker-name.test.js +43 -0
  368. package/package.json +8 -8
  369. package/node_modules/@zuplo/editor/node_modules/process-warning/.github/dependabot.yml +0 -53
  370. package/node_modules/@zuplo/editor/node_modules/process-warning/.github/workflows/ci.yml +0 -33
  371. package/node_modules/@zuplo/editor/node_modules/process-warning/README.md +0 -157
  372. package/node_modules/@zuplo/editor/node_modules/process-warning/benchmarks/warn.js +0 -25
  373. package/node_modules/@zuplo/editor/node_modules/process-warning/examples/example.js +0 -11
  374. package/node_modules/@zuplo/editor/node_modules/process-warning/index.js +0 -192
  375. package/node_modules/@zuplo/editor/node_modules/process-warning/package.json +0 -72
  376. package/node_modules/@zuplo/editor/node_modules/process-warning/test/emit-interpolated-string.test.js +0 -34
  377. package/node_modules/@zuplo/editor/node_modules/process-warning/test/emit-once-only.test.js +0 -33
  378. package/node_modules/@zuplo/editor/node_modules/process-warning/test/emit-reset.test.js +0 -40
  379. package/node_modules/@zuplo/editor/node_modules/process-warning/test/emit-set.test.js +0 -35
  380. package/node_modules/@zuplo/editor/node_modules/process-warning/test/emit-unlimited.test.js +0 -42
  381. package/node_modules/@zuplo/editor/node_modules/process-warning/test/index.test.js +0 -99
  382. package/node_modules/@zuplo/editor/node_modules/process-warning/test/issue-88.test.js +0 -38
  383. package/node_modules/@zuplo/editor/node_modules/process-warning/test/jest.test.js +0 -24
  384. package/node_modules/@zuplo/editor/node_modules/process-warning/test/no-warnings.test.js +0 -80
  385. package/node_modules/@zuplo/editor/node_modules/process-warning/types/index.d.ts +0 -51
  386. package/node_modules/@zuplo/runtime/out/esm/chunk-XLNOQPTE.js.map +0 -1
  387. package/node_modules/abort-controller/README.md +0 -98
  388. package/node_modules/abort-controller/browser.js +0 -13
  389. package/node_modules/abort-controller/browser.mjs +0 -11
  390. package/node_modules/abort-controller/dist/abort-controller.d.ts +0 -43
  391. package/node_modules/abort-controller/dist/abort-controller.js +0 -127
  392. package/node_modules/abort-controller/dist/abort-controller.js.map +0 -1
  393. package/node_modules/abort-controller/dist/abort-controller.mjs +0 -118
  394. package/node_modules/abort-controller/dist/abort-controller.mjs.map +0 -1
  395. package/node_modules/abort-controller/dist/abort-controller.umd.js +0 -5
  396. package/node_modules/abort-controller/dist/abort-controller.umd.js.map +0 -1
  397. package/node_modules/abort-controller/package.json +0 -97
  398. package/node_modules/abort-controller/polyfill.js +0 -21
  399. package/node_modules/abort-controller/polyfill.mjs +0 -19
  400. package/node_modules/base64-js/LICENSE +0 -21
  401. package/node_modules/base64-js/README.md +0 -34
  402. package/node_modules/base64-js/base64js.min.js +0 -1
  403. package/node_modules/base64-js/index.d.ts +0 -3
  404. package/node_modules/base64-js/index.js +0 -150
  405. package/node_modules/base64-js/package.json +0 -47
  406. package/node_modules/buffer/AUTHORS.md +0 -73
  407. package/node_modules/buffer/LICENSE +0 -21
  408. package/node_modules/buffer/README.md +0 -410
  409. package/node_modules/buffer/index.d.ts +0 -194
  410. package/node_modules/buffer/index.js +0 -2106
  411. package/node_modules/buffer/package.json +0 -93
  412. package/node_modules/event-target-shim/README.md +0 -293
  413. package/node_modules/event-target-shim/dist/event-target-shim.js +0 -871
  414. package/node_modules/event-target-shim/dist/event-target-shim.js.map +0 -1
  415. package/node_modules/event-target-shim/dist/event-target-shim.mjs +0 -862
  416. package/node_modules/event-target-shim/dist/event-target-shim.mjs.map +0 -1
  417. package/node_modules/event-target-shim/dist/event-target-shim.umd.js +0 -6
  418. package/node_modules/event-target-shim/dist/event-target-shim.umd.js.map +0 -1
  419. package/node_modules/event-target-shim/index.d.ts +0 -399
  420. package/node_modules/event-target-shim/package.json +0 -82
  421. package/node_modules/events/.airtap.yml +0 -15
  422. package/node_modules/events/.github/FUNDING.yml +0 -12
  423. package/node_modules/events/.travis.yml +0 -18
  424. package/node_modules/events/History.md +0 -118
  425. package/node_modules/events/LICENSE +0 -22
  426. package/node_modules/events/Readme.md +0 -50
  427. package/node_modules/events/events.js +0 -497
  428. package/node_modules/events/package.json +0 -37
  429. package/node_modules/events/security.md +0 -10
  430. package/node_modules/events/tests/add-listeners.js +0 -111
  431. package/node_modules/events/tests/check-listener-leaks.js +0 -101
  432. package/node_modules/events/tests/common.js +0 -104
  433. package/node_modules/events/tests/errors.js +0 -13
  434. package/node_modules/events/tests/events-list.js +0 -28
  435. package/node_modules/events/tests/events-once.js +0 -234
  436. package/node_modules/events/tests/index.js +0 -64
  437. package/node_modules/events/tests/legacy-compat.js +0 -16
  438. package/node_modules/events/tests/listener-count.js +0 -37
  439. package/node_modules/events/tests/listeners-side-effects.js +0 -56
  440. package/node_modules/events/tests/listeners.js +0 -168
  441. package/node_modules/events/tests/max-listeners.js +0 -47
  442. package/node_modules/events/tests/method-names.js +0 -35
  443. package/node_modules/events/tests/modify-in-emit.js +0 -90
  444. package/node_modules/events/tests/num-args.js +0 -60
  445. package/node_modules/events/tests/once.js +0 -83
  446. package/node_modules/events/tests/prepend.js +0 -31
  447. package/node_modules/events/tests/remove-all-listeners.js +0 -133
  448. package/node_modules/events/tests/remove-listeners.js +0 -212
  449. package/node_modules/events/tests/set-max-listeners-side-effects.js +0 -31
  450. package/node_modules/events/tests/special-event-names.js +0 -45
  451. package/node_modules/events/tests/subclass.js +0 -66
  452. package/node_modules/events/tests/symbols.js +0 -25
  453. package/node_modules/fast-redact/.github/workflows/ci.yml +0 -37
  454. package/node_modules/fast-redact/benchmark/index.js +0 -223
  455. package/node_modules/fast-redact/example/default-usage.js +0 -14
  456. package/node_modules/fast-redact/example/intermediate-wildcard-array.js +0 -11
  457. package/node_modules/fast-redact/example/multi-wildcard-array-depth.js +0 -11
  458. package/node_modules/fast-redact/example/multi-wildcard-array-end.js +0 -11
  459. package/node_modules/fast-redact/example/multi-wildcard-array.js +0 -11
  460. package/node_modules/fast-redact/example/serialize-false.js +0 -11
  461. package/node_modules/fast-redact/example/serialize-function.js +0 -4
  462. package/node_modules/fast-redact/example/top-wildcard-object.js +0 -9
  463. package/node_modules/fast-redact/index.js +0 -56
  464. package/node_modules/fast-redact/lib/modifiers.js +0 -291
  465. package/node_modules/fast-redact/lib/parse.js +0 -44
  466. package/node_modules/fast-redact/lib/redactor.js +0 -108
  467. package/node_modules/fast-redact/lib/restorer.js +0 -92
  468. package/node_modules/fast-redact/lib/rx.js +0 -16
  469. package/node_modules/fast-redact/lib/state.js +0 -20
  470. package/node_modules/fast-redact/lib/validator.js +0 -33
  471. package/node_modules/fast-redact/package.json +0 -50
  472. package/node_modules/fast-redact/readme.md +0 -282
  473. package/node_modules/fast-redact/test/index.js +0 -1502
  474. package/node_modules/ieee754/README.md +0 -51
  475. package/node_modules/ieee754/index.d.ts +0 -10
  476. package/node_modules/ieee754/index.js +0 -85
  477. package/node_modules/ieee754/package.json +0 -52
  478. package/node_modules/pino/.eslintignore +0 -2
  479. package/node_modules/pino/.eslintrc +0 -8
  480. package/node_modules/pino/.github/workflows/bench.yml +0 -61
  481. package/node_modules/pino/.github/workflows/lock-threads.yml +0 -30
  482. package/node_modules/pino/.github/workflows/target-main.yml +0 -23
  483. package/node_modules/pino/.taprc.yaml +0 -8
  484. package/node_modules/pino/docsify/sidebar.md +0 -26
  485. package/node_modules/pino/favicon-16x16.png +0 -0
  486. package/node_modules/pino/favicon-32x32.png +0 -0
  487. package/node_modules/pino/pino-banner.png +0 -0
  488. package/node_modules/pino/pino-logo-hire.png +0 -0
  489. package/node_modules/pino/pino-tree.png +0 -0
  490. package/node_modules/pino/pretty-demo.png +0 -0
  491. package/node_modules/pino/test/errorKey.test.js +0 -34
  492. package/node_modules/pino/test/pkg/index.js +0 -46
  493. package/node_modules/pino/test/pkg/pkg.config.json +0 -17
  494. package/node_modules/pino/test/pkg/pkg.test.js +0 -56
  495. package/node_modules/pino/test/transport/core.test.ts +0 -236
  496. package/node_modules/process/.eslintrc +0 -21
  497. package/node_modules/process/LICENSE +0 -22
  498. package/node_modules/process/README.md +0 -26
  499. package/node_modules/process/browser.js +0 -184
  500. package/node_modules/process/index.js +0 -2
  501. package/node_modules/process/package.json +0 -27
  502. package/node_modules/process/test.js +0 -199
  503. package/node_modules/process-warning/.taprc +0 -2
  504. package/node_modules/process-warning/types/index.test-d.ts +0 -36
  505. package/node_modules/readable-stream/LICENSE +0 -47
  506. package/node_modules/readable-stream/README.md +0 -116
  507. package/node_modules/readable-stream/lib/_stream_duplex.js +0 -4
  508. package/node_modules/readable-stream/lib/_stream_passthrough.js +0 -4
  509. package/node_modules/readable-stream/lib/_stream_readable.js +0 -4
  510. package/node_modules/readable-stream/lib/_stream_transform.js +0 -4
  511. package/node_modules/readable-stream/lib/_stream_writable.js +0 -4
  512. package/node_modules/readable-stream/lib/internal/streams/add-abort-signal.js +0 -52
  513. package/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -157
  514. package/node_modules/readable-stream/lib/internal/streams/compose.js +0 -194
  515. package/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -290
  516. package/node_modules/readable-stream/lib/internal/streams/duplex.js +0 -143
  517. package/node_modules/readable-stream/lib/internal/streams/duplexify.js +0 -378
  518. package/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -286
  519. package/node_modules/readable-stream/lib/internal/streams/from.js +0 -98
  520. package/node_modules/readable-stream/lib/internal/streams/lazy_transform.js +0 -51
  521. package/node_modules/readable-stream/lib/internal/streams/legacy.js +0 -89
  522. package/node_modules/readable-stream/lib/internal/streams/operators.js +0 -457
  523. package/node_modules/readable-stream/lib/internal/streams/passthrough.js +0 -39
  524. package/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -471
  525. package/node_modules/readable-stream/lib/internal/streams/readable.js +0 -1290
  526. package/node_modules/readable-stream/lib/internal/streams/state.js +0 -39
  527. package/node_modules/readable-stream/lib/internal/streams/transform.js +0 -180
  528. package/node_modules/readable-stream/lib/internal/streams/utils.js +0 -327
  529. package/node_modules/readable-stream/lib/internal/streams/writable.js +0 -819
  530. package/node_modules/readable-stream/lib/internal/validators.js +0 -530
  531. package/node_modules/readable-stream/lib/ours/browser.js +0 -35
  532. package/node_modules/readable-stream/lib/ours/errors.js +0 -343
  533. package/node_modules/readable-stream/lib/ours/index.js +0 -65
  534. package/node_modules/readable-stream/lib/ours/primordials.js +0 -124
  535. package/node_modules/readable-stream/lib/ours/util/inspect.js +0 -55
  536. package/node_modules/readable-stream/lib/ours/util.js +0 -148
  537. package/node_modules/readable-stream/lib/stream/promises.js +0 -43
  538. package/node_modules/readable-stream/lib/stream.js +0 -143
  539. package/node_modules/readable-stream/package.json +0 -88
  540. package/node_modules/safe-buffer/LICENSE +0 -21
  541. package/node_modules/safe-buffer/README.md +0 -584
  542. package/node_modules/safe-buffer/index.d.ts +0 -187
  543. package/node_modules/safe-buffer/index.js +0 -65
  544. package/node_modules/safe-buffer/package.json +0 -51
  545. package/node_modules/string_decoder/LICENSE +0 -48
  546. package/node_modules/string_decoder/README.md +0 -47
  547. package/node_modules/string_decoder/lib/string_decoder.js +0 -296
  548. package/node_modules/string_decoder/package.json +0 -34
  549. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/.release-it.beta.json +0 -0
  550. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/.release-it.json +0 -0
  551. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/CHANGELOG.md +0 -0
  552. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/cjs/types/copier.d.ts +0 -0
  553. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/cjs/types/index.d.ts +0 -0
  554. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/cjs/types/utils.d.ts +0 -0
  555. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/esm/index.mjs +0 -0
  556. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/esm/index.mjs.map +0 -0
  557. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/esm/types/copier.d.ts +0 -0
  558. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/esm/types/index.d.ts +0 -0
  559. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/esm/types/utils.d.ts +0 -0
  560. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/min/index.js +0 -0
  561. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/min/index.js.map +0 -0
  562. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/min/types/copier.d.ts +0 -0
  563. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/min/types/index.d.ts +0 -0
  564. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/min/types/utils.d.ts +0 -0
  565. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/umd/types/copier.d.ts +0 -0
  566. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/umd/types/index.d.ts +0 -0
  567. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/dist/umd/types/utils.d.ts +0 -0
  568. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/flow-typed/fast-copy.js +0 -0
  569. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/rollup/config.base.js +0 -0
  570. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/rollup/config.cjs.js +0 -0
  571. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/rollup/config.esm.js +0 -0
  572. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/rollup/config.min.js +0 -0
  573. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/rollup/config.umd.js +0 -0
  574. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/rollup/packageJson.js +0 -0
  575. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/tsconfig/base.json +0 -0
  576. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/tsconfig/cjs.json +0 -0
  577. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/tsconfig/declarations.json +0 -0
  578. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/tsconfig/esm.json +0 -0
  579. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/tsconfig/min.json +0 -0
  580. /package/node_modules/{fast-copy → @zuplo/editor/node_modules/fast-copy}/tsconfig/umd.json +0 -0
  581. /package/node_modules/{pino → @zuplo/editor/node_modules/pino-abstract-transport}/.github/dependabot.yml +0 -0
  582. /package/node_modules/{thread-stream → @zuplo/editor/node_modules/pino-abstract-transport}/.husky/pre-commit +0 -0
  583. /package/node_modules/{secure-json-parse → @zuplo/editor/node_modules/secure-json-parse}/LICENSE.md +0 -0
  584. /package/node_modules/{thread-stream → @zuplo/editor/node_modules/thread-stream}/.taprc +0 -0
  585. /package/node_modules/{thread-stream → @zuplo/editor/node_modules/thread-stream}/CLAUDE.md +0 -0
  586. /package/node_modules/{thread-stream → @zuplo/editor/node_modules/thread-stream}/test/never-drain.test.js +0 -0
  587. /package/node_modules/{thread-stream → @zuplo/editor/node_modules/thread-stream}/test/ts.test.ts +0 -0
  588. /package/node_modules/@zuplo/runtime/out/esm/{chunk-XLNOQPTE.js.LEGAL.txt → chunk-RS7HF7BL.js.LEGAL.txt} +0 -0
  589. /package/node_modules/{@zuplo/editor/node_modules/process-warning → process-warning}/.github/workflows/lock-threads.yml +0 -0
  590. /package/node_modules/{@zuplo/editor/node_modules/process-warning → process-warning}/test/promise.js +0 -0
  591. /package/node_modules/{@zuplo/editor/node_modules/process-warning → process-warning}/test/spy-warning.test.js +0 -0
  592. /package/node_modules/{@zuplo/editor/node_modules/process-warning → process-warning}/types/index.tst.ts +0 -0
  593. /package/node_modules/{@zuplo/editor/node_modules/process-warning → secure-json-parse}/.gitattributes +0 -0
  594. /package/node_modules/{@zuplo/editor/node_modules/process-warning → secure-json-parse}/eslint.config.js +0 -0
@@ -1,138 +1,76 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var toStringFunction = Function.prototype.toString;
6
- var create = Object.create;
7
- var toStringObject = Object.prototype.toString;
8
- /**
9
- * @classdesc Fallback cache for when WeakMap is not natively supported
10
- */
11
- var LegacyCache = /** @class */ (function () {
12
- function LegacyCache() {
13
- this._keys = [];
14
- this._values = [];
15
- }
16
- LegacyCache.prototype.has = function (key) {
17
- return !!~this._keys.indexOf(key);
18
- };
19
- LegacyCache.prototype.get = function (key) {
20
- return this._values[this._keys.indexOf(key)];
21
- };
22
- LegacyCache.prototype.set = function (key, value) {
23
- this._keys.push(key);
24
- this._values.push(value);
25
- };
26
- return LegacyCache;
27
- }());
28
- function createCacheLegacy() {
29
- return new LegacyCache();
30
- }
31
- function createCacheModern() {
32
- return new WeakMap();
33
- }
34
- /**
35
- * Get a new cache object to prevent circular references.
36
- */
37
- var createCache = typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;
3
+ // eslint-disable-next-line @typescript-eslint/unbound-method
4
+ const toStringFunction = Function.prototype.toString;
5
+ // eslint-disable-next-line @typescript-eslint/unbound-method
6
+ const toStringObject = Object.prototype.toString;
38
7
  /**
39
8
  * Get an empty version of the object with the same prototype it has.
40
9
  */
41
10
  function getCleanClone(prototype) {
42
11
  if (!prototype) {
43
- return create(null);
12
+ return Object.create(null);
44
13
  }
45
- var Constructor = prototype.constructor;
14
+ const Constructor = prototype.constructor;
46
15
  if (Constructor === Object) {
47
- return prototype === Object.prototype ? {} : create(prototype);
16
+ return prototype === Object.prototype ? {} : Object.create(prototype);
48
17
  }
49
- if (Constructor &&
50
- ~toStringFunction.call(Constructor).indexOf('[native code]')) {
18
+ if (Constructor && ~toStringFunction.call(Constructor).indexOf('[native code]')) {
51
19
  try {
52
20
  return new Constructor();
53
21
  }
54
- catch (_a) { }
55
- }
56
- return create(prototype);
57
- }
58
- function getRegExpFlagsLegacy(regExp) {
59
- var flags = '';
60
- if (regExp.global) {
61
- flags += 'g';
62
- }
63
- if (regExp.ignoreCase) {
64
- flags += 'i';
65
- }
66
- if (regExp.multiline) {
67
- flags += 'm';
68
- }
69
- if (regExp.unicode) {
70
- flags += 'u';
71
- }
72
- if (regExp.sticky) {
73
- flags += 'y';
22
+ catch (_a) {
23
+ // Ignore
24
+ }
74
25
  }
75
- return flags;
76
- }
77
- function getRegExpFlagsModern(regExp) {
78
- return regExp.flags;
26
+ return Object.create(prototype);
79
27
  }
80
28
  /**
81
- * Get the flags to apply to the copied regexp.
29
+ * Get the tag of the value passed, so that the correct copier can be used.
82
30
  */
83
- var getRegExpFlags = /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;
84
- function getTagLegacy(value) {
85
- var type = toStringObject.call(value);
31
+ function getTag(value) {
32
+ const stringTag = value[Symbol.toStringTag];
33
+ if (stringTag) {
34
+ return stringTag;
35
+ }
36
+ const type = toStringObject.call(value);
86
37
  return type.substring(8, type.length - 1);
87
38
  }
88
- function getTagModern(value) {
89
- return value[Symbol.toStringTag] || getTagLegacy(value);
90
- }
91
- /**
92
- * Get the tag of the value passed, so that the correct copier can be used.
93
- */
94
- var getTag = typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;
95
39
 
96
- var defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols;
97
- var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
98
- var SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';
99
- function getStrictPropertiesModern(object) {
100
- return getOwnPropertyNames(object).concat(getOwnPropertySymbols(object));
40
+ // eslint-disable-next-line @typescript-eslint/unbound-method
41
+ const { propertyIsEnumerable } = Object.prototype;
42
+ function copyOwnDescriptor(original, clone, property, state) {
43
+ const ownDescriptor = Object.getOwnPropertyDescriptor(original, property) || {
44
+ configurable: true,
45
+ enumerable: true,
46
+ value: original[property],
47
+ writable: true,
48
+ };
49
+ const descriptor = ownDescriptor.get || ownDescriptor.set
50
+ ? ownDescriptor
51
+ : {
52
+ configurable: ownDescriptor.configurable,
53
+ enumerable: ownDescriptor.enumerable,
54
+ value: state.copier(ownDescriptor.value, state),
55
+ writable: ownDescriptor.writable,
56
+ };
57
+ try {
58
+ Object.defineProperty(clone, property, descriptor);
59
+ }
60
+ catch (_a) {
61
+ // The above can fail on node in extreme edge cases, so fall back to the loose assignment.
62
+ clone[property] = descriptor.get ? descriptor.get() : descriptor.value;
63
+ }
101
64
  }
102
65
  /**
103
- * Get the properites used when copying objects strictly. This includes both keys and symbols.
104
- */
105
- var getStrictProperties = SUPPORTS_SYMBOL
106
- ? getStrictPropertiesModern
107
- : getOwnPropertyNames;
108
- /**
109
- * Striclty copy all properties contained on the object.
66
+ * Strictly copy all properties contained on the object.
110
67
  */
111
68
  function copyOwnPropertiesStrict(value, clone, state) {
112
- var properties = getStrictProperties(value);
113
- for (var index = 0, length_1 = properties.length, property = void 0, descriptor = void 0; index < length_1; ++index) {
114
- property = properties[index];
115
- if (property === 'callee' || property === 'caller') {
116
- continue;
117
- }
118
- descriptor = getOwnPropertyDescriptor(value, property);
119
- if (!descriptor) {
120
- // In extra edge cases where the property descriptor cannot be retrived, fall back to
121
- // the loose assignment.
122
- clone[property] = state.copier(value[property], state);
123
- continue;
124
- }
125
- // Only clone the value if actually a value, not a getter / setter.
126
- if (!descriptor.get && !descriptor.set) {
127
- descriptor.value = state.copier(descriptor.value, state);
128
- }
129
- try {
130
- defineProperty(clone, property, descriptor);
131
- }
132
- catch (error) {
133
- // Tee above can fail on node in edge cases, so fall back to the loose assignment.
134
- clone[property] = descriptor.value;
135
- }
69
+ for (const name of Object.getOwnPropertyNames(value)) {
70
+ copyOwnDescriptor(value, clone, name, state);
71
+ }
72
+ for (const symbol of Object.getOwnPropertySymbols(value)) {
73
+ copyOwnDescriptor(value, clone, symbol, state);
136
74
  }
137
75
  return clone;
138
76
  }
@@ -140,10 +78,10 @@ function copyOwnPropertiesStrict(value, clone, state) {
140
78
  * Deeply copy the indexed values in the array.
141
79
  */
142
80
  function copyArrayLoose(array, state) {
143
- var clone = new state.Constructor();
81
+ const clone = new state.Constructor();
144
82
  // set in the cache immediately to be able to reuse the object recursively
145
83
  state.cache.set(array, clone);
146
- for (var index = 0, length_2 = array.length; index < length_2; ++index) {
84
+ for (let index = 0; index < array.length; ++index) {
147
85
  clone[index] = state.copier(array[index], state);
148
86
  }
149
87
  return clone;
@@ -152,7 +90,7 @@ function copyArrayLoose(array, state) {
152
90
  * Deeply copy the indexed values in the array, as well as any custom properties.
153
91
  */
154
92
  function copyArrayStrict(array, state) {
155
- var clone = new state.Constructor();
93
+ const clone = new state.Constructor();
156
94
  // set in the cache immediately to be able to reuse the object recursively
157
95
  state.cache.set(array, clone);
158
96
  return copyOwnPropertiesStrict(array, clone, state);
@@ -185,12 +123,12 @@ function copyDate(date, state) {
185
123
  * Deeply copy the keys and values of the original.
186
124
  */
187
125
  function copyMapLoose(map, state) {
188
- var clone = new state.Constructor();
126
+ const clone = new state.Constructor();
189
127
  // set in the cache immediately to be able to reuse the object recursively
190
128
  state.cache.set(map, clone);
191
- map.forEach(function (value, key) {
129
+ for (const [key, value] of map) {
192
130
  clone.set(key, state.copier(value, state));
193
- });
131
+ }
194
132
  return clone;
195
133
  }
196
134
  /**
@@ -199,47 +137,29 @@ function copyMapLoose(map, state) {
199
137
  function copyMapStrict(map, state) {
200
138
  return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);
201
139
  }
202
- function copyObjectLooseLegacy(object, state) {
203
- var clone = getCleanClone(state.prototype);
204
- // set in the cache immediately to be able to reuse the object recursively
205
- state.cache.set(object, clone);
206
- for (var key in object) {
207
- if (hasOwnProperty.call(object, key)) {
208
- clone[key] = state.copier(object[key], state);
209
- }
210
- }
211
- return clone;
212
- }
213
- function copyObjectLooseModern(object, state) {
214
- var clone = getCleanClone(state.prototype);
140
+ /**
141
+ * Deeply copy the properties (keys and symbols) and values of the original.
142
+ */
143
+ function copyObjectLoose(object, state) {
144
+ const clone = getCleanClone(state.prototype);
215
145
  // set in the cache immediately to be able to reuse the object recursively
216
146
  state.cache.set(object, clone);
217
- for (var key in object) {
218
- if (hasOwnProperty.call(object, key)) {
219
- clone[key] = state.copier(object[key], state);
220
- }
147
+ for (const key of Object.keys(object)) {
148
+ clone[key] = state.copier(object[key], state);
221
149
  }
222
- var symbols = getOwnPropertySymbols(object);
223
- for (var index = 0, length_3 = symbols.length, symbol = void 0; index < length_3; ++index) {
224
- symbol = symbols[index];
150
+ for (const symbol of Object.getOwnPropertySymbols(object)) {
225
151
  if (propertyIsEnumerable.call(object, symbol)) {
226
152
  clone[symbol] = state.copier(object[symbol], state);
227
153
  }
228
154
  }
229
155
  return clone;
230
156
  }
231
- /**
232
- * Deeply copy the properties (keys and symbols) and values of the original.
233
- */
234
- var copyObjectLoose = SUPPORTS_SYMBOL
235
- ? copyObjectLooseModern
236
- : copyObjectLooseLegacy;
237
157
  /**
238
158
  * Deeply copy the properties (keys and symbols) and values of the original, as well
239
159
  * as any hidden or non-enumerable properties.
240
160
  */
241
161
  function copyObjectStrict(object, state) {
242
- var clone = getCleanClone(state.prototype);
162
+ const clone = getCleanClone(state.prototype);
243
163
  // set in the cache immediately to be able to reuse the object recursively
244
164
  state.cache.set(object, clone);
245
165
  return copyOwnPropertiesStrict(object, clone, state);
@@ -254,7 +174,7 @@ function copyPrimitiveWrapper(primitiveObject, state) {
254
174
  * Create a new RegExp based on the value and flags of the original.
255
175
  */
256
176
  function copyRegExp(regExp, state) {
257
- var clone = new state.Constructor(regExp.source, getRegExpFlags(regExp));
177
+ const clone = new state.Constructor(regExp.source, regExp.flags);
258
178
  clone.lastIndex = regExp.lastIndex;
259
179
  return clone;
260
180
  }
@@ -271,12 +191,12 @@ function copySelf(value, _state) {
271
191
  * Deeply copy the values of the original.
272
192
  */
273
193
  function copySetLoose(set, state) {
274
- var clone = new state.Constructor();
194
+ const clone = new state.Constructor();
275
195
  // set in the cache immediately to be able to reuse the object recursively
276
196
  state.cache.set(set, clone);
277
- set.forEach(function (value) {
197
+ for (const value of set) {
278
198
  clone.add(state.copier(value, state));
279
- });
199
+ }
280
200
  return clone;
281
201
  }
282
202
  /**
@@ -286,68 +206,82 @@ function copySetStrict(set, state) {
286
206
  return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);
287
207
  }
288
208
 
289
- var isArray = Array.isArray;
290
- var assign = Object.assign;
291
- var getPrototypeOf = Object.getPrototypeOf || (function (obj) { return obj.__proto__; });
292
- var DEFAULT_LOOSE_OPTIONS = {
293
- array: copyArrayLoose,
294
- arrayBuffer: copyArrayBuffer,
295
- blob: copyBlob,
296
- dataView: copyDataView,
297
- date: copyDate,
298
- error: copySelf,
299
- map: copyMapLoose,
300
- object: copyObjectLoose,
301
- regExp: copyRegExp,
302
- set: copySetLoose,
303
- };
304
- var DEFAULT_STRICT_OPTIONS = assign({}, DEFAULT_LOOSE_OPTIONS, {
305
- array: copyArrayStrict,
306
- map: copyMapStrict,
307
- object: copyObjectStrict,
308
- set: copySetStrict,
309
- });
209
+ function createDefaultCache() {
210
+ return new WeakMap();
211
+ }
212
+ function getOptions({ createCache: createCacheOverride, methods: methodsOverride, strict, }) {
213
+ const defaultMethods = {
214
+ array: strict ? copyArrayStrict : copyArrayLoose,
215
+ arrayBuffer: copyArrayBuffer,
216
+ asyncGenerator: copySelf,
217
+ blob: copyBlob,
218
+ dataView: copyDataView,
219
+ date: copyDate,
220
+ error: copySelf,
221
+ generator: copySelf,
222
+ map: strict ? copyMapStrict : copyMapLoose,
223
+ object: strict ? copyObjectStrict : copyObjectLoose,
224
+ regExp: copyRegExp,
225
+ set: strict ? copySetStrict : copySetLoose,
226
+ };
227
+ const methods = methodsOverride ? Object.assign(defaultMethods, methodsOverride) : defaultMethods;
228
+ const copiers = getTagSpecificCopiers(methods);
229
+ const createCache = createCacheOverride || createDefaultCache;
230
+ // Extra safety check to ensure that object and array copiers are always provided,
231
+ // avoiding runtime errors.
232
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
233
+ if (!copiers.Object || !copiers.Array) {
234
+ throw new Error('An object and array copier must be provided.');
235
+ }
236
+ return { createCache, copiers, methods, strict: Boolean(strict) };
237
+ }
310
238
  /**
311
239
  * Get the copiers used for each specific object tag.
312
240
  */
313
- function getTagSpecificCopiers(options) {
241
+ function getTagSpecificCopiers(methods) {
314
242
  return {
315
- Arguments: options.object,
316
- Array: options.array,
317
- ArrayBuffer: options.arrayBuffer,
318
- Blob: options.blob,
243
+ Arguments: methods.object,
244
+ Array: methods.array,
245
+ ArrayBuffer: methods.arrayBuffer,
246
+ AsyncGenerator: methods.asyncGenerator,
247
+ BigInt64Array: methods.arrayBuffer,
248
+ BigUint64Array: methods.arrayBuffer,
249
+ Blob: methods.blob,
319
250
  Boolean: copyPrimitiveWrapper,
320
- DataView: options.dataView,
321
- Date: options.date,
322
- Error: options.error,
323
- Float32Array: options.arrayBuffer,
324
- Float64Array: options.arrayBuffer,
325
- Int8Array: options.arrayBuffer,
326
- Int16Array: options.arrayBuffer,
327
- Int32Array: options.arrayBuffer,
328
- Map: options.map,
251
+ DataView: methods.dataView,
252
+ Date: methods.date,
253
+ Error: methods.error,
254
+ Float32Array: methods.arrayBuffer,
255
+ Float64Array: methods.arrayBuffer,
256
+ Generator: methods.generator,
257
+ Int8Array: methods.arrayBuffer,
258
+ Int16Array: methods.arrayBuffer,
259
+ Int32Array: methods.arrayBuffer,
260
+ Map: methods.map,
329
261
  Number: copyPrimitiveWrapper,
330
- Object: options.object,
262
+ Object: methods.object,
331
263
  Promise: copySelf,
332
- RegExp: options.regExp,
333
- Set: options.set,
264
+ RegExp: methods.regExp,
265
+ Set: methods.set,
334
266
  String: copyPrimitiveWrapper,
335
267
  WeakMap: copySelf,
336
268
  WeakSet: copySelf,
337
- Uint8Array: options.arrayBuffer,
338
- Uint8ClampedArray: options.arrayBuffer,
339
- Uint16Array: options.arrayBuffer,
340
- Uint32Array: options.arrayBuffer,
341
- Uint64Array: options.arrayBuffer,
269
+ Uint8Array: methods.arrayBuffer,
270
+ Uint8ClampedArray: methods.arrayBuffer,
271
+ Uint16Array: methods.arrayBuffer,
272
+ Uint32Array: methods.arrayBuffer,
342
273
  };
343
274
  }
275
+
344
276
  /**
345
- * Create a custom copier based on the object-specific copy methods passed.
277
+ * Create a custom copier based on custom options for any of the following:
278
+ * - `createCache` method to create a cache for copied objects
279
+ * - custom copier `methods` for specific object types
280
+ * - `strict` mode to copy all properties with their descriptors
346
281
  */
347
- function createCopier(options) {
348
- var normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);
349
- var tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);
350
- var array = tagSpecificCopiers.Array, object = tagSpecificCopiers.Object;
282
+ function createCopier(options = {}) {
283
+ const { createCache, copiers } = getOptions(options);
284
+ const { Array: copyArray, Object: copyObject } = copiers;
351
285
  function copier(value, state) {
352
286
  state.prototype = state.Constructor = undefined;
353
287
  if (!value || typeof value !== 'object') {
@@ -356,51 +290,46 @@ function createCopier(options) {
356
290
  if (state.cache.has(value)) {
357
291
  return state.cache.get(value);
358
292
  }
359
- state.prototype = getPrototypeOf(value);
293
+ state.prototype = Object.getPrototypeOf(value);
294
+ // Using logical AND for speed, since optional chaining transforms to
295
+ // a local variable usage.
296
+ // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
360
297
  state.Constructor = state.prototype && state.prototype.constructor;
361
298
  // plain objects
362
299
  if (!state.Constructor || state.Constructor === Object) {
363
- return object(value, state);
300
+ return copyObject(value, state);
364
301
  }
365
302
  // arrays
366
- if (isArray(value)) {
367
- return array(value, state);
303
+ if (Array.isArray(value)) {
304
+ return copyArray(value, state);
368
305
  }
369
- var tagSpecificCopier = tagSpecificCopiers[getTag(value)];
306
+ const tagSpecificCopier = copiers[getTag(value)];
370
307
  if (tagSpecificCopier) {
371
308
  return tagSpecificCopier(value, state);
372
309
  }
373
- return typeof value.then === 'function' ? value : object(value, state);
310
+ return typeof value.then === 'function' ? value : copyObject(value, state);
374
311
  }
375
312
  return function copy(value) {
376
313
  return copier(value, {
377
314
  Constructor: undefined,
378
315
  cache: createCache(),
379
- copier: copier,
316
+ copier,
380
317
  prototype: undefined,
381
318
  });
382
319
  };
383
320
  }
384
- /**
385
- * Create a custom copier based on the object-specific copy methods passed, defaulting to the
386
- * same internals as `copyStrict`.
387
- */
388
- function createStrictCopier(options) {
389
- return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));
390
- }
391
321
  /**
392
322
  * Copy an value deeply as much as possible, where strict recreation of object properties
393
323
  * are maintained. All properties (including non-enumerable ones) are copied with their
394
324
  * original property descriptors on both objects and arrays.
395
325
  */
396
- var copyStrict = createStrictCopier({});
326
+ const copyStrict = createCopier({ strict: true });
397
327
  /**
398
328
  * Copy an value deeply as much as possible.
399
329
  */
400
- var index = createCopier({});
330
+ const copy = createCopier();
401
331
 
332
+ exports.copy = copy;
402
333
  exports.copyStrict = copyStrict;
403
334
  exports.createCopier = createCopier;
404
- exports.createStrictCopier = createStrictCopier;
405
- exports.default = index;
406
335
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../../../src/utils.ts","../../../../src/copier.ts","../../../../src/index.ts"],"sourcesContent":["export interface Cache {\n has: (value: any) => boolean;\n set: (key: any, value: any) => void;\n get: (key: any) => any;\n}\n\nconst { toString: toStringFunction } = Function.prototype;\nconst { create } = Object;\nconst { toString: toStringObject } = Object.prototype;\n\n/**\n * @classdesc Fallback cache for when WeakMap is not natively supported\n */\nclass LegacyCache {\n private _keys: any[] = [];\n private _values: any[] = [];\n\n has(key: any) {\n return !!~this._keys.indexOf(key);\n }\n\n get(key: any) {\n return this._values[this._keys.indexOf(key)];\n }\n\n set(key: any, value: any) {\n this._keys.push(key);\n this._values.push(value);\n }\n}\n\nfunction createCacheLegacy(): Cache {\n return new LegacyCache();\n}\n\nfunction createCacheModern(): Cache {\n return new WeakMap();\n}\n\n/**\n * Get a new cache object to prevent circular references.\n */\nexport const createCache =\n typeof WeakMap !== 'undefined' ? createCacheModern : createCacheLegacy;\n\n/**\n * Get an empty version of the object with the same prototype it has.\n */\nexport function getCleanClone(prototype: any): any {\n if (!prototype) {\n return create(null);\n }\n\n const Constructor = prototype.constructor;\n\n if (Constructor === Object) {\n return prototype === Object.prototype ? {} : create(prototype);\n }\n\n if (\n Constructor &&\n ~toStringFunction.call(Constructor).indexOf('[native code]')\n ) {\n try {\n return new Constructor();\n } catch {}\n }\n\n return create(prototype);\n}\n\nfunction getRegExpFlagsLegacy(regExp: RegExp): string {\n let flags = '';\n\n if (regExp.global) {\n flags += 'g';\n }\n\n if (regExp.ignoreCase) {\n flags += 'i';\n }\n\n if (regExp.multiline) {\n flags += 'm';\n }\n\n if (regExp.unicode) {\n flags += 'u';\n }\n\n if (regExp.sticky) {\n flags += 'y';\n }\n\n return flags;\n}\n\nfunction getRegExpFlagsModern(regExp: RegExp): string {\n return regExp.flags;\n}\n\n/**\n * Get the flags to apply to the copied regexp.\n */\nexport const getRegExpFlags =\n /test/g.flags === 'g' ? getRegExpFlagsModern : getRegExpFlagsLegacy;\n\nfunction getTagLegacy(value: any): string {\n const type = toStringObject.call(value);\n\n return type.substring(8, type.length - 1);\n}\n\nfunction getTagModern(value: any): string {\n return value[Symbol.toStringTag] || getTagLegacy(value);\n}\n\n/**\n * Get the tag of the value passed, so that the correct copier can be used.\n */\nexport const getTag =\n typeof Symbol !== 'undefined' ? getTagModern : getTagLegacy;\n","import { getCleanClone, getRegExpFlags } from './utils';\n\nimport type { Cache } from './utils';\n\nexport type InternalCopier<Value> = (value: Value, state: State) => Value;\n\nexport interface State {\n Constructor: any;\n cache: Cache;\n copier: InternalCopier<any>;\n prototype: any;\n}\n\nconst {\n defineProperty,\n getOwnPropertyDescriptor,\n getOwnPropertyNames,\n getOwnPropertySymbols,\n} = Object;\nconst { hasOwnProperty, propertyIsEnumerable } = Object.prototype;\n\nconst SUPPORTS_SYMBOL = typeof getOwnPropertySymbols === 'function';\n\nfunction getStrictPropertiesModern(object: any): Array<string | symbol> {\n return (getOwnPropertyNames(object) as Array<string | symbol>).concat(\n getOwnPropertySymbols(object)\n );\n}\n\n/**\n * Get the properites used when copying objects strictly. This includes both keys and symbols.\n */\nconst getStrictProperties = SUPPORTS_SYMBOL\n ? getStrictPropertiesModern\n : getOwnPropertyNames;\n\n/**\n * Striclty copy all properties contained on the object.\n */\nfunction copyOwnPropertiesStrict<Value>(\n value: Value,\n clone: Value,\n state: State\n): Value {\n const properties = getStrictProperties(value);\n\n for (\n let index = 0, length = properties.length, property, descriptor;\n index < length;\n ++index\n ) {\n property = properties[index];\n\n if (property === 'callee' || property === 'caller') {\n continue;\n }\n\n descriptor = getOwnPropertyDescriptor(value, property);\n\n if (!descriptor) {\n // In extra edge cases where the property descriptor cannot be retrived, fall back to\n // the loose assignment.\n (clone as any)[property] = state.copier((value as any)[property], state);\n continue;\n }\n\n // Only clone the value if actually a value, not a getter / setter.\n if (!descriptor.get && !descriptor.set) {\n descriptor.value = state.copier(descriptor.value, state);\n }\n\n try {\n defineProperty(clone, property, descriptor);\n } catch (error) {\n // Tee above can fail on node in edge cases, so fall back to the loose assignment.\n (clone as any)[property] = descriptor.value;\n }\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the indexed values in the array.\n */\nexport function copyArrayLoose(array: any[], state: State) {\n const clone = new state.Constructor();\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n\n for (let index = 0, length = array.length; index < length; ++index) {\n clone[index] = state.copier(array[index], state);\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the indexed values in the array, as well as any custom properties.\n */\nexport function copyArrayStrict<Value extends any[]>(\n array: Value,\n state: State\n) {\n const clone = new state.Constructor() as Value;\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n\n return copyOwnPropertiesStrict(array, clone, state);\n}\n\n/**\n * Copy the contents of the ArrayBuffer.\n */\nexport function copyArrayBuffer<Value extends ArrayBuffer>(\n arrayBuffer: Value,\n _state: State\n): Value {\n return arrayBuffer.slice(0) as Value;\n}\n\n/**\n * Create a new Blob with the contents of the original.\n */\nexport function copyBlob<Value extends Blob>(\n blob: Value,\n _state: State\n): Value {\n return blob.slice(0, blob.size, blob.type) as Value;\n}\n\n/**\n * Create a new DataView with the contents of the original.\n */\nexport function copyDataView<Value extends DataView>(\n dataView: Value,\n state: State\n): Value {\n return new state.Constructor(copyArrayBuffer(dataView.buffer, state));\n}\n\n/**\n * Create a new Date based on the time of the original.\n */\nexport function copyDate<Value extends Date>(date: Value, state: State): Value {\n return new state.Constructor(date.getTime());\n}\n\n/**\n * Deeply copy the keys and values of the original.\n */\nexport function copyMapLoose<Value extends Map<any, any>>(\n map: Value,\n state: State\n): Value {\n const clone = new state.Constructor() as Value;\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(map, clone);\n\n map.forEach((value, key) => {\n clone.set(key, state.copier(value, state));\n });\n\n return clone;\n}\n\n/**\n * Deeply copy the keys and values of the original, as well as any custom properties.\n */\nexport function copyMapStrict<Value extends Map<any, any>>(\n map: Value,\n state: State\n) {\n return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);\n}\n\nfunction copyObjectLooseLegacy<Value extends Record<string, any>>(\n object: Value,\n state: State\n): Value {\n const clone: any = getCleanClone(state.prototype);\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = state.copier(object[key], state);\n }\n }\n\n return clone;\n}\n\nfunction copyObjectLooseModern<Value extends Record<string, any>>(\n object: Value,\n state: State\n): Value {\n const clone = getCleanClone(state.prototype);\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n\n for (const key in object) {\n if (hasOwnProperty.call(object, key)) {\n clone[key] = state.copier(object[key], state);\n }\n }\n\n const symbols = getOwnPropertySymbols(object);\n\n for (\n let index = 0, length = symbols.length, symbol;\n index < length;\n ++index\n ) {\n symbol = symbols[index];\n\n if (propertyIsEnumerable.call(object, symbol)) {\n clone[symbol] = state.copier((object as any)[symbol], state);\n }\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the properties (keys and symbols) and values of the original.\n */\nexport const copyObjectLoose = SUPPORTS_SYMBOL\n ? copyObjectLooseModern\n : copyObjectLooseLegacy;\n\n/**\n * Deeply copy the properties (keys and symbols) and values of the original, as well\n * as any hidden or non-enumerable properties.\n */\nexport function copyObjectStrict<Value extends Record<string, any>>(\n object: Value,\n state: State\n): Value {\n const clone = getCleanClone(state.prototype);\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n\n return copyOwnPropertiesStrict(object, clone, state);\n}\n\n/**\n * Create a new primitive wrapper from the value of the original.\n */\nexport function copyPrimitiveWrapper<\n // Specifically use the object constructor types\n // eslint-disable-next-line @typescript-eslint/ban-types\n Value extends Boolean | Number | String\n>(primitiveObject: Value, state: State): Value {\n return new state.Constructor(primitiveObject.valueOf());\n}\n\n/**\n * Create a new RegExp based on the value and flags of the original.\n */\nexport function copyRegExp<Value extends RegExp>(\n regExp: Value,\n state: State\n): Value {\n const clone = new state.Constructor(\n regExp.source,\n getRegExpFlags(regExp)\n ) as Value;\n\n clone.lastIndex = regExp.lastIndex;\n\n return clone;\n}\n\n/**\n * Return the original value (an identity function).\n *\n * @note\n * THis is used for objects that cannot be copied, such as WeakMap.\n */\nexport function copySelf<Value>(value: Value, _state: State): Value {\n return value;\n}\n\n/**\n * Deeply copy the values of the original.\n */\nexport function copySetLoose<Value extends Set<any>>(\n set: Value,\n state: State\n): Value {\n const clone = new state.Constructor() as Value;\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(set, clone);\n\n set.forEach((value) => {\n clone.add(state.copier(value, state));\n });\n\n return clone;\n}\n\n/**\n * Deeply copy the values of the original, as well as any custom properties.\n */\nexport function copySetStrict<Value extends Set<any>>(\n set: Value,\n state: State\n): Value {\n return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);\n}\n","import {\n copyArrayBuffer,\n copyArrayLoose,\n copyArrayStrict,\n copyBlob,\n copyDataView,\n copyDate,\n copyMapLoose,\n copyMapStrict,\n copyObjectLoose,\n copyObjectStrict,\n copyPrimitiveWrapper,\n copyRegExp,\n copySelf,\n copySetLoose,\n copySetStrict,\n} from './copier';\nimport { createCache, getTag } from './utils';\n\nimport type { InternalCopier, State } from './copier';\n\nexport type { State } from './copier';\n\nconst { isArray } = Array;\nconst { assign } = Object;\nconst getPrototypeOf = Object.getPrototypeOf || ((obj) => obj.__proto__)\n\nexport interface CreateCopierOptions {\n array?: InternalCopier<any[]>;\n arrayBuffer?: InternalCopier<ArrayBuffer>;\n blob?: InternalCopier<Blob>;\n dataView?: InternalCopier<DataView>;\n date?: InternalCopier<Date>;\n error?: InternalCopier<any>;\n map?: InternalCopier<Map<any, any>>;\n object?: InternalCopier<Record<string, any>>;\n regExp?: InternalCopier<RegExp>;\n set?: InternalCopier<Set<any>>;\n}\n\nconst DEFAULT_LOOSE_OPTIONS: Required<CreateCopierOptions> = {\n array: copyArrayLoose,\n arrayBuffer: copyArrayBuffer,\n blob: copyBlob,\n dataView: copyDataView,\n date: copyDate,\n error: copySelf,\n map: copyMapLoose,\n object: copyObjectLoose,\n regExp: copyRegExp,\n set: copySetLoose,\n};\nconst DEFAULT_STRICT_OPTIONS: Required<CreateCopierOptions> = assign(\n {},\n DEFAULT_LOOSE_OPTIONS,\n {\n array: copyArrayStrict,\n map: copyMapStrict,\n object: copyObjectStrict,\n set: copySetStrict,\n }\n);\n\n/**\n * Get the copiers used for each specific object tag.\n */\nfunction getTagSpecificCopiers(\n options: Required<CreateCopierOptions>\n): Record<string, InternalCopier<any>> {\n return {\n Arguments: options.object,\n Array: options.array,\n ArrayBuffer: options.arrayBuffer,\n Blob: options.blob,\n Boolean: copyPrimitiveWrapper,\n DataView: options.dataView,\n Date: options.date,\n Error: options.error,\n Float32Array: options.arrayBuffer,\n Float64Array: options.arrayBuffer,\n Int8Array: options.arrayBuffer,\n Int16Array: options.arrayBuffer,\n Int32Array: options.arrayBuffer,\n Map: options.map,\n Number: copyPrimitiveWrapper,\n Object: options.object,\n Promise: copySelf,\n RegExp: options.regExp,\n Set: options.set,\n String: copyPrimitiveWrapper,\n WeakMap: copySelf,\n WeakSet: copySelf,\n Uint8Array: options.arrayBuffer,\n Uint8ClampedArray: options.arrayBuffer,\n Uint16Array: options.arrayBuffer,\n Uint32Array: options.arrayBuffer,\n Uint64Array: options.arrayBuffer,\n };\n}\n\n/**\n * Create a custom copier based on the object-specific copy methods passed.\n */\nexport function createCopier(options: CreateCopierOptions) {\n const normalizedOptions = assign({}, DEFAULT_LOOSE_OPTIONS, options);\n const tagSpecificCopiers = getTagSpecificCopiers(normalizedOptions);\n const { Array: array, Object: object } = tagSpecificCopiers;\n\n function copier(value: any, state: State): any {\n state.prototype = state.Constructor = undefined;\n\n if (!value || typeof value !== 'object') {\n return value;\n }\n\n if (state.cache.has(value)) {\n return state.cache.get(value);\n }\n\n state.prototype = getPrototypeOf(value);\n state.Constructor = state.prototype && state.prototype.constructor;\n\n // plain objects\n if (!state.Constructor || state.Constructor === Object) {\n return object(value, state);\n }\n\n // arrays\n if (isArray(value)) {\n return array(value, state);\n }\n\n const tagSpecificCopier = tagSpecificCopiers[getTag(value)];\n\n if (tagSpecificCopier) {\n return tagSpecificCopier(value, state);\n }\n\n return typeof value.then === 'function' ? value : object(value, state);\n }\n\n return function copy<Value>(value: Value): Value {\n return copier(value, {\n Constructor: undefined,\n cache: createCache(),\n copier,\n prototype: undefined,\n });\n };\n}\n\n/**\n * Create a custom copier based on the object-specific copy methods passed, defaulting to the\n * same internals as `copyStrict`.\n */\nexport function createStrictCopier(options: CreateCopierOptions) {\n return createCopier(assign({}, DEFAULT_STRICT_OPTIONS, options));\n}\n\n/**\n * Copy an value deeply as much as possible, where strict recreation of object properties\n * are maintained. All properties (including non-enumerable ones) are copied with their\n * original property descriptors on both objects and arrays.\n */\nexport const copyStrict = createStrictCopier({});\n\n/**\n * Copy an value deeply as much as possible.\n */\nexport default createCopier({});\n"],"names":[],"mappings":";;;;AAMQ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CAAC,WAAW,KAAK,MAAM,EAAE;AACtD,YAAA,OAAO,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7B,SAAA;;AAGD,QAAA,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;AAClB,YAAA,OAAO,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AAC5B,SAAA;QAED,IAAM,iBAAiB,GAAG,kBAAkB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AAE5D,QAAA,IAAI,iBAAiB,EAAE;AACrB,YAAA,OAAO,iBAAiB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACxC,SAAA;AAED,QAAA,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,UAAU,GAAG,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACxE;IAED,OAAO,SAAS,IAAI,CAAQ,KAAY,EAAA;QACtC,OAAO,MAAM,CAAC,KAAK,EAAE;AACnB,YAAA,WAAW,EAAE,SAAS;YACtB,KAAK,EAAE,WAAW,EAAE;AACpB,YAAA,MAAM,EAAA,MAAA;AACN,YAAA,SAAS,EAAE,SAAS;AACrB,SAAA,CAAC,CAAC;AACL,KAAC,CAAC;AACJ,CAAC;AAED;;;AAGG;AACG,SAAU,kBAAkB,CAAC,OAA4B,EAAA;IAC7D,OAAO,YAAY,CAAC,MAAM,CAAC,EAAE,EAAE,sBAAsB,EAAE,OAAO,CAAC,CAAC,CAAC;AACnE,CAAC;AAED;;;;AAIG;IACU,UAAU,GAAG,kBAAkB,CAAC,EAAE,EAAE;AAEjD;;AAEG;AACH,YAAe,YAAY,CAAC,EAAE,CAAC;;;;;;;"}
1
+ {"version":3,"file":"index.cjs","sources":["../../../src/utils.ts","../../../src/copier.ts","../../../src/options.ts","../../../src/index.ts"],"sourcesContent":["export interface Cache {\n has: (value: any) => boolean;\n set: (key: any, value: any) => void;\n get: (key: any) => any;\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst toStringFunction = Function.prototype.toString;\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst toStringObject = Object.prototype.toString;\n\n/**\n * Get an empty version of the object with the same prototype it has.\n */\nexport function getCleanClone(prototype: any): any {\n if (!prototype) {\n return Object.create(null);\n }\n\n const Constructor = prototype.constructor;\n\n if (Constructor === Object) {\n return prototype === Object.prototype ? {} : Object.create(prototype as object | null);\n }\n\n if (Constructor && ~toStringFunction.call(Constructor).indexOf('[native code]')) {\n try {\n return new Constructor();\n } catch {\n // Ignore\n }\n }\n\n return Object.create(prototype as object | null);\n}\n\n/**\n * Get the tag of the value passed, so that the correct copier can be used.\n */\nexport function getTag(value: any): string {\n const stringTag = value[Symbol.toStringTag];\n\n if (stringTag) {\n return stringTag;\n }\n\n const type = toStringObject.call(value);\n\n return type.substring(8, type.length - 1);\n}\n","import { getCleanClone } from './utils.js';\nimport type { Cache } from './utils.ts';\n\nexport type InternalCopier<Value> = (value: Value, state: State) => Value;\n\nexport interface State {\n Constructor: any;\n cache: Cache;\n copier: InternalCopier<any>;\n prototype: any;\n}\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst { propertyIsEnumerable } = Object.prototype;\n\nfunction copyOwnDescriptor<Value extends object>(\n original: Value,\n clone: Value,\n property: string | symbol,\n state: State,\n): void {\n const ownDescriptor = Object.getOwnPropertyDescriptor(original, property) || {\n configurable: true,\n enumerable: true,\n value: original[property as keyof Value],\n writable: true,\n };\n const descriptor =\n ownDescriptor.get || ownDescriptor.set\n ? ownDescriptor\n : {\n configurable: ownDescriptor.configurable,\n enumerable: ownDescriptor.enumerable,\n value: state.copier(ownDescriptor.value, state),\n writable: ownDescriptor.writable,\n };\n\n try {\n Object.defineProperty(clone, property, descriptor);\n } catch {\n // The above can fail on node in extreme edge cases, so fall back to the loose assignment.\n clone[property as keyof Value] = descriptor.get ? descriptor.get() : descriptor.value;\n }\n}\n\n/**\n * Strictly copy all properties contained on the object.\n */\nfunction copyOwnPropertiesStrict<Value extends object>(value: Value, clone: Value, state: State): Value {\n for (const name of Object.getOwnPropertyNames(value)) {\n copyOwnDescriptor(value, clone, name, state);\n }\n\n for (const symbol of Object.getOwnPropertySymbols(value)) {\n copyOwnDescriptor(value, clone, symbol, state);\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the indexed values in the array.\n */\nexport function copyArrayLoose(array: any[], state: State) {\n const clone = new state.Constructor();\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n\n for (let index = 0; index < array.length; ++index) {\n clone[index] = state.copier(array[index], state);\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the indexed values in the array, as well as any custom properties.\n */\nexport function copyArrayStrict<Value extends any[]>(array: Value, state: State) {\n const clone = new state.Constructor() as Value;\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(array, clone);\n\n return copyOwnPropertiesStrict(array, clone, state);\n}\n\n/**\n * Copy the contents of the ArrayBuffer.\n */\nexport function copyArrayBuffer<Value extends ArrayBufferLike>(arrayBuffer: Value, _state: State): Value {\n return arrayBuffer.slice(0) as Value;\n}\n\n/**\n * Create a new Blob with the contents of the original.\n */\nexport function copyBlob<Value extends Blob>(blob: Value, _state: State): Value {\n return blob.slice(0, blob.size, blob.type) as Value;\n}\n\n/**\n * Create a new DataView with the contents of the original.\n */\nexport function copyDataView<Value extends DataView>(dataView: Value, state: State): Value {\n return new state.Constructor(copyArrayBuffer(dataView.buffer, state));\n}\n\n/**\n * Create a new Date based on the time of the original.\n */\nexport function copyDate<Value extends Date>(date: Value, state: State): Value {\n return new state.Constructor(date.getTime());\n}\n\n/**\n * Deeply copy the keys and values of the original.\n */\nexport function copyMapLoose<Value extends Map<any, any>>(map: Value, state: State): Value {\n const clone = new state.Constructor() as Value;\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(map, clone);\n\n for (const [key, value] of map) {\n clone.set(key, state.copier(value, state));\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the keys and values of the original, as well as any custom properties.\n */\nexport function copyMapStrict<Value extends Map<any, any>>(map: Value, state: State) {\n return copyOwnPropertiesStrict(map, copyMapLoose(map, state), state);\n}\n\n/**\n * Deeply copy the properties (keys and symbols) and values of the original.\n */\nexport function copyObjectLoose<Value extends Record<string, any>>(object: Value, state: State): Value {\n const clone = getCleanClone(state.prototype);\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n\n for (const key of Object.keys(object)) {\n clone[key] = state.copier(object[key], state);\n }\n\n for (const symbol of Object.getOwnPropertySymbols(object)) {\n if (propertyIsEnumerable.call(object, symbol)) {\n clone[symbol] = state.copier((object as any)[symbol], state);\n }\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the properties (keys and symbols) and values of the original, as well\n * as any hidden or non-enumerable properties.\n */\nexport function copyObjectStrict<Value extends Record<string, any>>(object: Value, state: State): Value {\n const clone = getCleanClone(state.prototype);\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(object, clone);\n\n return copyOwnPropertiesStrict(object, clone, state);\n}\n\n/**\n * Create a new primitive wrapper from the value of the original.\n */\nexport function copyPrimitiveWrapper<\n // Specifically use the object constructor types\n // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\n Value extends Boolean | Number | String,\n>(primitiveObject: Value, state: State): Value {\n return new state.Constructor(primitiveObject.valueOf());\n}\n\n/**\n * Create a new RegExp based on the value and flags of the original.\n */\nexport function copyRegExp<Value extends RegExp>(regExp: Value, state: State): Value {\n const clone = new state.Constructor(regExp.source, regExp.flags) as Value;\n\n clone.lastIndex = regExp.lastIndex;\n\n return clone;\n}\n\n/**\n * Return the original value (an identity function).\n *\n * @note\n * THis is used for objects that cannot be copied, such as WeakMap.\n */\nexport function copySelf<Value>(value: Value, _state: State): Value {\n return value;\n}\n\n/**\n * Deeply copy the values of the original.\n */\nexport function copySetLoose<Value extends Set<any>>(set: Value, state: State): Value {\n const clone = new state.Constructor() as Value;\n\n // set in the cache immediately to be able to reuse the object recursively\n state.cache.set(set, clone);\n\n for (const value of set) {\n clone.add(state.copier(value, state));\n }\n\n return clone;\n}\n\n/**\n * Deeply copy the values of the original, as well as any custom properties.\n */\nexport function copySetStrict<Value extends Set<any>>(set: Value, state: State): Value {\n return copyOwnPropertiesStrict(set, copySetLoose(set, state), state);\n}\n","import {\n copyArrayBuffer,\n copyArrayLoose,\n copyArrayStrict,\n copyBlob,\n copyDataView,\n copyDate,\n copyMapLoose,\n copyMapStrict,\n copyObjectLoose,\n copyObjectStrict,\n copyPrimitiveWrapper,\n copyRegExp,\n copySelf,\n copySetLoose,\n copySetStrict,\n} from './copier.js';\nimport type { InternalCopier } from './copier.ts';\nimport type { Cache } from './utils.ts';\n\nexport interface CopierMethods {\n array?: InternalCopier<any[]>;\n arrayBuffer?: InternalCopier<ArrayBuffer>;\n asyncGenerator?: InternalCopier<AsyncGenerator>;\n blob?: InternalCopier<Blob>;\n dataView?: InternalCopier<DataView>;\n date?: InternalCopier<Date>;\n error?: InternalCopier<Error>;\n generator?: InternalCopier<Generator>;\n map?: InternalCopier<Map<any, any>>;\n object?: InternalCopier<Record<string, any>>;\n regExp?: InternalCopier<RegExp>;\n set?: InternalCopier<Set<any>>;\n}\n\ninterface Copiers {\n [key: string]: InternalCopier<any> | undefined;\n\n Arguments: InternalCopier<Record<string, any>>;\n Array: InternalCopier<any[]>;\n ArrayBuffer: InternalCopier<ArrayBuffer>;\n AsyncGenerator: InternalCopier<AsyncGenerator>;\n BigInt64Array: InternalCopier<ArrayBuffer>;\n BigUint64Array: InternalCopier<ArrayBuffer>;\n Blob: InternalCopier<Blob>;\n // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\n Boolean: InternalCopier<Boolean>;\n DataView: InternalCopier<DataView>;\n Date: InternalCopier<Date>;\n Error: InternalCopier<Error>;\n Float32Array: InternalCopier<ArrayBuffer>;\n Float64Array: InternalCopier<ArrayBuffer>;\n Generator: InternalCopier<Generator>;\n Int8Array: InternalCopier<ArrayBuffer>;\n Int16Array: InternalCopier<ArrayBuffer>;\n Int32Array: InternalCopier<ArrayBuffer>;\n Map: InternalCopier<Map<any, any>>;\n // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\n Number: InternalCopier<Number>;\n Object: InternalCopier<Record<string, any>>;\n Promise: InternalCopier<Promise<any>>;\n RegExp: InternalCopier<RegExp>;\n Set: InternalCopier<Set<any>>;\n // eslint-disable-next-line @typescript-eslint/no-wrapper-object-types\n String: InternalCopier<String>;\n WeakMap: InternalCopier<WeakMap<any, any>>;\n WeakSet: InternalCopier<WeakSet<any>>;\n Uint8Array: InternalCopier<ArrayBuffer>;\n Uint8ClampedArray: InternalCopier<ArrayBuffer>;\n Uint16Array: InternalCopier<ArrayBuffer>;\n Uint32Array: InternalCopier<ArrayBuffer>;\n}\n\nexport interface CreateCopierOptions {\n createCache?: () => Cache;\n methods?: CopierMethods;\n strict?: boolean;\n}\n\nexport interface RequiredCreateCopierOptions extends Omit<Required<CreateCopierOptions>, 'methods'> {\n copiers: Copiers;\n methods: Required<CopierMethods>;\n}\n\nexport function createDefaultCache(): Cache {\n return new WeakMap();\n}\n\nexport function getOptions({\n createCache: createCacheOverride,\n methods: methodsOverride,\n strict,\n}: CreateCopierOptions): RequiredCreateCopierOptions {\n const defaultMethods = {\n array: strict ? copyArrayStrict : copyArrayLoose,\n arrayBuffer: copyArrayBuffer,\n asyncGenerator: copySelf,\n blob: copyBlob,\n dataView: copyDataView,\n date: copyDate,\n error: copySelf,\n generator: copySelf,\n map: strict ? copyMapStrict : copyMapLoose,\n object: strict ? copyObjectStrict : copyObjectLoose,\n regExp: copyRegExp,\n set: strict ? copySetStrict : copySetLoose,\n };\n\n const methods = methodsOverride ? Object.assign(defaultMethods, methodsOverride) : defaultMethods;\n const copiers = getTagSpecificCopiers(methods);\n const createCache = createCacheOverride || createDefaultCache;\n\n // Extra safety check to ensure that object and array copiers are always provided,\n // avoiding runtime errors.\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition\n if (!copiers.Object || !copiers.Array) {\n throw new Error('An object and array copier must be provided.');\n }\n\n return { createCache, copiers, methods, strict: Boolean(strict) };\n}\n\n/**\n * Get the copiers used for each specific object tag.\n */\nexport function getTagSpecificCopiers(methods: Required<CopierMethods>): Copiers {\n return {\n Arguments: methods.object,\n Array: methods.array,\n ArrayBuffer: methods.arrayBuffer,\n AsyncGenerator: methods.asyncGenerator,\n BigInt64Array: methods.arrayBuffer,\n BigUint64Array: methods.arrayBuffer,\n Blob: methods.blob,\n Boolean: copyPrimitiveWrapper,\n DataView: methods.dataView,\n Date: methods.date,\n Error: methods.error,\n Float32Array: methods.arrayBuffer,\n Float64Array: methods.arrayBuffer,\n Generator: methods.generator,\n Int8Array: methods.arrayBuffer,\n Int16Array: methods.arrayBuffer,\n Int32Array: methods.arrayBuffer,\n Map: methods.map,\n Number: copyPrimitiveWrapper,\n Object: methods.object,\n Promise: copySelf,\n RegExp: methods.regExp,\n Set: methods.set,\n String: copyPrimitiveWrapper,\n WeakMap: copySelf,\n WeakSet: copySelf,\n Uint8Array: methods.arrayBuffer,\n Uint8ClampedArray: methods.arrayBuffer,\n Uint16Array: methods.arrayBuffer,\n Uint32Array: methods.arrayBuffer,\n };\n}\n","import type { State } from './copier.ts';\nimport { getOptions } from './options.js';\nimport type { CreateCopierOptions } from './options.ts';\nimport { getTag } from './utils.js';\n\nexport type { State } from './copier.ts';\nexport type { CreateCopierOptions } from './options.ts';\n\n/**\n * Create a custom copier based on custom options for any of the following:\n * - `createCache` method to create a cache for copied objects\n * - custom copier `methods` for specific object types\n * - `strict` mode to copy all properties with their descriptors\n */\nexport function createCopier(options: CreateCopierOptions = {}) {\n const { createCache, copiers } = getOptions(options);\n const { Array: copyArray, Object: copyObject } = copiers;\n\n function copier(value: any, state: State): any {\n state.prototype = state.Constructor = undefined;\n\n if (!value || typeof value !== 'object') {\n return value;\n }\n\n if (state.cache.has(value)) {\n return state.cache.get(value);\n }\n\n state.prototype = Object.getPrototypeOf(value);\n // Using logical AND for speed, since optional chaining transforms to\n // a local variable usage.\n // eslint-disable-next-line @typescript-eslint/prefer-optional-chain\n state.Constructor = state.prototype && state.prototype.constructor;\n\n // plain objects\n if (!state.Constructor || state.Constructor === Object) {\n return copyObject(value as Record<string, any>, state);\n }\n\n // arrays\n if (Array.isArray(value)) {\n return copyArray(value, state);\n }\n\n const tagSpecificCopier = copiers[getTag(value)];\n\n if (tagSpecificCopier) {\n return tagSpecificCopier(value, state);\n }\n\n return typeof value.then === 'function' ? value : copyObject(value as Record<string, any>, state);\n }\n\n return function copy<Value>(value: Value): Value {\n return copier(value, {\n Constructor: undefined,\n cache: createCache(),\n copier,\n prototype: undefined,\n });\n };\n}\n\n/**\n * Copy an value deeply as much as possible, where strict recreation of object properties\n * are maintained. All properties (including non-enumerable ones) are copied with their\n * original property descriptors on both objects and arrays.\n */\nexport const copyStrict = createCopier({ strict: true });\n\n/**\n * Copy an value deeply as much as possible.\n */\nexport const copy = createCopier();\n"],"names":[],"mappings":";;AAMA;AACA,MAAM,gBAAgB,GAAG,QAAQ,CAAC,SAAS,CAAC,QAAQ;AACpD;AACA,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ;AAEhD;;AAEG;AACG,SAAU,aAAa,CAAC,SAAc,EAAA;IAC1C,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;IAC5B;AAEA,IAAA,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW;AAEzC,IAAA,IAAI,WAAW,KAAK,MAAM,EAAE;AAC1B,QAAA,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,GAAG,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,SAA0B,CAAC;IACxF;AAEA,IAAA,IAAI,WAAW,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE;AAC/E,QAAA,IAAI;YACF,OAAO,IAAI,WAAW,EAAE;QAC1B;AAAE,QA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