alran 0.0.0-stage → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ALRAN_TOOLS_NOTICES.md +64 -0
- package/LICENSE +27 -0
- package/LICENSE-STATUS.md +21 -0
- package/NOTICE +6 -0
- package/README.md +289 -2
- package/THIRD_PARTY_NOTICES.md +113 -0
- package/alran-tools.js +3 -0
- package/assets/agents/_default/prompt-auto_classifier.md +185 -0
- package/assets/agents/_default/prompt-auto_classifier_extras.md +17 -0
- package/assets/agents/_default/prompt-base-all.md +133 -0
- package/assets/agents/_default/prompt-base-all.md.hbs +228 -0
- package/assets/agents/_default/prompt-base-windows.md +5 -0
- package/assets/agents/_default/prompt-base-windows.md.hbs +5 -0
- package/assets/agents/_default/prompt-base-worker.md +10 -0
- package/assets/agents/_default/prompt-base-worker.md.hbs +27 -0
- package/assets/agents/_default/prompt-compact.md +76 -0
- package/assets/agents/_default/prompt-compact_continue.md +9 -0
- package/assets/agents/_default/prompt-git.md +8 -0
- package/assets/agents/_default/prompt-goal.md +13 -0
- package/assets/agents/_default/prompt-session-branch.md +3 -0
- package/assets/agents/_default/prompt-session-branch.md.hbs +30 -0
- package/assets/agents/_default/prompt-session-root.md +3 -0
- package/assets/agents/_default/prompt-session-root.md.hbs +32 -0
- package/assets/agents/_default/prompt-title.md +11 -0
- package/assets/agents/_default/prompt-tool_agent.md +22 -0
- package/assets/agents/_migration/README.md +20 -0
- package/assets/agents/_migration/coder/PERSONA.md +11 -0
- package/assets/agents/_migration/coder/system-prompt.md.hbs +42 -0
- package/assets/agents/_migration/general/PERSONA.md +11 -0
- package/assets/agents/_migration/general/system-prompt.md.hbs +49 -0
- package/assets/agents/_v2/AGENT_CONTEXT.md.hbs +245 -0
- package/assets/agents/_v2/PTC_TOOL_CALLS.md.hbs +35 -0
- package/assets/agents/_v2/coding/SYSTEM.md.hbs +173 -0
- package/assets/agents/_v2/explore.md.hbs +38 -0
- package/assets/agents/_v2/tui/SYSTEM.md.hbs +211 -0
- package/assets/agents/_v2/verifier.md.hbs +32 -0
- package/assets/agents/_v2/work/SYSTEM.md.hbs +186 -0
- package/assets/agents/_v2/worker.md.hbs +27 -0
- package/assets/agents/alran/PERSONA.md +7 -0
- package/assets/agents/alran/features/cron.md.hbs +0 -0
- package/assets/agents/alran/features/delegation.md.hbs +56 -0
- package/assets/agents/alran/features/memory.md.hbs +61 -0
- package/assets/agents/alran/features/recoverable-deletion.md.hbs +10 -0
- package/assets/agents/alran/features/task-management.md.hbs +11 -0
- package/assets/agents/alran/features/web-search.md.hbs +11 -0
- package/assets/agents/alran/modes/coding/online/PERSONA.md.hbs +20 -0
- package/assets/agents/alran/modes/coding/online/SYSTEM.md.hbs +158 -0
- package/assets/agents/alran/modes/work/online/PERSONA.md.hbs +20 -0
- package/assets/agents/alran/modes/work/online/SYSTEM.md.hbs +160 -0
- package/assets/agents/alran/prompt-session-root.md +4 -0
- package/assets/agents/alran/prompt-session-root.md.hbs +4 -0
- package/assets/agents/alran/skills/alran-code-product/SKILL.md +72 -0
- package/assets/agents/alran/skills/alran-code-product/references/account-models.md +61 -0
- package/assets/agents/alran/skills/alran-code-product/references/agents.md +34 -0
- package/assets/agents/alran/skills/alran-code-product/references/extensions.md +46 -0
- package/assets/agents/alran/skills/alran-code-product/references/workflows.md +56 -0
- package/assets/agents/alran/skills/control-in-app-browser/SKILL.md +590 -0
- package/assets/agents/alran/system-prompt.md.hbs +97 -0
- package/assets/agents/builtin-agents.json +1 -0
- package/assets/agents/desktop-task/archive-title/system-en.md +1 -0
- package/assets/agents/desktop-task/checkpoint/system.md +19 -0
- package/assets/agents/desktop-task/output-revision/system.md +1 -0
- package/assets/agents/desktop-task/retry/continuation.md +4 -0
- package/assets/agents/desktop-task/session-title/system.md +41 -0
- package/assets/agents/explore/PERSONA.md +8 -0
- package/assets/agents/explore/agent.md +14 -0
- package/assets/agents/explore/system-prompt.md.hbs +35 -0
- package/assets/agents/greeting.md +61 -0
- package/assets/agents/managed-prompts.json +47 -0
- package/assets/agents/prompt-exemptions.json +36 -0
- package/assets/agents/verifier/PERSONA.md +8 -0
- package/assets/agents/verifier/agent.md +17 -0
- package/assets/agents/verifier/system-prompt.md.hbs +28 -0
- package/assets/agents/worker/PERSONA.md +8 -0
- package/assets/agents/worker/agent.md +18 -0
- package/assets/agents/worker/system-prompt.md.hbs +22 -0
- package/assets/agents/workflow/code-review/review-candidates.md +120 -0
- package/assets/agents/workflow/code-review/reviewer-system.md +75 -0
- package/assets/agents/workflow/goal/budget-limit.md +16 -0
- package/assets/agents/workflow/goal/continuation.md +62 -0
- package/assets/agents/workflow/goal/objective-updated.md +16 -0
- package/assets/agents/workflow/goal/recovery-terminal-audit.md +13 -0
- package/assets/agents/workflow/goal/recovery.md +11 -0
- package/assets/agents/workflow/goal/terminal-audit.md +10 -0
- package/assets/agents/workflow/plan-mode/agent-entry.md +72 -0
- package/assets/agents/workflow/prompt-hook/system.md +0 -0
- package/assets/models-dev-catalog.json.gz +0 -0
- package/assets/prompts/code-review/review-candidates.md +120 -0
- package/assets/prompts/code-review/reviewer-system.md +75 -0
- package/assets/skills/alran-tools-master/SKILL.md +127 -0
- package/assets/skills/code-review/SKILL.md +51 -0
- package/assets/skills/cu-desktop/SKILL.md +255 -0
- package/assets/skills/deep-research/SKILL.md +30 -0
- package/assets/skills/deploy-website/SKILL.md +52 -0
- package/assets/skills/docx/LICENSE +21 -0
- package/assets/skills/docx/SKILL.md +259 -0
- package/assets/skills/docx/assets/styles/academic_styles.xml +250 -0
- package/assets/skills/docx/assets/styles/corporate_styles.xml +284 -0
- package/assets/skills/docx/assets/styles/default_styles.xml +449 -0
- package/assets/skills/docx/assets/xsd/aesthetic-rules.xsd +470 -0
- package/assets/skills/docx/assets/xsd/business-rules.xsd +130 -0
- package/assets/skills/docx/assets/xsd/common-types.xsd +159 -0
- package/assets/skills/docx/assets/xsd/wml-subset.xsd +589 -0
- package/assets/skills/docx/docs/acceptance-checklists/create.md +7 -0
- package/assets/skills/docx/docs/acceptance-checklists/edit.md +6 -0
- package/assets/skills/docx/docs/acceptance-checklists/layout-repair.md +7 -0
- package/assets/skills/docx/docs/acceptance-checklists/template.md +6 -0
- package/assets/skills/docx/docs/acceptance.md +139 -0
- package/assets/skills/docx/docs/anti-patterns.md +14 -0
- package/assets/skills/docx/docs/backends.md +116 -0
- package/assets/skills/docx/docs/evidence.md +73 -0
- package/assets/skills/docx/docs/failure-taxonomy.md +71 -0
- package/assets/skills/docx/docs/index.md +50 -0
- package/assets/skills/docx/docs/rendered-delivery.md +125 -0
- package/assets/skills/docx/docs/router.md +122 -0
- package/assets/skills/docx/docs/tables-and-numbering.md +27 -0
- package/assets/skills/docx/docs/task-apply-template.md +141 -0
- package/assets/skills/docx/docs/task-compare-two-docx.md +48 -0
- package/assets/skills/docx/docs/task-create.md +124 -0
- package/assets/skills/docx/docs/task-edit-fill.md +69 -0
- package/assets/skills/docx/docs/task-read-content.md +148 -0
- package/assets/skills/docx/docs/task-read-rendered.md +78 -0
- package/assets/skills/docx/docs/task-read-structure.md +93 -0
- package/assets/skills/docx/docs/task-repair-layout.md +70 -0
- package/assets/skills/docx/docs/template-dsl.md +32 -0
- package/assets/skills/docx/docs/track-changes.md +15 -0
- package/assets/skills/docx/docs/xml-patch-dsl.md +33 -0
- package/assets/skills/docx/references/cjk_typography.md +357 -0
- package/assets/skills/docx/references/cjk_university_template_guide.md +184 -0
- package/assets/skills/docx/references/comments_guide.md +191 -0
- package/assets/skills/docx/references/design_good_bad_examples.md +829 -0
- package/assets/skills/docx/references/design_principles.md +819 -0
- package/assets/skills/docx/references/openxml_element_order.md +308 -0
- package/assets/skills/docx/references/openxml_encyclopedia_part1.md +4061 -0
- package/assets/skills/docx/references/openxml_encyclopedia_part2.md +2820 -0
- package/assets/skills/docx/references/openxml_encyclopedia_part3.md +3381 -0
- package/assets/skills/docx/references/openxml_namespaces.md +82 -0
- package/assets/skills/docx/references/openxml_units.md +72 -0
- package/assets/skills/docx/references/sample-patch-plans.json +22 -0
- package/assets/skills/docx/references/sample-task-intents.json +5 -0
- package/assets/skills/docx/references/sample-template-manifests.json +21 -0
- package/assets/skills/docx/references/scenario_a_create.md +284 -0
- package/assets/skills/docx/references/scenario_b_edit_content.md +295 -0
- package/assets/skills/docx/references/scenario_c_apply_template.md +456 -0
- package/assets/skills/docx/references/track_changes_guide.md +200 -0
- package/assets/skills/docx/references/troubleshooting.md +506 -0
- package/assets/skills/docx/references/typography_guide.md +294 -0
- package/assets/skills/docx/references/xsd_validation_guide.md +158 -0
- package/assets/skills/docx/scripts/build_patch_plan.py +29 -0
- package/assets/skills/docx/scripts/diff_docx_structure.py +61 -0
- package/assets/skills/docx/scripts/doc_to_docx.ps1 +85 -0
- package/assets/skills/docx/scripts/doc_to_docx.sh +40 -0
- package/assets/skills/docx/scripts/docx_preview.ps1 +76 -0
- package/assets/skills/docx/scripts/docx_preview.sh +37 -0
- package/assets/skills/docx/scripts/docx_to_pdf.py +87 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Cli/AlranAIDocx.Cli.csproj +19 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Cli/Program.cs +18 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/AlranAIDocx.Core.csproj +15 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/AnalyzeCommand.cs +147 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/ApplyTemplateCommand.cs +322 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/CreateCommand.cs +324 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/DiffCommand.cs +155 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/EditContentCommand.cs +487 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/FixOrderCommand.cs +108 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/MergeRunsCommand.cs +122 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Commands/ValidateCommand.cs +107 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/CommentSynchronizer.cs +169 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/ElementOrder.cs +80 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/NamespaceConstants.cs +42 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/RunMerger.cs +81 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/StyleAnalyzer.cs +81 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/TrackChangesHelper.cs +99 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/OpenXml/UnitConverter.cs +23 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/AestheticRecipeSamples.cs +1832 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs +910 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs +999 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs +1048 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs +1038 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/CharacterFormattingSamples.cs +1020 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/DocumentCreationSamples.cs +1121 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/FieldAndTocSamples.cs +624 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/FootnoteAndCommentSamples.cs +675 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/HeaderFooterSamples.cs +838 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/ImageSamples.cs +917 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/ListAndNumberingSamples.cs +826 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/ParagraphFormattingSamples.cs +1199 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/StyleSystemSamples.cs +1487 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/TableSamples.cs +1163 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Samples/TrackChangesSamples.cs +595 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Typography/CjkHelper.cs +39 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Typography/FontDefaults.cs +24 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Typography/PageSizes.cs +20 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Validation/BusinessRuleValidator.cs +224 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Validation/GateCheckValidator.cs +148 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Validation/ValidationResult.cs +23 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.Core/Validation/XsdValidator.cs +69 -0
- package/assets/skills/docx/scripts/dotnet/AlranAIDocx.slnx +4 -0
- package/assets/skills/docx/scripts/env_check.ps1 +327 -0
- package/assets/skills/docx/scripts/env_check.sh +340 -0
- package/assets/skills/docx/scripts/extract_docx_text.py +1075 -0
- package/assets/skills/docx/scripts/pack_docx.py +31 -0
- package/assets/skills/docx/scripts/read_docx_structure.py +1032 -0
- package/assets/skills/docx/scripts/render_docx_pages.py +147 -0
- package/assets/skills/docx/scripts/rendered_report.py +609 -0
- package/assets/skills/docx/scripts/setup.ps1 +542 -0
- package/assets/skills/docx/scripts/setup.sh +537 -0
- package/assets/skills/docx/scripts/unpack_docx.py +29 -0
- package/assets/skills/docx/scripts/validate_template_manifest.py +60 -0
- package/assets/skills/docx/scripts/verify_anchor_atomicity.py +87 -0
- package/assets/skills/edit-deployed-website/SKILL.md +27 -0
- package/assets/skills/init/SKILL.md +135 -0
- package/assets/skills/llm-call/SKILL.md +48 -0
- package/assets/skills/llm-call/scripts/llm_call.py +458 -0
- package/assets/skills/pdf/SKILL.md +280 -0
- package/assets/skills/pdf/docs/advanced-reference.md +711 -0
- package/assets/skills/pdf/docs/create-guide.md +437 -0
- package/assets/skills/pdf/docs/design-guide.md +204 -0
- package/assets/skills/pdf/docs/forms-guide.md +462 -0
- package/assets/skills/pdf/docs/html-pdf-spec.md +500 -0
- package/assets/skills/pdf/docs/latex-academic-thesis-guide.md +233 -0
- package/assets/skills/pdf/docs/latex-technical-book-guide.md +112 -0
- package/assets/skills/pdf/docs/pitfalls-index.md +792 -0
- package/assets/skills/pdf/docs/read-guide.md +358 -0
- package/assets/skills/pdf/docs/reformat-guide.md +238 -0
- package/assets/skills/pdf/docs/skill-readme-archive.md +151 -0
- package/assets/skills/pdf/docs/troubleshooting.md +86 -0
- package/assets/skills/pdf/docs/vision-guide.md +188 -0
- package/assets/skills/pdf/scripts/__init__.py +0 -0
- package/assets/skills/pdf/scripts/_pdf_read_lib.py +284 -0
- package/assets/skills/pdf/scripts/fill/__init__.py +0 -0
- package/assets/skills/pdf/scripts/fill/acroform_apply.py +153 -0
- package/assets/skills/pdf/scripts/fill/overlay_apply.py +109 -0
- package/assets/skills/pdf/scripts/lib/__init__.py +0 -0
- package/assets/skills/pdf/scripts/lib/acroform_io.py +170 -0
- package/assets/skills/pdf/scripts/lib/cli_utils.py +41 -0
- package/assets/skills/pdf/scripts/lib/geometry.py +79 -0
- package/assets/skills/pdf/scripts/make.sh +388 -0
- package/assets/skills/pdf/scripts/merge.py +112 -0
- package/assets/skills/pdf/scripts/pdf_inspect/__init__.py +0 -0
- package/assets/skills/pdf/scripts/pdf_inspect/acroform_inspect.py +52 -0
- package/assets/skills/pdf/scripts/pdf_inspect/acroform_probe.py +57 -0
- package/assets/skills/pdf/scripts/pdf_inspect/layout_scan.py +164 -0
- package/assets/skills/pdf/scripts/read_pdf_vision.py +473 -0
- package/assets/skills/pdf/scripts/reformat_parse.py +181 -0
- package/assets/skills/pdf/scripts/render/__init__.py +0 -0
- package/assets/skills/pdf/scripts/render/overlay_preview.py +86 -0
- package/assets/skills/pdf/scripts/render/page_rasterize.py +85 -0
- package/assets/skills/pdf/scripts/render_html.cjs +205 -0
- package/assets/skills/pdf/scripts/validate/__init__.py +0 -0
- package/assets/skills/pdf/scripts/validate/geometry_lint.py +124 -0
- package/assets/skills/pdf/templates/INDEX.md +90 -0
- package/assets/skills/pdf/templates/bilingual-menu-premium/README.md +175 -0
- package/assets/skills/pdf/templates/bilingual-menu-premium/skeleton.html +343 -0
- package/assets/skills/pdf/templates/brand-guide-2page/README.md +140 -0
- package/assets/skills/pdf/templates/brand-guide-2page/skeleton.html +264 -0
- package/assets/skills/pdf/templates/data-viz-report/README.md +234 -0
- package/assets/skills/pdf/templates/data-viz-report/skeleton.html +835 -0
- package/assets/skills/pdf/templates/form-fill-acroform/README.md +195 -0
- package/assets/skills/pdf/templates/form-fill-acroform/field_values.template.json +118 -0
- package/assets/skills/pdf/templates/latex-academic-thesis/README.md +146 -0
- package/assets/skills/pdf/templates/latex-academic-thesis/source.tex +334 -0
- package/assets/skills/pdf/templates/latex-technical-book/README.md +130 -0
- package/assets/skills/pdf/templates/latex-technical-book/README.template-source.md +62 -0
- package/assets/skills/pdf/templates/latex-technical-book/source.tex +439 -0
- package/assets/skills/pdf/templates/multi-article-aggregator/README.md +148 -0
- package/assets/skills/pdf/templates/multi-article-aggregator/pipeline.md +223 -0
- package/assets/skills/pdf/templates/multilang-research-report/README.md +136 -0
- package/assets/skills/pdf/templates/multilang-research-report/skeleton.html +242 -0
- package/assets/skills/pdf/templates/reformat-default/README.md +136 -0
- package/assets/skills/pdf/templates/reformat-default/skeleton.html +204 -0
- package/assets/skills/pdf/templates/translate-preserve-layout/README.md +136 -0
- package/assets/skills/pdf/templates/translate-preserve-layout/skeleton.html +96 -0
- package/assets/skills/pdf/templates/translate-preserve-layout/terminology.template.json +66 -0
- package/assets/skills/pptx/SKILL.md +283 -0
- package/assets/skills/pptx/references/design-system.md +424 -0
- package/assets/skills/pptx/references/editing.md +162 -0
- package/assets/skills/pptx/references/element-map.md +229 -0
- package/assets/skills/pptx/references/pitfalls.md +205 -0
- package/assets/skills/pptx/references/pptxgenjs.md +420 -0
- package/assets/skills/pptx/references/preview-selection-writeback.md +65 -0
- package/assets/skills/pptx/references/python-pptx-recipes.md +63 -0
- package/assets/skills/pptx/references/slide-types.md +413 -0
- package/assets/skills/pptx/scripts/alran-ppt-map.cjs +280 -0
- package/assets/skills/pptx/scripts/audit_pptx.py +708 -0
- package/assets/skills/pptx/scripts/extract_comments.py +468 -0
- package/assets/skills/pptx/scripts/extract_images.py +226 -0
- package/assets/skills/pptx/scripts/extract_pptx.py +285 -0
- package/assets/skills/pptx/scripts/pdf2png.swift +203 -0
- package/assets/skills/pptx/scripts/pptx-screenshot.sh +105 -0
- package/assets/skills/resume-codex/SKILL.md +53 -0
- package/assets/skills/resume-codex/scripts/session-reader.mjs +445 -0
- package/assets/skills/skill-creator/SKILL.md +188 -0
- package/assets/skills/skill-creator/references/anti-patterns.md +149 -0
- package/assets/skills/skill-creator/references/commands-macos-linux.md +38 -0
- package/assets/skills/skill-creator/references/commands-windows-powershell.md +48 -0
- package/assets/skills/skill-creator/references/description-rubric.md +83 -0
- package/assets/skills/skill-creator/references/skill-template.md +101 -0
- package/assets/skills/skill-creator/references/when-to-bundle-scripts.md +139 -0
- package/assets/skills/skill-creator/scripts/lint-skill.js +226 -0
- package/assets/skills/skill-refiner/SKILL.md +137 -0
- package/assets/skills/visual-page/SKILL.md +194 -0
- package/assets/skills/x-link-reader/SKILL.md +108 -0
- package/assets/skills/xlsx/SKILL.md +498 -0
- package/assets/skills/xlsx/docs/advanced-reference.md +410 -0
- package/assets/skills/xlsx/docs/conventions-guide.md +217 -0
- package/assets/skills/xlsx/docs/create-edit-guide.md +410 -0
- package/assets/skills/xlsx/docs/pitfalls-index.md +759 -0
- package/assets/skills/xlsx/docs/raw-xml-escape-hatch.md +201 -0
- package/assets/skills/xlsx/docs/recalc-guide.md +295 -0
- package/assets/skills/xlsx/scripts/office/helpers/__init__.py +0 -0
- package/assets/skills/xlsx/scripts/office/helpers/merge_runs.py +199 -0
- package/assets/skills/xlsx/scripts/office/helpers/simplify_redlines.py +197 -0
- package/assets/skills/xlsx/scripts/office/pack.py +159 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chart.xsd +1499 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-chartDrawing.xsd +146 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-diagram.xsd +1085 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-lockedCanvas.xsd +11 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-main.xsd +3081 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-picture.xsd +23 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-spreadsheetDrawing.xsd +185 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/dml-wordprocessingDrawing.xsd +287 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/pml.xsd +1676 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-additionalCharacteristics.xsd +28 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-bibliography.xsd +144 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-commonSimpleTypes.xsd +174 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlDataProperties.xsd +25 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-customXmlSchemaProperties.xsd +18 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesCustom.xsd +59 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesExtended.xsd +56 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-documentPropertiesVariantTypes.xsd +195 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-math.xsd +582 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/shared-relationshipReference.xsd +25 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/sml.xsd +4439 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-main.xsd +570 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-officeDrawing.xsd +509 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-presentationDrawing.xsd +12 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-spreadsheetDrawing.xsd +108 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/vml-wordprocessingDrawing.xsd +96 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/wml.xsd +3646 -0
- package/assets/skills/xlsx/scripts/office/schemas/ISO-IEC29500-4_2016/xml.xsd +116 -0
- package/assets/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-contentTypes.xsd +42 -0
- package/assets/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-coreProperties.xsd +50 -0
- package/assets/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-digSig.xsd +49 -0
- package/assets/skills/xlsx/scripts/office/schemas/ecma/fouth-edition/opc-relationships.xsd +33 -0
- package/assets/skills/xlsx/scripts/office/schemas/mce/mc.xsd +75 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-2010.xsd +560 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-2012.xsd +67 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-2018.xsd +14 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-cex-2018.xsd +20 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-cid-2016.xsd +13 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-sdtdatahash-2020.xsd +4 -0
- package/assets/skills/xlsx/scripts/office/schemas/microsoft/wml-symex-2015.xsd +8 -0
- package/assets/skills/xlsx/scripts/office/soffice.py +191 -0
- package/assets/skills/xlsx/scripts/office/unpack.py +132 -0
- package/assets/skills/xlsx/scripts/office/validate.py +117 -0
- package/assets/skills/xlsx/scripts/office/validators/__init__.py +15 -0
- package/assets/skills/xlsx/scripts/office/validators/base.py +851 -0
- package/assets/skills/xlsx/scripts/office/validators/docx.py +446 -0
- package/assets/skills/xlsx/scripts/office/validators/pptx.py +275 -0
- package/assets/skills/xlsx/scripts/office/validators/redlining.py +247 -0
- package/assets/skills/xlsx/scripts/recalc.py +450 -0
- package/chunks/account-commands-JZ6NXTTK.js +2 -0
- package/chunks/anthropic-MN33DP4E.js +2 -0
- package/chunks/application-ITGAJ4HC.js +2 -0
- package/chunks/auth-command-V3RVPLZO.js +2 -0
- package/chunks/azure-openai-responses-OWHMUNKC.js +2 -0
- package/chunks/chunk-2TF6JAQM.js +2 -0
- package/chunks/chunk-33CNY6GP.js +2 -0
- package/chunks/chunk-3AODGLMF.js +2 -0
- package/chunks/chunk-44VPC5LA.js +38 -0
- package/chunks/chunk-4CN3IJFH.js +2 -0
- package/chunks/chunk-4PDIO3M6.js +2 -0
- package/chunks/chunk-4X22UJQH.js +164 -0
- package/chunks/chunk-6255CZPL.js +2 -0
- package/chunks/chunk-6P4UKHGR.js +2 -0
- package/chunks/chunk-7QLAXRD2.js +1085 -0
- package/chunks/chunk-7XYOYZX2.js +2 -0
- package/chunks/chunk-A7GMJNA2.js +29 -0
- package/chunks/chunk-AGUSPIUP.js +2 -0
- package/chunks/chunk-BQ3CF3KE.js +2 -0
- package/chunks/chunk-C3CMJAAV.js +3 -0
- package/chunks/chunk-CJM7ZJ6W.js +7 -0
- package/chunks/chunk-CSOUJVKM.js +2 -0
- package/chunks/chunk-D66ZSHXR.js +2 -0
- package/chunks/chunk-D7MGU75P.js +2 -0
- package/chunks/chunk-E3GLGDGC.js +5 -0
- package/chunks/chunk-ENHOPPS7.js +16 -0
- package/chunks/chunk-EOR6EDNR.js +2 -0
- package/chunks/chunk-EYK25HWR.js +2 -0
- package/chunks/chunk-F46IELF5.js +2 -0
- package/chunks/chunk-FC4M2B7E.js +2 -0
- package/chunks/chunk-FSNYOJPJ.js +2 -0
- package/chunks/chunk-FUERW2DW.js +3 -0
- package/chunks/chunk-FXOH6TEQ.js +21 -0
- package/chunks/chunk-GP52JZMY.js +2 -0
- package/chunks/chunk-GRXX6I72.js +2 -0
- package/chunks/chunk-GSYHBK5Q.js +6 -0
- package/chunks/chunk-HNWBFJNO.js +2 -0
- package/chunks/chunk-IIE366LR.js +6706 -0
- package/chunks/chunk-IWK7PZP7.js +207 -0
- package/chunks/chunk-J3KCPYZT.js +2 -0
- package/chunks/chunk-KCLRJQ53.js +59 -0
- package/chunks/chunk-LU4RPLJ3.js +2 -0
- package/chunks/chunk-LZJYNT32.js +2 -0
- package/chunks/chunk-M7GW4VMR.js +27 -0
- package/chunks/chunk-MACBL5HF.js +2 -0
- package/chunks/chunk-N5NTXCJI.js +2 -0
- package/chunks/chunk-N5SVBCUB.js +7 -0
- package/chunks/chunk-N6W7ZL26.js +2 -0
- package/chunks/chunk-NWB7LFOK.js +131 -0
- package/chunks/chunk-OIQ336YE.js +16 -0
- package/chunks/chunk-OQNU3VPS.js +30 -0
- package/chunks/chunk-OTDNOWXG.js +16 -0
- package/chunks/chunk-PNXZWSWT.js +3 -0
- package/chunks/chunk-QFUV5PX6.js +2 -0
- package/chunks/chunk-QIN5ZBE2.js +2 -0
- package/chunks/chunk-QKBN5CGI.js +2 -0
- package/chunks/chunk-QPGTKSIQ.js +2 -0
- package/chunks/chunk-SIOLUFGG.js +2 -0
- package/chunks/chunk-TW23QKAD.js +3 -0
- package/chunks/chunk-U3RMPDXU.js +2 -0
- package/chunks/chunk-U7U3DJHF.js +2 -0
- package/chunks/chunk-VLXX22YO.js +2 -0
- package/chunks/chunk-WHD2XVT2.js +2 -0
- package/chunks/chunk-WTAJMYF2.js +249 -0
- package/chunks/chunk-WWNUAU4P.js +29 -0
- package/chunks/chunk-WYANV3IX.js +4 -0
- package/chunks/chunk-XAGZ6ZEU.js +9 -0
- package/chunks/chunk-XFCC2CI2.js +24 -0
- package/chunks/chunk-XQK7JM66.js +2 -0
- package/chunks/chunk-YLQXZBEL.js +2 -0
- package/chunks/chunk-YPV2X2RG.js +2 -0
- package/chunks/chunk-Z6BHCXKT.js +25 -0
- package/chunks/chunk-Z6HBNJCA.js +8 -0
- package/chunks/chunk-ZQKVUPKA.js +2 -0
- package/chunks/chunk-ZQOALVGL.js +2 -0
- package/chunks/clipboard-image-PQPC4EHR.js +2 -0
- package/chunks/data-dir-LDVKDCJ2.js +2 -0
- package/chunks/dist-2BRD4JFU.js +11 -0
- package/chunks/dist-EXKHRFQO.js +5 -0
- package/chunks/emscripten-module-RD6P2XH5.js +2 -0
- package/chunks/emscripten-module-WYNDFH3N.js +2 -0
- package/chunks/emscripten-module-XPTEOIWW.js +2 -0
- package/chunks/emscripten-module-ZS3PMSDF.js +2 -0
- package/chunks/ffi-IO7WZQNG.js +2 -0
- package/chunks/ffi-M5UP5J6C.js +2 -0
- package/chunks/ffi-ORLOPBB3.js +2 -0
- package/chunks/ffi-OUPK6AY6.js +2 -0
- package/chunks/google-UJAPMFAB.js +2 -0
- package/chunks/google-vertex-VLSF55PW.js +2 -0
- package/chunks/install-source-JTIUC4G4.js +2 -0
- package/chunks/launcher-FCZ3EDBF.js +61 -0
- package/chunks/lifecycle-GY435YMF.js +2 -0
- package/chunks/main-TQGGRHTS.js +13 -0
- package/chunks/mistral-ZJZUEF2X.js +3 -0
- package/chunks/module-6F3E5H7Y-BN7QWGYB.js +2 -0
- package/chunks/module-asyncify-R6PWJ6ZV-P4FWSBAY.js +2 -0
- package/chunks/multipart-parser-L6M455MS.js +2 -0
- package/chunks/network-proxy-U72JCK2I.js +2 -0
- package/chunks/openai-codex-responses-FPCDNRL5.js +2 -0
- package/chunks/openai-completions-D32YW6KL.js +2 -0
- package/chunks/openai-responses-ZCGSENM4.js +2 -0
- package/chunks/openrouter-G2EHY5BD.js +2 -0
- package/chunks/otel-OHXIZ666.js +2 -0
- package/chunks/package-contract-GVXTMJ3N.js +2 -0
- package/chunks/pdfjs-SHZAF7PF.js +107 -0
- package/chunks/photon_rs-C52RL4CI.js +3 -0
- package/chunks/plugin-command-OSAFHS7C.js +2 -0
- package/chunks/provider-command-SKTCHD4E.js +2 -0
- package/chunks/questionnaire-bridge-ISQOCYWY.js +2 -0
- package/chunks/run-acp-command-SG2BDMFJ.js +2 -0
- package/chunks/run-exec-command-5ADSQR2Z.js +15 -0
- package/chunks/skills-command-XXXEZAG6.js +2 -0
- package/chunks/src-DNIDEMVV.js +2 -0
- package/chunks/src-IBHIRTD7.js +2 -0
- package/chunks/telemetry-J7ZLGF5X.js +2 -0
- package/chunks/telemetry-command-COQG2AKK.js +5 -0
- package/chunks/tools-WDBB2JKV.js +2 -0
- package/chunks/undici-TUGHZJSA.js +2 -0
- package/chunks/update-NB6OD572.js +14 -0
- package/chunks/update-hint-ED7O67WU.js +3 -0
- package/chunks/wechat-onboard-UWXQW2HT.js +2 -0
- package/cli.js +5 -0
- package/configs/data-minimal.yaml +50 -0
- package/embedded/alran-tools/cli.mjs +4961 -0
- package/embedded/alran-tools/manifest.json +25 -0
- package/emscripten-module.wasm +0 -0
- package/image-preview-worker.js +2 -0
- package/internal-bin/alran-tools +9 -0
- package/internal-bin/alran-tools.cmd +8 -0
- package/matrix-mcp-stdio.js +4 -0
- package/native/darwin/prebuilds/darwin-arm64/darwin-modifiers.node +0 -0
- package/native/darwin/prebuilds/darwin-x64/darwin-modifiers.node +0 -0
- package/native/win32/prebuilds/win32-arm64/win32-console-mode.node +0 -0
- package/native/win32/prebuilds/win32-x64/win32-console-mode.node +0 -0
- package/package.json +38 -4
- package/photon_rs_bg.wasm +0 -0
- package/quickjs-worker.js +152 -0
- package/vendor/java-proxy-agent/build.ts +97 -0
- package/vendor/java-proxy-agent/srt-proxy-agent.jar +0 -0
- package/vendor/seccomp/arm64/apply-seccomp +0 -0
- package/vendor/seccomp/build.ts +74 -0
- package/vendor/seccomp/x64/apply-seccomp +0 -0
- package/vendor/srt-win/arm64/srt-win.exe +0 -0
- package/vendor/srt-win/build.ts +40 -0
- package/vendor/srt-win/x64/srt-win.exe +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { createRequire as __alran_cR } from "module"; import { basename as __alran_basename, dirname as __alran_dirname, join as __alran_join } from "path"; import { fileURLToPath as __alran_fileURLToPath, pathToFileURL as __alran_pathToFileURL } from "url"; const __alran_tuiCurrentModuleDir = __alran_dirname(__alran_fileURLToPath(import.meta.url)); const __alran_tuiPackageRoot = __alran_basename(__alran_tuiCurrentModuleDir) === "chunks" ? __alran_dirname(__alran_tuiCurrentModuleDir) : __alran_tuiCurrentModuleDir; const __alran_tuiPackageEntryUrl = __alran_pathToFileURL(__alran_join(__alran_tuiPackageRoot, "cli.js")).href; const require = __alran_cR(__alran_tuiPackageEntryUrl); const __dirname = __alran_tuiPackageRoot;
|
|
2
|
+
import{a as qh}from"./chunk-N5SVBCUB.js";import{a as I,c as E,e as Ns}from"./chunk-XQK7JM66.js";var Pn=E((zO,sa)=>{"use strict";var Rt=e=>{return e&&typeof e.message==="string"};var Ln=e=>{if(!e)return;const t=e.cause;if(typeof t==="function"){const r=e.cause();return Rt(r)?r:void 0}else{return Rt(t)?t:void 0}};var ia=(e,t)=>{if(!Rt(e))return"";const r=e.stack||"";if(t.has(e)){return r+"\ncauses have become circular..."}const n=Ln(e);if(n){t.add(e);return r+"\ncaused by: "+ia(n,t)}else{return r}};var iy=e=>ia(e,new Set);var oa=(e,t,r)=>{if(!Rt(e))return"";const n=r?"":e.message||"";if(t.has(e)){return n+": ..."}const i=Ln(e);if(i){t.add(e);const o=typeof e.cause==="function";return n+(o?"":": ")+oa(i,t,o)}else{return n}};var oy=e=>oa(e,new Set);sa.exports={isErrorLike:Rt,getErrorCause:Ln,stackWithCauses:iy,messageWithCauses:oy}});var Nn=E((GO,la)=>{"use strict";var sy=Symbol("circular-ref-tag");var or=Symbol("pino-raw-err-ref");var aa=Object.create({},{type:{enumerable:true,writable:true,value:void 0},message:{enumerable:true,writable:true,value:void 0},stack:{enumerable:true,writable:true,value:void 0},aggregateErrors:{enumerable:true,writable:true,value:void 0},raw:{enumerable:false,get:function(){return this[or]},set:function(e){this[or]=e}}});Object.defineProperty(aa,or,{writable:true,value:{}});la.exports={pinoErrProto:aa,pinoErrorSymbols:{seen:sy,rawSymbol:or}}});var fa=E((YO,ca)=>{"use strict";ca.exports=Dn;var{messageWithCauses:ay,stackWithCauses:ly,isErrorLike:ua}=Pn();var{pinoErrProto:uy,pinoErrorSymbols:cy}=Nn();var{seen:kn}=cy;var{toString:fy}=Object.prototype;function Dn(e){if(!ua(e)){return e}e[kn]=void 0;const t=Object.create(uy);t.type=fy.call(e.constructor)==="[object Function]"?e.constructor.name:e.name;t.message=ay(e);t.stack=ly(e);if(Array.isArray(e.errors)){t.aggregateErrors=e.errors.map(r=>Dn(r))}for(const r in e){if(t[r]===void 0){const n=e[r];if(ua(n)){if(r!=="cause"&&!Object.prototype.hasOwnProperty.call(n,kn)){t[r]=Dn(n)}}else{t[r]=n}}}delete e[kn];t.raw=e;return t}});var pa=E((QO,da)=>{"use strict";da.exports=ar;var{isErrorLike:jn}=Pn();var{pinoErrProto:dy,pinoErrorSymbols:py}=Nn();var{seen:sr}=py;var{toString:hy}=Object.prototype;function ar(e){if(!jn(e)){return e}e[sr]=void 0;const t=Object.create(dy);t.type=hy.call(e.constructor)==="[object Function]"?e.constructor.name:e.name;t.message=e.message;t.stack=e.stack;if(Array.isArray(e.errors)){t.aggregateErrors=e.errors.map(r=>ar(r))}if(jn(e.cause)&&!Object.prototype.hasOwnProperty.call(e.cause,sr)){t.cause=ar(e.cause)}for(const r in e){if(t[r]===void 0){const n=e[r];if(jn(n)){if(!Object.prototype.hasOwnProperty.call(n,sr)){t[r]=ar(n)}}else{t[r]=n}}}delete e[sr];t.raw=e;return t}});var ma=E((JO,ya)=>{"use strict";ya.exports={mapHttpRequest:gy,reqSerializer:ga};var Bn=Symbol("pino-raw-req-ref");var ha=Object.create({},{id:{enumerable:true,writable:true,value:""},method:{enumerable:true,writable:true,value:""},url:{enumerable:true,writable:true,value:""},query:{enumerable:true,writable:true,value:""},params:{enumerable:true,writable:true,value:""},headers:{enumerable:true,writable:true,value:{}},remoteAddress:{enumerable:true,writable:true,value:""},remotePort:{enumerable:true,writable:true,value:""},raw:{enumerable:false,get:function(){return this[Bn]},set:function(e){this[Bn]=e}}});Object.defineProperty(ha,Bn,{writable:true,value:{}});function ga(e){const t=e.info||e.socket;const r=Object.create(ha);r.id=typeof e.id==="function"?e.id():e.id||(e.info?e.info.id:void 0);r.method=e.method;if(e.originalUrl){r.url=e.originalUrl}else{const n=e.path;r.url=typeof n==="string"?n:e.url?e.url.path||e.url:void 0}if(e.query){r.query=e.query}if(e.params){r.params=e.params}r.headers=e.headers;r.remoteAddress=t&&t.remoteAddress;r.remotePort=t&&t.remotePort;r.raw=e.raw||e;return r}function gy(e){return{req:ga(e)}}});var _a=E((XO,Sa)=>{"use strict";Sa.exports={mapHttpResponse:yy,resSerializer:wa};var qn=Symbol("pino-raw-res-ref");var ba=Object.create({},{statusCode:{enumerable:true,writable:true,value:0},headers:{enumerable:true,writable:true,value:""},raw:{enumerable:false,get:function(){return this[qn]},set:function(e){this[qn]=e}}});Object.defineProperty(ba,qn,{writable:true,value:{}});function wa(e){const t=Object.create(ba);t.statusCode=e.headersSent?e.statusCode:null;t.headers=e.getHeaders?e.getHeaders():e._headers;t.raw=e;return t}function yy(e){return{res:wa(e)}}});var Wn=E((ZO,Ea)=>{"use strict";var $n=fa();var my=pa();var lr=ma();var ur=_a();Ea.exports={err:$n,errWithCause:my,mapHttpRequest:lr.mapHttpRequest,mapHttpResponse:ur.mapHttpResponse,req:lr.reqSerializer,res:ur.resSerializer,wrapErrorSerializer:function e(t){if(t===$n)return t;return function r(n){return t($n(n))}},wrapRequestSerializer:function e(t){if(t===lr.reqSerializer)return t;return function r(n){return t(lr.reqSerializer(n))}},wrapResponseSerializer:function e(t){if(t===ur.resSerializer)return t;return function r(n){return t(ur.resSerializer(n))}}}});var Fn=E((eI,xa)=>{"use strict";function by(e,t){return t}xa.exports=function e(){const t=Error.prepareStackTrace;Error.prepareStackTrace=by;const r=new Error().stack;Error.prepareStackTrace=t;if(!Array.isArray(r)){return void 0}const n=r.slice(2);const i=[];for(const o of n){if(!o){continue}i.push(o.getFileName())}return i}});var Ma=E((tI,Ca)=>{"use strict";function Un(e){if(e===null||typeof e!=="object"){return e}if(e instanceof Date){return new Date(e.getTime())}if(e instanceof Array){const t=[];for(let r=0;r<e.length;r++){t[r]=Un(e[r])}return t}if(typeof e==="object"){const t=Object.create(Object.getPrototypeOf(e));for(const r in e){if(Object.prototype.hasOwnProperty.call(e,r)){t[r]=Un(e[r])}}return t}return e}function Aa(e){const t=[];let r="";let n=false;let i=false;let o="";for(let s=0;s<e.length;s++){const a=e[s];if(!n&&a==="."){if(r){t.push(r);r=""}}else if(a==="["){if(r){t.push(r);r=""}n=true}else if(a==="]"&&n){t.push(r);r="";n=false;i=false}else if((a==='"'||a==="'")&&n){if(!i){i=true;o=a}else if(a===o){i=false;o=""}else{r+=a}}else{r+=a}}if(r){t.push(r)}return t}function Ra(e,t,r){let n=e;for(let o=0;o<t.length-1;o++){const s=t[o];if(typeof n!=="object"||n===null||!(s in n)){return false}if(typeof n[s]!=="object"||n[s]===null){return false}n=n[s]}const i=t[t.length-1];if(i==="*"){if(Array.isArray(n)){for(let o=0;o<n.length;o++){n[o]=r}}else if(typeof n==="object"&&n!==null){for(const o in n){if(Object.prototype.hasOwnProperty.call(n,o)){n[o]=r}}}}else{if(typeof n==="object"&&n!==null&&i in n&&Object.prototype.hasOwnProperty.call(n,i)){n[i]=r}}return true}function Ta(e,t){let r=e;for(let i=0;i<t.length-1;i++){const o=t[i];if(typeof r!=="object"||r===null||!(o in r)){return false}if(typeof r[o]!=="object"||r[o]===null){return false}r=r[o]}const n=t[t.length-1];if(n==="*"){if(Array.isArray(r)){for(let i=0;i<r.length;i++){r[i]=void 0}}else if(typeof r==="object"&&r!==null){for(const i in r){if(Object.prototype.hasOwnProperty.call(r,i)){delete r[i]}}}}else{if(typeof r==="object"&&r!==null&&n in r&&Object.prototype.hasOwnProperty.call(r,n)){delete r[n]}}return true}var cr=Symbol("PATH_NOT_FOUND");function wy(e,t){let r=e;for(const n of t){if(r===null||r===void 0){return cr}if(typeof r!=="object"||r===null){return cr}if(!(n in r)){return cr}r=r[n]}return r}function Sy(e,t){let r=e;for(const n of t){if(r===null||r===void 0){return void 0}if(typeof r!=="object"||r===null){return void 0}r=r[n]}return r}function _y(e,t,r,n=false){for(const i of t){const o=Aa(i);if(o.includes("*")){va(e,o,r,i,n)}else{if(n){Ta(e,o)}else{const s=wy(e,o);if(s===cr){continue}const a=typeof r==="function"?r(s,o):r;Ra(e,o,a)}}}}function va(e,t,r,n,i=false){const o=t.indexOf("*");if(o===t.length-1){const s=t.slice(0,-1);let a=e;for(const l of s){if(a===null||a===void 0)return;if(typeof a!=="object"||a===null)return;a=a[l]}if(Array.isArray(a)){if(i){for(let l=0;l<a.length;l++){a[l]=void 0}}else{for(let l=0;l<a.length;l++){const u=[...s,l.toString()];const f=typeof r==="function"?r(a[l],u):r;a[l]=f}}}else if(typeof a==="object"&&a!==null){if(i){const l=[];for(const u in a){if(Object.prototype.hasOwnProperty.call(a,u)){l.push(u)}}for(const u of l){delete a[u]}}else{for(const l in a){const u=[...s,l];const f=typeof r==="function"?r(a[l],u):r;a[l]=f}}}}else{Ey(e,t,r,o,n,i)}}function Ey(e,t,r,n,i,o=false){const s=t.slice(0,n);const a=t.slice(n+1);const l=[];function u(f,c){if(c===s.length){if(Array.isArray(f)){for(let h=0;h<f.length;h++){l[c]=h.toString();u(f[h],c+1)}}else if(typeof f==="object"&&f!==null){for(const h in f){l[c]=h;u(f[h],c+1)}}}else if(c<s.length){const h=s[c];if(f&&typeof f==="object"&&f!==null&&h in f){l[c]=h;u(f[h],c+1)}}else{if(a.includes("*")){const h=typeof r==="function"?(p,d)=>{const g=[...l.slice(0,c),...d];return r(p,g)}:r;va(f,a,h,i,o)}else{if(o){Ta(f,a)}else{const h=typeof r==="function"?r(Sy(f,a),[...l.slice(0,c),...a]):r;Ra(f,a,h)}}}}if(s.length===0){u(e,0)}else{let f=e;for(let c=0;c<s.length;c++){const h=s[c];if(f===null||f===void 0)return;if(typeof f!=="object"||f===null)return;f=f[h];l[c]=h}if(f!==null&&f!==void 0){u(f,s.length)}}}function xy(e){if(e.length===0){return null}const t=new Map;for(const r of e){const n=Aa(r);let i=t;for(let o=0;o<n.length;o++){const s=n[o];if(!i.has(s)){i.set(s,new Map)}i=i.get(s)}}return t}function Ay(e,t){if(!t){return e}function r(n,i,o=0){if(!i||i.size===0){return n}if(n===null||typeof n!=="object"){return n}if(n instanceof Date){return new Date(n.getTime())}if(Array.isArray(n)){const a=[];for(let l=0;l<n.length;l++){const u=l.toString();if(i.has(u)||i.has("*")){a[l]=r(n[l],i.get(u)||i.get("*"))}else{a[l]=n[l]}}return a}const s=Object.create(Object.getPrototypeOf(n));for(const a in n){if(Object.prototype.hasOwnProperty.call(n,a)){if(i.has(a)||i.has("*")){s[a]=r(n[a],i.get(a)||i.get("*"))}else{s[a]=n[a]}}}return s}return r(e,t)}function Ry(e){if(typeof e!=="string"){throw new Error("Paths must be (non-empty) strings")}if(e===""){throw new Error("Invalid redaction path ()")}if(e.includes("..")){throw new Error(`Invalid redaction path (${e})`)}if(e.includes(",")){throw new Error(`Invalid redaction path (${e})`)}let t=0;let r=false;let n="";for(let i=0;i<e.length;i++){const o=e[i];if((o==='"'||o==="'")&&t>0){if(!r){r=true;n=o}else if(o===n){r=false;n=""}}else if(o==="["&&!r){t++}else if(o==="]"&&!r){t--;if(t<0){throw new Error(`Invalid redaction path (${e})`)}}}if(t!==0){throw new Error(`Invalid redaction path (${e})`)}}function Ty(e){if(!Array.isArray(e)){throw new TypeError("paths must be an array")}for(const t of e){Ry(t)}}function vy(e={}){const{paths:t=[],censor:r="[REDACTED]",serialize:n=JSON.stringify,strict:i=true,remove:o=false}=e;Ty(t);const s=xy(t);return function a(l){if(i&&(l===null||typeof l!=="object")){if(l===null||l===void 0){return n?n(l):l}if(typeof l!=="object"){return n?n(l):l}}const u=Ay(l,s);const f=l;let c=r;if(typeof r==="function"){c=r}_y(u,t,c,o);if(n===false){u.restore=function(){return Un(f)};return u}if(typeof n==="function"){return n(u)}return JSON.stringify(u)}}Ca.exports=vy});var Ze=E((rI,Oa)=>{"use strict";var Cy=Symbol("pino.setLevel");var My=Symbol("pino.getLevel");var Oy=Symbol("pino.levelVal");var Iy=Symbol("pino.levelComp");var Ly=Symbol("pino.useLevelLabels");var Py=Symbol("pino.useOnlyCustomLevels");var Ny=Symbol("pino.mixin");var ky=Symbol("pino.lsCache");var Dy=Symbol("pino.chindings");var jy=Symbol("pino.asJson");var By=Symbol("pino.write");var qy=Symbol("pino.redactFmt");var $y=Symbol("pino.time");var Wy=Symbol("pino.timeSliceIndex");var Fy=Symbol("pino.stream");var Uy=Symbol("pino.stringify");var Hy=Symbol("pino.stringifySafe");var Ky=Symbol("pino.stringifiers");var Vy=Symbol("pino.end");var zy=Symbol("pino.formatOpts");var Gy=Symbol("pino.messageKey");var Yy=Symbol("pino.errorKey");var Qy=Symbol("pino.nestedKey");var Jy=Symbol("pino.nestedKeyStr");var Xy=Symbol("pino.mixinMergeStrategy");var Zy=Symbol("pino.msgPrefix");var em=Symbol("pino.wildcardFirst");var tm=Symbol.for("pino.serializers");var rm=Symbol.for("pino.formatters");var nm=Symbol.for("pino.hooks");var im=Symbol.for("pino.metadata");Oa.exports={setLevelSym:Cy,getLevelSym:My,levelValSym:Oy,levelCompSym:Iy,useLevelLabelsSym:Ly,mixinSym:Ny,lsCacheSym:ky,chindingsSym:Dy,asJsonSym:jy,writeSym:By,serializersSym:tm,redactFmtSym:qy,timeSym:$y,timeSliceIndexSym:Wy,streamSym:Fy,stringifySym:Uy,stringifySafeSym:Hy,stringifiersSym:Ky,endSym:Vy,formatOptsSym:zy,messageKeySym:Gy,errorKeySym:Yy,nestedKeySym:Qy,wildcardFirstSym:em,needsMetadataGsym:im,useOnlyCustomLevelsSym:Py,formattersSym:rm,hooksSym:nm,nestedKeyStrSym:Jy,mixinMergeStrategySym:Xy,msgPrefixSym:Zy}});var Kn=E((nI,Na)=>{"use strict";var Ia=Ma();var{redactFmtSym:om,wildcardFirstSym:fr}=Ze();var Hn=/[^.[\]]+|\[([^[\]]*?)\]/g;var La="[Redacted]";var Pa=false;function sm(e,t){const{paths:r,censor:n,remove:i}=am(e);const o=r.reduce((l,u)=>{Hn.lastIndex=0;const f=Hn.exec(u);const c=Hn.exec(u);let h=f[1]!==void 0?f[1].replace(/^(?:"|'|`)(.*)(?:"|'|`)$/,"$1"):f[0];if(h==="*"){h=fr}if(c===null){l[h]=null;return l}if(l[h]===null){return l}const{index:p}=c;const d=`${u.substr(p,u.length-1)}`;l[h]=l[h]||[];if(h!==fr&&l[h].length===0){l[h].push(...l[fr]||[])}if(h===fr){Object.keys(l).forEach(function(g){if(l[g]){l[g].push(d)}})}l[h].push(d);return l},{});const s={[om]:Ia({paths:r,censor:n,serialize:t,strict:Pa,remove:i})};const a=(...l)=>{return typeof n==="function"?t(n(...l)):t(n)};return[...Object.keys(o),...Object.getOwnPropertySymbols(o)].reduce((l,u)=>{if(o[u]===null){l[u]=f=>a(f,[u])}else{const f=typeof n==="function"?(c,h)=>{return n(c,[u,...h])}:n;l[u]=Ia({paths:o[u],censor:f,serialize:t,strict:Pa,remove:i})}return l},s)}function am(e){if(Array.isArray(e)){e={paths:e,censor:La};return e}let{paths:t,censor:r=La,remove:n}=e;if(Array.isArray(t)===false){throw Error("pino \u2013 redact must contain an array of strings")}if(n===true)r=void 0;return{paths:t,censor:r,remove:n}}Na.exports=sm});var ja=E((iI,Da)=>{"use strict";var lm=()=>"";var um=()=>`,"time":${Date.now()}`;var cm=()=>`,"time":${Math.round(Date.now()/1e3)}`;var fm=()=>`,"time":"${new Date(Date.now()).toISOString()}"`;var dm=1000000n;var ka=1000000000n;var pm=BigInt(Date.now())*dm;var hm=process.hrtime.bigint();var gm=()=>{const e=process.hrtime.bigint()-hm;const t=pm+e;const r=t/ka;const n=t%ka;const i=Number(r*1000n+n/1000000n);const o=new Date(i);const s=o.getUTCFullYear();const a=(o.getUTCMonth()+1).toString().padStart(2,"0");const l=o.getUTCDate().toString().padStart(2,"0");const u=o.getUTCHours().toString().padStart(2,"0");const f=o.getUTCMinutes().toString().padStart(2,"0");const c=o.getUTCSeconds().toString().padStart(2,"0");return`,"time":"${s}-${a}-${l}T${u}:${f}:${c}.${n.toString().padStart(9,"0")}Z"`};Da.exports={nullTime:lm,epochTime:um,unixTime:cm,isoTime:fm,isoTimeNano:gm}});var qa=E((oI,Ba)=>{"use strict";function ym(e){try{return JSON.stringify(e)}catch(t){return'"[Circular]"'}}Ba.exports=mm;function mm(e,t,r){var n=r&&r.stringify||ym;var i=1;if(typeof e==="object"&&e!==null){var o=t.length+i;if(o===1)return e;var s=new Array(o);s[0]=n(e);for(var a=1;a<o;a++){s[a]=n(t[a])}return s.join(" ")}if(typeof e!=="string"){return e}var l=t.length;if(l===0)return e;var u="";var f=1-i;var c=-1;var h=e&&e.length||0;for(var p=0;p<h;){if(e.charCodeAt(p)===37&&p+1<h){c=c>-1?c:0;switch(e.charCodeAt(p+1)){case 100:case 102:if(f>=l)break;if(t[f]==null)break;if(c<p)u+=e.slice(c,p);u+=Number(t[f]);c=p+2;p++;break;case 105:if(f>=l)break;if(t[f]==null)break;if(c<p)u+=e.slice(c,p);u+=Math.floor(Number(t[f]));c=p+2;p++;break;case 79:case 111:case 106:if(f>=l)break;if(t[f]===void 0)break;if(c<p)u+=e.slice(c,p);var d=typeof t[f];if(d==="string"){u+="'"+t[f]+"'";c=p+2;p++;break}if(d==="function"){u+=t[f].name||"<anonymous>";c=p+2;p++;break}u+=n(t[f]);c=p+2;p++;break;case 115:if(f>=l)break;if(c<p)u+=e.slice(c,p);u+=String(t[f]);c=p+2;p++;break;case 37:if(c<p)u+=e.slice(c,p);u+="%";c=p+2;p++;f--;break}++f}++p}if(c===-1)return e;else if(c<h){u+=e.slice(c)}return u}});var zn=E((sI,Vn)=>{"use strict";if(typeof SharedArrayBuffer!=="undefined"&&typeof Atomics!=="undefined"){let t=function(r){const n=r>0&&r<Infinity;if(n===false){if(typeof r!=="number"&&typeof r!=="bigint"){throw TypeError("sleep: ms must be a number")}throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}Atomics.wait(e,0,0,Number(r))};const e=new Int32Array(new SharedArrayBuffer(4));Vn.exports=t}else{let e=function(t){const r=t>0&&t<Infinity;if(r===false){if(typeof t!=="number"&&typeof t!=="bigint"){throw TypeError("sleep: ms must be a number")}throw RangeError("sleep: ms must be a number that is greater than 0 but less than Infinity")}const n=Date.now()+Number(t);while(n>Date.now()){}};Vn.exports=e}});var Qn=E((aI,Va)=>{"use strict";var q=I("fs");var bm=I("events");var wm=I("util").inherits;var $a=I("path");var Yn=zn();var Sm=I("assert");var dr=100;var pr=Buffer.allocUnsafe(0);var _m=16*1024;var Wa="buffer";var Fa="utf8";var[Em,xm]=(process.versions.node||"0.0").split(".").map(Number);var Am=Em>=22&&xm>=7;function Ua(e,t){t._opening=true;t._writing=true;t._asyncDrainScheduled=false;function r(o,s){if(o){t._reopening=false;t._writing=false;t._opening=false;if(t.sync){process.nextTick(()=>{if(t.listenerCount("error")>0){t.emit("error",o)}})}else{t.emit("error",o)}return}const a=t._reopening;t.fd=s;t.file=e;t._reopening=false;t._opening=false;t._writing=false;if(t.sync){process.nextTick(()=>t.emit("ready"))}else{t.emit("ready")}if(t.destroyed){return}if(!t._writing&&t._len>t.minLength||t._flushPending){t._actualWrite()}else if(a){process.nextTick(()=>t.emit("drain"))}}const n=t.append?"a":"w";const i=t.mode;if(t.sync){try{if(t.mkdir)q.mkdirSync($a.dirname(e),{recursive:true});const o=q.openSync(e,n,i);r(null,o)}catch(o){r(o);throw o}}else if(t.mkdir){q.mkdir($a.dirname(e),{recursive:true},o=>{if(o)return r(o);q.open(e,n,i,r)})}else{q.open(e,n,i,r)}}function re(e){if(!(this instanceof re)){return new re(e)}let{fd:t,dest:r,minLength:n,maxLength:i,maxWrite:o,periodicFlush:s,sync:a,append:l=true,mkdir:u,retryEAGAIN:f,fsync:c,contentMode:h,mode:p}=e||{};t=t||r;this._len=0;this.fd=-1;this._bufs=[];this._lens=[];this._writing=false;this._ending=false;this._reopening=false;this._asyncDrainScheduled=false;this._flushPending=false;this._hwm=Math.max(n||0,16387);this.file=null;this.destroyed=false;this.minLength=n||0;this.maxLength=i||0;this.maxWrite=o||_m;this._periodicFlush=s||0;this._periodicFlushTimer=void 0;this.sync=a||false;this.writable=true;this._fsync=c||false;this.append=l||false;this.mode=p;this.retryEAGAIN=f||(()=>true);this.mkdir=u||false;let d;let g;if(h===Wa){this._writingBuf=pr;this.write=vm;this.flush=Mm;this.flushSync=Im;this._actualWrite=Pm;d=()=>q.writeSync(this.fd,this._writingBuf);g=()=>q.write(this.fd,this._writingBuf,this.release)}else if(h===void 0||h===Fa){this._writingBuf="";this.write=Tm;this.flush=Cm;this.flushSync=Om;this._actualWrite=Lm;d=()=>{if(Buffer.isBuffer(this._writingBuf)){return q.writeSync(this.fd,this._writingBuf)}return q.writeSync(this.fd,this._writingBuf,"utf8")};g=()=>{if(Buffer.isBuffer(this._writingBuf)){return q.write(this.fd,this._writingBuf,this.release)}return q.write(this.fd,this._writingBuf,"utf8",this.release)}}else{throw new Error(`SonicBoom supports "${Fa}" and "${Wa}", but passed ${h}`)}if(typeof t==="number"){this.fd=t;process.nextTick(()=>this.emit("ready"))}else if(typeof t==="string"){Ua(t,this)}else{throw new Error("SonicBoom supports only file descriptors and files")}if(this.minLength>=this.maxWrite){throw new Error(`minLength should be smaller than maxWrite (${this.maxWrite})`)}this.release=(y,m)=>{if(y){if((y.code==="EAGAIN"||y.code==="EBUSY")&&this.retryEAGAIN(y,this._writingBuf.length,this._len-this._writingBuf.length)){if(this.sync){try{Yn(dr);this.release(void 0,0)}catch(S){this.release(S)}}else{setTimeout(g,dr)}}else{this._writing=false;this.emit("error",y)}return}this.emit("write",m);const w=Gn(this._writingBuf,this._len,m);this._len=w.len;this._writingBuf=w.writingBuf;if(this._writingBuf.length){if(!this.sync){g();return}try{do{const S=d();const A=Gn(this._writingBuf,this._len,S);this._len=A.len;this._writingBuf=A.writingBuf}while(this._writingBuf.length)}catch(S){this.release(S);return}}if(this._fsync){q.fsyncSync(this.fd)}const _=this._len;if(this._reopening){this._writing=false;this._reopening=false;this.reopen()}else if(_>this.minLength){this._actualWrite()}else if(this._ending){if(_>0){this._actualWrite()}else{this._writing=false;hr(this)}}else{this._writing=false;if(this.sync){if(!this._asyncDrainScheduled){this._asyncDrainScheduled=true;process.nextTick(Rm,this)}}else{this.emit("drain")}}};this.on("newListener",function(y){if(y==="drain"){this._asyncDrainScheduled=false}});if(this._periodicFlush!==0){this._periodicFlushTimer=setInterval(()=>this.flush(null),this._periodicFlush);this._periodicFlushTimer.unref()}}function Gn(e,t,r){if(typeof e==="string"){e=Buffer.from(e)}t=Math.max(t-r,0);e=e.subarray(r);return{writingBuf:e,len:t}}function Rm(e){const t=e.listenerCount("drain")>0;if(!t)return;e._asyncDrainScheduled=false;e.emit("drain")}wm(re,bm);function Ha(e,t){if(e.length===0){return pr}if(e.length===1){return e[0]}return Buffer.concat(e,t)}function Tm(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}e=""+e;const t=Buffer.byteLength(e);const r=this._len+t;const n=this._bufs;if(this.maxLength&&r>this.maxLength){this.emit("drop",e);return this._len<this._hwm}if(n.length===0||Buffer.byteLength(n[n.length-1])+t>this.maxWrite){n.push(e)}else{n[n.length-1]+=e}this._len=r;if(!this._writing&&this._len>=this.minLength){this._actualWrite()}return this._len<this._hwm}function vm(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}const t=this._len+e.length;const r=this._bufs;const n=this._lens;if(this.maxLength&&t>this.maxLength){this.emit("drop",e);return this._len<this._hwm}if(r.length===0||n[n.length-1]+e.length>this.maxWrite){r.push([e]);n.push(e.length)}else{r[r.length-1].push(e);n[n.length-1]+=e.length}this._len=t;if(!this._writing&&this._len>=this.minLength){this._actualWrite()}return this._len<this._hwm}function Ka(e){this._flushPending=true;const t=()=>{if(!this._fsync){try{q.fsync(this.fd,n=>{this._flushPending=false;e(n)})}catch(n){e(n)}}else{this._flushPending=false;e()}this.off("error",r)};const r=n=>{this._flushPending=false;e(n);this.off("drain",t)};this.once("drain",t);this.once("error",r)}function Cm(e){if(e!=null&&typeof e!=="function"){throw new Error("flush cb must be a function")}if(this.destroyed){const t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}if(e){Ka.call(this,e)}if(this._writing){return}if(this._bufs.length===0){this._bufs.push("")}this._actualWrite()}function Mm(e){if(e!=null&&typeof e!=="function"){throw new Error("flush cb must be a function")}if(this.destroyed){const t=new Error("SonicBoom destroyed");if(e){e(t);return}throw t}if(this.minLength<=0){e?.();return}if(e){Ka.call(this,e)}if(this._writing){return}if(this._bufs.length===0){this._bufs.push([]);this._lens.push(0)}this._actualWrite()}re.prototype.reopen=function(e){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this._opening){this.once("ready",()=>{this.reopen(e)});return}if(this._ending){return}if(!this.file){throw new Error("Unable to reopen a file descriptor, you must pass a file to SonicBoom")}if(e){this.file=e}this._reopening=true;if(this._writing){return}const t=this.fd;this.once("ready",()=>{if(t!==this.fd){q.close(t,r=>{if(r){return this.emit("error",r)}})}});Ua(this.file,this)};re.prototype.end=function(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this._opening){this.once("ready",()=>{this.end()});return}if(this._ending){return}this._ending=true;if(this._writing){return}if(this._len>0&&this.fd>=0){this._actualWrite()}else{hr(this)}};function Om(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this.fd<0){throw new Error("sonic boom is not ready yet")}if(!this._writing&&this._writingBuf.length>0){this._bufs.unshift(this._writingBuf);this._writingBuf=""}let e="";while(this._bufs.length||e.length){if(e.length<=0){e=this._bufs[0]}try{const t=Buffer.isBuffer(e)?q.writeSync(this.fd,e):q.writeSync(this.fd,e,"utf8");const r=Gn(e,this._len,t);e=r.writingBuf;this._len=r.len;if(e.length<=0){this._bufs.shift()}}catch(t){const r=t.code==="EAGAIN"||t.code==="EBUSY";if(r&&!this.retryEAGAIN(t,e.length,this._len-e.length)){throw t}Yn(dr)}}try{q.fsyncSync(this.fd)}catch{}}function Im(){if(this.destroyed){throw new Error("SonicBoom destroyed")}if(this.fd<0){throw new Error("sonic boom is not ready yet")}if(!this._writing&&this._writingBuf.length>0){this._bufs.unshift([this._writingBuf]);this._writingBuf=pr}let e=pr;while(this._bufs.length||e.length){if(e.length<=0){e=Ha(this._bufs[0],this._lens[0])}try{const t=q.writeSync(this.fd,e);e=e.subarray(t);this._len=Math.max(this._len-t,0);if(e.length<=0){this._bufs.shift();this._lens.shift()}}catch(t){const r=t.code==="EAGAIN"||t.code==="EBUSY";if(r&&!this.retryEAGAIN(t,e.length,this._len-e.length)){throw t}Yn(dr)}}}re.prototype.destroy=function(){if(this.destroyed){return}hr(this)};function Lm(){const e=this.release;this._writing=true;this._writingBuf=this._writingBuf.length?this._writingBuf:this._bufs.shift()||"";if(this.sync){try{const t=Buffer.isBuffer(this._writingBuf)?q.writeSync(this.fd,this._writingBuf):q.writeSync(this.fd,this._writingBuf,"utf8");e(null,t)}catch(t){e(t)}}else{q.write(this.fd,this._writingBuf,e)}}function Pm(){const e=this.release;this._writing=true;this._writingBuf=this._writingBuf.length?this._writingBuf:Ha(this._bufs.shift(),this._lens.shift());if(this.sync){try{const t=q.writeSync(this.fd,this._writingBuf);e(null,t)}catch(t){e(t)}}else{if(Am){this._writingBuf=Buffer.from(this._writingBuf)}q.write(this.fd,this._writingBuf,e)}}function hr(e){if(e.fd===-1){e.once("ready",hr.bind(null,e));return}if(e._periodicFlushTimer!==void 0){clearInterval(e._periodicFlushTimer)}e.destroyed=true;e._bufs=[];e._lens=[];Sm(typeof e.fd==="number",`sonic.fd must be a number, got ${typeof e.fd}`);try{q.fsync(e.fd,t)}catch{}function t(){if(e.fd!==1&&e.fd!==2){q.close(e.fd,r)}else{r()}}function r(n){if(n){e.emit("error",n);return}if(e._ending&&!e._writing){e.emit("finish")}e.emit("close")}}re.SonicBoom=re;re.default=re;Va.exports=re});var gr=E((lI,Ja)=>{"use strict";var ne={exit:[],beforeExit:[]};var za={exit:Dm,beforeExit:jm};var et;function Nm(){if(et===void 0){et=new FinalizationRegistry(Bm)}}function km(e){if(ne[e].length>0){return}process.on(e,za[e])}function Ga(e){if(ne[e].length>0){return}process.removeListener(e,za[e]);if(ne.exit.length===0&&ne.beforeExit.length===0){et=void 0}}function Dm(){Ya("exit")}function jm(){Ya("beforeExit")}function Ya(e){for(const t of ne[e]){const r=t.deref();const n=t.fn;if(r!==void 0){n(r,e)}}ne[e]=[]}function Bm(e){for(const t of["exit","beforeExit"]){const r=ne[t].indexOf(e);ne[t].splice(r,r+1);Ga(t)}}function Qa(e,t,r){if(t===void 0){throw new Error("the object can't be undefined")}km(e);const n=new WeakRef(t);n.fn=r;Nm();et.register(t,n);ne[e].push(n)}function qm(e,t){Qa("exit",e,t)}function $m(e,t){Qa("beforeExit",e,t)}function Wm(e){if(et===void 0){return}et.unregister(e);for(const t of["exit","beforeExit"]){ne[t]=ne[t].filter(r=>{const n=r.deref();return n&&n!==e});Ga(t)}}Ja.exports={register:qm,registerBeforeExit:$m,unregister:Wm}});var Xa=E((uI,Fm)=>{Fm.exports={name:"thread-stream",version:"4.2.0",description:"A streaming way to send data to a Node.js Worker Thread",main:"index.js",types:"index.d.ts",engines:{node:">=20"},dependencies:{"real-require":"^1.0.0"},devDependencies:{"@types/node":"^25.0.2","@yao-pkg/pkg":"^6.0.0",borp:"^1.0.0",desm:"^1.3.0",eslint:"^9.39.1",fastbench:"^1.0.1",neostandard:"^0.13.0","pino-elasticsearch":"^9.0.0","sonic-boom":"^5.0.0","ts-node":"^10.8.0",typescript:"~5.7.3"},scripts:{build:"tsc --noEmit",lint:"eslint",test:'npm run lint && npm run build && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:ci":'npm run lint && npm run transpile && borp --pattern "test/*.test.{js,mjs}"',"test:yarn":'npm run transpile && borp --pattern "test/*.test.js"',transpile:"sh ./test/ts/transpile.sh"},repository:{type:"git",url:"git+https://github.com/mcollina/thread-stream.git"},keywords:["worker","thread","threads","stream"],author:"Matteo Collina <hello@matteocollina.com>",license:"MIT",bugs:{url:"https://github.com/mcollina/thread-stream/issues"},homepage:"https://github.com/mcollina/thread-stream#readme"}});var el=E((cI,Za)=>{"use strict";var yr=1e4;function Um(e,t,r,n,i){const o=n===Infinity?Infinity:Date.now()+n;const s=()=>{const a=Atomics.load(e,t);if(a===r){i(null,"ok");return}if(o!==Infinity&&Date.now()>o){i(null,"timed-out");return}const l=o===Infinity?yr:Math.min(yr,Math.max(1,o-Date.now()));const u=Atomics.waitAsync(e,t,a,l);if(u.async){u.value.then(s)}else{setImmediate(s)}};s()}function Hm(e,t,r,n,i){const o=n===Infinity?Infinity:Date.now()+n;const s=()=>{const a=Atomics.load(e,t);if(a!==r){i(null,"ok");return}if(o!==Infinity&&Date.now()>o){i(null,"timed-out");return}const l=o===Infinity?yr:Math.min(yr,Math.max(1,o-Date.now()));const u=Atomics.waitAsync(e,t,r,l);if(u.async){u.value.then(f=>{if(f==="ok"){i(null,"ok");return}s()})}else{setImmediate(s)}};s()}Za.exports={wait:Um,waitDiff:Hm}});var rl=E((fI,tl)=>{"use strict";var Km=2;var Vm=4;var zm=8;tl.exports={WRITE_INDEX:Vm,READ_INDEX:zm,SEQ_INDEX:Km}});var hl=E((dI,pl)=>{"use strict";var{version:Gm}=Xa();var{EventEmitter:Ym}=I("events");var{Worker:Qm}=I("worker_threads");var{join:Jm}=I("path");var{pathToFileURL:Xm}=I("url");var{wait:Zm}=el();var{WRITE_INDEX:he,READ_INDEX:Le,SEQ_INDEX:Jn}=rl();var eb=I("buffer");var tb=I("assert");var b=Symbol("kImpl");var rb=eb.constants.MAX_STRING_LENGTH;function nl(){}function ti(e,t){Atomics.add(e[b].state,Jn,1);t();Atomics.add(e[b].state,Jn,1);Atomics.notify(e[b].state,Jn)}function il(e){ti(e,()=>{Atomics.store(e[b].state,Le,0);Atomics.store(e[b].state,he,0)})}var Tt=class{constructor(t){this._value=t}deref(){return this._value}};var mr=class{register(){}unregister(){}};var nb=process.env.NODE_V8_COVERAGE?mr:global.FinalizationRegistry||mr;var ib=process.env.NODE_V8_COVERAGE?Tt:global.WeakRef||Tt;var ol=new nb(e=>{if(e.exited){return}e.terminate()});function ob(e,t){const{filename:r,workerData:n}=t;const i="__bundlerPathsOverrides"in globalThis?globalThis.__bundlerPathsOverrides:{};const o=i["thread-stream-worker"]||Jm(__dirname,"lib","worker.js");const s=new Qm(o,{...t.workerOpts,name:t.workerOpts?.name||"thread-stream",trackUnmanagedFds:false,workerData:{filename:r.indexOf("file://")===0?r:Xm(r).href,dataBuf:e[b].dataBuf,stateBuf:e[b].stateBuf,workerData:{$context:{threadStreamVersion:Gm},...n}}});s.stream=new Tt(e);s.on("message",sb);s.on("exit",ll);ol.register(e,s);return s}function sl(e){tb(!e[b].sync);if(e[b].needDrain){e[b].needDrain=false;e.emit("drain")}}function al(e){while(true){const t=Atomics.load(e[b].state,he);const r=e[b].data.length-t;if(r>0){if(e[b].bufLen===0){e[b].flushing=false;if(e[b].ending){ri(e)}else if(e[b].needDrain){process.nextTick(sl,e)}return}fl(e,r,nl);continue}if(r===0){if(t===0&&e[b].bufLen===0){return}br(e,()=>{if(e.destroyed){return}il(e);al(e)});return}X(e,new Error("overwritten"));return}}function sb(e){const t=this.stream.deref();if(t===void 0){this.exited=true;this.terminate();return}if(e?.code==null){return}switch(e.code){case"READY":this.stream=new ib(t);br(t,()=>{t[b].ready=true;t.emit("ready")});break;case"ERROR":X(t,e.err);break;case"EVENT":if(Array.isArray(e.args)){t.emit(e.name,...e.args)}else{t.emit(e.name,e.args)}break;case"FLUSHED":{if(e.context!=="thread-stream"){X(t,new Error("this should not happen: "+e.code));break}const r=t[b].flushCallbacks.get(e.id);if(r){t[b].flushCallbacks.delete(e.id);process.nextTick(r)}break}case"WARNING":process.emitWarning(e.err);break;default:X(t,new Error("this should not happen: "+e.code))}}function ll(e){const t=this.stream.deref();if(t===void 0){return}ol.unregister(t);t.worker.exited=true;t.worker.off("exit",ll);X(t,e!==0?new Error("the worker thread exited"):null)}var Zn=class extends Ym{constructor(t={}){super();if(t.bufferSize<4){throw new Error("bufferSize must at least fit a 4-byte utf-8 char")}this[b]={};this[b].stateBuf=new SharedArrayBuffer(128);this[b].state=new Int32Array(this[b].stateBuf);this[b].dataBuf=new SharedArrayBuffer(t.bufferSize||4*1024*1024);this[b].data=Buffer.from(this[b].dataBuf);this[b].sync=t.sync||false;this[b].ending=false;this[b].ended=false;this[b].needDrain=false;this[b].destroyed=false;this[b].flushing=false;this[b].ready=false;this[b].finished=false;this[b].errored=null;this[b].closed=false;this[b].buf=[];this[b].bufHead=0;this[b].bufLen=0;this[b].flushCallbacks=new Map;this[b].nextFlushId=0;this.worker=ob(this,t);this.on("message",(r,n)=>{this.worker.postMessage(r,n)})}write(t){const r=Buffer.isBuffer(t)?t:Buffer.from(t);if(this[b].destroyed){ei(this,new Error("the worker has exited"));return false}if(this[b].ending){ei(this,new Error("the worker is ending"));return false}if(this[b].flushing&&this[b].bufLen+r.length>=rb){try{Xn(this);this[b].flushing=true}catch(n){X(this,n);return false}}this[b].buf.push(r);this[b].bufLen+=r.length;if(this[b].sync){try{Xn(this);return true}catch(n){X(this,n);return false}}if(!this[b].flushing){this[b].flushing=true;setImmediate(al,this)}this[b].needDrain=this[b].data.length-this[b].bufLen-Atomics.load(this[b].state,he)<=0;return!this[b].needDrain}end(){if(this[b].destroyed){return}this[b].ending=true;ri(this)}flush(t){t=typeof t==="function"?t:nl;ul(this,r=>{if(r){process.nextTick(t,r);return}cl(this,t)})}flushSync(){if(this[b].destroyed){return}Xn(this);dl(this)}unref(){this.worker.unref()}ref(){this.worker.ref()}get ready(){return this[b].ready}get destroyed(){return this[b].destroyed}get closed(){return this[b].closed}get writable(){return!this[b].destroyed&&!this[b].ending}get writableEnded(){return this[b].ending}get writableFinished(){return this[b].finished}get writableNeedDrain(){return this[b].needDrain}get writableObjectMode(){return false}get writableErrored(){return this[b].errored}};function ul(e,t){if(e[b].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[b].sync&&(e[b].flushing||e[b].bufLen>0)){setImmediate(ul,e,t);return}br(e,t)}function br(e,t){const r=Atomics.load(e[b].state,he);Zm(e[b].state,Le,r,Infinity,(n,i)=>{if(n){X(e,n);t(n);return}if(i!=="ok"){br(e,t);return}t()})}function cl(e,t){if(e[b].destroyed){process.nextTick(t,new Error("the worker has exited"));return}if(!e[b].ready){const n=()=>{o();cl(e,t)};const i=()=>{o();process.nextTick(t,new Error("the worker has exited"))};const o=()=>{e.off("ready",n);e.off("close",i)};e.once("ready",n);e.once("close",i);return}const r=++e[b].nextFlushId;e[b].flushCallbacks.set(r,t);try{e.worker.postMessage({code:"FLUSH",context:"thread-stream",id:r})}catch(n){e[b].flushCallbacks.delete(r);X(e,n);process.nextTick(t,n)}}function ab(e,t){const r=e[b].flushCallbacks;if(r.size===0){return}const n=t||new Error("the worker has exited");for(const i of r.values()){process.nextTick(i,n)}r.clear()}function ei(e,t){setImmediate(()=>{e.emit("error",t)})}function X(e,t){if(e[b].destroyed){return}e[b].destroyed=true;ab(e,t);if(t){e[b].errored=t;ei(e,t)}if(!e.worker.exited){e.worker.terminate().catch(()=>{}).then(()=>{e[b].closed=true;e.emit("close")})}else{setImmediate(()=>{e[b].closed=true;e.emit("close")})}}function fl(e,t,r){const n=Atomics.load(e[b].state,he);let i=n;let o=t;while(o>0&&e[b].bufLen!==0){const s=e[b].bufHead;const a=e[b].buf[s];if(a.length<=o){a.copy(e[b].data,i);i+=a.length;o-=a.length;e[b].bufLen-=a.length;e[b].bufHead=s+1;if(e[b].bufHead===e[b].buf.length){e[b].buf.length=0;e[b].bufHead=0}else if(e[b].bufHead>=1024&&e[b].bufHead*2>=e[b].buf.length){e[b].buf.splice(0,e[b].bufHead);e[b].bufHead=0}continue}a.copy(e[b].data,i,0,o);e[b].buf[s]=a.subarray(o);e[b].bufLen-=o;i+=o;o=0}ti(e,()=>{Atomics.store(e[b].state,he,i)});r();return true}function ri(e){if(e[b].ended||!e[b].ending||e[b].flushing){return}e[b].ended=true;try{e.flushSync();let t=Atomics.load(e[b].state,Le);ti(e,()=>{Atomics.store(e[b].state,he,-1)});let r=0;while(t!==-1){Atomics.wait(e[b].state,Le,t,1e3);t=Atomics.load(e[b].state,Le);if(t===-2){X(e,new Error("end() failed"));return}if(++r===10){X(e,new Error("end() took too long (10s)"));return}}process.nextTick(()=>{e[b].finished=true;e.emit("finish")})}catch(t){X(e,t)}}function Xn(e){const t=()=>{if(e[b].ending){ri(e)}else if(e[b].needDrain){process.nextTick(sl,e)}};e[b].flushing=false;while(e[b].bufLen!==0){const r=Atomics.load(e[b].state,he);const n=e[b].data.length-r;if(n===0){dl(e);il(e);continue}else if(n<0){throw new Error("overwritten")}fl(e,n,t)}}function dl(e){if(e[b].flushing){throw new Error("unable to flush while flushing")}const t=Atomics.load(e[b].state,he);let r=0;while(true){const n=Atomics.load(e[b].state,Le);if(n===-2){throw Error("_flushSync failed")}if(n!==t){Atomics.wait(e[b].state,Le,n,1e3)}else{break}if(++r===10){throw new Error("_flushSync took too long (10s)")}}}pl.exports=Zn});var oi=E((pI,ml)=>{"use strict";var{createRequire:lb}=I("module");var{existsSync:ub}=I("node:fs");var cb=Fn();var{join:ni,isAbsolute:yl,sep:fb}=I("node:path");var{fileURLToPath:db}=I("node:url");var pb=zn();var ii=gr();var hb=hl();function gb(e){ii.register(e,Sb);ii.registerBeforeExit(e,_b);e.on("close",function(){ii.unregister(e)})}function yb(){const e=process.execArgv;for(let t=0;t<e.length;t++){const r=e[t];if(r==="--import"||r==="--require"||r==="-r"){return true}if(r.startsWith("--import=")||r.startsWith("--require=")||r.startsWith("-r=")){return true}}return false}function mb(e){const t=e.match(/(?:[^\s"']+|"[^"]*"|'[^']*')+/g);if(!t){return e}const r=[];let n=false;for(let i=0;i<t.length;i++){const o=t[i];if(o==="--require"||o==="-r"||o==="--import"){const s=t[i+1];if(s&&gl(s)){n=true;i++;continue}r.push(o);if(s){r.push(s);i++}continue}if(o.startsWith("--require=")||o.startsWith("-r=")||o.startsWith("--import=")){const s=o.slice(o.indexOf("=")+1);if(gl(s)){n=true;continue}}r.push(o)}return n?r.join(" "):e}function gl(e){const t=bb(e);if(!t){return false}let r=t;if(r.startsWith("file://")){try{r=db(r)}catch{return false}}return yl(r)&&!ub(r)}function bb(e){const t=e[0];const r=e[e.length-1];if(t==='"'&&r==='"'||t==="'"&&r==="'"){return e.slice(1,-1)}return e}function wb(e,t,r,n,i){if(!r.execArgv&&yb()&&I.main===void 0){r={...r,execArgv:[]}}if(!r.env&&process.env.NODE_OPTIONS){const l=mb(process.env.NODE_OPTIONS);if(l!==process.env.NODE_OPTIONS){r={...r,env:{...process.env,NODE_OPTIONS:l}}}}r={...r,name:i};const o=new hb({filename:e,workerData:t,workerOpts:r,sync:n});o.on("ready",s);o.on("close",function(){process.removeListener("exit",a)});process.on("exit",a);function s(){process.removeListener("exit",a);o.unref();if(r.autoEnd!==false){gb(o)}}function a(){if(o.closed){return}o.flushSync();pb(100);o.end()}return o}function Sb(e){e.ref();e.flushSync();e.end();e.once("close",function(){e.unref()})}function _b(e){e.flushSync()}function Eb(e){const{pipeline:t,targets:r,levels:n,dedupe:i,worker:o={},caller:s=cb(),sync:a=false}=e;const l={...e.options};const u=typeof s==="string"?[s]:s;const f=typeof globalThis==="object"&&Object.prototype.hasOwnProperty.call(globalThis,"__bundlerPathsOverrides")&&globalThis.__bundlerPathsOverrides&&typeof globalThis.__bundlerPathsOverrides==="object"?globalThis.__bundlerPathsOverrides:Object.create(null);let c=e.target;if(c&&r){throw new Error("only one of target or targets can be specified")}if(r){c=f["pino-worker"]||ni(__dirname,"worker.js");l.targets=r.filter(d=>d.target).map(d=>{return{...d,target:p(d.target)}});l.pipelines=r.filter(d=>d.pipeline).map(d=>{return d.pipeline.map(g=>{return{...g,level:d.level,target:p(g.target)}})})}else if(t){c=f["pino-worker"]||ni(__dirname,"worker.js");l.pipelines=[t.map(d=>{return{...d,target:p(d.target)}})]}if(n){l.levels=n}if(i){l.dedupe=i}l.pinoWillSendConfig=true;const h=r||t?"pino.transport":c;return wb(p(c),l,o,a,h);function p(d){d=f[d]||d;if(yl(d)||d.indexOf("file://")===0){return d}if(d==="pino/file"){return ni(__dirname,"..","file.js")}let g;for(const y of u){try{const m=y==="node:repl"?process.cwd()+fb:y;g=lb(m).resolve(d);break}catch(m){continue}}if(!g){throw new Error(`unable to determine transport target for "${d}"`)}return g}}ml.exports=Eb});var _r=E((gI,Ol)=>{"use strict";var xb=I("node:diagnostics_channel");var bl=qa();var{mapHttpRequest:Ab,mapHttpResponse:Rb}=Wn();var ai=Qn();var wl=gr();var{lsCacheSym:Tb,chindingsSym:Al,writeSym:Sl,serializersSym:Rl,formatOptsSym:_l,endSym:vb,stringifiersSym:Tl,stringifySym:vl,stringifySafeSym:li,wildcardFirstSym:Cl,nestedKeySym:Cb,formattersSym:Ml,messageKeySym:Mb,errorKeySym:Ob,nestedKeyStrSym:Ib,msgPrefixSym:wr}=Ze();var{isMainThread:Lb}=I("worker_threads");var Pb=oi();var[Nb]=process.versions.node.split(".").map(e=>Number(e));var El=xb.tracingChannel("pino_asJson");var si=Nb>=25?e=>JSON.stringify(e):Db;function tt(){}function kb(e,t){if(!t)return r;return function n(...i){t.call(this,i,r,e)};function r(n,...i){if(typeof n==="object"){let o=n;if(n!==null){if(n.method&&n.headers&&n.socket){n=Ab(n)}else if(typeof n.setHeader==="function"){n=Rb(n)}}let s;if(o===null&&i.length===0){s=[null]}else{o=i.shift();s=i}if(typeof this[wr]==="string"&&o!==void 0&&o!==null){o=this[wr]+o}this[Sl](n,bl(o,s,this[_l]),e)}else{let o=n===void 0?i.shift():n;if(typeof this[wr]==="string"&&o!==void 0&&o!==null){o=this[wr]+o}this[Sl](null,bl(o,i,this[_l]),e)}}}function Db(e){let t="";let r=0;let n=false;let i=255;const o=e.length;if(o>100){return JSON.stringify(e)}for(var s=0;s<o&&i>=32;s++){i=e.charCodeAt(s);if(i===34||i===92){t+=e.slice(r,s)+"\\";r=s;n=true}}if(!n){t=e}else{t+=e.slice(r)}return i<32?JSON.stringify(e):'"'+t+'"'}function jb(e,t,r,n){if(El.hasSubscribers===false){return xl.call(this,e,t,r,n)}const i={instance:this,arguments};return El.traceSync(xl,i,this,e,t,r,n)}function xl(e,t,r,n){const i=this[vl];const o=this[li];const s=this[Tl];const a=this[vb];const l=this[Al];const u=this[Rl];const f=this[Ml];const c=this[Mb];const h=this[Ob];let p=this[Tb][r]+n;p=p+l;let d;if(f.log){e=f.log(e)}const g=s[Cl];let y="";for(const w in e){d=e[w];if(Object.prototype.hasOwnProperty.call(e,w)&&d!==void 0){if(u[w]){d=u[w](d)}else if(w===h&&u.err){d=u.err(d)}const _=s[w]||g;switch(typeof d){case"undefined":case"function":continue;case"number":if(Number.isFinite(d)===false){d=null}case"boolean":if(_)d=_(d);break;case"string":d=(_||si)(d);break;default:d=(_||i)(d,o)}if(d===void 0)continue;const S=si(w);y+=","+S+":"+d}}let m="";if(t!==void 0){d=u[c]?u[c](t):t;const w=s[c]||g;switch(typeof d){case"function":break;case"number":if(Number.isFinite(d)===false){d=null}case"boolean":if(w)d=w(d);m=',"'+c+'":'+d;break;case"string":d=(w||si)(d);m=',"'+c+'":'+d;break;default:d=(w||i)(d,o);m=',"'+c+'":'+d}}if(this[Cb]&&y){return p+this[Ib]+y.slice(1)+"}"+m+a}else{return p+y+m+a}}function Bb(e,t){let r;let n=e[Al];const i=e[vl];const o=e[li];const s=e[Tl];const a=s[Cl];const l=e[Rl];const u=e[Ml].bindings;t=u(t);for(const f in t){r=t[f];const c=(f.length<5||f!=="level"&&f!=="serializers"&&f!=="formatters"&&f!=="customLevels")&&t.hasOwnProperty(f)&&r!==void 0;if(c===true){r=l[f]?l[f](r):r;r=(s[f]||a||i)(r,o);if(r===void 0)continue;n+=',"'+f+'":'+r}}return n}function qb(e){return e.write!==e.constructor.prototype.write}function Sr(e){const t=new ai(e);t.on("error",r);if(!e.sync&&Lb){wl.register(t,$b);t.on("close",function(){wl.unregister(t)})}return t;function r(n){if(n.code==="EPIPE"){t.write=tt;t.end=tt;t.flushSync=tt;t.destroy=tt;return}t.removeListener("error",r);t.emit("error",n)}}function $b(e,t){if(e.destroyed){return}if(t==="beforeExit"){e.flush();e.on("drain",function(){e.end()})}else{e.flushSync()}}function Wb(e){return function t(r,n,i={},o){if(typeof i==="string"){o=Sr({dest:i});i={}}else if(typeof o==="string"){if(i&&i.transport){throw Error("only one of option.transport or stream can be specified")}o=Sr({dest:o})}else if(i instanceof ai||i.writable||i._writableState){o=i;i={}}else if(i.transport){if(i.transport instanceof ai||i.transport.writable||i.transport._writableState){throw Error("option.transport do not allow stream, please pass to option directly. e.g. pino(transport)")}if(i.transport.targets&&i.transport.targets.length&&i.formatters&&typeof i.formatters.level==="function"){throw Error("option.transport.targets do not allow custom level formatters")}let l;if(i.customLevels){l=i.useOnlyCustomLevels?i.customLevels:Object.assign({},i.levels,i.customLevels)}o=Pb({caller:n,...i.transport,levels:l})}i=Object.assign({},e,i);i.serializers=Object.assign({},e.serializers,i.serializers);i.formatters=Object.assign({},e.formatters,i.formatters);if(i.prettyPrint){throw new Error("prettyPrint option is no longer supported, see the pino-pretty package (https://github.com/pinojs/pino-pretty)")}const{enabled:s,onChild:a}=i;if(s===false)i.level="silent";if(!a)i.onChild=tt;if(!o){if(!qb(process.stdout)){o=Sr({fd:process.stdout.fd||1})}else{o=process.stdout}}return{opts:i,stream:o}}}function Fb(e,t){try{return JSON.stringify(e)}catch(r){try{const n=t||this[li];return n(e)}catch(n){return'"[unable to serialize, circular reference is too complex to analyze]"'}}}function Ub(e,t,r){return{level:e,bindings:t,log:r}}function Hb(e){const t=Number(e);if(typeof e==="string"&&Number.isFinite(t)){return t}if(e===void 0){return 1}return e}Ol.exports={noop:tt,buildSafeSonicBoom:Sr,asChindings:Bb,asJson:jb,genLog:kb,createArgsNormalizer:Wb,stringify:Fb,buildFormatters:Ub,normalizeDestFileDescriptor:Hb}});var Er=E((yI,Il)=>{var Kb={trace:10,debug:20,info:30,warn:40,error:50,fatal:60};var Vb={ASC:"ASC",DESC:"DESC"};Il.exports={DEFAULT_LEVELS:Kb,SORTING_ORDER:Vb}});var fi=E((mI,kl)=>{"use strict";var{lsCacheSym:zb,levelValSym:ui,useOnlyCustomLevelsSym:Gb,streamSym:Yb,formattersSym:Qb,hooksSym:Jb,levelCompSym:Ll}=Ze();var{noop:Xb,genLog:Pe}=_r();var{DEFAULT_LEVELS:ae,SORTING_ORDER:Pl}=Er();var Nl={fatal:e=>{const t=Pe(ae.fatal,e);return function(...r){const n=this[Yb];t.call(this,...r);if(typeof n.flushSync==="function"){try{n.flushSync()}catch(i){}}}},error:e=>Pe(ae.error,e),warn:e=>Pe(ae.warn,e),info:e=>Pe(ae.info,e),debug:e=>Pe(ae.debug,e),trace:e=>Pe(ae.trace,e)};var ci=Object.keys(ae).reduce((e,t)=>{e[ae[t]]=t;return e},{});var Zb=Object.keys(ci).reduce((e,t)=>{e[t]='{"level":'+Number(t);return e},{});function ew(e){const t=e[Qb].level;const{labels:r}=e.levels;const n={};for(const i in r){const o=t(r[i],Number(i));n[i]=JSON.stringify(o).slice(0,-1)}e[zb]=n;return e}function tw(e,t){if(t){return false}switch(e){case"fatal":case"error":case"warn":case"info":case"debug":case"trace":return true;default:return false}}function rw(e){const{labels:t,values:r}=this.levels;if(typeof e==="number"){if(t[e]===void 0)throw Error("unknown level value"+e);e=t[e]}if(r[e]===void 0)throw Error("unknown level "+e);const n=this[ui];const i=this[ui]=r[e];const o=this[Gb];const s=this[Ll];const a=this[Jb].logMethod;for(const l in r){if(s(r[l],i)===false){this[l]=Xb;continue}this[l]=tw(l,o)?Nl[l](a):Pe(r[l],a)}this.emit("level-change",e,i,t[n],n,this)}function nw(e){const{levels:t,levelVal:r}=this;return t&&t.labels?t.labels[r]:""}function iw(e){const{values:t}=this.levels;const r=t[e];return r!==void 0&&this[Ll](r,this[ui])}function ow(e,t,r){if(e===Pl.DESC){return t<=r}return t>=r}function sw(e){if(typeof e==="string"){return ow.bind(null,e)}return e}function aw(e=null,t=false){const r=e?Object.keys(e).reduce((o,s)=>{o[e[s]]=s;return o},{}):null;const n=Object.assign(Object.create(Object.prototype,{Infinity:{value:"silent"}}),t?null:ci,r);const i=Object.assign(Object.create(Object.prototype,{silent:{value:Infinity}}),t?null:ae,e);return{labels:n,values:i}}function lw(e,t,r){if(typeof e==="number"){const i=[].concat(Object.keys(t||{}).map(o=>t[o]),r?[]:Object.keys(ci).map(o=>+o),Infinity);if(!i.includes(e)){throw Error(`default level:${e} must be included in custom levels`)}return}const n=Object.assign(Object.create(Object.prototype,{silent:{value:Infinity}}),r?null:ae,t);if(!(e in n)){throw Error(`default level:${e} must be included in custom levels`)}}function uw(e,t){const{labels:r,values:n}=e;for(const i in t){if(i in n){throw Error("levels cannot be overridden")}if(t[i]in r){throw Error("pre-existing level values cannot be used for new levels")}}}function cw(e){if(typeof e==="function"){return}if(typeof e==="string"&&Object.values(Pl).includes(e)){return}throw new Error('Levels comparison should be one of "ASC", "DESC" or "function" type')}kl.exports={initialLsCache:Zb,genLsCache:ew,levelMethods:Nl,getLevel:nw,setLevel:rw,isLevelEnabled:iw,mappings:aw,assertNoLevelCollisions:uw,assertDefaultLevelFound:lw,genLevelComparison:sw,assertLevelComparison:cw}});var di=E((bI,Dl)=>{"use strict";Dl.exports={version:"10.3.1"}});var Hl=E((SI,Ul)=>{"use strict";var{EventEmitter:fw}=I("node:events");var{lsCacheSym:dw,levelValSym:pw,setLevelSym:hi,getLevelSym:jl,chindingsSym:Ar,mixinSym:hw,asJsonSym:ql,writeSym:gw,mixinMergeStrategySym:yw,timeSym:mw,timeSliceIndexSym:bw,streamSym:$l,serializersSym:Ne,formattersSym:vt,errorKeySym:ww,messageKeySym:Sw,useOnlyCustomLevelsSym:_w,needsMetadataGsym:Ew,redactFmtSym:xw,stringifySym:Aw,formatOptsSym:Rw,stringifiersSym:Tw,msgPrefixSym:gi,hooksSym:vw}=Ze();var{getLevel:Cw,setLevel:Mw,isLevelEnabled:Ow,mappings:Iw,initialLsCache:Lw,genLsCache:Pw,assertNoLevelCollisions:Nw}=fi();var{asChindings:yi,asJson:kw,buildFormatters:pi,stringify:Bl,noop:Wl}=_r();var{version:Dw}=di();var jw=Kn();var Bw=class wI{};var Fl={constructor:Bw,child:qw,bindings:$w,setBindings:Ww,flush:Hw,isLevelEnabled:Ow,version:Dw,get level(){return this[jl]()},set level(e){this[hi](e)},get levelVal(){return this[pw]},set levelVal(e){throw Error("levelVal is read-only")},get msgPrefix(){return this[gi]},get[Symbol.toStringTag](){return"Pino"},[dw]:Lw,[gw]:Uw,[ql]:kw,[jl]:Cw,[hi]:Mw};Object.setPrototypeOf(Fl,fw.prototype);Ul.exports=function(){return Object.create(Fl)};var xr=e=>e;function qw(e,t){if(!e){throw Error("missing bindings for child Pino")}const r=this[Ne];const n=this[vt];const i=Object.create(this);if(t==null){if(i[vt].bindings!==xr){i[vt]=pi(n.level,xr,n.log)}i[Ar]=yi(i,e);if(this.onChild!==Wl){this.onChild(i)}return i}if(t.hasOwnProperty("serializers")===true){i[Ne]=Object.create(null);for(const u in r){i[Ne][u]=r[u]}const a=Object.getOwnPropertySymbols(r);for(var o=0;o<a.length;o++){const u=a[o];i[Ne][u]=r[u]}for(const u in t.serializers){i[Ne][u]=t.serializers[u]}const l=Object.getOwnPropertySymbols(t.serializers);for(var s=0;s<l.length;s++){const u=l[s];i[Ne][u]=t.serializers[u]}}else i[Ne]=r;if(t.hasOwnProperty("formatters")){const{level:a,bindings:l,log:u}=t.formatters;i[vt]=pi(a||n.level,l||xr,u||n.log)}else{i[vt]=pi(n.level,xr,n.log)}if(t.hasOwnProperty("customLevels")===true){Nw(this.levels,t.customLevels);i.levels=Iw(t.customLevels,i[_w]);Pw(i)}if(typeof t.redact==="object"&&t.redact!==null||Array.isArray(t.redact)){i.redact=t.redact;const a=jw(i.redact,Bl);const l={stringify:a[xw]};i[Aw]=Bl;i[Tw]=a;i[Rw]=l}if(typeof t.msgPrefix==="string"){i[gi]=(this[gi]||"")+t.msgPrefix}i[Ar]=yi(i,e);if(t.level!==void 0&&t.level!==this.level||t.hasOwnProperty("customLevels")){const a=t.level||this.level;i[hi](a)}this.onChild(i);return i}function $w(){const e=this[Ar];const t=`{${e.substr(1)}}`;const r=JSON.parse(t);delete r.pid;delete r.hostname;return r}function Ww(e){const t=yi(this,e);this[Ar]=t}function Fw(e,t){return Object.assign(t,e)}function Uw(e,t,r){const n=this[mw]();const i=this[hw];const o=this[ww];const s=this[Sw];const a=this[yw]||Fw;let l;const u=this[vw].streamWrite;if(e===void 0||e===null){l={}}else if(e instanceof Error){l={[o]:e};if(t===void 0){t=e.message}}else{l=e;if(t===void 0&&e[s]===void 0&&e[o]){t=e[o].message}}if(i){l=a(l,i(l,r,this))}const f=this[ql](l,t,r,n);const c=this[$l];if(c[Ew]===true){c.lastLevel=r;c.lastObj=l;c.lastMsg=t;c.lastTime=n.slice(this[bw]);c.lastLogger=this}c.write(u?u(f):f)}function Hw(e){if(e!=null&&typeof e!=="function"){throw Error("callback must be a function")}const t=this[$l];if(typeof t.flush==="function"){t.flush(e||Wl)}else if(e)e()}});var Gl=E((Si,zl)=>{"use strict";var{hasOwnProperty:Ct}=Object.prototype;var De=wi();De.configure=wi;De.stringify=De;De.default=De;Si.stringify=De;Si.configure=wi;zl.exports=De;var Kw=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]/;function _e(e){if(e.length<5e3&&!Kw.test(e)){return`"${e}"`}return JSON.stringify(e)}function mi(e,t){if(e.length>200||t){return e.sort(t)}for(let r=1;r<e.length;r++){const n=e[r];let i=r;while(i!==0&&e[i-1]>n){e[i]=e[i-1];i--}e[i]=n}return e}var Vw=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function bi(e){return Vw.call(e)!==void 0&&e.length!==0}function Kl(e,t,r){if(e.length<r){r=e.length}const n=t===","?"":" ";let i=`"0":${n}${e[0]}`;for(let o=1;o<r;o++){i+=`${t}"${o}":${n}${e[o]}`}return i}function zw(e){if(Ct.call(e,"circularValue")){const t=e.circularValue;if(typeof t==="string"){return`"${t}"`}if(t==null){return t}if(t===Error||t===TypeError){return{toString(){throw new TypeError("Converting circular structure to JSON")}}}throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function Gw(e){let t;if(Ct.call(e,"deterministic")){t=e.deterministic;if(typeof t!=="boolean"&&typeof t!=="function"){throw new TypeError('The "deterministic" argument must be of type boolean or comparator function')}}return t===void 0?true:t}function Yw(e,t){let r;if(Ct.call(e,t)){r=e[t];if(typeof r!=="boolean"){throw new TypeError(`The "${t}" argument must be of type boolean`)}}return r===void 0?true:r}function Vl(e,t){let r;if(Ct.call(e,t)){r=e[t];if(typeof r!=="number"){throw new TypeError(`The "${t}" argument must be of type number`)}if(!Number.isInteger(r)){throw new TypeError(`The "${t}" argument must be an integer`)}if(r<1){throw new RangeError(`The "${t}" argument must be >= 1`)}}return r===void 0?Infinity:r}function ke(e){if(e===1){return"1 item"}return`${e} items`}function Qw(e){const t=new Set;for(const r of e){if(typeof r==="string"||typeof r==="number"){t.add(String(r))}}return t}function Jw(e){if(Ct.call(e,"strict")){const t=e.strict;if(typeof t!=="boolean"){throw new TypeError('The "strict" argument must be of type boolean')}if(t){return r=>{let n=`Object can not safely be stringified. Received type ${typeof r}`;if(typeof r!=="function")n+=` (${r.toString()})`;throw new Error(n)}}}}function wi(e){e={...e};const t=Jw(e);if(t){if(e.bigint===void 0){e.bigint=false}if(!("circularValue"in e)){e.circularValue=Error}}const r=zw(e);const n=Yw(e,"bigint");const i=Gw(e);const o=typeof i==="function"?i:void 0;const s=Vl(e,"maximumDepth");const a=Vl(e,"maximumBreadth");function l(p,d,g,y,m,w){let _=d[p];if(typeof _==="object"&&_!==null&&typeof _.toJSON==="function"){_=_.toJSON(p)}_=y.call(d,p,_);switch(typeof _){case"string":return _e(_);case"object":{if(_===null){return"null"}if(g.indexOf(_)!==-1){return r}let S="";let A=",";const v=w;if(Array.isArray(_)){if(_.length===0){return"[]"}if(s<g.length+1){return'"[Array]"'}g.push(_);if(m!==""){w+=m;S+=`
|
|
3
|
+
${w}`;A=`,
|
|
4
|
+
${w}`}const D=Math.min(_.length,a);let x=0;for(;x<D-1;x++){const J=l(String(x),_,g,y,m,w);S+=J!==void 0?J:"null";S+=A}const z=l(String(x),_,g,y,m,w);S+=z!==void 0?z:"null";if(_.length-1>a){const J=_.length-a-1;S+=`${A}"... ${ke(J)} not stringified"`}if(m!==""){S+=`
|
|
5
|
+
${v}`}g.pop();return`[${S}]`}let R=Object.keys(_);const C=R.length;if(C===0){return"{}"}if(s<g.length+1){return'"[Object]"'}let T="";let P="";if(m!==""){w+=m;A=`,
|
|
6
|
+
${w}`;T=" "}const B=Math.min(C,a);if(i&&!bi(_)){R=mi(R,o)}g.push(_);for(let D=0;D<B;D++){const x=R[D];const z=l(x,_,g,y,m,w);if(z!==void 0){S+=`${P}${_e(x)}:${T}${z}`;P=A}}if(C>a){const D=C-a;S+=`${P}"...":${T}"${ke(D)} not stringified"`;P=A}if(m!==""&&P.length>1){S=`
|
|
7
|
+
${w}${S}
|
|
8
|
+
${v}`}g.pop();return`{${S}}`}case"number":return isFinite(_)?String(_):t?t(_):"null";case"boolean":return _===true?"true":"false";case"undefined":return void 0;case"bigint":if(n){return String(_)}default:return t?t(_):void 0}}function u(p,d,g,y,m,w){if(typeof d==="object"&&d!==null&&typeof d.toJSON==="function"){d=d.toJSON(p)}switch(typeof d){case"string":return _e(d);case"object":{if(d===null){return"null"}if(g.indexOf(d)!==-1){return r}const _=w;let S="";let A=",";if(Array.isArray(d)){if(d.length===0){return"[]"}if(s<g.length+1){return'"[Array]"'}g.push(d);if(m!==""){w+=m;S+=`
|
|
9
|
+
${w}`;A=`,
|
|
10
|
+
${w}`}const C=Math.min(d.length,a);let T=0;for(;T<C-1;T++){const B=u(String(T),d[T],g,y,m,w);S+=B!==void 0?B:"null";S+=A}const P=u(String(T),d[T],g,y,m,w);S+=P!==void 0?P:"null";if(d.length-1>a){const B=d.length-a-1;S+=`${A}"... ${ke(B)} not stringified"`}if(m!==""){S+=`
|
|
11
|
+
${_}`}g.pop();return`[${S}]`}g.push(d);let v="";if(m!==""){w+=m;A=`,
|
|
12
|
+
${w}`;v=" "}let R="";for(const C of y){const T=u(C,d[C],g,y,m,w);if(T!==void 0){S+=`${R}${_e(C)}:${v}${T}`;R=A}}if(m!==""&&R.length>1){S=`
|
|
13
|
+
${w}${S}
|
|
14
|
+
${_}`}g.pop();return`{${S}}`}case"number":return isFinite(d)?String(d):t?t(d):"null";case"boolean":return d===true?"true":"false";case"undefined":return void 0;case"bigint":if(n){return String(d)}default:return t?t(d):void 0}}function f(p,d,g,y,m){switch(typeof d){case"string":return _e(d);case"object":{if(d===null){return"null"}if(typeof d.toJSON==="function"){d=d.toJSON(p);if(typeof d!=="object"){return f(p,d,g,y,m)}if(d===null){return"null"}}if(g.indexOf(d)!==-1){return r}const w=m;if(Array.isArray(d)){if(d.length===0){return"[]"}if(s<g.length+1){return'"[Array]"'}g.push(d);m+=y;let T=`
|
|
15
|
+
${m}`;const P=`,
|
|
16
|
+
${m}`;const B=Math.min(d.length,a);let D=0;for(;D<B-1;D++){const z=f(String(D),d[D],g,y,m);T+=z!==void 0?z:"null";T+=P}const x=f(String(D),d[D],g,y,m);T+=x!==void 0?x:"null";if(d.length-1>a){const z=d.length-a-1;T+=`${P}"... ${ke(z)} not stringified"`}T+=`
|
|
17
|
+
${w}`;g.pop();return`[${T}]`}let _=Object.keys(d);const S=_.length;if(S===0){return"{}"}if(s<g.length+1){return'"[Object]"'}m+=y;const A=`,
|
|
18
|
+
${m}`;let v="";let R="";let C=Math.min(S,a);if(bi(d)){v+=Kl(d,A,a);_=_.slice(d.length);C-=d.length;R=A}if(i){_=mi(_,o)}g.push(d);for(let T=0;T<C;T++){const P=_[T];const B=f(P,d[P],g,y,m);if(B!==void 0){v+=`${R}${_e(P)}: ${B}`;R=A}}if(S>a){const T=S-a;v+=`${R}"...": "${ke(T)} not stringified"`;R=A}if(R!==""){v=`
|
|
19
|
+
${m}${v}
|
|
20
|
+
${w}`}g.pop();return`{${v}}`}case"number":return isFinite(d)?String(d):t?t(d):"null";case"boolean":return d===true?"true":"false";case"undefined":return void 0;case"bigint":if(n){return String(d)}default:return t?t(d):void 0}}function c(p,d,g){switch(typeof d){case"string":return _e(d);case"object":{if(d===null){return"null"}if(typeof d.toJSON==="function"){d=d.toJSON(p);if(typeof d!=="object"){return c(p,d,g)}if(d===null){return"null"}}if(g.indexOf(d)!==-1){return r}let y="";const m=d.length!==void 0;if(m&&Array.isArray(d)){if(d.length===0){return"[]"}if(s<g.length+1){return'"[Array]"'}g.push(d);const v=Math.min(d.length,a);let R=0;for(;R<v-1;R++){const T=c(String(R),d[R],g);y+=T!==void 0?T:"null";y+=","}const C=c(String(R),d[R],g);y+=C!==void 0?C:"null";if(d.length-1>a){const T=d.length-a-1;y+=`,"... ${ke(T)} not stringified"`}g.pop();return`[${y}]`}let w=Object.keys(d);const _=w.length;if(_===0){return"{}"}if(s<g.length+1){return'"[Object]"'}let S="";let A=Math.min(_,a);if(m&&bi(d)){y+=Kl(d,",",a);w=w.slice(d.length);A-=d.length;S=","}if(i){w=mi(w,o)}g.push(d);for(let v=0;v<A;v++){const R=w[v];const C=c(R,d[R],g);if(C!==void 0){y+=`${S}${_e(R)}:${C}`;S=","}}if(_>a){const v=_-a;y+=`${S}"...":"${ke(v)} not stringified"`}g.pop();return`{${y}}`}case"number":return isFinite(d)?String(d):t?t(d):"null";case"boolean":return d===true?"true":"false";case"undefined":return void 0;case"bigint":if(n){return String(d)}default:return t?t(d):void 0}}function h(p,d,g){if(arguments.length>1){let y="";if(typeof g==="number"){y=" ".repeat(Math.min(g,10))}else if(typeof g==="string"){y=g.slice(0,10)}if(d!=null){if(typeof d==="function"){return l("",{"":p},[],d,y,"")}if(Array.isArray(d)){return u("",p,[],Qw(d),y,"")}}if(y.length!==0){return f("",p,[],y,"")}}return c("",p,[])}return h}});var Xl=E((_I,Jl)=>{"use strict";var _i=Symbol.for("pino.metadata");var{DEFAULT_LEVELS:Ql}=Er();var Xw=Ql.info;function Zw(e,t){e=e||[];t=t||{dedupe:false};const r=Object.create(Ql);r.silent=Infinity;if(t.levels&&typeof t.levels==="object"){Object.keys(t.levels).forEach(c=>{r[c]=t.levels[c]})}const n={write:i,add:a,remove:l,emit:o,flushSync:s,end:u,minLevel:0,lastId:0,streams:[],clone:f,[_i]:true,streamLevels:r};if(Array.isArray(e)){e.forEach(a,n)}else{a.call(n,e)}e=null;return n;function i(c){let h;const p=this.lastLevel;const{streams:d}=this;let g=0;let y;for(let m=eS(d.length,t.dedupe);rS(m,d.length,t.dedupe);m=tS(m,t.dedupe)){h=d[m];if(h.level<=p){if(g!==0&&g!==h.level){break}y=h.stream;if(y[_i]){const{lastTime:w,lastMsg:_,lastObj:S,lastLogger:A}=this;y.lastLevel=p;y.lastTime=w;y.lastMsg=_;y.lastObj=S;y.lastLogger=A}y.write(c);if(t.dedupe){g=h.level}}else if(!t.dedupe){break}}}function o(...c){for(const{stream:h}of this.streams){if(typeof h.emit==="function"){h.emit(...c)}}}function s(){for(const{stream:c}of this.streams){if(typeof c.flushSync==="function"){c.flushSync()}}}function a(c){if(!c){return n}const h=typeof c.write==="function"||c.stream;const p=c.write?c:c.stream;if(!h){throw Error("stream object needs to implement either StreamEntry or DestinationStream interface")}const{streams:d,streamLevels:g}=this;let y;if(typeof c.levelVal==="number"){y=c.levelVal}else if(typeof c.level==="string"){y=g[c.level]}else if(typeof c.level==="number"){y=c.level}else{y=Xw}const m={stream:p,level:y,levelVal:void 0,id:++n.lastId};d.unshift(m);d.sort(Yl);this.minLevel=d[0].level;return n}function l(c){const{streams:h}=this;const p=h.findIndex(d=>d.id===c);if(p>=0){h.splice(p,1);h.sort(Yl);this.minLevel=h.length>0?h[0].level:-1}return n}function u(){for(const{stream:c}of this.streams){if(typeof c.flushSync==="function"){c.flushSync()}c.end()}}function f(c){const h=new Array(this.streams.length);for(let p=0;p<h.length;p++){h[p]={level:c,stream:this.streams[p].stream}}return{write:i,add:a,remove:l,minLevel:c,streams:h,clone:f,emit:o,flushSync:s,[_i]:true}}}function Yl(e,t){return e.level-t.level}function eS(e,t){return t?e-1:0}function tS(e,t){return t?e-1:e+1}function rS(e,t,r){return r?e>=0:e<t}Jl.exports=Zw});var du=E((EI,Z)=>{"use strict";var nS=I("node:os");var su=Wn();var iS=Fn();var oS=Kn();var au=ja();var sS=Hl();var lu=Ze();var{configure:aS}=Gl();var{assertDefaultLevelFound:lS,mappings:uu,genLsCache:uS,genLevelComparison:cS,assertLevelComparison:fS}=fi();var{DEFAULT_LEVELS:cu,SORTING_ORDER:dS}=Er();var{createArgsNormalizer:pS,asChindings:hS,buildSafeSonicBoom:Zl,buildFormatters:gS,stringify:Ei,normalizeDestFileDescriptor:eu,noop:yS}=_r();var{version:mS}=di();var{chindingsSym:tu,redactFmtSym:bS,serializersSym:ru,timeSym:wS,timeSliceIndexSym:SS,streamSym:_S,stringifySym:nu,stringifySafeSym:xi,stringifiersSym:iu,setLevelSym:ES,endSym:xS,formatOptsSym:AS,messageKeySym:RS,errorKeySym:TS,nestedKeySym:vS,mixinSym:CS,levelCompSym:MS,useOnlyCustomLevelsSym:OS,formattersSym:ou,hooksSym:IS,nestedKeyStrSym:LS,mixinMergeStrategySym:PS,msgPrefixSym:NS}=lu;var{epochTime:fu,nullTime:kS}=au;var{pid:DS}=process;var jS=nS.hostname();var BS=su.err;var qS={level:"info",levelComparison:dS.ASC,levels:cu,messageKey:"msg",errorKey:"err",nestedKey:null,enabled:true,base:{pid:DS,hostname:jS},serializers:Object.assign(Object.create(null),{err:BS}),formatters:Object.assign(Object.create(null),{bindings(e){return e},level(e,t){return{level:t}}}),hooks:{logMethod:void 0,streamWrite:void 0},timestamp:fu,name:void 0,redact:null,customLevels:null,useOnlyCustomLevels:false,depthLimit:5,edgeLimit:100};var $S=pS(qS);var WS=Object.assign(Object.create(null),su);function Ai(...e){const t={};const{opts:r,stream:n}=$S(t,iS(),...e);if(r.level&&typeof r.level==="string"&&cu[r.level.toLowerCase()]!==void 0)r.level=r.level.toLowerCase();const{redact:i,crlf:o,serializers:s,timestamp:a,messageKey:l,errorKey:u,nestedKey:f,base:c,name:h,level:p,customLevels:d,levelComparison:g,mixin:y,mixinMergeStrategy:m,useOnlyCustomLevels:w,formatters:_,hooks:S,depthLimit:A,edgeLimit:v,onChild:R,msgPrefix:C}=r;const T=aS({maximumDepth:A,maximumBreadth:v});const P=gS(_.level,_.bindings,_.log);const B=Ei.bind({[xi]:T});const D=i?oS(i,B):{};const x=i?{stringify:D[bS]}:{stringify:B};const z="}"+(o?"\r\n":"\n");const J=hS.bind(null,{[tu]:"",[ru]:s,[iu]:D,[nu]:Ei,[xi]:T,[ou]:P});let Ie="";if(c!==null){if(h===void 0){Ie=J(c)}else{Ie=J(Object.assign({},c,{name:h}))}}const Ls=a instanceof Function?a:a?fu:kS;const jh=Ls().indexOf(":")+1;if(w&&!d)throw Error("customLevels is required if useOnlyCustomLevels is set true");if(y&&typeof y!=="function")throw Error(`Unknown mixin type "${typeof y}" - expected "function"`);if(C&&typeof C!=="string")throw Error(`Unknown msgPrefix type "${typeof C}" - expected "string"`);lS(p,d,w);const Ps=uu(d,w);if(typeof n.emit==="function"){n.emit("message",{code:"PINO_CONFIG",config:{levels:Ps,messageKey:l,errorKey:u}})}fS(g);const Bh=cS(g);Object.assign(t,{levels:Ps,[MS]:Bh,[OS]:w,[_S]:n,[wS]:Ls,[SS]:jh,[nu]:Ei,[xi]:T,[iu]:D,[xS]:z,[AS]:x,[RS]:l,[TS]:u,[vS]:f,[LS]:f?`,${JSON.stringify(f)}:{`:"",[ru]:s,[CS]:y,[PS]:m,[tu]:Ie,[ou]:P,[IS]:S,silent:yS,onChild:R,[NS]:C});Object.setPrototypeOf(t,sS());uS(t);t[ES](p);return t}Z.exports=Ai;Z.exports.destination=(e=process.stdout.fd)=>{if(typeof e==="object"){e.dest=eu(e.dest||process.stdout.fd);return Zl(e)}else{return Zl({dest:eu(e),minLength:0})}};Z.exports.transport=oi();Z.exports.multistream=Xl();Z.exports.levels=uu();Z.exports.stdSerializers=WS;Z.exports.stdTimeFunctions=Object.assign({},au);Z.exports.symbols=lu;Z.exports.version=mS;Z.exports.default=Ai;Z.exports.pino=Ai});var Ti=E(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:true});var FS=I("tty");function US(e){if(e&&e.__esModule)return e;var t=Object.create(null);if(e){Object.keys(e).forEach(function(r){if(r!=="default"){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:true,get:function(){return e[r]}})}})}t["default"]=e;return Object.freeze(t)}var Ri=US(FS);var{env:Ee={},argv:hu=[],platform:HS=""}=typeof process==="undefined"?{}:process;var KS="NO_COLOR"in Ee||hu.includes("--no-color");var VS="FORCE_COLOR"in Ee||hu.includes("--color");var zS=HS==="win32";var gu=Ee.TERM==="dumb";var GS=Ri&&Ri.isatty&&Ri.isatty(1)&&Ee.TERM&&!gu;var YS="CI"in Ee&&("GITHUB_ACTIONS"in Ee||"GITLAB_CI"in Ee||"CIRCLECI"in Ee);var yu=!KS&&(VS||zS&&!gu||GS||YS);var mu=(e,t,r,n,i=t.substring(0,e)+n,o=t.substring(e+r.length),s=o.indexOf(r))=>i+(s<0?o:mu(s,o,r,n));var QS=(e,t,r,n,i)=>e<0?r+t+n:r+mu(e,t,n,i)+n;var JS=(e,t,r=e,n=e.length+1)=>i=>i||!(i===""||i===void 0)?QS((""+i).indexOf(t,n),i,e,t,r):"";var O=(e,t,r)=>JS(`\x1B[${e}m`,`\x1B[${t}m`,r);var pu={reset:O(0,0),bold:O(1,22,"\x1B[22m\x1B[1m"),dim:O(2,22,"\x1B[22m\x1B[2m"),italic:O(3,23),underline:O(4,24),inverse:O(7,27),hidden:O(8,28),strikethrough:O(9,29),black:O(30,39),red:O(31,39),green:O(32,39),yellow:O(33,39),blue:O(34,39),magenta:O(35,39),cyan:O(36,39),white:O(37,39),gray:O(90,39),bgBlack:O(40,49),bgRed:O(41,49),bgGreen:O(42,49),bgYellow:O(43,49),bgBlue:O(44,49),bgMagenta:O(45,49),bgCyan:O(46,49),bgWhite:O(47,49),blackBright:O(90,39),redBright:O(91,39),greenBright:O(92,39),yellowBright:O(93,39),blueBright:O(94,39),magentaBright:O(95,39),cyanBright:O(96,39),whiteBright:O(97,39),bgBlackBright:O(100,49),bgRedBright:O(101,49),bgGreenBright:O(102,49),bgYellowBright:O(103,49),bgBlueBright:O(104,49),bgMagentaBright:O(105,49),bgCyanBright:O(106,49),bgWhiteBright:O(107,49)};var bu=({useColor:e=yu}={})=>e?pu:Object.keys(pu).reduce((t,r)=>({...t,[r]:String}),{});var{reset:XS,bold:ZS,dim:e_,italic:t_,underline:r_,inverse:n_,hidden:i_,strikethrough:o_,black:s_,red:a_,green:l_,yellow:u_,blue:c_,magenta:f_,cyan:d_,white:p_,gray:h_,bgBlack:g_,bgRed:y_,bgGreen:m_,bgYellow:b_,bgBlue:w_,bgMagenta:S_,bgCyan:__,bgWhite:E_,blackBright:x_,redBright:A_,greenBright:R_,yellowBright:T_,blueBright:v_,magentaBright:C_,cyanBright:M_,whiteBright:O_,bgBlackBright:I_,bgRedBright:L_,bgGreenBright:P_,bgYellowBright:N_,bgBlueBright:k_,bgMagentaBright:D_,bgCyanBright:j_,bgWhiteBright:B_}=bu();M.bgBlack=g_;M.bgBlackBright=I_;M.bgBlue=w_;M.bgBlueBright=k_;M.bgCyan=__;M.bgCyanBright=j_;M.bgGreen=m_;M.bgGreenBright=P_;M.bgMagenta=S_;M.bgMagentaBright=D_;M.bgRed=y_;M.bgRedBright=L_;M.bgWhite=E_;M.bgWhiteBright=B_;M.bgYellow=b_;M.bgYellowBright=N_;M.black=s_;M.blackBright=x_;M.blue=c_;M.blueBright=v_;M.bold=ZS;M.createColors=bu;M.cyan=d_;M.cyanBright=M_;M.dim=e_;M.gray=h_;M.green=l_;M.greenBright=R_;M.hidden=i_;M.inverse=n_;M.isColorSupported=yu;M.italic=t_;M.magenta=f_;M.magentaBright=C_;M.red=a_;M.redBright=A_;M.reset=XS;M.strikethrough=o_;M.underline=r_;M.white=p_;M.whiteBright=O_;M.yellow=u_;M.yellowBright=T_});var _u=E((AI,Su)=>{Su.exports=wu;function wu(e,t){if(e&&t)return wu(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(n){r[n]=e[n]});return r;function r(){var n=new Array(arguments.length);for(var i=0;i<n.length;i++){n[i]=arguments[i]}var o=e.apply(this,n);var s=n[n.length-1];if(typeof o==="function"&&o!==s){Object.keys(s).forEach(function(a){o[a]=s[a]})}return o}}});var Ci=E((RI,vi)=>{var Eu=_u();vi.exports=Eu(Rr);vi.exports.strict=Eu(xu);Rr.proto=Rr(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Rr(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return xu(this)},configurable:true})});function Rr(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function xu(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with `once`";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}});var Tu=E((TI,Ru)=>{var q_=Ci();var $_=function(){};var W_=global.Bare?queueMicrotask:process.nextTick.bind(process);var F_=function(e){return e.setHeader&&typeof e.abort==="function"};var U_=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var Au=function(e,t,r){if(typeof t==="function")return Au(e,null,t);if(!t)t={};r=q_(r||$_);var n=e._writableState;var i=e._readableState;var o=t.readable||t.readable!==false&&e.readable;var s=t.writable||t.writable!==false&&e.writable;var a=false;var l=function(){if(!e.writable)u()};var u=function(){s=false;if(!o)r.call(e)};var f=function(){o=false;if(!s)r.call(e)};var c=function(y){r.call(e,y?new Error("exited with error code: "+y):null)};var h=function(y){r.call(e,y)};var p=function(){W_(d)};var d=function(){if(a)return;if(o&&!(i&&(i.ended&&!i.destroyed)))return r.call(e,new Error("premature close"));if(s&&!(n&&(n.ended&&!n.destroyed)))return r.call(e,new Error("premature close"))};var g=function(){e.req.on("finish",u)};if(F_(e)){e.on("complete",u);e.on("abort",p);if(e.req)g();else e.on("request",g)}else if(s&&!n){e.on("end",l);e.on("close",l)}if(U_(e))e.on("exit",c);e.on("end",f);e.on("finish",u);if(t.error!==false)e.on("error",h);e.on("close",p);return function(){a=true;e.removeListener("complete",u);e.removeListener("abort",p);e.removeListener("request",g);if(e.req)e.req.removeListener("finish",u);e.removeListener("end",l);e.removeListener("close",l);e.removeListener("finish",u);e.removeListener("exit",c);e.removeListener("end",f);e.removeListener("error",h);e.removeListener("close",p)}};Ru.exports=Au});var Mu=E((vI,Cu)=>{var H_=Ci();var K_=Tu();var Tr;try{Tr=I("fs")}catch(e){}var Mt=function(){};var V_=typeof process==="undefined"?false:/^v?\.0/.test(process.version);var vr=function(e){return typeof e==="function"};var z_=function(e){if(!V_)return false;if(!Tr)return false;return(e instanceof(Tr.ReadStream||Mt)||e instanceof(Tr.WriteStream||Mt))&&vr(e.close)};var G_=function(e){return e.setHeader&&vr(e.abort)};var Y_=function(e,t,r,n){n=H_(n);var i=false;e.on("close",function(){i=true});K_(e,{readable:t,writable:r},function(s){if(s)return n(s);i=true;n()});var o=false;return function(s){if(i)return;if(o)return;o=true;if(z_(e))return e.close(Mt);if(G_(e))return e.abort();if(vr(e.destroy))return e.destroy();n(s||new Error("stream was destroyed"))}};var vu=function(e){e()};var Q_=function(e,t){return e.pipe(t)};var J_=function(){var e=Array.prototype.slice.call(arguments);var t=vr(e[e.length-1]||Mt)&&e.pop()||Mt;if(Array.isArray(e[0]))e=e[0];if(e.length<2)throw new Error("pump requires two streams per minimum");var r;var n=e.map(function(i,o){var s=o<e.length-1;var a=o>0;return Y_(i,s,a,function(l){if(!r)r=l;if(l)n.forEach(vu);if(s)return;n.forEach(vu);t(r)})});return e.reduce(Q_)};Cu.exports=J_});var F=E((CI,Ou)=>{"use strict";var Mi=class extends Error{constructor(t){if(!Array.isArray(t)){throw new TypeError(`Expected input to be an Array, got ${typeof t}`)}let r="";for(let n=0;n<t.length;n++){r+=` ${t[n].stack}
|
|
21
|
+
`}super(r);this.name="AggregateError";this.errors=t}};Ou.exports={AggregateError:Mi,ArrayIsArray(e){return Array.isArray(e)},ArrayPrototypeIncludes(e,t){return e.includes(t)},ArrayPrototypeIndexOf(e,t){return e.indexOf(t)},ArrayPrototypeJoin(e,t){return e.join(t)},ArrayPrototypeMap(e,t){return e.map(t)},ArrayPrototypePop(e,t){return e.pop(t)},ArrayPrototypePush(e,t){return e.push(t)},ArrayPrototypeSlice(e,t,r){return e.slice(t,r)},Error,FunctionPrototypeCall(e,t,...r){return e.call(t,...r)},FunctionPrototypeSymbolHasInstance(e,t){return Function.prototype[Symbol.hasInstance].call(e,t)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(e,t){return Object.defineProperties(e,t)},ObjectDefineProperty(e,t,r){return Object.defineProperty(e,t,r)},ObjectGetOwnPropertyDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)},ObjectKeys(e){return Object.keys(e)},ObjectSetPrototypeOf(e,t){return Object.setPrototypeOf(e,t)},Promise,PromisePrototypeCatch(e,t){return e.catch(t)},PromisePrototypeThen(e,t,r){return e.then(t,r)},PromiseReject(e){return Promise.reject(e)},PromiseResolve(e){return Promise.resolve(e)},ReflectApply:Reflect.apply,RegExpPrototypeTest(e,t){return e.test(t)},SafeSet:Set,String,StringPrototypeSlice(e,t,r){return e.slice(t,r)},StringPrototypeToLowerCase(e){return e.toLowerCase()},StringPrototypeToUpperCase(e){return e.toUpperCase()},StringPrototypeTrim(e){return e.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(e,t,r){return e.set(t,r)},Boolean,Uint8Array}});var Oi=E((MI,Iu)=>{"use strict";Iu.exports={format(e,...t){return e.replace(/%([sdifj])/g,function(...[r,n]){const i=t.shift();if(n==="f"){return i.toFixed(6)}else if(n==="j"){return JSON.stringify(i)}else if(n==="s"&&typeof i==="object"){const o=i.constructor!==Object?i.constructor.name:"";return`${o} {}`.trim()}else{return i.toString()}})},inspect(e){switch(typeof e){case"string":if(e.includes("'")){if(!e.includes('"')){return`"${e}"`}else if(!e.includes("`")&&!e.includes("${")){return`\`${e}\``}}return`'${e}'`;case"number":if(isNaN(e)){return"NaN"}else if(Object.is(e,-0)){return String(e)}return e;case"bigint":return`${String(e)}n`;case"boolean":case"undefined":return String(e);case"object":return"{}"}}}});var G=E((OI,Nu)=>{"use strict";var{format:X_,inspect:Cr}=Oi();var{AggregateError:Z_}=F();var eE=globalThis.AggregateError||Z_;var tE=Symbol("kIsNodeError");var rE=["string","function","number","object","Function","Object","boolean","bigint","symbol"];var nE=/^([A-Z][a-z0-9]*)+$/;var iE="__node_internal_";var Mr={};function je(e,t){if(!e){throw new Mr.ERR_INTERNAL_ASSERTION(t)}}function Lu(e){let t="";let r=e.length;const n=e[0]==="-"?1:0;for(;r>=n+4;r-=3){t=`_${e.slice(r-3,r)}${t}`}return`${e.slice(0,r)}${t}`}function oE(e,t,r){if(typeof t==="function"){je(t.length<=r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${t.length}).`);return t(...r)}const n=(t.match(/%[dfijoOs]/g)||[]).length;je(n===r.length,`Code: ${e}; The provided arguments length (${r.length}) does not match the required ones (${n}).`);if(r.length===0){return t}return X_(t,...r)}function V(e,t,r){if(!r){r=Error}class n extends r{constructor(...o){super(oE(e,t,o))}toString(){return`${this.name} [${e}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${e}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});n.prototype.code=e;n.prototype[tE]=true;Mr[e]=n}function Pu(e){const t=iE+e.name;Object.defineProperty(e,"name",{value:t});return e}function sE(e,t){if(e&&t&&e!==t){if(Array.isArray(t.errors)){t.errors.push(e);return t}const r=new eE([t,e],t.message);r.code=t.code;return r}return e||t}var Ii=class extends Error{constructor(t="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!=="object"){throw new Mr.ERR_INVALID_ARG_TYPE("options","Object",r)}super(t,r);this.code="ABORT_ERR";this.name="AbortError"}};V("ERR_ASSERTION","%s",Error);V("ERR_INVALID_ARG_TYPE",(e,t,r)=>{je(typeof e==="string","'name' must be a string");if(!Array.isArray(t)){t=[t]}let n="The ";if(e.endsWith(" argument")){n+=`${e} `}else{n+=`"${e}" ${e.includes(".")?"property":"argument"} `}n+="must be ";const i=[];const o=[];const s=[];for(const l of t){je(typeof l==="string","All expected entries have to be of type string");if(rE.includes(l)){i.push(l.toLowerCase())}else if(nE.test(l)){o.push(l)}else{je(l!=="object",'The value "object" should be written as "Object"');s.push(l)}}if(o.length>0){const l=i.indexOf("object");if(l!==-1){i.splice(i,l,1);o.push("Object")}}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{const l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}if(o.length>0||s.length>0){n+=" or "}}if(o.length>0){switch(o.length){case 1:n+=`an instance of ${o[0]}`;break;case 2:n+=`an instance of ${o[0]} or ${o[1]}`;break;default:{const l=o.pop();n+=`an instance of ${o.join(", ")}, or ${l}`}}if(s.length>0){n+=" or "}}switch(s.length){case 0:break;case 1:if(s[0].toLowerCase()!==s[0]){n+="an "}n+=`${s[0]}`;break;case 2:n+=`one of ${s[0]} or ${s[1]}`;break;default:{const l=s.pop();n+=`one of ${s.join(", ")}, or ${l}`}}if(r==null){n+=`. Received ${r}`}else if(typeof r==="function"&&r.name){n+=`. Received function ${r.name}`}else if(typeof r==="object"){var a;if((a=r.constructor)!==null&&a!==void 0&&a.name){n+=`. Received an instance of ${r.constructor.name}`}else{const l=Cr(r,{depth:-1});n+=`. Received ${l}`}}else{let l=Cr(r,{colors:false});if(l.length>25){l=`${l.slice(0,25)}...`}n+=`. Received type ${typeof r} (${l})`}return n},TypeError);V("ERR_INVALID_ARG_VALUE",(e,t,r="is invalid")=>{let n=Cr(t);if(n.length>128){n=n.slice(0,128)+"..."}const i=e.includes(".")?"property":"argument";return`The ${i} '${e}' ${r}. Received ${n}`},TypeError);V("ERR_INVALID_RETURN_VALUE",(e,t,r)=>{var n;const i=r!==null&&r!==void 0&&(n=r.constructor)!==null&&n!==void 0&&n.name?`instance of ${r.constructor.name}`:`type ${typeof r}`;return`Expected ${e} to be returned from the "${t}" function but got ${i}.`},TypeError);V("ERR_MISSING_ARGS",(...e)=>{je(e.length>0,"At least one arg needs to be specified");let t;const r=e.length;e=(Array.isArray(e)?e:[e]).map(n=>`"${n}"`).join(" or ");switch(r){case 1:t+=`The ${e[0]} argument`;break;case 2:t+=`The ${e[0]} and ${e[1]} arguments`;break;default:{const n=e.pop();t+=`The ${e.join(", ")}, and ${n} arguments`}break}return`${t} must be specified`},TypeError);V("ERR_OUT_OF_RANGE",(e,t,r)=>{je(t,'Missing "range" argument');let n;if(Number.isInteger(r)&&Math.abs(r)>2**32){n=Lu(String(r))}else if(typeof r==="bigint"){n=String(r);const i=BigInt(2)**BigInt(32);if(r>i||r<-i){n=Lu(n)}n+="n"}else{n=Cr(r)}return`The value of "${e}" is out of range. It must be ${t}. Received ${n}`},RangeError);V("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);V("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);V("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);V("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);V("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);V("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);V("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);V("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);V("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);V("ERR_STREAM_WRITE_AFTER_END","write after end",Error);V("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);Nu.exports={AbortError:Ii,aggregateTwoErrors:Pu(sE),hideStackFrames:Pu,codes:Mr}});var Hu=E((Lt,It)=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:true});var $u=new WeakMap;var Li=new WeakMap;function $(e){const t=$u.get(e);console.assert(t!=null,"'this' is expected an Event object, but got",e);return t}function ku(e){if(e.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}return}if(!e.event.cancelable){return}e.canceled=true;if(typeof e.event.preventDefault==="function"){e.event.preventDefault()}}function rt(e,t){$u.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:t.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const r=Object.keys(t);for(let n=0;n<r.length;++n){const i=r[n];if(!(i in this)){Object.defineProperty(this,i,Wu(i))}}}rt.prototype={get type(){return $(this).event.type},get target(){return $(this).eventTarget},get currentTarget(){return $(this).currentTarget},composedPath(){const e=$(this).currentTarget;if(e==null){return[]}return[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return $(this).eventPhase},stopPropagation(){const e=$(this);e.stopped=true;if(typeof e.event.stopPropagation==="function"){e.event.stopPropagation()}},stopImmediatePropagation(){const e=$(this);e.stopped=true;e.immediateStopped=true;if(typeof e.event.stopImmediatePropagation==="function"){e.event.stopImmediatePropagation()}},get bubbles(){return Boolean($(this).event.bubbles)},get cancelable(){return Boolean($(this).event.cancelable)},preventDefault(){ku($(this))},get defaultPrevented(){return $(this).canceled},get composed(){return Boolean($(this).event.composed)},get timeStamp(){return $(this).timeStamp},get srcElement(){return $(this).eventTarget},get cancelBubble(){return $(this).stopped},set cancelBubble(e){if(!e){return}const t=$(this);t.stopped=true;if(typeof t.event.cancelBubble==="boolean"){t.event.cancelBubble=true}},get returnValue(){return!$(this).canceled},set returnValue(e){if(!e){ku($(this))}},initEvent(){}};Object.defineProperty(rt.prototype,"constructor",{value:rt,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.Event!=="undefined"){Object.setPrototypeOf(rt.prototype,window.Event.prototype);Li.set(window.Event.prototype,rt)}function Wu(e){return{get(){return $(this).event[e]},set(t){$(this).event[e]=t},configurable:true,enumerable:true}}function aE(e){return{value(){const t=$(this).event;return t[e].apply(t,arguments)},configurable:true,enumerable:true}}function lE(e,t){const r=Object.keys(t);if(r.length===0){return e}function n(i,o){e.call(this,i,o)}n.prototype=Object.create(e.prototype,{constructor:{value:n,configurable:true,writable:true}});for(let i=0;i<r.length;++i){const o=r[i];if(!(o in e.prototype)){const s=Object.getOwnPropertyDescriptor(t,o);const a=typeof s.value==="function";Object.defineProperty(n.prototype,o,a?aE(o):Wu(o))}}return n}function Fu(e){if(e==null||e===Object.prototype){return rt}let t=Li.get(e);if(t==null){t=lE(Fu(Object.getPrototypeOf(e)),e);Li.set(e,t)}return t}function uE(e,t){const r=Fu(Object.getPrototypeOf(t));return new r(e,t)}function cE(e){return $(e).immediateStopped}function fE(e,t){$(e).eventPhase=t}function dE(e,t){$(e).currentTarget=t}function Du(e,t){$(e).passiveListener=t}var Uu=new WeakMap;var ju=1;var Bu=2;var Or=3;function Ir(e){return e!==null&&typeof e==="object"}function Ot(e){const t=Uu.get(e);if(t==null){throw new TypeError("'this' is expected an EventTarget object, but got another value.")}return t}function pE(e){return{get(){const t=Ot(this);let r=t.get(e);while(r!=null){if(r.listenerType===Or){return r.listener}r=r.next}return null},set(t){if(typeof t!=="function"&&!Ir(t)){t=null}const r=Ot(this);let n=null;let i=r.get(e);while(i!=null){if(i.listenerType===Or){if(n!==null){n.next=i.next}else if(i.next!==null){r.set(e,i.next)}else{r.delete(e)}}else{n=i}i=i.next}if(t!==null){const o={listener:t,listenerType:Or,passive:false,once:false,next:null};if(n===null){r.set(e,o)}else{n.next=o}}},configurable:true,enumerable:true}}function Pi(e,t){Object.defineProperty(e,`on${t}`,pE(t))}function qu(e){function t(){ie.call(this)}t.prototype=Object.create(ie.prototype,{constructor:{value:t,configurable:true,writable:true}});for(let r=0;r<e.length;++r){Pi(t.prototype,e[r])}return t}function ie(){if(this instanceof ie){Uu.set(this,new Map);return}if(arguments.length===1&&Array.isArray(arguments[0])){return qu(arguments[0])}if(arguments.length>0){const e=new Array(arguments.length);for(let t=0;t<arguments.length;++t){e[t]=arguments[t]}return qu(e)}throw new TypeError("Cannot call a class as a function")}ie.prototype={addEventListener(e,t,r){if(t==null){return}if(typeof t!=="function"&&!Ir(t)){throw new TypeError("'listener' should be a function or an object.")}const n=Ot(this);const i=Ir(r);const o=i?Boolean(r.capture):Boolean(r);const s=o?ju:Bu;const a={listener:t,listenerType:s,passive:i&&Boolean(r.passive),once:i&&Boolean(r.once),next:null};let l=n.get(e);if(l===void 0){n.set(e,a);return}let u=null;while(l!=null){if(l.listener===t&&l.listenerType===s){return}u=l;l=l.next}u.next=a},removeEventListener(e,t,r){if(t==null){return}const n=Ot(this);const i=Ir(r)?Boolean(r.capture):Boolean(r);const o=i?ju:Bu;let s=null;let a=n.get(e);while(a!=null){if(a.listener===t&&a.listenerType===o){if(s!==null){s.next=a.next}else if(a.next!==null){n.set(e,a.next)}else{n.delete(e)}return}s=a;a=a.next}},dispatchEvent(e){if(e==null||typeof e.type!=="string"){throw new TypeError('"event.type" should be a string.')}const t=Ot(this);const r=e.type;let n=t.get(r);if(n==null){return true}const i=uE(this,e);let o=null;while(n!=null){if(n.once){if(o!==null){o.next=n.next}else if(n.next!==null){t.set(r,n.next)}else{t.delete(r)}}else{o=n}Du(i,n.passive?n.listener:null);if(typeof n.listener==="function"){try{n.listener.call(this,i)}catch(s){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error(s)}}}else if(n.listenerType!==Or&&typeof n.listener.handleEvent==="function"){n.listener.handleEvent(i)}if(cE(i)){break}n=n.next}Du(i,null);fE(i,0);dE(i,null);return!i.defaultPrevented}};Object.defineProperty(ie.prototype,"constructor",{value:ie,configurable:true,writable:true});if(typeof window!=="undefined"&&typeof window.EventTarget!=="undefined"){Object.setPrototypeOf(ie.prototype,window.EventTarget.prototype)}Lt.defineEventAttribute=Pi;Lt.EventTarget=ie;Lt.default=ie;It.exports=ie;It.exports.EventTarget=It.exports["default"]=ie;It.exports.defineEventAttribute=Pi});var nt=E((Nt,Pt)=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:true});var Ni=Hu();var xe=class extends Ni.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const t=Lr.get(this);if(typeof t!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return t}};Ni.defineEventAttribute(xe.prototype,"abort");function hE(){const e=Object.create(xe.prototype);Ni.EventTarget.call(e);Lr.set(e,false);return e}function gE(e){if(Lr.get(e)!==false){return}Lr.set(e,true);e.dispatchEvent({type:"abort"})}var Lr=new WeakMap;Object.defineProperties(xe.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(xe.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}var Ae=class{constructor(){Vu.set(this,hE())}get signal(){return Ku(this)}abort(){gE(Ku(this))}};var Vu=new WeakMap;function Ku(e){const t=Vu.get(e);if(t==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${e===null?"null":typeof e}`)}return t}Object.defineProperties(Ae.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(Ae.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}Nt.AbortController=Ae;Nt.AbortSignal=xe;Nt.default=Ae;Pt.exports=Ae;Pt.exports.AbortController=Pt.exports["default"]=Ae;Pt.exports.AbortSignal=xe});var Q=E((II,Di)=>{"use strict";var yE=I("buffer");var{format:mE,inspect:bE}=Oi();var{codes:{ERR_INVALID_ARG_TYPE:ki}}=G();var{kResistStopPropagation:wE,AggregateError:SE,SymbolDispose:_E}=F();var EE=globalThis.AbortSignal||nt().AbortSignal;var xE=globalThis.AbortController||nt().AbortController;var AE=Object.getPrototypeOf(async function(){}).constructor;var zu=globalThis.Blob||yE.Blob;var RE=typeof zu!=="undefined"?function e(t){return t instanceof zu}:function e(t){return false};var Gu=(e,t)=>{if(e!==void 0&&(e===null||typeof e!=="object"||!("aborted"in e))){throw new ki(t,"AbortSignal",e)}};var TE=(e,t)=>{if(typeof e!=="function"){throw new ki(t,"Function",e)}};Di.exports={AggregateError:SE,kEmptyObject:Object.freeze({}),once(e){let t=false;return function(...r){if(t){return}t=true;e.apply(this,r)}},createDeferredPromise:function(){let e;let t;const r=new Promise((n,i)=>{e=n;t=i});return{promise:r,resolve:e,reject:t}},promisify(e){return new Promise((t,r)=>{e((n,...i)=>{if(n){return r(n)}return t(...i)})})},debuglog(){return function(){}},format:mE,inspect:bE,types:{isAsyncFunction(e){return e instanceof AE},isArrayBufferView(e){return ArrayBuffer.isView(e)}},isBlob:RE,deprecate(e,t){return e},addAbortListener:I("events").addAbortListener||function e(t,r){if(t===void 0){throw new ki("signal","AbortSignal",t)}Gu(t,"signal");TE(r,"listener");let n;if(t.aborted){queueMicrotask(()=>r())}else{t.addEventListener("abort",r,{__proto__:null,once:true,[wE]:true});n=()=>{t.removeEventListener("abort",r)}}return{__proto__:null,[_E](){var i;(i=n)===null||i===void 0?void 0:i()}}},AbortSignalAny:EE.any||function e(t){if(t.length===1){return t[0]}const r=new xE;const n=()=>r.abort();t.forEach(i=>{Gu(i,"signals");i.addEventListener("abort",n,{once:true})});r.signal.addEventListener("abort",()=>{t.forEach(i=>i.removeEventListener("abort",n))},{once:true});return r.signal}};Di.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var ot=E((LI,ic)=>{"use strict";var{ArrayIsArray:Bi,ArrayPrototypeIncludes:Xu,ArrayPrototypeJoin:Zu,ArrayPrototypeMap:vE,NumberIsInteger:qi,NumberIsNaN:CE,NumberMAX_SAFE_INTEGER:ME,NumberMIN_SAFE_INTEGER:OE,NumberParseInt:IE,ObjectPrototypeHasOwnProperty:LE,RegExpPrototypeExec:ec,String:PE,StringPrototypeToUpperCase:NE,StringPrototypeTrim:kE}=F();var{hideStackFrames:ee,codes:{ERR_SOCKET_BAD_PORT:DE,ERR_INVALID_ARG_TYPE:Y,ERR_INVALID_ARG_VALUE:it,ERR_OUT_OF_RANGE:Be,ERR_UNKNOWN_SIGNAL:Yu}}=G();var{normalizeEncoding:jE}=Q();var{isAsyncFunction:BE,isArrayBufferView:qE}=Q().types;var Qu={};function $E(e){return e===(e|0)}function WE(e){return e===e>>>0}var FE=/^[0-7]+$/;var UE="must be a 32-bit unsigned integer or an octal string";function HE(e,t,r){if(typeof e==="undefined"){e=r}if(typeof e==="string"){if(ec(FE,e)===null){throw new it(t,e,UE)}e=IE(e,8)}tc(e,t);return e}var KE=ee((e,t,r=OE,n=ME)=>{if(typeof e!=="number")throw new Y(t,"number",e);if(!qi(e))throw new Be(t,"an integer",e);if(e<r||e>n)throw new Be(t,`>= ${r} && <= ${n}`,e)});var VE=ee((e,t,r=-2147483648,n=2147483647)=>{if(typeof e!=="number"){throw new Y(t,"number",e)}if(!qi(e)){throw new Be(t,"an integer",e)}if(e<r||e>n){throw new Be(t,`>= ${r} && <= ${n}`,e)}});var tc=ee((e,t,r=false)=>{if(typeof e!=="number"){throw new Y(t,"number",e)}if(!qi(e)){throw new Be(t,"an integer",e)}const n=r?1:0;const i=4294967295;if(e<n||e>i){throw new Be(t,`>= ${n} && <= ${i}`,e)}});function $i(e,t){if(typeof e!=="string")throw new Y(t,"string",e)}function zE(e,t,r=void 0,n){if(typeof e!=="number")throw new Y(t,"number",e);if(r!=null&&e<r||n!=null&&e>n||(r!=null||n!=null)&&CE(e)){throw new Be(t,`${r!=null?`>= ${r}`:""}${r!=null&&n!=null?" && ":""}${n!=null?`<= ${n}`:""}`,e)}}var GE=ee((e,t,r)=>{if(!Xu(r,e)){const n=Zu(vE(r,o=>typeof o==="string"?`'${o}'`:PE(o)),", ");const i="must be one of: "+n;throw new it(t,e,i)}});function rc(e,t){if(typeof e!=="boolean")throw new Y(t,"boolean",e)}function ji(e,t,r){return e==null||!LE(e,t)?r:e[t]}var YE=ee((e,t,r=null)=>{const n=ji(r,"allowArray",false);const i=ji(r,"allowFunction",false);const o=ji(r,"nullable",false);if(!o&&e===null||!n&&Bi(e)||typeof e!=="object"&&(!i||typeof e!=="function")){throw new Y(t,"Object",e)}});var QE=ee((e,t)=>{if(e!=null&&typeof e!=="object"&&typeof e!=="function"){throw new Y(t,"a dictionary",e)}});var Pr=ee((e,t,r=0)=>{if(!Bi(e)){throw new Y(t,"Array",e)}if(e.length<r){const n=`must be longer than ${r}`;throw new it(t,e,n)}});function JE(e,t){Pr(e,t);for(let r=0;r<e.length;r++){$i(e[r],`${t}[${r}]`)}}function XE(e,t){Pr(e,t);for(let r=0;r<e.length;r++){rc(e[r],`${t}[${r}]`)}}function ZE(e,t){Pr(e,t);for(let r=0;r<e.length;r++){const n=e[r];const i=`${t}[${r}]`;if(n==null){throw new Y(i,"AbortSignal",n)}nc(n,i)}}function ex(e,t="signal"){$i(e,t);if(Qu[e]===void 0){if(Qu[NE(e)]!==void 0){throw new Yu(e+" (signals must use all capital letters)")}throw new Yu(e)}}var tx=ee((e,t="buffer")=>{if(!qE(e)){throw new Y(t,["Buffer","TypedArray","DataView"],e)}});function rx(e,t){const r=jE(t);const n=e.length;if(r==="hex"&&n%2!==0){throw new it("encoding",t,`is invalid for data of length ${n}`)}}function nx(e,t="Port",r=true){if(typeof e!=="number"&&typeof e!=="string"||typeof e==="string"&&kE(e).length===0||+e!==+e>>>0||e>65535||e===0&&!r){throw new DE(t,e,r)}return e|0}var nc=ee((e,t)=>{if(e!==void 0&&(e===null||typeof e!=="object"||!("aborted"in e))){throw new Y(t,"AbortSignal",e)}});var ix=ee((e,t)=>{if(typeof e!=="function")throw new Y(t,"Function",e)});var ox=ee((e,t)=>{if(typeof e!=="function"||BE(e))throw new Y(t,"Function",e)});var sx=ee((e,t)=>{if(e!==void 0)throw new Y(t,"undefined",e)});function ax(e,t,r){if(!Xu(r,e)){throw new Y(t,`('${Zu(r,"|")}')`,e)}}var lx=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function Ju(e,t){if(typeof e==="undefined"||!ec(lx,e)){throw new it(t,e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}}function ux(e){if(typeof e==="string"){Ju(e,"hints");return e}else if(Bi(e)){const t=e.length;let r="";if(t===0){return r}for(let n=0;n<t;n++){const i=e[n];Ju(i,"hints");r+=i;if(n!==t-1){r+=", "}}return r}throw new it("hints",e,'must be an array or string of format "</styles.css>; rel=preload; as=style"')}ic.exports={isInt32:$E,isUint32:WE,parseFileMode:HE,validateArray:Pr,validateStringArray:JE,validateBooleanArray:XE,validateAbortSignalArray:ZE,validateBoolean:rc,validateBuffer:tx,validateDictionary:QE,validateEncoding:rx,validateFunction:ix,validateInt32:VE,validateInteger:KE,validateNumber:zE,validateObject:YE,validateOneOf:GE,validatePlainFunction:ox,validatePort:nx,validateSignalName:ex,validateString:$i,validateUint32:tc,validateUndefined:sx,validateUnion:ax,validateAbortSignal:nc,validateLinkHeaderValue:ux}});var Re=E((PI,oc)=>{oc.exports=global.process});var ue=E((NI,Sc)=>{"use strict";var{SymbolAsyncIterator:sc,SymbolIterator:ac,SymbolFor:qe}=F();var lc=qe("nodejs.stream.destroyed");var uc=qe("nodejs.stream.errored");var Wi=qe("nodejs.stream.readable");var Fi=qe("nodejs.stream.writable");var cc=qe("nodejs.stream.disturbed");var cx=qe("nodejs.webstream.isClosedPromise");var fx=qe("nodejs.webstream.controllerErrorFunction");function Nr(e,t=false){var r;return!!(e&&typeof e.pipe==="function"&&typeof e.on==="function"&&(!t||typeof e.pause==="function"&&typeof e.resume==="function")&&(!e._writableState||((r=e._readableState)===null||r===void 0?void 0:r.readable)!==false)&&(!e._writableState||e._readableState))}function kr(e){var t;return!!(e&&typeof e.write==="function"&&typeof e.on==="function"&&(!e._readableState||((t=e._writableState)===null||t===void 0?void 0:t.writable)!==false))}function dx(e){return!!(e&&typeof e.pipe==="function"&&e._readableState&&typeof e.on==="function"&&typeof e.write==="function")}function le(e){return e&&(e._readableState||e._writableState||typeof e.write==="function"&&typeof e.on==="function"||typeof e.pipe==="function"&&typeof e.on==="function")}function fc(e){return!!(e&&!le(e)&&typeof e.pipeThrough==="function"&&typeof e.getReader==="function"&&typeof e.cancel==="function")}function dc(e){return!!(e&&!le(e)&&typeof e.getWriter==="function"&&typeof e.abort==="function")}function pc(e){return!!(e&&!le(e)&&typeof e.readable==="object"&&typeof e.writable==="object")}function px(e){return fc(e)||dc(e)||pc(e)}function hx(e,t){if(e==null)return false;if(t===true)return typeof e[sc]==="function";if(t===false)return typeof e[ac]==="function";return typeof e[sc]==="function"||typeof e[ac]==="function"}function Dr(e){if(!le(e))return null;const t=e._writableState;const r=e._readableState;const n=t||r;return!!(e.destroyed||e[lc]||n!==null&&n!==void 0&&n.destroyed)}function hc(e){if(!kr(e))return null;if(e.writableEnded===true)return true;const t=e._writableState;if(t!==null&&t!==void 0&&t.errored)return false;if(typeof(t===null||t===void 0?void 0:t.ended)!=="boolean")return null;return t.ended}function gx(e,t){if(!kr(e))return null;if(e.writableFinished===true)return true;const r=e._writableState;if(r!==null&&r!==void 0&&r.errored)return false;if(typeof(r===null||r===void 0?void 0:r.finished)!=="boolean")return null;return!!(r.finished||t===false&&r.ended===true&&r.length===0)}function yx(e){if(!Nr(e))return null;if(e.readableEnded===true)return true;const t=e._readableState;if(!t||t.errored)return false;if(typeof(t===null||t===void 0?void 0:t.ended)!=="boolean")return null;return t.ended}function gc(e,t){if(!Nr(e))return null;const r=e._readableState;if(r!==null&&r!==void 0&&r.errored)return false;if(typeof(r===null||r===void 0?void 0:r.endEmitted)!=="boolean")return null;return!!(r.endEmitted||t===false&&r.ended===true&&r.length===0)}function yc(e){if(e&&e[Wi]!=null)return e[Wi];if(typeof(e===null||e===void 0?void 0:e.readable)!=="boolean")return null;if(Dr(e))return false;return Nr(e)&&e.readable&&!gc(e)}function mc(e){if(e&&e[Fi]!=null)return e[Fi];if(typeof(e===null||e===void 0?void 0:e.writable)!=="boolean")return null;if(Dr(e))return false;return kr(e)&&e.writable&&!hc(e)}function mx(e,t){if(!le(e)){return null}if(Dr(e)){return true}if((t===null||t===void 0?void 0:t.readable)!==false&&yc(e)){return false}if((t===null||t===void 0?void 0:t.writable)!==false&&mc(e)){return false}return true}function bx(e){var t,r;if(!le(e)){return null}if(e.writableErrored){return e.writableErrored}return(t=(r=e._writableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null}function wx(e){var t,r;if(!le(e)){return null}if(e.readableErrored){return e.readableErrored}return(t=(r=e._readableState)===null||r===void 0?void 0:r.errored)!==null&&t!==void 0?t:null}function Sx(e){if(!le(e)){return null}if(typeof e.closed==="boolean"){return e.closed}const t=e._writableState;const r=e._readableState;if(typeof(t===null||t===void 0?void 0:t.closed)==="boolean"||typeof(r===null||r===void 0?void 0:r.closed)==="boolean"){return(t===null||t===void 0?void 0:t.closed)||(r===null||r===void 0?void 0:r.closed)}if(typeof e._closed==="boolean"&&bc(e)){return e._closed}return null}function bc(e){return typeof e._closed==="boolean"&&typeof e._defaultKeepAlive==="boolean"&&typeof e._removedConnection==="boolean"&&typeof e._removedContLen==="boolean"}function wc(e){return typeof e._sent100==="boolean"&&bc(e)}function _x(e){var t;return typeof e._consuming==="boolean"&&typeof e._dumped==="boolean"&&((t=e.req)===null||t===void 0?void 0:t.upgradeOrConnect)===void 0}function Ex(e){if(!le(e))return null;const t=e._writableState;const r=e._readableState;const n=t||r;return!n&&wc(e)||!!(n&&n.autoDestroy&&n.emitClose&&n.closed===false)}function xx(e){var t;return!!(e&&((t=e[cc])!==null&&t!==void 0?t:e.readableDidRead||e.readableAborted))}function Ax(e){var t,r,n,i,o,s,a,l,u,f;return!!(e&&((t=(r=(n=(i=(o=(s=e[uc])!==null&&s!==void 0?s:e.readableErrored)!==null&&o!==void 0?o:e.writableErrored)!==null&&i!==void 0?i:(a=e._readableState)===null||a===void 0?void 0:a.errorEmitted)!==null&&n!==void 0?n:(l=e._writableState)===null||l===void 0?void 0:l.errorEmitted)!==null&&r!==void 0?r:(u=e._readableState)===null||u===void 0?void 0:u.errored)!==null&&t!==void 0?t:(f=e._writableState)===null||f===void 0?void 0:f.errored))}Sc.exports={isDestroyed:Dr,kIsDestroyed:lc,isDisturbed:xx,kIsDisturbed:cc,isErrored:Ax,kIsErrored:uc,isReadable:yc,kIsReadable:Wi,kIsClosedPromise:cx,kControllerErrorFunction:fx,kIsWritable:Fi,isClosed:Sx,isDuplexNodeStream:dx,isFinished:mx,isIterable:hx,isReadableNodeStream:Nr,isReadableStream:fc,isReadableEnded:yx,isReadableFinished:gc,isReadableErrored:wx,isNodeStream:le,isWebStream:px,isWritable:mc,isWritableNodeStream:kr,isWritableStream:dc,isWritableEnded:hc,isWritableFinished:gx,isWritableErrored:bx,isServerRequest:_x,isServerResponse:wc,willEmitClose:Ex,isTransformStream:pc}});var ge=E((kI,zi)=>{"use strict";var Te=Re();var{AbortError:Mc,codes:Rx}=G();var{ERR_INVALID_ARG_TYPE:Tx,ERR_STREAM_PREMATURE_CLOSE:_c}=Rx;var{kEmptyObject:Hi,once:Ki}=Q();var{validateAbortSignal:vx,validateFunction:Cx,validateObject:Mx,validateBoolean:Ox}=ot();var{Promise:Ix,PromisePrototypeThen:Lx,SymbolDispose:Oc}=F();var{isClosed:Px,isReadable:Ec,isReadableNodeStream:Ui,isReadableStream:Nx,isReadableFinished:xc,isReadableErrored:Ac,isWritable:Rc,isWritableNodeStream:Tc,isWritableStream:kx,isWritableFinished:vc,isWritableErrored:Cc,isNodeStream:Dx,willEmitClose:jx,kIsClosedPromise:Bx}=ue();var st;function qx(e){return e.setHeader&&typeof e.abort==="function"}var Vi=()=>{};function Ic(e,t,r){var n,i;if(arguments.length===2){r=t;t=Hi}else if(t==null){t=Hi}else{Mx(t,"options")}Cx(r,"callback");vx(t.signal,"options.signal");r=Ki(r);if(Nx(e)||kx(e)){return $x(e,t,r)}if(!Dx(e)){throw new Tx("stream",["ReadableStream","WritableStream","Stream"],e)}const o=(n=t.readable)!==null&&n!==void 0?n:Ui(e);const s=(i=t.writable)!==null&&i!==void 0?i:Tc(e);const a=e._writableState;const l=e._readableState;const u=()=>{if(!e.writable){h()}};let f=jx(e)&&Ui(e)===o&&Tc(e)===s;let c=vc(e,false);const h=()=>{c=true;if(e.destroyed){f=false}if(f&&(!e.readable||o)){return}if(!o||p){r.call(e)}};let p=xc(e,false);const d=()=>{p=true;if(e.destroyed){f=false}if(f&&(!e.writable||s)){return}if(!s||c){r.call(e)}};const g=A=>{r.call(e,A)};let y=Px(e);const m=()=>{y=true;const A=Cc(e)||Ac(e);if(A&&typeof A!=="boolean"){return r.call(e,A)}if(o&&!p&&Ui(e,true)){if(!xc(e,false))return r.call(e,new _c)}if(s&&!c){if(!vc(e,false))return r.call(e,new _c)}r.call(e)};const w=()=>{y=true;const A=Cc(e)||Ac(e);if(A&&typeof A!=="boolean"){return r.call(e,A)}r.call(e)};const _=()=>{e.req.on("finish",h)};if(qx(e)){e.on("complete",h);if(!f){e.on("abort",m)}if(e.req){_()}else{e.on("request",_)}}else if(s&&!a){e.on("end",u);e.on("close",u)}if(!f&&typeof e.aborted==="boolean"){e.on("aborted",m)}e.on("end",d);e.on("finish",h);if(t.error!==false){e.on("error",g)}e.on("close",m);if(y){Te.nextTick(m)}else if(a!==null&&a!==void 0&&a.errorEmitted||l!==null&&l!==void 0&&l.errorEmitted){if(!f){Te.nextTick(w)}}else if(!o&&(!f||Ec(e))&&(c||Rc(e)===false)){Te.nextTick(w)}else if(!s&&(!f||Rc(e))&&(p||Ec(e)===false)){Te.nextTick(w)}else if(l&&e.req&&e.aborted){Te.nextTick(w)}const S=()=>{r=Vi;e.removeListener("aborted",m);e.removeListener("complete",h);e.removeListener("abort",m);e.removeListener("request",_);if(e.req)e.req.removeListener("finish",h);e.removeListener("end",u);e.removeListener("close",u);e.removeListener("finish",h);e.removeListener("end",d);e.removeListener("error",g);e.removeListener("close",m)};if(t.signal&&!y){const A=()=>{const v=r;S();v.call(e,new Mc(void 0,{cause:t.signal.reason}))};if(t.signal.aborted){Te.nextTick(A)}else{st=st||Q().addAbortListener;const v=st(t.signal,A);const R=r;r=Ki((...C)=>{v[Oc]();R.apply(e,C)})}}return S}function $x(e,t,r){let n=false;let i=Vi;if(t.signal){i=()=>{n=true;r.call(e,new Mc(void 0,{cause:t.signal.reason}))};if(t.signal.aborted){Te.nextTick(i)}else{st=st||Q().addAbortListener;const s=st(t.signal,i);const a=r;r=Ki((...l)=>{s[Oc]();a.apply(e,l)})}}const o=(...s)=>{if(!n){Te.nextTick(()=>r.apply(e,s))}};Lx(e[Bx].promise,o,o);return Vi}function Wx(e,t){var r;let n=false;if(t===null){t=Hi}if((r=t)!==null&&r!==void 0&&r.cleanup){Ox(t.cleanup,"cleanup");n=t.cleanup}return new Ix((i,o)=>{const s=Ic(e,t,a=>{if(n){s()}if(a){o(a)}else{i()}})})}zi.exports=Ic;zi.exports.finished=Wx});var $e=E((DI,qc)=>{"use strict";var ce=Re();var{aggregateTwoErrors:Fx,codes:{ERR_MULTIPLE_CALLBACK:Ux},AbortError:Hx}=G();var{Symbol:Nc}=F();var{kIsDestroyed:Kx,isDestroyed:Vx,isFinished:zx,isServerRequest:Gx}=ue();var kc=Nc("kDestroy");var Gi=Nc("kConstruct");function Dc(e,t,r){if(e){e.stack;if(t&&!t.errored){t.errored=e}if(r&&!r.errored){r.errored=e}}}function Yx(e,t){const r=this._readableState;const n=this._writableState;const i=n||r;if(n!==null&&n!==void 0&&n.destroyed||r!==null&&r!==void 0&&r.destroyed){if(typeof t==="function"){t()}return this}Dc(e,n,r);if(n){n.destroyed=true}if(r){r.destroyed=true}if(!i.constructed){this.once(kc,function(o){Lc(this,Fx(o,e),t)})}else{Lc(this,e,t)}return this}function Lc(e,t,r){let n=false;function i(o){if(n){return}n=true;const s=e._readableState;const a=e._writableState;Dc(o,a,s);if(a){a.closed=true}if(s){s.closed=true}if(typeof r==="function"){r(o)}if(o){ce.nextTick(Qx,e,o)}else{ce.nextTick(jc,e)}}try{e._destroy(t||null,i)}catch(o){i(o)}}function Qx(e,t){Yi(e,t);jc(e)}function jc(e){const t=e._readableState;const r=e._writableState;if(r){r.closeEmitted=true}if(t){t.closeEmitted=true}if(r!==null&&r!==void 0&&r.emitClose||t!==null&&t!==void 0&&t.emitClose){e.emit("close")}}function Yi(e,t){const r=e._readableState;const n=e._writableState;if(n!==null&&n!==void 0&&n.errorEmitted||r!==null&&r!==void 0&&r.errorEmitted){return}if(n){n.errorEmitted=true}if(r){r.errorEmitted=true}e.emit("error",t)}function Jx(){const e=this._readableState;const t=this._writableState;if(e){e.constructed=true;e.closed=false;e.closeEmitted=false;e.destroyed=false;e.errored=null;e.errorEmitted=false;e.reading=false;e.ended=e.readable===false;e.endEmitted=e.readable===false}if(t){t.constructed=true;t.destroyed=false;t.closed=false;t.closeEmitted=false;t.errored=null;t.errorEmitted=false;t.finalCalled=false;t.prefinished=false;t.ended=t.writable===false;t.ending=t.writable===false;t.finished=t.writable===false}}function Qi(e,t,r){const n=e._readableState;const i=e._writableState;if(i!==null&&i!==void 0&&i.destroyed||n!==null&&n!==void 0&&n.destroyed){return this}if(n!==null&&n!==void 0&&n.autoDestroy||i!==null&&i!==void 0&&i.autoDestroy)e.destroy(t);else if(t){t.stack;if(i&&!i.errored){i.errored=t}if(n&&!n.errored){n.errored=t}if(r){ce.nextTick(Yi,e,t)}else{Yi(e,t)}}}function Xx(e,t){if(typeof e._construct!=="function"){return}const r=e._readableState;const n=e._writableState;if(r){r.constructed=false}if(n){n.constructed=false}e.once(Gi,t);if(e.listenerCount(Gi)>1){return}ce.nextTick(Zx,e)}function Zx(e){let t=false;function r(n){if(t){Qi(e,n!==null&&n!==void 0?n:new Ux);return}t=true;const i=e._readableState;const o=e._writableState;const s=o||i;if(i){i.constructed=true}if(o){o.constructed=true}if(s.destroyed){e.emit(kc,n)}else if(n){Qi(e,n,true)}else{ce.nextTick(eA,e)}}try{e._construct(n=>{ce.nextTick(r,n)})}catch(n){ce.nextTick(r,n)}}function eA(e){e.emit(Gi)}function Pc(e){return(e===null||e===void 0?void 0:e.setHeader)&&typeof e.abort==="function"}function Bc(e){e.emit("close")}function tA(e,t){e.emit("error",t);ce.nextTick(Bc,e)}function rA(e,t){if(!e||Vx(e)){return}if(!t&&!zx(e)){t=new Hx}if(Gx(e)){e.socket=null;e.destroy(t)}else if(Pc(e)){e.abort()}else if(Pc(e.req)){e.req.abort()}else if(typeof e.destroy==="function"){e.destroy(t)}else if(typeof e.close==="function"){e.close()}else if(t){ce.nextTick(tA,e,t)}else{ce.nextTick(Bc,e)}if(!e.destroyed){e[Kx]=true}}qc.exports={construct:Xx,destroyer:rA,destroy:Yx,undestroy:Jx,errorOrDestroy:Qi}});var qr=E((jI,Wc)=>{"use strict";var{ArrayIsArray:nA,ObjectSetPrototypeOf:$c}=F();var{EventEmitter:jr}=I("events");function Br(e){jr.call(this,e)}$c(Br.prototype,jr.prototype);$c(Br,jr);Br.prototype.pipe=function(e,t){const r=this;function n(f){if(e.writable&&e.write(f)===false&&r.pause){r.pause()}}r.on("data",n);function i(){if(r.readable&&r.resume){r.resume()}}e.on("drain",i);if(!e._isStdio&&(!t||t.end!==false)){r.on("end",s);r.on("close",a)}let o=false;function s(){if(o)return;o=true;e.end()}function a(){if(o)return;o=true;if(typeof e.destroy==="function")e.destroy()}function l(f){u();if(jr.listenerCount(this,"error")===0){this.emit("error",f)}}Ji(r,"error",l);Ji(e,"error",l);function u(){r.removeListener("data",n);e.removeListener("drain",i);r.removeListener("end",s);r.removeListener("close",a);r.removeListener("error",l);e.removeListener("error",l);r.removeListener("end",u);r.removeListener("close",u);e.removeListener("close",u)}r.on("end",u);r.on("close",u);e.on("close",u);e.emit("pipe",r);return e};function Ji(e,t,r){if(typeof e.prependListener==="function")return e.prependListener(t,r);if(!e._events||!e._events[t])e.on(t,r);else if(nA(e._events[t]))e._events[t].unshift(r);else e._events[t]=[r,e._events[t]]}Wc.exports={Stream:Br,prependListener:Ji}});var kt=E((BI,$r)=>{"use strict";var{SymbolDispose:iA}=F();var{AbortError:Fc,codes:oA}=G();var{isNodeStream:Uc,isWebStream:sA,kControllerErrorFunction:aA}=ue();var lA=ge();var{ERR_INVALID_ARG_TYPE:Hc}=oA;var Xi;var uA=(e,t)=>{if(typeof e!=="object"||!("aborted"in e)){throw new Hc(t,"AbortSignal",e)}};$r.exports.addAbortSignal=function e(t,r){uA(t,"signal");if(!Uc(r)&&!sA(r)){throw new Hc("stream",["ReadableStream","WritableStream","Stream"],r)}return $r.exports.addAbortSignalNoValidate(t,r)};$r.exports.addAbortSignalNoValidate=function(e,t){if(typeof e!=="object"||!("aborted"in e)){return t}const r=Uc(t)?()=>{t.destroy(new Fc(void 0,{cause:e.reason}))}:()=>{t[aA](new Fc(void 0,{cause:e.reason}))};if(e.aborted){r()}else{Xi=Xi||Q().addAbortListener;const n=Xi(e,r);lA(t,n[iA])}return t}});var zc=E(($I,Vc)=>{"use strict";var{StringPrototypeSlice:Kc,SymbolIterator:cA,TypedArrayPrototypeSet:Wr,Uint8Array:fA}=F();var{Buffer:Zi}=I("buffer");var{inspect:dA}=Q();Vc.exports=class qI{constructor(){this.head=null;this.tail=null;this.length=0}push(t){const r={data:t,next:null};if(this.length>0)this.tail.next=r;else this.head=r;this.tail=r;++this.length}unshift(t){const r={data:t,next:this.head};if(this.length===0)this.tail=r;this.head=r;++this.length}shift(){if(this.length===0)return;const t=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return t}clear(){this.head=this.tail=null;this.length=0}join(t){if(this.length===0)return"";let r=this.head;let n=""+r.data;while((r=r.next)!==null)n+=t+r.data;return n}concat(t){if(this.length===0)return Zi.alloc(0);const r=Zi.allocUnsafe(t>>>0);let n=this.head;let i=0;while(n){Wr(r,n.data,i);i+=n.data.length;n=n.next}return r}consume(t,r){const n=this.head.data;if(t<n.length){const i=n.slice(0,t);this.head.data=n.slice(t);return i}if(t===n.length){return this.shift()}return r?this._getString(t):this._getBuffer(t)}first(){return this.head.data}*[cA](){for(let t=this.head;t;t=t.next){yield t.data}}_getString(t){let r="";let n=this.head;let i=0;do{const o=n.data;if(t>o.length){r+=o;t-=o.length}else{if(t===o.length){r+=o;++i;if(n.next)this.head=n.next;else this.head=this.tail=null}else{r+=Kc(o,0,t);this.head=n;n.data=Kc(o,t)}break}++i}while((n=n.next)!==null);this.length-=i;return r}_getBuffer(t){const r=Zi.allocUnsafe(t);const n=t;let i=this.head;let o=0;do{const s=i.data;if(t>s.length){Wr(r,s,n-t);t-=s.length}else{if(t===s.length){Wr(r,s,n-t);++o;if(i.next)this.head=i.next;else this.head=this.tail=null}else{Wr(r,new fA(s.buffer,s.byteOffset,t),n-t);this.head=i;i.data=s.slice(t)}break}++o}while((i=i.next)!==null);this.length-=o;return r}[Symbol.for("nodejs.util.inspect.custom")](t,r){return dA(this,{...r,depth:0,customInspect:false})}}});var Dt=E((WI,Jc)=>{"use strict";var{MathFloor:pA,NumberIsInteger:hA}=F();var{validateInteger:gA}=ot();var{ERR_INVALID_ARG_VALUE:yA}=G().codes;var Gc=16*1024;var Yc=16;function mA(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function Qc(e){return e?Yc:Gc}function bA(e,t){gA(t,"value",0);if(e){Yc=t}else{Gc=t}}function wA(e,t,r,n){const i=mA(t,n,r);if(i!=null){if(!hA(i)||i<0){const o=n?`options.${r}`:"options.highWaterMark";throw new yA(o,i)}return pA(i)}return Qc(e.objectMode)}Jc.exports={getHighWaterMark:wA,getDefaultHighWaterMark:Qc,setDefaultHighWaterMark:bA}});var ef=E(Zc=>{"use strict";var to=qh().Buffer;var Xc=to.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function SA(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function _A(e){var t=SA(e);if(typeof t!=="string"&&(to.isEncoding===Xc||!Xc(e)))throw new Error("Unknown encoding: "+e);return t||e}Zc.StringDecoder=jt;function jt(e){this.encoding=_A(e);var t;switch(this.encoding){case"utf16le":this.text=vA;this.end=CA;t=4;break;case"utf8":this.fillLast=AA;t=4;break;case"base64":this.text=MA;this.end=OA;t=3;break;default:this.write=IA;this.end=LA;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=to.allocUnsafe(t)}jt.prototype.write=function(e){if(e.length===0)return"";var t;var r;if(this.lastNeed){t=this.fillLast(e);if(t===void 0)return"";r=this.lastNeed;this.lastNeed=0}else{r=0}if(r<e.length)return t?t+this.text(e,r):this.text(e,r);return t||""};jt.prototype.end=TA;jt.prototype.text=RA;jt.prototype.fillLast=function(e){if(this.lastNeed<=e.length){e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length);this.lastNeed-=e.length};function eo(e){if(e<=127)return 0;else if(e>>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function EA(e,t,r){var n=t.length-1;if(n<r)return 0;var i=eo(t[n]);if(i>=0){if(i>0)e.lastNeed=i-1;return i}if(--n<r||i===-2)return 0;i=eo(t[n]);if(i>=0){if(i>0)e.lastNeed=i-2;return i}if(--n<r||i===-2)return 0;i=eo(t[n]);if(i>=0){if(i>0){if(i===2)i=0;else e.lastNeed=i-3}return i}return 0}function xA(e,t,r){if((t[0]&192)!==128){e.lastNeed=0;return"\uFFFD"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"\uFFFD"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"\uFFFD"}}}}function AA(e){var t=this.lastTotal-this.lastNeed;var r=xA(this,e,t);if(r!==void 0)return r;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function RA(e,t){var r=EA(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);e.copy(this.lastChar,0,n);return e.toString("utf8",t,n)}function TA(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"\uFFFD";return t}function vA(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return r.slice(0,-1)}}return r}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function CA(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function MA(e,t){var r=(e.length-t)%3;if(r===0)return e.toString("base64",t);this.lastNeed=3-r;this.lastTotal=3;if(r===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-r)}function OA(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function IA(e){return e.toString(this.encoding)}function LA(e){return e&&e.length?this.write(e):""}});var ro=E((UI,of)=>{"use strict";var tf=Re();var{PromisePrototypeThen:PA,SymbolAsyncIterator:rf,SymbolIterator:nf}=F();var{Buffer:NA}=I("buffer");var{ERR_INVALID_ARG_TYPE:kA,ERR_STREAM_NULL_VALUES:DA}=G().codes;function jA(e,t,r){let n;if(typeof t==="string"||t instanceof NA){return new e({objectMode:true,...r,read(){this.push(t);this.push(null)}})}let i;if(t&&t[rf]){i=true;n=t[rf]()}else if(t&&t[nf]){i=false;n=t[nf]()}else{throw new kA("iterable",["Iterable"],t)}const o=new e({objectMode:true,highWaterMark:1,...r});let s=false;o._read=function(){if(!s){s=true;l()}};o._destroy=function(u,f){PA(a(u),()=>tf.nextTick(f,u),c=>tf.nextTick(f,c||u))};async function a(u){const f=u!==void 0&&u!==null;const c=typeof n.throw==="function";if(f&&c){const{value:h,done:p}=await n.throw(u);await h;if(p){return}}if(typeof n.return==="function"){const{value:h}=await n.return();await h}}async function l(){for(;;){try{const{value:u,done:f}=i?await n.next():n.next();if(f){o.push(null)}else{const c=u&&typeof u.then==="function"?await u:u;if(c===null){s=false;throw new DA}else if(o.push(c)){continue}else{s=false}}}catch(u){o.destroy(u)}break}}return o}of.exports=jA});var qt=E((HI,xf)=>{"use strict";var oe=Re();var{ArrayPrototypeIndexOf:BA,NumberIsInteger:qA,NumberIsNaN:$A,NumberParseInt:WA,ObjectDefineProperties:co,ObjectKeys:FA,ObjectSetPrototypeOf:lf,Promise:uf,SafeSet:UA,SymbolAsyncDispose:HA,SymbolAsyncIterator:KA,Symbol:VA}=F();xf.exports=L;L.ReadableState=Kr;var{EventEmitter:zA}=I("events");var{Stream:ve,prependListener:GA}=qr();var{Buffer:no}=I("buffer");var{addAbortSignal:YA}=kt();var cf=ge();var k=Q().debuglog("stream",e=>{k=e});var QA=zc();var ut=$e();var{getHighWaterMark:JA,getDefaultHighWaterMark:XA}=Dt();var{aggregateTwoErrors:sf,codes:{ERR_INVALID_ARG_TYPE:ZA,ERR_METHOD_NOT_IMPLEMENTED:eR,ERR_OUT_OF_RANGE:tR,ERR_STREAM_PUSH_AFTER_EOF:rR,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:nR},AbortError:iR}=G();var{validateObject:oR}=ot();var We=VA("kPaused");var{StringDecoder:ff}=ef();var sR=ro();lf(L.prototype,ve.prototype);lf(L,ve);var io=()=>{};var{errorOrDestroy:at}=ut;var lt=1<<0;var aR=1<<1;var df=1<<2;var Bt=1<<3;var pf=1<<4;var Fr=1<<5;var Ur=1<<6;var hf=1<<7;var lR=1<<8;var uR=1<<9;var cR=1<<10;var lo=1<<11;var uo=1<<12;var fR=1<<13;var dR=1<<14;var pR=1<<15;var gf=1<<16;var hR=1<<17;var gR=1<<18;function H(e){return{enumerable:false,get(){return(this.state&e)!==0},set(t){if(t)this.state|=e;else this.state&=~e}}}co(Kr.prototype,{objectMode:H(lt),ended:H(aR),endEmitted:H(df),reading:H(Bt),constructed:H(pf),sync:H(Fr),needReadable:H(Ur),emittedReadable:H(hf),readableListening:H(lR),resumeScheduled:H(uR),errorEmitted:H(cR),emitClose:H(lo),autoDestroy:H(uo),destroyed:H(fR),closed:H(dR),closeEmitted:H(pR),multiAwaitDrain:H(gf),readingMore:H(hR),dataEmitted:H(gR)});function Kr(e,t,r){if(typeof r!=="boolean")r=t instanceof fe();this.state=lo|uo|pf|Fr;if(e&&e.objectMode)this.state|=lt;if(r&&e&&e.readableObjectMode)this.state|=lt;this.highWaterMark=e?JA(this,e,"readableHighWaterMark",r):XA(false);this.buffer=new QA;this.length=0;this.pipes=[];this.flowing=null;this[We]=null;if(e&&e.emitClose===false)this.state&=~lo;if(e&&e.autoDestroy===false)this.state&=~uo;this.errored=null;this.defaultEncoding=e&&e.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(e&&e.encoding){this.decoder=new ff(e.encoding);this.encoding=e.encoding}}function L(e){if(!(this instanceof L))return new L(e);const t=this instanceof fe();this._readableState=new Kr(e,this,t);if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.construct==="function")this._construct=e.construct;if(e.signal&&!t)YA(e.signal,this)}ve.call(this,e);ut.construct(this,()=>{if(this._readableState.needReadable){Hr(this,this._readableState)}})}L.prototype.destroy=ut.destroy;L.prototype._undestroy=ut.undestroy;L.prototype._destroy=function(e,t){t(e)};L.prototype[zA.captureRejectionSymbol]=function(e){this.destroy(e)};L.prototype[HA]=function(){let e;if(!this.destroyed){e=this.readableEnded?null:new iR;this.destroy(e)}return new uf((t,r)=>cf(this,n=>n&&n!==e?r(n):t(null)))};L.prototype.push=function(e,t){return yf(this,e,t,false)};L.prototype.unshift=function(e,t){return yf(this,e,t,true)};function yf(e,t,r,n){k("readableAddChunk",t);const i=e._readableState;let o;if((i.state<)===0){if(typeof t==="string"){r=r||i.defaultEncoding;if(i.encoding!==r){if(n&&i.encoding){t=no.from(t,r).toString(i.encoding)}else{t=no.from(t,r);r=""}}}else if(t instanceof no){r=""}else if(ve._isUint8Array(t)){t=ve._uint8ArrayToBuffer(t);r=""}else if(t!=null){o=new ZA("chunk",["string","Buffer","Uint8Array"],t)}}if(o){at(e,o)}else if(t===null){i.state&=~Bt;bR(e,i)}else if((i.state<)!==0||t&&t.length>0){if(n){if((i.state&df)!==0)at(e,new nR);else if(i.destroyed||i.errored)return false;else oo(e,i,t,true)}else if(i.ended){at(e,new rR)}else if(i.destroyed||i.errored){return false}else{i.state&=~Bt;if(i.decoder&&!r){t=i.decoder.write(t);if(i.objectMode||t.length!==0)oo(e,i,t,false);else Hr(e,i)}else{oo(e,i,t,false)}}}else if(!n){i.state&=~Bt;Hr(e,i)}return!i.ended&&(i.length<i.highWaterMark||i.length===0)}function oo(e,t,r,n){if(t.flowing&&t.length===0&&!t.sync&&e.listenerCount("data")>0){if((t.state&gf)!==0){t.awaitDrainWriters.clear()}else{t.awaitDrainWriters=null}t.dataEmitted=true;e.emit("data",r)}else{t.length+=t.objectMode?1:r.length;if(n)t.buffer.unshift(r);else t.buffer.push(r);if((t.state&Ur)!==0)Vr(e)}Hr(e,t)}L.prototype.isPaused=function(){const e=this._readableState;return e[We]===true||e.flowing===false};L.prototype.setEncoding=function(e){const t=new ff(e);this._readableState.decoder=t;this._readableState.encoding=this._readableState.decoder.encoding;const r=this._readableState.buffer;let n="";for(const i of r){n+=t.write(i)}r.clear();if(n!=="")r.push(n);this._readableState.length=n.length;return this};var yR=1073741824;function mR(e){if(e>yR){throw new tR("size","<= 1GiB",e)}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function af(e,t){if(e<=0||t.length===0&&t.ended)return 0;if((t.state<)!==0)return 1;if($A(e)){if(t.flowing&&t.length)return t.buffer.first().length;return t.length}if(e<=t.length)return e;return t.ended?t.length:0}L.prototype.read=function(e){k("read",e);if(e===void 0){e=NaN}else if(!qA(e)){e=WA(e,10)}const t=this._readableState;const r=e;if(e>t.highWaterMark)t.highWaterMark=mR(e);if(e!==0)t.state&=~hf;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){k("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)so(this);else Vr(this);return null}e=af(e,t);if(e===0&&t.ended){if(t.length===0)so(this);return null}let n=(t.state&Ur)!==0;k("need readable",n);if(t.length===0||t.length-e<t.highWaterMark){n=true;k("length less than watermark",n)}if(t.ended||t.reading||t.destroyed||t.errored||!t.constructed){n=false;k("reading, ended or constructing",n)}else if(n){k("do read");t.state|=Bt|Fr;if(t.length===0)t.state|=Ur;try{this._read(t.highWaterMark)}catch(o){at(this,o)}t.state&=~Fr;if(!t.reading)e=af(r,t)}let i;if(e>0)i=_f(e,t);else i=null;if(i===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;if(t.multiAwaitDrain){t.awaitDrainWriters.clear()}else{t.awaitDrainWriters=null}}if(t.length===0){if(!t.ended)t.needReadable=true;if(r!==e&&t.ended)so(this)}if(i!==null&&!t.errorEmitted&&!t.closeEmitted){t.dataEmitted=true;this.emit("data",i)}return i};function bR(e,t){k("onEofChunk");if(t.ended)return;if(t.decoder){const r=t.decoder.end();if(r&&r.length){t.buffer.push(r);t.length+=t.objectMode?1:r.length}}t.ended=true;if(t.sync){Vr(e)}else{t.needReadable=false;t.emittedReadable=true;mf(e)}}function Vr(e){const t=e._readableState;k("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){k("emitReadable",t.flowing);t.emittedReadable=true;oe.nextTick(mf,e)}}function mf(e){const t=e._readableState;k("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&!t.errored&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;wf(e)}function Hr(e,t){if(!t.readingMore&&t.constructed){t.readingMore=true;oe.nextTick(wR,e,t)}}function wR(e,t){while(!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0)){const r=t.length;k("maybeReadMore read 0");e.read(0);if(r===t.length)break}t.readingMore=false}L.prototype._read=function(e){throw new eR("_read()")};L.prototype.pipe=function(e,t){const r=this;const n=this._readableState;if(n.pipes.length===1){if(!n.multiAwaitDrain){n.multiAwaitDrain=true;n.awaitDrainWriters=new UA(n.awaitDrainWriters?[n.awaitDrainWriters]:[])}}n.pipes.push(e);k("pipe count=%d opts=%j",n.pipes.length,t);const i=(!t||t.end!==false)&&e!==oe.stdout&&e!==oe.stderr;const o=i?a:y;if(n.endEmitted)oe.nextTick(o);else r.once("end",o);e.on("unpipe",s);function s(m,w){k("onunpipe");if(m===r){if(w&&w.hasUnpiped===false){w.hasUnpiped=true;f()}}}function a(){k("onend");e.end()}let l;let u=false;function f(){k("cleanup");e.removeListener("close",d);e.removeListener("finish",g);if(l){e.removeListener("drain",l)}e.removeListener("error",p);e.removeListener("unpipe",s);r.removeListener("end",a);r.removeListener("end",y);r.removeListener("data",h);u=true;if(l&&n.awaitDrainWriters&&(!e._writableState||e._writableState.needDrain))l()}function c(){if(!u){if(n.pipes.length===1&&n.pipes[0]===e){k("false write response, pause",0);n.awaitDrainWriters=e;n.multiAwaitDrain=false}else if(n.pipes.length>1&&n.pipes.includes(e)){k("false write response, pause",n.awaitDrainWriters.size);n.awaitDrainWriters.add(e)}r.pause()}if(!l){l=SR(r,e);e.on("drain",l)}}r.on("data",h);function h(m){k("ondata");const w=e.write(m);k("dest.write",w);if(w===false){c()}}function p(m){k("onerror",m);y();e.removeListener("error",p);if(e.listenerCount("error")===0){const w=e._writableState||e._readableState;if(w&&!w.errorEmitted){at(e,m)}else{e.emit("error",m)}}}GA(e,"error",p);function d(){e.removeListener("finish",g);y()}e.once("close",d);function g(){k("onfinish");e.removeListener("close",d);y()}e.once("finish",g);function y(){k("unpipe");r.unpipe(e)}e.emit("pipe",r);if(e.writableNeedDrain===true){c()}else if(!n.flowing){k("pipe resume");r.resume()}return e};function SR(e,t){return function r(){const n=e._readableState;if(n.awaitDrainWriters===t){k("pipeOnDrain",1);n.awaitDrainWriters=null}else if(n.multiAwaitDrain){k("pipeOnDrain",n.awaitDrainWriters.size);n.awaitDrainWriters.delete(t)}if((!n.awaitDrainWriters||n.awaitDrainWriters.size===0)&&e.listenerCount("data")){e.resume()}}}L.prototype.unpipe=function(e){const t=this._readableState;const r={hasUnpiped:false};if(t.pipes.length===0)return this;if(!e){const i=t.pipes;t.pipes=[];this.pause();for(let o=0;o<i.length;o++)i[o].emit("unpipe",this,{hasUnpiped:false});return this}const n=BA(t.pipes,e);if(n===-1)return this;t.pipes.splice(n,1);if(t.pipes.length===0)this.pause();e.emit("unpipe",this,r);return this};L.prototype.on=function(e,t){const r=ve.prototype.on.call(this,e,t);const n=this._readableState;if(e==="data"){n.readableListening=this.listenerCount("readable")>0;if(n.flowing!==false)this.resume()}else if(e==="readable"){if(!n.endEmitted&&!n.readableListening){n.readableListening=n.needReadable=true;n.flowing=false;n.emittedReadable=false;k("on readable",n.length,n.reading);if(n.length){Vr(this)}else if(!n.reading){oe.nextTick(_R,this)}}}return r};L.prototype.addListener=L.prototype.on;L.prototype.removeListener=function(e,t){const r=ve.prototype.removeListener.call(this,e,t);if(e==="readable"){oe.nextTick(bf,this)}return r};L.prototype.off=L.prototype.removeListener;L.prototype.removeAllListeners=function(e){const t=ve.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===void 0){oe.nextTick(bf,this)}return t};function bf(e){const t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&t[We]===false){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}else if(!t.readableListening){t.flowing=null}}function _R(e){k("readable nexttick read 0");e.read(0)}L.prototype.resume=function(){const e=this._readableState;if(!e.flowing){k("resume");e.flowing=!e.readableListening;ER(this,e)}e[We]=false;return this};function ER(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;oe.nextTick(xR,e,t)}}function xR(e,t){k("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");wf(e);if(t.flowing&&!t.reading)e.read(0)}L.prototype.pause=function(){k("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){k("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[We]=true;return this};function wf(e){const t=e._readableState;k("flow",t.flowing);while(t.flowing&&e.read()!==null);}L.prototype.wrap=function(e){let t=false;e.on("data",n=>{if(!this.push(n)&&e.pause){t=true;e.pause()}});e.on("end",()=>{this.push(null)});e.on("error",n=>{at(this,n)});e.on("close",()=>{this.destroy()});e.on("destroy",()=>{this.destroy()});this._read=()=>{if(t&&e.resume){t=false;e.resume()}};const r=FA(e);for(let n=1;n<r.length;n++){const i=r[n];if(this[i]===void 0&&typeof e[i]==="function"){this[i]=e[i].bind(e)}}return this};L.prototype[KA]=function(){return Sf(this)};L.prototype.iterator=function(e){if(e!==void 0){oR(e,"options")}return Sf(this,e)};function Sf(e,t){if(typeof e.read!=="function"){e=L.wrap(e,{objectMode:true})}const r=AR(e,t);r.stream=e;return r}async function*AR(e,t){let r=io;function n(s){if(this===e){r();r=io}else{r=s}}e.on("readable",n);let i;const o=cf(e,{writable:false},s=>{i=s?sf(i,s):null;r();r=io});try{while(true){const s=e.destroyed?null:e.read();if(s!==null){yield s}else if(i){throw i}else if(i===null){return}else{await new uf(n)}}}catch(s){i=sf(i,s);throw i}finally{if((i||(t===null||t===void 0?void 0:t.destroyOnReturn)!==false)&&(i===void 0||e._readableState.autoDestroy)){ut.destroyer(e,null)}else{e.off("readable",n);o()}}}co(L.prototype,{readable:{__proto__:null,get(){const e=this._readableState;return!!e&&e.readable!==false&&!e.destroyed&&!e.errorEmitted&&!e.endEmitted},set(e){if(this._readableState){this._readableState.readable=!!e}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(e){if(this._readableState){this._readableState.flowing=e}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(e){if(!this._readableState){return}this._readableState.destroyed=e}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});co(Kr.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[We]!==false},set(e){this[We]=!!e}}});L._fromList=_f;function _f(e,t){if(t.length===0)return null;let r;if(t.objectMode)r=t.buffer.shift();else if(!e||e>=t.length){if(t.decoder)r=t.buffer.join("");else if(t.buffer.length===1)r=t.buffer.first();else r=t.buffer.concat(t.length);t.buffer.clear()}else{r=t.buffer.consume(e,t.decoder)}return r}function so(e){const t=e._readableState;k("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;oe.nextTick(RR,t,e)}}function RR(e,t){k("endReadableNT",e.endEmitted,e.length);if(!e.errored&&!e.closeEmitted&&!e.endEmitted&&e.length===0){e.endEmitted=true;t.emit("end");if(t.writable&&t.allowHalfOpen===false){oe.nextTick(TR,t)}else if(e.autoDestroy){const r=t._writableState;const n=!r||r.autoDestroy&&(r.finished||r.writable===false);if(n){t.destroy()}}}}function TR(e){const t=e.writable&&!e.writableEnded&&!e.destroyed;if(t){e.end()}}L.from=function(e,t){return sR(L,e,t)};var ao;function Ef(){if(ao===void 0)ao={};return ao}L.fromWeb=function(e,t){return Ef().newStreamReadableFromReadableStream(e,t)};L.toWeb=function(e,t){return Ef().newReadableStreamFromStreamReadable(e,t)};L.wrap=function(e,t){var r,n;return new L({objectMode:(r=(n=e.readableObjectMode)!==null&&n!==void 0?n:e.objectMode)!==null&&r!==void 0?r:true,...t,destroy(i,o){ut.destroyer(e,i);o(i)}}).wrap(e)}});var Jr=E((KI,kf)=>{"use strict";var Fe=Re();var{ArrayPrototypeSlice:Tf,Error:vR,FunctionPrototypeSymbolHasInstance:vf,ObjectDefineProperty:Cf,ObjectDefineProperties:CR,ObjectSetPrototypeOf:Mf,StringPrototypeToLowerCase:MR,Symbol:OR,SymbolHasInstance:IR}=F();kf.exports=U;U.WritableState=Ft;var{EventEmitter:LR}=I("events");var $t=qr().Stream;var{Buffer:zr}=I("buffer");var Qr=$e();var{addAbortSignal:PR}=kt();var{getHighWaterMark:NR,getDefaultHighWaterMark:kR}=Dt();var{ERR_INVALID_ARG_TYPE:DR,ERR_METHOD_NOT_IMPLEMENTED:jR,ERR_MULTIPLE_CALLBACK:Of,ERR_STREAM_CANNOT_PIPE:BR,ERR_STREAM_DESTROYED:Wt,ERR_STREAM_ALREADY_FINISHED:qR,ERR_STREAM_NULL_VALUES:$R,ERR_STREAM_WRITE_AFTER_END:WR,ERR_UNKNOWN_ENCODING:If}=G().codes;var{errorOrDestroy:ct}=Qr;Mf(U.prototype,$t.prototype);Mf(U,$t);function ho(){}var ft=OR("kOnFinished");function Ft(e,t,r){if(typeof r!=="boolean")r=t instanceof fe();this.objectMode=!!(e&&e.objectMode);if(r)this.objectMode=this.objectMode||!!(e&&e.writableObjectMode);this.highWaterMark=e?NR(this,e,"writableHighWaterMark",r):kR(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const n=!!(e&&e.decodeStrings===false);this.decodeStrings=!n;this.defaultEncoding=e&&e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=UR.bind(void 0,t);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;Yr(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!e||e.emitClose!==false;this.autoDestroy=!e||e.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[ft]=[]}function Yr(e){e.buffered=[];e.bufferedIndex=0;e.allBuffers=true;e.allNoop=true}Ft.prototype.getBuffer=function e(){return Tf(this.buffered,this.bufferedIndex)};Cf(Ft.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function U(e){const t=this instanceof fe();if(!t&&!vf(U,this))return new U(e);this._writableState=new Ft(e,this,t);if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final;if(typeof e.construct==="function")this._construct=e.construct;if(e.signal)PR(e.signal,this)}$t.call(this,e);Qr.construct(this,()=>{const r=this._writableState;if(!r.writing){yo(this,r)}mo(this,r)})}Cf(U,IR,{__proto__:null,value:function(e){if(vf(this,e))return true;if(this!==U)return false;return e&&e._writableState instanceof Ft}});U.prototype.pipe=function(){ct(this,new BR)};function Lf(e,t,r,n){const i=e._writableState;if(typeof r==="function"){n=r;r=i.defaultEncoding}else{if(!r)r=i.defaultEncoding;else if(r!=="buffer"&&!zr.isEncoding(r))throw new If(r);if(typeof n!=="function")n=ho}if(t===null){throw new $R}else if(!i.objectMode){if(typeof t==="string"){if(i.decodeStrings!==false){t=zr.from(t,r);r="buffer"}}else if(t instanceof zr){r="buffer"}else if($t._isUint8Array(t)){t=$t._uint8ArrayToBuffer(t);r="buffer"}else{throw new DR("chunk",["string","Buffer","Uint8Array"],t)}}let o;if(i.ending){o=new WR}else if(i.destroyed){o=new Wt("write")}if(o){Fe.nextTick(n,o);ct(e,o,true);return o}i.pendingcb++;return FR(e,i,t,r,n)}U.prototype.write=function(e,t,r){return Lf(this,e,t,r)===true};U.prototype.cork=function(){this._writableState.corked++};U.prototype.uncork=function(){const e=this._writableState;if(e.corked){e.corked--;if(!e.writing)yo(this,e)}};U.prototype.setDefaultEncoding=function e(t){if(typeof t==="string")t=MR(t);if(!zr.isEncoding(t))throw new If(t);this._writableState.defaultEncoding=t;return this};function FR(e,t,r,n,i){const o=t.objectMode?1:r.length;t.length+=o;const s=t.length<t.highWaterMark;if(!s)t.needDrain=true;if(t.writing||t.corked||t.errored||!t.constructed){t.buffered.push({chunk:r,encoding:n,callback:i});if(t.allBuffers&&n!=="buffer"){t.allBuffers=false}if(t.allNoop&&i!==ho){t.allNoop=false}}else{t.writelen=o;t.writecb=i;t.writing=true;t.sync=true;e._write(r,n,t.onwrite);t.sync=false}return s&&!t.errored&&!t.destroyed}function Af(e,t,r,n,i,o,s){t.writelen=n;t.writecb=s;t.writing=true;t.sync=true;if(t.destroyed)t.onwrite(new Wt("write"));else if(r)e._writev(i,t.onwrite);else e._write(i,o,t.onwrite);t.sync=false}function Rf(e,t,r,n){--t.pendingcb;n(r);go(t);ct(e,r)}function UR(e,t){const r=e._writableState;const n=r.sync;const i=r.writecb;if(typeof i!=="function"){ct(e,new Of);return}r.writing=false;r.writecb=null;r.length-=r.writelen;r.writelen=0;if(t){t.stack;if(!r.errored){r.errored=t}if(e._readableState&&!e._readableState.errored){e._readableState.errored=t}if(n){Fe.nextTick(Rf,e,r,t,i)}else{Rf(e,r,t,i)}}else{if(r.buffered.length>r.bufferedIndex){yo(e,r)}if(n){if(r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===i){r.afterWriteTickInfo.count++}else{r.afterWriteTickInfo={count:1,cb:i,stream:e,state:r};Fe.nextTick(HR,r.afterWriteTickInfo)}}else{Pf(e,r,1,i)}}}function HR({stream:e,state:t,count:r,cb:n}){t.afterWriteTickInfo=null;return Pf(e,t,r,n)}function Pf(e,t,r,n){const i=!t.ending&&!e.destroyed&&t.length===0&&t.needDrain;if(i){t.needDrain=false;e.emit("drain")}while(r-- >0){t.pendingcb--;n()}if(t.destroyed){go(t)}mo(e,t)}function go(e){if(e.writing){return}for(let i=e.bufferedIndex;i<e.buffered.length;++i){var t;const{chunk:o,callback:s}=e.buffered[i];const a=e.objectMode?1:o.length;e.length-=a;s((t=e.errored)!==null&&t!==void 0?t:new Wt("write"))}const r=e[ft].splice(0);for(let i=0;i<r.length;i++){var n;r[i]((n=e.errored)!==null&&n!==void 0?n:new Wt("end"))}Yr(e)}function yo(e,t){if(t.corked||t.bufferProcessing||t.destroyed||!t.constructed){return}const{buffered:r,bufferedIndex:n,objectMode:i}=t;const o=r.length-n;if(!o){return}let s=n;t.bufferProcessing=true;if(o>1&&e._writev){t.pendingcb-=o-1;const a=t.allNoop?ho:u=>{for(let f=s;f<r.length;++f){r[f].callback(u)}};const l=t.allNoop&&s===0?r:Tf(r,s);l.allBuffers=t.allBuffers;Af(e,t,true,t.length,l,"",a);Yr(t)}else{do{const{chunk:a,encoding:l,callback:u}=r[s];r[s++]=null;const f=i?1:a.length;Af(e,t,false,f,a,l,u)}while(s<r.length&&!t.writing);if(s===r.length){Yr(t)}else if(s>256){r.splice(0,s);t.bufferedIndex=0}else{t.bufferedIndex=s}}t.bufferProcessing=false}U.prototype._write=function(e,t,r){if(this._writev){this._writev([{chunk:e,encoding:t}],r)}else{throw new jR("_write()")}};U.prototype._writev=null;U.prototype.end=function(e,t,r){const n=this._writableState;if(typeof e==="function"){r=e;e=null;t=null}else if(typeof t==="function"){r=t;t=null}let i;if(e!==null&&e!==void 0){const o=Lf(this,e,t);if(o instanceof vR){i=o}}if(n.corked){n.corked=1;this.uncork()}if(i){}else if(!n.errored&&!n.ending){n.ending=true;mo(this,n,true);n.ended=true}else if(n.finished){i=new qR("end")}else if(n.destroyed){i=new Wt("end")}if(typeof r==="function"){if(i||n.finished){Fe.nextTick(r,i)}else{n[ft].push(r)}}return this};function Gr(e){return e.ending&&!e.destroyed&&e.constructed&&e.length===0&&!e.errored&&e.buffered.length===0&&!e.finished&&!e.writing&&!e.errorEmitted&&!e.closeEmitted}function KR(e,t){let r=false;function n(i){if(r){ct(e,i!==null&&i!==void 0?i:Of());return}r=true;t.pendingcb--;if(i){const o=t[ft].splice(0);for(let s=0;s<o.length;s++){o[s](i)}ct(e,i,t.sync)}else if(Gr(t)){t.prefinished=true;e.emit("prefinish");t.pendingcb++;Fe.nextTick(po,e,t)}}t.sync=true;t.pendingcb++;try{e._final(n)}catch(i){n(i)}t.sync=false}function VR(e,t){if(!t.prefinished&&!t.finalCalled){if(typeof e._final==="function"&&!t.destroyed){t.finalCalled=true;KR(e,t)}else{t.prefinished=true;e.emit("prefinish")}}}function mo(e,t,r){if(Gr(t)){VR(e,t);if(t.pendingcb===0){if(r){t.pendingcb++;Fe.nextTick((n,i)=>{if(Gr(i)){po(n,i)}else{i.pendingcb--}},e,t)}else if(Gr(t)){t.pendingcb++;po(e,t)}}}}function po(e,t){t.pendingcb--;t.finished=true;const r=t[ft].splice(0);for(let n=0;n<r.length;n++){r[n]()}e.emit("finish");if(t.autoDestroy){const n=e._readableState;const i=!n||n.autoDestroy&&(n.endEmitted||n.readable===false);if(i){e.destroy()}}}CR(U.prototype,{closed:{__proto__:null,get(){return this._writableState?this._writableState.closed:false}},destroyed:{__proto__:null,get(){return this._writableState?this._writableState.destroyed:false},set(e){if(this._writableState){this._writableState.destroyed=e}}},writable:{__proto__:null,get(){const e=this._writableState;return!!e&&e.writable!==false&&!e.destroyed&&!e.errored&&!e.ending&&!e.ended},set(e){if(this._writableState){this._writableState.writable=!!e}}},writableFinished:{__proto__:null,get(){return this._writableState?this._writableState.finished:false}},writableObjectMode:{__proto__:null,get(){return this._writableState?this._writableState.objectMode:false}},writableBuffer:{__proto__:null,get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{__proto__:null,get(){return this._writableState?this._writableState.ending:false}},writableNeedDrain:{__proto__:null,get(){const e=this._writableState;if(!e)return false;return!e.destroyed&&!e.ending&&e.needDrain}},writableHighWaterMark:{__proto__:null,get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{__proto__:null,get(){return this._writableState?this._writableState.corked:0}},writableLength:{__proto__:null,get(){return this._writableState&&this._writableState.length}},errored:{__proto__:null,enumerable:false,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._writableState.writable!==false&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var zR=Qr.destroy;U.prototype.destroy=function(e,t){const r=this._writableState;if(!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[ft].length)){Fe.nextTick(go,r)}zR.call(this,e,t);return this};U.prototype._undestroy=Qr.undestroy;U.prototype._destroy=function(e,t){t(e)};U.prototype[LR.captureRejectionSymbol]=function(e){this.destroy(e)};var fo;function Nf(){if(fo===void 0)fo={};return fo}U.fromWeb=function(e,t){return Nf().newStreamWritableFromWritableStream(e,t)};U.toWeb=function(e){return Nf().newWritableStreamFromStreamWritable(e)}});var Qf=E((VI,Yf)=>{var bo=Re();var GR=I("buffer");var{isReadable:YR,isWritable:QR,isIterable:Df,isNodeStream:JR,isReadableNodeStream:jf,isWritableNodeStream:Bf,isDuplexNodeStream:XR,isReadableStream:qf,isWritableStream:$f}=ue();var Wf=ge();var{AbortError:zf,codes:{ERR_INVALID_ARG_TYPE:ZR,ERR_INVALID_RETURN_VALUE:Ff}}=G();var{destroyer:pt}=$e();var eT=fe();var Gf=qt();var tT=Jr();var{createDeferredPromise:Uf}=Q();var Hf=ro();var Kf=globalThis.Blob||GR.Blob;var rT=typeof Kf!=="undefined"?function e(t){return t instanceof Kf}:function e(t){return false};var nT=globalThis.AbortController||nt().AbortController;var{FunctionPrototypeCall:Vf}=F();var Ce=class extends eT{constructor(t){super(t);if((t===null||t===void 0?void 0:t.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((t===null||t===void 0?void 0:t.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}};Yf.exports=function e(t,r){if(XR(t)){return t}if(jf(t)){return dt({readable:t})}if(Bf(t)){return dt({writable:t})}if(JR(t)){return dt({writable:false,readable:false})}if(qf(t)){return dt({readable:Gf.fromWeb(t)})}if($f(t)){return dt({writable:tT.fromWeb(t)})}if(typeof t==="function"){const{value:i,write:o,final:s,destroy:a}=iT(t);if(Df(i)){return Hf(Ce,i,{objectMode:true,write:o,final:s,destroy:a})}const l=i===null||i===void 0?void 0:i.then;if(typeof l==="function"){let u;const f=Vf(l,i,c=>{if(c!=null){throw new Ff("nully","body",c)}},c=>{pt(u,c)});return u=new Ce({objectMode:true,readable:false,write:o,final(c){s(async()=>{try{await f;bo.nextTick(c,null)}catch(h){bo.nextTick(c,h)}})},destroy:a})}throw new Ff("Iterable, AsyncIterable or AsyncFunction",r,i)}if(rT(t)){return e(t.arrayBuffer())}if(Df(t)){return Hf(Ce,t,{objectMode:true,writable:false})}if(qf(t===null||t===void 0?void 0:t.readable)&&$f(t===null||t===void 0?void 0:t.writable)){return Ce.fromWeb(t)}if(typeof(t===null||t===void 0?void 0:t.writable)==="object"||typeof(t===null||t===void 0?void 0:t.readable)==="object"){const i=t!==null&&t!==void 0&&t.readable?jf(t===null||t===void 0?void 0:t.readable)?t===null||t===void 0?void 0:t.readable:e(t.readable):void 0;const o=t!==null&&t!==void 0&&t.writable?Bf(t===null||t===void 0?void 0:t.writable)?t===null||t===void 0?void 0:t.writable:e(t.writable):void 0;return dt({readable:i,writable:o})}const n=t===null||t===void 0?void 0:t.then;if(typeof n==="function"){let i;Vf(n,t,o=>{if(o!=null){i.push(o)}i.push(null)},o=>{pt(i,o)});return i=new Ce({objectMode:true,writable:false,read(){}})}throw new ZR(r,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],t)};function iT(e){let{promise:t,resolve:r}=Uf();const n=new nT;const i=n.signal;const o=e((async function*(){while(true){const s=t;t=null;const{chunk:a,done:l,cb:u}=await s;bo.nextTick(u);if(l)return;if(i.aborted)throw new zf(void 0,{cause:i.reason});({promise:t,resolve:r}=Uf());yield a}})(),{signal:i});return{value:o,write(s,a,l){const u=r;r=null;u({chunk:s,done:false,cb:l})},final(s){const a=r;r=null;a({done:true,cb:s})},destroy(s,a){n.abort();a(s)}}}function dt(e){const t=e.readable&&typeof e.readable.read!=="function"?Gf.wrap(e.readable):e.readable;const r=e.writable;let n=!!YR(t);let i=!!QR(r);let o;let s;let a;let l;let u;function f(c){const h=l;l=null;if(h){h(c)}else if(c){u.destroy(c)}}u=new Ce({readableObjectMode:!!(t!==null&&t!==void 0&&t.readableObjectMode),writableObjectMode:!!(r!==null&&r!==void 0&&r.writableObjectMode),readable:n,writable:i});if(i){Wf(r,c=>{i=false;if(c){pt(t,c)}f(c)});u._write=function(c,h,p){if(r.write(c,h)){p()}else{o=p}};u._final=function(c){r.end();s=c};r.on("drain",function(){if(o){const c=o;o=null;c()}});r.on("finish",function(){if(s){const c=s;s=null;c()}})}if(n){Wf(t,c=>{n=false;if(c){pt(t,c)}f(c)});t.on("readable",function(){if(a){const c=a;a=null;c()}});t.on("end",function(){u.push(null)});u._read=function(){while(true){const c=t.read();if(c===null){a=u._read;return}if(!u.push(c)){return}}}}u._destroy=function(c,h){if(!c&&l!==null){c=new zf}a=null;o=null;s=null;if(l===null){h(c)}else{l=h;pt(r,c);pt(t,c)}};return u}});var fe=E((zI,Zf)=>{"use strict";var{ObjectDefineProperties:oT,ObjectGetOwnPropertyDescriptor:ye,ObjectKeys:sT,ObjectSetPrototypeOf:Jf}=F();Zf.exports=se;var _o=qt();var te=Jr();Jf(se.prototype,_o.prototype);Jf(se,_o);{const e=sT(te.prototype);for(let t=0;t<e.length;t++){const r=e[t];if(!se.prototype[r])se.prototype[r]=te.prototype[r]}}function se(e){if(!(this instanceof se))return new se(e);_o.call(this,e);te.call(this,e);if(e){this.allowHalfOpen=e.allowHalfOpen!==false;if(e.readable===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if(e.writable===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}else{this.allowHalfOpen=true}}oT(se.prototype,{writable:{__proto__:null,...ye(te.prototype,"writable")},writableHighWaterMark:{__proto__:null,...ye(te.prototype,"writableHighWaterMark")},writableObjectMode:{__proto__:null,...ye(te.prototype,"writableObjectMode")},writableBuffer:{__proto__:null,...ye(te.prototype,"writableBuffer")},writableLength:{__proto__:null,...ye(te.prototype,"writableLength")},writableFinished:{__proto__:null,...ye(te.prototype,"writableFinished")},writableCorked:{__proto__:null,...ye(te.prototype,"writableCorked")},writableEnded:{__proto__:null,...ye(te.prototype,"writableEnded")},writableNeedDrain:{__proto__:null,...ye(te.prototype,"writableNeedDrain")},destroyed:{__proto__:null,get(){if(this._readableState===void 0||this._writableState===void 0){return false}return this._readableState.destroyed&&this._writableState.destroyed},set(e){if(this._readableState&&this._writableState){this._readableState.destroyed=e;this._writableState.destroyed=e}}}});var wo;function Xf(){if(wo===void 0)wo={};return wo}se.fromWeb=function(e,t){return Xf().newStreamDuplexFromReadableWritablePair(e,t)};se.toWeb=function(e){return Xf().newReadableWritablePairFromDuplex(e)};var So;se.from=function(e){if(!So){So=Qf()}return So(e,"body")}});var Ao=E((GI,td)=>{"use strict";var{ObjectSetPrototypeOf:ed,Symbol:aT}=F();td.exports=me;var{ERR_METHOD_NOT_IMPLEMENTED:lT}=G().codes;var xo=fe();var{getHighWaterMark:uT}=Dt();ed(me.prototype,xo.prototype);ed(me,xo);var Ut=aT("kCallback");function me(e){if(!(this instanceof me))return new me(e);const t=e?uT(this,e,"readableHighWaterMark",true):null;if(t===0){e={...e,highWaterMark:null,readableHighWaterMark:t,writableHighWaterMark:e.writableHighWaterMark||0}}xo.call(this,e);this._readableState.sync=false;this[Ut]=null;if(e){if(typeof e.transform==="function")this._transform=e.transform;if(typeof e.flush==="function")this._flush=e.flush}this.on("prefinish",cT)}function Eo(e){if(typeof this._flush==="function"&&!this.destroyed){this._flush((t,r)=>{if(t){if(e){e(t)}else{this.destroy(t)}return}if(r!=null){this.push(r)}this.push(null);if(e){e()}})}else{this.push(null);if(e){e()}}}function cT(){if(this._final!==Eo){Eo.call(this)}}me.prototype._final=Eo;me.prototype._transform=function(e,t,r){throw new lT("_transform()")};me.prototype._write=function(e,t,r){const n=this._readableState;const i=this._writableState;const o=n.length;this._transform(e,t,(s,a)=>{if(s){r(s);return}if(a!=null){this.push(a)}if(i.ended||o===n.length||n.length<n.highWaterMark){r()}else{this[Ut]=r}})};me.prototype._read=function(){if(this[Ut]){const e=this[Ut];this[Ut]=null;e()}}});var To=E((YI,nd)=>{"use strict";var{ObjectSetPrototypeOf:rd}=F();nd.exports=ht;var Ro=Ao();rd(ht.prototype,Ro.prototype);rd(ht,Ro);function ht(e){if(!(this instanceof ht))return new ht(e);Ro.call(this,e)}ht.prototype._transform=function(e,t,r){r(null,e)}});var tn=E((QI,ld)=>{var Ht=Re();var{ArrayIsArray:fT,Promise:dT,SymbolAsyncIterator:pT,SymbolDispose:hT}=F();var en=ge();var{once:gT}=Q();var yT=$e();var id=fe();var{aggregateTwoErrors:mT,codes:{ERR_INVALID_ARG_TYPE:ko,ERR_INVALID_RETURN_VALUE:vo,ERR_MISSING_ARGS:bT,ERR_STREAM_DESTROYED:wT,ERR_STREAM_PREMATURE_CLOSE:ST},AbortError:_T}=G();var{validateFunction:ET,validateAbortSignal:xT}=ot();var{isIterable:Ue,isReadable:Co,isReadableNodeStream:Zr,isNodeStream:od,isTransformStream:gt,isWebStream:AT,isReadableStream:Mo,isReadableFinished:RT}=ue();var TT=globalThis.AbortController||nt().AbortController;var Oo;var Io;var Lo;function sd(e,t,r){let n=false;e.on("close",()=>{n=true});const i=en(e,{readable:t,writable:r},o=>{n=!o});return{destroy:o=>{if(n)return;n=true;yT.destroyer(e,o||new wT("pipe"))},cleanup:i}}function vT(e){ET(e[e.length-1],"streams[stream.length - 1]");return e.pop()}function Po(e){if(Ue(e)){return e}else if(Zr(e)){return CT(e)}throw new ko("val",["Readable","Iterable","AsyncIterable"],e)}async function*CT(e){if(!Io){Io=qt()}yield*Io.prototype[pT].call(e)}async function Xr(e,t,r,{end:n}){let i;let o=null;const s=u=>{if(u){i=u}if(o){const f=o;o=null;f()}};const a=()=>new dT((u,f)=>{if(i){f(i)}else{o=()=>{if(i){f(i)}else{u()}}}});t.on("drain",s);const l=en(t,{readable:false},s);try{if(t.writableNeedDrain){await a()}for await(const u of e){if(!t.write(u)){await a()}}if(n){t.end();await a()}r()}catch(u){r(i!==u?mT(i,u):u)}finally{l();t.off("drain",s)}}async function No(e,t,r,{end:n}){if(gt(t)){t=t.writable}const i=t.getWriter();try{for await(const o of e){await i.ready;i.write(o).catch(()=>{})}await i.ready;if(n){await i.close()}r()}catch(o){try{await i.abort(o);r(o)}catch(s){r(s)}}}function MT(...e){return ad(e,gT(vT(e)))}function ad(e,t,r){if(e.length===1&&fT(e[0])){e=e[0]}if(e.length<2){throw new bT("streams")}const n=new TT;const i=n.signal;const o=r===null||r===void 0?void 0:r.signal;const s=[];xT(o,"options.signal");function a(){d(new _T)}Lo=Lo||Q().addAbortListener;let l;if(o){l=Lo(o,a)}let u;let f;const c=[];let h=0;function p(_){d(_,--h===0)}function d(_,S){var A;if(_&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE")){u=_}if(!u&&!S){return}while(c.length){c.shift()(u)};(A=l)===null||A===void 0?void 0:A[hT]();n.abort();if(S){if(!u){s.forEach(v=>v())}Ht.nextTick(t,u,f)}}let g;for(let _=0;_<e.length;_++){const S=e[_];const A=_<e.length-1;const v=_>0;const R=A||(r===null||r===void 0?void 0:r.end)!==false;const C=_===e.length-1;if(od(S)){let T=function(P){if(P&&P.name!=="AbortError"&&P.code!=="ERR_STREAM_PREMATURE_CLOSE"){p(P)}};var w=T;if(R){const{destroy:P,cleanup:B}=sd(S,A,v);c.push(P);if(Co(S)&&C){s.push(B)}}S.on("error",T);if(Co(S)&&C){s.push(()=>{S.removeListener("error",T)})}}if(_===0){if(typeof S==="function"){g=S({signal:i});if(!Ue(g)){throw new vo("Iterable, AsyncIterable or Stream","source",g)}}else if(Ue(S)||Zr(S)||gt(S)){g=S}else{g=id.from(S)}}else if(typeof S==="function"){if(gt(g)){var y;g=Po((y=g)===null||y===void 0?void 0:y.readable)}else{g=Po(g)}g=S(g,{signal:i});if(A){if(!Ue(g,true)){throw new vo("AsyncIterable",`transform[${_-1}]`,g)}}else{var m;if(!Oo){Oo=To()}const T=new Oo({objectMode:true});const P=(m=g)===null||m===void 0?void 0:m.then;if(typeof P==="function"){h++;P.call(g,x=>{f=x;if(x!=null){T.write(x)}if(R){T.end()}Ht.nextTick(p)},x=>{T.destroy(x);Ht.nextTick(p,x)})}else if(Ue(g,true)){h++;Xr(g,T,p,{end:R})}else if(Mo(g)||gt(g)){const x=g.readable||g;h++;Xr(x,T,p,{end:R})}else{throw new vo("AsyncIterable or Promise","destination",g)}g=T;const{destroy:B,cleanup:D}=sd(g,false,true);c.push(B);if(C){s.push(D)}}}else if(od(S)){if(Zr(g)){h+=2;const T=OT(g,S,p,{end:R});if(Co(S)&&C){s.push(T)}}else if(gt(g)||Mo(g)){const T=g.readable||g;h++;Xr(T,S,p,{end:R})}else if(Ue(g)){h++;Xr(g,S,p,{end:R})}else{throw new ko("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g)}g=S}else if(AT(S)){if(Zr(g)){h++;No(Po(g),S,p,{end:R})}else if(Mo(g)||Ue(g)){h++;No(g,S,p,{end:R})}else if(gt(g)){h++;No(g.readable,S,p,{end:R})}else{throw new ko("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],g)}g=S}else{g=id.from(S)}}if(i!==null&&i!==void 0&&i.aborted||o!==null&&o!==void 0&&o.aborted){Ht.nextTick(a)}return g}function OT(e,t,r,{end:n}){let i=false;t.on("close",()=>{if(!i){r(new ST)}});e.pipe(t,{end:false});if(n){let s=function(){i=true;t.end()};var o=s;if(RT(e)){Ht.nextTick(s)}else{e.once("end",s)}}else{r()}en(e,{readable:true,writable:false},s=>{const a=e._readableState;if(s&&s.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted){e.once("end",r).once("error",r)}else{r(s)}});return en(t,{readable:false,writable:true},r)}ld.exports={pipelineImpl:ad,pipeline:MT}});var jo=E((JI,hd)=>{"use strict";var{pipeline:IT}=tn();var rn=fe();var{destroyer:LT}=$e();var{isNodeStream:nn,isReadable:ud,isWritable:cd,isWebStream:Do,isTransformStream:He,isWritableStream:fd,isReadableStream:dd}=ue();var{AbortError:PT,codes:{ERR_INVALID_ARG_VALUE:pd,ERR_MISSING_ARGS:NT}}=G();var kT=ge();hd.exports=function e(...t){if(t.length===0){throw new NT("streams")}if(t.length===1){return rn.from(t[0])}const r=[...t];if(typeof t[0]==="function"){t[0]=rn.from(t[0])}if(typeof t[t.length-1]==="function"){const p=t.length-1;t[p]=rn.from(t[p])}for(let p=0;p<t.length;++p){if(!nn(t[p])&&!Do(t[p])){continue}if(p<t.length-1&&!(ud(t[p])||dd(t[p])||He(t[p]))){throw new pd(`streams[${p}]`,r[p],"must be readable")}if(p>0&&!(cd(t[p])||fd(t[p])||He(t[p]))){throw new pd(`streams[${p}]`,r[p],"must be writable")}}let n;let i;let o;let s;let a;function l(p){const d=s;s=null;if(d){d(p)}else if(p){a.destroy(p)}else if(!h&&!c){a.destroy()}}const u=t[0];const f=IT(t,l);const c=!!(cd(u)||fd(u)||He(u));const h=!!(ud(f)||dd(f)||He(f));a=new rn({writableObjectMode:!!(u!==null&&u!==void 0&&u.writableObjectMode),readableObjectMode:!!(f!==null&&f!==void 0&&f.readableObjectMode),writable:c,readable:h});if(c){if(nn(u)){a._write=function(d,g,y){if(u.write(d,g)){y()}else{n=y}};a._final=function(d){u.end();i=d};u.on("drain",function(){if(n){const d=n;n=null;d()}})}else if(Do(u)){const d=He(u)?u.writable:u;const g=d.getWriter();a._write=async function(y,m,w){try{await g.ready;g.write(y).catch(()=>{});w()}catch(_){w(_)}};a._final=async function(y){try{await g.ready;g.close().catch(()=>{});i=y}catch(m){y(m)}}}const p=He(f)?f.readable:f;kT(p,()=>{if(i){const d=i;i=null;d()}})}if(h){if(nn(f)){f.on("readable",function(){if(o){const p=o;o=null;p()}});f.on("end",function(){a.push(null)});a._read=function(){while(true){const p=f.read();if(p===null){o=a._read;return}if(!a.push(p)){return}}}}else if(Do(f)){const p=He(f)?f.readable:f;const d=p.getReader();a._read=async function(){while(true){try{const{value:g,done:y}=await d.read();if(!a.push(g)){return}if(y){a.push(null);return}}catch{return}}}}}a._destroy=function(p,d){if(!p&&s!==null){p=new PT}o=null;n=null;i=null;if(s===null){d(p)}else{s=d;if(nn(f)){LT(f,p)}}};return a}});var Ad=E((XI,$o)=>{"use strict";var DT=globalThis.AbortController||nt().AbortController;var{codes:{ERR_INVALID_ARG_VALUE:jT,ERR_INVALID_ARG_TYPE:Kt,ERR_MISSING_ARGS:BT,ERR_OUT_OF_RANGE:qT},AbortError:de}=G();var{validateAbortSignal:Ke,validateInteger:gd,validateObject:Ve}=ot();var $T=F().Symbol("kWeak");var WT=F().Symbol("kResistStopPropagation");var{finished:FT}=ge();var UT=jo();var{addAbortSignalNoValidate:HT}=kt();var{isWritable:KT,isNodeStream:VT}=ue();var{deprecate:zT}=Q();var{ArrayPrototypePush:GT,Boolean:YT,MathFloor:yd,Number:QT,NumberIsNaN:JT,Promise:md,PromiseReject:bd,PromiseResolve:XT,PromisePrototypeThen:wd,Symbol:_d}=F();var on=_d("kEmpty");var Sd=_d("kEof");function ZT(e,t){if(t!=null){Ve(t,"options")}if((t===null||t===void 0?void 0:t.signal)!=null){Ke(t.signal,"options.signal")}if(VT(e)&&!KT(e)){throw new jT("stream",e,"must be writable")}const r=UT(this,e);if(t!==null&&t!==void 0&&t.signal){HT(t.signal,r)}return r}function sn(e,t){if(typeof e!=="function"){throw new Kt("fn",["Function","AsyncFunction"],e)}if(t!=null){Ve(t,"options")}if((t===null||t===void 0?void 0:t.signal)!=null){Ke(t.signal,"options.signal")}let r=1;if((t===null||t===void 0?void 0:t.concurrency)!=null){r=yd(t.concurrency)}let n=r-1;if((t===null||t===void 0?void 0:t.highWaterMark)!=null){n=yd(t.highWaterMark)}gd(r,"options.concurrency",1);gd(n,"options.highWaterMark",0);n+=r;return async function*i(){const o=Q().AbortSignalAny([t===null||t===void 0?void 0:t.signal].filter(YT));const s=this;const a=[];const l={signal:o};let u;let f;let c=false;let h=0;function p(){c=true;d()}function d(){h-=1;g()}function g(){if(f&&!c&&h<r&&a.length<n){f();f=null}}async function y(){try{for await(let m of s){if(c){return}if(o.aborted){throw new de}try{m=e(m,l);if(m===on){continue}m=XT(m)}catch(w){m=bd(w)}h+=1;wd(m,d,p);a.push(m);if(u){u();u=null}if(!c&&(a.length>=n||h>=r)){await new md(w=>{f=w})}}a.push(Sd)}catch(m){const w=bd(m);wd(w,d,p);a.push(w)}finally{c=true;if(u){u();u=null}}}y();try{while(true){while(a.length>0){const m=await a[0];if(m===Sd){return}if(o.aborted){throw new de}if(m!==on){yield m}a.shift();g()}await new md(m=>{u=m})}}finally{c=true;if(f){f();f=null}}}.call(this)}function e0(e=void 0){if(e!=null){Ve(e,"options")}if((e===null||e===void 0?void 0:e.signal)!=null){Ke(e.signal,"options.signal")}return async function*t(){let r=0;for await(const i of this){var n;if(e!==null&&e!==void 0&&(n=e.signal)!==null&&n!==void 0&&n.aborted){throw new de({cause:e.signal.reason})}yield[r++,i]}}.call(this)}async function Ed(e,t=void 0){for await(const r of qo.call(this,e,t)){return true}return false}async function t0(e,t=void 0){if(typeof e!=="function"){throw new Kt("fn",["Function","AsyncFunction"],e)}return!await Ed.call(this,async(...r)=>{return!await e(...r)},t)}async function r0(e,t){for await(const r of qo.call(this,e,t)){return r}return void 0}async function n0(e,t){if(typeof e!=="function"){throw new Kt("fn",["Function","AsyncFunction"],e)}async function r(n,i){await e(n,i);return on}for await(const n of sn.call(this,r,t));}function qo(e,t){if(typeof e!=="function"){throw new Kt("fn",["Function","AsyncFunction"],e)}async function r(n,i){if(await e(n,i)){return n}return on}return sn.call(this,r,t)}var Bo=class extends BT{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function i0(e,t,r){var n;if(typeof e!=="function"){throw new Kt("reducer",["Function","AsyncFunction"],e)}if(r!=null){Ve(r,"options")}if((r===null||r===void 0?void 0:r.signal)!=null){Ke(r.signal,"options.signal")}let i=arguments.length>1;if(r!==null&&r!==void 0&&(n=r.signal)!==null&&n!==void 0&&n.aborted){const u=new de(void 0,{cause:r.signal.reason});this.once("error",()=>{});await FT(this.destroy(u));throw u}const o=new DT;const s=o.signal;if(r!==null&&r!==void 0&&r.signal){const u={once:true,[$T]:this,[WT]:true};r.signal.addEventListener("abort",()=>o.abort(),u)}let a=false;try{for await(const u of this){var l;a=true;if(r!==null&&r!==void 0&&(l=r.signal)!==null&&l!==void 0&&l.aborted){throw new de}if(!i){t=u;i=true}else{t=await e(t,u,{signal:s})}}if(!a&&!i){throw new Bo}}finally{o.abort()}return t}async function o0(e){if(e!=null){Ve(e,"options")}if((e===null||e===void 0?void 0:e.signal)!=null){Ke(e.signal,"options.signal")}const t=[];for await(const n of this){var r;if(e!==null&&e!==void 0&&(r=e.signal)!==null&&r!==void 0&&r.aborted){throw new de(void 0,{cause:e.signal.reason})}GT(t,n)}return t}function s0(e,t){const r=sn.call(this,e,t);return async function*n(){for await(const i of r){yield*i}}.call(this)}function xd(e){e=QT(e);if(JT(e)){return 0}if(e<0){throw new qT("number",">= 0",e)}return e}function a0(e,t=void 0){if(t!=null){Ve(t,"options")}if((t===null||t===void 0?void 0:t.signal)!=null){Ke(t.signal,"options.signal")}e=xd(e);return async function*r(){var n;if(t!==null&&t!==void 0&&(n=t.signal)!==null&&n!==void 0&&n.aborted){throw new de}for await(const o of this){var i;if(t!==null&&t!==void 0&&(i=t.signal)!==null&&i!==void 0&&i.aborted){throw new de}if(e--<=0){yield o}}}.call(this)}function l0(e,t=void 0){if(t!=null){Ve(t,"options")}if((t===null||t===void 0?void 0:t.signal)!=null){Ke(t.signal,"options.signal")}e=xd(e);return async function*r(){var n;if(t!==null&&t!==void 0&&(n=t.signal)!==null&&n!==void 0&&n.aborted){throw new de}for await(const o of this){var i;if(t!==null&&t!==void 0&&(i=t.signal)!==null&&i!==void 0&&i.aborted){throw new de}if(e-- >0){yield o}if(e<=0){return}}}.call(this)}$o.exports.streamReturningOperators={asIndexedPairs:zT(e0,"readable.asIndexedPairs will be removed in a future version."),drop:a0,filter:qo,flatMap:s0,map:sn,take:l0,compose:ZT};$o.exports.promiseReturningOperators={every:t0,forEach:n0,reduce:i0,toArray:o0,some:Ed,find:r0}});var Wo=E((ZI,Rd)=>{"use strict";var{ArrayPrototypePop:u0,Promise:c0}=F();var{isIterable:f0,isNodeStream:d0,isWebStream:p0}=ue();var{pipelineImpl:h0}=tn();var{finished:g0}=ge();Fo();function y0(...e){return new c0((t,r)=>{let n;let i;const o=e[e.length-1];if(o&&typeof o==="object"&&!d0(o)&&!f0(o)&&!p0(o)){const s=u0(e);n=s.signal;i=s.end}h0(e,(s,a)=>{if(s){r(s)}else{t(a)}},{signal:n,end:i})})}Rd.exports={finished:g0,pipeline:y0}});var Fo=E((eL,Nd)=>{"use strict";var{Buffer:m0}=I("buffer");var{ObjectDefineProperty:be,ObjectKeys:Cd,ReflectApply:Md}=F();var{promisify:{custom:Od}}=Q();var{streamReturningOperators:Td,promiseReturningOperators:vd}=Ad();var{codes:{ERR_ILLEGAL_CONSTRUCTOR:Id}}=G();var b0=jo();var{setDefaultHighWaterMark:w0,getDefaultHighWaterMark:S0}=Dt();var{pipeline:Ld}=tn();var{destroyer:_0}=$e();var Pd=ge();var Uo=Wo();var Vt=ue();var W=Nd.exports=qr().Stream;W.isDestroyed=Vt.isDestroyed;W.isDisturbed=Vt.isDisturbed;W.isErrored=Vt.isErrored;W.isReadable=Vt.isReadable;W.isWritable=Vt.isWritable;W.Readable=qt();for(const e of Cd(Td)){let r=function(...n){if(new.target){throw Id()}return W.Readable.from(Md(t,this,n))};const t=Td[e];be(r,"name",{__proto__:null,value:t.name});be(r,"length",{__proto__:null,value:t.length});be(W.Readable.prototype,e,{__proto__:null,value:r,enumerable:false,configurable:true,writable:true})}for(const e of Cd(vd)){let r=function(...n){if(new.target){throw Id()}return Md(t,this,n)};const t=vd[e];be(r,"name",{__proto__:null,value:t.name});be(r,"length",{__proto__:null,value:t.length});be(W.Readable.prototype,e,{__proto__:null,value:r,enumerable:false,configurable:true,writable:true})}W.Writable=Jr();W.Duplex=fe();W.Transform=Ao();W.PassThrough=To();W.pipeline=Ld;var{addAbortSignal:E0}=kt();W.addAbortSignal=E0;W.finished=Pd;W.destroy=_0;W.compose=b0;W.setDefaultHighWaterMark=w0;W.getDefaultHighWaterMark=S0;be(W,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return Uo}});be(Ld,Od,{__proto__:null,enumerable:true,get(){return Uo.pipeline}});be(Pd,Od,{__proto__:null,enumerable:true,get(){return Uo.finished}});W.Stream=W;W._isUint8Array=function e(t){return t instanceof Uint8Array};W._uint8ArrayToBuffer=function e(t){return m0.from(t.buffer,t.byteOffset,t.byteLength)}});var kd=E((tL,N)=>{"use strict";var K=I("stream");if(K&&process.env.READABLE_STREAM==="disable"){const e=K.promises;N.exports._uint8ArrayToBuffer=K._uint8ArrayToBuffer;N.exports._isUint8Array=K._isUint8Array;N.exports.isDisturbed=K.isDisturbed;N.exports.isErrored=K.isErrored;N.exports.isReadable=K.isReadable;N.exports.Readable=K.Readable;N.exports.Writable=K.Writable;N.exports.Duplex=K.Duplex;N.exports.Transform=K.Transform;N.exports.PassThrough=K.PassThrough;N.exports.addAbortSignal=K.addAbortSignal;N.exports.finished=K.finished;N.exports.destroy=K.destroy;N.exports.pipeline=K.pipeline;N.exports.compose=K.compose;Object.defineProperty(K,"promises",{configurable:true,enumerable:true,get(){return e}});N.exports.Stream=K.Stream}else{const e=Fo();const t=Wo();const r=e.Readable.destroy;N.exports=e.Readable;N.exports._uint8ArrayToBuffer=e._uint8ArrayToBuffer;N.exports._isUint8Array=e._isUint8Array;N.exports.isDisturbed=e.isDisturbed;N.exports.isErrored=e.isErrored;N.exports.isReadable=e.isReadable;N.exports.Readable=e.Readable;N.exports.Writable=e.Writable;N.exports.Duplex=e.Duplex;N.exports.Transform=e.Transform;N.exports.PassThrough=e.PassThrough;N.exports.addAbortSignal=e.addAbortSignal;N.exports.finished=e.finished;N.exports.destroy=e.destroy;N.exports.destroy=r;N.exports.pipeline=e.pipeline;N.exports.compose=e.compose;Object.defineProperty(e,"promises",{configurable:true,enumerable:true,get(){return t}});N.exports.Stream=e.Stream}N.exports.default=N.exports});var qd=E((rL,Bd)=>{"use strict";var{Transform:x0}=I("stream");var{StringDecoder:A0}=I("string_decoder");var Me=Symbol("last");var an=Symbol("decoder");function R0(e,t,r){let n;if(this.overflow){const i=this[an].write(e);n=i.split(this.matcher);if(n.length===1)return r();n.shift();this.overflow=false}else{this[Me]+=this[an].write(e);n=this[Me].split(this.matcher)}this[Me]=n.pop();for(let i=0;i<n.length;i++){try{jd(this,this.mapper(n[i]))}catch(o){return r(o)}}this.overflow=this[Me].length>this.maxLength;if(this.overflow&&!this.skipOverflow){r(new Error("maximum buffer reached"));return}r()}function T0(e){this[Me]+=this[an].end();if(this[Me]){try{jd(this,this.mapper(this[Me]))}catch(t){return e(t)}}e()}function jd(e,t){if(t!==void 0){e.push(t)}}function Dd(e){return e}function v0(e,t,r){e=e||/\r?\n/;t=t||Dd;r=r||{};switch(arguments.length){case 1:if(typeof e==="function"){t=e;e=/\r?\n/}else if(typeof e==="object"&&!(e instanceof RegExp)&&!e[Symbol.split]){r=e;e=/\r?\n/}break;case 2:if(typeof e==="function"){r=t;t=e;e=/\r?\n/}else if(typeof t==="object"){r=t;t=Dd}}r=Object.assign({},r);r.autoDestroy=true;r.transform=R0;r.flush=T0;r.readableObjectMode=true;const n=new x0(r);n[Me]="";n[an]=new A0("utf8");n.matcher=e;n.mapper=t;n.maxLength=r.maxLength;n.skipOverflow=r.skipOverflow||false;n.overflow=false;n._destroy=function(i,o){this._writableState.errorEmitted=false;o(i)};return n}Bd.exports=v0});var Hd=E((nL,Ud)=>{"use strict";var $d=Symbol.for("pino.metadata");var C0=qd();var{Duplex:M0}=I("stream");var{parentPort:Wd,workerData:Fd}=I("worker_threads");function O0(){let e;let t;const r=new Promise((n,i)=>{e=n;t=i});r.resolve=e;r.reject=t;return r}Ud.exports=function e(t,r={}){const n=r.expectPinoConfig===true&&Fd?.workerData?.pinoWillSendConfig===true;const i=r.parse==="lines";const o=typeof r.parseLine==="function"?r.parseLine:JSON.parse;const s=r.close||I0;const a=C0(function(u){let f;try{f=o(u)}catch(c){this.emit("unknown",u,c);return}if(f===null){this.emit("unknown",u,"Null value ignored");return}if(typeof f!=="object"){f={data:f,time:Date.now()}}if(a[$d]){a.lastTime=f.time;a.lastLevel=f.level;a.lastObj=f}if(i){return u}return f},{autoDestroy:true});a._destroy=function(u,f){const c=s(u,f);if(c&&typeof c.then==="function"){c.then(f,f)}};if(r.expectPinoConfig===true&&Fd?.workerData?.pinoWillSendConfig!==true){setImmediate(()=>{a.emit("error",new Error("This transport is not compatible with the current version of pino. Please upgrade pino to the latest version."))})}if(r.metadata!==false){a[$d]=true;a.lastTime=0;a.lastLevel=0;a.lastObj=null}if(n){let u={};const f=O0();Wd.on("message",function c(h){if(h.code==="PINO_CONFIG"){u=h.config;f.resolve();Wd.off("message",c)}});Object.defineProperties(a,{levels:{get(){return u.levels}},messageKey:{get(){return u.messageKey}},errorKey:{get(){return u.errorKey}}});return f.then(l)}return l();function l(){let u=t(a);if(u&&typeof u.catch==="function"){u.catch(f=>{a.destroy(f)});u=null}else if(r.enablePipelining&&u){return M0.from({writable:a,readable:u})}return a}};function I0(e,t){process.nextTick(t,e)}});var we=E((iL,Kd)=>{"use strict";Kd.exports={DATE_FORMAT:"yyyy-mm-dd HH:MM:ss.l o",DATE_FORMAT_SIMPLE:"HH:MM:ss.l",ERROR_LIKE_KEYS:["err","error"],MESSAGE_KEY:"msg",LEVEL_KEY:"level",LEVEL_LABEL:"levelLabel",TIMESTAMP_KEY:"time",LEVELS:{default:"USERLVL",60:"FATAL",50:"ERROR",40:"WARN",30:"INFO",20:"DEBUG",10:"TRACE"},LEVEL_NAMES:{fatal:60,error:50,warn:40,info:30,debug:20,trace:10},LOGGER_KEYS:["pid","hostname","name","level","time","timestamp","caller"]}});var ln=E((oL,Gd)=>{"use strict";Gd.exports=L0;var{LEVELS:Vd,LEVEL_NAMES:zd}=we();function L0(e,t,r){const n=e?t||Vd:Object.assign({},Vd,t);const i=e?r||zd:Object.assign({},zd,r);return function(o){let s="default";if(Number.isInteger(+o)){s=Object.prototype.hasOwnProperty.call(n,o)?o:s}else{s=Object.prototype.hasOwnProperty.call(i,o.toLowerCase())?i[o.toLowerCase()]:s}return[n[s],s]}}});var Go=E((sL,Jd)=>{"use strict";var Se=e=>e;var Ho={default:Se,60:Se,50:Se,40:Se,30:Se,20:Se,10:Se,message:Se,greyMessage:Se};var{createColors:Yd}=Ti();var P0=ln();var zt=Yd({useColor:true});var{white:Ko,bgRed:N0,red:k0,yellow:D0,green:j0,blue:B0,gray:Vo,cyan:Qd}=zt;var un={default:Ko,60:N0,50:k0,40:D0,30:j0,20:B0,10:Vo,message:Qd,greyMessage:Vo};function q0(e){return e.reduce(function(t,[r,n]){t[r]=typeof zt[n]==="function"?zt[n]:Ko;return t},{default:Ko,message:Qd,greyMessage:Vo})}function zo(e){return function(t,r,{customLevels:n,customLevelNames:i}={}){const[o,s]=P0(e,n,i)(t);return Object.prototype.hasOwnProperty.call(r,s)?r[s](o):r.default(o)}}function $0(e){const t=zo(e);const r=function(n,i){return t(n,Ho,i)};r.message=Ho.message;r.greyMessage=Ho.greyMessage;r.colors=Yd({useColor:false});return r}function W0(e){const t=zo(e);const r=function(n,i){return t(n,un,i)};r.message=un.message;r.greyMessage=un.greyMessage;r.colors=zt;return r}function F0(e,t){const r=q0(e);const n=t?r:Object.assign({},un,r);const i=zo(t);const o=function(s,a){return i(s,n,a)};o.colors=zt;o.message=o.message||n.message;o.greyMessage=o.greyMessage||n.greyMessage;return o}Jd.exports=function e(t=false,r,n){if(t&&r!==void 0){return F0(r,n)}else if(t){return W0(n)}return $0(n)}});var Yo=E((aL,Xd)=>{"use strict";Xd.exports=function e(){}});var ep=E((lL,Zd)=>{"use strict";Zd.exports=K0;var{isMainThread:U0}=I("worker_threads");var H0=Qn();var cn=Yo();function K0(e){const t=new H0(e);t.on("error",r);if(!process.env.NODE_V8_COVERAGE&&!e.sync&&U0){V0(t)}return t;function r(n){if(n.code==="EPIPE"){t.write=cn;t.end=cn;t.flushSync=cn;t.destroy=cn;return}t.removeListener("error",r)}}function V0(e){if(global.WeakRef&&global.WeakMap&&global.FinalizationRegistry){const t=gr();t.register(e,z0);e.on("close",function(){t.unregister(e)})}}function z0(e,t){if(e.destroyed){return}if(t==="beforeExit"){e.flush();e.on("drain",function(){e.end()})}else{e.flushSync()}}});var fn=E((uL,tp)=>{"use strict";tp.exports=G0;function G0(e){return e instanceof Date&&!Number.isNaN(e.getTime())}});var Qo=E((cL,rp)=>{"use strict";rp.exports=Q0;var Y0=fn();function Q0(e){let t=new Date(e);if(Y0(t)){return t}t=new Date(+e);return t}});var dn=E((fL,np)=>{"use strict";np.exports=J0;function J0(e){const t=[];let r=false;let n="";for(let i=0;i<e.length;i++){const o=e.charAt(i);if(o==="\\"){r=true;continue}if(r){r=false;n+=o;continue}if(o==="."){t.push(n);n="";continue}n+=o}if(n.length){t.push(n)}return t}});var yt=E((dL,ip)=>{"use strict";ip.exports=Z0;var X0=dn();function Z0(e,t){const r=Array.isArray(t)?t:X0(t);for(const n of r){if(!Object.prototype.hasOwnProperty.call(e,n)){return}e=e[n]}return e}});var Jo=E((pL,op)=>{"use strict";op.exports=rv;var ev=yt();var tv=dn();function rv(e,t){const r=tv(t);const n=r.pop();e=ev(e,r);if(e!==null&&typeof e==="object"&&Object.prototype.hasOwnProperty.call(e,n)){delete e[n]}}});var bp=E(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:true});var es=function(e,t){es=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))r[i]=n[i]};return es(e,t)};function nv(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");es(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Xo=Object.create;var iv=Function.prototype.toString;var ov=Object.prototype.toString;var sp=Object.setPrototypeOf;var ap=(function(e){nv(t,e);function t(r){var n=e.call(this,"Maximum copy depth of "+String(r)+" exceeded; the value copied is nested too deeply.")||this;if(sp){sp(n,t.prototype)}n.maxDepth=r;n.name="MaxDepthExceededError";return n}return t})(RangeError);var sv=(function(){function e(){this._keys=[];this._values=[]}e.prototype.has=function(t){return!!~this._keys.indexOf(t)};e.prototype.get=function(t){return this._values[this._keys.indexOf(t)]};e.prototype.set=function(t,r){this._keys.push(t);this._values.push(r)};return e})();function av(){return new sv}function lv(){return new WeakMap}var uv=typeof WeakMap!=="undefined"?lv:av;function ts(e){if(!e){return Xo(null)}var t=e.constructor;if(t===Object){return e===Object.prototype?{}:Xo(e)}if(t&&~iv.call(t).indexOf("[native code]")){try{return new t}catch(r){}}return Xo(e)}function cv(e){var t="";if(e.global){t+="g"}if(e.ignoreCase){t+="i"}if(e.multiline){t+="m"}if(e.unicode){t+="u"}if(e.sticky){t+="y"}return t}function fv(e){return e.flags}var dv=/test/g.flags==="g"?fv:cv;function lp(e){var t=ov.call(e);return t.substring(8,t.length-1)}function pv(e){return e[Symbol.toStringTag]||lp(e)}var hv=typeof Symbol!=="undefined"?pv:lp;var gv=Object.defineProperty;var yv=Object.getOwnPropertyDescriptor;var up=Object.getOwnPropertyNames;var rs=Object.getOwnPropertySymbols;var cp=Object.prototype;var fp=cp.hasOwnProperty;var mv=cp.propertyIsEnumerable;var dp=typeof rs==="function";function bv(e){return up(e).concat(rs(e))}var wv=dp?bv:up;function hn(e,t,r){var n=wv(e);for(var i=0,o=n.length,s=void 0,a=void 0;i<o;++i){s=n[i];if(s==="callee"||s==="caller"){continue}a=yv(e,s);if(!a){t[s]=r.copier(e[s],r);continue}if(!a.get&&!a.set){a.value=r.copier(a.value,r)}try{gv(t,s,a)}catch(l){t[s]=a.value}}return t}function Sv(e,t){var r=new t.Constructor;t.cache.set(e,r);for(var n=0,i=e.length;n<i;++n){r[n]=t.copier(e[n],t)}return r}function _v(e,t){var r=new t.Constructor;t.cache.set(e,r);return hn(e,r,t)}function pp(e,t){return e.slice(0)}function Ev(e,t){return e.slice(0,e.size,e.type)}function xv(e,t){return new t.Constructor(pp(e.buffer))}function Av(e,t){return new t.Constructor(e.getTime())}function hp(e,t){var r=new t.Constructor;t.cache.set(e,r);e.forEach(function(n,i){r.set(i,t.copier(n,t))});return r}function Rv(e,t){return hn(e,hp(e,t),t)}function Tv(e,t){var r=ts(t.prototype);t.cache.set(e,r);for(var n in e){if(fp.call(e,n)){r[n]=t.copier(e[n],t)}}return r}function vv(e,t){var r=ts(t.prototype);t.cache.set(e,r);for(var n in e){if(fp.call(e,n)){r[n]=t.copier(e[n],t)}}var i=rs(e);for(var o=0,s=i.length,a=void 0;o<s;++o){a=i[o];if(mv.call(e,a)){r[a]=t.copier(e[a],t)}}return r}var Cv=dp?vv:Tv;function Mv(e,t){var r=ts(t.prototype);t.cache.set(e,r);return hn(e,r,t)}function Zo(e,t){return new t.Constructor(e.valueOf())}function Ov(e,t){var r=new t.Constructor(e.source,dv(e));r.lastIndex=e.lastIndex;return r}function pn(e,t){return e}function gp(e,t){var r=new t.Constructor;t.cache.set(e,r);e.forEach(function(n){r.add(t.copier(n,t))});return r}function Iv(e,t){return hn(e,gp(e,t),t)}var Lv=Array.isArray;var ns=Object.assign;var Pv=Object.getPrototypeOf||(function(e){return e.__proto__});var Nv=1e3;var yp={array:Sv,arrayBuffer:pp,blob:Ev,dataView:xv,date:Av,error:pn,map:hp,object:Cv,regExp:Ov,set:gp,maxDepth:Nv};var kv=ns({},yp,{array:_v,map:Rv,object:Mv,set:Iv});function Dv(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:Zo,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:Zo,Object:e.object,Promise:pn,RegExp:e.regExp,Set:e.set,String:Zo,WeakMap:pn,WeakSet:pn,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}function is(e){var t=ns({},yp,e);var r=Dv(t);if(!r.Object||!r.Array){throw new Error("An object and array copier must be provided.")}var n=r.Array,i=r.Object;var o=t.maxDepth;function s(a,l){l.prototype=l.Constructor=void 0;if(!a||typeof a!=="object"){return a}if(l.cache.has(a)){return l.cache.get(a)}if(++l.depth>o){throw new ap(o)}l.prototype=Pv(a);l.Constructor=l.prototype&&l.prototype.constructor;var u;if(!l.Constructor||l.Constructor===Object){u=i(a,l)}else if(Lv(a)){u=n(a,l)}else{var f=r[hv(a)];if(f){u=f(a,l)}else{u=typeof a.then==="function"?a:i(a,l)}}--l.depth;return u}return function a(l){return s(l,{Constructor:void 0,cache:uv(),copier:s,depth:0,prototype:void 0})}}function mp(e){return is(ns({},kv,e))}var jv=mp({});var Bv=is({});ze.MaxDepthExceededError=ap;ze.copyStrict=jv;ze.createCopier=is;ze.createStrictCopier=mp;ze.default=Bv});var os=E((gL,wp)=>{"use strict";wp.exports=Fv;var{createCopier:qv}=bp();var $v=qv({});var Wv=Jo();function Fv({log:e,context:t}){const{ignoreKeys:r,includeKeys:n}=t;const i=$v(e);if(n){const o={};n.forEach(s=>{o[s]=i[s]});return o}r.forEach(o=>{Wv(i,o)});return i}});var _p=E((ss,Sp)=>{"use strict";function mt(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){mt=function t(r){return typeof r}}else{mt=function t(r){return r&&typeof Symbol==="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r}}return mt(e)}(function(e){var t=arguments;var r=(function(){var l=/d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g;var u=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;var f=/[^-+\dA-Z]/g;return function(c,h,p,d){if(t.length===1&&a(c)==="string"&&!/\d/.test(c)){h=c;c=void 0}c=c||c===0?c:new Date;if(!(c instanceof Date)){c=new Date(c)}if(isNaN(c)){throw TypeError("Invalid date")}h=String(r.masks[h]||h||r.masks["default"]);var g=h.slice(0,4);if(g==="UTC:"||g==="GMT:"){h=h.slice(4);p=true;if(g==="GMT:"){d=true}}var y=function x(){return p?"getUTC":"get"};var m=function x(){return c[y()+"Date"]()};var w=function x(){return c[y()+"Day"]()};var _=function x(){return c[y()+"Month"]()};var S=function x(){return c[y()+"FullYear"]()};var A=function x(){return c[y()+"Hours"]()};var v=function x(){return c[y()+"Minutes"]()};var R=function x(){return c[y()+"Seconds"]()};var C=function x(){return c[y()+"Milliseconds"]()};var T=function x(){return p?0:c.getTimezoneOffset()};var P=function x(){return o(c)};var B=function x(){return s(c)};var D={d:function x(){return m()},dd:function x(){return n(m())},ddd:function x(){return r.i18n.dayNames[w()]},DDD:function x(){return i({y:S(),m:_(),d:m(),_:y(),dayName:r.i18n.dayNames[w()],short:true})},dddd:function x(){return r.i18n.dayNames[w()+7]},DDDD:function x(){return i({y:S(),m:_(),d:m(),_:y(),dayName:r.i18n.dayNames[w()+7]})},m:function x(){return _()+1},mm:function x(){return n(_()+1)},mmm:function x(){return r.i18n.monthNames[_()]},mmmm:function x(){return r.i18n.monthNames[_()+12]},yy:function x(){return String(S()).slice(2)},yyyy:function x(){return n(S(),4)},h:function x(){return A()%12||12},hh:function x(){return n(A()%12||12)},H:function x(){return A()},HH:function x(){return n(A())},M:function x(){return v()},MM:function x(){return n(v())},s:function x(){return R()},ss:function x(){return n(R())},l:function x(){return n(C(),3)},L:function x(){return n(Math.floor(C()/10))},t:function x(){return A()<12?r.i18n.timeNames[0]:r.i18n.timeNames[1]},tt:function x(){return A()<12?r.i18n.timeNames[2]:r.i18n.timeNames[3]},T:function x(){return A()<12?r.i18n.timeNames[4]:r.i18n.timeNames[5]},TT:function x(){return A()<12?r.i18n.timeNames[6]:r.i18n.timeNames[7]},Z:function x(){return d?"GMT":p?"UTC":(String(c).match(u)||[""]).pop().replace(f,"").replace(/GMT\+0000/g,"UTC")},o:function x(){return(T()>0?"-":"+")+n(Math.floor(Math.abs(T())/60)*100+Math.abs(T())%60,4)},p:function x(){return(T()>0?"-":"+")+n(Math.floor(Math.abs(T())/60),2)+":"+n(Math.floor(Math.abs(T())%60),2)},S:function x(){return["th","st","nd","rd"][m()%10>3?0:(m()%100-m()%10!=10)*m()%10]},W:function x(){return P()},WW:function x(){return n(P())},N:function x(){return B()}};return h.replace(l,function(x){if(x in D){return D[x]()}return x.slice(1,x.length-1)})}})();r.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",paddedShortDate:"mm/dd/yyyy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"};r.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],timeNames:["a","p","am","pm","A","P","AM","PM"]};var n=function l(u,f){u=String(u);f=f||2;while(u.length<f){u="0"+u}return u};var i=function l(u){var f=u.y,c=u.m,h=u.d,p=u._,d=u.dayName,g=u["short"],y=g===void 0?false:g;var m=new Date;var w=new Date;w.setDate(w[p+"Date"]()-1);var _=new Date;_.setDate(_[p+"Date"]()+1);var S=function x(){return m[p+"Date"]()};var A=function x(){return m[p+"Month"]()};var v=function x(){return m[p+"FullYear"]()};var R=function x(){return w[p+"Date"]()};var C=function x(){return w[p+"Month"]()};var T=function x(){return w[p+"FullYear"]()};var P=function x(){return _[p+"Date"]()};var B=function x(){return _[p+"Month"]()};var D=function x(){return _[p+"FullYear"]()};if(v()===f&&A()===c&&S()===h){return y?"Tdy":"Today"}else if(T()===f&&C()===c&&R()===h){return y?"Ysd":"Yesterday"}else if(D()===f&&B()===c&&P()===h){return y?"Tmw":"Tomorrow"}return d};var o=function l(u){var f=new Date(u.getFullYear(),u.getMonth(),u.getDate());f.setDate(f.getDate()-(f.getDay()+6)%7+3);var c=new Date(f.getFullYear(),0,4);c.setDate(c.getDate()-(c.getDay()+6)%7+3);var h=f.getTimezoneOffset()-c.getTimezoneOffset();f.setHours(f.getHours()-h);var p=(f-c)/(864e5*7);return 1+Math.floor(p)};var s=function l(u){var f=u.getDay();if(f===0){f=7}return f};var a=function l(u){if(u===null){return"null"}if(u===void 0){return"undefined"}if(mt(u)!=="object"){return mt(u)}if(Array.isArray(u)){return"array"}return{}.toString.call(u).slice(8,-1).toLowerCase()};if(typeof define==="function"&&define.amd){define(function(){return r})}else if((typeof ss==="undefined"?"undefined":mt(ss))==="object"){Sp.exports=r}else{e.dateFormat=r}})(void 0)});var as=E((yL,Ep)=>{"use strict";Ep.exports=zv;var{DATE_FORMAT:Uv,DATE_FORMAT_SIMPLE:Hv}=we();var Gt=_p();var Kv=Qo();var Vv=fn();function zv(e,t=false){if(t===false){return e}const r=Kv(e);if(!Vv(r)){return e}if(t===true){return Gt(r,Hv)}const n=t.toUpperCase();if(n==="SYS:STANDARD"){return Gt(r,Uv)}const i=n.substr(0,4);if(i==="SYS:"||i==="UTC:"){if(i==="UTC:"){return Gt(r,t)}return Gt(r,t.slice(4))}return Gt(r,`UTC:${t}`)}});var ls=E((mL,xp)=>{"use strict";xp.exports=Gv;function Gv(e){if(!e)return{};if(typeof e==="string"){return e.split(",").reduce((t,r,n)=>{const[i,o=n]=r.split(":");t[i.toLowerCase()]=o;return t},{})}else if(Object.prototype.toString.call(e)==="[object Object]"){return Object.keys(e).reduce((t,r)=>{t[r.toLowerCase()]=e[r];return t},{})}else{return{}}}});var us=E((bL,Ap)=>{"use strict";Ap.exports=Yv;function Yv(e){if(!e)return{};if(typeof e==="string"){return e.split(",").reduce((t,r,n)=>{const[i,o=n]=r.split(":");t[o]=i.toUpperCase();return t},{default:"USERLVL"})}else if(Object.prototype.toString.call(e)==="[object Object]"){return Object.keys(e).reduce((t,r)=>{t[e[r]]=r.toUpperCase();return t},{default:"USERLVL"})}else{return{}}}});var cs=E((wL,Rp)=>{"use strict";Rp.exports=Jv;var Qv=yt();function Jv(e,t){e=e.replace(/{if (.*?)}(.*?){end}/g,r);e=e.replace(/{if (.*?)}/g,"");e=e.replace(/{end}/g,"");return e.replace(/\s+/g," ").trim();function r(n,i,o){const s=Qv(t,i);if(s&&o.includes(i)){return o.replace(new RegExp("{"+i+"}","g"),s)}else{return""}}}});var gn=E((SL,Tp)=>{"use strict";Tp.exports=Xv;function Xv(e){return Object.prototype.toString.apply(e)==="[object Object]"}});var Yt=E((_L,vp)=>{"use strict";vp.exports=Zv;function Zv({input:e,ident:t=" ",eol:r="\n"}){const n=e.split(/\r?\n/);for(let i=1;i<n.length;i+=1){n[i]=t+n[i]}return n.join(r)}});var Ip=E((EL,Op)=>{"use strict";Op.exports=nC;var{LEVEL_NAMES:Cp}=we();var Mp=Go();var eC=us();var tC=ls();var rC=ln();function nC(e){const t=e.crlf?"\r\n":"\n";const r=" ";const{customPrettifiers:n,errorLikeObjectKeys:i,hideObject:o,levelFirst:s,levelKey:a,levelLabel:l,messageFormat:u,messageKey:f,minimumLevel:c,singleLine:h,timestampKey:p,translateTime:d}=e;const g=e.errorProps.split(",");const y=typeof e.useOnlyCustomProps==="boolean"?e.useOnlyCustomProps:e.useOnlyCustomProps==="true";const m=eC(e.customLevels);const w=tC(e.customLevels);const _=rC(y,m,w);let S;if(e.customColors){if(typeof e.customColors==="string"){S=e.customColors.split(",").reduce((P,B)=>{const[D,x]=B.split(":");const z=y?e.customLevels:w[D]!==void 0;const J=z?w[D]:Cp[D];const Ie=J!==void 0?J:D;P.push([Ie,x]);return P},[])}else if(typeof e.customColors==="object"){S=Object.keys(e.customColors).reduce((P,B)=>{const[D,x]=[B,e.customColors[B]];const z=y?e.customLevels:w[D]!==void 0;const J=z?w[D]:Cp[D];const Ie=J!==void 0?J:D;P.push([Ie,x]);return P},[])}else{throw new Error("options.customColors must be of type string or object.")}}const A={customLevels:m,customLevelNames:w};if(y===true&&!e.customLevels){A.customLevels=void 0;A.customLevelNames=void 0}const v=e.include!==void 0?new Set(e.include.split(",")):void 0;const R=!v&&e.ignore?new Set(e.ignore.split(",")):void 0;const C=Mp(e.colorize,S,y);const T=e.colorizeObjects?C:Mp(false,[],false);return{EOL:t,IDENT:r,colorizer:C,customColors:S,customLevelNames:w,customLevels:m,customPrettifiers:n,customProperties:A,errorLikeObjectKeys:i,errorProps:g,getLevelLabelData:_,hideObject:o,ignoreKeys:R,includeKeys:v,levelFirst:s,levelKey:a,levelLabel:l,messageFormat:u,messageKey:f,minimumLevel:c,objectColorizer:T,singleLine:h,timestampKey:p,translateTime:d,useOnlyCustomProps:y}}});var jp=E((xL,Dp)=>{Dp.exports=Qt;Qt.default=Qt;Qt.stable=Np;Qt.stableStringify=Np;var yn="[...]";var Lp="[Circular]";var Ye=[];var Ge=[];function Pp(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Qt(e,t,r,n){if(typeof n==="undefined"){n=Pp()}fs(e,"",0,[],void 0,0,n);var i;try{if(Ge.length===0){i=JSON.stringify(e,t,r)}else{i=JSON.stringify(e,kp(t),r)}}catch(s){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(Ye.length!==0){var o=Ye.pop();if(o.length===4){Object.defineProperty(o[0],o[1],o[3])}else{o[0][o[1]]=o[2]}}}return i}function bt(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);if(i.get!==void 0){if(i.configurable){Object.defineProperty(n,r,{value:e});Ye.push([n,r,t,i])}else{Ge.push([t,r,e])}}else{n[r]=e;Ye.push([n,r,t])}}function fs(e,t,r,n,i,o,s){o+=1;var a;if(typeof e==="object"&&e!==null){for(a=0;a<n.length;a++){if(n[a]===e){bt(Lp,e,t,i);return}}if(typeof s.depthLimit!=="undefined"&&o>s.depthLimit){bt(yn,e,t,i);return}if(typeof s.edgesLimit!=="undefined"&&r+1>s.edgesLimit){bt(yn,e,t,i);return}n.push(e);if(Array.isArray(e)){for(a=0;a<e.length;a++){fs(e[a],a,a,n,e,o,s)}}else{var l=Object.keys(e);for(a=0;a<l.length;a++){var u=l[a];fs(e[u],u,a,n,e,o,s)}}n.pop()}}function iC(e,t){if(e<t){return-1}if(e>t){return 1}return 0}function Np(e,t,r,n){if(typeof n==="undefined"){n=Pp()}var i=ds(e,"",0,[],void 0,0,n)||e;var o;try{if(Ge.length===0){o=JSON.stringify(i,t,r)}else{o=JSON.stringify(i,kp(t),r)}}catch(a){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{while(Ye.length!==0){var s=Ye.pop();if(s.length===4){Object.defineProperty(s[0],s[1],s[3])}else{s[0][s[1]]=s[2]}}}return o}function ds(e,t,r,n,i,o,s){o+=1;var a;if(typeof e==="object"&&e!==null){for(a=0;a<n.length;a++){if(n[a]===e){bt(Lp,e,t,i);return}}try{if(typeof e.toJSON==="function"){return}}catch(c){return}if(typeof s.depthLimit!=="undefined"&&o>s.depthLimit){bt(yn,e,t,i);return}if(typeof s.edgesLimit!=="undefined"&&r+1>s.edgesLimit){bt(yn,e,t,i);return}n.push(e);if(Array.isArray(e)){for(a=0;a<e.length;a++){ds(e[a],a,a,n,e,o,s)}}else{var l={};var u=Object.keys(e).sort(iC);for(a=0;a<u.length;a++){var f=u[a];ds(e[f],f,a,n,e,o,s);l[f]=e[f]}if(typeof i!=="undefined"){Ye.push([i,t,e]);i[t]=l}else{return l}}n.pop()}}function kp(e){e=typeof e!=="undefined"?e:function(t,r){return r};return function(t,r){if(Ge.length>0){for(var n=0;n<Ge.length;n++){var i=Ge[n];if(i[1]===t&&i[0]===r){r=i[2];Ge.splice(n,1);break}}}return e.call(this,t,r)}}});var ps=E((AL,Bp)=>{"use strict";Bp.exports=sC;var oC=Yt();function sC({keyName:e,lines:t,eol:r,ident:n}){let i="";const o=oC({input:t,ident:n,eol:r});const s=`${n}${e}: ${o}${r}`.split(r);for(let a=0;a<s.length;a+=1){if(a!==0)i+=r;const l=s[a];if(/^\s*"stack"/.test(l)){const u=/^(\s*"stack":)\s*(".*"),?$/.exec(l);if(u&&u.length===3){const f=/^\s*/.exec(l)[0].length+4;const c=" ".repeat(f);const h=u[2];i+=u[1]+r+c+JSON.parse(h).replace(/\n/g,r+c)}else{i+=l}}else{i+=l}}return i}});var mn=E((RL,qp)=>{"use strict";qp.exports=cC;var{LOGGER_KEYS:aC}=we();var hs=jp();var lC=Yt();var uC=ps();function cC({log:e,excludeLoggerKeys:t=true,skipKeys:r=[],context:n}){const{EOL:i,IDENT:o,customPrettifiers:s,errorLikeObjectKeys:a,objectColorizer:l,singleLine:u,colorizer:f}=n;const c=[].concat(r);if(t===true)Array.prototype.push.apply(c,aC);let h="";const{plain:p,errors:d}=Object.entries(e).reduce(({plain:g,errors:y},[m,w])=>{if(c.includes(m)===false){const _=typeof s[m]==="function"?s[m](w,m,e,{colors:f.colors}):w;if(a.includes(m)){y[m]=_}else{g[m]=_}}return{plain:g,errors:y}},{plain:{},errors:{}});if(u){if(Object.keys(p).length>0){h+=l.greyMessage(hs(p))}h+=i;h=h.replace(/\\\\/gi,"\\")}else{Object.entries(p).forEach(([g,y])=>{let m=typeof s[g]==="function"?y:hs(y,null,2);if(m===void 0)return;m=m.replace(/\\\\/gi,"\\");const w=lC({input:m,ident:o,eol:i});h+=`${o}${g}:${w.startsWith(i)?"":" "}${w}${i}`})}Object.entries(d).forEach(([g,y])=>{const m=typeof s[g]==="function"?y:hs(y,null,2);if(m===void 0)return;h+=uC({keyName:g,lines:m,eol:i,ident:o})});return h}});var gs=E((TL,$p)=>{"use strict";$p.exports=gC;var{LOGGER_KEYS:fC}=we();var dC=gn();var pC=Yt();var hC=mn();function gC({log:e,context:t}){const{EOL:r,IDENT:n,errorProps:i,messageKey:o}=t;const s=e.stack;const a=pC({input:s,ident:n,eol:r});let l=`${n}${a}${r}`;if(i.length>0){const u=fC.concat(o,"type","stack");let f;if(i[0]==="*"){f=Object.keys(e).filter(c=>u.includes(c)===false)}else{f=i.filter(c=>u.includes(c)===false)}for(let c=0;c<f.length;c+=1){const h=f[c];if(h in e===false)continue;if(dC(e[h])){const p=hC({log:e[h],excludeLoggerKeys:false,context:{...t,IDENT:n+n}});l=`${l}${n}${h}: {${r}${p}${n}}${r}`;continue}l=`${l}${n}${h}: ${e[h]}${r}`}}return l}});var ys=E((vL,Wp)=>{"use strict";Wp.exports=mC;var yC=yt();function mC({log:e,context:t}){const{colorizer:r,customLevels:n,customLevelNames:i,levelKey:o,getLevelLabelData:s}=t;const a=t.customPrettifiers?.level;const l=yC(e,o);if(l===void 0)return void 0;const u=r(l,{customLevels:n,customLevelNames:i});if(a){const[f]=s(l);return a(l,o,e,{label:f,labelColorized:u,colors:r.colors})}return u}});var ms=E((CL,Up)=>{"use strict";Up.exports=SC;var{LEVELS:bC}=we();var Fp=yt();var wC=cs();function SC({log:e,context:t}){const{colorizer:r,customLevels:n,levelKey:i,levelLabel:o,messageFormat:s,messageKey:a,useOnlyCustomProps:l}=t;if(s&&typeof s==="string"){const u=wC(s,e);const f=String(u).replace(/{([^{}]+)}/g,function(c,h){let p;if(h===o&&(p=Fp(e,i))!==void 0){const d=l?n===void 0:n[p]===void 0;return d?bC[p]:n[p]}return Fp(e,h)||""});return r.message(f)}if(s&&typeof s==="function"){const u=s(e,a,o,{colors:r.colors});return r.message(u)}if(a in e===false)return void 0;if(typeof e[a]!=="string"&&typeof e[a]!=="number"&&typeof e[a]!=="boolean")return void 0;return r.message(e[a])}});var bs=E((ML,Hp)=>{"use strict";Hp.exports=_C;function _C({log:e,context:t}){const{customPrettifiers:r,colorizer:n}=t;let i="";if(e.name||e.pid||e.hostname){i+="(";if(e.name){i+=r.name?r.name(e.name,"name",e,{colors:n.colors}):e.name}if(e.pid){const o=r.pid?r.pid(e.pid,"pid",e,{colors:n.colors}):e.pid;if(e.name&&e.pid){i+="/"+o}else{i+=o}}if(e.hostname){const o=r.hostname?r.hostname(e.hostname,"hostname",e,{colors:n.colors}):e.hostname;i+=`${i==="("?"on":" on"} ${o}`}i+=")"}if(e.caller){const o=r.caller?r.caller(e.caller,"caller",e,{colors:n.colors}):e.caller;i+=`${i===""?"":" "}<${o}>`}if(i===""){return void 0}else{return i}}});var ws=E((OL,Kp)=>{"use strict";Kp.exports=xC;var EC=as();function xC({log:e,context:t}){const{timestampKey:r,translateTime:n}=t;const i=t.customPrettifiers?.time;let o=null;if(r in e){o=e[r]}else if("timestamp"in e){o=e.timestamp}if(o===null)return void 0;const s=n?EC(o,n):o;return i?i(s):`[${s}]`}});var zp=E((IL,Vp)=>{"use strict";Vp.exports={buildSafeSonicBoom:ep(),createDate:Qo(),deleteLogProperty:Jo(),filterLog:os(),formatTime:as(),getPropertyValue:yt(),handleCustomLevelsNamesOpts:ls(),handleCustomLevelsOpts:us(),interpretConditionals:cs(),isObject:gn(),isValidDate:fn(),joinLinesWithIndentation:Yt(),noop:Yo(),parseFactoryOptions:Ip(),prettifyErrorLog:gs(),prettifyError:ps(),prettifyLevel:ys(),prettifyMessage:ms(),prettifyMetadata:bs(),prettifyObject:mn(),prettifyTime:ws(),splitPropertyKey:dn(),getLevelLabelData:ln()}});var Xp=E((LL,wt)=>{"use strict";var AC=typeof Buffer!=="undefined";var Gp=/"(?:_|\\u005[Ff])(?:_|\\u005[Ff])(?:p|\\u0070)(?:r|\\u0072)(?:o|\\u006[Ff])(?:t|\\u0074)(?:o|\\u006[Ff])(?:_|\\u005[Ff])(?:_|\\u005[Ff])"\s*:/;var Yp=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/;function Qp(e,t,r){if(r==null){if(t!==null&&typeof t==="object"){r=t;t=void 0}}if(AC&&Buffer.isBuffer(e)){e=e.toString()}if(e&&e.charCodeAt(0)===65279){e=e.slice(1)}const n=JSON.parse(e,t);if(n===null||typeof n!=="object"){return n}const i=r&&r.protoAction||"error";const o=r&&r.constructorAction||"error";if(i==="ignore"&&o==="ignore"){return n}if(i!=="ignore"&&o!=="ignore"){if(Gp.test(e)===false&&Yp.test(e)===false){return n}}else if(i!=="ignore"&&o==="ignore"){if(Gp.test(e)===false){return n}}else{if(Yp.test(e)===false){return n}}return Jp(n,{protoAction:i,constructorAction:o,safe:r&&r.safe})}function Jp(e,{protoAction:t="error",constructorAction:r="error",safe:n}={}){let i=[e];while(i.length){const o=i;i=[];for(const s of o){if(t!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"__proto__")){if(n===true){return null}else if(t==="error"){throw new SyntaxError("Object contains forbidden prototype property")}delete s.__proto__}if(r!=="ignore"&&Object.prototype.hasOwnProperty.call(s,"constructor")&&Object.prototype.hasOwnProperty.call(s.constructor,"prototype")){if(n===true){return null}else if(r==="error"){throw new SyntaxError("Object contains forbidden prototype property")}delete s.constructor}for(const a in s){const l=s[a];if(l&&typeof l==="object"){i.push(l)}}}}return e}function Ss(e,t,r){const n=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Qp(e,t,r)}finally{Error.stackTraceLimit=n}}function RC(e,t){const r=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return Qp(e,t,{safe:true})}catch(n){return null}finally{Error.stackTraceLimit=r}}wt.exports=Ss;wt.exports.default=Ss;wt.exports.parse=Ss;wt.exports.safeParse=RC;wt.exports.scan=Jp});var th=E((PL,eh)=>{"use strict";eh.exports=jC;var TC=Xp();var Zp=gn();var vC=gs();var CC=ys();var MC=ms();var OC=bs();var IC=mn();var LC=ws();var PC=os();var{LEVELS:NC,LEVEL_KEY:kC,LEVEL_NAMES:_s}=we();var DC=e=>{try{return{value:TC.parse(e,{protoAction:"remove"})}}catch(t){return{err:t}}};function jC(e){let t;if(!Zp(e)){const a=DC(e);if(a.err||!Zp(a.value)){return e+this.EOL}t=a.value}else{t=e}if(this.minimumLevel){let a;if(this.useOnlyCustomProps){a=this.customLevels}else{a=this.customLevelNames[this.minimumLevel]!==void 0}let l;if(a){l=this.customLevelNames[this.minimumLevel]}else{l=_s[this.minimumLevel]}if(!l){l=typeof this.minimumLevel==="string"?_s[this.minimumLevel]:_s[NC[this.minimumLevel].toLowerCase()]}const u=t[this.levelKey===void 0?kC:this.levelKey];if(u<l)return}const r=MC({log:t,context:this.context});if(this.ignoreKeys||this.includeKeys){t=PC({log:t,context:this.context})}const n=CC({log:t,context:{...this.context,...this.context.customProperties}});const i=OC({log:t,context:this.context});const o=LC({log:t,context:this.context});let s="";if(this.levelFirst&&n){s=`${n}`}if(o&&s===""){s=`${o}`}else if(o){s=`${s} ${o}`}if(!this.levelFirst&&n){if(s.length>0){s=`${s} ${n}`}else{s=n}}if(i){if(s.length>0){s=`${s} ${i}:`}else{s=i}}if(s.endsWith(":")===false&&s!==""){s+=":"}if(r!==void 0){if(s.length>0){s=`${s} ${r}`}else{s=r}}if(s.length>0&&!this.singleLine){s+=this.EOL}if(t.type==="Error"&&typeof t.stack==="string"){const a=vC({log:t,context:this.context});if(this.singleLine)s+=this.EOL;s+=a}else if(this.hideObject===false){const a=[this.messageKey,this.levelKey,this.timestampKey].filter(u=>{return typeof t[u]==="string"||typeof t[u]==="number"||typeof t[u]==="boolean"});const l=IC({log:t,skipKeys:a,context:this.context});if(this.singleLine&&!/^\s$/.test(l)){s+=" "}s+=l}return s}});var ih=E((NL,Oe)=>{"use strict";var{isColorSupported:rh}=Ti();var BC=Mu();var{Transform:qC}=kd();var $C=Hd();var WC=Go();var{ERROR_LIKE_KEYS:nh,LEVEL_KEY:FC,LEVEL_LABEL:UC,MESSAGE_KEY:HC,TIMESTAMP_KEY:KC}=we();var{buildSafeSonicBoom:VC,parseFactoryOptions:zC}=zp();var GC=th();var YC={colorize:rh,colorizeObjects:true,crlf:false,customColors:null,customLevels:null,customPrettifiers:{},errorLikeObjectKeys:nh,errorProps:"",hideObject:false,ignore:"hostname",include:void 0,levelFirst:false,levelKey:FC,levelLabel:UC,messageFormat:null,messageKey:HC,minimumLevel:void 0,outputStream:process.stdout,singleLine:false,timestampKey:KC,translateTime:true,useOnlyCustomProps:true};function Es(e){const t=zC(Object.assign({},YC,e));return GC.bind({...t,context:t})}function bn(e={}){let t=Es(e);let r;return $C(function(n){n.on("message",function o(s){if(!s||s.code!=="PINO_CONFIG")return;Object.assign(e,{messageKey:s.config.messageKey,errorLikeObjectKeys:Array.from(new Set([...e.errorLikeObjectKeys||nh,s.config.errorKey])),customLevels:s.config.levels.values});t=Es(e);n.off("message",o)});const i=new qC({objectMode:true,autoDestroy:true,transform(o,s,a){const l=t(o);a(null,l)}});if(typeof e.destination==="object"&&typeof e.destination.write==="function"){r=e.destination}else{r=VC({dest:e.destination||1,append:e.append,mkdir:e.mkdir,sync:e.sync})}n.on("unknown",function(o){r.write(o+"\n")});BC(n,i,r);return i},{parse:"lines",close(n,i){r.on("close",()=>{i(n)})}})}Oe.exports=bn;Oe.exports.build=bn;Oe.exports.PinoPretty=bn;Oe.exports.prettyFactory=Es;Oe.exports.colorizerFactory=WC;Oe.exports.isColorSupported=rh;Oe.exports.default=bn});function $h(e={}){const t=e.internalBuild===true;const r=e.insideBuild===true;if(t&&r){throw new Error("A product build cannot be both internal and inside")}const n=ks(e.buildEnv);const i=r?"inside":t?"internal":"standard";return{buildEnv:n,variant:i,isDev:n==="dev",isTest:n==="test",isStaging:n==="staging",isProd:n==="prod",isInternalBuild:t,isInsideBuild:r}}function ks(e){if(e==="development")return"dev";if(e==="production")return"prod";if(e==="dev"||e==="test"||e==="staging"||e==="prod"){return e}return void 0}var Wh=new Set(["EACCES","EBUSY","EPERM"]);var Fh=4;var Uh=50;function Hh(e,t={}){const r=t.platform??process.platform;const n=Math.max(0,Math.floor(t.retries??Fh));const i=Math.max(0,Math.floor(t.retryDelayMs??Uh));const o=t.wait??Vh;for(let s=0;;s+=1){try{return e()}catch(a){if(r!=="win32"||s>=n||!Kh(a)){throw a}o(i*(s+1))}}}function Kh(e){return typeof e==="object"&&e!==null&&"code"in e&&typeof e.code==="string"&&Wh.has(e.code)}function Vh(e){if(e<=0)return;Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,e)}var zh=15*1024;var Gh=20*1024;var Yh=18*1024;var AO=16*1024;var RO=16*1024;var Qh=4*1024;var Jh=10*1024;var Xh=10*1024;var Zh=30*1024;var eg=24*60*60*1e3;var tg=10*1024;import{createRequire as rg}from"node:module";var CO=rg(__alran_tuiPackageEntryUrl);function ng(e,t){return`${e.trim()}:${t.trim()}`}var er=(()=>{try{return{asterisk:new RegExp("(?<!\\*)\\*(?=\\S)([\\s\\S]*?\\S)\\*(?!\\*)","gu"),underscore:new RegExp("(?<!_)_(?=\\S)([\\s\\S]*?\\S)_(?!_)","gu"),replacement:"$1"}}catch{return{asterisk:/(^|[^*])\*(?=\S)([\s\S]*?\S)\*(?!\*)/gu,underscore:/(^|[^_])_(?=\S)([\s\S]*?\S)_(?!_)/gu,replacement:"$1$2"}}})();var ig=/<(user-provided-context|alran-chat-context|html-selection-context)\b[^>]*>([\s\S]*?)(?:<\/\1\s*>|$)/giu;var og=/<(agent-message|agent-context|system-reminder|peer-memory-path|engine-message|inbound-context|archon_internal_context|locale-context|runtime-data-context|permission-ask|permission-response|questionnaire-ask|questionnaire-response|deliver-assets|deliver_assets|alran-thinking)\b[^>]*>[\s\S]*?<\/\1\s*>/giu;var sg=/<media\b[^>]*\/?\s*>/giu;var ag=/\s+/gu;var Ds=/^User comment \(requested change\):[ \t]*(.*)$/u;var js=/^Requested edit for this selected PPT region:[ \t]*(.*)$/u;var lg=/^\d+\.\s+Comment \d+:[ \t]*(.+)$/u;var ug=/^Untrusted .+ evidence\b/iu;var cg=/(?:^|\n)\s*(?:# Added chat context|(?:## )?(?:Selection sessions|User requested changes|Requested edits)|User comment \(requested change\):|Requested edit for this selected PPT region:|USER REQUEST \(user-authored\):|Untrusted .+ evidence\b|UNTRUSTED PPTX LOCATOR EVIDENCE)/iu;function fg(e){return e.trim().replace(ag," ")}function dg(e){const t=e.replace(/\r\n?/gu,"\n").split("\n");const r=[];const n=[];for(let i=0;i<t.length;i+=1){const o=t[i]?.trim()??"";const s=lg.exec(o);if(s?.[1])r.push(s[1].trim());const a=Ds.exec(o);const l=js.exec(o);if(!a&&!l)continue;const u=[];const f=(a?.[1]??l?.[1])?.trim();if(f)u.push(f);for(let h=i+1;h<t.length;h+=1){const p=t[h]?.trim()??"";if(!p||ug.test(p)||Ds.test(p)||js.test(p))break;u.push(p)}const c=tr(u.join("\n"));if(c)n.push(c)}return n.length>0?n:r.map(tr)}function tr(e){return fg(e.replace(/\r\n?/gu,"\n").replace(/^[ \t]{0,3}(?:[-*_][ \t]*){3,}$/gmu,"").replace(/^[ \t]{0,3}(?:`{3,}|~{3,})[^\n]*$/gmu,"").replace(/^[ \t]{0,3}#{1,6}[ \t]+/gmu,"").replace(/^[ \t]{0,3}>[ \t]?/gmu,"").replace(/^[ \t]*(?:[-+*]|\d+[.)])[ \t]+/gmu,"").replace(/!\[([^\]]*)\]\([^)]*\)/gu,"$1").replace(/\[([^\]]+)\]\([^)]*\)/gu,"$1").replace(/(`+)([\s\S]*?)\1/gu,"$2").replace(/(\*\*|__)(?=\S)([\s\S]*?\S)\1/gu,"$2").replace(/~~(?=\S)([\s\S]*?\S)~~/gu,"$1").replace(er.asterisk,er.replacement).replace(er.underscore,er.replacement).replace(/\\([\\`*_[\]{}()#+\-.!>])/gu,"$1"))}function pg(e){return/<\/(user-provided-context|alran-chat-context|html-selection-context)\s*>$/iu.test(e[0]??"")}function hg(e){return pg(e)||cg.test(e[2]??"")}function gg(e,t){let r="";let n=0;for(const i of t){const o=i.index??n;r+=e.slice(n,o);n=o+(i[0]?.length??0)}return r+e.slice(n)}function yg(e){if(!e)return"";const t=Array.from(e.matchAll(ig)).filter(hg);const r=t.flatMap(i=>dg(i[2]??""));const n=tr(gg(e,t).replace(og,"").replace(sg,""));return tr([...r,n].filter(Boolean).join("\n"))}var Tn=2e6;var mg=100;function bg(e,t){const r=Et(e.url);if(!r)return[];const n=vn(t).replace(/<!--[\s\S]*?-->/gu,"").replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,"");const i=n.split(/<body\b/iu,1)[0]?.slice(0,65536)??"";const o=/<title\b[^>]*>([^<]*)<\/title\s*>/iu.exec(i)?.[1];const s=o?Cn(o).trim():e.name;let a;let l=e.favicon;for(const p of i.matchAll(/<link\b[^>]*>/giu)){const d=Bs(p[0]);const g=d.rel?.toLowerCase().split(/\s+/u)??[];if(g.includes("canonical"))a??=Et(d.href,r);if(g.includes("icon")&&!d.mask)l??=Et(d.href,r)}const u={...e,...l?{favicon:l}:{}};const f=[u];if(a&&a!==r)f.push({...u,name:s,url:a});const c=wg(r,s);if(c)f.push({...u,name:s,url:c});Sg(r,n,f);const h=new Map;for(const p of f){if(!h.has(p.url))h.set(p.url,p)}return Array.from(h.values())}function vn(e,t=0){if(t>8)return"";if(typeof e==="string")return e.slice(0,Tn);if(Array.isArray(e)){let n="";for(const i of e){n+=vn(i,t+1).slice(0,Tn-n.length);if(n.length>=Tn)break}return n}if(!e||typeof e!=="object")return"";const r=e;return vn(r.content??r.text??r.output,t+1)}function Et(e,t){if(!e?.trim())return void 0;try{const r=new URL(e,t);if(!["https:","http:"].includes(r.protocol)||r.username||r.password)return;return r.href}catch{return void 0}}function Cn(e){const t={amp:"&",quot:'"',apos:"'",lt:"<",gt:">"};return e.replace(/&(#x[0-9a-f]+|#\d+|amp|quot|apos|lt|gt);/giu,(r,n)=>{if(!n.startsWith("#"))return t[n.toLowerCase()]??r;const i=n[1]?.toLowerCase()==="x";const o=Number.parseInt(n.slice(i?2:1),i?16:10);return o>0&&o<=1114111?String.fromCodePoint(o):r})}function Bs(e){const t={};for(const r of e.matchAll(/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s>]+))/gu)){const n=r[1]?.toLowerCase();if(n)t[n]=Cn(r[2]??r[3]??r[4]??"")}return t}function wg(e,t){const r=new URL(e);if(r.hostname!=="baike.baidu.com"||!/^\/item\/[^/]+\/?$/u.test(r.pathname)){return void 0}const n=/^(.{1,120})_百度百科$/u.exec(t)?.[1]?.trim();if(!n||/[/?#]/u.test(n))return void 0;return`${r.origin}/item/${encodeURIComponent(n)}`}function Sg(e,t,r){const n=new URL(e);if(!["duckduckgo.com","html.duckduckgo.com"].includes(n.hostname)||!/^\/html\/?$/u.test(n.pathname)){return}for(const i of t.matchAll(/<a\b([^>]*)>([\s\S]*?)<\/a\s*>/giu)){if(r.length>=mg)break;const o=Bs(i[1]??"");if(!o.class?.split(/\s+/u).includes("result__a"))continue;let s=Et(o.href,e);if(!s)continue;const a=new URL(s);if(["duckduckgo.com","html.duckduckgo.com"].includes(a.hostname)){if(a.pathname!=="/l/")continue;s=Et(a.searchParams.get("uddg")??void 0)}const l=Cn((i[2]??"").replace(/<[^>]*>/gu,"")).trim();if(s&&l)r.push({url:s,name:l,evidence:l})}}var _g=2e5;function Eg(e,t){const r=new Map;const n=new Map;for(const[s,a]of t){const l=$s(a);for(const u of l.split(/\r?\n/u)){const f=u.trim();if(Fs(f))qs(r,f,s)}for(const u of Ws(l))qs(n,u,s)}const i=new Set;const o=$s(e);for(const[s,a]of r){if(a&&o.includes(s))i.add(a)}for(const s of Ws(o)){const a=n.get(s);if(a)i.add(a)}return i}function qs(e,t,r){if(!e.has(t))e.set(t,r);else if(e.get(t)!==r)e.set(t,null)}function $s(e){return e.slice(0,_g).normalize("NFKC").replace(/```[\s\S]*?```|~~~[\s\S]*?~~~/gu,"\n").replace(/<(script|style)\b[^>]*>[\s\S]*?<\/\1\s*>/giu,"\n").replace(/<\/?(?:p|div|li|br|h[1-6])\b[^>]*>/giu,"\n").replace(/<[^>]*>/gu,"").replace(/!?\[[^\]\n]*\]\([^\n)]*\)/gu,"").replace(/https?:\/\/[^\s<>]+/giu,"")}function Ws(e){return e.split(/[\n。!?;,!?;]+|,(?!\d)|\.(?=\s|$)/u).map(t=>t.trim().replace(/^(?:[-+*]|\d+[.)]|#{1,6}|>)\s+/u,"")).map(t=>t.replace(/[*_`]/gu,"").trim()).map(t=>new RegExp("\\p{Script=Han}","u").test(t)?t.replace(/\s+/gu,""):t.replace(/\s+/gu," ")).filter(Fs)}function Fs(e){const t=e.match(new RegExp("\\p{Script=Han}","gu"))?.length??0;return e.length<=500&&(t>=7||t===0&&e.length>=24&&(e.match(new RegExp("\\p{L}{2,}","gu"))?.length??0)>=4)}var rr=2e5;var xg=8;var Ag=100;var Rg=new Set(["url","href","link","source_url","sourceUrl","favicon","favicon_url","faviconUrl","site_icon","siteIcon","icon"]);function Tg(e,t={}){const r=[];Mn(e,r,new Set,0,t);const n=new Map;r.forEach(i=>{if(!n.has(i.url))n.set(i.url,i)});return Array.from(n.values())}function Mn(e,t,r,n,i){if(n>xg||t.length>=Ag)return;const o=Vs(e);if(typeof o==="string"){if(i.includeText!==false)vg(o,t);return}if(Array.isArray(o)){if(r.has(o))return;r.add(o);o.forEach(u=>Mn(u,t,r,n+1,i));return}const s=zs(o);if(!s||r.has(s))return;r.add(s);const a=xt(j(s.url)??j(s.href)??j(s.link)??j(s.source_url)??j(s.sourceUrl));const l=j(s.title)??j(s.page_title)??j(s.pageTitle)??j(s.snippet)??j(s.description)??j(s.summary)??j(s.text);if(a&&(!i.requireSourceMetadata||l)){const u=Cg(a,[j(s.title),j(s.page_title),j(s.pageTitle),j(s.name),j(s.label)],[Us(s.content),Us(s.text)]);const f=[u,j(s.snippet),j(s.description),j(s.summary),j(s.text),j(s.content)?.split(/(?:^|\n)\[(?:附加字段|additional fields?)[^\]]*\]/iu,1)[0]?.trim()].filter(p=>Boolean(p)).join("\n").slice(0,rr);const c=Mg(s.content);const h=xt(j(s.favicon)??j(s.favicon_url)??j(s.faviconUrl)??j(s.site_icon)??j(s.siteIcon)??j(s.icon)??j(c?.favicon)??j(c?.favicon_url)??j(c?.faviconUrl)??j(c?.site_icon)??j(c?.siteIcon)??j(c?.icon));t.push({name:u,url:a,...h?{favicon:h}:{},...f?{evidence:f}:{}});return}Object.entries(s).forEach(([u,f])=>{if(!Rg.has(u)){Mn(f,t,r,n+1,i)}})}function vg(e,t){if(!e.trim()||e.length>rr)return;const r=new Set;for(const n of e.matchAll(/(?<!!)\[([^\]\n]+)\]\(\s*(https?:\/\/[^\s<>"')\],。;:!?]+)(?:\s+(?:"[^"]*"|'[^']*'))?\s*\)/giu)){const i=xt(n[2]);if(!i)continue;r.add(i);const o=n[1]?.trim();t.push({name:o&&!Ks(o,i)?o:i,url:i,evidence:Hs(e,n.index??0)})}for(const n of e.matchAll(/https?:\/\/[^\s<>"')\],。;:!?]+/giu)){const i=xt(n[0]);const o=Hs(e,n.index??0);if(!i||r.has(i)||/["']?(?:favicon(?:_url|Url)?|site_(?:icon)|siteIcon|icon)["']?\s*:/iu.test(o)){continue}t.push({name:i,url:i,evidence:o})}}function Us(e){if(typeof e!=="string")return void 0;const t=/<title[^>]*>\s*([^<]{2,120})\s*<\/title>/iu.exec(e)?.[1]?.trim();if(t)return t;return/^#{1,2}\s+(.{2,120})$/mu.exec(e)?.[1]?.trim()}function Cg(e,t,r){return[...t,...r].find(n=>typeof n==="string"&&!Ks(n,e))??e}function Ks(e,t){if(xt(e)===t)return true;const r=new URL(t).hostname.toLowerCase();const n=e.toLowerCase().replace(/^https?:\/\//u,"").replace(/\/$/u,"");return n===r||n===r.replace(/^www\./u,"")}function Hs(e,t){const r=e.lastIndexOf("\n",Math.max(0,t-1))+1;const n=e.indexOf("\n",t);const i=n<0?e.length:n;return e.slice(r,i).trim().slice(0,500)}function Mg(e){if(typeof e!=="string"||e.length>rr)return void 0;const t=Array.from(e.matchAll(/(?:^|\n)\[(?:附加字段|additional fields?)[^\]]*\]\s*/giu));const r=t.at(-1);if(r?.index===void 0)return void 0;return zs(Vs(e.slice(r.index+r[0].length)))}function Vs(e){if(typeof e!=="string")return e;const t=e.trim();if(t.length===0||t.length>rr||!t.startsWith("{")&&!t.startsWith("[")){return e}try{return JSON.parse(t)}catch{return e}}function zs(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)?e:void 0}function j(e){return typeof e==="string"&&e.trim()?e.trim():void 0}function xt(e){if(!e)return void 0;try{const t=new URL(e);return t.protocol==="http:"||t.protocol==="https:"?t.href:void 0}catch{return void 0}}var Og=0xcbf29ce484222325n;var Ig=0x100000001b3n;var Lg=0xffffffffffffffffn;var Pg=13;var Gs=/^[a-f0-9]{6}$/iu;function Ys(e){let t=Og;for(const r of new TextEncoder().encode(e)){t^=BigInt(r);t=t*Ig&Lg}return`c${t.toString(36).padStart(Pg,"0")}`}function Ng(e,t){return`${e}:call:${Ys(t)}`}function Qs(e,t){if(!Gs.test(e))return void 0;const r=e.toLowerCase();const n=new Set;for(const i of t){if(!Gs.test(i))continue;const o=i.toLowerCase();let s=0;for(let a=0;a<r.length;a+=1){if(r[a]!==o[a])s+=1;if(s>1)break}if(s===1)n.add(o)}return n.size===1?n.values().next().value:void 0}function kg(e,t,r){const n=new Set(t);if(n.has(e))return e;const i=r.get(e)??r.get(e.toLowerCase());if(i)return i;const o=Qs(e,Array.from(r,([s,a])=>n.has(a)?s:""));return(o&&r.get(o))??e}var On=class{tails=new Map;async acquire(t){const r=this.tails.get(t)??Promise.resolve();let n=()=>void 0;const i=new Promise(a=>{n=a});const o=Dg(r,i);this.tails.set(t,o);await Js(r);let s=false;return()=>{if(s)return;s=true;n();if(this.tails.get(t)===o)this.tails.delete(t)}}async run(t,r){const n=await this.acquire(t);try{return await r()}finally{n()}}};async function Dg(e,t){await Js(e);await t}async function Js(e){try{await e}catch{}}var Xs={"HTTP-Referer":"https://api.ottili.one/","X-OpenRouter-Title":"Alran Code","X-OpenRouter-Categories":"cli-agent"};function Zs(e){if(!e)return false;try{const t=new URL(e);return t.protocol==="https:"&&t.hostname.toLowerCase()==="openrouter.ai"}catch{return false}}function jg(e,t){if(!Zs(e)){return t?{...t}:void 0}const r=new Map;for(const[n,i]of Object.entries(t??{})){r.set(n.toLowerCase(),{name:n,value:i})}for(const[n,i]of Object.entries(Xs)){r.set(n.toLowerCase(),{name:n,value:i})}return Object.fromEntries([...r.values()].map(({name:n,value:i})=>[n,i]))}var Bg=30*86400;var qg=14*86400;var $g="memory-cleanup";var nr="cron:";function Wg(e,t){return`${nr}${e}:${t}`}function Fg(e,t){return e}function Ug(e){if(!e?.startsWith(nr))return null;const t=e.slice(nr.length).split(":");if(t.length<2)return null;const[r,...n]=t;const i=n.join(":");return r&&i?{agentName:r,cronName:i}:null}var Hg=5e3;var Kg=1e3;var Vg=5e4;var zg=20;var Gg=512;var Yg=[1,5,10,25,50,100,250,500,1e3,2500,5e3,1e4];var Qg={maxAttempts:3,baseDelayMs:250,maxDelayMs:5e3,maxRetryBatches:100,maxRetryMetrics:1e5};var Jg=/^[a-zA-Z_:][a-zA-Z0-9_:]*$/;var ra="/matrix/api/v1/metrics/batch";var na="/matrix/api/v1/metrics/batch";var pe=class extends Error{status;retryable;constructor(t,r){super(t);this.name="MetricsReportError";this.status=r.status;this.retryable=r.retryable}};var ir=class{options;constructor(t){this.options={...t,...t.endpoint?{endpoint:t.endpoint.replace(/\/+$/,""),batchPath:Zg(t.batchPath??ra)}:{}}}async reportBatch(t){if(!this.options.endpoint){if(!this.options.reportMetric){throw new pe("Metrics reporter requires either endpoint or reportMetric",{retryable:false})}for(const i of t.metrics){await this.options.reportMetric(i,{service:t.service,timestamp:t.timestamp})}return{accepted:t.metrics.length}}const r=new AbortController;const n=setTimeout(()=>r.abort(),this.options.requestTimeoutMs??3e3);try{const i=await(this.options.fetch??fetch)(`${this.options.endpoint}${this.options.batchPath}`,{method:"POST",headers:{...this.options.headers??{},"Content-Type":"application/json"},body:JSON.stringify(ny(t)),signal:r.signal});if(!i.ok){throw new pe(`Metrics report failed with HTTP ${i.status}`,{status:i.status,retryable:i.status===429||i.status>=500})}return await i.json().catch(()=>({}))}catch(i){if(i instanceof pe){throw i}throw new pe("Metrics report failed before a response was received",{retryable:true})}finally{clearTimeout(n)}}};var In=class{reporter;serviceName;flushIntervalMs;maxBatchSize;maxSeries;maxLabelKeys;maxLabelValueLength;defaultLabels;histogramBuckets;histogramBucketsByName;stickyGauge;retry;onError;now;setTimer;clearTimer;counters=new Map;gauges=new Map;histograms=new Map;metricNameSeriesCounts=new Map;retryBuffer=[];flushTimer;flushInFlight;closed=false;constructor(t){this.reporter=t.reporter;this.serviceName=t.serviceName;this.flushIntervalMs=t.flushIntervalMs??Hg;this.maxBatchSize=t.maxBatchSize??Kg;this.maxSeries=t.maxSeries??Vg;this.maxLabelKeys=t.maxLabelKeys??zg;this.maxLabelValueLength=t.maxLabelValueLength??Gg;this.defaultLabels=ea(t.defaultLabels??{});this.histogramBuckets=ta(t.histogramBuckets??Yg);this.histogramBucketsByName=Object.fromEntries(Object.entries(t.histogramBucketsByName??{}).map(([r,n])=>[r,ta(n)]));this.stickyGauge=t.stickyGauge??false;this.retry={...Qg,...t.retry??{}};this.onError=t.onError;this.now=t.now??Date.now;this.setTimer=t.setTimer??setTimeout;this.clearTimer=t.clearTimer??clearTimeout;if(this.flushIntervalMs>0){this.scheduleFlush()}}counter(t,r=1,n={}){if(this.closed||!Number.isFinite(r)||r<=0)return;const i=this.validateAndMergeLabels("counter",t,n);if(!i)return;const o=At("counter",t,i);const s=this.counters.get(o);const a=this.now();if(s){s.value+=r;s.updatedAt=a}else{this.counters.set(o,{name:t,labels:i,value:r,updatedAt:a})}this.flushWhenFull()}gauge(t,r,n={}){if(this.closed||!Number.isFinite(r))return;const i=this.validateAndMergeLabels("gauge",t,n);if(!i)return;this.gauges.set(At("gauge",t,i),{name:t,labels:i,value:r,updatedAt:this.now()});this.flushWhenFull()}histogram(t,r,n={}){if(this.closed||!Number.isFinite(r))return;const i=this.validateAndMergeLabels("histogram",t,n);if(!i)return;const o=At("histogram",t,i);const s=this.histogramBucketsByName[t]??this.histogramBuckets;let a=this.histograms.get(o);if(!a){a={name:t,labels:i,buckets:s,bucketCounts:s.map(()=>0),count:0,sum:0,updatedAt:this.now()};this.histograms.set(o,a)}a.count+=1;a.sum+=r;a.updatedAt=this.now();for(let l=0;l<a.buckets.length;l+=1){const u=a.buckets[l];if(u!==void 0&&r<=u){a.bucketCounts[l]=(a.bucketCounts[l]??0)+1}}this.flushWhenFull()}async flush(){if(this.flushInFlight){await this.flushInFlight}this.flushInFlight=this.flushOnce().finally(()=>{this.flushInFlight=void 0});await this.flushInFlight}async close(){this.closed=true;if(this.flushTimer){this.clearTimer(this.flushTimer);this.flushTimer=void 0}await this.flush()}async flushOnce(){const t=this.takeSnapshot();if(t.length===0&&this.retryBuffer.length===0)return;await this.drainRetryBuffer();for(const r of ry(t,this.maxBatchSize)){await this.sendOrBuffer({service:this.serviceName,timestamp:this.now(),metrics:r})}}async drainRetryBuffer(){const t=this.retryBuffer.splice(0,this.retryBuffer.length);for(const r of t){await this.sendOrBuffer(r.request,r.attempts)}}async sendOrBuffer(t,r=0){if(t.metrics.length===0)return;try{await this.reporter.reportBatch(t)}catch(n){if(ty(n)&&r+1<this.retry.maxAttempts){this.pushRetryBatch({request:t,attempts:r+1})}else{this.onError?.(n)}}}pushRetryBatch(t){this.retryBuffer.push(t);while(this.retryBuffer.length>this.retry.maxRetryBatches||this.retryBuffer.reduce((r,n)=>r+n.request.metrics.length,0)>this.retry.maxRetryMetrics){const r=this.retryBuffer.shift();if(!r)break;this.onError?.(new pe("Metrics retry buffer exceeded its limit; dropped oldest batch",{retryable:false}))}}takeSnapshot(){const t=[];for(const r of this.counters.values()){t.push({type:"counter",name:r.name,labels:r.labels,value:r.value,updatedAt:r.updatedAt})}this.counters.clear();for(const r of this.gauges.values()){t.push({type:"gauge",name:r.name,labels:r.labels,value:r.value,updatedAt:r.updatedAt})}if(!this.stickyGauge){this.gauges.clear()}for(const r of this.histograms.values()){t.push({type:"histogram",name:r.name,labels:r.labels,count:r.count,sum:r.sum,buckets:Object.fromEntries(r.buckets.map((n,i)=>[String(n),r.bucketCounts[i]??0])),updatedAt:r.updatedAt})}this.histograms.clear();return t}validateAndMergeLabels(t,r,n){if(!Jg.test(r)){this.onError?.(new Error(`Invalid metric name: ${r}`));return null}const i=ea({...this.defaultLabels,...n});const o=Object.entries(i);if(o.length>this.maxLabelKeys){this.onError?.(new Error(`Metric ${r} has too many label keys`));return null}if(o.some(([,a])=>a.length>this.maxLabelValueLength)){this.onError?.(new Error(`Metric ${r} has a label value exceeding max length`));return null}const s=At(t,r,i);if(!this.canAcceptSeries(r,s)){this.onError?.(new Error(`Metric series limit exceeded for ${r}`));return null}return i}canAcceptSeries(t,r){if(this.counters.has(r)||this.gauges.has(r)||this.histograms.has(r)){return true}const n=this.counters.size+this.gauges.size+this.histograms.size;if(n>=this.maxSeries){return false}let i=this.metricNameSeriesCounts.get(t);if(!i){i=new Set;this.metricNameSeriesCounts.set(t,i)}i.add(r);return true}flushWhenFull(){const t=this.counters.size+this.gauges.size+this.histograms.size;if(t>=this.maxBatchSize){void this.flush().catch(r=>this.onError?.(r))}}scheduleFlush(){this.flushTimer=this.setTimer(()=>{void this.flush().catch(t=>this.onError?.(t)).finally(()=>{if(!this.closed){this.scheduleFlush()}})},this.flushIntervalMs);this.flushTimer.unref?.()}};function Xg(e){return new ir({...e,endpoint:ey(e),batchPath:na})}function At(e,t,r={}){const n=Object.keys(r).sort().map(i=>`${i}=${r[i]}`).join(",");return`${e}:${t}{${n}}`}function ea(e){return Object.fromEntries(Object.entries(e).filter(([t,r])=>t.length>0&&r!==void 0).sort(([t],[r])=>t.localeCompare(r)))}function ta(e){return[...new Set(e.filter(t=>Number.isFinite(t)))].sort((t,r)=>t-r)}function Zg(e){const t=e.trim();if(!t)return ra;return t.startsWith("/")?t:`/${t}`}function ey(e){const t=e.configuredDomainUrl?.trim();if(t)return t;if(e.isEn){if(e.isProd)return"https://api.ottili.one";if(e.isStaging)return"https://matrix-overseas-pre.example.invalid";if(e.isDev)return"https://matrix-overseas-test.example.invalid";return"https://matrix-overseas-test.example.invalid"}if(e.isProd)return"https://api.ottili.one";if(e.isStaging)return"https://matrix-pre.example.invalid";if(e.isDev)return"https://matrix-test.example.invalid";return"https://matrix-test.example.invalid"}function ty(e){return e instanceof pe?e.retryable:true}function ry(e,t){const r=[];for(let n=0;n<e.length;n+=t){r.push(e.slice(n,n+t))}return r}function ny(e){return{service:e.service,timestamp:e.timestamp,metrics:e.metrics.map(t=>{if(t.type==="histogram"){return{metrics_type:t.type,name:t.name,labels:t.labels,count:t.count,sum:t.sum,buckets:t.buckets,updated_at:t.updatedAt}}return{metrics_type:t.type,name:t.name,labels:t.labels,value:t.value,updated_at:t.updatedAt}})}}var sh=Ns(du(),1);var ah=Ns(ih(),1);import QC from"node:path";import{createWriteStream as JC}from"node:fs";import{Writable as XC}from"node:stream";function ZC(){const{stack:e}=new Error;if(!e)return void 0;const t=e.split("\n").slice(1);let r;for(const n of t){if(n.includes("structured-logger.ts")||n.includes("logger.ts")||n.includes("node:internal")){continue}const i=n.match(/at\s+(?:.+\s+\()?(.+):(\d+):(\d+)\)?$/);if(!i)continue;const o=i[1]?.replace(/^file:\/\//,"");const s=i[2];if(!o||!s)continue;if(o.includes("/node_modules/")||o.includes("/pino/"))continue;const a=`${QC.basename(o)}:${s}`;if(o.includes("/packages/")||o.includes("/src/"))return a;r=r??a}return r}function eM(e){const t=new Set(["level","time","pid","hostname","source","msg","traceId"]);return(0,ah.default)({colorize:e?.colorize??false,destination:e?.destination??process.stdout,translateTime:"SYS:HH:MM:ss.l",ignore:"pid,hostname",singleLine:true,hideObject:true,messageFormat:(r,n)=>{const i=r.source??"";const o=r.traceId;const s=r[n]??"";const a={};for(const f of Object.keys(r)){if(!t.has(f))a[f]=r[f]}const l=Object.keys(a).length>0?` ${JSON.stringify(a)}`:"";const u=o?` [${o}]`:"";return`[${String(i)}]${u} ${String(s)}${l}
|
|
22
|
+
`}})}function lh(e={}){const t=e.env??process.env;const r=t.NODE_ENV!=="production";const n=e.level??t.LOG_LEVEL??"info";const i={level:n,mixin(){const a=ZC();return a?{source:a}:{}}};const o=e.destination??process.stdout;const s=nM(o,e.disk);return(0,sh.default)(i,eM({colorize:e.colorize??r,destination:s}))}var tM=/\u001b\[[0-9;?]*[ -/]*[@-~]/g;function rM(e){return e.includes("\x1B")?e.replace(tM,""):e}function nM(e,t){const r=typeof e==="number"?iM(e):e;return new XC({autoDestroy:false,decodeStrings:false,defaultEncoding:"utf8",write(n,i,o){const s=typeof n==="string"?n:Buffer.from(n).toString("utf8");try{r.write(s)}catch{}if(t){try{t.write(rM(s))}catch{}}o()}})}function iM(e){return JC("",{fd:e,autoClose:false})}var oM=new Set(["trace","debug","info","warn","error","fatal"]);function oh(e){return e!==null&&typeof e==="object"&&!Array.isArray(e)&&typeof e.traceId==="string"}function uh(e){return new Proxy(e,{get(t,r){const n=Reflect.get(t,r,t);if(typeof r==="string"&&oM.has(r)&&typeof n==="function"){return(i,...o)=>{if(oh(i)&&!("ctx"in i)){return n.call(t,{traceId:i.traceId},...o)}if(i!==null&&typeof i==="object"&&"ctx"in i){const{ctx:s,...a}=i;const l=oh(s)?{traceId:s.traceId,...a}:{...a};return n.call(t,l,...o)}return n.call(t,i,...o)}}return typeof n==="function"?n.bind(t):n}})}import Qe from"node:fs/promises";import Je from"node:path";var sM=50*1024*1024;var aM=512*1024*1024;var lM=7*24*60*60*1e3;function ph(e){const t=e.dir;const r=e.prefix??"runtime";const n=e.maxBytesPerFile??sM;const i=e.maxTotalBytes??aM;const o=e.retentionMs??lM;const s=e.now??Date.now;const a=e.onError??(()=>{});if(r.length===0||/[/\\]/.test(r)){throw new Error(`createDiskLogTransport: invalid prefix ${JSON.stringify(r)}`)}if(n<=0||i<=0||o<=0){throw new Error("createDiskLogTransport: maxBytesPerFile, maxTotalBytes, retentionMs must be > 0")}const l={hourKey:null,partIndex:0,currentPath:null,currentSize:0};let u=Promise.resolve();let f=false;let c=false;let h=false;let p=false;const d=(v,R)=>R===0?`${r}-${v}.log`:`${r}-${v}.${R}.log`;const g=async()=>{if(f)return;await Qe.mkdir(t,{recursive:true});f=true};const y=async v=>{const R=xs(s());if(R!==l.hourKey){l.hourKey=R;l.partIndex=0;l.currentPath=Je.join(t,d(R,0));l.currentSize=await ch(l.currentPath);w()}let C=false;while(l.currentSize>0&&l.currentSize+v>n){l.partIndex+=1;l.currentPath=Je.join(t,d(l.hourKey,l.partIndex));l.currentSize=await ch(l.currentPath);C=true}return C};const m=async v=>{const R=Buffer.from(v,"utf8");try{await g()}catch(T){a(T);return}let C=false;try{C=await y(R.byteLength)}catch(T){a(T);return}if(!l.currentPath)return;try{await Qe.appendFile(l.currentPath,R);l.currentSize+=R.byteLength;if(C){w()}}catch(T){a(T)}};const w=()=>{if(h){p=true;return}h=true;void Promise.resolve().then(()=>fh({dir:t,prefix:r,maxTotalBytes:i,retentionMs:o,now:s,onError:a})).catch(v=>a(v)).finally(()=>{h=false;if(p){p=false;w()}})};const _=v=>{if(c)return;u=u.then(()=>m(v)).catch(R=>{a(R)})};const S=async()=>{const v=u;await v};const A=async()=>{if(c)return;c=true;try{await u}catch{}await uM(()=>!h);try{await fh({dir:t,prefix:r,maxTotalBytes:i,retentionMs:o,now:s,onError:a})}catch(v){a(v)}};return{write:_,flush:S,close:A,getCurrentFilePath:()=>l.currentPath}}function xs(e){const t=new Date(e);const r=t.getFullYear().toString().padStart(4,"0");const n=(t.getMonth()+1).toString().padStart(2,"0");const i=t.getDate().toString().padStart(2,"0");const o=t.getHours().toString().padStart(2,"0");return`${r}${n}${i}${o}`}async function ch(e){try{const t=await Qe.stat(e);return t.isFile()?t.size:0}catch{return 0}}async function uM(e,t=50,r=5){for(let n=0;n<t;n+=1){if(e())return;await new Promise(i=>setTimeout(i,r))}}async function fh(e){const{dir:t,prefix:r,maxTotalBytes:n,retentionMs:i,now:o,onError:s}=e;let a;try{a=await Qe.readdir(t)}catch{return}const l=new RegExp(`^${cM(r)}-\\d{10}(?:\\.\\d+)?\\.log$`);const u=o()-i;const f=[];for(const p of a){if(!l.test(p))continue;const d=Je.join(t,p);try{const g=await Qe.stat(d);if(!g.isFile())continue;f.push({path:d,size:g.size,mtimeMs:g.mtimeMs,live:true})}catch{}}for(const p of f){if(p.mtimeMs<u){try{await Qe.unlink(p.path);p.live=false}catch(d){s(d)}}}const c=f.filter(p=>p.live).sort((p,d)=>p.mtimeMs-d.mtimeMs||fM(p.path,d.path));let h=c.reduce((p,d)=>p+d.size,0);for(let p=0;p<c.length-1&&h>n;p+=1){const d=c[p];if(!d)continue;try{await Qe.unlink(d.path);h-=d.size}catch(g){s(g)}}}function cM(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function fM(e,t){const r=dh(Je.basename(e));const n=dh(Je.basename(t));if(!r||!n)return Je.basename(e).localeCompare(Je.basename(t));return r.hourKey.localeCompare(n.hourKey)||r.partIndex-n.partIndex}function dh(e){const t=/-(\d{10})(?:\.(\d+))?\.log$/.exec(e);if(!t)return null;const r=t[1];if(!r)return null;return{hourKey:r,partIndex:t[2]?Number(t[2]):0}}function dM(e){switch(e){case"per-sender":case"per-chat":case"shared-task":return e;case"root":case"main":case"pin":return"project-main"}}var St={explore:{whenToUse:"Read-only mapping for unfamiliar, cross-file, or evidence-heavy questions; it can use Bash for read-only Git and code investigation, but cannot create or edit files."},worker:{whenToUse:"Bounded production work with explicit scope, ownership, deliverable, and acceptance."},verifier:{whenToUse:"Independently validate an existing deliverable and report findings; no project-file changes. Temporary validation artifacts require an explicitly designated temporary location."}};var As=Object.keys(St);var pM=["alran",...As];var hM={alran:"Broad or mixed-scope work that does not fit a specialist role.",explore:St.explore.whenToUse,worker:St.worker.whenToUse,verifier:St.verifier.whenToUse};var hh=[...As,"main","alran"];var gM=new Set(hh);function gh(e){return e===3||e==="builtin"}function yM(e){if(typeof e?.name!=="string")return void 0;const t=e.name;if(t.toLowerCase().startsWith("agent:"))return t;if(gM.has(t.toLowerCase())&&!gh(e.creationSource)){return`agent:${t}`}return t}var yh='Use the `requestRef` returned by the native `alran` tool with command "agent list". For built-in work use alran, explore, worker, or verifier. Use `agent:<stable-name>` to select the exact manual/custom Agent when its name collides with a reserved role or primary alias; ordinary custom names use their raw stable name.';var mM=`${yh} "me" selects the current Agent.`;var bM='Built-in name or stable custom `requestRef`. Use `agent:<stable-name>` for a custom Agent whose name collides with a reserved role or primary alias; ordinary custom names use their raw stable name. Use the native `alran` tool with command "agent list" for discovery only when needed and available.';var wM="Use explore, worker, or verifier for built-in work. For a known custom Agent, use its stable `requestRef`. Use `agent:<stable-name>` to select the exact manual/custom Agent when its name collides with a reserved role or primary alias; ordinary custom names use their raw stable name.";function mh(e){return Object.hasOwn(St,e)}function SM(e){const t=e.trim().toLowerCase();return mh(t)?t:void 0}function _M(){return pM.map(e=>`- ${e} \u2014 ${hM[e]}`).join("\n")}function EM(e={}){return e.includeAlran===false?wM:bM}var bh=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico","avif"]);var wh={bmp:"image/bmp",gif:"image/gif",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};var Jt={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",svg:"image/svg+xml",ico:"image/x-icon",avif:"image/avif",pdf:"application/pdf",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",key:"application/vnd.apple.keynote",html:"text/html",htm:"text/html",txt:"text/plain",md:"text/markdown",markdown:"text/markdown",json:"application/json",csv:"text/csv",tsv:"text/tab-separated-values",xml:"application/xml",yaml:"application/yaml",yml:"application/yaml",js:"text/javascript",jsx:"text/javascript",mjs:"text/javascript",cjs:"text/javascript",ts:"text/typescript",tsx:"text/typescript",css:"text/css",scss:"text/x-scss",sql:"application/sql",mp4:"video/mp4",webm:"video/webm",mov:"video/quicktime",mp3:"audio/mpeg",m4a:"audio/mp4",wav:"audio/wav",ogg:"audio/ogg",flac:"audio/flac",aac:"audio/aac",mkv:"video/x-matroska"};function xM(e){return e.split("#")[0]?.split("?")[0]??e}function _t(e){const t=xM(e.trim());const r=t.split("/").pop()??t;const n=r.lastIndexOf(".");if(n<0||n===r.length-1){return""}return r.slice(n+1).toLowerCase()}function Sh(e){const t=_t(e);return wh[t]}function AM(e){const t=Sh(e);return t==="image/jpeg"||t==="image/png"}function _h(e){return e.type?.trim().toLowerCase()??""}function wn(e){const t=_h(e);if(t==="image"){return true}if(bh.has(t)){return true}if(t){return false}return bh.has(_t(e.path))}function Rs(e){if(e.mimeType){return e.mimeType}const t=_h(e);if(t==="html"||t==="web"||t==="website"){return"text/html"}if(t==="url"||t==="link"){return"text/html"}if(t==="audio"){return"audio/mpeg"}if(t==="video"){return"video/mp4"}if(t==="ppt"||t==="pptx"||t==="powerpoint"||t==="presentation"){return"application/vnd.openxmlformats-officedocument.presentationml.presentation"}if(t==="doc"||t==="docx"||t==="word"||t==="document"){return"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}if(t==="xls"||t==="xlsx"||t==="excel"||t==="spreadsheet"){return"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}if(Jt[t]){return Jt[t]}const r=e.name?_t(e.name):"";const n=_t(e.path);return Jt[r]??Jt[n]}var RM=new Set(["png","jpg","jpeg","gif","webp","bmp","svg","ico","avif","heic"]);var TM=new Set(["mp3","m4a","wav","ogg","flac","aac","opus","silk"]);var vM=new Set(["mp4","webm","mov","mkv","avi"]);var CM=new Set(["image","img","photo"]);var MM=new Set(["audio","voice","mp3"]);var OM=new Set(["video","mp4","mov"]);function Ts(e){const t=e.mimeType?.trim().toLowerCase()??"";if(t.startsWith("image/")){return"image"}if(t.startsWith("audio/")){return"audio"}if(t.startsWith("video/")){return"video"}const r=e.type?.trim().toLowerCase()??"";if(r){if(CM.has(r)){return"image"}if(MM.has(r)){return"audio"}if(OM.has(r)){return"video"}}const n=(e.name?_t(e.name):"")||(e.path?_t(e.path):"");if(n){if(RM.has(n)){return"image"}if(TM.has(n)){return"audio"}if(vM.has(n)){return"video"}}return"file"}function IM(e){return e.trim().startsWith("data:")}function LM(e){if(typeof globalThis.atob!=="function"){throw new Error("Base64 decoding is not available in this environment.")}const t=globalThis.atob(e);const r=Uint8Array.from(t,n=>n.charCodeAt(0));return new TextDecoder().decode(r)}function vs(e){if(!IM(e)){return null}const t=e.indexOf(",");if(t<0){return null}const r=e.slice(5,t);const n=e.slice(t+1);const i=r.endsWith(";base64");const o=(i?r.slice(0,-7):r).split(";")[0]||"text/plain";if(o.startsWith("image/")){return{mimeType:o,content:e}}try{return{mimeType:o,content:i?LM(n):decodeURIComponent(n)}}catch{return null}}function PM(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Sn(e){return e.includes("`")||e.includes("~~~")}function Eh(e,t,r){if(typeof r==="function"){return e.replace(t,(n,...i)=>r(n,...i))}return e.replace(t,r)}function NM(e){if(e.length<=1)return e;const t=e.filter(n=>n.end>n.start).sort((n,i)=>n.start-i.start||n.end-i.end);const r=[];for(const n of t){const i=r[r.length-1];if(!i||n.start>i.end){r.push({...n});continue}i.end=Math.max(i.end,n.end)}return r}function kM(e){const t=[];let r=0;while(r<e.length){const n=e.indexOf("\n",r);const i=n===-1?e.length:n;const o=n===-1?e.length:n+1;const s=e.slice(r,i);const a=/^( {0,3})(`{3,}|~{3,})/.exec(s);if(!a){r=o;continue}const l=a[2]??"";const u=l[0]??"";if(!l||!u){r=o;continue}const f=l.length;const c=new RegExp(`^ {0,3}${PM(u)}{${f},}\\s*$`);let h=o;let p=e.length;while(h<e.length){const d=e.indexOf("\n",h);const g=d===-1?e.length:d;const y=d===-1?e.length:d+1;const m=e.slice(h,g);if(c.test(m)){p=y;break}h=y}t.push({start:r,end:p});r=p}return t}function DM(e,t){const r=[];let n=0;const i=(o,s)=>{let a=o;while(a<s){if(e[a]!=="`"){a+=1;continue}const l=a;let u=a+1;while(u<s&&e[u]==="`"){u+=1}const f=e.slice(l,u);const c=e.indexOf(f,u);if(c===-1||c>=s){a=u;continue}r.push({start:l,end:c+f.length});a=c+f.length}};for(const o of t){if(n<o.start){i(n,o.start)}n=Math.max(n,o.end)}if(n<e.length){i(n,e.length)}return r}function _n(e){if(!Sn(e))return[];const t=kM(e);const r=DM(e,t);return NM([...t,...r])}function jM(e,t){return t.some(r=>e>=r.start&&e<r.end)}function BM(e){const t=e.at(-1);const r=t!==null&&typeof t==="object"?e.at(-3):e.at(-2);return typeof r==="number"?r:null}function Xt(e,t,r){t.lastIndex=0;const n=t.test(e);t.lastIndex=0;if(!n)return e;if(!Sn(e)){return Eh(e,t,r)}const i=_n(e);if(i.length===0){return Eh(e,t,r)}return e.replace(t,(o,...s)=>{const a=BM(s);if(a!==null&&jM(a,i)){return o}return typeof r==="function"?r(o,...s):r})}function qM(e){if(!e)return[{type:"text",content:e}];if(!Sn(e))return[{type:"text",content:e}];const t=_n(e);if(t.length===0)return[{type:"text",content:e}];const r=[];let n=0;for(const i of t){if(n<i.start){r.push({type:"text",content:e.slice(n,i.start)})}r.push({type:"protected",content:e.slice(i.start,i.end)});n=i.end}if(n<e.length){r.push({type:"text",content:e.slice(n)})}return r.length>0?r:[{type:"text",content:e}]}function JL(e,t){if(!Sn(e))return t(e);return qM(e).map(r=>r.type==="protected"?r.content:t(r.content)).join("")}var Ms="commit-id-";var xh="alran-session-deliverable:";var $M=".alran/canvas-assets";function nP(e){if(!e.startsWith(xh))return null;try{const t=decodeURIComponent(e.slice(xh.length)).trim();return t||null}catch{return null}}function iP(e,t){const r=e.trim().replace(/[^A-Za-z0-9_-]/gu,"-").slice(0,256)||"asset";const n=t.trim().replace(/[<>:"/\\|?*\u0000-\u001F]/gu,"-").replace(/[. ]+$/gu,"").slice(-120)||"asset";return`${$M}/${r}-${n}`}function xn(e){return e?.trim().startsWith(Ms)===true}function Xe(e){const t=e.trim();return t.startsWith(Ms)?t.slice(Ms.length):t}function oP(e){const t=e.driveNodeId?.trim();if(t){return Xe(t)}const r=e.nodeId?.trim();if(r){return Xe(r)}const n=e.artifactId?.trim();if(xn(n)){return Xe(n)}return xn(e.path)?Xe(e.path):null}function WM(e){return/^https?:\/\//u.test(e.trim())}function FM(e){return e.trim().startsWith("blob:")}var Ah=/<(deliver-assets|deliver_assets)\b[^>]*>([\s\S]*?)<\/\1>/g;var Rh=/<\/?deliver[-_]assets\b[^>]*>/g;var UM=/<item>([\s\S]*?)<\/item>/g;var HM=/<item>[\s\S]*?<\/item>/g;var Ch=/<media\s+([^>]*?)\/>/g;var KM=/<media\s+[^>]*?\/>/g;var Th=/(\w+)="([^"]*)"/g;var VM=/<\/?publish[_-]artifact\b[^>]*>/gi;var zM=/<preview_card\b[^>]*>([\s\S]*?)<\/preview_card>/gi;var GM=/^\s*preview_cards?:\s*$/gim;function Zt(e){return e.replace(/&/gu,"&").replace(/</gu,"<").replace(/>/gu,">").replace(/"/gu,""")}function An(e){return e.replace(/"/gu,'"').replace(/'|'/gu,"'").replace(/</gu,"<").replace(/>/gu,">").replace(/&/gu,"&")}function YM(e,t){const r=/\b(?:data-path|path)\s*=\s*(?:"([^"]*)"|'([^']*)')/iu.exec(e);return An(r?.[1]??r?.[2]??t.trim())}function Os(e){return Xt(e,/<media\b[\s\S]*?\/>/giu,t=>t.replace(/\bsrc\s*=\s*"<filepath\b([^>]*)>([\s\S]*?)<\/filepath>"/giu,(r,n,i)=>{const o=YM(n,i).trim();return o?`src="${Zt(o)}"`:String(r)}))}function QM(e){const t=e.trim();return t.startsWith("/")||t.startsWith("./")||t.startsWith("../")||t.startsWith("~")||t.includes("/")||/\.[A-Za-z0-9]{1,12}(?:[?#].*)?$/u.test(t)}function Mh(e,t){const r=e.trim();if(xn(r)){return true}return t&&!!r&&!WM(r)&&!FM(r)&&!vs(r)&&!QM(r)}function JM(e){return["<deliver-assets>","<item>",e.artifactId?`<artifact_id>${Zt(e.artifactId)}</artifact_id>`:`<path>${Zt(e.path)}</path>`,e.name?`<name>${Zt(e.name)}</name>`:"",e.type?`<type>${Zt(e.type)}</type>`:"","</item>","</deliver-assets>"].filter(Boolean).join("\n")}function Cs(e,t){const r=new RegExp(`^${t}\\s*:\\s*(.+)$`,"iu").exec(e.trim());return r?.[1]?.trim()||null}function XM(e){const t=e.split(/\r?\n/u).map(s=>s.trim()).filter(s=>s.length>0);if(t.length===0){return null}const r=t.map(s=>Cs(s,"path")).find(Boolean)??t[0];const n=t.map(s=>Cs(s,"name")).find(Boolean)??(t[1]&&!t[1].includes(":")?t[1]:void 0);const i=t.map(s=>Cs(s,"type")).find(Boolean)??(t[2]&&!t[2].includes(":")?t[2]:void 0);const o=r?.trim();if(!o||/\s/u.test(o)){return null}return{path:o,name:n?.trim()||void 0,type:i?.trim()||void 0}}function ZM(e){let t=Xt(e,VM,"");t=Xt(t,zM,(r,n)=>{if(typeof n!=="string")return r;const i=n.trim();if(i.includes("<deliver-assets>")||i.includes("<deliver_assets>")||/<media\s+/u.test(i)){return i}const o=XM(i);return o?JM(o):i});t=Xt(t,GM,"");return t.trim()}function eO(e){return/<\/?publish[_-]artifact\b/iu.test(e)||/<preview_card\b/iu.test(e)||/^\s*preview_cards?:\s*$/imu.test(e)}function tO(e){const t=_n(e);if(t.length===0){return e}const r=e.split("");for(const n of t){for(let i=n.start;i<n.end&&i<r.length;i+=1){r[i]=" "}}return r.join("")}function En(e,t){const r=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"iu").exec(e);const n=r?.[1]?.trim();if(n){return An(n)}const i=new RegExp(`<${t}>([\\s\\S]*?)(?=<\\/?(?:path|artifact_id|name|type|item|deliver-assets|deliver_assets)\\b|$)`,"iu").exec(e);const o=i?.[1]?.trim();return o?An(o):null}function rO(e,t){const r=[];let n;const i=new RegExp(`${UM.source}|${Ch.source}`,"g");i.lastIndex=0;while((n=i.exec(e))!==null){const o=n[1];const s=n[2];if(typeof s==="string"){const a=Oh(s,t);if(a){r.push(a)}continue}if(typeof o==="string"){const a=En(o,"artifact_id")?.trim();const l=En(o,"path")?.trim();if(!l&&!a){continue}const u=a&&xn(a)?Xe(a):null;if(!l&&a&&!u){continue}const f=!a&&l&&Mh(l,t)?Xe(l):null;const c=u??f??void 0;r.push(Ih({path:l??(u?a??"":""),...a?{artifactId:a}:{},...c?{driveNodeId:c}:{},name:En(o,"name")??void 0,type:En(o,"type")??void 0}))}}return r}function nO(e){return e.replace(HM,"").replace(KM,"").trim()}function Oh(e,t){const r={};Th.lastIndex=0;let n;while((n=Th.exec(e))!==null){const[,a,l]=n;if(a&&l){r[a]=An(l)}}const i=r["src"]?.trim()||r["path"]?.trim();if(!i){return null}const o=r["status"]?.trim().toLowerCase();const s=o==="deleted"||r["deleted"]?.trim().toLowerCase()==="true";return Ih({path:i,...o==="deleted"?{status:"deleted"}:{},...Mh(i,t)?{driveNodeId:Xe(i)}:{},name:r["name"]?.trim()||r["caption"]?.trim()||void 0,type:r["type"]?.trim()||void 0,nodeId:r["node_id"]?.trim()||void 0,coverPath:r["cover"]?.trim()||void 0,...s?{deleted:true}:{}})}function Ih(e){const t=vs(e.path);if(!t?.mimeType.startsWith("image/")){return e}return{...e,name:e.name??`image.${iO(t.mimeType)}`,type:e.type??"image",mimeType:e.mimeType??t.mimeType}}function iO(e){const t=e.slice("image/".length).toLowerCase();if(t==="jpeg")return"jpg";if(t==="svg+xml")return"svg";if(t==="x-icon"||t==="vnd.microsoft.icon")return"ico";return/^[a-z0-9]+$/u.test(t)?t:"img"}function oO(e){if(e.length>0&&e.every(t=>!t.deleted&&wn(t))){return{type:"image-gallery",items:e}}return{type:"deliver-assets",items:e}}function vh(e){const t=[];let r=[];let n=null;const i=()=>{if(r.length>0){t.push(oO(r))}r=[];n=null};for(const o of e){const s=!o.deleted&&wn(o)?"image":"asset";if(n&&n!==s){i()}n=s;r.push(o)}i();return t}function sP(e,t={}){const r=t.cloudDrivePathDetection??false;const n=Os(e);const i=eO(n)?ZM(n):n;const o=tO(i);const s=(()=>{Rh.lastIndex=0;let S;while((S=Rh.exec(o))!==null){if(S[0].trim()){return true}}return false})();const a=!s&&/<media\s+/.test(o);if(!s&&!a){return[{type:"text",content:i}]}const l=[];const u=s?new RegExp(Ah.source,"g"):new RegExp(`${Ah.source}|${Ch.source}`,"g");const f=S=>{if(S){l.push({type:"text",content:S})}};let c=0;let h;let p=false;u.lastIndex=0;while((h=u.exec(o))!==null){p=true;const S=i.slice(c,h.index).trim();f(S);const A=h[2];const v=h[3];if(typeof A==="string"){const R=rO(A,r);const C=nO(A);if(R.length===0){f(C)}else{if(C){l.push({type:"text",content:C})}l.push({type:"deliver-assets",items:R})}}else if(typeof v==="string"){const R=Oh(v,r);if(R){l.push({type:"asset-item",item:R})}}c=h.index+h[0].length}if(!p){return[{type:"text",content:i}]}const d=i.slice(c).trim();f(d);const g=[];let y=[];const m=new Set;const w=S=>S.filter(A=>{const v=A.artifactId?.trim()||A.path.trim();if(!v||m.has(v)){return false}m.add(v);return true});const _=()=>{if(y.length===0){return}g.push(...vh(y));y=[]};for(const S of l){if(S.type==="asset-item"){y.push(...w([S.item]));continue}_();if(S.type==="deliver-assets"){const v=w(S.items);if(v.length>0){g.push(...vh(v))}continue}const A=g.at(-1);if(A?.type==="text"){A.content=`${A.content}
|
|
23
|
+
|
|
24
|
+
${S.content}`.trim()}else{g.push(S)}}_();return g.length>0?g:[]}var sO=/<(deliver-assets|deliver_assets)\b[^>]*>([\s\S]*?)<\/\1>/g;var aO=/<item>([\s\S]*?)<\/item>/g;var Ph=/<media\s+([^>]*?)\/>/g;var Lh=/(\w+)="([^"]*)"/g;function Is(e){return e.replace(/"/gu,'"').replace(/'|'/gu,"'").replace(/</gu,"<").replace(/>/gu,">").replace(/&/gu,"&")}function lO(e){const t=e.split("?")[0]?.split("#")[0]??"";const r=t.split(/[\\/]/u);const n=r[r.length-1]?.trim();return n||void 0}function Rn(e,t){const r=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"iu").exec(e);const n=r?.[1]?.trim();if(n){return Is(n)}const i=new RegExp(`<${t}>([\\s\\S]*?)(?=<\\/?(?:path|artifact_id|name|type|item|deliver-assets|deliver_assets)\\b|$)`,"iu").exec(e);const o=i?.[1]?.trim();return o?Is(o):null}function Nh(e){const t=e.name?.trim();const r=e.caption?.trim();const n=t||r||lO(e.path);const i=t?"explicit":r?"caption":n?"path":void 0;const o=Rs({path:e.path,name:n,type:e.type});const s=Ts({type:e.type,mimeType:o,name:n,path:e.path});return{path:e.path,kind:s,...e.type?{type:e.type}:{},...n?{name:n}:{},...i?{nameSource:i}:{},...o?{mimeType:o}:{},...e.caption?{caption:e.caption}:{},...e.artifactId?{artifactId:e.artifactId}:{}}}function kh(e){const t={};Lh.lastIndex=0;let r;while((r=Lh.exec(e))!==null){const[,i,o]=r;if(i&&o!==void 0){t[i]=Is(o)}}const n=t["src"]?.trim();if(!n){return null}return Nh({path:n,type:t["type"]?.trim()||void 0,name:t["name"]?.trim()||void 0,caption:t["caption"]?.trim()||void 0})}function uO(e){const t=Rn(e,"artifact_id");const r=Rn(e,"path");if(!r&&!t){return null}return Nh({path:r??t??"",type:Rn(e,"type")??void 0,name:Rn(e,"name")??void 0,...t?{artifactId:t}:{}})}function cO(e){const t=[];const r=new RegExp(`${aO.source}|${Ph.source}`,"g");r.lastIndex=0;let n;while((n=r.exec(e))!==null){const i=n[1];const o=n[2];if(typeof o==="string"){const s=kh(o);if(s){t.push(s)}}else if(typeof i==="string"){const s=uO(i);if(s){t.push(s)}}}return t}function fO(e){return e.replace(/[^\S\r\n]*\r?\n(?:[^\S\r\n]*\r?\n){2,}/gu,"\n\n").replace(/[^\S\r\n]+$/gmu,"").trim()}function dO(e){if(!e){return{text:e,media:[]}}const t=Os(e);const r=[];const n=new RegExp(`${sO.source}|${Ph.source}`,"g");n.lastIndex=0;let i;let o=0;let s="";let a=false;while((i=n.exec(t))!==null){a=true;s+=t.slice(o,i.index);o=i.index+i[0].length;const l=i[2];const u=i[3];if(typeof l==="string"){r.push(...cO(l))}else if(typeof u==="string"){const f=kh(u);if(f){r.push(f)}}}if(!a){return{text:t,media:[]}}s+=t.slice(o);return{text:fO(s),media:r}}function Dh(e,t){const r=new RegExp(`\\b${t}\\s*=\\s*(?:"([^"]*)"|'([^']*)'|([^\\s>]+))`,"iu");const n=e.match(r);if(!n)return void 0;return n[1]??n[2]??n[3]}function pO(e){if(!e)return void 0;const t=e.split("?")[0]?.split("#")[0]??"";const r=t.split(/[\\/]/u);const n=r[r.length-1]?.trim();if(!n)return void 0;return n}function hO(e){const t=Dh(e,"caption")?.trim();if(t)return`[\u5A92\u4F53: ${t}]`;const r=pO(Dh(e,"src"))?.trim();if(r)return`[\u5A92\u4F53: ${r}]`;return"[\u5A92\u4F53]"}function gO(e){const t=/<(?:media|asset)\b[^>]*\/?>/giu;const r=e.match(t);return r?r.length:0}var yO=/<media(?:\s+[^>]*?)?\s*\/?>/giu;var mO=/<deliver-assets(?:\s+[^>]*)?>[\s\S]*?<\/deliver-assets>/giu;function bO(e){if(!e)return e;let t=e;t=t.replace(mO,r=>{const n=r.replace(/^<deliver-assets(?:\s+[^>]*)?>/iu,"").replace(/<\/deliver-assets>\s*$/iu,"");const i=gO(n);return i>0?`[${i} \u4E2A\u4EA4\u4ED8\u8D44\u4EA7]`:"[\u4EA4\u4ED8\u8D44\u4EA7]"});t=t.replace(yO,r=>hO(r));return t}var dP=24*60*60*1e3;function pP(e){if(typeof e!=="object"||e===null||Array.isArray(e))return false;const t=e;return t.kind==="questionnaire-response"&&typeof t.requestId==="string"&&t.requestId.length>0&&t.mode==="questionnaire"&&t.purpose==="ordinary"&&Object.keys(t).length===4}var wO="Others...";function SO(e,t,r){if(!_O(e))return t?{...t}:void 0;const n={...t};for(const i of Object.keys(n)){if(i.toLowerCase()==="x-opencode-session"||i.toLowerCase()==="user-agent"){delete n[i]}}n["x-opencode-session"]=r||crypto.randomUUID();n["user-agent"]="AlranCode";return n}function _O(e){if(!e)return false;try{const t=new URL(e);return t.protocol==="https:"&&t.hostname==="opencode.ai"&&["/zen/go","/inference/go"].some(r=>t.pathname===r||t.pathname.startsWith(`${r}/`))}catch{return false}}export{RO as a,Qh as b,Jh as c,Xh as d,$h as e,ng as f,yg as g,bg as h,Eg as i,Tg as j,Ng as k,kg as l,On as m,jg as n,Hh as o,$g as p,Wg as q,Fg as r,Ug as s,In as t,Xg as u,lh as v,uh as w,ph as x,dM as y,gh as z,yM as A,mM as B,mh as C,SM as D,_M as E,EM as F,Jt as G,AM as H,Rs as I,Ts as J,IM as K,qM as L,JL as M,nP as N,iP as O,xn as P,oP as Q,WM as R,FM as S,tO as T,sP as U,dO as V,bO as W,dP as X,pP as Y,wO as Z,SO as _};
|